ixbrl-viewer 1.4.6__py3-none-any.whl → 1.4.7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ixbrl-viewer might be problematic. Click here for more details.

@@ -1,2 +1,2 @@
1
1
  /*! For license information please see ixbrlviewer.js.LICENSE.txt */
2
- (()=>{var e={946:e=>{e.exports="data:font/woff;charset=utf-8;base64,d09GRgABAAAAAA30AAsAAAAAGbAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAWUAAAKGN+Y6JU9TLzIAAAJwAAAAQQAAAGBW70vrY21hcAAAArQAAAF5AAAENlFx34VnbHlmAAAEMAAABs4AAAx4HLe8vmhlYWQAAAsAAAAAKQAAADZjKUSdaGhlYQAACywAAAAZAAAAJAgLBEVobXR4AAALSAAAABkAAADAWMgAAGxvY2EAAAtkAAAAOQAAAGJvxGzObWF4cAAAC6AAAAAfAAAAIAFDAJhuYW1lAAALwAAAATAAAAI6/H8bLXBvc3QAAAzwAAABAQAAAX0ZqMrweJxlUEtSwlAQ7BcDhBgQFQ1IEkKMSST4OYErixVLDyAryyrKhUV5AlcewJN4BI7gYVzaM5AqlLyqvDfTPT09AwPAxS3uYN1PZw9oL+bLF5zBxvoTfPttFs9PczhVRMzW24GxYniIMMMjlljh27yad/NlVubHcmGhjoA8Fz2ePjsMGMsdEnO2shGGqnuABt8ZUuTkJJo7Zc4nM9RcgT1Wjul9Hx1mSrJCxjmVQipJXOKS/x77NncYHqvXDlLevvqzqVQjX/QzdutggiknesMHPom0MKLGubqVHsIsmMvoxfuHVfPZO0jK6II1dfr6i8j0DXqVqYf03td5Azqtqcsx2U326rOruG1RIyeS6ZSyj4hIl7oJrpkdUEPqYtzghPxcXy6Z/kahrfP67DbS+h6rurr7kke6X+GIXRJ9x2QdayQzxOSKhquZateSOVQnCf1mm20bbsHXjQTsFev8BfESk18PqShXAAAAeJxjYGG8xTiBgZWBgWka0xkGBoZ+CM34msGIkQMoysDKzIAVBKS5pjAcYIh/JckC4sawxDAoAGlGFEUCAG2fCnQAAAB4nLXTWVLbQBSF4V+2MWDMbGzLeJ7wAKaKB7ZDkRGKzIEE9sKC8pSFaBPkXN27gLzQrk+3+5RaLVergTWgKKdSguQvCdb+KE3yvEglz0s8a1xhg4J+V9zylKUvL8quuOYuS/K+t0T3VWhxqf4xDeb0aTNkwowBJ5wzZkmHlJ5WaLJgSpeRZqw40+yCVi3p3cqsa71NPWuLKtvsqLfLHvsccEhNoxpH1LVgmddu+h/zfns4mQ30/uNlJ+2dNhfT7qi1Onv1tf+vVe1SuInRBbYz7liuQ0PehLm8DX15F9ryPgzlQ5jIxzCTmzCQ23Aid+FcPoWxfA5L+RI68jWk8i305Huwr/NHaMrPsJD7MJWH0JVfYSS/Q0sew0qegnYwS5x99VnBYbXo7JRkJWcnJVtzdoKyssPqusPqhsPqpsNqxdnJyrYcVqvOdjLbdljdcVjddfncPYdl+w7LDhyWHTosqzksO3JYVnf5Mxsuz5sOuzd11P8B3PRe+gAAAHiczVZNjNvGFZ43Q5GilpREUaIsLSyJpEUqkqvdlURxnTXWXG/qdLVG7QRIvf0x4tQNkvawcNot0Jt5CQKktwY+FMnBKFCg6B6aHnwoUKCqm4vVAHEPbQ4pEF+LnppbgBXdN7NaeV1k0d4aiTNvZjjfzJv3vnmPBAj+6ISNiUwILEDf6Bt08ujROIJxEkNMScJnkJPn0QjiJE4IfTKPafQ3RMeO7w2GvTqEw55VVGjmc7WwqH74oVo1VYg/VxcLvIND8/V/x6jACUAOylZRdnx4+9hUSo4tMse9PcMpsuMNLhxuW6b/FYd6xgInNlo6hIdP9EQ0/Q89ZYEboR0YUcgCsUmHbBDStIP533S74MiK68glo2j17d4wMAYeK8qu7XiBwecMhmvQBRQ9q1SUlT4KOkm4yWelcXNhZ29n4WZrdbVFCdZpU0+IbtJoOjb1++nM0sWlTPq+bo4j/oMo3NoKV1vTWACwnjZ009RpI0KZOZW1l5bs7KmMqT/xUYYR1J7beuA5ObSZIxfraIJiuQa94QUQAl/6NJyoZjXz4EEGTTeZqGpK07TUgwdCqGjZoxezSRkplZImE15jh7tH7DdGm/VJhDsOB0vg+aHnKx42cG9Z8WWlLGMDNbDKilUOLWz0LsAwLA9DfximnC4M1qFXg2IW2O8l6S3NeqG5vOu1S/bQLrW93eXmC5b21kkvkj8HO/3+zvd5BR/8T5DjL3YHO69z6Os7AzyKIs7zKZ6nQHxynrxIXiM/IT/FkxnoTMiC4/ngDUNYh37TPsfJgINlEAbFwaCJI/yoYmAdlpAL7opyfHDlC0ePBtEOtJilTpcO1mmIM7Izb62Dz9+ze2k5WZJzRl5O/qKBBh8reprf0vxpLXmmChXo6g27psNDPZsQSZFk+SFLp9NMBuUjKS19R1KYMh/ijdQXDNFsOq/JiobbCKHm63oFTuHKda1CK3ojz+4kv0ijDuuyjCZY1l0dPpDljqYla6eeryQf6bqmwX2tYfyQMbkg/01iQn7M2DePGicOwJai5Y2cJst6roACV608X+ErVi5VdcFz9NPjR+yvLP7S+mn/S+Knl/6vfhLxQcqI3IKxFNxFcA232YEuwyCq+J7rZGmxRte41TBoYrjEnIJOQ/NiowYYQ3PYw0Dm0sxYJK8IqLxy+burl2/7lqYF1y+1WpeuB/Xu6LU3rqSNTLtc/965zuU1L6VcGGxtLHfrV2/duoqmHyOSRMPrX21tnZcAMT9A6MXU7vaVNyhVziyHteFW+1mA7cHK11IXb929NY+n99gdnkvMEnLgNISoZwjBy+hw+9d2DcrsTpz8oXalPX3pV+0rNdiIESJwk1kuQWxol+wKplYzLINhj1h8EEfRGFWaRnHEewzz7DjGfsyh6lP4BZIjJimTRVInLurRN9wSFi6VmRQF9zBmZdTA341jT8zzy1Fh48ckeoynmwteGO/wh5CU2P+PuH8Fd/TJMt4xvFsDpLbtZKFkPJ0BAT1nY6YzbMDdlSJPtpgAwRaOszH9WCx21tyEuGtO1fOqjGA9xQbFxjSm4ynfvTls4pM0IOIZLhljDWOIEcOxsVd9zGFVwBpi3kq4V0m8yGFN+KVZNfERlJvH8dPEI6tkhNoj38qYZyxBKbyupX7AsxAGA9TRPNKZHb/Y/eCQnr11OuhSZOBzlxYa+V7kmlrbsuDl9GKhUKq9uNnxgmYz8Do77+1tbu699/6h2HllP97aivfvH4pX6D/b2ihnla1cMV3Pt+xOfvF00TDbZ3tfT6JFvoBHr27uvfvbdzlciM7o9v6f9m+PZmKWbzkf62QFv01ELEPVDtXs8+AWHoUhzKp0fpiA7UPyWd3tX9t7c+9aH8XF8GYLzYB3Ny9rkDn49Oz2qz96dfvsTLwJoD9zc7i5d63XQ8yPv9F368lnkErJsmZr8PDZJ1NRnJvbfMKiGWeryFRk4tGfR+YOBDoEfU6aEQ+GgnkoWWTqd/kFvdtapfxiRBGNk7v4DYQ3frUFN/jSqdn6Md6GBjmLXn0O7xX/7jpiH36HpWaM5KQTDDWPcbB8QnvCuUQFo5CLcbC9HUxFfQPGgomCjye0x4ckRjJiHW0HlHBkgjUlh4SMnxKzmPIOc/iJVPAVFdi5ZO3etyBH68xJzt/7dvIvWp/Z8x/IYZOcIV8haGNkbxmsLEW1u1Qkt4BnNllcRF8kpjmRA97gtuFfoBmWleAdiUlq5uDvGVViKfiZlGWGrSa7Bd9jZzy/kOyqjUKncqYyf9gdKX3wSVqXVVXWVeaqUqdgHHzibGw4rGkUpqQgJv4cRQHavEaN/w2ili+9AAB4nGNgZGBgAOKz76S54vltvjJwszBggv8PWLiYDwAZHAxMID4AvuEGSwAAAHicY2BkYGBhAAEWETDJxcDIgAoMAARyAF0AAAB4nGNgYGBg4SKAGZBoERxyWDA9AACkYAEhAAAAeJxjYAACEQYNBheGBIYahhkMvxiNGGcx5TE7MS9i3sd8j0WOpY7lFasFawbrGdYHbDakQwCabxFfAAAAeJxjYGRgYDBg6GHgZAABJiDmAkIGhv9gPgMAG9UB3AB4nHXPTUrDQBwF8Jd+iS2IKLgTZiWCkLR114XLdueii+6TdJKmpJkwmX6Bp/AEnsIjuPIUnsKlr/G/KFIz5J/fvLwMBMAlPuDhcHno1fNwNXDG3a+b1JW4Rd+K2/S9uEM/irt4wJO4h2tkPMFrnTO5wYu4gQu8ipvM38Qt+l3cpj/FHfpL3MUM3+Ie7rznbBfZfJPprbZTna7z0B4lR5xpW2WmUAO/f5ROdKFt6PRcRXtVbdKhc4lKrFmpsSmcznOjSmuWOnb+wrlyFASJ5H5sVvy7HSJY5NjQGlveFlPOFGumIXenO6fTWT0rJgYFFAbw0f+nO+EsaoVwfM7Zj7DnrNhLMWTqkHCfsGOwosb1uYd2zmWYlPW7JZOYuY9F/VWJEQKu5E/fZ4sn/QDFyWpmeJxtjMlygkAARHkqgkQTs+/7vpiYL0ohjDAlzOAwSPz7mFh6Sl+6X1d1Ow1nqcD5X0MaNGnh0sbDp0PABl16bLJFn2122GWPfQ445IhjTjjljHMuuOSKa2645Y57HnjkiWdeeOWNAe98MOTTCUJjdD2Ida38ZayKbpSKmdHqr11DJsa2twIjk9QGK6qKTpTJYqRDE7tRpkvRjHTSiWUuVCm16q/TIBf5SBj/9znTYdwey8wK4yYmLFJPVzaTSriFkcr600qUdrFplyI0UbqwTETWK6s8D828ZWU08erQKKkSQgyami9iFBUFESmCGRljLJKEESU5U+Z8M3GcH09CWT0AAAA="},585:e=>{e.exports="data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgIHhtbG5zOmNjPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyMiCiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxuczpzb2RpcG9kaT0iaHR0cDovL3NvZGlwb2RpLnNvdXJjZWZvcmdlLm5ldC9EVEQvc29kaXBvZGktMC5kdGQiCiAgIHhtbG5zOmlua3NjYXBlPSJodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy9uYW1lc3BhY2VzL2lua3NjYXBlIgogICB2ZXJzaW9uPSIxLjEiCiAgIGlkPSJzdmcyIgogICB4bWw6c3BhY2U9InByZXNlcnZlIgogICB3aWR0aD0iNTM2LjM2NDc1IgogICBoZWlnaHQ9IjE1MC4zMTAwMyIKICAgdmlld0JveD0iMCAwIDUzNi4zNjQ3MyAxNTAuMzEwMDMiCiAgIHNvZGlwb2RpOmRvY25hbWU9ImFyZWxsZS1sb2dvLnN2ZyIKICAgaW5rc2NhcGU6dmVyc2lvbj0iMC45Mi41ICgyMDYwZWMxZjlmLCAyMDIwLTA0LTA4KSI+PG1ldGFkYXRhCiAgICAgaWQ9Im1ldGFkYXRhOCI+PHJkZjpSREY+PGNjOldvcmsKICAgICAgICAgcmRmOmFib3V0PSIiPjxkYzpmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PjxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz48ZGM6dGl0bGU+PC9kYzp0aXRsZT48L2NjOldvcms+PC9yZGY6UkRGPjwvbWV0YWRhdGE+PGRlZnMKICAgICBpZD0iZGVmczYiPjxjbGlwUGF0aAogICAgICAgY2xpcFBhdGhVbml0cz0idXNlclNwYWNlT25Vc2UiCiAgICAgICBpZD0iY2xpcFBhdGgxOCI+PHBhdGgKICAgICAgICAgZD0iTSAwLDEyMiBIIDc2OC41MDUgViAwIEggMCBaIgogICAgICAgICBpZD0icGF0aDE2IgogICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvY2xpcFBhdGg+PC9kZWZzPjxzb2RpcG9kaTpuYW1lZHZpZXcKICAgICBwYWdlY29sb3I9IiNmZmZmZmYiCiAgICAgYm9yZGVyY29sb3I9IiM2NjY2NjYiCiAgICAgYm9yZGVyb3BhY2l0eT0iMSIKICAgICBvYmplY3R0b2xlcmFuY2U9IjEwIgogICAgIGdyaWR0b2xlcmFuY2U9IjEwIgogICAgIGd1aWRldG9sZXJhbmNlPSIxMCIKICAgICBpbmtzY2FwZTpwYWdlb3BhY2l0eT0iMCIKICAgICBpbmtzY2FwZTpwYWdlc2hhZG93PSIyIgogICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iMTg2NCIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSIxMDI0IgogICAgIGlkPSJuYW1lZHZpZXc0IgogICAgIHNob3dncmlkPSJmYWxzZSIKICAgICBpbmtzY2FwZTp6b29tPSIwLjcyMDIyOTUzIgogICAgIGlua3NjYXBlOmN4PSI3ODguNzIwNTgiCiAgICAgaW5rc2NhcGU6Y3k9Ii04NC40NDIyMDQiCiAgICAgaW5rc2NhcGU6d2luZG93LXg9IjU2IgogICAgIGlua3NjYXBlOndpbmRvdy15PSIyNyIKICAgICBpbmtzY2FwZTp3aW5kb3ctbWF4aW1pemVkPSIxIgogICAgIGlua3NjYXBlOmN1cnJlbnQtbGF5ZXI9ImcxMCIKICAgICBmaXQtbWFyZ2luLXRvcD0iMCIKICAgICBmaXQtbWFyZ2luLWxlZnQ9IjAiCiAgICAgZml0LW1hcmdpbi1yaWdodD0iMCIKICAgICBmaXQtbWFyZ2luLWJvdHRvbT0iMCIgLz48ZwogICAgIGlkPSJnMTAiCiAgICAgaW5rc2NhcGU6Z3JvdXBtb2RlPSJsYXllciIKICAgICBpbmtzY2FwZTpsYWJlbD0iYXJlbGxlLWxvZ28iCiAgICAgdHJhbnNmb3JtPSJtYXRyaXgoMS4zMzMzMzMzLDAsMCwtMS4zMzMzMzMzLC0zLjY1MDgxNDEsMTU5LjMyNzc3KSI+PGcKICAgICAgIGlkPSJnMTIiPjxnCiAgICAgICAgIGlkPSJnMTQiCiAgICAgICAgIGNsaXAtcGF0aD0idXJsKCNjbGlwUGF0aDE4KSI+PGcKICAgICAgICAgICBpZD0iZzIwIgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwOS42Njg5LDY3LjE2MzEpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAtMS41OTgsMi42NTMgLTcuMjkyLDUuOTg3IC04LjgwOCwxNS4zMDcgLTAuODA0LDQuOTQ5IDAuNTY5LDcuOTk0IDEuOTU1LDEyLjE4MSAxLjQ4OCw0LjQ3MSAtMS4wNTksNy4yNDQgLTUuMzgsNy40MDggLTguNjQ0LDAuMzMgLTMxLjkwNywtMi4yMTEgLTU3LjYzOCwxMS4yODggLTEwLjA2Niw1LjI4IC0xMC43NTksMy45MjIgLTcuMDc2LC0yLjU2NiA1LjY0NSwtOS45NTIgMTkuMzc4LC0xNS4zMzQgMzUuNjg3LC0xOC4wMDUgLTQ1LjM5Nyw5LjgyNSAtMTcuMTY2LC0yLjE3NCA1LjA5OCwtNy4xMjcgLTQxLjA1Niw4LjQ4NCAtMTUuNjI1LC0zLjAzNSA0LjQ0OCwtNi43MTEgLTM4LjQ3NSw2LjgyMSAtMTEuMzg3LC0yLjk3OCAxLjQ3NywtNS40MjggMy44NjIsLTAuNzM2IDEyLjM5MSwtMTMuMDI2IDE4LjA1NCwtMTAuMjczIDYuMzE3LDMuMDY5IDQuNDg4LDAuNjg5IDcuNDc5LDIuMDI2IEMgMC41NjYsMC40NTggMCwwIDAsMCIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOiNhYTExOGU7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOm5vbmUiCiAgICAgICAgICAgICBpZD0icGF0aDIyIgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzI0IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwOS42Njg5LDY3LjE2MzEpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAtMS41OTgsMi42NTMgLTcuMjkyLDUuOTg3IC04LjgwOCwxNS4zMDcgLTAuODA0LDQuOTQ5IDAuNTY5LDcuOTk0IDEuOTU1LDEyLjE4MSAxLjQ4OCw0LjQ3MSAtMS4wNTksNy4yNDQgLTUuMzgsNy40MDggLTguNjQ0LDAuMzMgLTMxLjkwNywtMi4yMTEgLTU3LjYzOCwxMS4yODggLTEwLjA2Niw1LjI4IC0xMC43NTksMy45MjIgLTcuMDc2LC0yLjU2NiA1LjY0NSwtOS45NTIgMTkuMzc4LC0xNS4zMzQgMzUuNjg3LC0xOC4wMDUgLTQ1LjM5Nyw5LjgyNSAtMTcuMTY2LC0yLjE3NCA1LjA5OCwtNy4xMjcgLTQxLjA1Niw4LjQ4NCAtMTUuNjI1LC0zLjAzNSA0LjQ0OCwtNi43MTEgLTM4LjQ3NSw2LjgyMSAtMTEuMzg3LC0yLjk3OCAxLjQ3NywtNS40MjggMy44NjIsLTAuNzM2IDEyLjM5MSwtMTMuMDI2IDE4LjA1NCwtMTAuMjczIDYuMzE3LDMuMDY5IDQuNDg4LDAuNjg5IDcuNDc5LDIuMDI2IEMgMC41NjYsMC40NTggMCwwIDAsMCBaIgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2ZmZmZmZjtzdHJva2Utd2lkdGg6MS4wMzEwMDAwMjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgICAgIGlkPSJwYXRoMjYiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnMjgiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTM3Ljg2MzMsNDMuMDIzNCkiPjxwYXRoCiAgICAgICAgICAgICBkPSJtIDAsMCBjIDAsLTE2LjcxMiAtMTMuNTQ4LC0zMC4yNjIgLTMwLjI2MywtMzAuMjYyIC0xNi43MTUsMCAtMzAuMjYzLDEzLjU1IC0zMC4yNjMsMzAuMjYyIDAsMTYuNzE0IDEzLjU0OCwzMC4yNjQgMzAuMjYzLDMwLjI2NCBDIC0xMy41NDgsMzAuMjY0IDAsMTYuNzE0IDAsMCIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOm5vbmUiCiAgICAgICAgICAgICBpZD0icGF0aDMwIgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzMyIgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEzNy44NjMzLDQzLjAyMzQpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAwLC0xNi43MTIgLTEzLjU0OCwtMzAuMjYyIC0zMC4yNjMsLTMwLjI2MiAtMTYuNzE1LDAgLTMwLjI2MywxMy41NSAtMzAuMjYzLDMwLjI2MiAwLDE2LjcxNCAxMy41NDgsMzAuMjY0IDMwLjI2MywzMC4yNjQgQyAtMTMuNTQ4LDMwLjI2NCAwLDE2LjcxNCAwLDAgWiIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDM0IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzM2IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEyNi4xNTcyLDEwLjQzMjYpIj48cGF0aAogICAgICAgICAgICAgZD0iTSAwLDAgMTMuNDUyLDYzLjU4NiBIIDI0LjQ1OCBMIDIyLjAxMiwtMS4yMjIgWiIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOm5vbmUiCiAgICAgICAgICAgICBpZD0icGF0aDM4IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzQwIgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE0MCw3My42NzUzKSI+PHBhdGgKICAgICAgICAgICAgIGQ9Ik0gMCwwIC0xMy4wODYsLTYxLjU1MyIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDQyIgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzQ0IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIwOC43ODcxLDQzLjAyMzQpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAwLC0xNi43MTIgLTEzLjU0OCwtMzAuMjYyIC0zMC4yNjUsLTMwLjI2MiAtMTYuNzEsMCAtMzAuMjYsMTMuNTUgLTMwLjI2LDMwLjI2MiAwLDE2LjcxNCAxMy41NSwzMC4yNjQgMzAuMjYsMzAuMjY0IEMgLTEzLjU0OCwzMC4yNjQgMCwxNi43MTQgMCwwIFoiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojYWExMThlO3N0cm9rZS13aWR0aDozLjgwNTAwMDA3O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICAgICAgaWQ9InBhdGg0NiIKICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+PC9nPjxnCiAgICAgICAgICAgaWQ9Imc0OCIKICAgICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNTAuNjE1Miw2NC4yMzczKSI+PHBhdGgKICAgICAgICAgICAgIGQ9Im0gMCwwIDguNTU4LC03LjMzOSAzOS4xMzIsMi40NDcgMTEuMDA2LDMuNjY5IDQuODksLTMxLjc5MyAtMjMuMjMyLC0yNC40NTggSCAxNC42NzMgbCAtMjMuODQ4LDI1LjY3OSB6IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6bm9uemVybztzdHJva2U6bm9uZSIKICAgICAgICAgICAgIGlkPSJwYXRoNTAiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnNTIiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTU3LjExOTEsNzMuNjc1MykiPjxwYXRoCiAgICAgICAgICAgICBkPSJNIDAsMCAtMTMuMDgzLC02MS41NTMiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojYWExMThlO3N0cm9rZS13aWR0aDozLjgwNTAwMDA3O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICAgICAgaWQ9InBhdGg1NCIKICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+PC9nPjxnCiAgICAgICAgICAgaWQ9Imc1NiIKICAgICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzMDIuNDA1MywxMTIuODcwMSkiPjxwYXRoCiAgICAgICAgICAgICBkPSJNIDAsMCAtMjEuNDEzLC0xMDAuNzQ4IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2FhMTE4ZTtzdHJva2Utd2lkdGg6My44MDUwMDAwNztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgICAgIGlkPSJwYXRoNTgiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnNjAiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzIxLjk2ODgsMTEyLjg3MDEpIj48cGF0aAogICAgICAgICAgICAgZD0iTSAwLDAgLTIxLjQxMSwtMTAwLjc0OCIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDYyIgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzY0IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDM4Ni4wOTc3LDQzLjAyMzQpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAwLC0xNi43MTIgLTEzLjU0OCwtMzAuMjYyIC0zMC4yNjIsLTMwLjI2MiAtMTYuNzE3LDAgLTMwLjI2NCwxMy41NSAtMzAuMjY0LDMwLjI2MiAwLDE2LjcxNCAxMy41NDcsMzAuMjY0IDMwLjI2NCwzMC4yNjQgQyAtMTMuNTQ4LDMwLjI2NCAwLDE2LjcxNCAwLDAgWiIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDY2IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzY4IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDM3My4yODMyLDY4LjM1MjUpIj48cGF0aAogICAgICAgICAgICAgZD0iTSAwLDAgLTM2LjAyOSwtNDkuNTg2IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2FhMTE4ZTtzdHJva2Utd2lkdGg6My44MDUwMDAwNztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgICAgIGlkPSJwYXRoNzAiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnNzIiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjcyLjM3NCw0My4wMjM0KSI+PHBhdGgKICAgICAgICAgICAgIGQ9Im0gMCwwIGMgMCwtMTYuNzEyIC0xMy41NDksLTMwLjI2MiAtMzAuMjYzLC0zMC4yNjIgLTE2LjcxMywwIC0zMC4yNjEsMTMuNTUgLTMwLjI2MSwzMC4yNjIgMCwxNi43MTQgMTMuNTQ4LDMwLjI2NCAzMC4yNjEsMzAuMjY0IEMgLTEzLjU0OSwzMC4yNjQgMCwxNi43MTQgMCwwIFoiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojYWExMThlO3N0cm9rZS13aWR0aDozLjgwNTAwMDA3O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICAgICAgaWQ9InBhdGg3NCIKICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+PC9nPjxnCiAgICAgICAgICAgaWQ9Imc3NiIKICAgICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNTkuNTU5Niw2OC4zNTI1KSI+PHBhdGgKICAgICAgICAgICAgIGQ9Ik0gMCwwIC0zNi4wMjYsLTQ5LjU4NiIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDc4IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzgwIgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI3NC43MzM0LDE3Ljc3MDUpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgLTE4LjM0Miw2LjExNCAxLjgzNiwzOC43MjEgNC44OSw3LjU0MiAxNC4wNjIsLTEyLjAyNCB6IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6bm9uemVybztzdHJva2U6bm9uZSIKICAgICAgICAgICAgIGlkPSJwYXRoODIiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnODQiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzg4LjI1MjksMTcuNTY1OSkiPjxwYXRoCiAgICAgICAgICAgICBkPSJtIDAsMCAtMTguMzQzLDYuMTE0IDEuODM3LDM4LjcyMSA0Ljg4OSw3LjU0MyAxNC4wNjMsLTEyLjAyNCB6IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6bm9uemVybztzdHJva2U6bm9uZSIKICAgICAgICAgICAgIGlkPSJwYXRoODYiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnODgiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoOTcuMjYwNyw3Mi44NjUyKSI+PHBhdGgKICAgICAgICAgICAgIGQ9Im0gMCwwIGMgLTIuMTIxLDIuNzgyIC04LjUzOSw1LjIzOSAtMTEuMzksMTUuNTIxIC0xLjUxNCw1LjQ1OCAtMC4zNDgsOS4wNDggMC42OTcsMTMuOTIgMS4xMTcsNS4yMDUgLTIuMDg4LDguMDA0IC02Ljk2MSw3LjY1NiAtOS43NDQsLTAuNjk2IC0zNS41NTksLTYuNDE4IC02Ni4xMjIsNS41NjkgLTExLjk1Niw0LjY4OCAtMTAuNzY1LDQuMDY4IC03LjYzLC0zLjc1NSA0Ljk4NCwtMTIuNDM5IDI2LjUwNywtMjEuNzg5IDQ1LjE1MiwtMjIuNzc3IC0xMC4xMDYsMC45MDkgLTIyLjE0LDMuMTI5IC0yNS41MDIsNC4wMDEgLTEzLjUsMy41IDcsLTEzLjUgMzQuNTAyLC0xNC4yNTEgLTcuNDg0LDAuMjM3IC0xOS41OTgsMS40ODYgLTIyLjUsMi4yNSAtMTksNSA0LC0xMS45OTkgMzIuMjUsLTEzLjUwMiA0LjQzNiwtMC4yMzYgMTUuNzMxLC02Ljg5MiAyMS44NjksLTMuMjk1IDMuODM0LDIuMjQ2IDEuMzc5LDAuODAxIDMuODM0LDIuMjQ2IEMgMy44ODgsLTMuMDY4IDAsMCAwLDAiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDojNzdkMWM4O2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpub256ZXJvO3N0cm9rZTpub25lIgogICAgICAgICAgICAgaWQ9InBhdGg5MCIKICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+PC9nPjxnCiAgICAgICAgICAgaWQ9Imc5MiIKICAgICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSg5Ny4yNjA3LDcyLjg2NTIpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAtMi4xMjEsMi43ODIgLTguNTM5LDUuMjM5IC0xMS4zOSwxNS41MjEgLTEuNTE0LDUuNDU4IC0wLjM0OCw5LjA0OCAwLjY5NywxMy45MiAxLjExNyw1LjIwNSAtMi4wODgsOC4wMDQgLTYuOTYxLDcuNjU2IC05Ljc0NCwtMC42OTYgLTM1LjU1OSwtNi40MTggLTY2LjEyMiw1LjU2OSAtMTEuOTU2LDQuNjg4IC0xMC43NjUsNC4wNjggLTcuNjMsLTMuNzU1IDQuOTg0LC0xMi40MzkgMjYuNTA3LC0yMS43ODkgNDUuMTUyLC0yMi43NzcgLTEwLjEwNiwwLjkwOSAtMjIuMTQsMy4xMjkgLTI1LjUwMiw0LjAwMSAtMTMuNSwzLjUgNywtMTMuNSAzNC41MDIsLTE0LjI1MSAtNy40ODQsMC4yMzcgLTE5LjU5OCwxLjQ4NiAtMjIuNSwyLjI1IC0xOSw1IDQsLTExLjk5OSAzMi4yNSwtMTMuNTAyIDQuNDM2LC0wLjIzNiAxNS43MzEsLTYuODkyIDIxLjg2OSwtMy4yOTUgMy44MzQsMi4yNDYgMS4zNzksMC44MDEgMy44MzQsMi4yNDYgQyAzLjg4OCwtMy4wNjggMCwwIDAsMCBaIgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2ZmZmZmZjtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgICAgIGlkPSJwYXRoOTQiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48L2c+PC9nPjx0ZXh0CiAgICAgICB0cmFuc2Zvcm09Im1hdHJpeCgxLDAsMCwtMSwzODkuNDk5LDYyLjk5NjEpIgogICAgICAgc3R5bGU9ImZvbnQtdmFyaWFudDpub3JtYWw7Zm9udC13ZWlnaHQ6bm9ybWFsO2ZvbnQtc3RyZXRjaDpub3JtYWw7Zm9udC1zaXplOjE4cHg7Zm9udC1mYW1pbHk6J1RyZWJ1Y2hldCBNUyc7LWlua3NjYXBlLWZvbnQtc3BlY2lmaWNhdGlvbjpUcmVidWNoZXRNUzt3cml0aW5nLW1vZGU6bHItdGI7ZmlsbDojYWExMThlO2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpub256ZXJvO3N0cm9rZTpub25lIgogICAgICAgaWQ9InRleHQ5OCI+PHRzcGFuCiAgICAgICAgIHg9IjAiCiAgICAgICAgIHk9IjAiCiAgICAgICAgIGlkPSJ0c3Bhbjk2Ij7CrjwvdHNwYW4+PC90ZXh0Pgo8L2c+PC9zdmc+"},688:e=>{e.exports="data:image/vnd.microsoft.icon;charset=utf-8;base64,AAABAAEAEBAAAAEACABoBQAAFgAAACgAAAAQAAAAIAAAAAEACAAAAAAAQAEAAAAAAAAAAAAAAAEAAAAAAADNm9sA6urFANvamwD7+/MA5cLuAPX04gDNzHUA+/v1APT04QDQz34AzMtxAOHhrQDe3aQA7+/TANbVjQDo6MAA/v79AM7NeQDn5rsA8/PdAPLy2wDi4a4A5uW6AO3tzgD5+fAA/v78APn57gD4+OwA9vbmAOXktgDc3J8A9fXkAOHgrADs2PEA5eW4AI4hqwDLym8A////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIyMlIyUlIyMlIyUjJSMjJQAjISMhJSMlJSMEIwQjISUlISMhIyUhIwAhIyEjISMAJSMjJSMjJSMjJSMlIyUjIyUlJSUlJSUlJSUjJSMlJSUlJSUlJSUlJSUlJSUcEiQdJSUlJSUlJRkNICQkJCQkJCUlJSUlByQkJCQkJCQkJAolJSUlGiIiIiIiIiQkJCQXJSUlJR8iAiQkJCQkJCQOJSUlJSQkBiQkJCQkJCQkFiUlJRAiIiIiIiQkJCQkJA8lJQMiAiQkJCQkJCQkJCQVJRgRJCQkJCQkJCQkJCQkDCUeJCQGAgEIBQcbBRMBAQMlCQsUJSUlJSUlJSUlJSUlJQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="},754:e=>{e.exports="data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDIyLjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMzQuOSAzMCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTM0LjkgMzA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojNTk1OTU5O30KCS5zdDF7ZmlsbDojNjZDQzAwO30KPC9zdHlsZT4KPGc+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTYuMywyMS42aC0yLjR2LTEzaDIuNFYyMS42eiIvPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTIxLjMsMTMuNWMwLjItMC4yLDAuNC0wLjQsMC42LTAuNWMwLjItMC4yLDAuNC0wLjMsMC43LTAuNGMwLjItMC4xLDAuNS0wLjIsMC43LTAuM2MwLjMtMC4xLDAuNi0wLjEsMC45LTAuMQoJCWMwLjUsMCwxLDAuMSwxLjMsMC4zczAuNywwLjQsMSwwLjdzMC41LDAuNywwLjYsMS4xYzAuMSwwLjQsMC4yLDAuOSwwLjIsMS40djUuOWgtMi4ydi01LjljMC0wLjYtMC4xLTEtMC40LTEuM1MyNCwxNCwyMy41LDE0CgkJYy0wLjQsMC0wLjcsMC4xLTEuMSwwLjNjLTAuMywwLjItMC43LDAuNC0xLDAuN3Y2LjdoLTIuMnYtOS4yaDEuNGMwLjMsMCwwLjUsMC4xLDAuNiwwLjRMMjEuMywxMy41eiIvPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTMyLjEsOC4ydjEzLjRoLTIuMlY4LjJIMzIuMXoiLz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0zNy4zLDkuN2MwLDAuMiwwLDAuNC0wLjEsMC41cy0wLjIsMC4zLTAuMywwLjRzLTAuMywwLjItMC41LDAuM2MtMC4yLDAuMS0wLjQsMC4xLTAuNiwwLjEKCQljLTAuMiwwLTAuNCwwLTAuNS0wLjFjLTAuMi0wLjEtMC4zLTAuMi0wLjQtMC4zcy0wLjItMC4zLTAuMy0wLjRjLTAuMS0wLjItMC4xLTAuMy0wLjEtMC41YzAtMC4yLDAtMC40LDAuMS0wLjYKCQljMC4xLTAuMiwwLjItMC4zLDAuMy0wLjVzMC4zLTAuMiwwLjQtMC4zczAuNC0wLjEsMC41LTAuMWMwLjIsMCwwLjQsMCwwLjYsMC4xYzAuMiwwLjEsMC4zLDAuMiwwLjUsMC4zczAuMiwwLjMsMC4zLDAuNQoJCVMzNy4zLDkuNSwzNy4zLDkuN3ogTTM2LjksMTIuNHY5LjJoLTIuMnYtOS4ySDM2Ljl6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDEuNywxMy41YzAuMi0wLjIsMC40LTAuNCwwLjYtMC41YzAuMi0wLjIsMC40LTAuMywwLjctMC40YzAuMi0wLjEsMC41LTAuMiwwLjctMC4zYzAuMy0wLjEsMC42LTAuMSwwLjktMC4xCgkJYzAuNSwwLDEsMC4xLDEuMywwLjNjMC40LDAuMiwwLjcsMC40LDEsMC43YzAuMywwLjMsMC41LDAuNywwLjYsMS4xczAuMiwwLjksMC4yLDEuNHY1LjloLTIuMnYtNS45YzAtMC42LTAuMS0xLTAuNC0xLjMKCQljLTAuMy0wLjMtMC43LTAuNS0xLjItMC41Yy0wLjQsMC0wLjcsMC4xLTEuMSwwLjNjLTAuMywwLjItMC43LDAuNC0xLDAuN3Y2LjdoLTIuMnYtOS4yaDEuNGMwLjMsMCwwLjUsMC4xLDAuNiwwLjRMNDEuNywxMy41eiIvPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTUxLjksMTcuM2MwLDAuNSwwLjEsMC45LDAuMywxLjJjMC4xLDAuMywwLjMsMC42LDAuNSwwLjlzMC41LDAuNCwwLjgsMC41czAuNiwwLjIsMSwwLjJjMC40LDAsMC43LDAsMC45LTAuMQoJCXMwLjUtMC4yLDAuNy0wLjNjMC4yLTAuMSwwLjQtMC4yLDAuNS0wLjNjMC4xLTAuMSwwLjMtMC4xLDAuNC0wLjFjMC4yLDAsMC4zLDAuMSwwLjQsMC4ybDAuNiwwLjhjLTAuMiwwLjMtMC41LDAuNS0wLjgsMC43CgkJcy0wLjYsMC40LTEsMC41Yy0wLjMsMC4xLTAuNywwLjItMSwwLjJzLTAuNywwLjEtMSwwLjFjLTAuNiwwLTEuMi0wLjEtMS44LTAuM2MtMC42LTAuMi0xLTAuNS0xLjQtMC45cy0wLjctMC45LTEtMS41CgkJYy0wLjItMC42LTAuNC0xLjMtMC40LTIuMWMwLTAuNiwwLjEtMS4yLDAuMy0xLjhjMC4yLTAuNiwwLjUtMSwwLjktMS40YzAuNC0wLjQsMC44LTAuNywxLjQtMWMwLjUtMC4yLDEuMi0wLjQsMS45LTAuNAoJCWMwLjYsMCwxLjEsMC4xLDEuNiwwLjNjMC41LDAuMiwwLjksMC41LDEuMywwLjhjMC40LDAuNCwwLjYsMC44LDAuOCwxLjNjMC4yLDAuNSwwLjMsMS4xLDAuMywxLjhjMCwwLjMsMCwwLjYtMC4xLDAuNwoJCWMtMC4xLDAuMS0wLjIsMC4yLTAuNCwwLjJINTEuOXogTTU2LjEsMTUuOWMwLTAuMywwLTAuNi0wLjEtMC44Yy0wLjEtMC4zLTAuMi0wLjUtMC40LTAuN2MtMC4yLTAuMi0wLjQtMC4zLTAuNi0wLjUKCQljLTAuMi0wLjEtMC41LTAuMi0wLjktMC4yYy0wLjYsMC0xLjEsMC4yLTEuNSwwLjVjLTAuNCwwLjQtMC42LDAuOS0wLjcsMS42SDU2LjF6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNzYuNSw4LjZsLTUuMywxM2gtMi4ybC01LjMtMTNoMS45YzAuMiwwLDAuNCwwLjEsMC41LDAuMnMwLjIsMC4yLDAuMywwLjRsMy4xLDcuOWMwLjEsMC4zLDAuMiwwLjUsMC4zLDAuOQoJCWMwLjEsMC4zLDAuMiwwLjYsMC4zLDFjMC4xLTAuMywwLjEtMC43LDAuMi0xczAuMi0wLjYsMC4zLTAuOWwzLjEtNy45YzAtMC4xLDAuMS0wLjMsMC4zLTAuNGMwLjEtMC4xLDAuMy0wLjIsMC41LTAuMkg3Ni41eiIvPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTgwLjcsOS43YzAsMC4yLDAsMC40LTAuMSwwLjVjLTAuMSwwLjItMC4yLDAuMy0wLjMsMC40Yy0wLjEsMC4xLTAuMywwLjItMC41LDAuM2MtMC4yLDAuMS0wLjQsMC4xLTAuNiwwLjEKCQljLTAuMiwwLTAuNCwwLTAuNS0wLjFjLTAuMi0wLjEtMC4zLTAuMi0wLjQtMC4zcy0wLjItMC4zLTAuMy0wLjRzLTAuMS0wLjMtMC4xLTAuNWMwLTAuMiwwLTAuNCwwLjEtMC42czAuMi0wLjMsMC4zLTAuNQoJCXMwLjMtMC4yLDAuNC0wLjNzMC40LTAuMSwwLjUtMC4xYzAuMiwwLDAuNCwwLDAuNiwwLjFzMC4zLDAuMiwwLjUsMC4zYzAuMSwwLjEsMC4yLDAuMywwLjMsMC41QzgwLjcsOS4zLDgwLjcsOS41LDgwLjcsOS43egoJCSBNODAuNCwxMi40djkuMmgtMi4ydi05LjJIODAuNHoiLz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik04NC43LDE3LjNjMCwwLjUsMC4xLDAuOSwwLjMsMS4yYzAuMSwwLjMsMC4zLDAuNiwwLjUsMC45czAuNSwwLjQsMC44LDAuNXMwLjYsMC4yLDEsMC4yYzAuNCwwLDAuNywwLDAuOS0wLjEKCQljMC4zLTAuMSwwLjUtMC4yLDAuNy0wLjNzMC40LTAuMiwwLjUtMC4zYzAuMS0wLjEsMC4zLTAuMSwwLjQtMC4xYzAuMiwwLDAuMywwLjEsMC40LDAuMmwwLjYsMC44Yy0wLjIsMC4zLTAuNSwwLjUtMC44LDAuNwoJCWMtMC4zLDAuMi0wLjYsMC40LTEsMC41Yy0wLjMsMC4xLTAuNywwLjItMSwwLjJjLTAuMywwLTAuNywwLjEtMSwwLjFjLTAuNiwwLTEuMi0wLjEtMS44LTAuM3MtMS0wLjUtMS40LTAuOQoJCWMtMC40LTAuNC0wLjctMC45LTEtMS41Yy0wLjItMC42LTAuNC0xLjMtMC40LTIuMWMwLTAuNiwwLjEtMS4yLDAuMy0xLjhjMC4yLTAuNiwwLjUtMSwwLjktMS40czAuOC0wLjcsMS40LTEKCQljMC41LTAuMiwxLjItMC40LDEuOS0wLjRjMC42LDAsMS4xLDAuMSwxLjYsMC4zYzAuNSwwLjIsMC45LDAuNSwxLjMsMC44YzAuNCwwLjQsMC42LDAuOCwwLjgsMS4zYzAuMiwwLjUsMC4zLDEuMSwwLjMsMS44CgkJYzAsMC4zLDAsMC42LTAuMSwwLjdjLTAuMSwwLjEtMC4yLDAuMi0wLjQsMC4ySDg0Ljd6IE04OSwxNS45YzAtMC4zLDAtMC42LTAuMS0wLjhjLTAuMS0wLjMtMC4yLTAuNS0wLjQtMC43CgkJYy0wLjItMC4yLTAuNC0wLjMtMC42LTAuNWMtMC4yLTAuMS0wLjUtMC4yLTAuOS0wLjJjLTAuNiwwLTEuMSwwLjItMS41LDAuNWMtMC40LDAuNC0wLjYsMC45LTAuNywxLjZIODl6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTA2LDEyLjRsLTIuOSw5LjJoLTEuOGMtMC4yLDAtMC4zLTAuMS0wLjQtMC40bC0xLjctNS4zYy0wLjEtMC4yLTAuMS0wLjQtMC4xLTAuNWMwLTAuMi0wLjEtMC40LTAuMS0wLjUKCQljMCwwLjItMC4xLDAuNC0wLjEsMC41cy0wLjEsMC40LTAuMSwwLjVMOTcsMjEuMmMtMC4xLDAuMy0wLjIsMC40LTAuNSwwLjRoLTEuN2wtMi45LTkuMmgxLjhjMC4yLDAsMC4zLDAsMC40LDAuMQoJCWMwLjEsMC4xLDAuMiwwLjIsMC4yLDAuM2wxLjMsNC45YzAuMSwwLjMsMC4xLDAuNSwwLjIsMC44YzAuMSwwLjMsMC4xLDAuNSwwLjEsMC44YzAuMS0wLjMsMC4xLTAuNSwwLjItMC44CgkJYzAuMS0wLjMsMC4yLTAuNSwwLjItMC44bDEuNS00LjljMC0wLjEsMC4xLTAuMiwwLjItMC4zYzAuMS0wLjEsMC4yLTAuMSwwLjQtMC4xaDFjMC4yLDAsMC4zLDAsMC40LDAuMWMwLjEsMC4xLDAuMiwwLjIsMC4yLDAuMwoJCWwxLjUsNC45YzAuMSwwLjMsMC4yLDAuNSwwLjIsMC44YzAuMSwwLjMsMC4xLDAuNSwwLjIsMC44YzAuMS0wLjUsMC4yLTEsMC4zLTEuNmwxLjQtNC45YzAtMC4xLDAuMS0wLjIsMC4yLTAuMwoJCWMwLjEtMC4xLDAuMi0wLjEsMC40LTAuMUgxMDZ6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTA5LjEsMTcuM2MwLDAuNSwwLjEsMC45LDAuMywxLjJjMC4xLDAuMywwLjMsMC42LDAuNSwwLjlzMC41LDAuNCwwLjgsMC41czAuNiwwLjIsMSwwLjIKCQljMC40LDAsMC43LDAsMC45LTAuMXMwLjUtMC4yLDAuNy0wLjNjMC4yLTAuMSwwLjQtMC4yLDAuNS0wLjNjMC4xLTAuMSwwLjMtMC4xLDAuNC0wLjFjMC4yLDAsMC4zLDAuMSwwLjQsMC4ybDAuNiwwLjgKCQljLTAuMiwwLjMtMC41LDAuNS0wLjgsMC43cy0wLjYsMC40LTEsMC41Yy0wLjMsMC4xLTAuNywwLjItMSwwLjJzLTAuNywwLjEtMSwwLjFjLTAuNiwwLTEuMi0wLjEtMS44LTAuM2MtMC42LTAuMi0xLTAuNS0xLjQtMC45CgkJcy0wLjctMC45LTEtMS41Yy0wLjItMC42LTAuNC0xLjMtMC40LTIuMWMwLTAuNiwwLjEtMS4yLDAuMy0xLjhjMC4yLTAuNiwwLjUtMSwwLjktMS40YzAuNC0wLjQsMC44LTAuNywxLjQtMQoJCWMwLjUtMC4yLDEuMi0wLjQsMS45LTAuNGMwLjYsMCwxLjEsMC4xLDEuNiwwLjNjMC41LDAuMiwwLjksMC41LDEuMywwLjhjMC40LDAuNCwwLjYsMC44LDAuOCwxLjNjMC4yLDAuNSwwLjMsMS4xLDAuMywxLjgKCQljMCwwLjMsMCwwLjYtMC4xLDAuN2MtMC4xLDAuMS0wLjIsMC4yLTAuNCwwLjJIMTA5LjF6IE0xMTMuNCwxNS45YzAtMC4zLDAtMC42LTAuMS0wLjhjLTAuMS0wLjMtMC4yLTAuNS0wLjQtMC43CgkJYy0wLjItMC4yLTAuNC0wLjMtMC42LTAuNWMtMC4yLTAuMS0wLjUtMC4yLTAuOS0wLjJjLTAuNiwwLTEuMSwwLjItMS41LDAuNWMtMC40LDAuNC0wLjYsMC45LTAuNywxLjZIMTEzLjR6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTE5LjYsMTRjMC4zLTAuNiwwLjYtMSwxLTEuM2MwLjQtMC4zLDAuOS0wLjUsMS40LTAuNWMwLjQsMCwwLjgsMC4xLDEsMC4zbC0wLjEsMS43YzAsMC4xLTAuMSwwLjItMC4xLDAuMgoJCWMtMC4xLDAtMC4xLDAuMS0wLjIsMC4xYy0wLjEsMC0wLjIsMC0wLjQsMGMtMC4yLDAtMC4zLDAtMC41LDBjLTAuMiwwLTAuNSwwLTAuNywwLjFzLTAuNCwwLjItMC41LDAuM2MtMC4yLDAuMS0wLjMsMC4zLTAuNCwwLjUKCQljLTAuMSwwLjItMC4yLDAuNC0wLjMsMC43djUuN2gtMi4ydi05LjJoMS4zYzAuMiwwLDAuNCwwLDAuNSwwLjFjMC4xLDAuMSwwLjIsMC4yLDAuMiwwLjRMMTE5LjYsMTR6Ii8+CjwvZz4KPC9zdmc+Cg=="},12:function(e,t,n){e.exports=function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t={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]},n=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[t[i]]=i);var r=e.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 o in r)if(r.hasOwnProperty(o)){if(!("channels"in r[o]))throw new Error("missing channels property: "+o);if(!("labels"in r[o]))throw new Error("missing channel labels property: "+o);if(r[o].labels.length!==r[o].channels)throw new Error("channel and label counts mismatch: "+o);var a=r[o].channels,s=r[o].labels;delete r[o].channels,delete r[o].labels,Object.defineProperty(r[o],"channels",{value:a}),Object.defineProperty(r[o],"labels",{value:s})}r.rgb.hsl=function(e){var t,n,i=e[0]/255,r=e[1]/255,o=e[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a;return s===a?t=0:i===s?t=(r-o)/l:r===s?t=2+(o-i)/l:o===s&&(t=4+(i-r)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+s)/2,[t,100*(s===a?0:n<=.5?l/(s+a):l/(2-s-a)),100*n]},r.rgb.hsv=function(e){var t,n,i,r,o,a=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(a,s,l),u=c-Math.min(a,s,l),d=function(e){return(c-e)/6/u+.5};return 0===u?r=o=0:(o=u/c,t=d(a),n=d(s),i=d(l),a===c?r=i-n:s===c?r=1/3+t-i:l===c&&(r=2/3+n-t),r<0?r+=1:r>1&&(r-=1)),[360*r,100*o,100*c]},r.rgb.hwb=function(e){var t=e[0],n=e[1],i=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,i))*100,100*(i=1-1/255*Math.max(t,Math.max(n,i)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,i=e[1]/255,r=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-i,1-r)))/(1-t)||0),100*((1-i-t)/(1-t)||0),100*((1-r-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var i=n[e];if(i)return i;var r,o,a,s=1/0;for(var l in t)if(t.hasOwnProperty(l)){var c=(o=e,a=t[l],Math.pow(o[0]-a[0],2)+Math.pow(o[1]-a[1],2)+Math.pow(o[2]-a[2],2));c<s&&(s=c,r=l)}return r},r.keyword.rgb=function(e){return t[e]},r.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,i=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/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*t+.7152*n+.0722*i),100*(.0193*t+.1192*n+.9505*i)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],i=t[1],o=t[2];return i/=100,o/=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-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},r.hsl.rgb=function(e){var t,n,i,r,o,a=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[o=255*l,o,o];t=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?t+6*(n-t)*i:2*i<1?n:3*i<2?t+(n-t)*(2/3-i)*6:t,r[c]=255*o;return r},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,i=e[2]/100,r=n,o=Math.max(i,.01);return n*=(i*=2)<=1?i:2-i,r*=o<=1?o:2-o,[t,100*(0===i?2*r/(o+r):2*n/(i+n)),(i+n)/2*100]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,i=e[2]/100,r=Math.floor(t)%6,o=t-Math.floor(t),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]}},r.hsv.hsl=function(e){var t,n,i,r=e[0],o=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return i=(2-o)*a,n=o*s,[r,100*(n=(n/=(t=(2-o)*s)<=1?t:2-t)||0),100*(i/=2)]},r.hwb.rgb=function(e){var t,n,i,r,o,a,s,l=e[0]/360,c=e[1]/100,u=e[2]/100,d=c+u;switch(d>1&&(c/=d,u/=d),i=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(i=1-i),r=c+i*((n=1-u)-c),t){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]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,i=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r)),255*(1-Math.min(1,i*(1-r)+r))]},r.xyz.rgb=function(e){var t,n,i,r=e[0]/100,o=e[1]/100,a=e[2]/100;return n=-.9689*r+1.8758*o+.0415*a,i=.0557*r+-.204*o+1.057*a,t=(t=3.2406*r+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,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*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(i=Math.min(Math.max(0,i),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],i=e[2];return n/=100,i/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},r.lab.xyz=function(e){var t,n,i,r=e[0];t=e[1]/500+(n=(r+16)/116),i=n-e[2]/200;var o=Math.pow(n,3),a=Math.pow(t,3),s=Math.pow(i,3);return n=o>.008856?o:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,i=s>.008856?s:(i-16/116)/7.787,[t*=95.047,n*=100,i*=108.883]},r.lab.lch=function(e){var t,n=e[0],i=e[1],r=e[2];return(t=360*Math.atan2(r,i)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(i*i+r*r),t]},r.lch.lab=function(e){var t,n=e[0],i=e[1];return t=e[2]/360*2*Math.PI,[n,i*Math.cos(t),i*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],i=e[2],o=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var a=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===o&&(a+=60),a},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],i=e[2];return t===n&&n===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var i=parseInt(n,16);return[i>>16&255,i>>8&255,255&i]},r.rgb.hcg=function(e){var t,n=e[0]/255,i=e[1]/255,r=e[2]/255,o=Math.max(Math.max(n,i),r),a=Math.min(Math.min(n,i),r),s=o-a;return t=s<=0?0:o===n?(i-r)/s%6:o===i?2+(r-n)/s:4+(n-i)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?a/(1-s):0)]},r.hsl.hcg=function(e){var t,n=e[1]/100,i=e[2]/100,r=0;return(t=i<.5?2*n*i:2*n*(1-i))<1&&(r=(i-.5*t)/(1-t)),[e[0],100*t,100*r]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,i=t*n,r=0;return i<1&&(r=(n-i)/(1-i)),[e[0],100*i,100*r]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,i=e[2]/100;if(0===n)return[255*i,255*i,255*i];var r,o=[0,0,0],a=t%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)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),i=0;return n>0&&(i=t/n),[e[0],100*i,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],100*i,100*n]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,i=n-t,r=0;return i<1&&(r=(n-i)/(1-i)),[e[0],100*i,100*r]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function i(e){var t=function(){for(var e={},t=Object.keys(n),i=t.length,r=0;r<i;r++)e[t[r]]={distance:-1,parent:null};return e}(),i=[e];for(t[e].distance=0;i.length;)for(var r=i.pop(),o=Object.keys(n[r]),a=o.length,s=0;s<a;s++){var l=o[s],c=t[l];-1===c.distance&&(c.distance=t[r].distance+1,c.parent=r,i.unshift(l))}return t}function r(e,t){return function(n){return t(e(n))}}function o(e,t){for(var i=[t[e].parent,e],o=n[t[e].parent][e],a=t[e].parent;t[a].parent;)i.unshift(t[a].parent),o=r(n[t[a].parent][a],o),a=t[a].parent;return o.conversion=i,o}n.rgb,n.hsl,n.hsv,n.hwb,n.cmyk,n.xyz,n.lab,n.lch,n.hex,n.keyword,n.ansi16,n.ansi256,n.hcg,n.apple,n.gray;var a={};Object.keys(n).forEach((function(e){a[e]={},Object.defineProperty(a[e],"channels",{value:n[e].channels}),Object.defineProperty(a[e],"labels",{value:n[e].labels});var t=function(e){for(var t=i(e),n={},r=Object.keys(t),a=r.length,s=0;s<a;s++){var l=r[s];null!==t[l].parent&&(n[l]=o(l,t))}return n}(e);Object.keys(t).forEach((function(n){var i=t[n];a[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var i=n.length,r=0;r<i;r++)n[r]=Math.round(n[r]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(i),a[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(i)}))}));var s=a,l={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]},c={getRgba:u,getHsla:d,getRgb:function(e){var t=u(e);return t&&t.slice(0,3)},getHsl:function(e){var t=d(e);return t&&t.slice(0,3)},getHwb:h,getAlpha:function(e){var t=u(e);return t||(t=d(e))||(t=h(e))?t[3]:void 0},hexString:function(e,t){return t=void 0!==t&&3===e.length?t:e[3],"#"+v(e[0])+v(e[1])+v(e[2])+(t>=0&&t<1?v(Math.round(255*t)):"")},rgbString:function(e,t){return t<1||e[3]&&e[3]<1?f(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:f,percentString:function(e,t){return t<1||e[3]&&e[3]<1?p(e,t):"rgb("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%)"},percentaString:p,hslString:function(e,t){return t<1||e[3]&&e[3]<1?g(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:g,hwbString:function(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(e){return y[e.slice(0,3)]}};function u(e){if(e){var t=[0,0,0],n=1,i=e.match(/^#([a-fA-F0-9]{3,4})$/i),r="";if(i){r=(i=i[1])[3];for(var o=0;o<t.length;o++)t[o]=parseInt(i[o]+i[o],16);r&&(n=Math.round(parseInt(r+r,16)/255*100)/100)}else if(i=e.match(/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i)){for(r=i[2],i=i[1],o=0;o<t.length;o++)t[o]=parseInt(i.slice(2*o,2*o+2),16);r&&(n=Math.round(parseInt(r,16)/255*100)/100)}else if(i=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<t.length;o++)t[o]=parseInt(i[o+1]);n=parseFloat(i[4])}else if(i=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<t.length;o++)t[o]=Math.round(2.55*parseFloat(i[o+1]));n=parseFloat(i[4])}else if(i=e.match(/(\w+)/)){if("transparent"==i[1])return[0,0,0,0];if(!(t=l[i[1]]))return}for(o=0;o<t.length;o++)t[o]=m(t[o],0,255);return n=n||0==n?m(n,0,1):1,t[3]=n,t}}function d(e){if(e){var t=e.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[m(parseInt(t[1]),0,360),m(parseFloat(t[2]),0,100),m(parseFloat(t[3]),0,100),m(isNaN(n)?1:n,0,1)]}}}function h(e){if(e){var t=e.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[m(parseInt(t[1]),0,360),m(parseFloat(t[2]),0,100),m(parseFloat(t[3]),0,100),m(isNaN(n)?1:n,0,1)]}}}function f(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function p(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function g(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function m(e,t,n){return Math.min(Math.max(t,e),n)}function v(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var y={};for(var b in l)y[l[b]]=b;var x=function(e){return e instanceof x?e:this instanceof x?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof e?(t=c.getRgba(e))?this.setValues("rgb",t):(t=c.getHsla(e))?this.setValues("hsl",t):(t=c.getHwb(e))&&this.setValues("hwb",t):"object"==typeof e&&(void 0!==(t=e).r||void 0!==t.red?this.setValues("rgb",t):void 0!==t.l||void 0!==t.lightness?this.setValues("hsl",t):void 0!==t.v||void 0!==t.value?this.setValues("hsv",t):void 0!==t.w||void 0!==t.whiteness?this.setValues("hwb",t):void 0===t.c&&void 0===t.cyan||this.setValues("cmyk",t)))):new x(e);var t};x.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e=(e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return c.hexString(this.values.rgb)},rgbString:function(){return c.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return c.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return c.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return c.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return c.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return c.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return c.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;n<e.length;n++){var i=e[n]/255;t[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=this,i=e,r=void 0===t?.5:t,o=2*r-1,a=n.alpha()-i.alpha(),s=((o*a==-1?o:(o+a)/(1+o*a))+1)/2,l=1-s;return this.rgb(s*n.red()+l*i.red(),s*n.green()+l*i.green(),s*n.blue()+l*i.blue()).alpha(n.alpha()*r+i.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new x,i=this.values,r=n.values;for(var o in i)i.hasOwnProperty(o)&&(e=i[o],"[object Array]"===(t={}.toString.call(e))?r[o]=e.slice(0):"[object Number]"===t?r[o]=e:console.error("unexpected color value:",e));return n}},x.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},x.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},x.prototype.getValues=function(e){for(var t=this.values,n={},i=0;i<e.length;i++)n[e.charAt(i)]=t[e][i];return 1!==t.alpha&&(n.a=t.alpha),n},x.prototype.setValues=function(e,t){var n,i,r=this.values,o=this.spaces,a=this.maxes,l=1;if(this.valid=!0,"alpha"===e)l=t;else if(t.length)r[e]=t.slice(0,e.length),l=t[e.length];else if(void 0!==t[e.charAt(0)]){for(n=0;n<e.length;n++)r[e][n]=t[e.charAt(n)];l=t.a}else if(void 0!==t[o[e][0]]){var c=o[e];for(n=0;n<e.length;n++)r[e][n]=t[c[n]];l=t.alpha}if(r.alpha=Math.max(0,Math.min(1,void 0===l?r.alpha:l)),"alpha"===e)return!1;for(n=0;n<e.length;n++)i=Math.max(0,Math.min(a[e][n],r[e][n])),r[e][n]=Math.round(i);for(var u in o)u!==e&&(r[u]=s[e][u](r[e]));return!0},x.prototype.setSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"==typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n),this)},x.prototype.setChannel=function(e,t,n){var i=this.values[e];return void 0===n?i[t]:(n===i[t]||(i[t]=n,this.setValues(e,i)),this)},"undefined"!=typeof window&&(window.Color=x);var w=x;function A(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}var _,C={noop:function(){},uid:(_=0,function(){return _++}),isNullOrUndef:function(e){return null==e},isArray:function(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)},isObject:function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)},isFinite:function(e){return("number"==typeof e||e instanceof Number)&&isFinite(e)},valueOrDefault:function(e,t){return void 0===e?t:e},valueAtIndexOrDefault:function(e,t,n){return C.valueOrDefault(C.isArray(e)?e[t]:e,n)},callback:function(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)},each:function(e,t,n,i){var r,o,a;if(C.isArray(e))if(o=e.length,i)for(r=o-1;r>=0;r--)t.call(n,e[r],r);else for(r=0;r<o;r++)t.call(n,e[r],r);else if(C.isObject(e))for(o=(a=Object.keys(e)).length,r=0;r<o;r++)t.call(n,e[a[r]],a[r])},arrayEquals:function(e,t){var n,i,r,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(r=e[n],o=t[n],r instanceof Array&&o instanceof Array){if(!C.arrayEquals(r,o))return!1}else if(r!==o)return!1;return!0},clone:function(e){if(C.isArray(e))return e.map(C.clone);if(C.isObject(e)){for(var t=Object.create(e),n=Object.keys(e),i=n.length,r=0;r<i;++r)t[n[r]]=C.clone(e[n[r]]);return t}return e},_merger:function(e,t,n,i){if(A(e)){var r=t[e],o=n[e];C.isObject(r)&&C.isObject(o)?C.merge(r,o,i):t[e]=C.clone(o)}},_mergerIf:function(e,t,n){if(A(e)){var i=t[e],r=n[e];C.isObject(i)&&C.isObject(r)?C.mergeIf(i,r):t.hasOwnProperty(e)||(t[e]=C.clone(r))}},merge:function(e,t,n){var i,r,o,a,s,l=C.isArray(t)?t:[t],c=l.length;if(!C.isObject(e))return e;for(i=(n=n||{}).merger||C._merger,r=0;r<c;++r)if(t=l[r],C.isObject(t))for(s=0,a=(o=Object.keys(t)).length;s<a;++s)i(o[s],e,t,n);return e},mergeIf:function(e,t){return C.merge(e,t,{merger:C._mergerIf})},extend:Object.assign||function(e){return C.merge(e,[].slice.call(arguments,1),{merger:function(e,t,n){t[e]=n[e]}})},inherits:function(e){var t=this,n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},i=function(){this.constructor=n};return i.prototype=t.prototype,n.prototype=new i,n.extend=C.inherits,e&&C.extend(n.prototype,e),n.__super__=t.prototype,n},_deprecated:function(e,t,n,i){void 0!==t&&console.warn(e+': "'+n+'" is deprecated. Please use "'+i+'" instead')}},M=C;C.callCallback=C.callback,C.indexOf=function(e,t,n){return Array.prototype.indexOf.call(e,t,n)},C.getValueOrDefault=C.valueOrDefault,C.getValueAtIndexOrDefault=C.valueAtIndexOrDefault;var k={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:1===e?1:(n||(n=.3),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:1===e?1:(n||(n=.3),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:2==(e/=.5)?1:(n||(n=.45),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),e<1?i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-k.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*k.easeInBounce(2*e):.5*k.easeOutBounce(2*e-1)+.5}},S={effects:k};M.easingEffects=k;var I=Math.PI,L=I/180,T=2*I,D=I/2,O=I/4,j=2*I/3,N={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,i,r,o){if(o){var a=Math.min(o,r/2,i/2),s=t+a,l=n+a,c=t+i-a,u=n+r-a;e.moveTo(t,l),s<c&&l<u?(e.arc(s,l,a,-I,-D),e.arc(c,l,a,-D,0),e.arc(c,u,a,0,D),e.arc(s,u,a,D,I)):s<c?(e.moveTo(s,n),e.arc(c,l,a,-D,D),e.arc(s,l,a,D,I+D)):l<u?(e.arc(s,l,a,-I,0),e.arc(s,u,a,0,I)):e.arc(s,l,a,-I,I),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,i,r)},drawPoint:function(e,t,n,i,r,o){var a,s,l,c,u,d=(o||0)*L;if(t&&"object"==typeof t&&("[object HTMLImageElement]"===(a=t.toString())||"[object HTMLCanvasElement]"===a))return e.save(),e.translate(i,r),e.rotate(d),e.drawImage(t,-t.width/2,-t.height/2,t.width,t.height),void e.restore();if(!(isNaN(n)||n<=0)){switch(e.beginPath(),t){default:e.arc(i,r,n,0,T),e.closePath();break;case"triangle":e.moveTo(i+Math.sin(d)*n,r-Math.cos(d)*n),d+=j,e.lineTo(i+Math.sin(d)*n,r-Math.cos(d)*n),d+=j,e.lineTo(i+Math.sin(d)*n,r-Math.cos(d)*n),e.closePath();break;case"rectRounded":c=n-(u=.516*n),s=Math.cos(d+O)*c,l=Math.sin(d+O)*c,e.arc(i-s,r-l,u,d-I,d-D),e.arc(i+l,r-s,u,d-D,d),e.arc(i+s,r+l,u,d,d+D),e.arc(i-l,r+s,u,d+D,d+I),e.closePath();break;case"rect":if(!o){c=Math.SQRT1_2*n,e.rect(i-c,r-c,2*c,2*c);break}d+=O;case"rectRot":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+l,r-s),e.lineTo(i+s,r+l),e.lineTo(i-l,r+s),e.closePath();break;case"crossRot":d+=O;case"cross":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+s,r+l),e.moveTo(i+l,r-s),e.lineTo(i-l,r+s);break;case"star":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+s,r+l),e.moveTo(i+l,r-s),e.lineTo(i-l,r+s),d+=O,s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+s,r+l),e.moveTo(i+l,r-s),e.lineTo(i-l,r+s);break;case"line":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+s,r+l);break;case"dash":e.moveTo(i,r),e.lineTo(i+Math.cos(d)*n,r+Math.sin(d)*n)}e.fill(),e.stroke()}},_isPointInArea:function(e,t){var n=1e-6;return e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,n,i){var r=n.steppedLine;if(r){if("middle"===r){var o=(t.x+n.x)/2;e.lineTo(o,i?n.y:t.y),e.lineTo(o,i?t.y:n.y)}else"after"===r&&!i||"after"!==r&&i?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}else n.tension?e.bezierCurveTo(i?t.controlPointPreviousX:t.controlPointNextX,i?t.controlPointPreviousY:t.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):e.lineTo(n.x,n.y)}},E=N;M.clear=N.clear,M.drawRoundedRectangle=function(e){e.beginPath(),N.roundedRect.apply(N,arguments)};var P={_set:function(e,t){return M.merge(this[e]||(this[e]={}),t)}};P._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var F=P,z=M.valueOrDefault;var R={toLineHeight:function(e,t){var n=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e},toPadding:function(e){var t,n,i,r;return M.isObject(e)?(t=+e.top||0,n=+e.right||0,i=+e.bottom||0,r=+e.left||0):t=n=i=r=+e||0,{top:t,right:n,bottom:i,left:r,height:t+i,width:r+n}},_parseFont:function(e){var t=F.global,n=z(e.fontSize,t.defaultFontSize),i={family:z(e.fontFamily,t.defaultFontFamily),lineHeight:M.options.toLineHeight(z(e.lineHeight,t.defaultLineHeight),n),size:n,style:z(e.fontStyle,t.defaultFontStyle),weight:null,string:""};return i.string=function(e){return!e||M.isNullOrUndef(e.size)||M.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(i),i},resolve:function(e,t,n,i){var r,o,a,s=!0;for(r=0,o=e.length;r<o;++r)if(void 0!==(a=e[r])&&(void 0!==t&&"function"==typeof a&&(a=a(t),s=!1),void 0!==n&&M.isArray(a)&&(a=a[n],s=!1),void 0!==a))return i&&!s&&(i.cacheable=!1),a}},B={_factorize:function(e){var t,n=[],i=Math.sqrt(e);for(t=1;t<i;t++)e%t==0&&(n.push(t),n.push(e/t));return i===(0|i)&&n.push(i),n.sort((function(e,t){return e-t})).pop(),n},log10:Math.log10||function(e){var t=Math.log(e)*Math.LOG10E,n=Math.round(t);return e===Math.pow(10,n)?n:t}},W=B;M.log10=B.log10;var Y=M,U=S,H=E,V=R,Z=W,G={getRtlAdapter:function(e,t,n){return e?function(e,t){return{x:function(n){return e+e+t-n},setWidth:function(e){t=e},textAlign:function(e){return"center"===e?e:"right"===e?"left":"right"},xPlus:function(e,t){return e-t},leftForLtr:function(e,t){return e-t}}}(t,n):{x:function(e){return e},setWidth:function(e){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e,t){return e}}},overrideTextDirection:function(e,t){var n,i;"ltr"!==t&&"rtl"!==t||(i=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=i)},restoreTextDirection:function(e){var t=e.prevTextDirection;void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}};Y.easing=U,Y.canvas=H,Y.options=V,Y.math=Z,Y.rtl=G;var Q=function(e){Y.extend(this,e),this.initialize.apply(this,arguments)};Y.extend(Q.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=Y.extend({},e._model)),e._start={},e},transition:function(e){var t=this,n=t._model,i=t._start,r=t._view;return n&&1!==e?(r||(r=t._view={}),i||(i=t._start={}),function(e,t,n,i){var r,o,a,s,l,c,u,d,h,f=Object.keys(n);for(r=0,o=f.length;r<o;++r)if(c=n[a=f[r]],t.hasOwnProperty(a)||(t[a]=c),(s=t[a])!==c&&"_"!==a[0]){if(e.hasOwnProperty(a)||(e[a]=s),(u=typeof c)==typeof(l=e[a]))if("string"===u){if((d=w(l)).valid&&(h=w(c)).valid){t[a]=h.mix(d,i).rgbString();continue}}else if(Y.isFinite(l)&&Y.isFinite(c)){t[a]=l+(c-l)*i;continue}t[a]=c}}(i,r,n,e),t):(t._view=Y.extend({},n),t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return Y.isNumber(this._model.x)&&Y.isNumber(this._model.y)}}),Q.extend=Y.inherits;var J=Q,q=J.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),X=q;Object.defineProperty(q.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(q.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}}),F._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:Y.noop,onComplete:Y.noop}});var K={animations:[],request:null,addAnimation:function(e,t,n,i){var r,o,a=this.animations;for(t.chart=e,t.startTime=Date.now(),t.duration=n,i||(e.animating=!0),r=0,o=a.length;r<o;++r)if(a[r].chart===e)return void(a[r]=t);a.push(t),1===a.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=Y.findIndex(this.animations,(function(t){return t.chart===e}));-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var e=this;null===e.request&&(e.request=Y.requestAnimFrame.call(window,(function(){e.request=null,e.startDigest()})))},startDigest:function(){var e=this;e.advance(),e.animations.length>0&&e.requestAnimationFrame()},advance:function(){for(var e,t,n,i,r=this.animations,o=0;o<r.length;)t=(e=r[o]).chart,n=e.numSteps,i=Math.floor((Date.now()-e.startTime)/e.duration*n)+1,e.currentStep=Math.min(i,n),Y.callback(e.render,[t,e],t),Y.callback(e.onAnimationProgress,[e],t),e.currentStep>=n?(Y.callback(e.onAnimationComplete,[e],t),t.animating=!1,r.splice(o,1)):++o}},$=Y.options.resolve,ee=["push","pop","shift","splice","unshift"];function te(e,t){var n=e._chartjs;if(n){var i=n.listeners,r=i.indexOf(t);-1!==r&&i.splice(r,1),i.length>0||(ee.forEach((function(t){delete e[t]})),delete e._chartjs)}}var ne=function(e,t){this.initialize(e,t)};Y.extend(ne.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(e,t){var n=this;n.chart=e,n.index=t,n.linkScales(),n.addElements(),n._type=n.getMeta().type},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),n=e.chart,i=n.scales,r=e.getDataset(),o=n.options.scales;null!==t.xAxisID&&t.xAxisID in i&&!r.xAxisID||(t.xAxisID=r.xAxisID||o.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in i&&!r.yAxisID||(t.yAxisID=r.yAxisID||o.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&te(this._data,this)},createMetaDataset:function(){var e=this,t=e.datasetElementType;return t&&new t({_chart:e.chart,_datasetIndex:e.index})},createMetaData:function(e){var t=this,n=t.dataElementType;return n&&new n({_chart:t.chart,_datasetIndex:t.index,_index:e})},addElements:function(){var e,t,n=this,i=n.getMeta(),r=n.getDataset().data||[],o=i.data;for(e=0,t=r.length;e<t;++e)o[e]=o[e]||n.createMetaData(e);i.dataset=i.dataset||n.createMetaDataset()},addElementAndReset:function(e){var t=this.createMetaData(e);this.getMeta().data.splice(e,0,t),this.updateElement(t,e,!0)},buildOrUpdateElements:function(){var e,t,n=this,i=n.getDataset(),r=i.data||(i.data=[]);n._data!==r&&(n._data&&te(n._data,n),r&&Object.isExtensible(r)&&(t=n,(e=r)._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),ee.forEach((function(t){var n="onData"+t.charAt(0).toUpperCase()+t.slice(1),i=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){var t=Array.prototype.slice.call(arguments),r=i.apply(this,t);return Y.each(e._chartjs.listeners,(function(e){"function"==typeof e[n]&&e[n].apply(e,t)})),r}})})))),n._data=r),n.resyncElements()},_configure:function(){var e=this;e._config=Y.merge(Object.create(null),[e.chart.options.datasets[e._type],e.getDataset()],{merger:function(e,t,n){"_meta"!==e&&"data"!==e&&Y._merger(e,t,n)}})},_update:function(e){var t=this;t._configure(),t._cachedDataOpts=null,t.update(e)},update:Y.noop,transition:function(e){for(var t=this.getMeta(),n=t.data||[],i=n.length,r=0;r<i;++r)n[r].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],n=t.length,i=0;for(e.dataset&&e.dataset.draw();i<n;++i)t[i].draw()},getStyle:function(e){var t,n=this,i=n.getMeta(),r=i.dataset;return n._configure(),r&&void 0===e?t=n._resolveDatasetElementOptions(r||{}):(e=e||0,t=n._resolveDataElementOptions(i.data[e]||{},e)),!1!==t.fill&&null!==t.fill||(t.backgroundColor=t.borderColor),t},_resolveDatasetElementOptions:function(e,t){var n,i,r,o,a=this,s=a.chart,l=a._config,c=e.custom||{},u=s.options.elements[a.datasetElementType.prototype._type]||{},d=a._datasetElementOptions,h={},f={chart:s,dataset:a.getDataset(),datasetIndex:a.index,hover:t};for(n=0,i=d.length;n<i;++n)r=d[n],o=t?"hover"+r.charAt(0).toUpperCase()+r.slice(1):r,h[r]=$([c[o],l[o],u[o]],f);return h},_resolveDataElementOptions:function(e,t){var n=this,i=e&&e.custom,r=n._cachedDataOpts;if(r&&!i)return r;var o,a,s,l,c=n.chart,u=n._config,d=c.options.elements[n.dataElementType.prototype._type]||{},h=n._dataElementOptions,f={},p={chart:c,dataIndex:t,dataset:n.getDataset(),datasetIndex:n.index},g={cacheable:!i};if(i=i||{},Y.isArray(h))for(a=0,s=h.length;a<s;++a)f[l=h[a]]=$([i[l],u[l],d[l]],p,t,g);else for(a=0,s=(o=Object.keys(h)).length;a<s;++a)f[l=o[a]]=$([i[l],u[h[l]],u[l],d[l]],p,t,g);return g.cacheable&&(n._cachedDataOpts=Object.freeze(f)),f},removeHoverStyle:function(e){Y.merge(e._model,e.$previousStyle||{}),delete e.$previousStyle},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,i=e.custom||{},r=e._model,o=Y.getHoverColor;e.$previousStyle={backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderWidth:r.borderWidth},r.backgroundColor=$([i.hoverBackgroundColor,t.hoverBackgroundColor,o(r.backgroundColor)],void 0,n),r.borderColor=$([i.hoverBorderColor,t.hoverBorderColor,o(r.borderColor)],void 0,n),r.borderWidth=$([i.hoverBorderWidth,t.hoverBorderWidth,r.borderWidth],void 0,n)},_removeDatasetHoverStyle:function(){var e=this.getMeta().dataset;e&&this.removeHoverStyle(e)},_setDatasetHoverStyle:function(){var e,t,n,i,r,o,a=this.getMeta().dataset,s={};if(a){for(o=a._model,r=this._resolveDatasetElementOptions(a,!0),e=0,t=(i=Object.keys(r)).length;e<t;++e)s[n=i[e]]=o[n],o[n]=r[n];a.$previousStyle=s}},resyncElements:function(){var e=this,t=e.getMeta(),n=e.getDataset().data,i=t.data.length,r=n.length;r<i?t.data.splice(r,i-r):r>i&&e.insertElements(i,r-i)},insertElements:function(e,t){for(var n=0;n<t;++n)this.addElementAndReset(e+n)},onDataPush:function(){var e=arguments.length;this.insertElements(this.getDataset().data.length-e,e)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(e,t){this.getMeta().data.splice(e,t),this.insertElements(e,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),ne.extend=Y.inherits;var ie=ne,re=2*Math.PI;function oe(e,t){var n=t.startAngle,i=t.endAngle,r=t.pixelMargin,o=r/t.outerRadius,a=t.x,s=t.y;e.beginPath(),e.arc(a,s,t.outerRadius,n-o,i+o),t.innerRadius>r?(o=r/t.innerRadius,e.arc(a,s,t.innerRadius-r,i+o,n-o,!0)):e.arc(a,s,r,i+Math.PI/2,n-Math.PI/2),e.closePath(),e.clip()}function ae(e,t,n){var i="inner"===t.borderAlign;i?(e.lineWidth=2*t.borderWidth,e.lineJoin="round"):(e.lineWidth=t.borderWidth,e.lineJoin="bevel"),n.fullCircles&&function(e,t,n,i){var r,o=n.endAngle;for(i&&(n.endAngle=n.startAngle+re,oe(e,n),n.endAngle=o,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=re,n.fullCircles--)),e.beginPath(),e.arc(n.x,n.y,n.innerRadius,n.startAngle+re,n.startAngle,!0),r=0;r<n.fullCircles;++r)e.stroke();for(e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.startAngle+re),r=0;r<n.fullCircles;++r)e.stroke()}(e,t,n,i),i&&oe(e,n),e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.endAngle),e.arc(n.x,n.y,n.innerRadius,n.endAngle,n.startAngle,!0),e.closePath(),e.stroke()}F._set("global",{elements:{arc:{backgroundColor:F.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var se=J.extend({_type:"arc",inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(e,t){var n=this._view;if(n){for(var i=Y.getAngleFromPoint(n,{x:e,y:t}),r=i.angle,o=i.distance,a=n.startAngle,s=n.endAngle;s<a;)s+=re;for(;r>s;)r-=re;for(;r<a;)r+=re;var l=r>=a&&r<=s,c=o>=n.innerRadius&&o<=n.outerRadius;return l&&c}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e,t=this._chart.ctx,n=this._view,i="inner"===n.borderAlign?.33:0,r={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-i,0),pixelMargin:i,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/re)};if(t.save(),t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,r.fullCircles){for(r.endAngle=r.startAngle+re,t.beginPath(),t.arc(r.x,r.y,r.outerRadius,r.startAngle,r.endAngle),t.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),t.closePath(),e=0;e<r.fullCircles;++e)t.fill();r.endAngle=r.startAngle+n.circumference%re}t.beginPath(),t.arc(r.x,r.y,r.outerRadius,r.startAngle,r.endAngle),t.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),t.closePath(),t.fill(),n.borderWidth&&ae(t,n,r),t.restore()}}),le=Y.valueOrDefault,ce=F.global.defaultColor;F._set("global",{elements:{line:{tension:.4,backgroundColor:ce,borderWidth:3,borderColor:ce,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var ue=J.extend({_type:"line",draw:function(){var e,t,n,i=this,r=i._view,o=i._chart.ctx,a=r.spanGaps,s=i._children.slice(),l=F.global,c=l.elements.line,u=-1,d=i._loop;if(s.length){if(i._loop){for(e=0;e<s.length;++e)if(t=Y.previousItem(s,e),!s[e]._view.skip&&t._view.skip){s=s.slice(e).concat(s.slice(0,e)),d=a;break}d&&s.push(s[0])}for(o.save(),o.lineCap=r.borderCapStyle||c.borderCapStyle,o.setLineDash&&o.setLineDash(r.borderDash||c.borderDash),o.lineDashOffset=le(r.borderDashOffset,c.borderDashOffset),o.lineJoin=r.borderJoinStyle||c.borderJoinStyle,o.lineWidth=le(r.borderWidth,c.borderWidth),o.strokeStyle=r.borderColor||l.defaultColor,o.beginPath(),(n=s[0]._view).skip||(o.moveTo(n.x,n.y),u=0),e=1;e<s.length;++e)n=s[e]._view,t=-1===u?Y.previousItem(s,e):s[u],n.skip||(u!==e-1&&!a||-1===u?o.moveTo(n.x,n.y):Y.canvas.lineTo(o,t._view,n),u=e);d&&o.closePath(),o.stroke(),o.restore()}}}),de=Y.valueOrDefault,he=F.global.defaultColor;function fe(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}F._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:he,borderColor:he,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var pe=J.extend({_type:"point",inRange:function(e,t){var n=this._view;return!!n&&Math.pow(e-n.x,2)+Math.pow(t-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:fe,inXRange:fe,inYRange:function(e){var t=this._view;return!!t&&Math.abs(e-t.y)<t.radius+t.hitRadius},getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var t=this._view,n=this._chart.ctx,i=t.pointStyle,r=t.rotation,o=t.radius,a=t.x,s=t.y,l=F.global,c=l.defaultColor;t.skip||(void 0===e||Y.canvas._isPointInArea(t,e))&&(n.strokeStyle=t.borderColor||c,n.lineWidth=de(t.borderWidth,l.elements.point.borderWidth),n.fillStyle=t.backgroundColor||c,Y.canvas.drawPoint(n,i,o,a,s,r))}}),ge=F.global.defaultColor;function me(e){return e&&void 0!==e.width}function ve(e){var t,n,i,r,o;return me(e)?(o=e.width/2,t=e.x-o,n=e.x+o,i=Math.min(e.y,e.base),r=Math.max(e.y,e.base)):(o=e.height/2,t=Math.min(e.x,e.base),n=Math.max(e.x,e.base),i=e.y-o,r=e.y+o),{left:t,top:i,right:n,bottom:r}}function ye(e,t,n){return e===t?n:e===n?t:e}function be(e,t,n){var i,r,o,a,s=e.borderWidth,l=function(e){var t=e.borderSkipped,n={};return t?(e.horizontal?e.base>e.x&&(t=ye(t,"left","right")):e.base<e.y&&(t=ye(t,"bottom","top")),n[t]=!0,n):n}(e);return Y.isObject(s)?(i=+s.top||0,r=+s.right||0,o=+s.bottom||0,a=+s.left||0):i=r=o=a=+s||0,{t:l.top||i<0?0:i>n?n:i,r:l.right||r<0?0:r>t?t:r,b:l.bottom||o<0?0:o>n?n:o,l:l.left||a<0?0:a>t?t:a}}function xe(e,t,n){var i=null===t,r=null===n,o=!(!e||i&&r)&&ve(e);return o&&(i||t>=o.left&&t<=o.right)&&(r||n>=o.top&&n<=o.bottom)}F._set("global",{elements:{rectangle:{backgroundColor:ge,borderColor:ge,borderSkipped:"bottom",borderWidth:0}}});var we=J.extend({_type:"rectangle",draw:function(){var e=this._chart.ctx,t=this._view,n=function(e){var t=ve(e),n=t.right-t.left,i=t.bottom-t.top,r=be(e,n/2,i/2);return{outer:{x:t.left,y:t.top,w:n,h:i},inner:{x:t.left+r.l,y:t.top+r.t,w:n-r.l-r.r,h:i-r.t-r.b}}}(t),i=n.outer,r=n.inner;e.fillStyle=t.backgroundColor,e.fillRect(i.x,i.y,i.w,i.h),i.w===r.w&&i.h===r.h||(e.save(),e.beginPath(),e.rect(i.x,i.y,i.w,i.h),e.clip(),e.fillStyle=t.borderColor,e.rect(r.x,r.y,r.w,r.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return xe(this._view,e,t)},inLabelRange:function(e,t){var n=this._view;return me(n)?xe(n,e,null):xe(n,null,t)},inXRange:function(e){return xe(this._view,e,null)},inYRange:function(e){return xe(this._view,null,e)},getCenterPoint:function(){var e,t,n=this._view;return me(n)?(e=n.x,t=(n.y+n.base)/2):(e=(n.x+n.base)/2,t=n.y),{x:e,y:t}},getArea:function(){var e=this._view;return me(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}}),Ae={},_e=se,Ce=ue,Me=pe,ke=we;Ae.Arc=_e,Ae.Line=Ce,Ae.Point=Me,Ae.Rectangle=ke;var Se=Y._deprecated,Ie=Y.valueOrDefault;function Le(e,t,n){var i,r,o=n.barThickness,a=t.stackCount,s=t.pixels[e],l=Y.isNullOrUndef(o)?function(e,t){var n,i,r,o,a=e._length;for(r=1,o=t.length;r<o;++r)a=Math.min(a,Math.abs(t[r]-t[r-1]));for(r=0,o=e.getTicks().length;r<o;++r)i=e.getPixelForTick(r),a=r>0?Math.min(a,Math.abs(i-n)):a,n=i;return a}(t.scale,t.pixels):-1;return Y.isNullOrUndef(o)?(i=l*n.categoryPercentage,r=n.barPercentage):(i=o*a,r=1),{chunk:i/a,ratio:r,start:s-i/2}}F._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),F._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var Te=ie.extend({dataElementType:Ae.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var e,t,n=this;ie.prototype.initialize.apply(n,arguments),(e=n.getMeta()).stack=n.getDataset().stack,e.bar=!0,t=n._getIndexScale().options,Se("bar chart",t.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),Se("bar chart",t.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),Se("bar chart",t.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),Se("bar chart",n._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),Se("bar chart",t.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(e){var t,n,i=this,r=i.getMeta().data;for(i._ruler=i.getRuler(),t=0,n=r.length;t<n;++t)i.updateElement(r[t],t,e)},updateElement:function(e,t,n){var i=this,r=i.getMeta(),o=i.getDataset(),a=i._resolveDataElementOptions(e,t);e._xScale=i.getScaleForId(r.xAxisID),e._yScale=i.getScaleForId(r.yAxisID),e._datasetIndex=i.index,e._index=t,e._model={backgroundColor:a.backgroundColor,borderColor:a.borderColor,borderSkipped:a.borderSkipped,borderWidth:a.borderWidth,datasetLabel:o.label,label:i.chart.data.labels[t]},Y.isArray(o.data[t])&&(e._model.borderSkipped=null),i._updateElementGeometry(e,t,n,a),e.pivot()},_updateElementGeometry:function(e,t,n,i){var r=this,o=e._model,a=r._getValueScale(),s=a.getBasePixel(),l=a.isHorizontal(),c=r._ruler||r.getRuler(),u=r.calculateBarValuePixels(r.index,t,i),d=r.calculateBarIndexPixels(r.index,t,c,i);o.horizontal=l,o.base=n?s:u.base,o.x=l?n?s:u.head:d.center,o.y=l?d.center:n?s:u.head,o.height=l?d.size:void 0,o.width=l?void 0:d.size},_getStacks:function(e){var t,n,i=this._getIndexScale(),r=i._getMatchingVisibleMetas(this._type),o=i.options.stacked,a=r.length,s=[];for(t=0;t<a&&(n=r[t],(!1===o||-1===s.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&s.push(n.stack),n.index!==e);++t);return s},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,t){var n=this._getStacks(e),i=void 0!==t?n.indexOf(t):-1;return-1===i?n.length-1:i},getRuler:function(){var e,t,n=this,i=n._getIndexScale(),r=[];for(e=0,t=n.getMeta().data.length;e<t;++e)r.push(i.getPixelForValue(null,e,n.index));return{pixels:r,start:i._startPixel,end:i._endPixel,stackCount:n.getStackCount(),scale:i}},calculateBarValuePixels:function(e,t,n){var i,r,o,a,s,l,c,u=this,d=u.chart,h=u._getValueScale(),f=h.isHorizontal(),p=d.data.datasets,g=h._getMatchingVisibleMetas(u._type),m=h._parseValue(p[e].data[t]),v=n.minBarLength,y=h.options.stacked,b=u.getMeta().stack,x=void 0===m.start?0:m.max>=0&&m.min>=0?m.min:m.max,w=void 0===m.start?m.end:m.max>=0&&m.min>=0?m.max-m.min:m.min-m.max,A=g.length;if(y||void 0===y&&void 0!==b)for(i=0;i<A&&(r=g[i]).index!==e;++i)r.stack===b&&(o=void 0===(c=h._parseValue(p[r.index].data[t])).start?c.end:c.min>=0&&c.max>=0?c.max:c.min,(m.min<0&&o<0||m.max>=0&&o>0)&&(x+=o));return a=h.getPixelForValue(x),l=(s=h.getPixelForValue(x+w))-a,void 0!==v&&Math.abs(l)<v&&(l=v,s=w>=0&&!f||w<0&&f?a-v:a+v),{size:l,base:a,head:s,center:s+l/2}},calculateBarIndexPixels:function(e,t,n,i){var r="flex"===i.barThickness?function(e,t,n){var i,r=t.pixels,o=r[e],a=e>0?r[e-1]:null,s=e<r.length-1?r[e+1]:null,l=n.categoryPercentage;return null===a&&(a=o-(null===s?t.end-t.start:s-o)),null===s&&(s=o+o-a),i=o-(o-Math.min(a,s))/2*l,{chunk:Math.abs(s-a)/2*l/t.stackCount,ratio:n.barPercentage,start:i}}(t,n,i):Le(t,n,i),o=this.getStackIndex(e,this.getMeta().stack),a=r.start+r.chunk*o+r.chunk/2,s=Math.min(Ie(i.maxBarThickness,1/0),r.chunk*r.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}},draw:function(){var e=this,t=e.chart,n=e._getValueScale(),i=e.getMeta().data,r=e.getDataset(),o=i.length,a=0;for(Y.canvas.clipArea(t.ctx,t.chartArea);a<o;++a){var s=n._parseValue(r.data[a]);isNaN(s.min)||isNaN(s.max)||i[a].draw()}Y.canvas.unclipArea(t.ctx)},_resolveDataElementOptions:function(){var e=this,t=Y.extend({},ie.prototype._resolveDataElementOptions.apply(e,arguments)),n=e._getIndexScale().options,i=e._getValueScale().options;return t.barPercentage=Ie(n.barPercentage,t.barPercentage),t.barThickness=Ie(n.barThickness,t.barThickness),t.categoryPercentage=Ie(n.categoryPercentage,t.categoryPercentage),t.maxBarThickness=Ie(n.maxBarThickness,t.maxBarThickness),t.minBarLength=Ie(i.minBarLength,t.minBarLength),t}}),De=Y.valueOrDefault,Oe=Y.options.resolve;F._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.datasets[e.datasetIndex].label||"",i=t.datasets[e.datasetIndex].data[e.index];return n+": ("+e.xLabel+", "+e.yLabel+", "+i.r+")"}}}});var je=ie.extend({dataElementType:Ae.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(e){var t=this,n=t.getMeta().data;Y.each(n,(function(n,i){t.updateElement(n,i,e)}))},updateElement:function(e,t,n){var i=this,r=i.getMeta(),o=e.custom||{},a=i.getScaleForId(r.xAxisID),s=i.getScaleForId(r.yAxisID),l=i._resolveDataElementOptions(e,t),c=i.getDataset().data[t],u=i.index,d=n?a.getPixelForDecimal(.5):a.getPixelForValue("object"==typeof c?c:NaN,t,u),h=n?s.getBasePixel():s.getPixelForValue(c,t,u);e._xScale=a,e._yScale=s,e._options=l,e._datasetIndex=u,e._index=t,e._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,rotation:l.rotation,radius:n?0:l.radius,skip:o.skip||isNaN(d)||isNaN(h),x:d,y:h},e.pivot()},setHoverStyle:function(e){var t=e._model,n=e._options,i=Y.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=De(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=De(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=De(n.hoverBorderWidth,n.borderWidth),t.radius=n.radius+n.hoverRadius},_resolveDataElementOptions:function(e,t){var n=this,i=n.chart,r=n.getDataset(),o=e.custom||{},a=r.data[t]||{},s=ie.prototype._resolveDataElementOptions.apply(n,arguments),l={chart:i,dataIndex:t,dataset:r,datasetIndex:n.index};return n._cachedDataOpts===s&&(s=Y.extend({},s)),s.radius=Oe([o.radius,a.r,n._config.radius,i.options.elements.point.radius],l,t),s}}),Ne=Y.valueOrDefault,Ee=Math.PI,Pe=2*Ee,Fe=Ee/2;F._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t,n,i,r=document.createElement("ul"),o=e.data,a=o.datasets,s=o.labels;if(r.setAttribute("class",e.id+"-legend"),a.length)for(t=0,n=a[0].data.length;t<n;++t)(i=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=a[0].backgroundColor[t],s[t]&&i.appendChild(document.createTextNode(s[t]));return r.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(n,i){var r=e.getDatasetMeta(0),o=r.controller.getStyle(i);return{text:n,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,hidden:isNaN(t.datasets[0].data[i])||r.data[i].hidden,index:i}})):[]}},onClick:function(e,t){var n,i,r,o=t.index,a=this.chart;for(n=0,i=(a.data.datasets||[]).length;n<i;++n)(r=a.getDatasetMeta(n)).data[o]&&(r.data[o].hidden=!r.data[o].hidden);a.update()}},cutoutPercentage:50,rotation:-Fe,circumference:Pe,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.labels[e.index],i=": "+t.datasets[e.datasetIndex].data[e.index];return Y.isArray(n)?(n=n.slice())[0]+=i:n+=i,n}}}});var ze=ie.extend({dataElementType:Ae.Arc,linkScales:Y.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],getRingIndex:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&++t;return t},update:function(e){var t,n,i,r,o=this,a=o.chart,s=a.chartArea,l=a.options,c=1,u=1,d=0,h=0,f=o.getMeta(),p=f.data,g=l.cutoutPercentage/100||0,m=l.circumference,v=o._getRingWeight(o.index);if(m<Pe){var y=l.rotation%Pe,b=(y+=y>=Ee?-Pe:y<-Ee?Pe:0)+m,x=Math.cos(y),w=Math.sin(y),A=Math.cos(b),_=Math.sin(b),C=y<=0&&b>=0||b>=Pe,M=y<=Fe&&b>=Fe||b>=Pe+Fe,k=y<=-Fe&&b>=-Fe||b>=Ee+Fe,S=y===-Ee||b>=Ee?-1:Math.min(x,x*g,A,A*g),I=k?-1:Math.min(w,w*g,_,_*g),L=C?1:Math.max(x,x*g,A,A*g),T=M?1:Math.max(w,w*g,_,_*g);c=(L-S)/2,u=(T-I)/2,d=-(L+S)/2,h=-(T+I)/2}for(i=0,r=p.length;i<r;++i)p[i]._options=o._resolveDataElementOptions(p[i],i);for(a.borderWidth=o.getMaxBorderWidth(),t=(s.right-s.left-a.borderWidth)/c,n=(s.bottom-s.top-a.borderWidth)/u,a.outerRadius=Math.max(Math.min(t,n)/2,0),a.innerRadius=Math.max(a.outerRadius*g,0),a.radiusLength=(a.outerRadius-a.innerRadius)/(o._getVisibleDatasetWeightTotal()||1),a.offsetX=d*a.outerRadius,a.offsetY=h*a.outerRadius,f.total=o.calculateTotal(),o.outerRadius=a.outerRadius-a.radiusLength*o._getRingWeightOffset(o.index),o.innerRadius=Math.max(o.outerRadius-a.radiusLength*v,0),i=0,r=p.length;i<r;++i)o.updateElement(p[i],i,e)},updateElement:function(e,t,n){var i=this,r=i.chart,o=r.chartArea,a=r.options,s=a.animation,l=(o.left+o.right)/2,c=(o.top+o.bottom)/2,u=a.rotation,d=a.rotation,h=i.getDataset(),f=n&&s.animateRotate||e.hidden?0:i.calculateCircumference(h.data[t])*(a.circumference/Pe),p=n&&s.animateScale?0:i.innerRadius,g=n&&s.animateScale?0:i.outerRadius,m=e._options||{};Y.extend(e,{_datasetIndex:i.index,_index:t,_model:{backgroundColor:m.backgroundColor,borderColor:m.borderColor,borderWidth:m.borderWidth,borderAlign:m.borderAlign,x:l+r.offsetX,y:c+r.offsetY,startAngle:u,endAngle:d,circumference:f,outerRadius:g,innerRadius:p,label:Y.valueAtIndexOrDefault(h.label,t,r.data.labels[t])}});var v=e._model;n&&s.animateRotate||(v.startAngle=0===t?a.rotation:i.getMeta().data[t-1]._model.endAngle,v.endAngle=v.startAngle+v.circumference),e.pivot()},calculateTotal:function(){var e,t=this.getDataset(),n=this.getMeta(),i=0;return Y.each(n.data,(function(n,r){e=t.data[r],isNaN(e)||n.hidden||(i+=Math.abs(e))})),i},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?Pe*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t,n,i,r,o,a,s,l,c=0,u=this.chart;if(!e)for(t=0,n=u.data.datasets.length;t<n;++t)if(u.isDatasetVisible(t)){e=(i=u.getDatasetMeta(t)).data,t!==this.index&&(o=i.controller);break}if(!e)return 0;for(t=0,n=e.length;t<n;++t)r=e[t],o?(o._configure(),a=o._resolveDataElementOptions(r,t)):a=r._options,"inner"!==a.borderAlign&&(s=a.borderWidth,c=(l=a.hoverBorderWidth)>(c=s>c?s:c)?l:c);return c},setHoverStyle:function(e){var t=e._model,n=e._options,i=Y.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=Ne(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=Ne(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=Ne(n.hoverBorderWidth,n.borderWidth)},_getRingWeightOffset:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t},_getRingWeight:function(e){return Math.max(Ne(this.chart.data.datasets[e].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});F._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}}),F._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var Re=Te.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),Be=Y.valueOrDefault,We=Y.options.resolve,Ye=Y.canvas._isPointInArea;function Ue(e,t){var n=e&&e.options.ticks||{},i=n.reverse,r=void 0===n.min?t:0,o=void 0===n.max?t:0;return{start:i?o:r,end:i?r:o}}F._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var He=ie.extend({datasetElementType:Ae.Line,dataElementType:Ae.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(e){var t,n,i=this,r=i.getMeta(),o=r.dataset,a=r.data||[],s=i.chart.options,l=i._config,c=i._showLine=Be(l.showLine,s.showLines);for(i._xScale=i.getScaleForId(r.xAxisID),i._yScale=i.getScaleForId(r.yAxisID),c&&(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),o._scale=i._yScale,o._datasetIndex=i.index,o._children=a,o._model=i._resolveDatasetElementOptions(o),o.pivot()),t=0,n=a.length;t<n;++t)i.updateElement(a[t],t,e);for(c&&0!==o._model.tension&&i.updateBezierControlPoints(),t=0,n=a.length;t<n;++t)a[t].pivot()},updateElement:function(e,t,n){var i,r,o=this,a=o.getMeta(),s=e.custom||{},l=o.getDataset(),c=o.index,u=l.data[t],d=o._xScale,h=o._yScale,f=a.dataset._model,p=o._resolveDataElementOptions(e,t);i=d.getPixelForValue("object"==typeof u?u:NaN,t,c),r=n?h.getBasePixel():o.calculatePointY(u,t,c),e._xScale=d,e._yScale=h,e._options=p,e._datasetIndex=c,e._index=t,e._model={x:i,y:r,skip:s.skip||isNaN(i)||isNaN(r),radius:p.radius,pointStyle:p.pointStyle,rotation:p.rotation,backgroundColor:p.backgroundColor,borderColor:p.borderColor,borderWidth:p.borderWidth,tension:Be(s.tension,f?f.tension:0),steppedLine:!!f&&f.steppedLine,hitRadius:p.hitRadius}},_resolveDatasetElementOptions:function(e){var t,n,i,r,o,a,s,l,c,u,d,h=this,f=h._config,p=e.custom||{},g=h.chart.options,m=g.elements.line,v=ie.prototype._resolveDatasetElementOptions.apply(h,arguments);return v.spanGaps=Be(f.spanGaps,g.spanGaps),v.tension=Be(f.lineTension,m.tension),v.steppedLine=We([p.steppedLine,f.steppedLine,m.stepped]),v.clip=(t=Be(f.clip,(a=h._xScale,s=h._yScale,l=v.borderWidth,u=Ue(a,c=l/2),{top:(d=Ue(s,c)).end,right:u.end,bottom:d.start,left:u.start})),Y.isObject(t)?(n=t.top,i=t.right,r=t.bottom,o=t.left):n=i=r=o=t,{top:n,right:i,bottom:r,left:o}),v},calculatePointY:function(e,t,n){var i,r,o,a,s,l,c,u=this.chart,d=this._yScale,h=0,f=0;if(d.options.stacked){for(s=+d.getRightValue(e),c=(l=u._getSortedVisibleDatasetMetas()).length,i=0;i<c&&(o=l[i]).index!==n;++i)r=u.data.datasets[o.index],"line"===o.type&&o.yAxisID===d.id&&((a=+d.getRightValue(r.data[t]))<0?f+=a||0:h+=a||0);return s<0?d.getPixelForValue(f+s):d.getPixelForValue(h+s)}return d.getPixelForValue(e)},updateBezierControlPoints:function(){var e,t,n,i,r=this.chart,o=this.getMeta(),a=o.dataset._model,s=r.chartArea,l=o.data||[];function c(e,t,n){return Math.max(Math.min(e,n),t)}if(a.spanGaps&&(l=l.filter((function(e){return!e._model.skip}))),"monotone"===a.cubicInterpolationMode)Y.splineCurveMonotone(l);else for(e=0,t=l.length;e<t;++e)n=l[e]._model,i=Y.splineCurve(Y.previousItem(l,e)._model,n,Y.nextItem(l,e)._model,a.tension),n.controlPointPreviousX=i.previous.x,n.controlPointPreviousY=i.previous.y,n.controlPointNextX=i.next.x,n.controlPointNextY=i.next.y;if(r.options.elements.line.capBezierPoints)for(e=0,t=l.length;e<t;++e)n=l[e]._model,Ye(n,s)&&(e>0&&Ye(l[e-1]._model,s)&&(n.controlPointPreviousX=c(n.controlPointPreviousX,s.left,s.right),n.controlPointPreviousY=c(n.controlPointPreviousY,s.top,s.bottom)),e<l.length-1&&Ye(l[e+1]._model,s)&&(n.controlPointNextX=c(n.controlPointNextX,s.left,s.right),n.controlPointNextY=c(n.controlPointNextY,s.top,s.bottom)))},draw:function(){var e,t=this,n=t.chart,i=t.getMeta(),r=i.data||[],o=n.chartArea,a=n.canvas,s=0,l=r.length;for(t._showLine&&(e=i.dataset._model.clip,Y.canvas.clipArea(n.ctx,{left:!1===e.left?0:o.left-e.left,right:!1===e.right?a.width:o.right+e.right,top:!1===e.top?0:o.top-e.top,bottom:!1===e.bottom?a.height:o.bottom+e.bottom}),i.dataset.draw(),Y.canvas.unclipArea(n.ctx));s<l;++s)r[s].draw(o)},setHoverStyle:function(e){var t=e._model,n=e._options,i=Y.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Be(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=Be(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=Be(n.hoverBorderWidth,n.borderWidth),t.radius=Be(n.hoverRadius,n.radius)}}),Ve=Y.options.resolve;F._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(e){var t,n,i,r=document.createElement("ul"),o=e.data,a=o.datasets,s=o.labels;if(r.setAttribute("class",e.id+"-legend"),a.length)for(t=0,n=a[0].data.length;t<n;++t)(i=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=a[0].backgroundColor[t],s[t]&&i.appendChild(document.createTextNode(s[t]));return r.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(n,i){var r=e.getDatasetMeta(0),o=r.controller.getStyle(i);return{text:n,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,hidden:isNaN(t.datasets[0].data[i])||r.data[i].hidden,index:i}})):[]}},onClick:function(e,t){var n,i,r,o=t.index,a=this.chart;for(n=0,i=(a.data.datasets||[]).length;n<i;++n)(r=a.getDatasetMeta(n)).data[o].hidden=!r.data[o].hidden;a.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}});var Ze=ie.extend({dataElementType:Ae.Arc,linkScales:Y.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,i,r=this,o=r.getDataset(),a=r.getMeta(),s=r.chart.options.startAngle||0,l=r._starts=[],c=r._angles=[],u=a.data;for(r._updateRadius(),a.count=r.countVisibleElements(),t=0,n=o.data.length;t<n;t++)l[t]=s,i=r._computeAngle(t),c[t]=i,s+=i;for(t=0,n=u.length;t<n;++t)u[t]._options=r._resolveDataElementOptions(u[t],t),r.updateElement(u[t],t,e)},_updateRadius:function(){var e=this,t=e.chart,n=t.chartArea,i=t.options,r=Math.min(n.right-n.left,n.bottom-n.top);t.outerRadius=Math.max(r/2,0),t.innerRadius=Math.max(i.cutoutPercentage?t.outerRadius/100*i.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),e.outerRadius=t.outerRadius-t.radiusLength*e.index,e.innerRadius=e.outerRadius-t.radiusLength},updateElement:function(e,t,n){var i=this,r=i.chart,o=i.getDataset(),a=r.options,s=a.animation,l=r.scale,c=r.data.labels,u=l.xCenter,d=l.yCenter,h=a.startAngle,f=e.hidden?0:l.getDistanceFromCenterForValue(o.data[t]),p=i._starts[t],g=p+(e.hidden?0:i._angles[t]),m=s.animateScale?0:l.getDistanceFromCenterForValue(o.data[t]),v=e._options||{};Y.extend(e,{_datasetIndex:i.index,_index:t,_scale:l,_model:{backgroundColor:v.backgroundColor,borderColor:v.borderColor,borderWidth:v.borderWidth,borderAlign:v.borderAlign,x:u,y:d,innerRadius:0,outerRadius:n?m:f,startAngle:n&&s.animateRotate?h:p,endAngle:n&&s.animateRotate?h:g,label:Y.valueAtIndexOrDefault(c,t,c[t])}}),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),n=0;return Y.each(t.data,(function(t,i){isNaN(e.data[i])||t.hidden||n++})),n},setHoverStyle:function(e){var t=e._model,n=e._options,i=Y.getHoverColor,r=Y.valueOrDefault;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=r(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=r(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=r(n.hoverBorderWidth,n.borderWidth)},_computeAngle:function(e){var t=this,n=this.getMeta().count,i=t.getDataset(),r=t.getMeta();if(isNaN(i.data[e])||r.data[e].hidden)return 0;var o={chart:t.chart,dataIndex:e,dataset:i,datasetIndex:t.index};return Ve([t.chart.options.elements.arc.angle,2*Math.PI/n],o,e)}});F._set("pie",Y.clone(F.doughnut)),F._set("pie",{cutoutPercentage:0});var Ge=ze,Qe=Y.valueOrDefault;F._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var Je=ie.extend({datasetElementType:Ae.Line,dataElementType:Ae.Point,linkScales:Y.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,i=this,r=i.getMeta(),o=r.dataset,a=r.data||[],s=i.chart.scale,l=i._config;for(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),o._scale=s,o._datasetIndex=i.index,o._children=a,o._loop=!0,o._model=i._resolveDatasetElementOptions(o),o.pivot(),t=0,n=a.length;t<n;++t)i.updateElement(a[t],t,e);for(i.updateBezierControlPoints(),t=0,n=a.length;t<n;++t)a[t].pivot()},updateElement:function(e,t,n){var i=this,r=e.custom||{},o=i.getDataset(),a=i.chart.scale,s=a.getPointPositionForValue(t,o.data[t]),l=i._resolveDataElementOptions(e,t),c=i.getMeta().dataset._model,u=n?a.xCenter:s.x,d=n?a.yCenter:s.y;e._scale=a,e._options=l,e._datasetIndex=i.index,e._index=t,e._model={x:u,y:d,skip:r.skip||isNaN(u)||isNaN(d),radius:l.radius,pointStyle:l.pointStyle,rotation:l.rotation,backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,tension:Qe(r.tension,c?c.tension:0),hitRadius:l.hitRadius}},_resolveDatasetElementOptions:function(){var e=this,t=e._config,n=e.chart.options,i=ie.prototype._resolveDatasetElementOptions.apply(e,arguments);return i.spanGaps=Qe(t.spanGaps,n.spanGaps),i.tension=Qe(t.lineTension,n.elements.line.tension),i},updateBezierControlPoints:function(){var e,t,n,i,r=this.getMeta(),o=this.chart.chartArea,a=r.data||[];function s(e,t,n){return Math.max(Math.min(e,n),t)}for(r.dataset._model.spanGaps&&(a=a.filter((function(e){return!e._model.skip}))),e=0,t=a.length;e<t;++e)n=a[e]._model,i=Y.splineCurve(Y.previousItem(a,e,!0)._model,n,Y.nextItem(a,e,!0)._model,n.tension),n.controlPointPreviousX=s(i.previous.x,o.left,o.right),n.controlPointPreviousY=s(i.previous.y,o.top,o.bottom),n.controlPointNextX=s(i.next.x,o.left,o.right),n.controlPointNextY=s(i.next.y,o.top,o.bottom)},setHoverStyle:function(e){var t=e._model,n=e._options,i=Y.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Qe(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=Qe(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=Qe(n.hoverBorderWidth,n.borderWidth),t.radius=Qe(n.hoverRadius,n.radius)}});F._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}}),F._set("global",{datasets:{scatter:{showLine:!1}}});var qe={bar:Te,bubble:je,doughnut:ze,horizontalBar:Re,line:He,polarArea:Ze,pie:Ge,radar:Je,scatter:He};function Xe(e,t){return e.native?{x:e.x,y:e.y}:Y.getRelativePosition(e,t)}function Ke(e,t){var n,i,r,o,a,s,l=e._getSortedVisibleDatasetMetas();for(i=0,o=l.length;i<o;++i)for(r=0,a=(n=l[i].data).length;r<a;++r)(s=n[r])._view.skip||t(s)}function $e(e,t){var n=[];return Ke(e,(function(e){e.inRange(t.x,t.y)&&n.push(e)})),n}function et(e,t,n,i){var r=Number.POSITIVE_INFINITY,o=[];return Ke(e,(function(e){if(!n||e.inRange(t.x,t.y)){var a=e.getCenterPoint(),s=i(t,a);s<r?(o=[e],r=s):s===r&&o.push(e)}})),o}function tt(e){var t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,i){var r=t?Math.abs(e.x-i.x):0,o=n?Math.abs(e.y-i.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(o,2))}}function nt(e,t,n){var i=Xe(t,e);n.axis=n.axis||"x";var r=tt(n.axis),o=n.intersect?$e(e,i):et(e,i,!1,r),a=[];return o.length?(e._getSortedVisibleDatasetMetas().forEach((function(e){var t=e.data[o[0]._index];t&&!t._view.skip&&a.push(t)})),a):[]}var it={modes:{single:function(e,t){var n=Xe(t,e),i=[];return Ke(e,(function(e){if(e.inRange(n.x,n.y))return i.push(e),i})),i.slice(0,1)},label:nt,index:nt,dataset:function(e,t,n){var i=Xe(t,e);n.axis=n.axis||"xy";var r=tt(n.axis),o=n.intersect?$e(e,i):et(e,i,!1,r);return o.length>0&&(o=e.getDatasetMeta(o[0]._datasetIndex).data),o},"x-axis":function(e,t){return nt(e,t,{intersect:!1})},point:function(e,t){return $e(e,Xe(t,e))},nearest:function(e,t,n){var i=Xe(t,e);n.axis=n.axis||"xy";var r=tt(n.axis);return et(e,i,n.intersect,r)},x:function(e,t,n){var i=Xe(t,e),r=[],o=!1;return Ke(e,(function(e){e.inXRange(i.x)&&r.push(e),e.inRange(i.x,i.y)&&(o=!0)})),n.intersect&&!o&&(r=[]),r},y:function(e,t,n){var i=Xe(t,e),r=[],o=!1;return Ke(e,(function(e){e.inYRange(i.y)&&r.push(e),e.inRange(i.x,i.y)&&(o=!0)})),n.intersect&&!o&&(r=[]),r}}},rt=Y.extend;function ot(e,t){return Y.where(e,(function(e){return e.pos===t}))}function at(e,t){return e.sort((function(e,n){var i=t?n:e,r=t?e:n;return i.weight===r.weight?i.index-r.index:i.weight-r.weight}))}function st(e,t,n,i){return Math.max(e[n],t[n])+Math.max(e[i],t[i])}function lt(e,t,n){var i,r,o=n.box,a=e.maxPadding;if(n.size&&(e[n.pos]-=n.size),n.size=n.horizontal?o.height:o.width,e[n.pos]+=n.size,o.getPadding){var s=o.getPadding();a.top=Math.max(a.top,s.top),a.left=Math.max(a.left,s.left),a.bottom=Math.max(a.bottom,s.bottom),a.right=Math.max(a.right,s.right)}if(i=t.outerWidth-st(a,e,"left","right"),r=t.outerHeight-st(a,e,"top","bottom"),i!==e.w||r!==e.h){e.w=i,e.h=r;var l=n.horizontal?[i,e.w]:[r,e.h];return!(l[0]===l[1]||isNaN(l[0])&&isNaN(l[1]))}}function ct(e,t){var n,i=t.maxPadding;return n={left:0,top:0,right:0,bottom:0},(e?["left","right"]:["top","bottom"]).forEach((function(e){n[e]=Math.max(t[e],i[e])})),n}function ut(e,t,n){var i,r,o,a,s,l,c=[];for(i=0,r=e.length;i<r;++i)(a=(o=e[i]).box).update(o.width||t.w,o.height||t.h,ct(o.horizontal,t)),lt(t,n,o)&&(l=!0,c.length&&(s=!0)),a.fullWidth||c.push(o);return s&&ut(c,t,n)||l}function dt(e,t,n){var i,r,o,a,s=n.padding,l=t.x,c=t.y;for(i=0,r=e.length;i<r;++i)a=(o=e[i]).box,o.horizontal?(a.left=a.fullWidth?s.left:t.left,a.right=a.fullWidth?n.outerWidth-s.right:t.left+t.w,a.top=c,a.bottom=c+a.height,a.width=a.right-a.left,c=a.bottom):(a.left=l,a.right=l+a.width,a.top=t.top,a.bottom=t.top+t.h,a.height=a.bottom-a.top,l=a.right);t.x=l,t.y=c}F._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var ht,ft={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw:function(){t.draw.apply(t,arguments)}}]},e.boxes.push(t)},removeBox:function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure:function(e,t,n){for(var i,r=["fullWidth","position","weight"],o=r.length,a=0;a<o;++a)i=r[a],n.hasOwnProperty(i)&&(t[i]=n[i])},update:function(e,t,n){if(e){var i=e.options.layout||{},r=Y.options.toPadding(i.padding),o=t-r.width,a=n-r.height,s=function(e){var t=function(e){var t,n,i,r=[];for(t=0,n=(e||[]).length;t<n;++t)i=e[t],r.push({index:t,box:i,pos:i.position,horizontal:i.isHorizontal(),weight:i.weight});return r}(e),n=at(ot(t,"left"),!0),i=at(ot(t,"right")),r=at(ot(t,"top"),!0),o=at(ot(t,"bottom"));return{leftAndTop:n.concat(r),rightAndBottom:i.concat(o),chartArea:ot(t,"chartArea"),vertical:n.concat(i),horizontal:r.concat(o)}}(e.boxes),l=s.vertical,c=s.horizontal,u=Object.freeze({outerWidth:t,outerHeight:n,padding:r,availableWidth:o,vBoxMaxWidth:o/2/l.length,hBoxMaxHeight:a/2}),d=rt({maxPadding:rt({},r),w:o,h:a,x:r.left,y:r.top},r);(function(e,t){var n,i,r;for(n=0,i=e.length;n<i;++n)(r=e[n]).width=r.horizontal?r.box.fullWidth&&t.availableWidth:t.vBoxMaxWidth,r.height=r.horizontal&&t.hBoxMaxHeight})(l.concat(c),u),ut(l,d,u),ut(c,d,u)&&ut(l,d,u),function(e){var t=e.maxPadding;function n(n){var i=Math.max(t[n]-e[n],0);return e[n]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(d),dt(s.leftAndTop,d,u),d.x+=d.w,d.y+=d.h,dt(s.rightAndBottom,d,u),e.chartArea={left:d.left,top:d.top,right:d.left+d.w,bottom:d.top+d.h},Y.each(s.chartArea,(function(t){var n=t.box;rt(n,e.chartArea),n.update(d.w,d.h)}))}}},pt=(ht=Object.freeze({__proto__:null,default:"/*\r\n * DOM element rendering detection\r\n * https://davidwalsh.name/detect-node-insertion\r\n */\r\n@keyframes chartjs-render-animation {\r\n\tfrom { opacity: 0.99; }\r\n\tto { opacity: 1; }\r\n}\r\n\r\n.chartjs-render-monitor {\r\n\tanimation: chartjs-render-animation 0.001s;\r\n}\r\n\r\n/*\r\n * DOM element resizing detection\r\n * https://github.com/marcj/css-element-queries\r\n */\r\n.chartjs-size-monitor,\r\n.chartjs-size-monitor-expand,\r\n.chartjs-size-monitor-shrink {\r\n\tposition: absolute;\r\n\tdirection: ltr;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\tvisibility: hidden;\r\n\tz-index: -1;\r\n}\r\n\r\n.chartjs-size-monitor-expand > div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n"}))&&ht.default||ht,gt="$chartjs",mt="chartjs-",vt=mt+"size-monitor",yt=mt+"render-monitor",bt=mt+"render-animation",xt=["animationstart","webkitAnimationStart"],wt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function At(e,t){var n=Y.getStyle(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?Number(i[1]):void 0}var _t=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(e){}return e}()&&{passive:!0};function Ct(e,t,n){e.addEventListener(t,n,_t)}function Mt(e,t,n){e.removeEventListener(t,n,_t)}function kt(e,t,n,i,r){return{type:e,chart:t,native:r||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function St(e){var t=document.createElement("div");return t.className=e||"",t}function It(e,t,n){var i,r,o,a,s=e[gt]||(e[gt]={}),l=s.resizer=function(e){var t=1e6,n=St(vt),i=St(vt+"-expand"),r=St(vt+"-shrink");i.appendChild(St()),r.appendChild(St()),n.appendChild(i),n.appendChild(r),n._reset=function(){i.scrollLeft=t,i.scrollTop=t,r.scrollLeft=t,r.scrollTop=t};var o=function(){n._reset(),e()};return Ct(i,"scroll",o.bind(i,"expand")),Ct(r,"scroll",o.bind(r,"shrink")),n}((i=function(){if(s.resizer){var i=n.options.maintainAspectRatio&&e.parentNode,r=i?i.clientWidth:0;t(kt("resize",n)),i&&i.clientWidth<r&&n.canvas&&t(kt("resize",n))}},o=!1,a=[],function(){a=Array.prototype.slice.call(arguments),r=r||this,o||(o=!0,Y.requestAnimFrame.call(window,(function(){o=!1,i.apply(r,a)})))}));!function(e,t){var n=e[gt]||(e[gt]={}),i=n.renderProxy=function(e){e.animationName===bt&&t()};Y.each(xt,(function(t){Ct(e,t,i)})),n.reflow=!!e.offsetParent,e.classList.add(yt)}(e,(function(){if(s.resizer){var t=e.parentNode;t&&t!==l.parentNode&&t.insertBefore(l,t.firstChild),l._reset()}}))}function Lt(e){var t=e[gt]||{},n=t.resizer;delete t.resizer,function(e){var t=e[gt]||{},n=t.renderProxy;n&&(Y.each(xt,(function(t){Mt(e,t,n)})),delete t.renderProxy),e.classList.remove(yt)}(e),n&&n.parentNode&&n.parentNode.removeChild(n)}var Tt={disableCSSInjection:!1,_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,_ensureLoaded:function(e){if(!this.disableCSSInjection){var t=e.getRootNode?e.getRootNode():document;!function(e,t){var n=e[gt]||(e[gt]={});if(!n.containsStyles){n.containsStyles=!0,t="/* Chart.js */\n"+t;var i=document.createElement("style");i.setAttribute("type","text/css"),i.appendChild(document.createTextNode(t)),e.appendChild(i)}}(t.host?t:document.head,pt)}},acquireContext:function(e,t){"string"==typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(this._ensureLoaded(e),function(e,t){var n=e.style,i=e.getAttribute("height"),r=e.getAttribute("width");if(e[gt]={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===r||""===r){var o=At(e,"width");void 0!==o&&(e.width=o)}if(null===i||""===i)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var a=At(e,"height");void 0!==o&&(e.height=a)}}(e,t),n):null},releaseContext:function(e){var t=e.canvas;if(t[gt]){var n=t[gt].initial;["height","width"].forEach((function(e){var i=n[e];Y.isNullOrUndef(i)?t.removeAttribute(e):t.setAttribute(e,i)})),Y.each(n.style||{},(function(e,n){t.style[n]=e})),t.width=t.width,delete t[gt]}},addEventListener:function(e,t,n){var i=e.canvas;if("resize"!==t){var r=n[gt]||(n[gt]={});Ct(i,t,(r.proxies||(r.proxies={}))[e.id+"_"+t]=function(t){n(function(e,t){var n=wt[e.type]||e.type,i=Y.getRelativePosition(e,t);return kt(n,t,i.x,i.y,e)}(t,e))})}else It(i,n,e)},removeEventListener:function(e,t,n){var i=e.canvas;if("resize"!==t){var r=((n[gt]||{}).proxies||{})[e.id+"_"+t];r&&Mt(i,t,r)}else Lt(i)}};Y.addEvent=Ct,Y.removeEvent=Mt;var Dt=Tt._enabled?Tt:{acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}},Ot=Y.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},Dt);F._set("global",{plugins:{}});var jt={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach((function(e){-1===t.indexOf(e)&&t.push(e)})),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach((function(e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)})),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,n){var i,r,o,a,s,l=this.descriptors(e),c=l.length;for(i=0;i<c;++i)if("function"==typeof(s=(o=(r=l[i]).plugin)[t])&&((a=[e].concat(n||[])).push(r.options),!1===s.apply(o,a)))return!1;return!0},descriptors:function(e){var t=e.$plugins||(e.$plugins={});if(t.id===this._cacheId)return t.descriptors;var n=[],i=[],r=e&&e.config||{},o=r.options&&r.options.plugins||{};return this._plugins.concat(r.plugins||[]).forEach((function(e){if(-1===n.indexOf(e)){var t=e.id,r=o[t];!1!==r&&(!0===r&&(r=Y.clone(F.global.plugins[t])),n.push(e),i.push({plugin:e,options:r||{}}))}})),t.descriptors=i,t.id=this._cacheId,i},_invalidate:function(e){delete e.$plugins}},Nt={constructors:{},defaults:{},registerScaleType:function(e,t,n){this.constructors[e]=t,this.defaults[e]=Y.clone(n)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?Y.merge(Object.create(null),[F.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){var n=this;n.defaults.hasOwnProperty(e)&&(n.defaults[e]=Y.extend(n.defaults[e],t))},addScalesToLayout:function(e){Y.each(e.scales,(function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,ft.addBox(e,t)}))}},Et=Y.valueOrDefault,Pt=Y.rtl.getRtlAdapter;F._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:Y.noop,title:function(e,t){var n="",i=t.labels,r=i?i.length:0;if(e.length>0){var o=e[0];o.label?n=o.label:o.xLabel?n=o.xLabel:r>0&&o.index<r&&(n=i[o.index])}return n},afterTitle:Y.noop,beforeBody:Y.noop,beforeLabel:Y.noop,label:function(e,t){var n=t.datasets[e.datasetIndex].label||"";return n&&(n+=": "),Y.isNullOrUndef(e.value)?n+=e.yLabel:n+=e.value,n},labelColor:function(e,t){var n=t.getDatasetMeta(e.datasetIndex).data[e.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:Y.noop,afterBody:Y.noop,beforeFooter:Y.noop,footer:Y.noop,afterFooter:Y.noop}}});var Ft={average:function(e){if(!e.length)return!1;var t,n,i=0,r=0,o=0;for(t=0,n=e.length;t<n;++t){var a=e[t];if(a&&a.hasValue()){var s=a.tooltipPosition();i+=s.x,r+=s.y,++o}}return{x:i/o,y:r/o}},nearest:function(e,t){var n,i,r,o=t.x,a=t.y,s=Number.POSITIVE_INFINITY;for(n=0,i=e.length;n<i;++n){var l=e[n];if(l&&l.hasValue()){var c=l.getCenterPoint(),u=Y.distanceBetweenPoints(t,c);u<s&&(s=u,r=l)}}if(r){var d=r.tooltipPosition();o=d.x,a=d.y}return{x:o,y:a}}};function zt(e,t){return t&&(Y.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Rt(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function Bt(e){var t=F.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:Et(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:Et(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:Et(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:Et(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:Et(e.titleFontStyle,t.defaultFontStyle),titleFontSize:Et(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:Et(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:Et(e.footerFontStyle,t.defaultFontStyle),footerFontSize:Et(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function Wt(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function Yt(e){return zt([],Rt(e))}var Ut=J.extend({initialize:function(){this._model=Bt(this._options),this._lastActive=[]},getTitle:function(){var e=this,t=e._options.callbacks,n=t.beforeTitle.apply(e,arguments),i=t.title.apply(e,arguments),r=t.afterTitle.apply(e,arguments),o=[];return o=zt(o,Rt(n)),o=zt(o,Rt(i)),zt(o,Rt(r))},getBeforeBody:function(){return Yt(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var n=this,i=n._options.callbacks,r=[];return Y.each(e,(function(e){var o={before:[],lines:[],after:[]};zt(o.before,Rt(i.beforeLabel.call(n,e,t))),zt(o.lines,i.label.call(n,e,t)),zt(o.after,Rt(i.afterLabel.call(n,e,t))),r.push(o)})),r},getAfterBody:function(){return Yt(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,n=t.beforeFooter.apply(e,arguments),i=t.footer.apply(e,arguments),r=t.afterFooter.apply(e,arguments),o=[];return o=zt(o,Rt(n)),o=zt(o,Rt(i)),zt(o,Rt(r))},update:function(e){var t,n,i,r,o,a,s,l,c,u,d=this,h=d._options,f=d._model,p=d._model=Bt(h),g=d._active,m=d._data,v={xAlign:f.xAlign,yAlign:f.yAlign},y={x:f.x,y:f.y},b={width:f.width,height:f.height},x={x:f.caretX,y:f.caretY};if(g.length){p.opacity=1;var w=[],A=[];x=Ft[h.position].call(d,g,d._eventPosition);var _=[];for(t=0,n=g.length;t<n;++t)_.push((i=g[t],r=void 0,o=void 0,a=void 0,s=void 0,l=void 0,c=void 0,u=void 0,r=i._xScale,o=i._yScale||i._scale,a=i._index,s=i._datasetIndex,l=i._chart.getDatasetMeta(s).controller,c=l._getIndexScale(),u=l._getValueScale(),{xLabel:r?r.getLabelForIndex(a,s):"",yLabel:o?o.getLabelForIndex(a,s):"",label:c?""+c.getLabelForIndex(a,s):"",value:u?""+u.getLabelForIndex(a,s):"",index:a,datasetIndex:s,x:i._model.x,y:i._model.y}));h.filter&&(_=_.filter((function(e){return h.filter(e,m)}))),h.itemSort&&(_=_.sort((function(e,t){return h.itemSort(e,t,m)}))),Y.each(_,(function(e){w.push(h.callbacks.labelColor.call(d,e,d._chart)),A.push(h.callbacks.labelTextColor.call(d,e,d._chart))})),p.title=d.getTitle(_,m),p.beforeBody=d.getBeforeBody(_,m),p.body=d.getBody(_,m),p.afterBody=d.getAfterBody(_,m),p.footer=d.getFooter(_,m),p.x=x.x,p.y=x.y,p.caretPadding=h.caretPadding,p.labelColors=w,p.labelTextColors=A,p.dataPoints=_,y=function(e,t,n,i){var r=e.x,o=e.y,a=e.caretSize,s=e.caretPadding,l=e.cornerRadius,c=n.xAlign,u=n.yAlign,d=a+s,h=l+s;return"right"===c?r-=t.width:"center"===c&&((r-=t.width/2)+t.width>i.width&&(r=i.width-t.width),r<0&&(r=0)),"top"===u?o+=d:o-="bottom"===u?t.height+d:t.height/2,"center"===u?"left"===c?r+=d:"right"===c&&(r-=d):"left"===c?r-=h:"right"===c&&(r+=h),{x:r,y:o}}(p,b=function(e,t){var n=e._chart.ctx,i=2*t.yPadding,r=0,o=t.body,a=o.reduce((function(e,t){return e+t.before.length+t.lines.length+t.after.length}),0);a+=t.beforeBody.length+t.afterBody.length;var s=t.title.length,l=t.footer.length,c=t.titleFontSize,u=t.bodyFontSize,d=t.footerFontSize;i+=s*c,i+=s?(s-1)*t.titleSpacing:0,i+=s?t.titleMarginBottom:0,i+=a*u,i+=a?(a-1)*t.bodySpacing:0,i+=l?t.footerMarginTop:0,i+=l*d,i+=l?(l-1)*t.footerSpacing:0;var h=0,f=function(e){r=Math.max(r,n.measureText(e).width+h)};return n.font=Y.fontString(c,t._titleFontStyle,t._titleFontFamily),Y.each(t.title,f),n.font=Y.fontString(u,t._bodyFontStyle,t._bodyFontFamily),Y.each(t.beforeBody.concat(t.afterBody),f),h=t.displayColors?u+2:0,Y.each(o,(function(e){Y.each(e.before,f),Y.each(e.lines,f),Y.each(e.after,f)})),h=0,n.font=Y.fontString(d,t._footerFontStyle,t._footerFontFamily),Y.each(t.footer,f),{width:r+=2*t.xPadding,height:i}}(this,p),v=function(e,t){var n,i,r,o,a,s=e._model,l=e._chart,c=e._chart.chartArea,u="center",d="center";s.y<t.height?d="top":s.y>l.height-t.height&&(d="bottom");var h=(c.left+c.right)/2,f=(c.top+c.bottom)/2;"center"===d?(n=function(e){return e<=h},i=function(e){return e>h}):(n=function(e){return e<=t.width/2},i=function(e){return e>=l.width-t.width/2}),r=function(e){return e+t.width+s.caretSize+s.caretPadding>l.width},o=function(e){return e-t.width-s.caretSize-s.caretPadding<0},a=function(e){return e<=f?"top":"bottom"},n(s.x)?(u="left",r(s.x)&&(u="center",d=a(s.y))):i(s.x)&&(u="right",o(s.x)&&(u="center",d=a(s.y)));var p=e._options;return{xAlign:p.xAlign?p.xAlign:u,yAlign:p.yAlign?p.yAlign:d}}(this,b),d._chart)}else p.opacity=0;return p.xAlign=v.xAlign,p.yAlign=v.yAlign,p.x=y.x,p.y=y.y,p.width=b.width,p.height=b.height,p.caretX=x.x,p.caretY=x.y,d._model=p,e&&h.custom&&h.custom.call(d,p),d},drawCaret:function(e,t){var n=this._chart.ctx,i=this._view,r=this.getCaretPosition(e,t,i);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)},getCaretPosition:function(e,t,n){var i,r,o,a,s,l,c=n.caretSize,u=n.cornerRadius,d=n.xAlign,h=n.yAlign,f=e.x,p=e.y,g=t.width,m=t.height;if("center"===h)s=p+m/2,"left"===d?(r=(i=f)-c,o=i,a=s+c,l=s-c):(r=(i=f+g)+c,o=i,a=s-c,l=s+c);else if("left"===d?(i=(r=f+u+c)-c,o=r+c):"right"===d?(i=(r=f+g-u-c)-c,o=r+c):(i=(r=n.caretX)-c,o=r+c),"top"===h)s=(a=p)-c,l=a;else{s=(a=p+m)+c,l=a;var v=o;o=i,i=v}return{x1:i,x2:r,x3:o,y1:a,y2:s,y3:l}},drawTitle:function(e,t,n){var i,r,o,a=t.title,s=a.length;if(s){var l=Pt(t.rtl,t.x,t.width);for(e.x=Wt(t,t._titleAlign),n.textAlign=l.textAlign(t._titleAlign),n.textBaseline="middle",i=t.titleFontSize,r=t.titleSpacing,n.fillStyle=t.titleFontColor,n.font=Y.fontString(i,t._titleFontStyle,t._titleFontFamily),o=0;o<s;++o)n.fillText(a[o],l.x(e.x),e.y+i/2),e.y+=i+r,o+1===s&&(e.y+=t.titleMarginBottom-r)}},drawBody:function(e,t,n){var i,r,o,a,s,l,c,u,d=t.bodyFontSize,h=t.bodySpacing,f=t._bodyAlign,p=t.body,g=t.displayColors,m=0,v=g?Wt(t,"left"):0,y=Pt(t.rtl,t.x,t.width),b=function(t){n.fillText(t,y.x(e.x+m),e.y+d/2),e.y+=d+h},x=y.textAlign(f);for(n.textAlign=f,n.textBaseline="middle",n.font=Y.fontString(d,t._bodyFontStyle,t._bodyFontFamily),e.x=Wt(t,x),n.fillStyle=t.bodyFontColor,Y.each(t.beforeBody,b),m=g&&"right"!==x?"center"===f?d/2+1:d+2:0,s=0,c=p.length;s<c;++s){for(i=p[s],r=t.labelTextColors[s],o=t.labelColors[s],n.fillStyle=r,Y.each(i.before,b),l=0,u=(a=i.lines).length;l<u;++l){if(g){var w=y.x(v);n.fillStyle=t.legendColorBackground,n.fillRect(y.leftForLtr(w,d),e.y,d,d),n.lineWidth=1,n.strokeStyle=o.borderColor,n.strokeRect(y.leftForLtr(w,d),e.y,d,d),n.fillStyle=o.backgroundColor,n.fillRect(y.leftForLtr(y.xPlus(w,1),d-2),e.y+1,d-2,d-2),n.fillStyle=r}b(a[l])}Y.each(i.after,b)}m=0,Y.each(t.afterBody,b),e.y-=h},drawFooter:function(e,t,n){var i,r,o=t.footer,a=o.length;if(a){var s=Pt(t.rtl,t.x,t.width);for(e.x=Wt(t,t._footerAlign),e.y+=t.footerMarginTop,n.textAlign=s.textAlign(t._footerAlign),n.textBaseline="middle",i=t.footerFontSize,n.fillStyle=t.footerFontColor,n.font=Y.fontString(i,t._footerFontStyle,t._footerFontFamily),r=0;r<a;++r)n.fillText(o[r],s.x(e.x),e.y+i/2),e.y+=i+t.footerSpacing}},drawBackground:function(e,t,n,i){n.fillStyle=t.backgroundColor,n.strokeStyle=t.borderColor,n.lineWidth=t.borderWidth;var r=t.xAlign,o=t.yAlign,a=e.x,s=e.y,l=i.width,c=i.height,u=t.cornerRadius;n.beginPath(),n.moveTo(a+u,s),"top"===o&&this.drawCaret(e,i),n.lineTo(a+l-u,s),n.quadraticCurveTo(a+l,s,a+l,s+u),"center"===o&&"right"===r&&this.drawCaret(e,i),n.lineTo(a+l,s+c-u),n.quadraticCurveTo(a+l,s+c,a+l-u,s+c),"bottom"===o&&this.drawCaret(e,i),n.lineTo(a+u,s+c),n.quadraticCurveTo(a,s+c,a,s+c-u),"center"===o&&"left"===r&&this.drawCaret(e,i),n.lineTo(a,s+u),n.quadraticCurveTo(a,s,a+u,s),n.closePath(),n.fill(),t.borderWidth>0&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},i={x:t.x,y:t.y},r=Math.abs(t.opacity<.001)?0:t.opacity,o=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&o&&(e.save(),e.globalAlpha=r,this.drawBackground(i,t,e,n),i.y+=t.yPadding,Y.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(i,t,e),this.drawBody(i,t,e),this.drawFooter(i,t,e),Y.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var t,n=this,i=n._options;return n._lastActive=n._lastActive||[],"mouseout"===e.type?n._active=[]:(n._active=n._chart.getElementsAtEventForMode(e,i.mode,i),i.reverse&&n._active.reverse()),(t=!Y.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(i.enabled||i.custom)&&(n._eventPosition={x:e.x,y:e.y},n.update(!0),n.pivot())),t}}),Ht=Ft,Vt=Ut;Vt.positioners=Ht;var Zt=Y.valueOrDefault;function Gt(){return Y.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,i){if("xAxes"===e||"yAxes"===e){var r,o,a,s=n[e].length;for(t[e]||(t[e]=[]),r=0;r<s;++r)a=n[e][r],o=Zt(a.type,"xAxes"===e?"category":"linear"),r>=t[e].length&&t[e].push({}),!t[e][r].type||a.type&&a.type!==t[e][r].type?Y.merge(t[e][r],[Nt.getScaleDefaults(o),a]):Y.merge(t[e][r],a)}else Y._merger(e,t,n,i)}})}function Qt(){return Y.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,i){var r=t[e]||Object.create(null),o=n[e];"scales"===e?t[e]=Gt(r,o):"scale"===e?t[e]=Y.merge(r,[Nt.getScaleDefaults(o.type),o]):Y._merger(e,t,n,i)}})}function Jt(e,t,n){var i,r=function(e){return e.id===i};do{i=t+n++}while(Y.findIndex(e,r)>=0);return i}function qt(e){return"top"===e||"bottom"===e}function Xt(e,t){return function(n,i){return n[e]===i[e]?n[t]-i[t]:n[e]-i[e]}}F._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var Kt=function(e,t){return this.construct(e,t),this};Y.extend(Kt.prototype,{construct:function(e,t){var n=this;t=function(e){var t=(e=e||Object.create(null)).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=Qt(F.global,F[e.type],e.options||{}),e}(t);var i=Ot.acquireContext(e,t),r=i&&i.canvas,o=r&&r.height,a=r&&r.width;n.id=Y.uid(),n.ctx=i,n.canvas=r,n.config=t,n.width=a,n.height=o,n.aspectRatio=o?a/o:null,n.options=t.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,Kt.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(e){n.config.data=e}}),i&&r?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return jt.notify(e,"beforeInit"),Y.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),jt.notify(e,"afterInit"),e},clear:function(){return Y.canvas.clear(this),this},stop:function(){return K.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,i=t.canvas,r=n.maintainAspectRatio&&t.aspectRatio||null,o=Math.max(0,Math.floor(Y.getMaximumWidth(i))),a=Math.max(0,Math.floor(r?o/r:Y.getMaximumHeight(i)));if((t.width!==o||t.height!==a)&&(i.width=t.width=o,i.height=t.height=a,i.style.width=o+"px",i.style.height=a+"px",Y.retinaScale(t,n.devicePixelRatio),!e)){var s={width:o,height:a};jt.notify(t,"resize",[s]),n.onResize&&n.onResize(t,s),t.stop(),t.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},n=e.scale;Y.each(t.xAxes,(function(e,n){e.id||(e.id=Jt(t.xAxes,"x-axis-",n))})),Y.each(t.yAxes,(function(e,n){e.id||(e.id=Jt(t.yAxes,"y-axis-",n))})),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,n=e.scales||{},i=[],r=Object.keys(n).reduce((function(e,t){return e[t]=!1,e}),{});t.scales&&(i=i.concat((t.scales.xAxes||[]).map((function(e){return{options:e,dtype:"category",dposition:"bottom"}})),(t.scales.yAxes||[]).map((function(e){return{options:e,dtype:"linear",dposition:"left"}})))),t.scale&&i.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),Y.each(i,(function(t){var i=t.options,o=i.id,a=Zt(i.type,t.dtype);qt(i.position)!==qt(t.dposition)&&(i.position=t.dposition),r[o]=!0;var s=null;if(o in n&&n[o].type===a)(s=n[o]).options=i,s.ctx=e.ctx,s.chart=e;else{var l=Nt.getScaleConstructor(a);if(!l)return;s=new l({id:o,type:a,options:i,ctx:e.ctx,chart:e}),n[s.id]=s}s.mergeTicksOptions(),t.isDefault&&(e.scale=s)})),Y.each(r,(function(e,t){e||delete n[t]})),e.scales=n,Nt.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e,t,n=this,i=[],r=n.data.datasets;for(e=0,t=r.length;e<t;e++){var o=r[e],a=n.getDatasetMeta(e),s=o.type||n.config.type;if(a.type&&a.type!==s&&(n.destroyDatasetMeta(e),a=n.getDatasetMeta(e)),a.type=s,a.order=o.order||0,a.index=e,a.controller)a.controller.updateIndex(e),a.controller.linkScales();else{var l=qe[a.type];if(void 0===l)throw new Error('"'+a.type+'" is not a chart type.');a.controller=new l(n,e),i.push(a.controller)}}return i},resetElements:function(){var e=this;Y.each(e.data.datasets,(function(t,n){e.getDatasetMeta(n).controller.reset()}),e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e){var t,n,i,r,o=this;if(e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]}),r=(i=o).options,Y.each(i.scales,(function(e){ft.removeBox(i,e)})),r=Qt(F.global,F[i.config.type],r),i.options=i.config.options=r,i.ensureScalesHaveIDs(),i.buildOrUpdateScales(),i.tooltip._options=r.tooltips,i.tooltip.initialize(),jt._invalidate(o),!1!==jt.notify(o,"beforeUpdate")){o.tooltip._data=o.data;var a=o.buildOrUpdateControllers();for(t=0,n=o.data.datasets.length;t<n;t++)o.getDatasetMeta(t).controller.buildOrUpdateElements();o.updateLayout(),o.options.animation&&o.options.animation.duration&&Y.each(a,(function(e){e.reset()})),o.updateDatasets(),o.tooltip.initialize(),o.lastActive=[],jt.notify(o,"afterUpdate"),o._layers.sort(Xt("z","_idx")),o._bufferedRender?o._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:o.render(e)}},updateLayout:function(){var e=this;!1!==jt.notify(e,"beforeLayout")&&(ft.update(this,this.width,this.height),e._layers=[],Y.each(e.boxes,(function(t){t._configure&&t._configure(),e._layers.push.apply(e._layers,t._layers())}),e),e._layers.forEach((function(e,t){e._idx=t})),jt.notify(e,"afterScaleUpdate"),jt.notify(e,"afterLayout"))},updateDatasets:function(){var e=this;if(!1!==jt.notify(e,"beforeDatasetsUpdate")){for(var t=0,n=e.data.datasets.length;t<n;++t)e.updateDataset(t);jt.notify(e,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this,n=t.getDatasetMeta(e),i={meta:n,index:e};!1!==jt.notify(t,"beforeDatasetUpdate",[i])&&(n.controller._update(),jt.notify(t,"afterDatasetUpdate",[i]))},render:function(e){var t=this;e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]});var n=t.options.animation,i=Zt(e.duration,n&&n.duration),r=e.lazy;if(!1!==jt.notify(t,"beforeRender")){var o=function(e){jt.notify(t,"afterRender"),Y.callback(n&&n.onComplete,[e],t)};if(n&&i){var a=new X({numSteps:i/16.66,easing:e.easing||n.easing,render:function(e,t){var n=Y.easing.effects[t.easing],i=t.currentStep,r=i/t.numSteps;e.draw(n(r),r,i)},onAnimationProgress:n.onProgress,onAnimationComplete:o});K.addAnimation(t,a,i,r)}else t.draw(),o(new X({numSteps:0,chart:t}));return t}},draw:function(e){var t,n,i=this;if(i.clear(),Y.isNullOrUndef(e)&&(e=1),i.transition(e),!(i.width<=0||i.height<=0)&&!1!==jt.notify(i,"beforeDraw",[e])){for(n=i._layers,t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(i.chartArea);for(i.drawDatasets(e);t<n.length;++t)n[t].draw(i.chartArea);i._drawTooltip(e),jt.notify(i,"afterDraw",[e])}},transition:function(e){for(var t=this,n=0,i=(t.data.datasets||[]).length;n<i;++n)t.isDatasetVisible(n)&&t.getDatasetMeta(n).controller.transition(e);t.tooltip.transition(e)},_getSortedDatasetMetas:function(e){var t,n,i=this,r=[];for(t=0,n=(i.data.datasets||[]).length;t<n;++t)e&&!i.isDatasetVisible(t)||r.push(i.getDatasetMeta(t));return r.sort(Xt("order","index")),r},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(e){var t,n,i=this;if(!1!==jt.notify(i,"beforeDatasetsDraw",[e])){for(n=(t=i._getSortedVisibleDatasetMetas()).length-1;n>=0;--n)i.drawDataset(t[n],e);jt.notify(i,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n={meta:e,index:e.index,easingValue:t};!1!==jt.notify(this,"beforeDatasetDraw",[n])&&(e.controller.draw(t),jt.notify(this,"afterDatasetDraw",[n]))},_drawTooltip:function(e){var t=this,n=t.tooltip,i={tooltip:n,easingValue:e};!1!==jt.notify(t,"beforeTooltipDraw",[i])&&(n.draw(),jt.notify(t,"afterTooltipDraw",[i]))},getElementAtEvent:function(e){return it.modes.single(this,e)},getElementsAtEvent:function(e){return it.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return it.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var i=it.modes[t];return"function"==typeof i?i(this,e,n):[]},getDatasetAtEvent:function(e){return it.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this,n=t.data.datasets[e];n._meta||(n._meta={});var i=n._meta[t.id];return i||(i=n._meta[t.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n.order||0,index:e}),i},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t<n;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,n=this.data.datasets[e],i=n._meta&&n._meta[t];i&&(i.controller.destroy(),delete n._meta[t])},destroy:function(){var e,t,n=this,i=n.canvas;for(n.stop(),e=0,t=n.data.datasets.length;e<t;++e)n.destroyDatasetMeta(e);i&&(n.unbindEvents(),Y.canvas.clear(n),Ot.releaseContext(n.ctx),n.canvas=null,n.ctx=null),jt.notify(n,"destroy"),delete Kt.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new Vt({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var e=this,t=e._listeners={},n=function(){e.eventHandler.apply(e,arguments)};Y.each(e.options.events,(function(i){Ot.addEventListener(e,i,n),t[i]=n})),e.options.responsive&&(n=function(){e.resize()},Ot.addEventListener(e,"resize",n),t.resize=n)},unbindEvents:function(){var e=this,t=e._listeners;t&&(delete e._listeners,Y.each(t,(function(t,n){Ot.removeEventListener(e,n,t)})))},updateHoverStyle:function(e,t,n){var i,r,o,a=n?"set":"remove";for(r=0,o=e.length;r<o;++r)(i=e[r])&&this.getDatasetMeta(i._datasetIndex).controller[a+"HoverStyle"](i);"dataset"===t&&this.getDatasetMeta(e[0]._datasetIndex).controller["_"+a+"DatasetHoverStyle"]()},eventHandler:function(e){var t=this,n=t.tooltip;if(!1!==jt.notify(t,"beforeEvent",[e])){t._bufferedRender=!0,t._bufferedRequest=null;var i=t.handleEvent(e);n&&(i=n._start?n.handleEvent(e):i|n.handleEvent(e)),jt.notify(t,"afterEvent",[e]);var r=t._bufferedRequest;return r?t.render(r):i&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var t,n=this,i=n.options||{},r=i.hover;return n.lastActive=n.lastActive||[],"mouseout"===e.type?n.active=[]:n.active=n.getElementsAtEventForMode(e,r.mode,r),Y.callback(i.onHover||i.hover.onHover,[e.native,n.active],n),"mouseup"!==e.type&&"click"!==e.type||i.onClick&&i.onClick.call(n,e.native,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,r.mode,!1),n.active.length&&r.mode&&n.updateHoverStyle(n.active,r.mode,!0),t=!Y.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,t}}),Kt.instances={};var $t=Kt;Kt.Controller=Kt,Kt.types={},Y.configMerge=Qt,Y.scaleMerge=Gt;function en(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function tn(e){this.options=e||{}}Y.extend(tn.prototype,{formats:en,parse:en,format:en,add:en,diff:en,startOf:en,endOf:en,_create:function(e){return e}}),tn.override=function(e){Y.extend(tn.prototype,e)};var nn={_date:tn},rn={formatters:{values:function(e){return Y.isArray(e)?e:""+e},linear:function(e,t,n){var i=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(i)>1&&e!==Math.floor(e)&&(i=e-Math.floor(e));var r=Y.log10(Math.abs(i)),o="";if(0!==e)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var a=Y.log10(Math.abs(e)),s=Math.floor(a)-Math.floor(r);s=Math.max(Math.min(s,20),0),o=e.toExponential(s)}else{var l=-1*Math.floor(r);l=Math.max(Math.min(l,20),0),o=e.toFixed(l)}else o="0";return o},logarithmic:function(e,t,n){var i=e/Math.pow(10,Math.floor(Y.log10(e)));return 0===e?"0":1===i||2===i||5===i||0===t||t===n.length-1?e.toExponential():""}}},on=Y.isArray,an=Y.isNullOrUndef,sn=Y.valueOrDefault,ln=Y.valueAtIndexOrDefault;function cn(e,t,n){var i,r=e.getTicks().length,o=Math.min(t,r-1),a=e.getPixelForTick(o),s=e._startPixel,l=e._endPixel,c=1e-6;if(!(n&&(i=1===r?Math.max(a-s,l-a):0===t?(e.getPixelForTick(1)-a)/2:(a-e.getPixelForTick(o-1))/2,(a+=o<t?i:-i)<s-c||a>l+c)))return a}function un(e,t,n,i){var r,o,a,s,l,c,u,d,h,f,p,g,m,v=n.length,y=[],b=[],x=[],w=0,A=0;for(r=0;r<v;++r){if(s=n[r].label,l=n[r].major?t.major:t.minor,e.font=c=l.string,u=i[c]=i[c]||{data:{},gc:[]},d=l.lineHeight,h=f=0,an(s)||on(s)){if(on(s))for(o=0,a=s.length;o<a;++o)p=s[o],an(p)||on(p)||(h=Y.measureText(e,u.data,u.gc,h,p),f+=d)}else h=Y.measureText(e,u.data,u.gc,h,s),f=d;y.push(h),b.push(f),x.push(d/2),w=Math.max(h,w),A=Math.max(f,A)}function _(e){return{width:y[e]||0,height:b[e]||0,offset:x[e]||0}}return function(e,t){Y.each(e,(function(e){var n,i=e.gc,r=i.length/2;if(r>t){for(n=0;n<r;++n)delete e.data[i[n]];i.splice(0,r)}}))}(i,v),g=y.indexOf(w),m=b.indexOf(A),{first:_(0),last:_(v-1),widest:_(g),highest:_(m)}}function dn(e){return e.drawTicks?e.tickMarkLength:0}function hn(e){var t,n;return e.display?(t=Y.options._parseFont(e),n=Y.options.toPadding(e.padding),t.lineHeight+n.height):0}function fn(e,t){return Y.extend(Y.options._parseFont({fontFamily:sn(t.fontFamily,e.fontFamily),fontSize:sn(t.fontSize,e.fontSize),fontStyle:sn(t.fontStyle,e.fontStyle),lineHeight:sn(t.lineHeight,e.lineHeight)}),{color:Y.options.resolve([t.fontColor,e.fontColor,F.global.defaultFontColor])})}function pn(e){var t=fn(e,e.minor);return{minor:t,major:e.major.enabled?fn(e,e.major):t}}function gn(e){var t,n,i,r=[];for(n=0,i=e.length;n<i;++n)void 0!==(t=e[n])._index&&r.push(t);return r}function mn(e,t,n,i){var r,o,a,s,l=sn(n,0),c=Math.min(sn(i,e.length),e.length),u=0;for(t=Math.ceil(t),i&&(t=(r=i-n)/Math.floor(r/t)),s=l;s<0;)u++,s=Math.round(l+u*t);for(o=Math.max(l,0);o<c;o++)a=e[o],o===s?(a._index=o,u++,s=Math.round(l+u*t)):delete a.label}F._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:rn.formatters.values,minor:{},major:{}}});var vn=J.extend({zeroLineIndex:0,getPadding:function(){var e=this;return{left:e.paddingLeft||0,top:e.paddingTop||0,right:e.paddingRight||0,bottom:e.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){Y.callback(this.options.beforeUpdate,[this])},update:function(e,t,n){var i,r,o,a,s,l=this,c=l.options.ticks,u=c.sampleSize;if(l.beforeUpdate(),l.maxWidth=e,l.maxHeight=t,l.margins=Y.extend({left:0,right:0,top:0,bottom:0},n),l._ticks=null,l.ticks=null,l._labelSizes=null,l._maxLabelLines=0,l.longestLabelWidth=0,l.longestTextCache=l.longestTextCache||{},l._gridLineItems=null,l._labelItems=null,l.beforeSetDimensions(),l.setDimensions(),l.afterSetDimensions(),l.beforeDataLimits(),l.determineDataLimits(),l.afterDataLimits(),l.beforeBuildTicks(),a=l.buildTicks()||[],(!(a=l.afterBuildTicks(a)||a)||!a.length)&&l.ticks)for(a=[],i=0,r=l.ticks.length;i<r;++i)a.push({value:l.ticks[i],major:!1});return l._ticks=a,s=u<a.length,o=l._convertTicksToLabels(s?function(e,t){for(var n=[],i=e.length/t,r=0,o=e.length;r<o;r+=i)n.push(e[Math.floor(r)]);return n}(a,u):a),l._configure(),l.beforeCalculateTickRotation(),l.calculateTickRotation(),l.afterCalculateTickRotation(),l.beforeFit(),l.fit(),l.afterFit(),l._ticksToDraw=c.display&&(c.autoSkip||"auto"===c.source)?l._autoSkip(a):a,s&&(o=l._convertTicksToLabels(l._ticksToDraw)),l.ticks=o,l.afterUpdate(),l.minSize},_configure:function(){var e,t,n=this,i=n.options.ticks.reverse;n.isHorizontal()?(e=n.left,t=n.right):(e=n.top,t=n.bottom,i=!i),n._startPixel=e,n._endPixel=t,n._reversePixels=i,n._length=t-e},afterUpdate:function(){Y.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){Y.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0},afterSetDimensions:function(){Y.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){Y.callback(this.options.beforeDataLimits,[this])},determineDataLimits:Y.noop,afterDataLimits:function(){Y.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){Y.callback(this.options.beforeBuildTicks,[this])},buildTicks:Y.noop,afterBuildTicks:function(e){var t=this;return on(e)&&e.length?Y.callback(t.options.afterBuildTicks,[t,e]):(t.ticks=Y.callback(t.options.afterBuildTicks,[t,t.ticks])||t.ticks,e)},beforeTickToLabelConversion:function(){Y.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this,t=e.options.ticks;e.ticks=e.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){Y.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){Y.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e,t,n,i,r,o,a,s=this,l=s.options,c=l.ticks,u=s.getTicks().length,d=c.minRotation||0,h=c.maxRotation,f=d;!s._isVisible()||!c.display||d>=h||u<=1||!s.isHorizontal()?s.labelRotation=d:(t=(e=s._getLabelSizes()).widest.width,n=e.highest.height-e.highest.offset,i=Math.min(s.maxWidth,s.chart.width-t),t+6>(r=l.offset?s.maxWidth/u:i/(u-1))&&(r=i/(u-(l.offset?.5:1)),o=s.maxHeight-dn(l.gridLines)-c.padding-hn(l.scaleLabel),a=Math.sqrt(t*t+n*n),f=Y.toDegrees(Math.min(Math.asin(Math.min((e.highest.height+6)/r,1)),Math.asin(Math.min(o/a,1))-Math.asin(n/a))),f=Math.max(d,Math.min(h,f))),s.labelRotation=f)},afterCalculateTickRotation:function(){Y.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){Y.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=e.chart,i=e.options,r=i.ticks,o=i.scaleLabel,a=i.gridLines,s=e._isVisible(),l="bottom"===i.position,c=e.isHorizontal();if(c?t.width=e.maxWidth:s&&(t.width=dn(a)+hn(o)),c?s&&(t.height=dn(a)+hn(o)):t.height=e.maxHeight,r.display&&s){var u=pn(r),d=e._getLabelSizes(),h=d.first,f=d.last,p=d.widest,g=d.highest,m=.4*u.minor.lineHeight,v=r.padding;if(c){var y=0!==e.labelRotation,b=Y.toRadians(e.labelRotation),x=Math.cos(b),w=Math.sin(b),A=w*p.width+x*(g.height-(y?g.offset:0))+(y?0:m);t.height=Math.min(e.maxHeight,t.height+A+v);var _,C,M=e.getPixelForTick(0)-e.left,k=e.right-e.getPixelForTick(e.getTicks().length-1);y?(_=l?x*h.width+w*h.offset:w*(h.height-h.offset),C=l?w*(f.height-f.offset):x*f.width+w*f.offset):(_=h.width/2,C=f.width/2),e.paddingLeft=Math.max((_-M)*e.width/(e.width-M),0)+3,e.paddingRight=Math.max((C-k)*e.width/(e.width-k),0)+3}else{var S=r.mirror?0:p.width+v+m;t.width=Math.min(e.maxWidth,t.width+S),e.paddingTop=h.height/2,e.paddingBottom=f.height/2}}e.handleMargins(),c?(e.width=e._length=n.width-e.margins.left-e.margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=n.height-e.margins.top-e.margins.bottom)},handleMargins:function(){var e=this;e.margins&&(e.margins.left=Math.max(e.paddingLeft,e.margins.left),e.margins.top=Math.max(e.paddingTop,e.margins.top),e.margins.right=Math.max(e.paddingRight,e.margins.right),e.margins.bottom=Math.max(e.paddingBottom,e.margins.bottom))},afterFit:function(){Y.callback(this.options.afterFit,[this])},isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(an(e))return NaN;if(("number"==typeof e||e instanceof Number)&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},_convertTicksToLabels:function(e){var t,n,i,r=this;for(r.ticks=e.map((function(e){return e.value})),r.beforeTickToLabelConversion(),t=r.convertTicksToLabels(e)||r.ticks,r.afterTickToLabelConversion(),n=0,i=e.length;n<i;++n)e[n].label=t[n];return t},_getLabelSizes:function(){var e=this,t=e._labelSizes;return t||(e._labelSizes=t=un(e.ctx,pn(e.options.ticks),e.getTicks(),e.longestTextCache),e.longestLabelWidth=t.widest.width),t},_parseValue:function(e){var t,n,i,r;return on(e)?(t=+this.getRightValue(e[0]),n=+this.getRightValue(e[1]),i=Math.min(t,n),r=Math.max(t,n)):(t=void 0,n=e=+this.getRightValue(e),i=e,r=e),{min:i,max:r,start:t,end:n}},_getScaleLabel:function(e){var t=this._parseValue(e);return void 0!==t.start?"["+t.start+", "+t.end+"]":+this.getRightValue(e)},getLabelForIndex:Y.noop,getPixelForValue:Y.noop,getValueForPixel:Y.noop,getPixelForTick:function(e){var t=this,n=t.options.offset,i=t._ticks.length,r=1/Math.max(i-(n?0:1),1);return e<0||e>i-1?null:t.getPixelForDecimal(e*r+(n?r/2:0))},getPixelForDecimal:function(e){var t=this;return t._reversePixels&&(e=1-e),t._startPixel+e*t._length},getDecimalForPixel:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this,t=e.min,n=e.max;return e.beginAtZero?0:t<0&&n<0?n:t>0&&n>0?t:0},_autoSkip:function(e){var t,n,i,r,o=this,a=o.options.ticks,s=o._length,l=a.maxTicksLimit||s/o._tickSize()+1,c=a.major.enabled?function(e){var t,n,i=[];for(t=0,n=e.length;t<n;t++)e[t].major&&i.push(t);return i}(e):[],u=c.length,d=c[0],h=c[u-1];if(u>l)return function(e,t,n){var i,r,o=0,a=t[0];for(n=Math.ceil(n),i=0;i<e.length;i++)r=e[i],i===a?(r._index=i,a=t[++o*n]):delete r.label}(e,c,u/l),gn(e);if(i=function(e,t,n,i){var r,o,a,s,l=function(e){var t,n,i=e.length;if(i<2)return!1;for(n=e[0],t=1;t<i;++t)if(e[t]-e[t-1]!==n)return!1;return n}(e),c=(t.length-1)/i;if(!l)return Math.max(c,1);for(a=0,s=(r=Y.math._factorize(l)).length-1;a<s;a++)if((o=r[a])>c)return o;return Math.max(c,1)}(c,e,0,l),u>0){for(t=0,n=u-1;t<n;t++)mn(e,i,c[t],c[t+1]);return r=u>1?(h-d)/(u-1):null,mn(e,i,Y.isNullOrUndef(r)?0:d-r,d),mn(e,i,h,Y.isNullOrUndef(r)?e.length:h+r),gn(e)}return mn(e,i),gn(e)},_tickSize:function(){var e=this,t=e.options.ticks,n=Y.toRadians(e.labelRotation),i=Math.abs(Math.cos(n)),r=Math.abs(Math.sin(n)),o=e._getLabelSizes(),a=t.autoSkipPadding||0,s=o?o.widest.width+a:0,l=o?o.highest.height+a:0;return e.isHorizontal()?l*i>s*r?s/i:l/r:l*r<s*i?l/i:s/r},_isVisible:function(){var e,t,n,i=this,r=i.chart,o=i.options.display;if("auto"!==o)return!!o;for(e=0,t=r.data.datasets.length;e<t;++e)if(r.isDatasetVisible(e)&&((n=r.getDatasetMeta(e)).xAxisID===i.id||n.yAxisID===i.id))return!0;return!1},_computeGridLineItems:function(e){var t,n,i,r,o,a,s,l,c,u,d,h,f,p,g,m,v,y=this,b=y.chart,x=y.options,w=x.gridLines,A=x.position,_=w.offsetGridLines,C=y.isHorizontal(),M=y._ticksToDraw,k=M.length+(_?1:0),S=dn(w),I=[],L=w.drawBorder?ln(w.lineWidth,0,0):0,T=L/2,D=Y._alignPixel,O=function(e){return D(b,e,L)};for("top"===A?(t=O(y.bottom),s=y.bottom-S,c=t-T,d=O(e.top)+T,f=e.bottom):"bottom"===A?(t=O(y.top),d=e.top,f=O(e.bottom)-T,s=t+T,c=y.top+S):"left"===A?(t=O(y.right),a=y.right-S,l=t-T,u=O(e.left)+T,h=e.right):(t=O(y.left),u=e.left,h=O(e.right)-T,a=t+T,l=y.left+S),n=0;n<k;++n)i=M[n]||{},an(i.label)&&n<M.length||(n===y.zeroLineIndex&&x.offset===_?(p=w.zeroLineWidth,g=w.zeroLineColor,m=w.zeroLineBorderDash||[],v=w.zeroLineBorderDashOffset||0):(p=ln(w.lineWidth,n,1),g=ln(w.color,n,"rgba(0,0,0,0.1)"),m=w.borderDash||[],v=w.borderDashOffset||0),void 0!==(r=cn(y,i._index||n,_))&&(o=D(b,r,p),C?a=l=u=h=o:s=c=d=f=o,I.push({tx1:a,ty1:s,tx2:l,ty2:c,x1:u,y1:d,x2:h,y2:f,width:p,color:g,borderDash:m,borderDashOffset:v})));return I.ticksLength=k,I.borderValue=t,I},_computeLabelItems:function(){var e,t,n,i,r,o,a,s,l,c,u,d,h=this,f=h.options,p=f.ticks,g=f.position,m=p.mirror,v=h.isHorizontal(),y=h._ticksToDraw,b=pn(p),x=p.padding,w=dn(f.gridLines),A=-Y.toRadians(h.labelRotation),_=[];for("top"===g?(o=h.bottom-w-x,a=A?"left":"center"):"bottom"===g?(o=h.top+w+x,a=A?"right":"center"):"left"===g?(r=h.right-(m?0:w)-x,a=m?"left":"right"):(r=h.left+(m?0:w)+x,a=m?"right":"left"),e=0,t=y.length;e<t;++e)i=(n=y[e]).label,an(i)||(s=h.getPixelForTick(n._index||e)+p.labelOffset,c=(l=n.major?b.major:b.minor).lineHeight,u=on(i)?i.length:1,v?(r=s,d="top"===g?((A?1:.5)-u)*c:(A?0:.5)*c):(o=s,d=(1-u)*c/2),_.push({x:r,y:o,rotation:A,label:i,font:l,textOffset:d,textAlign:a}));return _},_drawGrid:function(e){var t=this,n=t.options.gridLines;if(n.display){var i,r,o,a,s,l=t.ctx,c=t.chart,u=Y._alignPixel,d=n.drawBorder?ln(n.lineWidth,0,0):0,h=t._gridLineItems||(t._gridLineItems=t._computeGridLineItems(e));for(o=0,a=h.length;o<a;++o)i=(s=h[o]).width,r=s.color,i&&r&&(l.save(),l.lineWidth=i,l.strokeStyle=r,l.setLineDash&&(l.setLineDash(s.borderDash),l.lineDashOffset=s.borderDashOffset),l.beginPath(),n.drawTicks&&(l.moveTo(s.tx1,s.ty1),l.lineTo(s.tx2,s.ty2)),n.drawOnChartArea&&(l.moveTo(s.x1,s.y1),l.lineTo(s.x2,s.y2)),l.stroke(),l.restore());if(d){var f,p,g,m,v=d,y=ln(n.lineWidth,h.ticksLength-1,1),b=h.borderValue;t.isHorizontal()?(f=u(c,t.left,v)-v/2,p=u(c,t.right,y)+y/2,g=m=b):(g=u(c,t.top,v)-v/2,m=u(c,t.bottom,y)+y/2,f=p=b),l.lineWidth=d,l.strokeStyle=ln(n.color,0),l.beginPath(),l.moveTo(f,g),l.lineTo(p,m),l.stroke()}}},_drawLabels:function(){var e=this;if(e.options.ticks.display){var t,n,i,r,o,a,s,l,c=e.ctx,u=e._labelItems||(e._labelItems=e._computeLabelItems());for(t=0,i=u.length;t<i;++t){if(a=(o=u[t]).font,c.save(),c.translate(o.x,o.y),c.rotate(o.rotation),c.font=a.string,c.fillStyle=a.color,c.textBaseline="middle",c.textAlign=o.textAlign,s=o.label,l=o.textOffset,on(s))for(n=0,r=s.length;n<r;++n)c.fillText(""+s[n],0,l),l+=a.lineHeight;else c.fillText(s,0,l);c.restore()}}},_drawTitle:function(){var e=this,t=e.ctx,n=e.options,i=n.scaleLabel;if(i.display){var r,o,a=sn(i.fontColor,F.global.defaultFontColor),s=Y.options._parseFont(i),l=Y.options.toPadding(i.padding),c=s.lineHeight/2,u=n.position,d=0;if(e.isHorizontal())r=e.left+e.width/2,o="bottom"===u?e.bottom-c-l.bottom:e.top+c+l.top;else{var h="left"===u;r=h?e.left+c+l.top:e.right-c-l.top,o=e.top+e.height/2,d=h?-.5*Math.PI:.5*Math.PI}t.save(),t.translate(r,o),t.rotate(d),t.textAlign="center",t.textBaseline="middle",t.fillStyle=a,t.font=s.string,t.fillText(i.labelString,0,0),t.restore()}},draw:function(e){var t=this;t._isVisible()&&(t._drawGrid(e),t._drawTitle(),t._drawLabels())},_layers:function(){var e=this,t=e.options,n=t.ticks&&t.ticks.z||0,i=t.gridLines&&t.gridLines.z||0;return e._isVisible()&&n!==i&&e.draw===e._draw?[{z:i,draw:function(){e._drawGrid.apply(e,arguments),e._drawTitle.apply(e,arguments)}},{z:n,draw:function(){e._drawLabels.apply(e,arguments)}}]:[{z:n,draw:function(){e.draw.apply(e,arguments)}}]},_getMatchingVisibleMetas:function(e){var t=this,n=t.isHorizontal();return t.chart._getSortedVisibleDatasetMetas().filter((function(i){return(!e||i.type===e)&&(n?i.xAxisID===t.id:i.yAxisID===t.id)}))}});vn.prototype._draw=vn.prototype.draw;var yn=vn,bn=Y.isNullOrUndef,xn=yn.extend({determineDataLimits:function(){var e,t=this,n=t._getLabels(),i=t.options.ticks,r=i.min,o=i.max,a=0,s=n.length-1;void 0!==r&&(e=n.indexOf(r))>=0&&(a=e),void 0!==o&&(e=n.indexOf(o))>=0&&(s=e),t.minIndex=a,t.maxIndex=s,t.min=n[a],t.max=n[s]},buildTicks:function(){var e=this,t=e._getLabels(),n=e.minIndex,i=e.maxIndex;e.ticks=0===n&&i===t.length-1?t:t.slice(n,i+1)},getLabelForIndex:function(e,t){var n=this,i=n.chart;return i.getDatasetMeta(t).controller._getValueScaleId()===n.id?n.getRightValue(i.data.datasets[t].data[e]):n._getLabels()[e]},_configure:function(){var e=this,t=e.options.offset,n=e.ticks;yn.prototype._configure.call(e),e.isHorizontal()||(e._reversePixels=!e._reversePixels),n&&(e._startValue=e.minIndex-(t?.5:0),e._valueRange=Math.max(n.length-(t?0:1),1))},getPixelForValue:function(e,t,n){var i,r,o,a=this;return bn(t)||bn(n)||(e=a.chart.data.datasets[n].data[t]),bn(e)||(i=a.isHorizontal()?e.x:e.y),(void 0!==i||void 0!==e&&isNaN(t))&&(r=a._getLabels(),e=Y.valueOrDefault(i,e),t=-1!==(o=r.indexOf(e))?o:t,isNaN(t)&&(t=e)),a.getPixelForDecimal((t-a._startValue)/a._valueRange)},getPixelForTick:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function(e){var t=this,n=Math.round(t._startValue+t.getDecimalForPixel(e)*t._valueRange);return Math.min(Math.max(n,0),t.ticks.length-1)},getBasePixel:function(){return this.bottom}}),wn={position:"bottom"};xn._defaults=wn;var An=Y.noop,_n=Y.isNullOrUndef;var Cn=yn.extend({getRightValue:function(e){return"string"==typeof e?+e:yn.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=Y.sign(e.min),i=Y.sign(e.max);n<0&&i<0?e.max=0:n>0&&i>0&&(e.min=0)}var r=void 0!==t.min||void 0!==t.suggestedMin,o=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(null===e.min?e.min=t.suggestedMin:e.min=Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(null===e.max?e.max=t.suggestedMax:e.max=Math.max(e.max,t.suggestedMax)),r!==o&&e.min>=e.max&&(r?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:function(){var e,t=this,n=t.options.ticks,i=n.stepSize,r=n.maxTicksLimit;return i?e=Math.ceil(t.max/i)-Math.floor(t.min/i)+1:(e=t._computeTickLimit(),r=r||11),r&&(e=Math.min(r,e)),e},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:An,buildTicks:function(){var e=this,t=e.options.ticks,n=e.getTickLimit(),i={maxTicks:n=Math.max(2,n),min:t.min,max:t.max,precision:t.precision,stepSize:Y.valueOrDefault(t.fixedStepSize,t.stepSize)},r=e.ticks=function(e,t){var n,i,r,o,a=[],s=e.stepSize,l=s||1,c=e.maxTicks-1,u=e.min,d=e.max,h=e.precision,f=t.min,p=t.max,g=Y.niceNum((p-f)/c/l)*l;if(g<1e-14&&_n(u)&&_n(d))return[f,p];(o=Math.ceil(p/g)-Math.floor(f/g))>c&&(g=Y.niceNum(o*g/c/l)*l),s||_n(h)?n=Math.pow(10,Y._decimalPlaces(g)):(n=Math.pow(10,h),g=Math.ceil(g*n)/n),i=Math.floor(f/g)*g,r=Math.ceil(p/g)*g,s&&(!_n(u)&&Y.almostWhole(u/g,g/1e3)&&(i=u),!_n(d)&&Y.almostWhole(d/g,g/1e3)&&(r=d)),o=(r-i)/g,o=Y.almostEquals(o,Math.round(o),g/1e3)?Math.round(o):Math.ceil(o),i=Math.round(i*n)/n,r=Math.round(r*n)/n,a.push(_n(u)?i:u);for(var m=1;m<o;++m)a.push(Math.round((i+m*g)*n)/n);return a.push(_n(d)?r:d),a}(i,e);e.handleDirectionalChanges(),e.max=Y.max(r),e.min=Y.min(r),t.reverse?(r.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),yn.prototype.convertTicksToLabels.call(e)},_configure:function(){var e,t=this,n=t.getTicks(),i=t.min,r=t.max;yn.prototype._configure.call(t),t.options.offset&&n.length&&(i-=e=(r-i)/Math.max(n.length-1,1)/2,r+=e),t._startValue=i,t._endValue=r,t._valueRange=r-i}}),Mn={position:"left",ticks:{callback:rn.formatters.linear}};function kn(e,t,n,i){var r,o,a=e.options,s=function(e,t,n){var i=[n.type,void 0===t&&void 0===n.stack?n.index:"",n.stack].join(".");return void 0===e[i]&&(e[i]={pos:[],neg:[]}),e[i]}(t,a.stacked,n),l=s.pos,c=s.neg,u=i.length;for(r=0;r<u;++r)o=e._parseValue(i[r]),isNaN(o.min)||isNaN(o.max)||n.data[r].hidden||(l[r]=l[r]||0,c[r]=c[r]||0,a.relativePoints?l[r]=100:o.min<0||o.max<0?c[r]+=o.min:l[r]+=o.max)}function Sn(e,t,n){var i,r,o=n.length;for(i=0;i<o;++i)r=e._parseValue(n[i]),isNaN(r.min)||isNaN(r.max)||t.data[i].hidden||(e.min=Math.min(e.min,r.min),e.max=Math.max(e.max,r.max))}var In=Cn.extend({determineDataLimits:function(){var e,t,n,i,r=this,o=r.options,a=r.chart.data.datasets,s=r._getMatchingVisibleMetas(),l=o.stacked,c={},u=s.length;if(r.min=Number.POSITIVE_INFINITY,r.max=Number.NEGATIVE_INFINITY,void 0===l)for(e=0;!l&&e<u;++e)l=void 0!==(t=s[e]).stack;for(e=0;e<u;++e)n=a[(t=s[e]).index].data,l?kn(r,c,t,n):Sn(r,t,n);Y.each(c,(function(e){i=e.pos.concat(e.neg),r.min=Math.min(r.min,Y.min(i)),r.max=Math.max(r.max,Y.max(i))})),r.min=Y.isFinite(r.min)&&!isNaN(r.min)?r.min:0,r.max=Y.isFinite(r.max)&&!isNaN(r.max)?r.max:1,r.handleTickRangeOptions()},_computeTickLimit:function(){var e,t=this;return t.isHorizontal()?Math.ceil(t.width/40):(e=Y.options._parseFont(t.options.ticks),Math.ceil(t.height/e.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t=this;return t.getPixelForDecimal((+t.getRightValue(e)-t._startValue)/t._valueRange)},getValueForPixel:function(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange},getPixelForTick:function(e){var t=this.ticksAsNumbers;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])}}),Ln=Mn;In._defaults=Ln;var Tn=Y.valueOrDefault,Dn=Y.math.log10;var On={position:"left",ticks:{callback:rn.formatters.logarithmic}};function jn(e,t){return Y.isFinite(e)&&e>=0?e:t}var Nn=yn.extend({determineDataLimits:function(){var e,t,n,i,r,o,a=this,s=a.options,l=a.chart,c=l.data.datasets,u=a.isHorizontal();function d(e){return u?e.xAxisID===a.id:e.yAxisID===a.id}a.min=Number.POSITIVE_INFINITY,a.max=Number.NEGATIVE_INFINITY,a.minNotZero=Number.POSITIVE_INFINITY;var h=s.stacked;if(void 0===h)for(e=0;e<c.length;e++)if(t=l.getDatasetMeta(e),l.isDatasetVisible(e)&&d(t)&&void 0!==t.stack){h=!0;break}if(s.stacked||h){var f={};for(e=0;e<c.length;e++){var p=[(t=l.getDatasetMeta(e)).type,void 0===s.stacked&&void 0===t.stack?e:"",t.stack].join(".");if(l.isDatasetVisible(e)&&d(t))for(void 0===f[p]&&(f[p]=[]),r=0,o=(i=c[e].data).length;r<o;r++){var g=f[p];n=a._parseValue(i[r]),isNaN(n.min)||isNaN(n.max)||t.data[r].hidden||n.min<0||n.max<0||(g[r]=g[r]||0,g[r]+=n.max)}}Y.each(f,(function(e){if(e.length>0){var t=Y.min(e),n=Y.max(e);a.min=Math.min(a.min,t),a.max=Math.max(a.max,n)}}))}else for(e=0;e<c.length;e++)if(t=l.getDatasetMeta(e),l.isDatasetVisible(e)&&d(t))for(r=0,o=(i=c[e].data).length;r<o;r++)n=a._parseValue(i[r]),isNaN(n.min)||isNaN(n.max)||t.data[r].hidden||n.min<0||n.max<0||(a.min=Math.min(n.min,a.min),a.max=Math.max(n.max,a.max),0!==n.min&&(a.minNotZero=Math.min(n.min,a.minNotZero)));a.min=Y.isFinite(a.min)?a.min:null,a.max=Y.isFinite(a.max)?a.max:null,a.minNotZero=Y.isFinite(a.minNotZero)?a.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;e.min=jn(t.min,e.min),e.max=jn(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(Dn(e.min))-1),e.max=Math.pow(10,Math.floor(Dn(e.max))+1)):(e.min=1,e.max=10)),null===e.min&&(e.min=Math.pow(10,Math.floor(Dn(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(Dn(e.min))+1):10),null===e.minNotZero&&(e.min>0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(Dn(e.max))):e.minNotZero=1)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),i={min:jn(t.min),max:jn(t.max)},r=e.ticks=function(e,t){var n,i,r=[],o=Tn(e.min,Math.pow(10,Math.floor(Dn(t.min)))),a=Math.floor(Dn(t.max)),s=Math.ceil(t.max/Math.pow(10,a));0===o?(n=Math.floor(Dn(t.minNotZero)),i=Math.floor(t.minNotZero/Math.pow(10,n)),r.push(o),o=i*Math.pow(10,n)):(n=Math.floor(Dn(o)),i=Math.floor(o/Math.pow(10,n)));var l=n<0?Math.pow(10,Math.abs(n)):1;do{r.push(o),10==++i&&(i=1,l=++n>=0?1:l),o=Math.round(i*Math.pow(10,n)*l)/l}while(n<a||n===a&&i<s);var c=Tn(e.max,o);return r.push(c),r}(i,e);e.max=Y.max(r),e.min=Y.min(r),t.reverse?(n=!n,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n&&r.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),yn.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){var t=this.tickValues;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])},_getFirstTickValue:function(e){var t=Math.floor(Dn(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,n=0;yn.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),n=Tn(e.options.ticks.fontSize,F.global.defaultFontSize)/e._length),e._startValue=Dn(t),e._valueOffset=n,e._valueRange=(Dn(e.max)-Dn(t))/(1-n)},getPixelForValue:function(e){var t=this,n=0;return(e=+t.getRightValue(e))>t.min&&e>0&&(n=(Dn(e)-t._startValue)/t._valueRange+t._valueOffset),t.getPixelForDecimal(n)},getValueForPixel:function(e){var t=this,n=t.getDecimalForPixel(e);return 0===n&&0===t.min?0:Math.pow(10,t._startValue+(n-t._valueOffset)*t._valueRange)}}),En=On;Nn._defaults=En;var Pn=Y.valueOrDefault,Fn=Y.valueAtIndexOrDefault,zn=Y.options.resolve,Rn={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:rn.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function Bn(e){var t=e.ticks;return t.display&&e.display?Pn(t.fontSize,F.global.defaultFontSize)+2*t.backdropPaddingY:0}function Wn(e,t,n,i,r){return e===i||e===r?{start:t-n/2,end:t+n/2}:e<i||e>r?{start:t-n,end:t}:{start:t,end:t+n}}function Yn(e){return 0===e||180===e?"center":e<180?"left":"right"}function Un(e,t,n,i){var r,o,a=n.y+i/2;if(Y.isArray(t))for(r=0,o=t.length;r<o;++r)e.fillText(t[r],n.x,a),a+=i;else e.fillText(t,n.x,a)}function Hn(e,t,n){90===e||270===e?n.y-=t.h/2:(e>270||e<90)&&(n.y-=t.h)}function Vn(e){return Y.isNumber(e)?e:0}var Zn=Cn.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=Bn(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;Y.each(t.data.datasets,(function(r,o){if(t.isDatasetVisible(o)){var a=t.getDatasetMeta(o);Y.each(r.data,(function(t,r){var o=+e.getRightValue(t);isNaN(o)||a.data[r].hidden||(n=Math.min(o,n),i=Math.max(o,i))}))}})),e.min=n===Number.POSITIVE_INFINITY?0:n,e.max=i===Number.NEGATIVE_INFINITY?0:i,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Bn(this.options))},convertTicksToLabels:function(){var e=this;Cn.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map((function(){var t=Y.callback(e.options.pointLabels.callback,arguments,e);return t||0===t?t:""}))},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e=this,t=e.options;t.display&&t.pointLabels.display?function(e){var t,n,i,r=Y.options._parseFont(e.options.pointLabels),o={l:0,r:e.width,t:0,b:e.height-e.paddingTop},a={};e.ctx.font=r.string,e._pointLabelSizes=[];var s,l,c,u=e.chart.data.labels.length;for(t=0;t<u;t++){i=e.getPointPosition(t,e.drawingArea+5),s=e.ctx,l=r.lineHeight,c=e.pointLabels[t],n=Y.isArray(c)?{w:Y.longestText(s,s.font,c),h:c.length*l}:{w:s.measureText(c).width,h:l},e._pointLabelSizes[t]=n;var d=e.getIndexAngle(t),h=Y.toDegrees(d)%360,f=Wn(h,i.x,n.w,0,180),p=Wn(h,i.y,n.h,90,270);f.start<o.l&&(o.l=f.start,a.l=d),f.end>o.r&&(o.r=f.end,a.r=d),p.start<o.t&&(o.t=p.start,a.t=d),p.end>o.b&&(o.b=p.end,a.b=d)}e.setReductions(e.drawingArea,o,a)}(e):e.setCenterPoint(0,0,0,0)},setReductions:function(e,t,n){var i=this,r=t.l/Math.sin(n.l),o=Math.max(t.r-i.width,0)/Math.sin(n.r),a=-t.t/Math.cos(n.t),s=-Math.max(t.b-(i.height-i.paddingTop),0)/Math.cos(n.b);r=Vn(r),o=Vn(o),a=Vn(a),s=Vn(s),i.drawingArea=Math.min(Math.floor(e-(r+o)/2),Math.floor(e-(a+s)/2)),i.setCenterPoint(r,o,a,s)},setCenterPoint:function(e,t,n,i){var r=this,o=r.width-t-r.drawingArea,a=e+r.drawingArea,s=n+r.drawingArea,l=r.height-r.paddingTop-i-r.drawingArea;r.xCenter=Math.floor((a+o)/2+r.left),r.yCenter=Math.floor((s+l)/2+r.top+r.paddingTop)},getIndexAngle:function(e){var t=this.chart,n=(e*(360/t.data.labels.length)+((t.options||{}).startAngle||0))%360;return(n<0?n+360:n)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(Y.isNullOrUndef(e))return NaN;var n=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*n:(e-t.min)*n},getPointPosition:function(e,t){var n=this,i=n.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(i)*t+n.xCenter,y:Math.sin(i)*t+n.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(e){var t=this,n=t.min,i=t.max;return t.getPointPositionForValue(e||0,t.beginAtZero?0:n<0&&i<0?i:n>0&&i>0?n:0)},_drawGrid:function(){var e,t,n,i=this,r=i.ctx,o=i.options,a=o.gridLines,s=o.angleLines,l=Pn(s.lineWidth,a.lineWidth),c=Pn(s.color,a.color);if(o.pointLabels.display&&function(e){var t=e.ctx,n=e.options,i=n.pointLabels,r=Bn(n),o=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),a=Y.options._parseFont(i);t.save(),t.font=a.string,t.textBaseline="middle";for(var s=e.chart.data.labels.length-1;s>=0;s--){var l=0===s?r/2:0,c=e.getPointPosition(s,o+l+5),u=Fn(i.fontColor,s,F.global.defaultFontColor);t.fillStyle=u;var d=e.getIndexAngle(s),h=Y.toDegrees(d);t.textAlign=Yn(h),Hn(h,e._pointLabelSizes[s],c),Un(t,e.pointLabels[s],c,a.lineHeight)}t.restore()}(i),a.display&&Y.each(i.ticks,(function(e,n){0!==n&&(t=i.getDistanceFromCenterForValue(i.ticksAsNumbers[n]),function(e,t,n,i){var r,o=e.ctx,a=t.circular,s=e.chart.data.labels.length,l=Fn(t.color,i-1),c=Fn(t.lineWidth,i-1);if((a||s)&&l&&c){if(o.save(),o.strokeStyle=l,o.lineWidth=c,o.setLineDash&&(o.setLineDash(t.borderDash||[]),o.lineDashOffset=t.borderDashOffset||0),o.beginPath(),a)o.arc(e.xCenter,e.yCenter,n,0,2*Math.PI);else{r=e.getPointPosition(0,n),o.moveTo(r.x,r.y);for(var u=1;u<s;u++)r=e.getPointPosition(u,n),o.lineTo(r.x,r.y)}o.closePath(),o.stroke(),o.restore()}}(i,a,t,n))})),s.display&&l&&c){for(r.save(),r.lineWidth=l,r.strokeStyle=c,r.setLineDash&&(r.setLineDash(zn([s.borderDash,a.borderDash,[]])),r.lineDashOffset=zn([s.borderDashOffset,a.borderDashOffset,0])),e=i.chart.data.labels.length-1;e>=0;e--)t=i.getDistanceFromCenterForValue(o.ticks.reverse?i.min:i.max),n=i.getPointPosition(e,t),r.beginPath(),r.moveTo(i.xCenter,i.yCenter),r.lineTo(n.x,n.y),r.stroke();r.restore()}},_drawLabels:function(){var e=this,t=e.ctx,n=e.options.ticks;if(n.display){var i,r,o=e.getIndexAngle(0),a=Y.options._parseFont(n),s=Pn(n.fontColor,F.global.defaultFontColor);t.save(),t.font=a.string,t.translate(e.xCenter,e.yCenter),t.rotate(o),t.textAlign="center",t.textBaseline="middle",Y.each(e.ticks,(function(o,l){(0!==l||n.reverse)&&(i=e.getDistanceFromCenterForValue(e.ticksAsNumbers[l]),n.showLabelBackdrop&&(r=t.measureText(o).width,t.fillStyle=n.backdropColor,t.fillRect(-r/2-n.backdropPaddingX,-i-a.size/2-n.backdropPaddingY,r+2*n.backdropPaddingX,a.size+2*n.backdropPaddingY)),t.fillStyle=s,t.fillText(o,0,-i))})),t.restore()}},_drawTitle:Y.noop}),Gn=Rn;Zn._defaults=Gn;var Qn=Y._deprecated,Jn=Y.options.resolve,qn=Y.valueOrDefault,Xn=Number.MIN_SAFE_INTEGER||-9007199254740991,Kn=Number.MAX_SAFE_INTEGER||9007199254740991,$n={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},ei=Object.keys($n);function ti(e,t){return e-t}function ni(e){return Y.valueOrDefault(e.time.min,e.ticks.min)}function ii(e){return Y.valueOrDefault(e.time.max,e.ticks.max)}function ri(e,t,n,i){var r=function(e,t,n){for(var i,r,o,a=0,s=e.length-1;a>=0&&a<=s;){if(r=e[(i=a+s>>1)-1]||null,o=e[i],!r)return{lo:null,hi:o};if(o[t]<n)a=i+1;else{if(!(r[t]>n))return{lo:r,hi:o};s=i-1}}return{lo:o,hi:null}}(e,t,n),o=r.lo?r.hi?r.lo:e[e.length-2]:e[0],a=r.lo?r.hi?r.hi:e[e.length-1]:e[1],s=a[t]-o[t],l=s?(n-o[t])/s:0,c=(a[i]-o[i])*l;return o[i]+c}function oi(e,t){var n=e._adapter,i=e.options.time,r=i.parser,o=r||i.format,a=t;return"function"==typeof r&&(a=r(a)),Y.isFinite(a)||(a="string"==typeof o?n.parse(a,o):n.parse(a)),null!==a?+a:(r||"function"!=typeof o||(a=o(t),Y.isFinite(a)||(a=n.parse(a))),a)}function ai(e,t){if(Y.isNullOrUndef(t))return null;var n=e.options.time,i=oi(e,e.getRightValue(t));return null===i||n.round&&(i=+e._adapter.startOf(i,n.round)),i}function si(e,t,n,i){var r,o,a,s=ei.length;for(r=ei.indexOf(e);r<s-1;++r)if(a=(o=$n[ei[r]]).steps?o.steps:Kn,o.common&&Math.ceil((n-t)/(a*o.size))<=i)return ei[r];return ei[s-1]}function li(e,t,n){var i,r,o=[],a={},s=t.length;for(i=0;i<s;++i)a[r=t[i]]=i,o.push({value:r,major:!1});return 0!==s&&n?function(e,t,n,i){var r,o,a=e._adapter,s=+a.startOf(t[0].value,i),l=t[t.length-1].value;for(r=s;r<=l;r=+a.add(r,1,i))(o=n[r])>=0&&(t[o].major=!0);return t}(e,o,a,n):o}var ci=yn.extend({initialize:function(){this.mergeTicksOptions(),yn.prototype.initialize.call(this)},update:function(){var e=this,t=e.options,n=t.time||(t.time={}),i=e._adapter=new nn._date(t.adapters.date);return Qn("time scale",n.format,"time.format","time.parser"),Qn("time scale",n.min,"time.min","ticks.min"),Qn("time scale",n.max,"time.max","ticks.max"),Y.mergeIf(n.displayFormats,i.formats()),yn.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),yn.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,i,r,o,a,s=this,l=s.chart,c=s._adapter,u=s.options,d=u.time.unit||"day",h=Kn,f=Xn,p=[],g=[],m=[],v=s._getLabels();for(e=0,n=v.length;e<n;++e)m.push(ai(s,v[e]));for(e=0,n=(l.data.datasets||[]).length;e<n;++e)if(l.isDatasetVisible(e))if(r=l.data.datasets[e].data,Y.isObject(r[0]))for(g[e]=[],t=0,i=r.length;t<i;++t)o=ai(s,r[t]),p.push(o),g[e][t]=o;else g[e]=m.slice(0),a||(p=p.concat(m),a=!0);else g[e]=[];m.length&&(h=Math.min(h,m[0]),f=Math.max(f,m[m.length-1])),p.length&&(p=n>1?function(e){var t,n,i,r={},o=[];for(t=0,n=e.length;t<n;++t)r[i=e[t]]||(r[i]=!0,o.push(i));return o}(p).sort(ti):p.sort(ti),h=Math.min(h,p[0]),f=Math.max(f,p[p.length-1])),h=ai(s,ni(u))||h,f=ai(s,ii(u))||f,h=h===Kn?+c.startOf(Date.now(),d):h,f=f===Xn?+c.endOf(Date.now(),d)+1:f,s.min=Math.min(h,f),s.max=Math.max(h+1,f),s._table=[],s._timestamps={data:p,datasets:g,labels:m}},buildTicks:function(){var e,t,n,i=this,r=i.min,o=i.max,a=i.options,s=a.ticks,l=a.time,c=i._timestamps,u=[],d=i.getLabelCapacity(r),h=s.source,f=a.distribution;for(c="data"===h||"auto"===h&&"series"===f?c.data:"labels"===h?c.labels:function(e,t,n,i){var r,o=e._adapter,a=e.options,s=a.time,l=s.unit||si(s.minUnit,t,n,i),c=Jn([s.stepSize,s.unitStepSize,1]),u="week"===l&&s.isoWeekday,d=t,h=[];if(u&&(d=+o.startOf(d,"isoWeek",u)),d=+o.startOf(d,u?"day":l),o.diff(n,t,l)>1e5*c)throw t+" and "+n+" are too far apart with stepSize of "+c+" "+l;for(r=d;r<n;r=+o.add(r,c,l))h.push(r);return r!==n&&"ticks"!==a.bounds||h.push(r),h}(i,r,o,d),"ticks"===a.bounds&&c.length&&(r=c[0],o=c[c.length-1]),r=ai(i,ni(a))||r,o=ai(i,ii(a))||o,e=0,t=c.length;e<t;++e)(n=c[e])>=r&&n<=o&&u.push(n);return i.min=r,i.max=o,i._unit=l.unit||(s.autoSkip?si(l.minUnit,i.min,i.max,d):function(e,t,n,i,r){var o,a;for(o=ei.length-1;o>=ei.indexOf(n);o--)if(a=ei[o],$n[a].common&&e._adapter.diff(r,i,a)>=t-1)return a;return ei[n?ei.indexOf(n):0]}(i,u.length,l.minUnit,i.min,i.max)),i._majorUnit=s.major.enabled&&"year"!==i._unit?function(e){for(var t=ei.indexOf(e)+1,n=ei.length;t<n;++t)if($n[ei[t]].common)return ei[t]}(i._unit):void 0,i._table=function(e,t,n,i){if("linear"===i||!e.length)return[{time:t,pos:0},{time:n,pos:1}];var r,o,a,s,l,c=[],u=[t];for(r=0,o=e.length;r<o;++r)(s=e[r])>t&&s<n&&u.push(s);for(u.push(n),r=0,o=u.length;r<o;++r)l=u[r+1],a=u[r-1],s=u[r],void 0!==a&&void 0!==l&&Math.round((l+a)/2)===s||c.push({time:s,pos:r/(o-1)});return c}(i._timestamps.data,r,o,f),i._offsets=function(e,t,n,i,r){var o,a,s=0,l=0;return r.offset&&t.length&&(o=ri(e,"time",t[0],"pos"),s=1===t.length?1-o:(ri(e,"time",t[1],"pos")-o)/2,a=ri(e,"time",t[t.length-1],"pos"),l=1===t.length?a:(a-ri(e,"time",t[t.length-2],"pos"))/2),{start:s,end:l,factor:1/(s+1+l)}}(i._table,u,0,0,a),s.reverse&&u.reverse(),li(i,u,i._majorUnit)},getLabelForIndex:function(e,t){var n=this,i=n._adapter,r=n.chart.data,o=n.options.time,a=r.labels&&e<r.labels.length?r.labels[e]:"",s=r.datasets[t].data[e];return Y.isObject(s)&&(a=n.getRightValue(s)),o.tooltipFormat?i.format(oi(n,a),o.tooltipFormat):"string"==typeof a?a:i.format(oi(n,a),o.displayFormats.datetime)},tickFormatFunction:function(e,t,n,i){var r=this,o=r._adapter,a=r.options,s=a.time.displayFormats,l=s[r._unit],c=r._majorUnit,u=s[c],d=n[t],h=a.ticks,f=c&&u&&d&&d.major,p=o.format(e,i||(f?u:l)),g=f?h.major:h.minor,m=Jn([g.callback,g.userCallback,h.callback,h.userCallback]);return m?m(p,t,n):p},convertTicksToLabels:function(e){var t,n,i=[];for(t=0,n=e.length;t<n;++t)i.push(this.tickFormatFunction(e[t].value,t,e));return i},getPixelForOffset:function(e){var t=this,n=t._offsets,i=ri(t._table,"time",e,"pos");return t.getPixelForDecimal((n.start+i)*n.factor)},getPixelForValue:function(e,t,n){var i=this,r=null;if(void 0!==t&&void 0!==n&&(r=i._timestamps.datasets[n][t]),null===r&&(r=ai(i,e)),null!==r)return i.getPixelForOffset(r)},getPixelForTick:function(e){var t=this.getTicks();return e>=0&&e<t.length?this.getPixelForOffset(t[e].value):null},getValueForPixel:function(e){var t=this,n=t._offsets,i=t.getDecimalForPixel(e)/n.factor-n.end,r=ri(t._table,"pos",i,"time");return t._adapter._create(r)},_getLabelSize:function(e){var t=this,n=t.options.ticks,i=t.ctx.measureText(e).width,r=Y.toRadians(t.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(r),a=Math.sin(r),s=qn(n.fontSize,F.global.defaultFontSize);return{w:i*o+s*a,h:i*a+s*o}},getLabelWidth:function(e){return this._getLabelSize(e).w},getLabelCapacity:function(e){var t=this,n=t.options.time,i=n.displayFormats,r=i[n.unit]||i.millisecond,o=t.tickFormatFunction(e,0,li(t,[e],t._majorUnit),r),a=t._getLabelSize(o),s=Math.floor(t.isHorizontal()?t.width/a.w:t.height/a.h);return t.options.offset&&s--,s>0?s:1}}),ui={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};ci._defaults=ui;var di={category:xn,linear:In,logarithmic:Nn,radialLinear:Zn,time:ci},hi={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};nn._date.override("function"==typeof e?{_id:"moment",formats:function(){return hi},parse:function(t,n){return"string"==typeof t&&"string"==typeof n?t=e(t,n):t instanceof e||(t=e(t)),t.isValid()?t.valueOf():null},format:function(t,n){return e(t).format(n)},add:function(t,n,i){return e(t).add(n,i).valueOf()},diff:function(t,n,i){return e(t).diff(e(n),i)},startOf:function(t,n,i){return t=e(t),"isoWeek"===n?t.isoWeekday(i).valueOf():t.startOf(n).valueOf()},endOf:function(t,n){return e(t).endOf(n).valueOf()},_create:function(t){return e(t)}}:{}),F._set("global",{plugins:{filler:{propagate:!0}}});var fi={dataset:function(e){var t=e.fill,n=e.chart,i=n.getDatasetMeta(t),r=i&&n.isDatasetVisible(t)&&i.dataset._children||[],o=r.length||0;return o?function(e,t){return t<o&&r[t]._view||null}:null},boundary:function(e){var t=e.boundary,n=t?t.x:null,i=t?t.y:null;return Y.isArray(t)?function(e,n){return t[n]}:function(e){return{x:null===n?e.x:n,y:null===i?e.y:i}}}};function pi(e,t,n){var i,r=e._model||{},o=r.fill;if(void 0===o&&(o=!!r.backgroundColor),!1===o||null===o)return!1;if(!0===o)return"origin";if(i=parseFloat(o,10),isFinite(i)&&Math.floor(i)===i)return"-"!==o[0]&&"+"!==o[0]||(i=t+i),!(i===t||i<0||i>=n)&&i;switch(o){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return o;default:return!1}}function gi(e){return(e.el._scale||{}).getPointPositionForValue?function(e){var t,n,i,r,o,a=e.el._scale,s=a.options,l=a.chart.data.labels.length,c=e.fill,u=[];if(!l)return null;for(t=s.ticks.reverse?a.max:a.min,n=s.ticks.reverse?a.min:a.max,i=a.getPointPositionForValue(0,t),r=0;r<l;++r)o="start"===c||"end"===c?a.getPointPositionForValue(r,"start"===c?t:n):a.getBasePosition(r),s.gridLines.circular&&(o.cx=i.x,o.cy=i.y,o.angle=a.getIndexAngle(r)-Math.PI/2),u.push(o);return u}(e):function(e){var t,n=e.el._model||{},i=e.el._scale||{},r=e.fill,o=null;if(isFinite(r))return null;if("start"===r?o=void 0===n.scaleBottom?i.bottom:n.scaleBottom:"end"===r?o=void 0===n.scaleTop?i.top:n.scaleTop:void 0!==n.scaleZero?o=n.scaleZero:i.getBasePixel&&(o=i.getBasePixel()),null!=o){if(void 0!==o.x&&void 0!==o.y)return o;if(Y.isFinite(o))return{x:(t=i.isHorizontal())?o:null,y:t?null:o}}return null}(e)}function mi(e,t,n){var i,r=e[t].fill,o=[t];if(!n)return r;for(;!1!==r&&-1===o.indexOf(r);){if(!isFinite(r))return r;if(!(i=e[r]))return!1;if(i.visible)return r;o.push(r),r=i.fill}return!1}function vi(e){var t=e.fill,n="dataset";return!1===t?null:(isFinite(t)||(n="boundary"),fi[n](e))}function yi(e){return e&&!e.skip}function bi(e,t,n,i,r){var o,a,s,l;if(i&&r){for(e.moveTo(t[0].x,t[0].y),o=1;o<i;++o)Y.canvas.lineTo(e,t[o-1],t[o]);if(void 0===n[0].angle)for(e.lineTo(n[r-1].x,n[r-1].y),o=r-1;o>0;--o)Y.canvas.lineTo(e,n[o],n[o-1],!0);else for(a=n[0].cx,s=n[0].cy,l=Math.sqrt(Math.pow(n[0].x-a,2)+Math.pow(n[0].y-s,2)),o=r-1;o>0;--o)e.arc(a,s,l,n[o].angle,n[o-1].angle,!0)}}function xi(e,t,n,i,r,o){var a,s,l,c,u,d,h,f,p=t.length,g=i.spanGaps,m=[],v=[],y=0,b=0;for(e.beginPath(),a=0,s=p;a<s;++a)u=n(c=t[l=a%p]._view,l,i),d=yi(c),h=yi(u),o&&void 0===f&&d&&(s=p+(f=a+1)),d&&h?(y=m.push(c),b=v.push(u)):y&&b&&(g?(d&&m.push(c),h&&v.push(u)):(bi(e,m,v,y,b),y=b=0,m=[],v=[]));bi(e,m,v,y,b),e.closePath(),e.fillStyle=r,e.fill()}var wi={id:"filler",afterDatasetsUpdate:function(e,t){var n,i,r,o,a=(e.data.datasets||[]).length,s=t.propagate,l=[];for(i=0;i<a;++i)o=null,(r=(n=e.getDatasetMeta(i)).dataset)&&r._model&&r instanceof Ae.Line&&(o={visible:e.isDatasetVisible(i),fill:pi(r,i,a),chart:e,el:r}),n.$filler=o,l.push(o);for(i=0;i<a;++i)(o=l[i])&&(o.fill=mi(l,i,s),o.boundary=gi(o),o.mapper=vi(o))},beforeDatasetsDraw:function(e){var t,n,i,r,o,a,s,l=e._getSortedVisibleDatasetMetas(),c=e.ctx;for(n=l.length-1;n>=0;--n)(t=l[n].$filler)&&t.visible&&(r=(i=t.el)._view,o=i._children||[],a=t.mapper,s=r.backgroundColor||F.global.defaultColor,a&&s&&o.length&&(Y.canvas.clipArea(c,e.chartArea),xi(c,o,a,r,s,i._loop),Y.canvas.unclipArea(c)))}},Ai=Y.rtl.getRtlAdapter,_i=Y.noop,Ci=Y.valueOrDefault;function Mi(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}F._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,i=this.chart,r=i.getDatasetMeta(n);r.hidden=null===r.hidden?!i.data.datasets[n].hidden:null,i.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,n=e.options.legend||{},i=n.labels&&n.labels.usePointStyle;return e._getSortedDatasetMetas().map((function(n){var r=n.controller.getStyle(i?0:void 0);return{text:t[n.index].label,fillStyle:r.backgroundColor,hidden:!e.isDatasetVisible(n.index),lineCap:r.borderCapStyle,lineDash:r.borderDash,lineDashOffset:r.borderDashOffset,lineJoin:r.borderJoinStyle,lineWidth:r.borderWidth,strokeStyle:r.borderColor,pointStyle:r.pointStyle,rotation:r.rotation,datasetIndex:n.index}}),this)}}},legendCallback:function(e){var t,n,i,r=document.createElement("ul"),o=e.data.datasets;for(r.setAttribute("class",e.id+"-legend"),t=0,n=o.length;t<n;t++)(i=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[t].backgroundColor,o[t].label&&i.appendChild(document.createTextNode(o[t].label));return r.outerHTML}});var ki=J.extend({initialize:function(e){var t=this;Y.extend(t,e),t.legendHitBoxes=[],t._hoveredItem=null,t.doughnutMode=!1},beforeUpdate:_i,update:function(e,t,n){var i=this;return i.beforeUpdate(),i.maxWidth=e,i.maxHeight=t,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:_i,beforeSetDimensions:_i,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:_i,beforeBuildLabels:_i,buildLabels:function(){var e=this,t=e.options.labels||{},n=Y.callback(t.generateLabels,[e.chart],e)||[];t.filter&&(n=n.filter((function(n){return t.filter(n,e.chart.data)}))),e.options.reverse&&n.reverse(),e.legendItems=n},afterBuildLabels:_i,beforeFit:_i,fit:function(){var e=this,t=e.options,n=t.labels,i=t.display,r=e.ctx,o=Y.options._parseFont(n),a=o.size,s=e.legendHitBoxes=[],l=e.minSize,c=e.isHorizontal();if(c?(l.width=e.maxWidth,l.height=i?10:0):(l.width=i?10:0,l.height=e.maxHeight),i){if(r.font=o.string,c){var u=e.lineWidths=[0],d=0;r.textAlign="left",r.textBaseline="middle",Y.each(e.legendItems,(function(e,t){var i=Mi(n,a)+a/2+r.measureText(e.text).width;(0===t||u[u.length-1]+i+2*n.padding>l.width)&&(d+=a+n.padding,u[u.length-(t>0?0:1)]=0),s[t]={left:0,top:0,width:i,height:a},u[u.length-1]+=i+n.padding})),l.height+=d}else{var h=n.padding,f=e.columnWidths=[],p=e.columnHeights=[],g=n.padding,m=0,v=0;Y.each(e.legendItems,(function(e,t){var i=Mi(n,a)+a/2+r.measureText(e.text).width;t>0&&v+a+2*h>l.height&&(g+=m+n.padding,f.push(m),p.push(v),m=0,v=0),m=Math.max(m,i),v+=a+h,s[t]={left:0,top:0,width:i,height:a}})),g+=m,f.push(m),p.push(v),l.width+=g}e.width=l.width,e.height=l.height}else e.width=l.width=e.height=l.height=0},afterFit:_i,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,i=F.global,r=i.defaultColor,o=i.elements.line,a=e.height,s=e.columnHeights,l=e.width,c=e.lineWidths;if(t.display){var u,d=Ai(t.rtl,e.left,e.minSize.width),h=e.ctx,f=Ci(n.fontColor,i.defaultFontColor),p=Y.options._parseFont(n),g=p.size;h.textAlign=d.textAlign("left"),h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=f,h.fillStyle=f,h.font=p.string;var m=Mi(n,g),v=e.legendHitBoxes,y=function(e,i){switch(t.align){case"start":return n.padding;case"end":return e-i;default:return(e-i+n.padding)/2}},b=e.isHorizontal();u=b?{x:e.left+y(l,c[0]),y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+y(a,s[0]),line:0},Y.rtl.overrideTextDirection(e.ctx,t.textDirection);var x=g+n.padding;Y.each(e.legendItems,(function(t,i){var f=h.measureText(t.text).width,p=m+g/2+f,w=u.x,A=u.y;d.setWidth(e.minSize.width),b?i>0&&w+p+n.padding>e.left+e.minSize.width&&(A=u.y+=x,u.line++,w=u.x=e.left+y(l,c[u.line])):i>0&&A+x>e.top+e.minSize.height&&(w=u.x=w+e.columnWidths[u.line]+n.padding,u.line++,A=u.y=e.top+y(a,s[u.line]));var _=d.x(w);(function(e,t,i){if(!(isNaN(m)||m<=0)){h.save();var a=Ci(i.lineWidth,o.borderWidth);if(h.fillStyle=Ci(i.fillStyle,r),h.lineCap=Ci(i.lineCap,o.borderCapStyle),h.lineDashOffset=Ci(i.lineDashOffset,o.borderDashOffset),h.lineJoin=Ci(i.lineJoin,o.borderJoinStyle),h.lineWidth=a,h.strokeStyle=Ci(i.strokeStyle,r),h.setLineDash&&h.setLineDash(Ci(i.lineDash,o.borderDash)),n&&n.usePointStyle){var s=m*Math.SQRT2/2,l=d.xPlus(e,m/2),c=t+g/2;Y.canvas.drawPoint(h,i.pointStyle,s,l,c,i.rotation)}else h.fillRect(d.leftForLtr(e,m),t,m,g),0!==a&&h.strokeRect(d.leftForLtr(e,m),t,m,g);h.restore()}})(_,A,t),v[i].left=d.leftForLtr(_,v[i].width),v[i].top=A,function(e,t,n,i){var r=g/2,o=d.xPlus(e,m+r),a=t+r;h.fillText(n.text,o,a),n.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(o,a),h.lineTo(d.xPlus(o,i),a),h.stroke())}(_,A,t,f),b?u.x+=p+n.padding:u.y+=x})),Y.rtl.restoreTextDirection(e.ctx,t.textDirection)}},_getLegendItemAt:function(e,t){var n,i,r,o=this;if(e>=o.left&&e<=o.right&&t>=o.top&&t<=o.bottom)for(r=o.legendHitBoxes,n=0;n<r.length;++n)if(e>=(i=r[n]).left&&e<=i.left+i.width&&t>=i.top&&t<=i.top+i.height)return o.legendItems[n];return null},handleEvent:function(e){var t,n=this,i=n.options,r="mouseup"===e.type?"click":e.type;if("mousemove"===r){if(!i.onHover&&!i.onLeave)return}else{if("click"!==r)return;if(!i.onClick)return}t=n._getLegendItemAt(e.x,e.y),"click"===r?t&&i.onClick&&i.onClick.call(n,e.native,t):(i.onLeave&&t!==n._hoveredItem&&(n._hoveredItem&&i.onLeave.call(n,e.native,n._hoveredItem),n._hoveredItem=t),i.onHover&&t&&i.onHover.call(n,e.native,t))}});function Si(e,t){var n=new ki({ctx:e.ctx,options:t,chart:e});ft.configure(e,n,t),ft.addBox(e,n),e.legend=n}var Ii={id:"legend",_element:ki,beforeInit:function(e){var t=e.options.legend;t&&Si(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(Y.mergeIf(t,F.global.legend),n?(ft.configure(e,n,t),n.options=t):Si(e,t)):n&&(ft.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}},Li=Y.noop;F._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Ti=J.extend({initialize:function(e){Y.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:Li,update:function(e,t,n){var i=this;return i.beforeUpdate(),i.maxWidth=e,i.maxHeight=t,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:Li,beforeSetDimensions:Li,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Li,beforeBuildLabels:Li,buildLabels:Li,afterBuildLabels:Li,beforeFit:Li,fit:function(){var e,t=this,n=t.options,i=t.minSize={},r=t.isHorizontal();n.display?(e=(Y.isArray(n.text)?n.text.length:1)*Y.options._parseFont(n).lineHeight+2*n.padding,t.width=i.width=r?t.maxWidth:e,t.height=i.height=r?e:t.maxHeight):t.width=i.width=t.height=i.height=0},afterFit:Li,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,n=e.options;if(n.display){var i,r,o,a=Y.options._parseFont(n),s=a.lineHeight,l=s/2+n.padding,c=0,u=e.top,d=e.left,h=e.bottom,f=e.right;t.fillStyle=Y.valueOrDefault(n.fontColor,F.global.defaultFontColor),t.font=a.string,e.isHorizontal()?(r=d+(f-d)/2,o=u+l,i=f-d):(r="left"===n.position?d+l:f-l,o=u+(h-u)/2,i=h-u,c=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(r,o),t.rotate(c),t.textAlign="center",t.textBaseline="middle";var p=n.text;if(Y.isArray(p))for(var g=0,m=0;m<p.length;++m)t.fillText(p[m],0,g,i),g+=s;else t.fillText(p,0,0,i);t.restore()}}});function Di(e,t){var n=new Ti({ctx:e.ctx,options:t,chart:e});ft.configure(e,n,t),ft.addBox(e,n),e.titleBlock=n}var Oi={},ji=wi,Ni=Ii,Ei={id:"title",_element:Ti,beforeInit:function(e){var t=e.options.title;t&&Di(e,t)},beforeUpdate:function(e){var t=e.options.title,n=e.titleBlock;t?(Y.mergeIf(t,F.global.title),n?(ft.configure(e,n,t),n.options=t):Di(e,t)):n&&(ft.removeBox(e,n),delete e.titleBlock)}};for(var Pi in Oi.filler=ji,Oi.legend=Ni,Oi.title=Ei,$t.helpers=Y,function(){function e(e,t,n){var i;return"string"==typeof e?(i=parseInt(e,10),-1!==e.indexOf("%")&&(i=i/100*t.parentNode[n])):i=e,i}function t(e){return null!=e&&"none"!==e}function n(n,i,r){var o=document.defaultView,a=Y._getParentNode(n),s=o.getComputedStyle(n)[i],l=o.getComputedStyle(a)[i],c=t(s),u=t(l),d=Number.POSITIVE_INFINITY;return c||u?Math.min(c?e(s,n,r):d,u?e(l,a,r):d):"none"}Y.where=function(e,t){if(Y.isArray(e)&&Array.prototype.filter)return e.filter(t);var n=[];return Y.each(e,(function(e){t(e)&&n.push(e)})),n},Y.findIndex=Array.prototype.findIndex?function(e,t,n){return e.findIndex(t,n)}:function(e,t,n){n=void 0===n?e:n;for(var i=0,r=e.length;i<r;++i)if(t.call(n,e[i],i,e))return i;return-1},Y.findNextWhere=function(e,t,n){Y.isNullOrUndef(n)&&(n=-1);for(var i=n+1;i<e.length;i++){var r=e[i];if(t(r))return r}},Y.findPreviousWhere=function(e,t,n){Y.isNullOrUndef(n)&&(n=e.length);for(var i=n-1;i>=0;i--){var r=e[i];if(t(r))return r}},Y.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},Y.almostEquals=function(e,t,n){return Math.abs(e-t)<n},Y.almostWhole=function(e,t){var n=Math.round(e);return n-t<=e&&n+t>=e},Y.max=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.max(e,t)}),Number.NEGATIVE_INFINITY)},Y.min=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.min(e,t)}),Number.POSITIVE_INFINITY)},Y.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0==(e=+e)||isNaN(e)?e:e>0?1:-1},Y.toRadians=function(e){return e*(Math.PI/180)},Y.toDegrees=function(e){return e*(180/Math.PI)},Y._decimalPlaces=function(e){if(Y.isFinite(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}},Y.getAngleFromPoint=function(e,t){var n=t.x-e.x,i=t.y-e.y,r=Math.sqrt(n*n+i*i),o=Math.atan2(i,n);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:r}},Y.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Y.aliasPixel=function(e){return e%2==0?0:.5},Y._alignPixel=function(e,t,n){var i=e.currentDevicePixelRatio,r=n/2;return Math.round((t-r)*i)/i+r},Y.splineCurve=function(e,t,n,i){var r=e.skip?t:e,o=t,a=n.skip?t:n,s=Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),l=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2)),c=s/(s+l),u=l/(s+l),d=i*(c=isNaN(c)?0:c),h=i*(u=isNaN(u)?0:u);return{previous:{x:o.x-d*(a.x-r.x),y:o.y-d*(a.y-r.y)},next:{x:o.x+h*(a.x-r.x),y:o.y+h*(a.y-r.y)}}},Y.EPSILON=Number.EPSILON||1e-14,Y.splineCurveMonotone=function(e){var t,n,i,r,o,a,s,l,c,u=(e||[]).map((function(e){return{model:e._model,deltaK:0,mK:0}})),d=u.length;for(t=0;t<d;++t)if(!(i=u[t]).model.skip){if(n=t>0?u[t-1]:null,(r=t<d-1?u[t+1]:null)&&!r.model.skip){var h=r.model.x-i.model.x;i.deltaK=0!==h?(r.model.y-i.model.y)/h:0}!n||n.model.skip?i.mK=i.deltaK:!r||r.model.skip?i.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(i.deltaK)?i.mK=0:i.mK=(n.deltaK+i.deltaK)/2}for(t=0;t<d-1;++t)i=u[t],r=u[t+1],i.model.skip||r.model.skip||(Y.almostEquals(i.deltaK,0,this.EPSILON)?i.mK=r.mK=0:(o=i.mK/i.deltaK,a=r.mK/i.deltaK,(l=Math.pow(o,2)+Math.pow(a,2))<=9||(s=3/Math.sqrt(l),i.mK=o*s*i.deltaK,r.mK=a*s*i.deltaK)));for(t=0;t<d;++t)(i=u[t]).model.skip||(n=t>0?u[t-1]:null,r=t<d-1?u[t+1]:null,n&&!n.model.skip&&(c=(i.model.x-n.model.x)/3,i.model.controlPointPreviousX=i.model.x-c,i.model.controlPointPreviousY=i.model.y-c*i.mK),r&&!r.model.skip&&(c=(r.model.x-i.model.x)/3,i.model.controlPointNextX=i.model.x+c,i.model.controlPointNextY=i.model.y+c*i.mK))},Y.nextItem=function(e,t,n){return n?t>=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},Y.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},Y.niceNum=function(e,t){var n=Math.floor(Y.log10(e)),i=e/Math.pow(10,n);return(t?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,n)},Y.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},Y.getRelativePosition=function(e,t){var n,i,r=e.originalEvent||e,o=e.target||e.srcElement,a=o.getBoundingClientRect(),s=r.touches;s&&s.length>0?(n=s[0].clientX,i=s[0].clientY):(n=r.clientX,i=r.clientY);var l=parseFloat(Y.getStyle(o,"padding-left")),c=parseFloat(Y.getStyle(o,"padding-top")),u=parseFloat(Y.getStyle(o,"padding-right")),d=parseFloat(Y.getStyle(o,"padding-bottom")),h=a.right-a.left-l-u,f=a.bottom-a.top-c-d;return{x:n=Math.round((n-a.left-l)/h*o.width/t.currentDevicePixelRatio),y:i=Math.round((i-a.top-c)/f*o.height/t.currentDevicePixelRatio)}},Y.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},Y.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},Y._calculatePadding=function(e,t,n){return(t=Y.getStyle(e,t)).indexOf("%")>-1?n*parseInt(t,10)/100:parseInt(t,10)},Y._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},Y.getMaximumWidth=function(e){var t=Y._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,i=n-Y._calculatePadding(t,"padding-left",n)-Y._calculatePadding(t,"padding-right",n),r=Y.getConstraintWidth(e);return isNaN(r)?i:Math.min(i,r)},Y.getMaximumHeight=function(e){var t=Y._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,i=n-Y._calculatePadding(t,"padding-top",n)-Y._calculatePadding(t,"padding-bottom",n),r=Y.getConstraintHeight(e);return isNaN(r)?i:Math.min(i,r)},Y.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},Y.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var i=e.canvas,r=e.height,o=e.width;i.height=r*n,i.width=o*n,e.ctx.scale(n,n),i.style.height||i.style.width||(i.style.height=r+"px",i.style.width=o+"px")}},Y.fontString=function(e,t,n){return t+" "+e+"px "+n},Y.longestText=function(e,t,n,i){var r=(i=i||{}).data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(r=i.data={},o=i.garbageCollect=[],i.font=t),e.font=t;var a,s,l,c,u,d=0,h=n.length;for(a=0;a<h;a++)if(null!=(c=n[a])&&!0!==Y.isArray(c))d=Y.measureText(e,r,o,d,c);else if(Y.isArray(c))for(s=0,l=c.length;s<l;s++)null==(u=c[s])||Y.isArray(u)||(d=Y.measureText(e,r,o,d,u));var f=o.length/2;if(f>n.length){for(a=0;a<f;a++)delete r[o[a]];o.splice(0,f)}return d},Y.measureText=function(e,t,n,i,r){var o=t[r];return o||(o=t[r]=e.measureText(r).width,n.push(r)),o>i&&(i=o),i},Y.numberOfLabelLines=function(e){var t=1;return Y.each(e,(function(e){Y.isArray(e)&&e.length>t&&(t=e.length)})),t},Y.color=w?function(e){return e instanceof CanvasGradient&&(e=F.global.defaultColor),w(e)}:function(e){return console.error("Color.js not found!"),e},Y.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:Y.color(e).saturate(.5).darken(.1).rgbString()}}(),$t._adapters=nn,$t.Animation=X,$t.animationService=K,$t.controllers=qe,$t.DatasetController=ie,$t.defaults=F,$t.Element=J,$t.elements=Ae,$t.Interaction=it,$t.layouts=ft,$t.platform=Ot,$t.plugins=jt,$t.Scale=yn,$t.scaleService=Nt,$t.Ticks=rn,$t.Tooltip=Vt,$t.helpers.each(di,(function(e,t){$t.scaleService.registerScaleType(t,e,e._defaults)})),Oi)Oi.hasOwnProperty(Pi)&&$t.plugins.register(Oi[Pi]);$t.platform.initialize();var Fi=$t;return"undefined"!=typeof window&&(window.Chart=$t),$t.Chart=$t,$t.Legend=Oi.legend._element,$t.Title=Oi.title._element,$t.pluginService=$t.plugins,$t.PluginBase=$t.Element.extend({}),$t.canvasHelpers=$t.helpers.canvas,$t.layoutService=$t.layouts,$t.LinearScaleBase=Cn,$t.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],(function(e){$t[e]=function(t,n){return new $t(t,$t.helpers.merge(n||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}})),Fi}(function(){try{return n(34)}catch(e){}}())},125:(e,t,n)=>{var i=n(609),r=n(991),o=n(946);t=i(!1);var a=r(o);t.push([e.id,"@font-face {\n font-family: viewericons;\n src: url("+a+');\n font-weight: normal;\n font-style: normal;\n}\n/* Styles common to both inspector and highlighting used within iframe */\n.linked-highlight-text {\n outline: dashed 2px #026dce;\n outline-offset: 1px;\n}\n.linked-highlight-cell {\n outline: dashed 2px #026dce;\n outline-offset: 1px;\n outline-offset: -1px;\n}\n.ixbrl-highlight:not(.ixbrl-no-highlight) {\n background-color: hsl(90 69% 85%) !important;\n}\n.ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-1 {\n background-color: #eaa8ff !important;\n}\n.ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-2 {\n background-color: hsl(48 100% 85%) !important;\n}\n.review.review-highlight-untagged-numbers .review-untagged-number {\n background-color: #eaa8ff;\n}\n.review.review-highlight-untagged-dates .review-untagged-date {\n background-color: hsl(48 100% 85%);\n}\n.review .ixbrl-highlight:not(.ixbrl-no-highlight) {\n background-color: hsl(90 69% 85%) !important;\n}\n.review .ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-1 {\n background-color: hsl(90 69% 85%) !important;\n}\n.review .ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-2 {\n background-color: hsl(90 69% 85%) !important;\n}\ndiv:not(.ixbrl-no-highlight).ixbrl-selected,\nspan:not(.ixbrl-no-highlight).ixbrl-selected {\n outline: solid 2px #0094ff;\n outline-offset: 1px;\n}\ndiv:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\nspan:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\ndiv:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected),\nspan:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected) {\n outline: dashed 2px #0094ff;\n outline-offset: 1px;\n}\n:not(.ixbrl-no-highlight).ixbrl-element,\n:not(.ixbrl-no-highlight).ixbrl-sub-element {\n cursor: pointer;\n}\n:not(.ixbrl-no-highlight).ixbrl-element.ixbrl-related,\n:not(.ixbrl-no-highlight).ixbrl-sub-element.ixbrl-related {\n outline: dashed 2px #0eb30e;\n}\n:not(.ixbrl-no-highlight).ixbrl-element.ixbrl-related:not(td, th),\n:not(.ixbrl-no-highlight).ixbrl-sub-element.ixbrl-related:not(td, th) {\n outline-offset: 1px;\n}\ntd:not(.ixbrl-no-highlight).ixbrl-selected,\nth:not(.ixbrl-no-highlight).ixbrl-selected {\n outline: solid 2px #0094ff !important;\n outline-offset: -1px !important;\n}\ntd:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\nth:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\ntd:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected),\nth:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected) {\n outline: dashed 2px #0094ff !important;\n outline-offset: -1px !important;\n}\ntd.ixbrl-related,\nth.ixbrl-related {\n outline-offset: -1px;\n}\n.ixbrl-related.ixbrl-linked-highlight:not(.ixbrl-no-highlight),\n.ixbrl-linked-highlight:not(.ixbrl-no-highlight) {\n outline: dashed 2px #026dce;\n outline-offset: 1px;\n}\ntd.ixbrl-related.ixbrl-linked-highlight:not(.ixbrl-no-highlight),\ntd.ixbrl-linked-highlight:not(.ixbrl-no-highlight) {\n outline: dashed 2px #026dce;\n outline-offset: 1px;\n outline-offset: -1px;\n}\ndiv.ixbrl-table-handle {\n position: absolute;\n left: 0;\n cursor: pointer;\n width: 0;\n height: 0;\n border: 0.4rem solid transparent;\n border-bottom-color: #66ca00;\n top: -0.8rem;\n}\ndiv.ixbrl-table-handle::after {\n content: "";\n position: absolute;\n left: -0.4rem;\n top: 0.4rem;\n width: 0;\n height: 0;\n border: 0.4rem solid transparent;\n border-top-color: #66ca00;\n}\ndiv.ixbrl-table-handle > span {\n display: none;\n white-space: nowrap;\n}\ndiv.ixbrl-table-handle:hover {\n border: none;\n color: #fff;\n transition: width 0.3s;\n width: 9rem;\n height: initial;\n left: -0.1rem;\n padding: 0;\n z-index: 1;\n}\ndiv.ixbrl-table-handle:hover::after {\n display: none;\n}\ndiv.ixbrl-table-handle:hover > span {\n border: solid 0.1rem #fff;\n font-family: sans-serif;\n display: block;\n padding: 0.7rem 1.5rem 0.7rem 2.5rem;\n background-color: #66ca00;\n}\ndiv.ixbrl-table-handle:hover > span::before {\n font-family: viewericons;\n content: "\\ea0c";\n position: absolute;\n left: 0.8rem;\n font-size: 1.2rem;\n}\n',""]),e.exports=t},610:(e,t,n)=>{var i=n(609),r=n(991),o=n(946);t=i(!1);var a=r(o);t.push([e.id,"html {\n font-size: 62.5%;\n}\nbody {\n margin: 0;\n}\n@font-face {\n font-family: viewericons;\n src: url("+a+');\n font-weight: normal;\n font-style: normal;\n}\n/* Styles common to both inspector and highlighting used within iframe */\n.linked-highlight-text {\n outline: dashed 2px #026dce;\n outline-offset: 1px;\n}\n.linked-highlight-cell {\n outline: dashed 2px #026dce;\n outline-offset: 1px;\n outline-offset: -1px;\n}\ninput[type="text"],\nselect,\nbutton {\n padding: 7px 5px;\n border: solid 1px #cbcbcb;\n border-radius: 5px;\n color: #595959;\n background-color: #fff;\n box-sizing: border-box;\n}\n.square-button-bare {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n padding: 0;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n}\n.square-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n}\n.square-button:last-of-type {\n margin-right: 0;\n}\n.square-button:first-of-type {\n margin-left: 0;\n}\n.square-button.primary {\n color: #fff;\n border-color: #0085e6;\n background-color: #0094ff;\n}\n.wk-checkbox,\nlabel.checkbox {\n position: relative;\n padding-left: 2.2rem;\n cursor: pointer;\n user-select: none;\n line-height: 1.6rem;\n}\n.wk-checkbox input,\nlabel.checkbox input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n.wk-checkbox .checkmark,\nlabel.checkbox .checkmark {\n position: absolute;\n box-sizing: border-box;\n top: 0;\n left: 0;\n width: 1.6rem;\n height: 1.6rem;\n border-radius: 0.4rem;\n border: solid 0.1rem #cbcbcb;\n}\n.wk-checkbox input:checked ~ .checkmark::before,\nlabel.checkbox input:checked ~ .checkmark::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0.4rem;\n width: 0.4rem;\n height: 1.1rem;\n border: solid #026dce;\n border-width: 0 0.2rem 0.2rem 0;\n transform: rotate(45deg);\n}\ninput:disabled {\n background-color: #eee;\n}\n#ixv .dialog.chart {\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n color: #595959;\n}\n#ixv .dialog.chart .chart-container {\n position: relative;\n width: 100%;\n}\n#ixv .dialog.chart .other-aspects {\n width: 100%;\n position: absolute;\n bottom: 0;\n}\n#ixv .dialog.chart .other-aspects .other-aspect {\n display: inline-block;\n padding: 5px 10px;\n margin: 10px;\n}\n#ixv .dialog.chart .other-aspects .other-aspect.selected,\n#ixv .dialog.chart .other-aspects .other-aspect.addable {\n cursor: pointer;\n}\n#ixv .dialog.chart .other-aspects .other-aspect.addable {\n color: #026dce;\n}\n#ixv .dialog.chart .other-aspects .other-aspect.addable:hover {\n color: #0094ff;\n text-decoration: underline;\n}\n#ixv .dialog.chart .other-aspects .other-aspect.selected {\n background-color: #0094ff;\n border-radius: 0.4rem;\n border: 0.1rem solid #0085e6;\n /* border: solid 1px #399; */\n color: #fff;\n}\n.dialog {\n z-index: 15;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n border: solid 1px #000;\n background-color: #fff;\n display: none;\n}\n.dialog.full-screen {\n width: calc(100vw - 5em);\n height: calc(100vh - 5em);\n}\n.dialog.message-box {\n max-width: 800px;\n width: 100%;\n}\n.dialog .contents {\n padding: 2rem;\n position: relative;\n box-sizing: border-box;\n height: 100%;\n width: 100%;\n}\n.dialog .close {\n position: absolute;\n top: 0;\n right: 0;\n padding: 1.8rem 2rem 0;\n font-size: 2.6rem;\n z-index: 20;\n cursor: pointer;\n line-height: 2.2rem;\n opacity: 0.2;\n}\n.dialog .close::before {\n content: "\\00d7";\n}\n.dialog .close:hover {\n opacity: 1;\n}\n.dialog .title {\n margin-top: 0;\n}\n.dialog .buttons button {\n border-radius: 0;\n min-width: 10rem;\n margin-right: 1.5rem;\n border: solid 0.1rem #cbcbcb;\n color: #595959;\n background-color: #f8f8f8;\n cursor: pointer;\n}\n.dialog .buttons button.dialog-button-primary {\n color: #fff;\n background-color: #66ca00;\n border: none;\n}\n#ixv #inspector .menu {\n position: absolute;\n right: 0;\n top: 0;\n line-height: 3.5rem;\n cursor: pointer;\n}\n#ixv #inspector .menu .menu-title {\n padding-right: 3.2rem;\n position: relative;\n}\n#ixv #inspector .menu .menu-title::after {\n font-family: viewericons;\n content: "\\ea03";\n font-size: 1.8rem;\n position: absolute;\n right: 1rem;\n}\n#ixv #inspector .menu .content-container {\n position: fixed;\n top: 8.3rem;\n right: 0;\n bottom: 0;\n display: none;\n z-index: 5;\n}\n#ixv #inspector .menu .content-container .content {\n line-height: initial;\n background: #fff;\n border: solid 1px #cbcbcb;\n max-height: 100%;\n overflow-y: auto;\n}\n#ixv #inspector .menu .content-container .content .group {\n border-bottom: solid 1px #cbcbcb;\n border-top: solid 1px #cbcbcb;\n}\n#ixv #inspector .menu .content-container .content .item {\n position: relative;\n padding: 10px 25px 10px 30px;\n white-space: nowrap;\n text-align: left;\n}\n#ixv #inspector .menu .content-container .content .item:hover {\n background: #cbcbcb;\n}\n#ixv #inspector .menu .content-container .content .item.menu-checkbox {\n cursor: pointer;\n user-select: none;\n position: relative;\n display: block;\n}\n#ixv #inspector .menu .content-container .content .item.menu-checkbox input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n#ixv #inspector .menu .content-container .content .item.menu-checkbox input:checked ~ .checkmark::before {\n font-family: viewericons;\n content: "\\ea18";\n position: absolute;\n top: 1.1rem;\n left: 1rem;\n}\n#ixv #inspector .menu .content-container .content a.item {\n display: block;\n color: #595959;\n}\n#ixv #inspector .menu .content-container .content a.item:hover {\n text-decoration: none;\n}\n#ixv #inspector .toolbar-menu .menu-checkbox {\n position: relative;\n padding-left: 2.2rem;\n cursor: pointer;\n user-select: none;\n line-height: 1.6rem;\n margin-left: 1.8rem;\n}\n#ixv #inspector .toolbar-menu .menu-checkbox input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n#ixv #inspector .toolbar-menu .menu-checkbox .checkmark {\n position: absolute;\n box-sizing: border-box;\n top: 0;\n left: 0;\n width: 1.6rem;\n height: 1.6rem;\n border-radius: 0.4rem;\n border: solid 0.1rem #cbcbcb;\n}\n#ixv #inspector .toolbar-menu .menu-checkbox input:checked ~ .checkmark::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0.4rem;\n width: 0.4rem;\n height: 1.1rem;\n border: solid #026dce;\n border-width: 0 0.2rem 0.2rem 0;\n transform: rotate(45deg);\n}\n.accordian .card {\n margin-top: 0.4rem;\n background-color: #f8f8f8;\n}\n.accordian .card .body {\n display: none;\n padding-left: 1.6rem;\n padding-right: 1.6rem;\n padding-bottom: 0.8rem;\n}\n.accordian .card .body > h4:first-child {\n margin-top: 0.8rem;\n}\n.accordian .card .title {\n padding: 1.2rem 1.6rem;\n cursor: pointer;\n line-height: 1.8rem;\n}\n.accordian .card .title:hover {\n background-color: #f3f3f3;\n}\n.accordian .card.active {\n background-color: #f3f3f3;\n}\n.accordian .card.active .title {\n font-weight: bold;\n}\n.accordian .card.active .body {\n display: block;\n}\n#ixv .loader {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgb(0 0 0 / 85%);\n z-index: 10;\n}\n#ixv .loader .text {\n padding-top: 80px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n color: #fff;\n font-size: large;\n font-family: sans-serif;\n}\n#ixv .loader.loading .text::after,\n#ixv .loader.loading .text::before {\n margin: 0 0 0 -30px;\n height: 60px;\n width: 60px;\n position: absolute;\n content: "";\n top: 0;\n left: 50%;\n border-radius: 500rem;\n border-style: solid;\n border-width: 3px;\n box-shadow: 0 0 0 1px transparent;\n}\n#ixv .loader.loading .text::before {\n border: 3px solid rgb(255 255 255 / 10%);\n}\n#ixv .loader.loading .text::after {\n -webkit-animation: loader 4s steps(64);\n animation: loader 4s steps(64);\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n border-color: #fff transparent transparent;\n}\n@keyframes loader {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.tab-area {\n background-color: #e3e3e3;\n width: 100%;\n box-sizing: border-box;\n border-bottom: solid 0.1rem #cbcbcb;\n display: flex;\n}\n.tab-area::after {\n content: "";\n clear: both;\n display: table;\n}\n.tab-area .tab {\n float: left;\n padding: 1.2rem;\n cursor: pointer;\n color: #444;\n border: solid 0.1rem #cbcbcb;\n border-top-left-radius: 0.6rem;\n border-top-right-radius: 0.6rem;\n margin-bottom: -0.1rem;\n flex-shrink: 1;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n width: 20em;\n}\n.tab-area .tab.active {\n padding: 1.2rem;\n border-bottom-color: #fff;\n background-color: #fff;\n border-top: solid 0.4rem #0085e6;\n}\n.tab-area .tab:not(.active) {\n padding-top: 1.5rem;\n}\n.block-list-item {\n margin: 0.5rem 0;\n padding: 0.3rem 0.9rem;\n background-color: #f8f8f8;\n cursor: pointer;\n position: relative;\n border-left: solid 0.4rem #f8f8f8;\n}\n.block-list-item > * {\n margin: 0.8rem 0;\n}\n.block-list-item:hover {\n background-color: #f3f3f3;\n}\n.block-list-item.selected {\n border-left: solid 0.4rem #0085e6;\n background-color: #f3f3f3;\n}\n.block-list-item.linked-highlight {\n outline: dashed 2px #026dce;\n outline-offset: 1px;\n outline-offset: -1px;\n}\n#ixv .dialog.validation-report {\n max-width: 120rem;\n width: 90vw;\n}\n#ixv .dialog.validation-report table {\n display: block;\n margin: 2rem 0;\n border-collapse: collapse;\n max-height: calc(90vh - 150px);\n overflow-y: auto;\n}\n#ixv .dialog.validation-report table td,\n#ixv .dialog.validation-report table th {\n padding: 0.5rem;\n border: solid 0.1rem #cbcbcb;\n}\n#ixv .dialog.text-block-viewer {\n max-width: 120rem;\n width: 90vw;\n height: 90vh;\n}\n#ixv .dialog.text-block-viewer .contents {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n#ixv .dialog.text-block-viewer .contents .title,\n#ixv .dialog.text-block-viewer .contents .buttons {\n flex-grow: 0;\n}\n#ixv .dialog.text-block-viewer .contents iframe {\n margin: 1.4rem 0;\n border: solid 1px #ccc;\n flex-grow: 1;\n width: 100%;\n height: 100%;\n}\n#ixv .dialog.text-block-viewer .contents .controls {\n height: 3.2rem;\n}\n#inspector .summary .body .total-facts-title,\n#inspector .summary .body .files-summary-title {\n font-weight: bold;\n}\n#inspector .summary .body .file-summary-container {\n display: flex;\n flex-flow: row wrap;\n}\n#inspector .summary .body .file-summary-container .files {\n flex: 1 1 auto;\n}\n#inspector .summary .body .tag-summary-body {\n overflow-x: auto;\n}\n#inspector .summary .body .tag-summary-body sup {\n font-size: 0.9rem;\n display: block;\n}\n#inspector .summary .body .tag-summary-body table {\n width: 100%;\n border-collapse: collapse;\n}\n#inspector .summary .body .tag-summary-body table td,\n#inspector .summary .body .tag-summary-body table th {\n padding: 0.2rem;\n text-align: left;\n}\n#inspector .summary .body .tag-summary-body table thead th {\n white-space: nowrap;\n position: relative;\n height: 10rem;\n}\n#inspector .summary .body .tag-summary-body table thead th.namespace {\n text-align: left;\n vertical-align: bottom;\n}\n#inspector .summary .body .tag-summary-body table thead th.figure {\n width: 5rem;\n}\n#inspector .summary .body .tag-summary-body table thead th.figure > div {\n position: absolute;\n transform: translate(100px, -50%) rotate(45deg) translate(-50%, 50%);\n text-align: right;\n width: 200px;\n right: 0;\n bottom: 0;\n}\n#inspector .summary .body .tag-summary-body table tbody th {\n font-weight: normal;\n}\n#inspector .summary .body .tag-summary-body table tbody tr,\n#inspector .summary .body .tag-summary-body table tfoot tr {\n transition: background-color 0.25s ease;\n}\n#inspector .summary .body .tag-summary-body table tbody tr:nth-child(odd),\n#inspector .summary .body .tag-summary-body table tfoot tr:nth-child(odd) {\n background-color: rgb(248 248 248);\n}\n#inspector .summary .body .tag-summary-body table tbody tr:hover,\n#inspector .summary .body .tag-summary-body table tfoot tr:hover {\n background-color: rgb(230 230 230);\n}\n#inspector .summary .body .tag-summary-body table tbody tr td.figure,\n#inspector .summary .body .tag-summary-body table tfoot tr td.figure {\n text-align: right;\n}\n#ixv {\n /* Specify these here, not on body in case the iXBRL document has its own\n * style attribute */\n}\n#ixv,\n#ixv table {\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n color: #595959;\n font-size: 1.4rem;\n}\n#ixv #ixv-progress {\n position: fixed;\n top: 20px;\n left: 20px;\n width: 500px;\n height: 200px;\n background-color: #fff;\n border: solid #000 1px;\n text-align: center;\n}\n#ixv #viewer-pane {\n width: 75%;\n box-sizing: border-box;\n position: fixed;\n left: 0;\n top: 3.5rem;\n bottom: 0;\n z-index: 0;\n display: flex;\n flex-flow: column;\n /* This spacer stops drag events getting lost to the iframe */\n}\n#ixv #viewer-pane .ixds-tabs {\n display: none;\n flex: 0 1 auto;\n}\n#ixv #viewer-pane #iframe-container {\n position: relative;\n flex: 1 1 auto;\n}\n#ixv #viewer-pane #iframe-container > iframe {\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n border: none;\n}\n#ixv #viewer-pane #iframe-container .zoom-in,\n#ixv #viewer-pane #iframe-container .zoom-out,\n#ixv #viewer-pane #iframe-container .print {\n position: absolute;\n right: 30px;\n width: 20px;\n height: 20px;\n border: solid 1px #bbb;\n background-color: rgb(225 225 225 / 70%);\n justify-content: center;\n display: flex;\n align-items: center;\n color: #777;\n cursor: pointer;\n user-select: none;\n}\n#ixv #viewer-pane #iframe-container .zoom-in {\n top: 15px;\n}\n#ixv #viewer-pane #iframe-container .zoom-out {\n top: 40px;\n}\n#ixv #viewer-pane #iframe-container .print {\n top: 75px;\n}\n#ixv #viewer-pane #iframe-container .print::after {\n font-family: viewericons;\n content: "\\ea11";\n font-size: 20px;\n}\n#ixv #viewer-pane #iframe-container .zoom-in:hover,\n#ixv #viewer-pane #iframe-container .zoom-out:hover,\n#ixv #viewer-pane #iframe-container .print:hover {\n background-color: rgb(128 128 128 / 70%);\n}\n#ixv #viewer-pane .resize {\n position: absolute;\n top: 0;\n width: 5px;\n right: -5px;\n bottom: 0;\n z-index: 20;\n}\n#ixv #viewer-pane .resize-spacer {\n position: absolute;\n top: 0;\n width: 3px;\n right: 0;\n bottom: 0;\n z-index: 20;\n}\n#ixv #top-bar {\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n font-size: 1.4rem;\n color: #595959;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n height: 3.5rem;\n border-bottom: solid 1px #ccc;\n z-index: 5;\n}\n#ixv #top-bar .header {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n height: 100%;\n}\n#ixv #top-bar .document-title {\n position: absolute;\n box-sizing: border-box;\n left: 160px;\n top: 0;\n padding-right: 1.6rem;\n padding-top: 1.3rem;\n border-right: solid 0.1rem #ccc;\n height: 3.5rem;\n overflow: hidden;\n}\n#ixv #top-bar .top-bar-controls {\n position: absolute;\n right: 1.8rem;\n top: 0;\n line-height: 3.5rem;\n}\n#ixv #top-bar .top-bar-controls * {\n vertical-align: middle;\n}\n#ixv #top-bar .top-bar-controls .content input {\n position: relative;\n top: -0.1rem;\n margin-right: 0.6rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key {\n margin-left: 0.6rem;\n margin-right: 1.5rem;\n position: relative;\n}\n#ixv #top-bar .top-bar-controls .highlight-key::before {\n font-family: viewericons;\n content: "\\ea12";\n font-size: 1.6rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content {\n position: absolute;\n top: 3.2rem;\n left: -2rem;\n background: #fff;\n border: solid 1px #595959;\n border-radius: 0.3rem;\n line-height: 1.6rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .arrow {\n position: absolute;\n top: 0;\n left: 1.1rem;\n width: 1.5rem;\n height: 1.5rem;\n border-top: solid 0.1rem #595959;\n border-left: solid 0.1rem #595959;\n transform: translate(50%, -50%) rotate(45deg);\n background: #fff;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item {\n white-space: nowrap;\n margin: 1rem;\n position: relative;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample {\n display: inline-block;\n width: 3.2rem;\n height: 1.6rem;\n margin-right: 1rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample-0 {\n background: hsl(90 69% 85% / 1);\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample-1 {\n background: #eaa8ff;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample-2 {\n background: hsl(48 100% 85% / 1);\n}\n#ixv #top-bar .top-bar-controls .validation-warning {\n margin-left: 0.5rem;\n font-size: 1.6rem;\n display: none;\n cursor: pointer;\n}\n#ixv #top-bar .top-bar-controls .validation-warning::before {\n font-family: viewericons;\n content: "\\ea19";\n}\n#ixv #inspector {\n display: flex;\n flex-direction: column;\n /* inspector body */\n width: 25%;\n position: absolute;\n top: 3.5rem;\n right: 0;\n bottom: 0;\n box-sizing: border-box;\n overflow: hidden;\n border-left: solid 0.1rem #cbcbcb;\n}\n#ixv #inspector h1,\n#ixv #inspector h2,\n#ixv #inspector h3 {\n font-weight: normal;\n border-bottom: solid 1px #cbcbcb;\n width: 100%;\n box-sizing: border-box;\n padding-bottom: 5px;\n color: #444444;\n}\n#ixv #inspector h2 {\n text-align: center;\n}\n#ixv #inspector h3 {\n font-size: 1.4rem;\n}\n#ixv #inspector h4 {\n font-weight: bold;\n color: #444444;\n margin-bottom: 1.4em;\n}\n#ixv #inspector #inspector-head {\n padding: 0;\n position: relative;\n border-bottom: solid 1px #cbcbcb;\n}\n#ixv #inspector #inspector-head .title {\n text-align: center;\n position: relative;\n border-bottom: solid 0.1rem #cbcbcb;\n}\n#ixv #inspector #inspector-head .title h1 {\n margin: 0.8rem 0;\n border: none;\n padding: 0;\n font-size: 1.8rem;\n line-height: 3.2rem;\n}\n#ixv #inspector #inspector-head .title .back {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n padding: 0;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n top: 0;\n left: 0;\n position: absolute;\n}\n#ixv #inspector #inspector-head .title .back::before {\n font-family: viewericons;\n content: "\\ea04";\n}\n#ixv #inspector #inspector-head .title .menu {\n top: 0;\n right: 0;\n position: absolute;\n}\n#ixv #inspector #inspector-head .title .menu .menu-title::before {\n font-family: viewericons;\n content: "\\ea09";\n font-size: 2rem;\n}\n#ixv #inspector #inspector-head .controls {\n position: relative;\n height: 3.2rem;\n margin: 0.8rem 0.9rem;\n}\n#ixv #inspector #inspector-head .controls .search-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n position: absolute;\n top: 0;\n left: 7.7rem;\n}\n#ixv #inspector #inspector-head .controls .search-button:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .search-button:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .search-button::before {\n font-family: viewericons;\n content: "\\ea13";\n position: relative;\n}\n#ixv #inspector #inspector-head .controls .outline-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n position: absolute;\n top: 0;\n left: 3.6rem;\n}\n#ixv #inspector #inspector-head .controls .outline-button:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .outline-button:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .outline-button::before {\n font-family: viewericons;\n content: "\\ea10";\n position: relative;\n}\n#ixv #inspector #inspector-head .controls .summary-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n position: absolute;\n top: 0;\n left: 0;\n}\n#ixv #inspector #inspector-head .controls .summary-button:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .summary-button:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .summary-button::before {\n font-family: viewericons;\n content: "\\ea15";\n position: relative;\n}\n#ixv #inspector #inspector-head .controls .next-prev {\n position: absolute;\n top: 0;\n right: 0;\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-next-tag,\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-prev-tag {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n position: relative;\n display: inline-block;\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-next-tag:last-of-type,\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-prev-tag:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-next-tag:first-of-type,\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-prev-tag:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-next-tag::before {\n font-family: viewericons;\n content: "\\ea05";\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-prev-tag::before {\n font-family: viewericons;\n content: "\\ea04";\n}\n#ixv #inspector #inspector-head .search-controls {\n margin: 0.8rem 0.9rem;\n}\n#ixv #inspector #inspector-head .search-controls .search-input {\n display: flex;\n padding: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-input input#ixbrl-search {\n flex-grow: 1;\n margin-right: 1rem;\n}\n#ixv #inspector #inspector-head .search-controls .search-input .filter-toggle {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n}\n#ixv #inspector #inspector-head .search-controls .search-input .filter-toggle:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-input .filter-toggle:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-input .filter-toggle::before {\n font-family: viewericons;\n content: "\\ea0d";\n}\n#ixv #inspector #inspector-head .search-controls:not(.show-filters) .search-filters {\n display: none;\n}\n#ixv #inspector #inspector-head .search-controls.show-filters .filter-toggle {\n color: #026dce;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters {\n position: relative;\n max-height: 60vh;\n overflow-y: auto;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .reset {\n cursor: pointer;\n color: #026dce;\n position: absolute;\n right: 0;\n top: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters h3 {\n border: none;\n font-weight: bold;\n padding-bottom: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-group {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n margin-bottom: 0.4em;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-group .control-label {\n white-space: nowrap;\n margin-right: 2em;\n width: 6em;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-group input,\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-group select,\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-group textarea {\n flex-basis: 12em;\n flex-grow: 2;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .control-label {\n font-weight: bold;\n margin-bottom: 0.6em;\n margin-top: 0.8em;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters select {\n width: 100%;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .checkboxes {\n display: flex;\n flex-wrap: wrap;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .checkboxes > div {\n margin: 1.2rem 0;\n flex-grow: 1;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .checkboxes > div input {\n vertical-align: middle;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-info {\n text-align: center;\n font-style: italic;\n font-size: 1.1rem;\n}\n#ixv #inspector .inspector-body {\n flex-grow: 1;\n width: 100%;\n position: relative;\n overflow: hidden;\n /* search results */\n}\n#ixv #inspector .inspector-body .no-fact-overlay,\n#ixv #inspector .inspector-body .no-outline-overlay {\n display: block;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 80%;\n text-align: center;\n color: #b2b2b2;\n}\n#ixv #inspector .inspector-body .no-fact-overlay .no-fact-overlay-icon::before,\n#ixv #inspector .inspector-body .no-outline-overlay .no-fact-overlay-icon::before {\n font-family: viewericons;\n content: "\\ea16";\n font-size: 10rem;\n}\n#ixv #inspector .inspector-body .no-fact-overlay .no-outline-overlay-icon::before,\n#ixv #inspector .inspector-body .no-outline-overlay .no-outline-overlay-icon::before {\n font-family: viewericons;\n content: "\\ea10";\n font-size: 10rem;\n}\n#ixv #inspector .inspector-body .no-fact-overlay .title,\n#ixv #inspector .inspector-body .no-outline-overlay .title {\n font-size: x-large;\n}\n#ixv #inspector .inspector-body .inspector-body-fact {\n overflow-y: auto;\n height: 100%;\n position: relative;\n}\n#ixv #inspector .inspector-body .search-results {\n overflow-y: auto;\n height: 100%;\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .inspector-body .search-results .search-overlay {\n transform: translate(-50%, -50%);\n position: absolute;\n top: 50%;\n left: 50%;\n color: #b2b2b2;\n width: 85%;\n}\n#ixv #inspector .inspector-body .search-results .search-overlay .search-overlay-icon {\n text-align: center;\n font-size: 10rem;\n}\n#ixv #inspector .inspector-body .search-results .search-overlay .search-overlay-icon::before {\n font-family: viewericons;\n content: "\\ea13";\n}\n#ixv #inspector .inspector-body .search-results .search-overlay .search-overlay-text {\n text-align: center;\n font-size: medium;\n}\n#ixv #inspector .inspector-body .search-results .search-overlay .search-overlay-text .title {\n font-size: x-large;\n}\n#ixv #inspector .inspector-body .search-results .select-icon {\n float: right;\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n cursor: pointer;\n color: #026dce;\n}\n#ixv #inspector .inspector-body .search-results .select-icon:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector .inspector-body .search-results .select-icon:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector .inspector-body .search-results .select-icon:first-of-type {\n margin-left: 0.5rem;\n}\n#ixv #inspector .inspector-body .search-results .select-icon::before {\n font-family: viewericons;\n content: "\\ea14";\n}\n#ixv #inspector .inspector-body .search-results .more-results {\n cursor: pointer;\n color: #026dce;\n padding: 1rem;\n text-align: center;\n}\n#ixv #inspector .inspector-body .outline {\n overflow-y: auto;\n height: 100%;\n}\n#ixv #inspector .inspector-body .summary {\n overflow-y: auto;\n height: 100%;\n}\n#ixv #inspector .inspector-body .body {\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .std-label {\n margin-left: 30px;\n min-height: 20px;\n position: relative;\n}\n#ixv #inspector .std-label::before {\n color: #026dce;\n content: "\\2022";\n position: absolute;\n top: -5px;\n left: -20px;\n font-size: x-large;\n}\n#ixv #inspector #concept {\n margin-top: 20px;\n font-size: small;\n min-height: 25px;\n}\n#ixv #inspector #dimensions {\n margin-left: 2rem;\n margin-right: 2rem;\n margin-bottom: 1rem;\n}\n#ixv #inspector #dimensions .dimension {\n position: relative;\n margin: 1.5rem 0 1.5rem 1rem;\n}\n#ixv #inspector #dimensions .dimension::before {\n font-family: viewericons;\n content: "\\ea0a";\n color: #026dce;\n position: absolute;\n top: 0;\n left: -2.3rem;\n font-size: 120%;\n}\n#ixv #inspector #dimensions .dimension-value {\n position: relative;\n margin: 1.5rem 0 1.5rem 3.5rem;\n}\n#ixv #inspector #dimensions .dimension-value::before {\n font-family: viewericons;\n content: "\\ea0b";\n position: absolute;\n color: #026dce;\n top: 0;\n left: -2.3rem;\n font-size: 120%;\n}\n#ixv #inspector .analyse {\n cursor: pointer;\n padding-left: 0.7rem;\n color: #026dce;\n}\n#ixv #inspector .analyse::before {\n font-family: viewericons;\n content: "\\ea0e";\n position: relative;\n top: 1px;\n}\n#ixv #inspector .hidden-fact-tag,\n#ixv #inspector .html-hidden-fact-tag {\n display: table;\n text-transform: uppercase;\n font-weight: bold;\n background-color: #8a8a8a;\n padding: 0.15em 0.5em;\n color: #fff;\n border-radius: 0.3em;\n position: absolute;\n top: 1.5rem;\n right: 0.9rem;\n}\n#ixv #inspector .hidden-fact-tag.html-hidden-fact-tag,\n#ixv #inspector .html-hidden-fact-tag.html-hidden-fact-tag {\n background-color: #c63018;\n}\n#ixv #inspector table.fact-properties {\n table-layout: fixed;\n width: 100%;\n}\n#ixv #inspector table.fact-properties th {\n width: 75px;\n text-align: right;\n padding-right: 20px;\n color: #444444;\n}\n#ixv #inspector table.fact-properties th,\n#ixv #inspector table.fact-properties td {\n padding-top: 2px;\n padding-bottom: 2px;\n}\n#ixv #inspector table.fact-properties tr.value .show-all {\n color: #026dce;\n cursor: pointer;\n}\n#ixv #inspector table.fact-properties tr.value:not(.truncated) .show-all {\n display: none;\n}\n#ixv #inspector table.fact-properties tr.value.text-block .expand-text-block {\n color: #026dce;\n cursor: pointer;\n}\n#ixv #inspector table.fact-properties tr.value.text-block .expand-text-block::before {\n font-family: viewericons;\n content: "\\ea17";\n}\n#ixv #inspector table.fact-properties td {\n overflow: hidden;\n text-overflow: ellipsis;\n color: #7d7d7d;\n}\n#ixv #inspector table.fact-properties tr.uri > td {\n white-space: nowrap;\n}\n#ixv #inspector .duplicates {\n text-align: center;\n width: 100%;\n height: 3.2rem;\n line-height: 3.2rem;\n}\n#ixv #inspector .duplicates > * {\n vertical-align: middle;\n}\n#ixv #inspector .duplicates .text {\n margin: 0 5px;\n}\n#ixv #inspector .duplicates .next,\n#ixv #inspector .duplicates .prev {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n padding: 0;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n position: relative;\n display: inline-block;\n}\n#ixv #inspector .duplicates .prev::before {\n font-family: viewericons;\n content: "\\ea04";\n}\n#ixv #inspector .duplicates .next::before {\n font-family: viewericons;\n content: "\\ea05";\n}\n#ixv #inspector .concept td > div {\n display: flex;\n}\n#ixv #inspector .concept td > div span.text {\n white-space: nowrap;\n position: relative;\n flex-shrink: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n#ixv #inspector .concept td > div span.filler {\n width: 0.7rem;\n display: inline-block;\n flex-shrink: 1000;\n}\n#ixv #inspector .concept td > div span.copy-icon {\n flex-shrink: 0;\n}\n#ixv #inspector .documentation {\n margin-top: 10px;\n margin-left: 30px;\n font-style: italic;\n font-family: serif;\n}\n#ixv #inspector a {\n text-decoration: none;\n color: #026dce;\n}\n#ixv #inspector a:hover {\n text-decoration: underline;\n}\n#ixv #inspector .inspector-section {\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .collapsible-section .collapsible-body {\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .collapsible-section .collapsible-header {\n position: relative;\n padding-left: 12px;\n cursor: pointer;\n user-select: none;\n white-space: nowrap;\n}\n#ixv #inspector .collapsible-section .collapsible-header::before {\n font-family: viewericons;\n content: "\\ea05";\n font-size: 1.8rem;\n position: relative;\n top: 0.4rem;\n left: -0.3rem;\n transform: rotate(90deg);\n transition: all 0.25s ease;\n display: inline-block;\n}\n#ixv #inspector .collapsible-section .collapsible-header .collapsible-subheader {\n user-select: none;\n font-weight: normal;\n font-style: italic;\n font-size: 1.3rem;\n color: #7d7d7d;\n}\n#ixv #inspector .collapsible-section.collapsed .collapsible-header::before {\n transform: rotate(0);\n top: 0.3rem;\n left: -0.2rem;\n}\n#ixv #inspector .collapsible-section.collapsed .collapsible-subheader {\n color: #026dce;\n}\n#ixv #inspector .collapsible-section .footnote-details {\n display: none;\n}\n#ixv #inspector .collapsible-section .calculations .item {\n padding: 5px 0;\n position: relative;\n line-height: 1.8rem;\n}\n#ixv #inspector .collapsible-section .calculations .item:not(.calc-fact-link, .total) .concept-name {\n color: #777;\n}\n#ixv #inspector .collapsible-section .calculations .item .concept-name {\n display: block;\n margin-left: 15px;\n}\n#ixv #inspector .collapsible-section .calculations .item.calc-fact-link {\n cursor: pointer;\n}\n#ixv #inspector .collapsible-section .calculations .item.calc-fact-link .concept-name {\n color: #026dce;\n}\n#ixv #inspector .collapsible-section .calculations .item .weight {\n display: block;\n position: absolute;\n}\n#ixv #inspector .collapsible-section .calculations .item.linked-highlight,\n#ixv #inspector .collapsible-section .calculations .item.calc-fact-link:hover {\n outline: dashed 2px #026dce;\n outline-offset: 1px;\n}\n#ixv #inspector .collapsible-section .calculations .item.total {\n border-top: solid 1px #cbcbcb;\n padding-bottom: 1.2rem;\n}\n#ixv #inspector .reset-multiselect {\n float: right;\n line-height: 0;\n position: relative;\n bottom: 1rem;\n cursor: pointer;\n}\n#ixv #inspector .reset-multiselect::after {\n font-family: viewericons;\n content: "\\ea08";\n}\n#ixv #inspector:not(.no-fact-selected) .no-fact-overlay {\n display: none;\n}\n#ixv #inspector.no-fact-selected .fact-selected-only {\n display: none;\n}\n#ixv #inspector:not(.hidden-fact) .hidden-fact-tag {\n display: none;\n}\n#ixv #inspector:not(.html-hidden-fact) .html-hidden-fact-tag {\n display: none;\n}\n#ixv #inspector.search-mode #inspector-head .controls .search-button {\n color: #fff;\n border-color: #0085e6;\n background-color: #0094ff;\n}\n#ixv #inspector.outline-mode #inspector-head .controls .outline-button {\n color: #fff;\n border-color: #0085e6;\n background-color: #0094ff;\n}\n#ixv #inspector.summary-mode #inspector-head .controls .summary-button {\n color: #fff;\n border-color: #0085e6;\n background-color: #0094ff;\n}\n#ixv #inspector .powered-by {\n font-size: 1.2rem;\n text-align: center;\n flex-shrink: 0;\n background: #fff;\n width: 100%;\n height: 3rem;\n margin: 0;\n box-sizing: border-box;\n border-top: solid 0.1rem #cbcbcb;\n position: relative;\n}\n#ixv #inspector .powered-by img {\n box-sizing: border-box;\n height: 3rem;\n padding: 0.5rem;\n}\n#ixv #inspector .powered-by .version {\n position: absolute;\n top: 0;\n right: 5px;\n font-size: small;\n line-height: 3rem;\n color: #999;\n}\n#ixv #inspector:not(.search-mode) .search-mode-only {\n display: none;\n}\n#ixv #inspector:not(.outline-mode) .outline-mode-only {\n display: none;\n}\n#ixv #inspector:not(.summary-mode) .summary-mode-only {\n display: none;\n}\n#ixv #inspector.search-mode .fact-mode-only,\n#ixv #inspector.summary-mode .fact-mode-only,\n#ixv #inspector.outline-mode .fact-mode-only {\n display: none;\n}\n#ixv #inspector:not(.footnote-mode) .footnote-mode-only {\n display: none;\n}\n#ixv #inspector.footnote-mode .footnote-mode-off {\n display: none;\n}\n#ixv #inspector .failed-to-load-mask {\n display: none;\n}\n#ixv #inspector.failed-to-load .failed-to-load-mask {\n display: block;\n background-color: rgb(0 0 0 / 50%);\n position: absolute;\n width: 100%;\n height: 100%;\n}\n#ixv #inspector.search-ready .search-not-ready-only {\n display: none;\n}\n#ixv #inspector:not(.search-ready) .search-ready-only {\n display: none;\n}\n#ixv #inspector:not(.search-ready) .search-results {\n background-color: rgb(0 0 0 / 50%);\n}\n#ixv .fact-link {\n cursor: pointer;\n color: #026dce;\n}\n#ixv .fact-link:hover {\n outline: solid 2px #026dce;\n outline-offset: 1px;\n}\n#ixv .fact-list .fact-list-item {\n margin: 0.5rem 0;\n padding: 0.3rem 0.9rem;\n background-color: #f8f8f8;\n cursor: pointer;\n position: relative;\n border-left: solid 0.4rem #f8f8f8;\n}\n#ixv .fact-list .fact-list-item > * {\n margin: 0.8rem 0;\n}\n#ixv .fact-list .fact-list-item:hover {\n background-color: #f3f3f3;\n}\n#ixv .fact-list .fact-list-item.selected {\n border-left: solid 0.4rem #0085e6;\n background-color: #f3f3f3;\n}\n#ixv .fact-list .fact-list-item.linked-highlight {\n outline: dashed 2px #026dce;\n outline-offset: 1px;\n outline-offset: -1px;\n}\n#ixv .fact-list .fact-list-item .title {\n color: #444444;\n font-weight: bold;\n}\n#ixv .fact-list .fact-list-item .dimension {\n color: #595959;\n margin: 0.6rem 0;\n}\n#ixv .fact-list .fact-list-item .hidden {\n display: table;\n text-transform: uppercase;\n font-weight: bold;\n background-color: #8a8a8a;\n padding: 0.15em 0.5em;\n color: #fff;\n border-radius: 0.3em;\n}\n#ixv .fact-list .fact-list-item.selected .title {\n font-weight: bold;\n}\n#ixv .fact-list .fact-list-item.selected .dimension {\n color: #595959;\n}\n#ixv .dialog-mask {\n background-color: rgb(0 0 0 / 60%);\n position: fixed;\n inset: 0;\n z-index: 10;\n display: none;\n}\n#ixv .popup-content {\n display: none;\n}\n#ixv .copy-icon {\n color: #026dce;\n border-radius: 0.3rem;\n}\n#ixv .copy-icon:active {\n background-color: #026dce;\n color: #fff;\n}\n#ixv .copy-icon::before {\n font-family: viewericons;\n content: "\\ea07";\n cursor: pointer;\n}\n',""]),e.exports=t},609:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,i,r,o=e[1]||"",a=e[3];if(!a)return o;if(t&&"function"==typeof btoa){var s=(n=a,i=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),"/*# ".concat(r," */")),l=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[o].concat(l).concat([s]).join("\n")}return[o].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(i)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(r[a]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);i&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},991:e=>{"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},782:function(e,t,n){var i,r;void 0===(r="function"==typeof(i=function(){"use strict";function t(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){s(i.response,t,n)},i.onerror=function(){console.error("could not download file")},i.send()}function i(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,a=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(e,n,a){var s=o.URL||o.webkitURL,l=document.createElement("a");n=n||e.name||"download",l.download=n,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?r(l):i(l.href)?t(e,n,a):r(l,l.target="_blank")):(l.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){r(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,o){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,o),n);else if(i(e))t(e,n,o);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout((function(){r(a)}))}}:function(e,n,i,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,i);var s="application/octet-stream"===e.type,l=/constructor/i.test(o.HTMLElement)||o.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||s&&l||a)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location=e,r=null},u.readAsDataURL(e)}else{var d=o.URL||o.webkitURL,h=d.createObjectURL(e);r?r.location=h:location.href=h,r=null,setTimeout((function(){d.revokeObjectURL(h)}),4e4)}});o.saveAs=s.saveAs=s,e.exports=s})?i.apply(t,[]):i)||(e.exports=r)},795:e=>{e.exports=' <div class="fact-details"> <h4 data-i18n="factDetails.concept">Concept</h4> <div class="std-label"></div> <div class="documentation"></div> <h4 id="dimensions-label" data-i18n="factDetails.dimensions">Dimensions</h4> <div id="dimensions"></div> <h4 data-i18n="factDetails.properties">Properties</h4> <table class="fact-properties"> <tr class="period"> <th data-i18n="factDetails.date">Date</th> <td></td> </tr> <tr class="value"> <th data-i18n="factDetails.factValue">Fact Value</th> <td><span class="value"></span> <span class="show-all">[...]</span> <span class="expand-text-block"></span></td> </tr> <tr class="accuracy"> <th data-i18n="factDetails.accuracy">Accuracy</th> <td></td> </tr> <tr class="scale"> <th data-i18n="factDetails.scale">Scale</th> <td></td> </tr> <tr class="change"> <th data-i18n="factDetails.change">Change</th> <td></td> </tr> <tr class="entity-identifier"> <th data-i18n="factDetails.entity">Entity</th> <td></td> </tr> <tr class="concept"> <th data-i18n="factDetails.concept">Concept</th> <td><div><span class="text"></span><span class="filler"></span><span class="clipboard-copy copy-icon"></span></div></td> </tr> </table> <div class="duplicates"> <span class="prev"></span> <span class="text"></span> <span class="next"></span> </div> </div> '},775:e=>{e.exports=' <div> <table class="fact-properties"> <tr class="value"> <th data-i18n="footnotes.footnote">Footnote</th> <td><span class="value"></span> <span class="show-all">[...]</span></td> </tr> </table> </div> '},845:(e,t,n)=>{e.exports=' <div id="ixv" xmlns="http://www.w3.org/1999/xhtml"> <div class="loader loading"> <span class="text" data-i18n="inspector.loadingViewer">Loading iXBRL Viewer</span> </div> <div id="top-bar"> <img class="header" alt="Inline Viewer logo" src="'+n(754)+'"/> <div class="document-title"></div> <div class="top-bar-controls" id="toolbar-highlight-menu"> <b data-i18n="inspector.highlight">Highlight:</b><span class="highlight-key popup-trigger"><div class="popup-content"> <div class="arrow"></div> <div class="items"></div> </div></span><span class="content"></span> <span class="validation-warning" title="Report has validation errors"></span> </div> </div> <div id="inspector" class="no-fact-selected"> <div id="inspector-head"> <div class="title"> <h1 class="footnote-mode-off" data-i18n="inspector.factProperties">Fact Properties</h1> <h1 class="footnote-mode-only" data-i18n="inspector.footnoteProperties">Footnote Properties</h1> <div class="back search-mode-only"> </div> <div class="back summary-mode-only"> </div> <div class="back outline-mode-only"> </div> <div class="menu" id="display-options-menu"> <div class="menu-title"></div> <div class="content-container"> <div class="content"></div> </div> </div> </div> <div class="controls"> <div class="summary-button" data-i18n="[title]inspector.documentSummary" title="Document summary"> </div> <div class="outline-button" data-i18n="[title]inspector.documentOutline" title="Document outline"> </div> <div class="search-button" data-i18n="[title]inspector.searchTitle" title="Search"> </div> <div class="next-prev"> <span class="ixbrl-prev-tag" data-i18n="[title]inspector.previousTag" title="Previous tag"></span><span class="ixbrl-next-tag" data-i18n="[title]inspector.nextTag" title="Next tag"></span> </div> </div> <div class="search-controls search-mode-only"> <div class="search-input"> <input id="ixbrl-search" type="text" aria-label="Search iXBRL report" disabled="disabled"/> <div class="filter-toggle"></div> </div> <div class="search-filters"> <div class="reset" data-i18n="inspector.reset">Reset</div> <h3 data-i18n="inspector.filter">Filter</h3> <div class="filter-group"> <div class="control-label" data-i18n="inspector.conceptType"> Concept Type </div> <select id="search-filter-concept-type"> <option value="*">-</option> <option value="numeric" data-i18n="inspector.numericOption">Numeric</option> <option value="text" data-i18n="inspector.textOption">Text</option> </select> </div> <div class="filter-group"> <div class="control-label" data-i18n="inspector.factValue"> Fact Value </div> <select id="search-filter-fact-value"> <option value="*">-</option> <option value="negative" data-i18n="inspector.negative">Negative</option> <option value="positive" data-i18n="inspector.positive">Positive</option> </select> </div> <div class="checkboxes"> <div> <label class="checkbox"> <input id="search-hidden-fact-filter" type="checkbox" checked="checked"/> <span data-i18n="inspector.hiddenFacts">Hidden Facts</span> <span class="checkmark"></span> </label> </div> <div> <label class="checkbox"> <input id="search-visible-fact-filter" type="checkbox" checked="checked"/> <span data-i18n="inspector.visibleFacts">Visible Facts</span> <span class="checkmark"></span> </label> </div> </div> <div id="search-filter-period" class="collapsible-section collapsible-only collapsed"> <h3 class="collapsible-header"> <span data-i18n="inspector.period">Period</span> <span class="collapsible-subheader"></span> </h3> <div class="collapsible-body" style="display:none"> <span class="reset-multiselect"></span> <select multiple="multiple"> </select> </div> </div> <div id="search-filter-namespaces" class="collapsible-section collapsible-only collapsed"> <h3 class="collapsible-header"> <span data-i18n="inspector.namespaces">Namespaces</span> <span class="collapsible-subheader"></span> </h3> <div class="collapsible-body namespaces" style="display:none"> <span class="reset-multiselect"></span> <select multiple="multiple"> </select> </div> </div> <div id="search-filter-units" class="collapsible-section collapsible-only collapsed"> <h3 class="collapsible-header"> <span data-i18n="inspector.units">Units</span> <span class="collapsible-subheader"></span> </h3> <div class="collapsible-body units" style="display:none"> <span class="reset-multiselect"></span> <select multiple="multiple"> </select> </div> </div> <div id="search-filter-scales" class="collapsible-section collapsible-only collapsed"> <h3 class="collapsible-header"> <span data-i18n="inspector.scales">Scales</span> <span class="collapsible-subheader"></span> </h3> <div class="collapsible-body scales" style="display:none"> <span class="reset-multiselect"></span> <select multiple="multiple"> </select> </div> </div> <div id="search-filter-dimension-type" class="collapsible-section collapsible-only collapsed"> <h3 class="collapsible-header"> <span data-i18n="inspector.dimensions">Dimension Type</span> <span class="collapsible-subheader"></span> </h3> <div class="collapsible-body dimensions" style="display:none"> <span class="reset-multiselect"></span> <select multiple="multiple" size="2"> <option value="explicit" data-i18n="inspector.explicitDimension">Explicit Dimensions</option> <option value="typed" data-i18n="inspector.typedDimensions">Typed Dimensions</option> </select> </div> </div> <div id="search-filter-calculations" class="collapsible-section collapsible-only collapsed"> <h3 class="collapsible-header"> <span data-i18n="inspector.calculations">Calculations</span> <span class="collapsible-subheader"></span> </h3> <div class="collapsible-body calculations" style="display:none"> <span class="reset-multiselect"></span> <select multiple="multiple" size="2"> <option value="summation" data-i18n="inspector.summation">Summation</option> <option value="contributor" data-i18n="inspector.contributor">Contributor</option> </select> </div> </div> <div class="filter-info"> <span id="matching-concepts-count">?</span> <span data-i18n="inspector.matchingConcepts"> matching concept(s)</span> </div> </div> </div> </div> <div class="inspector-body"> <div class="fact-mode-only inspector-body-fact"> <div class="no-fact-overlay"> <div class="no-fact-overlay-icon"></div> <p class="title" data-i18n="inspector.noFactSelected">No Fact Selected</p> </div> <div class="fact-selected-only"> <div class="hidden-fact-tag" data-i18n="inspector.hiddenFact">Hidden Fact</div> <div class="html-hidden-fact-tag" data-i18n="inspector.concealedFact">Concealed Fact</div> <div class="collapsible-section"> <div class="fact-inspector collapsible-body"> </div> </div> <div class="footnote-mode-off"> <div class="collapsible-section anchoring"> <h3 class="collapsible-header" data-i18n="inspector.anchoring">Anchoring</h3> <div class="collapsible-body"> <h4 data-i18n="inspector.widerAnchor">Wider anchor</h4> <div class="anchors-wider"> </div> <h4 data-i18n="inspector.narrowerAnchor">Narrower anchors</h4> <div class="anchors-narrower"> </div> </div> </div> <div class="collapsible-section"> <h3 class="collapsible-header" data-i18n="inspector.references">References</h3> <div class="collapsible-body references"> </div> </div> <div class="collapsible-section"> <h3 class="collapsible-header" data-i18n="inspector.calculations">Calculations</h3> <div class="collapsible-body calculations"> <div class="tree"></div> </div> </div> <div class="collapsible-section"> <h3 class="collapsible-header" data-i18n="inspector.footnotes">Footnotes</h3> <div class="collapsible-body footnotes fact-list"> </div> </div> <div class="collapsible-section footnote-facts-section"> <h3 class="collapsible-header" data-i18n="inspector.associatedFacts">Associated Facts</h3> <div class="collapsible-body footnote-facts fact-list"> </div> </div> <div class="collapsible-section"> <h3 class="collapsible-header" data-i18n="inspector.fact-groups">Sections</h3> <div class="collapsible-body fact-groups fact-list"> </div> </div> </div> <div class="footnote-details footnote-mode-only"> <div class="collapsible-section"> <h3 class="collapsible-header" data-i18n="inspector.associatedFacts">Associated facts</h3> <div class="collapsible-body footnote-facts fact-list"> </div> </div> </div> </div> </div> <div class="search-results search-mode-only"> <div class="results fact-list"> </div> <div class="search-overlay"> <div class="search-overlay-icon"></div> <div class="search-overlay-text search-ready-only"><p class="title" data-i18n="inspector.factSearch">Fact Search</p><p class="text">Please enter some search terms</p></div> <div class="search-overlay-text search-not-ready-only"><p class="title" data-i18n="inspector.factSearch">Fact Search</p><p class="text">Please wait - building index...</p></div> </div> </div> <div class="outline outline-mode-only"> <div class="no-outline-overlay"> <div class="no-outline-overlay-icon"></div> <p class="title" data-i18n="inspector.outlineUnavailable">Outline Unavailable</p> </div> <div class="body"> </div> </div> <div class="summary summary-mode-only"> <div class="body"> <div class="collapsible-section fact-summary"> <h3 class="collapsible-header" data-i18n="inspector.summary.fact.header">Fact Summary</h3> <div class="collapsible-body"> <div class="total-facts-value"> <span class="total-facts-title" data-i18n="inspector.summary.fact.title">Total Facts:</span> </div> </div> </div> <div class="collapsible-section tag-summary"> <h3 class="collapsible-header" data-i18n="inspector.summary.tag.header">Tag Summary</h3> <div class="collapsible-body"> <div class="tag-summary-body"> <table> <thead> <tr> <th scope="col" class="namespace"><div data-i18n="inspector.summary.tag.colNamespace">Namespace</div></th> <th scope="col" class="figure"><div data-i18n="inspector.summary.tag.colPrimaryItems">Primary Items</div></th> <th scope="col" class="figure"><div data-i18n="inspector.summary.tag.colDimensions">Dimensions</div></th> <th scope="col" class="figure"><div data-i18n="inspector.summary.tag.colMembers">Members</div></th> <th scope="col" class="figure"><div data-i18n="inspector.summary.tag.colTotal">Total</div></th> </tr> </thead> <tbody class="tag-summary-table-body"> </tbody> <tfoot> <tr class="tag-summary-table-footer-row"> <th scope="row" data-i18n="inspector.summary.tag.rowTotal">Total</th> </tr> </tfoot> </table> </div> </div> </div> <div class="collapsible-section files-summary"> <h3 class="collapsible-header" data-i18n="inspector.summary.file.header">File Summary</h3> <div class="collapsible-body"> <div class="file-summary-container"> <div class="files inline-docs"> <span class="files-summary-title" data-i18n="inspector.summary.file.inline">Inline Documents</span> <ul></ul> </div> <div class="files schemas"> <span class="files-summary-title" data-i18n="inspector.summary.file.schemas">Schemas</span> <ul></ul> </div> <div class="files pres-links"> <span class="files-summary-title" data-i18n="inspector.summary.file.presentation">Presentation Linkbases</span> <ul></ul> </div> <div class="files calc-links"> <span class="files-summary-title" data-i18n="inspector.summary.file.calculations">Calculation Linkbases</span> <ul></ul> </div> <div class="files def-links"> <span class="files-summary-title" data-i18n="inspector.summary.file.definitions">Definition Linkbases</span> <ul></ul> </div> <div class="files label-links"> <span class="files-summary-title" data-i18n="inspector.summary.file.labels">Label Linkbases</span> <ul></ul> </div> <div class="files ref-links"> <span class="files-summary-title" data-i18n="inspector.summary.file.references">Reference Linkbases</span> <ul></ul> </div> <div class="files other-links"> <span class="files-summary-title" data-i18n="inspector.summary.file.other">Other Linkbases</span> <ul></ul> </div> </div> </div> </div> </div> </div> </div> <div class="inspector-foot powered-by"> <a href="https://arelle.org" target="_blank"><img alt="Arelle logo (opens in new window)" src="'+n(585)+'"/></a> <div class="version"></div> </div> <div class="failed-to-load-mask"></div> </div> <div class="dialog-mask"> </div> <div id="dialog-container"></div> <div id="dialog-templates"> <div class="dialog full-screen chart"> <div class="close"></div> <div class="contents"> <div class="chart-container"><canvas id="chart-canvas"></canvas></div> <div class="other-aspects"></div> </div> </div> <div class="dialog validation-report"> <div class="close"></div> <div class="contents"> <h2 data-i18n="inspector.validationResults">Validation results</h2> <table> <thead> <th data-i18n="inspector.validationSeverity">Severity</th> <th data-i18n="inspector.validationCode">Code</th> <th data-i18n="inspector.validationMessage">Message</th> </thead> <tbody> </tbody> </table> <div class="buttons"> </div> </div> </div> <div class="dialog text-block-viewer"> <div class="close"></div> <div class="contents"> <h2 class="title"></h2> <iframe id="text-block-viewer-iframe"></iframe> <div class="controls"> <label class="checkbox"> <input id="text-block-viewer-plain-text" type="checkbox"/> <span data-i18n="inspector.showTextOnly">Show text only</span> <span class="checkmark"></span> </label> </div> <div class="buttons"> </div> </div> </div> <div class="dialog message-box"> <div class="close"></div> <div class="contents"> <h2 class="title"></h2> <div class="message"> </div> <div class="buttons"> </div> </div> </div> </div> <div id="viewer-pane"> <div class="ixds-tabs"><div class="tab-area"></div></div> <div id="iframe-container"> <div class="zoom-in">+</div> <div class="zoom-out">-</div> <div class="print" title="Print Document" data-i18n="[title]inspector.printDocument"></div> </div> <div class="resize"></div> <div class="resize-spacer"></div> </div> </div> '},212:e=>{e.exports=function(){var e={};Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(e){return!(!e||!e.Window)&&e instanceof e.Window};var t={};Object.defineProperty(t,"__esModule",{value:!0}),t.getWindow=function(t){return(0,e.default)(t)?t:(t.ownerDocument||t).defaultView||i.window},t.init=r,t.window=t.realWindow=void 0;var n=void 0;t.realWindow=n;var i=void 0;function r(e){t.realWindow=n=e;var r=e.document.createTextNode("");r.ownerDocument!==e.document&&"function"==typeof e.wrap&&e.wrap(r)===r&&(e=e.wrap(e)),t.window=i=e}t.window=i,"undefined"!=typeof window&&window&&r(window);var o={};function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var s=function(e){return!!e&&"object"===a(e)},l=function(e){return"function"==typeof e},c={window:function(n){return n===t.window||(0,e.default)(n)},docFrag:function(e){return s(e)&&11===e.nodeType},object:s,func:l,number:function(e){return"number"==typeof e},bool:function(e){return"boolean"==typeof e},string:function(e){return"string"==typeof e},element:function(e){if(!e||"object"!==a(e))return!1;var n=t.getWindow(e)||t.window;return/object|function/.test("undefined"==typeof Element?"undefined":a(Element))?e instanceof Element||e instanceof n.Element:1===e.nodeType&&"string"==typeof e.nodeName},plainObject:function(e){return s(e)&&!!e.constructor&&/function Object\b/.test(e.constructor.toString())},array:function(e){return s(e)&&void 0!==e.length&&l(e.splice)}};o.default=c;var u={};function d(e){var t=e.interaction;if("drag"===t.prepared.name){var n=t.prepared.axis;"x"===n?(t.coords.cur.page.y=t.coords.start.page.y,t.coords.cur.client.y=t.coords.start.client.y,t.coords.velocity.client.y=0,t.coords.velocity.page.y=0):"y"===n&&(t.coords.cur.page.x=t.coords.start.page.x,t.coords.cur.client.x=t.coords.start.client.x,t.coords.velocity.client.x=0,t.coords.velocity.page.x=0)}}function h(e){var t=e.iEvent,n=e.interaction;if("drag"===n.prepared.name){var i=n.prepared.axis;if("x"===i||"y"===i){var r="x"===i?"y":"x";t.page[r]=n.coords.start.page[r],t.client[r]=n.coords.start.client[r],t.delta[r]=0}}}Object.defineProperty(u,"__esModule",{value:!0}),u.default=void 0;var f={id:"actions/drag",install:function(e){var t=e.actions,n=e.Interactable,i=e.defaults;n.prototype.draggable=f.draggable,t.map.drag=f,t.methodDict.drag="draggable",i.actions.drag=f.defaults},listeners:{"interactions:before-action-move":d,"interactions:action-resume":d,"interactions:action-move":h,"auto-start:check":function(e){var t=e.interaction,n=e.interactable,i=e.buttons,r=n.options.drag;if(r&&r.enabled&&(!t.pointerIsDown||!/mouse|pointer/.test(t.pointerType)||0!=(i&n.options.drag.mouseButtons)))return e.action={name:"drag",axis:"start"===r.lockAxis?r.startAxis:r.lockAxis},!1}},draggable:function(e){return o.default.object(e)?(this.options.drag.enabled=!1!==e.enabled,this.setPerAction("drag",e),this.setOnEvents("drag",e),/^(xy|x|y|start)$/.test(e.lockAxis)&&(this.options.drag.lockAxis=e.lockAxis),/^(xy|x|y)$/.test(e.startAxis)&&(this.options.drag.startAxis=e.startAxis),this):o.default.bool(e)?(this.options.drag.enabled=e,this):this.options.drag},beforeMove:d,move:h,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"}},p=f;u.default=p;var g={};Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var m={init:function(e){var t=e;m.document=t.document,m.DocumentFragment=t.DocumentFragment||v,m.SVGElement=t.SVGElement||v,m.SVGSVGElement=t.SVGSVGElement||v,m.SVGElementInstance=t.SVGElementInstance||v,m.Element=t.Element||v,m.HTMLElement=t.HTMLElement||m.Element,m.Event=t.Event,m.Touch=t.Touch||v,m.PointerEvent=t.PointerEvent||t.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function v(){}var y=m;g.default=y;var b={};Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var x={init:function(e){var t=g.default.Element,n=e.navigator||{};x.supportsTouch="ontouchstart"in e||o.default.func(e.DocumentTouch)&&g.default.document instanceof e.DocumentTouch,x.supportsPointerEvent=!1!==n.pointerEnabled&&!!g.default.PointerEvent,x.isIOS=/iP(hone|od|ad)/.test(n.platform),x.isIOS7=/iP(hone|od|ad)/.test(n.platform)&&/OS 7[^\d]/.test(n.appVersion),x.isIe9=/MSIE 9/.test(n.userAgent),x.isOperaMobile="Opera"===n.appName&&x.supportsTouch&&/Presto/.test(n.userAgent),x.prefixedMatchesSelector="matches"in t.prototype?"matches":"webkitMatchesSelector"in t.prototype?"webkitMatchesSelector":"mozMatchesSelector"in t.prototype?"mozMatchesSelector":"oMatchesSelector"in t.prototype?"oMatchesSelector":"msMatchesSelector",x.pEventTypes=x.supportsPointerEvent?g.default.PointerEvent===e.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,x.wheelEvent=g.default.document&&"onmousewheel"in g.default.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},w=x;b.default=w;var A={};function _(e){var t=e.parentNode;if(o.default.docFrag(t)){for(;(t=t.host)&&o.default.docFrag(t););return t}return t}function C(e,n){return t.window!==t.realWindow&&(n=n.replace(/\/deep\//g," ")),e[b.default.prefixedMatchesSelector](n)}Object.defineProperty(A,"__esModule",{value:!0}),A.closest=function(e,t){for(;o.default.element(e);){if(C(e,t))return e;e=_(e)}return null},A.getActualElement=function(e){return e.correspondingUseElement||e},A.getElementClientRect=I,A.getElementRect=function(e){var n=I(e);if(!b.default.isIOS7&&n){var i=S(t.getWindow(e));n.left+=i.x,n.right+=i.x,n.top+=i.y,n.bottom+=i.y}return n},A.getPath=function(e){for(var t=[];e;)t.push(e),e=_(e);return t},A.getScrollXY=S,A.indexOfDeepestElement=function(e){for(var n,i=[],r=0;r<e.length;r++){var o=e[r],a=e[n];if(o&&r!==n)if(a){var s=M(o),l=M(a);if(s!==o.ownerDocument)if(l!==o.ownerDocument)if(s!==l){i=i.length?i:k(a);var c=void 0;if(a instanceof g.default.HTMLElement&&o instanceof g.default.SVGElement&&!(o instanceof g.default.SVGSVGElement)){if(o===l)continue;c=o.ownerSVGElement}else c=o;for(var u=k(c,a.ownerDocument),d=0;u[d]&&u[d]===i[d];)d++;var h=[u[d-1],u[d],i[d]];if(h[0])for(var f=h[0].lastChild;f;){if(f===h[1]){n=r,i=u;break}if(f===h[2])break;f=f.previousSibling}}else p=o,m=a,(parseInt(t.getWindow(p).getComputedStyle(p).zIndex,10)||0)>=(parseInt(t.getWindow(m).getComputedStyle(m).zIndex,10)||0)&&(n=r);else n=r}else n=r}var p,m;return n},A.matchesSelector=C,A.matchesUpTo=function(e,t,n){for(;o.default.element(e);){if(C(e,t))return!0;if((e=_(e))===n)return C(e,t)}return!1},A.nodeContains=function(e,t){if(e.contains)return e.contains(t);for(;t;){if(t===e)return!0;t=t.parentNode}return!1},A.parentNode=_,A.trySelector=function(e){return!!o.default.string(e)&&(g.default.document.querySelector(e),!0)};var M=function(e){return e.parentNode||e.host};function k(e,t){for(var n,i=[],r=e;(n=M(r))&&r!==t&&n!==r.ownerDocument;)i.unshift(r),r=n;return i}function S(e){return{x:(e=e||t.window).scrollX||e.document.documentElement.scrollLeft,y:e.scrollY||e.document.documentElement.scrollTop}}function I(e){var t=e instanceof g.default.SVGElement?e.getBoundingClientRect():e.getClientRects()[0];return t&&{left:t.left,right:t.right,top:t.top,bottom:t.bottom,width:t.width||t.right-t.left,height:t.height||t.bottom-t.top}}var L={};Object.defineProperty(L,"__esModule",{value:!0}),L.default=function(e,t){for(var n in t)e[n]=t[n];return e};var T={};function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function O(e,t,n){return"parent"===e?(0,A.parentNode)(n):"self"===e?t.getRect(n):(0,A.closest)(n,e)}Object.defineProperty(T,"__esModule",{value:!0}),T.addEdges=function(e,t,n){e.left&&(t.left+=n.x),e.right&&(t.right+=n.x),e.top&&(t.top+=n.y),e.bottom&&(t.bottom+=n.y),t.width=t.right-t.left,t.height=t.bottom-t.top},T.getStringOptionResult=O,T.rectToXY=function(e){return e&&{x:"x"in e?e.x:e.left,y:"y"in e?e.y:e.top}},T.resolveRectLike=function(e,t,n,i){var r,a=e;return o.default.string(a)?a=O(a,t,n):o.default.func(a)&&(a=a.apply(void 0,function(e){if(Array.isArray(e))return D(e)}(r=i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}(r)||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.")}())),o.default.element(a)&&(a=(0,A.getElementRect)(a)),a},T.tlbrToXywh=function(e){return!e||"x"in e&&"y"in e||((e=(0,L.default)({},e)).x=e.left||0,e.y=e.top||0,e.width=e.width||(e.right||0)-e.x,e.height=e.height||(e.bottom||0)-e.y),e},T.toFullRect=function(e){var t,n;return{top:e.top,left:e.left,bottom:e.bottom,right:e.right,width:null!==(t=e.width)&&void 0!==t?t:e.right-e.left,height:null!==(n=e.height)&&void 0!==n?n:e.bottom-e.top}},T.xywhToTlbr=function(e){return!e||"left"in e&&"top"in e||((e=(0,L.default)({},e)).left=e.x||0,e.top=e.y||0,e.right=e.right||e.left+e.width,e.bottom=e.bottom||e.top+e.height),e};var j={};Object.defineProperty(j,"__esModule",{value:!0}),j.default=function(e,t,n){var i=n&&e.options[n],r=i&&i.origin||e.options.origin,o=(0,T.resolveRectLike)(r,e,t,[e&&t]);return(0,T.rectToXY)(o)||{x:0,y:0}};var N={};function E(e){return e.trim().split(/ +/)}Object.defineProperty(N,"__esModule",{value:!0}),N.default=function e(t,n,i){if(i=i||{},o.default.string(t)&&-1!==t.search(" ")&&(t=E(t)),o.default.array(t))return t.reduce((function(t,r){return(0,L.default)(t,e(r,n,i))}),i);if(o.default.object(t)&&(n=t,t=""),o.default.func(n))i[t]=i[t]||[],i[t].push(n);else if(o.default.array(n))for(var r=0;r<n.length;r++){var a;a=n[r],e(t,a,i)}else if(o.default.object(n))for(var s in n){var l=E(s).map((function(e){return"".concat(t).concat(e)}));e(l,n[s],i)}return i};var P={};Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0,P.default=function(e,t){return Math.sqrt(e*e+t*t)};var F={};Object.defineProperty(F,"__esModule",{value:!0}),F.default=function(e,t){e.__set||(e.__set={});var n=function(n){if(z.some((function(e){return 0===n.indexOf(e)})))return"continue";"function"!=typeof e[n]&&"__set"!==n&&Object.defineProperty(e,n,{get:function(){return n in e.__set?e.__set[n]:e.__set[n]=t[n]},set:function(t){e.__set[n]=t},configurable:!0})};for(var i in t)n(i);return e};var z=["webkit","moz"],R={};function B(e){return e instanceof g.default.Event||e instanceof g.default.Touch}function W(e,t,n){return e=e||"page",(n=n||{}).x=t[e+"X"],n.y=t[e+"Y"],n}function Y(e,t){return t=t||{x:0,y:0},b.default.isOperaMobile&&B(e)?(W("screen",e,t),t.x+=window.scrollX,t.y+=window.scrollY):W("page",e,t),t}function U(e,t){return t=t||{},b.default.isOperaMobile&&B(e)?W("screen",e,t):W("client",e,t),t}function H(e){var t=[];return o.default.array(e)?(t[0]=e[0],t[1]=e[1]):"touchend"===e.type?1===e.touches.length?(t[0]=e.touches[0],t[1]=e.changedTouches[0]):0===e.touches.length&&(t[0]=e.changedTouches[0],t[1]=e.changedTouches[1]):(t[0]=e.touches[0],t[1]=e.touches[1]),t}function V(e){for(var t={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},n=0;n<e.length;n++){var i=e[n];for(var r in t)t[r]+=i[r]}for(var o in t)t[o]/=e.length;return t}Object.defineProperty(R,"__esModule",{value:!0}),R.coordsToEvent=function(e){return{coords:e,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}},R.copyCoords=function(e,t){e.page=e.page||{},e.page.x=t.page.x,e.page.y=t.page.y,e.client=e.client||{},e.client.x=t.client.x,e.client.y=t.client.y,e.timeStamp=t.timeStamp},R.getClientXY=U,R.getEventTargets=function(e){var t=o.default.func(e.composedPath)?e.composedPath():e.path;return[A.getActualElement(t?t[0]:e.target),A.getActualElement(e.currentTarget)]},R.getPageXY=Y,R.getPointerId=function(e){return o.default.number(e.pointerId)?e.pointerId:e.identifier},R.getPointerType=function(e){return o.default.string(e.pointerType)?e.pointerType:o.default.number(e.pointerType)?[void 0,void 0,"touch","pen","mouse"][e.pointerType]:/touch/.test(e.type||"")||e instanceof g.default.Touch?"touch":"mouse"},R.getTouchPair=H,R.getXY=W,R.isNativePointer=B,R.newCoords=function(){return{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},R.pointerAverage=V,Object.defineProperty(R,"pointerExtend",{enumerable:!0,get:function(){return F.default}}),R.setCoordDeltas=function(e,t,n){e.page.x=n.page.x-t.page.x,e.page.y=n.page.y-t.page.y,e.client.x=n.client.x-t.client.x,e.client.y=n.client.y-t.client.y,e.timeStamp=n.timeStamp-t.timeStamp},R.setCoordVelocity=function(e,t){var n=Math.max(t.timeStamp/1e3,.001);e.page.x=t.page.x/n,e.page.y=t.page.y/n,e.client.x=t.client.x/n,e.client.y=t.client.y/n,e.timeStamp=n},R.setCoords=function(e,t,n){var i=t.length>1?V(t):t[0];Y(i,e.page),U(i,e.client),e.timeStamp=n},R.setZeroCoords=function(e){e.page.x=0,e.page.y=0,e.client.x=0,e.client.y=0},R.touchAngle=function(e,t){var n=t+"X",i=t+"Y",r=H(e),o=r[1][n]-r[0][n],a=r[1][i]-r[0][i];return 180*Math.atan2(a,o)/Math.PI},R.touchBBox=function(e){if(!e.length)return null;var t=H(e),n=Math.min(t[0].pageX,t[1].pageX),i=Math.min(t[0].pageY,t[1].pageY),r=Math.max(t[0].pageX,t[1].pageX),o=Math.max(t[0].pageY,t[1].pageY);return{x:n,y:i,left:n,top:i,right:r,bottom:o,width:r-n,height:o-i}},R.touchDistance=function(e,t){var n=t+"X",i=t+"Y",r=H(e),o=r[0][n]-r[1][n],a=r[0][i]-r[1][i];return(0,P.default)(o,a)};var Z={};function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(Z,"__esModule",{value:!0}),Z.BaseEvent=void 0;var Q=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),G(this,"immediatePropagationStopped",!1),G(this,"propagationStopped",!1),this._interaction=t}var t,n;return t=e,(n=[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();Z.BaseEvent=Q,Object.defineProperty(Q.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var J={};Object.defineProperty(J,"__esModule",{value:!0}),J.remove=J.merge=J.from=J.findIndex=J.find=J.contains=void 0,J.contains=function(e,t){return-1!==e.indexOf(t)},J.remove=function(e,t){return e.splice(e.indexOf(t),1)};var q=function(e,t){for(var n=0;n<t.length;n++){var i=t[n];e.push(i)}return e};J.merge=q,J.from=function(e){return q([],e)};var X=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1};J.findIndex=X,J.find=function(e,t){return e[X(e,t)]};var K={};function $(e){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$(e)}function ee(e,t){return ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ee(e,t)}function te(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ne(e){return ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ne(e)}function ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(K,"__esModule",{value:!0}),K.DropEvent=void 0;var re=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ee(e,t)}(a,e);var t,n,i,r,o=(i=a,r=function(){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(e){return!1}}(),function(){var e,t=ne(i);if(r){var n=ne(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===$(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return te(e)}(this,e)});function a(e,t,n){var i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),ie(te(i=o.call(this,t._interaction)),"dropzone",void 0),ie(te(i),"dragEvent",void 0),ie(te(i),"relatedTarget",void 0),ie(te(i),"draggable",void 0),ie(te(i),"propagationStopped",!1),ie(te(i),"immediatePropagationStopped",!1);var r="dragleave"===n?e.prev:e.cur,s=r.element,l=r.dropzone;return i.type=n,i.target=s,i.currentTarget=s,i.dropzone=l,i.dragEvent=t,i.relatedTarget=t.target,i.draggable=t.interactable,i.timeStamp=t.timeStamp,i}return t=a,(n=[{key:"reject",value:function(){var e=this,t=this._interaction.dropState;if("dropactivate"===this.type||this.dropzone&&t.cur.dropzone===this.dropzone&&t.cur.element===this.target)if(t.prev.dropzone=this.dropzone,t.prev.element=this.target,t.rejected=!0,t.events.enter=null,this.stopImmediatePropagation(),"dropactivate"===this.type){var n=t.activeDrops,i=J.findIndex(n,(function(t){var n=t.dropzone,i=t.element;return n===e.dropzone&&i===e.target}));t.activeDrops.splice(i,1);var r=new a(t,this.dragEvent,"dropdeactivate");r.dropzone=this.dropzone,r.target=this.target,this.dropzone.fire(r)}else this.dropzone.fire(new a(t,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(Z.BaseEvent);K.DropEvent=re;var oe={};function ae(e,t){for(var n=0;n<e.slice().length;n++){var i=e.slice()[n],r=i.dropzone,o=i.element;t.dropzone=r,t.target=o,r.fire(t),t.propagationStopped=t.immediatePropagationStopped=!1}}function se(e,t){for(var n=function(e,t){for(var n=e.interactables,i=[],r=0;r<n.list.length;r++){var a=n.list[r];if(a.options.drop.enabled){var s=a.options.drop.accept;if(!(o.default.element(s)&&s!==t||o.default.string(s)&&!A.matchesSelector(t,s)||o.default.func(s)&&!s({dropzone:a,draggableElement:t})))for(var l=o.default.string(a.target)?a._context.querySelectorAll(a.target):o.default.array(a.target)?a.target:[a.target],c=0;c<l.length;c++){var u=l[c];u!==t&&i.push({dropzone:a,element:u,rect:a.getRect(u)})}}}return i}(e,t),i=0;i<n.length;i++){var r=n[i];r.rect=r.dropzone.getRect(r.element)}return n}function le(e,t,n){for(var i=e.dropState,r=e.interactable,o=e.element,a=[],s=0;s<i.activeDrops.length;s++){var l=i.activeDrops[s],c=l.dropzone,u=l.element,d=l.rect;c.dropCheck(t,n,r,o,u,d)&&a.push(u)}var h=A.indexOfDeepestElement(a);return i.activeDrops[h]||null}function ce(e,t,n){var i=e.dropState,r={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return"dragstart"===n.type&&(r.activate=new K.DropEvent(i,n,"dropactivate"),r.activate.target=null,r.activate.dropzone=null),"dragend"===n.type&&(r.deactivate=new K.DropEvent(i,n,"dropdeactivate"),r.deactivate.target=null,r.deactivate.dropzone=null),i.rejected||(i.cur.element!==i.prev.element&&(i.prev.dropzone&&(r.leave=new K.DropEvent(i,n,"dragleave"),n.dragLeave=r.leave.target=i.prev.element,n.prevDropzone=r.leave.dropzone=i.prev.dropzone),i.cur.dropzone&&(r.enter=new K.DropEvent(i,n,"dragenter"),n.dragEnter=i.cur.element,n.dropzone=i.cur.dropzone)),"dragend"===n.type&&i.cur.dropzone&&(r.drop=new K.DropEvent(i,n,"drop"),n.dropzone=i.cur.dropzone,n.relatedTarget=i.cur.element),"dragmove"===n.type&&i.cur.dropzone&&(r.move=new K.DropEvent(i,n,"dropmove"),n.dropzone=i.cur.dropzone)),r}function ue(e,t){var n=e.dropState,i=n.activeDrops,r=n.cur,o=n.prev;t.leave&&o.dropzone.fire(t.leave),t.enter&&r.dropzone.fire(t.enter),t.move&&r.dropzone.fire(t.move),t.drop&&r.dropzone.fire(t.drop),t.deactivate&&ae(i,t.deactivate),n.prev.dropzone=r.dropzone,n.prev.element=r.element}function de(e,t){var n=e.interaction,i=e.iEvent,r=e.event;if("dragmove"===i.type||"dragend"===i.type){var o=n.dropState;t.dynamicDrop&&(o.activeDrops=se(t,n.element));var a=i,s=le(n,a,r);o.rejected=o.rejected&&!!s&&s.dropzone===o.cur.dropzone&&s.element===o.cur.element,o.cur.dropzone=s&&s.dropzone,o.cur.element=s&&s.element,o.events=ce(n,0,a)}}Object.defineProperty(oe,"__esModule",{value:!0}),oe.default=void 0;var he={id:"actions/drop",install:function(e){var t=e.actions,n=e.interactStatic,i=e.Interactable,r=e.defaults;e.usePlugin(u.default),i.prototype.dropzone=function(e){return function(e,t){if(o.default.object(t)){if(e.options.drop.enabled=!1!==t.enabled,t.listeners){var n=(0,N.default)(t.listeners),i=Object.keys(n).reduce((function(e,t){return e[/^(enter|leave)/.test(t)?"drag".concat(t):/^(activate|deactivate|move)/.test(t)?"drop".concat(t):t]=n[t],e}),{}),r=e.options.drop.listeners;r&&e.off(r),e.on(i),e.options.drop.listeners=i}return o.default.func(t.ondrop)&&e.on("drop",t.ondrop),o.default.func(t.ondropactivate)&&e.on("dropactivate",t.ondropactivate),o.default.func(t.ondropdeactivate)&&e.on("dropdeactivate",t.ondropdeactivate),o.default.func(t.ondragenter)&&e.on("dragenter",t.ondragenter),o.default.func(t.ondragleave)&&e.on("dragleave",t.ondragleave),o.default.func(t.ondropmove)&&e.on("dropmove",t.ondropmove),/^(pointer|center)$/.test(t.overlap)?e.options.drop.overlap=t.overlap:o.default.number(t.overlap)&&(e.options.drop.overlap=Math.max(Math.min(1,t.overlap),0)),"accept"in t&&(e.options.drop.accept=t.accept),"checker"in t&&(e.options.drop.checker=t.checker),e}return o.default.bool(t)?(e.options.drop.enabled=t,e):e.options.drop}(this,e)},i.prototype.dropCheck=function(e,t,n,i,r,a){return function(e,t,n,i,r,a,s){var l=!1;if(!(s=s||e.getRect(a)))return!!e.options.drop.checker&&e.options.drop.checker(t,n,l,e,a,i,r);var c=e.options.drop.overlap;if("pointer"===c){var u=(0,j.default)(i,r,"drag"),d=R.getPageXY(t);d.x+=u.x,d.y+=u.y;var h=d.x>s.left&&d.x<s.right,f=d.y>s.top&&d.y<s.bottom;l=h&&f}var p=i.getRect(r);if(p&&"center"===c){var g=p.left+p.width/2,m=p.top+p.height/2;l=g>=s.left&&g<=s.right&&m>=s.top&&m<=s.bottom}return p&&o.default.number(c)&&(l=Math.max(0,Math.min(s.right,p.right)-Math.max(s.left,p.left))*Math.max(0,Math.min(s.bottom,p.bottom)-Math.max(s.top,p.top))/(p.width*p.height)>=c),e.options.drop.checker&&(l=e.options.drop.checker(t,n,l,e,a,i,r)),l}(this,e,t,n,i,r,a)},n.dynamicDrop=function(t){return o.default.bool(t)?(e.dynamicDrop=t,n):e.dynamicDrop},(0,L.default)(t.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),t.methodDict.drop="dropzone",e.dynamicDrop=!1,r.actions.drop=he.defaults},listeners:{"interactions:before-action-start":function(e){var t=e.interaction;"drag"===t.prepared.name&&(t.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(e,t){var n=e.interaction,i=(e.event,e.iEvent);if("drag"===n.prepared.name){var r=n.dropState;r.activeDrops=[],r.events={},r.activeDrops=se(t,n.element),r.events=ce(n,0,i),r.events.activate&&(ae(r.activeDrops,r.events.activate),t.fire("actions/drop:start",{interaction:n,dragEvent:i}))}},"interactions:action-move":de,"interactions:after-action-move":function(e,t){var n=e.interaction,i=e.iEvent;if("drag"===n.prepared.name){var r=n.dropState;ue(n,r.events),t.fire("actions/drop:move",{interaction:n,dragEvent:i}),r.events={}}},"interactions:action-end":function(e,t){if("drag"===e.interaction.prepared.name){var n=e.interaction,i=e.iEvent;de(e,t),ue(n,n.dropState.events),t.fire("actions/drop:end",{interaction:n,dragEvent:i})}},"interactions:stop":function(e){var t=e.interaction;if("drag"===t.prepared.name){var n=t.dropState;n&&(n.activeDrops=null,n.events=null,n.cur.dropzone=null,n.cur.element=null,n.prev.dropzone=null,n.prev.element=null,n.rejected=!1)}}},getActiveDrops:se,getDrop:le,getDropEvents:ce,fireDropEvents:ue,defaults:{enabled:!1,accept:null,overlap:"pointer"}},fe=he;oe.default=fe;var pe={};function ge(e){var t=e.interaction,n=e.iEvent,i=e.phase;if("gesture"===t.prepared.name){var r=t.pointers.map((function(e){return e.pointer})),a="start"===i,s="end"===i,l=t.interactable.options.deltaSource;if(n.touches=[r[0],r[1]],a)n.distance=R.touchDistance(r,l),n.box=R.touchBBox(r),n.scale=1,n.ds=0,n.angle=R.touchAngle(r,l),n.da=0,t.gesture.startDistance=n.distance,t.gesture.startAngle=n.angle;else if(s){var c=t.prevEvent;n.distance=c.distance,n.box=c.box,n.scale=c.scale,n.ds=0,n.angle=c.angle,n.da=0}else n.distance=R.touchDistance(r,l),n.box=R.touchBBox(r),n.scale=n.distance/t.gesture.startDistance,n.angle=R.touchAngle(r,l),n.ds=n.scale-t.gesture.scale,n.da=n.angle-t.gesture.angle;t.gesture.distance=n.distance,t.gesture.angle=n.angle,o.default.number(n.scale)&&n.scale!==1/0&&!isNaN(n.scale)&&(t.gesture.scale=n.scale)}}Object.defineProperty(pe,"__esModule",{value:!0}),pe.default=void 0;var me={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(e){var t=e.actions,n=e.Interactable,i=e.defaults;n.prototype.gesturable=function(e){return o.default.object(e)?(this.options.gesture.enabled=!1!==e.enabled,this.setPerAction("gesture",e),this.setOnEvents("gesture",e),this):o.default.bool(e)?(this.options.gesture.enabled=e,this):this.options.gesture},t.map.gesture=me,t.methodDict.gesture="gesturable",i.actions.gesture=me.defaults},listeners:{"interactions:action-start":ge,"interactions:action-move":ge,"interactions:action-end":ge,"interactions:new":function(e){e.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(e){if(!(e.interaction.pointers.length<2)){var t=e.interactable.options.gesture;if(t&&t.enabled)return e.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""}},ve=me;pe.default=ve;var ye={};function be(e,t,n,i,r,a,s){if(!t)return!1;if(!0===t){var l=o.default.number(a.width)?a.width:a.right-a.left,c=o.default.number(a.height)?a.height:a.bottom-a.top;if(s=Math.min(s,Math.abs(("left"===e||"right"===e?l:c)/2)),l<0&&("left"===e?e="right":"right"===e&&(e="left")),c<0&&("top"===e?e="bottom":"bottom"===e&&(e="top")),"left"===e){var u=l>=0?a.left:a.right;return n.x<u+s}if("top"===e){var d=c>=0?a.top:a.bottom;return n.y<d+s}if("right"===e)return n.x>(l>=0?a.right:a.left)-s;if("bottom"===e)return n.y>(c>=0?a.bottom:a.top)-s}return!!o.default.element(i)&&(o.default.element(t)?t===i:A.matchesUpTo(i,t,r))}function xe(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.resizeAxes){var i=t;n.interactable.options.resize.square?("y"===n.resizeAxes?i.delta.x=i.delta.y:i.delta.y=i.delta.x,i.axes="xy"):(i.axes=n.resizeAxes,"x"===n.resizeAxes?i.delta.y=0:"y"===n.resizeAxes&&(i.delta.x=0))}}Object.defineProperty(ye,"__esModule",{value:!0}),ye.default=void 0;var we={id:"actions/resize",before:["actions/drag"],install:function(e){var t=e.actions,n=e.browser,i=e.Interactable,r=e.defaults;we.cursors=function(e){return e.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(n),we.defaultMargin=n.supportsTouch||n.supportsPointerEvent?20:10,i.prototype.resizable=function(t){return function(e,t,n){return o.default.object(t)?(e.options.resize.enabled=!1!==t.enabled,e.setPerAction("resize",t),e.setOnEvents("resize",t),o.default.string(t.axis)&&/^x$|^y$|^xy$/.test(t.axis)?e.options.resize.axis=t.axis:null===t.axis&&(e.options.resize.axis=n.defaults.actions.resize.axis),o.default.bool(t.preserveAspectRatio)?e.options.resize.preserveAspectRatio=t.preserveAspectRatio:o.default.bool(t.square)&&(e.options.resize.square=t.square),e):o.default.bool(t)?(e.options.resize.enabled=t,e):e.options.resize}(this,t,e)},t.map.resize=we,t.methodDict.resize="resizable",r.actions.resize=we.defaults},listeners:{"interactions:new":function(e){e.interaction.resizeAxes="xy"},"interactions:action-start":function(e){!function(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=t,r=n.rect;n._rects={start:(0,L.default)({},r),corrected:(0,L.default)({},r),previous:(0,L.default)({},r),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},i.edges=n.prepared.edges,i.rect=n._rects.corrected,i.deltaRect=n._rects.delta}}(e),xe(e)},"interactions:action-move":function(e){!function(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=t,r=n.interactable.options.resize.invert,o="reposition"===r||"negate"===r,a=n.rect,s=n._rects,l=s.start,c=s.corrected,u=s.delta,d=s.previous;if((0,L.default)(d,c),o){if((0,L.default)(c,a),"reposition"===r){if(c.top>c.bottom){var h=c.top;c.top=c.bottom,c.bottom=h}if(c.left>c.right){var f=c.left;c.left=c.right,c.right=f}}}else c.top=Math.min(a.top,l.bottom),c.bottom=Math.max(a.bottom,l.top),c.left=Math.min(a.left,l.right),c.right=Math.max(a.right,l.left);for(var p in c.width=c.right-c.left,c.height=c.bottom-c.top,c)u[p]=c[p]-d[p];i.edges=n.prepared.edges,i.rect=c,i.deltaRect=u}}(e),xe(e)},"interactions:action-end":function(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=t;i.edges=n.prepared.edges,i.rect=n._rects.corrected,i.deltaRect=n._rects.delta}},"auto-start:check":function(e){var t=e.interaction,n=e.interactable,i=e.element,r=e.rect,a=e.buttons;if(r){var s=(0,L.default)({},t.coords.cur.page),l=n.options.resize;if(l&&l.enabled&&(!t.pointerIsDown||!/mouse|pointer/.test(t.pointerType)||0!=(a&l.mouseButtons))){if(o.default.object(l.edges)){var c={left:!1,right:!1,top:!1,bottom:!1};for(var u in c)c[u]=be(u,l.edges[u],s,t._latestPointer.eventTarget,i,r,l.margin||we.defaultMargin);c.left=c.left&&!c.right,c.top=c.top&&!c.bottom,(c.left||c.right||c.top||c.bottom)&&(e.action={name:"resize",edges:c})}else{var d="y"!==l.axis&&s.x>r.right-we.defaultMargin,h="x"!==l.axis&&s.y>r.bottom-we.defaultMargin;(d||h)&&(e.action={name:"resize",axes:(d?"x":"")+(h?"y":"")})}return!e.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(e){var t=e.edges,n=e.axis,i=e.name,r=we.cursors,o=null;if(n)o=r[i+n];else if(t){for(var a="",s=["top","bottom","left","right"],l=0;l<s.length;l++){var c=s[l];t[c]&&(a+=c)}o=r[a]}return o},defaultMargin:null},Ae=we;ye.default=Ae;var _e={};Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var Ce={id:"actions",install:function(e){e.usePlugin(pe.default),e.usePlugin(ye.default),e.usePlugin(u.default),e.usePlugin(oe.default)}};_e.default=Ce;var Me={};Object.defineProperty(Me,"__esModule",{value:!0}),Me.default=void 0;var ke,Se,Ie=0,Le={request:function(e){return ke(e)},cancel:function(e){return Se(e)},init:function(e){if(ke=e.requestAnimationFrame,Se=e.cancelAnimationFrame,!ke)for(var t=["ms","moz","webkit","o"],n=0;n<t.length;n++){var i=t[n];ke=e["".concat(i,"RequestAnimationFrame")],Se=e["".concat(i,"CancelAnimationFrame")]||e["".concat(i,"CancelRequestAnimationFrame")]}ke=ke&&ke.bind(e),Se=Se&&Se.bind(e),ke||(ke=function(t){var n=Date.now(),i=Math.max(0,16-(n-Ie)),r=e.setTimeout((function(){t(n+i)}),i);return Ie=n+i,r},Se=function(e){return clearTimeout(e)})}};Me.default=Le;var Te={};Object.defineProperty(Te,"__esModule",{value:!0}),Te.default=void 0,Te.getContainer=Oe,Te.getScroll=je,Te.getScrollSize=function(e){return o.default.window(e)&&(e=window.document.body),{x:e.scrollWidth,y:e.scrollHeight}},Te.getScrollSizeDelta=function(e,t){var n=e.interaction,i=e.element,r=n&&n.interactable.options[n.prepared.name].autoScroll;if(!r||!r.enabled)return t(),{x:0,y:0};var o=Oe(r.container,n.interactable,i),a=je(o);t();var s=je(o);return{x:s.x-a.x,y:s.y-a.y}};var De={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(e){De.isScrolling=!0,Me.default.cancel(De.i),e.autoScroll=De,De.interaction=e,De.prevTime=De.now(),De.i=Me.default.request(De.scroll)},stop:function(){De.isScrolling=!1,De.interaction&&(De.interaction.autoScroll=null),Me.default.cancel(De.i)},scroll:function(){var e=De.interaction,t=e.interactable,n=e.element,i=e.prepared.name,r=t.options[i].autoScroll,a=Oe(r.container,t,n),s=De.now(),l=(s-De.prevTime)/1e3,c=r.speed*l;if(c>=1){var u={x:De.x*c,y:De.y*c};if(u.x||u.y){var d=je(a);o.default.window(a)?a.scrollBy(u.x,u.y):a&&(a.scrollLeft+=u.x,a.scrollTop+=u.y);var h=je(a),f={x:h.x-d.x,y:h.y-d.y};(f.x||f.y)&&t.fire({type:"autoscroll",target:n,interactable:t,delta:f,interaction:e,container:a})}De.prevTime=s}De.isScrolling&&(Me.default.cancel(De.i),De.i=Me.default.request(De.scroll))},check:function(e,t){var n;return null==(n=e.options[t].autoScroll)?void 0:n.enabled},onInteractionMove:function(e){var t=e.interaction,n=e.pointer;if(t.interacting()&&De.check(t.interactable,t.prepared.name))if(t.simulation)De.x=De.y=0;else{var i,r,a,s,l=t.interactable,c=t.element,u=t.prepared.name,d=l.options[u].autoScroll,h=Oe(d.container,l,c);if(o.default.window(h))s=n.clientX<De.margin,i=n.clientY<De.margin,r=n.clientX>h.innerWidth-De.margin,a=n.clientY>h.innerHeight-De.margin;else{var f=A.getElementClientRect(h);s=n.clientX<f.left+De.margin,i=n.clientY<f.top+De.margin,r=n.clientX>f.right-De.margin,a=n.clientY>f.bottom-De.margin}De.x=r?1:s?-1:0,De.y=a?1:i?-1:0,De.isScrolling||(De.margin=d.margin,De.speed=d.speed,De.start(t))}}};function Oe(e,n,i){return(o.default.string(e)?(0,T.getStringOptionResult)(e,n,i):e)||(0,t.getWindow)(i)}function je(e){return o.default.window(e)&&(e=window.document.body),{x:e.scrollLeft,y:e.scrollTop}}var Ne={id:"auto-scroll",install:function(e){var t=e.defaults,n=e.actions;e.autoScroll=De,De.now=function(){return e.now()},n.phaselessTypes.autoscroll=!0,t.perAction.autoScroll=De.defaults},listeners:{"interactions:new":function(e){e.interaction.autoScroll=null},"interactions:destroy":function(e){e.interaction.autoScroll=null,De.stop(),De.interaction&&(De.interaction=null)},"interactions:stop":De.stop,"interactions:action-move":function(e){return De.onInteractionMove(e)}}},Ee=Ne;Te.default=Ee;var Pe={};Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.copyAction=function(e,t){return e.name=t.name,e.axis=t.axis,e.edges=t.edges,e},Pe.sign=void 0,Pe.warnOnce=function(e,n){var i=!1;return function(){return i||(t.window.console.warn(n),i=!0),e.apply(this,arguments)}},Pe.sign=function(e){return e>=0?1:-1};var Fe={};function ze(e){return o.default.bool(e)?(this.options.styleCursor=e,this):null===e?(delete this.options.styleCursor,this):this.options.styleCursor}function Re(e){return o.default.func(e)?(this.options.actionChecker=e,this):null===e?(delete this.options.actionChecker,this):this.options.actionChecker}Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.default=void 0;var Be={id:"auto-start/interactableMethods",install:function(e){var t=e.Interactable;t.prototype.getAction=function(t,n,i,r){var o=function(e,t,n,i,r){var o=e.getRect(i),a={action:null,interactable:e,interaction:n,element:i,rect:o,buttons:t.buttons||{0:1,1:4,3:8,4:16}[t.button]};return r.fire("auto-start:check",a),a.action}(this,n,i,r,e);return this.options.actionChecker?this.options.actionChecker(t,n,o,this,r,i):o},t.prototype.ignoreFrom=(0,Pe.warnOnce)((function(e){return this._backCompatOption("ignoreFrom",e)}),"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),t.prototype.allowFrom=(0,Pe.warnOnce)((function(e){return this._backCompatOption("allowFrom",e)}),"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),t.prototype.actionChecker=Re,t.prototype.styleCursor=ze}};Fe.default=Be;var We={};function Ye(e,t,n,i,r){return t.testIgnoreAllow(t.options[e.name],n,i)&&t.options[e.name].enabled&&Ze(t,n,e,r)?e:null}function Ue(e,t,n,i,r,o,a){for(var s=0,l=i.length;s<l;s++){var c=i[s],u=r[s],d=c.getAction(t,n,e,u);if(d){var h=Ye(d,c,u,o,a);if(h)return{action:h,interactable:c,element:u}}}return{action:null,interactable:null,element:null}}function He(e,t,n,i,r){var a=[],s=[],l=i;function c(e){a.push(e),s.push(l)}for(;o.default.element(l);){a=[],s=[],r.interactables.forEachMatch(l,c);var u=Ue(e,t,n,a,s,i,r);if(u.action&&!u.interactable.options[u.action.name].manualStart)return u;l=A.parentNode(l)}return{action:null,interactable:null,element:null}}function Ve(e,t,n){var i=t.action,r=t.interactable,o=t.element;i=i||{name:null},e.interactable=r,e.element=o,(0,Pe.copyAction)(e.prepared,i),e.rect=r&&i.name?r.getRect(o):null,Je(e,n),n.fire("autoStart:prepared",{interaction:e})}function Ze(e,t,n,i){var r=e.options,o=r[n.name].max,a=r[n.name].maxPerElement,s=i.autoStart.maxInteractions,l=0,c=0,u=0;if(!(o&&a&&s))return!1;for(var d=0;d<i.interactions.list.length;d++){var h=i.interactions.list[d],f=h.prepared.name;if(h.interacting()){if(++l>=s)return!1;if(h.interactable===e){if((c+=f===n.name?1:0)>=o)return!1;if(h.element===t&&(u++,f===n.name&&u>=a))return!1}}}return s>0}function Ge(e,t){return o.default.number(e)?(t.autoStart.maxInteractions=e,this):t.autoStart.maxInteractions}function Qe(e,t,n){var i=n.autoStart.cursorElement;i&&i!==e&&(i.style.cursor=""),e.ownerDocument.documentElement.style.cursor=t,e.style.cursor=t,n.autoStart.cursorElement=t?e:null}function Je(e,t){var n=e.interactable,i=e.element,r=e.prepared;if("mouse"===e.pointerType&&n&&n.options.styleCursor){var a="";if(r.name){var s=n.options[r.name].cursorChecker;a=o.default.func(s)?s(r,n,i,e._interacting):t.actions.map[r.name].getCursor(r)}Qe(e.element,a||"",t)}else t.autoStart.cursorElement&&Qe(t.autoStart.cursorElement,"",t)}Object.defineProperty(We,"__esModule",{value:!0}),We.default=void 0;var qe={id:"auto-start/base",before:["actions"],install:function(e){var t=e.interactStatic,n=e.defaults;e.usePlugin(Fe.default),n.base.actionChecker=null,n.base.styleCursor=!0,(0,L.default)(n.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),t.maxInteractions=function(t){return Ge(t,e)},e.autoStart={maxInteractions:1/0,withinInteractionLimit:Ze,cursorElement:null}},listeners:{"interactions:down":function(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget;n.interacting()||Ve(n,He(n,i,r,o,t),t)},"interactions:move":function(e,t){!function(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget;"mouse"!==n.pointerType||n.pointerIsDown||n.interacting()||Ve(n,He(n,i,r,o,t),t)}(e,t),function(e,t){var n=e.interaction;if(n.pointerIsDown&&!n.interacting()&&n.pointerWasMoved&&n.prepared.name){t.fire("autoStart:before-start",e);var i=n.interactable,r=n.prepared.name;r&&i&&(i.options[r].manualStart||!Ze(i,n.element,n.prepared,t)?n.stop():(n.start(n.prepared,i,n.element),Je(n,t)))}}(e,t)},"interactions:stop":function(e,t){var n=e.interaction,i=n.interactable;i&&i.options.styleCursor&&Qe(n.element,"",t)}},maxInteractions:Ge,withinInteractionLimit:Ze,validateAction:Ye},Xe=qe;We.default=Xe;var Ke={};Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.default=void 0;var $e={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(e,t){var n=e.interaction,i=e.eventTarget,r=e.dx,a=e.dy;if("drag"===n.prepared.name){var s=Math.abs(r),l=Math.abs(a),c=n.interactable.options.drag,u=c.startAxis,d=s>l?"x":s<l?"y":"xy";if(n.prepared.axis="start"===c.lockAxis?d[0]:c.lockAxis,"xy"!==d&&"xy"!==u&&u!==d){n.prepared.name=null;for(var h=i,f=function(e){if(e!==n.interactable){var r=n.interactable.options.drag;if(!r.manualStart&&e.testIgnoreAllow(r,h,i)){var o=e.getAction(n.downPointer,n.downEvent,n,h);if(o&&"drag"===o.name&&function(e,t){if(!t)return!1;var n=t.options.drag.startAxis;return"xy"===e||"xy"===n||n===e}(d,e)&&We.default.validateAction(o,e,h,i,t))return e}}};o.default.element(h);){var p=t.interactables.forEachMatch(h,f);if(p){n.prepared.name="drag",n.interactable=p,n.element=h;break}h=(0,A.parentNode)(h)}}}}}};Ke.default=$e;var et={};function tt(e){var t=e.prepared&&e.prepared.name;if(!t)return null;var n=e.interactable.options;return n[t].hold||n[t].delay}Object.defineProperty(et,"__esModule",{value:!0}),et.default=void 0;var nt={id:"auto-start/hold",install:function(e){var t=e.defaults;e.usePlugin(We.default),t.perAction.hold=0,t.perAction.delay=0},listeners:{"interactions:new":function(e){e.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(e){var t=e.interaction,n=tt(t);n>0&&(t.autoStartHoldTimer=setTimeout((function(){t.start(t.prepared,t.interactable,t.element)}),n))},"interactions:move":function(e){var t=e.interaction,n=e.duplicate;t.autoStartHoldTimer&&t.pointerWasMoved&&!n&&(clearTimeout(t.autoStartHoldTimer),t.autoStartHoldTimer=null)},"autoStart:before-start":function(e){var t=e.interaction;tt(t)>0&&(t.prepared.name=null)}},getHoldDuration:tt},it=nt;et.default=it;var rt={};Object.defineProperty(rt,"__esModule",{value:!0}),rt.default=void 0;var ot={id:"auto-start",install:function(e){e.usePlugin(We.default),e.usePlugin(et.default),e.usePlugin(Ke.default)}};rt.default=ot;var at={};function st(e){return/^(always|never|auto)$/.test(e)?(this.options.preventDefault=e,this):o.default.bool(e)?(this.options.preventDefault=e?"always":"never",this):this.options.preventDefault}function lt(e){var t=e.interaction,n=e.event;t.interactable&&t.interactable.checkAndPreventDefault(n)}function ct(e){var n=e.Interactable;n.prototype.preventDefault=st,n.prototype.checkAndPreventDefault=function(n){return function(e,n,i){var r=e.options.preventDefault;if("never"!==r)if("always"!==r){if(n.events.supportsPassive&&/^touch(start|move)$/.test(i.type)){var a=(0,t.getWindow)(i.target).document,s=n.getDocOptions(a);if(!s||!s.events||!1!==s.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(i.type)||o.default.element(i.target)&&(0,A.matchesSelector)(i.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||i.preventDefault()}else i.preventDefault()}(this,e,n)},e.interactions.docEvents.push({type:"dragstart",listener:function(t){for(var n=0;n<e.interactions.list.length;n++){var i=e.interactions.list[n];if(i.element&&(i.element===t.target||(0,A.nodeContains)(i.element,t.target)))return void i.interactable.checkAndPreventDefault(t)}}})}Object.defineProperty(at,"__esModule",{value:!0}),at.default=void 0,at.install=ct;var ut={id:"core/interactablePreventDefault",install:ct,listeners:["down","move","up","cancel"].reduce((function(e,t){return e["interactions:".concat(t)]=lt,e}),{})};at.default=ut;var dt={};Object.defineProperty(dt,"__esModule",{value:!0}),dt.default=void 0,dt.default={};var ht,ft={};Object.defineProperty(ft,"__esModule",{value:!0}),ft.default=void 0,function(e){e.touchAction="touchAction",e.boxSizing="boxSizing",e.noListeners="noListeners"}(ht||(ht={})),ht.touchAction,ht.boxSizing,ht.noListeners;ft.default={id:"dev-tools",install:function(){}};var pt={};Object.defineProperty(pt,"__esModule",{value:!0}),pt.default=function e(t){var n={};for(var i in t){var r=t[i];o.default.plainObject(r)?n[i]=e(r):o.default.array(r)?n[i]=J.from(r):n[i]=r}return n};var gt={};function mt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vt(e,t):void 0}}(e,t)||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.")}()}function vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(gt,"__esModule",{value:!0}),gt.default=void 0,gt.getRectOffset=wt;var bt=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),yt(this,"states",[]),yt(this,"startOffset",{left:0,right:0,top:0,bottom:0}),yt(this,"startDelta",void 0),yt(this,"result",void 0),yt(this,"endResult",void 0),yt(this,"startEdges",void 0),yt(this,"edges",void 0),yt(this,"interaction",void 0),this.interaction=t,this.result=xt(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}var t,n;return t=e,(n=[{key:"start",value:function(e,t){var n=e.phase,i=this.interaction,r=function(e){var t=e.interactable.options[e.prepared.name],n=t.modifiers;return n&&n.length?n:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map((function(e){var n=t[e];return n&&n.enabled&&{options:n,methods:n._methods}})).filter((function(e){return!!e}))}(i);this.prepareStates(r),this.startEdges=(0,L.default)({},i.edges),this.edges=(0,L.default)({},this.startEdges),this.startOffset=wt(i.rect,t),this.startDelta={x:0,y:0};var o=this.fillArg({phase:n,pageCoords:t,preEnd:!1});return this.result=xt(),this.startAll(o),this.result=this.setAll(o)}},{key:"fillArg",value:function(e){var t=this.interaction;return e.interaction=t,e.interactable=t.interactable,e.element=t.element,e.rect||(e.rect=t.rect),e.edges||(e.edges=this.startEdges),e.startOffset=this.startOffset,e}},{key:"startAll",value:function(e){for(var t=0;t<this.states.length;t++){var n=this.states[t];n.methods.start&&(e.state=n,n.methods.start(e))}}},{key:"setAll",value:function(e){var t=e.phase,n=e.preEnd,i=e.skipModifiers,r=e.rect,o=e.edges;e.coords=(0,L.default)({},e.pageCoords),e.rect=(0,L.default)({},r),e.edges=(0,L.default)({},o);for(var a=i?this.states.slice(i):this.states,s=xt(e.coords,e.rect),l=0;l<a.length;l++){var c,u=a[l],d=u.options,h=(0,L.default)({},e.coords),f=null;null!=(c=u.methods)&&c.set&&this.shouldDo(d,n,t)&&(e.state=u,f=u.methods.set(e),T.addEdges(e.edges,e.rect,{x:e.coords.x-h.x,y:e.coords.y-h.y})),s.eventProps.push(f)}(0,L.default)(this.edges,e.edges),s.delta.x=e.coords.x-e.pageCoords.x,s.delta.y=e.coords.y-e.pageCoords.y,s.rectDelta.left=e.rect.left-r.left,s.rectDelta.right=e.rect.right-r.right,s.rectDelta.top=e.rect.top-r.top,s.rectDelta.bottom=e.rect.bottom-r.bottom;var p=this.result.coords,g=this.result.rect;if(p&&g){var m=s.rect.left!==g.left||s.rect.right!==g.right||s.rect.top!==g.top||s.rect.bottom!==g.bottom;s.changed=m||p.x!==s.coords.x||p.y!==s.coords.y}return s}},{key:"applyToInteraction",value:function(e){var t=this.interaction,n=e.phase,i=t.coords.cur,r=t.coords.start,o=this.result,a=this.startDelta,s=o.delta;"start"===n&&(0,L.default)(this.startDelta,o.delta);for(var l=0;l<2;l++){var c=mt([[r,a],[i,s]][l],2),u=c[0],d=c[1];u.page.x+=d.x,u.page.y+=d.y,u.client.x+=d.x,u.client.y+=d.y}var h=this.result.rectDelta,f=e.rect||t.rect;f.left+=h.left,f.right+=h.right,f.top+=h.top,f.bottom+=h.bottom,f.width=f.right-f.left,f.height=f.bottom-f.top}},{key:"setAndApply",value:function(e){var t=this.interaction,n=e.phase,i=e.preEnd,r=e.skipModifiers,o=this.setAll(this.fillArg({preEnd:i,phase:n,pageCoords:e.modifiedCoords||t.coords.cur.page}));if(this.result=o,!o.changed&&(!r||r<this.states.length)&&t.interacting())return!1;if(e.modifiedCoords){var a=t.coords.cur.page,s={x:e.modifiedCoords.x-a.x,y:e.modifiedCoords.y-a.y};o.coords.x+=s.x,o.coords.y+=s.y,o.delta.x+=s.x,o.delta.y+=s.y}this.applyToInteraction(e)}},{key:"beforeEnd",value:function(e){var t=e.interaction,n=e.event,i=this.states;if(i&&i.length){for(var r=!1,o=0;o<i.length;o++){var a=i[o];e.state=a;var s=a.options,l=a.methods,c=l.beforeEnd&&l.beforeEnd(e);if(c)return this.endResult=c,!1;r=r||!r&&this.shouldDo(s,!0,e.phase,!0)}r&&t.move({event:n,preEnd:!0})}}},{key:"stop",value:function(e){var t=e.interaction;if(this.states&&this.states.length){var n=(0,L.default)({states:this.states,interactable:t.interactable,element:t.element,rect:null},e);this.fillArg(n);for(var i=0;i<this.states.length;i++){var r=this.states[i];n.state=r,r.methods.stop&&r.methods.stop(n)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(e){this.states=[];for(var t=0;t<e.length;t++){var n=e[t],i=n.options,r=n.methods,o=n.name;this.states.push({options:i,methods:r,index:t,name:o})}return this.states}},{key:"restoreInteractionCoords",value:function(e){var t=e.interaction,n=t.coords,i=t.rect,r=t.modification;if(r.result){for(var o=r.startDelta,a=r.result,s=a.delta,l=a.rectDelta,c=[[n.start,o],[n.cur,s]],u=0;u<c.length;u++){var d=mt(c[u],2),h=d[0],f=d[1];h.page.x-=f.x,h.page.y-=f.y,h.client.x-=f.x,h.client.y-=f.y}i.left-=l.left,i.right-=l.right,i.top-=l.top,i.bottom-=l.bottom}}},{key:"shouldDo",value:function(e,t,n,i){return!(!e||!1===e.enabled||i&&!e.endOnly||e.endOnly&&!t||"start"===n&&!e.setStart)}},{key:"copyFrom",value:function(e){this.startOffset=e.startOffset,this.startDelta=e.startDelta,this.startEdges=e.startEdges,this.edges=e.edges,this.states=e.states.map((function(e){return(0,pt.default)(e)})),this.result=xt((0,L.default)({},e.result.coords),(0,L.default)({},e.result.rect))}},{key:"destroy",value:function(){for(var e in this)this[e]=null}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function xt(e,t){return{rect:t,coords:e,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function wt(e,t){return e?{left:t.x-e.left,top:t.y-e.top,right:e.right-t.x,bottom:e.bottom-t.y}:{left:0,top:0,right:0,bottom:0}}gt.default=bt;var At={};function _t(e){var t=e.iEvent,n=e.interaction.modification.result;n&&(t.modifiers=n.eventProps)}Object.defineProperty(At,"__esModule",{value:!0}),At.addEventModifiers=_t,At.default=void 0,At.makeModifier=function(e,t){var n=e.defaults,i={start:e.start,set:e.set,beforeEnd:e.beforeEnd,stop:e.stop},r=function(e){var r=e||{};for(var o in r.enabled=!1!==r.enabled,n)o in r||(r[o]=n[o]);var a={options:r,methods:i,name:t,enable:function(){return r.enabled=!0,a},disable:function(){return r.enabled=!1,a}};return a};return t&&"string"==typeof t&&(r._defaults=n,r._methods=i),r};var Ct={id:"modifiers/base",before:["actions"],install:function(e){e.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(e){var t=e.interaction;t.modification=new gt.default(t)},"interactions:before-action-start":function(e){var t=e.interaction,n=e.interaction.modification;n.start(e,t.coords.start.page),t.edges=n.edges,n.applyToInteraction(e)},"interactions:before-action-move":function(e){var t=e.interaction,n=t.modification,i=n.setAndApply(e);return t.edges=n.edges,i},"interactions:before-action-end":function(e){var t=e.interaction,n=t.modification,i=n.beforeEnd(e);return t.edges=n.startEdges,i},"interactions:action-start":_t,"interactions:action-move":_t,"interactions:action-end":_t,"interactions:after-action-start":function(e){return e.interaction.modification.restoreInteractionCoords(e)},"interactions:after-action-move":function(e){return e.interaction.modification.restoreInteractionCoords(e)},"interactions:stop":function(e){return e.interaction.modification.stop(e)}}},Mt=Ct;At.default=Mt;var kt={};Object.defineProperty(kt,"__esModule",{value:!0}),kt.defaults=void 0,kt.defaults={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}};var St={};function It(e){return It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},It(e)}function Lt(e,t){return Lt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lt(e,t)}function Tt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dt(e){return Dt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dt(e)}function Ot(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(St,"__esModule",{value:!0}),St.InteractEvent=void 0;var jt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lt(e,t)}(a,e);var t,n,i,r,o=(i=a,r=function(){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(e){return!1}}(),function(){var e,t=Dt(i);if(r){var n=Dt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===It(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Tt(e)}(this,e)});function a(e,t,n,i,r,s,l){var c;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Ot(Tt(c=o.call(this,e)),"relatedTarget",null),Ot(Tt(c),"screenX",void 0),Ot(Tt(c),"screenY",void 0),Ot(Tt(c),"button",void 0),Ot(Tt(c),"buttons",void 0),Ot(Tt(c),"ctrlKey",void 0),Ot(Tt(c),"shiftKey",void 0),Ot(Tt(c),"altKey",void 0),Ot(Tt(c),"metaKey",void 0),Ot(Tt(c),"page",void 0),Ot(Tt(c),"client",void 0),Ot(Tt(c),"delta",void 0),Ot(Tt(c),"rect",void 0),Ot(Tt(c),"x0",void 0),Ot(Tt(c),"y0",void 0),Ot(Tt(c),"t0",void 0),Ot(Tt(c),"dt",void 0),Ot(Tt(c),"duration",void 0),Ot(Tt(c),"clientX0",void 0),Ot(Tt(c),"clientY0",void 0),Ot(Tt(c),"velocity",void 0),Ot(Tt(c),"speed",void 0),Ot(Tt(c),"swipe",void 0),Ot(Tt(c),"axes",void 0),Ot(Tt(c),"preEnd",void 0),r=r||e.element;var u=e.interactable,d=(u&&u.options||kt.defaults).deltaSource,h=(0,j.default)(u,r,n),f="start"===i,p="end"===i,g=f?Tt(c):e.prevEvent,m=f?e.coords.start:p?{page:g.page,client:g.client,timeStamp:e.coords.cur.timeStamp}:e.coords.cur;return c.page=(0,L.default)({},m.page),c.client=(0,L.default)({},m.client),c.rect=(0,L.default)({},e.rect),c.timeStamp=m.timeStamp,p||(c.page.x-=h.x,c.page.y-=h.y,c.client.x-=h.x,c.client.y-=h.y),c.ctrlKey=t.ctrlKey,c.altKey=t.altKey,c.shiftKey=t.shiftKey,c.metaKey=t.metaKey,c.button=t.button,c.buttons=t.buttons,c.target=r,c.currentTarget=r,c.preEnd=s,c.type=l||n+(i||""),c.interactable=u,c.t0=f?e.pointers[e.pointers.length-1].downTime:g.t0,c.x0=e.coords.start.page.x-h.x,c.y0=e.coords.start.page.y-h.y,c.clientX0=e.coords.start.client.x-h.x,c.clientY0=e.coords.start.client.y-h.y,c.delta=f||p?{x:0,y:0}:{x:c[d].x-g[d].x,y:c[d].y-g[d].y},c.dt=e.coords.delta.timeStamp,c.duration=c.timeStamp-c.t0,c.velocity=(0,L.default)({},e.coords.velocity[d]),c.speed=(0,P.default)(c.velocity.x,c.velocity.y),c.swipe=p||"inertiastart"===i?c.getSwipe():null,c}return t=a,(n=[{key:"getSwipe",value:function(){var e=this._interaction;if(e.prevEvent.speed<600||this.timeStamp-e.prevEvent.timeStamp>150)return null;var t=180*Math.atan2(e.prevEvent.velocityY,e.prevEvent.velocityX)/Math.PI;t<0&&(t+=360);var n=112.5<=t&&t<247.5,i=202.5<=t&&t<337.5;return{up:i,down:!i&&22.5<=t&&t<157.5,left:n,right:!n&&(292.5<=t||t<67.5),angle:t,speed:e.prevEvent.speed,velocity:{x:e.prevEvent.velocityX,y:e.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(Z.BaseEvent);St.InteractEvent=jt,Object.defineProperties(jt.prototype,{pageX:{get:function(){return this.page.x},set:function(e){this.page.x=e}},pageY:{get:function(){return this.page.y},set:function(e){this.page.y=e}},clientX:{get:function(){return this.client.x},set:function(e){this.client.x=e}},clientY:{get:function(){return this.client.y},set:function(e){this.client.y=e}},dx:{get:function(){return this.delta.x},set:function(e){this.delta.x=e}},dy:{get:function(){return this.delta.y},set:function(e){this.delta.y=e}},velocityX:{get:function(){return this.velocity.x},set:function(e){this.velocity.x=e}},velocityY:{get:function(){return this.velocity.y},set:function(e){this.velocity.y=e}}});var Nt={};function Et(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.PointerInfo=void 0;var Ft=function(e,t,n){return t&&Et(e.prototype,t),n&&Et(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,i,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Pt(this,"id",void 0),Pt(this,"pointer",void 0),Pt(this,"event",void 0),Pt(this,"downTime",void 0),Pt(this,"downTarget",void 0),this.id=t,this.pointer=n,this.event=i,this.downTime=r,this.downTarget=o}));Nt.PointerInfo=Ft;var zt,Rt,Bt={};function Wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.Interaction=void 0,Object.defineProperty(Bt,"PointerInfo",{enumerable:!0,get:function(){return Nt.PointerInfo}}),Bt.default=Bt._ProxyValues=Bt._ProxyMethods=void 0,Bt._ProxyValues=zt,function(e){e.interactable="",e.element="",e.prepared="",e.pointerIsDown="",e.pointerWasMoved="",e._proxy=""}(zt||(Bt._ProxyValues=zt={})),Bt._ProxyMethods=Rt,function(e){e.start="",e.move="",e.end="",e.stop="",e.interacting=""}(Rt||(Bt._ProxyMethods=Rt={}));var Yt=0,Ut=function(){function e(t){var n=this,i=t.pointerType,r=t.scopeFire;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Wt(this,"interactable",null),Wt(this,"element",null),Wt(this,"rect",null),Wt(this,"_rects",void 0),Wt(this,"edges",null),Wt(this,"_scopeFire",void 0),Wt(this,"prepared",{name:null,axis:null,edges:null}),Wt(this,"pointerType",void 0),Wt(this,"pointers",[]),Wt(this,"downEvent",null),Wt(this,"downPointer",{}),Wt(this,"_latestPointer",{pointer:null,event:null,eventTarget:null}),Wt(this,"prevEvent",null),Wt(this,"pointerIsDown",!1),Wt(this,"pointerWasMoved",!1),Wt(this,"_interacting",!1),Wt(this,"_ending",!1),Wt(this,"_stopped",!0),Wt(this,"_proxy",void 0),Wt(this,"simulation",null),Wt(this,"doMove",(0,Pe.warnOnce)((function(e){this.move(e)}),"The interaction.doMove() method has been renamed to interaction.move()")),Wt(this,"coords",{start:R.newCoords(),prev:R.newCoords(),cur:R.newCoords(),delta:R.newCoords(),velocity:R.newCoords()}),Wt(this,"_id",Yt++),this._scopeFire=r,this.pointerType=i;var o=this;this._proxy={};var a=function(e){Object.defineProperty(n._proxy,e,{get:function(){return o[e]}})};for(var s in zt)a(s);var l=function(e){Object.defineProperty(n._proxy,e,{value:function(){return o[e].apply(o,arguments)}})};for(var c in Rt)l(c);this._scopeFire("interactions:new",{interaction:this})}var t,n;return t=e,n=[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(e,t,n){var i=this.updatePointer(e,t,n,!0),r=this.pointers[i];this._scopeFire("interactions:down",{pointer:e,event:t,eventTarget:n,pointerIndex:i,pointerInfo:r,type:"down",interaction:this})}},{key:"start",value:function(e,t,n){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<("gesture"===e.name?2:1)||!t.options[e.name].enabled)&&((0,Pe.copyAction)(this.prepared,e),this.interactable=t,this.element=n,this.rect=t.getRect(n),this.edges=this.prepared.edges?(0,L.default)({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(e,t,n){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(e,t,n,!1);var i,r,o=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(i=this.coords.cur.client.x-this.coords.start.client.x,r=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=(0,P.default)(i,r)>this.pointerMoveTolerance);var a=this.getPointerIndex(e),s={pointer:e,pointerIndex:a,pointerInfo:this.pointers[a],event:t,type:"move",eventTarget:n,dx:i,dy:r,duplicate:o,interaction:this};o||R.setCoordVelocity(this.coords.velocity,this.coords.delta),this._scopeFire("interactions:move",s),o||this.simulation||(this.interacting()&&(s.type=null,this.move(s)),this.pointerWasMoved&&R.copyCoords(this.coords.prev,this.coords.cur))}},{key:"move",value:function(e){e&&e.event||R.setZeroCoords(this.coords.delta),(e=(0,L.default)({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},e||{})).phase="move",this._doPhase(e)}},{key:"pointerUp",value:function(e,t,n,i){var r=this.getPointerIndex(e);-1===r&&(r=this.updatePointer(e,t,n,!1));var o=/cancel$/i.test(t.type)?"cancel":"up";this._scopeFire("interactions:".concat(o),{pointer:e,pointerIndex:r,pointerInfo:this.pointers[r],event:t,eventTarget:n,type:o,curEventTarget:i,interaction:this}),this.simulation||this.end(t),this.removePointer(e,t)}},{key:"documentBlur",value:function(e){this.end(e),this._scopeFire("interactions:blur",{event:e,type:"blur",interaction:this})}},{key:"end",value:function(e){var t;this._ending=!0,e=e||this._latestPointer.event,this.interacting()&&(t=this._doPhase({event:e,interaction:this,phase:"end"})),this._ending=!1,!0===t&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(e){var t=R.getPointerId(e);return"mouse"===this.pointerType||"pen"===this.pointerType?this.pointers.length-1:J.findIndex(this.pointers,(function(e){return e.id===t}))}},{key:"getPointerInfo",value:function(e){return this.pointers[this.getPointerIndex(e)]}},{key:"updatePointer",value:function(e,t,n,i){var r=R.getPointerId(e),o=this.getPointerIndex(e),a=this.pointers[o];return i=!1!==i&&(i||/(down|start)$/i.test(t.type)),a?a.pointer=e:(a=new Nt.PointerInfo(r,e,t,null,null),o=this.pointers.length,this.pointers.push(a)),R.setCoords(this.coords.cur,this.pointers.map((function(e){return e.pointer})),this._now()),R.setCoordDeltas(this.coords.delta,this.coords.prev,this.coords.cur),i&&(this.pointerIsDown=!0,a.downTime=this.coords.cur.timeStamp,a.downTarget=n,R.pointerExtend(this.downPointer,e),this.interacting()||(R.copyCoords(this.coords.start,this.coords.cur),R.copyCoords(this.coords.prev,this.coords.cur),this.downEvent=t,this.pointerWasMoved=!1)),this._updateLatestPointer(e,t,n),this._scopeFire("interactions:update-pointer",{pointer:e,event:t,eventTarget:n,down:i,pointerInfo:a,pointerIndex:o,interaction:this}),o}},{key:"removePointer",value:function(e,t){var n=this.getPointerIndex(e);if(-1!==n){var i=this.pointers[n];this._scopeFire("interactions:remove-pointer",{pointer:e,event:t,eventTarget:null,pointerIndex:n,pointerInfo:i,interaction:this}),this.pointers.splice(n,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(e,t,n){this._latestPointer.pointer=e,this._latestPointer.event=t,this._latestPointer.eventTarget=n}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(e,t,n,i){return new St.InteractEvent(this,e,this.prepared.name,t,this.element,n,i)}},{key:"_fireEvent",value:function(e){var t;null==(t=this.interactable)||t.fire(e),(!this.prevEvent||e.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=e)}},{key:"_doPhase",value:function(e){var t=e.event,n=e.phase,i=e.preEnd,r=e.type,o=this.rect;if(o&&"move"===n&&(T.addEdges(this.edges,o,this.coords.delta[this.interactable.options.deltaSource]),o.width=o.right-o.left,o.height=o.bottom-o.top),!1===this._scopeFire("interactions:before-action-".concat(n),e))return!1;var a=e.iEvent=this._createPreparedEvent(t,n,i,r);return this._scopeFire("interactions:action-".concat(n),e),"start"===n&&(this.prevEvent=a),this._fireEvent(a),this._scopeFire("interactions:after-action-".concat(n),e),!0}},{key:"_now",value:function(){return Date.now()}}],n&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();Bt.Interaction=Ut;var Ht=Ut;Bt.default=Ht;var Vt={};function Zt(e){e.pointerIsDown&&(qt(e.coords.cur,e.offset.total),e.offset.pending.x=0,e.offset.pending.y=0)}function Gt(e){Qt(e.interaction)}function Qt(e){if(!function(e){return!(!e.offset.pending.x&&!e.offset.pending.y)}(e))return!1;var t=e.offset.pending;return qt(e.coords.cur,t),qt(e.coords.delta,t),T.addEdges(e.edges,e.rect,t),t.x=0,t.y=0,!0}function Jt(e){var t=e.x,n=e.y;this.offset.pending.x+=t,this.offset.pending.y+=n,this.offset.total.x+=t,this.offset.total.y+=n}function qt(e,t){var n=e.page,i=e.client,r=t.x,o=t.y;n.x+=r,n.y+=o,i.x+=r,i.y+=o}Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.addTotal=Zt,Vt.applyPending=Qt,Vt.default=void 0,Bt._ProxyMethods.offsetBy="";var Xt={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(e){e.Interaction.prototype.offsetBy=Jt},listeners:{"interactions:new":function(e){e.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(e){return Zt(e.interaction)},"interactions:before-action-start":Gt,"interactions:before-action-move":Gt,"interactions:before-action-end":function(e){var t=e.interaction;if(Qt(t))return t.move({offset:!0}),t.end(),!1},"interactions:stop":function(e){var t=e.interaction;t.offset.total.x=0,t.offset.total.y=0,t.offset.pending.x=0,t.offset.pending.y=0}}},Kt=Xt;Vt.default=Kt;var $t={};function en(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty($t,"__esModule",{value:!0}),$t.default=$t.InertiaState=void 0;var tn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),en(this,"active",!1),en(this,"isModified",!1),en(this,"smoothEnd",!1),en(this,"allowResume",!1),en(this,"modification",void 0),en(this,"modifierCount",0),en(this,"modifierArg",void 0),en(this,"startCoords",void 0),en(this,"t0",0),en(this,"v0",0),en(this,"te",0),en(this,"targetOffset",void 0),en(this,"modifiedOffset",void 0),en(this,"currentOffset",void 0),en(this,"lambda_v0",0),en(this,"one_ve_v0",0),en(this,"timeout",void 0),en(this,"interaction",void 0),this.interaction=t}var t,n;return t=e,(n=[{key:"start",value:function(e){var t=this.interaction,n=nn(t);if(!n||!n.enabled)return!1;var i=t.coords.velocity.client,r=(0,P.default)(i.x,i.y),o=this.modification||(this.modification=new gt.default(t));if(o.copyFrom(t.modification),this.t0=t._now(),this.allowResume=n.allowResume,this.v0=r,this.currentOffset={x:0,y:0},this.startCoords=t.coords.cur.page,this.modifierArg=o.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-t.coords.cur.timeStamp<50&&r>n.minSpeed&&r>n.endSpeed)this.startInertia();else{if(o.result=o.setAll(this.modifierArg),!o.result.changed)return!1;this.startSmoothEnd()}return t.modification.result.rect=null,t.offsetBy(this.targetOffset),t._doPhase({interaction:t,event:e,phase:"inertiastart"}),t.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),t.modification.result.rect=null,this.active=!0,t.simulation=this,!0}},{key:"startInertia",value:function(){var e=this,t=this.interaction.coords.velocity.client,n=nn(this.interaction),i=n.resistance,r=-Math.log(n.endSpeed/this.v0)/i;this.targetOffset={x:(t.x-r)/i,y:(t.y-r)/i},this.te=r,this.lambda_v0=i/this.v0,this.one_ve_v0=1-n.endSpeed/this.v0;var o=this.modification,a=this.modifierArg;a.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},o.result=o.setAll(a),o.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+o.result.delta.x,y:this.targetOffset.y+o.result.delta.y}),this.onNextFrame((function(){return e.inertiaTick()}))}},{key:"startSmoothEnd",value:function(){var e=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame((function(){return e.smoothEndTick()}))}},{key:"onNextFrame",value:function(e){var t=this;this.timeout=Me.default.request((function(){t.active&&e()}))}},{key:"inertiaTick",value:function(){var e,t,n,i,r,o=this,a=this.interaction,s=nn(a).resistance,l=(a._now()-this.t0)/1e3;if(l<this.te){var c,u=1-(Math.exp(-s*l)-this.lambda_v0)/this.one_ve_v0;this.isModified?(e=this.targetOffset.x,t=this.targetOffset.y,n=this.modifiedOffset.x,i=this.modifiedOffset.y,c={x:on(r=u,0,e,n),y:on(r,0,t,i)}):c={x:this.targetOffset.x*u,y:this.targetOffset.y*u};var d={x:c.x-this.currentOffset.x,y:c.y-this.currentOffset.y};this.currentOffset.x+=d.x,this.currentOffset.y+=d.y,a.offsetBy(d),a.move(),this.onNextFrame((function(){return o.inertiaTick()}))}else a.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var e=this,t=this.interaction,n=t._now()-this.t0,i=nn(t).smoothEndDuration;if(n<i){var r={x:an(n,0,this.targetOffset.x,i),y:an(n,0,this.targetOffset.y,i)},o={x:r.x-this.currentOffset.x,y:r.y-this.currentOffset.y};this.currentOffset.x+=o.x,this.currentOffset.y+=o.y,t.offsetBy(o),t.move({skipModifiers:this.modifierCount}),this.onNextFrame((function(){return e.smoothEndTick()}))}else t.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(e){var t=e.pointer,n=e.event,i=e.eventTarget,r=this.interaction;r.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),r.updatePointer(t,n,i,!0),r._doPhase({interaction:r,event:n,phase:"resume"}),(0,R.copyCoords)(r.coords.prev,r.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,Me.default.cancel(this.timeout)}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function nn(e){var t=e.interactable,n=e.prepared;return t&&t.options&&n.name&&t.options[n.name].inertia}$t.InertiaState=tn;var rn={id:"inertia",before:["modifiers","actions"],install:function(e){var t=e.defaults;e.usePlugin(Vt.default),e.usePlugin(At.default),e.actions.phases.inertiastart=!0,e.actions.phases.resume=!0,t.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(e){var t=e.interaction;t.inertia=new tn(t)},"interactions:before-action-end":function(e){var t=e.interaction,n=e.event;return(!t._interacting||t.simulation||!t.inertia.start(n))&&null},"interactions:down":function(e){var t=e.interaction,n=e.eventTarget,i=t.inertia;if(i.active)for(var r=n;o.default.element(r);){if(r===t.element){i.resume(e);break}r=A.parentNode(r)}},"interactions:stop":function(e){var t=e.interaction.inertia;t.active&&t.stop()},"interactions:before-action-resume":function(e){var t=e.interaction.modification;t.stop(e),t.start(e,e.interaction.coords.cur.page),t.applyToInteraction(e)},"interactions:before-action-inertiastart":function(e){return e.interaction.modification.setAndApply(e)},"interactions:action-resume":At.addEventModifiers,"interactions:action-inertiastart":At.addEventModifiers,"interactions:after-action-inertiastart":function(e){return e.interaction.modification.restoreInteractionCoords(e)},"interactions:after-action-resume":function(e){return e.interaction.modification.restoreInteractionCoords(e)}}};function on(e,t,n,i){var r=1-e;return r*r*t+2*r*e*n+e*e*i}function an(e,t,n,i){return-n*(e/=i)*(e-2)+t}var sn=rn;$t.default=sn;var ln={};function cn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function un(e,t){for(var n=0;n<t.length;n++){var i=t[n];if(e.immediatePropagationStopped)break;i(e)}}Object.defineProperty(ln,"__esModule",{value:!0}),ln.Eventable=void 0;var dn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),cn(this,"options",void 0),cn(this,"types",{}),cn(this,"propagationStopped",!1),cn(this,"immediatePropagationStopped",!1),cn(this,"global",void 0),this.options=(0,L.default)({},t||{})}var t,n;return t=e,(n=[{key:"fire",value:function(e){var t,n=this.global;(t=this.types[e.type])&&un(e,t),!e.propagationStopped&&n&&(t=n[e.type])&&un(e,t)}},{key:"on",value:function(e,t){var n=(0,N.default)(e,t);for(e in n)this.types[e]=J.merge(this.types[e]||[],n[e])}},{key:"off",value:function(e,t){var n=(0,N.default)(e,t);for(e in n){var i=this.types[e];if(i&&i.length)for(var r=0;r<n[e].length;r++){var o=n[e][r],a=i.indexOf(o);-1!==a&&i.splice(a,1)}}}},{key:"getRect",value:function(e){return null}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();ln.Eventable=dn;var hn={};Object.defineProperty(hn,"__esModule",{value:!0}),hn.default=function(e,t){if(t.phaselessTypes[e])return!0;for(var n in t.map)if(0===e.indexOf(n)&&e.substr(n.length)in t.phases)return!0;return!1};var fn={};Object.defineProperty(fn,"__esModule",{value:!0}),fn.createInteractStatic=function(e){var t=function t(n,i){var r=e.interactables.get(n,i);return r||((r=e.interactables.new(n,i)).events.global=t.globalEvents),r};return t.getPointerAverage=R.pointerAverage,t.getTouchBBox=R.touchBBox,t.getTouchDistance=R.touchDistance,t.getTouchAngle=R.touchAngle,t.getElementRect=A.getElementRect,t.getElementClientRect=A.getElementClientRect,t.matchesSelector=A.matchesSelector,t.closest=A.closest,t.globalEvents={},t.version="1.10.20",t.scope=e,t.use=function(e,t){return this.scope.usePlugin(e,t),this},t.isSet=function(e,t){return!!this.scope.interactables.get(e,t&&t.context)},t.on=(0,Pe.warnOnce)((function(e,t,n){if(o.default.string(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/)),o.default.array(e)){for(var i=0;i<e.length;i++){var r=e[i];this.on(r,t,n)}return this}if(o.default.object(e)){for(var a in e)this.on(a,e[a],t);return this}return(0,hn.default)(e,this.scope.actions)?this.globalEvents[e]?this.globalEvents[e].push(t):this.globalEvents[e]=[t]:this.scope.events.add(this.scope.document,e,t,{options:n}),this}),"The interact.on() method is being deprecated"),t.off=(0,Pe.warnOnce)((function(e,t,n){if(o.default.string(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/)),o.default.array(e)){for(var i=0;i<e.length;i++){var r=e[i];this.off(r,t,n)}return this}if(o.default.object(e)){for(var a in e)this.off(a,e[a],t);return this}var s;return(0,hn.default)(e,this.scope.actions)?e in this.globalEvents&&-1!==(s=this.globalEvents[e].indexOf(t))&&this.globalEvents[e].splice(s,1):this.scope.events.remove(this.scope.document,e,t,n),this}),"The interact.off() method is being deprecated"),t.debug=function(){return this.scope},t.supportsTouch=function(){return b.default.supportsTouch},t.supportsPointerEvent=function(){return b.default.supportsPointerEvent},t.stop=function(){for(var e=0;e<this.scope.interactions.list.length;e++)this.scope.interactions.list[e].stop();return this},t.pointerMoveTolerance=function(e){return o.default.number(e)?(this.scope.interactions.pointerMoveTolerance=e,this):this.scope.interactions.pointerMoveTolerance},t.addDocument=function(e,t){this.scope.addDocument(e,t)},t.removeDocument=function(e){this.scope.removeDocument(e)},t};var pn={};function gn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(pn,"__esModule",{value:!0}),pn.Interactable=void 0;var mn=function(){function e(n,i,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),gn(this,"options",void 0),gn(this,"_actions",void 0),gn(this,"target",void 0),gn(this,"events",new ln.Eventable),gn(this,"_context",void 0),gn(this,"_win",void 0),gn(this,"_doc",void 0),gn(this,"_scopeEvents",void 0),this._actions=i.actions,this.target=n,this._context=i.context||r,this._win=(0,t.getWindow)((0,A.trySelector)(n)?this._context:n),this._doc=this._win.document,this._scopeEvents=o,this.set(i)}var n,i;return n=e,(i=[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(e,t){return o.default.func(t.onstart)&&this.on("".concat(e,"start"),t.onstart),o.default.func(t.onmove)&&this.on("".concat(e,"move"),t.onmove),o.default.func(t.onend)&&this.on("".concat(e,"end"),t.onend),o.default.func(t.oninertiastart)&&this.on("".concat(e,"inertiastart"),t.oninertiastart),this}},{key:"updatePerActionListeners",value:function(e,t,n){(o.default.array(t)||o.default.object(t))&&this.off(e,t),(o.default.array(n)||o.default.object(n))&&this.on(e,n)}},{key:"setPerAction",value:function(e,t){var n=this._defaults;for(var i in t){var r=i,a=this.options[e],s=t[r];"listeners"===r&&this.updatePerActionListeners(e,a.listeners,s),o.default.array(s)?a[r]=J.from(s):o.default.plainObject(s)?(a[r]=(0,L.default)(a[r]||{},(0,pt.default)(s)),o.default.object(n.perAction[r])&&"enabled"in n.perAction[r]&&(a[r].enabled=!1!==s.enabled)):o.default.bool(s)&&o.default.object(n.perAction[r])?a[r].enabled=s:a[r]=s}}},{key:"getRect",value:function(e){return e=e||(o.default.element(this.target)?this.target:null),o.default.string(this.target)&&(e=e||this._context.querySelector(this.target)),(0,A.getElementRect)(e)}},{key:"rectChecker",value:function(e){var t=this;return o.default.func(e)?(this.getRect=function(n){var i=(0,L.default)({},e.apply(t,n));return"width"in i||(i.width=i.right-i.left,i.height=i.bottom-i.top),i},this):null===e?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(e,t){if((0,A.trySelector)(t)||o.default.object(t)){for(var n in this.options[e]=t,this._actions.map)this.options[n][e]=t;return this}return this.options[e]}},{key:"origin",value:function(e){return this._backCompatOption("origin",e)}},{key:"deltaSource",value:function(e){return"page"===e||"client"===e?(this.options.deltaSource=e,this):this.options.deltaSource}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(e){return this._context===e.ownerDocument||(0,A.nodeContains)(this._context,e)}},{key:"testIgnoreAllow",value:function(e,t,n){return!this.testIgnore(e.ignoreFrom,t,n)&&this.testAllow(e.allowFrom,t,n)}},{key:"testAllow",value:function(e,t,n){return!e||!!o.default.element(n)&&(o.default.string(e)?(0,A.matchesUpTo)(n,e,t):!!o.default.element(e)&&(0,A.nodeContains)(e,n))}},{key:"testIgnore",value:function(e,t,n){return!(!e||!o.default.element(n))&&(o.default.string(e)?(0,A.matchesUpTo)(n,e,t):!!o.default.element(e)&&(0,A.nodeContains)(e,n))}},{key:"fire",value:function(e){return this.events.fire(e),this}},{key:"_onOff",value:function(e,t,n,i){o.default.object(t)&&!o.default.array(t)&&(i=n,n=null);var r="on"===e?"add":"remove",a=(0,N.default)(t,n);for(var s in a){"wheel"===s&&(s=b.default.wheelEvent);for(var l=0;l<a[s].length;l++){var c=a[s][l];(0,hn.default)(s,this._actions)?this.events[e](s,c):o.default.string(this.target)?this._scopeEvents["".concat(r,"Delegate")](this.target,this._context,s,c,i):this._scopeEvents[r](this.target,s,c,i)}}return this}},{key:"on",value:function(e,t,n){return this._onOff("on",e,t,n)}},{key:"off",value:function(e,t,n){return this._onOff("off",e,t,n)}},{key:"set",value:function(e){var t=this._defaults;for(var n in o.default.object(e)||(e={}),this.options=(0,pt.default)(t.base),this._actions.methodDict){var i=n,r=this._actions.methodDict[i];this.options[i]={},this.setPerAction(i,(0,L.default)((0,L.default)({},t.perAction),t.actions[i])),this[r](e[i])}for(var a in e)o.default.func(this[a])&&this[a](e[a]);return this}},{key:"unset",value:function(){if(o.default.string(this.target))for(var e in this._scopeEvents.delegatedEvents)for(var t=this._scopeEvents.delegatedEvents[e],n=t.length-1;n>=0;n--){var i=t[n],r=i.selector,a=i.context,s=i.listeners;r===this.target&&a===this._context&&t.splice(n,1);for(var l=s.length-1;l>=0;l--)this._scopeEvents.removeDelegate(this.target,this._context,e,s[l][0],s[l][1])}else this._scopeEvents.remove(this.target,"all")}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),e}();pn.Interactable=mn;var vn={};function yn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(vn,"__esModule",{value:!0}),vn.InteractableSet=void 0;var bn=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),yn(this,"list",[]),yn(this,"selectorMap",{}),yn(this,"scope",void 0),this.scope=t,t.addListeners({"interactable:unset":function(e){var t=e.interactable,i=t.target,r=t._context,a=o.default.string(i)?n.selectorMap[i]:i[n.scope.id],s=J.findIndex(a,(function(e){return e.context===r}));a[s]&&(a[s].context=null,a[s].interactable=null),a.splice(s,1)}})}var t,n;return t=e,(n=[{key:"new",value:function(e,t){t=(0,L.default)(t||{},{actions:this.scope.actions});var n=new this.scope.Interactable(e,t,this.scope.document,this.scope.events),i={context:n._context,interactable:n};return this.scope.addDocument(n._doc),this.list.push(n),o.default.string(e)?(this.selectorMap[e]||(this.selectorMap[e]=[]),this.selectorMap[e].push(i)):(n.target[this.scope.id]||Object.defineProperty(e,this.scope.id,{value:[],configurable:!0}),e[this.scope.id].push(i)),this.scope.fire("interactable:new",{target:e,options:t,interactable:n,win:this.scope._win}),n}},{key:"get",value:function(e,t){var n=t&&t.context||this.scope.document,i=o.default.string(e),r=i?this.selectorMap[e]:e[this.scope.id];if(!r)return null;var a=J.find(r,(function(t){return t.context===n&&(i||t.interactable.inContext(e))}));return a&&a.interactable}},{key:"forEachMatch",value:function(e,t){for(var n=0;n<this.list.length;n++){var i=this.list[n],r=void 0;if((o.default.string(i.target)?o.default.element(e)&&A.matchesSelector(e,i.target):e===i.target)&&i.inContext(e)&&(r=t(i)),void 0!==r)return r}}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();vn.InteractableSet=bn;var xn={};function wn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function An(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _n(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_n(e,t):void 0}}(e,t)||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.")}()}function _n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}Object.defineProperty(xn,"__esModule",{value:!0}),xn.default=void 0;var Cn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),wn(this,"currentTarget",void 0),wn(this,"originalEvent",void 0),wn(this,"type",void 0),this.originalEvent=t,(0,F.default)(this,t)}var t,n;return t=e,(n=[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Mn(e){if(!o.default.object(e))return{capture:!!e,passive:!1};var t=(0,L.default)({},e);return t.capture=!!e.capture,t.passive=!!e.passive,t}var kn={id:"events",install:function(e){var t,n=[],i={},r=[],a={add:s,remove:l,addDelegate:function(e,t,n,o,a){var l=Mn(a);if(!i[n]){i[n]=[];for(var d=0;d<r.length;d++){var h=r[d];s(h,n,c),s(h,n,u,!0)}}var f=i[n],p=J.find(f,(function(n){return n.selector===e&&n.context===t}));p||(p={selector:e,context:t,listeners:[]},f.push(p)),p.listeners.push([o,l])},removeDelegate:function(e,t,n,r,o){var a,s=Mn(o),d=i[n],h=!1;if(d)for(a=d.length-1;a>=0;a--){var f=d[a];if(f.selector===e&&f.context===t){for(var p=f.listeners,g=p.length-1;g>=0;g--){var m=An(p[g],2),v=m[0],y=m[1],b=y.capture,x=y.passive;if(v===r&&b===s.capture&&x===s.passive){p.splice(g,1),p.length||(d.splice(a,1),l(t,n,c),l(t,n,u,!0)),h=!0;break}}if(h)break}}},delegateListener:c,delegateUseCapture:u,delegatedEvents:i,documents:r,targets:n,supportsOptions:!1,supportsPassive:!1};function s(e,t,i,r){var o=Mn(r),s=J.find(n,(function(t){return t.eventTarget===e}));s||(s={eventTarget:e,events:{}},n.push(s)),s.events[t]||(s.events[t]=[]),e.addEventListener&&!J.contains(s.events[t],i)&&(e.addEventListener(t,i,a.supportsOptions?o:o.capture),s.events[t].push(i))}function l(e,t,i,r){var o=Mn(r),s=J.findIndex(n,(function(t){return t.eventTarget===e})),c=n[s];if(c&&c.events)if("all"!==t){var u=!1,d=c.events[t];if(d){if("all"===i){for(var h=d.length-1;h>=0;h--)l(e,t,d[h],o);return}for(var f=0;f<d.length;f++)if(d[f]===i){e.removeEventListener(t,i,a.supportsOptions?o:o.capture),d.splice(f,1),0===d.length&&(delete c.events[t],u=!0);break}}u&&!Object.keys(c.events).length&&n.splice(s,1)}else for(t in c.events)c.events.hasOwnProperty(t)&&l(e,t,"all")}function c(e,t){for(var n=Mn(t),r=new Cn(e),a=i[e.type],s=An(R.getEventTargets(e),1)[0],l=s;o.default.element(l);){for(var c=0;c<a.length;c++){var u=a[c],d=u.selector,h=u.context;if(A.matchesSelector(l,d)&&A.nodeContains(h,s)&&A.nodeContains(h,l)){var f=u.listeners;r.currentTarget=l;for(var p=0;p<f.length;p++){var g=An(f[p],2),m=g[0],v=g[1],y=v.capture,b=v.passive;y===n.capture&&b===n.passive&&m(r)}}}l=A.parentNode(l)}}function u(e){return c(e,!0)}return null==(t=e.document)||t.createElement("div").addEventListener("test",null,{get capture(){return a.supportsOptions=!0},get passive(){return a.supportsPassive=!0}}),e.events=a,a}};xn.default=kn;var Sn={};Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.default=void 0;var In={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(e){for(var t=0;t<In.methodOrder.length;t++){var n;n=In.methodOrder[t];var i=In[n](e);if(i)return i}return null},simulationResume:function(e){var t=e.pointerType,n=e.eventType,i=e.eventTarget,r=e.scope;if(!/down|start/i.test(n))return null;for(var o=0;o<r.interactions.list.length;o++){var a=r.interactions.list[o],s=i;if(a.simulation&&a.simulation.allowResume&&a.pointerType===t)for(;s;){if(s===a.element)return a;s=A.parentNode(s)}}return null},mouseOrPen:function(e){var t,n=e.pointerId,i=e.pointerType,r=e.eventType,o=e.scope;if("mouse"!==i&&"pen"!==i)return null;for(var a=0;a<o.interactions.list.length;a++){var s=o.interactions.list[a];if(s.pointerType===i){if(s.simulation&&!Ln(s,n))continue;if(s.interacting())return s;t||(t=s)}}if(t)return t;for(var l=0;l<o.interactions.list.length;l++){var c=o.interactions.list[l];if(!(c.pointerType!==i||/down/i.test(r)&&c.simulation))return c}return null},hasPointer:function(e){for(var t=e.pointerId,n=e.scope,i=0;i<n.interactions.list.length;i++){var r=n.interactions.list[i];if(Ln(r,t))return r}return null},idle:function(e){for(var t=e.pointerType,n=e.scope,i=0;i<n.interactions.list.length;i++){var r=n.interactions.list[i];if(1===r.pointers.length){var o=r.interactable;if(o&&(!o.options.gesture||!o.options.gesture.enabled))continue}else if(r.pointers.length>=2)continue;if(!r.interacting()&&t===r.pointerType)return r}return null}};function Ln(e,t){return e.pointers.some((function(e){return e.id===t}))}var Tn=In;Sn.default=Tn;var Dn={};function On(e){return On="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},On(e)}function jn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Nn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nn(e,t):void 0}}(e,t)||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.")}()}function Nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function En(e,t){return En=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},En(e,t)}function Pn(e){return Pn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Pn(e)}Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.default=void 0;var Fn=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function zn(e,t){return function(n){var i=t.interactions.list,r=R.getPointerType(n),o=jn(R.getEventTargets(n),2),a=o[0],s=o[1],l=[];if(/^touch/.test(n.type)){t.prevTouchTime=t.now();for(var c=0;c<n.changedTouches.length;c++){var u=n.changedTouches[c],d={pointer:u,pointerId:R.getPointerId(u),pointerType:r,eventType:n.type,eventTarget:a,curEventTarget:s,scope:t},h=Rn(d);l.push([d.pointer,d.eventTarget,d.curEventTarget,h])}}else{var f=!1;if(!b.default.supportsPointerEvent&&/mouse/.test(n.type)){for(var p=0;p<i.length&&!f;p++)f="mouse"!==i[p].pointerType&&i[p].pointerIsDown;f=f||t.now()-t.prevTouchTime<500||0===n.timeStamp}if(!f){var g={pointer:n,pointerId:R.getPointerId(n),pointerType:r,eventType:n.type,curEventTarget:s,eventTarget:a,scope:t},m=Rn(g);l.push([g.pointer,g.eventTarget,g.curEventTarget,m])}}for(var v=0;v<l.length;v++){var y=jn(l[v],4),x=y[0],w=y[1],A=y[2];y[3][e](x,n,w,A)}}}function Rn(e){var t=e.pointerType,n=e.scope,i={interaction:Sn.default.search(e),searchDetails:e};return n.fire("interactions:find",i),i.interaction||n.interactions.new({pointerType:t})}function Bn(e,t){var n=e.doc,i=e.scope,r=e.options,o=i.interactions.docEvents,a=i.events,s=a[t];for(var l in i.browser.isIOS&&!r.events&&(r.events={passive:!1}),a.delegatedEvents)s(n,l,a.delegateListener),s(n,l,a.delegateUseCapture,!0);for(var c=r&&r.events,u=0;u<o.length;u++){var d=o[u];s(n,d.type,d.listener,c)}}var Wn={id:"core/interactions",install:function(e){for(var t={},n=0;n<Fn.length;n++){var i=Fn[n];t[i]=zn(i,e)}var r,o=b.default.pEventTypes;function a(){for(var t=0;t<e.interactions.list.length;t++){var n=e.interactions.list[t];if(n.pointerIsDown&&"touch"===n.pointerType&&!n._interacting)for(var i=function(){var t=n.pointers[r];e.documents.some((function(e){var n=e.doc;return(0,A.nodeContains)(n,t.downTarget)}))||n.removePointer(t.pointer,t.event)},r=0;r<n.pointers.length;r++)i()}}(r=g.default.PointerEvent?[{type:o.down,listener:a},{type:o.down,listener:t.pointerDown},{type:o.move,listener:t.pointerMove},{type:o.up,listener:t.pointerUp},{type:o.cancel,listener:t.pointerUp}]:[{type:"mousedown",listener:t.pointerDown},{type:"mousemove",listener:t.pointerMove},{type:"mouseup",listener:t.pointerUp},{type:"touchstart",listener:a},{type:"touchstart",listener:t.pointerDown},{type:"touchmove",listener:t.pointerMove},{type:"touchend",listener:t.pointerUp},{type:"touchcancel",listener:t.pointerUp}]).push({type:"blur",listener:function(t){for(var n=0;n<e.interactions.list.length;n++)e.interactions.list[n].documentBlur(t)}}),e.prevTouchTime=0,e.Interaction=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&En(e,t)}(s,t);var n,i,r,o,a=(r=s,o=function(){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(e){return!1}}(),function(){var e,t=Pn(r);if(o){var n=Pn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===On(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return n=s,(i=[{key:"pointerMoveTolerance",get:function(){return e.interactions.pointerMoveTolerance},set:function(t){e.interactions.pointerMoveTolerance=t}},{key:"_now",value:function(){return e.now()}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),s}(Bt.default),e.interactions={list:[],new:function(t){t.scopeFire=function(t,n){return e.fire(t,n)};var n=new e.Interaction(t);return e.interactions.list.push(n),n},listeners:t,docEvents:r,pointerMoveTolerance:1},e.usePlugin(at.default)},listeners:{"scope:add-document":function(e){return Bn(e,"add")},"scope:remove-document":function(e){return Bn(e,"remove")},"interactable:unset":function(e,t){for(var n=e.interactable,i=t.interactions.list.length-1;i>=0;i--){var r=t.interactions.list[i];r.interactable===n&&(r.stop(),t.fire("interactions:destroy",{interaction:r}),r.destroy(),t.interactions.list.length>2&&t.interactions.list.splice(i,1))}}},onDocSignal:Bn,doOnInteractions:zn,methodNames:Fn},Yn=Wn;Dn.default=Yn;var Un={};function Hn(e){return Hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hn(e)}function Vn(){return Vn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Gn(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},Vn.apply(this,arguments)}function Zn(e,t){return Zn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Zn(e,t)}function Gn(e){return Gn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gn(e)}function Qn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function qn(e,t,n){return t&&Jn(e.prototype,t),n&&Jn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(Un,"__esModule",{value:!0}),Un.Scope=void 0,Un.initScope=$n;var Kn=function(){function e(){var t=this;Qn(this,e),Xn(this,"id","__interact_scope_".concat(Math.floor(100*Math.random()))),Xn(this,"isInitialized",!1),Xn(this,"listenerMaps",[]),Xn(this,"browser",b.default),Xn(this,"defaults",(0,pt.default)(kt.defaults)),Xn(this,"Eventable",ln.Eventable),Xn(this,"actions",{map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}}),Xn(this,"interactStatic",(0,fn.createInteractStatic)(this)),Xn(this,"InteractEvent",St.InteractEvent),Xn(this,"Interactable",void 0),Xn(this,"interactables",new vn.InteractableSet(this)),Xn(this,"_win",void 0),Xn(this,"document",void 0),Xn(this,"window",void 0),Xn(this,"documents",[]),Xn(this,"_plugins",{list:[],map:{}}),Xn(this,"onWindowUnload",(function(e){return t.removeDocument(e.target)}));var n=this;this.Interactable=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zn(e,t)}(o,e);var t,i,r=(t=o,i=function(){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(e){return!1}}(),function(){var e,n=Gn(t);if(i){var r=Gn(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return function(e,t){if(t&&("object"===Hn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function o(){return Qn(this,o),r.apply(this,arguments)}return qn(o,[{key:"_defaults",get:function(){return n.defaults}},{key:"set",value:function(e){return Vn(Gn(o.prototype),"set",this).call(this,e),n.fire("interactable:set",{options:e,interactable:this}),this}},{key:"unset",value:function(){Vn(Gn(o.prototype),"unset",this).call(this);var e=n.interactables.list.indexOf(this);e<0||(n.interactables.list.splice(e,1),n.fire("interactable:unset",{interactable:this}))}}]),o}(pn.Interactable)}return qn(e,[{key:"addListeners",value:function(e,t){this.listenerMaps.push({id:t,map:e})}},{key:"fire",value:function(e,t){for(var n=0;n<this.listenerMaps.length;n++){var i=this.listenerMaps[n].map[e];if(i&&!1===i(t,this,e))return!1}}},{key:"init",value:function(e){return this.isInitialized?this:$n(this,e)}},{key:"pluginIsInstalled",value:function(e){var t=e.id;return t?!!this._plugins.map[t]:-1!==this._plugins.list.indexOf(e)}},{key:"usePlugin",value:function(e,t){if(!this.isInitialized)return this;if(this.pluginIsInstalled(e))return this;if(e.id&&(this._plugins.map[e.id]=e),this._plugins.list.push(e),e.install&&e.install(this,t),e.listeners&&e.before){for(var n=0,i=this.listenerMaps.length,r=e.before.reduce((function(e,t){return e[t]=!0,e[ei(t)]=!0,e}),{});n<i;n++){var o=this.listenerMaps[n].id;if(o&&(r[o]||r[ei(o)]))break}this.listenerMaps.splice(n,0,{id:e.id,map:e.listeners})}else e.listeners&&this.listenerMaps.push({id:e.id,map:e.listeners});return this}},{key:"addDocument",value:function(e,n){if(-1!==this.getDocIndex(e))return!1;var i=t.getWindow(e);n=n?(0,L.default)({},n):{},this.documents.push({doc:e,options:n}),this.events.documents.push(e),e!==this.document&&this.events.add(i,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:e,window:i,scope:this,options:n})}},{key:"removeDocument",value:function(e){var n=this.getDocIndex(e),i=t.getWindow(e),r=this.documents[n].options;this.events.remove(i,"unload",this.onWindowUnload),this.documents.splice(n,1),this.events.documents.splice(n,1),this.fire("scope:remove-document",{doc:e,window:i,scope:this,options:r})}},{key:"getDocIndex",value:function(e){for(var t=0;t<this.documents.length;t++)if(this.documents[t].doc===e)return t;return-1}},{key:"getDocOptions",value:function(e){var t=this.getDocIndex(e);return-1===t?null:this.documents[t].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),e}();function $n(e,n){return e.isInitialized=!0,o.default.window(n)&&t.init(n),g.default.init(n),b.default.init(n),Me.default.init(n),e.window=n,e.document=n.document,e.usePlugin(Dn.default),e.usePlugin(xn.default),e}function ei(e){return e&&e.replace(/\/.*$/,"")}Un.Scope=Kn;var ti={};Object.defineProperty(ti,"__esModule",{value:!0}),ti.default=void 0;var ni=new Un.Scope,ii=ni.interactStatic;ti.default=ii;var ri="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0;ni.init(ri);var oi={};Object.defineProperty(oi,"__esModule",{value:!0}),oi.default=void 0,oi.default=function(){};var ai={};Object.defineProperty(ai,"__esModule",{value:!0}),ai.default=void 0,ai.default=function(){};var si={};function li(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ci(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ci(e,t):void 0}}(e,t)||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.")}()}function ci(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}Object.defineProperty(si,"__esModule",{value:!0}),si.default=void 0,si.default=function(e){var t=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter((function(t){var n=li(t,2),i=n[0],r=n[1];return i in e||r in e})),n=function(n,i){for(var r=e.range,o=e.limits,a=void 0===o?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:o,s=e.offset,l=void 0===s?{x:0,y:0}:s,c={range:r,grid:e,x:null,y:null},u=0;u<t.length;u++){var d=li(t[u],2),h=d[0],f=d[1],p=Math.round((n-l.x)/e[h]),g=Math.round((i-l.y)/e[f]);c[h]=Math.max(a.left,Math.min(a.right,p*e[h]+l.x)),c[f]=Math.max(a.top,Math.min(a.bottom,g*e[f]+l.y))}return c};return n.grid=e,n.coordFields=t,n};var ui={};Object.defineProperty(ui,"__esModule",{value:!0}),Object.defineProperty(ui,"edgeTarget",{enumerable:!0,get:function(){return oi.default}}),Object.defineProperty(ui,"elements",{enumerable:!0,get:function(){return ai.default}}),Object.defineProperty(ui,"grid",{enumerable:!0,get:function(){return si.default}});var di={};Object.defineProperty(di,"__esModule",{value:!0}),di.default=void 0;var hi={id:"snappers",install:function(e){var t=e.interactStatic;t.snappers=(0,L.default)(t.snappers||{},ui),t.createSnapGrid=t.snappers.grid}},fi=hi;di.default=fi;var pi={};function gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function mi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gi(Object(n),!0).forEach((function(t){vi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(pi,"__esModule",{value:!0}),pi.default=pi.aspectRatio=void 0;var yi={start:function(e){var t=e.state,n=e.rect,i=e.edges,r=e.pageCoords,o=t.options,a=o.ratio,s=o.enabled,l=t.options,c=l.equalDelta,u=l.modifiers;"preserve"===a&&(a=n.width/n.height),t.startCoords=(0,L.default)({},r),t.startRect=(0,L.default)({},n),t.ratio=a,t.equalDelta=c;var d=t.linkedEdges={top:i.top||i.left&&!i.bottom,left:i.left||i.top&&!i.right,bottom:i.bottom||i.right&&!i.top,right:i.right||i.bottom&&!i.left};if(t.xIsPrimaryAxis=!(!i.left&&!i.right),t.equalDelta){var h=(d.left?1:-1)*(d.top?1:-1);t.edgeSign={x:h,y:h}}else t.edgeSign={x:d.left?-1:1,y:d.top?-1:1};if(!1!==s&&(0,L.default)(i,d),null!=u&&u.length){var f=new gt.default(e.interaction);f.copyFrom(e.interaction.modification),f.prepareStates(u),t.subModification=f,f.startAll(mi({},e))}},set:function(e){var t=e.state,n=e.rect,i=e.coords,r=t.linkedEdges,o=(0,L.default)({},i),a=t.equalDelta?bi:xi;if((0,L.default)(e.edges,r),a(t,t.xIsPrimaryAxis,i,n),!t.subModification)return null;var s=(0,L.default)({},n);(0,T.addEdges)(r,s,{x:i.x-o.x,y:i.y-o.y});var l=t.subModification.setAll(mi(mi({},e),{},{rect:s,edges:r,pageCoords:i,prevCoords:i,prevRect:s})),c=l.delta;return l.changed&&(a(t,Math.abs(c.x)>Math.abs(c.y),l.coords,l.rect),(0,L.default)(i,l.coords)),l.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function bi(e,t,n){var i=e.startCoords,r=e.edgeSign;t?n.y=i.y+(n.x-i.x)*r.y:n.x=i.x+(n.y-i.y)*r.x}function xi(e,t,n,i){var r=e.startRect,o=e.startCoords,a=e.ratio,s=e.edgeSign;if(t){var l=i.width/a;n.y=o.y+(l-r.height)*s.y}else{var c=i.height*a;n.x=o.x+(c-r.width)*s.x}}pi.aspectRatio=yi;var wi=(0,At.makeModifier)(yi,"aspectRatio");pi.default=wi;var Ai={};Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.default=void 0;var _i=function(){};_i._defaults={};var Ci=_i;Ai.default=Ci;var Mi={};Object.defineProperty(Mi,"__esModule",{value:!0}),Object.defineProperty(Mi,"default",{enumerable:!0,get:function(){return Ai.default}});var ki={};function Si(e,t,n){return o.default.func(e)?T.resolveRectLike(e,t.interactable,t.element,[n.x,n.y,t]):T.resolveRectLike(e,t.interactable,t.element)}Object.defineProperty(ki,"__esModule",{value:!0}),ki.default=void 0,ki.getRestrictionRect=Si,ki.restrict=void 0;var Ii={start:function(e){var t=e.rect,n=e.startOffset,i=e.state,r=e.interaction,o=e.pageCoords,a=i.options,s=a.elementRect,l=(0,L.default)({left:0,top:0,right:0,bottom:0},a.offset||{});if(t&&s){var c=Si(a.restriction,r,o);if(c){var u=c.right-c.left-t.width,d=c.bottom-c.top-t.height;u<0&&(l.left+=u,l.right+=u),d<0&&(l.top+=d,l.bottom+=d)}l.left+=n.left-t.width*s.left,l.top+=n.top-t.height*s.top,l.right+=n.right-t.width*(1-s.right),l.bottom+=n.bottom-t.height*(1-s.bottom)}i.offset=l},set:function(e){var t=e.coords,n=e.interaction,i=e.state,r=i.options,o=i.offset,a=Si(r.restriction,n,t);if(a){var s=T.xywhToTlbr(a);t.x=Math.max(Math.min(s.right-o.right,t.x),s.left+o.left),t.y=Math.max(Math.min(s.bottom-o.bottom,t.y),s.top+o.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}};ki.restrict=Ii;var Li=(0,At.makeModifier)(Ii,"restrict");ki.default=Li;var Ti={};Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.restrictEdges=Ti.default=void 0;var Di={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Oi={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function ji(e,t){for(var n=["top","left","bottom","right"],i=0;i<n.length;i++){var r=n[i];r in e||(e[r]=t[r])}return e}var Ni={noInner:Di,noOuter:Oi,start:function(e){var t,n=e.interaction,i=e.startOffset,r=e.state,o=r.options;if(o){var a=(0,ki.getRestrictionRect)(o.offset,n,n.coords.start.page);t=T.rectToXY(a)}t=t||{x:0,y:0},r.offset={top:t.y+i.top,left:t.x+i.left,bottom:t.y-i.bottom,right:t.x-i.right}},set:function(e){var t=e.coords,n=e.edges,i=e.interaction,r=e.state,o=r.offset,a=r.options;if(n){var s=(0,L.default)({},t),l=(0,ki.getRestrictionRect)(a.inner,i,s)||{},c=(0,ki.getRestrictionRect)(a.outer,i,s)||{};ji(l,Di),ji(c,Oi),n.top?t.y=Math.min(Math.max(c.top+o.top,s.y),l.top+o.top):n.bottom&&(t.y=Math.max(Math.min(c.bottom+o.bottom,s.y),l.bottom+o.bottom)),n.left?t.x=Math.min(Math.max(c.left+o.left,s.x),l.left+o.left):n.right&&(t.x=Math.max(Math.min(c.right+o.right,s.x),l.right+o.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}};Ti.restrictEdges=Ni;var Ei=(0,At.makeModifier)(Ni,"restrictEdges");Ti.default=Ei;var Pi={};Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.restrictRect=Pi.default=void 0;var Fi=(0,L.default)({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(e){}},ki.restrict.defaults),zi={start:ki.restrict.start,set:ki.restrict.set,defaults:Fi};Pi.restrictRect=zi;var Ri=(0,At.makeModifier)(zi,"restrictRect");Pi.default=Ri;var Bi={};Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.restrictSize=Bi.default=void 0;var Wi={width:-1/0,height:-1/0},Yi={width:1/0,height:1/0},Ui={start:function(e){return Ti.restrictEdges.start(e)},set:function(e){var t=e.interaction,n=e.state,i=e.rect,r=e.edges,o=n.options;if(r){var a=T.tlbrToXywh((0,ki.getRestrictionRect)(o.min,t,e.coords))||Wi,s=T.tlbrToXywh((0,ki.getRestrictionRect)(o.max,t,e.coords))||Yi;n.options={endOnly:o.endOnly,inner:(0,L.default)({},Ti.restrictEdges.noInner),outer:(0,L.default)({},Ti.restrictEdges.noOuter)},r.top?(n.options.inner.top=i.bottom-a.height,n.options.outer.top=i.bottom-s.height):r.bottom&&(n.options.inner.bottom=i.top+a.height,n.options.outer.bottom=i.top+s.height),r.left?(n.options.inner.left=i.right-a.width,n.options.outer.left=i.right-s.width):r.right&&(n.options.inner.right=i.left+a.width,n.options.outer.right=i.left+s.width),Ti.restrictEdges.set(e),n.options=o}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}};Bi.restrictSize=Ui;var Hi=(0,At.makeModifier)(Ui,"restrictSize");Bi.default=Hi;var Vi={};Object.defineProperty(Vi,"__esModule",{value:!0}),Object.defineProperty(Vi,"default",{enumerable:!0,get:function(){return Ai.default}});var Zi={};Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.snap=Zi.default=void 0;var Gi={start:function(e){var t,n=e.interaction,i=e.interactable,r=e.element,o=e.rect,a=e.state,s=e.startOffset,l=a.options,c=l.offsetWithOrigin?function(e){var t=e.interaction.element;return(0,T.rectToXY)((0,T.resolveRectLike)(e.state.options.origin,null,null,[t]))||(0,j.default)(e.interactable,t,e.interaction.prepared.name)}(e):{x:0,y:0};if("startCoords"===l.offset)t={x:n.coords.start.page.x,y:n.coords.start.page.y};else{var u=(0,T.resolveRectLike)(l.offset,i,r,[n]);(t=(0,T.rectToXY)(u)||{x:0,y:0}).x+=c.x,t.y+=c.y}var d=l.relativePoints;a.offsets=o&&d&&d.length?d.map((function(e,n){return{index:n,relativePoint:e,x:s.left-o.width*e.x+t.x,y:s.top-o.height*e.y+t.y}})):[{index:0,relativePoint:null,x:t.x,y:t.y}]},set:function(e){var t=e.interaction,n=e.coords,i=e.state,r=i.options,a=i.offsets,s=(0,j.default)(t.interactable,t.element,t.prepared.name),l=(0,L.default)({},n),c=[];r.offsetWithOrigin||(l.x-=s.x,l.y-=s.y);for(var u=0;u<a.length;u++)for(var d=a[u],h=l.x-d.x,f=l.y-d.y,p=0,g=r.targets.length;p<g;p++){var m,v=r.targets[p];(m=o.default.func(v)?v(h,f,t._proxy,d,p):v)&&c.push({x:(o.default.number(m.x)?m.x:h)+d.x,y:(o.default.number(m.y)?m.y:f)+d.y,range:o.default.number(m.range)?m.range:r.range,source:v,index:p,offset:d})}for(var y={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},b=0;b<c.length;b++){var x=c[b],w=x.range,A=x.x-l.x,_=x.y-l.y,C=(0,P.default)(A,_),M=C<=w;w===1/0&&y.inRange&&y.range!==1/0&&(M=!1),y.target&&!(M?y.inRange&&w!==1/0?C/w<y.distance/y.range:w===1/0&&y.range!==1/0||C<y.distance:!y.inRange&&C<y.distance)||(y.target=x,y.distance=C,y.range=w,y.inRange=M,y.delta.x=A,y.delta.y=_)}return y.inRange&&(n.x=y.target.x,n.y=y.target.y),i.closest=y,y},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}};Zi.snap=Gi;var Qi=(0,At.makeModifier)(Gi,"snap");Zi.default=Qi;var Ji={};function qi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.snapSize=Ji.default=void 0;var Xi={start:function(e){var t=e.state,n=e.edges,i=t.options;if(!n)return null;e.state={options:{targets:null,relativePoints:[{x:n.left?0:1,y:n.top?0:1}],offset:i.offset||"self",origin:{x:0,y:0},range:i.range}},t.targetFields=t.targetFields||[["width","height"],["x","y"]],Zi.snap.start(e),t.offsets=e.state.offsets,e.state=t},set:function(e){var t,n=e.interaction,i=e.state,r=e.coords,a=i.options,s=i.offsets,l={x:r.x-s[0].x,y:r.y-s[0].y};i.options=(0,L.default)({},a),i.options.targets=[];for(var c=0;c<(a.targets||[]).length;c++){var u=(a.targets||[])[c],d=void 0;if(d=o.default.func(u)?u(l.x,l.y,n):u){for(var h=0;h<i.targetFields.length;h++){var f=(2,function(e){if(Array.isArray(e))return e}(t=i.targetFields[h])||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),2!==o.length);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(t)||function(e,t){if(e){if("string"==typeof e)return qi(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qi(e,2):void 0}}(t)||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.")}()),p=f[0],g=f[1];if(p in d||g in d){d.x=d[p],d.y=d[g];break}}i.options.targets.push(d)}}var m=Zi.snap.set(e);return i.options=a,m},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}};Ji.snapSize=Xi;var Ki=(0,At.makeModifier)(Xi,"snapSize");Ji.default=Ki;var $i={};Object.defineProperty($i,"__esModule",{value:!0}),$i.snapEdges=$i.default=void 0;var er={start:function(e){var t=e.edges;return t?(e.state.targetFields=e.state.targetFields||[[t.left?"left":"right",t.top?"top":"bottom"]],Ji.snapSize.start(e)):null},set:Ji.snapSize.set,defaults:(0,L.default)((0,pt.default)(Ji.snapSize.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})};$i.snapEdges=er;var tr=(0,At.makeModifier)(er,"snapEdges");$i.default=tr;var nr={};Object.defineProperty(nr,"__esModule",{value:!0}),Object.defineProperty(nr,"default",{enumerable:!0,get:function(){return Ai.default}});var ir={};Object.defineProperty(ir,"__esModule",{value:!0}),Object.defineProperty(ir,"default",{enumerable:!0,get:function(){return Ai.default}});var rr={};Object.defineProperty(rr,"__esModule",{value:!0}),rr.default=void 0;var or={aspectRatio:pi.default,restrictEdges:Ti.default,restrict:ki.default,restrictRect:Pi.default,restrictSize:Bi.default,snapEdges:$i.default,snap:Zi.default,snapSize:Ji.default,spring:nr.default,avoid:Mi.default,transform:ir.default,rubberband:Vi.default};rr.default=or;var ar={};Object.defineProperty(ar,"__esModule",{value:!0}),ar.default=void 0;var sr={id:"modifiers",install:function(e){var t=e.interactStatic;for(var n in e.usePlugin(At.default),e.usePlugin(di.default),t.modifiers=rr.default,rr.default){var i=rr.default[n],r=i._defaults,o=i._methods;r._methods=o,e.defaults.perAction[n]=r}}},lr=sr;ar.default=lr;var cr={};function ur(e){return ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ur(e)}function dr(e,t){return dr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dr(e,t)}function hr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fr(e){return fr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fr(e)}Object.defineProperty(cr,"__esModule",{value:!0}),cr.default=cr.PointerEvent=void 0;var pr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dr(e,t)}(a,e);var t,n,i,r,o=(i=a,r=function(){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(e){return!1}}(),function(){var e,t=fr(i);if(r){var n=fr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===ur(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return hr(e)}(this,e)});function a(e,t,n,i,r,s){var l;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),l=o.call(this,r),R.pointerExtend(hr(l),n),n!==t&&R.pointerExtend(hr(l),t),l.timeStamp=s,l.originalEvent=n,l.type=e,l.pointerId=R.getPointerId(t),l.pointerType=R.getPointerType(t),l.target=i,l.currentTarget=null,"tap"===e){var c=r.getPointerIndex(t);l.dt=l.timeStamp-r.pointers[c].downTime;var u=l.timeStamp-r.tapTime;l.double=!!r.prevTap&&"doubletap"!==r.prevTap.type&&r.prevTap.target===l.target&&u<500}else"doubletap"===e&&(l.dt=t.timeStamp-r.tapTime,l.double=!0);return l}return t=a,(n=[{key:"_subtractOrigin",value:function(e){var t=e.x,n=e.y;return this.pageX-=t,this.pageY-=n,this.clientX-=t,this.clientY-=n,this}},{key:"_addOrigin",value:function(e){var t=e.x,n=e.y;return this.pageX+=t,this.pageY+=n,this.clientX+=t,this.clientY+=n,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(Z.BaseEvent);cr.PointerEvent=cr.default=pr;var gr={};Object.defineProperty(gr,"__esModule",{value:!0}),gr.default=void 0;var mr={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(e){e.pointerEvents=mr,e.defaults.actions.pointerEvents=mr.defaults,(0,L.default)(e.actions.phaselessTypes,mr.types)},listeners:{"interactions:new":function(e){var t=e.interaction;t.prevTap=null,t.tapTime=0},"interactions:update-pointer":function(e){var t=e.down,n=e.pointerInfo;!t&&n.hold||(n.hold={duration:1/0,timeout:null})},"interactions:move":function(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget;e.duplicate||n.pointerIsDown&&!n.pointerWasMoved||(n.pointerIsDown&&br(e),vr({interaction:n,pointer:i,event:r,eventTarget:o,type:"move"},t))},"interactions:down":function(e,t){!function(e,t){for(var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget,a=e.pointerIndex,s=n.pointers[a].hold,l=A.getPath(o),c={interaction:n,pointer:i,event:r,eventTarget:o,type:"hold",targets:[],path:l,node:null},u=0;u<l.length;u++){var d=l[u];c.node=d,t.fire("pointerEvents:collect-targets",c)}if(c.targets.length){for(var h=1/0,f=0;f<c.targets.length;f++){var p=c.targets[f].eventable.options.holdDuration;p<h&&(h=p)}s.duration=h,s.timeout=setTimeout((function(){vr({interaction:n,eventTarget:o,pointer:i,event:r,type:"hold"},t)}),h)}}(e,t),vr(e,t)},"interactions:up":function(e,t){br(e),vr(e,t),function(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget;n.pointerWasMoved||vr({interaction:n,eventTarget:o,pointer:i,event:r,type:"tap"},t)}(e,t)},"interactions:cancel":function(e,t){br(e),vr(e,t)}},PointerEvent:cr.PointerEvent,fire:vr,collectEventTargets:yr,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function vr(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget,a=e.type,s=e.targets,l=void 0===s?yr(e,t):s,c=new cr.PointerEvent(a,i,r,o,n,t.now());t.fire("pointerEvents:new",{pointerEvent:c});for(var u={interaction:n,pointer:i,event:r,eventTarget:o,targets:l,type:a,pointerEvent:c},d=0;d<l.length;d++){var h=l[d];for(var f in h.props||{})c[f]=h.props[f];var p=(0,j.default)(h.eventable,h.node);if(c._subtractOrigin(p),c.eventable=h.eventable,c.currentTarget=h.node,h.eventable.fire(c),c._addOrigin(p),c.immediatePropagationStopped||c.propagationStopped&&d+1<l.length&&l[d+1].node!==c.currentTarget)break}if(t.fire("pointerEvents:fired",u),"tap"===a){var g=c.double?vr({interaction:n,pointer:i,event:r,eventTarget:o,type:"doubletap"},t):c;n.prevTap=g,n.tapTime=g.timeStamp}return c}function yr(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget,a=e.type,s=n.getPointerIndex(i),l=n.pointers[s];if("tap"===a&&(n.pointerWasMoved||!l||l.downTarget!==o))return[];for(var c=A.getPath(o),u={interaction:n,pointer:i,event:r,eventTarget:o,type:a,path:c,targets:[],node:null},d=0;d<c.length;d++){var h=c[d];u.node=h,t.fire("pointerEvents:collect-targets",u)}return"hold"===a&&(u.targets=u.targets.filter((function(e){var t,i;return e.eventable.options.holdDuration===(null==(t=n.pointers[s])||null==(i=t.hold)?void 0:i.duration)}))),u.targets}function br(e){var t=e.interaction,n=e.pointerIndex,i=t.pointers[n].hold;i&&i.timeout&&(clearTimeout(i.timeout),i.timeout=null)}var xr=mr;gr.default=xr;var wr={};function Ar(e){var t=e.interaction;t.holdIntervalHandle&&(clearInterval(t.holdIntervalHandle),t.holdIntervalHandle=null)}Object.defineProperty(wr,"__esModule",{value:!0}),wr.default=void 0;var _r={id:"pointer-events/holdRepeat",install:function(e){e.usePlugin(gr.default);var t=e.pointerEvents;t.defaults.holdRepeatInterval=0,t.types.holdrepeat=e.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce((function(e,t){return e["pointerEvents:".concat(t)]=Ar,e}),{"pointerEvents:new":function(e){var t=e.pointerEvent;"hold"===t.type&&(t.count=(t.count||0)+1)},"pointerEvents:fired":function(e,t){var n=e.interaction,i=e.pointerEvent,r=e.eventTarget,o=e.targets;if("hold"===i.type&&o.length){var a=o[0].eventable.options.holdRepeatInterval;a<=0||(n.holdIntervalHandle=setTimeout((function(){t.pointerEvents.fire({interaction:n,eventTarget:r,type:"hold",pointer:i,event:i},t)}),a))}}})},Cr=_r;wr.default=Cr;var Mr={};function kr(e){return(0,L.default)(this.events.options,e),this}Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.default=void 0;var Sr={id:"pointer-events/interactableTargets",install:function(e){var t=e.Interactable;t.prototype.pointerEvents=kr;var n=t.prototype._backCompatOption;t.prototype._backCompatOption=function(e,t){var i=n.call(this,e,t);return i===this&&(this.events.options[e]=t),i}},listeners:{"pointerEvents:collect-targets":function(e,t){var n=e.targets,i=e.node,r=e.type,o=e.eventTarget;t.interactables.forEachMatch(i,(function(e){var t=e.events,a=t.options;t.types[r]&&t.types[r].length&&e.testIgnoreAllow(a,i,o)&&n.push({node:i,eventable:t,props:{interactable:e}})}))},"interactable:new":function(e){var t=e.interactable;t.events.getRect=function(e){return t.getRect(e)}},"interactable:set":function(e,t){var n=e.interactable,i=e.options;(0,L.default)(n.events.options,t.pointerEvents.defaults),(0,L.default)(n.events.options,i.pointerEvents||{})}}},Ir=Sr;Mr.default=Ir;var Lr={};Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.default=void 0;var Tr={id:"pointer-events",install:function(e){e.usePlugin(gr),e.usePlugin(wr.default),e.usePlugin(Mr.default)}},Dr=Tr;Lr.default=Dr;var Or={};function jr(e){var t=e.Interactable;e.actions.phases.reflow=!0,t.prototype.reflow=function(t){return function(e,t,n){for(var i=o.default.string(e.target)?J.from(e._context.querySelectorAll(e.target)):[e.target],r=n.window.Promise,a=r?[]:null,s=function(){var o=i[l],s=e.getRect(o);if(!s)return"break";var c=J.find(n.interactions.list,(function(n){return n.interacting()&&n.interactable===e&&n.element===o&&n.prepared.name===t.name})),u=void 0;if(c)c.move(),a&&(u=c._reflowPromise||new r((function(e){c._reflowResolve=e})));else{var d=(0,T.tlbrToXywh)(s),h={page:{x:d.x,y:d.y},client:{x:d.x,y:d.y},timeStamp:n.now()},f=R.coordsToEvent(h);u=function(e,t,n,i,r){var o=e.interactions.new({pointerType:"reflow"}),a={interaction:o,event:r,pointer:r,eventTarget:n,phase:"reflow"};o.interactable=t,o.element=n,o.prevEvent=r,o.updatePointer(r,r,n,!0),R.setZeroCoords(o.coords.delta),(0,Pe.copyAction)(o.prepared,i),o._doPhase(a);var s=e.window.Promise,l=s?new s((function(e){o._reflowResolve=e})):void 0;return o._reflowPromise=l,o.start(i,t,n),o._interacting?(o.move(a),o.end(r)):(o.stop(),o._reflowResolve()),o.removePointer(r,r),l}(n,e,o,t,f)}a&&a.push(u)},l=0;l<i.length&&"break"!==s();l++);return a&&r.all(a).then((function(){return e}))}(this,t,e)}}Object.defineProperty(Or,"__esModule",{value:!0}),Or.default=void 0,Or.install=jr;var Nr={id:"reflow",install:jr,listeners:{"interactions:stop":function(e,t){var n=e.interaction;"reflow"===n.pointerType&&(n._reflowResolve&&n._reflowResolve(),J.remove(t.interactions.list,n))}}},Er=Nr;Or.default=Er;var Pr={};Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.default=void 0,ti.default.use(at.default),ti.default.use(Vt.default),ti.default.use(Lr.default),ti.default.use($t.default),ti.default.use(ar.default),ti.default.use(rt.default),ti.default.use(_e.default),ti.default.use(Te.default),ti.default.use(Or.default);var Fr=ti.default;Pr.default=Fr,ti.default.default=ti.default;var zr={exports:{}};function Rr(e){return Rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rr(e)}Object.defineProperty(zr.exports,"__esModule",{value:!0}),zr.exports.default=void 0;var Br=Pr.default;if(zr.exports.default=Br,"object"===Rr(zr)&&zr)try{zr.exports=Pr.default}catch(e){}return Pr.default.default=Pr.default,zr.exports}()},288:(e,t)=>{"use strict";var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},i={tName:"t",i18nName:"i18n",handleName:"localize",selectorAttr:"data-i18n",targetAttr:"i18n-target",optionsAttr:"i18n-options",useOptionsAttr:!1,parseDefaultValueFromContent:!0};t.default={init:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function o(t,i,o){if(0!==i.length){var a="text";if(0===i.indexOf("[")){var s=i.split("]");i=s[1],a=s[0].substr(1,s[0].length-1)}if(i.indexOf(";")===i.length-1&&(i=i.substr(0,i.length-2)),"html"===a)t.html(e.t(i,u(o,t.html())));else if("text"===a)t.text(e.t(i,u(o,t.text())));else if("prepend"===a)t.prepend(e.t(i,u(o,t.html())));else if("append"===a)t.append(e.t(i,u(o,t.html())));else if(0===a.indexOf("data-")){var l=a.substr(5),c=e.t(i,u(o,t.data(l)));t.data(l,c),t.attr(a,c)}else t.attr(a,e.t(i,u(o,t.attr(a))))}function u(e,t){return r.parseDefaultValueFromContent?n({},e,{defaultValue:t}):e}}function a(e,i){var a=e.attr(r.selectorAttr);if(a||void 0===a||!1===a||(a=e.text()||e.val()),a){var s=e,l=e.data(r.targetAttr);if(l&&(s=e.find(l)||e),i||!0!==r.useOptionsAttr||(i=e.data(r.optionsAttr)),i=i||{},a.indexOf(";")>=0){var c=a.split(";");t.each(c,(function(e,t){""!==t&&o(s,t.trim(),i)}))}else o(s,a,i);if(!0===r.useOptionsAttr){var u={};delete(u=n({clone:u},i)).lng,e.data(r.optionsAttr,u)}}}r=n({},i,r),t[r.tName]=e.t.bind(e),t[r.i18nName]=e,t.fn[r.handleName]=function(e){return this.each((function(){a(t(this),e),t(this).find("["+r.selectorAttr+"]").each((function(){a(t(this),e)}))}))}}}},898:(e,t,n)=>{e.exports=n(288).default},291:function(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(i,r){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,l=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},c=o.push,u=o.indexOf,d={},h=d.toString,f=d.hasOwnProperty,p=f.toString,g=p.call(Object),m={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},b=i.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var i,r,o=(n=n||b).createElement("script");if(o.text=e,t)for(i in x)(r=t[i]||t.getAttribute&&t.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function A(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[h.call(e)]||"object":typeof e}var _="3.7.1",C=/HTML$/i,M=function(e,t){return new M.fn.init(e,t)};function k(e){var t=!!e&&"length"in e&&e.length,n=A(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function S(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}M.fn=M.prototype={jquery:_,constructor:M,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=M.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return M.each(this,e)},map:function(e){return this.pushStack(M.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(M.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(M.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:o.sort,splice:o.splice},M.extend=M.fn.extend=function(){var e,t,n,i,r,o,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)i=e[t],"__proto__"!==t&&a!==i&&(c&&i&&(M.isPlainObject(i)||(r=Array.isArray(i)))?(n=a[t],o=r&&!Array.isArray(n)?[]:r||M.isPlainObject(n)?n:{},r=!1,a[t]=M.extend(c,o,i)):void 0!==i&&(a[t]=i));return a},M.extend({expando:"jQuery"+(_+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==h.call(e)||(t=a(e))&&("function"!=typeof(n=f.call(t,"constructor")&&t.constructor)||p.call(n)!==g))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(k(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},text:function(e){var t,n="",i=0,r=e.nodeType;if(!r)for(;t=e[i++];)n+=M.text(t);return 1===r||11===r?e.textContent:9===r?e.documentElement.textContent:3===r||4===r?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(k(Object(e))?M.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!C.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,o=e.length,a=!n;r<o;r++)!t(e[r],r)!==a&&i.push(e[r]);return i},map:function(e,t,n){var i,r,o=0,a=[];if(k(e))for(i=e.length;o<i;o++)null!=(r=t(e[o],o,n))&&a.push(r);else for(o in e)null!=(r=t(e[o],o,n))&&a.push(r);return l(a)},guid:1,support:m}),"function"==typeof Symbol&&(M.fn[Symbol.iterator]=o[Symbol.iterator]),M.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var I=o.pop,L=o.sort,T=o.splice,D="[\\x20\\t\\r\\n\\f]",O=new RegExp("^"+D+"+|((?:^|[^\\\\])(?:\\\\.)*)"+D+"+$","g");M.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var j=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function N(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}M.escapeSelector=function(e){return(e+"").replace(j,N)};var E=b,P=c;!function(){var e,t,n,r,a,l,c,d,h,p,g=P,v=M.expando,y=0,b=0,x=ee(),w=ee(),A=ee(),_=ee(),C=function(e,t){return e===t&&(a=!0),0},k="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="(?:\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",N="\\["+D+"*("+j+")(?:"+D+"*([*^$|!~]?=)"+D+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+D+"*\\]",F=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",z=new RegExp(D+"+","g"),R=new RegExp("^"+D+"*,"+D+"*"),B=new RegExp("^"+D+"*([>+~]|"+D+")"+D+"*"),W=new RegExp(D+"|>"),Y=new RegExp(F),U=new RegExp("^"+j+"$"),H={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),bool:new RegExp("^(?:"+k+")$","i"),needsContext:new RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,G=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,J=new RegExp("\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\([^\\r\\n\\f])","g"),q=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},X=function(){le()},K=he((function(e){return!0===e.disabled&&S(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(o=s.call(E.childNodes),E.childNodes),o[E.childNodes.length].nodeType}catch(e){g={apply:function(e,t){P.apply(e,s.call(t))},call:function(e){P.apply(e,s.call(arguments,1))}}}function $(e,t,n,i){var r,o,a,s,c,u,f,p=t&&t.ownerDocument,y=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return n;if(!i&&(le(t),t=t||l,d)){if(11!==y&&(c=G.exec(e)))if(r=c[1]){if(9===y){if(!(a=t.getElementById(r)))return n;if(a.id===r)return g.call(n,a),n}else if(p&&(a=p.getElementById(r))&&$.contains(t,a)&&a.id===r)return g.call(n,a),n}else{if(c[2])return g.apply(n,t.getElementsByTagName(e)),n;if((r=c[3])&&t.getElementsByClassName)return g.apply(n,t.getElementsByClassName(r)),n}if(!(_[e+" "]||h&&h.test(e))){if(f=e,p=t,1===y&&(W.test(e)||B.test(e))){for((p=Q.test(e)&&se(t.parentNode)||t)==t&&m.scope||((s=t.getAttribute("id"))?s=M.escapeSelector(s):t.setAttribute("id",s=v)),o=(u=ue(e)).length;o--;)u[o]=(s?"#"+s:":scope")+" "+de(u[o]);f=u.join(",")}try{return g.apply(n,p.querySelectorAll(f)),n}catch(t){_(e,!0)}finally{s===v&&t.removeAttribute("id")}}}return ye(e.replace(O,"$1"),t,n,i)}function ee(){var e=[];return function n(i,r){return e.push(i+" ")>t.cacheLength&&delete n[e.shift()],n[i+" "]=r}}function te(e){return e[v]=!0,e}function ne(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ie(e){return function(t){return S(t,"input")&&t.type===e}}function re(e){return function(t){return(S(t,"input")||S(t,"button"))&&t.type===e}}function oe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&K(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ae(e){return te((function(t){return t=+t,te((function(n,i){for(var r,o=e([],n.length,t),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))}))}))}function se(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var n,i=e?e.ownerDocument||e:E;return i!=l&&9===i.nodeType&&i.documentElement?(c=(l=i).documentElement,d=!M.isXMLDoc(l),p=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&E!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",X),m.getById=ne((function(e){return c.appendChild(e).id=M.expando,!l.getElementsByName||!l.getElementsByName(M.expando).length})),m.disconnectedMatch=ne((function(e){return p.call(e,"*")})),m.scope=ne((function(){return l.querySelectorAll(":scope")})),m.cssHas=ne((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),m.getById?(t.filter.ID=function(e){var t=e.replace(J,q);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(J,q);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&d)return t.getElementsByClassName(e)},h=[],ne((function(e){var t;c.appendChild(e).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||h.push("\\["+D+"*(?:value|"+k+")"),e.querySelectorAll("[id~="+v+"-]").length||h.push("~="),e.querySelectorAll("a#"+v+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll(":checked").length||h.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+D+"*name"+D+"*="+D+"*(?:''|\"\")")})),m.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),C=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!m.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument==E&&$.contains(E,e)?-1:t===l||t.ownerDocument==E&&$.contains(E,t)?1:r?u.call(r,e)-u.call(r,t):0:4&n?-1:1)},l):l}for(e in $.matches=function(e,t){return $(e,null,null,t)},$.matchesSelector=function(e,t){if(le(e),d&&!_[t+" "]&&(!h||!h.test(t)))try{var n=p.call(e,t);if(n||m.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){_(t,!0)}return $(t,l,null,[e]).length>0},$.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),M.contains(e,t)},$.attr=function(e,n){(e.ownerDocument||e)!=l&&le(e);var i=t.attrHandle[n.toLowerCase()],r=i&&f.call(t.attrHandle,n.toLowerCase())?i(e,n,!d):void 0;return void 0!==r?r:e.getAttribute(n)},$.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},M.uniqueSort=function(e){var t,n=[],i=0,o=0;if(a=!m.sortStable,r=!m.sortStable&&s.call(e,0),L.call(e,C),a){for(;t=e[o++];)t===e[o]&&(i=n.push(o));for(;i--;)T.call(e,n[i],1)}return r=null,e},M.fn.uniqueSort=function(){return this.pushStack(M.uniqueSort(s.apply(this)))},t=M.expr={cacheLength:50,createPseudo:te,match:H,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(J,q),e[3]=(e[3]||e[4]||e[5]||"").replace(J,q),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||$.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&$.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return H.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Y.test(n)&&(t=ue(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(J,q).toLowerCase();return"*"===e?function(){return!0}:function(e){return S(e,t)}},CLASS:function(e){var t=x[e+" "];return t||(t=new RegExp("(^|"+D+")"+e+"("+D+"|$)"))&&x(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var r=$.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(z," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,h,f,p=o!==a?"nextSibling":"previousSibling",g=t.parentNode,m=s&&t.nodeName.toLowerCase(),b=!l&&!s,x=!1;if(g){if(o){for(;p;){for(d=t;d=d[p];)if(s?S(d,m):1===d.nodeType)return!1;f=p="only"===e&&!f&&"nextSibling"}return!0}if(f=[a?g.firstChild:g.lastChild],a&&b){for(x=(h=(c=(u=g[v]||(g[v]={}))[e]||[])[0]===y&&c[1])&&c[2],d=h&&g.childNodes[h];d=++h&&d&&d[p]||(x=h=0)||f.pop();)if(1===d.nodeType&&++x&&d===t){u[e]=[y,h,x];break}}else if(b&&(x=h=(c=(u=t[v]||(t[v]={}))[e]||[])[0]===y&&c[1]),!1===x)for(;(d=++h&&d&&d[p]||(x=h=0)||f.pop())&&(!(s?S(d,m):1===d.nodeType)||!++x||(b&&((u=d[v]||(d[v]={}))[e]=[y,x]),d!==t)););return(x-=r)===i||x%i==0&&x/i>=0}}},PSEUDO:function(e,n){var i,r=t.pseudos[e]||t.setFilters[e.toLowerCase()]||$.error("unsupported pseudo: "+e);return r[v]?r(n):r.length>1?(i=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var i,o=r(e,n),a=o.length;a--;)e[i=u.call(e,o[a])]=!(t[i]=o[a])})):function(e){return r(e,0,i)}):r}},pseudos:{not:te((function(e){var t=[],n=[],i=ve(e.replace(O,"$1"));return i[v]?te((function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}})),has:te((function(e){return function(t){return $(e,t).length>0}})),contains:te((function(e){return e=e.replace(J,q),function(t){return(t.textContent||M.text(t)).indexOf(e)>-1}})),lang:te((function(e){return U.test(e||"")||$.error("unsupported lang: "+e),e=e.replace(J,q).toLowerCase(),function(t){var n;do{if(n=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=i.location&&i.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:oe(!1),disabled:oe(!0),checked:function(e){return S(e,"input")&&!!e.checked||S(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return V.test(e.nodeName)},button:function(e){return S(e,"input")&&"button"===e.type||S(e,"button")},text:function(e){var t;return S(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ae((function(){return[0]})),last:ae((function(e,t){return[t-1]})),eq:ae((function(e,t,n){return[n<0?n+t:n]})),even:ae((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ae((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ae((function(e,t,n){var i;for(i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e})),gt:ae((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=ie(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=re(e);function ce(){}function ue(e,n){var i,r,o,a,s,l,c,u=w[e+" "];if(u)return n?0:u.slice(0);for(s=e,l=[],c=t.preFilter;s;){for(a in i&&!(r=R.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),i=!1,(r=B.exec(s))&&(i=r.shift(),o.push({value:i,type:r[0].replace(O," ")}),s=s.slice(i.length)),t.filter)!(r=H[a].exec(s))||c[a]&&!(r=c[a](r))||(i=r.shift(),o.push({value:i,type:a,matches:r}),s=s.slice(i.length));if(!i)break}return n?s.length:s?$.error(e):w(e,l).slice(0)}function de(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function he(e,t,n){var i=t.dir,r=t.next,o=r||i,a=n&&"parentNode"===o,s=b++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||a)return e(t,n,r);return!1}:function(t,n,l){var c,u,d=[y,s];if(l){for(;t=t[i];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||a)if(u=t[v]||(t[v]={}),r&&S(t,r))t=t[i]||t;else{if((c=u[o])&&c[0]===y&&c[1]===s)return d[2]=c[2];if(u[o]=d,d[2]=e(t,n,l))return!0}return!1}}function fe(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function pe(e,t,n,i,r){for(var o,a=[],s=0,l=e.length,c=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,i,r)||(a.push(o),c&&t.push(s)));return a}function ge(e,t,n,i,r,o){return i&&!i[v]&&(i=ge(i)),r&&!r[v]&&(r=ge(r,o)),te((function(o,a,s,l){var c,d,h,f,p=[],m=[],v=a.length,y=o||function(e,t,n){for(var i=0,r=t.length;i<r;i++)$(e,t[i],n);return n}(t||"*",s.nodeType?[s]:s,[]),b=!e||!o&&t?y:pe(y,p,e,s,l);if(n?n(b,f=r||(o?e:v||i)?[]:a,s,l):f=b,i)for(c=pe(f,m),i(c,[],s,l),d=c.length;d--;)(h=c[d])&&(f[m[d]]=!(b[m[d]]=h));if(o){if(r||e){if(r){for(c=[],d=f.length;d--;)(h=f[d])&&c.push(b[d]=h);r(null,f=[],c,l)}for(d=f.length;d--;)(h=f[d])&&(c=r?u.call(o,h):p[d])>-1&&(o[c]=!(a[c]=h))}}else f=pe(f===a?f.splice(v,f.length):f),r?r(null,a,f,l):g.apply(a,f)}))}function me(e){for(var i,r,o,a=e.length,s=t.relative[e[0].type],l=s||t.relative[" "],c=s?1:0,d=he((function(e){return e===i}),l,!0),h=he((function(e){return u.call(i,e)>-1}),l,!0),f=[function(e,t,r){var o=!s&&(r||t!=n)||((i=t).nodeType?d(e,t,r):h(e,t,r));return i=null,o}];c<a;c++)if(r=t.relative[e[c].type])f=[he(fe(f),r)];else{if((r=t.filter[e[c].type].apply(null,e[c].matches))[v]){for(o=++c;o<a&&!t.relative[e[o].type];o++);return ge(c>1&&fe(f),c>1&&de(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(O,"$1"),r,c<o&&me(e.slice(c,o)),o<a&&me(e=e.slice(o)),o<a&&de(e))}f.push(r)}return fe(f)}function ve(e,i){var r,o=[],a=[],s=A[e+" "];if(!s){for(i||(i=ue(e)),r=i.length;r--;)(s=me(i[r]))[v]?o.push(s):a.push(s);s=A(e,function(e,i){var r=i.length>0,o=e.length>0,a=function(a,s,c,u,h){var f,p,m,v=0,b="0",x=a&&[],w=[],A=n,_=a||o&&t.find.TAG("*",h),C=y+=null==A?1:Math.random()||.1,k=_.length;for(h&&(n=s==l||s||h);b!==k&&null!=(f=_[b]);b++){if(o&&f){for(p=0,s||f.ownerDocument==l||(le(f),c=!d);m=e[p++];)if(m(f,s||l,c)){g.call(u,f);break}h&&(y=C)}r&&((f=!m&&f)&&v--,a&&x.push(f))}if(v+=b,r&&b!==v){for(p=0;m=i[p++];)m(x,w,s,c);if(a){if(v>0)for(;b--;)x[b]||w[b]||(w[b]=I.call(u));w=pe(w)}g.apply(u,w),h&&!a&&w.length>0&&v+i.length>1&&M.uniqueSort(u)}return h&&(y=C,n=A),x};return r?te(a):a}(a,o)),s.selector=e}return s}function ye(e,n,i,r){var o,a,s,l,c,u="function"==typeof e&&e,h=!r&&ue(e=u.selector||e);if(i=i||[],1===h.length){if((a=h[0]=h[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===n.nodeType&&d&&t.relative[a[1].type]){if(!(n=(t.find.ID(s.matches[0].replace(J,q),n)||[])[0]))return i;u&&(n=n.parentNode),e=e.slice(a.shift().value.length)}for(o=H.needsContext.test(e)?0:a.length;o--&&(s=a[o],!t.relative[l=s.type]);)if((c=t.find[l])&&(r=c(s.matches[0].replace(J,q),Q.test(a[0].type)&&se(n.parentNode)||n))){if(a.splice(o,1),!(e=r.length&&de(a)))return g.apply(i,r),i;break}}return(u||ve(e,h))(r,n,!d,i,!n||Q.test(e)&&se(n.parentNode)||n),i}ce.prototype=t.filters=t.pseudos,t.setFilters=new ce,m.sortStable=v.split("").sort(C).join("")===v,le(),m.sortDetached=ne((function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))})),M.find=$,M.expr[":"]=M.expr.pseudos,M.unique=M.uniqueSort,$.compile=ve,$.select=ye,$.setDocument=le,$.tokenize=ue,$.escape=M.escapeSelector,$.getText=M.text,$.isXML=M.isXMLDoc,$.selectors=M.expr,$.support=M.support,$.uniqueSort=M.uniqueSort}();var F=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&M(e).is(n))break;i.push(e)}return i},z=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},R=M.expr.match.needsContext,B=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function W(e,t,n){return v(t)?M.grep(e,(function(e,i){return!!t.call(e,i,e)!==n})):t.nodeType?M.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?M.grep(e,(function(e){return u.call(t,e)>-1!==n})):M.filter(t,e,n)}M.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?M.find.matchesSelector(i,e)?[i]:[]:M.find.matches(e,M.grep(t,(function(e){return 1===e.nodeType})))},M.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(M(e).filter((function(){for(t=0;t<i;t++)if(M.contains(r[t],this))return!0})));for(n=this.pushStack([]),t=0;t<i;t++)M.find(e,r[t],n);return i>1?M.uniqueSort(n):n},filter:function(e){return this.pushStack(W(this,e||[],!1))},not:function(e){return this.pushStack(W(this,e||[],!0))},is:function(e){return!!W(this,"string"==typeof e&&R.test(e)?M(e):e||[],!1).length}});var Y,U=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(M.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||Y,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:U.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof M?t[0]:t,M.merge(this,M.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),B.test(i[1])&&M.isPlainObject(t))for(i in t)v(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=b.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(M):M.makeArray(e,this)}).prototype=M.fn,Y=M(b);var H=/^(?:parents|prev(?:Until|All))/,V={children:!0,contents:!0,next:!0,prev:!0};function Z(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}M.fn.extend({has:function(e){var t=M(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(M.contains(this,t[e]))return!0}))},closest:function(e,t){var n,i=0,r=this.length,o=[],a="string"!=typeof e&&M(e);if(!R.test(e))for(;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&M.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?M.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?u.call(M(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(M.uniqueSort(M.merge(this.get(),M(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),M.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return F(e,"parentNode")},parentsUntil:function(e,t,n){return F(e,"parentNode",n)},next:function(e){return Z(e,"nextSibling")},prev:function(e){return Z(e,"previousSibling")},nextAll:function(e){return F(e,"nextSibling")},prevAll:function(e){return F(e,"previousSibling")},nextUntil:function(e,t,n){return F(e,"nextSibling",n)},prevUntil:function(e,t,n){return F(e,"previousSibling",n)},siblings:function(e){return z((e.parentNode||{}).firstChild,e)},children:function(e){return z(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(S(e,"template")&&(e=e.content||e),M.merge([],e.childNodes))}},(function(e,t){M.fn[e]=function(n,i){var r=M.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=M.filter(i,r)),this.length>1&&(V[e]||M.uniqueSort(r),H.test(e)&&r.reverse()),this.pushStack(r)}}));var G=/[^\x20\t\r\n\f]+/g;function Q(e){return e}function J(e){throw e}function q(e,t,n,i){var r;try{e&&v(r=e.promise)?r.call(e).done(t).fail(n):e&&v(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}M.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return M.each(e.match(G)||[],(function(e,n){t[n]=!0})),t}(e):M.extend({},e);var t,n,i,r,o=[],a=[],s=-1,l=function(){for(r=r||e.once,i=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,r&&(o=n?[]:"")},c={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){M.each(n,(function(n,i){v(i)?e.unique&&c.has(i)||o.push(i):i&&i.length&&"string"!==A(i)&&t(i)}))}(arguments),n&&!t&&l()),this},remove:function(){return M.each(arguments,(function(e,t){for(var n;(n=M.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(e){return e?M.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=a=[],n||t||(o=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},M.extend({Deferred:function(e){var t=[["notify","progress",M.Callbacks("memory"),M.Callbacks("memory"),2],["resolve","done",M.Callbacks("once memory"),M.Callbacks("once memory"),0,"resolved"],["reject","fail",M.Callbacks("once memory"),M.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return M.Deferred((function(n){M.each(t,(function(t,i){var r=v(e[i[4]])&&e[i[4]];o[i[1]]((function(){var e=r&&r.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,r){var o=0;function a(e,t,n,r){return function(){var s=this,l=arguments,c=function(){var i,c;if(!(e<o)){if((i=n.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");c=i&&("object"==typeof i||"function"==typeof i)&&i.then,v(c)?r?c.call(i,a(o,t,Q,r),a(o,t,J,r)):(o++,c.call(i,a(o,t,Q,r),a(o,t,J,r),a(o,t,Q,t.notifyWith))):(n!==Q&&(s=void 0,l=[i]),(r||t.resolveWith)(s,l))}},u=r?c:function(){try{c()}catch(i){M.Deferred.exceptionHook&&M.Deferred.exceptionHook(i,u.error),e+1>=o&&(n!==J&&(s=void 0,l=[i]),t.rejectWith(s,l))}};e?u():(M.Deferred.getErrorHook?u.error=M.Deferred.getErrorHook():M.Deferred.getStackHook&&(u.error=M.Deferred.getStackHook()),i.setTimeout(u))}}return M.Deferred((function(i){t[0][3].add(a(0,i,v(r)?r:Q,i.notifyWith)),t[1][3].add(a(0,i,v(e)?e:Q)),t[2][3].add(a(0,i,v(n)?n:J))})).promise()},promise:function(e){return null!=e?M.extend(e,r):r}},o={};return M.each(t,(function(e,i){var a=i[2],s=i[5];r[i[1]]=a.add,s&&a.add((function(){n=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(i[3].fire),o[i[0]]=function(){return o[i[0]+"With"](this===o?void 0:this,arguments),this},o[i[0]+"With"]=a.fireWith})),r.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,i=Array(n),r=s.call(arguments),o=M.Deferred(),a=function(e){return function(n){i[e]=this,r[e]=arguments.length>1?s.call(arguments):n,--t||o.resolveWith(i,r)}};if(t<=1&&(q(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||v(r[n]&&r[n].then)))return o.then();for(;n--;)q(r[n],a(n),o.reject);return o.promise()}});var X=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;M.Deferred.exceptionHook=function(e,t){i.console&&i.console.warn&&e&&X.test(e.name)&&i.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},M.readyException=function(e){i.setTimeout((function(){throw e}))};var K=M.Deferred();function $(){b.removeEventListener("DOMContentLoaded",$),i.removeEventListener("load",$),M.ready()}M.fn.ready=function(e){return K.then(e).catch((function(e){M.readyException(e)})),this},M.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--M.readyWait:M.isReady)||(M.isReady=!0,!0!==e&&--M.readyWait>0||K.resolveWith(b,[M]))}}),M.ready.then=K.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?i.setTimeout(M.ready):(b.addEventListener("DOMContentLoaded",$),i.addEventListener("load",$));var ee=function(e,t,n,i,r,o,a){var s=0,l=e.length,c=null==n;if("object"===A(n))for(s in r=!0,n)ee(e,t,s,n[s],!0,o,a);else if(void 0!==i&&(r=!0,v(i)||(a=!0),c&&(a?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(M(e),n)})),t))for(;s<l;s++)t(e[s],n,a?i:i.call(e[s],s,t(e[s],n)));return r?e:c?t.call(e):l?t(e[0],n):o},te=/^-ms-/,ne=/-([a-z])/g;function ie(e,t){return t.toUpperCase()}function re(e){return e.replace(te,"ms-").replace(ne,ie)}var oe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function ae(){this.expando=M.expando+ae.uid++}ae.uid=1,ae.prototype={cache:function(e){var t=e[this.expando];return t||(t={},oe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[re(t)]=n;else for(i in t)r[re(i)]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][re(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(re):(t=re(t))in i?[t]:t.match(G)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||M.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!M.isEmptyObject(t)}};var se=new ae,le=new ae,ce=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ue=/[A-Z]/g;function de(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(ue,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ce.test(e)?JSON.parse(e):e)}(n)}catch(e){}le.set(e,t,n)}else n=void 0;return n}M.extend({hasData:function(e){return le.hasData(e)||se.hasData(e)},data:function(e,t,n){return le.access(e,t,n)},removeData:function(e,t){le.remove(e,t)},_data:function(e,t,n){return se.access(e,t,n)},_removeData:function(e,t){se.remove(e,t)}}),M.fn.extend({data:function(e,t){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(r=le.get(o),1===o.nodeType&&!se.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&(i=re(i.slice(5)),de(o,i,r[i]));se.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each((function(){le.set(this,e)})):ee(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=le.get(o,e))||void 0!==(n=de(o,e))?n:void 0;this.each((function(){le.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){le.remove(this,e)}))}}),M.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=se.get(e,t),n&&(!i||Array.isArray(n)?i=se.access(e,t,M.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=M.queue(e,t),i=n.length,r=n.shift(),o=M._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,(function(){M.dequeue(e,t)}),o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return se.get(e,n)||se.access(e,n,{empty:M.Callbacks("once memory").add((function(){se.remove(e,[t+"queue",n])}))})}}),M.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?M.queue(this[0],e):void 0===t?this:this.each((function(){var n=M.queue(this,e,t);M._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&M.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){M.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=M.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=se.get(o[a],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(t)}});var he=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,fe=new RegExp("^(?:([+-])=|)("+he+")([a-z%]*)$","i"),pe=["Top","Right","Bottom","Left"],ge=b.documentElement,me=function(e){return M.contains(e.ownerDocument,e)},ve={composed:!0};ge.getRootNode&&(me=function(e){return M.contains(e.ownerDocument,e)||e.getRootNode(ve)===e.ownerDocument});var ye=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&me(e)&&"none"===M.css(e,"display")};function be(e,t,n,i){var r,o,a=20,s=i?function(){return i.cur()}:function(){return M.css(e,t,"")},l=s(),c=n&&n[3]||(M.cssNumber[t]?"":"px"),u=e.nodeType&&(M.cssNumber[t]||"px"!==c&&+l)&&fe.exec(M.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)M.style(e,t,u+c),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),u/=o;u*=2,M.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}var xe={};function we(e){var t,n=e.ownerDocument,i=e.nodeName,r=xe[i];return r||(t=n.body.appendChild(n.createElement(i)),r=M.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),xe[i]=r,r)}function Ae(e,t){for(var n,i,r=[],o=0,a=e.length;o<a;o++)(i=e[o]).style&&(n=i.style.display,t?("none"===n&&(r[o]=se.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&ye(i)&&(r[o]=we(i))):"none"!==n&&(r[o]="none",se.set(i,"display",n)));for(o=0;o<a;o++)null!=r[o]&&(e[o].style.display=r[o]);return e}M.fn.extend({show:function(){return Ae(this,!0)},hide:function(){return Ae(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ye(this)?M(this).show():M(this).hide()}))}});var _e,Ce,Me=/^(?:checkbox|radio)$/i,ke=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Se=/^$|^module$|\/(?:java|ecma)script/i;_e=b.createDocumentFragment().appendChild(b.createElement("div")),(Ce=b.createElement("input")).setAttribute("type","radio"),Ce.setAttribute("checked","checked"),Ce.setAttribute("name","t"),_e.appendChild(Ce),m.checkClone=_e.cloneNode(!0).cloneNode(!0).lastChild.checked,_e.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!_e.cloneNode(!0).lastChild.defaultValue,_e.innerHTML="<option></option>",m.option=!!_e.lastChild;var Ie={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Le(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&S(e,t)?M.merge([e],n):n}function Te(e,t){for(var n=0,i=e.length;n<i;n++)se.set(e[n],"globalEval",!t||se.get(t[n],"globalEval"))}Ie.tbody=Ie.tfoot=Ie.colgroup=Ie.caption=Ie.thead,Ie.th=Ie.td,m.option||(Ie.optgroup=Ie.option=[1,"<select multiple='multiple'>","</select>"]);var De=/<|&#?\w+;/;function Oe(e,t,n,i,r){for(var o,a,s,l,c,u,d=t.createDocumentFragment(),h=[],f=0,p=e.length;f<p;f++)if((o=e[f])||0===o)if("object"===A(o))M.merge(h,o.nodeType?[o]:o);else if(De.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(ke.exec(o)||["",""])[1].toLowerCase(),l=Ie[s]||Ie._default,a.innerHTML=l[1]+M.htmlPrefilter(o)+l[2],u=l[0];u--;)a=a.lastChild;M.merge(h,a.childNodes),(a=d.firstChild).textContent=""}else h.push(t.createTextNode(o));for(d.textContent="",f=0;o=h[f++];)if(i&&M.inArray(o,i)>-1)r&&r.push(o);else if(c=me(o),a=Le(d.appendChild(o),"script"),c&&Te(a),n)for(u=0;o=a[u++];)Se.test(o.type||"")&&n.push(o);return d}var je=/^([^.]*)(?:\.(.+)|)/;function Ne(){return!0}function Ee(){return!1}function Pe(e,t,n,i,r,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=void 0),t)Pe(e,s,n,i,t[s],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Ee;else if(!r)return e;return 1===o&&(a=r,r=function(e){return M().off(e),a.apply(this,arguments)},r.guid=a.guid||(a.guid=M.guid++)),e.each((function(){M.event.add(this,t,r,i,n)}))}function Fe(e,t,n){n?(se.set(e,t,!1),M.event.add(e,t,{namespace:!1,handler:function(e){var n,i=se.get(this,t);if(1&e.isTrigger&&this[t]){if(i)(M.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=s.call(arguments),se.set(this,t,i),this[t](),n=se.get(this,t),se.set(this,t,!1),i!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else i&&(se.set(this,t,M.event.trigger(i[0],i.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ne)}})):void 0===se.get(e,t)&&M.event.add(e,t,Ne)}M.event={global:{},add:function(e,t,n,i,r){var o,a,s,l,c,u,d,h,f,p,g,m=se.get(e);if(oe(e))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&M.find.matchesSelector(ge,r),n.guid||(n.guid=M.guid++),(l=m.events)||(l=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(t){return void 0!==M&&M.event.triggered!==t.type?M.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(G)||[""]).length;c--;)f=g=(s=je.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),f&&(d=M.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=M.event.special[f]||{},u=M.extend({type:f,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&M.expr.match.needsContext.test(r),namespace:p.join(".")},o),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,p,a)||e.addEventListener&&e.addEventListener(f,a)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),M.event.global[f]=!0)},remove:function(e,t,n,i,r){var o,a,s,l,c,u,d,h,f,p,g,m=se.hasData(e)&&se.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(G)||[""]).length;c--;)if(f=g=(s=je.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),f){for(d=M.event.special[f]||{},h=l[f=(i?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)u=h[o],!r&&g!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));a&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,m.handle)||M.removeEvent(e,f,m.handle),delete l[f])}else for(f in l)M.event.remove(e,f+t[c],n,i,!0);M.isEmptyObject(l)&&se.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,o,a,s=new Array(arguments.length),l=M.event.fix(e),c=(se.get(this,"events")||Object.create(null))[l.type]||[],u=M.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(a=M.event.handlers.call(this,l,c),t=0;(r=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(i=((M.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,r,o,a,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[r=(i=t[n]).selector+" "]&&(a[r]=i.needsContext?M(r,this).index(c)>-1:M.find(r,this,null,[c]).length),a[r]&&o.push(i);o.length&&s.push({elem:c,handlers:o})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(M.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[M.expando]?e:new M.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Me.test(t.type)&&t.click&&S(t,"input")&&Fe(t,"click",!0),!1},trigger:function(e){var t=this||e;return Me.test(t.type)&&t.click&&S(t,"input")&&Fe(t,"click"),!0},_default:function(e){var t=e.target;return Me.test(t.type)&&t.click&&S(t,"input")&&se.get(t,"click")||S(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},M.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},M.Event=function(e,t){if(!(this instanceof M.Event))return new M.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ne:Ee,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&M.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[M.expando]=!0},M.Event.prototype={constructor:M.Event,isDefaultPrevented:Ee,isPropagationStopped:Ee,isImmediatePropagationStopped:Ee,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ne,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ne,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ne,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},M.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},M.event.addProp),M.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){if(b.documentMode){var n=se.get(this,"handle"),i=M.event.fix(e);i.type="focusin"===e.type?"focus":"blur",i.isSimulated=!0,n(e),i.target===i.currentTarget&&n(i)}else M.event.simulate(t,e.target,M.event.fix(e))}M.event.special[e]={setup:function(){var i;if(Fe(this,e,!0),!b.documentMode)return!1;(i=se.get(this,t))||this.addEventListener(t,n),se.set(this,t,(i||0)+1)},trigger:function(){return Fe(this,e),!0},teardown:function(){var e;if(!b.documentMode)return!1;(e=se.get(this,t)-1)?se.set(this,t,e):(this.removeEventListener(t,n),se.remove(this,t))},_default:function(t){return se.get(t.target,e)},delegateType:t},M.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,r=b.documentMode?this:i,o=se.get(r,t);o||(b.documentMode?this.addEventListener(t,n):i.addEventListener(e,n,!0)),se.set(r,t,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=b.documentMode?this:i,o=se.get(r,t)-1;o?se.set(r,t,o):(b.documentMode?this.removeEventListener(t,n):i.removeEventListener(e,n,!0),se.remove(r,t))}}})),M.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){M.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,r=e.handleObj;return i&&(i===this||M.contains(this,i))||(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}})),M.fn.extend({on:function(e,t,n,i){return Pe(this,e,t,n,i)},one:function(e,t,n,i){return Pe(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,M(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ee),this.each((function(){M.event.remove(this,e,n,t)}))}});var ze=/<script|<style|<link/i,Re=/checked\s*(?:[^=]|=\s*.checked.)/i,Be=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function We(e,t){return S(e,"table")&&S(11!==t.nodeType?t:t.firstChild,"tr")&&M(e).children("tbody")[0]||e}function Ye(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ue(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function He(e,t){var n,i,r,o,a,s;if(1===t.nodeType){if(se.hasData(e)&&(s=se.get(e).events))for(r in se.remove(t,"handle events"),s)for(n=0,i=s[r].length;n<i;n++)M.event.add(t,r,s[r][n]);le.hasData(e)&&(o=le.access(e),a=M.extend({},o),le.set(t,a))}}function Ve(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Me.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Ze(e,t,n,i){t=l(t);var r,o,a,s,c,u,d=0,h=e.length,f=h-1,p=t[0],g=v(p);if(g||h>1&&"string"==typeof p&&!m.checkClone&&Re.test(p))return e.each((function(r){var o=e.eq(r);g&&(t[0]=p.call(this,r,o.html())),Ze(o,t,n,i)}));if(h&&(o=(r=Oe(t,e[0].ownerDocument,!1,e,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(s=(a=M.map(Le(r,"script"),Ye)).length;d<h;d++)c=r,d!==f&&(c=M.clone(c,!0,!0),s&&M.merge(a,Le(c,"script"))),n.call(e[d],c,d);if(s)for(u=a[a.length-1].ownerDocument,M.map(a,Ue),d=0;d<s;d++)c=a[d],Se.test(c.type||"")&&!se.access(c,"globalEval")&&M.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?M._evalUrl&&!c.noModule&&M._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):w(c.textContent.replace(Be,""),c,u))}return e}function Ge(e,t,n){for(var i,r=t?M.filter(t,e):e,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||M.cleanData(Le(i)),i.parentNode&&(n&&me(i)&&Te(Le(i,"script")),i.parentNode.removeChild(i));return e}M.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,r,o,a,s=e.cloneNode(!0),l=me(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||M.isXMLDoc(e)))for(a=Le(s),i=0,r=(o=Le(e)).length;i<r;i++)Ve(o[i],a[i]);if(t)if(n)for(o=o||Le(e),a=a||Le(s),i=0,r=o.length;i<r;i++)He(o[i],a[i]);else He(e,s);return(a=Le(s,"script")).length>0&&Te(a,!l&&Le(e,"script")),s},cleanData:function(e){for(var t,n,i,r=M.event.special,o=0;void 0!==(n=e[o]);o++)if(oe(n)){if(t=n[se.expando]){if(t.events)for(i in t.events)r[i]?M.event.remove(n,i):M.removeEvent(n,i,t.handle);n[se.expando]=void 0}n[le.expando]&&(n[le.expando]=void 0)}}}),M.fn.extend({detach:function(e){return Ge(this,e,!0)},remove:function(e){return Ge(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?M.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ze(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||We(this,e).appendChild(e)}))},prepend:function(){return Ze(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=We(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ze(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ze(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(M.cleanData(Le(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return M.clone(this,e,t)}))},html:function(e){return ee(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ze.test(e)&&!Ie[(ke.exec(e)||["",""])[1].toLowerCase()]){e=M.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(M.cleanData(Le(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ze(this,arguments,(function(t){var n=this.parentNode;M.inArray(this,e)<0&&(M.cleanData(Le(this)),n&&n.replaceChild(t,this))}),e)}}),M.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){M.fn[e]=function(e){for(var n,i=[],r=M(e),o=r.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),M(r[a])[t](n),c.apply(i,n.get());return this.pushStack(i)}}));var Qe=new RegExp("^("+he+")(?!px)[a-z%]+$","i"),Je=/^--/,qe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=i),t.getComputedStyle(e)},Xe=function(e,t,n){var i,r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];for(r in i=n.call(e),t)e.style[r]=o[r];return i},Ke=new RegExp(pe.join("|"),"i");function $e(e,t,n){var i,r,o,a,s=Je.test(t),l=e.style;return(n=n||qe(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(O,"$1")||void 0),""!==a||me(e)||(a=M.style(e,t)),!m.pixelBoxStyles()&&Qe.test(a)&&Ke.test(t)&&(i=l.width,r=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=n.width,l.width=i,l.minWidth=r,l.maxWidth=o)),void 0!==a?a+"":a}function et(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ge.appendChild(c).appendChild(u);var e=i.getComputedStyle(u);n="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",a=36===t(e.right),r=36===t(e.width),u.style.position="absolute",o=12===t(u.offsetWidth/3),ge.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,r,o,a,s,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===u.style.backgroundClip,M.extend(m,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,n,r;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),n=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",ge.appendChild(e).appendChild(t).appendChild(n),r=i.getComputedStyle(t),s=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,ge.removeChild(e)),s}}))}();var tt=["Webkit","Moz","ms"],nt=b.createElement("div").style,it={};function rt(e){return M.cssProps[e]||it[e]||(e in nt?e:it[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=tt.length;n--;)if((e=tt[n]+t)in nt)return e}(e)||e)}var ot=/^(none|table(?!-c[ea]).+)/,at={position:"absolute",visibility:"hidden",display:"block"},st={letterSpacing:"0",fontWeight:"400"};function lt(e,t,n){var i=fe.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function ct(e,t,n,i,r,o){var a="width"===t?1:0,s=0,l=0,c=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(c+=M.css(e,n+pe[a],!0,r)),i?("content"===n&&(l-=M.css(e,"padding"+pe[a],!0,r)),"margin"!==n&&(l-=M.css(e,"border"+pe[a]+"Width",!0,r))):(l+=M.css(e,"padding"+pe[a],!0,r),"padding"!==n?l+=M.css(e,"border"+pe[a]+"Width",!0,r):s+=M.css(e,"border"+pe[a]+"Width",!0,r));return!i&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l+c}function ut(e,t,n){var i=qe(e),r=(!m.boxSizingReliable()||n)&&"border-box"===M.css(e,"boxSizing",!1,i),o=r,a=$e(e,t,i),s="offset"+t[0].toUpperCase()+t.slice(1);if(Qe.test(a)){if(!n)return a;a="auto"}return(!m.boxSizingReliable()&&r||!m.reliableTrDimensions()&&S(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===M.css(e,"display",!1,i))&&e.getClientRects().length&&(r="border-box"===M.css(e,"boxSizing",!1,i),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+ct(e,t,n||(r?"border":"content"),o,i,a)+"px"}function dt(e,t,n,i,r){return new dt.prototype.init(e,t,n,i,r)}M.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=$e(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,a,s=re(t),l=Je.test(t),c=e.style;if(l||(t=rt(s)),a=M.cssHooks[t]||M.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(e,!1,i))?r:c[t];"string"==(o=typeof n)&&(r=fe.exec(n))&&r[1]&&(n=be(e,t,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(M.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,i))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var r,o,a,s=re(t);return Je.test(t)||(t=rt(s)),(a=M.cssHooks[t]||M.cssHooks[s])&&"get"in a&&(r=a.get(e,!0,n)),void 0===r&&(r=$e(e,t,i)),"normal"===r&&t in st&&(r=st[t]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),M.each(["height","width"],(function(e,t){M.cssHooks[t]={get:function(e,n,i){if(n)return!ot.test(M.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ut(e,t,i):Xe(e,at,(function(){return ut(e,t,i)}))},set:function(e,n,i){var r,o=qe(e),a=!m.scrollboxSize()&&"absolute"===o.position,s=(a||i)&&"border-box"===M.css(e,"boxSizing",!1,o),l=i?ct(e,t,i,s,o):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-ct(e,t,"border",!1,o)-.5)),l&&(r=fe.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=M.css(e,t)),lt(0,n,l)}}})),M.cssHooks.marginLeft=et(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat($e(e,"marginLeft"))||e.getBoundingClientRect().left-Xe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),M.each({margin:"",padding:"",border:"Width"},(function(e,t){M.cssHooks[e+t]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+pe[i]+t]=o[i]||o[i-2]||o[0];return r}},"margin"!==e&&(M.cssHooks[e+t].set=lt)})),M.fn.extend({css:function(e,t){return ee(this,(function(e,t,n){var i,r,o={},a=0;if(Array.isArray(t)){for(i=qe(e),r=t.length;a<r;a++)o[t[a]]=M.css(e,t[a],!1,i);return o}return void 0!==n?M.style(e,t,n):M.css(e,t)}),e,t,arguments.length>1)}}),M.Tween=dt,dt.prototype={constructor:dt,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||M.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(M.cssNumber[n]?"":"px")},cur:function(){var e=dt.propHooks[this.prop];return e&&e.get?e.get(this):dt.propHooks._default.get(this)},run:function(e){var t,n=dt.propHooks[this.prop];return this.options.duration?this.pos=t=M.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):dt.propHooks._default.set(this),this}},dt.prototype.init.prototype=dt.prototype,dt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=M.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){M.fx.step[e.prop]?M.fx.step[e.prop](e):1!==e.elem.nodeType||!M.cssHooks[e.prop]&&null==e.elem.style[rt(e.prop)]?e.elem[e.prop]=e.now:M.style(e.elem,e.prop,e.now+e.unit)}}},dt.propHooks.scrollTop=dt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},M.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},M.fx=dt.prototype.init,M.fx.step={};var ht,ft,pt=/^(?:toggle|show|hide)$/,gt=/queueHooks$/;function mt(){ft&&(!1===b.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(mt):i.setTimeout(mt,M.fx.interval),M.fx.tick())}function vt(){return i.setTimeout((function(){ht=void 0})),ht=Date.now()}function yt(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=pe[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function bt(e,t,n){for(var i,r=(xt.tweeners[t]||[]).concat(xt.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,t,e))return i}function xt(e,t,n){var i,r,o=0,a=xt.prefilters.length,s=M.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var t=ht||vt(),n=Math.max(0,c.startTime+c.duration-t),i=1-(n/c.duration||0),o=0,a=c.tweens.length;o<a;o++)c.tweens[o].run(i);return s.notifyWith(e,[c,i,n]),i<1&&a?n:(a||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:M.extend({},t),opts:M.extend(!0,{specialEasing:{},easing:M.easing._default},n),originalProperties:t,originalOptions:n,startTime:ht||vt(),duration:n.duration,tweens:[],createTween:function(t,n){var i=M.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(function(e,t){var n,i,r,o,a;for(n in e)if(r=t[i=re(n)],o=e[n],Array.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),(a=M.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete e[i],o)n in e||(e[n]=o[n],t[n]=r);else t[i]=r}(u,c.opts.specialEasing);o<a;o++)if(i=xt.prefilters[o].call(c,e,u,c.opts))return v(i.stop)&&(M._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return M.map(u,bt,c),v(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),M.fx.timer(M.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}M.Animation=M.extend(xt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return be(n.elem,e,fe.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(G);for(var n,i=0,r=e.length;i<r;i++)n=e[i],xt.tweeners[n]=xt.tweeners[n]||[],xt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,r,o,a,s,l,c,u,d="width"in t||"height"in t,h=this,f={},p=e.style,g=e.nodeType&&ye(e),m=se.get(e,"fxshow");for(i in n.queue||(null==(a=M._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always((function(){h.always((function(){a.unqueued--,M.queue(e,"fx").length||a.empty.fire()}))}))),t)if(r=t[i],pt.test(r)){if(delete t[i],o=o||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[i])continue;g=!0}f[i]=m&&m[i]||M.style(e,i)}if((l=!M.isEmptyObject(t))||!M.isEmptyObject(f))for(i in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=m&&m.display)&&(c=se.get(e,"display")),"none"===(u=M.css(e,"display"))&&(c?u=c:(Ae([e],!0),c=e.style.display||c,u=M.css(e,"display"),Ae([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===M.css(e,"float")&&(l||(h.done((function(){p.display=c})),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,f)l||(m?"hidden"in m&&(g=m.hidden):m=se.access(e,"fxshow",{display:c}),o&&(m.hidden=!g),g&&Ae([e],!0),h.done((function(){for(i in g||Ae([e]),se.remove(e,"fxshow"),f)M.style(e,i,f[i])}))),l=bt(g?m[i]:0,i,h),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?xt.prefilters.unshift(e):xt.prefilters.push(e)}}),M.speed=function(e,t,n){var i=e&&"object"==typeof e?M.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return M.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in M.fx.speeds?i.duration=M.fx.speeds[i.duration]:i.duration=M.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v(i.old)&&i.old.call(this),i.queue&&M.dequeue(this,i.queue)},i},M.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ye).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=M.isEmptyObject(e),o=M.speed(t,n,i),a=function(){var t=xt(this,M.extend({},e),o);(r||se.get(this,"finish"))&&t.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,r=null!=e&&e+"queueHooks",o=M.timers,a=se.get(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&gt.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(n),t=!1,o.splice(r,1));!t&&n||M.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=se.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],o=M.timers,a=i?i.length:0;for(n.finish=!0,M.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish}))}}),M.each(["toggle","show","hide"],(function(e,t){var n=M.fn[t];M.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(yt(t,!0),e,i,r)}})),M.each({slideDown:yt("show"),slideUp:yt("hide"),slideToggle:yt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){M.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),M.timers=[],M.fx.tick=function(){var e,t=0,n=M.timers;for(ht=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||M.fx.stop(),ht=void 0},M.fx.timer=function(e){M.timers.push(e),M.fx.start()},M.fx.interval=13,M.fx.start=function(){ft||(ft=!0,mt())},M.fx.stop=function(){ft=null},M.fx.speeds={slow:600,fast:200,_default:400},M.fn.delay=function(e,t){return e=M.fx&&M.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var r=i.setTimeout(t,e);n.stop=function(){i.clearTimeout(r)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",m.checkOn=""!==e.value,m.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",m.radioValue="t"===e.value}();var wt,At=M.expr.attrHandle;M.fn.extend({attr:function(e,t){return ee(this,M.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){M.removeAttr(this,e)}))}}),M.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?M.prop(e,t,n):(1===o&&M.isXMLDoc(e)||(r=M.attrHooks[t.toLowerCase()]||(M.expr.match.bool.test(t)?wt:void 0)),void 0!==n?null===n?void M.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=M.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&S(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(G);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),wt={set:function(e,t,n){return!1===t?M.removeAttr(e,n):e.setAttribute(n,n),n}},M.each(M.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=At[t]||M.find.attr;At[t]=function(e,t,i){var r,o,a=t.toLowerCase();return i||(o=At[a],At[a]=r,r=null!=n(e,t,i)?a:null,At[a]=o),r}}));var _t=/^(?:input|select|textarea|button)$/i,Ct=/^(?:a|area)$/i;function Mt(e){return(e.match(G)||[]).join(" ")}function kt(e){return e.getAttribute&&e.getAttribute("class")||""}function St(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(G)||[]}M.fn.extend({prop:function(e,t){return ee(this,M.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[M.propFix[e]||e]}))}}),M.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&M.isXMLDoc(e)||(t=M.propFix[t]||t,r=M.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=M.find.attr(e,"tabindex");return t?parseInt(t,10):_t.test(e.nodeName)||Ct.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(M.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),M.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){M.propFix[this.toLowerCase()]=this})),M.fn.extend({addClass:function(e){var t,n,i,r,o,a;return v(e)?this.each((function(t){M(this).addClass(e.call(this,t,kt(this)))})):(t=St(e)).length?this.each((function(){if(i=kt(this),n=1===this.nodeType&&" "+Mt(i)+" "){for(o=0;o<t.length;o++)r=t[o],n.indexOf(" "+r+" ")<0&&(n+=r+" ");a=Mt(n),i!==a&&this.setAttribute("class",a)}})):this},removeClass:function(e){var t,n,i,r,o,a;return v(e)?this.each((function(t){M(this).removeClass(e.call(this,t,kt(this)))})):arguments.length?(t=St(e)).length?this.each((function(){if(i=kt(this),n=1===this.nodeType&&" "+Mt(i)+" "){for(o=0;o<t.length;o++)for(r=t[o];n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");a=Mt(n),i!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,i,r,o,a=typeof e,s="string"===a||Array.isArray(e);return v(e)?this.each((function(n){M(this).toggleClass(e.call(this,n,kt(this),t),t)})):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=St(e),this.each((function(){if(s)for(o=M(this),r=0;r<n.length;r++)i=n[r],o.hasClass(i)?o.removeClass(i):o.addClass(i);else void 0!==e&&"boolean"!==a||((i=kt(this))&&se.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===e?"":se.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+Mt(kt(n))+" ").indexOf(t)>-1)return!0;return!1}});var It=/\r/g;M.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=v(e),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?e.call(this,n,M(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=M.map(r,(function(e){return null==e?"":e+""}))),(t=M.valHooks[this.type]||M.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=M.valHooks[r.type]||M.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(It,""):null==n?"":n:void 0}}),M.extend({valHooks:{option:{get:function(e){var t=M.find.attr(e,"value");return null!=t?t:Mt(M.text(e))}},select:{get:function(e){var t,n,i,r=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:r.length;for(i=o<0?l:a?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!S(n.parentNode,"optgroup"))){if(t=M(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,i,r=e.options,o=M.makeArray(t),a=r.length;a--;)((i=r[a]).selected=M.inArray(M.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),M.each(["radio","checkbox"],(function(){M.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=M.inArray(M(e).val(),t)>-1}},m.checkOn||(M.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Lt=i.location,Tt={guid:Date.now()},Dt=/\?/;M.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new i.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||M.error("Invalid XML: "+(n?M.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Ot=/^(?:focusinfocus|focusoutblur)$/,jt=function(e){e.stopPropagation()};M.extend(M.event,{trigger:function(e,t,n,r){var o,a,s,l,c,u,d,h,p=[n||b],g=f.call(e,"type")?e.type:e,m=f.call(e,"namespace")?e.namespace.split("."):[];if(a=h=s=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!Ot.test(g+M.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[M.expando]?e:new M.Event(g,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:M.makeArray(t,[e]),d=M.event.special[g]||{},r||!d.trigger||!1!==d.trigger.apply(n,t))){if(!r&&!d.noBubble&&!y(n)){for(l=d.delegateType||g,Ot.test(l+g)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(n.ownerDocument||b)&&p.push(s.defaultView||s.parentWindow||i)}for(o=0;(a=p[o++])&&!e.isPropagationStopped();)h=a,e.type=o>1?l:d.bindType||g,(u=(se.get(a,"events")||Object.create(null))[e.type]&&se.get(a,"handle"))&&u.apply(a,t),(u=c&&a[c])&&u.apply&&oe(a)&&(e.result=u.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,r||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),t)||!oe(n)||c&&v(n[g])&&!y(n)&&((s=n[c])&&(n[c]=null),M.event.triggered=g,e.isPropagationStopped()&&h.addEventListener(g,jt),n[g](),e.isPropagationStopped()&&h.removeEventListener(g,jt),M.event.triggered=void 0,s&&(n[c]=s)),e.result}},simulate:function(e,t,n){var i=M.extend(new M.Event,n,{type:e,isSimulated:!0});M.event.trigger(i,null,t)}}),M.fn.extend({trigger:function(e,t){return this.each((function(){M.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return M.event.trigger(e,t,n,!0)}});var Nt=/\[\]$/,Et=/\r?\n/g,Pt=/^(?:submit|button|image|reset|file)$/i,Ft=/^(?:input|select|textarea|keygen)/i;function zt(e,t,n,i){var r;if(Array.isArray(t))M.each(t,(function(t,r){n||Nt.test(e)?i(e,r):zt(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)}));else if(n||"object"!==A(t))i(e,t);else for(r in t)zt(e+"["+r+"]",t[r],n,i)}M.param=function(e,t){var n,i=[],r=function(e,t){var n=v(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!M.isPlainObject(e))M.each(e,(function(){r(this.name,this.value)}));else for(n in e)zt(n,e[n],t,r);return i.join("&")},M.fn.extend({serialize:function(){return M.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=M.prop(this,"elements");return e?M.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!M(this).is(":disabled")&&Ft.test(this.nodeName)&&!Pt.test(e)&&(this.checked||!Me.test(e))})).map((function(e,t){var n=M(this).val();return null==n?null:Array.isArray(n)?M.map(n,(function(e){return{name:t.name,value:e.replace(Et,"\r\n")}})):{name:t.name,value:n.replace(Et,"\r\n")}})).get()}});var Rt=/%20/g,Bt=/#.*$/,Wt=/([?&])_=[^&]*/,Yt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ut=/^(?:GET|HEAD)$/,Ht=/^\/\//,Vt={},Zt={},Gt="*/".concat("*"),Qt=b.createElement("a");function Jt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,o=t.toLowerCase().match(G)||[];if(v(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function qt(e,t,n,i){var r={},o=e===Zt;function a(s){var l;return r[s]=!0,M.each(e[s]||[],(function(e,s){var c=s(t,n,i);return"string"!=typeof c||o||r[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)})),l}return a(t.dataTypes[0])||!r["*"]&&a("*")}function Xt(e,t){var n,i,r=M.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&M.extend(!0,e,i),e}Qt.href=Lt.href,M.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Lt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Lt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Gt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":M.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Xt(Xt(e,M.ajaxSettings),t):Xt(M.ajaxSettings,e)},ajaxPrefilter:Jt(Vt),ajaxTransport:Jt(Zt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,r,o,a,s,l,c,u,d,h,f=M.ajaxSetup({},t),p=f.context||f,g=f.context&&(p.nodeType||p.jquery)?M(p):M.event,m=M.Deferred(),v=M.Callbacks("once memory"),y=f.statusCode||{},x={},w={},A="canceled",_={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=Yt.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==c&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)_.always(e[_.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||A;return n&&n.abort(t),C(0,t),this}};if(m.promise(_),f.url=((e||f.url||Lt.href)+"").replace(Ht,Lt.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(G)||[""],null==f.crossDomain){l=b.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Qt.protocol+"//"+Qt.host!=l.protocol+"//"+l.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=M.param(f.data,f.traditional)),qt(Vt,f,t,_),c)return _;for(d in(u=M.event&&f.global)&&0==M.active++&&M.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ut.test(f.type),r=f.url.replace(Bt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Rt,"+")):(h=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(Dt.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(Wt,"$1"),h=(Dt.test(r)?"&":"?")+"_="+Tt.guid+++h),f.url=r+h),f.ifModified&&(M.lastModified[r]&&_.setRequestHeader("If-Modified-Since",M.lastModified[r]),M.etag[r]&&_.setRequestHeader("If-None-Match",M.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&_.setRequestHeader("Content-Type",f.contentType),_.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Gt+"; q=0.01":""):f.accepts["*"]),f.headers)_.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(p,_,f)||c))return _.abort();if(A="abort",v.add(f.complete),_.done(f.success),_.fail(f.error),n=qt(Zt,f,t,_)){if(_.readyState=1,u&&g.trigger("ajaxSend",[_,f]),c)return _;f.async&&f.timeout>0&&(s=i.setTimeout((function(){_.abort("timeout")}),f.timeout));try{c=!1,n.send(x,C)}catch(e){if(c)throw e;C(-1,e)}}else C(-1,"No Transport");function C(e,t,a,l){var d,h,b,x,w,A=t;c||(c=!0,s&&i.clearTimeout(s),n=void 0,o=l||"",_.readyState=e>0?4:0,d=e>=200&&e<300||304===e,a&&(x=function(e,t,n){for(var i,r,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(f,_,a)),!d&&M.inArray("script",f.dataTypes)>-1&&M.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),x=function(e,t,n,i){var r,o,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=c[l+" "+o]||c["* "+o]))for(r in c)if((s=r.split(" "))[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[r]:!0!==c[r]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(f,x,_,d),d?(f.ifModified&&((w=_.getResponseHeader("Last-Modified"))&&(M.lastModified[r]=w),(w=_.getResponseHeader("etag"))&&(M.etag[r]=w)),204===e||"HEAD"===f.type?A="nocontent":304===e?A="notmodified":(A=x.state,h=x.data,d=!(b=x.error))):(b=A,!e&&A||(A="error",e<0&&(e=0))),_.status=e,_.statusText=(t||A)+"",d?m.resolveWith(p,[h,A,_]):m.rejectWith(p,[_,A,b]),_.statusCode(y),y=void 0,u&&g.trigger(d?"ajaxSuccess":"ajaxError",[_,f,d?h:b]),v.fireWith(p,[_,A]),u&&(g.trigger("ajaxComplete",[_,f]),--M.active||M.event.trigger("ajaxStop")))}return _},getJSON:function(e,t,n){return M.get(e,t,n,"json")},getScript:function(e,t){return M.get(e,void 0,t,"script")}}),M.each(["get","post"],(function(e,t){M[t]=function(e,n,i,r){return v(n)&&(r=r||i,i=n,n=void 0),M.ajax(M.extend({url:e,type:t,dataType:r,data:n,success:i},M.isPlainObject(e)&&e))}})),M.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),M._evalUrl=function(e,t,n){return M.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){M.globalEval(e,t,n)}})},M.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=M(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){M(this).wrapInner(e.call(this,t))})):this.each((function(){var t=M(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){M(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){M(this).replaceWith(this.childNodes)})),this}}),M.expr.pseudos.hidden=function(e){return!M.expr.pseudos.visible(e)},M.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},M.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(e){}};var Kt={0:200,1223:204},$t=M.ajaxSettings.xhr();m.cors=!!$t&&"withCredentials"in $t,m.ajax=$t=!!$t,M.ajaxTransport((function(e){var t,n;if(m.cors||$t&&!e.crossDomain)return{send:function(r,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Kt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&i.setTimeout((function(){t&&n()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),M.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),M.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return M.globalEval(e),e}}}),M.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),M.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,r){t=M("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var en,tn=[],nn=/(=)\?(?=&|$)|\?\?/;M.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tn.pop()||M.expando+"_"+Tt.guid++;return this[e]=!0,e}}),M.ajaxPrefilter("json jsonp",(function(e,t,n){var r,o,a,s=!1!==e.jsonp&&(nn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(nn,"$1"+r):!1!==e.jsonp&&(e.url+=(Dt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||M.error(r+" was not called"),a[0]},e.dataTypes[0]="json",o=i[r],i[r]=function(){a=arguments},n.always((function(){void 0===o?M(i).removeProp(r):i[r]=o,e[r]&&(e.jsonpCallback=t.jsonpCallback,tn.push(r)),a&&v(o)&&o(a[0]),a=o=void 0})),"script"})),m.createHTMLDocument=((en=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===en.childNodes.length),M.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((i=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(i)):t=b),o=!n&&[],(r=B.exec(e))?[t.createElement(r[1])]:(r=Oe([e],t,o),o&&o.length&&M(o).remove(),M.merge([],r.childNodes)));var i,r,o},M.fn.load=function(e,t,n){var i,r,o,a=this,s=e.indexOf(" ");return s>-1&&(i=Mt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),a.length>0&&M.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done((function(e){o=arguments,a.html(i?M("<div>").append(M.parseHTML(e)).find(i):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},M.expr.pseudos.animated=function(e){return M.grep(M.timers,(function(t){return e===t.elem})).length},M.offset={setOffset:function(e,t,n){var i,r,o,a,s,l,c=M.css(e,"position"),u=M(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),o=M.css(e,"top"),l=M.css(e,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(a=(i=u.position()).top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),v(t)&&(t=t.call(e,n,M.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):u.css(d)}},M.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){M.offset.setOffset(this,e,t)}));var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===M.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===M.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=M(e).offset()).top+=M.css(e,"borderTopWidth",!0),r.left+=M.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-M.css(i,"marginTop",!0),left:t.left-r.left-M.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===M.css(e,"position");)e=e.offsetParent;return e||ge}))}}),M.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;M.fn[e]=function(i){return ee(this,(function(e,i,r){var o;if(y(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===r)return o?o[t]:e[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):e[i]=r}),e,i,arguments.length)}})),M.each(["top","left"],(function(e,t){M.cssHooks[t]=et(m.pixelPosition,(function(e,n){if(n)return n=$e(e,t),Qe.test(n)?M(e).position()[t]+"px":n}))})),M.each({Height:"height",Width:"width"},(function(e,t){M.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){M.fn[i]=function(r,o){var a=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===o?"margin":"border");return ee(this,(function(t,n,r){var o;return y(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===r?M.css(t,n,s):M.style(t,n,r,s)}),t,a?r:void 0,a)}}))})),M.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){M.fn[t]=function(e){return this.on(t,e)}})),M.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),M.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){M.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;M.proxy=function(e,t){var n,i,r;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return i=s.call(arguments,2),r=function(){return e.apply(t||this,i.concat(s.call(arguments)))},r.guid=e.guid=e.guid||M.guid++,r},M.holdReady=function(e){e?M.readyWait++:M.ready(!0)},M.isArray=Array.isArray,M.parseJSON=JSON.parse,M.nodeName=S,M.isFunction=v,M.isWindow=y,M.camelCase=re,M.type=A,M.now=Date.now,M.isNumeric=function(e){var t=M.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},M.trim=function(e){return null==e?"":(e+"").replace(rn,"$1")},void 0===(n=function(){return M}.apply(t,[]))||(e.exports=n);var on=i.jQuery,an=i.$;return M.noConflict=function(e){return i.$===M&&(i.$=an),e&&i.jQuery===M&&(i.jQuery=on),M},void 0===r&&(i.jQuery=i.$=M),M}))},297:(e,t,n)=>{e.exports=function e(t,n,i){function r(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,(function(e){return r(t[a][1][e]||e)}),c,c.exports,e,t,n,i)}return n[a].exports}for(var o=void 0,a=0;a<i.length;a++)r(i[a]);return r}({1:[function(e,t,n){"use strict";var i=e("./utils"),r=e("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,r,a,s,l,c,u=[],d=0,h=e.length,f=h,p="string"!==i.getTypeOf(e);d<e.length;)f=h-d,r=p?(t=e[d++],n=d<h?e[d++]:0,d<h?e[d++]:0):(t=e.charCodeAt(d++),n=d<h?e.charCodeAt(d++):0,d<h?e.charCodeAt(d++):0),a=t>>2,s=(3&t)<<4|n>>4,l=1<f?(15&n)<<2|r>>6:64,c=2<f?63&r:64,u.push(o.charAt(a)+o.charAt(s)+o.charAt(l)+o.charAt(c));return u.join("")},n.decode=function(e){var t,n,i,a,s,l,c=0,u=0,d="data:";if(e.substr(0,5)===d)throw new Error("Invalid base64 input, it looks like a data url.");var h,f=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===o.charAt(64)&&f--,e.charAt(e.length-2)===o.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=r.uint8array?new Uint8Array(0|f):new Array(0|f);c<e.length;)t=o.indexOf(e.charAt(c++))<<2|(a=o.indexOf(e.charAt(c++)))>>4,n=(15&a)<<4|(s=o.indexOf(e.charAt(c++)))>>2,i=(3&s)<<6|(l=o.indexOf(e.charAt(c++))),h[u++]=t,64!==s&&(h[u++]=n),64!==l&&(h[u++]=i);return h}},{"./support":30,"./utils":32}],2:[function(e,t,n){"use strict";var i=e("./external"),r=e("./stream/DataWorker"),o=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function s(e,t,n,i,r){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=i,this.compressedContent=r}s.prototype={getContentWorker:function(){var e=new r(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},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(e,t,n){return e.pipe(new o).pipe(new a("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){"use strict";var i=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){"use strict";var i=e("./utils"),r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==i.getTypeOf(e)?function(e,t,n,i){var o=r,a=0+n;e^=-1;for(var s=0;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}(0|t,e,e.length):function(e,t,n,i){var o=r,a=0+n;e^=-1;for(var s=0;s<a;s++)e=e>>>8^o[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length):0}},{"./utils":32}],5:[function(e,t,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(e,t,n){"use strict";var i;i="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:i}},{lie:37}],7:[function(e,t,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,r=e("pako"),o=e("./utils"),a=e("./stream/GenericWorker"),s=i?"uint8array":"array";function l(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",o.inherits(l,a),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,e.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 e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new l("Deflate",e)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){"use strict";function i(e,t){var n,i="";for(n=0;n<t;n++)i+=String.fromCharCode(255&e),e>>>=8;return i}function r(e,t,n,r,a,u){var d,h,f=e.file,p=e.compression,g=u!==s.utf8encode,m=o.transformTo("string",u(f.name)),v=o.transformTo("string",s.utf8encode(f.name)),y=f.comment,b=o.transformTo("string",u(y)),x=o.transformTo("string",s.utf8encode(y)),w=v.length!==f.name.length,A=x.length!==y.length,_="",C="",M="",k=f.dir,S=f.date,I={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(I.crc32=e.crc32,I.compressedSize=e.compressedSize,I.uncompressedSize=e.uncompressedSize);var L=0;t&&(L|=8),g||!w&&!A||(L|=2048);var T=0,D=0;k&&(T|=16),"UNIX"===a?(D=798,T|=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16}(f.unixPermissions,k)):(D=20,T|=function(e){return 63&(e||0)}(f.dosPermissions)),d=S.getUTCHours(),d<<=6,d|=S.getUTCMinutes(),d<<=5,d|=S.getUTCSeconds()/2,h=S.getUTCFullYear()-1980,h<<=4,h|=S.getUTCMonth()+1,h<<=5,h|=S.getUTCDate(),w&&(C=i(1,1)+i(l(m),4)+v,_+="up"+i(C.length,2)+C),A&&(M=i(1,1)+i(l(b),4)+x,_+="uc"+i(M.length,2)+M);var O="";return O+="\n\0",O+=i(L,2),O+=p.magic,O+=i(d,2),O+=i(h,2),O+=i(I.crc32,4),O+=i(I.compressedSize,4),O+=i(I.uncompressedSize,4),O+=i(m.length,2),O+=i(_.length,2),{fileRecord:c.LOCAL_FILE_HEADER+O+m+_,dirRecord:c.CENTRAL_FILE_HEADER+i(D,2)+O+i(b.length,2)+"\0\0\0\0"+i(T,4)+i(r,4)+m+_+b}}var o=e("../utils"),a=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),c=e("../signature");function u(e,t,n,i){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=i,this.streamFiles=e,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(e){var t=e.meta.percent||0,n=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-i-1))/n:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=r(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=r(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:function(e){return c.DATA_DESCRIPTOR+i(e.crc32,4)+i(e.compressedSize,4)+i(e.uncompressedSize,4)}(e),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 e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=this.bytesWritten-e,r=function(e,t,n,r,a){var s=o.transformTo("string",a(r));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(e,2)+i(e,2)+i(t,4)+i(n,4)+i(s.length,2)+s}(this.dirRecords.length,n,e,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(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),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(e){var t=this._sources;if(!a.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(e){}return!0},u.prototype.lock=function(){a.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){"use strict";var i=e("../compressions"),r=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var o=new r(t.streamFiles,n,t.platform,t.encodeFileName),a=0;try{e.forEach((function(e,n){a++;var r=function(e,t){var n=e||t,r=i[n];if(!r)throw new Error(n+" is not a valid compression method !");return r}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},l=n.dir,c=n.date;n._compressWorker(r,s).withStreamInfo("file",{name:e,dir:l,date:c,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(o)})),o.entriesCount=a}catch(e){o.error(e)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,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 e=new i;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(i.prototype=e("./object")).loadAsync=e("./load"),i.support=e("./support"),i.defaults=e("./defaults"),i.version="3.10.1",i.loadAsync=function(e,t){return(new i).loadAsync(e,t)},i.external=e("./external"),t.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){"use strict";var i=e("./utils"),r=e("./external"),o=e("./utf8"),a=e("./zipEntries"),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function c(e){return new r.Promise((function(t,n){var i=e.decompressed.getContentWorker().pipe(new s);i.on("error",(function(e){n(e)})).on("end",(function(){i.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var n=this;return t=i.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(e)?r.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var n=new a(t);return n.load(e),n})).then((function(e){var n=[r.Promise.resolve(e)],i=e.files;if(t.checkCRC32)for(var o=0;o<i.length;o++)n.push(c(i[o]));return r.Promise.all(n)})).then((function(e){for(var r=e.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:t.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(e,t,n){"use strict";var i=e("../utils"),r=e("../stream/GenericWorker");function o(e,t){r.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}i.inherits(o,r),o.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.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)},t.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){"use strict";var i=e("readable-stream").Readable;function r(e,t,n){i.call(this,t),this._helper=e;var r=this;e.on("data",(function(e,t){r.push(e)||r._helper.pause(),n&&n(t)})).on("error",(function(e){r.emit("error",e)})).on("end",(function(){r.push(null)}))}e("../utils").inherits(r,i),r.prototype._read=function(){this._helper.resume()},t.exports=r},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){"use strict";t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,n){"use strict";function i(e,t,n){var i,r=o.getTypeOf(t),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&&(e=g(e)),s.createFolders&&(i=p(e))&&m.call(this,i,!0);var d="string"===r&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!d),(t instanceof c&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",r="string");var v;v=t instanceof c||t instanceof a?t:h.isNode&&h.isStream(t)?new f(e,t):o.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var y=new u(e,v,s);this.files[e]=y}var r=e("./utf8"),o=e("./utils"),a=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),l=e("./defaults"),c=e("./compressedObject"),u=e("./zipObject"),d=e("./generate"),h=e("./nodejsUtils"),f=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},g=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},m=function(e,t){return t=void 0!==t?t:l.createFolders,e=g(e),this.files[e]||i.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,i;for(t in this.files)i=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,i)},filter:function(e){var t=[];return this.forEach((function(n,i){e(n,i)&&t.push(i)})),t},file:function(e,t,n){if(1!==arguments.length)return e=this.root+e,i.call(this,e,t,n),this;if(v(e)){var r=e;return this.filter((function(e,t){return!t.dir&&r.test(e)}))}var o=this.files[this.root+e];return o&&!o.dir?o:null},folder:function(e){if(!e)return this;if(v(e))return this.filter((function(t,n){return n.dir&&e.test(t)}));var t=this.root+e,n=m.call(this,t),i=this.clone();return i.root=n.name,i},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter((function(t,n){return n.name.slice(0,e.length)===e})),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(e){var t,n={};try{if((n=o.extend(e||{},{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||"";t=d.generateWorker(this,n,i)}catch(e){(t=new a("error")).error(e)}return new s(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.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(e,t,n){"use strict";t.exports=e("stream")},{stream:void 0}],17:[function(e,t,n){"use strict";var i=e("./DataReader");function r(e){i.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(r,i),r.prototype.byteAt=function(e){return this.data[this.zero+e]},r.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),i=e.charCodeAt(2),r=e.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===t&&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(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),i=e.charCodeAt(2),r=e.charCodeAt(3),o=this.readData(4);return t===o[0]&&n===o[1]&&i===o[2]&&r===o[3]},r.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){"use strict";var i=e("../utils");function r(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}r.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return i.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=r},{"../utils":32}],19:[function(e,t,n){"use strict";var i=e("./Uint8ArrayReader");function r(e){i.call(this,e)}e("../utils").inherits(r,i),r.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){"use strict";var i=e("./DataReader");function r(e){i.call(this,e)}e("../utils").inherits(r,i),r.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},r.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},r.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},r.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){"use strict";var i=e("./ArrayReader");function r(e){i.call(this,e)}e("../utils").inherits(r,i),r.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){"use strict";var i=e("../utils"),r=e("../support"),o=e("./ArrayReader"),a=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=i.getTypeOf(e);return i.checkSupport(t),"string"!==t||r.uint8array?"nodebuffer"===t?new s(e):r.uint8array?new l(i.transformTo("uint8array",e)):new o(i.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,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(e,t,n){"use strict";var i=e("./GenericWorker"),r=e("../utils");function o(e){i.call(this,"ConvertWorker to "+e),this.destType=e}r.inherits(o,i),o.prototype.processChunk=function(e){this.push({data:r.transformTo(this.destType,e.data),meta:e.meta})},t.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){"use strict";var i=e("./GenericWorker"),r=e("../crc32");function o(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(o,i),o.prototype.processChunk=function(e){this.streamInfo.crc32=r(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){"use strict";var i=e("../utils"),r=e("./GenericWorker");function o(e){r.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}i.inherits(o,r),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}r.prototype.processChunk.call(this,e)},t.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){"use strict";var i=e("../utils"),r=e("./GenericWorker");function o(e){r.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=i.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}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 e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){"use strict";function i(e){this.name=e||"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(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),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 e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},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 e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=i},{}],29:[function(e,t,n){"use strict";var i=e("../utils"),r=e("./ConvertWorker"),o=e("./GenericWorker"),a=e("../base64"),s=e("../support"),l=e("../external"),c=null;if(s.nodestream)try{c=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function u(e,t,n){var a=t;switch(t){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=t,this._mimeType=n,i.checkSupport(a),this._worker=e.pipe(new r(a)),e.lock()}catch(e){this._worker=new o("error"),this._worker.error(e)}}u.prototype={accumulate:function(e){return function(e,t){return new l.Promise((function(n,r){var o=[],s=e._internalType,l=e._outputType,c=e._mimeType;e.on("data",(function(e,n){o.push(e),t&&t(n)})).on("error",(function(e){o=[],r(e)})).on("end",(function(){try{var e=function(e,t,n){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),n);case"base64":return a.encode(t);default:return i.transformTo(e,t)}}(l,function(e,t){var n,i=0,r=null,o=0;for(n=0;n<t.length;n++)o+=t[n].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(r=new Uint8Array(o),n=0;n<t.length;n++)r.set(t[n],i),i+=t[n].length;return r;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(s,o),c);n(e)}catch(e){r(e)}o=[]})).resume()}))}(this,e)},on:function(e,t){var n=this;return"data"===e?this._worker.on(e,(function(e){t.call(n,e.data,e.meta)})):this._worker.on(e,(function(){i.delay(t,arguments,n)})),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=u},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer="undefined"!=typeof Buffer,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var i=new ArrayBuffer(0);try{n.blob=0===new Blob([i],{type:"application/zip"}).size}catch(e){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(i),n.blob=0===r.getBlob("application/zip").size}catch(e){n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch(e){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){"use strict";for(var i=e("./utils"),r=e("./support"),o=e("./nodejsUtils"),a=e("./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(e){return r.nodebuffer?o.newBufferFrom(e,"utf-8"):function(e){var t,n,i,o,a,s=e.length,l=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=r.uint8array?new Uint8Array(l):new Array(l),o=a=0;a<l;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t}(e)},n.utf8decode=function(e){return r.nodebuffer?i.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,r,o,a=e.length,l=new Array(2*a);for(t=n=0;t<a;)if((r=e[t++])<128)l[n++]=r;else if(4<(o=s[r]))l[n++]=65533,t+=o-1;else{for(r&=2===o?31:3===o?15:7;1<o&&t<a;)r=r<<6|63&e[t++],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)}(e=i.transformTo(r.uint8array?"uint8array":"array",e))},i.inherits(c,a),c.prototype.processChunk=function(e){var t=i.transformTo(r.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var o=t;(t=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),t.set(o,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var a=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}(t),l=t;a!==t.length&&(r.uint8array?(l=t.subarray(0,a),this.leftOver=t.subarray(a,t.length)):(l=t.slice(0,a),this.leftOver=t.slice(a,t.length))),this.push({data:n.utf8decode(l),meta:e.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(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){"use strict";var i=e("./support"),r=e("./base64"),o=e("./nodejsUtils"),a=e("./external");function s(e){return e}function l(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e("setimmediate"),n.newBlob=function(e,t){n.checkSupport("blob");try{return new Blob([e],{type:t})}catch(n){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(e),i.getBlob(t)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(e,t,n){var i=[],r=0,o=e.length;if(o<=n)return String.fromCharCode.apply(null,e);for(;r<o;)"array"===t||"nodebuffer"===t?i.push(String.fromCharCode.apply(null,e.slice(r,Math.min(r+n,o)))):i.push(String.fromCharCode.apply(null,e.subarray(r,Math.min(r+n,o)))),r+=n;return i.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(e){return!1}}()}};function u(e){var t=65536,i=n.getTypeOf(e),r=!0;if("uint8array"===i?r=c.applyCanBeUsed.uint8array:"nodebuffer"===i&&(r=c.applyCanBeUsed.nodebuffer),r)for(;1<t;)try{return c.stringifyByChunk(e,i,t)}catch(e){t=Math.floor(t/2)}return c.stringifyByChar(e)}function d(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=u;var h={};h.string={string:s,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return h.string.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:function(e){return l(e,o.allocBuffer(e.length))}},h.array={string:u,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(e)}},h.arraybuffer={string:function(e){return u(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(new Uint8Array(e))}},h.uint8array={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return o.newBufferFrom(e)}},h.nodebuffer={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return h.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:s},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var i=n.getTypeOf(t);return h[i][e](t)},n.resolve=function(e){for(var t=e.split("/"),n=[],i=0;i<t.length;i++){var r=t[i];"."===r||""===r&&0!==i&&i!==t.length-1||(".."===r?n.pop():n.push(r))}return n.join("/")},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":i.nodebuffer&&o.isBuffer(e)?"nodebuffer":i.uint8array&&e instanceof Uint8Array?"uint8array":i.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!i[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,i="";for(n=0;n<(e||"").length;n++)i+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return i},n.delay=function(e,t,n){setImmediate((function(){e.apply(n||null,t||[])}))},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,o,s,c){return a.Promise.resolve(t).then((function(e){return i.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new a.Promise((function(t,n){var i=new FileReader;i.onload=function(e){t(e.target.result)},i.onerror=function(e){n(e.target.error)},i.readAsArrayBuffer(e)})):e})).then((function(t){var u=n.getTypeOf(t);return u?("arraybuffer"===u?t=n.transformTo("uint8array",t):"string"===u&&(c?t=r.decode(t):o&&!0!==s&&(t=function(e){return l(e,i.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):a.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,n){"use strict";var i=e("./reader/readerFor"),r=e("./utils"),o=e("./signature"),a=e("./zipEntry"),s=e("./support");function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+r.pretty(t)+", expected "+r.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var i=this.reader.readString(4)===t;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 e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",n=r.transformTo(t,e);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 e,t,n,i=this.zip64EndOfCentralSize-44;0<i;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,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 e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(e=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);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 e=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(e<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(e);var t=e;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,(e=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(e),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=t-n;if(0<i)this.isSignature(t,o.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(e){this.reader=i(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){"use strict";var i=e("./reader/readerFor"),r=e("./utils"),o=e("./compressedObject"),a=e("./crc32"),s=e("./utf8"),l=e("./compressions"),c=e("./support");function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.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===(t=function(e){for(var t in l)if(Object.prototype.hasOwnProperty.call(l,t)&&l[t].magic===e)return l[t];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,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=i(this.extraFields[1].value);this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,i,r=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<r;)t=e.readInt(2),n=e.readInt(2),i=e.readData(n),this.extraFields[t]={id:t,length:n,value:i};e.setIndex(r)},handleUTF8:function(){var e=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=r.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var i=this.findExtraFieldUnicodeComment();if(null!==i)this.fileCommentStr=i;else{var o=r.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=i(e.value);return 1!==t.readInt(1)||a(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=i(e.value);return 1!==t.readInt(1)||a(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){"use strict";function i(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var r=e("./stream/StreamHelper"),o=e("./stream/DataWorker"),a=e("./utf8"),s=e("./compressedObject"),l=e("./stream/GenericWorker");i.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var i="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var o=!this._dataBinary;o&&!i&&(t=t.pipe(new a.Utf8EncodeWorker)),!o&&i&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(e){(t=new l("error")).error(e)}return new r(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_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.")},d=0;d<c.length;d++)i.prototype[c[d]]=u;t.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,i){(function(e){"use strict";var n,i,r=e.MutationObserver||e.WebKitMutationObserver;if(r){var o=0,a=new r(u),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var l=new e.MessageChannel;l.port1.onmessage=u,n=function(){l.port2.postMessage(0)}}var c=[];function u(){var e,t;i=!0;for(var n=c.length;n;){for(t=c,c=[],e=-1;++e<n;)t[e]();n=c.length}i=!1}t.exports=function(e){1!==c.push(e)||i||n()}}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){"use strict";var i=e("immediate");function r(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==r&&f(this,e)}function u(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){i((function(){var i;try{i=t(n)}catch(i){return o.reject(e,i)}i===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,i)}))}function h(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function f(e,t){var n=!1;function i(t){n||(n=!0,o.reject(e,t))}function r(t){n||(n=!0,o.resolve(e,t))}var a=p((function(){t(r,i)}));"error"===a.status&&i(a.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}(t.exports=c).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))},c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var n=new this.constructor(r);return this.state!==l?d(n,this.state===s?e:t,this.outcome):this.queue.push(new u(n,e,t)),n},u.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){o.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=p(h,t);if("error"===n.status)return o.reject(e,n.value);var i=n.value;if(i)f(e,i);else{e.state=s,e.outcome=t;for(var r=-1,a=e.queue.length;++r<a;)e.queue[r].callFulfilled(t)}return e},o.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,i=e.queue.length;++n<i;)e.queue[n].callRejected(t);return e},c.resolve=function(e){return e instanceof this?e:o.resolve(new this(r),e)},c.reject=function(e){var t=new this(r);return o.reject(t,e)},c.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.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(e[l],l);return c;function u(e,r){t.resolve(e).then((function(e){a[r]=e,++s!==n||i||(i=!0,o.resolve(c,a))}),(function(e){i||(i=!0,o.reject(c,e))}))}},c.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,n=!1;if(!t)return this.resolve([]);for(var i,a=-1,s=new this(r);++a<t;)i=e[a],this.resolve(i).then((function(e){n||(n=!0,o.resolve(s,e))}),(function(e){n||(n=!0,o.reject(s,e))}));return s}},{immediate:36}],38:[function(e,t,n){"use strict";var i={};(0,e("./lib/utils/common").assign)(i,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){"use strict";var i=e("./zlib/deflate"),r=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString,c=0,u=-1,d=0,h=8;function f(e){if(!(this instanceof f))return new f(e);this.options=r.assign({level:u,method:h,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.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,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==c)throw new Error(a[n]);if(t.header&&i.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=i.deflateSetDictionary(this.strm,p))!==c)throw new Error(a[n]);this._dict_set=!0}}function p(e,t){var n=new f(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}f.prototype.push=function(e,t){var n,a,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=o.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,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))},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=f,n.deflate=p,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){"use strict";var i=e("./zlib/inflate"),r=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.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,t.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);this.header=new c,i.inflateGetHeader(this.strm,this.header)}function h(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,l,c,d,h,f=this.strm,p=this.options.chunkSize,g=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?f.input=o.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new r.Buf8(p),f.next_out=0,f.avail_out=p),(n=i.inflate(f,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&g&&(h="string"==typeof g?o.string2buf(g):"[object ArrayBuffer]"===u.call(g)?new Uint8Array(g):g,n=i.inflateSetDictionary(this.strm,h)),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);f.next_out&&(0!==f.avail_out&&n!==a.Z_STREAM_END&&(0!==f.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(f.output,f.next_out),c=f.next_out-l,d=o.buf2string(f.output,l),f.next_out=c,f.avail_out=p-c,c&&r.arraySet(f.output,f.output,l,c,0),this.onData(d)):this.onData(r.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(m=!0)}while((0<f.avail_in||0===f.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),!(f.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=h,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},n.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,n,i,r){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+i),r);else for(var o=0;o<i;o++)e[r+o]=t[n+o]},flattenChunks:function(e){var t,n,i,r,o,a;for(t=i=0,n=e.length;t<n;t++)i+=e[t].length;for(a=new Uint8Array(i),t=r=0,n=e.length;t<n;t++)o=e[t],a.set(o,r),r+=o.length;return a}},o={arraySet:function(e,t,n,i,r){for(var o=0;o<i;o++)e[r+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(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(e,t,n){"use strict";var i=e("./common"),r=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){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(e,t){if(t<65537&&(e.subarray&&o||!e.subarray&&r))return String.fromCharCode.apply(null,i.shrinkBuf(e,t));for(var n="",a=0;a<t;a++)n+=String.fromCharCode(e[a]);return n}a[254]=a[254]=1,n.string2buf=function(e){var t,n,r,o,a,s=e.length,l=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new i.Buf8(l),o=a=0;a<l;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new i.Buf8(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,i,r,o,s=t||e.length,c=new Array(2*s);for(n=i=0;n<s;)if((r=e[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&e[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(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){"use strict";t.exports=function(e,t,n,i){for(var r=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;o=o+(r=r+t[i++]|0)|0,--a;);r%=65521,o%=65521}return r|o<<16|0}},{}],44:[function(e,t,n){"use strict";t.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(e,t,n){"use strict";var i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,r){var o=i,a=r+n;e^=-1;for(var s=r;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){"use strict";var i,r=e("../utils/common"),o=e("./trees"),a=e("./adler32"),s=e("./crc32"),l=e("./messages"),c=0,u=0,d=-2,h=2,f=8,p=286,g=30,m=19,v=2*p+1,y=15,b=3,x=258,w=x+b+1,A=42,_=113;function C(e,t){return e.msg=l[t],t}function M(e){return(e<<1)-(4<e?9:0)}function k(e){for(var t=e.length;0<=--t;)e[t]=0}function S(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(r.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function I(e,t){o._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,S(e.strm)}function L(e,t){e.pending_buf[e.pending++]=t}function T(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function D(e,t){var n,i,r=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-w?e.strstart-(e.w_size-w):0,c=e.window,u=e.w_mask,d=e.prev,h=e.strstart+x,f=c[o+a-1],p=c[o+a];e.prev_length>=e.good_match&&(r>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+a]===p&&c[n+a-1]===f&&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<h);if(i=x-(h-o),o=h-x,a<i){if(e.match_start=t,s<=(a=i))break;f=c[o+a-1],p=c[o+a]}}}while((t=d[t&u])>l&&0!=--r);return a<=e.lookahead?a:e.lookahead}function O(e){var t,n,i,o,l,c,u,d,h,f,p=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-w)){for(r.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=n=e.hash_size;i=e.head[--t],e.head[t]=p<=i?i-p:0,--n;);for(t=n=p;i=e.prev[--t],e.prev[t]=p<=i?i-p:0,--n;);o+=p}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,d=e.strstart+e.lookahead,f=void 0,(h=o)<(f=c.avail_in)&&(f=h),n=0===f?0:(c.avail_in-=f,r.arraySet(u,c.input,c.next_in,f,d),1===c.state.wrap?c.adler=a(c.adler,u,f,d):2===c.state.wrap&&(c.adler=s(c.adler,u,f,d)),c.next_in+=f,c.total_in+=f,f),e.lookahead+=n,e.lookahead+e.insert>=b)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+b-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<b)););}while(e.lookahead<w&&0!==e.strm.avail_in)}function j(e,t){for(var n,i;;){if(e.lookahead<w){if(O(e),e.lookahead<w&&t===c)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=b&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+b-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-w&&(e.match_length=D(e,n)),e.match_length>=b)if(i=o._tr_tally(e,e.strstart-e.match_start,e.match_length-b),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=b){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+b-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(I(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<b-1?e.strstart:b-1,4===t?(I(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(I(e,!1),0===e.strm.avail_out)?1:2}function N(e,t){for(var n,i,r;;){if(e.lookahead<w){if(O(e),e.lookahead<w&&t===c)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=b&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+b-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=b-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-w&&(e.match_length=D(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===b&&4096<e.strstart-e.match_start)&&(e.match_length=b-1)),e.prev_length>=b&&e.match_length<=e.prev_length){for(r=e.strstart+e.lookahead-b,i=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-b),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=r&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+b-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=b-1,e.strstart++,i&&(I(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((i=o._tr_tally(e,0,e.window[e.strstart-1]))&&I(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<b-1?e.strstart:b-1,4===t?(I(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(I(e,!1),0===e.strm.avail_out)?1:2}function E(e,t,n,i,r){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=i,this.func=r}function P(){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=f,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*v),this.dyn_dtree=new r.Buf16(2*(2*g+1)),this.bl_tree=new r.Buf16(2*(2*m+1)),k(this.dyn_ltree),k(this.dyn_dtree),k(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(y+1),this.heap=new r.Buf16(2*p+1),k(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*p+1),k(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 F(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=h,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?A:_,e.adler=2===t.wrap?0:1,t.last_flush=c,o._tr_init(t),u):C(e,d)}function z(e){var t=F(e);return t===u&&function(e){e.window_size=2*e.w_size,k(e.head),e.max_lazy_match=i[e.level].max_lazy,e.good_match=i[e.level].good_length,e.nice_match=i[e.level].nice_length,e.max_chain_length=i[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=b-1,e.match_available=0,e.ins_h=0}(e.state),t}function R(e,t,n,i,o,a){if(!e)return d;var s=1;if(-1===t&&(t=6),i<0?(s=0,i=-i):15<i&&(s=2,i-=16),o<1||9<o||n!==f||i<8||15<i||t<0||9<t||a<0||4<a)return C(e,d);8===i&&(i=9);var l=new P;return(e.state=l).strm=e,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+b-1)/b),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=t,l.strategy=a,l.method=n,z(e)}i=[new E(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(O(e),0===e.lookahead&&t===c)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+n;if((0===e.strstart||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,I(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-w&&(I(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(I(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(I(e,!1),e.strm.avail_out),1)})),new E(4,4,8,4,j),new E(4,5,16,8,j),new E(4,6,32,32,j),new E(4,4,16,16,N),new E(8,16,32,32,N),new E(8,16,128,128,N),new E(8,32,128,256,N),new E(32,128,258,1024,N),new E(32,258,258,4096,N)],n.deflateInit=function(e,t){return R(e,t,f,15,8,0)},n.deflateInit2=R,n.deflateReset=z,n.deflateResetKeep=F,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?d:(e.state.gzhead=t,u):d},n.deflate=function(e,t){var n,r,a,l;if(!e||!e.state||5<t||t<0)return e?C(e,d):d;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||666===r.status&&4!==t)return C(e,0===e.avail_out?-5:d);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===A)if(2===r.wrap)e.adler=0,L(r,31),L(r,139),L(r,8),r.gzhead?(L(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)),L(r,255&r.gzhead.time),L(r,r.gzhead.time>>8&255),L(r,r.gzhead.time>>16&255),L(r,r.gzhead.time>>24&255),L(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),L(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(L(r,255&r.gzhead.extra.length),L(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=s(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(L(r,0),L(r,0),L(r,0),L(r,0),L(r,0),L(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),L(r,3),r.status=_);else{var h=f+(r.w_bits-8<<4)<<8;h|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(h|=32),h+=31-h%31,r.status=_,T(r,h),0!==r.strstart&&(T(r,e.adler>>>16),T(r,65535&e.adler)),e.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&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),S(e),a=r.pending,r.pending!==r.pending_buf_size));)L(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.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&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),S(e),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,L(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.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&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),S(e),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,L(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.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&&S(e),r.pending+2<=r.pending_buf_size&&(L(r,255&e.adler),L(r,e.adler>>8&255),e.adler=0,r.status=_)):r.status=_),0!==r.pending){if(S(e),0===e.avail_out)return r.last_flush=-1,u}else if(0===e.avail_in&&M(t)<=M(n)&&4!==t)return C(e,-5);if(666===r.status&&0!==e.avail_in)return C(e,-5);if(0!==e.avail_in||0!==r.lookahead||t!==c&&666!==r.status){var p=2===r.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(O(e),0===e.lookahead)){if(t===c)return 1;break}if(e.match_length=0,n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(I(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(I(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(I(e,!1),0===e.strm.avail_out)?1:2}(r,t):3===r.strategy?function(e,t){for(var n,i,r,a,s=e.window;;){if(e.lookahead<=x){if(O(e),e.lookahead<=x&&t===c)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=b&&0<e.strstart&&(i=s[r=e.strstart-1])===s[++r]&&i===s[++r]&&i===s[++r]){a=e.strstart+x;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);e.match_length=x-(a-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=b?(n=o._tr_tally(e,1,e.match_length-b),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(I(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(I(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(I(e,!1),0===e.strm.avail_out)?1:2}(r,t):i[r.level].func(r,t);if(3!==p&&4!==p||(r.status=666),1===p||3===p)return 0===e.avail_out&&(r.last_flush=-1),u;if(2===p&&(1===t?o._tr_align(r):5!==t&&(o._tr_stored_block(r,0,0,!1),3===t&&(k(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),S(e),0===e.avail_out))return r.last_flush=-1,u}return 4!==t?u:r.wrap<=0?1:(2===r.wrap?(L(r,255&e.adler),L(r,e.adler>>8&255),L(r,e.adler>>16&255),L(r,e.adler>>24&255),L(r,255&e.total_in),L(r,e.total_in>>8&255),L(r,e.total_in>>16&255),L(r,e.total_in>>24&255)):(T(r,e.adler>>>16),T(r,65535&e.adler)),S(e),0<r.wrap&&(r.wrap=-r.wrap),0!==r.pending?u:1)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==A&&69!==t&&73!==t&&91!==t&&103!==t&&t!==_&&666!==t?C(e,d):(e.state=null,t===_?C(e,-3):u):d},n.deflateSetDictionary=function(e,t){var n,i,o,s,l,c,h,f,p=t.length;if(!e||!e.state)return d;if(2===(s=(n=e.state).wrap)||1===s&&n.status!==A||n.lookahead)return d;for(1===s&&(e.adler=a(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(k(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new r.Buf8(n.w_size),r.arraySet(f,t,p-n.w_size,n.w_size,0),t=f,p=n.w_size),l=e.avail_in,c=e.next_in,h=e.input,e.avail_in=p,e.next_in=0,e.input=t,O(n);n.lookahead>=b;){for(i=n.strstart,o=n.lookahead-(b-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+b-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=b-1,O(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=b-1,n.match_available=0,e.next_in=c,e.input=h,e.avail_in=l,n.wrap=s,u},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){"use strict";t.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(e,t,n){"use strict";t.exports=function(e,t){var n,i,r,o,a,s,l,c,u,d,h,f,p,g,m,v,y,b,x,w,A,_,C,M,k;n=e.state,i=e.next_in,M=e.input,r=i+(e.avail_in-5),o=e.next_out,k=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,d=n.wnext,h=n.window,f=n.hold,p=n.bits,g=n.lencode,m=n.distcode,v=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{p<15&&(f+=M[i++]<<p,p+=8,f+=M[i++]<<p,p+=8),b=g[f&v];t:for(;;){if(f>>>=x=b>>>24,p-=x,0==(x=b>>>16&255))k[o++]=65535&b;else{if(!(16&x)){if(0==(64&x)){b=g[(65535&b)+(f&(1<<x)-1)];continue t}if(32&x){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}w=65535&b,(x&=15)&&(p<x&&(f+=M[i++]<<p,p+=8),w+=f&(1<<x)-1,f>>>=x,p-=x),p<15&&(f+=M[i++]<<p,p+=8,f+=M[i++]<<p,p+=8),b=m[f&y];n:for(;;){if(f>>>=x=b>>>24,p-=x,!(16&(x=b>>>16&255))){if(0==(64&x)){b=m[(65535&b)+(f&(1<<x)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(A=65535&b,p<(x&=15)&&(f+=M[i++]<<p,(p+=8)<x&&(f+=M[i++]<<p,p+=8)),l<(A+=f&(1<<x)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(f>>>=x,p-=x,(x=o-a)<A){if(u<(x=A-x)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(C=h,(_=0)===d){if(_+=c-x,x<w){for(w-=x;k[o++]=h[_++],--x;);_=o-A,C=k}}else if(d<x){if(_+=c+d-x,(x-=d)<w){for(w-=x;k[o++]=h[_++],--x;);if(_=0,d<w){for(w-=x=d;k[o++]=h[_++],--x;);_=o-A,C=k}}}else if(_+=d-x,x<w){for(w-=x;k[o++]=h[_++],--x;);_=o-A,C=k}for(;2<w;)k[o++]=C[_++],k[o++]=C[_++],k[o++]=C[_++],w-=3;w&&(k[o++]=C[_++],1<w&&(k[o++]=C[_++]))}else{for(_=o-A;k[o++]=k[_++],k[o++]=k[_++],k[o++]=k[_++],2<(w-=3););w&&(k[o++]=k[_++],1<w&&(k[o++]=k[_++]))}break}}break}}while(i<r&&o<s);i-=w=p>>3,f&=(1<<(p-=w<<3))-1,e.next_in=i,e.next_out=o,e.avail_in=i<r?r-i+5:5-(i-r),e.avail_out=o<s?s-o+257:257-(o-s),n.hold=f,n.bits=p}},{}],49:[function(e,t,n){"use strict";var i=e("../utils/common"),r=e("./adler32"),o=e("./crc32"),a=e("./inffast"),s=e("./inftrees"),l=0,c=-2,u=1,d=852,h=592;function f(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function p(){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 g(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=u,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new i.Buf32(d),t.distcode=t.distdyn=new i.Buf32(h),t.sane=1,t.back=-1,l):c}function m(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,g(e)):c}function v(e,t){var n,i;return e&&e.state?(i=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?c:(null!==i.window&&i.wbits!==t&&(i.window=null),i.wrap=n,i.wbits=t,m(e))):c}function y(e,t){var n,i;return e?(i=new p,(e.state=i).window=null,(n=v(e,t))!==l&&(e.state=null),n):c}var b,x,w=!0;function A(e){if(w){var t;for(b=new i.Buf32(512),x=new i.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,b,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,x,0,e.work,{bits:5}),w=!1}e.lencode=b,e.lenbits=9,e.distcode=x,e.distbits=5}function _(e,t,n,r){var o,a=e.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,t,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,t,n-r,o,a.wnext),(r-=o)?(i.arraySet(a.window,t,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=m,n.inflateReset2=v,n.inflateResetKeep=g,n.inflateInit=function(e){return y(e,15)},n.inflateInit2=y,n.inflate=function(e,t){var n,d,h,p,g,m,v,y,b,x,w,C,M,k,S,I,L,T,D,O,j,N,E,P,F=0,z=new i.Buf8(4),R=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return c;12===(n=e.state).mode&&(n.mode=13),g=e.next_out,h=e.output,v=e.avail_out,p=e.next_in,d=e.input,m=e.avail_in,y=n.hold,b=n.bits,x=m,w=v,N=l;e:for(;;)switch(n.mode){case u:if(0===n.wrap){n.mode=13;break}for(;b<16;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if(2&n.wrap&&35615===y){z[n.check=0]=255&y,z[1]=y>>>8&255,n.check=o(n.check,z,2,0),b=y=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&y)<<8)+(y>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&y)){e.msg="unknown compression method",n.mode=30;break}if(b-=4,j=8+(15&(y>>>=4)),0===n.wbits)n.wbits=j;else if(j>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<j,e.adler=n.check=1,n.mode=512&y?10:12,b=y=0;break;case 2:for(;b<16;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if(n.flags=y,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=y>>8&1),512&n.flags&&(z[0]=255&y,z[1]=y>>>8&255,n.check=o(n.check,z,2,0)),b=y=0,n.mode=3;case 3:for(;b<32;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}n.head&&(n.head.time=y),512&n.flags&&(z[0]=255&y,z[1]=y>>>8&255,z[2]=y>>>16&255,z[3]=y>>>24&255,n.check=o(n.check,z,4,0)),b=y=0,n.mode=4;case 4:for(;b<16;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}n.head&&(n.head.xflags=255&y,n.head.os=y>>8),512&n.flags&&(z[0]=255&y,z[1]=y>>>8&255,n.check=o(n.check,z,2,0)),b=y=0,n.mode=5;case 5:if(1024&n.flags){for(;b<16;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}n.length=y,n.head&&(n.head.extra_len=y),512&n.flags&&(z[0]=255&y,z[1]=y>>>8&255,n.check=o(n.check,z,2,0)),b=y=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(m<(C=n.length)&&(C=m),C&&(n.head&&(j=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),i.arraySet(n.head.extra,d,p,C,j)),512&n.flags&&(n.check=o(n.check,d,C,p)),m-=C,p+=C,n.length-=C),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===m)break e;for(C=0;j=d[p+C++],n.head&&j&&n.length<65536&&(n.head.name+=String.fromCharCode(j)),j&&C<m;);if(512&n.flags&&(n.check=o(n.check,d,C,p)),m-=C,p+=C,j)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===m)break e;for(C=0;j=d[p+C++],n.head&&j&&n.length<65536&&(n.head.comment+=String.fromCharCode(j)),j&&C<m;);if(512&n.flags&&(n.check=o(n.check,d,C,p)),m-=C,p+=C,j)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;b<16;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if(y!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}b=y=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;b<32;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}e.adler=n.check=f(y),b=y=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=g,e.avail_out=v,e.next_in=p,e.avail_in=m,n.hold=y,n.bits=b,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){y>>>=7&b,b-=7&b,n.mode=27;break}for(;b<3;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}switch(n.last=1&y,b-=1,3&(y>>>=1)){case 0:n.mode=14;break;case 1:if(A(n),n.mode=20,6!==t)break;y>>>=2,b-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}y>>>=2,b-=2;break;case 14:for(y>>>=7&b,b-=7&b;b<32;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if((65535&y)!=(y>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&y,b=y=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(C=n.length){if(m<C&&(C=m),v<C&&(C=v),0===C)break e;i.arraySet(h,d,p,C,g),m-=C,p+=C,v-=C,g+=C,n.length-=C;break}n.mode=12;break;case 17:for(;b<14;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if(n.nlen=257+(31&y),y>>>=5,b-=5,n.ndist=1+(31&y),y>>>=5,b-=5,n.ncode=4+(15&y),y>>>=4,b-=4,286<n.nlen||30<n.ndist){e.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(;b<3;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}n.lens[R[n.have++]]=7&y,y>>>=3,b-=3}for(;n.have<19;)n.lens[R[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,E={bits:n.lenbits},N=s(0,n.lens,0,19,n.lencode,0,n.work,E),n.lenbits=E.bits,N){e.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(;I=(F=n.lencode[y&(1<<n.lenbits)-1])>>>16&255,L=65535&F,!((S=F>>>24)<=b);){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if(L<16)y>>>=S,b-=S,n.lens[n.have++]=L;else{if(16===L){for(P=S+2;b<P;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if(y>>>=S,b-=S,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}j=n.lens[n.have-1],C=3+(3&y),y>>>=2,b-=2}else if(17===L){for(P=S+3;b<P;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}b-=S,j=0,C=3+(7&(y>>>=S)),y>>>=3,b-=3}else{for(P=S+7;b<P;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}b-=S,j=0,C=11+(127&(y>>>=S)),y>>>=7,b-=7}if(n.have+C>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;C--;)n.lens[n.have++]=j}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,E={bits:n.lenbits},N=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,E),n.lenbits=E.bits,N){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,E={bits:n.distbits},N=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,E),n.distbits=E.bits,N){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=m&&258<=v){e.next_out=g,e.avail_out=v,e.next_in=p,e.avail_in=m,n.hold=y,n.bits=b,a(e,w),g=e.next_out,h=e.output,v=e.avail_out,p=e.next_in,d=e.input,m=e.avail_in,y=n.hold,b=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;I=(F=n.lencode[y&(1<<n.lenbits)-1])>>>16&255,L=65535&F,!((S=F>>>24)<=b);){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if(I&&0==(240&I)){for(T=S,D=I,O=L;I=(F=n.lencode[O+((y&(1<<T+D)-1)>>T)])>>>16&255,L=65535&F,!(T+(S=F>>>24)<=b);){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}y>>>=T,b-=T,n.back+=T}if(y>>>=S,b-=S,n.back+=S,n.length=L,0===I){n.mode=26;break}if(32&I){n.back=-1,n.mode=12;break}if(64&I){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&I,n.mode=22;case 22:if(n.extra){for(P=n.extra;b<P;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}n.length+=y&(1<<n.extra)-1,y>>>=n.extra,b-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;I=(F=n.distcode[y&(1<<n.distbits)-1])>>>16&255,L=65535&F,!((S=F>>>24)<=b);){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if(0==(240&I)){for(T=S,D=I,O=L;I=(F=n.distcode[O+((y&(1<<T+D)-1)>>T)])>>>16&255,L=65535&F,!(T+(S=F>>>24)<=b);){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}y>>>=T,b-=T,n.back+=T}if(y>>>=S,b-=S,n.back+=S,64&I){e.msg="invalid distance code",n.mode=30;break}n.offset=L,n.extra=15&I,n.mode=24;case 24:if(n.extra){for(P=n.extra;b<P;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}n.offset+=y&(1<<n.extra)-1,y>>>=n.extra,b-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===v)break e;if(C=w-v,n.offset>C){if((C=n.offset-C)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}M=C>n.wnext?(C-=n.wnext,n.wsize-C):n.wnext-C,C>n.length&&(C=n.length),k=n.window}else k=h,M=g-n.offset,C=n.length;for(v<C&&(C=v),v-=C,n.length-=C;h[g++]=k[M++],--C;);0===n.length&&(n.mode=21);break;case 26:if(0===v)break e;h[g++]=n.length,v--,n.mode=21;break;case 27:if(n.wrap){for(;b<32;){if(0===m)break e;m--,y|=d[p++]<<b,b+=8}if(w-=v,e.total_out+=w,n.total+=w,w&&(e.adler=n.check=n.flags?o(n.check,h,w,g-w):r(n.check,h,w,g-w)),w=v,(n.flags?y:f(y))!==n.check){e.msg="incorrect data check",n.mode=30;break}b=y=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;b<32;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if(y!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}b=y=0}n.mode=29;case 29:N=1;break e;case 30:N=-3;break e;case 31:return-4;default:return c}return e.next_out=g,e.avail_out=v,e.next_in=p,e.avail_in=m,n.hold=y,n.bits=b,(n.wsize||w!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&_(e,e.output,e.next_out,w-e.avail_out)?(n.mode=31,-4):(x-=e.avail_in,w-=e.avail_out,e.total_in+=x,e.total_out+=w,n.total+=w,n.wrap&&w&&(e.adler=n.check=n.flags?o(n.check,h,w,e.next_out-w):r(n.check,h,w,e.next_out-w)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==x&&0===w||4===t)&&N===l&&(N=-5),N)},n.inflateEnd=function(e){if(!e||!e.state)return c;var t=e.state;return t.window&&(t.window=null),e.state=null,l},n.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?c:((n.head=t).done=!1,l):c},n.inflateSetDictionary=function(e,t){var n,i=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?c:11===n.mode&&r(1,t,i,0)!==n.check?-3:_(e,t,i,i)?(n.mode=31,-4):(n.havedict=1,l):c},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){"use strict";var i=e("../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];t.exports=function(e,t,n,l,c,u,d,h){var f,p,g,m,v,y,b,x,w,A=h.bits,_=0,C=0,M=0,k=0,S=0,I=0,L=0,T=0,D=0,O=0,j=null,N=0,E=new i.Buf16(16),P=new i.Buf16(16),F=null,z=0;for(_=0;_<=15;_++)E[_]=0;for(C=0;C<l;C++)E[t[n+C]]++;for(S=A,k=15;1<=k&&0===E[k];k--);if(k<S&&(S=k),0===k)return c[u++]=20971520,c[u++]=20971520,h.bits=1,0;for(M=1;M<k&&0===E[M];M++);for(S<M&&(S=M),_=T=1;_<=15;_++)if(T<<=1,(T-=E[_])<0)return-1;if(0<T&&(0===e||1!==k))return-1;for(P[1]=0,_=1;_<15;_++)P[_+1]=P[_]+E[_];for(C=0;C<l;C++)0!==t[n+C]&&(d[P[t[n+C]]++]=C);if(y=0===e?(j=F=d,19):1===e?(j=r,N-=257,F=o,z-=257,256):(j=a,F=s,-1),_=M,v=u,L=C=O=0,g=-1,m=(D=1<<(I=S))-1,1===e&&852<D||2===e&&592<D)return 1;for(;;){for(b=_-L,w=d[C]<y?(x=0,d[C]):d[C]>y?(x=F[z+d[C]],j[N+d[C]]):(x=96,0),f=1<<_-L,M=p=1<<I;c[v+(O>>L)+(p-=f)]=b<<24|x<<16|w|0,0!==p;);for(f=1<<_-1;O&f;)f>>=1;if(0!==f?(O&=f-1,O+=f):O=0,C++,0==--E[_]){if(_===k)break;_=t[n+d[C]]}if(S<_&&(O&m)!==g){for(0===L&&(L=S),v+=M,T=1<<(I=_-L);I+L<k&&!((T-=E[I+L])<=0);)I++,T<<=1;if(D+=1<<I,1===e&&852<D||2===e&&592<D)return 1;c[g=O&m]=S<<24|I<<16|v-u|0}}return 0!==O&&(c[v+O]=_-L<<24|64<<16|0),h.bits=S,0}},{"../utils/common":41}],51:[function(e,t,n){"use strict";t.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(e,t,n){"use strict";var i=e("../utils/common");function r(e){for(var t=e.length;0<=--t;)e[t]=0}var o=256,a=286,s=30,l=15,c=16,u=[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],d=[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],h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],f=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p=new Array(576);r(p);var g=new Array(60);r(g);var m=new Array(512);r(m);var v=new Array(256);r(v);var y=new Array(29);r(y);var b,x,w,A=new Array(s);function _(e,t,n,i,r){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=e&&e.length}function C(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function M(e){return e<256?m[e]:m[256+(e>>>7)]}function k(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function S(e,t,n){e.bi_valid>c-n?(e.bi_buf|=t<<e.bi_valid&65535,k(e,e.bi_buf),e.bi_buf=t>>c-e.bi_valid,e.bi_valid+=n-c):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function I(e,t,n){S(e,n[2*t],n[2*t+1])}function L(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function T(e,t,n){var i,r,o=new Array(l+1),a=0;for(i=1;i<=l;i++)o[i]=a=a+n[i-1]<<1;for(r=0;r<=t;r++){var s=e[2*r+1];0!==s&&(e[2*r]=L(o[s]++,s))}}function D(e){var t;for(t=0;t<a;t++)e.dyn_ltree[2*t]=0;for(t=0;t<s;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function O(e){8<e.bi_valid?k(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function j(e,t,n,i){var r=2*t,o=2*n;return e[r]<e[o]||e[r]===e[o]&&i[t]<=i[n]}function N(e,t,n){for(var i=e.heap[n],r=n<<1;r<=e.heap_len&&(r<e.heap_len&&j(t,e.heap[r+1],e.heap[r],e.depth)&&r++,!j(t,i,e.heap[r],e.depth));)e.heap[n]=e.heap[r],n=r,r<<=1;e.heap[n]=i}function E(e,t,n){var i,r,a,s,l=0;if(0!==e.last_lit)for(;i=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],r=e.pending_buf[e.l_buf+l],l++,0===i?I(e,r,t):(I(e,(a=v[r])+o+1,t),0!==(s=u[a])&&S(e,r-=y[a],s),I(e,a=M(--i),n),0!==(s=d[a])&&S(e,i-=A[a],s)),l<e.last_lit;);I(e,256,t)}function P(e,t){var n,i,r,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,c=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<c;n++)0!==o[2*n]?(e.heap[++e.heap_len]=u=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(r=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[r]=0,e.opt_len--,s&&(e.static_len-=a[2*r+1]);for(t.max_code=u,n=e.heap_len>>1;1<=n;n--)N(e,o,n);for(r=c;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],N(e,o,1),i=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=i,o[2*r]=o[2*n]+o[2*i],e.depth[r]=(e.depth[n]>=e.depth[i]?e.depth[n]:e.depth[i])+1,o[2*n+1]=o[2*i+1]=r,e.heap[1]=r++,N(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,i,r,o,a,s,c=t.dyn_tree,u=t.max_code,d=t.stat_desc.static_tree,h=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,g=t.stat_desc.max_length,m=0;for(o=0;o<=l;o++)e.bl_count[o]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)g<(o=c[2*c[2*(i=e.heap[n])+1]+1]+1)&&(o=g,m++),c[2*i+1]=o,u<i||(e.bl_count[o]++,a=0,p<=i&&(a=f[i-p]),s=c[2*i],e.opt_len+=s*(o+a),h&&(e.static_len+=s*(d[2*i+1]+a)));if(0!==m){do{for(o=g-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[g]--,m-=2}while(0<m);for(o=g;0!==o;o--)for(i=e.bl_count[o];0!==i;)u<(r=e.heap[--n])||(c[2*r+1]!==o&&(e.opt_len+=(o-c[2*r+1])*c[2*r],c[2*r+1]=o),i--)}}(e,t),T(o,u,e.bl_count)}function F(e,t,n){var i,r,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),t[2*(n+1)+1]=65535,i=0;i<=n;i++)r=a,a=t[2*(i+1)+1],++s<l&&r===a||(s<c?e.bl_tree[2*r]+=s:0!==r?(r!==o&&e.bl_tree[2*r]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,o=r,c=(s=0)===a?(l=138,3):r===a?(l=6,3):(l=7,4))}function z(e,t,n){var i,r,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),i=0;i<=n;i++)if(r=a,a=t[2*(i+1)+1],!(++s<l&&r===a)){if(s<c)for(;I(e,r,e.bl_tree),0!=--s;);else 0!==r?(r!==o&&(I(e,r,e.bl_tree),s--),I(e,16,e.bl_tree),S(e,s-3,2)):s<=10?(I(e,17,e.bl_tree),S(e,s-3,3)):(I(e,18,e.bl_tree),S(e,s-11,7));o=r,c=(s=0)===a?(l=138,3):r===a?(l=6,3):(l=7,4)}}r(A);var R=!1;function B(e,t,n,r){S(e,0+(r?1:0),3),function(e,t,n,r){O(e),k(e,n),k(e,~n),i.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}n._tr_init=function(e){R||(function(){var e,t,n,i,r,o=new Array(l+1);for(i=n=0;i<28;i++)for(y[i]=n,e=0;e<1<<u[i];e++)v[n++]=i;for(v[n-1]=i,i=r=0;i<16;i++)for(A[i]=r,e=0;e<1<<d[i];e++)m[r++]=i;for(r>>=7;i<s;i++)for(A[i]=r<<7,e=0;e<1<<d[i]-7;e++)m[256+r++]=i;for(t=0;t<=l;t++)o[t]=0;for(e=0;e<=143;)p[2*e+1]=8,e++,o[8]++;for(;e<=255;)p[2*e+1]=9,e++,o[9]++;for(;e<=279;)p[2*e+1]=7,e++,o[7]++;for(;e<=287;)p[2*e+1]=8,e++,o[8]++;for(T(p,287,o),e=0;e<s;e++)g[2*e+1]=5,g[2*e]=L(e,5);b=new _(p,u,257,a,l),x=new _(g,d,0,s,l),w=new _(new Array(0),h,0,19,7)}(),R=!0),e.l_desc=new C(e.dyn_ltree,b),e.d_desc=new C(e.dyn_dtree,x),e.bl_desc=new C(e.bl_tree,w),e.bi_buf=0,e.bi_valid=0,D(e)},n._tr_stored_block=B,n._tr_flush_block=function(e,t,n,i){var r,a,s=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<o;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),P(e,e.l_desc),P(e,e.d_desc),s=function(e){var t;for(F(e,e.dyn_ltree,e.l_desc.max_code),F(e,e.dyn_dtree,e.d_desc.max_code),P(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*f[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),r=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=r&&(r=a)):r=a=n+5,n+4<=r&&-1!==t?B(e,t,n,i):4===e.strategy||a===r?(S(e,2+(i?1:0),3),E(e,p,g)):(S(e,4+(i?1:0),3),function(e,t,n,i){var r;for(S(e,t-257,5),S(e,n-1,5),S(e,i-4,4),r=0;r<i;r++)S(e,e.bl_tree[2*f[r]+1],3);z(e,e.dyn_ltree,t-1),z(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),E(e,e.dyn_ltree,e.dyn_dtree)),D(e),i&&O(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(v[n]+o+1)]++,e.dyn_dtree[2*M(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){S(e,2,3),I(e,256,p),function(e){16===e.bi_valid?(k(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,n){"use strict";t.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(e,t,i){(function(e){!function(e,t){"use strict";if(!e.setImmediate){var n,i,r,o,a=1,s={},l=!1,c=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,n="[object process]"==={}.toString.call(e.process)?function(e){process.nextTick((function(){h(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(o="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",f,!1):e.attachEvent("onmessage",f),function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((r=new MessageChannel).port1.onmessage=function(e){h(e.data)},function(e){r.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(i=c.documentElement,function(e){var t=c.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):function(e){setTimeout(h,0,e)},u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),i=0;i<t.length;i++)t[i]=arguments[i+1];var r={callback:e,args:t};return s[a]=r,n(a),a++},u.clearImmediate=d}function d(e){delete s[e]}function h(e){if(l)setTimeout(h,0,e);else{var n=s[e];if(n){l=!0;try{!function(e){var n=e.callback,i=e.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(t,i)}}(n)}finally{d(e),l=!1}}}}function f(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&h(+t.data.slice(o.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)},437:(e,t,n)=>{var i,r;!function(){var o,a,s,l,c,u,d,h,f,p,g,m,v,y,b,x,w,A,_,C,M,k,S,I,L,T,D,O,j,N,E=function(e){var t=new E.Builder;return t.pipeline.add(E.trimmer,E.stopWordFilter,E.stemmer),t.searchPipeline.add(E.stemmer),e.call(t,t),t.build()};E.version="2.3.9",E.utils={},E.utils.warn=(o=this,function(e){o.console&&console.warn&&console.warn(e)}),E.utils.asString=function(e){return null==e?"":e.toString()},E.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),n=Object.keys(e),i=0;i<n.length;i++){var r=n[i],o=e[r];if(Array.isArray(o))t[r]=o.slice();else{if("string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o)throw new TypeError("clone is not deep and does not support nested objects");t[r]=o}}return t},E.FieldRef=function(e,t,n){this.docRef=e,this.fieldName=t,this._stringValue=n},E.FieldRef.joiner="/",E.FieldRef.fromString=function(e){var t=e.indexOf(E.FieldRef.joiner);if(-1===t)throw"malformed field ref string";var n=e.slice(0,t),i=e.slice(t+1);return new E.FieldRef(i,n,e)},E.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+E.FieldRef.joiner+this.docRef),this._stringValue},E.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var t=0;t<this.length;t++)this.elements[e[t]]=!0}else this.length=0},E.Set.complete={intersect:function(e){return e},union:function(){return this},contains:function(){return!0}},E.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},E.Set.prototype.contains=function(e){return!!this.elements[e]},E.Set.prototype.intersect=function(e){var t,n,i,r=[];if(e===E.Set.complete)return this;if(e===E.Set.empty)return e;this.length<e.length?(t=this,n=e):(t=e,n=this),i=Object.keys(t.elements);for(var o=0;o<i.length;o++){var a=i[o];a in n.elements&&r.push(a)}return new E.Set(r)},E.Set.prototype.union=function(e){return e===E.Set.complete?E.Set.complete:e===E.Set.empty?this:new E.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},E.idf=function(e,t){var n=0;for(var i in e)"_index"!=i&&(n+=Object.keys(e[i]).length);var r=(t-n+.5)/(n+.5);return Math.log(1+Math.abs(r))},E.Token=function(e,t){this.str=e||"",this.metadata=t||{}},E.Token.prototype.toString=function(){return this.str},E.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},E.Token.prototype.clone=function(e){return e=e||function(e){return e},new E.Token(e(this.str,this.metadata),this.metadata)},E.tokenizer=function(e,t){if(null==e||null==e)return[];if(Array.isArray(e))return e.map((function(e){return new E.Token(E.utils.asString(e).toLowerCase(),E.utils.clone(t))}));for(var n=e.toString().toLowerCase(),i=n.length,r=[],o=0,a=0;o<=i;o++){var s=o-a;if(n.charAt(o).match(E.tokenizer.separator)||o==i){if(s>0){var l=E.utils.clone(t)||{};l.position=[a,s],l.index=r.length,r.push(new E.Token(n.slice(a,o),l))}a=o+1}}return r},E.tokenizer.separator=/[\s\-]+/,E.Pipeline=function(){this._stack=[]},E.Pipeline.registeredFunctions=Object.create(null),E.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&E.utils.warn("Overwriting existing registered function: "+t),e.label=t,E.Pipeline.registeredFunctions[e.label]=e},E.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||E.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},E.Pipeline.load=function(e){var t=new E.Pipeline;return e.forEach((function(e){var n=E.Pipeline.registeredFunctions[e];if(!n)throw new Error("Cannot load unregistered function: "+e);t.add(n)})),t},E.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach((function(e){E.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)}),this)},E.Pipeline.prototype.after=function(e,t){E.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");n+=1,this._stack.splice(n,0,t)},E.Pipeline.prototype.before=function(e,t){E.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");this._stack.splice(n,0,t)},E.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},E.Pipeline.prototype.run=function(e){for(var t=this._stack.length,n=0;n<t;n++){for(var i=this._stack[n],r=[],o=0;o<e.length;o++){var a=i(e[o],o,e);if(null!=a&&""!==a)if(Array.isArray(a))for(var s=0;s<a.length;s++)r.push(a[s]);else r.push(a)}e=r}return e},E.Pipeline.prototype.runString=function(e,t){var n=new E.Token(e,t);return this.run([n]).map((function(e){return e.toString()}))},E.Pipeline.prototype.reset=function(){this._stack=[]},E.Pipeline.prototype.toJSON=function(){return this._stack.map((function(e){return E.Pipeline.warnIfFunctionNotRegistered(e),e.label}))},E.Vector=function(e){this._magnitude=0,this.elements=e||[]},E.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var t=0,n=this.elements.length/2,i=n-t,r=Math.floor(i/2),o=this.elements[2*r];i>1&&(o<e&&(t=r),o>e&&(n=r),o!=e);)i=n-t,r=t+Math.floor(i/2),o=this.elements[2*r];return o==e||o>e?2*r:o<e?2*(r+1):void 0},E.Vector.prototype.insert=function(e,t){this.upsert(e,t,(function(){throw"duplicate index"}))},E.Vector.prototype.upsert=function(e,t,n){this._magnitude=0;var i=this.positionForIndex(e);this.elements[i]==e?this.elements[i+1]=n(this.elements[i+1],t):this.elements.splice(i,0,e,t)},E.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,t=this.elements.length,n=1;n<t;n+=2){var i=this.elements[n];e+=i*i}return this._magnitude=Math.sqrt(e)},E.Vector.prototype.dot=function(e){for(var t=0,n=this.elements,i=e.elements,r=n.length,o=i.length,a=0,s=0,l=0,c=0;l<r&&c<o;)(a=n[l])<(s=i[c])?l+=2:a>s?c+=2:a==s&&(t+=n[l+1]*i[c+1],l+=2,c+=2);return t},E.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},E.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,n=0;t<this.elements.length;t+=2,n++)e[n]=this.elements[t];return e},E.Vector.prototype.toJSON=function(){return this.elements},E.stemmer=(a={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},s={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},d="^("+(c="[^aeiou][^aeiouy]*")+")?"+(u=(l="[aeiouy]")+"[aeiou]*")+c+"("+u+")?$",h="^("+c+")?"+u+c+u+c,f="^("+c+")?"+l,p=new RegExp("^("+c+")?"+u+c),g=new RegExp(h),m=new RegExp(d),v=new RegExp(f),y=/^(.+?)(ss|i)es$/,b=/^(.+?)([^s])s$/,x=/^(.+?)eed$/,w=/^(.+?)(ed|ing)$/,A=/.$/,_=/(at|bl|iz)$/,C=new RegExp("([^aeiouylsz])\\1$"),M=new RegExp("^"+c+l+"[^aeiouwxy]$"),k=/^(.+?[^aeiou])y$/,S=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,I=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,L=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,T=/^(.+?)(s|t)(ion)$/,D=/^(.+?)e$/,O=/ll$/,j=new RegExp("^"+c+l+"[^aeiouwxy]$"),N=function(e){var t,n,i,r,o,l,c;if(e.length<3)return e;if("y"==(i=e.substr(0,1))&&(e=i.toUpperCase()+e.substr(1)),o=b,(r=y).test(e)?e=e.replace(r,"$1$2"):o.test(e)&&(e=e.replace(o,"$1$2")),o=w,(r=x).test(e)){var u=r.exec(e);(r=p).test(u[1])&&(r=A,e=e.replace(r,""))}else o.test(e)&&(t=(u=o.exec(e))[1],(o=v).test(t)&&(l=C,c=M,(o=_).test(e=t)?e+="e":l.test(e)?(r=A,e=e.replace(r,"")):c.test(e)&&(e+="e")));return(r=k).test(e)&&(e=(t=(u=r.exec(e))[1])+"i"),(r=S).test(e)&&(t=(u=r.exec(e))[1],n=u[2],(r=p).test(t)&&(e=t+a[n])),(r=I).test(e)&&(t=(u=r.exec(e))[1],n=u[2],(r=p).test(t)&&(e=t+s[n])),o=T,(r=L).test(e)?(t=(u=r.exec(e))[1],(r=g).test(t)&&(e=t)):o.test(e)&&(t=(u=o.exec(e))[1]+u[2],(o=g).test(t)&&(e=t)),(r=D).test(e)&&(t=(u=r.exec(e))[1],o=m,l=j,((r=g).test(t)||o.test(t)&&!l.test(t))&&(e=t)),o=g,(r=O).test(e)&&o.test(e)&&(r=A,e=e.replace(r,"")),"y"==i&&(e=i.toLowerCase()+e.substr(1)),e},function(e){return e.update(N)}),E.Pipeline.registerFunction(E.stemmer,"stemmer"),E.generateStopWordFilter=function(e){var t=e.reduce((function(e,t){return e[t]=t,e}),{});return function(e){if(e&&t[e.toString()]!==e.toString())return e}},E.stopWordFilter=E.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),E.Pipeline.registerFunction(E.stopWordFilter,"stopWordFilter"),E.trimmer=function(e){return e.update((function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")}))},E.Pipeline.registerFunction(E.trimmer,"trimmer"),E.TokenSet=function(){this.final=!1,this.edges={},this.id=E.TokenSet._nextId,E.TokenSet._nextId+=1},E.TokenSet._nextId=1,E.TokenSet.fromArray=function(e){for(var t=new E.TokenSet.Builder,n=0,i=e.length;n<i;n++)t.insert(e[n]);return t.finish(),t.root},E.TokenSet.fromClause=function(e){return"editDistance"in e?E.TokenSet.fromFuzzyString(e.term,e.editDistance):E.TokenSet.fromString(e.term)},E.TokenSet.fromFuzzyString=function(e,t){for(var n=new E.TokenSet,i=[{node:n,editsRemaining:t,str:e}];i.length;){var r=i.pop();if(r.str.length>0){var o,a=r.str.charAt(0);a in r.node.edges?o=r.node.edges[a]:(o=new E.TokenSet,r.node.edges[a]=o),1==r.str.length&&(o.final=!0),i.push({node:o,editsRemaining:r.editsRemaining,str:r.str.slice(1)})}if(0!=r.editsRemaining){if("*"in r.node.edges)var s=r.node.edges["*"];else s=new E.TokenSet,r.node.edges["*"]=s;if(0==r.str.length&&(s.final=!0),i.push({node:s,editsRemaining:r.editsRemaining-1,str:r.str}),r.str.length>1&&i.push({node:r.node,editsRemaining:r.editsRemaining-1,str:r.str.slice(1)}),1==r.str.length&&(r.node.final=!0),r.str.length>=1){if("*"in r.node.edges)var l=r.node.edges["*"];else l=new E.TokenSet,r.node.edges["*"]=l;1==r.str.length&&(l.final=!0),i.push({node:l,editsRemaining:r.editsRemaining-1,str:r.str.slice(1)})}if(r.str.length>1){var c,u=r.str.charAt(0),d=r.str.charAt(1);d in r.node.edges?c=r.node.edges[d]:(c=new E.TokenSet,r.node.edges[d]=c),1==r.str.length&&(c.final=!0),i.push({node:c,editsRemaining:r.editsRemaining-1,str:u+r.str.slice(2)})}}}return n},E.TokenSet.fromString=function(e){for(var t=new E.TokenSet,n=t,i=0,r=e.length;i<r;i++){var o=e[i],a=i==r-1;if("*"==o)t.edges[o]=t,t.final=a;else{var s=new E.TokenSet;s.final=a,t.edges[o]=s,t=s}}return n},E.TokenSet.prototype.toArray=function(){for(var e=[],t=[{prefix:"",node:this}];t.length;){var n=t.pop(),i=Object.keys(n.node.edges),r=i.length;n.node.final&&(n.prefix.charAt(0),e.push(n.prefix));for(var o=0;o<r;o++){var a=i[o];t.push({prefix:n.prefix.concat(a),node:n.node.edges[a]})}}return e},E.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",t=Object.keys(this.edges).sort(),n=t.length,i=0;i<n;i++){var r=t[i];e=e+r+this.edges[r].id}return e},E.TokenSet.prototype.intersect=function(e){for(var t=new E.TokenSet,n=void 0,i=[{qNode:e,output:t,node:this}];i.length;){n=i.pop();for(var r=Object.keys(n.qNode.edges),o=r.length,a=Object.keys(n.node.edges),s=a.length,l=0;l<o;l++)for(var c=r[l],u=0;u<s;u++){var d=a[u];if(d==c||"*"==c){var h=n.node.edges[d],f=n.qNode.edges[c],p=h.final&&f.final,g=void 0;d in n.output.edges?(g=n.output.edges[d]).final=g.final||p:((g=new E.TokenSet).final=p,n.output.edges[d]=g),i.push({qNode:f,output:g,node:h})}}}return t},E.TokenSet.Builder=function(){this.previousWord="",this.root=new E.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},E.TokenSet.Builder.prototype.insert=function(e){var t,n=0;if(e<this.previousWord)throw new Error("Out of order word insertion");for(var i=0;i<e.length&&i<this.previousWord.length&&e[i]==this.previousWord[i];i++)n++;for(this.minimize(n),t=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child,i=n;i<e.length;i++){var r=new E.TokenSet,o=e[i];t.edges[o]=r,this.uncheckedNodes.push({parent:t,char:o,child:r}),t=r}t.final=!0,this.previousWord=e},E.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},E.TokenSet.Builder.prototype.minimize=function(e){for(var t=this.uncheckedNodes.length-1;t>=e;t--){var n=this.uncheckedNodes[t],i=n.child.toString();i in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[i]:(n.child._str=i,this.minimizedNodes[i]=n.child),this.uncheckedNodes.pop()}},E.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},E.Index.prototype.search=function(e){return this.query((function(t){new E.QueryParser(e,t).parse()}))},E.Index.prototype.query=function(e){for(var t=new E.Query(this.fields),n=Object.create(null),i=Object.create(null),r=Object.create(null),o=Object.create(null),a=Object.create(null),s=0;s<this.fields.length;s++)i[this.fields[s]]=new E.Vector;for(e.call(t,t),s=0;s<t.clauses.length;s++){var l,c=t.clauses[s],u=E.Set.empty;l=c.usePipeline?this.pipeline.runString(c.term,{fields:c.fields}):[c.term];for(var d=0;d<l.length;d++){var h=l[d];c.term=h;var f=E.TokenSet.fromClause(c),p=this.tokenSet.intersect(f).toArray();if(0===p.length&&c.presence===E.Query.presence.REQUIRED){for(var g=0;g<c.fields.length;g++)o[D=c.fields[g]]=E.Set.empty;break}for(var m=0;m<p.length;m++){var v=p[m],y=this.invertedIndex[v],b=y._index;for(g=0;g<c.fields.length;g++){var x=y[D=c.fields[g]],w=Object.keys(x),A=v+"/"+D,_=new E.Set(w);if(c.presence==E.Query.presence.REQUIRED&&(u=u.union(_),void 0===o[D]&&(o[D]=E.Set.complete)),c.presence!=E.Query.presence.PROHIBITED){if(i[D].upsert(b,c.boost,(function(e,t){return e+t})),!r[A]){for(var C=0;C<w.length;C++){var M,k=w[C],S=new E.FieldRef(k,D),I=x[k];void 0===(M=n[S])?n[S]=new E.MatchData(v,D,I):M.add(v,D,I)}r[A]=!0}}else void 0===a[D]&&(a[D]=E.Set.empty),a[D]=a[D].union(_)}}}if(c.presence===E.Query.presence.REQUIRED)for(g=0;g<c.fields.length;g++)o[D=c.fields[g]]=o[D].intersect(u)}var L=E.Set.complete,T=E.Set.empty;for(s=0;s<this.fields.length;s++){var D;o[D=this.fields[s]]&&(L=L.intersect(o[D])),a[D]&&(T=T.union(a[D]))}var O=Object.keys(n),j=[],N=Object.create(null);if(t.isNegated())for(O=Object.keys(this.fieldVectors),s=0;s<O.length;s++){S=O[s];var P=E.FieldRef.fromString(S);n[S]=new E.MatchData}for(s=0;s<O.length;s++){var F=(P=E.FieldRef.fromString(O[s])).docRef;if(L.contains(F)&&!T.contains(F)){var z,R=this.fieldVectors[P],B=i[P.fieldName].similarity(R);if(void 0!==(z=N[F]))z.score+=B,z.matchData.combine(n[P]);else{var W={ref:F,score:B,matchData:n[P]};N[F]=W,j.push(W)}}}return j.sort((function(e,t){return t.score-e.score}))},E.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map((function(e){return[e,this.invertedIndex[e]]}),this),t=Object.keys(this.fieldVectors).map((function(e){return[e,this.fieldVectors[e].toJSON()]}),this);return{version:E.version,fields:this.fields,fieldVectors:t,invertedIndex:e,pipeline:this.pipeline.toJSON()}},E.Index.load=function(e){var t={},n={},i=e.fieldVectors,r=Object.create(null),o=e.invertedIndex,a=new E.TokenSet.Builder,s=E.Pipeline.load(e.pipeline);e.version!=E.version&&E.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+E.version+"' does not match serialized index '"+e.version+"'");for(var l=0;l<i.length;l++){var c=(d=i[l])[0],u=d[1];n[c]=new E.Vector(u)}for(l=0;l<o.length;l++){var d,h=(d=o[l])[0],f=d[1];a.insert(h),r[h]=f}return a.finish(),t.fields=e.fields,t.fieldVectors=n,t.invertedIndex=r,t.tokenSet=a.root,t.pipeline=s,new E.Index(t)},E.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=E.tokenizer,this.pipeline=new E.Pipeline,this.searchPipeline=new E.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},E.Builder.prototype.ref=function(e){this._ref=e},E.Builder.prototype.field=function(e,t){if(/\//.test(e))throw new RangeError("Field '"+e+"' contains illegal character '/'");this._fields[e]=t||{}},E.Builder.prototype.b=function(e){this._b=e<0?0:e>1?1:e},E.Builder.prototype.k1=function(e){this._k1=e},E.Builder.prototype.add=function(e,t){var n=e[this._ref],i=Object.keys(this._fields);this._documents[n]=t||{},this.documentCount+=1;for(var r=0;r<i.length;r++){var o=i[r],a=this._fields[o].extractor,s=a?a(e):e[o],l=this.tokenizer(s,{fields:[o]}),c=this.pipeline.run(l),u=new E.FieldRef(n,o),d=Object.create(null);this.fieldTermFrequencies[u]=d,this.fieldLengths[u]=0,this.fieldLengths[u]+=c.length;for(var h=0;h<c.length;h++){var f=c[h];if(null==d[f]&&(d[f]=0),d[f]+=1,null==this.invertedIndex[f]){var p=Object.create(null);p._index=this.termIndex,this.termIndex+=1;for(var g=0;g<i.length;g++)p[i[g]]=Object.create(null);this.invertedIndex[f]=p}null==this.invertedIndex[f][o][n]&&(this.invertedIndex[f][o][n]=Object.create(null));for(var m=0;m<this.metadataWhitelist.length;m++){var v=this.metadataWhitelist[m],y=f.metadata[v];null==this.invertedIndex[f][o][n][v]&&(this.invertedIndex[f][o][n][v]=[]),this.invertedIndex[f][o][n][v].push(y)}}}},E.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),t=e.length,n={},i={},r=0;r<t;r++){var o=E.FieldRef.fromString(e[r]),a=o.fieldName;i[a]||(i[a]=0),i[a]+=1,n[a]||(n[a]=0),n[a]+=this.fieldLengths[o]}var s=Object.keys(this._fields);for(r=0;r<s.length;r++){var l=s[r];n[l]=n[l]/i[l]}this.averageFieldLength=n},E.Builder.prototype.createFieldVectors=function(){for(var e={},t=Object.keys(this.fieldTermFrequencies),n=t.length,i=Object.create(null),r=0;r<n;r++){for(var o=E.FieldRef.fromString(t[r]),a=o.fieldName,s=this.fieldLengths[o],l=new E.Vector,c=this.fieldTermFrequencies[o],u=Object.keys(c),d=u.length,h=this._fields[a].boost||1,f=this._documents[o.docRef].boost||1,p=0;p<d;p++){var g,m,v,y=u[p],b=c[y],x=this.invertedIndex[y]._index;void 0===i[y]?(g=E.idf(this.invertedIndex[y],this.documentCount),i[y]=g):g=i[y],m=g*((this._k1+1)*b)/(this._k1*(1-this._b+this._b*(s/this.averageFieldLength[a]))+b),m*=h,m*=f,v=Math.round(1e3*m)/1e3,l.insert(x,v)}e[o]=l}this.fieldVectors=e},E.Builder.prototype.createTokenSet=function(){this.tokenSet=E.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},E.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new E.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},E.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},E.MatchData=function(e,t,n){for(var i=Object.create(null),r=Object.keys(n||{}),o=0;o<r.length;o++){var a=r[o];i[a]=n[a].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=i)},E.MatchData.prototype.combine=function(e){for(var t=Object.keys(e.metadata),n=0;n<t.length;n++){var i=t[n],r=Object.keys(e.metadata[i]);null==this.metadata[i]&&(this.metadata[i]=Object.create(null));for(var o=0;o<r.length;o++){var a=r[o],s=Object.keys(e.metadata[i][a]);null==this.metadata[i][a]&&(this.metadata[i][a]=Object.create(null));for(var l=0;l<s.length;l++){var c=s[l];null==this.metadata[i][a][c]?this.metadata[i][a][c]=e.metadata[i][a][c]:this.metadata[i][a][c]=this.metadata[i][a][c].concat(e.metadata[i][a][c])}}}},E.MatchData.prototype.add=function(e,t,n){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][t]=n);if(t in this.metadata[e])for(var i=Object.keys(n),r=0;r<i.length;r++){var o=i[r];o in this.metadata[e][t]?this.metadata[e][t][o]=this.metadata[e][t][o].concat(n[o]):this.metadata[e][t][o]=n[o]}else this.metadata[e][t]=n},E.Query=function(e){this.clauses=[],this.allFields=e},E.Query.wildcard=new String("*"),E.Query.wildcard.NONE=0,E.Query.wildcard.LEADING=1,E.Query.wildcard.TRAILING=2,E.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},E.Query.prototype.clause=function(e){return"fields"in e||(e.fields=this.allFields),"boost"in e||(e.boost=1),"usePipeline"in e||(e.usePipeline=!0),"wildcard"in e||(e.wildcard=E.Query.wildcard.NONE),e.wildcard&E.Query.wildcard.LEADING&&e.term.charAt(0)!=E.Query.wildcard&&(e.term="*"+e.term),e.wildcard&E.Query.wildcard.TRAILING&&e.term.slice(-1)!=E.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=E.Query.presence.OPTIONAL),this.clauses.push(e),this},E.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=E.Query.presence.PROHIBITED)return!1;return!0},E.Query.prototype.term=function(e,t){if(Array.isArray(e))return e.forEach((function(e){this.term(e,E.utils.clone(t))}),this),this;var n=t||{};return n.term=e.toString(),this.clause(n),this},E.QueryParseError=function(e,t,n){this.name="QueryParseError",this.message=e,this.start=t,this.end=n},E.QueryParseError.prototype=new Error,E.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},E.QueryLexer.prototype.run=function(){for(var e=E.QueryLexer.lexText;e;)e=e(this)},E.QueryLexer.prototype.sliceString=function(){for(var e=[],t=this.start,n=this.pos,i=0;i<this.escapeCharPositions.length;i++)n=this.escapeCharPositions[i],e.push(this.str.slice(t,n)),t=n+1;return e.push(this.str.slice(t,this.pos)),this.escapeCharPositions.length=0,e.join("")},E.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},E.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},E.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return E.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},E.QueryLexer.prototype.width=function(){return this.pos-this.start},E.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},E.QueryLexer.prototype.backup=function(){this.pos-=1},E.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=E.QueryLexer.EOS&&this.backup()},E.QueryLexer.prototype.more=function(){return this.pos<this.length},E.QueryLexer.EOS="EOS",E.QueryLexer.FIELD="FIELD",E.QueryLexer.TERM="TERM",E.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",E.QueryLexer.BOOST="BOOST",E.QueryLexer.PRESENCE="PRESENCE",E.QueryLexer.lexField=function(e){return e.backup(),e.emit(E.QueryLexer.FIELD),e.ignore(),E.QueryLexer.lexText},E.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(E.QueryLexer.TERM)),e.ignore(),e.more())return E.QueryLexer.lexText},E.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(E.QueryLexer.EDIT_DISTANCE),E.QueryLexer.lexText},E.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(E.QueryLexer.BOOST),E.QueryLexer.lexText},E.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(E.QueryLexer.TERM)},E.QueryLexer.termSeparator=E.tokenizer.separator,E.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==E.QueryLexer.EOS)return E.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return E.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(E.QueryLexer.TERM),E.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(E.QueryLexer.TERM),E.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(E.QueryLexer.PRESENCE),E.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(E.QueryLexer.PRESENCE),E.QueryLexer.lexText;if(t.match(E.QueryLexer.termSeparator))return E.QueryLexer.lexTerm}else e.escapeCharacter()}},E.QueryParser=function(e,t){this.lexer=new E.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},E.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=E.QueryParser.parseClause;e;)e=e(this);return this.query},E.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},E.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},E.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},E.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case E.QueryLexer.PRESENCE:return E.QueryParser.parsePresence;case E.QueryLexer.FIELD:return E.QueryParser.parseField;case E.QueryLexer.TERM:return E.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(n+=" with value '"+t.str+"'"),new E.QueryParseError(n,t.start,t.end)}},E.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=E.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=E.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+t.str+"'";throw new E.QueryParseError(n,t.start,t.end)}var i=e.peekLexeme();if(null==i)throw n="expecting term or field, found nothing",new E.QueryParseError(n,t.start,t.end);switch(i.type){case E.QueryLexer.FIELD:return E.QueryParser.parseField;case E.QueryLexer.TERM:return E.QueryParser.parseTerm;default:throw n="expecting term or field, found '"+i.type+"'",new E.QueryParseError(n,i.start,i.end)}}},E.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var n=e.query.allFields.map((function(e){return"'"+e+"'"})).join(", "),i="unrecognised field '"+t.str+"', possible fields: "+n;throw new E.QueryParseError(i,t.start,t.end)}e.currentClause.fields=[t.str];var r=e.peekLexeme();if(null==r)throw i="expecting term, found nothing",new E.QueryParseError(i,t.start,t.end);if(r.type===E.QueryLexer.TERM)return E.QueryParser.parseTerm;throw i="expecting term, found '"+r.type+"'",new E.QueryParseError(i,r.start,r.end)}},E.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var n=e.peekLexeme();if(null!=n)switch(n.type){case E.QueryLexer.TERM:return e.nextClause(),E.QueryParser.parseTerm;case E.QueryLexer.FIELD:return e.nextClause(),E.QueryParser.parseField;case E.QueryLexer.EDIT_DISTANCE:return E.QueryParser.parseEditDistance;case E.QueryLexer.BOOST:return E.QueryParser.parseBoost;case E.QueryLexer.PRESENCE:return e.nextClause(),E.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+n.type+"'";throw new E.QueryParseError(i,n.start,n.end)}else e.nextClause()}},E.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var i="edit distance must be numeric";throw new E.QueryParseError(i,t.start,t.end)}e.currentClause.editDistance=n;var r=e.peekLexeme();if(null!=r)switch(r.type){case E.QueryLexer.TERM:return e.nextClause(),E.QueryParser.parseTerm;case E.QueryLexer.FIELD:return e.nextClause(),E.QueryParser.parseField;case E.QueryLexer.EDIT_DISTANCE:return E.QueryParser.parseEditDistance;case E.QueryLexer.BOOST:return E.QueryParser.parseBoost;case E.QueryLexer.PRESENCE:return e.nextClause(),E.QueryParser.parsePresence;default:throw i="Unexpected lexeme type '"+r.type+"'",new E.QueryParseError(i,r.start,r.end)}else e.nextClause()}},E.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var i="boost must be numeric";throw new E.QueryParseError(i,t.start,t.end)}e.currentClause.boost=n;var r=e.peekLexeme();if(null!=r)switch(r.type){case E.QueryLexer.TERM:return e.nextClause(),E.QueryParser.parseTerm;case E.QueryLexer.FIELD:return e.nextClause(),E.QueryParser.parseField;case E.QueryLexer.EDIT_DISTANCE:return E.QueryParser.parseEditDistance;case E.QueryLexer.BOOST:return E.QueryParser.parseBoost;case E.QueryLexer.PRESENCE:return e.nextClause(),E.QueryParser.parsePresence;default:throw i="Unexpected lexeme type '"+r.type+"'",new E.QueryParseError(i,r.start,r.end)}else e.nextClause()}},void 0===(r="function"==typeof(i=function(){return E})?i.call(t,n,t,e):i)||(e.exports=r)}()},34:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,n;function i(){return t.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(a(e,t))return!1;return!0}function l(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,i=[],r=e.length;for(n=0;n<r;++n)i.push(t(e[n],n));return i}function h(e,t){for(var n in t)a(t,n)&&(e[n]=t[n]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,i){return jt(e,t,n,i,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function g(e){if(null==e._isValid){var t=p(e),i=n.call(t.parsedDateParts,(function(e){return null!=e})),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function m(e){var t=f(NaN);return null!=e?h(p(t),e):p(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),i=n.length>>>0;for(t=0;t<i;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var v=i.momentProperties=[],y=!1;function b(e,t){var n,i,r,o=v.length;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=p(t)),l(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)l(r=t[i=v[n]])||(e[i]=r);return e}function x(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,i.updateOffset(this),y=!1)}function w(e){return e instanceof x||null!=e&&null!=e._isAMomentObject}function A(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function _(e,t){var n=!0;return h((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){var r,o,s,l=[],c=arguments.length;for(o=0;o<c;o++){if(r="","object"==typeof arguments[o]){for(s in r+="\n["+o+"] ",arguments[0])a(arguments[0],s)&&(r+=s+": "+arguments[0][s]+", ");r=r.slice(0,-2)}else r=arguments[o];l.push(r)}A(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var C,M={};function k(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),M[e]||(A(t),M[e]=!0)}function S(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function I(e,t){var n,i=h({},e);for(n in t)a(t,n)&&(o(e[n])&&o(t[n])?(i[n]={},h(i[n],e[n]),h(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)a(e,n)&&!a(t,n)&&o(e[n])&&(i[n]=h({},i[n]));return i}function L(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,C=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};function T(e,t,n){var i=""+Math.abs(e),r=t-i.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var D=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,O=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},N={};function E(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(N[e]=r),t&&(N[t[0]]=function(){return T(r.apply(this,arguments),t[1],t[2])}),n&&(N[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function P(e,t){return e.isValid()?(t=F(t,e.localeData()),j[t]=j[t]||function(e){var t,n,i,r=e.match(D);for(t=0,n=r.length;t<n;t++)N[r[t]]?r[t]=N[r[t]]:r[t]=(i=r[t]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(t){var i,o="";for(i=0;i<n;i++)o+=S(r[i])?r[i].call(t,e):r[i];return o}}(t),j[t](e)):e.localeData().invalidDate()}function F(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(O.lastIndex=0;n>=0&&O.test(e);)e=e.replace(O,i),O.lastIndex=0,n-=1;return e}var z={};function R(e,t){var n=e.toLowerCase();z[n]=z[n+"s"]=z[t]=e}function B(e){return"string"==typeof e?z[e]||z[e.toLowerCase()]:void 0}function W(e){var t,n,i={};for(n in e)a(e,n)&&(t=B(n))&&(i[t]=e[n]);return i}var Y={};function U(e,t){Y[e]=t}function H(e){return e%4==0&&e%100!=0||e%400==0}function V(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Z(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=V(t)),n}function G(e,t){return function(n){return null!=n?(J(this,e,n),i.updateOffset(this,t),this):Q(this,e)}}function Q(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function J(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&H(e.year())&&1===e.month()&&29===e.date()?(n=Z(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Te(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var q,X=/\d/,K=/\d\d/,$=/\d{3}/,ee=/\d{4}/,te=/[+-]?\d{6}/,ne=/\d\d?/,ie=/\d\d\d\d?/,re=/\d\d\d\d\d\d?/,oe=/\d{1,3}/,ae=/\d{1,4}/,se=/[+-]?\d{1,6}/,le=/\d+/,ce=/[+-]?\d+/,ue=/Z|[+-]\d\d:?\d\d/gi,de=/Z|[+-]\d\d(?::?\d\d)?/gi,he=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function fe(e,t,n){q[e]=S(t)?t:function(e,i){return e&&n?n:t}}function pe(e,t){return a(q,e)?q[e](t._strict,t._locale):new RegExp(ge(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,i,r){return t||n||i||r}))))}function ge(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}q={};var me={};function ve(e,t){var n,i,r=t;for("string"==typeof e&&(e=[e]),c(t)&&(r=function(e,n){n[t]=Z(e)}),i=e.length,n=0;n<i;n++)me[e[n]]=r}function ye(e,t){ve(e,(function(e,n,i,r){i._w=i._w||{},t(e,i._w,i,r)}))}function be(e,t,n){null!=t&&a(me,e)&&me[e](t,n._a,n,e)}var xe,we=0,Ae=1,_e=2,Ce=3,Me=4,ke=5,Se=6,Ie=7,Le=8;function Te(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,i=(t%(n=12)+n)%n;return e+=(t-i)/12,1===i?H(e)?29:28:31-i%7%2}xe=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},E("M",["MM",2],"Mo",(function(){return this.month()+1})),E("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),E("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),R("month","M"),U("month",8),fe("M",ne),fe("MM",ne,K),fe("MMM",(function(e,t){return t.monthsShortRegex(e)})),fe("MMMM",(function(e,t){return t.monthsRegex(e)})),ve(["M","MM"],(function(e,t){t[Ae]=Z(e)-1})),ve(["MMM","MMMM"],(function(e,t,n,i){var r=n._locale.monthsParse(e,i,n._strict);null!=r?t[Ae]=r:p(n).invalidMonth=e}));var De="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Oe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),je=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ne=he,Ee=he;function Pe(e,t,n){var i,r,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=f([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=xe.call(this._shortMonthsParse,a))?r:null:-1!==(r=xe.call(this._longMonthsParse,a))?r:null:"MMM"===t?-1!==(r=xe.call(this._shortMonthsParse,a))||-1!==(r=xe.call(this._longMonthsParse,a))?r:null:-1!==(r=xe.call(this._longMonthsParse,a))||-1!==(r=xe.call(this._shortMonthsParse,a))?r:null}function Fe(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=Z(t);else if(!c(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Te(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ze(e){return null!=e?(Fe(this,e),i.updateOffset(this,!0),this):Q(this,"Month")}function Re(){function e(e,t){return t.length-e.length}var t,n,i=[],r=[],o=[];for(t=0;t<12;t++)n=f([2e3,t]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(i.sort(e),r.sort(e),o.sort(e),t=0;t<12;t++)i[t]=ge(i[t]),r[t]=ge(r[t]);for(t=0;t<24;t++)o[t]=ge(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Be(e){return H(e)?366:365}E("Y",0,0,(function(){var e=this.year();return e<=9999?T(e,4):"+"+e})),E(0,["YY",2],0,(function(){return this.year()%100})),E(0,["YYYY",4],0,"year"),E(0,["YYYYY",5],0,"year"),E(0,["YYYYYY",6,!0],0,"year"),R("year","y"),U("year",1),fe("Y",ce),fe("YY",ne,K),fe("YYYY",ae,ee),fe("YYYYY",se,te),fe("YYYYYY",se,te),ve(["YYYYY","YYYYYY"],we),ve("YYYY",(function(e,t){t[we]=2===e.length?i.parseTwoDigitYear(e):Z(e)})),ve("YY",(function(e,t){t[we]=i.parseTwoDigitYear(e)})),ve("Y",(function(e,t){t[we]=parseInt(e,10)})),i.parseTwoDigitYear=function(e){return Z(e)+(Z(e)>68?1900:2e3)};var We=G("FullYear",!0);function Ye(e,t,n,i,r,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,i,r,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,i,r,o,a),s}function Ue(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function He(e,t,n){var i=7+t-n;return-(7+Ue(e,0,i).getUTCDay()-t)%7+i-1}function Ve(e,t,n,i,r){var o,a,s=1+7*(t-1)+(7+n-i)%7+He(e,i,r);return s<=0?a=Be(o=e-1)+s:s>Be(e)?(o=e+1,a=s-Be(e)):(o=e,a=s),{year:o,dayOfYear:a}}function Ze(e,t,n){var i,r,o=He(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?i=a+Ge(r=e.year()-1,t,n):a>Ge(e.year(),t,n)?(i=a-Ge(e.year(),t,n),r=e.year()+1):(r=e.year(),i=a),{week:i,year:r}}function Ge(e,t,n){var i=He(e,t,n),r=He(e+1,t,n);return(Be(e)-i+r)/7}E("w",["ww",2],"wo","week"),E("W",["WW",2],"Wo","isoWeek"),R("week","w"),R("isoWeek","W"),U("week",5),U("isoWeek",5),fe("w",ne),fe("ww",ne,K),fe("W",ne),fe("WW",ne,K),ye(["w","ww","W","WW"],(function(e,t,n,i){t[i.substr(0,1)]=Z(e)}));function Qe(e,t){return e.slice(t,7).concat(e.slice(0,t))}E("d",0,"do","day"),E("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),E("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),E("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),E("e",0,0,"weekday"),E("E",0,0,"isoWeekday"),R("day","d"),R("weekday","e"),R("isoWeekday","E"),U("day",11),U("weekday",11),U("isoWeekday",11),fe("d",ne),fe("e",ne),fe("E",ne),fe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),fe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),fe("dddd",(function(e,t){return t.weekdaysRegex(e)})),ye(["dd","ddd","dddd"],(function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:p(n).invalidWeekday=e})),ye(["d","e","E"],(function(e,t,n,i){t[i]=Z(e)}));var Je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Xe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ke=he,$e=he,et=he;function tt(e,t,n){var i,r,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=xe.call(this._weekdaysParse,a))?r:null:"ddd"===t?-1!==(r=xe.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=xe.call(this._minWeekdaysParse,a))?r:null:"dddd"===t?-1!==(r=xe.call(this._weekdaysParse,a))||-1!==(r=xe.call(this._shortWeekdaysParse,a))||-1!==(r=xe.call(this._minWeekdaysParse,a))?r:null:"ddd"===t?-1!==(r=xe.call(this._shortWeekdaysParse,a))||-1!==(r=xe.call(this._weekdaysParse,a))||-1!==(r=xe.call(this._minWeekdaysParse,a))?r:null:-1!==(r=xe.call(this._minWeekdaysParse,a))||-1!==(r=xe.call(this._weekdaysParse,a))||-1!==(r=xe.call(this._shortWeekdaysParse,a))?r:null}function nt(){function e(e,t){return t.length-e.length}var t,n,i,r,o,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),i=ge(this.weekdaysMin(n,"")),r=ge(this.weekdaysShort(n,"")),o=ge(this.weekdays(n,"")),a.push(i),s.push(r),l.push(o),c.push(i),c.push(r),c.push(o);a.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function it(){return this.hours()%12||12}function rt(e,t){E(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function ot(e,t){return t._meridiemParse}E("H",["HH",2],0,"hour"),E("h",["hh",2],0,it),E("k",["kk",2],0,(function(){return this.hours()||24})),E("hmm",0,0,(function(){return""+it.apply(this)+T(this.minutes(),2)})),E("hmmss",0,0,(function(){return""+it.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)})),E("Hmm",0,0,(function(){return""+this.hours()+T(this.minutes(),2)})),E("Hmmss",0,0,(function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)})),rt("a",!0),rt("A",!1),R("hour","h"),U("hour",13),fe("a",ot),fe("A",ot),fe("H",ne),fe("h",ne),fe("k",ne),fe("HH",ne,K),fe("hh",ne,K),fe("kk",ne,K),fe("hmm",ie),fe("hmmss",re),fe("Hmm",ie),fe("Hmmss",re),ve(["H","HH"],Ce),ve(["k","kk"],(function(e,t,n){var i=Z(e);t[Ce]=24===i?0:i})),ve(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ve(["h","hh"],(function(e,t,n){t[Ce]=Z(e),p(n).bigHour=!0})),ve("hmm",(function(e,t,n){var i=e.length-2;t[Ce]=Z(e.substr(0,i)),t[Me]=Z(e.substr(i)),p(n).bigHour=!0})),ve("hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[Ce]=Z(e.substr(0,i)),t[Me]=Z(e.substr(i,2)),t[ke]=Z(e.substr(r)),p(n).bigHour=!0})),ve("Hmm",(function(e,t,n){var i=e.length-2;t[Ce]=Z(e.substr(0,i)),t[Me]=Z(e.substr(i))})),ve("Hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[Ce]=Z(e.substr(0,i)),t[Me]=Z(e.substr(i,2)),t[ke]=Z(e.substr(r))}));var at=G("Hours",!0);var st,lt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:De,monthsShort:Oe,week:{dow:0,doy:6},weekdays:Je,weekdaysMin:Xe,weekdaysShort:qe,meridiemParse:/[ap]\.?m?\.?/i},ct={},ut={};function dt(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}function ht(e){return e?e.toLowerCase().replace("_","-"):e}function ft(t){var n=null;if(void 0===ct[t]&&e&&e.exports&&function(e){return null!=e.match("^[^/\\\\]*$")}(t))try{n=st._abbr,Object(function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}()),pt(n)}catch(e){ct[t]=null}return ct[t]}function pt(e,t){var n;return e&&((n=l(t)?mt(e):gt(e,t))?st=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),st._abbr}function gt(e,t){if(null!==t){var n,i=lt;if(t.abbr=e,null!=ct[e])k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=ct[e]._config;else if(null!=t.parentLocale)if(null!=ct[t.parentLocale])i=ct[t.parentLocale]._config;else{if(null==(n=ft(t.parentLocale)))return ut[t.parentLocale]||(ut[t.parentLocale]=[]),ut[t.parentLocale].push({name:e,config:t}),null;i=n._config}return ct[e]=new L(I(i,t)),ut[e]&&ut[e].forEach((function(e){gt(e.name,e.config)})),pt(e),ct[e]}return delete ct[e],null}function mt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return st;if(!r(e)){if(t=ft(e))return t;e=[e]}return function(e){for(var t,n,i,r,o=0;o<e.length;){for(t=(r=ht(e[o]).split("-")).length,n=(n=ht(e[o+1]))?n.split("-"):null;t>0;){if(i=ft(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&dt(r,n)>=t-1)break;t--}o++}return st}(e)}function vt(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[Ae]<0||n[Ae]>11?Ae:n[_e]<1||n[_e]>Te(n[we],n[Ae])?_e:n[Ce]<0||n[Ce]>24||24===n[Ce]&&(0!==n[Me]||0!==n[ke]||0!==n[Se])?Ce:n[Me]<0||n[Me]>59?Me:n[ke]<0||n[ke]>59?ke:n[Se]<0||n[Se]>999?Se:-1,p(e)._overflowDayOfYear&&(t<we||t>_e)&&(t=_e),p(e)._overflowWeeks&&-1===t&&(t=Ie),p(e)._overflowWeekday&&-1===t&&(t=Le),p(e).overflow=t),e}var yt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xt=/Z|[+-]\d\d(?::?\d\d)?/,wt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],At=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],_t=/^\/?Date\((-?\d+)/i,Ct=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Mt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function kt(e){var t,n,i,r,o,a,s=e._i,l=yt.exec(s)||bt.exec(s),c=wt.length,u=At.length;if(l){for(p(e).iso=!0,t=0,n=c;t<n;t++)if(wt[t][1].exec(l[1])){r=wt[t][0],i=!1!==wt[t][2];break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,n=u;t<n;t++)if(At[t][1].exec(l[3])){o=(l[2]||" ")+At[t][0];break}if(null==o)return void(e._isValid=!1)}if(!i&&null!=o)return void(e._isValid=!1);if(l[4]){if(!xt.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=r+(o||"")+(a||""),Dt(e)}else e._isValid=!1}function St(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function It(e){var t,n,i,r,o,a,s,l,c=Ct.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(c){if(n=c[4],i=c[3],r=c[2],o=c[5],a=c[6],s=c[7],l=[St(n),Oe.indexOf(i),parseInt(r,10),parseInt(o,10),parseInt(a,10)],s&&l.push(parseInt(s,10)),t=l,!function(e,t,n){return!e||qe.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(p(n).weekdayMismatch=!0,n._isValid=!1,!1)}(c[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return Mt[e];if(t)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}(c[8],c[9],c[10]),e._d=Ue.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function Lt(e,t,n){return null!=e?e:null!=t?t:n}function Tt(e){var t,n,r,o,a,s=[];if(!e._d){for(r=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[_e]&&null==e._a[Ae]&&function(e){var t,n,i,r,o,a,s,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,a=4,n=Lt(t.GG,e._a[we],Ze(Nt(),1,4).year),i=Lt(t.W,1),((r=Lt(t.E,1))<1||r>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=Ze(Nt(),o,a),n=Lt(t.gg,e._a[we],c.year),i=Lt(t.w,c.week),null!=t.d?((r=t.d)<0||r>6)&&(l=!0):null!=t.e?(r=t.e+o,(t.e<0||t.e>6)&&(l=!0)):r=o),i<1||i>Ge(n,o,a)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(s=Ve(n,i,r,o,a),e._a[we]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=Lt(e._a[we],r[we]),(e._dayOfYear>Be(a)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=Ue(a,0,e._dayOfYear),e._a[Ae]=n.getUTCMonth(),e._a[_e]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ce]&&0===e._a[Me]&&0===e._a[ke]&&0===e._a[Se]&&(e._nextDay=!0,e._a[Ce]=0),e._d=(e._useUTC?Ue:Ye).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ce]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(p(e).weekdayMismatch=!0)}}function Dt(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],p(e).empty=!0;var t,n,r,o,a,s,l,c=""+e._i,u=c.length,d=0;for(l=(r=F(e._f,e._locale).match(D)||[]).length,t=0;t<l;t++)o=r[t],(n=(c.match(pe(o,e))||[])[0])&&((a=c.substr(0,c.indexOf(n))).length>0&&p(e).unusedInput.push(a),c=c.slice(c.indexOf(n)+n.length),d+=n.length),N[o]?(n?p(e).empty=!1:p(e).unusedTokens.push(o),be(o,n,e)):e._strict&&!n&&p(e).unusedTokens.push(o);p(e).charsLeftOver=u-d,c.length>0&&p(e).unusedInput.push(c),e._a[Ce]<=12&&!0===p(e).bigHour&&e._a[Ce]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[Ce]=function(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}(e._locale,e._a[Ce],e._meridiem),null!==(s=p(e).era)&&(e._a[we]=e._locale.erasConvertYear(s,e._a[we])),Tt(e),vt(e)}else It(e);else kt(e)}function Ot(e){var t=e._i,n=e._f;return e._locale=e._locale||mt(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new x(vt(t)):(u(t)?e._d=t:r(n)?function(e){var t,n,i,r,o,a,s=!1,l=e._f.length;if(0===l)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<l;r++)o=0,a=!1,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],Dt(t),g(t)&&(a=!0),o+=p(t).charsLeftOver,o+=10*p(t).unusedTokens.length,p(t).score=o,s?o<i&&(i=o,n=t):(null==i||o<i||a)&&(i=o,n=t,a&&(s=!0));h(e,n||t)}(e):n?Dt(e):function(e){var t=e._i;l(t)?e._d=new Date(i.now()):u(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=_t.exec(e._i);null===t?(kt(e),!1===e._isValid&&(delete e._isValid,It(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:i.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):r(t)?(e._a=d(t.slice(0),(function(e){return parseInt(e,10)})),Tt(e)):o(t)?function(e){if(!e._d){var t=W(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Tt(e)}}(e):c(t)?e._d=new Date(t):i.createFromInputFallback(e)}(e),g(e)||(e._d=null),e))}function jt(e,t,n,i,a){var l,c={};return!0!==t&&!1!==t||(i=t,t=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(o(e)&&s(e)||r(e)&&0===e.length)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=a,c._l=n,c._i=e,c._f=t,c._strict=i,(l=new x(vt(Ot(c))))._nextDay&&(l.add(1,"d"),l._nextDay=void 0),l}function Nt(e,t,n,i){return jt(e,t,n,i,!1)}i.createFromInputFallback=_("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Et=_("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Nt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:m()})),Pt=_("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Nt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:m()}));function Ft(e,t){var n,i;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return Nt();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}var zt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Rt(e){var t=W(e),n=t.year||0,i=t.quarter||0,r=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,c=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,n,i=!1,r=zt.length;for(t in e)if(a(e,t)&&(-1===xe.call(zt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<r;++n)if(e[zt[n]]){if(i)return!1;parseFloat(e[zt[n]])!==Z(e[zt[n]])&&(i=!0)}return!0}(t),this._milliseconds=+d+1e3*u+6e4*c+1e3*l*60*60,this._days=+s+7*o,this._months=+r+3*i+12*n,this._data={},this._locale=mt(),this._bubble()}function Bt(e){return e instanceof Rt}function Wt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Yt(e,t){E(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+T(~~(e/60),2)+t+T(~~e%60,2)}))}Yt("Z",":"),Yt("ZZ",""),fe("Z",de),fe("ZZ",de),ve(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Ht(de,e)}));var Ut=/([\+\-]|\d\d)/gi;function Ht(e,t){var n,i,r=(t||"").match(e);return null===r?null:0===(i=60*(n=((r[r.length-1]||[])+"").match(Ut)||["-",0,0])[1]+Z(n[2]))?0:"+"===n[0]?i:-i}function Vt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(w(e)||u(e)?e.valueOf():Nt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Nt(e).local()}function Zt(e){return-Math.round(e._d.getTimezoneOffset())}function Gt(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Qt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Jt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function qt(e,t){var n,i,r,o,s,l,u=e,d=null;return Bt(e)?u={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(u={},t?u[t]=+e:u.milliseconds=+e):(d=Qt.exec(e))?(n="-"===d[1]?-1:1,u={y:0,d:Z(d[_e])*n,h:Z(d[Ce])*n,m:Z(d[Me])*n,s:Z(d[ke])*n,ms:Z(Wt(1e3*d[Se]))*n}):(d=Jt.exec(e))?(n="-"===d[1]?-1:1,u={y:Xt(d[2],n),M:Xt(d[3],n),w:Xt(d[4],n),d:Xt(d[5],n),h:Xt(d[6],n),m:Xt(d[7],n),s:Xt(d[8],n)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(o=Nt(u.from),s=Nt(u.to),r=o.isValid()&&s.isValid()?(s=Vt(s,o),o.isBefore(s)?l=Kt(o,s):((l=Kt(s,o)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(u={}).ms=r.milliseconds,u.M=r.months),i=new Rt(u),Bt(e)&&a(e,"_locale")&&(i._locale=e._locale),Bt(e)&&a(e,"_isValid")&&(i._isValid=e._isValid),i}function Xt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Kt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function $t(e,t){return function(n,i){var r;return null===i||isNaN(+i)||(k(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),en(this,qt(n,i),e),this}}function en(e,t,n,r){var o=t._milliseconds,a=Wt(t._days),s=Wt(t._months);e.isValid()&&(r=null==r||r,s&&Fe(e,Q(e,"Month")+s*n),a&&J(e,"Date",Q(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&i.updateOffset(e,a||s))}qt.fn=Rt.prototype,qt.invalid=function(){return qt(NaN)};var tn=$t(1,"add"),nn=$t(-1,"subtract");function rn(e){return"string"==typeof e||e instanceof String}function on(e){return w(e)||u(e)||rn(e)||c(e)||function(e){var t=r(e),n=!1;return t&&(n=0===e.filter((function(t){return!c(t)&&rn(e)})).length),t&&n}(e)||function(e){var t,n,i=o(e)&&!s(e),r=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=l.length;for(t=0;t<c;t+=1)n=l[t],r=r||a(e,n);return i&&r}(e)||null==e}function an(e,t){if(e.date()<t.date())return-an(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months");return-(n+(t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(n+1,"months")-i)))||0}function sn(e){var t;return void 0===e?this._locale._abbr:(null!=(t=mt(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ln=_("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function cn(){return this._locale}var un=1e3,dn=6e4,hn=36e5,fn=126227808e5;function pn(e,t){return(e%t+t)%t}function gn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-fn:new Date(e,t,n).valueOf()}function mn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-fn:Date.UTC(e,t,n)}function vn(e,t){return t.erasAbbrRegex(e)}function yn(){var e,t,n=[],i=[],r=[],o=[],a=this.eras();for(e=0,t=a.length;e<t;++e)i.push(ge(a[e].name)),n.push(ge(a[e].abbr)),r.push(ge(a[e].narrow)),o.push(ge(a[e].name)),o.push(ge(a[e].abbr)),o.push(ge(a[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function bn(e,t){E(0,[e,e.length],0,t)}function xn(e,t,n,i,r){var o;return null==e?Ze(this,i,r).year:(t>(o=Ge(e,i,r))&&(t=o),wn.call(this,e,t,n,i,r))}function wn(e,t,n,i,r){var o=Ve(e,t,n,i,r),a=Ue(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}E("N",0,0,"eraAbbr"),E("NN",0,0,"eraAbbr"),E("NNN",0,0,"eraAbbr"),E("NNNN",0,0,"eraName"),E("NNNNN",0,0,"eraNarrow"),E("y",["y",1],"yo","eraYear"),E("y",["yy",2],0,"eraYear"),E("y",["yyy",3],0,"eraYear"),E("y",["yyyy",4],0,"eraYear"),fe("N",vn),fe("NN",vn),fe("NNN",vn),fe("NNNN",(function(e,t){return t.erasNameRegex(e)})),fe("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ve(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,i){var r=n._locale.erasParse(e,i,n._strict);r?p(n).era=r:p(n).invalidEra=e})),fe("y",le),fe("yy",le),fe("yyy",le),fe("yyyy",le),fe("yo",(function(e,t){return t._eraYearOrdinalRegex||le})),ve(["y","yy","yyy","yyyy"],we),ve(["yo"],(function(e,t,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[we]=n._locale.eraYearOrdinalParse(e,r):t[we]=parseInt(e,10)})),E(0,["gg",2],0,(function(){return this.weekYear()%100})),E(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),bn("gggg","weekYear"),bn("ggggg","weekYear"),bn("GGGG","isoWeekYear"),bn("GGGGG","isoWeekYear"),R("weekYear","gg"),R("isoWeekYear","GG"),U("weekYear",1),U("isoWeekYear",1),fe("G",ce),fe("g",ce),fe("GG",ne,K),fe("gg",ne,K),fe("GGGG",ae,ee),fe("gggg",ae,ee),fe("GGGGG",se,te),fe("ggggg",se,te),ye(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,i){t[i.substr(0,2)]=Z(e)})),ye(["gg","GG"],(function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)})),E("Q",0,"Qo","quarter"),R("quarter","Q"),U("quarter",7),fe("Q",X),ve("Q",(function(e,t){t[Ae]=3*(Z(e)-1)})),E("D",["DD",2],"Do","date"),R("date","D"),U("date",9),fe("D",ne),fe("DD",ne,K),fe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ve(["D","DD"],_e),ve("Do",(function(e,t){t[_e]=Z(e.match(ne)[0])}));var An=G("Date",!0);E("DDD",["DDDD",3],"DDDo","dayOfYear"),R("dayOfYear","DDD"),U("dayOfYear",4),fe("DDD",oe),fe("DDDD",$),ve(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=Z(e)})),E("m",["mm",2],0,"minute"),R("minute","m"),U("minute",14),fe("m",ne),fe("mm",ne,K),ve(["m","mm"],Me);var _n=G("Minutes",!1);E("s",["ss",2],0,"second"),R("second","s"),U("second",15),fe("s",ne),fe("ss",ne,K),ve(["s","ss"],ke);var Cn,Mn,kn=G("Seconds",!1);for(E("S",0,0,(function(){return~~(this.millisecond()/100)})),E(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),E(0,["SSS",3],0,"millisecond"),E(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),E(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),E(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),E(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),E(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),E(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),R("millisecond","ms"),U("millisecond",16),fe("S",oe,X),fe("SS",oe,K),fe("SSS",oe,$),Cn="SSSS";Cn.length<=9;Cn+="S")fe(Cn,le);function Sn(e,t){t[Se]=Z(1e3*("0."+e))}for(Cn="S";Cn.length<=9;Cn+="S")ve(Cn,Sn);Mn=G("Milliseconds",!1),E("z",0,0,"zoneAbbr"),E("zz",0,0,"zoneName");var In=x.prototype;function Ln(e){return e}In.add=tn,In.calendar=function(e,t){1===arguments.length&&(arguments[0]?on(arguments[0])?(e=arguments[0],t=void 0):function(e){var t,n=o(e)&&!s(e),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<r.length;t+=1)i=i||a(e,r[t]);return n&&i}(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Nt(),r=Vt(n,this).startOf("day"),l=i.calendarFormat(this,r)||"sameElse",c=t&&(S(t[l])?t[l].call(this,n):t[l]);return this.format(c||this.localeData().calendar(l,this,Nt(n)))},In.clone=function(){return new x(this)},In.diff=function(e,t,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=Vt(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=B(t)){case"year":o=an(this,i)/12;break;case"month":o=an(this,i);break;case"quarter":o=an(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:V(o)},In.endOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?mn:gn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=hn-pn(t+(this._isUTC?0:this.utcOffset()*dn),hn)-1;break;case"minute":t=this._d.valueOf(),t+=dn-pn(t,dn)-1;break;case"second":t=this._d.valueOf(),t+=un-pn(t,un)-1}return this._d.setTime(t),i.updateOffset(this,!0),this},In.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=P(this,e);return this.localeData().postformat(t)},In.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Nt(e).isValid())?qt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},In.fromNow=function(e){return this.from(Nt(),e)},In.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Nt(e).isValid())?qt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},In.toNow=function(e){return this.to(Nt(),e)},In.get=function(e){return S(this[e=B(e)])?this[e]():this},In.invalidAt=function(){return p(this).overflow},In.isAfter=function(e,t){var n=w(e)?e:Nt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},In.isBefore=function(e,t){var n=w(e)?e:Nt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},In.isBetween=function(e,t,n,i){var r=w(e)?e:Nt(e),o=w(t)?t:Nt(t);return!!(this.isValid()&&r.isValid()&&o.isValid())&&("("===(i=i||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(o,n):!this.isAfter(o,n))},In.isSame=function(e,t){var n,i=w(e)?e:Nt(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},In.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},In.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},In.isValid=function(){return g(this)},In.lang=ln,In.locale=sn,In.localeData=cn,In.max=Pt,In.min=Et,In.parsingFlags=function(){return h({},p(this))},In.set=function(e,t){if("object"==typeof e){var n,i=function(e){var t,n=[];for(t in e)a(e,t)&&n.push({unit:t,priority:Y[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=W(e)),r=i.length;for(n=0;n<r;n++)this[i[n].unit](e[i[n].unit])}else if(S(this[e=B(e)]))return this[e](t);return this},In.startOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?mn:gn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=pn(t+(this._isUTC?0:this.utcOffset()*dn),hn);break;case"minute":t=this._d.valueOf(),t-=pn(t,dn);break;case"second":t=this._d.valueOf(),t-=pn(t,un)}return this._d.setTime(t),i.updateOffset(this,!0),this},In.subtract=nn,In.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},In.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},In.toDate=function(){return new Date(this.valueOf())},In.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?P(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",P(n,"Z")):P(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},In.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,i="moment",r="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY","-MM-DD[T]HH:mm:ss.SSS",n=r+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(In[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),In.toJSON=function(){return this.isValid()?this.toISOString():null},In.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},In.unix=function(){return Math.floor(this.valueOf()/1e3)},In.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},In.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},In.eraName=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].name;if(i[e].until<=n&&n<=i[e].since)return i[e].name}return""},In.eraNarrow=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].narrow;if(i[e].until<=n&&n<=i[e].since)return i[e].narrow}return""},In.eraAbbr=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].abbr;if(i[e].until<=n&&n<=i[e].since)return i[e].abbr}return""},In.eraYear=function(){var e,t,n,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return(this.year()-i(o[e].since).year())*n+o[e].offset;return this.year()},In.year=We,In.isLeapYear=function(){return H(this.year())},In.weekYear=function(e){return xn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},In.isoWeekYear=function(e){return xn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},In.quarter=In.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},In.month=ze,In.daysInMonth=function(){return Te(this.year(),this.month())},In.week=In.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},In.isoWeek=In.isoWeeks=function(e){var t=Ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},In.weeksInYear=function(){var e=this.localeData()._week;return Ge(this.year(),e.dow,e.doy)},In.weeksInWeekYear=function(){var e=this.localeData()._week;return Ge(this.weekYear(),e.dow,e.doy)},In.isoWeeksInYear=function(){return Ge(this.year(),1,4)},In.isoWeeksInISOWeekYear=function(){return Ge(this.isoWeekYear(),1,4)},In.date=An,In.day=In.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},In.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},In.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},In.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},In.hour=In.hours=at,In.minute=In.minutes=_n,In.second=In.seconds=kn,In.millisecond=In.milliseconds=Mn,In.utcOffset=function(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ht(de,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Zt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?en(this,qt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Zt(this)},In.utc=function(e){return this.utcOffset(0,e)},In.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Zt(this),"m")),this},In.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ht(ue,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},In.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Nt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},In.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},In.isLocal=function(){return!!this.isValid()&&!this._isUTC},In.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},In.isUtc=Gt,In.isUTC=Gt,In.zoneAbbr=function(){return this._isUTC?"UTC":""},In.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},In.dates=_("dates accessor is deprecated. Use date instead.",An),In.months=_("months accessor is deprecated. Use month instead",ze),In.years=_("years accessor is deprecated. Use year instead",We),In.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),In.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=Ot(t))._a?(e=t._isUTC?f(t._a):Nt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var i,r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(i=0;i<r;i++)(n&&e[i]!==t[i]||!n&&Z(e[i])!==Z(t[i]))&&a++;return a+o}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Tn=L.prototype;function Dn(e,t,n,i){var r=mt(),o=f().set(i,t);return r[n](o,e)}function On(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return Dn(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Dn(e,i,n,"month");return r}function jn(e,t,n,i){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var r,o=mt(),a=e?o._week.dow:0,s=[];if(null!=n)return Dn(t,(n+a)%7,i,"day");for(r=0;r<7;r++)s[r]=Dn(t,(r+a)%7,i,"day");return s}Tn.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return S(i)?i.call(t,n):i},Tn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(D).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},Tn.invalidDate=function(){return this._invalidDate},Tn.ordinal=function(e){return this._ordinal.replace("%d",e)},Tn.preparse=Ln,Tn.postformat=Ln,Tn.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return S(r)?r(e,t,n,i):r.replace(/%d/i,e)},Tn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return S(n)?n(t):n.replace(/%s/i,t)},Tn.set=function(e){var t,n;for(n in e)a(e,n)&&(S(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Tn.eras=function(e,t){var n,r,o,a=this._eras||mt("en")._eras;for(n=0,r=a.length;n<r;++n)switch("string"==typeof a[n].since&&(o=i(a[n].since).startOf("day"),a[n].since=o.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":o=i(a[n].until).startOf("day").valueOf(),a[n].until=o.valueOf()}return a},Tn.erasParse=function(e,t,n){var i,r,o,a,s,l=this.eras();for(e=e.toUpperCase(),i=0,r=l.length;i<r;++i)if(o=l[i].name.toUpperCase(),a=l[i].abbr.toUpperCase(),s=l[i].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[i];break;case"NNNN":if(o===e)return l[i];break;case"NNNNN":if(s===e)return l[i]}else if([o,a,s].indexOf(e)>=0)return l[i]},Tn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?i(e.since).year():i(e.since).year()+(t-e.offset)*n},Tn.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||yn.call(this),e?this._erasAbbrRegex:this._erasRegex},Tn.erasNameRegex=function(e){return a(this,"_erasNameRegex")||yn.call(this),e?this._erasNameRegex:this._erasRegex},Tn.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||yn.call(this),e?this._erasNarrowRegex:this._erasRegex},Tn.months=function(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||je).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone},Tn.monthsShort=function(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[je.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Tn.monthsParse=function(e,t,n){var i,r,o;if(this._monthsParseExact)return Pe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},Tn.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Re.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=Ee),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Tn.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Re.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Ne),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Tn.week=function(e){return Ze(e,this._week.dow,this._week.doy).week},Tn.firstDayOfYear=function(){return this._week.doy},Tn.firstDayOfWeek=function(){return this._week.dow},Tn.weekdays=function(e,t){var n=r(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Qe(n,this._week.dow):e?n[e.day()]:n},Tn.weekdaysMin=function(e){return!0===e?Qe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Tn.weekdaysShort=function(e){return!0===e?Qe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Tn.weekdaysParse=function(e,t,n){var i,r,o;if(this._weekdaysParseExact)return tt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},Tn.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Ke),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Tn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$e),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Tn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=et),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Tn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Tn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},pt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===Z(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=_("moment.lang is deprecated. Use moment.locale instead.",pt),i.langData=_("moment.langData is deprecated. Use moment.localeData instead.",mt);var Nn=Math.abs;function En(e,t,n,i){var r=qt(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function Pn(e){return e<0?Math.floor(e):Math.ceil(e)}function Fn(e){return 4800*e/146097}function zn(e){return 146097*e/4800}function Rn(e){return function(){return this.as(e)}}var Bn=Rn("ms"),Wn=Rn("s"),Yn=Rn("m"),Un=Rn("h"),Hn=Rn("d"),Vn=Rn("w"),Zn=Rn("M"),Gn=Rn("Q"),Qn=Rn("y");function Jn(e){return function(){return this.isValid()?this._data[e]:NaN}}var qn=Jn("milliseconds"),Xn=Jn("seconds"),Kn=Jn("minutes"),$n=Jn("hours"),ei=Jn("days"),ti=Jn("months"),ni=Jn("years");var ii=Math.round,ri={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function oi(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}var ai=Math.abs;function si(e){return(e>0)-(e<0)||+e}function li(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i,r,o,a,s,l=ai(this._milliseconds)/1e3,c=ai(this._days),u=ai(this._months),d=this.asSeconds();return d?(e=V(l/60),t=V(e/60),l%=60,e%=60,n=V(u/12),u%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",o=si(this._months)!==si(d)?"-":"",a=si(this._days)!==si(d)?"-":"",s=si(this._milliseconds)!==si(d)?"-":"",r+"P"+(n?o+n+"Y":"")+(u?o+u+"M":"")+(c?a+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+i+"S":"")):"P0D"}var ci=Rt.prototype;return ci.isValid=function(){return this._isValid},ci.abs=function(){var e=this._data;return this._milliseconds=Nn(this._milliseconds),this._days=Nn(this._days),this._months=Nn(this._months),e.milliseconds=Nn(e.milliseconds),e.seconds=Nn(e.seconds),e.minutes=Nn(e.minutes),e.hours=Nn(e.hours),e.months=Nn(e.months),e.years=Nn(e.years),this},ci.add=function(e,t){return En(this,e,t,1)},ci.subtract=function(e,t){return En(this,e,t,-1)},ci.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=B(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+Fn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(zn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},ci.asMilliseconds=Bn,ci.asSeconds=Wn,ci.asMinutes=Yn,ci.asHours=Un,ci.asDays=Hn,ci.asWeeks=Vn,ci.asMonths=Zn,ci.asQuarters=Gn,ci.asYears=Qn,ci.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Z(this._months/12):NaN},ci._bubble=function(){var e,t,n,i,r,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Pn(zn(s)+a),a=0,s=0),l.milliseconds=o%1e3,e=V(o/1e3),l.seconds=e%60,t=V(e/60),l.minutes=t%60,n=V(t/60),l.hours=n%24,a+=V(n/24),s+=r=V(Fn(a)),a-=Pn(zn(r)),i=V(s/12),s%=12,l.days=a,l.months=s,l.years=i,this},ci.clone=function(){return qt(this)},ci.get=function(e){return e=B(e),this.isValid()?this[e+"s"]():NaN},ci.milliseconds=qn,ci.seconds=Xn,ci.minutes=Kn,ci.hours=$n,ci.days=ei,ci.weeks=function(){return V(this.days()/7)},ci.months=ti,ci.years=ni,ci.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,o=ri;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(o=Object.assign({},ri,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),i=function(e,t,n,i){var r=qt(e).abs(),o=ii(r.as("s")),a=ii(r.as("m")),s=ii(r.as("h")),l=ii(r.as("d")),c=ii(r.as("M")),u=ii(r.as("w")),d=ii(r.as("y")),h=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||u<=1&&["w"]||u<n.w&&["ww",u]),(h=h||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,h[3]=+e>0,h[4]=i,oi.apply(null,h)}(this,!r,o,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)},ci.toISOString=li,ci.toString=li,ci.toJSON=li,ci.locale=sn,ci.localeData=cn,ci.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",li),ci.lang=ln,E("X",0,0,"unix"),E("x",0,0,"valueOf"),fe("x",ce),fe("X",/[+-]?\d+(\.\d{1,3})?/),ve("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ve("x",(function(e,t,n){n._d=new Date(Z(e))})),i.version="2.29.4",t=Nt,i.fn=In,i.min=function(){return Ft("isBefore",[].slice.call(arguments,0))},i.max=function(){return Ft("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=f,i.unix=function(e){return Nt(1e3*e)},i.months=function(e,t){return On(e,t,"months")},i.isDate=u,i.locale=pt,i.invalid=m,i.duration=qt,i.isMoment=w,i.weekdays=function(e,t,n){return jn(e,t,n,"weekdays")},i.parseZone=function(){return Nt.apply(null,arguments).parseZone()},i.localeData=mt,i.isDuration=Bt,i.monthsShort=function(e,t){return On(e,t,"monthsShort")},i.weekdaysMin=function(e,t,n){return jn(e,t,n,"weekdaysMin")},i.defineLocale=gt,i.updateLocale=function(e,t){if(null!=t){var n,i,r=lt;null!=ct[e]&&null!=ct[e].parentLocale?ct[e].set(I(ct[e]._config,t)):(null!=(i=ft(e))&&(r=i._config),t=I(r,t),null==i&&(t.abbr=e),(n=new L(t)).parentLocale=ct[e],ct[e]=n),pt(e)}else null!=ct[e]&&(null!=ct[e].parentLocale?(ct[e]=ct[e].parentLocale,e===pt()&&pt(e)):null!=ct[e]&&delete ct[e]);return ct[e]},i.locales=function(){return C(ct)},i.weekdaysShort=function(e,t,n){return jn(e,t,n,"weekdaysShort")},i.normalizeUnits=B,i.relativeTimeRounding=function(e){return void 0===e?ii:"function"==typeof e&&(ii=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==ri[e]&&(void 0===t?ri[e]:(ri[e]=t,"s"===e&&(ri.ss=t-1),!0))},i.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=In,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},215:e=>{"use strict";e.exports=JSON.parse('{"unitFormatGBP":"£","unitFormatUSD":"US $","unitFormatEUR":"€","unitFormatMXN":"MXN $","unitFormatUAH":"₴","centsUSD":"cents","centsEUR":"cents","centsAUD":"cents","centsZAR":"cents","centsMXN":"cents","centsGBP":"pence"}')},713:e=>{"use strict";e.exports=JSON.parse('{"Name":"Name","Number":"Number","IssueDate":"IssueDate","Paragraph":"Paragraph","Subparagraph":"Subparagraph","URI":"URI","URIDate":"URIDate","Note":"Note"}')},583:e=>{"use strict";e.exports=JSON.parse('{"common":{"accuracyInfinite":"Infinite precision","none":"None","notApplicable":"n/a","unscaled":"Unscaled","unspecified":"Unspecified"},"factDetails":{"accuracy":"Accuracy","change":"Change","changeFromIn":"From {{from}} in ","changePercentageDecrease":"{{decrease}}% decrease on ","changePercentageIncrease":"{{increase}}% increase on ","concept":"Concept","date":"Date","dimensions":"Dimensions","duplicatesCount":"{{current}} of {{total}}","entity":"Entity","factValue":"Fact Value","noPriorFactInThisReport":"No prior fact in this report","noUnit":"<NOUNIT>","properties":"Properties","scale":"Scale"},"footnotes":{"footnote":"Footnote"},"inspector":{"anchoring":"Anchoring","associatedFacts":"Associated facts","calculations":"Calculations","concealedFact":"Concealed fact","conceptType":"Concept Type","contributor":"Contributor","documentOutline":"Document outline","documentSummary":"Document summary","fact-groups":"Sections","factProperties":"Fact Properties","factSearch":"Fact Search","factValue":"Fact Value","filter":"Filter","footnoteProperties":"Footnote Properties","footnotes":"Footnotes","hiddenFact":"Hidden Fact","hiddenFacts":"Hidden Facts","highlight":"Highlight","initializing":"Initializing","loadingViewer":"Loading iXBRL Viewer","matchingConcepts":" matching concept(s)","namespaces":"Namespaces","narrowerAnchor":"Narrower anchors","negative":"Negative","nextTag":"Next tag","noFactSelected":"No Fact Selected","numericOption":"Numeric","outlineUnavailable":"Outline Unavailable","period":"Period","positive":"Positive","previousTag":"Previous tag","printDocument":"Print Document","references":"References","reset":"Reset","scales":"Scales","searchTitle":"Search","showTextOnly":"Show text only","summary":{"fact":{"header":"Fact Summary","title":"Total Facts:"},"file":{"calculations":"Calculation Linkbases","definitions":"Definition Linkbases","header":"File Summary","inline":"Inline Documents","labels":"Label Linkbases","other":"Other Linkbases","presentation":"Presentation Linkbases","references":"Reference Linkbases","schemas":"Schemas"},"tag":{"colDimensions":"Dimensions","colMembers":"Members","colNamespace":"Namespace","colPrimaryItems":"Primary Items","colTotal":"Total","header":"Tag Summary","rowTotal":"Total"}},"summation":"Summation","textOption":"Text","units":"Units","validationCode":"Code","validationMessage":"Message","validationResults":"Validation results","validationSeverity":"Severity","visibleFacts":"Visible Facts","widerAnchor":"Wider anchor"},"scale":{"0":"ones","1":"tens","2":"hundreds","3":"thousands","4":"ten thousands","5":"hundred thousands","6":"millions","7":"ten millions","8":"hundred millions","9":"billions","-3":"thousandths","-2":"hundredths","-1":"tenths"},"search":{"concealedFact":"Concealed fact","hiddenFact":"Hidden fact","noMatchFound":"No match found","selected":"selected","showMoreResults":"Show more results","tryAgainDifferentKeywords":"Try again with different keywords"},"toolbar":{"xbrlElements":"XBRL Elements"}}')},362:e=>{"use strict";e.exports=JSON.parse('{"centsUSD":"centavos","centsEUR":"centavos","centsAUD":"centavos","centsZAR":"centavos","centsMXN":"centavos","centsGBP":"centavos"}')},494:e=>{"use strict";e.exports=JSON.parse('{"Name":"Nombre","Number":"Número","IssueDate":"Fecha de Emisión","Paragraph":"Párrafo","Subparagraph":"Subpárrafo","URI":"URI","URIDate":"Fecha de URI","Note":"Nota"}')},524:e=>{"use strict";e.exports=JSON.parse('{"common":{"accuracyInfinite":"Precisió infinita","none":"Ninguno","notApplicable":"n/d","unscaled":"Sin escala","unspecified":"Sin especificar"},"factDetails":{"accuracy":"Precisión","change":"Cambio","changeFromIn":"Anteriormente {{from}} en ","changePercentageDecrease":"{{decrease}}% menos que en ","changePercentageIncrease":"{{increase}}% más que en ","concept":"Concepto","date":"Fecha","dimensions":"Dimensiones","duplicatesCount":"{{current}} de {{total}}","entity":"Entidad","factValue":"Valor del hecho","noPriorFactInThisReport":"No hay un hecho previo","noUnit":"Sin unidad","properties":"Características","scale":"Escala"},"footnotes":{"footnote":"Nota al pie de página"},"inspector":{"anchoring":"Anclaje","associatedFacts":"Hechos asociados","calculations":"Cálculos","concealedFact":"","conceptType":"Tipo de concepto","contributor":"","documentOutline":"","documentSummary":"","fact-groups":"","factProperties":"Propiedades del hecho","factSearch":"Búsqueda de hechos","factValue":"","filter":"Filtro","footnoteProperties":"Propiedades de la nota al pie de página","footnotes":"Notas al pie de página","hiddenFact":"Hecho oculto","hiddenFacts":"Hechos ocultos","highlight":"Destacar","initializing":"","loadingViewer":"Preparando el visor iXBRL","matchingConcepts":"","namespaces":"","narrowerAnchor":"Anclaje angosto","negative":"","nextTag":"","noFactSelected":"Ningún hecho seleccionado","numericOption":"Numérico","outlineUnavailable":"","period":"Periodo","positive":"","previousTag":"","printDocument":"","references":"Referencias","reset":"Limpiar","scales":"Escalas","searchTitle":"Búsqueda de hechos","showTextOnly":"","summary":{"fact":{"header":"","title":""},"file":{"calculations":"","definitions":"","header":"","inline":"","labels":"","other":"","presentation":"","references":"","schemas":""},"tag":{"colDimensions":"","colMembers":"","colNamespace":"","colPrimaryItems":"","colTotal":"","header":"","rowTotal":""}},"summation":"","textOption":"Texto","units":"Unidads","validationCode":"","validationMessage":"","validationResults":"","validationSeverity":"","visibleFacts":"Hechos visibles","widerAnchor":"Anclaje amplio"},"scale":{"0":"unidades","1":"décimos","2":"cientos","3":"miles","4":"diez miles","5":"cien miles","6":"millones","7":"diez millones","8":"cien millones","9":"billones","-3":"milésimos","-2":"centésimos","-1":"décimas"},"search":{"concealedFact":"","hiddenFact":"Hecho oculto","noMatchFound":"No se encontró ninguna coincidencia","selected":"seleccionados","showMoreResults":"Mostrar más resultados","tryAgainDifferentKeywords":"Intente nuevamente con palabras clave diferentes"},"toolbar":{"xbrlElements":"Elementos XBRL"}}')}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e=n(291),t=n.n(e),i=n(212),r=n.n(i);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===o(t)?t:String(t)}function s(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&i.push.apply(i,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach((function(t){s(e,t,n[t])}))}return e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,a(i.key),i)}}function d(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}var v={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},y=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,e),this.init(t,n)}return d(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||v,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,i){return i&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,l({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),b=function(){function e(){c(this,e),this.observers={}}return d(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,n)})),this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(t){t.apply(t,[e].concat(n))}))}}]),e}();function x(){var e,t,n=new Promise((function(n,i){e=n,t=i}));return n.resolve=e,n.reject=t,n}function w(e){return null==e?"":""+e}function A(e,t,n){function i(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function r(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(r())return{};var a=i(o.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return r()?{}:{obj:e,k:i(o.shift())}}function _(e,t,n){var i=A(e,t,Object);i.obj[i.k]=n}function C(e,t){var n=A(e,t),i=n.obj,r=n.k;if(i)return i[r]}function M(e,t,n){var i=C(e,n);return void 0!==i?i:C(t,n)}function k(e,t,n){for(var i in t)"__proto__"!==i&&"constructor"!==i&&(i in e?"string"==typeof e[i]||e[i]instanceof String||"string"==typeof t[i]||t[i]instanceof String?n&&(e[i]=t[i]):k(e[i],t[i],n):e[i]=t[i]);return e}function S(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var I={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function L(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return I[e]})):e}var T="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function D(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var i=t.split(n),r=e,o=0;o<i.length;++o){if(!r)return;if("string"==typeof r[i[o]]&&o+1<i.length)return;if(void 0===r[i[o]]){for(var a=2,s=i.slice(o,o+a).join(n),l=r[s];void 0===l&&i.length>o+a;)a++,l=r[s=i.slice(o,o+a).join(n)];if(void 0===l)return;if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s];var c=i.slice(o+a).join(n);return c?D(l,c,n):void 0}r=r[i[o]]}return r}}var O=function(e){function t(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return c(this,t),n=f(this,p(t).call(this)),T&&b.call(h(n)),n.data=e||{},n.options=i,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return m(t,e),d(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,o=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(a=e.split("."));var s=C(this.data,a);return s||!o||"string"!=typeof n?s:D(this.data&&this.data[e]&&this.data[e][t],n,r)}},{key:"addResource",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=t,t=(a=e.split("."))[1]),this.addNamespaces(t),_(this.data,a,i),r.silent||this.emit("added",e,t,n,i)}},{key:"addResources",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in n)"string"!=typeof n[r]&&"[object Array]"!==Object.prototype.toString.apply(n[r])||this.addResource(e,t,r,n[r],{silent:!0});i.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(i=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=C(this.data,a)||{};i?k(s,n,r):s=l({},s,n),_(this.data,a,s),o.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?l({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(b),j={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,i,r){var o=this;return e.forEach((function(e){o.processors[e]&&(t=o.processors[e].process(t,n,i,r))})),t}},N={},E=function(e){function t(e){var n,i,r,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c(this,t),n=f(this,p(t).call(this)),T&&b.call(h(n)),i=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r=e,o=h(n),i.forEach((function(e){r[e]&&(o[e]=r[e])})),n.options=a,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=y.create("translator"),n}return m(t,e),d(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var o=e.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:e,namespaces:r};var a=e.split(n);(n!==i||n===i&&this.options.ns.indexOf(a[0])>-1)&&(r=a.shift()),e=a.join(i)}return"string"==typeof r&&(r=[r]),{key:e,namespaces:r}}},{key:"translate",value:function(e,n,i){var r=this;if("object"!==o(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var a=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],n),c=s.key,u=s.namespaces,d=u[u.length-1],h=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(h&&"cimode"===h.toLowerCase()){if(f){var p=n.nsSeparator||this.options.nsSeparator;return d+p+c}return c}var g=this.resolve(e,n),m=g&&g.res,v=g&&g.usedKey||c,y=g&&g.exactUsedKey||c,b=Object.prototype.toString.apply(m),x=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject;if(w&&m&&"string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m&&["[object Number]","[object Function]","[object RegExp]"].indexOf(b)<0&&("string"!=typeof x||"[object Array]"!==b)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,m,l({},n,{ns:u})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");if(a){var A="[object Array]"===b,_=A?[]:{},C=A?y:v;for(var M in m)if(Object.prototype.hasOwnProperty.call(m,M)){var k="".concat(C).concat(a).concat(M);_[M]=this.translate(k,l({},n,{joinArrays:!1,ns:u})),_[M]===k&&(_[M]=m[M])}m=_}}else if(w&&"string"==typeof x&&"[object Array]"===b)(m=m.join(x))&&(m=this.extendTranslation(m,e,n,i));else{var S=!1,I=!1,L=void 0!==n.count&&"string"!=typeof n.count,T=t.hasDefaultValue(n),D=L?this.pluralResolver.getSuffix(h,n.count):"",O=n["defaultValue".concat(D)]||n.defaultValue;!this.isValidLookup(m)&&T&&(S=!0,m=O),this.isValidLookup(m)||(I=!0,m=c);var j=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&I?void 0:m,N=T&&O!==m&&this.options.updateMissing;if(I||S||N){if(this.logger.log(N?"updateKey":"missingKey",h,d,c,N?O:m),a){var E=this.resolve(c,l({},n,{keySeparator:!1}));E&&E.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var P=[],F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&F&&F[0])for(var z=0;z<F.length;z++)P.push(F[z]);else"all"===this.options.saveMissingTo?P=this.languageUtils.toResolveHierarchy(n.lng||this.language):P.push(n.lng||this.language);var R=function(e,t,i){r.options.missingKeyHandler?r.options.missingKeyHandler(e,d,t,N?i:j,N,n):r.backendConnector&&r.backendConnector.saveMissing&&r.backendConnector.saveMissing(e,d,t,N?i:j,N,n),r.emit("missingKey",e,d,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&L?P.forEach((function(e){r.pluralResolver.getSuffixes(e).forEach((function(t){R([e],c+t,n["defaultValue".concat(t)]||O)}))})):R(P,c,O))}m=this.extendTranslation(m,e,n,g,i),I&&m===c&&this.options.appendNamespaceToMissingKey&&(m="".concat(d,":").concat(c)),(I||S)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(m))}return m}},{key:"extendTranslation",value:function(e,t,n,i,r){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(l({},n,{interpolation:l({},this.options.interpolation,n.interpolation)}));var a,s=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(s){var c=e.match(this.interpolator.nestingRegexp);a=c&&c.length}var u=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(u=l({},this.options.interpolation.defaultVariables,u)),e=this.interpolator.interpolate(e,u,n.lng||this.language,n),s){var d=e.match(this.interpolator.nestingRegexp);a<(d&&d.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];return r&&r[0]===i[0]&&!n.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(i[0]," in key: ").concat(t[0])),null):o.translate.apply(o,i.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var h=n.postProcess||this.options.postProcess,f="string"==typeof h?[h]:h;return null!=e&&f&&f.length&&!1!==n.applyPostProcessor&&(e=j.handle(f,e,t,this.options&&this.options.postProcessPassResolved?l({i18nResolved:i},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,i,r,o,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),c=l.key;n=c;var u=l.namespaces;a.options.fallbackNS&&(u=u.concat(a.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,h=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,f=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);u.forEach((function(e){a.isValidLookup(t)||(o=e,!N["".concat(f[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(N["".concat(f[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(f.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach((function(n){if(!a.isValidLookup(t)){r=n;var o,l,u=c,f=[u];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(f,c,n,e,s):(d&&(o=a.pluralResolver.getSuffix(n,s.count)),d&&h&&f.push(u+o),h&&f.push(u+="".concat(a.options.contextSeparator).concat(s.context)),d&&f.push(u+=o));l=f.pop();)a.isValidLookup(t)||(i=l,t=a.getResource(n,e,l,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:i,usedLng:r,usedNS:o}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,i):this.resourceStore.getResource(e,t,n,i)}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}]),t}(b);function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var F=function(){function e(t){c(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=y.create("languageUtils")}return d(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=P(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=P(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=P(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var i=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(i)||(t=i)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var i=n.getLanguagePartFromCode(e);if(n.isSupportedCode(i))return t=i;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(i))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,i=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],o=function(e){e&&(n.isSupportedCode(e)?r.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),i.forEach((function(e){r.indexOf(e)<0&&o(n.formatLanguageCode(e))})),r}}]),e}(),z=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},B=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,e),this.languageUtils=t,this.options=i,this.logger=y.create("pluralResolver"),this.rules=(n={},z.forEach((function(e){e.lngs.forEach((function(t){n[t]={numbers:e.nr,plurals:R[e.fc]}}))})),n)}return d(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,i=this.getRule(e);if(i){var r=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[r];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var a=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),W=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,e),this.logger=y.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return d(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:L,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?S(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?S(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?S(t.nestingPrefix):t.nestingPrefixEscaped||S("$t("),this.nestingSuffix=t.nestingSuffix?S(t.nestingSuffix):t.nestingSuffixEscaped||S(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,i){var r,o,a,s=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var d=function(e){if(e.indexOf(s.formatSeparator)<0){var r=M(t,c,e);return s.alwaysFormat?s.format(r,void 0,n,l({},i,t,{interpolationkey:e})):r}var o=e.split(s.formatSeparator),a=o.shift().trim(),u=o.join(s.formatSeparator).trim();return s.format(M(t,c,a),u,n,l({},i,t,{interpolationkey:a}))};this.resetRegExp();var h=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,f=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?u(s.escape(e)):u(e)}}].forEach((function(t){for(a=0;r=t.regex.exec(e);){if(void 0===(o=d(r[1].trim())))if("function"==typeof h){var n=h(e,r,i);o="string"==typeof n?n:""}else{if(f){o=r[0];continue}s.logger.warn("missed to pass in variable ".concat(r[1]," for interpolating ").concat(e)),o=""}else"string"==typeof o||s.useRawValueToEscape||(o=w(o));var l=t.safeValue(o);if(e=e.replace(r[0],l),f?(t.regex.lastIndex+=l.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,i,r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=l({},o);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var i=e.split(new RegExp("".concat(n,"[ ]*{"))),r="{".concat(i[1]);e=i[0],r=(r=this.interpolate(r,a)).replace(/'/g,'"');try{a=JSON.parse(r),t&&(a=l({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(r)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var c=[],u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var d=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=d.shift(),c=d,u=!0}if((i=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof i)return i;"string"!=typeof i&&(i=w(i)),i||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),i=""),u&&(i=c.reduce((function(e,t){return r.format(e,t,o.lng,l({},o,{interpolationkey:n[1].trim()}))}),i.trim())),e=e.replace(n[0],i),this.regexp.lastIndex=0}return e}}]),e}(),Y=function(e){function t(e,n,i){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return c(this,t),r=f(this,p(t).call(this)),T&&b.call(h(r)),r.backend=e,r.store=n,r.services=i,r.languageUtils=i.languageUtils,r.options=o,r.logger=y.create("backendConnector"),r.state={},r.queue=[],r.backend&&r.backend.init&&r.backend.init(i,o.backend,o),r}return m(t,e),d(t,[{key:"queueLoad",value:function(e,t,n,i){var r=this,o=[],a=[],s=[],l=[];return e.forEach((function(e){var i=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&r.store.hasResourceBundle(e,t)?r.state[s]=2:r.state[s]<0||(1===r.state[s]?a.indexOf(s)<0&&a.push(s):(r.state[s]=1,i=!1,a.indexOf(s)<0&&a.push(s),o.indexOf(s)<0&&o.push(s),l.indexOf(t)<0&&l.push(t)))})),i||s.push(e)})),(o.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:i}),{toLoad:o,pending:a,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,n){var i=e.split("|"),r=i[0],o=i[1];t&&this.emit("failedLoading",r,o,t),n&&this.store.addResourceBundle(r,o,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var i,s,l,c,u;i=n.loaded,s=o,(c=(l=A(i,[r],Object)).obj)[u=l.k]=c[u]||[],c[u].push(s),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,l){s&&l&&r<5?setTimeout((function(){i.read.call(i,e,t,n,r+1,2*o,a)}),o):a(s,l)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,i,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e.split("|"),r=i[0],o=i[1];this.read(r,o,"read",void 0,void 0,(function(i,a){i&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(r," failed"),i),!i&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(r),a),t.loaded(e,i,a)}))}},{key:"saveMissing",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,i,null,l({},o,{isUpdate:r})),e&&e[0]&&this.store.addResource(e[0],t,n,i))}}]),t}(b);function U(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function H(){}const V=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(c(this,t),e=f(this,p(t).call(this)),T&&b.call(h(e)),e.options=U(n),e.services={},e.logger=y,e.modules={external:[]},i&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,i),f(e,h(e));setTimeout((function(){e.init(n,i)}),0)}return e}return m(t,e),d(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function i(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=l({},{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===o(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===o(e[2])||"object"===o(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,i){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}},this.options,U(t)),this.format=this.options.interpolation.format,n||(n=H),!this.options.isClone){this.modules.logger?y.init(i(this.modules.logger),this.options):y.init(null,this.options);var r=new F(this.options);this.store=new O(this.options.resources,this.options);var a=this.services;a.logger=y,a.resourceStore=this.store,a.languageUtils=r,a.pluralResolver=new B(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new W(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new Y(i(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];e.emit.apply(e,[t].concat(i))})),this.modules.languageDetector&&(a.languageDetector=i(this.modules.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=i(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new E(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];e.emit.apply(e,[t].concat(i))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var c=x(),u=function(){var t=function(t,i){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(i),n(t,i)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H,i="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return n();var r=[],o=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){r.indexOf(e)<0&&r.push(e)}))};i?o(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return o(e)})),this.options.preload&&this.options.preload.forEach((function(e){return o(e)})),this.services.backendConnector.load(r,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(e,t,n){var i=x();return e||(e=this.languages),t||(t=this.options.ns),n||(n=H),this.services.backendConnector.reload(e,t,(function(e){i.resolve(),n(e)})),i}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&j.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var i=x();this.emit("languageChanging",e);var r=function(r){e||r||!n.services.languageDetector||(r=[]);var o="string"==typeof r?r:n.services.languageUtils.getBestMatchFromCodes(r);o&&(n.language||(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,(function(e){!function(e,r){r?(n.language=r,n.languages=n.services.languageUtils.toResolveHierarchy(r),n.translator.changeLanguage(r),n.isLanguageChangingTo=void 0,n.emit("languageChanged",r),n.logger.log("languageChanged",r)):n.isLanguageChangingTo=void 0,i.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(r):r(e):r(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(e,t,n){var i=this,r=function e(t,r){var a;if("object"!==o(r)){for(var s=arguments.length,c=new Array(s>2?s-2:0),u=2;u<s;u++)c[u-2]=arguments[u];a=i.options.overloadTranslationOptionHandler([t,r].concat(c))}else a=l({},r);a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns;var d=i.options.keySeparator||".",h=n?"".concat(n).concat(d).concat(t):t;return i.t(h,a)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var a=function(e,n){var i=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===i||2===i};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||!(!a(i,e)||r&&!a(o,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,i=x();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){i.resolve(),t&&t(e)})),i):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=x();"string"==typeof e&&(e=[e]);var i=this.options.preload||[],r=e.filter((function(e){return i.indexOf(e)<0}));return r.length?(this.options.preload=i.concat(r),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H,r=l({},this.options,n,{isClone:!0}),o=new t(r);return["store","services","language"].forEach((function(t){o[t]=e[t]})),o.services=l({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new E(o.services,o.options),o.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];o.emit.apply(o,[e].concat(n))})),o.init(r,i),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(b));var Z,G,Q=n(34),J=n.n(Q),q=9e15,X=1e9,K="0123456789abcdef",$="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",ee="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",te={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-q,maxE:q,crypto:!1},ne=!0,ie="[DecimalError] ",re=ie+"Invalid argument: ",oe=ie+"Precision limit exceeded",ae=ie+"crypto unavailable",se="[object Decimal]",le=Math.floor,ce=Math.pow,ue=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,de=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,he=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,fe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,pe=1e7,ge=7,me=$.length-1,ve=ee.length-1,ye={toStringTag:se};function be(e){var t,n,i,r=e.length-1,o="",a=e[0];if(r>0){for(o+=a,t=1;t<r;t++)i=e[t]+"",(n=ge-i.length)&&(o+=Te(n)),o+=i;a=e[t],(n=ge-(i=a+"").length)&&(o+=Te(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}function xe(e,t,n){if(e!==~~e||e<t||e>n)throw Error(re+e)}function we(e,t,n,i){var r,o,a,s;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=ge,r=0):(r=Math.ceil((t+1)/ge),t%=ge),o=ce(10,ge-t),s=e[r]%o|0,null==i?t<3?(0==t?s=s/100|0:1==t&&(s=s/10|0),a=n<4&&99999==s||n>3&&49999==s||5e4==s||0==s):a=(n<4&&s+1==o||n>3&&s+1==o/2)&&(e[r+1]/o/100|0)==ce(10,t-2)-1||(s==o/2||0==s)&&0==(e[r+1]/o/100|0):t<4?(0==t?s=s/1e3|0:1==t?s=s/100|0:2==t&&(s=s/10|0),a=(i||n<4)&&9999==s||!i&&n>3&&4999==s):a=((i||n<4)&&s+1==o||!i&&n>3&&s+1==o/2)&&(e[r+1]/o/1e3|0)==ce(10,t-3)-1,a}function Ae(e,t,n){for(var i,r,o=[0],a=0,s=e.length;a<s;){for(r=o.length;r--;)o[r]*=t;for(o[0]+=K.indexOf(e.charAt(a++)),i=0;i<o.length;i++)o[i]>n-1&&(void 0===o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/n|0,o[i]%=n)}return o.reverse()}ye.absoluteValue=ye.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),Ce(e)},ye.ceil=function(){return Ce(new this.constructor(this),this.e+1,2)},ye.clampedTo=ye.clamp=function(e,t){var n=this,i=n.constructor;if(e=new i(e),t=new i(t),!e.s||!t.s)return new i(NaN);if(e.gt(t))throw Error(re+t);return n.cmp(e)<0?e:n.cmp(t)>0?t:new i(n)},ye.comparedTo=ye.cmp=function(e){var t,n,i,r,o=this,a=o.d,s=(e=new o.constructor(e)).d,l=o.s,c=e.s;if(!a||!s)return l&&c?l!==c?l:a===s?0:!a^l<0?1:-1:NaN;if(!a[0]||!s[0])return a[0]?l:s[0]?-c:0;if(l!==c)return l;if(o.e!==e.e)return o.e>e.e^l<0?1:-1;for(t=0,n=(i=a.length)<(r=s.length)?i:r;t<n;++t)if(a[t]!==s[t])return a[t]>s[t]^l<0?1:-1;return i===r?0:i>r^l<0?1:-1},ye.cosine=ye.cos=function(){var e,t,n=this,i=n.constructor;return n.d?n.d[0]?(e=i.precision,t=i.rounding,i.precision=e+Math.max(n.e,n.sd())+ge,i.rounding=1,n=function(e,t){var n,i,r;if(t.isZero())return t;(i=t.d.length)<32?r=(1/Be(4,n=Math.ceil(i/3))).toString():(n=16,r="2.3283064365386962890625e-10"),e.precision+=n,t=Re(e,1,t.times(r),new e(1));for(var o=n;o--;){var a=t.times(t);t=a.times(a).minus(a).times(8).plus(1)}return e.precision-=n,t}(i,We(i,n)),i.precision=e,i.rounding=t,Ce(2==G||3==G?n.neg():n,e,t,!0)):new i(1):new i(NaN)},ye.cubeRoot=ye.cbrt=function(){var e,t,n,i,r,o,a,s,l,c,u=this,d=u.constructor;if(!u.isFinite()||u.isZero())return new d(u);for(ne=!1,(o=u.s*ce(u.s*u,1/3))&&Math.abs(o)!=1/0?i=new d(o.toString()):(n=be(u.d),(o=((e=u.e)-n.length+1)%3)&&(n+=1==o||-2==o?"0":"00"),o=ce(n,1/3),e=le((e+1)/3)-(e%3==(e<0?-1:2)),(i=new d(n=o==1/0?"5e"+e:(n=o.toExponential()).slice(0,n.indexOf("e")+1)+e)).s=u.s),a=(e=d.precision)+3;;)if(c=(l=(s=i).times(s).times(s)).plus(u),i=_e(c.plus(u).times(s),c.plus(l),a+2,1),be(s.d).slice(0,a)===(n=be(i.d)).slice(0,a)){if("9999"!=(n=n.slice(a-3,a+1))&&(r||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(Ce(i,e+1,1),t=!i.times(i).times(i).eq(u));break}if(!r&&(Ce(s,e+1,0),s.times(s).times(s).eq(u))){i=s;break}a+=4,r=1}return ne=!0,Ce(i,e,d.rounding,t)},ye.decimalPlaces=ye.dp=function(){var e,t=this.d,n=NaN;if(t){if(n=((e=t.length-1)-le(this.e/ge))*ge,e=t[e])for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n},ye.dividedBy=ye.div=function(e){return _e(this,new this.constructor(e))},ye.dividedToIntegerBy=ye.divToInt=function(e){var t=this.constructor;return Ce(_e(this,new t(e),0,1,1),t.precision,t.rounding)},ye.equals=ye.eq=function(e){return 0===this.cmp(e)},ye.floor=function(){return Ce(new this.constructor(this),this.e+1,3)},ye.greaterThan=ye.gt=function(e){return this.cmp(e)>0},ye.greaterThanOrEqualTo=ye.gte=function(e){var t=this.cmp(e);return 1==t||0===t},ye.hyperbolicCosine=ye.cosh=function(){var e,t,n,i,r,o=this,a=o.constructor,s=new a(1);if(!o.isFinite())return new a(o.s?1/0:NaN);if(o.isZero())return s;n=a.precision,i=a.rounding,a.precision=n+Math.max(o.e,o.sd())+4,a.rounding=1,(r=o.d.length)<32?t=(1/Be(4,e=Math.ceil(r/3))).toString():(e=16,t="2.3283064365386962890625e-10"),o=Re(a,1,o.times(t),new a(1),!0);for(var l,c=e,u=new a(8);c--;)l=o.times(o),o=s.minus(l.times(u.minus(l.times(u))));return Ce(o,a.precision=n,a.rounding=i,!0)},ye.hyperbolicSine=ye.sinh=function(){var e,t,n,i,r=this,o=r.constructor;if(!r.isFinite()||r.isZero())return new o(r);if(t=o.precision,n=o.rounding,o.precision=t+Math.max(r.e,r.sd())+4,o.rounding=1,(i=r.d.length)<3)r=Re(o,2,r,r,!0);else{e=(e=1.4*Math.sqrt(i))>16?16:0|e,r=Re(o,2,r=r.times(1/Be(5,e)),r,!0);for(var a,s=new o(5),l=new o(16),c=new o(20);e--;)a=r.times(r),r=r.times(s.plus(a.times(l.times(a).plus(c))))}return o.precision=t,o.rounding=n,Ce(r,t,n,!0)},ye.hyperbolicTangent=ye.tanh=function(){var e,t,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(e=i.precision,t=i.rounding,i.precision=e+7,i.rounding=1,_e(n.sinh(),n.cosh(),i.precision=e,i.rounding=t)):new i(n.s)},ye.inverseCosine=ye.acos=function(){var e,t=this,n=t.constructor,i=t.abs().cmp(1),r=n.precision,o=n.rounding;return-1!==i?0===i?t.isNeg()?Ie(n,r,o):new n(0):new n(NaN):t.isZero()?Ie(n,r+4,o).times(.5):(n.precision=r+6,n.rounding=1,t=t.asin(),e=Ie(n,r+4,o).times(.5),n.precision=r,n.rounding=o,e.minus(t))},ye.inverseHyperbolicCosine=ye.acosh=function(){var e,t,n=this,i=n.constructor;return n.lte(1)?new i(n.eq(1)?0:NaN):n.isFinite()?(e=i.precision,t=i.rounding,i.precision=e+Math.max(Math.abs(n.e),n.sd())+4,i.rounding=1,ne=!1,n=n.times(n).minus(1).sqrt().plus(n),ne=!0,i.precision=e,i.rounding=t,n.ln()):new i(n)},ye.inverseHyperbolicSine=ye.asinh=function(){var e,t,n=this,i=n.constructor;return!n.isFinite()||n.isZero()?new i(n):(e=i.precision,t=i.rounding,i.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,i.rounding=1,ne=!1,n=n.times(n).plus(1).sqrt().plus(n),ne=!0,i.precision=e,i.rounding=t,n.ln())},ye.inverseHyperbolicTangent=ye.atanh=function(){var e,t,n,i,r=this,o=r.constructor;return r.isFinite()?r.e>=0?new o(r.abs().eq(1)?r.s/0:r.isZero()?r:NaN):(e=o.precision,t=o.rounding,i=r.sd(),Math.max(i,e)<2*-r.e-1?Ce(new o(r),e,t,!0):(o.precision=n=i-r.e,r=_e(r.plus(1),new o(1).minus(r),n+e,1),o.precision=e+4,o.rounding=1,r=r.ln(),o.precision=e,o.rounding=t,r.times(.5))):new o(NaN)},ye.inverseSine=ye.asin=function(){var e,t,n,i,r=this,o=r.constructor;return r.isZero()?new o(r):(t=r.abs().cmp(1),n=o.precision,i=o.rounding,-1!==t?0===t?((e=Ie(o,n+4,i).times(.5)).s=r.s,e):new o(NaN):(o.precision=n+6,o.rounding=1,r=r.div(new o(1).minus(r.times(r)).sqrt().plus(1)).atan(),o.precision=n,o.rounding=i,r.times(2)))},ye.inverseTangent=ye.atan=function(){var e,t,n,i,r,o,a,s,l,c=this,u=c.constructor,d=u.precision,h=u.rounding;if(c.isFinite()){if(c.isZero())return new u(c);if(c.abs().eq(1)&&d+4<=ve)return(a=Ie(u,d+4,h).times(.25)).s=c.s,a}else{if(!c.s)return new u(NaN);if(d+4<=ve)return(a=Ie(u,d+4,h).times(.5)).s=c.s,a}for(u.precision=s=d+10,u.rounding=1,e=n=Math.min(28,s/ge+2|0);e;--e)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(ne=!1,t=Math.ceil(s/ge),i=1,l=c.times(c),a=new u(c),r=c;-1!==e;)if(r=r.times(l),o=a.minus(r.div(i+=2)),r=r.times(l),void 0!==(a=o.plus(r.div(i+=2))).d[t])for(e=t;a.d[e]===o.d[e]&&e--;);return n&&(a=a.times(2<<n-1)),ne=!0,Ce(a,u.precision=d,u.rounding=h,!0)},ye.isFinite=function(){return!!this.d},ye.isInteger=ye.isInt=function(){return!!this.d&&le(this.e/ge)>this.d.length-2},ye.isNaN=function(){return!this.s},ye.isNegative=ye.isNeg=function(){return this.s<0},ye.isPositive=ye.isPos=function(){return this.s>0},ye.isZero=function(){return!!this.d&&0===this.d[0]},ye.lessThan=ye.lt=function(e){return this.cmp(e)<0},ye.lessThanOrEqualTo=ye.lte=function(e){return this.cmp(e)<1},ye.logarithm=ye.log=function(e){var t,n,i,r,o,a,s,l,c=this,u=c.constructor,d=u.precision,h=u.rounding;if(null==e)e=new u(10),t=!0;else{if(n=(e=new u(e)).d,e.s<0||!n||!n[0]||e.eq(1))return new u(NaN);t=e.eq(10)}if(n=c.d,c.s<0||!n||!n[0]||c.eq(1))return new u(n&&!n[0]?-1/0:1!=c.s?NaN:n?0:1/0);if(t)if(n.length>1)o=!0;else{for(r=n[0];r%10==0;)r/=10;o=1!==r}if(ne=!1,a=Ee(c,s=d+5),i=t?Se(u,s+10):Ee(e,s),we((l=_e(a,i,s,1)).d,r=d,h))do{if(a=Ee(c,s+=10),i=t?Se(u,s+10):Ee(e,s),l=_e(a,i,s,1),!o){+be(l.d).slice(r+1,r+15)+1==1e14&&(l=Ce(l,d+1,0));break}}while(we(l.d,r+=10,h));return ne=!0,Ce(l,d,h)},ye.minus=ye.sub=function(e){var t,n,i,r,o,a,s,l,c,u,d,h,f=this,p=f.constructor;if(e=new p(e),!f.d||!e.d)return f.s&&e.s?f.d?e.s=-e.s:e=new p(e.d||f.s!==e.s?f:NaN):e=new p(NaN),e;if(f.s!=e.s)return e.s=-e.s,f.plus(e);if(c=f.d,h=e.d,s=p.precision,l=p.rounding,!c[0]||!h[0]){if(h[0])e.s=-e.s;else{if(!c[0])return new p(3===l?-0:0);e=new p(f)}return ne?Ce(e,s,l):e}if(n=le(e.e/ge),u=le(f.e/ge),c=c.slice(),o=u-n){for((d=o<0)?(t=c,o=-o,a=h.length):(t=h,n=u,a=c.length),o>(i=Math.max(Math.ceil(s/ge),a)+2)&&(o=i,t.length=1),t.reverse(),i=o;i--;)t.push(0);t.reverse()}else{for((d=(i=c.length)<(a=h.length))&&(a=i),i=0;i<a;i++)if(c[i]!=h[i]){d=c[i]<h[i];break}o=0}for(d&&(t=c,c=h,h=t,e.s=-e.s),a=c.length,i=h.length-a;i>0;--i)c[a++]=0;for(i=h.length;i>o;){if(c[--i]<h[i]){for(r=i;r&&0===c[--r];)c[r]=pe-1;--c[r],c[i]+=pe}c[i]-=h[i]}for(;0===c[--a];)c.pop();for(;0===c[0];c.shift())--n;return c[0]?(e.d=c,e.e=ke(c,n),ne?Ce(e,s,l):e):new p(3===l?-0:0)},ye.modulo=ye.mod=function(e){var t,n=this,i=n.constructor;return e=new i(e),!n.d||!e.s||e.d&&!e.d[0]?new i(NaN):!e.d||n.d&&!n.d[0]?Ce(new i(n),i.precision,i.rounding):(ne=!1,9==i.modulo?(t=_e(n,e.abs(),0,3,1)).s*=e.s:t=_e(n,e,0,i.modulo,1),t=t.times(e),ne=!0,n.minus(t))},ye.naturalExponential=ye.exp=function(){return Ne(this)},ye.naturalLogarithm=ye.ln=function(){return Ee(this)},ye.negated=ye.neg=function(){var e=new this.constructor(this);return e.s=-e.s,Ce(e)},ye.plus=ye.add=function(e){var t,n,i,r,o,a,s,l,c,u,d=this,h=d.constructor;if(e=new h(e),!d.d||!e.d)return d.s&&e.s?d.d||(e=new h(e.d||d.s===e.s?d:NaN)):e=new h(NaN),e;if(d.s!=e.s)return e.s=-e.s,d.minus(e);if(c=d.d,u=e.d,s=h.precision,l=h.rounding,!c[0]||!u[0])return u[0]||(e=new h(d)),ne?Ce(e,s,l):e;if(o=le(d.e/ge),i=le(e.e/ge),c=c.slice(),r=o-i){for(r<0?(n=c,r=-r,a=u.length):(n=u,i=o,a=c.length),r>(a=(o=Math.ceil(s/ge))>a?o+1:a+1)&&(r=a,n.length=1),n.reverse();r--;)n.push(0);n.reverse()}for((a=c.length)-(r=u.length)<0&&(r=a,n=u,u=c,c=n),t=0;r;)t=(c[--r]=c[r]+u[r]+t)/pe|0,c[r]%=pe;for(t&&(c.unshift(t),++i),a=c.length;0==c[--a];)c.pop();return e.d=c,e.e=ke(c,i),ne?Ce(e,s,l):e},ye.precision=ye.sd=function(e){var t,n=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(re+e);return n.d?(t=Le(n.d),e&&n.e+1>t&&(t=n.e+1)):t=NaN,t},ye.round=function(){var e=this,t=e.constructor;return Ce(new t(e),e.e+1,t.rounding)},ye.sine=ye.sin=function(){var e,t,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(e=i.precision,t=i.rounding,i.precision=e+Math.max(n.e,n.sd())+ge,i.rounding=1,n=function(e,t){var n,i=t.d.length;if(i<3)return t.isZero()?t:Re(e,2,t,t);n=(n=1.4*Math.sqrt(i))>16?16:0|n,t=Re(e,2,t=t.times(1/Be(5,n)),t);for(var r,o=new e(5),a=new e(16),s=new e(20);n--;)r=t.times(t),t=t.times(o.plus(r.times(a.times(r).minus(s))));return t}(i,We(i,n)),i.precision=e,i.rounding=t,Ce(G>2?n.neg():n,e,t,!0)):new i(NaN)},ye.squareRoot=ye.sqrt=function(){var e,t,n,i,r,o,a=this,s=a.d,l=a.e,c=a.s,u=a.constructor;if(1!==c||!s||!s[0])return new u(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);for(ne=!1,0==(c=Math.sqrt(+a))||c==1/0?(((t=be(s)).length+l)%2==0&&(t+="0"),c=Math.sqrt(t),l=le((l+1)/2)-(l<0||l%2),i=new u(t=c==1/0?"5e"+l:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+l)):i=new u(c.toString()),n=(l=u.precision)+3;;)if(i=(o=i).plus(_e(a,o,n+2,1)).times(.5),be(o.d).slice(0,n)===(t=be(i.d)).slice(0,n)){if("9999"!=(t=t.slice(n-3,n+1))&&(r||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(Ce(i,l+1,1),e=!i.times(i).eq(a));break}if(!r&&(Ce(o,l+1,0),o.times(o).eq(a))){i=o;break}n+=4,r=1}return ne=!0,Ce(i,l,u.rounding,e)},ye.tangent=ye.tan=function(){var e,t,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(e=i.precision,t=i.rounding,i.precision=e+10,i.rounding=1,(n=n.sin()).s=1,n=_e(n,new i(1).minus(n.times(n)).sqrt(),e+10,0),i.precision=e,i.rounding=t,Ce(2==G||4==G?n.neg():n,e,t,!0)):new i(NaN)},ye.times=ye.mul=function(e){var t,n,i,r,o,a,s,l,c,u=this,d=u.constructor,h=u.d,f=(e=new d(e)).d;if(e.s*=u.s,!(h&&h[0]&&f&&f[0]))return new d(!e.s||h&&!h[0]&&!f||f&&!f[0]&&!h?NaN:h&&f?0*e.s:e.s/0);for(n=le(u.e/ge)+le(e.e/ge),(l=h.length)<(c=f.length)&&(o=h,h=f,f=o,a=l,l=c,c=a),o=[],i=a=l+c;i--;)o.push(0);for(i=c;--i>=0;){for(t=0,r=l+i;r>i;)s=o[r]+f[i]*h[r-i-1]+t,o[r--]=s%pe|0,t=s/pe|0;o[r]=(o[r]+t)%pe|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=ke(o,n),ne?Ce(e,d.precision,d.rounding):e},ye.toBinary=function(e,t){return Ye(this,2,e,t)},ye.toDecimalPlaces=ye.toDP=function(e,t){var n=this,i=n.constructor;return n=new i(n),void 0===e?n:(xe(e,0,X),void 0===t?t=i.rounding:xe(t,0,8),Ce(n,e+n.e+1,t))},ye.toExponential=function(e,t){var n,i=this,r=i.constructor;return void 0===e?n=Me(i,!0):(xe(e,0,X),void 0===t?t=r.rounding:xe(t,0,8),n=Me(i=Ce(new r(i),e+1,t),!0,e+1)),i.isNeg()&&!i.isZero()?"-"+n:n},ye.toFixed=function(e,t){var n,i,r=this,o=r.constructor;return void 0===e?n=Me(r):(xe(e,0,X),void 0===t?t=o.rounding:xe(t,0,8),n=Me(i=Ce(new o(r),e+r.e+1,t),!1,e+i.e+1)),r.isNeg()&&!r.isZero()?"-"+n:n},ye.toFraction=function(e){var t,n,i,r,o,a,s,l,c,u,d,h,f=this,p=f.d,g=f.constructor;if(!p)return new g(f);if(c=n=new g(1),i=l=new g(0),a=(o=(t=new g(i)).e=Le(p)-f.e-1)%ge,t.d[0]=ce(10,a<0?ge+a:a),null==e)e=o>0?t:c;else{if(!(s=new g(e)).isInt()||s.lt(c))throw Error(re+s);e=s.gt(t)?o>0?t:c:s}for(ne=!1,s=new g(be(p)),u=g.precision,g.precision=o=p.length*ge*2;d=_e(s,t,0,1,1),1!=(r=n.plus(d.times(i))).cmp(e);)n=i,i=r,r=c,c=l.plus(d.times(r)),l=r,r=t,t=s.minus(d.times(r)),s=r;return r=_e(e.minus(n),i,0,1,1),l=l.plus(r.times(c)),n=n.plus(r.times(i)),l.s=c.s=f.s,h=_e(c,i,o,1).minus(f).abs().cmp(_e(l,n,o,1).minus(f).abs())<1?[c,i]:[l,n],g.precision=u,ne=!0,h},ye.toHexadecimal=ye.toHex=function(e,t){return Ye(this,16,e,t)},ye.toNearest=function(e,t){var n=this,i=n.constructor;if(n=new i(n),null==e){if(!n.d)return n;e=new i(1),t=i.rounding}else{if(e=new i(e),void 0===t?t=i.rounding:xe(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(ne=!1,n=_e(n,e,0,t,1).times(e),ne=!0,Ce(n)):(e.s=n.s,n=e),n},ye.toNumber=function(){return+this},ye.toOctal=function(e,t){return Ye(this,8,e,t)},ye.toPower=ye.pow=function(e){var t,n,i,r,o,a,s=this,l=s.constructor,c=+(e=new l(e));if(!(s.d&&e.d&&s.d[0]&&e.d[0]))return new l(ce(+s,c));if((s=new l(s)).eq(1))return s;if(i=l.precision,o=l.rounding,e.eq(1))return Ce(s,i,o);if((t=le(e.e/ge))>=e.d.length-1&&(n=c<0?-c:c)<=9007199254740991)return r=De(l,s,n,i),e.s<0?new l(1).div(r):Ce(r,i,o);if((a=s.s)<0){if(t<e.d.length-1)return new l(NaN);if(0==(1&e.d[t])&&(a=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=a,s}return(t=0!=(n=ce(+s,c))&&isFinite(n)?new l(n+"").e:le(c*(Math.log("0."+be(s.d))/Math.LN10+s.e+1)))>l.maxE+1||t<l.minE-1?new l(t>0?a/0:0):(ne=!1,l.rounding=s.s=1,n=Math.min(12,(t+"").length),(r=Ne(e.times(Ee(s,i+n)),i)).d&&we((r=Ce(r,i+5,1)).d,i,o)&&(t=i+10,+be((r=Ce(Ne(e.times(Ee(s,t+n)),t),t+5,1)).d).slice(i+1,i+15)+1==1e14&&(r=Ce(r,i+1,0))),r.s=a,ne=!0,l.rounding=o,Ce(r,i,o))},ye.toPrecision=function(e,t){var n,i=this,r=i.constructor;return void 0===e?n=Me(i,i.e<=r.toExpNeg||i.e>=r.toExpPos):(xe(e,1,X),void 0===t?t=r.rounding:xe(t,0,8),n=Me(i=Ce(new r(i),e,t),e<=i.e||i.e<=r.toExpNeg,e)),i.isNeg()&&!i.isZero()?"-"+n:n},ye.toSignificantDigits=ye.toSD=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(xe(e,1,X),void 0===t?t=n.rounding:xe(t,0,8)),Ce(new n(this),e,t)},ye.toString=function(){var e=this,t=e.constructor,n=Me(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+n:n},ye.truncated=ye.trunc=function(){return Ce(new this.constructor(this),this.e+1,1)},ye.valueOf=ye.toJSON=function(){var e=this,t=e.constructor,n=Me(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+n:n};var _e=function(){function e(e,t,n){var i,r=0,o=e.length;for(e=e.slice();o--;)i=e[o]*t+r,e[o]=i%n|0,r=i/n|0;return r&&e.unshift(r),e}function t(e,t,n,i){var r,o;if(n!=i)o=n>i?1:-1;else for(r=o=0;r<n;r++)if(e[r]!=t[r]){o=e[r]>t[r]?1:-1;break}return o}function n(e,t,n,i){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*i+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(i,r,o,a,s,l){var c,u,d,h,f,p,g,m,v,y,b,x,w,A,_,C,M,k,S,I,L=i.constructor,T=i.s==r.s?1:-1,D=i.d,O=r.d;if(!(D&&D[0]&&O&&O[0]))return new L(i.s&&r.s&&(D?!O||D[0]!=O[0]:O)?D&&0==D[0]||!O?0*T:T/0:NaN);for(l?(f=1,u=i.e-r.e):(l=pe,f=ge,u=le(i.e/f)-le(r.e/f)),S=O.length,M=D.length,y=(v=new L(T)).d=[],d=0;O[d]==(D[d]||0);d++);if(O[d]>(D[d]||0)&&u--,null==o?(A=o=L.precision,a=L.rounding):A=s?o+(i.e-r.e)+1:o,A<0)y.push(1),p=!0;else{if(A=A/f+2|0,d=0,1==S){for(h=0,O=O[0],A++;(d<M||h)&&A--;d++)_=h*l+(D[d]||0),y[d]=_/O|0,h=_%O|0;p=h||d<M}else{for((h=l/(O[0]+1)|0)>1&&(O=e(O,h,l),D=e(D,h,l),S=O.length,M=D.length),C=S,x=(b=D.slice(0,S)).length;x<S;)b[x++]=0;(I=O.slice()).unshift(0),k=O[0],O[1]>=l/2&&++k;do{h=0,(c=t(O,b,S,x))<0?(w=b[0],S!=x&&(w=w*l+(b[1]||0)),(h=w/k|0)>1?(h>=l&&(h=l-1),1==(c=t(g=e(O,h,l),b,m=g.length,x=b.length))&&(h--,n(g,S<m?I:O,m,l))):(0==h&&(c=h=1),g=O.slice()),(m=g.length)<x&&g.unshift(0),n(b,g,x,l),-1==c&&(c=t(O,b,S,x=b.length))<1&&(h++,n(b,S<x?I:O,x,l)),x=b.length):0===c&&(h++,b=[0]),y[d++]=h,c&&b[0]?b[x++]=D[C]||0:(b=[D[C]],x=1)}while((C++<M||void 0!==b[0])&&A--);p=void 0!==b[0]}y[0]||y.shift()}if(1==f)v.e=u,Z=p;else{for(d=1,h=y[0];h>=10;h/=10)d++;v.e=d+u*f-1,Ce(v,s?o+v.e+1:o,a,p)}return v}}();function Ce(e,t,n,i){var r,o,a,s,l,c,u,d,h,f=e.constructor;e:if(null!=t){if(!(d=e.d))return e;for(r=1,s=d[0];s>=10;s/=10)r++;if((o=t-r)<0)o+=ge,a=t,l=(u=d[h=0])/ce(10,r-a-1)%10|0;else if((h=Math.ceil((o+1)/ge))>=(s=d.length)){if(!i)break e;for(;s++<=h;)d.push(0);u=l=0,r=1,a=(o%=ge)-ge+1}else{for(u=s=d[h],r=1;s>=10;s/=10)r++;l=(a=(o%=ge)-ge+r)<0?0:u/ce(10,r-a-1)%10|0}if(i=i||t<0||void 0!==d[h+1]||(a<0?u:u%ce(10,r-a-1)),c=n<4?(l||i)&&(0==n||n==(e.s<0?3:2)):l>5||5==l&&(4==n||i||6==n&&(o>0?a>0?u/ce(10,r-a):0:d[h-1])%10&1||n==(e.s<0?8:7)),t<1||!d[0])return d.length=0,c?(t-=e.e+1,d[0]=ce(10,(ge-t%ge)%ge),e.e=-t||0):d[0]=e.e=0,e;if(0==o?(d.length=h,s=1,h--):(d.length=h+1,s=ce(10,ge-o),d[h]=a>0?(u/ce(10,r-a)%ce(10,a)|0)*s:0),c)for(;;){if(0==h){for(o=1,a=d[0];a>=10;a/=10)o++;for(a=d[0]+=s,s=1;a>=10;a/=10)s++;o!=s&&(e.e++,d[0]==pe&&(d[0]=1));break}if(d[h]+=s,d[h]!=pe)break;d[h--]=0,s=1}for(o=d.length;0===d[--o];)d.pop()}return ne&&(e.e>f.maxE?(e.d=null,e.e=NaN):e.e<f.minE&&(e.e=0,e.d=[0])),e}function Me(e,t,n){if(!e.isFinite())return Pe(e);var i,r=e.e,o=be(e.d),a=o.length;return t?(n&&(i=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+Te(i):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):r<0?(o="0."+Te(-r-1)+o,n&&(i=n-a)>0&&(o+=Te(i))):r>=a?(o+=Te(r+1-a),n&&(i=n-r-1)>0&&(o=o+"."+Te(i))):((i=r+1)<a&&(o=o.slice(0,i)+"."+o.slice(i)),n&&(i=n-a)>0&&(r+1===a&&(o+="."),o+=Te(i))),o}function ke(e,t){var n=e[0];for(t*=ge;n>=10;n/=10)t++;return t}function Se(e,t,n){if(t>me)throw ne=!0,n&&(e.precision=n),Error(oe);return Ce(new e($),t,1,!0)}function Ie(e,t,n){if(t>ve)throw Error(oe);return Ce(new e(ee),t,n,!0)}function Le(e){var t=e.length-1,n=t*ge+1;if(t=e[t]){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function Te(e){for(var t="";e--;)t+="0";return t}function De(e,t,n,i){var r,o=new e(1),a=Math.ceil(i/ge+4);for(ne=!1;;){if(n%2&&Ue((o=o.times(t)).d,a)&&(r=!0),0===(n=le(n/2))){n=o.d.length-1,r&&0===o.d[n]&&++o.d[n];break}Ue((t=t.times(t)).d,a)}return ne=!0,o}function Oe(e){return 1&e.d[e.d.length-1]}function je(e,t,n){for(var i,r=new e(t[0]),o=0;++o<t.length;){if(!(i=new e(t[o])).s){r=i;break}r[n](i)&&(r=i)}return r}function Ne(e,t){var n,i,r,o,a,s,l,c=0,u=0,d=0,h=e.constructor,f=h.rounding,p=h.precision;if(!e.d||!e.d[0]||e.e>17)return new h(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(null==t?(ne=!1,l=p):l=t,s=new h(.03125);e.e>-2;)e=e.times(s),d+=5;for(l+=i=Math.log(ce(2,d))/Math.LN10*2+5|0,n=o=a=new h(1),h.precision=l;;){if(o=Ce(o.times(e),l,1),n=n.times(++u),be((s=a.plus(_e(o,n,l,1))).d).slice(0,l)===be(a.d).slice(0,l)){for(r=d;r--;)a=Ce(a.times(a),l,1);if(null!=t)return h.precision=p,a;if(!(c<3&&we(a.d,l-i,f,c)))return Ce(a,h.precision=p,f,ne=!0);h.precision=l+=10,n=o=s=new h(1),u=0,c++}a=s}}function Ee(e,t){var n,i,r,o,a,s,l,c,u,d,h,f=1,p=e,g=p.d,m=p.constructor,v=m.rounding,y=m.precision;if(p.s<0||!g||!g[0]||!p.e&&1==g[0]&&1==g.length)return new m(g&&!g[0]?-1/0:1!=p.s?NaN:g?0:p);if(null==t?(ne=!1,u=y):u=t,m.precision=u+=10,i=(n=be(g)).charAt(0),!(Math.abs(o=p.e)<15e14))return c=Se(m,u+2,y).times(o+""),p=Ee(new m(i+"."+n.slice(1)),u-10).plus(c),m.precision=y,null==t?Ce(p,y,v,ne=!0):p;for(;i<7&&1!=i||1==i&&n.charAt(1)>3;)i=(n=be((p=p.times(e)).d)).charAt(0),f++;for(o=p.e,i>1?(p=new m("0."+n),o++):p=new m(i+"."+n.slice(1)),d=p,l=a=p=_e(p.minus(1),p.plus(1),u,1),h=Ce(p.times(p),u,1),r=3;;){if(a=Ce(a.times(h),u,1),be((c=l.plus(_e(a,new m(r),u,1))).d).slice(0,u)===be(l.d).slice(0,u)){if(l=l.times(2),0!==o&&(l=l.plus(Se(m,u+2,y).times(o+""))),l=_e(l,new m(f),u,1),null!=t)return m.precision=y,l;if(!we(l.d,u-10,v,s))return Ce(l,m.precision=y,v,ne=!0);m.precision=u+=10,c=a=p=_e(d.minus(1),d.plus(1),u,1),h=Ce(p.times(p),u,1),r=s=1}l=c,r+=2}}function Pe(e){return String(e.s*e.s/0)}function Fe(e,t){var n,i,r;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(i=t.search(/e/i))>0?(n<0&&(n=i),n+=+t.slice(i+1),t=t.substring(0,i)):n<0&&(n=t.length),i=0;48===t.charCodeAt(i);i++);for(r=t.length;48===t.charCodeAt(r-1);--r);if(t=t.slice(i,r)){if(r-=i,e.e=n=n-i-1,e.d=[],i=(n+1)%ge,n<0&&(i+=ge),i<r){for(i&&e.d.push(+t.slice(0,i)),r-=ge;i<r;)e.d.push(+t.slice(i,i+=ge));t=t.slice(i),i=ge-t.length}else i-=r;for(;i--;)t+="0";e.d.push(+t),ne&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function ze(e,t){var n,i,r,o,a,s,l,c,u;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),fe.test(t))return Fe(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(de.test(t))n=16,t=t.toLowerCase();else if(ue.test(t))n=2;else{if(!he.test(t))throw Error(re+t);n=8}for((o=t.search(/p/i))>0?(l=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),a=(o=t.indexOf("."))>=0,i=e.constructor,a&&(o=(s=(t=t.replace(".","")).length)-o,r=De(i,new i(n),o,2*o)),o=u=(c=Ae(t,n,pe)).length-1;0===c[o];--o)c.pop();return o<0?new i(0*e.s):(e.e=ke(c,u),e.d=c,ne=!1,a&&(e=_e(e,r,4*s)),l&&(e=e.times(Math.abs(l)<54?ce(2,l):Tt.pow(2,l))),ne=!0,e)}function Re(e,t,n,i,r){var o,a,s,l,c=e.precision,u=Math.ceil(c/ge);for(ne=!1,l=n.times(n),s=new e(i);;){if(a=_e(s.times(l),new e(t++*t++),c,1),s=r?i.plus(a):i.minus(a),i=_e(a.times(l),new e(t++*t++),c,1),void 0!==(a=s.plus(i)).d[u]){for(o=u;a.d[o]===s.d[o]&&o--;);if(-1==o)break}o=s,s=i,i=a,a=o}return ne=!0,a.d.length=u+1,a}function Be(e,t){for(var n=e;--t;)n*=e;return n}function We(e,t){var n,i=t.s<0,r=Ie(e,e.precision,1),o=r.times(.5);if((t=t.abs()).lte(o))return G=i?4:1,t;if((n=t.divToInt(r)).isZero())G=i?3:2;else{if((t=t.minus(n.times(r))).lte(o))return G=Oe(n)?i?2:3:i?4:1,t;G=Oe(n)?i?1:4:i?3:2}return t.minus(r).abs()}function Ye(e,t,n,i){var r,o,a,s,l,c,u,d,h,f=e.constructor,p=void 0!==n;if(p?(xe(n,1,X),void 0===i?i=f.rounding:xe(i,0,8)):(n=f.precision,i=f.rounding),e.isFinite()){for(p?(r=2,16==t?n=4*n-3:8==t&&(n=3*n-2)):r=t,(a=(u=Me(e)).indexOf("."))>=0&&(u=u.replace(".",""),(h=new f(1)).e=u.length-a,h.d=Ae(Me(h),10,r),h.e=h.d.length),o=l=(d=Ae(u,10,r)).length;0==d[--l];)d.pop();if(d[0]){if(a<0?o--:((e=new f(e)).d=d,e.e=o,d=(e=_e(e,h,n,i,0,r)).d,o=e.e,c=Z),a=d[n],s=r/2,c=c||void 0!==d[n+1],c=i<4?(void 0!==a||c)&&(0===i||i===(e.s<0?3:2)):a>s||a===s&&(4===i||c||6===i&&1&d[n-1]||i===(e.s<0?8:7)),d.length=n,c)for(;++d[--n]>r-1;)d[n]=0,n||(++o,d.unshift(1));for(l=d.length;!d[l-1];--l);for(a=0,u="";a<l;a++)u+=K.charAt(d[a]);if(p){if(l>1)if(16==t||8==t){for(a=16==t?4:3,--l;l%a;l++)u+="0";for(l=(d=Ae(u,r,t)).length;!d[l-1];--l);for(a=1,u="1.";a<l;a++)u+=K.charAt(d[a])}else u=u.charAt(0)+"."+u.slice(1);u=u+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)u="0"+u;u="0."+u}else if(++o>l)for(o-=l;o--;)u+="0";else o<l&&(u=u.slice(0,o)+"."+u.slice(o))}else u=p?"0p+0":"0";u=(16==t?"0x":2==t?"0b":8==t?"0o":"")+u}else u=Pe(e);return e.s<0?"-"+u:u}function Ue(e,t){if(e.length>t)return e.length=t,!0}function He(e){return new this(e).abs()}function Ve(e){return new this(e).acos()}function Ze(e){return new this(e).acosh()}function Ge(e,t){return new this(e).plus(t)}function Qe(e){return new this(e).asin()}function Je(e){return new this(e).asinh()}function qe(e){return new this(e).atan()}function Xe(e){return new this(e).atanh()}function Ke(e,t){e=new this(e),t=new this(t);var n,i=this.precision,r=this.rounding,o=i+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(n=t.s<0?Ie(this,i,r):new this(0)).s=e.s:!e.d||t.isZero()?(n=Ie(this,o,1).times(.5)).s=e.s:t.s<0?(this.precision=o,this.rounding=1,n=this.atan(_e(e,t,o,1)),t=Ie(this,o,1),this.precision=i,this.rounding=r,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(_e(e,t,o,1)):(n=Ie(this,o,1).times(t.s>0?.25:.75)).s=e.s:n=new this(NaN),n}function $e(e){return new this(e).cbrt()}function et(e){return Ce(e=new this(e),e.e+1,2)}function tt(e,t,n){return new this(e).clamp(t,n)}function nt(e){if(!e||"object"!=typeof e)throw Error(ie+"Object expected");var t,n,i,r=!0===e.defaults,o=["precision",1,X,"rounding",0,8,"toExpNeg",-q,0,"toExpPos",0,q,"maxE",0,q,"minE",-q,0,"modulo",0,9];for(t=0;t<o.length;t+=3)if(n=o[t],r&&(this[n]=te[n]),void 0!==(i=e[n])){if(!(le(i)===i&&i>=o[t+1]&&i<=o[t+2]))throw Error(re+n+": "+i);this[n]=i}if(n="crypto",r&&(this[n]=te[n]),void 0!==(i=e[n])){if(!0!==i&&!1!==i&&0!==i&&1!==i)throw Error(re+n+": "+i);if(i){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(ae);this[n]=!0}else this[n]=!1}return this}function it(e){return new this(e).cos()}function rt(e){return new this(e).cosh()}function ot(e,t){return new this(e).div(t)}function at(e){return new this(e).exp()}function st(e){return Ce(e=new this(e),e.e+1,3)}function lt(){var e,t,n=new this(0);for(ne=!1,e=0;e<arguments.length;)if((t=new this(arguments[e++])).d)n.d&&(n=n.plus(t.times(t)));else{if(t.s)return ne=!0,new this(1/0);n=t}return ne=!0,n.sqrt()}function ct(e){return e instanceof Tt||e&&e.toStringTag===se||!1}function ut(e){return new this(e).ln()}function dt(e,t){return new this(e).log(t)}function ht(e){return new this(e).log(2)}function ft(e){return new this(e).log(10)}function pt(){return je(this,arguments,"lt")}function gt(){return je(this,arguments,"gt")}function mt(e,t){return new this(e).mod(t)}function vt(e,t){return new this(e).mul(t)}function yt(e,t){return new this(e).pow(t)}function bt(e){var t,n,i,r,o=0,a=new this(1),s=[];if(void 0===e?e=this.precision:xe(e,1,X),i=Math.ceil(e/ge),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(i));o<i;)(r=t[o])>=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:s[o++]=r%1e7;else{if(!crypto.randomBytes)throw Error(ae);for(t=crypto.randomBytes(i*=4);o<i;)(r=t[o]+(t[o+1]<<8)+(t[o+2]<<16)+((127&t[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,o):(s.push(r%1e7),o+=4);o=i/4}else for(;o<i;)s[o++]=1e7*Math.random()|0;for(i=s[--o],e%=ge,i&&e&&(r=ce(10,ge-e),s[o]=(i/r|0)*r);0===s[o];o--)s.pop();if(o<0)n=0,s=[0];else{for(n=-1;0===s[0];n-=ge)s.shift();for(i=1,r=s[0];r>=10;r/=10)i++;i<ge&&(n-=ge-i)}return a.e=n,a.d=s,a}function xt(e){return Ce(e=new this(e),e.e+1,this.rounding)}function wt(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function At(e){return new this(e).sin()}function _t(e){return new this(e).sinh()}function Ct(e){return new this(e).sqrt()}function Mt(e,t){return new this(e).sub(t)}function kt(){var e=0,t=arguments,n=new this(t[e]);for(ne=!1;n.s&&++e<t.length;)n=n.plus(t[e]);return ne=!0,Ce(n,this.precision,this.rounding)}function St(e){return new this(e).tan()}function It(e){return new this(e).tanh()}function Lt(e){return Ce(e=new this(e),e.e+1,1)}ye[Symbol.for("nodejs.util.inspect.custom")]=ye.toString,ye[Symbol.toStringTag]="Decimal";var Tt=ye.constructor=function e(t){var n,i,r;function o(e){var t,n,i,r=this;if(!(r instanceof o))return new o(e);if(r.constructor=o,ct(e))return r.s=e.s,void(ne?!e.d||e.e>o.maxE?(r.e=NaN,r.d=null):e.e<o.minE?(r.e=0,r.d=[0]):(r.e=e.e,r.d=e.d.slice()):(r.e=e.e,r.d=e.d?e.d.slice():e.d));if("number"==(i=typeof e)){if(0===e)return r.s=1/e<0?-1:1,r.e=0,void(r.d=[0]);if(e<0?(e=-e,r.s=-1):r.s=1,e===~~e&&e<1e7){for(t=0,n=e;n>=10;n/=10)t++;return void(ne?t>o.maxE?(r.e=NaN,r.d=null):t<o.minE?(r.e=0,r.d=[0]):(r.e=t,r.d=[e]):(r.e=t,r.d=[e]))}return 0*e!=0?(e||(r.s=NaN),r.e=NaN,void(r.d=null)):Fe(r,e.toString())}if("string"!==i)throw Error(re+e);return 45===(n=e.charCodeAt(0))?(e=e.slice(1),r.s=-1):(43===n&&(e=e.slice(1)),r.s=1),fe.test(e)?Fe(r,e):ze(r,e)}if(o.prototype=ye,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=nt,o.clone=e,o.isDecimal=ct,o.abs=He,o.acos=Ve,o.acosh=Ze,o.add=Ge,o.asin=Qe,o.asinh=Je,o.atan=qe,o.atanh=Xe,o.atan2=Ke,o.cbrt=$e,o.ceil=et,o.clamp=tt,o.cos=it,o.cosh=rt,o.div=ot,o.exp=at,o.floor=st,o.hypot=lt,o.ln=ut,o.log=dt,o.log10=ft,o.log2=ht,o.max=pt,o.min=gt,o.mod=mt,o.mul=vt,o.pow=yt,o.random=bt,o.round=xt,o.sign=wt,o.sin=At,o.sinh=_t,o.sqrt=Ct,o.sub=Mt,o.sum=kt,o.tan=St,o.tanh=It,o.trunc=Lt,void 0===t&&(t={}),t&&!0!==t.defaults)for(r=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],n=0;n<r.length;)t.hasOwnProperty(i=r[n++])||(t[i]=this[i]);return o.config(t),o}(te);$=new Tt($),ee=new Tt(ee);const Dt=Tt;function Ot(e,t){return e.hours()+e.minutes()+e.seconds()===0?(t&&(e=e.clone().subtract(1,"day")),e.format("D MMM Y")):e.format("D MMM Y HH:mm:ss")}function jt(e,t){const n=Dt(e),i=(void 0===t?n.toFixed():n.toFixed(Math.max(0,t))).split(".");return i[0]=i[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),i.join(".")}function Nt(e,t){const n=[],i=e.split(" ");let r="";return i.forEach(((e,o)=>{if(r.length>0){const a=r+" "+e;if(!(a.length>t))return o===i.length-1?void n.push(a):void(r=a);n.push(r),r=""}o!==i.length-1&&e.length<t?r=e:n.push(e)})),n}function Et(e,t){let n=Nt(e,t),i=n[0];return n.length>1&&(i+=" …"),i}function Pt(e){return e=e.replace(/^(\d{4,}-\d{2}-\d{2})(?!T|$)/,((e,t)=>t+"T00:00:00")),J().utc(e)}function Ft(e,t,n){return e.hasOwnProperty(t)||(e[t]=n),e[t]}function zt(e){setTimeout((function t(){e.next().done||setTimeout(t,0)}),0)}function Rt(e){return e?e.split(" ").map((e=>Array.from(e).map(((e,t)=>0===t?e.toUpperCase():e)).join(""))).join(" "):e}function Bt(e,t){return null===t?null:e.toString()+"-"+t}class Wt{constructor(e){this._p=e}type(){if(this._p)return"f"==this._p?"f":this._p.includes("/")?"d":"i"}toString(){let e;return e=this._p?"f"===this._p?"None":this._p.includes("/")?Ot(this.from(),!1)+" to "+Ot(this.to(),!0):Ot(this.to(),!0):"Undefined",e}to(){return this._p&&"f"!==this._p?this._p.includes("/")?Pt(this._p.split("/")[1]):Pt(this._p):null}from(){return this._p&&this._p.includes("/")?Pt(this._p.split("/")[0]):null}isEquivalentDuration(e){const t=e.type(),n=this.type();if(!t||!n)return!1;if(t!==n)return!1;if("d"!==t)return!0;const i=e.to().toDate()-e.from().toDate(),r=this.to().toDate()-this.from().toDate();return Math.abs(i-r)<.1*(i+r)}key(){return this._p}}const Yt={"http://standards.iso.org/iso/17442":{name:"LEI",url:"https://search.gleif.org/#/record/%s"},"http://www.sec.gov/CIK":{name:"CIK",url:"https://www.sec.gov/cgi-bin/browse-edgar?CIK=%s"},"http://www.companieshouse.gov.uk/":{name:"UK CRN",url:"https://beta.companieshouse.gov.uk/company/%08d"},"https://www.minfin.gov.ua":{name:"EDRPOU"}};class Ut{static identifierURL(e){const t=Yt[e.namespace];if(void 0!==t&&void 0!==t.url){let n=t.url.replace("%s",e.localname);return n=n.replace(/%0(\d+)d/,((t,n)=>e.localname.padStart(n,"0"))),n}}static identifierNameForFact(e){const t=Yt[e.identifier().namespace];if(void 0!==t)return t.name}static readableName(e){const t=Yt[e.namespace];return void 0!==t?"["+t.name+"] "+e.localname:e.qname}static readableNameHTML(e){const t=Yt[e.namespace],n=document.createElement("span");if(void 0!==t){n.appendChild(document.createElement("span")).textContent="["+t.name+"] ";const i=Ut.identifierURL(e);if(void 0!==i){const t=n.appendChild(document.createElement("a"));t.textContent=e.localname,t.setAttribute("target","_blank"),t.setAttribute("href",i)}else n.appendChild(document.createElement("span")).textContent=e.localname}else n.textContent=e.qname;return n}}const Ht={c:"Concept",e:"Entity",p:"Period",u:"Unit"};class Vt{constructor(e,t,n){this._aspect=e,this._value=t,this._report=n}name(){return this._aspect}label(){return Ht[this._aspect]??this._report.getLabel(this._aspect)}value(){return this._value}equalTo(e){return void 0!==e&&this._aspect===e._aspect&&this._value===e._value}isTaxonomyDefined(){return this._aspect.includes(":")}isNil(){return null===this._value}valueLabel(e){return"c"===this._aspect?this._report.getLabel(this._value,e)||this._value:this.isTaxonomyDefined()?this._report.getConcept(this._aspect).isTypedDimension()?null===this._value?"nil":this._value:this._report.getLabel(this._value,e)||this._value:"u"===this._aspect?this._report.reportSet.getUnit(this._value).measureLabel():"p"===this._aspect?new Wt(this._value).toString():"e"===this._aspect?Ut.readableName(this._report.qname(this._value)):this._value}}class Zt{constructor(e){this._aspectSet=e||[]}add(e){this._aspectSet.push(e)}uniqueValues(){let e={};for(const t of Object.values(this._aspectSet))e[t.value()]=t;return Object.values(e)}}class Gt{constructor(e,t,n){this.f=n,this.ixNode=e.reportSet.getIXNodeForItemId(t),this.report=e,this.vuid=t,this.linkedFacts=[],this._footnotes=[]}localId(){return function(e){return e.replace(/^\d+-/,"")}(this.vuid)}getLabel(e,t){return this.report.getLabel(this.f.a.c,e,t)}getLabelOrName(e,t){return this.report.getLabelOrName(this.f.a.c,e,t)}conceptName(){return this.f.a.c}concept(){return this.report.getConcept(this.f.a.c)}conceptQName(){return this.report.qname(this.f.a.c)}period(){return new Wt(this.f.a.p)}periodString(){return this.period().toString()}periodTo(){return this.period().to()}periodFrom(){return this.period().from()}value(){return this.f.v}readableValue(){let e=this.f.v;if(this.isInvalidIXValue())e="Invalid value";else if(this.isNumeric()){const t=this.decimals();let n;n=this.isNil()?"nil":jt(e,t),e=this.isMonetaryValue()?this.measureLabel()+" "+n:n+" "+this.measureLabel()}else if(this.isNil())e="nil";else if(this.escaped()){const n=t()("<div>").append(t()(t().parseHTML(e,null,!1)));n.find("p, td, th, h1, h2, h3, h4, ol, ul, pre, blockquote, dl, div").append(document.createTextNode(" ")).prepend(document.createTextNode(" ")),e=n.text().replace(/[\u00a0\s]+/g," ").trim()}else if(this.isEnumeration()){const t=[];for(const n of e.split(" "))t.push(this.report.getLabelOrName(n,"std"));e=t.join(", ")}return e}measure(){return this.unit()?.measure()}measureLabel(){return this.unit()?.measureLabel()??V.t("factDetails.noUnit")}unit(){if(void 0===this._unit){const e=this.aspect("u")?.value();if(!e)return;this._unit=this.report.reportSet.getUnit(e)}return this._unit}getConceptPrefix(){return this.conceptName().split(":")[0]}isCalculationContributor(){return void 0===this._isCalculationContributor&&(this._isCalculationContributor=this.report.isCalculationContributor(this.f.a.c)),this._isCalculationContributor}isCalculationSummation(){return void 0===this._isCalculationSummation&&(this._isCalculationSummation=this.report.isCalculationSummation(this.f.a.c)),this._isCalculationSummation}isNumeric(){return void 0!==this.f.a.u}dimensions(){const e={};for(const[t,n]of Object.entries(this.f.a))t.indexOf(":")>-1&&(e[t]=n);return e}hasExplicitDimension(){return Object.keys(this.dimensions()).some((e=>!this.report.getConcept(e).isTypedDimension()))}hasTypedDimension(){return Object.keys(this.dimensions()).some((e=>this.report.getConcept(e).isTypedDimension()))}isMonetaryValue(){return this.unit()?.isMonetary()??!1}isTextBlock(){return this.concept().isTextBlock()}aspects(){return Object.keys(this.f.a).map((e=>this.aspect(e)))}aspect(e){return void 0===this._aspects&&(this._aspects={}),void 0===this._aspects[e]&&void 0!==this.f.a[e]&&(this._aspects[e]=new Vt(e,this.f.a[e],this.report)),this._aspects[e]}isAligned(e,t){if(Object.keys(this.f.a).length!=Object.keys(e.f.a).length)return!1;for(const n in this.f.a)if(t.hasOwnProperty(n)){if(null!==t[n])if(t[n].constructor===Array){if(!t[n].includes(this.f.a[n]))return!1}else if(this.f.a[n]!=t[n])return!1}else if(this.f.a[n]!=e.f.a[n])return!1;return!0}isEquivalentDuration(e){return this.period().isEquivalentDuration(e.period())}decimals(){return this.f.d}scale(){return this.ixNode.scale}duplicates(){return this.report.getAlignedFacts(this)}isNil(){return null===this.f.v}isNegative(){return this.isNumeric()&&!this.isNil()&&void 0!==this.value()&&new Dt(this.value()).isNegative()&&!this.isZero()}isPositive(){return this.isNumeric()&&!this.isNil()&&void 0!==this.value()&&new Dt(this.value()).isPositive()&&!this.isZero()}isZero(){return this.isNumeric()&&!this.isNil()&&void 0!==this.value()&&new Dt(this.value()).isZero()}isInvalidIXValue(){return"INVALID_IX_VALUE"==this.f.err}getScaleLabel(e,t=!1){let n=this.measure()??"";return n&&(n=this.report.qname(n).localname),this.report.getScaleLabel(t?-e:e,this.isMonetaryValue(),n)}readableAccuracy(){if(!this.isNumeric()||this.isNil())return V.t("common.notApplicable");const e=this.decimals();if(void 0===e)return V.t("common.accuracyInfinite");if(null===e)return V.t("common.unspecified");const t=this.getScaleLabel(e,!0);return null!=t?t:e.toString()}readableScale(){if(!this.isNumeric()||this.isNil())return V.t("common.notApplicable");const e=this.scale();if(null==e)return V.t("common.unscaled");const t=this.getScaleLabel(e);return null!=t?t:e.toString()}identifier(){return this.report.qname(this.f.a.e)}escaped(){return this.ixNode.escaped}isEnumeration(){return this.concept().isEnumeration()}addFootnote(e){this._footnotes.push(e)}footnotes(){return this._footnotes}isHidden(){return this.ixNode.isHidden}isHTMLHidden(){return this.ixNode.htmlHidden()}widerConcepts(){const e=[],n=this.report.getParentRelationships(this.conceptName(),"w-n");for(const i in n)e.push(...t().map(n[i],(e=>e.src)));return e}narrowerConcepts(){const e=[],n=this.report.getChildRelationships(this.conceptName(),"w-n");for(const i in n)e.push(...t().map(n[i],(e=>e.t)));return e}addLinkedFact(e){this.linkedFacts.push(e)}}class Qt{constructor(e,t){this._c=e.concepts()[t]||{}}referenceValuesAsString(){return this._c.r?this._c.r.flatMap((e=>e.map((e=>e[1])))).join(" "):""}references(){return this._c.r?this._c.r.map((e=>e.map((e=>({part:e[0],value:e[1]}))))):[]}isTypedDimension(){return"t"===this._c.d}isExplicitDimension(){return"e"===this._c.d}isDimension(){return"d"in this._c}isEnumeration(){return Boolean(this._c.e)}isTextBlock(){return Boolean(this._c.t)}typedDomainElement(){return this._c.td}}class Jt{constructor(e,t){this.reportSet=e,this._reportData=t,this._reverseRelationshipCache={}}availableLanguages(){if(!this._availableLanguages){this._availableLanguages=new Set;for(const e of Object.values(this._reportData.concepts))for(const t of Object.values(e.labels))for(const e of Object.keys(t))this._availableLanguages.add(e)}return this._availableLanguages}facts(){return this.reportSet.factsForReport(this)}getChildRelationships(e,t){const n={},i=this._reportData.rels[t]||{};for(const t in i)e in i[t]&&(n[t]=i[t][e]);return n}_reverseRelationships(e){if(!(e in this._reverseRelationshipCache)){const t={},n=this._reportData.rels[e]||{};for(const[e,i]of Object.entries(n))for(const[n,r]of Object.entries(i))for(const i of r)i.src=n,Ft(Ft(t,e,{}),i.t,[]).push(i);this._reverseRelationshipCache[e]=t}return this._reverseRelationshipCache[e]}getParentRelationships(e,t){const n={};for(const[i,r]of Object.entries(this._reverseRelationships(t)))e in r&&(n[i]=r[e]);return n}getParentRelationshipsInGroup(e,t,n){return(this._reverseRelationships(t)[n]||{})[e]||[]}dimensionDefault(e){for(const t of Object.values(this._reportData.rels["d-d"]||{}))if(e in t)return t[e][0].t}relationshipGroups(e){return Object.keys(this._reportData.rels[e]||{})}relationshipGroupRoots(e,t){const n=[];for(const i in this._reportData.rels[e][t])t in this.getParentRelationships(i,e)||n.push(i);return n}getAlignedFacts(e,t){const n=this.reportSet.facts(),i=[];t||(t={});for(const r of n)r.isAligned(e,t)&&i.push(r);return i}deduplicate(e){const t=[];for(const n of e){let e=!1;for(const i of t)i.isAligned(n,{})&&(e=!0);e||t.push(n)}return t}getConcept(e){return new Qt(this,e)}getRoleLabel(e){const t=this._reportData.roleDefs[e];if(void 0!==t){const e=t.en;if(null!=e)return e}return this.reportSet.roleMap()[e]}localDocuments(){return void 0===this._reportData.localDocs?{}:this._reportData.localDocs}qname(e){return this.reportSet.qname(e)}getScaleLabel(e,t,n=null){let i=V.t(`scale.${e}`,{defaultValue:"noName"});return t&&-2===e&&(i=V.t(`currencies:cents${n}`,{defaultValue:i})),"noName"===i?null:i}concepts(){return this._reportData.concepts}getLabel(e,t,n){t=t||"std";const i=this.reportSet.viewerOptions.language,r=this._reportData.concepts[e];if(void 0===r)return console.log("Attempt to get label for undefined concept: "+e),"<no label>";const o=r.labels[t];if(void 0!==o&&0!=Object.keys(o).length){let t;if(t=i&&o[i]?o[i]:o.en||o["en-us"]||o[Object.keys(o).sort()[0]],void 0===t)return;let r="";return n&&this.reportSet.viewerOptions.showPrefixes&&(r="("+this.qname(e).prefix+") "),r+=t,r}}getLabelOrName(e,t,n){const i=this.getLabel(e,t,n);return void 0===i?e:i}isCalculationContributor(e){return void 0===this._calculationContributors&&(this._reportData.rels?.calc?this._calculationContributors=new Set(Object.values(this._reportData.rels.calc).flatMap((e=>Object.values(e).flatMap((e=>e.map((e=>e.t))))))):this._calculationContributors=new Set),this._calculationContributors.has(e)}isCalculationSummation(e){return void 0===this._calculationSummations&&(this._reportData.rels?.calc?this._calculationSummations=new Set(Object.values(this._reportData.rels.calc).flatMap((e=>Object.keys(e)))):this._calculationSummations=new Set),this._calculationSummations.has(e)}}class qt{constructor(e,t,n){this.vuid=t,this.linkedFacts=[],this.title=n,this.ixNode=e.reportSet.getIXNodeForItemId(t)}addLinkedFact(e){this.linkedFacts.push(e)}textContent(){return this.ixNode.textContent()}readableValue(){return this.textContent()}isTextBlock(){return!1}}class Xt{constructor(e,t){this._report=e,this._value=t;const n=t.split(/[()]/gi).join("").split("/");this._numerators=n[0].split("*"),this._denominators=n.length>1?n[1].split("*"):[],this._isMonetary=Boolean(this._numerators.find((e=>"http://www.xbrl.org/2003/iso4217"===this._report.qname(e).namespace))),this._label=n.map((e=>{const t=e.split("*").map((e=>Rt(e.split(":")[1]))).join("*");return t.includes("*")?`(${t})`:t})).join("/"),this._measure=this._numerators[0]}isMonetary(){return this._isMonetary}label(){return this._label}measure(){return this._measure}measureLabel(){const e=this.measure(),t=this._report.qname(e);return"http://www.xbrl.org/2003/iso4217"===t.namespace?V.t(`currencies:unitFormat${t.localname}`,{defaultValue:t.localname}):e}value(){return this._value}}class Kt{constructor(e,t){const n=t.split(":",2);this.localname=n[1],this.prefix=n[0],this.namespace=e[n[0]],this.qname=t}}function $t(){this.showPrefixes=!0,this.language=null}class en{constructor(e){this._data=e,this._ixNodeMap={},this.viewerOptions=new $t}setIXNodeMap(e){this._ixNodeMap=e,this._initialize()}_initialize(){this._items={},this.reports=[];const e=Object.keys(this._ixNodeMap).filter((e=>this._ixNodeMap[e].footnote));e.sort(((e,t)=>this._ixNodeMap[e].docOrderindex-this._ixNodeMap[t].docOrderindex));for(const[t,n]of(this._data.sourceReports??[{targetReports:[this._data]}]).entries())for(const i of n.targetReports){const n=new Jt(this,i);this.reports.push(n);for(const[e,r]of Object.entries(i.facts)){const i=Bt(t,e);this._items[i]=new Gt(n,i,r)}for(const[n,r]of Object.entries(i.facts)){const i=Bt(t,n),o=this._items[i];(r.fn||[]).forEach((n=>{const i=Bt(t,n);var r=this._items[i];void 0===r&&(r=new qt(o.report,i,"Footnote "+(e.indexOf(i)+1)),this._items[i]=r),r.addLinkedFact(o),o.addFootnote(r)}))}}}availableLanguages(){return Array.from(this.reports.reduce(((e,t)=>new Set([...e,...t.availableLanguages()])),new Set))}getItemById(e){return this._items[e]}getIXNodeForItemId(e){return this._ixNodeMap[e]||{}}facts(){return Object.values(this._items).filter((e=>e instanceof Gt))}filingDocuments(){return this._data.filingDocuments}prefixMap(){return this._data.prefixes}namespaceGroups(){const e={};for(const t of this.facts())e[t.conceptQName().prefix]=(e[t.conceptQName().prefix]||0)+1;const t=Object.keys(e);return t.sort(((t,n)=>e[n]-e[t])),t}getUsedConceptPrefixes(){return void 0===this._usedPrefixes&&(this._usedPrefixes=new Set(Object.values(this._items).filter((e=>e instanceof Gt)).map((e=>e.getConceptPrefix())))),this._usedPrefixes}getUsedUnits(){return void 0===this._usedUnits&&(this._usedUnits=new Set(Object.values(this._items).filter((e=>e instanceof Gt)).map((e=>e.unit()?.value())).filter((e=>e)).sort())),this._usedUnits}getUnit(e){return void 0===this._unitsMap&&(this._unitsMap={}),void 0===this._unitsMap[e]&&(this._unitsMap[e]=new Xt(this,e)),this._unitsMap[e]}getUsedScalesMap(){const e={};return Object.values(this._items).filter((e=>e instanceof Gt)).forEach((t=>{const n=t.scale();if(null!=n){n in e||(e[n]=new Set);const i=e[n],r=Rt(t.getScaleLabel(n));r&&!i.has(r)&&i.add(r)}})),e}languageNames(){return this._data.languages}roleMap(){return this._data.roles}qname(e){return new Kt(this.prefixMap(),e)}reportsData(){return this._data.sourceReports?.flatMap((e=>e.targetReports))??[this._data]}reportFiles(){return(this._data.sourceReports??[this._data]).map(((e,t)=>(e.docSetFiles??[]).map((e=>({index:t,file:e}))))).flat()}isMultiDocumentViewer(){return this.reportFiles().length>1}usesAnchoring(){return this.reportsData().some((e=>void 0!==e.rels?.["w-n"]))}hasValidationErrors(){return void 0!==this._data.validation&&this._data.validation.length>0}validation(){return this._data.validation}factsForReport(e){return Object.values(this._items).filter((t=>t instanceof Gt&&t.report==e))}}function tn(e){return"(?:"+e.join("|")+")"}function nn(e){return"(?:"+e+")?"}function rn(e){return"(?:"+e+")*"}const on=tn(["$","¢","\\bUS$","€","£","¥","\\bC$","\\bA$","\\bNT$","\\bS$","₩","₱","₨","\\bkr","\\bFr.","\\bRM","\\bR$","\\bR"]).replace(/([$.])/g,"\\$1"),an="[  \t\n\r]",sn=an+"*",ln="[-—]",cn="(?:^|(?<=(?:[/“—(]|"+an+"|"+ln+")))",un="(?:$|(?=(?:[/,.:;”—)]|"+an+"|"+ln+")))",dn="(?:st|nd|rd|th)",hn="[123]?\\d"+dn+"?",fn="(?:jan|january|feb|february|mar|march|apr|april|may|jun|june|jul|july|aug|august|sep|september|sept|oct|october|nov|november|dec|december)",pn="(?:[01]?\\d)",gn="(?:19|20)\\d\\d",mn="year"+sn+gn,vn=fn+sn+hn+sn+","+sn+gn,yn=gn+sn+fn+sn+hn,bn="\\d{4}-\\d{2}-\\d{2}",xn=tn([vn,yn,fn+sn+gn,fn+sn+hn,bn]),wn=(tn([vn,yn,bn]),"\\b"+tn([xn,gn,mn])+"\\b"),An="\\d+"+sn+"months?",_n="(?:\\b(?:zero|one|two|three|four(?:teen)?|five|six(?:ty|teen)?|seven(?:ty|teen)?|eight(?:y|een)?|nine(?:ty|teen)?|ten|eleven|twelve|thirteen|fifteen|twenty|thirty|forty|fifty)\\b)",Cn="section"+sn+"\\d{1,3}\\(?:?\\w\\)?",Mn="topic"+sn+"\\d{1,3}(?:\\.[\\w\\d])*",kn="form"+sn+"\\d{1,2}-\\w",Sn="asc"+sn+"\\w\\d{1,3}(?:-\\w?\\d{1,3})*",In="item"+sn+"\\d{1,2}\\w?",Ln="rule"+sn+"\\d{1,3}\\w?(?:-\\d{1,3}\\w?)*",Tn="note"+sn+"\\d{1,3}",Dn="level"+sn+"\\d{1,3}",On="page"+sn+"\\d{1,3}",jn="tier"+sn+"\\d{1,3}",Nn=tn([_n,"\\d+"])+sn+"months ended",En=tn([Cn,Mn,kn,Sn,In,Ln,Tn,Dn,On,jn,Nn,pn+"/[0-3]?d/"+gn,pn+"/\\d\\d"]),Pn=tn([nn(sn+ln+sn),sn]),Fn=_n+rn(Pn+_n),zn=Fn+rn(Pn+"(\\b(hundred|thousand|million|billion|trillion)\\b)"+nn(Pn+Fn)),Rn=tn([tn(["\\d{1,3}(?:,\\d{3})+","\\d+"])+nn("\\.\\d+"),"\\.\\d+"]),Bn=tn([nn(on+sn)+nn("[-+(]"+sn)+nn(on+sn)+Rn+nn(dn)+nn(sn+tn([on,"\\%"]))+sn+"\\)?"+nn(sn+tn([on,"\\%"])),zn,"\\b(?:no|none)\\b","[-֊־‐-―﹘﹣]"]),Wn=cn+tn(["("+wn+")","("+En+")",An,Bn])+un,Yn=new RegExp(Wn,"gi");var Un=n(782),Hn=n(297);function Vn(e,t){var n=t.attribute;return e=e.replace(Zn,"&amp;").replace(Gn,"&gt;").replace(Qn,"&lt;"),n&&(e=e.replace(Jn,"&apos;").replace(qn,"&quot;")),e}var Zn=/&/g,Gn=/>/g,Qn=/</g,Jn=/'/g,qn=/"/g,Xn=/((?:[\0-\x08\x0B\f\x0E-\x1F\uFFFD\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))/g,Kn=new RegExp("([\\x7F-\\x84]|[\\x86-\\x9F]|[\\uFDD0-\\uFDEF]|(?:\\uD83F[\\uDFFE\\uDFFF])|(?:\\uD87F[\\uDFFE\\uDFFF])|(?:\\uD8BF[\\uDFFE\\uDFFF])|(?:\\uD8FF[\\uDFFE\\uDFFF])|(?:\\uD93F[\\uDFFE\\uDFFF])|(?:\\uD97F[\\uDFFE\\uDFFF])|(?:\\uD9BF[\\uDFFE\\uDFFF])|(?:\\uD9FF[\\uDFFE\\uDFFF])|(?:\\uDA3F[\\uDFFE\\uDFFF])|(?:\\uDA7F[\\uDFFE\\uDFFF])|(?:\\uDABF[\\uDFFE\\uDFFF])|(?:\\uDAFF[\\uDFFE\\uDFFF])|(?:\\uDB3F[\\uDFFE\\uDFFF])|(?:\\uDB7F[\\uDFFE\\uDFFF])|(?:\\uDBBF[\\uDFFE\\uDFFF])|(?:\\uDBFF[\\uDFFE\\uDFFF])(?:[\\0-\\t\\x0B\\f\\x0E-\\u2027\\u202A-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]))","g");function $n(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).removeDiscouragedCharacters,n=void 0===t||t;return e=e.replace(Xn,""),n&&(e=e.replace(Kn,"")),e}function ei(e){return Vn($n(e),{attribute:!1})}function ti(e,t){return"".concat(ii(e)).concat(t)}var ni=26;function ii(e){if("number"!=typeof e)return"";var t=Math.floor(e/ni),n=String.fromCharCode(97+e%ni).toUpperCase();return 0===t?n:ii(t-1)+n}var ri=25569,oi=864e5;function ai(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function si(e,t,n,i,r,o){if(null===n&&!r)return"";var a='<c r="'.concat(ti(t,e),'"');if(r&&(a+=' s="'.concat(r,'"')),null===n)return a+"/>";if(i===Date&&!r)throw new Error('No "format" has been specified for a Date cell');n=function(e,t,n){switch(e){case String:if("string"!=typeof t)throw new Error("Invalid cell value: ".concat(t,". Expected a string"));return n(t);case Number:if("number"!=typeof t)throw new Error("Invalid cell value: ".concat(t,". Expected a number"));return String(t);case Date:if(!(t instanceof Date))throw new Error("Invalid cell value: ".concat(t,". Expected a Date"));return String(function(e){return e.getTime()/oi+ri}(t));case Boolean:if("boolean"!=typeof t)throw new Error("Invalid cell value: ".concat(t,". Expected a boolean"));return t?"1":"0";case"Formula":if("string"!=typeof t)throw new Error("Invalid cell value: ".concat(t,". Expected a string"));return ei(t);default:throw new Error("Unknown schema type: ".concat(e&&e.name||e))}}(i,n,o),(i=function(e){switch(e){case String:return"s";case Number:case Date:return;case Boolean:return"b";case"Formula":return"f";default:throw new Error("Unknown schema type: ".concat(e&&e.name||e))}}(i))&&(a+=' t="'.concat(i,'"'));var s,l,c,u,d=(c=function(e){switch(e){case"inlineStr":return"<is><t>";case"f":return"<f>";default:return"<v>"}}(i),u=c.replace(li,"</"),[c,u]),h=(l=2,function(e){if(Array.isArray(e))return e}(s=d)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(s,l)||function(e,t){if(e){if("string"==typeof e)return ai(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ai(e,t):void 0}}(s,l)||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.")}());return a+">"+h[0]+n+h[1]+"</c>"}var li=/</g;function ci(e){var t=e.align,n=e.alignVertical,i=e.fontFamily,r=e.fontSize,o=e.fontWeight,a=e.fontStyle,s=e.wrap,l=e.color,c=e.backgroundColor,u=e.borderColor,d=e.borderStyle,h=e.leftBorderColor,f=e.leftBorderStyle,p=e.rightBorderColor,g=e.rightBorderStyle,m=e.topBorderColor,v=e.topBorderStyle,y=e.bottomBorderColor,b=e.bottomBorderStyle;if(t||n||i||r||o||a||s||l||c||u||d||h||f||p||g||m||v||y||b)return function(e){var t={};for(var n in e)void 0!==e[n]&&(t[n]=e[n]);return t}({align:t,alignVertical:n,fontFamily:i,fontSize:r,fontWeight:o,fontStyle:a,wrap:s,color:l,backgroundColor:c,borderColor:u,borderStyle:d,leftBorderColor:h,leftBorderStyle:f,rightBorderColor:p,rightBorderStyle:g,topBorderColor:m,topBorderStyle:v,bottomBorderColor:y,bottomBorderStyle:b})}function ui(e){return ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ui(e)}function di(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function hi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?di(Object(n),!0).forEach((function(t){fi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):di(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var gi={fontWeight:"bold"},mi=14;function vi(e,t){if(!e)return"";if(e.type!==Date||e.width||(e.width=mi),!e.width)return"";var n=t+1;return'<col min="'.concat(n,'" max="').concat(n,'" width="').concat(e.width,'" customWidth="1"/>')}function yi(e){var t=e.data,n=e.rowIndex,i=e.columnIndex,r=e.span,o=e.rowSpan,a=e.cloneData,s=ci(t[n][i]);s&&(t=a());for(var l=n;l<=n+(o-1);){for(var c=i;c<=i+(r-1);){var u=t[l][c];if(l>n||c>i){if(null!=u)throw new Error("[write-excel-file] When using `span` or `rowSpan` parameters, all hidden overlapped cells should be represented by `null`s or `undefined`s. Cell at row ".concat(n+1," and column ").concat(i+1," is configured with `span` ").concat(r," and `rowSpan` ").concat(o,". Cell at row ").concat(l+1," and column ").concat(c+1," is neither `null` nor `undefined`: ").concat(JSON.stringify(u)));s&&(t[l][c]=s)}c++}l++}}function bi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function xi(e){return Vn($n(e),{attribute:!0})}var wi='<?xml version="1.0" ?>\n<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="urn:schemas-microsoft-com:mac:vml" xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main">{views}{columnsDescription}<sheetData>{data}</sheetData>{mergedCellsDescription}{layout}</worksheet>';function Ai(e,t){var n=t.schema,i=t.columns,r=t.headerStyle,o=t.getStyle,a=t.getSharedString,s=t.customFont,l=t.dateFormat,c=t.orientation,u=t.stickyRowsCount,d=t.stickyColumnsCount,h=t.sheetId;!function(e,t){if(t.schema){if(!Array.isArray(e))throw new TypeError("Expected an array of objects")}else{if(!Array.isArray(e))throw new TypeError("Expected an array of arrays");if(e.length>0&&!Array.isArray(e[0]))throw new TypeError("Expected an array of arrays")}}(e,{schema:n});var f=function(e,t){var n=[];if(t.schema)return{data:e,mergedCells:n};for(var i=function(){e=e.slice();for(var t=0;t<e.length;)e[t]=e[t].slice(),t++;return i=function(){return e},e},r=0;r<e.length;){for(var o=e[r],a=0;a<o.length;){var s=o[a];if(s){var l=s.span,c=void 0===l?1:l,u=s.rowSpan,d=void 0===u?1:u;(c>1||d>1)&&(yi({data:e,rowIndex:r,columnIndex:a,span:c,rowSpan:d,cloneData:i}),n.push([[r,a],[r+(d?d-1:0),a+(c?c-1:0)]]))}a++}r++}return{data:e,mergedCells:n}}(e,{schema:n}),p=f.data,g=f.mergedCells;return wi.replace("{data}",function(e,t){var n=t.schema,i=t.headerStyle,r=t.getStyle,o=t.getSharedString,a=t.customFont,s=t.dateFormat;if(n){for(var l,c=[],u=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return pi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pi(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n);!(l=u()).done;)if(l.value.column){c=[n.map((function(e){return hi({type:String,value:e.column,align:e.align},i||gi)}))];break}e=c.concat(e.map((function(e){return n.map((function(t){return hi(hi({},t),{},{value:t.value(e)})}))})))}return e.map((function(e,t){return function(e,t,n){var i,r=n.getStyle,o=n.getSharedString,a=n.customFont,s=n.dateFormat,l=n.usesSchema,c=t+1,u=e.map((function(e,t){if(null==e)return"";var n,u=e.height,d=ci(e),h=e.type,f=e.value,p=e.format;if(function(e){return null==e||""===e}(f)?f=null:void 0===h&&(l||(h=function(e){switch(ui(e)){case"string":return String;case"number":return Number;case"boolean":return Boolean;default:if(e instanceof Date)return Date}}(f)),void 0===h&&(h=String,f=String(f))),p){if(h!==Date&&h!==Number&&"Formula"!==h)throw new Error('`format` can only be used on `Date`, `Number` or `"Formula"` cells')}else h===Date&&(p=s);return(p||a||d)&&(n=r(d||{},{format:p})),u&&(void 0===i||i<u)&&(i=u),si(c,t,f,h,n,o)})).join("");return'<row r="'.concat(c,'"')+(i?' ht="'.concat(i,'" customHeight="1"'):"")+">"+u+"</row>"}(e,t,{getStyle:r,getSharedString:o,customFont:a,dateFormat:s,usesSchema:void 0!==n})})).join("")}(p,{schema:n,headerStyle:r,getStyle:o,getSharedString:a,customFont:s,dateFormat:l})).replace("{views}",function(e){var t=e.stickyRowsCount,n=e.stickyColumnsCount;if(!t&&!n)return"";var i="";return i+="<sheetViews>",i+='<sheetView tabSelected="1" workbookViewId="0">',i+='<pane ySplit="'.concat(t||0,'" xSplit="').concat(n||0,'" topLeftCell="').concat(ti(n||0,(t||0)+1),'" activePane="bottomRight" state="frozen"/>'),(i+="</sheetView>")+"</sheetViews>"}({stickyRowsCount:u,stickyColumnsCount:d})).replace("{columnsDescription}",function(e){var t=e.schema,n=e.columns;if(t||n){var i=(t||n).map(vi).join("");if(i)return"<cols>".concat(i,"</cols>")}return""}({schema:n,columns:i})).replace("{mergedCellsDescription}",function(e){return 0===e.length?"":'<mergeCells count="'.concat(e.length,'">')+e.map((function(e){var t,n,i=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(t,n)||function(e,t){if(e){if("string"==typeof e)return bi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bi(e,t):void 0}}(t,n)||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.")}()),r=i[0],o=i[1],a=ti(r[1],r[0]+1)+":"+ti(o[1],o[0]+1);return'<mergeCell ref="'.concat(a,'"/>')})).join("")+"</mergeCells>"}(g)).replace("{layout}",function(e){var t=e.sheetId,n=e.orientation,i="";return n&&(i+="<pageMargins",i+=' left="'.concat(.7,'"'),i+=' right="'.concat(.7,'"'),i+=' top="'.concat(.75,'"'),i+=' bottom="'.concat(.75,'"'),i+=' header="'.concat(.3,'"'),i+=' footer="'.concat(.3,'"'),i+="/>"),n&&(i+="<pageSetup",i+=' paperSize="'.concat(9,'"'),i+=' orientation="'.concat(xi(n),'"'),i+=' r:id="rId'.concat(t,'"'),i+="/>"),i}({sheetId:h,orientation:c}))}function _i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ci(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ci(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ci(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Mi=100;function ki(e){if("#"!==e[0])throw new Error('Color "'.concat(e,'" must start with a "#"'));return"FF".concat(e.slice(1).toUpperCase())}function Si(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Ii(){var e=[],t={};return{getSharedStringsXml:function(){return function(e){var t='<?xml version="1.0"?>';t+='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">';for(var n,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Si(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Si(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(n=i()).done;){var r=n.value,o=r.trim().length===r.length?"":' xml:space="preserve"';t+="<si><t".concat(o,">"),t+=ei(r),t+="</t></si>"}return t+"</sst>"}(e)},getSharedString:function(n){var i=t[n];return void 0===i&&(i=String(e.length),t[n]=i,e.push(n)),i}}}var Li=/[\[\]\/\\:*?]+/;function Ti(e){if(!e)throw new Error("Sheet name can't be empty");if(e.length>31)throw new Error('Sheet name "'.concat(e,"\" can't be longer than 31 characters"));if(Li.test(e))throw new Error('Sheet name "'.concat(e,'" contains illegal characters: []/\\:*?'))}function Di(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Oi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oi(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Oi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var ji=["fileName"];function Ni(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Ei(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fileName;return function(e,t){var n=t.sheet,i=t.sheets,r=t.schema,o=t.columns,a=t.headerStyle,s=t.fontFamily,l=t.fontSize,c=t.orientation,u=t.stickyRowsCount,d=t.stickyColumnsCount,h=t.dateFormat,f=new Hn;f.file("_rels/.rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>'),f.file("[Content_Types].xml",'<?xml version="1.0" ?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default ContentType="application/xml" Extension="xml"/><Default ContentType="application/vnd.openxmlformats-package.relationships+xml" Extension="rels"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" PartName="/xl/worksheets/sheet1.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" PartName="/xl/workbook.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" PartName="/xl/sharedStrings.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" PartName="/xl/styles.xml"/></Types>');var p=function(e){var t=e.data,n=e.sheetName,i=e.sheetNames,r=e.schema,o=e.columns,a=e.headerStyle,s=e.fontFamily,l=e.fontSize,c=e.orientation,u=e.stickyRowsCount,d=e.stickyColumnsCount,h=e.dateFormat,f=Ii(),p=f.getSharedStringsXml,g=f.getSharedString,m=function(e){var t=e.fontFamily,n=e.fontSize,i=Boolean(t||n);void 0===t&&(t="Calibri"),void 0===n&&(n=12);var r=[],o={},a=[],s={},l=[],c={},u=[],d={},h=[],f={};function p(e,p){var g,m=e.fontFamily,v=e.fontSize,y=e.fontWeight,b=e.fontStyle,x=e.align,w=e.alignVertical,A=e.wrap,_=e.color,C=e.backgroundColor,M=e.borderColor,k=e.borderStyle,S=e.leftBorderColor,I=e.leftBorderStyle,L=e.rightBorderColor,T=e.rightBorderStyle,D=e.topBorderColor,O=e.topBorderStyle,j=e.bottomBorderColor,N=e.bottomBorderStyle,E=p.format,P="".concat(m||"-",":").concat(v||"-",":").concat(y||"-",":").concat(b||"-",":").concat(_||"-"),F=C||"-",z="".concat(D||M||"-",":").concat(O||k||"-")+"/"+"".concat(L||M||"-",":").concat(T||k||"-")+"/"+"".concat(j||M||"-",":").concat(N||k||"-")+"/"+"".concat(S||M||"-",":").concat(I||k||"-"),R="".concat(x||"-","/").concat(w||"-","/").concat(E||"-","/").concat(A||"-","/").concat(P,"/").concat(F,"/").concat(z),B=s[R];if(void 0!==B)return B;E&&void 0===(g=o[E])&&(g=o[E]=String(Mi+r.length),r.push(E));var W,Y,U=i?0:void 0;return(m||v||y||b||_)&&void 0===(U=c[P])&&(U=c[P]=String(l.length),l.push({custom:!0,size:v||n,family:m||t,weight:y,style:b,color:_})),C&&void 0===(W=d[F])&&(W=d[F]=String(u.length),u.push({color:C})),(M||k||S||I||L||T||D||O||j||N)&&void 0===(Y=f[z])&&(Y=f[z]=String(h.length),h.push({left:{style:I||k,color:S||M},right:{style:T||k,color:L||M},top:{style:O||k,color:D||M},bottom:{style:N||k,color:j||M}})),a.push({fontId:U,fillId:W,borderId:Y,align:x,alignVertical:w,wrap:A,formatId:g}),s[R]=String(a.length-1)}return l.push({size:n,family:t,custom:i}),c["-:-"]=0,u.push({}),d["-"]=0,h.push({left:{},right:{},top:{},bottom:{}}),f["-:-/-:-/-:-/-:-"]=0,u.push({gray125:!0}),p({},{}),{getStylesXml:function(){return function(e){var t=e.formats,n=e.styles,i=e.fonts,r=e.fills,o=e.borders,a='<?xml version="1.0" ?>';if(a+='<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">',t.length>0){a+='<numFmts count="'.concat(t.length,'">');for(var s=0;s<t.length;s++)a+='<numFmt numFmtId="'.concat(Mi+s,'" formatCode="').concat(xi(t[s]),'"/>');a+="</numFmts>"}a+='<fonts count="'.concat(i.length,'">');for(var l,c=_i(i);!(l=c()).done;){var u=l.value,d=u.size,h=u.family,f=u.color,p=u.weight,g=u.style,m=u.custom;a+="<font>",a+='<sz val="'.concat(d,'"/>'),a+="<color ".concat(f?'rgb="'+xi(ki(f))+'"':'theme="1"',"/>"),a+='<name val="'.concat(xi(h),'"/>'),a+='<family val="2"/>',m||(a+='<scheme val="minor"/>'),"bold"===p&&(a+="<b/>"),"italic"===g&&(a+="<i/>"),a+="</font>"}a+="</fonts>",a+='<fills count="'.concat(r.length,'">');for(var v,y=_i(r);!(v=y()).done;){var b=v.value,x=b.color,w=b.gray125;a+="<fill>",x?(a+='<patternFill patternType="solid">',a+='<fgColor rgb="'.concat(xi(ki(x)),'"/>'),a+='<bgColor indexed="64"/>',a+="</patternFill>"):a+=w?'<patternFill patternType="gray125"/>':'<patternFill patternType="none"/>',a+="</fill>"}a+="</fills>",a+='<borders count="'.concat(o.length,'">');for(var A,_=_i(o);!(A=_()).done;){var C=A.value,M=C.left,k=C.right,S=C.top,I=C.bottom,L=function(e,t){var n=t.style,i=t.color;i&&!n&&(n="thin");var r=!!i;return"<".concat(e)+(n?' style="'.concat(xi(n),'"'):"")+(r?">":"/>")+(i?'<color rgb="'.concat(xi(ki(i)),'"/>'):"")+(r?"</".concat(e,">"):"")};a+="<border>",a+=L("left",M),a+=L("right",k),a+=L("top",S),a+=L("bottom",I),a+="<diagonal/>",a+="</border>"}a+="</borders>",a+='<cellXfs count="'.concat(n.length,'">');for(var T,D=_i(n);!(T=D()).done;){var O=T.value,j=O.fontId,N=O.fillId,E=O.borderId,P=O.align,F=O.alignVertical,z=O.wrap,R=O.formatId;a+="<xf "+[void 0!==R?'numFmtId="'.concat(R,'"'):void 0,void 0!==R?'applyNumberFormat="1"':void 0,void 0!==j?'fontId="'.concat(j,'"'):void 0,void 0!==j?'applyFont="1"':void 0,void 0!==N?'fillId="'.concat(N,'"'):void 0,void 0!==N?'applyFill="1"':void 0,void 0!==E?'borderId="'.concat(E,'"'):void 0,void 0!==E?'applyBorder="1"':void 0,P||F||z?'applyAlignment="1"':void 0].filter((function(e){return e})).join(" ")+">"+(P||F||z?"<alignment"+(P?' horizontal="'.concat(xi(P),'"'):"")+(F?' vertical="'.concat(xi(F),'"'):"")+(z?' wrapText="1"':"")+"/>":"")+"</xf>"}return(a+="</cellXfs>")+"</styleSheet>"}({formats:r,styles:a,fonts:l,fills:u,borders:h})},getStyle:p}}({fontFamily:s,fontSize:l}),v=m.getStylesXml,y=m.getStyle;if(i&&o&&!Array.isArray(o[0]))throw new Error('In a "write multiple sheets" scenario, `columns` parameter must be an array of `columns` for each sheet.');i||(i=[n||"Sheet1"],t=[t],o&&(o=[o]),r&&(r=[r]));for(var b,x=Di(i);!(b=x()).done;)Ti(b.value);for(var w,A=[],_=0,C=Di(i);!(w=C()).done;)w.value,A.push(Ai(t[_],{schema:r&&r[_],columns:o&&o[_],headerStyle:a,getStyle:y,getSharedString:g,customFont:s||l,dateFormat:h,orientation:c,stickyRowsCount:u,stickyColumnsCount:d,sheetId:_+1})),_++;return{sheets:i.map((function(e,t){return{id:t+1,name:e,data:A[t]}})),getSharedStringsXml:p,getStylesXml:v}}({data:e,sheetName:n,sheetNames:i,schema:r,columns:o,headerStyle:a,fontFamily:s,fontSize:l,orientation:c,stickyRowsCount:u,stickyColumnsCount:d,dateFormat:h}),g=p.sheets,m=p.getSharedStringsXml,v=p.getStylesXml,y=f.folder("xl");y.file("_rels/workbook.xml.rels",function(e){var t=e.sheets;return'<?xml version="1.0" ?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">'+t.map((function(e){var t=e.id;return'<Relationship Id="rId'.concat(t,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet').concat(t,'.xml"/>')})).join("")+'<Relationship Id="rId'.concat(t.length+1,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/>')+'<Relationship Id="rId'.concat(t.length+2,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/>')+"</Relationships>"}({sheets:g})),y.file("workbook.xml",function(e){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="urn:schemas-microsoft-com:mac:vml" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main"><workbookPr/>'+(e.stickyRowsCount||e.stickyColumnsCount?"<bookViews><workbookView/></bookViews>":"")+"<sheets>"+e.sheets.map((function(e){var t=e.id,n=e.name;return'<sheet name="'.concat(n,'" sheetId="').concat(t,'" r:id="rId').concat(t,'"/>')})).join("")+"</sheets><definedNames/><calcPr/></workbook>"}({sheets:g,stickyRowsCount:u,stickyColumnsCount:d})),y.file("styles.xml",v()),y.file("sharedStrings.xml",m());for(var b,x=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ni(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ni(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(g);!(b=x()).done;){var w=b.value,A=w.id,_=w.data;y.file("worksheets/sheet".concat(A,".xml"),_)}return f.generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})}(e,function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(t,ji)).then((function(e){return n?Un.saveAs(e,n):e}))}class Pi{constructor(e,t){this._table=e,this._reportSet=t}static addHandles(e,n){t()("table",e).each((function(){const e=t()(this);if(e.find(".ixbrl-element").length>0){e.css("position","relative");const i=new Pi(e,n);t()('<div class="ixbrl-table-handle"><span>Export table</span></div>').appendTo(e).click((()=>i.exportTable()))}}))}_getRawTable(){const e=this._table,n=this._reportSet;let i=0;const r=[];e.find("tr").each((function(){const e=[];t()(this).find("td:visible, th:visible").each((function(){const i=t()(this).attr("colspan");if(i)for(let t=0;t<i-1;t++)e.push({type:"static",value:""});const r=t()(this).find(".ixbrl-element").addBack(".ixbrl-element");let o=null;if(r.length>0){const e=r.first().data("ivids");o=n.getItemById(e)}if(o instanceof Gt){const n={type:"fact",fact:o},i=t()(this)[0];let a=r[0],s=a.textContent;for(;a!==i;)a=null!==a.previousSibling?a.previousSibling:a.parentNode,3==a.nodeType&&(s=a.textContent+s);null!==s.match(/[\(-]\s*\d/)&&(n.negative=!0),n.topBorder=null!==t()(this).css("border-top-style").match(/(solid|double)/),n.bottomBorder=null!==t()(this).css("border-bottom-style").match(/(solid|double)/),e.push(n)}else{const n=t()(this).text();e.push({type:"static",value:n})}})),e.length>i&&(i=e.length),r.push(e)}));for(const e of r)for(;e.length<i;)e.push({type:"static",value:""});return r}_getFactsInSlice(e){return e.filter((e=>"fact"===e.type)).map((e=>e.fact))}_getConstantAspectsForSlice(e,t){const n=this._getFactsInSlice(e);if(0==n.length)return null;const i=new Set;for(const e of n)for(const t of e.aspects())i.add(t.name());const r=new Map;for(const e of i){r.set(e,n[0].aspect(e));for(let t=1;t<n.length;t++)void 0!==r.get(e)&&r.get(e).equalTo(n[t].aspect(e))||r.delete(e)}return r}_writeTable(e){const t=[],n=[];for(const[i,r]of e.entries()){const e=[];for(const[t,i]of r.entries()){const r={};"fact"===i.type?(n[t]={width:18},r.value=Number(i.fact.value()),r.type=Number,r.format="#,##0",i.negative?r.value=-1*Math.abs(r.value):r.value=Math.abs(r.value),i.topBorder&&(r.topBorderStyle="medium",r.topBorderColor="#000000"),i.bottomBorder&&(r.bottomBorderStyle="medium",r.bottomBorderColor="#000000")):"aspectLabel"===i.type?(r.value=i.value,r.type=String):(r.value=i.value,r.type=String,r.color="#707070"),e.push(r)}t.push(e)}return{columns:n,data:t}}exportTable(){const e=this._getRawTable();let t=0;const n=[],i=new Set;for(const r of e){const e=this._getConstantAspectsForSlice(r);if(n.push(e),null!==e)for(const[t,n]of e)i.add(t);r.length>t&&(t=r.length)}const r=[],o=new Set;for(let n=0;n<t;n++){const t=e.map((e=>e[n])),i=this._getConstantAspectsForSlice(t);if(r.push(i),null!==i)for(const[e,t]of i)o.add(e)}const a=new Set(o);for(const e of o)for(const[t,n]of Object.entries(r))null===n||n.get(e)||a.delete(e);for(const e of o)i.delete(e);for(const n of o){const o=Array.from(i).map((()=>""));for(let e=0;e<t;e++){let t=(r[e]||new Map).get(n);void 0!==t&&(t=t.valueLabel("std")),o.push({type:"aspectLabel",value:t||""})}e.unshift(o)}for(let t=o.size;t<e.length;t++){const r=[];for(const e of i){let i=(n[t-o.size]||new Map).get(e);void 0!==i&&(i=i.valueLabel("std")),r.push({type:"aspectLabel",value:i||""})}e[t]=r.concat(e[t])}const s=this._writeTable(e);Ei(s.data,{columns:s.columns,fileName:"table.xlsx"})}}var Fi=0;class zi{constructor(e,t,n){this.wrapperNodes=t,this.escaped=!1,this.continuations=[],this.docIndex=n,this.footnote=!1,this.id=e,this.isHidden=!1,this.docOrderindex=Fi++}continuationIds(){return this.continuations.map((e=>e.id))}chainIXIds(){return[this.id].concat(this.continuationIds())}textContent(){return[this].concat(this.continuations).map((e=>e.wrapperNodes.first().text())).join(" ")}htmlHidden(){return this.wrapperNodes.is(":hidden")||this.wrapperNodes.is(((e,n)=>function(e){const t=parseFloat(e.split(",")[3]);return!isNaN(t)&&t<.1}(t()(n).css("color"))))}}class Ri{constructor(){this.index=[]}addItem(e,t){this.index.push({id:e,docIndex:t})}getAdjacentItem(e,t){const n=this.index.findIndex((t=>t.id==e)),i=this.index.length;return this.index[(n+t+i)%i].id}getFirstInDocument(e){return this.index.filter((t=>t.docIndex==e))[0].id}getLastInDocument(e){return this.index.filter((t=>t.docIndex==e)).at(-1).id}}class Bi{constructor(e){this.node=t()("#dialog-templates").find(e).clone().appendTo("#ixv #dialog-container"),t()(".close",this.node).click((()=>this.close())),t()(document).bind("keyup",(e=>{27===e.keyCode&&this.close()}))}addButton(e,n,i){const r=this.node.find(".buttons"),o=t()("<button></button>").text(e).addClass(n?"dialog-button-primary":"dialog-button-cancel");r.append(o),o.on("click",(()=>{i&&!i()||this.close()}))}close(){t()(".dialog-mask").hide(),this.node.remove()}show(){t()(".dialog-mask").show(),this.node.show()}}class Wi extends Bi{constructor(e,t,n,i){super(".dialog.message-box"),this.title=e,this.message=t,this.okText=n,this.cancelText=i}show(e,n){this.node.find(".title").text(this.title),this.node.find(".message").empty().append(this.message);const i=this.node.find(".buttons").empty(),r=t()("<button></button>").text(this.okText).addClass("dialog-button-primary");if(i.append(r),r.on("click",(()=>{this.close(),e&&e()})),this.cancelText){const e=t()("<button></button>").text(this.cancelText).addClass("dialog-button-cancel");i.append(e),e.on("click",(()=>{this.close(),n&&n()}))}super.show(this)}showAsync(){return new Promise(((e,t)=>{this.show((()=>e(!0)),(()=>e(!1)))}))}}class Yi extends Error{}function Ui(e){return-1==e.indexOf(":")?e:e.substring(e.indexOf(":")+1)}class Hi{constructor(e,n,i){this._iv=e,this._reportSet=i,this._iframes=n,this._contents=n.contents(),this.onSelect=t().Callbacks(),this.onMouseEnter=t().Callbacks(),this.onMouseLeave=t().Callbacks(),this._ixNodeMap={},this._docOrderItemIndex=new Ri,this._currentDocumentIndex=0}_checkContinuationCount(){const e=Object.keys(this.continuationOfMap).length;if(e>this._iv.options.continuationElementLimit){const n=t()("<div></div>").append(t()("<p></p>").text(`This document contains a very large number of iXBRL elements (found ${e} ix:continuation elements).`)).append(t()("<p></p>").text("You may experience performance problems viewing this document, or the viewer may not load at all.")).append(t()("<p></p>").text("Do you want to continue trying to load this document?"));return new Wi("Large document warning",n,"Continue","Cancel").showAsync().then((e=>{if(!e)throw new Yi("Too many continuations")}))}return Promise.resolve()}initialize(){return new Promise((async(e,n)=>{const i=this;i._buildContinuationMaps(),i._checkContinuationCount().catch((e=>{throw e})).then((()=>i._iv.setProgress("Pre-processing document"))).then((()=>{i._iframes.each((function(e){t()(this).data("selected",e==i._currentDocumentIndex);const n=t()(this).data("report-index");i._preProcessiXBRL(t()(this).contents().find("body").get(0),n,e)})),async function(){for(const[e,n]of i._iframes.toArray().entries()){const r=t()(n).contents().find("body").get(0);await i._iv.pluginPromise("preProcessiXBRL",r,e),i._iv.isReviewModeEnabled()&&await new Promise(((n,o)=>{i._iv.setProgress("Finding untagged numbers and dates").then((()=>{const o=t()(r).children(":visible");o.hide(),t()(r).addClass("review"),i._wrapUntaggedNumbers(t()(r),e,!1),o.show(),n()}))}))}}().then((()=>i._iv.setProgress("Preparing document"))).then((()=>{this._reportSet.setIXNodeMap(this._ixNodeMap),this._applyStyles(),this._bindHandlers(),this.scale=1,this._setTitle(0),this._addDocumentSetTabs(),e()}))})).catch((e=>n(e)))}))}_addDocumentSetTabs(){if(this._reportSet.isMultiDocumentViewer()){t()("#ixv .ixds-tabs").show();for(const[e,n]of this._reportSet.reportFiles().entries())t()('<div class="tab">').text(n.file).prop("title",n.file).data("ix-doc-id",e).click((()=>this.selectDocument(e))).appendTo(t()("#ixv #viewer-pane .ixds-tabs .tab-area"));t()("#ixv #viewer-pane .ixds-tabs .tab-area .tab").eq(0).addClass("active")}}_wrapNode(e){var n="<span>";const i=e.getElementsByTagName("*");for(var r=0;r<i.length;r++)if("block"===getComputedStyle(i[r]).getPropertyValue("display")){n="<div>";break}return t()(e).wrap(n),e.parentNode}_wrapUntaggedNumbers(e,n,i){const r=this,o=/(?:^|\s|;)-(?:sec|esef)-ix-hidden:\s*([^\s;]+)/;e.contents().each((function(){if(this.nodeType===Node.ELEMENT_NODE){const e=Ui(this.nodeName.toUpperCase());"NONFRACTION"===e||"NONNUMERIC"===e&&null!==this.getAttribute("format")||this.hasAttribute("style")&&this.getAttribute("style").match(o)||r._wrapUntaggedNumbers(t()(this),n,"NONNUMERIC"===e)}else if(this.nodeType===Node.TEXT_NODE){const n=this.nodeValue,r=t()("<div></div>");let o=0;!function(e,t){for(var n;null!==(n=Yn.exec(e));)t(n,void 0!==n[2],void 0!==n[1])}(n,(function(a,s,l){if(a.index>o&&r.append(document.createTextNode(n.substring(o,a.index))),s||i&&0===a.index&&a.index+a[0].length===n.length&&n===e.text())r.append(document.createTextNode(a[0]));else{const e=l?"review-untagged-date":"review-untagged-number";t()("<span></span>").text(a[0]).addClass(e).appendTo(r)}o=a.index+a[0].length})),o<n.length&&r.append(document.createTextNode(n.substring(o,n.length))),t()(this).replaceWith(r.contents())}}))}_showDocumentAndElement(e,n){if(this.selectDocument(e),void 0!==n&&""!=n)for(const i of[n,decodeURIComponent(n)]){const n=t().escapeSelector(i),r=this._iframes.eq(e).contents().find("#"+n+', a[name="'+n+'"]');if(r.length>0)return void this.showElement(r.eq(0))}}_updateLink(e){const n=t()(e).attr("href");if(void 0!==n){const[i,r]=n.split("#",2),o=this._reportSet.reportFiles().indexOf(i);n.includes("/")||-1==o?i&&t()(e).attr("target","_blank"):t()(e).click((e=>{this._showDocumentAndElement(o,r),e.preventDefault()}))}}_findOrCreateWrapperNode(e){const n=e.closest("td,th"),i=[],r=t()(e).text();if(null!==n&&r.length>0){const e=t()(n).text(),o=e.indexOf(r),a=e.substring(0,o)+e.substring(o+r.length);/[0-9A-Za-z]/.test(a)||i.push(n)}if(0==i.length){i.push(this._wrapNode(e));for(const t of e.querySelectorAll("*"))"absolute"===getComputedStyle(t).getPropertyValue("position")&&i.push(t)}for(const[e,t]of i.entries())i.length>1&&t.classList.add("ixbrl-contains-absolute"),0==e?t.classList.add("ixbrl-element"):t.classList.add("ixbrl-sub-element");return t()(i)}_addIdToNode(e,t){const n=e.data("ivids")||[];n.push(t),e.data("ivids",n)}_buildContinuationMaps(){const e={},n={};this._iframes.each(((i,r)=>{const o=t()(r).data("report-index");t()(r).contents().find("body *").each(((t,i)=>{const r=Ui(i.nodeName).toUpperCase();if(["NONNUMERIC","NONFRACTION","FOOTNOTE","CONTINUATION"].includes(r)){const t=Bt(o,i.getAttribute("id")),a=Bt(o,i.getAttribute("continuedAt"));null!==a&&(e[t]=a),"CONTINUATION"==r||i.hasAttribute("target")||(n[t]=[])}}))})),this.continuationOfMap={};for(const[t,r]of Object.entries(n))for(var i=t;void 0!==e[i];)i=e[i],r.push(i),void 0!==this.continuationOfMap[i]&&console.log("Continuation '"+i+"' is a continuation of multiple items."),this.continuationOfMap[i]=t;this.itemContinuationMap=n}_preProcessiXBRL(e,n,i,r){const o=Ui(e.nodeName).toUpperCase(),a="FOOTNOTE"===o,s="CONTINUATION"===o,l="NONNUMERIC"===o,c="NONFRACTION"===o,u=l||c;if(1===e.nodeType){const f=Bt(n,e.getAttribute("id"));if((u||a)&&!e.hasAttribute("target")||s&&void 0!==this.continuationOfMap[f]){var d;d=r?t()(e):this._findOrCreateWrapperNode(e);const n=s?this.continuationOfMap[f]:f;this._addIdToNode(d.first(),n);var h=this._ixNodeMap[f];if(h||(h=new zi(f,d,i),this._ixNodeMap[f]=h),r&&(h.isHidden=!0,d.addClass("ixbrl-element-hidden")),s?d.addClass("ixbrl-continuation"):this._docOrderItemIndex.addItem(f,i),c&&(d.addClass("ixbrl-element-nonfraction"),e.hasAttribute("scale"))){const t=Number(e.getAttribute("scale"));Number.isNaN(t)||0===t||(h.scale=t)}l&&(d.addClass("ixbrl-element-nonnumeric"),e.hasAttribute("escape")&&e.getAttribute("escape").match(/^(true|1)$/)&&(h.escaped=!0)),a&&(d.addClass("ixbrl-element-footnote"),h.footnote=!0)}else if("HIDDEN"==o)r=!0;else{const n=this._getIXHiddenLinkStyle(e);if(null!==n){(d=t()(e)).addClass("ixbrl-element").data("ivids",[n]),this._docOrderItemIndex.addItem(n,i);const r=this._ixNodeMap[n];r?(r.wrapperNodes=d,r.docIndex=i):this._ixNodeMap[n]=new zi(n,d,i)}"A"==o&&this._updateLink(e)}}this._preProcessChildNodes(e,n,i,r)}_getIXHiddenLinkStyle(e){if(e.hasAttribute("style")){const t=/(?:^|\s|;)-(?:sec|esef)-ix-hidden:\s*([^\s;]+)/,n=e.getAttribute("style").match(t);if(n)return n[1]}return null}_preProcessChildNodes(e,t,n,i){for(const r of e.childNodes)this._preProcessiXBRL(r,t,n,i)}_applyStyles(){const e=t()("<style>").prop("type","text/css").text(n(125).toString()).appendTo(this._iframes.contents().find("head"));this._iv.callPluginMethod("updateViewerStyleElements",e)}contents(){return this._iframes.contents()}_selectAdjacentTag(e,t){var n;null!==t?(n=this._docOrderItemIndex.getAdjacentItem(t.vuid,e),this.showDocumentForItemId(n)):n=e>0?this._docOrderItemIndex.getFirstInDocument(this._currentDocumentIndex):this._docOrderItemIndex.getLastInDocument(this._currentDocumentIndex);const i=this.elementsForItemId(n);this.showElement(i),this.selectElement(n,this._ixIdsForElement(i))}_bindHandlers(){const e=this;t()(".ixbrl-element",this._contents).click((function(n){n.stopPropagation(),e.selectElementByClick(t()(this))})).mouseenter((function(n){e._mouseEnter(t()(this))})).mouseleave((function(n){e._mouseLeave(t()(this))})),t()("body",this._contents).click((()=>e.selectElement(null))),t()("#iframe-container .zoom-in").click((()=>this.zoomIn())),t()("#iframe-container .zoom-out").click((()=>this.zoomOut())),t()("#iframe-container .print").click((()=>this.currentDocument().get(0).contentWindow.print())),Pi.addHandles(this._contents,this._reportSet)}selectNextTag(e){this._selectAdjacentTag(1,e)}selectPrevTag(e){this._selectAdjacentTag(-1,e)}intersect(e,t){const n={left:Math.max(e.left,t.left),top:Math.max(e.top,t.top),right:Math.min(e.right,t.right),bottom:Math.min(e.bottom,t.bottom)};return n.width=n.right-n.left,n.height=n.bottom-n.top,n}isScrollableElement(e){const n=t()(e).css("overflow-y");if(e.clientHeight>0&&e.clientHeight<e.scrollHeight&&("auto"==n||"scroll"==n))return!0;const i=t()(e).css("overflow-x");return e.clientWidth>0&&e.clientWidth<e.scrollWidth&&("auto"==i||"scroll"==i)}isFullyVisible(e){var n=e.getBoundingClientRect();const i=e.getBoundingClientRect();for(var r=t()(e.parentElement);!r.is("body");){if(this.isScrollableElement(r[0])&&(n=this.intersect(n,r[0].getBoundingClientRect())),n.width<i.width||n.height<i.height)return!1;r=r.parent()}const o="CSS1Compat"!=e.ownerDocument.compatMode?r:r.closest("html").get(0);return n.left>0&&n.top>0&&n.right<o.clientWidth&&n.bottom<o.clientHeight}showElement(e){const t=e.get(0);this.isFullyVisible(t)||t.scrollIntoView({block:"center",inline:"center"})}clearHighlighting(){t()("body",this._iframes.contents()).find(".ixbrl-element, .ixbrl-sub-element").removeClass("ixbrl-selected").removeClass("ixbrl-related").removeClass("ixbrl-linked-highlight")}_ixIdsForElement(e){return e.data("ivids")}selectElement(e,t,n){null!==e?this.onSelect.fire(e,t,n):this.onSelect.fire(null)}selectElementByClick(e){var n=[];const i=this;var r;e.hasClass(".ixbrl-element")||(e=e.closest(".ixbrl-element")),e.parents(".ixbrl-element").addBack().each((function(){const o=i._ixIdsForElement(t()(this));n=n.concat(o),t()(this).text()==e.text()&&void 0===r&&(r=o[0])})),this.selectElement(r,n,!0)}_mouseEnter(e){const t=e.data("ivids")[0];this.onMouseEnter.fire(t)}_mouseLeave(e){const t=e.data("ivids")[0];this.onMouseLeave.fire(t)}highlightRelatedFact(e){this.changeItemClass(e.vuid,"ixbrl-related")}highlightRelatedFacts(e){for(const t of e)this.changeItemClass(t.vuid,"ixbrl-related")}clearRelatedHighlighting(e){t()(".ixbrl-related",this._contents).removeClass("ixbrl-related")}elementsForItemId(e){return this._ixNodeMap[e].wrapperNodes}elementsForItemIds(e){return t()(e.map((e=>this._ixNodeMap[e].wrapperNodes.get())).flat())}changeItemClass(e,t,n){const i=this.elementsForItemIds([e].concat(this.itemContinuationMap[e]));n?i.removeClass(t):i.addClass(t)}highlightItem(e){this.clearHighlighting(),this.changeItemClass(e,"ixbrl-selected")}showItemById(e){if(null!==e){let t=this.elementsForItemId(e);this.showDocumentForItemId(e),t.length>0&&this.showElement(t)}}highlightAllTags(e,n){const i={};t().each(n,(function(e,t){i[t]=e}));const r=this._reportSet,o=this;e?(t()(".ixbrl-element",this._contents).addClass("ixbrl-highlight").each((function(){const e=t()(this).data("ivids").map((e=>o._ixNodeMap[e])).filter((e=>!e.footnote))[0];if(null!=e){const t=o.elementsForItemIds(e.chainIXIds()),n=i[r.getItemById(e.id).conceptQName().prefix];void 0!==n&&t.addClass("ixbrl-highlight-"+n)}})),t()(".ixbrl-sub-element",this._contents).addClass("ixbrl-highlight")):t()(".ixbrl-element, .ixbrl-sub-element",this._contents).removeClass(((e,t)=>(t.match(/(^|\s)ixbrl-highlight\S*/g)||[]).join(" ")))}_zoom(){const e=this._contents.scrollTop(),n=t()("html",this._contents).height();t()("body",this._contents).css("zoom",this.scale);const i=t()("html",this._contents).height();this._contents.scrollTop(i*e/n)}zoomIn(){this.scale*=1.1,this._zoom()}zoomOut(){this.scale/=1.1,this._zoom()}factsInSameTable(e){var n=[];return this.elementsForItemId(e.vuid).closest("table").find(".ixbrl-element").each((function(){n=n.concat(t()(this).data("ivids"))})),n}linkedHighlightFact(e){this.changeItemClass(e.vuid,"ixbrl-linked-highlight")}clearLinkedHighlightFact(e){this.changeItemClass(e.vuid,"ixbrl-linked-highlight",!0)}_setTitle(e){t()("#top-bar .document-title").text(t()("head title",this._iframes.eq(e).contents()).text())}showDocumentForItemId(e){this.selectDocument(this._ixNodeMap[e].docIndex)}currentDocument(){return this._iframes.eq(this._currentDocumentIndex)}selectDocument(e){this._currentDocumentIndex=e,t()("#ixv #viewer-pane .ixds-tabs .tab").removeClass("active").eq(e).addClass("active"),this._iframes.height(0).data("selected",!1).eq(e).height("100%").data("selected",!0),this._setTitle(e)}*postProcess(){for(const e of this._iframes.get()){const n=t()(e).contents().get(0).querySelectorAll(".ixbrl-contains-absolute");for(const[e,t]of n.entries())"inline"!==getComputedStyle(t).getPropertyValue("display")&&t.getBoundingClientRect().height,e%100==0&&(yield);for(const[e,t]of n.entries())"inline"!==getComputedStyle(t).getPropertyValue("display")&&0==t.getBoundingClientRect().height&&t.classList.add("ixbrl-no-highlight"),e%100==0&&(yield)}}postLoadAsync(){zt(this.postProcess())}}var Vi=n(437),Zi=n.n(Vi);class Gi{constructor(e){this._reportSet=e,this.ready=!1}*buildSearchIndex(e){var t=[],n={},i=this._reportSet.facts();this.periods={};for(var r=0;r<i.length;r++){var o=i[r],a={id:o.vuid},s=o.getLabel("std");for(var l in a.concept=o.conceptQName().localname,a.doc=o.getLabel("doc"),a.date=o.periodTo(),a.startDate=o.periodFrom(),n=o.dimensions())o.report.getConcept(l).isTypedDimension()?null!==n[l]&&(s+=" "+n[l]):s+=" "+o.report.getLabel(n[l],"std");a.label=s,a.ref=o.concept().referenceValuesAsString();const e=o.widerConcepts();e.length>0&&(a.widerConcept=o.report.qname(e[0]).localname,a.widerLabel=o.report.getLabel(e[0],"std"),a.widerDoc=o.report.getLabel(e[0],"doc")),t.push(a);var c=o.period();c&&(this.periods[c.key()]=c.toString()),r%100==0&&(yield)}const u=new(Zi().Builder);u.pipeline.add(Zi().trimmer,Zi().stopWordFilter,Zi().stemmer),u.searchPipeline.add(Zi().stemmer),u.ref("id"),u.field("label"),u.field("concept"),u.field("startDate"),u.field("date"),u.field("doc"),u.field("ref"),u.field("widerLabel"),u.field("widerDoc"),u.field("widerConcept");for(const[e,n]of t.entries())u.add(n),e%100==0&&(yield);this._searchIndex=u.build(),this.ready=!0,e()}visibilityFilter(e,t){return t.isHidden()?e.showHiddenFacts:e.showVisibleFacts}periodFilter(e,t){return 0===e.periodFilter.length||e.periodFilter.some((e=>t.period().key()===e))}conceptTypeFilter(e,t){return"*"===e.conceptTypeFilter||e.conceptTypeFilter===(t.isNumeric()?"numeric":"text")}dimensionTypeFilter(e,t){const n=e.dimensionTypeFilter.includes("typed"),i=e.dimensionTypeFilter.includes("explicit");return 0===e.dimensionTypeFilter.length||n&&t.hasTypedDimension()||i&&t.hasExplicitDimension()}factValueFilter(e,t){return"*"===e.factValueFilter||"positive"===e.factValueFilter&&t.isPositive()||"negative"===e.factValueFilter&&t.isNegative()}calculationsFilter(e,t){const n=e.calculationsFilter.includes("summation"),i=e.calculationsFilter.includes("contributor");return 0===e.calculationsFilter.length||n&&t.isCalculationSummation()||i&&t.isCalculationContributor()}namespacesFilter(e,t){return 0===e.namespacesFilter.length||e.namespacesFilter.some((e=>t.getConceptPrefix()===e))}unitsFilter(e,t){return 0===e.unitsFilter.length||e.unitsFilter.some((e=>t.unit()?.value()===e))}scalesFilter(e,t){return 0===e.scalesFilter.length||e.scalesFilter.some((e=>t.scale()===Number(e)))}search(e){if(!this.ready)return;const t=this._searchIndex.search(e.searchString),n=[],i=this,r=[this.visibilityFilter,this.periodFilter,this.conceptTypeFilter,this.dimensionTypeFilter,this.factValueFilter,this.calculationsFilter,this.namespacesFilter,this.unitsFilter,this.scalesFilter];return t.forEach(((t,o)=>{const a=i._reportSet.getItemById(t.ref);r.every((t=>t(e,a)))&&n.push({fact:a,score:t.score})})),n}}function Qi(e){this._fact=e}Qi.prototype.calculationFacts=function(){var e=this._fact,n=e.report;if(!this._conceptToFact){var i=n.getChildRelationships(e.conceptName(),"calc"),r={};t().each(i,(function(i,o){if(r[i]={},o.length>0){var a=n.getAlignedFacts(e,{c:t().map(o,((e,t)=>e.t))});t().each(a,((e,t)=>Ft(r[i],t.conceptName(),{})[t.vuid]=t))}})),this._conceptToFact=r}return this._conceptToFact},Qi.prototype.hasCalculations=function(){var e=this.calculationFacts();return Object.keys(e).length>0},Qi.prototype.elrs=function(){var e=this.calculationFacts(),n={};return t().each(e,(function(e,t){Object.keys(t).length>0&&(n[e]=e.match(/[^\/]*$/)[0])})),n},Qi.prototype.bestELRForFactSet=function(e){var n=this.calculationFacts(),i="",r=-1;return t().each(n,(function(n,o){var a=0;t().each(o,(function(n,i){var r=0;t().each(i,(function(n,i){t().inArray(n,e)>-1&&(r=1)})),a+=r})),a/Object.keys(o).length>r&&(r=a/Object.keys(o).length,i=n)})),i},Qi.prototype.resolvedCalculation=function(e){var n=[],i=this.calculationFacts()[e],r=this._fact.report.getChildRelationships(this._fact.conceptName(),"calc")[e];return t().each(r,(function(e,t){var r;r=1==t.w?"+":-1==t.w?"-":t.w,n.push({weightSign:r,weight:t.w,facts:i[t.t],concept:t.t})})),n};var Ji=n(12),qi=n.n(Ji);class Xi extends Bi{constructor(){super(".dialog.chart")}_multiplierDescription(e){return{0:"",3:"'000s",6:"millions",9:"billions"}[e]}_chooseMultiplier(e){let t=Math.max(...e.map((e=>Math.abs(Number(e.value()))))),n=0;for(;t>=1e3&&n<9;)t/=1e3,n+=3;return n}dataSetColour(e){return["#66cc00","#0094ff","#fbad17"][e]}addAspect(e){this._analyseDims.push(e),this._showAnalyseDimensionChart()}removeAspect(e){this._analyseDims=this._analyseDims.filter((t=>t!=e)),this._showAnalyseDimensionChart()}analyseDimension(e,t){this._analyseFact=e,this._analyseDims=t,this._showAnalyseDimensionChart()}_showAnalyseDimensionChart(){const e=this._analyseFact,n=this._analyseDims,i=this.node;t()("canvas",i).remove(),t()("<canvas>").appendTo(t()(".chart-container",i)),this.show();const r={};n[0]&&(r[n[0]]=null),n[1]&&(r[n[1]]=null);const o=e.report().deduplicate(e.report().getAlignedFacts(e,r)),a=new Zt,s=new Zt;for(const e of o)n[0]&&a.add(e.aspect(n[0])),n[1]&&s.add(e.aspect(n[1]));const l=a.uniqueValues(),c=s.uniqueValues(),u=this._chooseMultiplier(o),d=e.measureLabel()+" "+this._multiplierDescription(u),h=[],f=[];for(let t=0;t<(n[0]?l.length:1);t++){h.push(n[0]?Nt(l[t].valueLabel("std")||"",40):"");for(let i=0;i<(n[1]?c.length:1);i++){f[i]=f[i]||{label:n[1]?c[i].valueLabel():"",data:[],backgroundColor:this.dataSetColour(i),borderColor:this.dataSetColour(i)};const r={};n[0]&&(r[n[0]]=l[t].value()),n[1]&&(r[n[1]]=c[i].value());const o=e.report().getAlignedFacts(e,r);o.length>0?f[i].data[t]=o[0].value()/10**u:f[i].data[t]=0}}t()(".other-aspects",i).empty();const p=[];for(const r of e.aspects())if("c"!=r.name()){const e=t()("<div>").addClass("other-aspect").appendTo(t()(".other-aspects",i));n.includes(r.name())?e.addClass("selected").text(r.label()+": *").click((()=>this.removeAspect(r.name()))):("u"!=r.name()&&p.push(r.valueLabel()),e.text(r.label()+": "+r.valueLabel()),n.length<2&&e.addClass("addable").click((()=>this.addAspect(r.name()))))}n[1]||(n[0]||(h[0]=p.join(", ")),f[0].label=p.join(", ")),this.setChartSize();const g=t()("canvas",i),m=new(qi())(g,{type:"bar",data:{labels:h,datasets:f},options:{responsive:!0,maintainAspectRatio:!1,scales:{yAxes:[{ticks:{beginAtZero:!0},scaleLabel:{display:!0,labelString:d}}],xAxes:[{ticks:{autoSkip:!1}}]}}});t()(window).resize((()=>{this.setChartSize(),m.resize()}))}setChartSize(){const e=this.node,n=e.height()-t()(".other-aspects",this.node).outerHeight()-16;t()(".chart-container",e).height(n),t()("canvas",e).attr("height",n).height(n)}}var Ki=n(898),$i=n.n(Ki);class er{constructor(e,n){this._elt=e,n=n||{},this.type=n.type||"dropdown",e.find(".menu-title").click((t=>{e.find(".content-container").toggle(),t.stopPropagation()})),t()("html").click((n=>{0===t()(".content",e).find(t()(n.target)).length&&this.close()}))}reset(){this._elt.find(".content").empty()}close(){"dropdown"==this.type&&this._elt.find(".content-container").hide()}_add(e,n){if(void 0!==n){const i=this._elt.find(".content > div").filter((()=>t()(this).data("iv-menu-item-name")===n));if(void 0!==i&&i.length>0)return void i.after(e)}e.appendTo(this._elt.find(".content"))}addDownloadButton(e,n){const i=this,r=t()("<a></a>").addClass("item").attr({href:n}).text(e).click((()=>i.close()));this._add(r)}addCheckboxItem(e,n,i,r,o){const a=this,s=t()("<label></label>").addClass("menu-checkbox").addClass("item").text(e).data("iv-menu-item-name",i).prepend(t()('<input type="checkbox"></input>').prop("checked",o).change((function(){n(t()(this).prop("checked")),a.close()}))).append(t()("<span></span>").addClass("checkmark"));this._add(s,r),o&&n(!0)}addCheckboxGroup(e,n,i,r,o,a){const s=this,l=t()('<div class="group"></div>').data("iv-menu-item-name",o);this._add(l,a);for(const a of e){const e=t()("<label></label>").addClass("menu-checkbox").addClass("item").text(n[a]).prepend(t()('<input type="radio"></input>').attr({name:o,value:a}).change((function(){r(t()(this).val()),s.close()}))).append(t()("<span></span>").addClass("checkmark")).appendTo(l);a===i&&e.find("input").prop("checked",!0)}}}class tr{constructor(e){this._contents=t()('<div class="accordian"></div>'),this.onSelect=t().Callbacks(),this.options=e||{},this.options.onSelect&&this.onSelect.add(e.onSelect)}addCard(e,n,i,r){const o=this,a=t()('<div class="card"></div>').append(t()('<div class="title"></div>').append(e).click((function(){var e=t()(this).closest(".card");e.hasClass("active")?o.options.alwaysOpen||e.removeClass("active"):(e.closest(".accordian").find(".card").removeClass("active"),e.addClass("active"),o.onSelect.fire(e.data("accordian-card-id")))}))).append(t()('<div class="body"></div>').append(n)).appendTo(this._contents);null!==r&&a.data("accordian-card-id",r),i&&a.addClass("active")}contents(){return this.options.alwaysOpen&&0==this._contents.find(".card.active").length&&this._contents.find(".card").first().addClass("active"),this.options.dissolveSingle&&1==this._contents.children().length?this._contents.children().first().find(".body"):this._contents}}class nr{constructor(e){this._items=e}_allDimensions(){const e={},t=this._items.filter((e=>e instanceof Gt));for(const i of t){const t=Object.keys(i.dimensions());for(var n=0;n<t.length;n++)e[t[n]]=!0}return Object.keys(e)}minimallyUniqueLabel(e){if(!this._minimallyUniqueLabels){for(var t=this._items.filter((e=>e instanceof Gt)),n={},i=["c","p"].concat(this._allDimensions()),r=0;r<t.length;r++){var o=t[r];n[o.vuid]=[];for(var a=0;a<i.length;a++){var s=o.aspect(i[a]);n[o.vuid].push(s?s.valueLabel():null)}}var l={};for(a=0;a<i.length;a++){var c={};for(r=0;r<t.length;r++)c[n[t[r].vuid][a]]=!0;var u={};if(Object.keys(c).length>1){for(r=0;r<t.length;r++){var d=n[f=t[r].vuid][a],h=l[f]||[];null!==d&&h.push(d),h.length>0&&(l[f]=h,u[h.join(", ")]=!0)}if(Object.keys(u).length==t.length)break}}if(Object.keys(l).length<t.length)for(r=0;r<t.length;r++){var f=t[r].vuid;(h=l[f]||[]).unshift(n[f][0]),l[f]=h}this._items.filter((e=>e instanceof qt)).forEach((e=>{l[e.vuid]=[e.title]})),this._minimallyUniqueLabels=l}return this._minimallyUniqueLabels[e.vuid].join(", ")}}class ir extends Bi{constructor(){super(".dialog.validation-report"),this.addButton("Dismiss",!0)}displayErrors(e){const n=this.node.find("tbody");n.empty();for(const i of e)t()("<tr></tr>").append(t()("<td></td>").text(i.sev)).append(t()("<td></td>").text(i.code)).append(t()("<td></td>").text(i.msg)).appendTo(n)}}class rr extends Bi{constructor(e){super(".dialog.text-block-viewer"),this.addButton("Dismiss",!0),this.fact=e,this.node.find("#text-block-viewer-plain-text").off("change.dialog").on("change.dialog",(e=>this.displayTextBlock(e.target.checked)))}htmlWrapString(e){return"<!DOCTYPE html><html><head><title></title></head><body>"+e+"</body></html>"}static canRender(e){return e.isTextBlock()&&e.escaped()}textOnly(){return this.node.find("#text-block-viewer-plain-text").prop("checked")}displayTextBlock(){const e=this.node.find("iframe").get(0),t=e.contentDocument||e.contentWindow.document;if(t.open(),this.textOnly()){const e=document.createElement("div");e.append(document.createTextNode(this.fact.readableValue())),t.write(this.htmlWrapString(e.outerHTML))}else t.write(this.htmlWrapString(this.fact.value()));t.close()}}class or{constructor(e){this._reportSet=e,this.outlines=e.reports.map((e=>new ar(e)))}hasOutline(){return this.outlines.some((e=>Object.keys(e.sections).length>0))}sortedSections(){return this.outlines.flatMap((e=>e.sortedSections()))}groupsForFact(e){return this.outlines.find((t=>t.report==e.report)).groupsForFact(e)}}class ar{constructor(e){this.report=e;const t=e.facts().sort(((e,t)=>e.ixNode.docOrderindex-t.ixNode.docOrderindex)),n={},i={},r={},o={};this._buildDimensionMap();const a=e.relationshipGroups("pres");for(const e of t)if(!e.isHidden())for(const t of a)this.factInGroup(e,t)?(t in n||(n[t]=0,i[t]=e),n[t]++):t in n&&((!(t in r)||r[t]<n[t])&&(r[t]=n[t],o[t]=i[t]),delete n[t],delete i[t]);for(const e in n)(!(e in r)||r[e]<n[e])&&(r[e]=n[e],o[e]=i[e]);this.sections=o}factInGroup(e,t){if(0==this.report.getParentRelationshipsInGroup(e.conceptName(),"pres",t).length)return!1;const n=e.dimensions(),i=this.dimensionMap[t];for(const[e,t]of Object.entries(i))if(t.typed){if(!(e in n))return!1}else if(e in n?!(n[e]in t.members):!t.allowDefault)return!1;return!0}_buildDimensionMap(){const e=this.report.relationshipGroups("pres");this.dimensionMap={};for(const t of e){this.dimensionMap[t]={};for(const e of this.report.relationshipGroupRoots("pres",t))this.buildDimensionMapFromSubTree("pres",t,null,e)}}buildDimensionMapFromSubTree(e,t,n,i){const r=this.report.getConcept(i);if(r.isTypedDimension())this.dimensionMap[t][i]={typed:!0};else{r.isExplicitDimension()&&(n=i,this.dimensionMap[t][n]={members:{},allowDefault:!1});var o=this.report.getChildRelationships(i,e);if(t in o)for(var a of o[t])n&&(this.report.dimensionDefault(n)==a.t?this.dimensionMap[t][n].allowDefault=!0:this.dimensionMap[t][n].members[a.t]=!0),this.buildDimensionMapFromSubTree(e,t,n,a.t)}}groupsForFact(e){const t=[];for(const n of this.report.relationshipGroups("pres"))this.factInGroup(e,n)&&t.push({elr:n,fact:this.sections[n],report:this.report});return t}hasOutline(){return Object.keys(this.sections).length>0}sortedSections(){const e=Object.keys(this.sections),t=/\(parenthetical\)\s*$/i;return e.filter((e=>!t.test(this.report.getRoleLabel(e)))).sort(((e,t)=>this.report.getRoleLabel(e).localeCompare(this.report.getRoleLabel(t)))).map((e=>({report:this.report,fact:this.sections[e],elr:e})))}}const sr="dimensions",lr="members",cr="primaryItems",ur="total";class dr{constructor(){this._dimensions=new Set,this._members=new Set,this._primaryItems=new Set}addDimension(e){this._dimensions.add(e)}addMember(e){this._members.add(e)}addPrimaryItem(e){this._primaryItems.add(e)}getCounts(){return{[sr]:this._dimensions.size,[lr]:this._members.size,[cr]:this._primaryItems.size,[ur]:this._dimensions.size+this._members.size+this._primaryItems.size}}}class hr{constructor(){this._documentsByType={inline:new Set,schema:new Set,calcLinkbase:new Set,defLinkbase:new Set,labelLinkbase:new Set,presLinkbase:new Set,refLinkbase:new Set,unrecognizedLinkbase:new Set}}addDocument(e,t){for(const n of t){if(!(n in this._documentsByType))throw new Error(`Document ${e} with unrecognized type ${n}.`);this._documentsByType[n].add(e)}}getDocuments(){const e={};for(const[t,n]of Object.entries(this._documentsByType))e[t]=[...n].sort();return e}}class fr{constructor(e){this._reportSet=e}_getTagCounter(e,t){const n=t.indexOf(":");if(-1===n)throw new Error(`Element ${t} is not a concept.`);const i=t.substring(0,n);return e.has(i)||e.set(i,new dr),e.get(i)}_buildTagCounts(){const e=new Map;for(const t of this._reportSet.facts()){let n=this._getTagCounter(e,t.conceptName());n.addPrimaryItem(t.conceptName());for(const[i,r]of Object.entries(t.dimensions())){n=this._getTagCounter(e,i),n.addDimension(i);const o=t.report.getConcept(i);if(o.isTypedDimension()){const t=o.typedDomainElement();t&&(n=this._getTagCounter(e,t),n.addMember(t))}else n=this._getTagCounter(e,r),n.addMember(r)}}this._tagCounts=new Map([...e].map((([e,t])=>[e,t.getCounts()])))}_buildLocalFileSummary(){this._localFileSummary=new hr;for(const[e,t]of this._reportSet.reports.flatMap((e=>Object.entries(e.localDocuments()))))this._localFileSummary.addDocument(e,t)}totalFacts(){return void 0===this._totalFacts&&(this._totalFacts=this._reportSet.facts().length),this._totalFacts}tagCounts(){return void 0===this._tagCounts&&this._buildTagCounts(),this._tagCounts}getLocalDocuments(){return void 0===this._localFileSummary&&this._buildLocalFileSummary(),this._localFileSummary.getDocuments()}}class pr{constructor(e){this._iv=e,this._viewerOptions=new $t,this._currentItem=null}i18nInit(){return V.init({lng:this.preferredLanguages()[0],returnEmptyString:!1,fallbackLng:"en",debug:!1,resources:{en:{translation:n(583),referenceParts:n(713),currencies:n(215)},es:{translation:n(524),referenceParts:n(494),currencies:n(362)}}}).then((e=>{$i().init(V,t(),{tName:"t",i18nName:"i18n",handleName:"localize",selectorAttr:"data-i18n",targetAttr:"i18n-target",useOptionsAttr:!1,parseDefaultValueFromContent:!0})}))}initialize(e,n){const i=this;return this._viewer=n,new Promise((function(n,r){i._chart=new Xi,i._reportSet=e,i.i18nInit().then((r=>{t()(".collapsible-header").on("click",(function(){const e=t()(this).closest(".collapsible-section");e.toggleClass("collapsed"),e.hasClass("collapsed")?e.find(".collapsible-body").slideUp(250):(e.find(".collapsible-body").slideDown(250),e.hasClass("collapsible-only")&&e.siblings(".collapsible-section:not(.collapsed)").each((function(){const e=t()(this);e.addClass("collapsed"),e.find(".collapsible-body").slideUp(250)})))})),t()("#inspector .controls .search-button").on("click",(function(){t()(this).closest("#inspector").removeClass(["summary-mode","outline-mode"]).toggleClass("search-mode")})),t()("#inspector .controls .summary-button").on("click",(function(){t()(this).closest("#inspector").removeClass(["outline-mode","search-mode"]).toggleClass("summary-mode")})),t()("#inspector .controls .outline-button").on("click",(function(){t()(this).closest("#inspector").removeClass(["summary-mode","search-mode"]).toggleClass("outline-mode")})),t()("#inspector-head .back").on("click",(function(){t()(this).closest("#inspector").removeClass(["summary-mode","outline-mode","search-mode"])})),t()(".popup-trigger").hover((function(){t()(this).find(".popup-content").show()}),(function(){t()(this).find(".popup-content").hide()})),t()("#inspector").on("click",".clipboard-copy",(function(){navigator.clipboard.writeText(t()(this).data("cb-text"))})),i._toolbarMenu=new er(t()("#toolbar-highlight-menu")),i.buildToolbarHighlightMenu(),i._optionsMenu=new er(t()("#display-options-menu")),i.buildDisplayOptionsMenu(),t()("#ixv").localize(),t()(window).on("message",(e=>i.handleMessage(e))),e.viewerOptions=i._viewerOptions,i.summary=new fr(e),i.createSummary(),i.outline=new or(e),i.createOutline(),i._iv.setProgress(V.t("inspector.initializing")).then((()=>{i._search=new Gi(e),i.buildDisplayOptionsMenu(),i.buildToolbarHighlightMenu(),i.buildHighlightKey(),i.setupValidationReportIcon(),i.initializeViewer(),n()}))}))}))}initializeViewer(){this._viewer.onSelect.add(((e,t,n)=>this.selectItem(e,t,n))),this._viewer.onMouseEnter.add((e=>this.viewerMouseEnter(e))),this._viewer.onMouseLeave.add((e=>this.viewerMouseLeave(e))),t()(".ixbrl-next-tag").click((()=>this._viewer.selectNextTag(this._currentItem))),t()(".ixbrl-prev-tag").click((()=>this._viewer.selectPrevTag(this._currentItem)))}postLoadAsync(){zt(this._search.buildSearchIndex((()=>this.searchReady())))}handleFactDeepLink(){const e=location.hash.match(/^#f([0-9]+)?-(.*)$/);if(null!==e){const t=Bt(e[1]??0,e[2]);void 0!==this._reportSet.getItemById(t)&&this.selectItem(t)}}handleMessage(e){const t=e.originalEvent.data;let n;try{n=JSON.parse(t)}catch(e){return}"SHOW_FACT"==n.task?this.selectItem(n.factId):console.log("Not handling unsupported task message: "+t)}updateURLFragment(){this._currentItem?location.hash="#f"+this._currentItem.vuid.replace(/^0-/,"-"):location.hash=""}buildDisplayOptionsMenu(){if(this._optionsMenu.reset(),this._reportSet){const e=this.selectDefaultLanguage();this._optionsMenu.addCheckboxGroup(this._reportSet.availableLanguages(),this._reportSet.languageNames(),e,(e=>{this.setLanguage(e),this.update()}),"select-language"),this.setLanguage(e),this._reportSet.filingDocuments()&&this._optionsMenu.addDownloadButton("Download filing documents",this._reportSet.filingDocuments())}this._iv.callPluginMethod("extendDisplayOptionsMenu",this._optionsMenu)}buildToolbarHighlightMenu(){const e=this._iv;this._toolbarMenu.reset(),this._toolbarMenu.addCheckboxItem(V.t("toolbar.xbrlElements"),(e=>this.highlightAllTags(e)),"highlight-tags",null,this._iv.options.highlightTagsOnStartup),e.isReviewModeEnabled()&&(this._toolbarMenu.addCheckboxItem("Untagged Numbers",(function(t){const n=e.viewer.contents().find("body");t?n.addClass("review-highlight-untagged-numbers"):n.removeClass("review-highlight-untagged-numbers")}),"highlight-untagged-numbers","highlight-tags"),this._toolbarMenu.addCheckboxItem("Untagged Dates",(function(t){const n=e.viewer.contents().find("body");t?n.addClass("review-highlight-untagged-dates"):n.removeClass("review-highlight-untagged-dates")}),"highlight-untagged-dates","highlight-untagged-numbers")),this._iv.callPluginMethod("extendToolbarHighlightMenu",this._toolbarMenu)}buildHighlightKey(){let e;t()(".highlight-key .items").empty(),e=this._iv.isReviewModeEnabled()?["XBRL Elements","Untagged Numbers","Untagged Dates"]:this._reportSet.namespaceGroups(),this._iv.callPluginMethod("extendHighlightKey",e);for(const[n,i]of e.entries())t()("<div>").addClass("item").append(t()("<span></span>").addClass("sample").addClass("sample-"+n)).append(t()("<span></span>").text(i)).appendTo(t()(".highlight-key .items"))}highlightAllTags(e){this._viewer.highlightAllTags(e,this._reportSet.namespaceGroups())}factListRow(e){const n=t()('<div class="fact-list-item"></div>').click((()=>this.selectItem(e.vuid))).dblclick((()=>t()("#inspector").removeClass("search-mode"))).mousedown((e=>{e.detail>1&&e.preventDefault()})).mouseenter((()=>this._viewer.linkedHighlightFact(e))).mouseleave((()=>this._viewer.clearLinkedHighlightFact(e))).data("ivid",e.vuid);t()('<div class="select-icon"></div>').click((()=>{this.selectItem(e.vuid),t()("#inspector").removeClass("search-mode")})).appendTo(n),t()('<div class="title"></div>').text(e.getLabelOrName("std")).appendTo(n),t()('<div class="dimension"></div>').text(e.period().toString()).appendTo(n);for(const i of e.aspects())i.isTaxonomyDefined()&&!i.isNil()&&t()('<div class="dimension"></div>').text(i.valueLabel()).appendTo(n);return e.isHidden()?t()('<div class="hidden"></div>').text(V.t("search.hiddenFact")).appendTo(n):e.isHTMLHidden()&&t()('<div class="hidden"></div>').text(V.t("search.concealedFact")).appendTo(n),n}addResults(e,n,i){t()(".more-results",e).remove();for(var r=i;r<n.length;r++){if(r-i>=100){t()('<div class="more-results"></div>').text(V.t("search.showMoreResults")).on("click",(()=>this.addResults(e,n,r))).appendTo(e);break}this.factListRow(n[r].fact).appendTo(e)}}searchSpec(){const e={};return e.searchString=t()("#ixbrl-search").val(),e.showVisibleFacts=t()("#search-visible-fact-filter").prop("checked"),e.showHiddenFacts=t()("#search-hidden-fact-filter").prop("checked"),e.namespacesFilter=t()("#search-filter-namespaces select").val(),e.unitsFilter=t()("#search-filter-units select").val(),e.scalesFilter=t()("#search-filter-scales select").val(),e.periodFilter=t()("#search-filter-period select").val(),e.conceptTypeFilter=t()("#search-filter-concept-type").val(),e.factValueFilter=t()("#search-filter-fact-value").val(),e.calculationsFilter=t()("#search-filter-calculations select").val(),e.dimensionTypeFilter=t()("#search-filter-dimension-type select").val(),e}setupSearchControls(e){const n=this;t()(".search-controls input, .search-controls select").change((()=>this.search())),t()(".search-controls div.filter-toggle").click((()=>t()(".search-controls").toggleClass("show-filters"))),t()(".search-controls .search-filters .reset").click((()=>this.resetSearchFilters())),t()(".search-controls .search-filters .reset-multiselect").on("click",(function(){t()(this).siblings().children("select option:selected").prop("selected",!1),n.search()}));for(const e of Object.keys(this._search.periods))t()("<option>").attr("value",e).text(this._search.periods[e]).appendTo("#search-filter-period select");for(const e of this._reportSet.getUsedConceptPrefixes())t()("<option>").attr("value",e).text(`${e} (${this._reportSet.prefixMap()[e]})`).appendTo("#search-filter-namespaces select");for(const e of this._reportSet.getUsedUnits())t()("<option>").attr("value",e).text(`${this._reportSet.getUnit(e)?.label()} (${e})`).appendTo("#search-filter-units select");const i=this._getScalesOptions();for(const e of Object.keys(i).sort())t()("<option>").attr("value",e).text(i[e]).appendTo("#search-filter-scales select")}_getScalesOptions(){const e={},t=this._reportSet.getUsedScalesMap();return Object.keys(t).sort().forEach((n=>{const i=Array.from(t[n]).sort();i.length>0?e[n]=i.join(", "):e[n]=n.toString()})),e}resetSearchFilters(){t()("#search-filter-period select option:selected").prop("selected",!1),t()("#search-filter-concept-type").val("*"),t()("#search-filter-fact-value").val("*"),t()("#search-filter-calculations select option:selected").prop("selected",!1),t()("#search-filter-dimension-type select option:selected").prop("selected",!1),t()("#search-hidden-fact-filter").prop("checked",!0),t()("#search-visible-fact-filter").prop("checked",!0),t()("#search-filter-namespaces select option:selected").prop("selected",!1),t()("#search-filter-units select option:selected").prop("selected",!1),t()("#search-filter-scales select option:selected").prop("selected",!1),this.search()}searchReady(){this.setupSearchControls(),t()("#inspector").addClass("search-ready"),t()("#ixbrl-search").prop("disabled",!1),this.search()}search(){const e=this.searchSpec(),n=this._search.search(e);if(void 0===n)return;const i=t()("#inspector .search-results .results");t()("div",i).remove(),this._viewer.clearRelatedHighlighting();const r=t()("#inspector .search-results .search-overlay");n.length>0?(r.hide(),this.addResults(i,n,0)):(t()(".title",r).text(V.t("search.noMatchFound")),t()(".text",r).text(V.t("search.tryAgainDifferentKeywords")),r.show()),t()("#matching-concepts-count").text(n.length),""!=e.searchString&&this._viewer.highlightRelatedFacts(n.map((e=>e.fact))),this.updateMultiSelectSubheader("search-filter-scales"),this.updateMultiSelectSubheader("search-filter-units"),this.updateMultiSelectSubheader("search-filter-namespaces"),this.updateMultiSelectSubheader("search-filter-dimension-type"),this.updateMultiSelectSubheader("search-filter-calculations"),this.updateMultiSelectSubheader("search-filter-period")}updateMultiSelectSubheader(e){const n=t()(`#${e} .collapsible-subheader`),i=t()(`#${e} select option:selected`);if(1===i.length)n.text(` ${i.text()}`);else if(i.length>0){const r=t()(`#${e} select option`).length;n.text(` (${i.length}/${r} ${V.t("search.selected")})`)}else n.empty()}updateCalculation(e,n){t()(".calculations .tree").empty().append(this._calculationHTML(e,n))}createSummary(){const e=t()("#inspector .summary .body");this._populateFactSummary(e),this._populateTagSummary(e),this._populateFileSummary(e)}_populateFactSummary(e){const n=this.summary.totalFacts();t()("<span></span>").text(n).appendTo(e.find(".total-facts-value"))}_populateTagSummary(e){const n=e.find(".tag-summary-table-body"),i=this.summary.tagCounts();let r=0,o=0,a=0,s=0;for(const e of i.values())r+=e[cr],o+=e[sr],a+=e[lr],s+=e[ur];function l(e,n,i){let r=0;i>0&&(r=n/i);let o=r.toLocaleString(void 0,{style:"percent"});o=` (${o})`,t()("<td></td>").text(n).addClass("figure").append(t()("<sup></sup>").text(o)).appendTo(e)}const c=[...i.entries()].sort(((e,t)=>e[0].localeCompare(t[0])));for(const[e,i]of c){const c=t()("<tr></tr>").appendTo(n);c.append(t()("<th></th>").attr("scope","row").text(e)),l(c,i[cr],r),l(c,i[sr],o),l(c,i[lr],a),l(c,i[ur],s)}const u=e.find(".tag-summary-table-footer-row");l(u,r,r),l(u,o,o),l(u,a,a),l(u,s,s)}_populateFileSummary(e){const{inline:n,schema:i,calcLinkbase:r,defLinkbase:o,labelLinkbase:a,presLinkbase:s,refLinkbase:l,unrecognizedLinkbase:c}=this.summary.getLocalDocuments(),u=e.find(".files-summary");let d=0;function h(e,n){if(0===e.length)u.find(n).hide();else{const i=u.find(n+" ul");d+=1;for(const n of e)i.append(t()("<li></li>").text(n))}}h(n,".inline-docs"),h(i,".schemas"),h(s,".pres-links"),h(r,".calc-links"),h(o,".def-links"),h(a,".label-links"),h(l,".ref-links"),h(c,".other-links"),0==d&&u.hide()}createOutline(){if(this.outline.hasOutline()){t()(".outline .no-outline-overlay").hide();const e=t()('<div class="fact-list"></div>').appendTo(t()(".outline .body"));for(const n of this.outline.sortedSections())t()('<div class="fact-list-item"></div>').text(n.report.getRoleLabel(n.elr)).click((()=>this.selectItem(n.fact.vuid))).dblclick((()=>t()("#inspector").removeClass("outline-mode"))).mousedown((e=>{e.detail>1&&e.preventDefault()})).appendTo(e)}}updateOutline(e){t()(".fact-groups").empty();for(const n of this.outline.groupsForFact(e))t()('<div class="fact-list-item"></div>').text(e.report.getRoleLabel(n.elr)).click((()=>this.selectItem(n.fact.vuid))).appendTo(t()(".fact-groups"))}updateFootnotes(e){t()(".footnotes").empty().append(this._footnotesHTML(e)),e.linkedFacts.length>0?t()("#inspector .footnote-facts-section").show().find(".footnote-facts").empty().append(this._footnoteFactsHTML(e)):t()("#inspector .footnote-facts-section").hide()}_anchorList(e,n){const i=t()("<ul></ul>");if(n.length>0)for(const r of n){const n=e.report.getAlignedFacts(e,{c:r}),o=e.report.getLabel(r,"std",!0);t()("<li></li>").appendTo(i).append(this.factLinkHTML(o,n))}else t()("<li></li>").append(t()("<i></i>").text(V.t("common.none"))).appendTo(i);return i}updateAnchoring(e){this._reportSet.usesAnchoring()?(t()(".anchoring").show(),t()(".anchoring .collapsible-body .anchors-wider").empty().append(this._anchorList(e,e.widerConcepts())),t()(".anchoring .collapsible-body .anchors-narrower").empty().append(this._anchorList(e,e.narrowerConcepts()))):t()(".anchoring").hide()}_referencesHTML(e){e.concept();const n=new tr;for(const[i,r]of e.concept().references().entries()){const e=t()("<span></span>").text(r[0].value),o=t()('<table class="fact-properties"><tbody></tbody></table>'),a=o.find("tbody");for(const e of r){const n=t()("<tr>").append(t()("<th></th>").text(V.t(`referenceParts:${e.part}`,{defaultValue:e.part}))).append(t()("<td></td>").text(e.value)).appendTo(a);"URI"==e.part&&(n.addClass("uri"),n.find("td").wrapInner(t()("<a>").attr("href",e.value)))}n.addCard(e,o,0==i)}return n.contents()}_calculationHTML(e,n){const i=new Qi(e);if(!i.hasCalculations())return"";const r=this._viewer.factsInSameTable(e);n||(n=i.bestELRForFactSet(r));const o=e.report,a=this,s=new tr;for(const[r,l]of Object.entries(i.elrs())){const c=o.getRoleLabel(l),u=i.resolvedCalculation(r),d=t()("<div></div>");for(const[e,n]of u.entries()){const e=t()("<div></div>").addClass("item").append(t()("<span></span>").addClass("weight").text(n.weightSign+" ")).append(t()("<span></span>").addClass("concept-name").text(o.getLabelOrName(n.concept,"std"))).appendTo(d);n.facts&&(e.addClass("calc-fact-link"),e.data("ivids",Object.keys(n.facts)),e.click((()=>a.selectItem(Object.values(n.facts)[0].vuid))),e.mouseenter((()=>Object.values(n.facts).forEach((e=>this._viewer.linkedHighlightFact(e))))),e.mouseleave((()=>Object.values(n.facts).forEach((e=>this._viewer.clearLinkedHighlightFact(e))))),Object.values(n.facts).forEach((e=>this._viewer.highlightRelatedFact(e))))}t()("<div></div>").addClass("item").addClass("total").append(t()("<span></span>").addClass("weight")).append(t()("<span></span>").addClass("concept-name").text(e.getLabelOrName("std"))).appendTo(d),s.addCard(t()("<span></span>").text(c),d,r==n)}return s.contents()}_footnotesHTML(e){const n=t()("<div></div>").addClass("fact-list");for(const i of e.footnotes())i instanceof qt?t()("<div></div>").addClass("block-list-item").text(Et(i.textContent(),120)).mouseenter((()=>this._viewer.linkedHighlightFact(i))).mouseleave((()=>this._viewer.clearLinkedHighlightFact(i))).click((()=>this.selectItem(i.vuid))).appendTo(n):i instanceof Gt&&n.append(this.factListRow(i));return n}viewerMouseEnter(e){t()(".calculations .item").filter(((n,i)=>(t()(i).data("ivids")??[]).includes(e))).addClass("linked-highlight"),t()("#inspector .search .results tr").filter(((n,i)=>t()(i).data("ivid")==e)).addClass("linked-highlight")}viewerMouseLeave(e){t()(".calculations .item").removeClass("linked-highlight"),t()("#inspector .search .results tr").removeClass("linked-highlight")}describeChange(e,t){if(t.value()>0==e.value()>0&&Math.abs(e.value())+Math.abs(t.value())>0){const n=100*(t.value()-e.value())/e.value();let i=0;return i=n>=0?V.t("factDetails.changePercentageIncrease",{increase:jt(n,1)}):V.t("factDetails.changePercentageDecrease",{decrease:jt(-1*n,1)}),i}return V.t("factDetails.changeFromIn",{from:e.readableValue()})}factLinkHTML(e,n){const i=t()("<span></span>").text(e);return n.length>0&&i.addClass("fact-link").click((()=>this.selectItem(n[0].vuid))).mouseenter((()=>n.forEach((e=>this._viewer.linkedHighlightFact(e))))).mouseleave((()=>n.forEach((e=>this._viewer.clearLinkedHighlightFact(e))))),i}getPeriodIncrease(e){let n="";if(e.isNumeric()){const r=e.report.getAlignedFacts(e,{p:null});var i;if(e.periodTo())for(const t of r)t.periodTo()&&t.periodTo()<e.periodTo()&&(!i||t.periodTo()>i.periodTo())&&e.isEquivalentDuration(t)&&(i=t);if(i){const r=e.report.getAlignedFacts(i);n=t()("<span></span>").text(this.describeChange(i,e)).append(this.factLinkHTML(i.periodString(),r))}else n=t()("<i>").text(V.t("factDetails.noPriorFactInThisReport"))}else n=t()("<i>").text("n/a").attr("title","non-numeric fact");t()(".fact-properties tr.change td").html(n)}_updateValue(e,n,i){const r=e.readableValue(),o=t()("tr.value",i);let a=r;if(n)o.removeClass("truncated");else{const t=Nt(r,120);t.length>1?(o.addClass("truncated"),o.find(".show-all").off("click").on("click",(()=>this._updateValue(e,!0,i)))):o.removeClass("truncated"),a=t[0]}rr.canRender(e)?o.addClass("text-block").find(".expand-text-block").off().click((()=>this.showTextBlock(e))):o.removeClass("text-block");const s=o.find("td .value").empty().text(a);e instanceof Gt&&(e.isNil()||e.isInvalidIXValue())&&s.wrapInner("<i></i>")}showTextBlock(e){const t=new rr(e);t.displayTextBlock(),t.show()}_updateEntityIdentifier(e,n){t()("tr.entity-identifier td",n).empty().append(Ut.readableNameHTML(e.identifier()))}_footnoteFactsHTML(e){const n=t()("<div></div>");return e.linkedFacts.forEach((e=>{n.append(this.factListRow(e))})),n}_selectionSummaryAccordian(){const e=this._currentItem,i=new tr({onSelect:e=>this.switchItem(e),alwaysOpen:!0,dissolveSingle:!0}),r=new nr(this._currentItemList);for(const o of this._currentItemList){let a;const s=r.minimallyUniqueLabel(o);if(o instanceof Gt){a=t()(n(795)),t()(".std-label",a).text(o.getLabelOrName("std",!0)),t()(".documentation",a).text(o.getLabel("doc")||""),t()("tr.concept td",a).find(".text").text(o.conceptName()).attr("title",o.conceptName()).end().find(".clipboard-copy").data("cb-text",o.conceptName()).end(),t()("tr.period td",a).text(o.periodString()),o.isNumeric()&&t()("tr.period td",a).append(t()("<span></span>").addClass("analyse").text("").click((()=>this.analyseDimension(o,["p"])))),this._updateEntityIdentifier(o,a),this._updateValue(o,!1,a);const e=t()("tr.accuracy td",a).empty().append(o.readableAccuracy());o.isNumeric()&&!o.isNil()||e.wrapInner("<i></i>");const i=t()("tr.scale td",a).empty().append(o.readableScale());o.isNumeric()&&!o.isNil()||i.wrapInner("<i></i>"),t()("#dimensions",a).empty();const r=o.aspects().filter((e=>e.isTaxonomyDefined()));0===r.length&&t()("#dimensions-label",a).hide();for(const e of r){const n=t()('<div class="dimension"></div>').text(e.label()||e.name()).appendTo(t()("#dimensions",a));o.isNumeric()&&n.append(t()("<span></span>").addClass("analyse").text("").on("click",(()=>this.analyseDimension(o,[e.name()]))));const i=t()('<div class="dimension-value"></div>').text(e.valueLabel()).appendTo(n);e.isNil()&&i.wrapInner("<i></i>")}}else o instanceof qt&&(a=t()(n(775)),this._updateValue(o,!1,a));i.addCard(s,a,o.vuid==e.vuid,o.vuid)}return i}analyseDimension(e,t){(new Xi).analyseDimension(e,t)}update(){const e=this._currentItem;if(e){if(t()("#inspector").removeClass("no-fact-selected").removeClass("hidden-fact").removeClass("html-hidden-fact"),t()("#inspector .fact-inspector").empty().append(this._selectionSummaryAccordian().contents()),e instanceof Gt){t()("#inspector").removeClass("footnote-mode"),this.updateCalculation(e),this.updateOutline(e),this.updateFootnotes(e),this.updateAnchoring(e),t()("div.references").empty().append(this._referencesHTML(e)),t()("#inspector .search-results .fact-list-item").removeClass("selected"),t()("#inspector .search-results .fact-list-item").filter(((n,i)=>t()(i).data("ivid")==e.vuid)).addClass("selected");const i=e.duplicates();let r=0;const o=i.length;for(var n=0;n<o;n++)e.vuid==i[n].vuid&&(r=n);t()(".duplicates .text").text(V.t("factDetails.duplicatesCount",{current:r+1,total:o})),t()(".duplicates .prev").off().click((()=>this.selectItem(i[(r+o-1)%o].vuid))),t()(".duplicates .next").off().click((()=>this.selectItem(i[(r+1)%o].vuid))),this.getPeriodIncrease(e),e.isHidden()?t()("#inspector").addClass("hidden-fact"):e.isHTMLHidden()&&t()("#inspector").addClass("html-hidden-fact")}else e instanceof qt&&(t()("#inspector").addClass("footnote-mode"),t()("#inspector .footnote-details .footnote-facts").empty().append(this._footnoteFactsHTML(e)));t()(".fact-details").localize()}else t()("#inspector").removeClass("footnote-mode"),t()("#inspector").addClass("no-fact-selected");this.updateURLFragment()}selectItem(e,t,n){if(void 0===t)this._currentItemList=[this._reportSet.getItemById(e)];else{this._currentItemList=[];for(const e of t)this._currentItemList.push(this._reportSet.getItemById(e))}this.switchItem(e,n)}switchItem(e,t){null!==e?(this._currentItem=this._reportSet.getItemById(e),t||this._viewer.showItemById(e),this._viewer.highlightItem(e)):(this._currentItem=null,this._viewer.clearHighlighting()),this.update()}preferredLanguages(){const e=new URLSearchParams(window.location.search);if(e.has("lang"))return[e.get("lang")];const t=window.navigator.languages||[window.navigator.language||window.navigator.userLanguage];return 0!=t.length&&t[0]?t:["en"]}selectDefaultLanguage(){const e=this._reportSet.availableLanguages();for(const t of this.preferredLanguages())for(const n of e)if(n.toLowerCase()==t.toLowerCase())return n;return this._reportSet.availableLanguages()[0]}setLanguage(e){this._viewerOptions.language=e}showValidationReport(){const e=new ir;e.displayErrors(this._reportSet.validation()),e.show()}setupValidationReportIcon(){this._reportSet.hasValidationErrors()&&t()("#ixv .validation-warning").show().on("click",(()=>this.showValidationReport()))}showValidationWarning(){if(this._reportSet.hasValidationErrors()){const e=t()("<div></div>").append("<p>This report contains <b>XBRL validation errors</b>. These errors may prevent this document from opening correctly in other XBRL software.</p>");new Wi("Validation errors",e,"View Details","Dismiss").show((()=>this.showValidationReport()))}}}class gr{constructor(e){this._features=new Set,this._plugins=[],this.inspector=new pr(this),this.viewer=null,e=e||{},this.options={continuationElementLimit:1e4,showValidationWarningOnStart:!1,...e}}registerPlugin(e){this._plugins.push(e)}callPluginMethod(e,...t){for(const n of this._plugins)"function"==typeof n[e]&&n[e](...t)}pluginPromise(e,...t){return new Promise(((n,i)=>{(async()=>{for(const n of this._plugins)"function"==typeof n[e]&&await n[e](...t)})().then((()=>{n()}))}))}setFeatures(e,t){const n={};e.forEach((e=>{n[e]=!0})),new URLSearchParams(t).forEach(((e,t)=>{!1!==n[t]&&(n[t]="false"!==e)})),this._features.size>0&&(this._features=new Set);for(const[e,t]of Object.entries(n))t&&this._features.add(e)}isFeatureEnabled(e){return this._features.has(e)}isReviewModeEnabled(){return this.isFeatureEnabled("review")}isViewerEnabled(){return"false"===(new URLSearchParams(window.location.search).get("disable-viewer")??"false")}_loadInspectorHTML(){t()(n(845)).prependTo("body");const e=n(610).toString();t()('<style id="ixv-style"></style>').prop("type","text/css").text(e).appendTo("head"),t()('<link id="ixv-favicon" type="image/x-icon" rel="shortcut icon" />').attr("href",n(688)).appendTo("head");try{t()(".inspector-foot .version").text("1.4.6")}catch(e){}}_reparentDocument(){const e=t()("#ixv #iframe-container"),n=t()('<iframe title="iXBRL document view"/>').data("report-index",0).appendTo(e)[0],i=n.contentDocument||n.contentWindow.document;i.open(),i.write("<!DOCTYPE html><html><head><title></title></head><body></body></html>"),i.close();let r=t()("title").text();r=""!=r?"Inline Viewer - "+r:"Inline Viewer",void 0===t()("html").attr("lang")&&t()("html").attr("lang","en-US"),t()("head").children().not("script").not("style#ixv-style").not("link#ixv-favicon").appendTo(t()(n).contents().find("head")),t()("<title>").text(r).appendTo(t()("head")),t()("body script").appendTo(t()("body"));const o=t()(n).contents().find("body");t()("body").children().not("script").not("#ixv").not(e).appendTo(o);for(const e of[...t()("body").prop("attributes")])o.attr(e.name,e.value),t()("body").removeAttr(e.name);return t()("body").removeAttr("style"),n}_getTaxonomyData(){for(let e=document.body.children.length-1;e>=0;e--){const t=document.body.children[e];if("SCRIPT"==t.tagName.toUpperCase()&&"application/x.ixbrl-viewer+json"==t.getAttribute("type"))return t.innerHTML}return null}_checkDocumentSetBrowserSupport(){"file:"==document.location.protocol&&alert("Displaying iXBRL document sets from local files is not supported. Please view the viewer files using a web server.")}load(){const e=this,n=this.inspector;setTimeout((function(){const i=t()("body").hasClass("ixv-stub-viewer");if(!e.isViewerEnabled()&&!i)return;e._loadInspectorHTML();let o=t()();const a=e._getTaxonomyData(),s=a&&JSON.parse(a);e.setFeatures(s&&s.features||[],window.location.search);const l=new en(s);if(!e.isViewerEnabled())return void window.location.replace(l.reportFiles()[0].file);if(null===s)return t()("#ixv .loader .text").text("Error: Could not find viewer data"),void t()("#ixv .loader").removeClass("loading");i||(o=t()(e._reparentDocument()));const c=l.reportFiles();let u=!1;for(let e=i?0:1;e<c.length;e++){const n=t()("<iframe />").attr("src",c[e].file).data("report-index",c[e].index).appendTo("#ixv #iframe-container");o=o.add(n),u=!0}u&&e._checkDocumentSetBrowserSupport();const d=i?"Loading iXBRL Report":"Loading iXBRL Viewer";e.setProgress(d).then((()=>{let i=setInterval((function(){let a=!0;if(o.each((function(e){const n=this,i=n.contentDocument||n.contentWindow.document;("complete"!=i.readyState&&"interactive"!=i.readyState||0==t()(n).contents().find("body").children().length)&&(a=!1)})),a){clearInterval(i);const a=e.viewer=new Hi(e,o,l);a.initialize().then((()=>n.initialize(l,a))).then((()=>{r()("#viewer-pane").resizable({edges:{left:!1,right:".resize",bottom:!1,top:!1},restrictEdges:{outer:"parent",endOnly:!0},restrictSize:{min:{width:100}}}).on("resizestart",(()=>t()("#ixv").css("pointer-events","none"))).on("resizemove",(e=>{const n=e.target,i=100*e.rect.width/t()(n).parent().width();n.style.width=i+"%",t()("#inspector").css("width",100-i+"%")})).on("resizeend",(e=>t()("#ixv").css("pointer-events","auto"))),t()("#ixv .loader").remove(),n.handleFactDeepLink(),e.options.showValidationWarningOnStart&&n.showValidationWarning(),a.postLoadAsync(),n.postLoadAsync()})).catch((e=>{if(!(e instanceof Yi))throw e;t()("#ixv .loader").remove(),t()("#inspector").addClass("failed-to-load")}))}}),250)}))}),0)}setProgress(e){return new Promise(((n,i)=>{window.requestAnimationFrame((function(){console.log(`%c [Progress] ${e} `,"background: #77d1c8; color: black;"),t()("#ixv .loader .text").text(e),window.requestAnimationFrame((()=>n()))}))}))}}t()((()=>{new gr({showValidationWarningOnStart:!0}).load()}))})()})();
2
+ (()=>{var e={946:e=>{e.exports="data:font/woff;charset=utf-8;base64,d09GRgABAAAAAA30AAsAAAAAGbAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAWUAAAKGN+Y6JU9TLzIAAAJwAAAAQQAAAGBW70vrY21hcAAAArQAAAF5AAAENlFx34VnbHlmAAAEMAAABs4AAAx4HLe8vmhlYWQAAAsAAAAAKQAAADZjKUSdaGhlYQAACywAAAAZAAAAJAgLBEVobXR4AAALSAAAABkAAADAWMgAAGxvY2EAAAtkAAAAOQAAAGJvxGzObWF4cAAAC6AAAAAfAAAAIAFDAJhuYW1lAAALwAAAATAAAAI6/H8bLXBvc3QAAAzwAAABAQAAAX0ZqMrweJxlUEtSwlAQ7BcDhBgQFQ1IEkKMSST4OYErixVLDyAryyrKhUV5AlcewJN4BI7gYVzaM5AqlLyqvDfTPT09AwPAxS3uYN1PZw9oL+bLF5zBxvoTfPttFs9PczhVRMzW24GxYniIMMMjlljh27yad/NlVubHcmGhjoA8Fz2ePjsMGMsdEnO2shGGqnuABt8ZUuTkJJo7Zc4nM9RcgT1Wjul9Hx1mSrJCxjmVQipJXOKS/x77NncYHqvXDlLevvqzqVQjX/QzdutggiknesMHPom0MKLGubqVHsIsmMvoxfuHVfPZO0jK6II1dfr6i8j0DXqVqYf03td5Azqtqcsx2U326rOruG1RIyeS6ZSyj4hIl7oJrpkdUEPqYtzghPxcXy6Z/kahrfP67DbS+h6rurr7kke6X+GIXRJ9x2QdayQzxOSKhquZateSOVQnCf1mm20bbsHXjQTsFev8BfESk18PqShXAAAAeJxjYGG8xTiBgZWBgWka0xkGBoZ+CM34msGIkQMoysDKzIAVBKS5pjAcYIh/JckC4sawxDAoAGlGFEUCAG2fCnQAAAB4nLXTWVLbQBSF4V+2MWDMbGzLeJ7wAKaKB7ZDkRGKzIEE9sKC8pSFaBPkXN27gLzQrk+3+5RaLVergTWgKKdSguQvCdb+KE3yvEglz0s8a1xhg4J+V9zylKUvL8quuOYuS/K+t0T3VWhxqf4xDeb0aTNkwowBJ5wzZkmHlJ5WaLJgSpeRZqw40+yCVi3p3cqsa71NPWuLKtvsqLfLHvsccEhNoxpH1LVgmddu+h/zfns4mQ30/uNlJ+2dNhfT7qi1Onv1tf+vVe1SuInRBbYz7liuQ0PehLm8DX15F9ryPgzlQ5jIxzCTmzCQ23Aid+FcPoWxfA5L+RI68jWk8i305Huwr/NHaMrPsJD7MJWH0JVfYSS/Q0sew0qegnYwS5x99VnBYbXo7JRkJWcnJVtzdoKyssPqusPqhsPqpsNqxdnJyrYcVqvOdjLbdljdcVjddfncPYdl+w7LDhyWHTosqzksO3JYVnf5Mxsuz5sOuzd11P8B3PRe+gAAAHiczVZNjNvGFZ43Q5GilpREUaIsLSyJpEUqkqvdlURxnTXWXG/qdLVG7QRIvf0x4tQNkvawcNot0Jt5CQKktwY+FMnBKFCg6B6aHnwoUKCqm4vVAHEPbQ4pEF+LnppbgBXdN7NaeV1k0d4aiTNvZjjfzJv3vnmPBAj+6ISNiUwILEDf6Bt08ujROIJxEkNMScJnkJPn0QjiJE4IfTKPafQ3RMeO7w2GvTqEw55VVGjmc7WwqH74oVo1VYg/VxcLvIND8/V/x6jACUAOylZRdnx4+9hUSo4tMse9PcMpsuMNLhxuW6b/FYd6xgInNlo6hIdP9EQ0/Q89ZYEboR0YUcgCsUmHbBDStIP533S74MiK68glo2j17d4wMAYeK8qu7XiBwecMhmvQBRQ9q1SUlT4KOkm4yWelcXNhZ29n4WZrdbVFCdZpU0+IbtJoOjb1++nM0sWlTPq+bo4j/oMo3NoKV1vTWACwnjZ009RpI0KZOZW1l5bs7KmMqT/xUYYR1J7beuA5ObSZIxfraIJiuQa94QUQAl/6NJyoZjXz4EEGTTeZqGpK07TUgwdCqGjZoxezSRkplZImE15jh7tH7DdGm/VJhDsOB0vg+aHnKx42cG9Z8WWlLGMDNbDKilUOLWz0LsAwLA9DfximnC4M1qFXg2IW2O8l6S3NeqG5vOu1S/bQLrW93eXmC5b21kkvkj8HO/3+zvd5BR/8T5DjL3YHO69z6Os7AzyKIs7zKZ6nQHxynrxIXiM/IT/FkxnoTMiC4/ngDUNYh37TPsfJgINlEAbFwaCJI/yoYmAdlpAL7opyfHDlC0ePBtEOtJilTpcO1mmIM7Izb62Dz9+ze2k5WZJzRl5O/qKBBh8reprf0vxpLXmmChXo6g27psNDPZsQSZFk+SFLp9NMBuUjKS19R1KYMh/ijdQXDNFsOq/JiobbCKHm63oFTuHKda1CK3ojz+4kv0ijDuuyjCZY1l0dPpDljqYla6eeryQf6bqmwX2tYfyQMbkg/01iQn7M2DePGicOwJai5Y2cJst6roACV608X+ErVi5VdcFz9NPjR+yvLP7S+mn/S+Knl/6vfhLxQcqI3IKxFNxFcA232YEuwyCq+J7rZGmxRte41TBoYrjEnIJOQ/NiowYYQ3PYw0Dm0sxYJK8IqLxy+burl2/7lqYF1y+1WpeuB/Xu6LU3rqSNTLtc/965zuU1L6VcGGxtLHfrV2/duoqmHyOSRMPrX21tnZcAMT9A6MXU7vaVNyhVziyHteFW+1mA7cHK11IXb929NY+n99gdnkvMEnLgNISoZwjBy+hw+9d2DcrsTpz8oXalPX3pV+0rNdiIESJwk1kuQWxol+wKplYzLINhj1h8EEfRGFWaRnHEewzz7DjGfsyh6lP4BZIjJimTRVInLurRN9wSFi6VmRQF9zBmZdTA341jT8zzy1Fh48ckeoynmwteGO/wh5CU2P+PuH8Fd/TJMt4xvFsDpLbtZKFkPJ0BAT1nY6YzbMDdlSJPtpgAwRaOszH9WCx21tyEuGtO1fOqjGA9xQbFxjSm4ynfvTls4pM0IOIZLhljDWOIEcOxsVd9zGFVwBpi3kq4V0m8yGFN+KVZNfERlJvH8dPEI6tkhNoj38qYZyxBKbyupX7AsxAGA9TRPNKZHb/Y/eCQnr11OuhSZOBzlxYa+V7kmlrbsuDl9GKhUKq9uNnxgmYz8Do77+1tbu699/6h2HllP97aivfvH4pX6D/b2ihnla1cMV3Pt+xOfvF00TDbZ3tfT6JFvoBHr27uvfvbdzlciM7o9v6f9m+PZmKWbzkf62QFv01ELEPVDtXs8+AWHoUhzKp0fpiA7UPyWd3tX9t7c+9aH8XF8GYLzYB3Ny9rkDn49Oz2qz96dfvsTLwJoD9zc7i5d63XQ8yPv9F368lnkErJsmZr8PDZJ1NRnJvbfMKiGWeryFRk4tGfR+YOBDoEfU6aEQ+GgnkoWWTqd/kFvdtapfxiRBGNk7v4DYQ3frUFN/jSqdn6Md6GBjmLXn0O7xX/7jpiH36HpWaM5KQTDDWPcbB8QnvCuUQFo5CLcbC9HUxFfQPGgomCjye0x4ckRjJiHW0HlHBkgjUlh4SMnxKzmPIOc/iJVPAVFdi5ZO3etyBH68xJzt/7dvIvWp/Z8x/IYZOcIV8haGNkbxmsLEW1u1Qkt4BnNllcRF8kpjmRA97gtuFfoBmWleAdiUlq5uDvGVViKfiZlGWGrSa7Bd9jZzy/kOyqjUKncqYyf9gdKX3wSVqXVVXWVeaqUqdgHHzibGw4rGkUpqQgJv4cRQHavEaN/w2ili+9AAB4nGNgZGBgAOKz76S54vltvjJwszBggv8PWLiYDwAZHAxMID4AvuEGSwAAAHicY2BkYGBhAAEWETDJxcDIgAoMAARyAF0AAAB4nGNgYGBg4SKAGZBoERxyWDA9AACkYAEhAAAAeJxjYAACEQYNBheGBIYahhkMvxiNGGcx5TE7MS9i3sd8j0WOpY7lFasFawbrGdYHbDakQwCabxFfAAAAeJxjYGRgYDBg6GHgZAABJiDmAkIGhv9gPgMAG9UB3AB4nHXPTUrDQBwF8Jd+iS2IKLgTZiWCkLR114XLdueii+6TdJKmpJkwmX6Bp/AEnsIjuPIUnsKlr/G/KFIz5J/fvLwMBMAlPuDhcHno1fNwNXDG3a+b1JW4Rd+K2/S9uEM/irt4wJO4h2tkPMFrnTO5wYu4gQu8ipvM38Qt+l3cpj/FHfpL3MUM3+Ie7rznbBfZfJPprbZTna7z0B4lR5xpW2WmUAO/f5ROdKFt6PRcRXtVbdKhc4lKrFmpsSmcznOjSmuWOnb+wrlyFASJ5H5sVvy7HSJY5NjQGlveFlPOFGumIXenO6fTWT0rJgYFFAbw0f+nO+EsaoVwfM7Zj7DnrNhLMWTqkHCfsGOwosb1uYd2zmWYlPW7JZOYuY9F/VWJEQKu5E/fZ4sn/QDFyWpmeJxtjMlygkAARHkqgkQTs+/7vpiYL0ohjDAlzOAwSPz7mFh6Sl+6X1d1Ow1nqcD5X0MaNGnh0sbDp0PABl16bLJFn2122GWPfQ445IhjTjjljHMuuOSKa2645Y57HnjkiWdeeOWNAe98MOTTCUJjdD2Ida38ZayKbpSKmdHqr11DJsa2twIjk9QGK6qKTpTJYqRDE7tRpkvRjHTSiWUuVCm16q/TIBf5SBj/9znTYdwey8wK4yYmLFJPVzaTSriFkcr600qUdrFplyI0UbqwTETWK6s8D828ZWU08erQKKkSQgyami9iFBUFESmCGRljLJKEESU5U+Z8M3GcH09CWT0AAAA="},585:e=>{e.exports="data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgIHhtbG5zOmNjPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyMiCiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxuczpzb2RpcG9kaT0iaHR0cDovL3NvZGlwb2RpLnNvdXJjZWZvcmdlLm5ldC9EVEQvc29kaXBvZGktMC5kdGQiCiAgIHhtbG5zOmlua3NjYXBlPSJodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy9uYW1lc3BhY2VzL2lua3NjYXBlIgogICB2ZXJzaW9uPSIxLjEiCiAgIGlkPSJzdmcyIgogICB4bWw6c3BhY2U9InByZXNlcnZlIgogICB3aWR0aD0iNTM2LjM2NDc1IgogICBoZWlnaHQ9IjE1MC4zMTAwMyIKICAgdmlld0JveD0iMCAwIDUzNi4zNjQ3MyAxNTAuMzEwMDMiCiAgIHNvZGlwb2RpOmRvY25hbWU9ImFyZWxsZS1sb2dvLnN2ZyIKICAgaW5rc2NhcGU6dmVyc2lvbj0iMC45Mi41ICgyMDYwZWMxZjlmLCAyMDIwLTA0LTA4KSI+PG1ldGFkYXRhCiAgICAgaWQ9Im1ldGFkYXRhOCI+PHJkZjpSREY+PGNjOldvcmsKICAgICAgICAgcmRmOmFib3V0PSIiPjxkYzpmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PjxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz48ZGM6dGl0bGU+PC9kYzp0aXRsZT48L2NjOldvcms+PC9yZGY6UkRGPjwvbWV0YWRhdGE+PGRlZnMKICAgICBpZD0iZGVmczYiPjxjbGlwUGF0aAogICAgICAgY2xpcFBhdGhVbml0cz0idXNlclNwYWNlT25Vc2UiCiAgICAgICBpZD0iY2xpcFBhdGgxOCI+PHBhdGgKICAgICAgICAgZD0iTSAwLDEyMiBIIDc2OC41MDUgViAwIEggMCBaIgogICAgICAgICBpZD0icGF0aDE2IgogICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvY2xpcFBhdGg+PC9kZWZzPjxzb2RpcG9kaTpuYW1lZHZpZXcKICAgICBwYWdlY29sb3I9IiNmZmZmZmYiCiAgICAgYm9yZGVyY29sb3I9IiM2NjY2NjYiCiAgICAgYm9yZGVyb3BhY2l0eT0iMSIKICAgICBvYmplY3R0b2xlcmFuY2U9IjEwIgogICAgIGdyaWR0b2xlcmFuY2U9IjEwIgogICAgIGd1aWRldG9sZXJhbmNlPSIxMCIKICAgICBpbmtzY2FwZTpwYWdlb3BhY2l0eT0iMCIKICAgICBpbmtzY2FwZTpwYWdlc2hhZG93PSIyIgogICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iMTg2NCIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSIxMDI0IgogICAgIGlkPSJuYW1lZHZpZXc0IgogICAgIHNob3dncmlkPSJmYWxzZSIKICAgICBpbmtzY2FwZTp6b29tPSIwLjcyMDIyOTUzIgogICAgIGlua3NjYXBlOmN4PSI3ODguNzIwNTgiCiAgICAgaW5rc2NhcGU6Y3k9Ii04NC40NDIyMDQiCiAgICAgaW5rc2NhcGU6d2luZG93LXg9IjU2IgogICAgIGlua3NjYXBlOndpbmRvdy15PSIyNyIKICAgICBpbmtzY2FwZTp3aW5kb3ctbWF4aW1pemVkPSIxIgogICAgIGlua3NjYXBlOmN1cnJlbnQtbGF5ZXI9ImcxMCIKICAgICBmaXQtbWFyZ2luLXRvcD0iMCIKICAgICBmaXQtbWFyZ2luLWxlZnQ9IjAiCiAgICAgZml0LW1hcmdpbi1yaWdodD0iMCIKICAgICBmaXQtbWFyZ2luLWJvdHRvbT0iMCIgLz48ZwogICAgIGlkPSJnMTAiCiAgICAgaW5rc2NhcGU6Z3JvdXBtb2RlPSJsYXllciIKICAgICBpbmtzY2FwZTpsYWJlbD0iYXJlbGxlLWxvZ28iCiAgICAgdHJhbnNmb3JtPSJtYXRyaXgoMS4zMzMzMzMzLDAsMCwtMS4zMzMzMzMzLC0zLjY1MDgxNDEsMTU5LjMyNzc3KSI+PGcKICAgICAgIGlkPSJnMTIiPjxnCiAgICAgICAgIGlkPSJnMTQiCiAgICAgICAgIGNsaXAtcGF0aD0idXJsKCNjbGlwUGF0aDE4KSI+PGcKICAgICAgICAgICBpZD0iZzIwIgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwOS42Njg5LDY3LjE2MzEpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAtMS41OTgsMi42NTMgLTcuMjkyLDUuOTg3IC04LjgwOCwxNS4zMDcgLTAuODA0LDQuOTQ5IDAuNTY5LDcuOTk0IDEuOTU1LDEyLjE4MSAxLjQ4OCw0LjQ3MSAtMS4wNTksNy4yNDQgLTUuMzgsNy40MDggLTguNjQ0LDAuMzMgLTMxLjkwNywtMi4yMTEgLTU3LjYzOCwxMS4yODggLTEwLjA2Niw1LjI4IC0xMC43NTksMy45MjIgLTcuMDc2LC0yLjU2NiA1LjY0NSwtOS45NTIgMTkuMzc4LC0xNS4zMzQgMzUuNjg3LC0xOC4wMDUgLTQ1LjM5Nyw5LjgyNSAtMTcuMTY2LC0yLjE3NCA1LjA5OCwtNy4xMjcgLTQxLjA1Niw4LjQ4NCAtMTUuNjI1LC0zLjAzNSA0LjQ0OCwtNi43MTEgLTM4LjQ3NSw2LjgyMSAtMTEuMzg3LC0yLjk3OCAxLjQ3NywtNS40MjggMy44NjIsLTAuNzM2IDEyLjM5MSwtMTMuMDI2IDE4LjA1NCwtMTAuMjczIDYuMzE3LDMuMDY5IDQuNDg4LDAuNjg5IDcuNDc5LDIuMDI2IEMgMC41NjYsMC40NTggMCwwIDAsMCIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOiNhYTExOGU7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOm5vbmUiCiAgICAgICAgICAgICBpZD0icGF0aDIyIgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzI0IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwOS42Njg5LDY3LjE2MzEpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAtMS41OTgsMi42NTMgLTcuMjkyLDUuOTg3IC04LjgwOCwxNS4zMDcgLTAuODA0LDQuOTQ5IDAuNTY5LDcuOTk0IDEuOTU1LDEyLjE4MSAxLjQ4OCw0LjQ3MSAtMS4wNTksNy4yNDQgLTUuMzgsNy40MDggLTguNjQ0LDAuMzMgLTMxLjkwNywtMi4yMTEgLTU3LjYzOCwxMS4yODggLTEwLjA2Niw1LjI4IC0xMC43NTksMy45MjIgLTcuMDc2LC0yLjU2NiA1LjY0NSwtOS45NTIgMTkuMzc4LC0xNS4zMzQgMzUuNjg3LC0xOC4wMDUgLTQ1LjM5Nyw5LjgyNSAtMTcuMTY2LC0yLjE3NCA1LjA5OCwtNy4xMjcgLTQxLjA1Niw4LjQ4NCAtMTUuNjI1LC0zLjAzNSA0LjQ0OCwtNi43MTEgLTM4LjQ3NSw2LjgyMSAtMTEuMzg3LC0yLjk3OCAxLjQ3NywtNS40MjggMy44NjIsLTAuNzM2IDEyLjM5MSwtMTMuMDI2IDE4LjA1NCwtMTAuMjczIDYuMzE3LDMuMDY5IDQuNDg4LDAuNjg5IDcuNDc5LDIuMDI2IEMgMC41NjYsMC40NTggMCwwIDAsMCBaIgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2ZmZmZmZjtzdHJva2Utd2lkdGg6MS4wMzEwMDAwMjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgICAgIGlkPSJwYXRoMjYiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnMjgiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTM3Ljg2MzMsNDMuMDIzNCkiPjxwYXRoCiAgICAgICAgICAgICBkPSJtIDAsMCBjIDAsLTE2LjcxMiAtMTMuNTQ4LC0zMC4yNjIgLTMwLjI2MywtMzAuMjYyIC0xNi43MTUsMCAtMzAuMjYzLDEzLjU1IC0zMC4yNjMsMzAuMjYyIDAsMTYuNzE0IDEzLjU0OCwzMC4yNjQgMzAuMjYzLDMwLjI2NCBDIC0xMy41NDgsMzAuMjY0IDAsMTYuNzE0IDAsMCIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOm5vbmUiCiAgICAgICAgICAgICBpZD0icGF0aDMwIgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzMyIgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEzNy44NjMzLDQzLjAyMzQpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAwLC0xNi43MTIgLTEzLjU0OCwtMzAuMjYyIC0zMC4yNjMsLTMwLjI2MiAtMTYuNzE1LDAgLTMwLjI2MywxMy41NSAtMzAuMjYzLDMwLjI2MiAwLDE2LjcxNCAxMy41NDgsMzAuMjY0IDMwLjI2MywzMC4yNjQgQyAtMTMuNTQ4LDMwLjI2NCAwLDE2LjcxNCAwLDAgWiIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDM0IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzM2IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEyNi4xNTcyLDEwLjQzMjYpIj48cGF0aAogICAgICAgICAgICAgZD0iTSAwLDAgMTMuNDUyLDYzLjU4NiBIIDI0LjQ1OCBMIDIyLjAxMiwtMS4yMjIgWiIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOm5vbmUiCiAgICAgICAgICAgICBpZD0icGF0aDM4IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzQwIgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE0MCw3My42NzUzKSI+PHBhdGgKICAgICAgICAgICAgIGQ9Ik0gMCwwIC0xMy4wODYsLTYxLjU1MyIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDQyIgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzQ0IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIwOC43ODcxLDQzLjAyMzQpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAwLC0xNi43MTIgLTEzLjU0OCwtMzAuMjYyIC0zMC4yNjUsLTMwLjI2MiAtMTYuNzEsMCAtMzAuMjYsMTMuNTUgLTMwLjI2LDMwLjI2MiAwLDE2LjcxNCAxMy41NSwzMC4yNjQgMzAuMjYsMzAuMjY0IEMgLTEzLjU0OCwzMC4yNjQgMCwxNi43MTQgMCwwIFoiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojYWExMThlO3N0cm9rZS13aWR0aDozLjgwNTAwMDA3O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICAgICAgaWQ9InBhdGg0NiIKICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+PC9nPjxnCiAgICAgICAgICAgaWQ9Imc0OCIKICAgICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNTAuNjE1Miw2NC4yMzczKSI+PHBhdGgKICAgICAgICAgICAgIGQ9Im0gMCwwIDguNTU4LC03LjMzOSAzOS4xMzIsMi40NDcgMTEuMDA2LDMuNjY5IDQuODksLTMxLjc5MyAtMjMuMjMyLC0yNC40NTggSCAxNC42NzMgbCAtMjMuODQ4LDI1LjY3OSB6IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6bm9uemVybztzdHJva2U6bm9uZSIKICAgICAgICAgICAgIGlkPSJwYXRoNTAiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnNTIiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTU3LjExOTEsNzMuNjc1MykiPjxwYXRoCiAgICAgICAgICAgICBkPSJNIDAsMCAtMTMuMDgzLC02MS41NTMiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojYWExMThlO3N0cm9rZS13aWR0aDozLjgwNTAwMDA3O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICAgICAgaWQ9InBhdGg1NCIKICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+PC9nPjxnCiAgICAgICAgICAgaWQ9Imc1NiIKICAgICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzMDIuNDA1MywxMTIuODcwMSkiPjxwYXRoCiAgICAgICAgICAgICBkPSJNIDAsMCAtMjEuNDEzLC0xMDAuNzQ4IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2FhMTE4ZTtzdHJva2Utd2lkdGg6My44MDUwMDAwNztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgICAgIGlkPSJwYXRoNTgiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnNjAiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzIxLjk2ODgsMTEyLjg3MDEpIj48cGF0aAogICAgICAgICAgICAgZD0iTSAwLDAgLTIxLjQxMSwtMTAwLjc0OCIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDYyIgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzY0IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDM4Ni4wOTc3LDQzLjAyMzQpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAwLC0xNi43MTIgLTEzLjU0OCwtMzAuMjYyIC0zMC4yNjIsLTMwLjI2MiAtMTYuNzE3LDAgLTMwLjI2NCwxMy41NSAtMzAuMjY0LDMwLjI2MiAwLDE2LjcxNCAxMy41NDcsMzAuMjY0IDMwLjI2NCwzMC4yNjQgQyAtMTMuNTQ4LDMwLjI2NCAwLDE2LjcxNCAwLDAgWiIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDY2IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzY4IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDM3My4yODMyLDY4LjM1MjUpIj48cGF0aAogICAgICAgICAgICAgZD0iTSAwLDAgLTM2LjAyOSwtNDkuNTg2IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2FhMTE4ZTtzdHJva2Utd2lkdGg6My44MDUwMDAwNztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgICAgIGlkPSJwYXRoNzAiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnNzIiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjcyLjM3NCw0My4wMjM0KSI+PHBhdGgKICAgICAgICAgICAgIGQ9Im0gMCwwIGMgMCwtMTYuNzEyIC0xMy41NDksLTMwLjI2MiAtMzAuMjYzLC0zMC4yNjIgLTE2LjcxMywwIC0zMC4yNjEsMTMuNTUgLTMwLjI2MSwzMC4yNjIgMCwxNi43MTQgMTMuNTQ4LDMwLjI2NCAzMC4yNjEsMzAuMjY0IEMgLTEzLjU0OSwzMC4yNjQgMCwxNi43MTQgMCwwIFoiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojYWExMThlO3N0cm9rZS13aWR0aDozLjgwNTAwMDA3O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICAgICAgaWQ9InBhdGg3NCIKICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+PC9nPjxnCiAgICAgICAgICAgaWQ9Imc3NiIKICAgICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNTkuNTU5Niw2OC4zNTI1KSI+PHBhdGgKICAgICAgICAgICAgIGQ9Ik0gMCwwIC0zNi4wMjYsLTQ5LjU4NiIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDc4IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzgwIgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI3NC43MzM0LDE3Ljc3MDUpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgLTE4LjM0Miw2LjExNCAxLjgzNiwzOC43MjEgNC44OSw3LjU0MiAxNC4wNjIsLTEyLjAyNCB6IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6bm9uemVybztzdHJva2U6bm9uZSIKICAgICAgICAgICAgIGlkPSJwYXRoODIiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnODQiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzg4LjI1MjksMTcuNTY1OSkiPjxwYXRoCiAgICAgICAgICAgICBkPSJtIDAsMCAtMTguMzQzLDYuMTE0IDEuODM3LDM4LjcyMSA0Ljg4OSw3LjU0MyAxNC4wNjMsLTEyLjAyNCB6IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6bm9uemVybztzdHJva2U6bm9uZSIKICAgICAgICAgICAgIGlkPSJwYXRoODYiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnODgiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoOTcuMjYwNyw3Mi44NjUyKSI+PHBhdGgKICAgICAgICAgICAgIGQ9Im0gMCwwIGMgLTIuMTIxLDIuNzgyIC04LjUzOSw1LjIzOSAtMTEuMzksMTUuNTIxIC0xLjUxNCw1LjQ1OCAtMC4zNDgsOS4wNDggMC42OTcsMTMuOTIgMS4xMTcsNS4yMDUgLTIuMDg4LDguMDA0IC02Ljk2MSw3LjY1NiAtOS43NDQsLTAuNjk2IC0zNS41NTksLTYuNDE4IC02Ni4xMjIsNS41NjkgLTExLjk1Niw0LjY4OCAtMTAuNzY1LDQuMDY4IC03LjYzLC0zLjc1NSA0Ljk4NCwtMTIuNDM5IDI2LjUwNywtMjEuNzg5IDQ1LjE1MiwtMjIuNzc3IC0xMC4xMDYsMC45MDkgLTIyLjE0LDMuMTI5IC0yNS41MDIsNC4wMDEgLTEzLjUsMy41IDcsLTEzLjUgMzQuNTAyLC0xNC4yNTEgLTcuNDg0LDAuMjM3IC0xOS41OTgsMS40ODYgLTIyLjUsMi4yNSAtMTksNSA0LC0xMS45OTkgMzIuMjUsLTEzLjUwMiA0LjQzNiwtMC4yMzYgMTUuNzMxLC02Ljg5MiAyMS44NjksLTMuMjk1IDMuODM0LDIuMjQ2IDEuMzc5LDAuODAxIDMuODM0LDIuMjQ2IEMgMy44ODgsLTMuMDY4IDAsMCAwLDAiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDojNzdkMWM4O2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpub256ZXJvO3N0cm9rZTpub25lIgogICAgICAgICAgICAgaWQ9InBhdGg5MCIKICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+PC9nPjxnCiAgICAgICAgICAgaWQ9Imc5MiIKICAgICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSg5Ny4yNjA3LDcyLjg2NTIpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAtMi4xMjEsMi43ODIgLTguNTM5LDUuMjM5IC0xMS4zOSwxNS41MjEgLTEuNTE0LDUuNDU4IC0wLjM0OCw5LjA0OCAwLjY5NywxMy45MiAxLjExNyw1LjIwNSAtMi4wODgsOC4wMDQgLTYuOTYxLDcuNjU2IC05Ljc0NCwtMC42OTYgLTM1LjU1OSwtNi40MTggLTY2LjEyMiw1LjU2OSAtMTEuOTU2LDQuNjg4IC0xMC43NjUsNC4wNjggLTcuNjMsLTMuNzU1IDQuOTg0LC0xMi40MzkgMjYuNTA3LC0yMS43ODkgNDUuMTUyLC0yMi43NzcgLTEwLjEwNiwwLjkwOSAtMjIuMTQsMy4xMjkgLTI1LjUwMiw0LjAwMSAtMTMuNSwzLjUgNywtMTMuNSAzNC41MDIsLTE0LjI1MSAtNy40ODQsMC4yMzcgLTE5LjU5OCwxLjQ4NiAtMjIuNSwyLjI1IC0xOSw1IDQsLTExLjk5OSAzMi4yNSwtMTMuNTAyIDQuNDM2LC0wLjIzNiAxNS43MzEsLTYuODkyIDIxLjg2OSwtMy4yOTUgMy44MzQsMi4yNDYgMS4zNzksMC44MDEgMy44MzQsMi4yNDYgQyAzLjg4OCwtMy4wNjggMCwwIDAsMCBaIgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2ZmZmZmZjtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgICAgIGlkPSJwYXRoOTQiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48L2c+PC9nPjx0ZXh0CiAgICAgICB0cmFuc2Zvcm09Im1hdHJpeCgxLDAsMCwtMSwzODkuNDk5LDYyLjk5NjEpIgogICAgICAgc3R5bGU9ImZvbnQtdmFyaWFudDpub3JtYWw7Zm9udC13ZWlnaHQ6bm9ybWFsO2ZvbnQtc3RyZXRjaDpub3JtYWw7Zm9udC1zaXplOjE4cHg7Zm9udC1mYW1pbHk6J1RyZWJ1Y2hldCBNUyc7LWlua3NjYXBlLWZvbnQtc3BlY2lmaWNhdGlvbjpUcmVidWNoZXRNUzt3cml0aW5nLW1vZGU6bHItdGI7ZmlsbDojYWExMThlO2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpub256ZXJvO3N0cm9rZTpub25lIgogICAgICAgaWQ9InRleHQ5OCI+PHRzcGFuCiAgICAgICAgIHg9IjAiCiAgICAgICAgIHk9IjAiCiAgICAgICAgIGlkPSJ0c3Bhbjk2Ij7CrjwvdHNwYW4+PC90ZXh0Pgo8L2c+PC9zdmc+"},688:e=>{e.exports="data:image/vnd.microsoft.icon;charset=utf-8;base64,AAABAAEAEBAAAAEACABoBQAAFgAAACgAAAAQAAAAIAAAAAEACAAAAAAAQAEAAAAAAAAAAAAAAAEAAAAAAADNm9sA6urFANvamwD7+/MA5cLuAPX04gDNzHUA+/v1APT04QDQz34AzMtxAOHhrQDe3aQA7+/TANbVjQDo6MAA/v79AM7NeQDn5rsA8/PdAPLy2wDi4a4A5uW6AO3tzgD5+fAA/v78APn57gD4+OwA9vbmAOXktgDc3J8A9fXkAOHgrADs2PEA5eW4AI4hqwDLym8A////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIyMlIyUlIyMlIyUjJSMjJQAjISMhJSMlJSMEIwQjISUlISMhIyUhIwAhIyEjISMAJSMjJSMjJSMjJSMlIyUjIyUlJSUlJSUlJSUjJSMlJSUlJSUlJSUlJSUlJSUcEiQdJSUlJSUlJRkNICQkJCQkJCUlJSUlByQkJCQkJCQkJAolJSUlGiIiIiIiIiQkJCQXJSUlJR8iAiQkJCQkJCQOJSUlJSQkBiQkJCQkJCQkFiUlJRAiIiIiIiQkJCQkJA8lJQMiAiQkJCQkJCQkJCQVJRgRJCQkJCQkJCQkJCQkDCUeJCQGAgEIBQcbBRMBAQMlCQsUJSUlJSUlJSUlJSUlJQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="},754:e=>{e.exports="data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDIyLjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMzQuOSAzMCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTM0LjkgMzA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojNTk1OTU5O30KCS5zdDF7ZmlsbDojNjZDQzAwO30KPC9zdHlsZT4KPGc+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTYuMywyMS42aC0yLjR2LTEzaDIuNFYyMS42eiIvPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTIxLjMsMTMuNWMwLjItMC4yLDAuNC0wLjQsMC42LTAuNWMwLjItMC4yLDAuNC0wLjMsMC43LTAuNGMwLjItMC4xLDAuNS0wLjIsMC43LTAuM2MwLjMtMC4xLDAuNi0wLjEsMC45LTAuMQoJCWMwLjUsMCwxLDAuMSwxLjMsMC4zczAuNywwLjQsMSwwLjdzMC41LDAuNywwLjYsMS4xYzAuMSwwLjQsMC4yLDAuOSwwLjIsMS40djUuOWgtMi4ydi01LjljMC0wLjYtMC4xLTEtMC40LTEuM1MyNCwxNCwyMy41LDE0CgkJYy0wLjQsMC0wLjcsMC4xLTEuMSwwLjNjLTAuMywwLjItMC43LDAuNC0xLDAuN3Y2LjdoLTIuMnYtOS4yaDEuNGMwLjMsMCwwLjUsMC4xLDAuNiwwLjRMMjEuMywxMy41eiIvPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTMyLjEsOC4ydjEzLjRoLTIuMlY4LjJIMzIuMXoiLz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0zNy4zLDkuN2MwLDAuMiwwLDAuNC0wLjEsMC41cy0wLjIsMC4zLTAuMywwLjRzLTAuMywwLjItMC41LDAuM2MtMC4yLDAuMS0wLjQsMC4xLTAuNiwwLjEKCQljLTAuMiwwLTAuNCwwLTAuNS0wLjFjLTAuMi0wLjEtMC4zLTAuMi0wLjQtMC4zcy0wLjItMC4zLTAuMy0wLjRjLTAuMS0wLjItMC4xLTAuMy0wLjEtMC41YzAtMC4yLDAtMC40LDAuMS0wLjYKCQljMC4xLTAuMiwwLjItMC4zLDAuMy0wLjVzMC4zLTAuMiwwLjQtMC4zczAuNC0wLjEsMC41LTAuMWMwLjIsMCwwLjQsMCwwLjYsMC4xYzAuMiwwLjEsMC4zLDAuMiwwLjUsMC4zczAuMiwwLjMsMC4zLDAuNQoJCVMzNy4zLDkuNSwzNy4zLDkuN3ogTTM2LjksMTIuNHY5LjJoLTIuMnYtOS4ySDM2Ljl6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDEuNywxMy41YzAuMi0wLjIsMC40LTAuNCwwLjYtMC41YzAuMi0wLjIsMC40LTAuMywwLjctMC40YzAuMi0wLjEsMC41LTAuMiwwLjctMC4zYzAuMy0wLjEsMC42LTAuMSwwLjktMC4xCgkJYzAuNSwwLDEsMC4xLDEuMywwLjNjMC40LDAuMiwwLjcsMC40LDEsMC43YzAuMywwLjMsMC41LDAuNywwLjYsMS4xczAuMiwwLjksMC4yLDEuNHY1LjloLTIuMnYtNS45YzAtMC42LTAuMS0xLTAuNC0xLjMKCQljLTAuMy0wLjMtMC43LTAuNS0xLjItMC41Yy0wLjQsMC0wLjcsMC4xLTEuMSwwLjNjLTAuMywwLjItMC43LDAuNC0xLDAuN3Y2LjdoLTIuMnYtOS4yaDEuNGMwLjMsMCwwLjUsMC4xLDAuNiwwLjRMNDEuNywxMy41eiIvPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTUxLjksMTcuM2MwLDAuNSwwLjEsMC45LDAuMywxLjJjMC4xLDAuMywwLjMsMC42LDAuNSwwLjlzMC41LDAuNCwwLjgsMC41czAuNiwwLjIsMSwwLjJjMC40LDAsMC43LDAsMC45LTAuMQoJCXMwLjUtMC4yLDAuNy0wLjNjMC4yLTAuMSwwLjQtMC4yLDAuNS0wLjNjMC4xLTAuMSwwLjMtMC4xLDAuNC0wLjFjMC4yLDAsMC4zLDAuMSwwLjQsMC4ybDAuNiwwLjhjLTAuMiwwLjMtMC41LDAuNS0wLjgsMC43CgkJcy0wLjYsMC40LTEsMC41Yy0wLjMsMC4xLTAuNywwLjItMSwwLjJzLTAuNywwLjEtMSwwLjFjLTAuNiwwLTEuMi0wLjEtMS44LTAuM2MtMC42LTAuMi0xLTAuNS0xLjQtMC45cy0wLjctMC45LTEtMS41CgkJYy0wLjItMC42LTAuNC0xLjMtMC40LTIuMWMwLTAuNiwwLjEtMS4yLDAuMy0xLjhjMC4yLTAuNiwwLjUtMSwwLjktMS40YzAuNC0wLjQsMC44LTAuNywxLjQtMWMwLjUtMC4yLDEuMi0wLjQsMS45LTAuNAoJCWMwLjYsMCwxLjEsMC4xLDEuNiwwLjNjMC41LDAuMiwwLjksMC41LDEuMywwLjhjMC40LDAuNCwwLjYsMC44LDAuOCwxLjNjMC4yLDAuNSwwLjMsMS4xLDAuMywxLjhjMCwwLjMsMCwwLjYtMC4xLDAuNwoJCWMtMC4xLDAuMS0wLjIsMC4yLTAuNCwwLjJINTEuOXogTTU2LjEsMTUuOWMwLTAuMywwLTAuNi0wLjEtMC44Yy0wLjEtMC4zLTAuMi0wLjUtMC40LTAuN2MtMC4yLTAuMi0wLjQtMC4zLTAuNi0wLjUKCQljLTAuMi0wLjEtMC41LTAuMi0wLjktMC4yYy0wLjYsMC0xLjEsMC4yLTEuNSwwLjVjLTAuNCwwLjQtMC42LDAuOS0wLjcsMS42SDU2LjF6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNzYuNSw4LjZsLTUuMywxM2gtMi4ybC01LjMtMTNoMS45YzAuMiwwLDAuNCwwLjEsMC41LDAuMnMwLjIsMC4yLDAuMywwLjRsMy4xLDcuOWMwLjEsMC4zLDAuMiwwLjUsMC4zLDAuOQoJCWMwLjEsMC4zLDAuMiwwLjYsMC4zLDFjMC4xLTAuMywwLjEtMC43LDAuMi0xczAuMi0wLjYsMC4zLTAuOWwzLjEtNy45YzAtMC4xLDAuMS0wLjMsMC4zLTAuNGMwLjEtMC4xLDAuMy0wLjIsMC41LTAuMkg3Ni41eiIvPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTgwLjcsOS43YzAsMC4yLDAsMC40LTAuMSwwLjVjLTAuMSwwLjItMC4yLDAuMy0wLjMsMC40Yy0wLjEsMC4xLTAuMywwLjItMC41LDAuM2MtMC4yLDAuMS0wLjQsMC4xLTAuNiwwLjEKCQljLTAuMiwwLTAuNCwwLTAuNS0wLjFjLTAuMi0wLjEtMC4zLTAuMi0wLjQtMC4zcy0wLjItMC4zLTAuMy0wLjRzLTAuMS0wLjMtMC4xLTAuNWMwLTAuMiwwLTAuNCwwLjEtMC42czAuMi0wLjMsMC4zLTAuNQoJCXMwLjMtMC4yLDAuNC0wLjNzMC40LTAuMSwwLjUtMC4xYzAuMiwwLDAuNCwwLDAuNiwwLjFzMC4zLDAuMiwwLjUsMC4zYzAuMSwwLjEsMC4yLDAuMywwLjMsMC41QzgwLjcsOS4zLDgwLjcsOS41LDgwLjcsOS43egoJCSBNODAuNCwxMi40djkuMmgtMi4ydi05LjJIODAuNHoiLz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik04NC43LDE3LjNjMCwwLjUsMC4xLDAuOSwwLjMsMS4yYzAuMSwwLjMsMC4zLDAuNiwwLjUsMC45czAuNSwwLjQsMC44LDAuNXMwLjYsMC4yLDEsMC4yYzAuNCwwLDAuNywwLDAuOS0wLjEKCQljMC4zLTAuMSwwLjUtMC4yLDAuNy0wLjNzMC40LTAuMiwwLjUtMC4zYzAuMS0wLjEsMC4zLTAuMSwwLjQtMC4xYzAuMiwwLDAuMywwLjEsMC40LDAuMmwwLjYsMC44Yy0wLjIsMC4zLTAuNSwwLjUtMC44LDAuNwoJCWMtMC4zLDAuMi0wLjYsMC40LTEsMC41Yy0wLjMsMC4xLTAuNywwLjItMSwwLjJjLTAuMywwLTAuNywwLjEtMSwwLjFjLTAuNiwwLTEuMi0wLjEtMS44LTAuM3MtMS0wLjUtMS40LTAuOQoJCWMtMC40LTAuNC0wLjctMC45LTEtMS41Yy0wLjItMC42LTAuNC0xLjMtMC40LTIuMWMwLTAuNiwwLjEtMS4yLDAuMy0xLjhjMC4yLTAuNiwwLjUtMSwwLjktMS40czAuOC0wLjcsMS40LTEKCQljMC41LTAuMiwxLjItMC40LDEuOS0wLjRjMC42LDAsMS4xLDAuMSwxLjYsMC4zYzAuNSwwLjIsMC45LDAuNSwxLjMsMC44YzAuNCwwLjQsMC42LDAuOCwwLjgsMS4zYzAuMiwwLjUsMC4zLDEuMSwwLjMsMS44CgkJYzAsMC4zLDAsMC42LTAuMSwwLjdjLTAuMSwwLjEtMC4yLDAuMi0wLjQsMC4ySDg0Ljd6IE04OSwxNS45YzAtMC4zLDAtMC42LTAuMS0wLjhjLTAuMS0wLjMtMC4yLTAuNS0wLjQtMC43CgkJYy0wLjItMC4yLTAuNC0wLjMtMC42LTAuNWMtMC4yLTAuMS0wLjUtMC4yLTAuOS0wLjJjLTAuNiwwLTEuMSwwLjItMS41LDAuNWMtMC40LDAuNC0wLjYsMC45LTAuNywxLjZIODl6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTA2LDEyLjRsLTIuOSw5LjJoLTEuOGMtMC4yLDAtMC4zLTAuMS0wLjQtMC40bC0xLjctNS4zYy0wLjEtMC4yLTAuMS0wLjQtMC4xLTAuNWMwLTAuMi0wLjEtMC40LTAuMS0wLjUKCQljMCwwLjItMC4xLDAuNC0wLjEsMC41cy0wLjEsMC40LTAuMSwwLjVMOTcsMjEuMmMtMC4xLDAuMy0wLjIsMC40LTAuNSwwLjRoLTEuN2wtMi45LTkuMmgxLjhjMC4yLDAsMC4zLDAsMC40LDAuMQoJCWMwLjEsMC4xLDAuMiwwLjIsMC4yLDAuM2wxLjMsNC45YzAuMSwwLjMsMC4xLDAuNSwwLjIsMC44YzAuMSwwLjMsMC4xLDAuNSwwLjEsMC44YzAuMS0wLjMsMC4xLTAuNSwwLjItMC44CgkJYzAuMS0wLjMsMC4yLTAuNSwwLjItMC44bDEuNS00LjljMC0wLjEsMC4xLTAuMiwwLjItMC4zYzAuMS0wLjEsMC4yLTAuMSwwLjQtMC4xaDFjMC4yLDAsMC4zLDAsMC40LDAuMWMwLjEsMC4xLDAuMiwwLjIsMC4yLDAuMwoJCWwxLjUsNC45YzAuMSwwLjMsMC4yLDAuNSwwLjIsMC44YzAuMSwwLjMsMC4xLDAuNSwwLjIsMC44YzAuMS0wLjUsMC4yLTEsMC4zLTEuNmwxLjQtNC45YzAtMC4xLDAuMS0wLjIsMC4yLTAuMwoJCWMwLjEtMC4xLDAuMi0wLjEsMC40LTAuMUgxMDZ6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTA5LjEsMTcuM2MwLDAuNSwwLjEsMC45LDAuMywxLjJjMC4xLDAuMywwLjMsMC42LDAuNSwwLjlzMC41LDAuNCwwLjgsMC41czAuNiwwLjIsMSwwLjIKCQljMC40LDAsMC43LDAsMC45LTAuMXMwLjUtMC4yLDAuNy0wLjNjMC4yLTAuMSwwLjQtMC4yLDAuNS0wLjNjMC4xLTAuMSwwLjMtMC4xLDAuNC0wLjFjMC4yLDAsMC4zLDAuMSwwLjQsMC4ybDAuNiwwLjgKCQljLTAuMiwwLjMtMC41LDAuNS0wLjgsMC43cy0wLjYsMC40LTEsMC41Yy0wLjMsMC4xLTAuNywwLjItMSwwLjJzLTAuNywwLjEtMSwwLjFjLTAuNiwwLTEuMi0wLjEtMS44LTAuM2MtMC42LTAuMi0xLTAuNS0xLjQtMC45CgkJcy0wLjctMC45LTEtMS41Yy0wLjItMC42LTAuNC0xLjMtMC40LTIuMWMwLTAuNiwwLjEtMS4yLDAuMy0xLjhjMC4yLTAuNiwwLjUtMSwwLjktMS40YzAuNC0wLjQsMC44LTAuNywxLjQtMQoJCWMwLjUtMC4yLDEuMi0wLjQsMS45LTAuNGMwLjYsMCwxLjEsMC4xLDEuNiwwLjNjMC41LDAuMiwwLjksMC41LDEuMywwLjhjMC40LDAuNCwwLjYsMC44LDAuOCwxLjNjMC4yLDAuNSwwLjMsMS4xLDAuMywxLjgKCQljMCwwLjMsMCwwLjYtMC4xLDAuN2MtMC4xLDAuMS0wLjIsMC4yLTAuNCwwLjJIMTA5LjF6IE0xMTMuNCwxNS45YzAtMC4zLDAtMC42LTAuMS0wLjhjLTAuMS0wLjMtMC4yLTAuNS0wLjQtMC43CgkJYy0wLjItMC4yLTAuNC0wLjMtMC42LTAuNWMtMC4yLTAuMS0wLjUtMC4yLTAuOS0wLjJjLTAuNiwwLTEuMSwwLjItMS41LDAuNWMtMC40LDAuNC0wLjYsMC45LTAuNywxLjZIMTEzLjR6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTE5LjYsMTRjMC4zLTAuNiwwLjYtMSwxLTEuM2MwLjQtMC4zLDAuOS0wLjUsMS40LTAuNWMwLjQsMCwwLjgsMC4xLDEsMC4zbC0wLjEsMS43YzAsMC4xLTAuMSwwLjItMC4xLDAuMgoJCWMtMC4xLDAtMC4xLDAuMS0wLjIsMC4xYy0wLjEsMC0wLjIsMC0wLjQsMGMtMC4yLDAtMC4zLDAtMC41LDBjLTAuMiwwLTAuNSwwLTAuNywwLjFzLTAuNCwwLjItMC41LDAuM2MtMC4yLDAuMS0wLjMsMC4zLTAuNCwwLjUKCQljLTAuMSwwLjItMC4yLDAuNC0wLjMsMC43djUuN2gtMi4ydi05LjJoMS4zYzAuMiwwLDAuNCwwLDAuNSwwLjFjMC4xLDAuMSwwLjIsMC4yLDAuMiwwLjRMMTE5LjYsMTR6Ii8+CjwvZz4KPC9zdmc+Cg=="},12:function(e,t,n){e.exports=function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t={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]},n=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[t[i]]=i);var r=e.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 o in r)if(r.hasOwnProperty(o)){if(!("channels"in r[o]))throw new Error("missing channels property: "+o);if(!("labels"in r[o]))throw new Error("missing channel labels property: "+o);if(r[o].labels.length!==r[o].channels)throw new Error("channel and label counts mismatch: "+o);var a=r[o].channels,s=r[o].labels;delete r[o].channels,delete r[o].labels,Object.defineProperty(r[o],"channels",{value:a}),Object.defineProperty(r[o],"labels",{value:s})}r.rgb.hsl=function(e){var t,n,i=e[0]/255,r=e[1]/255,o=e[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a;return s===a?t=0:i===s?t=(r-o)/l:r===s?t=2+(o-i)/l:o===s&&(t=4+(i-r)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+s)/2,[t,100*(s===a?0:n<=.5?l/(s+a):l/(2-s-a)),100*n]},r.rgb.hsv=function(e){var t,n,i,r,o,a=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(a,s,l),u=c-Math.min(a,s,l),d=function(e){return(c-e)/6/u+.5};return 0===u?r=o=0:(o=u/c,t=d(a),n=d(s),i=d(l),a===c?r=i-n:s===c?r=1/3+t-i:l===c&&(r=2/3+n-t),r<0?r+=1:r>1&&(r-=1)),[360*r,100*o,100*c]},r.rgb.hwb=function(e){var t=e[0],n=e[1],i=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,i))*100,100*(i=1-1/255*Math.max(t,Math.max(n,i)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,i=e[1]/255,r=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-i,1-r)))/(1-t)||0),100*((1-i-t)/(1-t)||0),100*((1-r-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var i=n[e];if(i)return i;var r,o,a,s=1/0;for(var l in t)if(t.hasOwnProperty(l)){var c=(o=e,a=t[l],Math.pow(o[0]-a[0],2)+Math.pow(o[1]-a[1],2)+Math.pow(o[2]-a[2],2));c<s&&(s=c,r=l)}return r},r.keyword.rgb=function(e){return t[e]},r.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,i=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/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*t+.7152*n+.0722*i),100*(.0193*t+.1192*n+.9505*i)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],i=t[1],o=t[2];return i/=100,o/=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-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},r.hsl.rgb=function(e){var t,n,i,r,o,a=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[o=255*l,o,o];t=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?t+6*(n-t)*i:2*i<1?n:3*i<2?t+(n-t)*(2/3-i)*6:t,r[c]=255*o;return r},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,i=e[2]/100,r=n,o=Math.max(i,.01);return n*=(i*=2)<=1?i:2-i,r*=o<=1?o:2-o,[t,100*(0===i?2*r/(o+r):2*n/(i+n)),(i+n)/2*100]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,i=e[2]/100,r=Math.floor(t)%6,o=t-Math.floor(t),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]}},r.hsv.hsl=function(e){var t,n,i,r=e[0],o=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return i=(2-o)*a,n=o*s,[r,100*(n=(n/=(t=(2-o)*s)<=1?t:2-t)||0),100*(i/=2)]},r.hwb.rgb=function(e){var t,n,i,r,o,a,s,l=e[0]/360,c=e[1]/100,u=e[2]/100,d=c+u;switch(d>1&&(c/=d,u/=d),i=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(i=1-i),r=c+i*((n=1-u)-c),t){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]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,i=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r)),255*(1-Math.min(1,i*(1-r)+r))]},r.xyz.rgb=function(e){var t,n,i,r=e[0]/100,o=e[1]/100,a=e[2]/100;return n=-.9689*r+1.8758*o+.0415*a,i=.0557*r+-.204*o+1.057*a,t=(t=3.2406*r+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,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*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(i=Math.min(Math.max(0,i),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],i=e[2];return n/=100,i/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},r.lab.xyz=function(e){var t,n,i,r=e[0];t=e[1]/500+(n=(r+16)/116),i=n-e[2]/200;var o=Math.pow(n,3),a=Math.pow(t,3),s=Math.pow(i,3);return n=o>.008856?o:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,i=s>.008856?s:(i-16/116)/7.787,[t*=95.047,n*=100,i*=108.883]},r.lab.lch=function(e){var t,n=e[0],i=e[1],r=e[2];return(t=360*Math.atan2(r,i)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(i*i+r*r),t]},r.lch.lab=function(e){var t,n=e[0],i=e[1];return t=e[2]/360*2*Math.PI,[n,i*Math.cos(t),i*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],i=e[2],o=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var a=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===o&&(a+=60),a},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],i=e[2];return t===n&&n===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var i=parseInt(n,16);return[i>>16&255,i>>8&255,255&i]},r.rgb.hcg=function(e){var t,n=e[0]/255,i=e[1]/255,r=e[2]/255,o=Math.max(Math.max(n,i),r),a=Math.min(Math.min(n,i),r),s=o-a;return t=s<=0?0:o===n?(i-r)/s%6:o===i?2+(r-n)/s:4+(n-i)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?a/(1-s):0)]},r.hsl.hcg=function(e){var t,n=e[1]/100,i=e[2]/100,r=0;return(t=i<.5?2*n*i:2*n*(1-i))<1&&(r=(i-.5*t)/(1-t)),[e[0],100*t,100*r]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,i=t*n,r=0;return i<1&&(r=(n-i)/(1-i)),[e[0],100*i,100*r]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,i=e[2]/100;if(0===n)return[255*i,255*i,255*i];var r,o=[0,0,0],a=t%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)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),i=0;return n>0&&(i=t/n),[e[0],100*i,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],100*i,100*n]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,i=n-t,r=0;return i<1&&(r=(n-i)/(1-i)),[e[0],100*i,100*r]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function i(e){var t=function(){for(var e={},t=Object.keys(n),i=t.length,r=0;r<i;r++)e[t[r]]={distance:-1,parent:null};return e}(),i=[e];for(t[e].distance=0;i.length;)for(var r=i.pop(),o=Object.keys(n[r]),a=o.length,s=0;s<a;s++){var l=o[s],c=t[l];-1===c.distance&&(c.distance=t[r].distance+1,c.parent=r,i.unshift(l))}return t}function r(e,t){return function(n){return t(e(n))}}function o(e,t){for(var i=[t[e].parent,e],o=n[t[e].parent][e],a=t[e].parent;t[a].parent;)i.unshift(t[a].parent),o=r(n[t[a].parent][a],o),a=t[a].parent;return o.conversion=i,o}n.rgb,n.hsl,n.hsv,n.hwb,n.cmyk,n.xyz,n.lab,n.lch,n.hex,n.keyword,n.ansi16,n.ansi256,n.hcg,n.apple,n.gray;var a={};Object.keys(n).forEach((function(e){a[e]={},Object.defineProperty(a[e],"channels",{value:n[e].channels}),Object.defineProperty(a[e],"labels",{value:n[e].labels});var t=function(e){for(var t=i(e),n={},r=Object.keys(t),a=r.length,s=0;s<a;s++){var l=r[s];null!==t[l].parent&&(n[l]=o(l,t))}return n}(e);Object.keys(t).forEach((function(n){var i=t[n];a[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var i=n.length,r=0;r<i;r++)n[r]=Math.round(n[r]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(i),a[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(i)}))}));var s=a,l={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]},c={getRgba:u,getHsla:d,getRgb:function(e){var t=u(e);return t&&t.slice(0,3)},getHsl:function(e){var t=d(e);return t&&t.slice(0,3)},getHwb:h,getAlpha:function(e){var t=u(e);return t||(t=d(e))||(t=h(e))?t[3]:void 0},hexString:function(e,t){return t=void 0!==t&&3===e.length?t:e[3],"#"+v(e[0])+v(e[1])+v(e[2])+(t>=0&&t<1?v(Math.round(255*t)):"")},rgbString:function(e,t){return t<1||e[3]&&e[3]<1?f(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:f,percentString:function(e,t){return t<1||e[3]&&e[3]<1?p(e,t):"rgb("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%)"},percentaString:p,hslString:function(e,t){return t<1||e[3]&&e[3]<1?g(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:g,hwbString:function(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(e){return y[e.slice(0,3)]}};function u(e){if(e){var t=[0,0,0],n=1,i=e.match(/^#([a-fA-F0-9]{3,4})$/i),r="";if(i){r=(i=i[1])[3];for(var o=0;o<t.length;o++)t[o]=parseInt(i[o]+i[o],16);r&&(n=Math.round(parseInt(r+r,16)/255*100)/100)}else if(i=e.match(/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i)){for(r=i[2],i=i[1],o=0;o<t.length;o++)t[o]=parseInt(i.slice(2*o,2*o+2),16);r&&(n=Math.round(parseInt(r,16)/255*100)/100)}else if(i=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<t.length;o++)t[o]=parseInt(i[o+1]);n=parseFloat(i[4])}else if(i=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<t.length;o++)t[o]=Math.round(2.55*parseFloat(i[o+1]));n=parseFloat(i[4])}else if(i=e.match(/(\w+)/)){if("transparent"==i[1])return[0,0,0,0];if(!(t=l[i[1]]))return}for(o=0;o<t.length;o++)t[o]=m(t[o],0,255);return n=n||0==n?m(n,0,1):1,t[3]=n,t}}function d(e){if(e){var t=e.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[m(parseInt(t[1]),0,360),m(parseFloat(t[2]),0,100),m(parseFloat(t[3]),0,100),m(isNaN(n)?1:n,0,1)]}}}function h(e){if(e){var t=e.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[m(parseInt(t[1]),0,360),m(parseFloat(t[2]),0,100),m(parseFloat(t[3]),0,100),m(isNaN(n)?1:n,0,1)]}}}function f(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function p(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function g(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function m(e,t,n){return Math.min(Math.max(t,e),n)}function v(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var y={};for(var b in l)y[l[b]]=b;var x=function(e){return e instanceof x?e:this instanceof x?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof e?(t=c.getRgba(e))?this.setValues("rgb",t):(t=c.getHsla(e))?this.setValues("hsl",t):(t=c.getHwb(e))&&this.setValues("hwb",t):"object"==typeof e&&(void 0!==(t=e).r||void 0!==t.red?this.setValues("rgb",t):void 0!==t.l||void 0!==t.lightness?this.setValues("hsl",t):void 0!==t.v||void 0!==t.value?this.setValues("hsv",t):void 0!==t.w||void 0!==t.whiteness?this.setValues("hwb",t):void 0===t.c&&void 0===t.cyan||this.setValues("cmyk",t)))):new x(e);var t};x.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e=(e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return c.hexString(this.values.rgb)},rgbString:function(){return c.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return c.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return c.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return c.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return c.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return c.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return c.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;n<e.length;n++){var i=e[n]/255;t[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=this,i=e,r=void 0===t?.5:t,o=2*r-1,a=n.alpha()-i.alpha(),s=((o*a==-1?o:(o+a)/(1+o*a))+1)/2,l=1-s;return this.rgb(s*n.red()+l*i.red(),s*n.green()+l*i.green(),s*n.blue()+l*i.blue()).alpha(n.alpha()*r+i.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new x,i=this.values,r=n.values;for(var o in i)i.hasOwnProperty(o)&&(e=i[o],"[object Array]"===(t={}.toString.call(e))?r[o]=e.slice(0):"[object Number]"===t?r[o]=e:console.error("unexpected color value:",e));return n}},x.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},x.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},x.prototype.getValues=function(e){for(var t=this.values,n={},i=0;i<e.length;i++)n[e.charAt(i)]=t[e][i];return 1!==t.alpha&&(n.a=t.alpha),n},x.prototype.setValues=function(e,t){var n,i,r=this.values,o=this.spaces,a=this.maxes,l=1;if(this.valid=!0,"alpha"===e)l=t;else if(t.length)r[e]=t.slice(0,e.length),l=t[e.length];else if(void 0!==t[e.charAt(0)]){for(n=0;n<e.length;n++)r[e][n]=t[e.charAt(n)];l=t.a}else if(void 0!==t[o[e][0]]){var c=o[e];for(n=0;n<e.length;n++)r[e][n]=t[c[n]];l=t.alpha}if(r.alpha=Math.max(0,Math.min(1,void 0===l?r.alpha:l)),"alpha"===e)return!1;for(n=0;n<e.length;n++)i=Math.max(0,Math.min(a[e][n],r[e][n])),r[e][n]=Math.round(i);for(var u in o)u!==e&&(r[u]=s[e][u](r[e]));return!0},x.prototype.setSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"==typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n),this)},x.prototype.setChannel=function(e,t,n){var i=this.values[e];return void 0===n?i[t]:(n===i[t]||(i[t]=n,this.setValues(e,i)),this)},"undefined"!=typeof window&&(window.Color=x);var w=x;function A(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}var _,C={noop:function(){},uid:(_=0,function(){return _++}),isNullOrUndef:function(e){return null==e},isArray:function(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)},isObject:function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)},isFinite:function(e){return("number"==typeof e||e instanceof Number)&&isFinite(e)},valueOrDefault:function(e,t){return void 0===e?t:e},valueAtIndexOrDefault:function(e,t,n){return C.valueOrDefault(C.isArray(e)?e[t]:e,n)},callback:function(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)},each:function(e,t,n,i){var r,o,a;if(C.isArray(e))if(o=e.length,i)for(r=o-1;r>=0;r--)t.call(n,e[r],r);else for(r=0;r<o;r++)t.call(n,e[r],r);else if(C.isObject(e))for(o=(a=Object.keys(e)).length,r=0;r<o;r++)t.call(n,e[a[r]],a[r])},arrayEquals:function(e,t){var n,i,r,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(r=e[n],o=t[n],r instanceof Array&&o instanceof Array){if(!C.arrayEquals(r,o))return!1}else if(r!==o)return!1;return!0},clone:function(e){if(C.isArray(e))return e.map(C.clone);if(C.isObject(e)){for(var t=Object.create(e),n=Object.keys(e),i=n.length,r=0;r<i;++r)t[n[r]]=C.clone(e[n[r]]);return t}return e},_merger:function(e,t,n,i){if(A(e)){var r=t[e],o=n[e];C.isObject(r)&&C.isObject(o)?C.merge(r,o,i):t[e]=C.clone(o)}},_mergerIf:function(e,t,n){if(A(e)){var i=t[e],r=n[e];C.isObject(i)&&C.isObject(r)?C.mergeIf(i,r):t.hasOwnProperty(e)||(t[e]=C.clone(r))}},merge:function(e,t,n){var i,r,o,a,s,l=C.isArray(t)?t:[t],c=l.length;if(!C.isObject(e))return e;for(i=(n=n||{}).merger||C._merger,r=0;r<c;++r)if(t=l[r],C.isObject(t))for(s=0,a=(o=Object.keys(t)).length;s<a;++s)i(o[s],e,t,n);return e},mergeIf:function(e,t){return C.merge(e,t,{merger:C._mergerIf})},extend:Object.assign||function(e){return C.merge(e,[].slice.call(arguments,1),{merger:function(e,t,n){t[e]=n[e]}})},inherits:function(e){var t=this,n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},i=function(){this.constructor=n};return i.prototype=t.prototype,n.prototype=new i,n.extend=C.inherits,e&&C.extend(n.prototype,e),n.__super__=t.prototype,n},_deprecated:function(e,t,n,i){void 0!==t&&console.warn(e+': "'+n+'" is deprecated. Please use "'+i+'" instead')}},M=C;C.callCallback=C.callback,C.indexOf=function(e,t,n){return Array.prototype.indexOf.call(e,t,n)},C.getValueOrDefault=C.valueOrDefault,C.getValueAtIndexOrDefault=C.valueAtIndexOrDefault;var k={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:1===e?1:(n||(n=.3),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:1===e?1:(n||(n=.3),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:2==(e/=.5)?1:(n||(n=.45),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),e<1?i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-k.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*k.easeInBounce(2*e):.5*k.easeOutBounce(2*e-1)+.5}},S={effects:k};M.easingEffects=k;var I=Math.PI,L=I/180,T=2*I,D=I/2,O=I/4,j=2*I/3,N={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,i,r,o){if(o){var a=Math.min(o,r/2,i/2),s=t+a,l=n+a,c=t+i-a,u=n+r-a;e.moveTo(t,l),s<c&&l<u?(e.arc(s,l,a,-I,-D),e.arc(c,l,a,-D,0),e.arc(c,u,a,0,D),e.arc(s,u,a,D,I)):s<c?(e.moveTo(s,n),e.arc(c,l,a,-D,D),e.arc(s,l,a,D,I+D)):l<u?(e.arc(s,l,a,-I,0),e.arc(s,u,a,0,I)):e.arc(s,l,a,-I,I),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,i,r)},drawPoint:function(e,t,n,i,r,o){var a,s,l,c,u,d=(o||0)*L;if(t&&"object"==typeof t&&("[object HTMLImageElement]"===(a=t.toString())||"[object HTMLCanvasElement]"===a))return e.save(),e.translate(i,r),e.rotate(d),e.drawImage(t,-t.width/2,-t.height/2,t.width,t.height),void e.restore();if(!(isNaN(n)||n<=0)){switch(e.beginPath(),t){default:e.arc(i,r,n,0,T),e.closePath();break;case"triangle":e.moveTo(i+Math.sin(d)*n,r-Math.cos(d)*n),d+=j,e.lineTo(i+Math.sin(d)*n,r-Math.cos(d)*n),d+=j,e.lineTo(i+Math.sin(d)*n,r-Math.cos(d)*n),e.closePath();break;case"rectRounded":c=n-(u=.516*n),s=Math.cos(d+O)*c,l=Math.sin(d+O)*c,e.arc(i-s,r-l,u,d-I,d-D),e.arc(i+l,r-s,u,d-D,d),e.arc(i+s,r+l,u,d,d+D),e.arc(i-l,r+s,u,d+D,d+I),e.closePath();break;case"rect":if(!o){c=Math.SQRT1_2*n,e.rect(i-c,r-c,2*c,2*c);break}d+=O;case"rectRot":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+l,r-s),e.lineTo(i+s,r+l),e.lineTo(i-l,r+s),e.closePath();break;case"crossRot":d+=O;case"cross":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+s,r+l),e.moveTo(i+l,r-s),e.lineTo(i-l,r+s);break;case"star":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+s,r+l),e.moveTo(i+l,r-s),e.lineTo(i-l,r+s),d+=O,s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+s,r+l),e.moveTo(i+l,r-s),e.lineTo(i-l,r+s);break;case"line":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+s,r+l);break;case"dash":e.moveTo(i,r),e.lineTo(i+Math.cos(d)*n,r+Math.sin(d)*n)}e.fill(),e.stroke()}},_isPointInArea:function(e,t){var n=1e-6;return e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,n,i){var r=n.steppedLine;if(r){if("middle"===r){var o=(t.x+n.x)/2;e.lineTo(o,i?n.y:t.y),e.lineTo(o,i?t.y:n.y)}else"after"===r&&!i||"after"!==r&&i?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}else n.tension?e.bezierCurveTo(i?t.controlPointPreviousX:t.controlPointNextX,i?t.controlPointPreviousY:t.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):e.lineTo(n.x,n.y)}},E=N;M.clear=N.clear,M.drawRoundedRectangle=function(e){e.beginPath(),N.roundedRect.apply(N,arguments)};var P={_set:function(e,t){return M.merge(this[e]||(this[e]={}),t)}};P._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var F=P,z=M.valueOrDefault;var R={toLineHeight:function(e,t){var n=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e},toPadding:function(e){var t,n,i,r;return M.isObject(e)?(t=+e.top||0,n=+e.right||0,i=+e.bottom||0,r=+e.left||0):t=n=i=r=+e||0,{top:t,right:n,bottom:i,left:r,height:t+i,width:r+n}},_parseFont:function(e){var t=F.global,n=z(e.fontSize,t.defaultFontSize),i={family:z(e.fontFamily,t.defaultFontFamily),lineHeight:M.options.toLineHeight(z(e.lineHeight,t.defaultLineHeight),n),size:n,style:z(e.fontStyle,t.defaultFontStyle),weight:null,string:""};return i.string=function(e){return!e||M.isNullOrUndef(e.size)||M.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(i),i},resolve:function(e,t,n,i){var r,o,a,s=!0;for(r=0,o=e.length;r<o;++r)if(void 0!==(a=e[r])&&(void 0!==t&&"function"==typeof a&&(a=a(t),s=!1),void 0!==n&&M.isArray(a)&&(a=a[n],s=!1),void 0!==a))return i&&!s&&(i.cacheable=!1),a}},B={_factorize:function(e){var t,n=[],i=Math.sqrt(e);for(t=1;t<i;t++)e%t==0&&(n.push(t),n.push(e/t));return i===(0|i)&&n.push(i),n.sort((function(e,t){return e-t})).pop(),n},log10:Math.log10||function(e){var t=Math.log(e)*Math.LOG10E,n=Math.round(t);return e===Math.pow(10,n)?n:t}},W=B;M.log10=B.log10;var Y=M,U=S,H=E,V=R,Z=W,G={getRtlAdapter:function(e,t,n){return e?function(e,t){return{x:function(n){return e+e+t-n},setWidth:function(e){t=e},textAlign:function(e){return"center"===e?e:"right"===e?"left":"right"},xPlus:function(e,t){return e-t},leftForLtr:function(e,t){return e-t}}}(t,n):{x:function(e){return e},setWidth:function(e){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e,t){return e}}},overrideTextDirection:function(e,t){var n,i;"ltr"!==t&&"rtl"!==t||(i=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=i)},restoreTextDirection:function(e){var t=e.prevTextDirection;void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}};Y.easing=U,Y.canvas=H,Y.options=V,Y.math=Z,Y.rtl=G;var Q=function(e){Y.extend(this,e),this.initialize.apply(this,arguments)};Y.extend(Q.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=Y.extend({},e._model)),e._start={},e},transition:function(e){var t=this,n=t._model,i=t._start,r=t._view;return n&&1!==e?(r||(r=t._view={}),i||(i=t._start={}),function(e,t,n,i){var r,o,a,s,l,c,u,d,h,f=Object.keys(n);for(r=0,o=f.length;r<o;++r)if(c=n[a=f[r]],t.hasOwnProperty(a)||(t[a]=c),(s=t[a])!==c&&"_"!==a[0]){if(e.hasOwnProperty(a)||(e[a]=s),(u=typeof c)==typeof(l=e[a]))if("string"===u){if((d=w(l)).valid&&(h=w(c)).valid){t[a]=h.mix(d,i).rgbString();continue}}else if(Y.isFinite(l)&&Y.isFinite(c)){t[a]=l+(c-l)*i;continue}t[a]=c}}(i,r,n,e),t):(t._view=Y.extend({},n),t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return Y.isNumber(this._model.x)&&Y.isNumber(this._model.y)}}),Q.extend=Y.inherits;var J=Q,q=J.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),X=q;Object.defineProperty(q.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(q.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}}),F._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:Y.noop,onComplete:Y.noop}});var K={animations:[],request:null,addAnimation:function(e,t,n,i){var r,o,a=this.animations;for(t.chart=e,t.startTime=Date.now(),t.duration=n,i||(e.animating=!0),r=0,o=a.length;r<o;++r)if(a[r].chart===e)return void(a[r]=t);a.push(t),1===a.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=Y.findIndex(this.animations,(function(t){return t.chart===e}));-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var e=this;null===e.request&&(e.request=Y.requestAnimFrame.call(window,(function(){e.request=null,e.startDigest()})))},startDigest:function(){var e=this;e.advance(),e.animations.length>0&&e.requestAnimationFrame()},advance:function(){for(var e,t,n,i,r=this.animations,o=0;o<r.length;)t=(e=r[o]).chart,n=e.numSteps,i=Math.floor((Date.now()-e.startTime)/e.duration*n)+1,e.currentStep=Math.min(i,n),Y.callback(e.render,[t,e],t),Y.callback(e.onAnimationProgress,[e],t),e.currentStep>=n?(Y.callback(e.onAnimationComplete,[e],t),t.animating=!1,r.splice(o,1)):++o}},$=Y.options.resolve,ee=["push","pop","shift","splice","unshift"];function te(e,t){var n=e._chartjs;if(n){var i=n.listeners,r=i.indexOf(t);-1!==r&&i.splice(r,1),i.length>0||(ee.forEach((function(t){delete e[t]})),delete e._chartjs)}}var ne=function(e,t){this.initialize(e,t)};Y.extend(ne.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(e,t){var n=this;n.chart=e,n.index=t,n.linkScales(),n.addElements(),n._type=n.getMeta().type},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),n=e.chart,i=n.scales,r=e.getDataset(),o=n.options.scales;null!==t.xAxisID&&t.xAxisID in i&&!r.xAxisID||(t.xAxisID=r.xAxisID||o.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in i&&!r.yAxisID||(t.yAxisID=r.yAxisID||o.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&te(this._data,this)},createMetaDataset:function(){var e=this,t=e.datasetElementType;return t&&new t({_chart:e.chart,_datasetIndex:e.index})},createMetaData:function(e){var t=this,n=t.dataElementType;return n&&new n({_chart:t.chart,_datasetIndex:t.index,_index:e})},addElements:function(){var e,t,n=this,i=n.getMeta(),r=n.getDataset().data||[],o=i.data;for(e=0,t=r.length;e<t;++e)o[e]=o[e]||n.createMetaData(e);i.dataset=i.dataset||n.createMetaDataset()},addElementAndReset:function(e){var t=this.createMetaData(e);this.getMeta().data.splice(e,0,t),this.updateElement(t,e,!0)},buildOrUpdateElements:function(){var e,t,n=this,i=n.getDataset(),r=i.data||(i.data=[]);n._data!==r&&(n._data&&te(n._data,n),r&&Object.isExtensible(r)&&(t=n,(e=r)._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),ee.forEach((function(t){var n="onData"+t.charAt(0).toUpperCase()+t.slice(1),i=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){var t=Array.prototype.slice.call(arguments),r=i.apply(this,t);return Y.each(e._chartjs.listeners,(function(e){"function"==typeof e[n]&&e[n].apply(e,t)})),r}})})))),n._data=r),n.resyncElements()},_configure:function(){var e=this;e._config=Y.merge(Object.create(null),[e.chart.options.datasets[e._type],e.getDataset()],{merger:function(e,t,n){"_meta"!==e&&"data"!==e&&Y._merger(e,t,n)}})},_update:function(e){var t=this;t._configure(),t._cachedDataOpts=null,t.update(e)},update:Y.noop,transition:function(e){for(var t=this.getMeta(),n=t.data||[],i=n.length,r=0;r<i;++r)n[r].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],n=t.length,i=0;for(e.dataset&&e.dataset.draw();i<n;++i)t[i].draw()},getStyle:function(e){var t,n=this,i=n.getMeta(),r=i.dataset;return n._configure(),r&&void 0===e?t=n._resolveDatasetElementOptions(r||{}):(e=e||0,t=n._resolveDataElementOptions(i.data[e]||{},e)),!1!==t.fill&&null!==t.fill||(t.backgroundColor=t.borderColor),t},_resolveDatasetElementOptions:function(e,t){var n,i,r,o,a=this,s=a.chart,l=a._config,c=e.custom||{},u=s.options.elements[a.datasetElementType.prototype._type]||{},d=a._datasetElementOptions,h={},f={chart:s,dataset:a.getDataset(),datasetIndex:a.index,hover:t};for(n=0,i=d.length;n<i;++n)r=d[n],o=t?"hover"+r.charAt(0).toUpperCase()+r.slice(1):r,h[r]=$([c[o],l[o],u[o]],f);return h},_resolveDataElementOptions:function(e,t){var n=this,i=e&&e.custom,r=n._cachedDataOpts;if(r&&!i)return r;var o,a,s,l,c=n.chart,u=n._config,d=c.options.elements[n.dataElementType.prototype._type]||{},h=n._dataElementOptions,f={},p={chart:c,dataIndex:t,dataset:n.getDataset(),datasetIndex:n.index},g={cacheable:!i};if(i=i||{},Y.isArray(h))for(a=0,s=h.length;a<s;++a)f[l=h[a]]=$([i[l],u[l],d[l]],p,t,g);else for(a=0,s=(o=Object.keys(h)).length;a<s;++a)f[l=o[a]]=$([i[l],u[h[l]],u[l],d[l]],p,t,g);return g.cacheable&&(n._cachedDataOpts=Object.freeze(f)),f},removeHoverStyle:function(e){Y.merge(e._model,e.$previousStyle||{}),delete e.$previousStyle},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,i=e.custom||{},r=e._model,o=Y.getHoverColor;e.$previousStyle={backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderWidth:r.borderWidth},r.backgroundColor=$([i.hoverBackgroundColor,t.hoverBackgroundColor,o(r.backgroundColor)],void 0,n),r.borderColor=$([i.hoverBorderColor,t.hoverBorderColor,o(r.borderColor)],void 0,n),r.borderWidth=$([i.hoverBorderWidth,t.hoverBorderWidth,r.borderWidth],void 0,n)},_removeDatasetHoverStyle:function(){var e=this.getMeta().dataset;e&&this.removeHoverStyle(e)},_setDatasetHoverStyle:function(){var e,t,n,i,r,o,a=this.getMeta().dataset,s={};if(a){for(o=a._model,r=this._resolveDatasetElementOptions(a,!0),e=0,t=(i=Object.keys(r)).length;e<t;++e)s[n=i[e]]=o[n],o[n]=r[n];a.$previousStyle=s}},resyncElements:function(){var e=this,t=e.getMeta(),n=e.getDataset().data,i=t.data.length,r=n.length;r<i?t.data.splice(r,i-r):r>i&&e.insertElements(i,r-i)},insertElements:function(e,t){for(var n=0;n<t;++n)this.addElementAndReset(e+n)},onDataPush:function(){var e=arguments.length;this.insertElements(this.getDataset().data.length-e,e)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(e,t){this.getMeta().data.splice(e,t),this.insertElements(e,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),ne.extend=Y.inherits;var ie=ne,re=2*Math.PI;function oe(e,t){var n=t.startAngle,i=t.endAngle,r=t.pixelMargin,o=r/t.outerRadius,a=t.x,s=t.y;e.beginPath(),e.arc(a,s,t.outerRadius,n-o,i+o),t.innerRadius>r?(o=r/t.innerRadius,e.arc(a,s,t.innerRadius-r,i+o,n-o,!0)):e.arc(a,s,r,i+Math.PI/2,n-Math.PI/2),e.closePath(),e.clip()}function ae(e,t,n){var i="inner"===t.borderAlign;i?(e.lineWidth=2*t.borderWidth,e.lineJoin="round"):(e.lineWidth=t.borderWidth,e.lineJoin="bevel"),n.fullCircles&&function(e,t,n,i){var r,o=n.endAngle;for(i&&(n.endAngle=n.startAngle+re,oe(e,n),n.endAngle=o,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=re,n.fullCircles--)),e.beginPath(),e.arc(n.x,n.y,n.innerRadius,n.startAngle+re,n.startAngle,!0),r=0;r<n.fullCircles;++r)e.stroke();for(e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.startAngle+re),r=0;r<n.fullCircles;++r)e.stroke()}(e,t,n,i),i&&oe(e,n),e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.endAngle),e.arc(n.x,n.y,n.innerRadius,n.endAngle,n.startAngle,!0),e.closePath(),e.stroke()}F._set("global",{elements:{arc:{backgroundColor:F.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var se=J.extend({_type:"arc",inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(e,t){var n=this._view;if(n){for(var i=Y.getAngleFromPoint(n,{x:e,y:t}),r=i.angle,o=i.distance,a=n.startAngle,s=n.endAngle;s<a;)s+=re;for(;r>s;)r-=re;for(;r<a;)r+=re;var l=r>=a&&r<=s,c=o>=n.innerRadius&&o<=n.outerRadius;return l&&c}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e,t=this._chart.ctx,n=this._view,i="inner"===n.borderAlign?.33:0,r={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-i,0),pixelMargin:i,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/re)};if(t.save(),t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,r.fullCircles){for(r.endAngle=r.startAngle+re,t.beginPath(),t.arc(r.x,r.y,r.outerRadius,r.startAngle,r.endAngle),t.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),t.closePath(),e=0;e<r.fullCircles;++e)t.fill();r.endAngle=r.startAngle+n.circumference%re}t.beginPath(),t.arc(r.x,r.y,r.outerRadius,r.startAngle,r.endAngle),t.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),t.closePath(),t.fill(),n.borderWidth&&ae(t,n,r),t.restore()}}),le=Y.valueOrDefault,ce=F.global.defaultColor;F._set("global",{elements:{line:{tension:.4,backgroundColor:ce,borderWidth:3,borderColor:ce,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var ue=J.extend({_type:"line",draw:function(){var e,t,n,i=this,r=i._view,o=i._chart.ctx,a=r.spanGaps,s=i._children.slice(),l=F.global,c=l.elements.line,u=-1,d=i._loop;if(s.length){if(i._loop){for(e=0;e<s.length;++e)if(t=Y.previousItem(s,e),!s[e]._view.skip&&t._view.skip){s=s.slice(e).concat(s.slice(0,e)),d=a;break}d&&s.push(s[0])}for(o.save(),o.lineCap=r.borderCapStyle||c.borderCapStyle,o.setLineDash&&o.setLineDash(r.borderDash||c.borderDash),o.lineDashOffset=le(r.borderDashOffset,c.borderDashOffset),o.lineJoin=r.borderJoinStyle||c.borderJoinStyle,o.lineWidth=le(r.borderWidth,c.borderWidth),o.strokeStyle=r.borderColor||l.defaultColor,o.beginPath(),(n=s[0]._view).skip||(o.moveTo(n.x,n.y),u=0),e=1;e<s.length;++e)n=s[e]._view,t=-1===u?Y.previousItem(s,e):s[u],n.skip||(u!==e-1&&!a||-1===u?o.moveTo(n.x,n.y):Y.canvas.lineTo(o,t._view,n),u=e);d&&o.closePath(),o.stroke(),o.restore()}}}),de=Y.valueOrDefault,he=F.global.defaultColor;function fe(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}F._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:he,borderColor:he,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var pe=J.extend({_type:"point",inRange:function(e,t){var n=this._view;return!!n&&Math.pow(e-n.x,2)+Math.pow(t-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:fe,inXRange:fe,inYRange:function(e){var t=this._view;return!!t&&Math.abs(e-t.y)<t.radius+t.hitRadius},getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var t=this._view,n=this._chart.ctx,i=t.pointStyle,r=t.rotation,o=t.radius,a=t.x,s=t.y,l=F.global,c=l.defaultColor;t.skip||(void 0===e||Y.canvas._isPointInArea(t,e))&&(n.strokeStyle=t.borderColor||c,n.lineWidth=de(t.borderWidth,l.elements.point.borderWidth),n.fillStyle=t.backgroundColor||c,Y.canvas.drawPoint(n,i,o,a,s,r))}}),ge=F.global.defaultColor;function me(e){return e&&void 0!==e.width}function ve(e){var t,n,i,r,o;return me(e)?(o=e.width/2,t=e.x-o,n=e.x+o,i=Math.min(e.y,e.base),r=Math.max(e.y,e.base)):(o=e.height/2,t=Math.min(e.x,e.base),n=Math.max(e.x,e.base),i=e.y-o,r=e.y+o),{left:t,top:i,right:n,bottom:r}}function ye(e,t,n){return e===t?n:e===n?t:e}function be(e,t,n){var i,r,o,a,s=e.borderWidth,l=function(e){var t=e.borderSkipped,n={};return t?(e.horizontal?e.base>e.x&&(t=ye(t,"left","right")):e.base<e.y&&(t=ye(t,"bottom","top")),n[t]=!0,n):n}(e);return Y.isObject(s)?(i=+s.top||0,r=+s.right||0,o=+s.bottom||0,a=+s.left||0):i=r=o=a=+s||0,{t:l.top||i<0?0:i>n?n:i,r:l.right||r<0?0:r>t?t:r,b:l.bottom||o<0?0:o>n?n:o,l:l.left||a<0?0:a>t?t:a}}function xe(e,t,n){var i=null===t,r=null===n,o=!(!e||i&&r)&&ve(e);return o&&(i||t>=o.left&&t<=o.right)&&(r||n>=o.top&&n<=o.bottom)}F._set("global",{elements:{rectangle:{backgroundColor:ge,borderColor:ge,borderSkipped:"bottom",borderWidth:0}}});var we=J.extend({_type:"rectangle",draw:function(){var e=this._chart.ctx,t=this._view,n=function(e){var t=ve(e),n=t.right-t.left,i=t.bottom-t.top,r=be(e,n/2,i/2);return{outer:{x:t.left,y:t.top,w:n,h:i},inner:{x:t.left+r.l,y:t.top+r.t,w:n-r.l-r.r,h:i-r.t-r.b}}}(t),i=n.outer,r=n.inner;e.fillStyle=t.backgroundColor,e.fillRect(i.x,i.y,i.w,i.h),i.w===r.w&&i.h===r.h||(e.save(),e.beginPath(),e.rect(i.x,i.y,i.w,i.h),e.clip(),e.fillStyle=t.borderColor,e.rect(r.x,r.y,r.w,r.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return xe(this._view,e,t)},inLabelRange:function(e,t){var n=this._view;return me(n)?xe(n,e,null):xe(n,null,t)},inXRange:function(e){return xe(this._view,e,null)},inYRange:function(e){return xe(this._view,null,e)},getCenterPoint:function(){var e,t,n=this._view;return me(n)?(e=n.x,t=(n.y+n.base)/2):(e=(n.x+n.base)/2,t=n.y),{x:e,y:t}},getArea:function(){var e=this._view;return me(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}}),Ae={},_e=se,Ce=ue,Me=pe,ke=we;Ae.Arc=_e,Ae.Line=Ce,Ae.Point=Me,Ae.Rectangle=ke;var Se=Y._deprecated,Ie=Y.valueOrDefault;function Le(e,t,n){var i,r,o=n.barThickness,a=t.stackCount,s=t.pixels[e],l=Y.isNullOrUndef(o)?function(e,t){var n,i,r,o,a=e._length;for(r=1,o=t.length;r<o;++r)a=Math.min(a,Math.abs(t[r]-t[r-1]));for(r=0,o=e.getTicks().length;r<o;++r)i=e.getPixelForTick(r),a=r>0?Math.min(a,Math.abs(i-n)):a,n=i;return a}(t.scale,t.pixels):-1;return Y.isNullOrUndef(o)?(i=l*n.categoryPercentage,r=n.barPercentage):(i=o*a,r=1),{chunk:i/a,ratio:r,start:s-i/2}}F._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),F._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var Te=ie.extend({dataElementType:Ae.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var e,t,n=this;ie.prototype.initialize.apply(n,arguments),(e=n.getMeta()).stack=n.getDataset().stack,e.bar=!0,t=n._getIndexScale().options,Se("bar chart",t.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),Se("bar chart",t.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),Se("bar chart",t.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),Se("bar chart",n._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),Se("bar chart",t.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(e){var t,n,i=this,r=i.getMeta().data;for(i._ruler=i.getRuler(),t=0,n=r.length;t<n;++t)i.updateElement(r[t],t,e)},updateElement:function(e,t,n){var i=this,r=i.getMeta(),o=i.getDataset(),a=i._resolveDataElementOptions(e,t);e._xScale=i.getScaleForId(r.xAxisID),e._yScale=i.getScaleForId(r.yAxisID),e._datasetIndex=i.index,e._index=t,e._model={backgroundColor:a.backgroundColor,borderColor:a.borderColor,borderSkipped:a.borderSkipped,borderWidth:a.borderWidth,datasetLabel:o.label,label:i.chart.data.labels[t]},Y.isArray(o.data[t])&&(e._model.borderSkipped=null),i._updateElementGeometry(e,t,n,a),e.pivot()},_updateElementGeometry:function(e,t,n,i){var r=this,o=e._model,a=r._getValueScale(),s=a.getBasePixel(),l=a.isHorizontal(),c=r._ruler||r.getRuler(),u=r.calculateBarValuePixels(r.index,t,i),d=r.calculateBarIndexPixels(r.index,t,c,i);o.horizontal=l,o.base=n?s:u.base,o.x=l?n?s:u.head:d.center,o.y=l?d.center:n?s:u.head,o.height=l?d.size:void 0,o.width=l?void 0:d.size},_getStacks:function(e){var t,n,i=this._getIndexScale(),r=i._getMatchingVisibleMetas(this._type),o=i.options.stacked,a=r.length,s=[];for(t=0;t<a&&(n=r[t],(!1===o||-1===s.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&s.push(n.stack),n.index!==e);++t);return s},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,t){var n=this._getStacks(e),i=void 0!==t?n.indexOf(t):-1;return-1===i?n.length-1:i},getRuler:function(){var e,t,n=this,i=n._getIndexScale(),r=[];for(e=0,t=n.getMeta().data.length;e<t;++e)r.push(i.getPixelForValue(null,e,n.index));return{pixels:r,start:i._startPixel,end:i._endPixel,stackCount:n.getStackCount(),scale:i}},calculateBarValuePixels:function(e,t,n){var i,r,o,a,s,l,c,u=this,d=u.chart,h=u._getValueScale(),f=h.isHorizontal(),p=d.data.datasets,g=h._getMatchingVisibleMetas(u._type),m=h._parseValue(p[e].data[t]),v=n.minBarLength,y=h.options.stacked,b=u.getMeta().stack,x=void 0===m.start?0:m.max>=0&&m.min>=0?m.min:m.max,w=void 0===m.start?m.end:m.max>=0&&m.min>=0?m.max-m.min:m.min-m.max,A=g.length;if(y||void 0===y&&void 0!==b)for(i=0;i<A&&(r=g[i]).index!==e;++i)r.stack===b&&(o=void 0===(c=h._parseValue(p[r.index].data[t])).start?c.end:c.min>=0&&c.max>=0?c.max:c.min,(m.min<0&&o<0||m.max>=0&&o>0)&&(x+=o));return a=h.getPixelForValue(x),l=(s=h.getPixelForValue(x+w))-a,void 0!==v&&Math.abs(l)<v&&(l=v,s=w>=0&&!f||w<0&&f?a-v:a+v),{size:l,base:a,head:s,center:s+l/2}},calculateBarIndexPixels:function(e,t,n,i){var r="flex"===i.barThickness?function(e,t,n){var i,r=t.pixels,o=r[e],a=e>0?r[e-1]:null,s=e<r.length-1?r[e+1]:null,l=n.categoryPercentage;return null===a&&(a=o-(null===s?t.end-t.start:s-o)),null===s&&(s=o+o-a),i=o-(o-Math.min(a,s))/2*l,{chunk:Math.abs(s-a)/2*l/t.stackCount,ratio:n.barPercentage,start:i}}(t,n,i):Le(t,n,i),o=this.getStackIndex(e,this.getMeta().stack),a=r.start+r.chunk*o+r.chunk/2,s=Math.min(Ie(i.maxBarThickness,1/0),r.chunk*r.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}},draw:function(){var e=this,t=e.chart,n=e._getValueScale(),i=e.getMeta().data,r=e.getDataset(),o=i.length,a=0;for(Y.canvas.clipArea(t.ctx,t.chartArea);a<o;++a){var s=n._parseValue(r.data[a]);isNaN(s.min)||isNaN(s.max)||i[a].draw()}Y.canvas.unclipArea(t.ctx)},_resolveDataElementOptions:function(){var e=this,t=Y.extend({},ie.prototype._resolveDataElementOptions.apply(e,arguments)),n=e._getIndexScale().options,i=e._getValueScale().options;return t.barPercentage=Ie(n.barPercentage,t.barPercentage),t.barThickness=Ie(n.barThickness,t.barThickness),t.categoryPercentage=Ie(n.categoryPercentage,t.categoryPercentage),t.maxBarThickness=Ie(n.maxBarThickness,t.maxBarThickness),t.minBarLength=Ie(i.minBarLength,t.minBarLength),t}}),De=Y.valueOrDefault,Oe=Y.options.resolve;F._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.datasets[e.datasetIndex].label||"",i=t.datasets[e.datasetIndex].data[e.index];return n+": ("+e.xLabel+", "+e.yLabel+", "+i.r+")"}}}});var je=ie.extend({dataElementType:Ae.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(e){var t=this,n=t.getMeta().data;Y.each(n,(function(n,i){t.updateElement(n,i,e)}))},updateElement:function(e,t,n){var i=this,r=i.getMeta(),o=e.custom||{},a=i.getScaleForId(r.xAxisID),s=i.getScaleForId(r.yAxisID),l=i._resolveDataElementOptions(e,t),c=i.getDataset().data[t],u=i.index,d=n?a.getPixelForDecimal(.5):a.getPixelForValue("object"==typeof c?c:NaN,t,u),h=n?s.getBasePixel():s.getPixelForValue(c,t,u);e._xScale=a,e._yScale=s,e._options=l,e._datasetIndex=u,e._index=t,e._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,rotation:l.rotation,radius:n?0:l.radius,skip:o.skip||isNaN(d)||isNaN(h),x:d,y:h},e.pivot()},setHoverStyle:function(e){var t=e._model,n=e._options,i=Y.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=De(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=De(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=De(n.hoverBorderWidth,n.borderWidth),t.radius=n.radius+n.hoverRadius},_resolveDataElementOptions:function(e,t){var n=this,i=n.chart,r=n.getDataset(),o=e.custom||{},a=r.data[t]||{},s=ie.prototype._resolveDataElementOptions.apply(n,arguments),l={chart:i,dataIndex:t,dataset:r,datasetIndex:n.index};return n._cachedDataOpts===s&&(s=Y.extend({},s)),s.radius=Oe([o.radius,a.r,n._config.radius,i.options.elements.point.radius],l,t),s}}),Ne=Y.valueOrDefault,Ee=Math.PI,Pe=2*Ee,Fe=Ee/2;F._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t,n,i,r=document.createElement("ul"),o=e.data,a=o.datasets,s=o.labels;if(r.setAttribute("class",e.id+"-legend"),a.length)for(t=0,n=a[0].data.length;t<n;++t)(i=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=a[0].backgroundColor[t],s[t]&&i.appendChild(document.createTextNode(s[t]));return r.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(n,i){var r=e.getDatasetMeta(0),o=r.controller.getStyle(i);return{text:n,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,hidden:isNaN(t.datasets[0].data[i])||r.data[i].hidden,index:i}})):[]}},onClick:function(e,t){var n,i,r,o=t.index,a=this.chart;for(n=0,i=(a.data.datasets||[]).length;n<i;++n)(r=a.getDatasetMeta(n)).data[o]&&(r.data[o].hidden=!r.data[o].hidden);a.update()}},cutoutPercentage:50,rotation:-Fe,circumference:Pe,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.labels[e.index],i=": "+t.datasets[e.datasetIndex].data[e.index];return Y.isArray(n)?(n=n.slice())[0]+=i:n+=i,n}}}});var ze=ie.extend({dataElementType:Ae.Arc,linkScales:Y.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],getRingIndex:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&++t;return t},update:function(e){var t,n,i,r,o=this,a=o.chart,s=a.chartArea,l=a.options,c=1,u=1,d=0,h=0,f=o.getMeta(),p=f.data,g=l.cutoutPercentage/100||0,m=l.circumference,v=o._getRingWeight(o.index);if(m<Pe){var y=l.rotation%Pe,b=(y+=y>=Ee?-Pe:y<-Ee?Pe:0)+m,x=Math.cos(y),w=Math.sin(y),A=Math.cos(b),_=Math.sin(b),C=y<=0&&b>=0||b>=Pe,M=y<=Fe&&b>=Fe||b>=Pe+Fe,k=y<=-Fe&&b>=-Fe||b>=Ee+Fe,S=y===-Ee||b>=Ee?-1:Math.min(x,x*g,A,A*g),I=k?-1:Math.min(w,w*g,_,_*g),L=C?1:Math.max(x,x*g,A,A*g),T=M?1:Math.max(w,w*g,_,_*g);c=(L-S)/2,u=(T-I)/2,d=-(L+S)/2,h=-(T+I)/2}for(i=0,r=p.length;i<r;++i)p[i]._options=o._resolveDataElementOptions(p[i],i);for(a.borderWidth=o.getMaxBorderWidth(),t=(s.right-s.left-a.borderWidth)/c,n=(s.bottom-s.top-a.borderWidth)/u,a.outerRadius=Math.max(Math.min(t,n)/2,0),a.innerRadius=Math.max(a.outerRadius*g,0),a.radiusLength=(a.outerRadius-a.innerRadius)/(o._getVisibleDatasetWeightTotal()||1),a.offsetX=d*a.outerRadius,a.offsetY=h*a.outerRadius,f.total=o.calculateTotal(),o.outerRadius=a.outerRadius-a.radiusLength*o._getRingWeightOffset(o.index),o.innerRadius=Math.max(o.outerRadius-a.radiusLength*v,0),i=0,r=p.length;i<r;++i)o.updateElement(p[i],i,e)},updateElement:function(e,t,n){var i=this,r=i.chart,o=r.chartArea,a=r.options,s=a.animation,l=(o.left+o.right)/2,c=(o.top+o.bottom)/2,u=a.rotation,d=a.rotation,h=i.getDataset(),f=n&&s.animateRotate||e.hidden?0:i.calculateCircumference(h.data[t])*(a.circumference/Pe),p=n&&s.animateScale?0:i.innerRadius,g=n&&s.animateScale?0:i.outerRadius,m=e._options||{};Y.extend(e,{_datasetIndex:i.index,_index:t,_model:{backgroundColor:m.backgroundColor,borderColor:m.borderColor,borderWidth:m.borderWidth,borderAlign:m.borderAlign,x:l+r.offsetX,y:c+r.offsetY,startAngle:u,endAngle:d,circumference:f,outerRadius:g,innerRadius:p,label:Y.valueAtIndexOrDefault(h.label,t,r.data.labels[t])}});var v=e._model;n&&s.animateRotate||(v.startAngle=0===t?a.rotation:i.getMeta().data[t-1]._model.endAngle,v.endAngle=v.startAngle+v.circumference),e.pivot()},calculateTotal:function(){var e,t=this.getDataset(),n=this.getMeta(),i=0;return Y.each(n.data,(function(n,r){e=t.data[r],isNaN(e)||n.hidden||(i+=Math.abs(e))})),i},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?Pe*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t,n,i,r,o,a,s,l,c=0,u=this.chart;if(!e)for(t=0,n=u.data.datasets.length;t<n;++t)if(u.isDatasetVisible(t)){e=(i=u.getDatasetMeta(t)).data,t!==this.index&&(o=i.controller);break}if(!e)return 0;for(t=0,n=e.length;t<n;++t)r=e[t],o?(o._configure(),a=o._resolveDataElementOptions(r,t)):a=r._options,"inner"!==a.borderAlign&&(s=a.borderWidth,c=(l=a.hoverBorderWidth)>(c=s>c?s:c)?l:c);return c},setHoverStyle:function(e){var t=e._model,n=e._options,i=Y.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=Ne(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=Ne(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=Ne(n.hoverBorderWidth,n.borderWidth)},_getRingWeightOffset:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t},_getRingWeight:function(e){return Math.max(Ne(this.chart.data.datasets[e].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});F._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}}),F._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var Re=Te.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),Be=Y.valueOrDefault,We=Y.options.resolve,Ye=Y.canvas._isPointInArea;function Ue(e,t){var n=e&&e.options.ticks||{},i=n.reverse,r=void 0===n.min?t:0,o=void 0===n.max?t:0;return{start:i?o:r,end:i?r:o}}F._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var He=ie.extend({datasetElementType:Ae.Line,dataElementType:Ae.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(e){var t,n,i=this,r=i.getMeta(),o=r.dataset,a=r.data||[],s=i.chart.options,l=i._config,c=i._showLine=Be(l.showLine,s.showLines);for(i._xScale=i.getScaleForId(r.xAxisID),i._yScale=i.getScaleForId(r.yAxisID),c&&(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),o._scale=i._yScale,o._datasetIndex=i.index,o._children=a,o._model=i._resolveDatasetElementOptions(o),o.pivot()),t=0,n=a.length;t<n;++t)i.updateElement(a[t],t,e);for(c&&0!==o._model.tension&&i.updateBezierControlPoints(),t=0,n=a.length;t<n;++t)a[t].pivot()},updateElement:function(e,t,n){var i,r,o=this,a=o.getMeta(),s=e.custom||{},l=o.getDataset(),c=o.index,u=l.data[t],d=o._xScale,h=o._yScale,f=a.dataset._model,p=o._resolveDataElementOptions(e,t);i=d.getPixelForValue("object"==typeof u?u:NaN,t,c),r=n?h.getBasePixel():o.calculatePointY(u,t,c),e._xScale=d,e._yScale=h,e._options=p,e._datasetIndex=c,e._index=t,e._model={x:i,y:r,skip:s.skip||isNaN(i)||isNaN(r),radius:p.radius,pointStyle:p.pointStyle,rotation:p.rotation,backgroundColor:p.backgroundColor,borderColor:p.borderColor,borderWidth:p.borderWidth,tension:Be(s.tension,f?f.tension:0),steppedLine:!!f&&f.steppedLine,hitRadius:p.hitRadius}},_resolveDatasetElementOptions:function(e){var t,n,i,r,o,a,s,l,c,u,d,h=this,f=h._config,p=e.custom||{},g=h.chart.options,m=g.elements.line,v=ie.prototype._resolveDatasetElementOptions.apply(h,arguments);return v.spanGaps=Be(f.spanGaps,g.spanGaps),v.tension=Be(f.lineTension,m.tension),v.steppedLine=We([p.steppedLine,f.steppedLine,m.stepped]),v.clip=(t=Be(f.clip,(a=h._xScale,s=h._yScale,l=v.borderWidth,u=Ue(a,c=l/2),{top:(d=Ue(s,c)).end,right:u.end,bottom:d.start,left:u.start})),Y.isObject(t)?(n=t.top,i=t.right,r=t.bottom,o=t.left):n=i=r=o=t,{top:n,right:i,bottom:r,left:o}),v},calculatePointY:function(e,t,n){var i,r,o,a,s,l,c,u=this.chart,d=this._yScale,h=0,f=0;if(d.options.stacked){for(s=+d.getRightValue(e),c=(l=u._getSortedVisibleDatasetMetas()).length,i=0;i<c&&(o=l[i]).index!==n;++i)r=u.data.datasets[o.index],"line"===o.type&&o.yAxisID===d.id&&((a=+d.getRightValue(r.data[t]))<0?f+=a||0:h+=a||0);return s<0?d.getPixelForValue(f+s):d.getPixelForValue(h+s)}return d.getPixelForValue(e)},updateBezierControlPoints:function(){var e,t,n,i,r=this.chart,o=this.getMeta(),a=o.dataset._model,s=r.chartArea,l=o.data||[];function c(e,t,n){return Math.max(Math.min(e,n),t)}if(a.spanGaps&&(l=l.filter((function(e){return!e._model.skip}))),"monotone"===a.cubicInterpolationMode)Y.splineCurveMonotone(l);else for(e=0,t=l.length;e<t;++e)n=l[e]._model,i=Y.splineCurve(Y.previousItem(l,e)._model,n,Y.nextItem(l,e)._model,a.tension),n.controlPointPreviousX=i.previous.x,n.controlPointPreviousY=i.previous.y,n.controlPointNextX=i.next.x,n.controlPointNextY=i.next.y;if(r.options.elements.line.capBezierPoints)for(e=0,t=l.length;e<t;++e)n=l[e]._model,Ye(n,s)&&(e>0&&Ye(l[e-1]._model,s)&&(n.controlPointPreviousX=c(n.controlPointPreviousX,s.left,s.right),n.controlPointPreviousY=c(n.controlPointPreviousY,s.top,s.bottom)),e<l.length-1&&Ye(l[e+1]._model,s)&&(n.controlPointNextX=c(n.controlPointNextX,s.left,s.right),n.controlPointNextY=c(n.controlPointNextY,s.top,s.bottom)))},draw:function(){var e,t=this,n=t.chart,i=t.getMeta(),r=i.data||[],o=n.chartArea,a=n.canvas,s=0,l=r.length;for(t._showLine&&(e=i.dataset._model.clip,Y.canvas.clipArea(n.ctx,{left:!1===e.left?0:o.left-e.left,right:!1===e.right?a.width:o.right+e.right,top:!1===e.top?0:o.top-e.top,bottom:!1===e.bottom?a.height:o.bottom+e.bottom}),i.dataset.draw(),Y.canvas.unclipArea(n.ctx));s<l;++s)r[s].draw(o)},setHoverStyle:function(e){var t=e._model,n=e._options,i=Y.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Be(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=Be(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=Be(n.hoverBorderWidth,n.borderWidth),t.radius=Be(n.hoverRadius,n.radius)}}),Ve=Y.options.resolve;F._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(e){var t,n,i,r=document.createElement("ul"),o=e.data,a=o.datasets,s=o.labels;if(r.setAttribute("class",e.id+"-legend"),a.length)for(t=0,n=a[0].data.length;t<n;++t)(i=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=a[0].backgroundColor[t],s[t]&&i.appendChild(document.createTextNode(s[t]));return r.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(n,i){var r=e.getDatasetMeta(0),o=r.controller.getStyle(i);return{text:n,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,hidden:isNaN(t.datasets[0].data[i])||r.data[i].hidden,index:i}})):[]}},onClick:function(e,t){var n,i,r,o=t.index,a=this.chart;for(n=0,i=(a.data.datasets||[]).length;n<i;++n)(r=a.getDatasetMeta(n)).data[o].hidden=!r.data[o].hidden;a.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}});var Ze=ie.extend({dataElementType:Ae.Arc,linkScales:Y.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,i,r=this,o=r.getDataset(),a=r.getMeta(),s=r.chart.options.startAngle||0,l=r._starts=[],c=r._angles=[],u=a.data;for(r._updateRadius(),a.count=r.countVisibleElements(),t=0,n=o.data.length;t<n;t++)l[t]=s,i=r._computeAngle(t),c[t]=i,s+=i;for(t=0,n=u.length;t<n;++t)u[t]._options=r._resolveDataElementOptions(u[t],t),r.updateElement(u[t],t,e)},_updateRadius:function(){var e=this,t=e.chart,n=t.chartArea,i=t.options,r=Math.min(n.right-n.left,n.bottom-n.top);t.outerRadius=Math.max(r/2,0),t.innerRadius=Math.max(i.cutoutPercentage?t.outerRadius/100*i.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),e.outerRadius=t.outerRadius-t.radiusLength*e.index,e.innerRadius=e.outerRadius-t.radiusLength},updateElement:function(e,t,n){var i=this,r=i.chart,o=i.getDataset(),a=r.options,s=a.animation,l=r.scale,c=r.data.labels,u=l.xCenter,d=l.yCenter,h=a.startAngle,f=e.hidden?0:l.getDistanceFromCenterForValue(o.data[t]),p=i._starts[t],g=p+(e.hidden?0:i._angles[t]),m=s.animateScale?0:l.getDistanceFromCenterForValue(o.data[t]),v=e._options||{};Y.extend(e,{_datasetIndex:i.index,_index:t,_scale:l,_model:{backgroundColor:v.backgroundColor,borderColor:v.borderColor,borderWidth:v.borderWidth,borderAlign:v.borderAlign,x:u,y:d,innerRadius:0,outerRadius:n?m:f,startAngle:n&&s.animateRotate?h:p,endAngle:n&&s.animateRotate?h:g,label:Y.valueAtIndexOrDefault(c,t,c[t])}}),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),n=0;return Y.each(t.data,(function(t,i){isNaN(e.data[i])||t.hidden||n++})),n},setHoverStyle:function(e){var t=e._model,n=e._options,i=Y.getHoverColor,r=Y.valueOrDefault;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=r(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=r(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=r(n.hoverBorderWidth,n.borderWidth)},_computeAngle:function(e){var t=this,n=this.getMeta().count,i=t.getDataset(),r=t.getMeta();if(isNaN(i.data[e])||r.data[e].hidden)return 0;var o={chart:t.chart,dataIndex:e,dataset:i,datasetIndex:t.index};return Ve([t.chart.options.elements.arc.angle,2*Math.PI/n],o,e)}});F._set("pie",Y.clone(F.doughnut)),F._set("pie",{cutoutPercentage:0});var Ge=ze,Qe=Y.valueOrDefault;F._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var Je=ie.extend({datasetElementType:Ae.Line,dataElementType:Ae.Point,linkScales:Y.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,i=this,r=i.getMeta(),o=r.dataset,a=r.data||[],s=i.chart.scale,l=i._config;for(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),o._scale=s,o._datasetIndex=i.index,o._children=a,o._loop=!0,o._model=i._resolveDatasetElementOptions(o),o.pivot(),t=0,n=a.length;t<n;++t)i.updateElement(a[t],t,e);for(i.updateBezierControlPoints(),t=0,n=a.length;t<n;++t)a[t].pivot()},updateElement:function(e,t,n){var i=this,r=e.custom||{},o=i.getDataset(),a=i.chart.scale,s=a.getPointPositionForValue(t,o.data[t]),l=i._resolveDataElementOptions(e,t),c=i.getMeta().dataset._model,u=n?a.xCenter:s.x,d=n?a.yCenter:s.y;e._scale=a,e._options=l,e._datasetIndex=i.index,e._index=t,e._model={x:u,y:d,skip:r.skip||isNaN(u)||isNaN(d),radius:l.radius,pointStyle:l.pointStyle,rotation:l.rotation,backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,tension:Qe(r.tension,c?c.tension:0),hitRadius:l.hitRadius}},_resolveDatasetElementOptions:function(){var e=this,t=e._config,n=e.chart.options,i=ie.prototype._resolveDatasetElementOptions.apply(e,arguments);return i.spanGaps=Qe(t.spanGaps,n.spanGaps),i.tension=Qe(t.lineTension,n.elements.line.tension),i},updateBezierControlPoints:function(){var e,t,n,i,r=this.getMeta(),o=this.chart.chartArea,a=r.data||[];function s(e,t,n){return Math.max(Math.min(e,n),t)}for(r.dataset._model.spanGaps&&(a=a.filter((function(e){return!e._model.skip}))),e=0,t=a.length;e<t;++e)n=a[e]._model,i=Y.splineCurve(Y.previousItem(a,e,!0)._model,n,Y.nextItem(a,e,!0)._model,n.tension),n.controlPointPreviousX=s(i.previous.x,o.left,o.right),n.controlPointPreviousY=s(i.previous.y,o.top,o.bottom),n.controlPointNextX=s(i.next.x,o.left,o.right),n.controlPointNextY=s(i.next.y,o.top,o.bottom)},setHoverStyle:function(e){var t=e._model,n=e._options,i=Y.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Qe(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=Qe(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=Qe(n.hoverBorderWidth,n.borderWidth),t.radius=Qe(n.hoverRadius,n.radius)}});F._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}}),F._set("global",{datasets:{scatter:{showLine:!1}}});var qe={bar:Te,bubble:je,doughnut:ze,horizontalBar:Re,line:He,polarArea:Ze,pie:Ge,radar:Je,scatter:He};function Xe(e,t){return e.native?{x:e.x,y:e.y}:Y.getRelativePosition(e,t)}function Ke(e,t){var n,i,r,o,a,s,l=e._getSortedVisibleDatasetMetas();for(i=0,o=l.length;i<o;++i)for(r=0,a=(n=l[i].data).length;r<a;++r)(s=n[r])._view.skip||t(s)}function $e(e,t){var n=[];return Ke(e,(function(e){e.inRange(t.x,t.y)&&n.push(e)})),n}function et(e,t,n,i){var r=Number.POSITIVE_INFINITY,o=[];return Ke(e,(function(e){if(!n||e.inRange(t.x,t.y)){var a=e.getCenterPoint(),s=i(t,a);s<r?(o=[e],r=s):s===r&&o.push(e)}})),o}function tt(e){var t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,i){var r=t?Math.abs(e.x-i.x):0,o=n?Math.abs(e.y-i.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(o,2))}}function nt(e,t,n){var i=Xe(t,e);n.axis=n.axis||"x";var r=tt(n.axis),o=n.intersect?$e(e,i):et(e,i,!1,r),a=[];return o.length?(e._getSortedVisibleDatasetMetas().forEach((function(e){var t=e.data[o[0]._index];t&&!t._view.skip&&a.push(t)})),a):[]}var it={modes:{single:function(e,t){var n=Xe(t,e),i=[];return Ke(e,(function(e){if(e.inRange(n.x,n.y))return i.push(e),i})),i.slice(0,1)},label:nt,index:nt,dataset:function(e,t,n){var i=Xe(t,e);n.axis=n.axis||"xy";var r=tt(n.axis),o=n.intersect?$e(e,i):et(e,i,!1,r);return o.length>0&&(o=e.getDatasetMeta(o[0]._datasetIndex).data),o},"x-axis":function(e,t){return nt(e,t,{intersect:!1})},point:function(e,t){return $e(e,Xe(t,e))},nearest:function(e,t,n){var i=Xe(t,e);n.axis=n.axis||"xy";var r=tt(n.axis);return et(e,i,n.intersect,r)},x:function(e,t,n){var i=Xe(t,e),r=[],o=!1;return Ke(e,(function(e){e.inXRange(i.x)&&r.push(e),e.inRange(i.x,i.y)&&(o=!0)})),n.intersect&&!o&&(r=[]),r},y:function(e,t,n){var i=Xe(t,e),r=[],o=!1;return Ke(e,(function(e){e.inYRange(i.y)&&r.push(e),e.inRange(i.x,i.y)&&(o=!0)})),n.intersect&&!o&&(r=[]),r}}},rt=Y.extend;function ot(e,t){return Y.where(e,(function(e){return e.pos===t}))}function at(e,t){return e.sort((function(e,n){var i=t?n:e,r=t?e:n;return i.weight===r.weight?i.index-r.index:i.weight-r.weight}))}function st(e,t,n,i){return Math.max(e[n],t[n])+Math.max(e[i],t[i])}function lt(e,t,n){var i,r,o=n.box,a=e.maxPadding;if(n.size&&(e[n.pos]-=n.size),n.size=n.horizontal?o.height:o.width,e[n.pos]+=n.size,o.getPadding){var s=o.getPadding();a.top=Math.max(a.top,s.top),a.left=Math.max(a.left,s.left),a.bottom=Math.max(a.bottom,s.bottom),a.right=Math.max(a.right,s.right)}if(i=t.outerWidth-st(a,e,"left","right"),r=t.outerHeight-st(a,e,"top","bottom"),i!==e.w||r!==e.h){e.w=i,e.h=r;var l=n.horizontal?[i,e.w]:[r,e.h];return!(l[0]===l[1]||isNaN(l[0])&&isNaN(l[1]))}}function ct(e,t){var n,i=t.maxPadding;return n={left:0,top:0,right:0,bottom:0},(e?["left","right"]:["top","bottom"]).forEach((function(e){n[e]=Math.max(t[e],i[e])})),n}function ut(e,t,n){var i,r,o,a,s,l,c=[];for(i=0,r=e.length;i<r;++i)(a=(o=e[i]).box).update(o.width||t.w,o.height||t.h,ct(o.horizontal,t)),lt(t,n,o)&&(l=!0,c.length&&(s=!0)),a.fullWidth||c.push(o);return s&&ut(c,t,n)||l}function dt(e,t,n){var i,r,o,a,s=n.padding,l=t.x,c=t.y;for(i=0,r=e.length;i<r;++i)a=(o=e[i]).box,o.horizontal?(a.left=a.fullWidth?s.left:t.left,a.right=a.fullWidth?n.outerWidth-s.right:t.left+t.w,a.top=c,a.bottom=c+a.height,a.width=a.right-a.left,c=a.bottom):(a.left=l,a.right=l+a.width,a.top=t.top,a.bottom=t.top+t.h,a.height=a.bottom-a.top,l=a.right);t.x=l,t.y=c}F._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var ht,ft={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw:function(){t.draw.apply(t,arguments)}}]},e.boxes.push(t)},removeBox:function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure:function(e,t,n){for(var i,r=["fullWidth","position","weight"],o=r.length,a=0;a<o;++a)i=r[a],n.hasOwnProperty(i)&&(t[i]=n[i])},update:function(e,t,n){if(e){var i=e.options.layout||{},r=Y.options.toPadding(i.padding),o=t-r.width,a=n-r.height,s=function(e){var t=function(e){var t,n,i,r=[];for(t=0,n=(e||[]).length;t<n;++t)i=e[t],r.push({index:t,box:i,pos:i.position,horizontal:i.isHorizontal(),weight:i.weight});return r}(e),n=at(ot(t,"left"),!0),i=at(ot(t,"right")),r=at(ot(t,"top"),!0),o=at(ot(t,"bottom"));return{leftAndTop:n.concat(r),rightAndBottom:i.concat(o),chartArea:ot(t,"chartArea"),vertical:n.concat(i),horizontal:r.concat(o)}}(e.boxes),l=s.vertical,c=s.horizontal,u=Object.freeze({outerWidth:t,outerHeight:n,padding:r,availableWidth:o,vBoxMaxWidth:o/2/l.length,hBoxMaxHeight:a/2}),d=rt({maxPadding:rt({},r),w:o,h:a,x:r.left,y:r.top},r);(function(e,t){var n,i,r;for(n=0,i=e.length;n<i;++n)(r=e[n]).width=r.horizontal?r.box.fullWidth&&t.availableWidth:t.vBoxMaxWidth,r.height=r.horizontal&&t.hBoxMaxHeight})(l.concat(c),u),ut(l,d,u),ut(c,d,u)&&ut(l,d,u),function(e){var t=e.maxPadding;function n(n){var i=Math.max(t[n]-e[n],0);return e[n]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(d),dt(s.leftAndTop,d,u),d.x+=d.w,d.y+=d.h,dt(s.rightAndBottom,d,u),e.chartArea={left:d.left,top:d.top,right:d.left+d.w,bottom:d.top+d.h},Y.each(s.chartArea,(function(t){var n=t.box;rt(n,e.chartArea),n.update(d.w,d.h)}))}}},pt=(ht=Object.freeze({__proto__:null,default:"/*\r\n * DOM element rendering detection\r\n * https://davidwalsh.name/detect-node-insertion\r\n */\r\n@keyframes chartjs-render-animation {\r\n\tfrom { opacity: 0.99; }\r\n\tto { opacity: 1; }\r\n}\r\n\r\n.chartjs-render-monitor {\r\n\tanimation: chartjs-render-animation 0.001s;\r\n}\r\n\r\n/*\r\n * DOM element resizing detection\r\n * https://github.com/marcj/css-element-queries\r\n */\r\n.chartjs-size-monitor,\r\n.chartjs-size-monitor-expand,\r\n.chartjs-size-monitor-shrink {\r\n\tposition: absolute;\r\n\tdirection: ltr;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\tvisibility: hidden;\r\n\tz-index: -1;\r\n}\r\n\r\n.chartjs-size-monitor-expand > div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n"}))&&ht.default||ht,gt="$chartjs",mt="chartjs-",vt=mt+"size-monitor",yt=mt+"render-monitor",bt=mt+"render-animation",xt=["animationstart","webkitAnimationStart"],wt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function At(e,t){var n=Y.getStyle(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?Number(i[1]):void 0}var _t=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(e){}return e}()&&{passive:!0};function Ct(e,t,n){e.addEventListener(t,n,_t)}function Mt(e,t,n){e.removeEventListener(t,n,_t)}function kt(e,t,n,i,r){return{type:e,chart:t,native:r||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function St(e){var t=document.createElement("div");return t.className=e||"",t}function It(e,t,n){var i,r,o,a,s=e[gt]||(e[gt]={}),l=s.resizer=function(e){var t=1e6,n=St(vt),i=St(vt+"-expand"),r=St(vt+"-shrink");i.appendChild(St()),r.appendChild(St()),n.appendChild(i),n.appendChild(r),n._reset=function(){i.scrollLeft=t,i.scrollTop=t,r.scrollLeft=t,r.scrollTop=t};var o=function(){n._reset(),e()};return Ct(i,"scroll",o.bind(i,"expand")),Ct(r,"scroll",o.bind(r,"shrink")),n}((i=function(){if(s.resizer){var i=n.options.maintainAspectRatio&&e.parentNode,r=i?i.clientWidth:0;t(kt("resize",n)),i&&i.clientWidth<r&&n.canvas&&t(kt("resize",n))}},o=!1,a=[],function(){a=Array.prototype.slice.call(arguments),r=r||this,o||(o=!0,Y.requestAnimFrame.call(window,(function(){o=!1,i.apply(r,a)})))}));!function(e,t){var n=e[gt]||(e[gt]={}),i=n.renderProxy=function(e){e.animationName===bt&&t()};Y.each(xt,(function(t){Ct(e,t,i)})),n.reflow=!!e.offsetParent,e.classList.add(yt)}(e,(function(){if(s.resizer){var t=e.parentNode;t&&t!==l.parentNode&&t.insertBefore(l,t.firstChild),l._reset()}}))}function Lt(e){var t=e[gt]||{},n=t.resizer;delete t.resizer,function(e){var t=e[gt]||{},n=t.renderProxy;n&&(Y.each(xt,(function(t){Mt(e,t,n)})),delete t.renderProxy),e.classList.remove(yt)}(e),n&&n.parentNode&&n.parentNode.removeChild(n)}var Tt={disableCSSInjection:!1,_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,_ensureLoaded:function(e){if(!this.disableCSSInjection){var t=e.getRootNode?e.getRootNode():document;!function(e,t){var n=e[gt]||(e[gt]={});if(!n.containsStyles){n.containsStyles=!0,t="/* Chart.js */\n"+t;var i=document.createElement("style");i.setAttribute("type","text/css"),i.appendChild(document.createTextNode(t)),e.appendChild(i)}}(t.host?t:document.head,pt)}},acquireContext:function(e,t){"string"==typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(this._ensureLoaded(e),function(e,t){var n=e.style,i=e.getAttribute("height"),r=e.getAttribute("width");if(e[gt]={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===r||""===r){var o=At(e,"width");void 0!==o&&(e.width=o)}if(null===i||""===i)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var a=At(e,"height");void 0!==o&&(e.height=a)}}(e,t),n):null},releaseContext:function(e){var t=e.canvas;if(t[gt]){var n=t[gt].initial;["height","width"].forEach((function(e){var i=n[e];Y.isNullOrUndef(i)?t.removeAttribute(e):t.setAttribute(e,i)})),Y.each(n.style||{},(function(e,n){t.style[n]=e})),t.width=t.width,delete t[gt]}},addEventListener:function(e,t,n){var i=e.canvas;if("resize"!==t){var r=n[gt]||(n[gt]={});Ct(i,t,(r.proxies||(r.proxies={}))[e.id+"_"+t]=function(t){n(function(e,t){var n=wt[e.type]||e.type,i=Y.getRelativePosition(e,t);return kt(n,t,i.x,i.y,e)}(t,e))})}else It(i,n,e)},removeEventListener:function(e,t,n){var i=e.canvas;if("resize"!==t){var r=((n[gt]||{}).proxies||{})[e.id+"_"+t];r&&Mt(i,t,r)}else Lt(i)}};Y.addEvent=Ct,Y.removeEvent=Mt;var Dt=Tt._enabled?Tt:{acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}},Ot=Y.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},Dt);F._set("global",{plugins:{}});var jt={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach((function(e){-1===t.indexOf(e)&&t.push(e)})),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach((function(e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)})),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,n){var i,r,o,a,s,l=this.descriptors(e),c=l.length;for(i=0;i<c;++i)if("function"==typeof(s=(o=(r=l[i]).plugin)[t])&&((a=[e].concat(n||[])).push(r.options),!1===s.apply(o,a)))return!1;return!0},descriptors:function(e){var t=e.$plugins||(e.$plugins={});if(t.id===this._cacheId)return t.descriptors;var n=[],i=[],r=e&&e.config||{},o=r.options&&r.options.plugins||{};return this._plugins.concat(r.plugins||[]).forEach((function(e){if(-1===n.indexOf(e)){var t=e.id,r=o[t];!1!==r&&(!0===r&&(r=Y.clone(F.global.plugins[t])),n.push(e),i.push({plugin:e,options:r||{}}))}})),t.descriptors=i,t.id=this._cacheId,i},_invalidate:function(e){delete e.$plugins}},Nt={constructors:{},defaults:{},registerScaleType:function(e,t,n){this.constructors[e]=t,this.defaults[e]=Y.clone(n)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?Y.merge(Object.create(null),[F.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){var n=this;n.defaults.hasOwnProperty(e)&&(n.defaults[e]=Y.extend(n.defaults[e],t))},addScalesToLayout:function(e){Y.each(e.scales,(function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,ft.addBox(e,t)}))}},Et=Y.valueOrDefault,Pt=Y.rtl.getRtlAdapter;F._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:Y.noop,title:function(e,t){var n="",i=t.labels,r=i?i.length:0;if(e.length>0){var o=e[0];o.label?n=o.label:o.xLabel?n=o.xLabel:r>0&&o.index<r&&(n=i[o.index])}return n},afterTitle:Y.noop,beforeBody:Y.noop,beforeLabel:Y.noop,label:function(e,t){var n=t.datasets[e.datasetIndex].label||"";return n&&(n+=": "),Y.isNullOrUndef(e.value)?n+=e.yLabel:n+=e.value,n},labelColor:function(e,t){var n=t.getDatasetMeta(e.datasetIndex).data[e.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:Y.noop,afterBody:Y.noop,beforeFooter:Y.noop,footer:Y.noop,afterFooter:Y.noop}}});var Ft={average:function(e){if(!e.length)return!1;var t,n,i=0,r=0,o=0;for(t=0,n=e.length;t<n;++t){var a=e[t];if(a&&a.hasValue()){var s=a.tooltipPosition();i+=s.x,r+=s.y,++o}}return{x:i/o,y:r/o}},nearest:function(e,t){var n,i,r,o=t.x,a=t.y,s=Number.POSITIVE_INFINITY;for(n=0,i=e.length;n<i;++n){var l=e[n];if(l&&l.hasValue()){var c=l.getCenterPoint(),u=Y.distanceBetweenPoints(t,c);u<s&&(s=u,r=l)}}if(r){var d=r.tooltipPosition();o=d.x,a=d.y}return{x:o,y:a}}};function zt(e,t){return t&&(Y.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Rt(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function Bt(e){var t=F.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:Et(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:Et(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:Et(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:Et(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:Et(e.titleFontStyle,t.defaultFontStyle),titleFontSize:Et(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:Et(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:Et(e.footerFontStyle,t.defaultFontStyle),footerFontSize:Et(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function Wt(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function Yt(e){return zt([],Rt(e))}var Ut=J.extend({initialize:function(){this._model=Bt(this._options),this._lastActive=[]},getTitle:function(){var e=this,t=e._options.callbacks,n=t.beforeTitle.apply(e,arguments),i=t.title.apply(e,arguments),r=t.afterTitle.apply(e,arguments),o=[];return o=zt(o,Rt(n)),o=zt(o,Rt(i)),zt(o,Rt(r))},getBeforeBody:function(){return Yt(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var n=this,i=n._options.callbacks,r=[];return Y.each(e,(function(e){var o={before:[],lines:[],after:[]};zt(o.before,Rt(i.beforeLabel.call(n,e,t))),zt(o.lines,i.label.call(n,e,t)),zt(o.after,Rt(i.afterLabel.call(n,e,t))),r.push(o)})),r},getAfterBody:function(){return Yt(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,n=t.beforeFooter.apply(e,arguments),i=t.footer.apply(e,arguments),r=t.afterFooter.apply(e,arguments),o=[];return o=zt(o,Rt(n)),o=zt(o,Rt(i)),zt(o,Rt(r))},update:function(e){var t,n,i,r,o,a,s,l,c,u,d=this,h=d._options,f=d._model,p=d._model=Bt(h),g=d._active,m=d._data,v={xAlign:f.xAlign,yAlign:f.yAlign},y={x:f.x,y:f.y},b={width:f.width,height:f.height},x={x:f.caretX,y:f.caretY};if(g.length){p.opacity=1;var w=[],A=[];x=Ft[h.position].call(d,g,d._eventPosition);var _=[];for(t=0,n=g.length;t<n;++t)_.push((i=g[t],r=void 0,o=void 0,a=void 0,s=void 0,l=void 0,c=void 0,u=void 0,r=i._xScale,o=i._yScale||i._scale,a=i._index,s=i._datasetIndex,l=i._chart.getDatasetMeta(s).controller,c=l._getIndexScale(),u=l._getValueScale(),{xLabel:r?r.getLabelForIndex(a,s):"",yLabel:o?o.getLabelForIndex(a,s):"",label:c?""+c.getLabelForIndex(a,s):"",value:u?""+u.getLabelForIndex(a,s):"",index:a,datasetIndex:s,x:i._model.x,y:i._model.y}));h.filter&&(_=_.filter((function(e){return h.filter(e,m)}))),h.itemSort&&(_=_.sort((function(e,t){return h.itemSort(e,t,m)}))),Y.each(_,(function(e){w.push(h.callbacks.labelColor.call(d,e,d._chart)),A.push(h.callbacks.labelTextColor.call(d,e,d._chart))})),p.title=d.getTitle(_,m),p.beforeBody=d.getBeforeBody(_,m),p.body=d.getBody(_,m),p.afterBody=d.getAfterBody(_,m),p.footer=d.getFooter(_,m),p.x=x.x,p.y=x.y,p.caretPadding=h.caretPadding,p.labelColors=w,p.labelTextColors=A,p.dataPoints=_,y=function(e,t,n,i){var r=e.x,o=e.y,a=e.caretSize,s=e.caretPadding,l=e.cornerRadius,c=n.xAlign,u=n.yAlign,d=a+s,h=l+s;return"right"===c?r-=t.width:"center"===c&&((r-=t.width/2)+t.width>i.width&&(r=i.width-t.width),r<0&&(r=0)),"top"===u?o+=d:o-="bottom"===u?t.height+d:t.height/2,"center"===u?"left"===c?r+=d:"right"===c&&(r-=d):"left"===c?r-=h:"right"===c&&(r+=h),{x:r,y:o}}(p,b=function(e,t){var n=e._chart.ctx,i=2*t.yPadding,r=0,o=t.body,a=o.reduce((function(e,t){return e+t.before.length+t.lines.length+t.after.length}),0);a+=t.beforeBody.length+t.afterBody.length;var s=t.title.length,l=t.footer.length,c=t.titleFontSize,u=t.bodyFontSize,d=t.footerFontSize;i+=s*c,i+=s?(s-1)*t.titleSpacing:0,i+=s?t.titleMarginBottom:0,i+=a*u,i+=a?(a-1)*t.bodySpacing:0,i+=l?t.footerMarginTop:0,i+=l*d,i+=l?(l-1)*t.footerSpacing:0;var h=0,f=function(e){r=Math.max(r,n.measureText(e).width+h)};return n.font=Y.fontString(c,t._titleFontStyle,t._titleFontFamily),Y.each(t.title,f),n.font=Y.fontString(u,t._bodyFontStyle,t._bodyFontFamily),Y.each(t.beforeBody.concat(t.afterBody),f),h=t.displayColors?u+2:0,Y.each(o,(function(e){Y.each(e.before,f),Y.each(e.lines,f),Y.each(e.after,f)})),h=0,n.font=Y.fontString(d,t._footerFontStyle,t._footerFontFamily),Y.each(t.footer,f),{width:r+=2*t.xPadding,height:i}}(this,p),v=function(e,t){var n,i,r,o,a,s=e._model,l=e._chart,c=e._chart.chartArea,u="center",d="center";s.y<t.height?d="top":s.y>l.height-t.height&&(d="bottom");var h=(c.left+c.right)/2,f=(c.top+c.bottom)/2;"center"===d?(n=function(e){return e<=h},i=function(e){return e>h}):(n=function(e){return e<=t.width/2},i=function(e){return e>=l.width-t.width/2}),r=function(e){return e+t.width+s.caretSize+s.caretPadding>l.width},o=function(e){return e-t.width-s.caretSize-s.caretPadding<0},a=function(e){return e<=f?"top":"bottom"},n(s.x)?(u="left",r(s.x)&&(u="center",d=a(s.y))):i(s.x)&&(u="right",o(s.x)&&(u="center",d=a(s.y)));var p=e._options;return{xAlign:p.xAlign?p.xAlign:u,yAlign:p.yAlign?p.yAlign:d}}(this,b),d._chart)}else p.opacity=0;return p.xAlign=v.xAlign,p.yAlign=v.yAlign,p.x=y.x,p.y=y.y,p.width=b.width,p.height=b.height,p.caretX=x.x,p.caretY=x.y,d._model=p,e&&h.custom&&h.custom.call(d,p),d},drawCaret:function(e,t){var n=this._chart.ctx,i=this._view,r=this.getCaretPosition(e,t,i);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)},getCaretPosition:function(e,t,n){var i,r,o,a,s,l,c=n.caretSize,u=n.cornerRadius,d=n.xAlign,h=n.yAlign,f=e.x,p=e.y,g=t.width,m=t.height;if("center"===h)s=p+m/2,"left"===d?(r=(i=f)-c,o=i,a=s+c,l=s-c):(r=(i=f+g)+c,o=i,a=s-c,l=s+c);else if("left"===d?(i=(r=f+u+c)-c,o=r+c):"right"===d?(i=(r=f+g-u-c)-c,o=r+c):(i=(r=n.caretX)-c,o=r+c),"top"===h)s=(a=p)-c,l=a;else{s=(a=p+m)+c,l=a;var v=o;o=i,i=v}return{x1:i,x2:r,x3:o,y1:a,y2:s,y3:l}},drawTitle:function(e,t,n){var i,r,o,a=t.title,s=a.length;if(s){var l=Pt(t.rtl,t.x,t.width);for(e.x=Wt(t,t._titleAlign),n.textAlign=l.textAlign(t._titleAlign),n.textBaseline="middle",i=t.titleFontSize,r=t.titleSpacing,n.fillStyle=t.titleFontColor,n.font=Y.fontString(i,t._titleFontStyle,t._titleFontFamily),o=0;o<s;++o)n.fillText(a[o],l.x(e.x),e.y+i/2),e.y+=i+r,o+1===s&&(e.y+=t.titleMarginBottom-r)}},drawBody:function(e,t,n){var i,r,o,a,s,l,c,u,d=t.bodyFontSize,h=t.bodySpacing,f=t._bodyAlign,p=t.body,g=t.displayColors,m=0,v=g?Wt(t,"left"):0,y=Pt(t.rtl,t.x,t.width),b=function(t){n.fillText(t,y.x(e.x+m),e.y+d/2),e.y+=d+h},x=y.textAlign(f);for(n.textAlign=f,n.textBaseline="middle",n.font=Y.fontString(d,t._bodyFontStyle,t._bodyFontFamily),e.x=Wt(t,x),n.fillStyle=t.bodyFontColor,Y.each(t.beforeBody,b),m=g&&"right"!==x?"center"===f?d/2+1:d+2:0,s=0,c=p.length;s<c;++s){for(i=p[s],r=t.labelTextColors[s],o=t.labelColors[s],n.fillStyle=r,Y.each(i.before,b),l=0,u=(a=i.lines).length;l<u;++l){if(g){var w=y.x(v);n.fillStyle=t.legendColorBackground,n.fillRect(y.leftForLtr(w,d),e.y,d,d),n.lineWidth=1,n.strokeStyle=o.borderColor,n.strokeRect(y.leftForLtr(w,d),e.y,d,d),n.fillStyle=o.backgroundColor,n.fillRect(y.leftForLtr(y.xPlus(w,1),d-2),e.y+1,d-2,d-2),n.fillStyle=r}b(a[l])}Y.each(i.after,b)}m=0,Y.each(t.afterBody,b),e.y-=h},drawFooter:function(e,t,n){var i,r,o=t.footer,a=o.length;if(a){var s=Pt(t.rtl,t.x,t.width);for(e.x=Wt(t,t._footerAlign),e.y+=t.footerMarginTop,n.textAlign=s.textAlign(t._footerAlign),n.textBaseline="middle",i=t.footerFontSize,n.fillStyle=t.footerFontColor,n.font=Y.fontString(i,t._footerFontStyle,t._footerFontFamily),r=0;r<a;++r)n.fillText(o[r],s.x(e.x),e.y+i/2),e.y+=i+t.footerSpacing}},drawBackground:function(e,t,n,i){n.fillStyle=t.backgroundColor,n.strokeStyle=t.borderColor,n.lineWidth=t.borderWidth;var r=t.xAlign,o=t.yAlign,a=e.x,s=e.y,l=i.width,c=i.height,u=t.cornerRadius;n.beginPath(),n.moveTo(a+u,s),"top"===o&&this.drawCaret(e,i),n.lineTo(a+l-u,s),n.quadraticCurveTo(a+l,s,a+l,s+u),"center"===o&&"right"===r&&this.drawCaret(e,i),n.lineTo(a+l,s+c-u),n.quadraticCurveTo(a+l,s+c,a+l-u,s+c),"bottom"===o&&this.drawCaret(e,i),n.lineTo(a+u,s+c),n.quadraticCurveTo(a,s+c,a,s+c-u),"center"===o&&"left"===r&&this.drawCaret(e,i),n.lineTo(a,s+u),n.quadraticCurveTo(a,s,a+u,s),n.closePath(),n.fill(),t.borderWidth>0&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},i={x:t.x,y:t.y},r=Math.abs(t.opacity<.001)?0:t.opacity,o=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&o&&(e.save(),e.globalAlpha=r,this.drawBackground(i,t,e,n),i.y+=t.yPadding,Y.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(i,t,e),this.drawBody(i,t,e),this.drawFooter(i,t,e),Y.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var t,n=this,i=n._options;return n._lastActive=n._lastActive||[],"mouseout"===e.type?n._active=[]:(n._active=n._chart.getElementsAtEventForMode(e,i.mode,i),i.reverse&&n._active.reverse()),(t=!Y.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(i.enabled||i.custom)&&(n._eventPosition={x:e.x,y:e.y},n.update(!0),n.pivot())),t}}),Ht=Ft,Vt=Ut;Vt.positioners=Ht;var Zt=Y.valueOrDefault;function Gt(){return Y.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,i){if("xAxes"===e||"yAxes"===e){var r,o,a,s=n[e].length;for(t[e]||(t[e]=[]),r=0;r<s;++r)a=n[e][r],o=Zt(a.type,"xAxes"===e?"category":"linear"),r>=t[e].length&&t[e].push({}),!t[e][r].type||a.type&&a.type!==t[e][r].type?Y.merge(t[e][r],[Nt.getScaleDefaults(o),a]):Y.merge(t[e][r],a)}else Y._merger(e,t,n,i)}})}function Qt(){return Y.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,i){var r=t[e]||Object.create(null),o=n[e];"scales"===e?t[e]=Gt(r,o):"scale"===e?t[e]=Y.merge(r,[Nt.getScaleDefaults(o.type),o]):Y._merger(e,t,n,i)}})}function Jt(e,t,n){var i,r=function(e){return e.id===i};do{i=t+n++}while(Y.findIndex(e,r)>=0);return i}function qt(e){return"top"===e||"bottom"===e}function Xt(e,t){return function(n,i){return n[e]===i[e]?n[t]-i[t]:n[e]-i[e]}}F._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var Kt=function(e,t){return this.construct(e,t),this};Y.extend(Kt.prototype,{construct:function(e,t){var n=this;t=function(e){var t=(e=e||Object.create(null)).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=Qt(F.global,F[e.type],e.options||{}),e}(t);var i=Ot.acquireContext(e,t),r=i&&i.canvas,o=r&&r.height,a=r&&r.width;n.id=Y.uid(),n.ctx=i,n.canvas=r,n.config=t,n.width=a,n.height=o,n.aspectRatio=o?a/o:null,n.options=t.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,Kt.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(e){n.config.data=e}}),i&&r?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return jt.notify(e,"beforeInit"),Y.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),jt.notify(e,"afterInit"),e},clear:function(){return Y.canvas.clear(this),this},stop:function(){return K.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,i=t.canvas,r=n.maintainAspectRatio&&t.aspectRatio||null,o=Math.max(0,Math.floor(Y.getMaximumWidth(i))),a=Math.max(0,Math.floor(r?o/r:Y.getMaximumHeight(i)));if((t.width!==o||t.height!==a)&&(i.width=t.width=o,i.height=t.height=a,i.style.width=o+"px",i.style.height=a+"px",Y.retinaScale(t,n.devicePixelRatio),!e)){var s={width:o,height:a};jt.notify(t,"resize",[s]),n.onResize&&n.onResize(t,s),t.stop(),t.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},n=e.scale;Y.each(t.xAxes,(function(e,n){e.id||(e.id=Jt(t.xAxes,"x-axis-",n))})),Y.each(t.yAxes,(function(e,n){e.id||(e.id=Jt(t.yAxes,"y-axis-",n))})),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,n=e.scales||{},i=[],r=Object.keys(n).reduce((function(e,t){return e[t]=!1,e}),{});t.scales&&(i=i.concat((t.scales.xAxes||[]).map((function(e){return{options:e,dtype:"category",dposition:"bottom"}})),(t.scales.yAxes||[]).map((function(e){return{options:e,dtype:"linear",dposition:"left"}})))),t.scale&&i.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),Y.each(i,(function(t){var i=t.options,o=i.id,a=Zt(i.type,t.dtype);qt(i.position)!==qt(t.dposition)&&(i.position=t.dposition),r[o]=!0;var s=null;if(o in n&&n[o].type===a)(s=n[o]).options=i,s.ctx=e.ctx,s.chart=e;else{var l=Nt.getScaleConstructor(a);if(!l)return;s=new l({id:o,type:a,options:i,ctx:e.ctx,chart:e}),n[s.id]=s}s.mergeTicksOptions(),t.isDefault&&(e.scale=s)})),Y.each(r,(function(e,t){e||delete n[t]})),e.scales=n,Nt.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e,t,n=this,i=[],r=n.data.datasets;for(e=0,t=r.length;e<t;e++){var o=r[e],a=n.getDatasetMeta(e),s=o.type||n.config.type;if(a.type&&a.type!==s&&(n.destroyDatasetMeta(e),a=n.getDatasetMeta(e)),a.type=s,a.order=o.order||0,a.index=e,a.controller)a.controller.updateIndex(e),a.controller.linkScales();else{var l=qe[a.type];if(void 0===l)throw new Error('"'+a.type+'" is not a chart type.');a.controller=new l(n,e),i.push(a.controller)}}return i},resetElements:function(){var e=this;Y.each(e.data.datasets,(function(t,n){e.getDatasetMeta(n).controller.reset()}),e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e){var t,n,i,r,o=this;if(e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]}),r=(i=o).options,Y.each(i.scales,(function(e){ft.removeBox(i,e)})),r=Qt(F.global,F[i.config.type],r),i.options=i.config.options=r,i.ensureScalesHaveIDs(),i.buildOrUpdateScales(),i.tooltip._options=r.tooltips,i.tooltip.initialize(),jt._invalidate(o),!1!==jt.notify(o,"beforeUpdate")){o.tooltip._data=o.data;var a=o.buildOrUpdateControllers();for(t=0,n=o.data.datasets.length;t<n;t++)o.getDatasetMeta(t).controller.buildOrUpdateElements();o.updateLayout(),o.options.animation&&o.options.animation.duration&&Y.each(a,(function(e){e.reset()})),o.updateDatasets(),o.tooltip.initialize(),o.lastActive=[],jt.notify(o,"afterUpdate"),o._layers.sort(Xt("z","_idx")),o._bufferedRender?o._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:o.render(e)}},updateLayout:function(){var e=this;!1!==jt.notify(e,"beforeLayout")&&(ft.update(this,this.width,this.height),e._layers=[],Y.each(e.boxes,(function(t){t._configure&&t._configure(),e._layers.push.apply(e._layers,t._layers())}),e),e._layers.forEach((function(e,t){e._idx=t})),jt.notify(e,"afterScaleUpdate"),jt.notify(e,"afterLayout"))},updateDatasets:function(){var e=this;if(!1!==jt.notify(e,"beforeDatasetsUpdate")){for(var t=0,n=e.data.datasets.length;t<n;++t)e.updateDataset(t);jt.notify(e,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this,n=t.getDatasetMeta(e),i={meta:n,index:e};!1!==jt.notify(t,"beforeDatasetUpdate",[i])&&(n.controller._update(),jt.notify(t,"afterDatasetUpdate",[i]))},render:function(e){var t=this;e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]});var n=t.options.animation,i=Zt(e.duration,n&&n.duration),r=e.lazy;if(!1!==jt.notify(t,"beforeRender")){var o=function(e){jt.notify(t,"afterRender"),Y.callback(n&&n.onComplete,[e],t)};if(n&&i){var a=new X({numSteps:i/16.66,easing:e.easing||n.easing,render:function(e,t){var n=Y.easing.effects[t.easing],i=t.currentStep,r=i/t.numSteps;e.draw(n(r),r,i)},onAnimationProgress:n.onProgress,onAnimationComplete:o});K.addAnimation(t,a,i,r)}else t.draw(),o(new X({numSteps:0,chart:t}));return t}},draw:function(e){var t,n,i=this;if(i.clear(),Y.isNullOrUndef(e)&&(e=1),i.transition(e),!(i.width<=0||i.height<=0)&&!1!==jt.notify(i,"beforeDraw",[e])){for(n=i._layers,t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(i.chartArea);for(i.drawDatasets(e);t<n.length;++t)n[t].draw(i.chartArea);i._drawTooltip(e),jt.notify(i,"afterDraw",[e])}},transition:function(e){for(var t=this,n=0,i=(t.data.datasets||[]).length;n<i;++n)t.isDatasetVisible(n)&&t.getDatasetMeta(n).controller.transition(e);t.tooltip.transition(e)},_getSortedDatasetMetas:function(e){var t,n,i=this,r=[];for(t=0,n=(i.data.datasets||[]).length;t<n;++t)e&&!i.isDatasetVisible(t)||r.push(i.getDatasetMeta(t));return r.sort(Xt("order","index")),r},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(e){var t,n,i=this;if(!1!==jt.notify(i,"beforeDatasetsDraw",[e])){for(n=(t=i._getSortedVisibleDatasetMetas()).length-1;n>=0;--n)i.drawDataset(t[n],e);jt.notify(i,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n={meta:e,index:e.index,easingValue:t};!1!==jt.notify(this,"beforeDatasetDraw",[n])&&(e.controller.draw(t),jt.notify(this,"afterDatasetDraw",[n]))},_drawTooltip:function(e){var t=this,n=t.tooltip,i={tooltip:n,easingValue:e};!1!==jt.notify(t,"beforeTooltipDraw",[i])&&(n.draw(),jt.notify(t,"afterTooltipDraw",[i]))},getElementAtEvent:function(e){return it.modes.single(this,e)},getElementsAtEvent:function(e){return it.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return it.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var i=it.modes[t];return"function"==typeof i?i(this,e,n):[]},getDatasetAtEvent:function(e){return it.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this,n=t.data.datasets[e];n._meta||(n._meta={});var i=n._meta[t.id];return i||(i=n._meta[t.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n.order||0,index:e}),i},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t<n;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,n=this.data.datasets[e],i=n._meta&&n._meta[t];i&&(i.controller.destroy(),delete n._meta[t])},destroy:function(){var e,t,n=this,i=n.canvas;for(n.stop(),e=0,t=n.data.datasets.length;e<t;++e)n.destroyDatasetMeta(e);i&&(n.unbindEvents(),Y.canvas.clear(n),Ot.releaseContext(n.ctx),n.canvas=null,n.ctx=null),jt.notify(n,"destroy"),delete Kt.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new Vt({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var e=this,t=e._listeners={},n=function(){e.eventHandler.apply(e,arguments)};Y.each(e.options.events,(function(i){Ot.addEventListener(e,i,n),t[i]=n})),e.options.responsive&&(n=function(){e.resize()},Ot.addEventListener(e,"resize",n),t.resize=n)},unbindEvents:function(){var e=this,t=e._listeners;t&&(delete e._listeners,Y.each(t,(function(t,n){Ot.removeEventListener(e,n,t)})))},updateHoverStyle:function(e,t,n){var i,r,o,a=n?"set":"remove";for(r=0,o=e.length;r<o;++r)(i=e[r])&&this.getDatasetMeta(i._datasetIndex).controller[a+"HoverStyle"](i);"dataset"===t&&this.getDatasetMeta(e[0]._datasetIndex).controller["_"+a+"DatasetHoverStyle"]()},eventHandler:function(e){var t=this,n=t.tooltip;if(!1!==jt.notify(t,"beforeEvent",[e])){t._bufferedRender=!0,t._bufferedRequest=null;var i=t.handleEvent(e);n&&(i=n._start?n.handleEvent(e):i|n.handleEvent(e)),jt.notify(t,"afterEvent",[e]);var r=t._bufferedRequest;return r?t.render(r):i&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var t,n=this,i=n.options||{},r=i.hover;return n.lastActive=n.lastActive||[],"mouseout"===e.type?n.active=[]:n.active=n.getElementsAtEventForMode(e,r.mode,r),Y.callback(i.onHover||i.hover.onHover,[e.native,n.active],n),"mouseup"!==e.type&&"click"!==e.type||i.onClick&&i.onClick.call(n,e.native,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,r.mode,!1),n.active.length&&r.mode&&n.updateHoverStyle(n.active,r.mode,!0),t=!Y.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,t}}),Kt.instances={};var $t=Kt;Kt.Controller=Kt,Kt.types={},Y.configMerge=Qt,Y.scaleMerge=Gt;function en(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function tn(e){this.options=e||{}}Y.extend(tn.prototype,{formats:en,parse:en,format:en,add:en,diff:en,startOf:en,endOf:en,_create:function(e){return e}}),tn.override=function(e){Y.extend(tn.prototype,e)};var nn={_date:tn},rn={formatters:{values:function(e){return Y.isArray(e)?e:""+e},linear:function(e,t,n){var i=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(i)>1&&e!==Math.floor(e)&&(i=e-Math.floor(e));var r=Y.log10(Math.abs(i)),o="";if(0!==e)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var a=Y.log10(Math.abs(e)),s=Math.floor(a)-Math.floor(r);s=Math.max(Math.min(s,20),0),o=e.toExponential(s)}else{var l=-1*Math.floor(r);l=Math.max(Math.min(l,20),0),o=e.toFixed(l)}else o="0";return o},logarithmic:function(e,t,n){var i=e/Math.pow(10,Math.floor(Y.log10(e)));return 0===e?"0":1===i||2===i||5===i||0===t||t===n.length-1?e.toExponential():""}}},on=Y.isArray,an=Y.isNullOrUndef,sn=Y.valueOrDefault,ln=Y.valueAtIndexOrDefault;function cn(e,t,n){var i,r=e.getTicks().length,o=Math.min(t,r-1),a=e.getPixelForTick(o),s=e._startPixel,l=e._endPixel,c=1e-6;if(!(n&&(i=1===r?Math.max(a-s,l-a):0===t?(e.getPixelForTick(1)-a)/2:(a-e.getPixelForTick(o-1))/2,(a+=o<t?i:-i)<s-c||a>l+c)))return a}function un(e,t,n,i){var r,o,a,s,l,c,u,d,h,f,p,g,m,v=n.length,y=[],b=[],x=[],w=0,A=0;for(r=0;r<v;++r){if(s=n[r].label,l=n[r].major?t.major:t.minor,e.font=c=l.string,u=i[c]=i[c]||{data:{},gc:[]},d=l.lineHeight,h=f=0,an(s)||on(s)){if(on(s))for(o=0,a=s.length;o<a;++o)p=s[o],an(p)||on(p)||(h=Y.measureText(e,u.data,u.gc,h,p),f+=d)}else h=Y.measureText(e,u.data,u.gc,h,s),f=d;y.push(h),b.push(f),x.push(d/2),w=Math.max(h,w),A=Math.max(f,A)}function _(e){return{width:y[e]||0,height:b[e]||0,offset:x[e]||0}}return function(e,t){Y.each(e,(function(e){var n,i=e.gc,r=i.length/2;if(r>t){for(n=0;n<r;++n)delete e.data[i[n]];i.splice(0,r)}}))}(i,v),g=y.indexOf(w),m=b.indexOf(A),{first:_(0),last:_(v-1),widest:_(g),highest:_(m)}}function dn(e){return e.drawTicks?e.tickMarkLength:0}function hn(e){var t,n;return e.display?(t=Y.options._parseFont(e),n=Y.options.toPadding(e.padding),t.lineHeight+n.height):0}function fn(e,t){return Y.extend(Y.options._parseFont({fontFamily:sn(t.fontFamily,e.fontFamily),fontSize:sn(t.fontSize,e.fontSize),fontStyle:sn(t.fontStyle,e.fontStyle),lineHeight:sn(t.lineHeight,e.lineHeight)}),{color:Y.options.resolve([t.fontColor,e.fontColor,F.global.defaultFontColor])})}function pn(e){var t=fn(e,e.minor);return{minor:t,major:e.major.enabled?fn(e,e.major):t}}function gn(e){var t,n,i,r=[];for(n=0,i=e.length;n<i;++n)void 0!==(t=e[n])._index&&r.push(t);return r}function mn(e,t,n,i){var r,o,a,s,l=sn(n,0),c=Math.min(sn(i,e.length),e.length),u=0;for(t=Math.ceil(t),i&&(t=(r=i-n)/Math.floor(r/t)),s=l;s<0;)u++,s=Math.round(l+u*t);for(o=Math.max(l,0);o<c;o++)a=e[o],o===s?(a._index=o,u++,s=Math.round(l+u*t)):delete a.label}F._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:rn.formatters.values,minor:{},major:{}}});var vn=J.extend({zeroLineIndex:0,getPadding:function(){var e=this;return{left:e.paddingLeft||0,top:e.paddingTop||0,right:e.paddingRight||0,bottom:e.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){Y.callback(this.options.beforeUpdate,[this])},update:function(e,t,n){var i,r,o,a,s,l=this,c=l.options.ticks,u=c.sampleSize;if(l.beforeUpdate(),l.maxWidth=e,l.maxHeight=t,l.margins=Y.extend({left:0,right:0,top:0,bottom:0},n),l._ticks=null,l.ticks=null,l._labelSizes=null,l._maxLabelLines=0,l.longestLabelWidth=0,l.longestTextCache=l.longestTextCache||{},l._gridLineItems=null,l._labelItems=null,l.beforeSetDimensions(),l.setDimensions(),l.afterSetDimensions(),l.beforeDataLimits(),l.determineDataLimits(),l.afterDataLimits(),l.beforeBuildTicks(),a=l.buildTicks()||[],(!(a=l.afterBuildTicks(a)||a)||!a.length)&&l.ticks)for(a=[],i=0,r=l.ticks.length;i<r;++i)a.push({value:l.ticks[i],major:!1});return l._ticks=a,s=u<a.length,o=l._convertTicksToLabels(s?function(e,t){for(var n=[],i=e.length/t,r=0,o=e.length;r<o;r+=i)n.push(e[Math.floor(r)]);return n}(a,u):a),l._configure(),l.beforeCalculateTickRotation(),l.calculateTickRotation(),l.afterCalculateTickRotation(),l.beforeFit(),l.fit(),l.afterFit(),l._ticksToDraw=c.display&&(c.autoSkip||"auto"===c.source)?l._autoSkip(a):a,s&&(o=l._convertTicksToLabels(l._ticksToDraw)),l.ticks=o,l.afterUpdate(),l.minSize},_configure:function(){var e,t,n=this,i=n.options.ticks.reverse;n.isHorizontal()?(e=n.left,t=n.right):(e=n.top,t=n.bottom,i=!i),n._startPixel=e,n._endPixel=t,n._reversePixels=i,n._length=t-e},afterUpdate:function(){Y.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){Y.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0},afterSetDimensions:function(){Y.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){Y.callback(this.options.beforeDataLimits,[this])},determineDataLimits:Y.noop,afterDataLimits:function(){Y.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){Y.callback(this.options.beforeBuildTicks,[this])},buildTicks:Y.noop,afterBuildTicks:function(e){var t=this;return on(e)&&e.length?Y.callback(t.options.afterBuildTicks,[t,e]):(t.ticks=Y.callback(t.options.afterBuildTicks,[t,t.ticks])||t.ticks,e)},beforeTickToLabelConversion:function(){Y.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this,t=e.options.ticks;e.ticks=e.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){Y.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){Y.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e,t,n,i,r,o,a,s=this,l=s.options,c=l.ticks,u=s.getTicks().length,d=c.minRotation||0,h=c.maxRotation,f=d;!s._isVisible()||!c.display||d>=h||u<=1||!s.isHorizontal()?s.labelRotation=d:(t=(e=s._getLabelSizes()).widest.width,n=e.highest.height-e.highest.offset,i=Math.min(s.maxWidth,s.chart.width-t),t+6>(r=l.offset?s.maxWidth/u:i/(u-1))&&(r=i/(u-(l.offset?.5:1)),o=s.maxHeight-dn(l.gridLines)-c.padding-hn(l.scaleLabel),a=Math.sqrt(t*t+n*n),f=Y.toDegrees(Math.min(Math.asin(Math.min((e.highest.height+6)/r,1)),Math.asin(Math.min(o/a,1))-Math.asin(n/a))),f=Math.max(d,Math.min(h,f))),s.labelRotation=f)},afterCalculateTickRotation:function(){Y.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){Y.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=e.chart,i=e.options,r=i.ticks,o=i.scaleLabel,a=i.gridLines,s=e._isVisible(),l="bottom"===i.position,c=e.isHorizontal();if(c?t.width=e.maxWidth:s&&(t.width=dn(a)+hn(o)),c?s&&(t.height=dn(a)+hn(o)):t.height=e.maxHeight,r.display&&s){var u=pn(r),d=e._getLabelSizes(),h=d.first,f=d.last,p=d.widest,g=d.highest,m=.4*u.minor.lineHeight,v=r.padding;if(c){var y=0!==e.labelRotation,b=Y.toRadians(e.labelRotation),x=Math.cos(b),w=Math.sin(b),A=w*p.width+x*(g.height-(y?g.offset:0))+(y?0:m);t.height=Math.min(e.maxHeight,t.height+A+v);var _,C,M=e.getPixelForTick(0)-e.left,k=e.right-e.getPixelForTick(e.getTicks().length-1);y?(_=l?x*h.width+w*h.offset:w*(h.height-h.offset),C=l?w*(f.height-f.offset):x*f.width+w*f.offset):(_=h.width/2,C=f.width/2),e.paddingLeft=Math.max((_-M)*e.width/(e.width-M),0)+3,e.paddingRight=Math.max((C-k)*e.width/(e.width-k),0)+3}else{var S=r.mirror?0:p.width+v+m;t.width=Math.min(e.maxWidth,t.width+S),e.paddingTop=h.height/2,e.paddingBottom=f.height/2}}e.handleMargins(),c?(e.width=e._length=n.width-e.margins.left-e.margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=n.height-e.margins.top-e.margins.bottom)},handleMargins:function(){var e=this;e.margins&&(e.margins.left=Math.max(e.paddingLeft,e.margins.left),e.margins.top=Math.max(e.paddingTop,e.margins.top),e.margins.right=Math.max(e.paddingRight,e.margins.right),e.margins.bottom=Math.max(e.paddingBottom,e.margins.bottom))},afterFit:function(){Y.callback(this.options.afterFit,[this])},isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(an(e))return NaN;if(("number"==typeof e||e instanceof Number)&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},_convertTicksToLabels:function(e){var t,n,i,r=this;for(r.ticks=e.map((function(e){return e.value})),r.beforeTickToLabelConversion(),t=r.convertTicksToLabels(e)||r.ticks,r.afterTickToLabelConversion(),n=0,i=e.length;n<i;++n)e[n].label=t[n];return t},_getLabelSizes:function(){var e=this,t=e._labelSizes;return t||(e._labelSizes=t=un(e.ctx,pn(e.options.ticks),e.getTicks(),e.longestTextCache),e.longestLabelWidth=t.widest.width),t},_parseValue:function(e){var t,n,i,r;return on(e)?(t=+this.getRightValue(e[0]),n=+this.getRightValue(e[1]),i=Math.min(t,n),r=Math.max(t,n)):(t=void 0,n=e=+this.getRightValue(e),i=e,r=e),{min:i,max:r,start:t,end:n}},_getScaleLabel:function(e){var t=this._parseValue(e);return void 0!==t.start?"["+t.start+", "+t.end+"]":+this.getRightValue(e)},getLabelForIndex:Y.noop,getPixelForValue:Y.noop,getValueForPixel:Y.noop,getPixelForTick:function(e){var t=this,n=t.options.offset,i=t._ticks.length,r=1/Math.max(i-(n?0:1),1);return e<0||e>i-1?null:t.getPixelForDecimal(e*r+(n?r/2:0))},getPixelForDecimal:function(e){var t=this;return t._reversePixels&&(e=1-e),t._startPixel+e*t._length},getDecimalForPixel:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this,t=e.min,n=e.max;return e.beginAtZero?0:t<0&&n<0?n:t>0&&n>0?t:0},_autoSkip:function(e){var t,n,i,r,o=this,a=o.options.ticks,s=o._length,l=a.maxTicksLimit||s/o._tickSize()+1,c=a.major.enabled?function(e){var t,n,i=[];for(t=0,n=e.length;t<n;t++)e[t].major&&i.push(t);return i}(e):[],u=c.length,d=c[0],h=c[u-1];if(u>l)return function(e,t,n){var i,r,o=0,a=t[0];for(n=Math.ceil(n),i=0;i<e.length;i++)r=e[i],i===a?(r._index=i,a=t[++o*n]):delete r.label}(e,c,u/l),gn(e);if(i=function(e,t,n,i){var r,o,a,s,l=function(e){var t,n,i=e.length;if(i<2)return!1;for(n=e[0],t=1;t<i;++t)if(e[t]-e[t-1]!==n)return!1;return n}(e),c=(t.length-1)/i;if(!l)return Math.max(c,1);for(a=0,s=(r=Y.math._factorize(l)).length-1;a<s;a++)if((o=r[a])>c)return o;return Math.max(c,1)}(c,e,0,l),u>0){for(t=0,n=u-1;t<n;t++)mn(e,i,c[t],c[t+1]);return r=u>1?(h-d)/(u-1):null,mn(e,i,Y.isNullOrUndef(r)?0:d-r,d),mn(e,i,h,Y.isNullOrUndef(r)?e.length:h+r),gn(e)}return mn(e,i),gn(e)},_tickSize:function(){var e=this,t=e.options.ticks,n=Y.toRadians(e.labelRotation),i=Math.abs(Math.cos(n)),r=Math.abs(Math.sin(n)),o=e._getLabelSizes(),a=t.autoSkipPadding||0,s=o?o.widest.width+a:0,l=o?o.highest.height+a:0;return e.isHorizontal()?l*i>s*r?s/i:l/r:l*r<s*i?l/i:s/r},_isVisible:function(){var e,t,n,i=this,r=i.chart,o=i.options.display;if("auto"!==o)return!!o;for(e=0,t=r.data.datasets.length;e<t;++e)if(r.isDatasetVisible(e)&&((n=r.getDatasetMeta(e)).xAxisID===i.id||n.yAxisID===i.id))return!0;return!1},_computeGridLineItems:function(e){var t,n,i,r,o,a,s,l,c,u,d,h,f,p,g,m,v,y=this,b=y.chart,x=y.options,w=x.gridLines,A=x.position,_=w.offsetGridLines,C=y.isHorizontal(),M=y._ticksToDraw,k=M.length+(_?1:0),S=dn(w),I=[],L=w.drawBorder?ln(w.lineWidth,0,0):0,T=L/2,D=Y._alignPixel,O=function(e){return D(b,e,L)};for("top"===A?(t=O(y.bottom),s=y.bottom-S,c=t-T,d=O(e.top)+T,f=e.bottom):"bottom"===A?(t=O(y.top),d=e.top,f=O(e.bottom)-T,s=t+T,c=y.top+S):"left"===A?(t=O(y.right),a=y.right-S,l=t-T,u=O(e.left)+T,h=e.right):(t=O(y.left),u=e.left,h=O(e.right)-T,a=t+T,l=y.left+S),n=0;n<k;++n)i=M[n]||{},an(i.label)&&n<M.length||(n===y.zeroLineIndex&&x.offset===_?(p=w.zeroLineWidth,g=w.zeroLineColor,m=w.zeroLineBorderDash||[],v=w.zeroLineBorderDashOffset||0):(p=ln(w.lineWidth,n,1),g=ln(w.color,n,"rgba(0,0,0,0.1)"),m=w.borderDash||[],v=w.borderDashOffset||0),void 0!==(r=cn(y,i._index||n,_))&&(o=D(b,r,p),C?a=l=u=h=o:s=c=d=f=o,I.push({tx1:a,ty1:s,tx2:l,ty2:c,x1:u,y1:d,x2:h,y2:f,width:p,color:g,borderDash:m,borderDashOffset:v})));return I.ticksLength=k,I.borderValue=t,I},_computeLabelItems:function(){var e,t,n,i,r,o,a,s,l,c,u,d,h=this,f=h.options,p=f.ticks,g=f.position,m=p.mirror,v=h.isHorizontal(),y=h._ticksToDraw,b=pn(p),x=p.padding,w=dn(f.gridLines),A=-Y.toRadians(h.labelRotation),_=[];for("top"===g?(o=h.bottom-w-x,a=A?"left":"center"):"bottom"===g?(o=h.top+w+x,a=A?"right":"center"):"left"===g?(r=h.right-(m?0:w)-x,a=m?"left":"right"):(r=h.left+(m?0:w)+x,a=m?"right":"left"),e=0,t=y.length;e<t;++e)i=(n=y[e]).label,an(i)||(s=h.getPixelForTick(n._index||e)+p.labelOffset,c=(l=n.major?b.major:b.minor).lineHeight,u=on(i)?i.length:1,v?(r=s,d="top"===g?((A?1:.5)-u)*c:(A?0:.5)*c):(o=s,d=(1-u)*c/2),_.push({x:r,y:o,rotation:A,label:i,font:l,textOffset:d,textAlign:a}));return _},_drawGrid:function(e){var t=this,n=t.options.gridLines;if(n.display){var i,r,o,a,s,l=t.ctx,c=t.chart,u=Y._alignPixel,d=n.drawBorder?ln(n.lineWidth,0,0):0,h=t._gridLineItems||(t._gridLineItems=t._computeGridLineItems(e));for(o=0,a=h.length;o<a;++o)i=(s=h[o]).width,r=s.color,i&&r&&(l.save(),l.lineWidth=i,l.strokeStyle=r,l.setLineDash&&(l.setLineDash(s.borderDash),l.lineDashOffset=s.borderDashOffset),l.beginPath(),n.drawTicks&&(l.moveTo(s.tx1,s.ty1),l.lineTo(s.tx2,s.ty2)),n.drawOnChartArea&&(l.moveTo(s.x1,s.y1),l.lineTo(s.x2,s.y2)),l.stroke(),l.restore());if(d){var f,p,g,m,v=d,y=ln(n.lineWidth,h.ticksLength-1,1),b=h.borderValue;t.isHorizontal()?(f=u(c,t.left,v)-v/2,p=u(c,t.right,y)+y/2,g=m=b):(g=u(c,t.top,v)-v/2,m=u(c,t.bottom,y)+y/2,f=p=b),l.lineWidth=d,l.strokeStyle=ln(n.color,0),l.beginPath(),l.moveTo(f,g),l.lineTo(p,m),l.stroke()}}},_drawLabels:function(){var e=this;if(e.options.ticks.display){var t,n,i,r,o,a,s,l,c=e.ctx,u=e._labelItems||(e._labelItems=e._computeLabelItems());for(t=0,i=u.length;t<i;++t){if(a=(o=u[t]).font,c.save(),c.translate(o.x,o.y),c.rotate(o.rotation),c.font=a.string,c.fillStyle=a.color,c.textBaseline="middle",c.textAlign=o.textAlign,s=o.label,l=o.textOffset,on(s))for(n=0,r=s.length;n<r;++n)c.fillText(""+s[n],0,l),l+=a.lineHeight;else c.fillText(s,0,l);c.restore()}}},_drawTitle:function(){var e=this,t=e.ctx,n=e.options,i=n.scaleLabel;if(i.display){var r,o,a=sn(i.fontColor,F.global.defaultFontColor),s=Y.options._parseFont(i),l=Y.options.toPadding(i.padding),c=s.lineHeight/2,u=n.position,d=0;if(e.isHorizontal())r=e.left+e.width/2,o="bottom"===u?e.bottom-c-l.bottom:e.top+c+l.top;else{var h="left"===u;r=h?e.left+c+l.top:e.right-c-l.top,o=e.top+e.height/2,d=h?-.5*Math.PI:.5*Math.PI}t.save(),t.translate(r,o),t.rotate(d),t.textAlign="center",t.textBaseline="middle",t.fillStyle=a,t.font=s.string,t.fillText(i.labelString,0,0),t.restore()}},draw:function(e){var t=this;t._isVisible()&&(t._drawGrid(e),t._drawTitle(),t._drawLabels())},_layers:function(){var e=this,t=e.options,n=t.ticks&&t.ticks.z||0,i=t.gridLines&&t.gridLines.z||0;return e._isVisible()&&n!==i&&e.draw===e._draw?[{z:i,draw:function(){e._drawGrid.apply(e,arguments),e._drawTitle.apply(e,arguments)}},{z:n,draw:function(){e._drawLabels.apply(e,arguments)}}]:[{z:n,draw:function(){e.draw.apply(e,arguments)}}]},_getMatchingVisibleMetas:function(e){var t=this,n=t.isHorizontal();return t.chart._getSortedVisibleDatasetMetas().filter((function(i){return(!e||i.type===e)&&(n?i.xAxisID===t.id:i.yAxisID===t.id)}))}});vn.prototype._draw=vn.prototype.draw;var yn=vn,bn=Y.isNullOrUndef,xn=yn.extend({determineDataLimits:function(){var e,t=this,n=t._getLabels(),i=t.options.ticks,r=i.min,o=i.max,a=0,s=n.length-1;void 0!==r&&(e=n.indexOf(r))>=0&&(a=e),void 0!==o&&(e=n.indexOf(o))>=0&&(s=e),t.minIndex=a,t.maxIndex=s,t.min=n[a],t.max=n[s]},buildTicks:function(){var e=this,t=e._getLabels(),n=e.minIndex,i=e.maxIndex;e.ticks=0===n&&i===t.length-1?t:t.slice(n,i+1)},getLabelForIndex:function(e,t){var n=this,i=n.chart;return i.getDatasetMeta(t).controller._getValueScaleId()===n.id?n.getRightValue(i.data.datasets[t].data[e]):n._getLabels()[e]},_configure:function(){var e=this,t=e.options.offset,n=e.ticks;yn.prototype._configure.call(e),e.isHorizontal()||(e._reversePixels=!e._reversePixels),n&&(e._startValue=e.minIndex-(t?.5:0),e._valueRange=Math.max(n.length-(t?0:1),1))},getPixelForValue:function(e,t,n){var i,r,o,a=this;return bn(t)||bn(n)||(e=a.chart.data.datasets[n].data[t]),bn(e)||(i=a.isHorizontal()?e.x:e.y),(void 0!==i||void 0!==e&&isNaN(t))&&(r=a._getLabels(),e=Y.valueOrDefault(i,e),t=-1!==(o=r.indexOf(e))?o:t,isNaN(t)&&(t=e)),a.getPixelForDecimal((t-a._startValue)/a._valueRange)},getPixelForTick:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function(e){var t=this,n=Math.round(t._startValue+t.getDecimalForPixel(e)*t._valueRange);return Math.min(Math.max(n,0),t.ticks.length-1)},getBasePixel:function(){return this.bottom}}),wn={position:"bottom"};xn._defaults=wn;var An=Y.noop,_n=Y.isNullOrUndef;var Cn=yn.extend({getRightValue:function(e){return"string"==typeof e?+e:yn.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=Y.sign(e.min),i=Y.sign(e.max);n<0&&i<0?e.max=0:n>0&&i>0&&(e.min=0)}var r=void 0!==t.min||void 0!==t.suggestedMin,o=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(null===e.min?e.min=t.suggestedMin:e.min=Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(null===e.max?e.max=t.suggestedMax:e.max=Math.max(e.max,t.suggestedMax)),r!==o&&e.min>=e.max&&(r?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:function(){var e,t=this,n=t.options.ticks,i=n.stepSize,r=n.maxTicksLimit;return i?e=Math.ceil(t.max/i)-Math.floor(t.min/i)+1:(e=t._computeTickLimit(),r=r||11),r&&(e=Math.min(r,e)),e},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:An,buildTicks:function(){var e=this,t=e.options.ticks,n=e.getTickLimit(),i={maxTicks:n=Math.max(2,n),min:t.min,max:t.max,precision:t.precision,stepSize:Y.valueOrDefault(t.fixedStepSize,t.stepSize)},r=e.ticks=function(e,t){var n,i,r,o,a=[],s=e.stepSize,l=s||1,c=e.maxTicks-1,u=e.min,d=e.max,h=e.precision,f=t.min,p=t.max,g=Y.niceNum((p-f)/c/l)*l;if(g<1e-14&&_n(u)&&_n(d))return[f,p];(o=Math.ceil(p/g)-Math.floor(f/g))>c&&(g=Y.niceNum(o*g/c/l)*l),s||_n(h)?n=Math.pow(10,Y._decimalPlaces(g)):(n=Math.pow(10,h),g=Math.ceil(g*n)/n),i=Math.floor(f/g)*g,r=Math.ceil(p/g)*g,s&&(!_n(u)&&Y.almostWhole(u/g,g/1e3)&&(i=u),!_n(d)&&Y.almostWhole(d/g,g/1e3)&&(r=d)),o=(r-i)/g,o=Y.almostEquals(o,Math.round(o),g/1e3)?Math.round(o):Math.ceil(o),i=Math.round(i*n)/n,r=Math.round(r*n)/n,a.push(_n(u)?i:u);for(var m=1;m<o;++m)a.push(Math.round((i+m*g)*n)/n);return a.push(_n(d)?r:d),a}(i,e);e.handleDirectionalChanges(),e.max=Y.max(r),e.min=Y.min(r),t.reverse?(r.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),yn.prototype.convertTicksToLabels.call(e)},_configure:function(){var e,t=this,n=t.getTicks(),i=t.min,r=t.max;yn.prototype._configure.call(t),t.options.offset&&n.length&&(i-=e=(r-i)/Math.max(n.length-1,1)/2,r+=e),t._startValue=i,t._endValue=r,t._valueRange=r-i}}),Mn={position:"left",ticks:{callback:rn.formatters.linear}};function kn(e,t,n,i){var r,o,a=e.options,s=function(e,t,n){var i=[n.type,void 0===t&&void 0===n.stack?n.index:"",n.stack].join(".");return void 0===e[i]&&(e[i]={pos:[],neg:[]}),e[i]}(t,a.stacked,n),l=s.pos,c=s.neg,u=i.length;for(r=0;r<u;++r)o=e._parseValue(i[r]),isNaN(o.min)||isNaN(o.max)||n.data[r].hidden||(l[r]=l[r]||0,c[r]=c[r]||0,a.relativePoints?l[r]=100:o.min<0||o.max<0?c[r]+=o.min:l[r]+=o.max)}function Sn(e,t,n){var i,r,o=n.length;for(i=0;i<o;++i)r=e._parseValue(n[i]),isNaN(r.min)||isNaN(r.max)||t.data[i].hidden||(e.min=Math.min(e.min,r.min),e.max=Math.max(e.max,r.max))}var In=Cn.extend({determineDataLimits:function(){var e,t,n,i,r=this,o=r.options,a=r.chart.data.datasets,s=r._getMatchingVisibleMetas(),l=o.stacked,c={},u=s.length;if(r.min=Number.POSITIVE_INFINITY,r.max=Number.NEGATIVE_INFINITY,void 0===l)for(e=0;!l&&e<u;++e)l=void 0!==(t=s[e]).stack;for(e=0;e<u;++e)n=a[(t=s[e]).index].data,l?kn(r,c,t,n):Sn(r,t,n);Y.each(c,(function(e){i=e.pos.concat(e.neg),r.min=Math.min(r.min,Y.min(i)),r.max=Math.max(r.max,Y.max(i))})),r.min=Y.isFinite(r.min)&&!isNaN(r.min)?r.min:0,r.max=Y.isFinite(r.max)&&!isNaN(r.max)?r.max:1,r.handleTickRangeOptions()},_computeTickLimit:function(){var e,t=this;return t.isHorizontal()?Math.ceil(t.width/40):(e=Y.options._parseFont(t.options.ticks),Math.ceil(t.height/e.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t=this;return t.getPixelForDecimal((+t.getRightValue(e)-t._startValue)/t._valueRange)},getValueForPixel:function(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange},getPixelForTick:function(e){var t=this.ticksAsNumbers;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])}}),Ln=Mn;In._defaults=Ln;var Tn=Y.valueOrDefault,Dn=Y.math.log10;var On={position:"left",ticks:{callback:rn.formatters.logarithmic}};function jn(e,t){return Y.isFinite(e)&&e>=0?e:t}var Nn=yn.extend({determineDataLimits:function(){var e,t,n,i,r,o,a=this,s=a.options,l=a.chart,c=l.data.datasets,u=a.isHorizontal();function d(e){return u?e.xAxisID===a.id:e.yAxisID===a.id}a.min=Number.POSITIVE_INFINITY,a.max=Number.NEGATIVE_INFINITY,a.minNotZero=Number.POSITIVE_INFINITY;var h=s.stacked;if(void 0===h)for(e=0;e<c.length;e++)if(t=l.getDatasetMeta(e),l.isDatasetVisible(e)&&d(t)&&void 0!==t.stack){h=!0;break}if(s.stacked||h){var f={};for(e=0;e<c.length;e++){var p=[(t=l.getDatasetMeta(e)).type,void 0===s.stacked&&void 0===t.stack?e:"",t.stack].join(".");if(l.isDatasetVisible(e)&&d(t))for(void 0===f[p]&&(f[p]=[]),r=0,o=(i=c[e].data).length;r<o;r++){var g=f[p];n=a._parseValue(i[r]),isNaN(n.min)||isNaN(n.max)||t.data[r].hidden||n.min<0||n.max<0||(g[r]=g[r]||0,g[r]+=n.max)}}Y.each(f,(function(e){if(e.length>0){var t=Y.min(e),n=Y.max(e);a.min=Math.min(a.min,t),a.max=Math.max(a.max,n)}}))}else for(e=0;e<c.length;e++)if(t=l.getDatasetMeta(e),l.isDatasetVisible(e)&&d(t))for(r=0,o=(i=c[e].data).length;r<o;r++)n=a._parseValue(i[r]),isNaN(n.min)||isNaN(n.max)||t.data[r].hidden||n.min<0||n.max<0||(a.min=Math.min(n.min,a.min),a.max=Math.max(n.max,a.max),0!==n.min&&(a.minNotZero=Math.min(n.min,a.minNotZero)));a.min=Y.isFinite(a.min)?a.min:null,a.max=Y.isFinite(a.max)?a.max:null,a.minNotZero=Y.isFinite(a.minNotZero)?a.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;e.min=jn(t.min,e.min),e.max=jn(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(Dn(e.min))-1),e.max=Math.pow(10,Math.floor(Dn(e.max))+1)):(e.min=1,e.max=10)),null===e.min&&(e.min=Math.pow(10,Math.floor(Dn(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(Dn(e.min))+1):10),null===e.minNotZero&&(e.min>0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(Dn(e.max))):e.minNotZero=1)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),i={min:jn(t.min),max:jn(t.max)},r=e.ticks=function(e,t){var n,i,r=[],o=Tn(e.min,Math.pow(10,Math.floor(Dn(t.min)))),a=Math.floor(Dn(t.max)),s=Math.ceil(t.max/Math.pow(10,a));0===o?(n=Math.floor(Dn(t.minNotZero)),i=Math.floor(t.minNotZero/Math.pow(10,n)),r.push(o),o=i*Math.pow(10,n)):(n=Math.floor(Dn(o)),i=Math.floor(o/Math.pow(10,n)));var l=n<0?Math.pow(10,Math.abs(n)):1;do{r.push(o),10==++i&&(i=1,l=++n>=0?1:l),o=Math.round(i*Math.pow(10,n)*l)/l}while(n<a||n===a&&i<s);var c=Tn(e.max,o);return r.push(c),r}(i,e);e.max=Y.max(r),e.min=Y.min(r),t.reverse?(n=!n,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n&&r.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),yn.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){var t=this.tickValues;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])},_getFirstTickValue:function(e){var t=Math.floor(Dn(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,n=0;yn.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),n=Tn(e.options.ticks.fontSize,F.global.defaultFontSize)/e._length),e._startValue=Dn(t),e._valueOffset=n,e._valueRange=(Dn(e.max)-Dn(t))/(1-n)},getPixelForValue:function(e){var t=this,n=0;return(e=+t.getRightValue(e))>t.min&&e>0&&(n=(Dn(e)-t._startValue)/t._valueRange+t._valueOffset),t.getPixelForDecimal(n)},getValueForPixel:function(e){var t=this,n=t.getDecimalForPixel(e);return 0===n&&0===t.min?0:Math.pow(10,t._startValue+(n-t._valueOffset)*t._valueRange)}}),En=On;Nn._defaults=En;var Pn=Y.valueOrDefault,Fn=Y.valueAtIndexOrDefault,zn=Y.options.resolve,Rn={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:rn.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function Bn(e){var t=e.ticks;return t.display&&e.display?Pn(t.fontSize,F.global.defaultFontSize)+2*t.backdropPaddingY:0}function Wn(e,t,n,i,r){return e===i||e===r?{start:t-n/2,end:t+n/2}:e<i||e>r?{start:t-n,end:t}:{start:t,end:t+n}}function Yn(e){return 0===e||180===e?"center":e<180?"left":"right"}function Un(e,t,n,i){var r,o,a=n.y+i/2;if(Y.isArray(t))for(r=0,o=t.length;r<o;++r)e.fillText(t[r],n.x,a),a+=i;else e.fillText(t,n.x,a)}function Hn(e,t,n){90===e||270===e?n.y-=t.h/2:(e>270||e<90)&&(n.y-=t.h)}function Vn(e){return Y.isNumber(e)?e:0}var Zn=Cn.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=Bn(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;Y.each(t.data.datasets,(function(r,o){if(t.isDatasetVisible(o)){var a=t.getDatasetMeta(o);Y.each(r.data,(function(t,r){var o=+e.getRightValue(t);isNaN(o)||a.data[r].hidden||(n=Math.min(o,n),i=Math.max(o,i))}))}})),e.min=n===Number.POSITIVE_INFINITY?0:n,e.max=i===Number.NEGATIVE_INFINITY?0:i,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Bn(this.options))},convertTicksToLabels:function(){var e=this;Cn.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map((function(){var t=Y.callback(e.options.pointLabels.callback,arguments,e);return t||0===t?t:""}))},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e=this,t=e.options;t.display&&t.pointLabels.display?function(e){var t,n,i,r=Y.options._parseFont(e.options.pointLabels),o={l:0,r:e.width,t:0,b:e.height-e.paddingTop},a={};e.ctx.font=r.string,e._pointLabelSizes=[];var s,l,c,u=e.chart.data.labels.length;for(t=0;t<u;t++){i=e.getPointPosition(t,e.drawingArea+5),s=e.ctx,l=r.lineHeight,c=e.pointLabels[t],n=Y.isArray(c)?{w:Y.longestText(s,s.font,c),h:c.length*l}:{w:s.measureText(c).width,h:l},e._pointLabelSizes[t]=n;var d=e.getIndexAngle(t),h=Y.toDegrees(d)%360,f=Wn(h,i.x,n.w,0,180),p=Wn(h,i.y,n.h,90,270);f.start<o.l&&(o.l=f.start,a.l=d),f.end>o.r&&(o.r=f.end,a.r=d),p.start<o.t&&(o.t=p.start,a.t=d),p.end>o.b&&(o.b=p.end,a.b=d)}e.setReductions(e.drawingArea,o,a)}(e):e.setCenterPoint(0,0,0,0)},setReductions:function(e,t,n){var i=this,r=t.l/Math.sin(n.l),o=Math.max(t.r-i.width,0)/Math.sin(n.r),a=-t.t/Math.cos(n.t),s=-Math.max(t.b-(i.height-i.paddingTop),0)/Math.cos(n.b);r=Vn(r),o=Vn(o),a=Vn(a),s=Vn(s),i.drawingArea=Math.min(Math.floor(e-(r+o)/2),Math.floor(e-(a+s)/2)),i.setCenterPoint(r,o,a,s)},setCenterPoint:function(e,t,n,i){var r=this,o=r.width-t-r.drawingArea,a=e+r.drawingArea,s=n+r.drawingArea,l=r.height-r.paddingTop-i-r.drawingArea;r.xCenter=Math.floor((a+o)/2+r.left),r.yCenter=Math.floor((s+l)/2+r.top+r.paddingTop)},getIndexAngle:function(e){var t=this.chart,n=(e*(360/t.data.labels.length)+((t.options||{}).startAngle||0))%360;return(n<0?n+360:n)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(Y.isNullOrUndef(e))return NaN;var n=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*n:(e-t.min)*n},getPointPosition:function(e,t){var n=this,i=n.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(i)*t+n.xCenter,y:Math.sin(i)*t+n.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(e){var t=this,n=t.min,i=t.max;return t.getPointPositionForValue(e||0,t.beginAtZero?0:n<0&&i<0?i:n>0&&i>0?n:0)},_drawGrid:function(){var e,t,n,i=this,r=i.ctx,o=i.options,a=o.gridLines,s=o.angleLines,l=Pn(s.lineWidth,a.lineWidth),c=Pn(s.color,a.color);if(o.pointLabels.display&&function(e){var t=e.ctx,n=e.options,i=n.pointLabels,r=Bn(n),o=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),a=Y.options._parseFont(i);t.save(),t.font=a.string,t.textBaseline="middle";for(var s=e.chart.data.labels.length-1;s>=0;s--){var l=0===s?r/2:0,c=e.getPointPosition(s,o+l+5),u=Fn(i.fontColor,s,F.global.defaultFontColor);t.fillStyle=u;var d=e.getIndexAngle(s),h=Y.toDegrees(d);t.textAlign=Yn(h),Hn(h,e._pointLabelSizes[s],c),Un(t,e.pointLabels[s],c,a.lineHeight)}t.restore()}(i),a.display&&Y.each(i.ticks,(function(e,n){0!==n&&(t=i.getDistanceFromCenterForValue(i.ticksAsNumbers[n]),function(e,t,n,i){var r,o=e.ctx,a=t.circular,s=e.chart.data.labels.length,l=Fn(t.color,i-1),c=Fn(t.lineWidth,i-1);if((a||s)&&l&&c){if(o.save(),o.strokeStyle=l,o.lineWidth=c,o.setLineDash&&(o.setLineDash(t.borderDash||[]),o.lineDashOffset=t.borderDashOffset||0),o.beginPath(),a)o.arc(e.xCenter,e.yCenter,n,0,2*Math.PI);else{r=e.getPointPosition(0,n),o.moveTo(r.x,r.y);for(var u=1;u<s;u++)r=e.getPointPosition(u,n),o.lineTo(r.x,r.y)}o.closePath(),o.stroke(),o.restore()}}(i,a,t,n))})),s.display&&l&&c){for(r.save(),r.lineWidth=l,r.strokeStyle=c,r.setLineDash&&(r.setLineDash(zn([s.borderDash,a.borderDash,[]])),r.lineDashOffset=zn([s.borderDashOffset,a.borderDashOffset,0])),e=i.chart.data.labels.length-1;e>=0;e--)t=i.getDistanceFromCenterForValue(o.ticks.reverse?i.min:i.max),n=i.getPointPosition(e,t),r.beginPath(),r.moveTo(i.xCenter,i.yCenter),r.lineTo(n.x,n.y),r.stroke();r.restore()}},_drawLabels:function(){var e=this,t=e.ctx,n=e.options.ticks;if(n.display){var i,r,o=e.getIndexAngle(0),a=Y.options._parseFont(n),s=Pn(n.fontColor,F.global.defaultFontColor);t.save(),t.font=a.string,t.translate(e.xCenter,e.yCenter),t.rotate(o),t.textAlign="center",t.textBaseline="middle",Y.each(e.ticks,(function(o,l){(0!==l||n.reverse)&&(i=e.getDistanceFromCenterForValue(e.ticksAsNumbers[l]),n.showLabelBackdrop&&(r=t.measureText(o).width,t.fillStyle=n.backdropColor,t.fillRect(-r/2-n.backdropPaddingX,-i-a.size/2-n.backdropPaddingY,r+2*n.backdropPaddingX,a.size+2*n.backdropPaddingY)),t.fillStyle=s,t.fillText(o,0,-i))})),t.restore()}},_drawTitle:Y.noop}),Gn=Rn;Zn._defaults=Gn;var Qn=Y._deprecated,Jn=Y.options.resolve,qn=Y.valueOrDefault,Xn=Number.MIN_SAFE_INTEGER||-9007199254740991,Kn=Number.MAX_SAFE_INTEGER||9007199254740991,$n={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},ei=Object.keys($n);function ti(e,t){return e-t}function ni(e){return Y.valueOrDefault(e.time.min,e.ticks.min)}function ii(e){return Y.valueOrDefault(e.time.max,e.ticks.max)}function ri(e,t,n,i){var r=function(e,t,n){for(var i,r,o,a=0,s=e.length-1;a>=0&&a<=s;){if(r=e[(i=a+s>>1)-1]||null,o=e[i],!r)return{lo:null,hi:o};if(o[t]<n)a=i+1;else{if(!(r[t]>n))return{lo:r,hi:o};s=i-1}}return{lo:o,hi:null}}(e,t,n),o=r.lo?r.hi?r.lo:e[e.length-2]:e[0],a=r.lo?r.hi?r.hi:e[e.length-1]:e[1],s=a[t]-o[t],l=s?(n-o[t])/s:0,c=(a[i]-o[i])*l;return o[i]+c}function oi(e,t){var n=e._adapter,i=e.options.time,r=i.parser,o=r||i.format,a=t;return"function"==typeof r&&(a=r(a)),Y.isFinite(a)||(a="string"==typeof o?n.parse(a,o):n.parse(a)),null!==a?+a:(r||"function"!=typeof o||(a=o(t),Y.isFinite(a)||(a=n.parse(a))),a)}function ai(e,t){if(Y.isNullOrUndef(t))return null;var n=e.options.time,i=oi(e,e.getRightValue(t));return null===i||n.round&&(i=+e._adapter.startOf(i,n.round)),i}function si(e,t,n,i){var r,o,a,s=ei.length;for(r=ei.indexOf(e);r<s-1;++r)if(a=(o=$n[ei[r]]).steps?o.steps:Kn,o.common&&Math.ceil((n-t)/(a*o.size))<=i)return ei[r];return ei[s-1]}function li(e,t,n){var i,r,o=[],a={},s=t.length;for(i=0;i<s;++i)a[r=t[i]]=i,o.push({value:r,major:!1});return 0!==s&&n?function(e,t,n,i){var r,o,a=e._adapter,s=+a.startOf(t[0].value,i),l=t[t.length-1].value;for(r=s;r<=l;r=+a.add(r,1,i))(o=n[r])>=0&&(t[o].major=!0);return t}(e,o,a,n):o}var ci=yn.extend({initialize:function(){this.mergeTicksOptions(),yn.prototype.initialize.call(this)},update:function(){var e=this,t=e.options,n=t.time||(t.time={}),i=e._adapter=new nn._date(t.adapters.date);return Qn("time scale",n.format,"time.format","time.parser"),Qn("time scale",n.min,"time.min","ticks.min"),Qn("time scale",n.max,"time.max","ticks.max"),Y.mergeIf(n.displayFormats,i.formats()),yn.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),yn.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,i,r,o,a,s=this,l=s.chart,c=s._adapter,u=s.options,d=u.time.unit||"day",h=Kn,f=Xn,p=[],g=[],m=[],v=s._getLabels();for(e=0,n=v.length;e<n;++e)m.push(ai(s,v[e]));for(e=0,n=(l.data.datasets||[]).length;e<n;++e)if(l.isDatasetVisible(e))if(r=l.data.datasets[e].data,Y.isObject(r[0]))for(g[e]=[],t=0,i=r.length;t<i;++t)o=ai(s,r[t]),p.push(o),g[e][t]=o;else g[e]=m.slice(0),a||(p=p.concat(m),a=!0);else g[e]=[];m.length&&(h=Math.min(h,m[0]),f=Math.max(f,m[m.length-1])),p.length&&(p=n>1?function(e){var t,n,i,r={},o=[];for(t=0,n=e.length;t<n;++t)r[i=e[t]]||(r[i]=!0,o.push(i));return o}(p).sort(ti):p.sort(ti),h=Math.min(h,p[0]),f=Math.max(f,p[p.length-1])),h=ai(s,ni(u))||h,f=ai(s,ii(u))||f,h=h===Kn?+c.startOf(Date.now(),d):h,f=f===Xn?+c.endOf(Date.now(),d)+1:f,s.min=Math.min(h,f),s.max=Math.max(h+1,f),s._table=[],s._timestamps={data:p,datasets:g,labels:m}},buildTicks:function(){var e,t,n,i=this,r=i.min,o=i.max,a=i.options,s=a.ticks,l=a.time,c=i._timestamps,u=[],d=i.getLabelCapacity(r),h=s.source,f=a.distribution;for(c="data"===h||"auto"===h&&"series"===f?c.data:"labels"===h?c.labels:function(e,t,n,i){var r,o=e._adapter,a=e.options,s=a.time,l=s.unit||si(s.minUnit,t,n,i),c=Jn([s.stepSize,s.unitStepSize,1]),u="week"===l&&s.isoWeekday,d=t,h=[];if(u&&(d=+o.startOf(d,"isoWeek",u)),d=+o.startOf(d,u?"day":l),o.diff(n,t,l)>1e5*c)throw t+" and "+n+" are too far apart with stepSize of "+c+" "+l;for(r=d;r<n;r=+o.add(r,c,l))h.push(r);return r!==n&&"ticks"!==a.bounds||h.push(r),h}(i,r,o,d),"ticks"===a.bounds&&c.length&&(r=c[0],o=c[c.length-1]),r=ai(i,ni(a))||r,o=ai(i,ii(a))||o,e=0,t=c.length;e<t;++e)(n=c[e])>=r&&n<=o&&u.push(n);return i.min=r,i.max=o,i._unit=l.unit||(s.autoSkip?si(l.minUnit,i.min,i.max,d):function(e,t,n,i,r){var o,a;for(o=ei.length-1;o>=ei.indexOf(n);o--)if(a=ei[o],$n[a].common&&e._adapter.diff(r,i,a)>=t-1)return a;return ei[n?ei.indexOf(n):0]}(i,u.length,l.minUnit,i.min,i.max)),i._majorUnit=s.major.enabled&&"year"!==i._unit?function(e){for(var t=ei.indexOf(e)+1,n=ei.length;t<n;++t)if($n[ei[t]].common)return ei[t]}(i._unit):void 0,i._table=function(e,t,n,i){if("linear"===i||!e.length)return[{time:t,pos:0},{time:n,pos:1}];var r,o,a,s,l,c=[],u=[t];for(r=0,o=e.length;r<o;++r)(s=e[r])>t&&s<n&&u.push(s);for(u.push(n),r=0,o=u.length;r<o;++r)l=u[r+1],a=u[r-1],s=u[r],void 0!==a&&void 0!==l&&Math.round((l+a)/2)===s||c.push({time:s,pos:r/(o-1)});return c}(i._timestamps.data,r,o,f),i._offsets=function(e,t,n,i,r){var o,a,s=0,l=0;return r.offset&&t.length&&(o=ri(e,"time",t[0],"pos"),s=1===t.length?1-o:(ri(e,"time",t[1],"pos")-o)/2,a=ri(e,"time",t[t.length-1],"pos"),l=1===t.length?a:(a-ri(e,"time",t[t.length-2],"pos"))/2),{start:s,end:l,factor:1/(s+1+l)}}(i._table,u,0,0,a),s.reverse&&u.reverse(),li(i,u,i._majorUnit)},getLabelForIndex:function(e,t){var n=this,i=n._adapter,r=n.chart.data,o=n.options.time,a=r.labels&&e<r.labels.length?r.labels[e]:"",s=r.datasets[t].data[e];return Y.isObject(s)&&(a=n.getRightValue(s)),o.tooltipFormat?i.format(oi(n,a),o.tooltipFormat):"string"==typeof a?a:i.format(oi(n,a),o.displayFormats.datetime)},tickFormatFunction:function(e,t,n,i){var r=this,o=r._adapter,a=r.options,s=a.time.displayFormats,l=s[r._unit],c=r._majorUnit,u=s[c],d=n[t],h=a.ticks,f=c&&u&&d&&d.major,p=o.format(e,i||(f?u:l)),g=f?h.major:h.minor,m=Jn([g.callback,g.userCallback,h.callback,h.userCallback]);return m?m(p,t,n):p},convertTicksToLabels:function(e){var t,n,i=[];for(t=0,n=e.length;t<n;++t)i.push(this.tickFormatFunction(e[t].value,t,e));return i},getPixelForOffset:function(e){var t=this,n=t._offsets,i=ri(t._table,"time",e,"pos");return t.getPixelForDecimal((n.start+i)*n.factor)},getPixelForValue:function(e,t,n){var i=this,r=null;if(void 0!==t&&void 0!==n&&(r=i._timestamps.datasets[n][t]),null===r&&(r=ai(i,e)),null!==r)return i.getPixelForOffset(r)},getPixelForTick:function(e){var t=this.getTicks();return e>=0&&e<t.length?this.getPixelForOffset(t[e].value):null},getValueForPixel:function(e){var t=this,n=t._offsets,i=t.getDecimalForPixel(e)/n.factor-n.end,r=ri(t._table,"pos",i,"time");return t._adapter._create(r)},_getLabelSize:function(e){var t=this,n=t.options.ticks,i=t.ctx.measureText(e).width,r=Y.toRadians(t.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(r),a=Math.sin(r),s=qn(n.fontSize,F.global.defaultFontSize);return{w:i*o+s*a,h:i*a+s*o}},getLabelWidth:function(e){return this._getLabelSize(e).w},getLabelCapacity:function(e){var t=this,n=t.options.time,i=n.displayFormats,r=i[n.unit]||i.millisecond,o=t.tickFormatFunction(e,0,li(t,[e],t._majorUnit),r),a=t._getLabelSize(o),s=Math.floor(t.isHorizontal()?t.width/a.w:t.height/a.h);return t.options.offset&&s--,s>0?s:1}}),ui={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};ci._defaults=ui;var di={category:xn,linear:In,logarithmic:Nn,radialLinear:Zn,time:ci},hi={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};nn._date.override("function"==typeof e?{_id:"moment",formats:function(){return hi},parse:function(t,n){return"string"==typeof t&&"string"==typeof n?t=e(t,n):t instanceof e||(t=e(t)),t.isValid()?t.valueOf():null},format:function(t,n){return e(t).format(n)},add:function(t,n,i){return e(t).add(n,i).valueOf()},diff:function(t,n,i){return e(t).diff(e(n),i)},startOf:function(t,n,i){return t=e(t),"isoWeek"===n?t.isoWeekday(i).valueOf():t.startOf(n).valueOf()},endOf:function(t,n){return e(t).endOf(n).valueOf()},_create:function(t){return e(t)}}:{}),F._set("global",{plugins:{filler:{propagate:!0}}});var fi={dataset:function(e){var t=e.fill,n=e.chart,i=n.getDatasetMeta(t),r=i&&n.isDatasetVisible(t)&&i.dataset._children||[],o=r.length||0;return o?function(e,t){return t<o&&r[t]._view||null}:null},boundary:function(e){var t=e.boundary,n=t?t.x:null,i=t?t.y:null;return Y.isArray(t)?function(e,n){return t[n]}:function(e){return{x:null===n?e.x:n,y:null===i?e.y:i}}}};function pi(e,t,n){var i,r=e._model||{},o=r.fill;if(void 0===o&&(o=!!r.backgroundColor),!1===o||null===o)return!1;if(!0===o)return"origin";if(i=parseFloat(o,10),isFinite(i)&&Math.floor(i)===i)return"-"!==o[0]&&"+"!==o[0]||(i=t+i),!(i===t||i<0||i>=n)&&i;switch(o){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return o;default:return!1}}function gi(e){return(e.el._scale||{}).getPointPositionForValue?function(e){var t,n,i,r,o,a=e.el._scale,s=a.options,l=a.chart.data.labels.length,c=e.fill,u=[];if(!l)return null;for(t=s.ticks.reverse?a.max:a.min,n=s.ticks.reverse?a.min:a.max,i=a.getPointPositionForValue(0,t),r=0;r<l;++r)o="start"===c||"end"===c?a.getPointPositionForValue(r,"start"===c?t:n):a.getBasePosition(r),s.gridLines.circular&&(o.cx=i.x,o.cy=i.y,o.angle=a.getIndexAngle(r)-Math.PI/2),u.push(o);return u}(e):function(e){var t,n=e.el._model||{},i=e.el._scale||{},r=e.fill,o=null;if(isFinite(r))return null;if("start"===r?o=void 0===n.scaleBottom?i.bottom:n.scaleBottom:"end"===r?o=void 0===n.scaleTop?i.top:n.scaleTop:void 0!==n.scaleZero?o=n.scaleZero:i.getBasePixel&&(o=i.getBasePixel()),null!=o){if(void 0!==o.x&&void 0!==o.y)return o;if(Y.isFinite(o))return{x:(t=i.isHorizontal())?o:null,y:t?null:o}}return null}(e)}function mi(e,t,n){var i,r=e[t].fill,o=[t];if(!n)return r;for(;!1!==r&&-1===o.indexOf(r);){if(!isFinite(r))return r;if(!(i=e[r]))return!1;if(i.visible)return r;o.push(r),r=i.fill}return!1}function vi(e){var t=e.fill,n="dataset";return!1===t?null:(isFinite(t)||(n="boundary"),fi[n](e))}function yi(e){return e&&!e.skip}function bi(e,t,n,i,r){var o,a,s,l;if(i&&r){for(e.moveTo(t[0].x,t[0].y),o=1;o<i;++o)Y.canvas.lineTo(e,t[o-1],t[o]);if(void 0===n[0].angle)for(e.lineTo(n[r-1].x,n[r-1].y),o=r-1;o>0;--o)Y.canvas.lineTo(e,n[o],n[o-1],!0);else for(a=n[0].cx,s=n[0].cy,l=Math.sqrt(Math.pow(n[0].x-a,2)+Math.pow(n[0].y-s,2)),o=r-1;o>0;--o)e.arc(a,s,l,n[o].angle,n[o-1].angle,!0)}}function xi(e,t,n,i,r,o){var a,s,l,c,u,d,h,f,p=t.length,g=i.spanGaps,m=[],v=[],y=0,b=0;for(e.beginPath(),a=0,s=p;a<s;++a)u=n(c=t[l=a%p]._view,l,i),d=yi(c),h=yi(u),o&&void 0===f&&d&&(s=p+(f=a+1)),d&&h?(y=m.push(c),b=v.push(u)):y&&b&&(g?(d&&m.push(c),h&&v.push(u)):(bi(e,m,v,y,b),y=b=0,m=[],v=[]));bi(e,m,v,y,b),e.closePath(),e.fillStyle=r,e.fill()}var wi={id:"filler",afterDatasetsUpdate:function(e,t){var n,i,r,o,a=(e.data.datasets||[]).length,s=t.propagate,l=[];for(i=0;i<a;++i)o=null,(r=(n=e.getDatasetMeta(i)).dataset)&&r._model&&r instanceof Ae.Line&&(o={visible:e.isDatasetVisible(i),fill:pi(r,i,a),chart:e,el:r}),n.$filler=o,l.push(o);for(i=0;i<a;++i)(o=l[i])&&(o.fill=mi(l,i,s),o.boundary=gi(o),o.mapper=vi(o))},beforeDatasetsDraw:function(e){var t,n,i,r,o,a,s,l=e._getSortedVisibleDatasetMetas(),c=e.ctx;for(n=l.length-1;n>=0;--n)(t=l[n].$filler)&&t.visible&&(r=(i=t.el)._view,o=i._children||[],a=t.mapper,s=r.backgroundColor||F.global.defaultColor,a&&s&&o.length&&(Y.canvas.clipArea(c,e.chartArea),xi(c,o,a,r,s,i._loop),Y.canvas.unclipArea(c)))}},Ai=Y.rtl.getRtlAdapter,_i=Y.noop,Ci=Y.valueOrDefault;function Mi(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}F._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,i=this.chart,r=i.getDatasetMeta(n);r.hidden=null===r.hidden?!i.data.datasets[n].hidden:null,i.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,n=e.options.legend||{},i=n.labels&&n.labels.usePointStyle;return e._getSortedDatasetMetas().map((function(n){var r=n.controller.getStyle(i?0:void 0);return{text:t[n.index].label,fillStyle:r.backgroundColor,hidden:!e.isDatasetVisible(n.index),lineCap:r.borderCapStyle,lineDash:r.borderDash,lineDashOffset:r.borderDashOffset,lineJoin:r.borderJoinStyle,lineWidth:r.borderWidth,strokeStyle:r.borderColor,pointStyle:r.pointStyle,rotation:r.rotation,datasetIndex:n.index}}),this)}}},legendCallback:function(e){var t,n,i,r=document.createElement("ul"),o=e.data.datasets;for(r.setAttribute("class",e.id+"-legend"),t=0,n=o.length;t<n;t++)(i=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[t].backgroundColor,o[t].label&&i.appendChild(document.createTextNode(o[t].label));return r.outerHTML}});var ki=J.extend({initialize:function(e){var t=this;Y.extend(t,e),t.legendHitBoxes=[],t._hoveredItem=null,t.doughnutMode=!1},beforeUpdate:_i,update:function(e,t,n){var i=this;return i.beforeUpdate(),i.maxWidth=e,i.maxHeight=t,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:_i,beforeSetDimensions:_i,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:_i,beforeBuildLabels:_i,buildLabels:function(){var e=this,t=e.options.labels||{},n=Y.callback(t.generateLabels,[e.chart],e)||[];t.filter&&(n=n.filter((function(n){return t.filter(n,e.chart.data)}))),e.options.reverse&&n.reverse(),e.legendItems=n},afterBuildLabels:_i,beforeFit:_i,fit:function(){var e=this,t=e.options,n=t.labels,i=t.display,r=e.ctx,o=Y.options._parseFont(n),a=o.size,s=e.legendHitBoxes=[],l=e.minSize,c=e.isHorizontal();if(c?(l.width=e.maxWidth,l.height=i?10:0):(l.width=i?10:0,l.height=e.maxHeight),i){if(r.font=o.string,c){var u=e.lineWidths=[0],d=0;r.textAlign="left",r.textBaseline="middle",Y.each(e.legendItems,(function(e,t){var i=Mi(n,a)+a/2+r.measureText(e.text).width;(0===t||u[u.length-1]+i+2*n.padding>l.width)&&(d+=a+n.padding,u[u.length-(t>0?0:1)]=0),s[t]={left:0,top:0,width:i,height:a},u[u.length-1]+=i+n.padding})),l.height+=d}else{var h=n.padding,f=e.columnWidths=[],p=e.columnHeights=[],g=n.padding,m=0,v=0;Y.each(e.legendItems,(function(e,t){var i=Mi(n,a)+a/2+r.measureText(e.text).width;t>0&&v+a+2*h>l.height&&(g+=m+n.padding,f.push(m),p.push(v),m=0,v=0),m=Math.max(m,i),v+=a+h,s[t]={left:0,top:0,width:i,height:a}})),g+=m,f.push(m),p.push(v),l.width+=g}e.width=l.width,e.height=l.height}else e.width=l.width=e.height=l.height=0},afterFit:_i,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,i=F.global,r=i.defaultColor,o=i.elements.line,a=e.height,s=e.columnHeights,l=e.width,c=e.lineWidths;if(t.display){var u,d=Ai(t.rtl,e.left,e.minSize.width),h=e.ctx,f=Ci(n.fontColor,i.defaultFontColor),p=Y.options._parseFont(n),g=p.size;h.textAlign=d.textAlign("left"),h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=f,h.fillStyle=f,h.font=p.string;var m=Mi(n,g),v=e.legendHitBoxes,y=function(e,i){switch(t.align){case"start":return n.padding;case"end":return e-i;default:return(e-i+n.padding)/2}},b=e.isHorizontal();u=b?{x:e.left+y(l,c[0]),y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+y(a,s[0]),line:0},Y.rtl.overrideTextDirection(e.ctx,t.textDirection);var x=g+n.padding;Y.each(e.legendItems,(function(t,i){var f=h.measureText(t.text).width,p=m+g/2+f,w=u.x,A=u.y;d.setWidth(e.minSize.width),b?i>0&&w+p+n.padding>e.left+e.minSize.width&&(A=u.y+=x,u.line++,w=u.x=e.left+y(l,c[u.line])):i>0&&A+x>e.top+e.minSize.height&&(w=u.x=w+e.columnWidths[u.line]+n.padding,u.line++,A=u.y=e.top+y(a,s[u.line]));var _=d.x(w);(function(e,t,i){if(!(isNaN(m)||m<=0)){h.save();var a=Ci(i.lineWidth,o.borderWidth);if(h.fillStyle=Ci(i.fillStyle,r),h.lineCap=Ci(i.lineCap,o.borderCapStyle),h.lineDashOffset=Ci(i.lineDashOffset,o.borderDashOffset),h.lineJoin=Ci(i.lineJoin,o.borderJoinStyle),h.lineWidth=a,h.strokeStyle=Ci(i.strokeStyle,r),h.setLineDash&&h.setLineDash(Ci(i.lineDash,o.borderDash)),n&&n.usePointStyle){var s=m*Math.SQRT2/2,l=d.xPlus(e,m/2),c=t+g/2;Y.canvas.drawPoint(h,i.pointStyle,s,l,c,i.rotation)}else h.fillRect(d.leftForLtr(e,m),t,m,g),0!==a&&h.strokeRect(d.leftForLtr(e,m),t,m,g);h.restore()}})(_,A,t),v[i].left=d.leftForLtr(_,v[i].width),v[i].top=A,function(e,t,n,i){var r=g/2,o=d.xPlus(e,m+r),a=t+r;h.fillText(n.text,o,a),n.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(o,a),h.lineTo(d.xPlus(o,i),a),h.stroke())}(_,A,t,f),b?u.x+=p+n.padding:u.y+=x})),Y.rtl.restoreTextDirection(e.ctx,t.textDirection)}},_getLegendItemAt:function(e,t){var n,i,r,o=this;if(e>=o.left&&e<=o.right&&t>=o.top&&t<=o.bottom)for(r=o.legendHitBoxes,n=0;n<r.length;++n)if(e>=(i=r[n]).left&&e<=i.left+i.width&&t>=i.top&&t<=i.top+i.height)return o.legendItems[n];return null},handleEvent:function(e){var t,n=this,i=n.options,r="mouseup"===e.type?"click":e.type;if("mousemove"===r){if(!i.onHover&&!i.onLeave)return}else{if("click"!==r)return;if(!i.onClick)return}t=n._getLegendItemAt(e.x,e.y),"click"===r?t&&i.onClick&&i.onClick.call(n,e.native,t):(i.onLeave&&t!==n._hoveredItem&&(n._hoveredItem&&i.onLeave.call(n,e.native,n._hoveredItem),n._hoveredItem=t),i.onHover&&t&&i.onHover.call(n,e.native,t))}});function Si(e,t){var n=new ki({ctx:e.ctx,options:t,chart:e});ft.configure(e,n,t),ft.addBox(e,n),e.legend=n}var Ii={id:"legend",_element:ki,beforeInit:function(e){var t=e.options.legend;t&&Si(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(Y.mergeIf(t,F.global.legend),n?(ft.configure(e,n,t),n.options=t):Si(e,t)):n&&(ft.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}},Li=Y.noop;F._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Ti=J.extend({initialize:function(e){Y.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:Li,update:function(e,t,n){var i=this;return i.beforeUpdate(),i.maxWidth=e,i.maxHeight=t,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:Li,beforeSetDimensions:Li,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Li,beforeBuildLabels:Li,buildLabels:Li,afterBuildLabels:Li,beforeFit:Li,fit:function(){var e,t=this,n=t.options,i=t.minSize={},r=t.isHorizontal();n.display?(e=(Y.isArray(n.text)?n.text.length:1)*Y.options._parseFont(n).lineHeight+2*n.padding,t.width=i.width=r?t.maxWidth:e,t.height=i.height=r?e:t.maxHeight):t.width=i.width=t.height=i.height=0},afterFit:Li,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,n=e.options;if(n.display){var i,r,o,a=Y.options._parseFont(n),s=a.lineHeight,l=s/2+n.padding,c=0,u=e.top,d=e.left,h=e.bottom,f=e.right;t.fillStyle=Y.valueOrDefault(n.fontColor,F.global.defaultFontColor),t.font=a.string,e.isHorizontal()?(r=d+(f-d)/2,o=u+l,i=f-d):(r="left"===n.position?d+l:f-l,o=u+(h-u)/2,i=h-u,c=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(r,o),t.rotate(c),t.textAlign="center",t.textBaseline="middle";var p=n.text;if(Y.isArray(p))for(var g=0,m=0;m<p.length;++m)t.fillText(p[m],0,g,i),g+=s;else t.fillText(p,0,0,i);t.restore()}}});function Di(e,t){var n=new Ti({ctx:e.ctx,options:t,chart:e});ft.configure(e,n,t),ft.addBox(e,n),e.titleBlock=n}var Oi={},ji=wi,Ni=Ii,Ei={id:"title",_element:Ti,beforeInit:function(e){var t=e.options.title;t&&Di(e,t)},beforeUpdate:function(e){var t=e.options.title,n=e.titleBlock;t?(Y.mergeIf(t,F.global.title),n?(ft.configure(e,n,t),n.options=t):Di(e,t)):n&&(ft.removeBox(e,n),delete e.titleBlock)}};for(var Pi in Oi.filler=ji,Oi.legend=Ni,Oi.title=Ei,$t.helpers=Y,function(){function e(e,t,n){var i;return"string"==typeof e?(i=parseInt(e,10),-1!==e.indexOf("%")&&(i=i/100*t.parentNode[n])):i=e,i}function t(e){return null!=e&&"none"!==e}function n(n,i,r){var o=document.defaultView,a=Y._getParentNode(n),s=o.getComputedStyle(n)[i],l=o.getComputedStyle(a)[i],c=t(s),u=t(l),d=Number.POSITIVE_INFINITY;return c||u?Math.min(c?e(s,n,r):d,u?e(l,a,r):d):"none"}Y.where=function(e,t){if(Y.isArray(e)&&Array.prototype.filter)return e.filter(t);var n=[];return Y.each(e,(function(e){t(e)&&n.push(e)})),n},Y.findIndex=Array.prototype.findIndex?function(e,t,n){return e.findIndex(t,n)}:function(e,t,n){n=void 0===n?e:n;for(var i=0,r=e.length;i<r;++i)if(t.call(n,e[i],i,e))return i;return-1},Y.findNextWhere=function(e,t,n){Y.isNullOrUndef(n)&&(n=-1);for(var i=n+1;i<e.length;i++){var r=e[i];if(t(r))return r}},Y.findPreviousWhere=function(e,t,n){Y.isNullOrUndef(n)&&(n=e.length);for(var i=n-1;i>=0;i--){var r=e[i];if(t(r))return r}},Y.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},Y.almostEquals=function(e,t,n){return Math.abs(e-t)<n},Y.almostWhole=function(e,t){var n=Math.round(e);return n-t<=e&&n+t>=e},Y.max=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.max(e,t)}),Number.NEGATIVE_INFINITY)},Y.min=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.min(e,t)}),Number.POSITIVE_INFINITY)},Y.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0==(e=+e)||isNaN(e)?e:e>0?1:-1},Y.toRadians=function(e){return e*(Math.PI/180)},Y.toDegrees=function(e){return e*(180/Math.PI)},Y._decimalPlaces=function(e){if(Y.isFinite(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}},Y.getAngleFromPoint=function(e,t){var n=t.x-e.x,i=t.y-e.y,r=Math.sqrt(n*n+i*i),o=Math.atan2(i,n);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:r}},Y.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Y.aliasPixel=function(e){return e%2==0?0:.5},Y._alignPixel=function(e,t,n){var i=e.currentDevicePixelRatio,r=n/2;return Math.round((t-r)*i)/i+r},Y.splineCurve=function(e,t,n,i){var r=e.skip?t:e,o=t,a=n.skip?t:n,s=Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),l=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2)),c=s/(s+l),u=l/(s+l),d=i*(c=isNaN(c)?0:c),h=i*(u=isNaN(u)?0:u);return{previous:{x:o.x-d*(a.x-r.x),y:o.y-d*(a.y-r.y)},next:{x:o.x+h*(a.x-r.x),y:o.y+h*(a.y-r.y)}}},Y.EPSILON=Number.EPSILON||1e-14,Y.splineCurveMonotone=function(e){var t,n,i,r,o,a,s,l,c,u=(e||[]).map((function(e){return{model:e._model,deltaK:0,mK:0}})),d=u.length;for(t=0;t<d;++t)if(!(i=u[t]).model.skip){if(n=t>0?u[t-1]:null,(r=t<d-1?u[t+1]:null)&&!r.model.skip){var h=r.model.x-i.model.x;i.deltaK=0!==h?(r.model.y-i.model.y)/h:0}!n||n.model.skip?i.mK=i.deltaK:!r||r.model.skip?i.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(i.deltaK)?i.mK=0:i.mK=(n.deltaK+i.deltaK)/2}for(t=0;t<d-1;++t)i=u[t],r=u[t+1],i.model.skip||r.model.skip||(Y.almostEquals(i.deltaK,0,this.EPSILON)?i.mK=r.mK=0:(o=i.mK/i.deltaK,a=r.mK/i.deltaK,(l=Math.pow(o,2)+Math.pow(a,2))<=9||(s=3/Math.sqrt(l),i.mK=o*s*i.deltaK,r.mK=a*s*i.deltaK)));for(t=0;t<d;++t)(i=u[t]).model.skip||(n=t>0?u[t-1]:null,r=t<d-1?u[t+1]:null,n&&!n.model.skip&&(c=(i.model.x-n.model.x)/3,i.model.controlPointPreviousX=i.model.x-c,i.model.controlPointPreviousY=i.model.y-c*i.mK),r&&!r.model.skip&&(c=(r.model.x-i.model.x)/3,i.model.controlPointNextX=i.model.x+c,i.model.controlPointNextY=i.model.y+c*i.mK))},Y.nextItem=function(e,t,n){return n?t>=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},Y.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},Y.niceNum=function(e,t){var n=Math.floor(Y.log10(e)),i=e/Math.pow(10,n);return(t?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,n)},Y.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},Y.getRelativePosition=function(e,t){var n,i,r=e.originalEvent||e,o=e.target||e.srcElement,a=o.getBoundingClientRect(),s=r.touches;s&&s.length>0?(n=s[0].clientX,i=s[0].clientY):(n=r.clientX,i=r.clientY);var l=parseFloat(Y.getStyle(o,"padding-left")),c=parseFloat(Y.getStyle(o,"padding-top")),u=parseFloat(Y.getStyle(o,"padding-right")),d=parseFloat(Y.getStyle(o,"padding-bottom")),h=a.right-a.left-l-u,f=a.bottom-a.top-c-d;return{x:n=Math.round((n-a.left-l)/h*o.width/t.currentDevicePixelRatio),y:i=Math.round((i-a.top-c)/f*o.height/t.currentDevicePixelRatio)}},Y.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},Y.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},Y._calculatePadding=function(e,t,n){return(t=Y.getStyle(e,t)).indexOf("%")>-1?n*parseInt(t,10)/100:parseInt(t,10)},Y._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},Y.getMaximumWidth=function(e){var t=Y._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,i=n-Y._calculatePadding(t,"padding-left",n)-Y._calculatePadding(t,"padding-right",n),r=Y.getConstraintWidth(e);return isNaN(r)?i:Math.min(i,r)},Y.getMaximumHeight=function(e){var t=Y._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,i=n-Y._calculatePadding(t,"padding-top",n)-Y._calculatePadding(t,"padding-bottom",n),r=Y.getConstraintHeight(e);return isNaN(r)?i:Math.min(i,r)},Y.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},Y.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var i=e.canvas,r=e.height,o=e.width;i.height=r*n,i.width=o*n,e.ctx.scale(n,n),i.style.height||i.style.width||(i.style.height=r+"px",i.style.width=o+"px")}},Y.fontString=function(e,t,n){return t+" "+e+"px "+n},Y.longestText=function(e,t,n,i){var r=(i=i||{}).data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(r=i.data={},o=i.garbageCollect=[],i.font=t),e.font=t;var a,s,l,c,u,d=0,h=n.length;for(a=0;a<h;a++)if(null!=(c=n[a])&&!0!==Y.isArray(c))d=Y.measureText(e,r,o,d,c);else if(Y.isArray(c))for(s=0,l=c.length;s<l;s++)null==(u=c[s])||Y.isArray(u)||(d=Y.measureText(e,r,o,d,u));var f=o.length/2;if(f>n.length){for(a=0;a<f;a++)delete r[o[a]];o.splice(0,f)}return d},Y.measureText=function(e,t,n,i,r){var o=t[r];return o||(o=t[r]=e.measureText(r).width,n.push(r)),o>i&&(i=o),i},Y.numberOfLabelLines=function(e){var t=1;return Y.each(e,(function(e){Y.isArray(e)&&e.length>t&&(t=e.length)})),t},Y.color=w?function(e){return e instanceof CanvasGradient&&(e=F.global.defaultColor),w(e)}:function(e){return console.error("Color.js not found!"),e},Y.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:Y.color(e).saturate(.5).darken(.1).rgbString()}}(),$t._adapters=nn,$t.Animation=X,$t.animationService=K,$t.controllers=qe,$t.DatasetController=ie,$t.defaults=F,$t.Element=J,$t.elements=Ae,$t.Interaction=it,$t.layouts=ft,$t.platform=Ot,$t.plugins=jt,$t.Scale=yn,$t.scaleService=Nt,$t.Ticks=rn,$t.Tooltip=Vt,$t.helpers.each(di,(function(e,t){$t.scaleService.registerScaleType(t,e,e._defaults)})),Oi)Oi.hasOwnProperty(Pi)&&$t.plugins.register(Oi[Pi]);$t.platform.initialize();var Fi=$t;return"undefined"!=typeof window&&(window.Chart=$t),$t.Chart=$t,$t.Legend=Oi.legend._element,$t.Title=Oi.title._element,$t.pluginService=$t.plugins,$t.PluginBase=$t.Element.extend({}),$t.canvasHelpers=$t.helpers.canvas,$t.layoutService=$t.layouts,$t.LinearScaleBase=Cn,$t.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],(function(e){$t[e]=function(t,n){return new $t(t,$t.helpers.merge(n||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}})),Fi}(function(){try{return n(34)}catch(e){}}())},125:(e,t,n)=>{var i=n(609),r=n(991),o=n(946);t=i(!1);var a=r(o);t.push([e.id,"@font-face {\n font-family: viewericons;\n src: url("+a+');\n font-weight: normal;\n font-style: normal;\n}\n/* Styles common to both inspector and highlighting used within iframe */\n.linked-highlight-text {\n outline: dashed 2px #026dce;\n outline-offset: 1px;\n}\n.linked-highlight-cell {\n outline: dashed 2px #026dce;\n outline-offset: 1px;\n outline-offset: -1px;\n}\n.ixbrl-highlight:not(.ixbrl-no-highlight) {\n background-color: hsl(90 69% 85%) !important;\n}\n.ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-1 {\n background-color: #eaa8ff !important;\n}\n.ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-2 {\n background-color: hsl(48 100% 85%) !important;\n}\n.review.review-highlight-untagged-numbers .review-untagged-number {\n background-color: #eaa8ff;\n}\n.review.review-highlight-untagged-dates .review-untagged-date {\n background-color: hsl(48 100% 85%);\n}\n.review .ixbrl-highlight:not(.ixbrl-no-highlight) {\n background-color: hsl(90 69% 85%) !important;\n}\n.review .ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-1 {\n background-color: hsl(90 69% 85%) !important;\n}\n.review .ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-2 {\n background-color: hsl(90 69% 85%) !important;\n}\ndiv:not(.ixbrl-no-highlight).ixbrl-selected,\nspan:not(.ixbrl-no-highlight).ixbrl-selected {\n outline: solid 2px #0094ff;\n outline-offset: 1px;\n}\ndiv:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\nspan:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\ndiv:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected),\nspan:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected) {\n outline: dashed 2px #0094ff;\n outline-offset: 1px;\n}\n:not(.ixbrl-no-highlight).ixbrl-element,\n:not(.ixbrl-no-highlight).ixbrl-sub-element {\n cursor: pointer;\n}\n:not(.ixbrl-no-highlight).ixbrl-element.ixbrl-related,\n:not(.ixbrl-no-highlight).ixbrl-sub-element.ixbrl-related {\n outline: dashed 2px #0eb30e;\n}\n:not(.ixbrl-no-highlight).ixbrl-element.ixbrl-related:not(td, th),\n:not(.ixbrl-no-highlight).ixbrl-sub-element.ixbrl-related:not(td, th) {\n outline-offset: 1px;\n}\ntd:not(.ixbrl-no-highlight).ixbrl-selected,\nth:not(.ixbrl-no-highlight).ixbrl-selected {\n outline: solid 2px #0094ff !important;\n outline-offset: -1px !important;\n}\ntd:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\nth:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\ntd:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected),\nth:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected) {\n outline: dashed 2px #0094ff !important;\n outline-offset: -1px !important;\n}\ntd.ixbrl-related,\nth.ixbrl-related {\n outline-offset: -1px;\n}\n.ixbrl-related.ixbrl-linked-highlight:not(.ixbrl-no-highlight),\n.ixbrl-linked-highlight:not(.ixbrl-no-highlight) {\n outline: dashed 2px #026dce;\n outline-offset: 1px;\n}\ntd.ixbrl-related.ixbrl-linked-highlight:not(.ixbrl-no-highlight),\ntd.ixbrl-linked-highlight:not(.ixbrl-no-highlight) {\n outline: dashed 2px #026dce;\n outline-offset: 1px;\n outline-offset: -1px;\n}\ndiv.ixbrl-table-handle {\n position: absolute;\n left: 0;\n cursor: pointer;\n width: 0;\n height: 0;\n border: 0.4rem solid transparent;\n border-bottom-color: #66ca00;\n top: -0.8rem;\n}\ndiv.ixbrl-table-handle::after {\n content: "";\n position: absolute;\n left: -0.4rem;\n top: 0.4rem;\n width: 0;\n height: 0;\n border: 0.4rem solid transparent;\n border-top-color: #66ca00;\n}\ndiv.ixbrl-table-handle > span {\n display: none;\n white-space: nowrap;\n}\ndiv.ixbrl-table-handle:hover {\n border: none;\n color: #fff;\n transition: width 0.3s;\n width: 9rem;\n height: initial;\n left: -0.1rem;\n padding: 0;\n z-index: 1;\n}\ndiv.ixbrl-table-handle:hover::after {\n display: none;\n}\ndiv.ixbrl-table-handle:hover > span {\n border: solid 0.1rem #fff;\n font-family: sans-serif;\n display: block;\n padding: 0.7rem 1.5rem 0.7rem 2.5rem;\n background-color: #66ca00;\n}\ndiv.ixbrl-table-handle:hover > span::before {\n font-family: viewericons;\n content: "\\ea0c";\n position: absolute;\n left: 0.8rem;\n font-size: 1.2rem;\n}\n',""]),e.exports=t},610:(e,t,n)=>{var i=n(609),r=n(991),o=n(946);t=i(!1);var a=r(o);t.push([e.id,"html {\n font-size: 62.5%;\n}\nbody {\n margin: 0;\n}\n@font-face {\n font-family: viewericons;\n src: url("+a+');\n font-weight: normal;\n font-style: normal;\n}\n/* Styles common to both inspector and highlighting used within iframe */\n.linked-highlight-text {\n outline: dashed 2px #026dce;\n outline-offset: 1px;\n}\n.linked-highlight-cell {\n outline: dashed 2px #026dce;\n outline-offset: 1px;\n outline-offset: -1px;\n}\ninput[type="text"],\nselect,\nbutton {\n padding: 7px 5px;\n border: solid 1px #cbcbcb;\n border-radius: 5px;\n color: #595959;\n background-color: #fff;\n box-sizing: border-box;\n}\n.square-button-bare {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n padding: 0;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n}\n.square-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n}\n.square-button:last-of-type {\n margin-right: 0;\n}\n.square-button:first-of-type {\n margin-left: 0;\n}\n.square-button.primary {\n color: #fff;\n border-color: #0085e6;\n background-color: #0094ff;\n}\n.wk-checkbox,\nlabel.checkbox {\n position: relative;\n padding-left: 2.2rem;\n cursor: pointer;\n user-select: none;\n line-height: 1.6rem;\n}\n.wk-checkbox input,\nlabel.checkbox input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n.wk-checkbox .checkmark,\nlabel.checkbox .checkmark {\n position: absolute;\n box-sizing: border-box;\n top: 0;\n left: 0;\n width: 1.6rem;\n height: 1.6rem;\n border-radius: 0.4rem;\n border: solid 0.1rem #cbcbcb;\n}\n.wk-checkbox input:checked ~ .checkmark::before,\nlabel.checkbox input:checked ~ .checkmark::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0.4rem;\n width: 0.4rem;\n height: 1.1rem;\n border: solid #026dce;\n border-width: 0 0.2rem 0.2rem 0;\n transform: rotate(45deg);\n}\ninput:disabled {\n background-color: #eee;\n}\n#ixv .dialog.chart {\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n color: #595959;\n}\n#ixv .dialog.chart .chart-container {\n position: relative;\n width: 100%;\n}\n#ixv .dialog.chart .other-aspects {\n width: 100%;\n position: absolute;\n bottom: 0;\n}\n#ixv .dialog.chart .other-aspects .other-aspect {\n display: inline-block;\n padding: 5px 10px;\n margin: 10px;\n}\n#ixv .dialog.chart .other-aspects .other-aspect.selected,\n#ixv .dialog.chart .other-aspects .other-aspect.addable {\n cursor: pointer;\n}\n#ixv .dialog.chart .other-aspects .other-aspect.addable {\n color: #026dce;\n}\n#ixv .dialog.chart .other-aspects .other-aspect.addable:hover {\n color: #0094ff;\n text-decoration: underline;\n}\n#ixv .dialog.chart .other-aspects .other-aspect.selected {\n background-color: #0094ff;\n border-radius: 0.4rem;\n border: 0.1rem solid #0085e6;\n /* border: solid 1px #399; */\n color: #fff;\n}\n.dialog {\n z-index: 15;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n border: solid 1px #000;\n background-color: #fff;\n display: none;\n}\n.dialog.full-screen {\n width: calc(100vw - 5em);\n height: calc(100vh - 5em);\n}\n.dialog.message-box {\n max-width: 800px;\n width: 100%;\n}\n.dialog .contents {\n padding: 2rem;\n position: relative;\n box-sizing: border-box;\n height: 100%;\n width: 100%;\n}\n.dialog .close {\n position: absolute;\n top: 0;\n right: 0;\n padding: 1.8rem 2rem 0;\n font-size: 2.6rem;\n z-index: 20;\n cursor: pointer;\n line-height: 2.2rem;\n opacity: 0.2;\n}\n.dialog .close::before {\n content: "\\00d7";\n}\n.dialog .close:hover {\n opacity: 1;\n}\n.dialog .title {\n margin-top: 0;\n}\n.dialog .buttons button {\n border-radius: 0;\n min-width: 10rem;\n margin-right: 1.5rem;\n border: solid 0.1rem #cbcbcb;\n color: #595959;\n background-color: #f8f8f8;\n cursor: pointer;\n}\n.dialog .buttons button.dialog-button-primary {\n color: #fff;\n background-color: #66ca00;\n border: none;\n}\n#ixv #inspector .menu {\n position: absolute;\n right: 0;\n top: 0;\n line-height: 3.5rem;\n cursor: pointer;\n}\n#ixv #inspector .menu .menu-title {\n padding-right: 3.2rem;\n position: relative;\n}\n#ixv #inspector .menu .menu-title::after {\n font-family: viewericons;\n content: "\\ea03";\n font-size: 1.8rem;\n position: absolute;\n right: 1rem;\n}\n#ixv #inspector .menu .content-container {\n position: fixed;\n top: 8.3rem;\n right: 0;\n bottom: 0;\n display: none;\n z-index: 5;\n}\n#ixv #inspector .menu .content-container .content {\n line-height: initial;\n background: #fff;\n border: solid 1px #cbcbcb;\n max-height: 100%;\n overflow-y: auto;\n}\n#ixv #inspector .menu .content-container .content .group {\n border-bottom: solid 1px #cbcbcb;\n border-top: solid 1px #cbcbcb;\n}\n#ixv #inspector .menu .content-container .content .item {\n position: relative;\n padding: 10px 25px 10px 30px;\n white-space: nowrap;\n text-align: left;\n}\n#ixv #inspector .menu .content-container .content .item:hover {\n background: #cbcbcb;\n}\n#ixv #inspector .menu .content-container .content .item.menu-checkbox {\n cursor: pointer;\n user-select: none;\n position: relative;\n display: block;\n}\n#ixv #inspector .menu .content-container .content .item.menu-checkbox input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n#ixv #inspector .menu .content-container .content .item.menu-checkbox input:checked ~ .checkmark::before {\n font-family: viewericons;\n content: "\\ea18";\n position: absolute;\n top: 1.1rem;\n left: 1rem;\n}\n#ixv #inspector .menu .content-container .content a.item {\n display: block;\n color: #595959;\n}\n#ixv #inspector .menu .content-container .content a.item:hover {\n text-decoration: none;\n}\n#ixv #inspector .toolbar-menu .menu-checkbox {\n position: relative;\n padding-left: 2.2rem;\n cursor: pointer;\n user-select: none;\n line-height: 1.6rem;\n margin-left: 1.8rem;\n}\n#ixv #inspector .toolbar-menu .menu-checkbox input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n#ixv #inspector .toolbar-menu .menu-checkbox .checkmark {\n position: absolute;\n box-sizing: border-box;\n top: 0;\n left: 0;\n width: 1.6rem;\n height: 1.6rem;\n border-radius: 0.4rem;\n border: solid 0.1rem #cbcbcb;\n}\n#ixv #inspector .toolbar-menu .menu-checkbox input:checked ~ .checkmark::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0.4rem;\n width: 0.4rem;\n height: 1.1rem;\n border: solid #026dce;\n border-width: 0 0.2rem 0.2rem 0;\n transform: rotate(45deg);\n}\n.accordian .card {\n margin-top: 0.4rem;\n background-color: #f8f8f8;\n}\n.accordian .card .body {\n display: none;\n padding-left: 1.6rem;\n padding-right: 1.6rem;\n padding-bottom: 0.8rem;\n}\n.accordian .card .body > h4:first-child {\n margin-top: 0.8rem;\n}\n.accordian .card .title {\n padding: 1.2rem 1.6rem;\n cursor: pointer;\n line-height: 1.8rem;\n}\n.accordian .card .title:hover {\n background-color: #f3f3f3;\n}\n.accordian .card.active {\n background-color: #f3f3f3;\n}\n.accordian .card.active .title {\n font-weight: bold;\n}\n.accordian .card.active .body {\n display: block;\n}\n#ixv .loader {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgb(0 0 0 / 85%);\n z-index: 10;\n}\n#ixv .loader .text {\n padding-top: 80px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n color: #fff;\n font-size: large;\n font-family: sans-serif;\n}\n#ixv .loader.loading .text::after,\n#ixv .loader.loading .text::before {\n margin: 0 0 0 -30px;\n height: 60px;\n width: 60px;\n position: absolute;\n content: "";\n top: 0;\n left: 50%;\n border-radius: 500rem;\n border-style: solid;\n border-width: 3px;\n box-shadow: 0 0 0 1px transparent;\n}\n#ixv .loader.loading .text::before {\n border: 3px solid rgb(255 255 255 / 10%);\n}\n#ixv .loader.loading .text::after {\n -webkit-animation: loader 4s steps(64);\n animation: loader 4s steps(64);\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n border-color: #fff transparent transparent;\n}\n@keyframes loader {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.tab-area {\n background-color: #e3e3e3;\n width: 100%;\n box-sizing: border-box;\n border-bottom: solid 0.1rem #cbcbcb;\n display: flex;\n}\n.tab-area::after {\n content: "";\n clear: both;\n display: table;\n}\n.tab-area .tab {\n float: left;\n padding: 1.2rem;\n cursor: pointer;\n color: #444;\n border: solid 0.1rem #cbcbcb;\n border-top-left-radius: 0.6rem;\n border-top-right-radius: 0.6rem;\n margin-bottom: -0.1rem;\n flex-shrink: 1;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n width: 20em;\n}\n.tab-area .tab.active {\n padding: 1.2rem;\n border-bottom-color: #fff;\n background-color: #fff;\n border-top: solid 0.4rem #0085e6;\n}\n.tab-area .tab:not(.active) {\n padding-top: 1.5rem;\n}\n.block-list-item {\n margin: 0.5rem 0;\n padding: 0.3rem 0.9rem;\n background-color: #f8f8f8;\n cursor: pointer;\n position: relative;\n border-left: solid 0.4rem #f8f8f8;\n}\n.block-list-item > * {\n margin: 0.8rem 0;\n}\n.block-list-item:hover {\n background-color: #f3f3f3;\n}\n.block-list-item.selected {\n border-left: solid 0.4rem #0085e6;\n background-color: #f3f3f3;\n}\n.block-list-item.linked-highlight {\n outline: dashed 2px #026dce;\n outline-offset: 1px;\n outline-offset: -1px;\n}\n#ixv .dialog.validation-report {\n max-width: 120rem;\n width: 90vw;\n}\n#ixv .dialog.validation-report table {\n display: block;\n margin: 2rem 0;\n border-collapse: collapse;\n max-height: calc(90vh - 150px);\n overflow-y: auto;\n}\n#ixv .dialog.validation-report table td,\n#ixv .dialog.validation-report table th {\n padding: 0.5rem;\n border: solid 0.1rem #cbcbcb;\n}\n#ixv .dialog.text-block-viewer {\n max-width: 120rem;\n width: 90vw;\n height: 90vh;\n}\n#ixv .dialog.text-block-viewer .contents {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n#ixv .dialog.text-block-viewer .contents .title,\n#ixv .dialog.text-block-viewer .contents .buttons {\n flex-grow: 0;\n}\n#ixv .dialog.text-block-viewer .contents iframe {\n margin: 1.4rem 0;\n border: solid 1px #ccc;\n flex-grow: 1;\n width: 100%;\n height: 100%;\n}\n#ixv .dialog.text-block-viewer .contents .controls {\n height: 3.2rem;\n}\n#inspector .summary .body .total-facts-title,\n#inspector .summary .body .files-summary-title {\n font-weight: bold;\n}\n#inspector .summary .body .file-summary-container {\n display: flex;\n flex-flow: row wrap;\n}\n#inspector .summary .body .file-summary-container .files {\n flex: 1 1 auto;\n}\n#inspector .summary .body .tag-summary-body {\n overflow-x: auto;\n}\n#inspector .summary .body .tag-summary-body sup {\n font-size: 0.9rem;\n display: block;\n}\n#inspector .summary .body .tag-summary-body table {\n width: 100%;\n border-collapse: collapse;\n}\n#inspector .summary .body .tag-summary-body table td,\n#inspector .summary .body .tag-summary-body table th {\n padding: 0.2rem;\n text-align: left;\n}\n#inspector .summary .body .tag-summary-body table thead th {\n white-space: nowrap;\n position: relative;\n height: 10rem;\n}\n#inspector .summary .body .tag-summary-body table thead th.namespace {\n text-align: left;\n vertical-align: bottom;\n}\n#inspector .summary .body .tag-summary-body table thead th.figure {\n width: 5rem;\n}\n#inspector .summary .body .tag-summary-body table thead th.figure > div {\n position: absolute;\n transform: translate(100px, -50%) rotate(45deg) translate(-50%, 50%);\n text-align: right;\n width: 200px;\n right: 0;\n bottom: 0;\n}\n#inspector .summary .body .tag-summary-body table tbody th {\n font-weight: normal;\n}\n#inspector .summary .body .tag-summary-body table tbody tr,\n#inspector .summary .body .tag-summary-body table tfoot tr {\n transition: background-color 0.25s ease;\n}\n#inspector .summary .body .tag-summary-body table tbody tr:nth-child(odd),\n#inspector .summary .body .tag-summary-body table tfoot tr:nth-child(odd) {\n background-color: rgb(248 248 248);\n}\n#inspector .summary .body .tag-summary-body table tbody tr:hover,\n#inspector .summary .body .tag-summary-body table tfoot tr:hover {\n background-color: rgb(230 230 230);\n}\n#inspector .summary .body .tag-summary-body table tbody tr td.figure,\n#inspector .summary .body .tag-summary-body table tfoot tr td.figure {\n text-align: right;\n}\n#ixv {\n /* Specify these here, not on body in case the iXBRL document has its own\n * style attribute */\n}\n#ixv,\n#ixv table {\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n color: #595959;\n font-size: 1.4rem;\n}\n#ixv #ixv-progress {\n position: fixed;\n top: 20px;\n left: 20px;\n width: 500px;\n height: 200px;\n background-color: #fff;\n border: solid #000 1px;\n text-align: center;\n}\n#ixv #viewer-pane {\n width: 75%;\n box-sizing: border-box;\n position: fixed;\n left: 0;\n top: 3.5rem;\n bottom: 0;\n z-index: 0;\n display: flex;\n flex-flow: column;\n /* This spacer stops drag events getting lost to the iframe */\n}\n#ixv #viewer-pane .ixds-tabs {\n display: none;\n flex: 0 1 auto;\n}\n#ixv #viewer-pane #iframe-container {\n position: relative;\n flex: 1 1 auto;\n}\n#ixv #viewer-pane #iframe-container > iframe {\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n border: none;\n}\n#ixv #viewer-pane #iframe-container .zoom-in,\n#ixv #viewer-pane #iframe-container .zoom-out,\n#ixv #viewer-pane #iframe-container .print {\n position: absolute;\n right: 30px;\n width: 20px;\n height: 20px;\n border: solid 1px #bbb;\n background-color: rgb(225 225 225 / 70%);\n justify-content: center;\n display: flex;\n align-items: center;\n color: #777;\n cursor: pointer;\n user-select: none;\n}\n#ixv #viewer-pane #iframe-container .zoom-in {\n top: 15px;\n}\n#ixv #viewer-pane #iframe-container .zoom-out {\n top: 40px;\n}\n#ixv #viewer-pane #iframe-container .print {\n top: 75px;\n}\n#ixv #viewer-pane #iframe-container .print::after {\n font-family: viewericons;\n content: "\\ea11";\n font-size: 20px;\n}\n#ixv #viewer-pane #iframe-container .zoom-in:hover,\n#ixv #viewer-pane #iframe-container .zoom-out:hover,\n#ixv #viewer-pane #iframe-container .print:hover {\n background-color: rgb(128 128 128 / 70%);\n}\n#ixv #viewer-pane .resize {\n position: absolute;\n top: 0;\n width: 5px;\n right: -5px;\n bottom: 0;\n z-index: 20;\n}\n#ixv #viewer-pane .resize-spacer {\n position: absolute;\n top: 0;\n width: 3px;\n right: 0;\n bottom: 0;\n z-index: 20;\n}\n#ixv #top-bar {\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n font-size: 1.4rem;\n color: #595959;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n height: 3.5rem;\n border-bottom: solid 1px #ccc;\n z-index: 5;\n}\n#ixv #top-bar .header {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n height: 100%;\n}\n#ixv #top-bar .document-title {\n position: absolute;\n box-sizing: border-box;\n left: 160px;\n top: 0;\n padding-right: 1.6rem;\n padding-top: 1.3rem;\n border-right: solid 0.1rem #ccc;\n height: 3.5rem;\n overflow: hidden;\n}\n#ixv #top-bar .top-bar-controls {\n position: absolute;\n right: 1.8rem;\n top: 0;\n line-height: 3.5rem;\n}\n#ixv #top-bar .top-bar-controls * {\n vertical-align: middle;\n}\n#ixv #top-bar .top-bar-controls .content input {\n position: relative;\n top: -0.1rem;\n margin-right: 0.6rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key {\n margin-left: 0.6rem;\n margin-right: 1.5rem;\n position: relative;\n}\n#ixv #top-bar .top-bar-controls .highlight-key::before {\n font-family: viewericons;\n content: "\\ea12";\n font-size: 1.6rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content {\n position: absolute;\n top: 3.2rem;\n left: -2rem;\n background: #fff;\n border: solid 1px #595959;\n border-radius: 0.3rem;\n line-height: 1.6rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .arrow {\n position: absolute;\n top: 0;\n left: 1.1rem;\n width: 1.5rem;\n height: 1.5rem;\n border-top: solid 0.1rem #595959;\n border-left: solid 0.1rem #595959;\n transform: translate(50%, -50%) rotate(45deg);\n background: #fff;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item {\n white-space: nowrap;\n margin: 1rem;\n position: relative;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample {\n display: inline-block;\n width: 3.2rem;\n height: 1.6rem;\n margin-right: 1rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample-0 {\n background: hsl(90 69% 85% / 1);\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample-1 {\n background: #eaa8ff;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample-2 {\n background: hsl(48 100% 85% / 1);\n}\n#ixv #top-bar .top-bar-controls .validation-warning {\n margin-left: 0.5rem;\n font-size: 1.6rem;\n display: none;\n cursor: pointer;\n}\n#ixv #top-bar .top-bar-controls .validation-warning::before {\n font-family: viewericons;\n content: "\\ea19";\n}\n#ixv #inspector {\n display: flex;\n flex-direction: column;\n /* inspector body */\n width: 25%;\n position: absolute;\n top: 3.5rem;\n right: 0;\n bottom: 0;\n box-sizing: border-box;\n overflow: hidden;\n border-left: solid 0.1rem #cbcbcb;\n}\n#ixv #inspector h1,\n#ixv #inspector h2,\n#ixv #inspector h3 {\n font-weight: normal;\n border-bottom: solid 1px #cbcbcb;\n width: 100%;\n box-sizing: border-box;\n padding-bottom: 5px;\n color: #444444;\n}\n#ixv #inspector h2 {\n text-align: center;\n}\n#ixv #inspector h3 {\n font-size: 1.4rem;\n}\n#ixv #inspector h4 {\n font-weight: bold;\n color: #444444;\n margin-bottom: 1.4em;\n}\n#ixv #inspector #inspector-head {\n padding: 0;\n position: relative;\n border-bottom: solid 1px #cbcbcb;\n}\n#ixv #inspector #inspector-head .title {\n text-align: center;\n position: relative;\n border-bottom: solid 0.1rem #cbcbcb;\n}\n#ixv #inspector #inspector-head .title h1 {\n margin: 0.8rem 0;\n border: none;\n padding: 0;\n font-size: 1.8rem;\n line-height: 3.2rem;\n}\n#ixv #inspector #inspector-head .title .back {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n padding: 0;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n top: 0;\n left: 0;\n position: absolute;\n}\n#ixv #inspector #inspector-head .title .back::before {\n font-family: viewericons;\n content: "\\ea04";\n}\n#ixv #inspector #inspector-head .title .menu {\n top: 0;\n right: 0;\n position: absolute;\n}\n#ixv #inspector #inspector-head .title .menu .menu-title::before {\n font-family: viewericons;\n content: "\\ea09";\n font-size: 2rem;\n}\n#ixv #inspector #inspector-head .controls {\n position: relative;\n height: 3.2rem;\n margin: 0.8rem 0.9rem;\n}\n#ixv #inspector #inspector-head .controls .search-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n position: absolute;\n top: 0;\n left: 7.7rem;\n}\n#ixv #inspector #inspector-head .controls .search-button:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .search-button:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .search-button::before {\n font-family: viewericons;\n content: "\\ea13";\n position: relative;\n}\n#ixv #inspector #inspector-head .controls .outline-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n position: absolute;\n top: 0;\n left: 3.6rem;\n}\n#ixv #inspector #inspector-head .controls .outline-button:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .outline-button:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .outline-button::before {\n font-family: viewericons;\n content: "\\ea10";\n position: relative;\n}\n#ixv #inspector #inspector-head .controls .summary-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n position: absolute;\n top: 0;\n left: 0;\n}\n#ixv #inspector #inspector-head .controls .summary-button:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .summary-button:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .summary-button::before {\n font-family: viewericons;\n content: "\\ea15";\n position: relative;\n}\n#ixv #inspector #inspector-head .controls .next-prev {\n position: absolute;\n top: 0;\n right: 0;\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-next-tag,\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-prev-tag {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n position: relative;\n display: inline-block;\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-next-tag:last-of-type,\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-prev-tag:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-next-tag:first-of-type,\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-prev-tag:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-next-tag::before {\n font-family: viewericons;\n content: "\\ea05";\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-prev-tag::before {\n font-family: viewericons;\n content: "\\ea04";\n}\n#ixv #inspector #inspector-head .search-controls {\n margin: 0.8rem 0.9rem;\n}\n#ixv #inspector #inspector-head .search-controls .search-input {\n display: flex;\n padding: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-input input#ixbrl-search {\n flex-grow: 1;\n margin-right: 1rem;\n}\n#ixv #inspector #inspector-head .search-controls .search-input .filter-toggle {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n}\n#ixv #inspector #inspector-head .search-controls .search-input .filter-toggle:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-input .filter-toggle:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-input .filter-toggle::before {\n font-family: viewericons;\n content: "\\ea0d";\n}\n#ixv #inspector #inspector-head .search-controls:not(.show-filters) .search-filters {\n display: none;\n}\n#ixv #inspector #inspector-head .search-controls.show-filters .filter-toggle {\n color: #026dce;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters {\n position: relative;\n max-height: 60vh;\n overflow-y: auto;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .reset {\n cursor: pointer;\n color: #026dce;\n position: absolute;\n right: 0;\n top: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters h3 {\n border: none;\n font-weight: bold;\n padding-bottom: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-group {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n margin-bottom: 0.4em;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-group .control-label {\n white-space: nowrap;\n margin-right: 2em;\n width: 6em;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-group input,\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-group select,\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-group textarea {\n flex-basis: 12em;\n flex-grow: 2;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .control-label {\n font-weight: bold;\n margin-bottom: 0.6em;\n margin-top: 0.8em;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters select {\n width: 100%;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .checkboxes {\n display: flex;\n flex-wrap: wrap;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .checkboxes > div {\n margin: 1.2rem 0;\n flex-grow: 1;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .checkboxes > div input {\n vertical-align: middle;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-info {\n text-align: center;\n font-style: italic;\n font-size: 1.1rem;\n}\n#ixv #inspector .inspector-body {\n flex-grow: 1;\n width: 100%;\n position: relative;\n overflow: hidden;\n /* search results */\n}\n#ixv #inspector .inspector-body .no-fact-overlay,\n#ixv #inspector .inspector-body .no-outline-overlay {\n display: block;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 80%;\n text-align: center;\n color: #b2b2b2;\n}\n#ixv #inspector .inspector-body .no-fact-overlay .no-fact-overlay-icon::before,\n#ixv #inspector .inspector-body .no-outline-overlay .no-fact-overlay-icon::before {\n font-family: viewericons;\n content: "\\ea16";\n font-size: 10rem;\n}\n#ixv #inspector .inspector-body .no-fact-overlay .no-outline-overlay-icon::before,\n#ixv #inspector .inspector-body .no-outline-overlay .no-outline-overlay-icon::before {\n font-family: viewericons;\n content: "\\ea10";\n font-size: 10rem;\n}\n#ixv #inspector .inspector-body .no-fact-overlay .title,\n#ixv #inspector .inspector-body .no-outline-overlay .title {\n font-size: x-large;\n}\n#ixv #inspector .inspector-body .inspector-body-fact {\n overflow-y: auto;\n height: 100%;\n position: relative;\n}\n#ixv #inspector .inspector-body .search-results {\n overflow-y: auto;\n height: 100%;\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .inspector-body .search-results .search-overlay {\n transform: translate(-50%, -50%);\n position: absolute;\n top: 50%;\n left: 50%;\n color: #b2b2b2;\n width: 85%;\n}\n#ixv #inspector .inspector-body .search-results .search-overlay .search-overlay-icon {\n text-align: center;\n font-size: 10rem;\n}\n#ixv #inspector .inspector-body .search-results .search-overlay .search-overlay-icon::before {\n font-family: viewericons;\n content: "\\ea13";\n}\n#ixv #inspector .inspector-body .search-results .search-overlay .search-overlay-text {\n text-align: center;\n font-size: medium;\n}\n#ixv #inspector .inspector-body .search-results .search-overlay .search-overlay-text .title {\n font-size: x-large;\n}\n#ixv #inspector .inspector-body .search-results .select-icon {\n float: right;\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n cursor: pointer;\n color: #026dce;\n}\n#ixv #inspector .inspector-body .search-results .select-icon:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector .inspector-body .search-results .select-icon:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector .inspector-body .search-results .select-icon:first-of-type {\n margin-left: 0.5rem;\n}\n#ixv #inspector .inspector-body .search-results .select-icon::before {\n font-family: viewericons;\n content: "\\ea14";\n}\n#ixv #inspector .inspector-body .search-results .more-results {\n cursor: pointer;\n color: #026dce;\n padding: 1rem;\n text-align: center;\n}\n#ixv #inspector .inspector-body .outline {\n overflow-y: auto;\n height: 100%;\n}\n#ixv #inspector .inspector-body .summary {\n overflow-y: auto;\n height: 100%;\n}\n#ixv #inspector .inspector-body .body {\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .std-label {\n margin-left: 30px;\n min-height: 20px;\n position: relative;\n}\n#ixv #inspector .std-label::before {\n color: #026dce;\n content: "\\2022";\n position: absolute;\n top: -5px;\n left: -20px;\n font-size: x-large;\n}\n#ixv #inspector #concept {\n margin-top: 20px;\n font-size: small;\n min-height: 25px;\n}\n#ixv #inspector #dimensions {\n margin-left: 2rem;\n margin-right: 2rem;\n margin-bottom: 1rem;\n}\n#ixv #inspector #dimensions .dimension {\n position: relative;\n margin: 1.5rem 0 1.5rem 1rem;\n}\n#ixv #inspector #dimensions .dimension::before {\n font-family: viewericons;\n content: "\\ea0a";\n color: #026dce;\n position: absolute;\n top: 0;\n left: -2.3rem;\n font-size: 120%;\n}\n#ixv #inspector #dimensions .dimension-value {\n position: relative;\n margin: 1.5rem 0 1.5rem 3.5rem;\n}\n#ixv #inspector #dimensions .dimension-value::before {\n font-family: viewericons;\n content: "\\ea0b";\n position: absolute;\n color: #026dce;\n top: 0;\n left: -2.3rem;\n font-size: 120%;\n}\n#ixv #inspector .analyse {\n cursor: pointer;\n padding-left: 0.7rem;\n color: #026dce;\n}\n#ixv #inspector .analyse::before {\n font-family: viewericons;\n content: "\\ea0e";\n position: relative;\n top: 1px;\n}\n#ixv #inspector .hidden-fact-tag,\n#ixv #inspector .html-hidden-fact-tag {\n display: table;\n text-transform: uppercase;\n font-weight: bold;\n background-color: #8a8a8a;\n padding: 0.15em 0.5em;\n color: #fff;\n border-radius: 0.3em;\n position: absolute;\n top: 1.5rem;\n right: 0.9rem;\n}\n#ixv #inspector .hidden-fact-tag.html-hidden-fact-tag,\n#ixv #inspector .html-hidden-fact-tag.html-hidden-fact-tag {\n background-color: #c63018;\n}\n#ixv #inspector table.fact-properties {\n table-layout: fixed;\n width: 100%;\n}\n#ixv #inspector table.fact-properties th {\n width: 75px;\n text-align: right;\n padding-right: 20px;\n color: #444444;\n}\n#ixv #inspector table.fact-properties th,\n#ixv #inspector table.fact-properties td {\n padding-top: 2px;\n padding-bottom: 2px;\n}\n#ixv #inspector table.fact-properties tr.value .show-all {\n color: #026dce;\n cursor: pointer;\n}\n#ixv #inspector table.fact-properties tr.value:not(.truncated) .show-all {\n display: none;\n}\n#ixv #inspector table.fact-properties tr.value.text-block .expand-text-block {\n color: #026dce;\n cursor: pointer;\n}\n#ixv #inspector table.fact-properties tr.value.text-block .expand-text-block::before {\n font-family: viewericons;\n content: "\\ea17";\n}\n#ixv #inspector table.fact-properties td {\n overflow: hidden;\n text-overflow: ellipsis;\n color: #7d7d7d;\n}\n#ixv #inspector table.fact-properties tr.uri > td {\n white-space: nowrap;\n}\n#ixv #inspector .duplicates {\n text-align: center;\n width: 100%;\n height: 3.2rem;\n line-height: 3.2rem;\n}\n#ixv #inspector .duplicates > * {\n vertical-align: middle;\n}\n#ixv #inspector .duplicates .text {\n margin: 0 5px;\n}\n#ixv #inspector .duplicates .next,\n#ixv #inspector .duplicates .prev {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n padding: 0;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n position: relative;\n display: inline-block;\n}\n#ixv #inspector .duplicates .prev::before {\n font-family: viewericons;\n content: "\\ea04";\n}\n#ixv #inspector .duplicates .next::before {\n font-family: viewericons;\n content: "\\ea05";\n}\n#ixv #inspector .concept td > div {\n display: flex;\n}\n#ixv #inspector .concept td > div span.text {\n white-space: nowrap;\n position: relative;\n flex-shrink: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n#ixv #inspector .concept td > div span.filler {\n width: 0.7rem;\n display: inline-block;\n flex-shrink: 1000;\n}\n#ixv #inspector .concept td > div span.copy-icon {\n flex-shrink: 0;\n}\n#ixv #inspector .documentation {\n margin-top: 10px;\n margin-left: 30px;\n font-style: italic;\n font-family: serif;\n}\n#ixv #inspector a {\n text-decoration: none;\n color: #026dce;\n}\n#ixv #inspector a:hover {\n text-decoration: underline;\n}\n#ixv #inspector .inspector-section {\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .collapsible-section .collapsible-body {\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .collapsible-section .collapsible-header {\n position: relative;\n padding-left: 12px;\n cursor: pointer;\n user-select: none;\n white-space: nowrap;\n}\n#ixv #inspector .collapsible-section .collapsible-header::before {\n font-family: viewericons;\n content: "\\ea05";\n font-size: 1.8rem;\n position: relative;\n top: 0.4rem;\n left: -0.3rem;\n transform: rotate(90deg);\n transition: all 0.25s ease;\n display: inline-block;\n}\n#ixv #inspector .collapsible-section .collapsible-header .collapsible-subheader {\n user-select: none;\n font-weight: normal;\n font-style: italic;\n font-size: 1.3rem;\n color: #7d7d7d;\n}\n#ixv #inspector .collapsible-section.collapsed .collapsible-header::before {\n transform: rotate(0);\n top: 0.3rem;\n left: -0.2rem;\n}\n#ixv #inspector .collapsible-section.collapsed .collapsible-subheader {\n color: #026dce;\n}\n#ixv #inspector .collapsible-section .footnote-details {\n display: none;\n}\n#ixv #inspector .collapsible-section .calculations .item {\n padding: 5px 0;\n position: relative;\n line-height: 1.8rem;\n}\n#ixv #inspector .collapsible-section .calculations .item:not(.calc-fact-link, .total) .concept-name {\n color: #777;\n}\n#ixv #inspector .collapsible-section .calculations .item .concept-name {\n display: block;\n margin-left: 15px;\n}\n#ixv #inspector .collapsible-section .calculations .item.calc-fact-link {\n cursor: pointer;\n}\n#ixv #inspector .collapsible-section .calculations .item.calc-fact-link .concept-name {\n color: #026dce;\n}\n#ixv #inspector .collapsible-section .calculations .item .weight {\n display: block;\n position: absolute;\n}\n#ixv #inspector .collapsible-section .calculations .item.linked-highlight,\n#ixv #inspector .collapsible-section .calculations .item.calc-fact-link:hover {\n outline: dashed 2px #026dce;\n outline-offset: 1px;\n}\n#ixv #inspector .collapsible-section .calculations .item.total {\n border-top: solid 1px #cbcbcb;\n padding-bottom: 1.2rem;\n}\n#ixv #inspector .reset-multiselect {\n float: right;\n line-height: 0;\n position: relative;\n bottom: 1rem;\n cursor: pointer;\n}\n#ixv #inspector .reset-multiselect::after {\n font-family: viewericons;\n content: "\\ea08";\n}\n#ixv #inspector:not(.no-fact-selected) .no-fact-overlay {\n display: none;\n}\n#ixv #inspector.no-fact-selected .fact-selected-only {\n display: none;\n}\n#ixv #inspector:not(.hidden-fact) .hidden-fact-tag {\n display: none;\n}\n#ixv #inspector:not(.html-hidden-fact) .html-hidden-fact-tag {\n display: none;\n}\n#ixv #inspector.search-mode #inspector-head .controls .search-button {\n color: #fff;\n border-color: #0085e6;\n background-color: #0094ff;\n}\n#ixv #inspector.outline-mode #inspector-head .controls .outline-button {\n color: #fff;\n border-color: #0085e6;\n background-color: #0094ff;\n}\n#ixv #inspector.summary-mode #inspector-head .controls .summary-button {\n color: #fff;\n border-color: #0085e6;\n background-color: #0094ff;\n}\n#ixv #inspector .powered-by {\n font-size: 1.2rem;\n text-align: center;\n flex-shrink: 0;\n background: #fff;\n width: 100%;\n height: 3rem;\n margin: 0;\n box-sizing: border-box;\n border-top: solid 0.1rem #cbcbcb;\n position: relative;\n}\n#ixv #inspector .powered-by img {\n box-sizing: border-box;\n height: 3rem;\n padding: 0.5rem;\n}\n#ixv #inspector .powered-by .version {\n position: absolute;\n top: 0;\n right: 5px;\n font-size: small;\n line-height: 3rem;\n color: #999;\n}\n#ixv #inspector:not(.search-mode) .search-mode-only {\n display: none;\n}\n#ixv #inspector:not(.outline-mode) .outline-mode-only {\n display: none;\n}\n#ixv #inspector:not(.summary-mode) .summary-mode-only {\n display: none;\n}\n#ixv #inspector.search-mode .fact-mode-only,\n#ixv #inspector.summary-mode .fact-mode-only,\n#ixv #inspector.outline-mode .fact-mode-only {\n display: none;\n}\n#ixv #inspector:not(.footnote-mode) .footnote-mode-only {\n display: none;\n}\n#ixv #inspector.footnote-mode .footnote-mode-off {\n display: none;\n}\n#ixv #inspector .failed-to-load-mask {\n display: none;\n}\n#ixv #inspector.failed-to-load .failed-to-load-mask {\n display: block;\n background-color: rgb(0 0 0 / 50%);\n position: absolute;\n width: 100%;\n height: 100%;\n}\n#ixv #inspector.search-ready .search-not-ready-only {\n display: none;\n}\n#ixv #inspector:not(.search-ready) .search-ready-only {\n display: none;\n}\n#ixv #inspector:not(.search-ready) .search-results {\n background-color: rgb(0 0 0 / 50%);\n}\n#ixv .fact-link {\n cursor: pointer;\n color: #026dce;\n}\n#ixv .fact-link:hover {\n outline: solid 2px #026dce;\n outline-offset: 1px;\n}\n#ixv .fact-list .fact-list-item {\n margin: 0.5rem 0;\n padding: 0.3rem 0.9rem;\n background-color: #f8f8f8;\n cursor: pointer;\n position: relative;\n border-left: solid 0.4rem #f8f8f8;\n}\n#ixv .fact-list .fact-list-item > * {\n margin: 0.8rem 0;\n}\n#ixv .fact-list .fact-list-item:hover {\n background-color: #f3f3f3;\n}\n#ixv .fact-list .fact-list-item.selected {\n border-left: solid 0.4rem #0085e6;\n background-color: #f3f3f3;\n}\n#ixv .fact-list .fact-list-item.linked-highlight {\n outline: dashed 2px #026dce;\n outline-offset: 1px;\n outline-offset: -1px;\n}\n#ixv .fact-list .fact-list-item .title {\n color: #444444;\n font-weight: bold;\n}\n#ixv .fact-list .fact-list-item .dimension {\n color: #595959;\n margin: 0.6rem 0;\n}\n#ixv .fact-list .fact-list-item .hidden {\n display: table;\n text-transform: uppercase;\n font-weight: bold;\n background-color: #8a8a8a;\n padding: 0.15em 0.5em;\n color: #fff;\n border-radius: 0.3em;\n}\n#ixv .fact-list .fact-list-item.selected .title {\n font-weight: bold;\n}\n#ixv .fact-list .fact-list-item.selected .dimension {\n color: #595959;\n}\n#ixv .dialog-mask {\n background-color: rgb(0 0 0 / 60%);\n position: fixed;\n inset: 0;\n z-index: 10;\n display: none;\n}\n#ixv .popup-content {\n display: none;\n}\n#ixv .copy-icon {\n color: #026dce;\n border-radius: 0.3rem;\n}\n#ixv .copy-icon:active {\n background-color: #026dce;\n color: #fff;\n}\n#ixv .copy-icon::before {\n font-family: viewericons;\n content: "\\ea07";\n cursor: pointer;\n}\n',""]),e.exports=t},609:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,i,r,o=e[1]||"",a=e[3];if(!a)return o;if(t&&"function"==typeof btoa){var s=(n=a,i=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),"/*# ".concat(r," */")),l=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[o].concat(l).concat([s]).join("\n")}return[o].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(i)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(r[a]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);i&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},991:e=>{"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},782:function(e,t,n){var i,r;void 0===(r="function"==typeof(i=function(){"use strict";function t(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){s(i.response,t,n)},i.onerror=function(){console.error("could not download file")},i.send()}function i(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,a=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(e,n,a){var s=o.URL||o.webkitURL,l=document.createElement("a");n=n||e.name||"download",l.download=n,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?r(l):i(l.href)?t(e,n,a):r(l,l.target="_blank")):(l.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){r(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,o){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,o),n);else if(i(e))t(e,n,o);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout((function(){r(a)}))}}:function(e,n,i,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,i);var s="application/octet-stream"===e.type,l=/constructor/i.test(o.HTMLElement)||o.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||s&&l||a)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location=e,r=null},u.readAsDataURL(e)}else{var d=o.URL||o.webkitURL,h=d.createObjectURL(e);r?r.location=h:location.href=h,r=null,setTimeout((function(){d.revokeObjectURL(h)}),4e4)}});o.saveAs=s.saveAs=s,e.exports=s})?i.apply(t,[]):i)||(e.exports=r)},795:e=>{e.exports=' <div class="fact-details"> <h4 data-i18n="factDetails.concept">Concept</h4> <div class="std-label"></div> <div class="documentation"></div> <h4 id="dimensions-label" data-i18n="factDetails.dimensions">Dimensions</h4> <div id="dimensions"></div> <h4 data-i18n="factDetails.properties">Properties</h4> <table class="fact-properties"> <tr class="period"> <th data-i18n="factDetails.date">Date</th> <td></td> </tr> <tr class="value"> <th data-i18n="factDetails.factValue">Fact Value</th> <td><span class="value"></span> <span class="show-all">[...]</span> <span class="expand-text-block"></span></td> </tr> <tr class="accuracy"> <th data-i18n="factDetails.accuracy">Accuracy</th> <td></td> </tr> <tr class="scale"> <th data-i18n="factDetails.scale">Scale</th> <td></td> </tr> <tr class="change"> <th data-i18n="factDetails.change">Change</th> <td></td> </tr> <tr class="entity-identifier"> <th data-i18n="factDetails.entity">Entity</th> <td></td> </tr> <tr class="concept"> <th data-i18n="factDetails.concept">Concept</th> <td><div><span class="text"></span><span class="filler"></span><span class="clipboard-copy copy-icon"></span></div></td> </tr> </table> <div class="duplicates"> <span class="prev"></span> <span class="text"></span> <span class="next"></span> </div> </div> '},775:e=>{e.exports=' <div> <table class="fact-properties"> <tr class="value"> <th data-i18n="footnotes.footnote">Footnote</th> <td><span class="value"></span> <span class="show-all">[...]</span></td> </tr> </table> </div> '},845:(e,t,n)=>{e.exports=' <div id="ixv" xmlns="http://www.w3.org/1999/xhtml"> <div class="loader loading"> <span class="text" data-i18n="inspector.loadingViewer">Loading iXBRL Viewer</span> </div> <div id="top-bar"> <img class="header" alt="Inline Viewer logo" src="'+n(754)+'"/> <div class="document-title"></div> <div class="top-bar-controls" id="toolbar-highlight-menu"> <b data-i18n="inspector.highlight">Highlight:</b><span class="highlight-key popup-trigger"><div class="popup-content"> <div class="arrow"></div> <div class="items"></div> </div></span><span class="content"></span> <span class="validation-warning" title="Report has validation errors"></span> </div> </div> <div id="inspector" class="no-fact-selected"> <div id="inspector-head"> <div class="title"> <h1 class="footnote-mode-off" data-i18n="inspector.factProperties">Fact Properties</h1> <h1 class="footnote-mode-only" data-i18n="inspector.footnoteProperties">Footnote Properties</h1> <div class="back search-mode-only"> </div> <div class="back summary-mode-only"> </div> <div class="back outline-mode-only"> </div> <div class="menu" id="display-options-menu"> <div class="menu-title"></div> <div class="content-container"> <div class="content"></div> </div> </div> </div> <div class="controls"> <div class="summary-button" data-i18n="[title]inspector.documentSummary" title="Document summary"> </div> <div class="outline-button" data-i18n="[title]inspector.documentOutline" title="Document outline"> </div> <div class="search-button" data-i18n="[title]inspector.searchTitle" title="Search"> </div> <div class="next-prev"> <span class="ixbrl-prev-tag" data-i18n="[title]inspector.previousTag" title="Previous tag"></span><span class="ixbrl-next-tag" data-i18n="[title]inspector.nextTag" title="Next tag"></span> </div> </div> <div class="search-controls search-mode-only"> <div class="search-input"> <input id="ixbrl-search" type="text" aria-label="Search iXBRL report" disabled="disabled"/> <div class="filter-toggle"></div> </div> <div class="search-filters"> <div class="reset" data-i18n="inspector.reset">Reset</div> <h3 data-i18n="inspector.filter">Filter</h3> <div class="filter-group"> <div class="control-label" data-i18n="inspector.conceptType"> Concept Type </div> <select id="search-filter-concept-type"> <option value="*">-</option> <option value="numeric" data-i18n="inspector.numericOption">Numeric</option> <option value="text" data-i18n="inspector.textOption">Text</option> </select> </div> <div class="filter-group"> <div class="control-label" data-i18n="inspector.factValue"> Fact Value </div> <select id="search-filter-fact-value"> <option value="*">-</option> <option value="negative" data-i18n="inspector.negative">Negative</option> <option value="positive" data-i18n="inspector.positive">Positive</option> </select> </div> <div class="checkboxes"> <div> <label class="checkbox"> <input id="search-hidden-fact-filter" type="checkbox" checked="checked"/> <span data-i18n="inspector.hiddenFacts">Hidden Facts</span> <span class="checkmark"></span> </label> </div> <div> <label class="checkbox"> <input id="search-visible-fact-filter" type="checkbox" checked="checked"/> <span data-i18n="inspector.visibleFacts">Visible Facts</span> <span class="checkmark"></span> </label> </div> </div> <div id="search-filter-period" class="collapsible-section collapsible-only collapsed"> <h3 class="collapsible-header"> <span data-i18n="inspector.period">Period</span> <span class="collapsible-subheader"></span> </h3> <div class="collapsible-body" style="display:none"> <span class="reset-multiselect"></span> <select multiple="multiple"> </select> </div> </div> <div id="search-filter-namespaces" class="collapsible-section collapsible-only collapsed"> <h3 class="collapsible-header"> <span data-i18n="inspector.namespaces">Namespaces</span> <span class="collapsible-subheader"></span> </h3> <div class="collapsible-body namespaces" style="display:none"> <span class="reset-multiselect"></span> <select multiple="multiple"> </select> </div> </div> <div id="search-filter-units" class="collapsible-section collapsible-only collapsed"> <h3 class="collapsible-header"> <span data-i18n="inspector.units">Units</span> <span class="collapsible-subheader"></span> </h3> <div class="collapsible-body units" style="display:none"> <span class="reset-multiselect"></span> <select multiple="multiple"> </select> </div> </div> <div id="search-filter-scales" class="collapsible-section collapsible-only collapsed"> <h3 class="collapsible-header"> <span data-i18n="inspector.scales">Scales</span> <span class="collapsible-subheader"></span> </h3> <div class="collapsible-body scales" style="display:none"> <span class="reset-multiselect"></span> <select multiple="multiple"> </select> </div> </div> <div id="search-filter-dimension-type" class="collapsible-section collapsible-only collapsed"> <h3 class="collapsible-header"> <span data-i18n="inspector.dimensions">Dimension Type</span> <span class="collapsible-subheader"></span> </h3> <div class="collapsible-body dimensions" style="display:none"> <span class="reset-multiselect"></span> <select multiple="multiple" size="2"> <option value="explicit" data-i18n="inspector.explicitDimension">Explicit Dimensions</option> <option value="typed" data-i18n="inspector.typedDimensions">Typed Dimensions</option> </select> </div> </div> <div id="search-filter-calculations" class="collapsible-section collapsible-only collapsed"> <h3 class="collapsible-header"> <span data-i18n="inspector.calculations">Calculations</span> <span class="collapsible-subheader"></span> </h3> <div class="collapsible-body calculations" style="display:none"> <span class="reset-multiselect"></span> <select multiple="multiple" size="2"> <option value="summation" data-i18n="inspector.summation">Summation</option> <option value="contributor" data-i18n="inspector.contributor">Contributor</option> </select> </div> </div> <div class="filter-info"> <span id="matching-concepts-count">?</span> <span data-i18n="inspector.matchingConcepts"> matching concept(s)</span> </div> </div> </div> </div> <div class="inspector-body"> <div class="fact-mode-only inspector-body-fact"> <div class="no-fact-overlay"> <div class="no-fact-overlay-icon"></div> <p class="title" data-i18n="inspector.noFactSelected">No Fact Selected</p> </div> <div class="fact-selected-only"> <div class="hidden-fact-tag" data-i18n="inspector.hiddenFact">Hidden Fact</div> <div class="html-hidden-fact-tag" data-i18n="inspector.concealedFact">Concealed Fact</div> <div class="collapsible-section"> <div class="fact-inspector collapsible-body"> </div> </div> <div class="footnote-mode-off"> <div class="collapsible-section anchoring"> <h3 class="collapsible-header" data-i18n="inspector.anchoring">Anchoring</h3> <div class="collapsible-body"> <h4 data-i18n="inspector.widerAnchor">Wider anchor</h4> <div class="anchors-wider"> </div> <h4 data-i18n="inspector.narrowerAnchor">Narrower anchors</h4> <div class="anchors-narrower"> </div> </div> </div> <div class="collapsible-section"> <h3 class="collapsible-header" data-i18n="inspector.references">References</h3> <div class="collapsible-body references"> </div> </div> <div class="collapsible-section"> <h3 class="collapsible-header" data-i18n="inspector.calculations">Calculations</h3> <div class="collapsible-body calculations"> <div class="tree"></div> </div> </div> <div class="collapsible-section"> <h3 class="collapsible-header" data-i18n="inspector.footnotes">Footnotes</h3> <div class="collapsible-body footnotes fact-list"> </div> </div> <div class="collapsible-section footnote-facts-section"> <h3 class="collapsible-header" data-i18n="inspector.associatedFacts">Associated Facts</h3> <div class="collapsible-body footnote-facts fact-list"> </div> </div> <div class="collapsible-section"> <h3 class="collapsible-header" data-i18n="inspector.fact-groups">Sections</h3> <div class="collapsible-body fact-groups fact-list"> </div> </div> </div> <div class="footnote-details footnote-mode-only"> <div class="collapsible-section"> <h3 class="collapsible-header" data-i18n="inspector.associatedFacts">Associated facts</h3> <div class="collapsible-body footnote-facts fact-list"> </div> </div> </div> </div> </div> <div class="search-results search-mode-only"> <div class="results fact-list"> </div> <div class="search-overlay"> <div class="search-overlay-icon"></div> <div class="search-overlay-text search-ready-only"><p class="title" data-i18n="inspector.factSearch">Fact Search</p><p class="text">Please enter some search terms</p></div> <div class="search-overlay-text search-not-ready-only"><p class="title" data-i18n="inspector.factSearch">Fact Search</p><p class="text">Please wait - building index...</p></div> </div> </div> <div class="outline outline-mode-only"> <div class="no-outline-overlay"> <div class="no-outline-overlay-icon"></div> <p class="title" data-i18n="inspector.outlineUnavailable">Outline Unavailable</p> </div> <div class="body"> </div> </div> <div class="summary summary-mode-only"> <div class="body"> <div class="collapsible-section fact-summary"> <h3 class="collapsible-header" data-i18n="inspector.summary.fact.header">Fact Summary</h3> <div class="collapsible-body"> <div class="total-facts-value"> <span class="total-facts-title" data-i18n="inspector.summary.fact.title">Total Facts:</span> </div> </div> </div> <div class="collapsible-section tag-summary"> <h3 class="collapsible-header" data-i18n="inspector.summary.tag.header">Tag Summary</h3> <div class="collapsible-body"> <div class="tag-summary-body"> <table> <thead> <tr> <th scope="col" class="namespace"><div data-i18n="inspector.summary.tag.colNamespace">Namespace</div></th> <th scope="col" class="figure"><div data-i18n="inspector.summary.tag.colPrimaryItems">Primary Items</div></th> <th scope="col" class="figure"><div data-i18n="inspector.summary.tag.colDimensions">Dimensions</div></th> <th scope="col" class="figure"><div data-i18n="inspector.summary.tag.colMembers">Members</div></th> <th scope="col" class="figure"><div data-i18n="inspector.summary.tag.colTotal">Total</div></th> </tr> </thead> <tbody class="tag-summary-table-body"> </tbody> <tfoot> <tr class="tag-summary-table-footer-row"> <th scope="row" data-i18n="inspector.summary.tag.rowTotal">Total</th> </tr> </tfoot> </table> </div> </div> </div> <div class="collapsible-section files-summary"> <h3 class="collapsible-header" data-i18n="inspector.summary.file.header">File Summary</h3> <div class="collapsible-body"> <div class="file-summary-container"> <div class="files inline-docs"> <span class="files-summary-title" data-i18n="inspector.summary.file.inline">Inline Documents</span> <ul></ul> </div> <div class="files schemas"> <span class="files-summary-title" data-i18n="inspector.summary.file.schemas">Schemas</span> <ul></ul> </div> <div class="files pres-links"> <span class="files-summary-title" data-i18n="inspector.summary.file.presentation">Presentation Linkbases</span> <ul></ul> </div> <div class="files calc-links"> <span class="files-summary-title" data-i18n="inspector.summary.file.calculations">Calculation Linkbases</span> <ul></ul> </div> <div class="files def-links"> <span class="files-summary-title" data-i18n="inspector.summary.file.definitions">Definition Linkbases</span> <ul></ul> </div> <div class="files label-links"> <span class="files-summary-title" data-i18n="inspector.summary.file.labels">Label Linkbases</span> <ul></ul> </div> <div class="files ref-links"> <span class="files-summary-title" data-i18n="inspector.summary.file.references">Reference Linkbases</span> <ul></ul> </div> <div class="files other-links"> <span class="files-summary-title" data-i18n="inspector.summary.file.other">Other Linkbases</span> <ul></ul> </div> </div> </div> </div> </div> </div> </div> <div class="inspector-foot powered-by"> <a href="https://arelle.org" target="_blank"><img alt="Arelle logo (opens in new window)" src="'+n(585)+'"/></a> <div class="version"></div> </div> <div class="failed-to-load-mask"></div> </div> <div class="dialog-mask"> </div> <div id="dialog-container"></div> <div id="dialog-templates"> <div class="dialog full-screen chart"> <div class="close"></div> <div class="contents"> <div class="chart-container"><canvas id="chart-canvas"></canvas></div> <div class="other-aspects"></div> </div> </div> <div class="dialog validation-report"> <div class="close"></div> <div class="contents"> <h2 data-i18n="inspector.validationResults">Validation results</h2> <table> <thead> <th data-i18n="inspector.validationSeverity">Severity</th> <th data-i18n="inspector.validationCode">Code</th> <th data-i18n="inspector.validationMessage">Message</th> </thead> <tbody> </tbody> </table> <div class="buttons"> </div> </div> </div> <div class="dialog text-block-viewer"> <div class="close"></div> <div class="contents"> <h2 class="title"></h2> <iframe id="text-block-viewer-iframe"></iframe> <div class="controls"> <label class="checkbox"> <input id="text-block-viewer-plain-text" type="checkbox"/> <span data-i18n="inspector.showTextOnly">Show text only</span> <span class="checkmark"></span> </label> </div> <div class="buttons"> </div> </div> </div> <div class="dialog message-box"> <div class="close"></div> <div class="contents"> <h2 class="title"></h2> <div class="message"> </div> <div class="buttons"> </div> </div> </div> </div> <div id="viewer-pane"> <div class="ixds-tabs"><div class="tab-area"></div></div> <div id="iframe-container"> <div class="zoom-in">+</div> <div class="zoom-out">-</div> <div class="print" title="Print Document" data-i18n="[title]inspector.printDocument"></div> </div> <div class="resize"></div> <div class="resize-spacer"></div> </div> </div> '},212:e=>{e.exports=function(){var e={};Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(e){return!(!e||!e.Window)&&e instanceof e.Window};var t={};Object.defineProperty(t,"__esModule",{value:!0}),t.getWindow=function(t){return(0,e.default)(t)?t:(t.ownerDocument||t).defaultView||i.window},t.init=r,t.window=t.realWindow=void 0;var n=void 0;t.realWindow=n;var i=void 0;function r(e){t.realWindow=n=e;var r=e.document.createTextNode("");r.ownerDocument!==e.document&&"function"==typeof e.wrap&&e.wrap(r)===r&&(e=e.wrap(e)),t.window=i=e}t.window=i,"undefined"!=typeof window&&window&&r(window);var o={};function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var s=function(e){return!!e&&"object"===a(e)},l=function(e){return"function"==typeof e},c={window:function(n){return n===t.window||(0,e.default)(n)},docFrag:function(e){return s(e)&&11===e.nodeType},object:s,func:l,number:function(e){return"number"==typeof e},bool:function(e){return"boolean"==typeof e},string:function(e){return"string"==typeof e},element:function(e){if(!e||"object"!==a(e))return!1;var n=t.getWindow(e)||t.window;return/object|function/.test("undefined"==typeof Element?"undefined":a(Element))?e instanceof Element||e instanceof n.Element:1===e.nodeType&&"string"==typeof e.nodeName},plainObject:function(e){return s(e)&&!!e.constructor&&/function Object\b/.test(e.constructor.toString())},array:function(e){return s(e)&&void 0!==e.length&&l(e.splice)}};o.default=c;var u={};function d(e){var t=e.interaction;if("drag"===t.prepared.name){var n=t.prepared.axis;"x"===n?(t.coords.cur.page.y=t.coords.start.page.y,t.coords.cur.client.y=t.coords.start.client.y,t.coords.velocity.client.y=0,t.coords.velocity.page.y=0):"y"===n&&(t.coords.cur.page.x=t.coords.start.page.x,t.coords.cur.client.x=t.coords.start.client.x,t.coords.velocity.client.x=0,t.coords.velocity.page.x=0)}}function h(e){var t=e.iEvent,n=e.interaction;if("drag"===n.prepared.name){var i=n.prepared.axis;if("x"===i||"y"===i){var r="x"===i?"y":"x";t.page[r]=n.coords.start.page[r],t.client[r]=n.coords.start.client[r],t.delta[r]=0}}}Object.defineProperty(u,"__esModule",{value:!0}),u.default=void 0;var f={id:"actions/drag",install:function(e){var t=e.actions,n=e.Interactable,i=e.defaults;n.prototype.draggable=f.draggable,t.map.drag=f,t.methodDict.drag="draggable",i.actions.drag=f.defaults},listeners:{"interactions:before-action-move":d,"interactions:action-resume":d,"interactions:action-move":h,"auto-start:check":function(e){var t=e.interaction,n=e.interactable,i=e.buttons,r=n.options.drag;if(r&&r.enabled&&(!t.pointerIsDown||!/mouse|pointer/.test(t.pointerType)||0!=(i&n.options.drag.mouseButtons)))return e.action={name:"drag",axis:"start"===r.lockAxis?r.startAxis:r.lockAxis},!1}},draggable:function(e){return o.default.object(e)?(this.options.drag.enabled=!1!==e.enabled,this.setPerAction("drag",e),this.setOnEvents("drag",e),/^(xy|x|y|start)$/.test(e.lockAxis)&&(this.options.drag.lockAxis=e.lockAxis),/^(xy|x|y)$/.test(e.startAxis)&&(this.options.drag.startAxis=e.startAxis),this):o.default.bool(e)?(this.options.drag.enabled=e,this):this.options.drag},beforeMove:d,move:h,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"}},p=f;u.default=p;var g={};Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var m={init:function(e){var t=e;m.document=t.document,m.DocumentFragment=t.DocumentFragment||v,m.SVGElement=t.SVGElement||v,m.SVGSVGElement=t.SVGSVGElement||v,m.SVGElementInstance=t.SVGElementInstance||v,m.Element=t.Element||v,m.HTMLElement=t.HTMLElement||m.Element,m.Event=t.Event,m.Touch=t.Touch||v,m.PointerEvent=t.PointerEvent||t.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function v(){}var y=m;g.default=y;var b={};Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var x={init:function(e){var t=g.default.Element,n=e.navigator||{};x.supportsTouch="ontouchstart"in e||o.default.func(e.DocumentTouch)&&g.default.document instanceof e.DocumentTouch,x.supportsPointerEvent=!1!==n.pointerEnabled&&!!g.default.PointerEvent,x.isIOS=/iP(hone|od|ad)/.test(n.platform),x.isIOS7=/iP(hone|od|ad)/.test(n.platform)&&/OS 7[^\d]/.test(n.appVersion),x.isIe9=/MSIE 9/.test(n.userAgent),x.isOperaMobile="Opera"===n.appName&&x.supportsTouch&&/Presto/.test(n.userAgent),x.prefixedMatchesSelector="matches"in t.prototype?"matches":"webkitMatchesSelector"in t.prototype?"webkitMatchesSelector":"mozMatchesSelector"in t.prototype?"mozMatchesSelector":"oMatchesSelector"in t.prototype?"oMatchesSelector":"msMatchesSelector",x.pEventTypes=x.supportsPointerEvent?g.default.PointerEvent===e.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,x.wheelEvent=g.default.document&&"onmousewheel"in g.default.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},w=x;b.default=w;var A={};function _(e){var t=e.parentNode;if(o.default.docFrag(t)){for(;(t=t.host)&&o.default.docFrag(t););return t}return t}function C(e,n){return t.window!==t.realWindow&&(n=n.replace(/\/deep\//g," ")),e[b.default.prefixedMatchesSelector](n)}Object.defineProperty(A,"__esModule",{value:!0}),A.closest=function(e,t){for(;o.default.element(e);){if(C(e,t))return e;e=_(e)}return null},A.getActualElement=function(e){return e.correspondingUseElement||e},A.getElementClientRect=I,A.getElementRect=function(e){var n=I(e);if(!b.default.isIOS7&&n){var i=S(t.getWindow(e));n.left+=i.x,n.right+=i.x,n.top+=i.y,n.bottom+=i.y}return n},A.getPath=function(e){for(var t=[];e;)t.push(e),e=_(e);return t},A.getScrollXY=S,A.indexOfDeepestElement=function(e){for(var n,i=[],r=0;r<e.length;r++){var o=e[r],a=e[n];if(o&&r!==n)if(a){var s=M(o),l=M(a);if(s!==o.ownerDocument)if(l!==o.ownerDocument)if(s!==l){i=i.length?i:k(a);var c=void 0;if(a instanceof g.default.HTMLElement&&o instanceof g.default.SVGElement&&!(o instanceof g.default.SVGSVGElement)){if(o===l)continue;c=o.ownerSVGElement}else c=o;for(var u=k(c,a.ownerDocument),d=0;u[d]&&u[d]===i[d];)d++;var h=[u[d-1],u[d],i[d]];if(h[0])for(var f=h[0].lastChild;f;){if(f===h[1]){n=r,i=u;break}if(f===h[2])break;f=f.previousSibling}}else p=o,m=a,(parseInt(t.getWindow(p).getComputedStyle(p).zIndex,10)||0)>=(parseInt(t.getWindow(m).getComputedStyle(m).zIndex,10)||0)&&(n=r);else n=r}else n=r}var p,m;return n},A.matchesSelector=C,A.matchesUpTo=function(e,t,n){for(;o.default.element(e);){if(C(e,t))return!0;if((e=_(e))===n)return C(e,t)}return!1},A.nodeContains=function(e,t){if(e.contains)return e.contains(t);for(;t;){if(t===e)return!0;t=t.parentNode}return!1},A.parentNode=_,A.trySelector=function(e){return!!o.default.string(e)&&(g.default.document.querySelector(e),!0)};var M=function(e){return e.parentNode||e.host};function k(e,t){for(var n,i=[],r=e;(n=M(r))&&r!==t&&n!==r.ownerDocument;)i.unshift(r),r=n;return i}function S(e){return{x:(e=e||t.window).scrollX||e.document.documentElement.scrollLeft,y:e.scrollY||e.document.documentElement.scrollTop}}function I(e){var t=e instanceof g.default.SVGElement?e.getBoundingClientRect():e.getClientRects()[0];return t&&{left:t.left,right:t.right,top:t.top,bottom:t.bottom,width:t.width||t.right-t.left,height:t.height||t.bottom-t.top}}var L={};Object.defineProperty(L,"__esModule",{value:!0}),L.default=function(e,t){for(var n in t)e[n]=t[n];return e};var T={};function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function O(e,t,n){return"parent"===e?(0,A.parentNode)(n):"self"===e?t.getRect(n):(0,A.closest)(n,e)}Object.defineProperty(T,"__esModule",{value:!0}),T.addEdges=function(e,t,n){e.left&&(t.left+=n.x),e.right&&(t.right+=n.x),e.top&&(t.top+=n.y),e.bottom&&(t.bottom+=n.y),t.width=t.right-t.left,t.height=t.bottom-t.top},T.getStringOptionResult=O,T.rectToXY=function(e){return e&&{x:"x"in e?e.x:e.left,y:"y"in e?e.y:e.top}},T.resolveRectLike=function(e,t,n,i){var r,a=e;return o.default.string(a)?a=O(a,t,n):o.default.func(a)&&(a=a.apply(void 0,function(e){if(Array.isArray(e))return D(e)}(r=i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}(r)||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.")}())),o.default.element(a)&&(a=(0,A.getElementRect)(a)),a},T.tlbrToXywh=function(e){return!e||"x"in e&&"y"in e||((e=(0,L.default)({},e)).x=e.left||0,e.y=e.top||0,e.width=e.width||(e.right||0)-e.x,e.height=e.height||(e.bottom||0)-e.y),e},T.toFullRect=function(e){var t,n;return{top:e.top,left:e.left,bottom:e.bottom,right:e.right,width:null!==(t=e.width)&&void 0!==t?t:e.right-e.left,height:null!==(n=e.height)&&void 0!==n?n:e.bottom-e.top}},T.xywhToTlbr=function(e){return!e||"left"in e&&"top"in e||((e=(0,L.default)({},e)).left=e.x||0,e.top=e.y||0,e.right=e.right||e.left+e.width,e.bottom=e.bottom||e.top+e.height),e};var j={};Object.defineProperty(j,"__esModule",{value:!0}),j.default=function(e,t,n){var i=n&&e.options[n],r=i&&i.origin||e.options.origin,o=(0,T.resolveRectLike)(r,e,t,[e&&t]);return(0,T.rectToXY)(o)||{x:0,y:0}};var N={};function E(e){return e.trim().split(/ +/)}Object.defineProperty(N,"__esModule",{value:!0}),N.default=function e(t,n,i){if(i=i||{},o.default.string(t)&&-1!==t.search(" ")&&(t=E(t)),o.default.array(t))return t.reduce((function(t,r){return(0,L.default)(t,e(r,n,i))}),i);if(o.default.object(t)&&(n=t,t=""),o.default.func(n))i[t]=i[t]||[],i[t].push(n);else if(o.default.array(n))for(var r=0;r<n.length;r++){var a;a=n[r],e(t,a,i)}else if(o.default.object(n))for(var s in n){var l=E(s).map((function(e){return"".concat(t).concat(e)}));e(l,n[s],i)}return i};var P={};Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0,P.default=function(e,t){return Math.sqrt(e*e+t*t)};var F={};Object.defineProperty(F,"__esModule",{value:!0}),F.default=function(e,t){e.__set||(e.__set={});var n=function(n){if(z.some((function(e){return 0===n.indexOf(e)})))return"continue";"function"!=typeof e[n]&&"__set"!==n&&Object.defineProperty(e,n,{get:function(){return n in e.__set?e.__set[n]:e.__set[n]=t[n]},set:function(t){e.__set[n]=t},configurable:!0})};for(var i in t)n(i);return e};var z=["webkit","moz"],R={};function B(e){return e instanceof g.default.Event||e instanceof g.default.Touch}function W(e,t,n){return e=e||"page",(n=n||{}).x=t[e+"X"],n.y=t[e+"Y"],n}function Y(e,t){return t=t||{x:0,y:0},b.default.isOperaMobile&&B(e)?(W("screen",e,t),t.x+=window.scrollX,t.y+=window.scrollY):W("page",e,t),t}function U(e,t){return t=t||{},b.default.isOperaMobile&&B(e)?W("screen",e,t):W("client",e,t),t}function H(e){var t=[];return o.default.array(e)?(t[0]=e[0],t[1]=e[1]):"touchend"===e.type?1===e.touches.length?(t[0]=e.touches[0],t[1]=e.changedTouches[0]):0===e.touches.length&&(t[0]=e.changedTouches[0],t[1]=e.changedTouches[1]):(t[0]=e.touches[0],t[1]=e.touches[1]),t}function V(e){for(var t={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},n=0;n<e.length;n++){var i=e[n];for(var r in t)t[r]+=i[r]}for(var o in t)t[o]/=e.length;return t}Object.defineProperty(R,"__esModule",{value:!0}),R.coordsToEvent=function(e){return{coords:e,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}},R.copyCoords=function(e,t){e.page=e.page||{},e.page.x=t.page.x,e.page.y=t.page.y,e.client=e.client||{},e.client.x=t.client.x,e.client.y=t.client.y,e.timeStamp=t.timeStamp},R.getClientXY=U,R.getEventTargets=function(e){var t=o.default.func(e.composedPath)?e.composedPath():e.path;return[A.getActualElement(t?t[0]:e.target),A.getActualElement(e.currentTarget)]},R.getPageXY=Y,R.getPointerId=function(e){return o.default.number(e.pointerId)?e.pointerId:e.identifier},R.getPointerType=function(e){return o.default.string(e.pointerType)?e.pointerType:o.default.number(e.pointerType)?[void 0,void 0,"touch","pen","mouse"][e.pointerType]:/touch/.test(e.type||"")||e instanceof g.default.Touch?"touch":"mouse"},R.getTouchPair=H,R.getXY=W,R.isNativePointer=B,R.newCoords=function(){return{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},R.pointerAverage=V,Object.defineProperty(R,"pointerExtend",{enumerable:!0,get:function(){return F.default}}),R.setCoordDeltas=function(e,t,n){e.page.x=n.page.x-t.page.x,e.page.y=n.page.y-t.page.y,e.client.x=n.client.x-t.client.x,e.client.y=n.client.y-t.client.y,e.timeStamp=n.timeStamp-t.timeStamp},R.setCoordVelocity=function(e,t){var n=Math.max(t.timeStamp/1e3,.001);e.page.x=t.page.x/n,e.page.y=t.page.y/n,e.client.x=t.client.x/n,e.client.y=t.client.y/n,e.timeStamp=n},R.setCoords=function(e,t,n){var i=t.length>1?V(t):t[0];Y(i,e.page),U(i,e.client),e.timeStamp=n},R.setZeroCoords=function(e){e.page.x=0,e.page.y=0,e.client.x=0,e.client.y=0},R.touchAngle=function(e,t){var n=t+"X",i=t+"Y",r=H(e),o=r[1][n]-r[0][n],a=r[1][i]-r[0][i];return 180*Math.atan2(a,o)/Math.PI},R.touchBBox=function(e){if(!e.length)return null;var t=H(e),n=Math.min(t[0].pageX,t[1].pageX),i=Math.min(t[0].pageY,t[1].pageY),r=Math.max(t[0].pageX,t[1].pageX),o=Math.max(t[0].pageY,t[1].pageY);return{x:n,y:i,left:n,top:i,right:r,bottom:o,width:r-n,height:o-i}},R.touchDistance=function(e,t){var n=t+"X",i=t+"Y",r=H(e),o=r[0][n]-r[1][n],a=r[0][i]-r[1][i];return(0,P.default)(o,a)};var Z={};function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(Z,"__esModule",{value:!0}),Z.BaseEvent=void 0;var Q=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),G(this,"immediatePropagationStopped",!1),G(this,"propagationStopped",!1),this._interaction=t}var t,n;return t=e,(n=[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();Z.BaseEvent=Q,Object.defineProperty(Q.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var J={};Object.defineProperty(J,"__esModule",{value:!0}),J.remove=J.merge=J.from=J.findIndex=J.find=J.contains=void 0,J.contains=function(e,t){return-1!==e.indexOf(t)},J.remove=function(e,t){return e.splice(e.indexOf(t),1)};var q=function(e,t){for(var n=0;n<t.length;n++){var i=t[n];e.push(i)}return e};J.merge=q,J.from=function(e){return q([],e)};var X=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1};J.findIndex=X,J.find=function(e,t){return e[X(e,t)]};var K={};function $(e){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$(e)}function ee(e,t){return ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ee(e,t)}function te(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ne(e){return ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ne(e)}function ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(K,"__esModule",{value:!0}),K.DropEvent=void 0;var re=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ee(e,t)}(a,e);var t,n,i,r,o=(i=a,r=function(){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(e){return!1}}(),function(){var e,t=ne(i);if(r){var n=ne(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===$(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return te(e)}(this,e)});function a(e,t,n){var i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),ie(te(i=o.call(this,t._interaction)),"dropzone",void 0),ie(te(i),"dragEvent",void 0),ie(te(i),"relatedTarget",void 0),ie(te(i),"draggable",void 0),ie(te(i),"propagationStopped",!1),ie(te(i),"immediatePropagationStopped",!1);var r="dragleave"===n?e.prev:e.cur,s=r.element,l=r.dropzone;return i.type=n,i.target=s,i.currentTarget=s,i.dropzone=l,i.dragEvent=t,i.relatedTarget=t.target,i.draggable=t.interactable,i.timeStamp=t.timeStamp,i}return t=a,(n=[{key:"reject",value:function(){var e=this,t=this._interaction.dropState;if("dropactivate"===this.type||this.dropzone&&t.cur.dropzone===this.dropzone&&t.cur.element===this.target)if(t.prev.dropzone=this.dropzone,t.prev.element=this.target,t.rejected=!0,t.events.enter=null,this.stopImmediatePropagation(),"dropactivate"===this.type){var n=t.activeDrops,i=J.findIndex(n,(function(t){var n=t.dropzone,i=t.element;return n===e.dropzone&&i===e.target}));t.activeDrops.splice(i,1);var r=new a(t,this.dragEvent,"dropdeactivate");r.dropzone=this.dropzone,r.target=this.target,this.dropzone.fire(r)}else this.dropzone.fire(new a(t,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(Z.BaseEvent);K.DropEvent=re;var oe={};function ae(e,t){for(var n=0;n<e.slice().length;n++){var i=e.slice()[n],r=i.dropzone,o=i.element;t.dropzone=r,t.target=o,r.fire(t),t.propagationStopped=t.immediatePropagationStopped=!1}}function se(e,t){for(var n=function(e,t){for(var n=e.interactables,i=[],r=0;r<n.list.length;r++){var a=n.list[r];if(a.options.drop.enabled){var s=a.options.drop.accept;if(!(o.default.element(s)&&s!==t||o.default.string(s)&&!A.matchesSelector(t,s)||o.default.func(s)&&!s({dropzone:a,draggableElement:t})))for(var l=o.default.string(a.target)?a._context.querySelectorAll(a.target):o.default.array(a.target)?a.target:[a.target],c=0;c<l.length;c++){var u=l[c];u!==t&&i.push({dropzone:a,element:u,rect:a.getRect(u)})}}}return i}(e,t),i=0;i<n.length;i++){var r=n[i];r.rect=r.dropzone.getRect(r.element)}return n}function le(e,t,n){for(var i=e.dropState,r=e.interactable,o=e.element,a=[],s=0;s<i.activeDrops.length;s++){var l=i.activeDrops[s],c=l.dropzone,u=l.element,d=l.rect;c.dropCheck(t,n,r,o,u,d)&&a.push(u)}var h=A.indexOfDeepestElement(a);return i.activeDrops[h]||null}function ce(e,t,n){var i=e.dropState,r={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return"dragstart"===n.type&&(r.activate=new K.DropEvent(i,n,"dropactivate"),r.activate.target=null,r.activate.dropzone=null),"dragend"===n.type&&(r.deactivate=new K.DropEvent(i,n,"dropdeactivate"),r.deactivate.target=null,r.deactivate.dropzone=null),i.rejected||(i.cur.element!==i.prev.element&&(i.prev.dropzone&&(r.leave=new K.DropEvent(i,n,"dragleave"),n.dragLeave=r.leave.target=i.prev.element,n.prevDropzone=r.leave.dropzone=i.prev.dropzone),i.cur.dropzone&&(r.enter=new K.DropEvent(i,n,"dragenter"),n.dragEnter=i.cur.element,n.dropzone=i.cur.dropzone)),"dragend"===n.type&&i.cur.dropzone&&(r.drop=new K.DropEvent(i,n,"drop"),n.dropzone=i.cur.dropzone,n.relatedTarget=i.cur.element),"dragmove"===n.type&&i.cur.dropzone&&(r.move=new K.DropEvent(i,n,"dropmove"),n.dropzone=i.cur.dropzone)),r}function ue(e,t){var n=e.dropState,i=n.activeDrops,r=n.cur,o=n.prev;t.leave&&o.dropzone.fire(t.leave),t.enter&&r.dropzone.fire(t.enter),t.move&&r.dropzone.fire(t.move),t.drop&&r.dropzone.fire(t.drop),t.deactivate&&ae(i,t.deactivate),n.prev.dropzone=r.dropzone,n.prev.element=r.element}function de(e,t){var n=e.interaction,i=e.iEvent,r=e.event;if("dragmove"===i.type||"dragend"===i.type){var o=n.dropState;t.dynamicDrop&&(o.activeDrops=se(t,n.element));var a=i,s=le(n,a,r);o.rejected=o.rejected&&!!s&&s.dropzone===o.cur.dropzone&&s.element===o.cur.element,o.cur.dropzone=s&&s.dropzone,o.cur.element=s&&s.element,o.events=ce(n,0,a)}}Object.defineProperty(oe,"__esModule",{value:!0}),oe.default=void 0;var he={id:"actions/drop",install:function(e){var t=e.actions,n=e.interactStatic,i=e.Interactable,r=e.defaults;e.usePlugin(u.default),i.prototype.dropzone=function(e){return function(e,t){if(o.default.object(t)){if(e.options.drop.enabled=!1!==t.enabled,t.listeners){var n=(0,N.default)(t.listeners),i=Object.keys(n).reduce((function(e,t){return e[/^(enter|leave)/.test(t)?"drag".concat(t):/^(activate|deactivate|move)/.test(t)?"drop".concat(t):t]=n[t],e}),{}),r=e.options.drop.listeners;r&&e.off(r),e.on(i),e.options.drop.listeners=i}return o.default.func(t.ondrop)&&e.on("drop",t.ondrop),o.default.func(t.ondropactivate)&&e.on("dropactivate",t.ondropactivate),o.default.func(t.ondropdeactivate)&&e.on("dropdeactivate",t.ondropdeactivate),o.default.func(t.ondragenter)&&e.on("dragenter",t.ondragenter),o.default.func(t.ondragleave)&&e.on("dragleave",t.ondragleave),o.default.func(t.ondropmove)&&e.on("dropmove",t.ondropmove),/^(pointer|center)$/.test(t.overlap)?e.options.drop.overlap=t.overlap:o.default.number(t.overlap)&&(e.options.drop.overlap=Math.max(Math.min(1,t.overlap),0)),"accept"in t&&(e.options.drop.accept=t.accept),"checker"in t&&(e.options.drop.checker=t.checker),e}return o.default.bool(t)?(e.options.drop.enabled=t,e):e.options.drop}(this,e)},i.prototype.dropCheck=function(e,t,n,i,r,a){return function(e,t,n,i,r,a,s){var l=!1;if(!(s=s||e.getRect(a)))return!!e.options.drop.checker&&e.options.drop.checker(t,n,l,e,a,i,r);var c=e.options.drop.overlap;if("pointer"===c){var u=(0,j.default)(i,r,"drag"),d=R.getPageXY(t);d.x+=u.x,d.y+=u.y;var h=d.x>s.left&&d.x<s.right,f=d.y>s.top&&d.y<s.bottom;l=h&&f}var p=i.getRect(r);if(p&&"center"===c){var g=p.left+p.width/2,m=p.top+p.height/2;l=g>=s.left&&g<=s.right&&m>=s.top&&m<=s.bottom}return p&&o.default.number(c)&&(l=Math.max(0,Math.min(s.right,p.right)-Math.max(s.left,p.left))*Math.max(0,Math.min(s.bottom,p.bottom)-Math.max(s.top,p.top))/(p.width*p.height)>=c),e.options.drop.checker&&(l=e.options.drop.checker(t,n,l,e,a,i,r)),l}(this,e,t,n,i,r,a)},n.dynamicDrop=function(t){return o.default.bool(t)?(e.dynamicDrop=t,n):e.dynamicDrop},(0,L.default)(t.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),t.methodDict.drop="dropzone",e.dynamicDrop=!1,r.actions.drop=he.defaults},listeners:{"interactions:before-action-start":function(e){var t=e.interaction;"drag"===t.prepared.name&&(t.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(e,t){var n=e.interaction,i=(e.event,e.iEvent);if("drag"===n.prepared.name){var r=n.dropState;r.activeDrops=[],r.events={},r.activeDrops=se(t,n.element),r.events=ce(n,0,i),r.events.activate&&(ae(r.activeDrops,r.events.activate),t.fire("actions/drop:start",{interaction:n,dragEvent:i}))}},"interactions:action-move":de,"interactions:after-action-move":function(e,t){var n=e.interaction,i=e.iEvent;if("drag"===n.prepared.name){var r=n.dropState;ue(n,r.events),t.fire("actions/drop:move",{interaction:n,dragEvent:i}),r.events={}}},"interactions:action-end":function(e,t){if("drag"===e.interaction.prepared.name){var n=e.interaction,i=e.iEvent;de(e,t),ue(n,n.dropState.events),t.fire("actions/drop:end",{interaction:n,dragEvent:i})}},"interactions:stop":function(e){var t=e.interaction;if("drag"===t.prepared.name){var n=t.dropState;n&&(n.activeDrops=null,n.events=null,n.cur.dropzone=null,n.cur.element=null,n.prev.dropzone=null,n.prev.element=null,n.rejected=!1)}}},getActiveDrops:se,getDrop:le,getDropEvents:ce,fireDropEvents:ue,defaults:{enabled:!1,accept:null,overlap:"pointer"}},fe=he;oe.default=fe;var pe={};function ge(e){var t=e.interaction,n=e.iEvent,i=e.phase;if("gesture"===t.prepared.name){var r=t.pointers.map((function(e){return e.pointer})),a="start"===i,s="end"===i,l=t.interactable.options.deltaSource;if(n.touches=[r[0],r[1]],a)n.distance=R.touchDistance(r,l),n.box=R.touchBBox(r),n.scale=1,n.ds=0,n.angle=R.touchAngle(r,l),n.da=0,t.gesture.startDistance=n.distance,t.gesture.startAngle=n.angle;else if(s){var c=t.prevEvent;n.distance=c.distance,n.box=c.box,n.scale=c.scale,n.ds=0,n.angle=c.angle,n.da=0}else n.distance=R.touchDistance(r,l),n.box=R.touchBBox(r),n.scale=n.distance/t.gesture.startDistance,n.angle=R.touchAngle(r,l),n.ds=n.scale-t.gesture.scale,n.da=n.angle-t.gesture.angle;t.gesture.distance=n.distance,t.gesture.angle=n.angle,o.default.number(n.scale)&&n.scale!==1/0&&!isNaN(n.scale)&&(t.gesture.scale=n.scale)}}Object.defineProperty(pe,"__esModule",{value:!0}),pe.default=void 0;var me={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(e){var t=e.actions,n=e.Interactable,i=e.defaults;n.prototype.gesturable=function(e){return o.default.object(e)?(this.options.gesture.enabled=!1!==e.enabled,this.setPerAction("gesture",e),this.setOnEvents("gesture",e),this):o.default.bool(e)?(this.options.gesture.enabled=e,this):this.options.gesture},t.map.gesture=me,t.methodDict.gesture="gesturable",i.actions.gesture=me.defaults},listeners:{"interactions:action-start":ge,"interactions:action-move":ge,"interactions:action-end":ge,"interactions:new":function(e){e.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(e){if(!(e.interaction.pointers.length<2)){var t=e.interactable.options.gesture;if(t&&t.enabled)return e.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""}},ve=me;pe.default=ve;var ye={};function be(e,t,n,i,r,a,s){if(!t)return!1;if(!0===t){var l=o.default.number(a.width)?a.width:a.right-a.left,c=o.default.number(a.height)?a.height:a.bottom-a.top;if(s=Math.min(s,Math.abs(("left"===e||"right"===e?l:c)/2)),l<0&&("left"===e?e="right":"right"===e&&(e="left")),c<0&&("top"===e?e="bottom":"bottom"===e&&(e="top")),"left"===e){var u=l>=0?a.left:a.right;return n.x<u+s}if("top"===e){var d=c>=0?a.top:a.bottom;return n.y<d+s}if("right"===e)return n.x>(l>=0?a.right:a.left)-s;if("bottom"===e)return n.y>(c>=0?a.bottom:a.top)-s}return!!o.default.element(i)&&(o.default.element(t)?t===i:A.matchesUpTo(i,t,r))}function xe(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.resizeAxes){var i=t;n.interactable.options.resize.square?("y"===n.resizeAxes?i.delta.x=i.delta.y:i.delta.y=i.delta.x,i.axes="xy"):(i.axes=n.resizeAxes,"x"===n.resizeAxes?i.delta.y=0:"y"===n.resizeAxes&&(i.delta.x=0))}}Object.defineProperty(ye,"__esModule",{value:!0}),ye.default=void 0;var we={id:"actions/resize",before:["actions/drag"],install:function(e){var t=e.actions,n=e.browser,i=e.Interactable,r=e.defaults;we.cursors=function(e){return e.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(n),we.defaultMargin=n.supportsTouch||n.supportsPointerEvent?20:10,i.prototype.resizable=function(t){return function(e,t,n){return o.default.object(t)?(e.options.resize.enabled=!1!==t.enabled,e.setPerAction("resize",t),e.setOnEvents("resize",t),o.default.string(t.axis)&&/^x$|^y$|^xy$/.test(t.axis)?e.options.resize.axis=t.axis:null===t.axis&&(e.options.resize.axis=n.defaults.actions.resize.axis),o.default.bool(t.preserveAspectRatio)?e.options.resize.preserveAspectRatio=t.preserveAspectRatio:o.default.bool(t.square)&&(e.options.resize.square=t.square),e):o.default.bool(t)?(e.options.resize.enabled=t,e):e.options.resize}(this,t,e)},t.map.resize=we,t.methodDict.resize="resizable",r.actions.resize=we.defaults},listeners:{"interactions:new":function(e){e.interaction.resizeAxes="xy"},"interactions:action-start":function(e){!function(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=t,r=n.rect;n._rects={start:(0,L.default)({},r),corrected:(0,L.default)({},r),previous:(0,L.default)({},r),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},i.edges=n.prepared.edges,i.rect=n._rects.corrected,i.deltaRect=n._rects.delta}}(e),xe(e)},"interactions:action-move":function(e){!function(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=t,r=n.interactable.options.resize.invert,o="reposition"===r||"negate"===r,a=n.rect,s=n._rects,l=s.start,c=s.corrected,u=s.delta,d=s.previous;if((0,L.default)(d,c),o){if((0,L.default)(c,a),"reposition"===r){if(c.top>c.bottom){var h=c.top;c.top=c.bottom,c.bottom=h}if(c.left>c.right){var f=c.left;c.left=c.right,c.right=f}}}else c.top=Math.min(a.top,l.bottom),c.bottom=Math.max(a.bottom,l.top),c.left=Math.min(a.left,l.right),c.right=Math.max(a.right,l.left);for(var p in c.width=c.right-c.left,c.height=c.bottom-c.top,c)u[p]=c[p]-d[p];i.edges=n.prepared.edges,i.rect=c,i.deltaRect=u}}(e),xe(e)},"interactions:action-end":function(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=t;i.edges=n.prepared.edges,i.rect=n._rects.corrected,i.deltaRect=n._rects.delta}},"auto-start:check":function(e){var t=e.interaction,n=e.interactable,i=e.element,r=e.rect,a=e.buttons;if(r){var s=(0,L.default)({},t.coords.cur.page),l=n.options.resize;if(l&&l.enabled&&(!t.pointerIsDown||!/mouse|pointer/.test(t.pointerType)||0!=(a&l.mouseButtons))){if(o.default.object(l.edges)){var c={left:!1,right:!1,top:!1,bottom:!1};for(var u in c)c[u]=be(u,l.edges[u],s,t._latestPointer.eventTarget,i,r,l.margin||we.defaultMargin);c.left=c.left&&!c.right,c.top=c.top&&!c.bottom,(c.left||c.right||c.top||c.bottom)&&(e.action={name:"resize",edges:c})}else{var d="y"!==l.axis&&s.x>r.right-we.defaultMargin,h="x"!==l.axis&&s.y>r.bottom-we.defaultMargin;(d||h)&&(e.action={name:"resize",axes:(d?"x":"")+(h?"y":"")})}return!e.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(e){var t=e.edges,n=e.axis,i=e.name,r=we.cursors,o=null;if(n)o=r[i+n];else if(t){for(var a="",s=["top","bottom","left","right"],l=0;l<s.length;l++){var c=s[l];t[c]&&(a+=c)}o=r[a]}return o},defaultMargin:null},Ae=we;ye.default=Ae;var _e={};Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var Ce={id:"actions",install:function(e){e.usePlugin(pe.default),e.usePlugin(ye.default),e.usePlugin(u.default),e.usePlugin(oe.default)}};_e.default=Ce;var Me={};Object.defineProperty(Me,"__esModule",{value:!0}),Me.default=void 0;var ke,Se,Ie=0,Le={request:function(e){return ke(e)},cancel:function(e){return Se(e)},init:function(e){if(ke=e.requestAnimationFrame,Se=e.cancelAnimationFrame,!ke)for(var t=["ms","moz","webkit","o"],n=0;n<t.length;n++){var i=t[n];ke=e["".concat(i,"RequestAnimationFrame")],Se=e["".concat(i,"CancelAnimationFrame")]||e["".concat(i,"CancelRequestAnimationFrame")]}ke=ke&&ke.bind(e),Se=Se&&Se.bind(e),ke||(ke=function(t){var n=Date.now(),i=Math.max(0,16-(n-Ie)),r=e.setTimeout((function(){t(n+i)}),i);return Ie=n+i,r},Se=function(e){return clearTimeout(e)})}};Me.default=Le;var Te={};Object.defineProperty(Te,"__esModule",{value:!0}),Te.default=void 0,Te.getContainer=Oe,Te.getScroll=je,Te.getScrollSize=function(e){return o.default.window(e)&&(e=window.document.body),{x:e.scrollWidth,y:e.scrollHeight}},Te.getScrollSizeDelta=function(e,t){var n=e.interaction,i=e.element,r=n&&n.interactable.options[n.prepared.name].autoScroll;if(!r||!r.enabled)return t(),{x:0,y:0};var o=Oe(r.container,n.interactable,i),a=je(o);t();var s=je(o);return{x:s.x-a.x,y:s.y-a.y}};var De={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(e){De.isScrolling=!0,Me.default.cancel(De.i),e.autoScroll=De,De.interaction=e,De.prevTime=De.now(),De.i=Me.default.request(De.scroll)},stop:function(){De.isScrolling=!1,De.interaction&&(De.interaction.autoScroll=null),Me.default.cancel(De.i)},scroll:function(){var e=De.interaction,t=e.interactable,n=e.element,i=e.prepared.name,r=t.options[i].autoScroll,a=Oe(r.container,t,n),s=De.now(),l=(s-De.prevTime)/1e3,c=r.speed*l;if(c>=1){var u={x:De.x*c,y:De.y*c};if(u.x||u.y){var d=je(a);o.default.window(a)?a.scrollBy(u.x,u.y):a&&(a.scrollLeft+=u.x,a.scrollTop+=u.y);var h=je(a),f={x:h.x-d.x,y:h.y-d.y};(f.x||f.y)&&t.fire({type:"autoscroll",target:n,interactable:t,delta:f,interaction:e,container:a})}De.prevTime=s}De.isScrolling&&(Me.default.cancel(De.i),De.i=Me.default.request(De.scroll))},check:function(e,t){var n;return null==(n=e.options[t].autoScroll)?void 0:n.enabled},onInteractionMove:function(e){var t=e.interaction,n=e.pointer;if(t.interacting()&&De.check(t.interactable,t.prepared.name))if(t.simulation)De.x=De.y=0;else{var i,r,a,s,l=t.interactable,c=t.element,u=t.prepared.name,d=l.options[u].autoScroll,h=Oe(d.container,l,c);if(o.default.window(h))s=n.clientX<De.margin,i=n.clientY<De.margin,r=n.clientX>h.innerWidth-De.margin,a=n.clientY>h.innerHeight-De.margin;else{var f=A.getElementClientRect(h);s=n.clientX<f.left+De.margin,i=n.clientY<f.top+De.margin,r=n.clientX>f.right-De.margin,a=n.clientY>f.bottom-De.margin}De.x=r?1:s?-1:0,De.y=a?1:i?-1:0,De.isScrolling||(De.margin=d.margin,De.speed=d.speed,De.start(t))}}};function Oe(e,n,i){return(o.default.string(e)?(0,T.getStringOptionResult)(e,n,i):e)||(0,t.getWindow)(i)}function je(e){return o.default.window(e)&&(e=window.document.body),{x:e.scrollLeft,y:e.scrollTop}}var Ne={id:"auto-scroll",install:function(e){var t=e.defaults,n=e.actions;e.autoScroll=De,De.now=function(){return e.now()},n.phaselessTypes.autoscroll=!0,t.perAction.autoScroll=De.defaults},listeners:{"interactions:new":function(e){e.interaction.autoScroll=null},"interactions:destroy":function(e){e.interaction.autoScroll=null,De.stop(),De.interaction&&(De.interaction=null)},"interactions:stop":De.stop,"interactions:action-move":function(e){return De.onInteractionMove(e)}}},Ee=Ne;Te.default=Ee;var Pe={};Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.copyAction=function(e,t){return e.name=t.name,e.axis=t.axis,e.edges=t.edges,e},Pe.sign=void 0,Pe.warnOnce=function(e,n){var i=!1;return function(){return i||(t.window.console.warn(n),i=!0),e.apply(this,arguments)}},Pe.sign=function(e){return e>=0?1:-1};var Fe={};function ze(e){return o.default.bool(e)?(this.options.styleCursor=e,this):null===e?(delete this.options.styleCursor,this):this.options.styleCursor}function Re(e){return o.default.func(e)?(this.options.actionChecker=e,this):null===e?(delete this.options.actionChecker,this):this.options.actionChecker}Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.default=void 0;var Be={id:"auto-start/interactableMethods",install:function(e){var t=e.Interactable;t.prototype.getAction=function(t,n,i,r){var o=function(e,t,n,i,r){var o=e.getRect(i),a={action:null,interactable:e,interaction:n,element:i,rect:o,buttons:t.buttons||{0:1,1:4,3:8,4:16}[t.button]};return r.fire("auto-start:check",a),a.action}(this,n,i,r,e);return this.options.actionChecker?this.options.actionChecker(t,n,o,this,r,i):o},t.prototype.ignoreFrom=(0,Pe.warnOnce)((function(e){return this._backCompatOption("ignoreFrom",e)}),"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),t.prototype.allowFrom=(0,Pe.warnOnce)((function(e){return this._backCompatOption("allowFrom",e)}),"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),t.prototype.actionChecker=Re,t.prototype.styleCursor=ze}};Fe.default=Be;var We={};function Ye(e,t,n,i,r){return t.testIgnoreAllow(t.options[e.name],n,i)&&t.options[e.name].enabled&&Ze(t,n,e,r)?e:null}function Ue(e,t,n,i,r,o,a){for(var s=0,l=i.length;s<l;s++){var c=i[s],u=r[s],d=c.getAction(t,n,e,u);if(d){var h=Ye(d,c,u,o,a);if(h)return{action:h,interactable:c,element:u}}}return{action:null,interactable:null,element:null}}function He(e,t,n,i,r){var a=[],s=[],l=i;function c(e){a.push(e),s.push(l)}for(;o.default.element(l);){a=[],s=[],r.interactables.forEachMatch(l,c);var u=Ue(e,t,n,a,s,i,r);if(u.action&&!u.interactable.options[u.action.name].manualStart)return u;l=A.parentNode(l)}return{action:null,interactable:null,element:null}}function Ve(e,t,n){var i=t.action,r=t.interactable,o=t.element;i=i||{name:null},e.interactable=r,e.element=o,(0,Pe.copyAction)(e.prepared,i),e.rect=r&&i.name?r.getRect(o):null,Je(e,n),n.fire("autoStart:prepared",{interaction:e})}function Ze(e,t,n,i){var r=e.options,o=r[n.name].max,a=r[n.name].maxPerElement,s=i.autoStart.maxInteractions,l=0,c=0,u=0;if(!(o&&a&&s))return!1;for(var d=0;d<i.interactions.list.length;d++){var h=i.interactions.list[d],f=h.prepared.name;if(h.interacting()){if(++l>=s)return!1;if(h.interactable===e){if((c+=f===n.name?1:0)>=o)return!1;if(h.element===t&&(u++,f===n.name&&u>=a))return!1}}}return s>0}function Ge(e,t){return o.default.number(e)?(t.autoStart.maxInteractions=e,this):t.autoStart.maxInteractions}function Qe(e,t,n){var i=n.autoStart.cursorElement;i&&i!==e&&(i.style.cursor=""),e.ownerDocument.documentElement.style.cursor=t,e.style.cursor=t,n.autoStart.cursorElement=t?e:null}function Je(e,t){var n=e.interactable,i=e.element,r=e.prepared;if("mouse"===e.pointerType&&n&&n.options.styleCursor){var a="";if(r.name){var s=n.options[r.name].cursorChecker;a=o.default.func(s)?s(r,n,i,e._interacting):t.actions.map[r.name].getCursor(r)}Qe(e.element,a||"",t)}else t.autoStart.cursorElement&&Qe(t.autoStart.cursorElement,"",t)}Object.defineProperty(We,"__esModule",{value:!0}),We.default=void 0;var qe={id:"auto-start/base",before:["actions"],install:function(e){var t=e.interactStatic,n=e.defaults;e.usePlugin(Fe.default),n.base.actionChecker=null,n.base.styleCursor=!0,(0,L.default)(n.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),t.maxInteractions=function(t){return Ge(t,e)},e.autoStart={maxInteractions:1/0,withinInteractionLimit:Ze,cursorElement:null}},listeners:{"interactions:down":function(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget;n.interacting()||Ve(n,He(n,i,r,o,t),t)},"interactions:move":function(e,t){!function(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget;"mouse"!==n.pointerType||n.pointerIsDown||n.interacting()||Ve(n,He(n,i,r,o,t),t)}(e,t),function(e,t){var n=e.interaction;if(n.pointerIsDown&&!n.interacting()&&n.pointerWasMoved&&n.prepared.name){t.fire("autoStart:before-start",e);var i=n.interactable,r=n.prepared.name;r&&i&&(i.options[r].manualStart||!Ze(i,n.element,n.prepared,t)?n.stop():(n.start(n.prepared,i,n.element),Je(n,t)))}}(e,t)},"interactions:stop":function(e,t){var n=e.interaction,i=n.interactable;i&&i.options.styleCursor&&Qe(n.element,"",t)}},maxInteractions:Ge,withinInteractionLimit:Ze,validateAction:Ye},Xe=qe;We.default=Xe;var Ke={};Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.default=void 0;var $e={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(e,t){var n=e.interaction,i=e.eventTarget,r=e.dx,a=e.dy;if("drag"===n.prepared.name){var s=Math.abs(r),l=Math.abs(a),c=n.interactable.options.drag,u=c.startAxis,d=s>l?"x":s<l?"y":"xy";if(n.prepared.axis="start"===c.lockAxis?d[0]:c.lockAxis,"xy"!==d&&"xy"!==u&&u!==d){n.prepared.name=null;for(var h=i,f=function(e){if(e!==n.interactable){var r=n.interactable.options.drag;if(!r.manualStart&&e.testIgnoreAllow(r,h,i)){var o=e.getAction(n.downPointer,n.downEvent,n,h);if(o&&"drag"===o.name&&function(e,t){if(!t)return!1;var n=t.options.drag.startAxis;return"xy"===e||"xy"===n||n===e}(d,e)&&We.default.validateAction(o,e,h,i,t))return e}}};o.default.element(h);){var p=t.interactables.forEachMatch(h,f);if(p){n.prepared.name="drag",n.interactable=p,n.element=h;break}h=(0,A.parentNode)(h)}}}}}};Ke.default=$e;var et={};function tt(e){var t=e.prepared&&e.prepared.name;if(!t)return null;var n=e.interactable.options;return n[t].hold||n[t].delay}Object.defineProperty(et,"__esModule",{value:!0}),et.default=void 0;var nt={id:"auto-start/hold",install:function(e){var t=e.defaults;e.usePlugin(We.default),t.perAction.hold=0,t.perAction.delay=0},listeners:{"interactions:new":function(e){e.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(e){var t=e.interaction,n=tt(t);n>0&&(t.autoStartHoldTimer=setTimeout((function(){t.start(t.prepared,t.interactable,t.element)}),n))},"interactions:move":function(e){var t=e.interaction,n=e.duplicate;t.autoStartHoldTimer&&t.pointerWasMoved&&!n&&(clearTimeout(t.autoStartHoldTimer),t.autoStartHoldTimer=null)},"autoStart:before-start":function(e){var t=e.interaction;tt(t)>0&&(t.prepared.name=null)}},getHoldDuration:tt},it=nt;et.default=it;var rt={};Object.defineProperty(rt,"__esModule",{value:!0}),rt.default=void 0;var ot={id:"auto-start",install:function(e){e.usePlugin(We.default),e.usePlugin(et.default),e.usePlugin(Ke.default)}};rt.default=ot;var at={};function st(e){return/^(always|never|auto)$/.test(e)?(this.options.preventDefault=e,this):o.default.bool(e)?(this.options.preventDefault=e?"always":"never",this):this.options.preventDefault}function lt(e){var t=e.interaction,n=e.event;t.interactable&&t.interactable.checkAndPreventDefault(n)}function ct(e){var n=e.Interactable;n.prototype.preventDefault=st,n.prototype.checkAndPreventDefault=function(n){return function(e,n,i){var r=e.options.preventDefault;if("never"!==r)if("always"!==r){if(n.events.supportsPassive&&/^touch(start|move)$/.test(i.type)){var a=(0,t.getWindow)(i.target).document,s=n.getDocOptions(a);if(!s||!s.events||!1!==s.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(i.type)||o.default.element(i.target)&&(0,A.matchesSelector)(i.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||i.preventDefault()}else i.preventDefault()}(this,e,n)},e.interactions.docEvents.push({type:"dragstart",listener:function(t){for(var n=0;n<e.interactions.list.length;n++){var i=e.interactions.list[n];if(i.element&&(i.element===t.target||(0,A.nodeContains)(i.element,t.target)))return void i.interactable.checkAndPreventDefault(t)}}})}Object.defineProperty(at,"__esModule",{value:!0}),at.default=void 0,at.install=ct;var ut={id:"core/interactablePreventDefault",install:ct,listeners:["down","move","up","cancel"].reduce((function(e,t){return e["interactions:".concat(t)]=lt,e}),{})};at.default=ut;var dt={};Object.defineProperty(dt,"__esModule",{value:!0}),dt.default=void 0,dt.default={};var ht,ft={};Object.defineProperty(ft,"__esModule",{value:!0}),ft.default=void 0,function(e){e.touchAction="touchAction",e.boxSizing="boxSizing",e.noListeners="noListeners"}(ht||(ht={})),ht.touchAction,ht.boxSizing,ht.noListeners;ft.default={id:"dev-tools",install:function(){}};var pt={};Object.defineProperty(pt,"__esModule",{value:!0}),pt.default=function e(t){var n={};for(var i in t){var r=t[i];o.default.plainObject(r)?n[i]=e(r):o.default.array(r)?n[i]=J.from(r):n[i]=r}return n};var gt={};function mt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vt(e,t):void 0}}(e,t)||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.")}()}function vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(gt,"__esModule",{value:!0}),gt.default=void 0,gt.getRectOffset=wt;var bt=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),yt(this,"states",[]),yt(this,"startOffset",{left:0,right:0,top:0,bottom:0}),yt(this,"startDelta",void 0),yt(this,"result",void 0),yt(this,"endResult",void 0),yt(this,"startEdges",void 0),yt(this,"edges",void 0),yt(this,"interaction",void 0),this.interaction=t,this.result=xt(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}var t,n;return t=e,(n=[{key:"start",value:function(e,t){var n=e.phase,i=this.interaction,r=function(e){var t=e.interactable.options[e.prepared.name],n=t.modifiers;return n&&n.length?n:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map((function(e){var n=t[e];return n&&n.enabled&&{options:n,methods:n._methods}})).filter((function(e){return!!e}))}(i);this.prepareStates(r),this.startEdges=(0,L.default)({},i.edges),this.edges=(0,L.default)({},this.startEdges),this.startOffset=wt(i.rect,t),this.startDelta={x:0,y:0};var o=this.fillArg({phase:n,pageCoords:t,preEnd:!1});return this.result=xt(),this.startAll(o),this.result=this.setAll(o)}},{key:"fillArg",value:function(e){var t=this.interaction;return e.interaction=t,e.interactable=t.interactable,e.element=t.element,e.rect||(e.rect=t.rect),e.edges||(e.edges=this.startEdges),e.startOffset=this.startOffset,e}},{key:"startAll",value:function(e){for(var t=0;t<this.states.length;t++){var n=this.states[t];n.methods.start&&(e.state=n,n.methods.start(e))}}},{key:"setAll",value:function(e){var t=e.phase,n=e.preEnd,i=e.skipModifiers,r=e.rect,o=e.edges;e.coords=(0,L.default)({},e.pageCoords),e.rect=(0,L.default)({},r),e.edges=(0,L.default)({},o);for(var a=i?this.states.slice(i):this.states,s=xt(e.coords,e.rect),l=0;l<a.length;l++){var c,u=a[l],d=u.options,h=(0,L.default)({},e.coords),f=null;null!=(c=u.methods)&&c.set&&this.shouldDo(d,n,t)&&(e.state=u,f=u.methods.set(e),T.addEdges(e.edges,e.rect,{x:e.coords.x-h.x,y:e.coords.y-h.y})),s.eventProps.push(f)}(0,L.default)(this.edges,e.edges),s.delta.x=e.coords.x-e.pageCoords.x,s.delta.y=e.coords.y-e.pageCoords.y,s.rectDelta.left=e.rect.left-r.left,s.rectDelta.right=e.rect.right-r.right,s.rectDelta.top=e.rect.top-r.top,s.rectDelta.bottom=e.rect.bottom-r.bottom;var p=this.result.coords,g=this.result.rect;if(p&&g){var m=s.rect.left!==g.left||s.rect.right!==g.right||s.rect.top!==g.top||s.rect.bottom!==g.bottom;s.changed=m||p.x!==s.coords.x||p.y!==s.coords.y}return s}},{key:"applyToInteraction",value:function(e){var t=this.interaction,n=e.phase,i=t.coords.cur,r=t.coords.start,o=this.result,a=this.startDelta,s=o.delta;"start"===n&&(0,L.default)(this.startDelta,o.delta);for(var l=0;l<2;l++){var c=mt([[r,a],[i,s]][l],2),u=c[0],d=c[1];u.page.x+=d.x,u.page.y+=d.y,u.client.x+=d.x,u.client.y+=d.y}var h=this.result.rectDelta,f=e.rect||t.rect;f.left+=h.left,f.right+=h.right,f.top+=h.top,f.bottom+=h.bottom,f.width=f.right-f.left,f.height=f.bottom-f.top}},{key:"setAndApply",value:function(e){var t=this.interaction,n=e.phase,i=e.preEnd,r=e.skipModifiers,o=this.setAll(this.fillArg({preEnd:i,phase:n,pageCoords:e.modifiedCoords||t.coords.cur.page}));if(this.result=o,!o.changed&&(!r||r<this.states.length)&&t.interacting())return!1;if(e.modifiedCoords){var a=t.coords.cur.page,s={x:e.modifiedCoords.x-a.x,y:e.modifiedCoords.y-a.y};o.coords.x+=s.x,o.coords.y+=s.y,o.delta.x+=s.x,o.delta.y+=s.y}this.applyToInteraction(e)}},{key:"beforeEnd",value:function(e){var t=e.interaction,n=e.event,i=this.states;if(i&&i.length){for(var r=!1,o=0;o<i.length;o++){var a=i[o];e.state=a;var s=a.options,l=a.methods,c=l.beforeEnd&&l.beforeEnd(e);if(c)return this.endResult=c,!1;r=r||!r&&this.shouldDo(s,!0,e.phase,!0)}r&&t.move({event:n,preEnd:!0})}}},{key:"stop",value:function(e){var t=e.interaction;if(this.states&&this.states.length){var n=(0,L.default)({states:this.states,interactable:t.interactable,element:t.element,rect:null},e);this.fillArg(n);for(var i=0;i<this.states.length;i++){var r=this.states[i];n.state=r,r.methods.stop&&r.methods.stop(n)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(e){this.states=[];for(var t=0;t<e.length;t++){var n=e[t],i=n.options,r=n.methods,o=n.name;this.states.push({options:i,methods:r,index:t,name:o})}return this.states}},{key:"restoreInteractionCoords",value:function(e){var t=e.interaction,n=t.coords,i=t.rect,r=t.modification;if(r.result){for(var o=r.startDelta,a=r.result,s=a.delta,l=a.rectDelta,c=[[n.start,o],[n.cur,s]],u=0;u<c.length;u++){var d=mt(c[u],2),h=d[0],f=d[1];h.page.x-=f.x,h.page.y-=f.y,h.client.x-=f.x,h.client.y-=f.y}i.left-=l.left,i.right-=l.right,i.top-=l.top,i.bottom-=l.bottom}}},{key:"shouldDo",value:function(e,t,n,i){return!(!e||!1===e.enabled||i&&!e.endOnly||e.endOnly&&!t||"start"===n&&!e.setStart)}},{key:"copyFrom",value:function(e){this.startOffset=e.startOffset,this.startDelta=e.startDelta,this.startEdges=e.startEdges,this.edges=e.edges,this.states=e.states.map((function(e){return(0,pt.default)(e)})),this.result=xt((0,L.default)({},e.result.coords),(0,L.default)({},e.result.rect))}},{key:"destroy",value:function(){for(var e in this)this[e]=null}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function xt(e,t){return{rect:t,coords:e,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function wt(e,t){return e?{left:t.x-e.left,top:t.y-e.top,right:e.right-t.x,bottom:e.bottom-t.y}:{left:0,top:0,right:0,bottom:0}}gt.default=bt;var At={};function _t(e){var t=e.iEvent,n=e.interaction.modification.result;n&&(t.modifiers=n.eventProps)}Object.defineProperty(At,"__esModule",{value:!0}),At.addEventModifiers=_t,At.default=void 0,At.makeModifier=function(e,t){var n=e.defaults,i={start:e.start,set:e.set,beforeEnd:e.beforeEnd,stop:e.stop},r=function(e){var r=e||{};for(var o in r.enabled=!1!==r.enabled,n)o in r||(r[o]=n[o]);var a={options:r,methods:i,name:t,enable:function(){return r.enabled=!0,a},disable:function(){return r.enabled=!1,a}};return a};return t&&"string"==typeof t&&(r._defaults=n,r._methods=i),r};var Ct={id:"modifiers/base",before:["actions"],install:function(e){e.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(e){var t=e.interaction;t.modification=new gt.default(t)},"interactions:before-action-start":function(e){var t=e.interaction,n=e.interaction.modification;n.start(e,t.coords.start.page),t.edges=n.edges,n.applyToInteraction(e)},"interactions:before-action-move":function(e){var t=e.interaction,n=t.modification,i=n.setAndApply(e);return t.edges=n.edges,i},"interactions:before-action-end":function(e){var t=e.interaction,n=t.modification,i=n.beforeEnd(e);return t.edges=n.startEdges,i},"interactions:action-start":_t,"interactions:action-move":_t,"interactions:action-end":_t,"interactions:after-action-start":function(e){return e.interaction.modification.restoreInteractionCoords(e)},"interactions:after-action-move":function(e){return e.interaction.modification.restoreInteractionCoords(e)},"interactions:stop":function(e){return e.interaction.modification.stop(e)}}},Mt=Ct;At.default=Mt;var kt={};Object.defineProperty(kt,"__esModule",{value:!0}),kt.defaults=void 0,kt.defaults={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}};var St={};function It(e){return It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},It(e)}function Lt(e,t){return Lt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lt(e,t)}function Tt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dt(e){return Dt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dt(e)}function Ot(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(St,"__esModule",{value:!0}),St.InteractEvent=void 0;var jt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lt(e,t)}(a,e);var t,n,i,r,o=(i=a,r=function(){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(e){return!1}}(),function(){var e,t=Dt(i);if(r){var n=Dt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===It(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Tt(e)}(this,e)});function a(e,t,n,i,r,s,l){var c;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Ot(Tt(c=o.call(this,e)),"relatedTarget",null),Ot(Tt(c),"screenX",void 0),Ot(Tt(c),"screenY",void 0),Ot(Tt(c),"button",void 0),Ot(Tt(c),"buttons",void 0),Ot(Tt(c),"ctrlKey",void 0),Ot(Tt(c),"shiftKey",void 0),Ot(Tt(c),"altKey",void 0),Ot(Tt(c),"metaKey",void 0),Ot(Tt(c),"page",void 0),Ot(Tt(c),"client",void 0),Ot(Tt(c),"delta",void 0),Ot(Tt(c),"rect",void 0),Ot(Tt(c),"x0",void 0),Ot(Tt(c),"y0",void 0),Ot(Tt(c),"t0",void 0),Ot(Tt(c),"dt",void 0),Ot(Tt(c),"duration",void 0),Ot(Tt(c),"clientX0",void 0),Ot(Tt(c),"clientY0",void 0),Ot(Tt(c),"velocity",void 0),Ot(Tt(c),"speed",void 0),Ot(Tt(c),"swipe",void 0),Ot(Tt(c),"axes",void 0),Ot(Tt(c),"preEnd",void 0),r=r||e.element;var u=e.interactable,d=(u&&u.options||kt.defaults).deltaSource,h=(0,j.default)(u,r,n),f="start"===i,p="end"===i,g=f?Tt(c):e.prevEvent,m=f?e.coords.start:p?{page:g.page,client:g.client,timeStamp:e.coords.cur.timeStamp}:e.coords.cur;return c.page=(0,L.default)({},m.page),c.client=(0,L.default)({},m.client),c.rect=(0,L.default)({},e.rect),c.timeStamp=m.timeStamp,p||(c.page.x-=h.x,c.page.y-=h.y,c.client.x-=h.x,c.client.y-=h.y),c.ctrlKey=t.ctrlKey,c.altKey=t.altKey,c.shiftKey=t.shiftKey,c.metaKey=t.metaKey,c.button=t.button,c.buttons=t.buttons,c.target=r,c.currentTarget=r,c.preEnd=s,c.type=l||n+(i||""),c.interactable=u,c.t0=f?e.pointers[e.pointers.length-1].downTime:g.t0,c.x0=e.coords.start.page.x-h.x,c.y0=e.coords.start.page.y-h.y,c.clientX0=e.coords.start.client.x-h.x,c.clientY0=e.coords.start.client.y-h.y,c.delta=f||p?{x:0,y:0}:{x:c[d].x-g[d].x,y:c[d].y-g[d].y},c.dt=e.coords.delta.timeStamp,c.duration=c.timeStamp-c.t0,c.velocity=(0,L.default)({},e.coords.velocity[d]),c.speed=(0,P.default)(c.velocity.x,c.velocity.y),c.swipe=p||"inertiastart"===i?c.getSwipe():null,c}return t=a,(n=[{key:"getSwipe",value:function(){var e=this._interaction;if(e.prevEvent.speed<600||this.timeStamp-e.prevEvent.timeStamp>150)return null;var t=180*Math.atan2(e.prevEvent.velocityY,e.prevEvent.velocityX)/Math.PI;t<0&&(t+=360);var n=112.5<=t&&t<247.5,i=202.5<=t&&t<337.5;return{up:i,down:!i&&22.5<=t&&t<157.5,left:n,right:!n&&(292.5<=t||t<67.5),angle:t,speed:e.prevEvent.speed,velocity:{x:e.prevEvent.velocityX,y:e.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(Z.BaseEvent);St.InteractEvent=jt,Object.defineProperties(jt.prototype,{pageX:{get:function(){return this.page.x},set:function(e){this.page.x=e}},pageY:{get:function(){return this.page.y},set:function(e){this.page.y=e}},clientX:{get:function(){return this.client.x},set:function(e){this.client.x=e}},clientY:{get:function(){return this.client.y},set:function(e){this.client.y=e}},dx:{get:function(){return this.delta.x},set:function(e){this.delta.x=e}},dy:{get:function(){return this.delta.y},set:function(e){this.delta.y=e}},velocityX:{get:function(){return this.velocity.x},set:function(e){this.velocity.x=e}},velocityY:{get:function(){return this.velocity.y},set:function(e){this.velocity.y=e}}});var Nt={};function Et(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.PointerInfo=void 0;var Ft=function(e,t,n){return t&&Et(e.prototype,t),n&&Et(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,i,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Pt(this,"id",void 0),Pt(this,"pointer",void 0),Pt(this,"event",void 0),Pt(this,"downTime",void 0),Pt(this,"downTarget",void 0),this.id=t,this.pointer=n,this.event=i,this.downTime=r,this.downTarget=o}));Nt.PointerInfo=Ft;var zt,Rt,Bt={};function Wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.Interaction=void 0,Object.defineProperty(Bt,"PointerInfo",{enumerable:!0,get:function(){return Nt.PointerInfo}}),Bt.default=Bt._ProxyValues=Bt._ProxyMethods=void 0,Bt._ProxyValues=zt,function(e){e.interactable="",e.element="",e.prepared="",e.pointerIsDown="",e.pointerWasMoved="",e._proxy=""}(zt||(Bt._ProxyValues=zt={})),Bt._ProxyMethods=Rt,function(e){e.start="",e.move="",e.end="",e.stop="",e.interacting=""}(Rt||(Bt._ProxyMethods=Rt={}));var Yt=0,Ut=function(){function e(t){var n=this,i=t.pointerType,r=t.scopeFire;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Wt(this,"interactable",null),Wt(this,"element",null),Wt(this,"rect",null),Wt(this,"_rects",void 0),Wt(this,"edges",null),Wt(this,"_scopeFire",void 0),Wt(this,"prepared",{name:null,axis:null,edges:null}),Wt(this,"pointerType",void 0),Wt(this,"pointers",[]),Wt(this,"downEvent",null),Wt(this,"downPointer",{}),Wt(this,"_latestPointer",{pointer:null,event:null,eventTarget:null}),Wt(this,"prevEvent",null),Wt(this,"pointerIsDown",!1),Wt(this,"pointerWasMoved",!1),Wt(this,"_interacting",!1),Wt(this,"_ending",!1),Wt(this,"_stopped",!0),Wt(this,"_proxy",void 0),Wt(this,"simulation",null),Wt(this,"doMove",(0,Pe.warnOnce)((function(e){this.move(e)}),"The interaction.doMove() method has been renamed to interaction.move()")),Wt(this,"coords",{start:R.newCoords(),prev:R.newCoords(),cur:R.newCoords(),delta:R.newCoords(),velocity:R.newCoords()}),Wt(this,"_id",Yt++),this._scopeFire=r,this.pointerType=i;var o=this;this._proxy={};var a=function(e){Object.defineProperty(n._proxy,e,{get:function(){return o[e]}})};for(var s in zt)a(s);var l=function(e){Object.defineProperty(n._proxy,e,{value:function(){return o[e].apply(o,arguments)}})};for(var c in Rt)l(c);this._scopeFire("interactions:new",{interaction:this})}var t,n;return t=e,n=[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(e,t,n){var i=this.updatePointer(e,t,n,!0),r=this.pointers[i];this._scopeFire("interactions:down",{pointer:e,event:t,eventTarget:n,pointerIndex:i,pointerInfo:r,type:"down",interaction:this})}},{key:"start",value:function(e,t,n){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<("gesture"===e.name?2:1)||!t.options[e.name].enabled)&&((0,Pe.copyAction)(this.prepared,e),this.interactable=t,this.element=n,this.rect=t.getRect(n),this.edges=this.prepared.edges?(0,L.default)({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(e,t,n){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(e,t,n,!1);var i,r,o=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(i=this.coords.cur.client.x-this.coords.start.client.x,r=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=(0,P.default)(i,r)>this.pointerMoveTolerance);var a=this.getPointerIndex(e),s={pointer:e,pointerIndex:a,pointerInfo:this.pointers[a],event:t,type:"move",eventTarget:n,dx:i,dy:r,duplicate:o,interaction:this};o||R.setCoordVelocity(this.coords.velocity,this.coords.delta),this._scopeFire("interactions:move",s),o||this.simulation||(this.interacting()&&(s.type=null,this.move(s)),this.pointerWasMoved&&R.copyCoords(this.coords.prev,this.coords.cur))}},{key:"move",value:function(e){e&&e.event||R.setZeroCoords(this.coords.delta),(e=(0,L.default)({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},e||{})).phase="move",this._doPhase(e)}},{key:"pointerUp",value:function(e,t,n,i){var r=this.getPointerIndex(e);-1===r&&(r=this.updatePointer(e,t,n,!1));var o=/cancel$/i.test(t.type)?"cancel":"up";this._scopeFire("interactions:".concat(o),{pointer:e,pointerIndex:r,pointerInfo:this.pointers[r],event:t,eventTarget:n,type:o,curEventTarget:i,interaction:this}),this.simulation||this.end(t),this.removePointer(e,t)}},{key:"documentBlur",value:function(e){this.end(e),this._scopeFire("interactions:blur",{event:e,type:"blur",interaction:this})}},{key:"end",value:function(e){var t;this._ending=!0,e=e||this._latestPointer.event,this.interacting()&&(t=this._doPhase({event:e,interaction:this,phase:"end"})),this._ending=!1,!0===t&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(e){var t=R.getPointerId(e);return"mouse"===this.pointerType||"pen"===this.pointerType?this.pointers.length-1:J.findIndex(this.pointers,(function(e){return e.id===t}))}},{key:"getPointerInfo",value:function(e){return this.pointers[this.getPointerIndex(e)]}},{key:"updatePointer",value:function(e,t,n,i){var r=R.getPointerId(e),o=this.getPointerIndex(e),a=this.pointers[o];return i=!1!==i&&(i||/(down|start)$/i.test(t.type)),a?a.pointer=e:(a=new Nt.PointerInfo(r,e,t,null,null),o=this.pointers.length,this.pointers.push(a)),R.setCoords(this.coords.cur,this.pointers.map((function(e){return e.pointer})),this._now()),R.setCoordDeltas(this.coords.delta,this.coords.prev,this.coords.cur),i&&(this.pointerIsDown=!0,a.downTime=this.coords.cur.timeStamp,a.downTarget=n,R.pointerExtend(this.downPointer,e),this.interacting()||(R.copyCoords(this.coords.start,this.coords.cur),R.copyCoords(this.coords.prev,this.coords.cur),this.downEvent=t,this.pointerWasMoved=!1)),this._updateLatestPointer(e,t,n),this._scopeFire("interactions:update-pointer",{pointer:e,event:t,eventTarget:n,down:i,pointerInfo:a,pointerIndex:o,interaction:this}),o}},{key:"removePointer",value:function(e,t){var n=this.getPointerIndex(e);if(-1!==n){var i=this.pointers[n];this._scopeFire("interactions:remove-pointer",{pointer:e,event:t,eventTarget:null,pointerIndex:n,pointerInfo:i,interaction:this}),this.pointers.splice(n,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(e,t,n){this._latestPointer.pointer=e,this._latestPointer.event=t,this._latestPointer.eventTarget=n}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(e,t,n,i){return new St.InteractEvent(this,e,this.prepared.name,t,this.element,n,i)}},{key:"_fireEvent",value:function(e){var t;null==(t=this.interactable)||t.fire(e),(!this.prevEvent||e.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=e)}},{key:"_doPhase",value:function(e){var t=e.event,n=e.phase,i=e.preEnd,r=e.type,o=this.rect;if(o&&"move"===n&&(T.addEdges(this.edges,o,this.coords.delta[this.interactable.options.deltaSource]),o.width=o.right-o.left,o.height=o.bottom-o.top),!1===this._scopeFire("interactions:before-action-".concat(n),e))return!1;var a=e.iEvent=this._createPreparedEvent(t,n,i,r);return this._scopeFire("interactions:action-".concat(n),e),"start"===n&&(this.prevEvent=a),this._fireEvent(a),this._scopeFire("interactions:after-action-".concat(n),e),!0}},{key:"_now",value:function(){return Date.now()}}],n&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();Bt.Interaction=Ut;var Ht=Ut;Bt.default=Ht;var Vt={};function Zt(e){e.pointerIsDown&&(qt(e.coords.cur,e.offset.total),e.offset.pending.x=0,e.offset.pending.y=0)}function Gt(e){Qt(e.interaction)}function Qt(e){if(!function(e){return!(!e.offset.pending.x&&!e.offset.pending.y)}(e))return!1;var t=e.offset.pending;return qt(e.coords.cur,t),qt(e.coords.delta,t),T.addEdges(e.edges,e.rect,t),t.x=0,t.y=0,!0}function Jt(e){var t=e.x,n=e.y;this.offset.pending.x+=t,this.offset.pending.y+=n,this.offset.total.x+=t,this.offset.total.y+=n}function qt(e,t){var n=e.page,i=e.client,r=t.x,o=t.y;n.x+=r,n.y+=o,i.x+=r,i.y+=o}Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.addTotal=Zt,Vt.applyPending=Qt,Vt.default=void 0,Bt._ProxyMethods.offsetBy="";var Xt={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(e){e.Interaction.prototype.offsetBy=Jt},listeners:{"interactions:new":function(e){e.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(e){return Zt(e.interaction)},"interactions:before-action-start":Gt,"interactions:before-action-move":Gt,"interactions:before-action-end":function(e){var t=e.interaction;if(Qt(t))return t.move({offset:!0}),t.end(),!1},"interactions:stop":function(e){var t=e.interaction;t.offset.total.x=0,t.offset.total.y=0,t.offset.pending.x=0,t.offset.pending.y=0}}},Kt=Xt;Vt.default=Kt;var $t={};function en(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty($t,"__esModule",{value:!0}),$t.default=$t.InertiaState=void 0;var tn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),en(this,"active",!1),en(this,"isModified",!1),en(this,"smoothEnd",!1),en(this,"allowResume",!1),en(this,"modification",void 0),en(this,"modifierCount",0),en(this,"modifierArg",void 0),en(this,"startCoords",void 0),en(this,"t0",0),en(this,"v0",0),en(this,"te",0),en(this,"targetOffset",void 0),en(this,"modifiedOffset",void 0),en(this,"currentOffset",void 0),en(this,"lambda_v0",0),en(this,"one_ve_v0",0),en(this,"timeout",void 0),en(this,"interaction",void 0),this.interaction=t}var t,n;return t=e,(n=[{key:"start",value:function(e){var t=this.interaction,n=nn(t);if(!n||!n.enabled)return!1;var i=t.coords.velocity.client,r=(0,P.default)(i.x,i.y),o=this.modification||(this.modification=new gt.default(t));if(o.copyFrom(t.modification),this.t0=t._now(),this.allowResume=n.allowResume,this.v0=r,this.currentOffset={x:0,y:0},this.startCoords=t.coords.cur.page,this.modifierArg=o.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-t.coords.cur.timeStamp<50&&r>n.minSpeed&&r>n.endSpeed)this.startInertia();else{if(o.result=o.setAll(this.modifierArg),!o.result.changed)return!1;this.startSmoothEnd()}return t.modification.result.rect=null,t.offsetBy(this.targetOffset),t._doPhase({interaction:t,event:e,phase:"inertiastart"}),t.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),t.modification.result.rect=null,this.active=!0,t.simulation=this,!0}},{key:"startInertia",value:function(){var e=this,t=this.interaction.coords.velocity.client,n=nn(this.interaction),i=n.resistance,r=-Math.log(n.endSpeed/this.v0)/i;this.targetOffset={x:(t.x-r)/i,y:(t.y-r)/i},this.te=r,this.lambda_v0=i/this.v0,this.one_ve_v0=1-n.endSpeed/this.v0;var o=this.modification,a=this.modifierArg;a.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},o.result=o.setAll(a),o.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+o.result.delta.x,y:this.targetOffset.y+o.result.delta.y}),this.onNextFrame((function(){return e.inertiaTick()}))}},{key:"startSmoothEnd",value:function(){var e=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame((function(){return e.smoothEndTick()}))}},{key:"onNextFrame",value:function(e){var t=this;this.timeout=Me.default.request((function(){t.active&&e()}))}},{key:"inertiaTick",value:function(){var e,t,n,i,r,o=this,a=this.interaction,s=nn(a).resistance,l=(a._now()-this.t0)/1e3;if(l<this.te){var c,u=1-(Math.exp(-s*l)-this.lambda_v0)/this.one_ve_v0;this.isModified?(e=this.targetOffset.x,t=this.targetOffset.y,n=this.modifiedOffset.x,i=this.modifiedOffset.y,c={x:on(r=u,0,e,n),y:on(r,0,t,i)}):c={x:this.targetOffset.x*u,y:this.targetOffset.y*u};var d={x:c.x-this.currentOffset.x,y:c.y-this.currentOffset.y};this.currentOffset.x+=d.x,this.currentOffset.y+=d.y,a.offsetBy(d),a.move(),this.onNextFrame((function(){return o.inertiaTick()}))}else a.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var e=this,t=this.interaction,n=t._now()-this.t0,i=nn(t).smoothEndDuration;if(n<i){var r={x:an(n,0,this.targetOffset.x,i),y:an(n,0,this.targetOffset.y,i)},o={x:r.x-this.currentOffset.x,y:r.y-this.currentOffset.y};this.currentOffset.x+=o.x,this.currentOffset.y+=o.y,t.offsetBy(o),t.move({skipModifiers:this.modifierCount}),this.onNextFrame((function(){return e.smoothEndTick()}))}else t.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(e){var t=e.pointer,n=e.event,i=e.eventTarget,r=this.interaction;r.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),r.updatePointer(t,n,i,!0),r._doPhase({interaction:r,event:n,phase:"resume"}),(0,R.copyCoords)(r.coords.prev,r.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,Me.default.cancel(this.timeout)}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function nn(e){var t=e.interactable,n=e.prepared;return t&&t.options&&n.name&&t.options[n.name].inertia}$t.InertiaState=tn;var rn={id:"inertia",before:["modifiers","actions"],install:function(e){var t=e.defaults;e.usePlugin(Vt.default),e.usePlugin(At.default),e.actions.phases.inertiastart=!0,e.actions.phases.resume=!0,t.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(e){var t=e.interaction;t.inertia=new tn(t)},"interactions:before-action-end":function(e){var t=e.interaction,n=e.event;return(!t._interacting||t.simulation||!t.inertia.start(n))&&null},"interactions:down":function(e){var t=e.interaction,n=e.eventTarget,i=t.inertia;if(i.active)for(var r=n;o.default.element(r);){if(r===t.element){i.resume(e);break}r=A.parentNode(r)}},"interactions:stop":function(e){var t=e.interaction.inertia;t.active&&t.stop()},"interactions:before-action-resume":function(e){var t=e.interaction.modification;t.stop(e),t.start(e,e.interaction.coords.cur.page),t.applyToInteraction(e)},"interactions:before-action-inertiastart":function(e){return e.interaction.modification.setAndApply(e)},"interactions:action-resume":At.addEventModifiers,"interactions:action-inertiastart":At.addEventModifiers,"interactions:after-action-inertiastart":function(e){return e.interaction.modification.restoreInteractionCoords(e)},"interactions:after-action-resume":function(e){return e.interaction.modification.restoreInteractionCoords(e)}}};function on(e,t,n,i){var r=1-e;return r*r*t+2*r*e*n+e*e*i}function an(e,t,n,i){return-n*(e/=i)*(e-2)+t}var sn=rn;$t.default=sn;var ln={};function cn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function un(e,t){for(var n=0;n<t.length;n++){var i=t[n];if(e.immediatePropagationStopped)break;i(e)}}Object.defineProperty(ln,"__esModule",{value:!0}),ln.Eventable=void 0;var dn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),cn(this,"options",void 0),cn(this,"types",{}),cn(this,"propagationStopped",!1),cn(this,"immediatePropagationStopped",!1),cn(this,"global",void 0),this.options=(0,L.default)({},t||{})}var t,n;return t=e,(n=[{key:"fire",value:function(e){var t,n=this.global;(t=this.types[e.type])&&un(e,t),!e.propagationStopped&&n&&(t=n[e.type])&&un(e,t)}},{key:"on",value:function(e,t){var n=(0,N.default)(e,t);for(e in n)this.types[e]=J.merge(this.types[e]||[],n[e])}},{key:"off",value:function(e,t){var n=(0,N.default)(e,t);for(e in n){var i=this.types[e];if(i&&i.length)for(var r=0;r<n[e].length;r++){var o=n[e][r],a=i.indexOf(o);-1!==a&&i.splice(a,1)}}}},{key:"getRect",value:function(e){return null}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();ln.Eventable=dn;var hn={};Object.defineProperty(hn,"__esModule",{value:!0}),hn.default=function(e,t){if(t.phaselessTypes[e])return!0;for(var n in t.map)if(0===e.indexOf(n)&&e.substr(n.length)in t.phases)return!0;return!1};var fn={};Object.defineProperty(fn,"__esModule",{value:!0}),fn.createInteractStatic=function(e){var t=function t(n,i){var r=e.interactables.get(n,i);return r||((r=e.interactables.new(n,i)).events.global=t.globalEvents),r};return t.getPointerAverage=R.pointerAverage,t.getTouchBBox=R.touchBBox,t.getTouchDistance=R.touchDistance,t.getTouchAngle=R.touchAngle,t.getElementRect=A.getElementRect,t.getElementClientRect=A.getElementClientRect,t.matchesSelector=A.matchesSelector,t.closest=A.closest,t.globalEvents={},t.version="1.10.20",t.scope=e,t.use=function(e,t){return this.scope.usePlugin(e,t),this},t.isSet=function(e,t){return!!this.scope.interactables.get(e,t&&t.context)},t.on=(0,Pe.warnOnce)((function(e,t,n){if(o.default.string(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/)),o.default.array(e)){for(var i=0;i<e.length;i++){var r=e[i];this.on(r,t,n)}return this}if(o.default.object(e)){for(var a in e)this.on(a,e[a],t);return this}return(0,hn.default)(e,this.scope.actions)?this.globalEvents[e]?this.globalEvents[e].push(t):this.globalEvents[e]=[t]:this.scope.events.add(this.scope.document,e,t,{options:n}),this}),"The interact.on() method is being deprecated"),t.off=(0,Pe.warnOnce)((function(e,t,n){if(o.default.string(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/)),o.default.array(e)){for(var i=0;i<e.length;i++){var r=e[i];this.off(r,t,n)}return this}if(o.default.object(e)){for(var a in e)this.off(a,e[a],t);return this}var s;return(0,hn.default)(e,this.scope.actions)?e in this.globalEvents&&-1!==(s=this.globalEvents[e].indexOf(t))&&this.globalEvents[e].splice(s,1):this.scope.events.remove(this.scope.document,e,t,n),this}),"The interact.off() method is being deprecated"),t.debug=function(){return this.scope},t.supportsTouch=function(){return b.default.supportsTouch},t.supportsPointerEvent=function(){return b.default.supportsPointerEvent},t.stop=function(){for(var e=0;e<this.scope.interactions.list.length;e++)this.scope.interactions.list[e].stop();return this},t.pointerMoveTolerance=function(e){return o.default.number(e)?(this.scope.interactions.pointerMoveTolerance=e,this):this.scope.interactions.pointerMoveTolerance},t.addDocument=function(e,t){this.scope.addDocument(e,t)},t.removeDocument=function(e){this.scope.removeDocument(e)},t};var pn={};function gn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(pn,"__esModule",{value:!0}),pn.Interactable=void 0;var mn=function(){function e(n,i,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),gn(this,"options",void 0),gn(this,"_actions",void 0),gn(this,"target",void 0),gn(this,"events",new ln.Eventable),gn(this,"_context",void 0),gn(this,"_win",void 0),gn(this,"_doc",void 0),gn(this,"_scopeEvents",void 0),this._actions=i.actions,this.target=n,this._context=i.context||r,this._win=(0,t.getWindow)((0,A.trySelector)(n)?this._context:n),this._doc=this._win.document,this._scopeEvents=o,this.set(i)}var n,i;return n=e,(i=[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(e,t){return o.default.func(t.onstart)&&this.on("".concat(e,"start"),t.onstart),o.default.func(t.onmove)&&this.on("".concat(e,"move"),t.onmove),o.default.func(t.onend)&&this.on("".concat(e,"end"),t.onend),o.default.func(t.oninertiastart)&&this.on("".concat(e,"inertiastart"),t.oninertiastart),this}},{key:"updatePerActionListeners",value:function(e,t,n){(o.default.array(t)||o.default.object(t))&&this.off(e,t),(o.default.array(n)||o.default.object(n))&&this.on(e,n)}},{key:"setPerAction",value:function(e,t){var n=this._defaults;for(var i in t){var r=i,a=this.options[e],s=t[r];"listeners"===r&&this.updatePerActionListeners(e,a.listeners,s),o.default.array(s)?a[r]=J.from(s):o.default.plainObject(s)?(a[r]=(0,L.default)(a[r]||{},(0,pt.default)(s)),o.default.object(n.perAction[r])&&"enabled"in n.perAction[r]&&(a[r].enabled=!1!==s.enabled)):o.default.bool(s)&&o.default.object(n.perAction[r])?a[r].enabled=s:a[r]=s}}},{key:"getRect",value:function(e){return e=e||(o.default.element(this.target)?this.target:null),o.default.string(this.target)&&(e=e||this._context.querySelector(this.target)),(0,A.getElementRect)(e)}},{key:"rectChecker",value:function(e){var t=this;return o.default.func(e)?(this.getRect=function(n){var i=(0,L.default)({},e.apply(t,n));return"width"in i||(i.width=i.right-i.left,i.height=i.bottom-i.top),i},this):null===e?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(e,t){if((0,A.trySelector)(t)||o.default.object(t)){for(var n in this.options[e]=t,this._actions.map)this.options[n][e]=t;return this}return this.options[e]}},{key:"origin",value:function(e){return this._backCompatOption("origin",e)}},{key:"deltaSource",value:function(e){return"page"===e||"client"===e?(this.options.deltaSource=e,this):this.options.deltaSource}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(e){return this._context===e.ownerDocument||(0,A.nodeContains)(this._context,e)}},{key:"testIgnoreAllow",value:function(e,t,n){return!this.testIgnore(e.ignoreFrom,t,n)&&this.testAllow(e.allowFrom,t,n)}},{key:"testAllow",value:function(e,t,n){return!e||!!o.default.element(n)&&(o.default.string(e)?(0,A.matchesUpTo)(n,e,t):!!o.default.element(e)&&(0,A.nodeContains)(e,n))}},{key:"testIgnore",value:function(e,t,n){return!(!e||!o.default.element(n))&&(o.default.string(e)?(0,A.matchesUpTo)(n,e,t):!!o.default.element(e)&&(0,A.nodeContains)(e,n))}},{key:"fire",value:function(e){return this.events.fire(e),this}},{key:"_onOff",value:function(e,t,n,i){o.default.object(t)&&!o.default.array(t)&&(i=n,n=null);var r="on"===e?"add":"remove",a=(0,N.default)(t,n);for(var s in a){"wheel"===s&&(s=b.default.wheelEvent);for(var l=0;l<a[s].length;l++){var c=a[s][l];(0,hn.default)(s,this._actions)?this.events[e](s,c):o.default.string(this.target)?this._scopeEvents["".concat(r,"Delegate")](this.target,this._context,s,c,i):this._scopeEvents[r](this.target,s,c,i)}}return this}},{key:"on",value:function(e,t,n){return this._onOff("on",e,t,n)}},{key:"off",value:function(e,t,n){return this._onOff("off",e,t,n)}},{key:"set",value:function(e){var t=this._defaults;for(var n in o.default.object(e)||(e={}),this.options=(0,pt.default)(t.base),this._actions.methodDict){var i=n,r=this._actions.methodDict[i];this.options[i]={},this.setPerAction(i,(0,L.default)((0,L.default)({},t.perAction),t.actions[i])),this[r](e[i])}for(var a in e)o.default.func(this[a])&&this[a](e[a]);return this}},{key:"unset",value:function(){if(o.default.string(this.target))for(var e in this._scopeEvents.delegatedEvents)for(var t=this._scopeEvents.delegatedEvents[e],n=t.length-1;n>=0;n--){var i=t[n],r=i.selector,a=i.context,s=i.listeners;r===this.target&&a===this._context&&t.splice(n,1);for(var l=s.length-1;l>=0;l--)this._scopeEvents.removeDelegate(this.target,this._context,e,s[l][0],s[l][1])}else this._scopeEvents.remove(this.target,"all")}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),e}();pn.Interactable=mn;var vn={};function yn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(vn,"__esModule",{value:!0}),vn.InteractableSet=void 0;var bn=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),yn(this,"list",[]),yn(this,"selectorMap",{}),yn(this,"scope",void 0),this.scope=t,t.addListeners({"interactable:unset":function(e){var t=e.interactable,i=t.target,r=t._context,a=o.default.string(i)?n.selectorMap[i]:i[n.scope.id],s=J.findIndex(a,(function(e){return e.context===r}));a[s]&&(a[s].context=null,a[s].interactable=null),a.splice(s,1)}})}var t,n;return t=e,(n=[{key:"new",value:function(e,t){t=(0,L.default)(t||{},{actions:this.scope.actions});var n=new this.scope.Interactable(e,t,this.scope.document,this.scope.events),i={context:n._context,interactable:n};return this.scope.addDocument(n._doc),this.list.push(n),o.default.string(e)?(this.selectorMap[e]||(this.selectorMap[e]=[]),this.selectorMap[e].push(i)):(n.target[this.scope.id]||Object.defineProperty(e,this.scope.id,{value:[],configurable:!0}),e[this.scope.id].push(i)),this.scope.fire("interactable:new",{target:e,options:t,interactable:n,win:this.scope._win}),n}},{key:"get",value:function(e,t){var n=t&&t.context||this.scope.document,i=o.default.string(e),r=i?this.selectorMap[e]:e[this.scope.id];if(!r)return null;var a=J.find(r,(function(t){return t.context===n&&(i||t.interactable.inContext(e))}));return a&&a.interactable}},{key:"forEachMatch",value:function(e,t){for(var n=0;n<this.list.length;n++){var i=this.list[n],r=void 0;if((o.default.string(i.target)?o.default.element(e)&&A.matchesSelector(e,i.target):e===i.target)&&i.inContext(e)&&(r=t(i)),void 0!==r)return r}}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();vn.InteractableSet=bn;var xn={};function wn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function An(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _n(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_n(e,t):void 0}}(e,t)||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.")}()}function _n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}Object.defineProperty(xn,"__esModule",{value:!0}),xn.default=void 0;var Cn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),wn(this,"currentTarget",void 0),wn(this,"originalEvent",void 0),wn(this,"type",void 0),this.originalEvent=t,(0,F.default)(this,t)}var t,n;return t=e,(n=[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Mn(e){if(!o.default.object(e))return{capture:!!e,passive:!1};var t=(0,L.default)({},e);return t.capture=!!e.capture,t.passive=!!e.passive,t}var kn={id:"events",install:function(e){var t,n=[],i={},r=[],a={add:s,remove:l,addDelegate:function(e,t,n,o,a){var l=Mn(a);if(!i[n]){i[n]=[];for(var d=0;d<r.length;d++){var h=r[d];s(h,n,c),s(h,n,u,!0)}}var f=i[n],p=J.find(f,(function(n){return n.selector===e&&n.context===t}));p||(p={selector:e,context:t,listeners:[]},f.push(p)),p.listeners.push([o,l])},removeDelegate:function(e,t,n,r,o){var a,s=Mn(o),d=i[n],h=!1;if(d)for(a=d.length-1;a>=0;a--){var f=d[a];if(f.selector===e&&f.context===t){for(var p=f.listeners,g=p.length-1;g>=0;g--){var m=An(p[g],2),v=m[0],y=m[1],b=y.capture,x=y.passive;if(v===r&&b===s.capture&&x===s.passive){p.splice(g,1),p.length||(d.splice(a,1),l(t,n,c),l(t,n,u,!0)),h=!0;break}}if(h)break}}},delegateListener:c,delegateUseCapture:u,delegatedEvents:i,documents:r,targets:n,supportsOptions:!1,supportsPassive:!1};function s(e,t,i,r){var o=Mn(r),s=J.find(n,(function(t){return t.eventTarget===e}));s||(s={eventTarget:e,events:{}},n.push(s)),s.events[t]||(s.events[t]=[]),e.addEventListener&&!J.contains(s.events[t],i)&&(e.addEventListener(t,i,a.supportsOptions?o:o.capture),s.events[t].push(i))}function l(e,t,i,r){var o=Mn(r),s=J.findIndex(n,(function(t){return t.eventTarget===e})),c=n[s];if(c&&c.events)if("all"!==t){var u=!1,d=c.events[t];if(d){if("all"===i){for(var h=d.length-1;h>=0;h--)l(e,t,d[h],o);return}for(var f=0;f<d.length;f++)if(d[f]===i){e.removeEventListener(t,i,a.supportsOptions?o:o.capture),d.splice(f,1),0===d.length&&(delete c.events[t],u=!0);break}}u&&!Object.keys(c.events).length&&n.splice(s,1)}else for(t in c.events)c.events.hasOwnProperty(t)&&l(e,t,"all")}function c(e,t){for(var n=Mn(t),r=new Cn(e),a=i[e.type],s=An(R.getEventTargets(e),1)[0],l=s;o.default.element(l);){for(var c=0;c<a.length;c++){var u=a[c],d=u.selector,h=u.context;if(A.matchesSelector(l,d)&&A.nodeContains(h,s)&&A.nodeContains(h,l)){var f=u.listeners;r.currentTarget=l;for(var p=0;p<f.length;p++){var g=An(f[p],2),m=g[0],v=g[1],y=v.capture,b=v.passive;y===n.capture&&b===n.passive&&m(r)}}}l=A.parentNode(l)}}function u(e){return c(e,!0)}return null==(t=e.document)||t.createElement("div").addEventListener("test",null,{get capture(){return a.supportsOptions=!0},get passive(){return a.supportsPassive=!0}}),e.events=a,a}};xn.default=kn;var Sn={};Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.default=void 0;var In={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(e){for(var t=0;t<In.methodOrder.length;t++){var n;n=In.methodOrder[t];var i=In[n](e);if(i)return i}return null},simulationResume:function(e){var t=e.pointerType,n=e.eventType,i=e.eventTarget,r=e.scope;if(!/down|start/i.test(n))return null;for(var o=0;o<r.interactions.list.length;o++){var a=r.interactions.list[o],s=i;if(a.simulation&&a.simulation.allowResume&&a.pointerType===t)for(;s;){if(s===a.element)return a;s=A.parentNode(s)}}return null},mouseOrPen:function(e){var t,n=e.pointerId,i=e.pointerType,r=e.eventType,o=e.scope;if("mouse"!==i&&"pen"!==i)return null;for(var a=0;a<o.interactions.list.length;a++){var s=o.interactions.list[a];if(s.pointerType===i){if(s.simulation&&!Ln(s,n))continue;if(s.interacting())return s;t||(t=s)}}if(t)return t;for(var l=0;l<o.interactions.list.length;l++){var c=o.interactions.list[l];if(!(c.pointerType!==i||/down/i.test(r)&&c.simulation))return c}return null},hasPointer:function(e){for(var t=e.pointerId,n=e.scope,i=0;i<n.interactions.list.length;i++){var r=n.interactions.list[i];if(Ln(r,t))return r}return null},idle:function(e){for(var t=e.pointerType,n=e.scope,i=0;i<n.interactions.list.length;i++){var r=n.interactions.list[i];if(1===r.pointers.length){var o=r.interactable;if(o&&(!o.options.gesture||!o.options.gesture.enabled))continue}else if(r.pointers.length>=2)continue;if(!r.interacting()&&t===r.pointerType)return r}return null}};function Ln(e,t){return e.pointers.some((function(e){return e.id===t}))}var Tn=In;Sn.default=Tn;var Dn={};function On(e){return On="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},On(e)}function jn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Nn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nn(e,t):void 0}}(e,t)||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.")}()}function Nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function En(e,t){return En=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},En(e,t)}function Pn(e){return Pn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Pn(e)}Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.default=void 0;var Fn=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function zn(e,t){return function(n){var i=t.interactions.list,r=R.getPointerType(n),o=jn(R.getEventTargets(n),2),a=o[0],s=o[1],l=[];if(/^touch/.test(n.type)){t.prevTouchTime=t.now();for(var c=0;c<n.changedTouches.length;c++){var u=n.changedTouches[c],d={pointer:u,pointerId:R.getPointerId(u),pointerType:r,eventType:n.type,eventTarget:a,curEventTarget:s,scope:t},h=Rn(d);l.push([d.pointer,d.eventTarget,d.curEventTarget,h])}}else{var f=!1;if(!b.default.supportsPointerEvent&&/mouse/.test(n.type)){for(var p=0;p<i.length&&!f;p++)f="mouse"!==i[p].pointerType&&i[p].pointerIsDown;f=f||t.now()-t.prevTouchTime<500||0===n.timeStamp}if(!f){var g={pointer:n,pointerId:R.getPointerId(n),pointerType:r,eventType:n.type,curEventTarget:s,eventTarget:a,scope:t},m=Rn(g);l.push([g.pointer,g.eventTarget,g.curEventTarget,m])}}for(var v=0;v<l.length;v++){var y=jn(l[v],4),x=y[0],w=y[1],A=y[2];y[3][e](x,n,w,A)}}}function Rn(e){var t=e.pointerType,n=e.scope,i={interaction:Sn.default.search(e),searchDetails:e};return n.fire("interactions:find",i),i.interaction||n.interactions.new({pointerType:t})}function Bn(e,t){var n=e.doc,i=e.scope,r=e.options,o=i.interactions.docEvents,a=i.events,s=a[t];for(var l in i.browser.isIOS&&!r.events&&(r.events={passive:!1}),a.delegatedEvents)s(n,l,a.delegateListener),s(n,l,a.delegateUseCapture,!0);for(var c=r&&r.events,u=0;u<o.length;u++){var d=o[u];s(n,d.type,d.listener,c)}}var Wn={id:"core/interactions",install:function(e){for(var t={},n=0;n<Fn.length;n++){var i=Fn[n];t[i]=zn(i,e)}var r,o=b.default.pEventTypes;function a(){for(var t=0;t<e.interactions.list.length;t++){var n=e.interactions.list[t];if(n.pointerIsDown&&"touch"===n.pointerType&&!n._interacting)for(var i=function(){var t=n.pointers[r];e.documents.some((function(e){var n=e.doc;return(0,A.nodeContains)(n,t.downTarget)}))||n.removePointer(t.pointer,t.event)},r=0;r<n.pointers.length;r++)i()}}(r=g.default.PointerEvent?[{type:o.down,listener:a},{type:o.down,listener:t.pointerDown},{type:o.move,listener:t.pointerMove},{type:o.up,listener:t.pointerUp},{type:o.cancel,listener:t.pointerUp}]:[{type:"mousedown",listener:t.pointerDown},{type:"mousemove",listener:t.pointerMove},{type:"mouseup",listener:t.pointerUp},{type:"touchstart",listener:a},{type:"touchstart",listener:t.pointerDown},{type:"touchmove",listener:t.pointerMove},{type:"touchend",listener:t.pointerUp},{type:"touchcancel",listener:t.pointerUp}]).push({type:"blur",listener:function(t){for(var n=0;n<e.interactions.list.length;n++)e.interactions.list[n].documentBlur(t)}}),e.prevTouchTime=0,e.Interaction=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&En(e,t)}(s,t);var n,i,r,o,a=(r=s,o=function(){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(e){return!1}}(),function(){var e,t=Pn(r);if(o){var n=Pn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===On(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return n=s,(i=[{key:"pointerMoveTolerance",get:function(){return e.interactions.pointerMoveTolerance},set:function(t){e.interactions.pointerMoveTolerance=t}},{key:"_now",value:function(){return e.now()}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),s}(Bt.default),e.interactions={list:[],new:function(t){t.scopeFire=function(t,n){return e.fire(t,n)};var n=new e.Interaction(t);return e.interactions.list.push(n),n},listeners:t,docEvents:r,pointerMoveTolerance:1},e.usePlugin(at.default)},listeners:{"scope:add-document":function(e){return Bn(e,"add")},"scope:remove-document":function(e){return Bn(e,"remove")},"interactable:unset":function(e,t){for(var n=e.interactable,i=t.interactions.list.length-1;i>=0;i--){var r=t.interactions.list[i];r.interactable===n&&(r.stop(),t.fire("interactions:destroy",{interaction:r}),r.destroy(),t.interactions.list.length>2&&t.interactions.list.splice(i,1))}}},onDocSignal:Bn,doOnInteractions:zn,methodNames:Fn},Yn=Wn;Dn.default=Yn;var Un={};function Hn(e){return Hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hn(e)}function Vn(){return Vn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Gn(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},Vn.apply(this,arguments)}function Zn(e,t){return Zn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Zn(e,t)}function Gn(e){return Gn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gn(e)}function Qn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function qn(e,t,n){return t&&Jn(e.prototype,t),n&&Jn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(Un,"__esModule",{value:!0}),Un.Scope=void 0,Un.initScope=$n;var Kn=function(){function e(){var t=this;Qn(this,e),Xn(this,"id","__interact_scope_".concat(Math.floor(100*Math.random()))),Xn(this,"isInitialized",!1),Xn(this,"listenerMaps",[]),Xn(this,"browser",b.default),Xn(this,"defaults",(0,pt.default)(kt.defaults)),Xn(this,"Eventable",ln.Eventable),Xn(this,"actions",{map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}}),Xn(this,"interactStatic",(0,fn.createInteractStatic)(this)),Xn(this,"InteractEvent",St.InteractEvent),Xn(this,"Interactable",void 0),Xn(this,"interactables",new vn.InteractableSet(this)),Xn(this,"_win",void 0),Xn(this,"document",void 0),Xn(this,"window",void 0),Xn(this,"documents",[]),Xn(this,"_plugins",{list:[],map:{}}),Xn(this,"onWindowUnload",(function(e){return t.removeDocument(e.target)}));var n=this;this.Interactable=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zn(e,t)}(o,e);var t,i,r=(t=o,i=function(){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(e){return!1}}(),function(){var e,n=Gn(t);if(i){var r=Gn(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return function(e,t){if(t&&("object"===Hn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function o(){return Qn(this,o),r.apply(this,arguments)}return qn(o,[{key:"_defaults",get:function(){return n.defaults}},{key:"set",value:function(e){return Vn(Gn(o.prototype),"set",this).call(this,e),n.fire("interactable:set",{options:e,interactable:this}),this}},{key:"unset",value:function(){Vn(Gn(o.prototype),"unset",this).call(this);var e=n.interactables.list.indexOf(this);e<0||(n.interactables.list.splice(e,1),n.fire("interactable:unset",{interactable:this}))}}]),o}(pn.Interactable)}return qn(e,[{key:"addListeners",value:function(e,t){this.listenerMaps.push({id:t,map:e})}},{key:"fire",value:function(e,t){for(var n=0;n<this.listenerMaps.length;n++){var i=this.listenerMaps[n].map[e];if(i&&!1===i(t,this,e))return!1}}},{key:"init",value:function(e){return this.isInitialized?this:$n(this,e)}},{key:"pluginIsInstalled",value:function(e){var t=e.id;return t?!!this._plugins.map[t]:-1!==this._plugins.list.indexOf(e)}},{key:"usePlugin",value:function(e,t){if(!this.isInitialized)return this;if(this.pluginIsInstalled(e))return this;if(e.id&&(this._plugins.map[e.id]=e),this._plugins.list.push(e),e.install&&e.install(this,t),e.listeners&&e.before){for(var n=0,i=this.listenerMaps.length,r=e.before.reduce((function(e,t){return e[t]=!0,e[ei(t)]=!0,e}),{});n<i;n++){var o=this.listenerMaps[n].id;if(o&&(r[o]||r[ei(o)]))break}this.listenerMaps.splice(n,0,{id:e.id,map:e.listeners})}else e.listeners&&this.listenerMaps.push({id:e.id,map:e.listeners});return this}},{key:"addDocument",value:function(e,n){if(-1!==this.getDocIndex(e))return!1;var i=t.getWindow(e);n=n?(0,L.default)({},n):{},this.documents.push({doc:e,options:n}),this.events.documents.push(e),e!==this.document&&this.events.add(i,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:e,window:i,scope:this,options:n})}},{key:"removeDocument",value:function(e){var n=this.getDocIndex(e),i=t.getWindow(e),r=this.documents[n].options;this.events.remove(i,"unload",this.onWindowUnload),this.documents.splice(n,1),this.events.documents.splice(n,1),this.fire("scope:remove-document",{doc:e,window:i,scope:this,options:r})}},{key:"getDocIndex",value:function(e){for(var t=0;t<this.documents.length;t++)if(this.documents[t].doc===e)return t;return-1}},{key:"getDocOptions",value:function(e){var t=this.getDocIndex(e);return-1===t?null:this.documents[t].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),e}();function $n(e,n){return e.isInitialized=!0,o.default.window(n)&&t.init(n),g.default.init(n),b.default.init(n),Me.default.init(n),e.window=n,e.document=n.document,e.usePlugin(Dn.default),e.usePlugin(xn.default),e}function ei(e){return e&&e.replace(/\/.*$/,"")}Un.Scope=Kn;var ti={};Object.defineProperty(ti,"__esModule",{value:!0}),ti.default=void 0;var ni=new Un.Scope,ii=ni.interactStatic;ti.default=ii;var ri="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0;ni.init(ri);var oi={};Object.defineProperty(oi,"__esModule",{value:!0}),oi.default=void 0,oi.default=function(){};var ai={};Object.defineProperty(ai,"__esModule",{value:!0}),ai.default=void 0,ai.default=function(){};var si={};function li(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ci(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ci(e,t):void 0}}(e,t)||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.")}()}function ci(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}Object.defineProperty(si,"__esModule",{value:!0}),si.default=void 0,si.default=function(e){var t=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter((function(t){var n=li(t,2),i=n[0],r=n[1];return i in e||r in e})),n=function(n,i){for(var r=e.range,o=e.limits,a=void 0===o?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:o,s=e.offset,l=void 0===s?{x:0,y:0}:s,c={range:r,grid:e,x:null,y:null},u=0;u<t.length;u++){var d=li(t[u],2),h=d[0],f=d[1],p=Math.round((n-l.x)/e[h]),g=Math.round((i-l.y)/e[f]);c[h]=Math.max(a.left,Math.min(a.right,p*e[h]+l.x)),c[f]=Math.max(a.top,Math.min(a.bottom,g*e[f]+l.y))}return c};return n.grid=e,n.coordFields=t,n};var ui={};Object.defineProperty(ui,"__esModule",{value:!0}),Object.defineProperty(ui,"edgeTarget",{enumerable:!0,get:function(){return oi.default}}),Object.defineProperty(ui,"elements",{enumerable:!0,get:function(){return ai.default}}),Object.defineProperty(ui,"grid",{enumerable:!0,get:function(){return si.default}});var di={};Object.defineProperty(di,"__esModule",{value:!0}),di.default=void 0;var hi={id:"snappers",install:function(e){var t=e.interactStatic;t.snappers=(0,L.default)(t.snappers||{},ui),t.createSnapGrid=t.snappers.grid}},fi=hi;di.default=fi;var pi={};function gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function mi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gi(Object(n),!0).forEach((function(t){vi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(pi,"__esModule",{value:!0}),pi.default=pi.aspectRatio=void 0;var yi={start:function(e){var t=e.state,n=e.rect,i=e.edges,r=e.pageCoords,o=t.options,a=o.ratio,s=o.enabled,l=t.options,c=l.equalDelta,u=l.modifiers;"preserve"===a&&(a=n.width/n.height),t.startCoords=(0,L.default)({},r),t.startRect=(0,L.default)({},n),t.ratio=a,t.equalDelta=c;var d=t.linkedEdges={top:i.top||i.left&&!i.bottom,left:i.left||i.top&&!i.right,bottom:i.bottom||i.right&&!i.top,right:i.right||i.bottom&&!i.left};if(t.xIsPrimaryAxis=!(!i.left&&!i.right),t.equalDelta){var h=(d.left?1:-1)*(d.top?1:-1);t.edgeSign={x:h,y:h}}else t.edgeSign={x:d.left?-1:1,y:d.top?-1:1};if(!1!==s&&(0,L.default)(i,d),null!=u&&u.length){var f=new gt.default(e.interaction);f.copyFrom(e.interaction.modification),f.prepareStates(u),t.subModification=f,f.startAll(mi({},e))}},set:function(e){var t=e.state,n=e.rect,i=e.coords,r=t.linkedEdges,o=(0,L.default)({},i),a=t.equalDelta?bi:xi;if((0,L.default)(e.edges,r),a(t,t.xIsPrimaryAxis,i,n),!t.subModification)return null;var s=(0,L.default)({},n);(0,T.addEdges)(r,s,{x:i.x-o.x,y:i.y-o.y});var l=t.subModification.setAll(mi(mi({},e),{},{rect:s,edges:r,pageCoords:i,prevCoords:i,prevRect:s})),c=l.delta;return l.changed&&(a(t,Math.abs(c.x)>Math.abs(c.y),l.coords,l.rect),(0,L.default)(i,l.coords)),l.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function bi(e,t,n){var i=e.startCoords,r=e.edgeSign;t?n.y=i.y+(n.x-i.x)*r.y:n.x=i.x+(n.y-i.y)*r.x}function xi(e,t,n,i){var r=e.startRect,o=e.startCoords,a=e.ratio,s=e.edgeSign;if(t){var l=i.width/a;n.y=o.y+(l-r.height)*s.y}else{var c=i.height*a;n.x=o.x+(c-r.width)*s.x}}pi.aspectRatio=yi;var wi=(0,At.makeModifier)(yi,"aspectRatio");pi.default=wi;var Ai={};Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.default=void 0;var _i=function(){};_i._defaults={};var Ci=_i;Ai.default=Ci;var Mi={};Object.defineProperty(Mi,"__esModule",{value:!0}),Object.defineProperty(Mi,"default",{enumerable:!0,get:function(){return Ai.default}});var ki={};function Si(e,t,n){return o.default.func(e)?T.resolveRectLike(e,t.interactable,t.element,[n.x,n.y,t]):T.resolveRectLike(e,t.interactable,t.element)}Object.defineProperty(ki,"__esModule",{value:!0}),ki.default=void 0,ki.getRestrictionRect=Si,ki.restrict=void 0;var Ii={start:function(e){var t=e.rect,n=e.startOffset,i=e.state,r=e.interaction,o=e.pageCoords,a=i.options,s=a.elementRect,l=(0,L.default)({left:0,top:0,right:0,bottom:0},a.offset||{});if(t&&s){var c=Si(a.restriction,r,o);if(c){var u=c.right-c.left-t.width,d=c.bottom-c.top-t.height;u<0&&(l.left+=u,l.right+=u),d<0&&(l.top+=d,l.bottom+=d)}l.left+=n.left-t.width*s.left,l.top+=n.top-t.height*s.top,l.right+=n.right-t.width*(1-s.right),l.bottom+=n.bottom-t.height*(1-s.bottom)}i.offset=l},set:function(e){var t=e.coords,n=e.interaction,i=e.state,r=i.options,o=i.offset,a=Si(r.restriction,n,t);if(a){var s=T.xywhToTlbr(a);t.x=Math.max(Math.min(s.right-o.right,t.x),s.left+o.left),t.y=Math.max(Math.min(s.bottom-o.bottom,t.y),s.top+o.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}};ki.restrict=Ii;var Li=(0,At.makeModifier)(Ii,"restrict");ki.default=Li;var Ti={};Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.restrictEdges=Ti.default=void 0;var Di={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Oi={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function ji(e,t){for(var n=["top","left","bottom","right"],i=0;i<n.length;i++){var r=n[i];r in e||(e[r]=t[r])}return e}var Ni={noInner:Di,noOuter:Oi,start:function(e){var t,n=e.interaction,i=e.startOffset,r=e.state,o=r.options;if(o){var a=(0,ki.getRestrictionRect)(o.offset,n,n.coords.start.page);t=T.rectToXY(a)}t=t||{x:0,y:0},r.offset={top:t.y+i.top,left:t.x+i.left,bottom:t.y-i.bottom,right:t.x-i.right}},set:function(e){var t=e.coords,n=e.edges,i=e.interaction,r=e.state,o=r.offset,a=r.options;if(n){var s=(0,L.default)({},t),l=(0,ki.getRestrictionRect)(a.inner,i,s)||{},c=(0,ki.getRestrictionRect)(a.outer,i,s)||{};ji(l,Di),ji(c,Oi),n.top?t.y=Math.min(Math.max(c.top+o.top,s.y),l.top+o.top):n.bottom&&(t.y=Math.max(Math.min(c.bottom+o.bottom,s.y),l.bottom+o.bottom)),n.left?t.x=Math.min(Math.max(c.left+o.left,s.x),l.left+o.left):n.right&&(t.x=Math.max(Math.min(c.right+o.right,s.x),l.right+o.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}};Ti.restrictEdges=Ni;var Ei=(0,At.makeModifier)(Ni,"restrictEdges");Ti.default=Ei;var Pi={};Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.restrictRect=Pi.default=void 0;var Fi=(0,L.default)({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(e){}},ki.restrict.defaults),zi={start:ki.restrict.start,set:ki.restrict.set,defaults:Fi};Pi.restrictRect=zi;var Ri=(0,At.makeModifier)(zi,"restrictRect");Pi.default=Ri;var Bi={};Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.restrictSize=Bi.default=void 0;var Wi={width:-1/0,height:-1/0},Yi={width:1/0,height:1/0},Ui={start:function(e){return Ti.restrictEdges.start(e)},set:function(e){var t=e.interaction,n=e.state,i=e.rect,r=e.edges,o=n.options;if(r){var a=T.tlbrToXywh((0,ki.getRestrictionRect)(o.min,t,e.coords))||Wi,s=T.tlbrToXywh((0,ki.getRestrictionRect)(o.max,t,e.coords))||Yi;n.options={endOnly:o.endOnly,inner:(0,L.default)({},Ti.restrictEdges.noInner),outer:(0,L.default)({},Ti.restrictEdges.noOuter)},r.top?(n.options.inner.top=i.bottom-a.height,n.options.outer.top=i.bottom-s.height):r.bottom&&(n.options.inner.bottom=i.top+a.height,n.options.outer.bottom=i.top+s.height),r.left?(n.options.inner.left=i.right-a.width,n.options.outer.left=i.right-s.width):r.right&&(n.options.inner.right=i.left+a.width,n.options.outer.right=i.left+s.width),Ti.restrictEdges.set(e),n.options=o}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}};Bi.restrictSize=Ui;var Hi=(0,At.makeModifier)(Ui,"restrictSize");Bi.default=Hi;var Vi={};Object.defineProperty(Vi,"__esModule",{value:!0}),Object.defineProperty(Vi,"default",{enumerable:!0,get:function(){return Ai.default}});var Zi={};Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.snap=Zi.default=void 0;var Gi={start:function(e){var t,n=e.interaction,i=e.interactable,r=e.element,o=e.rect,a=e.state,s=e.startOffset,l=a.options,c=l.offsetWithOrigin?function(e){var t=e.interaction.element;return(0,T.rectToXY)((0,T.resolveRectLike)(e.state.options.origin,null,null,[t]))||(0,j.default)(e.interactable,t,e.interaction.prepared.name)}(e):{x:0,y:0};if("startCoords"===l.offset)t={x:n.coords.start.page.x,y:n.coords.start.page.y};else{var u=(0,T.resolveRectLike)(l.offset,i,r,[n]);(t=(0,T.rectToXY)(u)||{x:0,y:0}).x+=c.x,t.y+=c.y}var d=l.relativePoints;a.offsets=o&&d&&d.length?d.map((function(e,n){return{index:n,relativePoint:e,x:s.left-o.width*e.x+t.x,y:s.top-o.height*e.y+t.y}})):[{index:0,relativePoint:null,x:t.x,y:t.y}]},set:function(e){var t=e.interaction,n=e.coords,i=e.state,r=i.options,a=i.offsets,s=(0,j.default)(t.interactable,t.element,t.prepared.name),l=(0,L.default)({},n),c=[];r.offsetWithOrigin||(l.x-=s.x,l.y-=s.y);for(var u=0;u<a.length;u++)for(var d=a[u],h=l.x-d.x,f=l.y-d.y,p=0,g=r.targets.length;p<g;p++){var m,v=r.targets[p];(m=o.default.func(v)?v(h,f,t._proxy,d,p):v)&&c.push({x:(o.default.number(m.x)?m.x:h)+d.x,y:(o.default.number(m.y)?m.y:f)+d.y,range:o.default.number(m.range)?m.range:r.range,source:v,index:p,offset:d})}for(var y={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},b=0;b<c.length;b++){var x=c[b],w=x.range,A=x.x-l.x,_=x.y-l.y,C=(0,P.default)(A,_),M=C<=w;w===1/0&&y.inRange&&y.range!==1/0&&(M=!1),y.target&&!(M?y.inRange&&w!==1/0?C/w<y.distance/y.range:w===1/0&&y.range!==1/0||C<y.distance:!y.inRange&&C<y.distance)||(y.target=x,y.distance=C,y.range=w,y.inRange=M,y.delta.x=A,y.delta.y=_)}return y.inRange&&(n.x=y.target.x,n.y=y.target.y),i.closest=y,y},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}};Zi.snap=Gi;var Qi=(0,At.makeModifier)(Gi,"snap");Zi.default=Qi;var Ji={};function qi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.snapSize=Ji.default=void 0;var Xi={start:function(e){var t=e.state,n=e.edges,i=t.options;if(!n)return null;e.state={options:{targets:null,relativePoints:[{x:n.left?0:1,y:n.top?0:1}],offset:i.offset||"self",origin:{x:0,y:0},range:i.range}},t.targetFields=t.targetFields||[["width","height"],["x","y"]],Zi.snap.start(e),t.offsets=e.state.offsets,e.state=t},set:function(e){var t,n=e.interaction,i=e.state,r=e.coords,a=i.options,s=i.offsets,l={x:r.x-s[0].x,y:r.y-s[0].y};i.options=(0,L.default)({},a),i.options.targets=[];for(var c=0;c<(a.targets||[]).length;c++){var u=(a.targets||[])[c],d=void 0;if(d=o.default.func(u)?u(l.x,l.y,n):u){for(var h=0;h<i.targetFields.length;h++){var f=(2,function(e){if(Array.isArray(e))return e}(t=i.targetFields[h])||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),2!==o.length);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(t)||function(e,t){if(e){if("string"==typeof e)return qi(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qi(e,2):void 0}}(t)||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.")}()),p=f[0],g=f[1];if(p in d||g in d){d.x=d[p],d.y=d[g];break}}i.options.targets.push(d)}}var m=Zi.snap.set(e);return i.options=a,m},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}};Ji.snapSize=Xi;var Ki=(0,At.makeModifier)(Xi,"snapSize");Ji.default=Ki;var $i={};Object.defineProperty($i,"__esModule",{value:!0}),$i.snapEdges=$i.default=void 0;var er={start:function(e){var t=e.edges;return t?(e.state.targetFields=e.state.targetFields||[[t.left?"left":"right",t.top?"top":"bottom"]],Ji.snapSize.start(e)):null},set:Ji.snapSize.set,defaults:(0,L.default)((0,pt.default)(Ji.snapSize.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})};$i.snapEdges=er;var tr=(0,At.makeModifier)(er,"snapEdges");$i.default=tr;var nr={};Object.defineProperty(nr,"__esModule",{value:!0}),Object.defineProperty(nr,"default",{enumerable:!0,get:function(){return Ai.default}});var ir={};Object.defineProperty(ir,"__esModule",{value:!0}),Object.defineProperty(ir,"default",{enumerable:!0,get:function(){return Ai.default}});var rr={};Object.defineProperty(rr,"__esModule",{value:!0}),rr.default=void 0;var or={aspectRatio:pi.default,restrictEdges:Ti.default,restrict:ki.default,restrictRect:Pi.default,restrictSize:Bi.default,snapEdges:$i.default,snap:Zi.default,snapSize:Ji.default,spring:nr.default,avoid:Mi.default,transform:ir.default,rubberband:Vi.default};rr.default=or;var ar={};Object.defineProperty(ar,"__esModule",{value:!0}),ar.default=void 0;var sr={id:"modifiers",install:function(e){var t=e.interactStatic;for(var n in e.usePlugin(At.default),e.usePlugin(di.default),t.modifiers=rr.default,rr.default){var i=rr.default[n],r=i._defaults,o=i._methods;r._methods=o,e.defaults.perAction[n]=r}}},lr=sr;ar.default=lr;var cr={};function ur(e){return ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ur(e)}function dr(e,t){return dr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dr(e,t)}function hr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fr(e){return fr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fr(e)}Object.defineProperty(cr,"__esModule",{value:!0}),cr.default=cr.PointerEvent=void 0;var pr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dr(e,t)}(a,e);var t,n,i,r,o=(i=a,r=function(){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(e){return!1}}(),function(){var e,t=fr(i);if(r){var n=fr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===ur(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return hr(e)}(this,e)});function a(e,t,n,i,r,s){var l;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),l=o.call(this,r),R.pointerExtend(hr(l),n),n!==t&&R.pointerExtend(hr(l),t),l.timeStamp=s,l.originalEvent=n,l.type=e,l.pointerId=R.getPointerId(t),l.pointerType=R.getPointerType(t),l.target=i,l.currentTarget=null,"tap"===e){var c=r.getPointerIndex(t);l.dt=l.timeStamp-r.pointers[c].downTime;var u=l.timeStamp-r.tapTime;l.double=!!r.prevTap&&"doubletap"!==r.prevTap.type&&r.prevTap.target===l.target&&u<500}else"doubletap"===e&&(l.dt=t.timeStamp-r.tapTime,l.double=!0);return l}return t=a,(n=[{key:"_subtractOrigin",value:function(e){var t=e.x,n=e.y;return this.pageX-=t,this.pageY-=n,this.clientX-=t,this.clientY-=n,this}},{key:"_addOrigin",value:function(e){var t=e.x,n=e.y;return this.pageX+=t,this.pageY+=n,this.clientX+=t,this.clientY+=n,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(Z.BaseEvent);cr.PointerEvent=cr.default=pr;var gr={};Object.defineProperty(gr,"__esModule",{value:!0}),gr.default=void 0;var mr={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(e){e.pointerEvents=mr,e.defaults.actions.pointerEvents=mr.defaults,(0,L.default)(e.actions.phaselessTypes,mr.types)},listeners:{"interactions:new":function(e){var t=e.interaction;t.prevTap=null,t.tapTime=0},"interactions:update-pointer":function(e){var t=e.down,n=e.pointerInfo;!t&&n.hold||(n.hold={duration:1/0,timeout:null})},"interactions:move":function(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget;e.duplicate||n.pointerIsDown&&!n.pointerWasMoved||(n.pointerIsDown&&br(e),vr({interaction:n,pointer:i,event:r,eventTarget:o,type:"move"},t))},"interactions:down":function(e,t){!function(e,t){for(var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget,a=e.pointerIndex,s=n.pointers[a].hold,l=A.getPath(o),c={interaction:n,pointer:i,event:r,eventTarget:o,type:"hold",targets:[],path:l,node:null},u=0;u<l.length;u++){var d=l[u];c.node=d,t.fire("pointerEvents:collect-targets",c)}if(c.targets.length){for(var h=1/0,f=0;f<c.targets.length;f++){var p=c.targets[f].eventable.options.holdDuration;p<h&&(h=p)}s.duration=h,s.timeout=setTimeout((function(){vr({interaction:n,eventTarget:o,pointer:i,event:r,type:"hold"},t)}),h)}}(e,t),vr(e,t)},"interactions:up":function(e,t){br(e),vr(e,t),function(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget;n.pointerWasMoved||vr({interaction:n,eventTarget:o,pointer:i,event:r,type:"tap"},t)}(e,t)},"interactions:cancel":function(e,t){br(e),vr(e,t)}},PointerEvent:cr.PointerEvent,fire:vr,collectEventTargets:yr,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function vr(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget,a=e.type,s=e.targets,l=void 0===s?yr(e,t):s,c=new cr.PointerEvent(a,i,r,o,n,t.now());t.fire("pointerEvents:new",{pointerEvent:c});for(var u={interaction:n,pointer:i,event:r,eventTarget:o,targets:l,type:a,pointerEvent:c},d=0;d<l.length;d++){var h=l[d];for(var f in h.props||{})c[f]=h.props[f];var p=(0,j.default)(h.eventable,h.node);if(c._subtractOrigin(p),c.eventable=h.eventable,c.currentTarget=h.node,h.eventable.fire(c),c._addOrigin(p),c.immediatePropagationStopped||c.propagationStopped&&d+1<l.length&&l[d+1].node!==c.currentTarget)break}if(t.fire("pointerEvents:fired",u),"tap"===a){var g=c.double?vr({interaction:n,pointer:i,event:r,eventTarget:o,type:"doubletap"},t):c;n.prevTap=g,n.tapTime=g.timeStamp}return c}function yr(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget,a=e.type,s=n.getPointerIndex(i),l=n.pointers[s];if("tap"===a&&(n.pointerWasMoved||!l||l.downTarget!==o))return[];for(var c=A.getPath(o),u={interaction:n,pointer:i,event:r,eventTarget:o,type:a,path:c,targets:[],node:null},d=0;d<c.length;d++){var h=c[d];u.node=h,t.fire("pointerEvents:collect-targets",u)}return"hold"===a&&(u.targets=u.targets.filter((function(e){var t,i;return e.eventable.options.holdDuration===(null==(t=n.pointers[s])||null==(i=t.hold)?void 0:i.duration)}))),u.targets}function br(e){var t=e.interaction,n=e.pointerIndex,i=t.pointers[n].hold;i&&i.timeout&&(clearTimeout(i.timeout),i.timeout=null)}var xr=mr;gr.default=xr;var wr={};function Ar(e){var t=e.interaction;t.holdIntervalHandle&&(clearInterval(t.holdIntervalHandle),t.holdIntervalHandle=null)}Object.defineProperty(wr,"__esModule",{value:!0}),wr.default=void 0;var _r={id:"pointer-events/holdRepeat",install:function(e){e.usePlugin(gr.default);var t=e.pointerEvents;t.defaults.holdRepeatInterval=0,t.types.holdrepeat=e.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce((function(e,t){return e["pointerEvents:".concat(t)]=Ar,e}),{"pointerEvents:new":function(e){var t=e.pointerEvent;"hold"===t.type&&(t.count=(t.count||0)+1)},"pointerEvents:fired":function(e,t){var n=e.interaction,i=e.pointerEvent,r=e.eventTarget,o=e.targets;if("hold"===i.type&&o.length){var a=o[0].eventable.options.holdRepeatInterval;a<=0||(n.holdIntervalHandle=setTimeout((function(){t.pointerEvents.fire({interaction:n,eventTarget:r,type:"hold",pointer:i,event:i},t)}),a))}}})},Cr=_r;wr.default=Cr;var Mr={};function kr(e){return(0,L.default)(this.events.options,e),this}Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.default=void 0;var Sr={id:"pointer-events/interactableTargets",install:function(e){var t=e.Interactable;t.prototype.pointerEvents=kr;var n=t.prototype._backCompatOption;t.prototype._backCompatOption=function(e,t){var i=n.call(this,e,t);return i===this&&(this.events.options[e]=t),i}},listeners:{"pointerEvents:collect-targets":function(e,t){var n=e.targets,i=e.node,r=e.type,o=e.eventTarget;t.interactables.forEachMatch(i,(function(e){var t=e.events,a=t.options;t.types[r]&&t.types[r].length&&e.testIgnoreAllow(a,i,o)&&n.push({node:i,eventable:t,props:{interactable:e}})}))},"interactable:new":function(e){var t=e.interactable;t.events.getRect=function(e){return t.getRect(e)}},"interactable:set":function(e,t){var n=e.interactable,i=e.options;(0,L.default)(n.events.options,t.pointerEvents.defaults),(0,L.default)(n.events.options,i.pointerEvents||{})}}},Ir=Sr;Mr.default=Ir;var Lr={};Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.default=void 0;var Tr={id:"pointer-events",install:function(e){e.usePlugin(gr),e.usePlugin(wr.default),e.usePlugin(Mr.default)}},Dr=Tr;Lr.default=Dr;var Or={};function jr(e){var t=e.Interactable;e.actions.phases.reflow=!0,t.prototype.reflow=function(t){return function(e,t,n){for(var i=o.default.string(e.target)?J.from(e._context.querySelectorAll(e.target)):[e.target],r=n.window.Promise,a=r?[]:null,s=function(){var o=i[l],s=e.getRect(o);if(!s)return"break";var c=J.find(n.interactions.list,(function(n){return n.interacting()&&n.interactable===e&&n.element===o&&n.prepared.name===t.name})),u=void 0;if(c)c.move(),a&&(u=c._reflowPromise||new r((function(e){c._reflowResolve=e})));else{var d=(0,T.tlbrToXywh)(s),h={page:{x:d.x,y:d.y},client:{x:d.x,y:d.y},timeStamp:n.now()},f=R.coordsToEvent(h);u=function(e,t,n,i,r){var o=e.interactions.new({pointerType:"reflow"}),a={interaction:o,event:r,pointer:r,eventTarget:n,phase:"reflow"};o.interactable=t,o.element=n,o.prevEvent=r,o.updatePointer(r,r,n,!0),R.setZeroCoords(o.coords.delta),(0,Pe.copyAction)(o.prepared,i),o._doPhase(a);var s=e.window.Promise,l=s?new s((function(e){o._reflowResolve=e})):void 0;return o._reflowPromise=l,o.start(i,t,n),o._interacting?(o.move(a),o.end(r)):(o.stop(),o._reflowResolve()),o.removePointer(r,r),l}(n,e,o,t,f)}a&&a.push(u)},l=0;l<i.length&&"break"!==s();l++);return a&&r.all(a).then((function(){return e}))}(this,t,e)}}Object.defineProperty(Or,"__esModule",{value:!0}),Or.default=void 0,Or.install=jr;var Nr={id:"reflow",install:jr,listeners:{"interactions:stop":function(e,t){var n=e.interaction;"reflow"===n.pointerType&&(n._reflowResolve&&n._reflowResolve(),J.remove(t.interactions.list,n))}}},Er=Nr;Or.default=Er;var Pr={};Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.default=void 0,ti.default.use(at.default),ti.default.use(Vt.default),ti.default.use(Lr.default),ti.default.use($t.default),ti.default.use(ar.default),ti.default.use(rt.default),ti.default.use(_e.default),ti.default.use(Te.default),ti.default.use(Or.default);var Fr=ti.default;Pr.default=Fr,ti.default.default=ti.default;var zr={exports:{}};function Rr(e){return Rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rr(e)}Object.defineProperty(zr.exports,"__esModule",{value:!0}),zr.exports.default=void 0;var Br=Pr.default;if(zr.exports.default=Br,"object"===Rr(zr)&&zr)try{zr.exports=Pr.default}catch(e){}return Pr.default.default=Pr.default,zr.exports}()},288:(e,t)=>{"use strict";var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},i={tName:"t",i18nName:"i18n",handleName:"localize",selectorAttr:"data-i18n",targetAttr:"i18n-target",optionsAttr:"i18n-options",useOptionsAttr:!1,parseDefaultValueFromContent:!0};t.default={init:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function o(t,i,o){if(0!==i.length){var a="text";if(0===i.indexOf("[")){var s=i.split("]");i=s[1],a=s[0].substr(1,s[0].length-1)}if(i.indexOf(";")===i.length-1&&(i=i.substr(0,i.length-2)),"html"===a)t.html(e.t(i,u(o,t.html())));else if("text"===a)t.text(e.t(i,u(o,t.text())));else if("prepend"===a)t.prepend(e.t(i,u(o,t.html())));else if("append"===a)t.append(e.t(i,u(o,t.html())));else if(0===a.indexOf("data-")){var l=a.substr(5),c=e.t(i,u(o,t.data(l)));t.data(l,c),t.attr(a,c)}else t.attr(a,e.t(i,u(o,t.attr(a))))}function u(e,t){return r.parseDefaultValueFromContent?n({},e,{defaultValue:t}):e}}function a(e,i){var a=e.attr(r.selectorAttr);if(a||void 0===a||!1===a||(a=e.text()||e.val()),a){var s=e,l=e.data(r.targetAttr);if(l&&(s=e.find(l)||e),i||!0!==r.useOptionsAttr||(i=e.data(r.optionsAttr)),i=i||{},a.indexOf(";")>=0){var c=a.split(";");t.each(c,(function(e,t){""!==t&&o(s,t.trim(),i)}))}else o(s,a,i);if(!0===r.useOptionsAttr){var u={};delete(u=n({clone:u},i)).lng,e.data(r.optionsAttr,u)}}}r=n({},i,r),t[r.tName]=e.t.bind(e),t[r.i18nName]=e,t.fn[r.handleName]=function(e){return this.each((function(){a(t(this),e),t(this).find("["+r.selectorAttr+"]").each((function(){a(t(this),e)}))}))}}}},898:(e,t,n)=>{e.exports=n(288).default},291:function(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(i,r){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,l=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},c=o.push,u=o.indexOf,d={},h=d.toString,f=d.hasOwnProperty,p=f.toString,g=p.call(Object),m={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},b=i.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var i,r,o=(n=n||b).createElement("script");if(o.text=e,t)for(i in x)(r=t[i]||t.getAttribute&&t.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function A(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[h.call(e)]||"object":typeof e}var _="3.7.1",C=/HTML$/i,M=function(e,t){return new M.fn.init(e,t)};function k(e){var t=!!e&&"length"in e&&e.length,n=A(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function S(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}M.fn=M.prototype={jquery:_,constructor:M,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=M.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return M.each(this,e)},map:function(e){return this.pushStack(M.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(M.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(M.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:o.sort,splice:o.splice},M.extend=M.fn.extend=function(){var e,t,n,i,r,o,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)i=e[t],"__proto__"!==t&&a!==i&&(c&&i&&(M.isPlainObject(i)||(r=Array.isArray(i)))?(n=a[t],o=r&&!Array.isArray(n)?[]:r||M.isPlainObject(n)?n:{},r=!1,a[t]=M.extend(c,o,i)):void 0!==i&&(a[t]=i));return a},M.extend({expando:"jQuery"+(_+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==h.call(e)||(t=a(e))&&("function"!=typeof(n=f.call(t,"constructor")&&t.constructor)||p.call(n)!==g))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(k(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},text:function(e){var t,n="",i=0,r=e.nodeType;if(!r)for(;t=e[i++];)n+=M.text(t);return 1===r||11===r?e.textContent:9===r?e.documentElement.textContent:3===r||4===r?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(k(Object(e))?M.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!C.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,o=e.length,a=!n;r<o;r++)!t(e[r],r)!==a&&i.push(e[r]);return i},map:function(e,t,n){var i,r,o=0,a=[];if(k(e))for(i=e.length;o<i;o++)null!=(r=t(e[o],o,n))&&a.push(r);else for(o in e)null!=(r=t(e[o],o,n))&&a.push(r);return l(a)},guid:1,support:m}),"function"==typeof Symbol&&(M.fn[Symbol.iterator]=o[Symbol.iterator]),M.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var I=o.pop,L=o.sort,T=o.splice,D="[\\x20\\t\\r\\n\\f]",O=new RegExp("^"+D+"+|((?:^|[^\\\\])(?:\\\\.)*)"+D+"+$","g");M.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var j=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function N(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}M.escapeSelector=function(e){return(e+"").replace(j,N)};var E=b,P=c;!function(){var e,t,n,r,a,l,c,d,h,p,g=P,v=M.expando,y=0,b=0,x=ee(),w=ee(),A=ee(),_=ee(),C=function(e,t){return e===t&&(a=!0),0},k="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="(?:\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",N="\\["+D+"*("+j+")(?:"+D+"*([*^$|!~]?=)"+D+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+D+"*\\]",F=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",z=new RegExp(D+"+","g"),R=new RegExp("^"+D+"*,"+D+"*"),B=new RegExp("^"+D+"*([>+~]|"+D+")"+D+"*"),W=new RegExp(D+"|>"),Y=new RegExp(F),U=new RegExp("^"+j+"$"),H={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),bool:new RegExp("^(?:"+k+")$","i"),needsContext:new RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,G=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,J=new RegExp("\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\([^\\r\\n\\f])","g"),q=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},X=function(){le()},K=he((function(e){return!0===e.disabled&&S(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(o=s.call(E.childNodes),E.childNodes),o[E.childNodes.length].nodeType}catch(e){g={apply:function(e,t){P.apply(e,s.call(t))},call:function(e){P.apply(e,s.call(arguments,1))}}}function $(e,t,n,i){var r,o,a,s,c,u,f,p=t&&t.ownerDocument,y=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return n;if(!i&&(le(t),t=t||l,d)){if(11!==y&&(c=G.exec(e)))if(r=c[1]){if(9===y){if(!(a=t.getElementById(r)))return n;if(a.id===r)return g.call(n,a),n}else if(p&&(a=p.getElementById(r))&&$.contains(t,a)&&a.id===r)return g.call(n,a),n}else{if(c[2])return g.apply(n,t.getElementsByTagName(e)),n;if((r=c[3])&&t.getElementsByClassName)return g.apply(n,t.getElementsByClassName(r)),n}if(!(_[e+" "]||h&&h.test(e))){if(f=e,p=t,1===y&&(W.test(e)||B.test(e))){for((p=Q.test(e)&&se(t.parentNode)||t)==t&&m.scope||((s=t.getAttribute("id"))?s=M.escapeSelector(s):t.setAttribute("id",s=v)),o=(u=ue(e)).length;o--;)u[o]=(s?"#"+s:":scope")+" "+de(u[o]);f=u.join(",")}try{return g.apply(n,p.querySelectorAll(f)),n}catch(t){_(e,!0)}finally{s===v&&t.removeAttribute("id")}}}return ye(e.replace(O,"$1"),t,n,i)}function ee(){var e=[];return function n(i,r){return e.push(i+" ")>t.cacheLength&&delete n[e.shift()],n[i+" "]=r}}function te(e){return e[v]=!0,e}function ne(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ie(e){return function(t){return S(t,"input")&&t.type===e}}function re(e){return function(t){return(S(t,"input")||S(t,"button"))&&t.type===e}}function oe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&K(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ae(e){return te((function(t){return t=+t,te((function(n,i){for(var r,o=e([],n.length,t),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))}))}))}function se(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var n,i=e?e.ownerDocument||e:E;return i!=l&&9===i.nodeType&&i.documentElement?(c=(l=i).documentElement,d=!M.isXMLDoc(l),p=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&E!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",X),m.getById=ne((function(e){return c.appendChild(e).id=M.expando,!l.getElementsByName||!l.getElementsByName(M.expando).length})),m.disconnectedMatch=ne((function(e){return p.call(e,"*")})),m.scope=ne((function(){return l.querySelectorAll(":scope")})),m.cssHas=ne((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),m.getById?(t.filter.ID=function(e){var t=e.replace(J,q);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(J,q);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&d)return t.getElementsByClassName(e)},h=[],ne((function(e){var t;c.appendChild(e).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||h.push("\\["+D+"*(?:value|"+k+")"),e.querySelectorAll("[id~="+v+"-]").length||h.push("~="),e.querySelectorAll("a#"+v+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll(":checked").length||h.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+D+"*name"+D+"*="+D+"*(?:''|\"\")")})),m.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),C=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!m.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument==E&&$.contains(E,e)?-1:t===l||t.ownerDocument==E&&$.contains(E,t)?1:r?u.call(r,e)-u.call(r,t):0:4&n?-1:1)},l):l}for(e in $.matches=function(e,t){return $(e,null,null,t)},$.matchesSelector=function(e,t){if(le(e),d&&!_[t+" "]&&(!h||!h.test(t)))try{var n=p.call(e,t);if(n||m.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){_(t,!0)}return $(t,l,null,[e]).length>0},$.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),M.contains(e,t)},$.attr=function(e,n){(e.ownerDocument||e)!=l&&le(e);var i=t.attrHandle[n.toLowerCase()],r=i&&f.call(t.attrHandle,n.toLowerCase())?i(e,n,!d):void 0;return void 0!==r?r:e.getAttribute(n)},$.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},M.uniqueSort=function(e){var t,n=[],i=0,o=0;if(a=!m.sortStable,r=!m.sortStable&&s.call(e,0),L.call(e,C),a){for(;t=e[o++];)t===e[o]&&(i=n.push(o));for(;i--;)T.call(e,n[i],1)}return r=null,e},M.fn.uniqueSort=function(){return this.pushStack(M.uniqueSort(s.apply(this)))},t=M.expr={cacheLength:50,createPseudo:te,match:H,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(J,q),e[3]=(e[3]||e[4]||e[5]||"").replace(J,q),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||$.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&$.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return H.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Y.test(n)&&(t=ue(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(J,q).toLowerCase();return"*"===e?function(){return!0}:function(e){return S(e,t)}},CLASS:function(e){var t=x[e+" "];return t||(t=new RegExp("(^|"+D+")"+e+"("+D+"|$)"))&&x(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var r=$.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(z," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,h,f,p=o!==a?"nextSibling":"previousSibling",g=t.parentNode,m=s&&t.nodeName.toLowerCase(),b=!l&&!s,x=!1;if(g){if(o){for(;p;){for(d=t;d=d[p];)if(s?S(d,m):1===d.nodeType)return!1;f=p="only"===e&&!f&&"nextSibling"}return!0}if(f=[a?g.firstChild:g.lastChild],a&&b){for(x=(h=(c=(u=g[v]||(g[v]={}))[e]||[])[0]===y&&c[1])&&c[2],d=h&&g.childNodes[h];d=++h&&d&&d[p]||(x=h=0)||f.pop();)if(1===d.nodeType&&++x&&d===t){u[e]=[y,h,x];break}}else if(b&&(x=h=(c=(u=t[v]||(t[v]={}))[e]||[])[0]===y&&c[1]),!1===x)for(;(d=++h&&d&&d[p]||(x=h=0)||f.pop())&&(!(s?S(d,m):1===d.nodeType)||!++x||(b&&((u=d[v]||(d[v]={}))[e]=[y,x]),d!==t)););return(x-=r)===i||x%i==0&&x/i>=0}}},PSEUDO:function(e,n){var i,r=t.pseudos[e]||t.setFilters[e.toLowerCase()]||$.error("unsupported pseudo: "+e);return r[v]?r(n):r.length>1?(i=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var i,o=r(e,n),a=o.length;a--;)e[i=u.call(e,o[a])]=!(t[i]=o[a])})):function(e){return r(e,0,i)}):r}},pseudos:{not:te((function(e){var t=[],n=[],i=ve(e.replace(O,"$1"));return i[v]?te((function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}})),has:te((function(e){return function(t){return $(e,t).length>0}})),contains:te((function(e){return e=e.replace(J,q),function(t){return(t.textContent||M.text(t)).indexOf(e)>-1}})),lang:te((function(e){return U.test(e||"")||$.error("unsupported lang: "+e),e=e.replace(J,q).toLowerCase(),function(t){var n;do{if(n=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=i.location&&i.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:oe(!1),disabled:oe(!0),checked:function(e){return S(e,"input")&&!!e.checked||S(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return V.test(e.nodeName)},button:function(e){return S(e,"input")&&"button"===e.type||S(e,"button")},text:function(e){var t;return S(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ae((function(){return[0]})),last:ae((function(e,t){return[t-1]})),eq:ae((function(e,t,n){return[n<0?n+t:n]})),even:ae((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ae((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ae((function(e,t,n){var i;for(i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e})),gt:ae((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=ie(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=re(e);function ce(){}function ue(e,n){var i,r,o,a,s,l,c,u=w[e+" "];if(u)return n?0:u.slice(0);for(s=e,l=[],c=t.preFilter;s;){for(a in i&&!(r=R.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),i=!1,(r=B.exec(s))&&(i=r.shift(),o.push({value:i,type:r[0].replace(O," ")}),s=s.slice(i.length)),t.filter)!(r=H[a].exec(s))||c[a]&&!(r=c[a](r))||(i=r.shift(),o.push({value:i,type:a,matches:r}),s=s.slice(i.length));if(!i)break}return n?s.length:s?$.error(e):w(e,l).slice(0)}function de(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function he(e,t,n){var i=t.dir,r=t.next,o=r||i,a=n&&"parentNode"===o,s=b++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||a)return e(t,n,r);return!1}:function(t,n,l){var c,u,d=[y,s];if(l){for(;t=t[i];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||a)if(u=t[v]||(t[v]={}),r&&S(t,r))t=t[i]||t;else{if((c=u[o])&&c[0]===y&&c[1]===s)return d[2]=c[2];if(u[o]=d,d[2]=e(t,n,l))return!0}return!1}}function fe(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function pe(e,t,n,i,r){for(var o,a=[],s=0,l=e.length,c=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,i,r)||(a.push(o),c&&t.push(s)));return a}function ge(e,t,n,i,r,o){return i&&!i[v]&&(i=ge(i)),r&&!r[v]&&(r=ge(r,o)),te((function(o,a,s,l){var c,d,h,f,p=[],m=[],v=a.length,y=o||function(e,t,n){for(var i=0,r=t.length;i<r;i++)$(e,t[i],n);return n}(t||"*",s.nodeType?[s]:s,[]),b=!e||!o&&t?y:pe(y,p,e,s,l);if(n?n(b,f=r||(o?e:v||i)?[]:a,s,l):f=b,i)for(c=pe(f,m),i(c,[],s,l),d=c.length;d--;)(h=c[d])&&(f[m[d]]=!(b[m[d]]=h));if(o){if(r||e){if(r){for(c=[],d=f.length;d--;)(h=f[d])&&c.push(b[d]=h);r(null,f=[],c,l)}for(d=f.length;d--;)(h=f[d])&&(c=r?u.call(o,h):p[d])>-1&&(o[c]=!(a[c]=h))}}else f=pe(f===a?f.splice(v,f.length):f),r?r(null,a,f,l):g.apply(a,f)}))}function me(e){for(var i,r,o,a=e.length,s=t.relative[e[0].type],l=s||t.relative[" "],c=s?1:0,d=he((function(e){return e===i}),l,!0),h=he((function(e){return u.call(i,e)>-1}),l,!0),f=[function(e,t,r){var o=!s&&(r||t!=n)||((i=t).nodeType?d(e,t,r):h(e,t,r));return i=null,o}];c<a;c++)if(r=t.relative[e[c].type])f=[he(fe(f),r)];else{if((r=t.filter[e[c].type].apply(null,e[c].matches))[v]){for(o=++c;o<a&&!t.relative[e[o].type];o++);return ge(c>1&&fe(f),c>1&&de(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(O,"$1"),r,c<o&&me(e.slice(c,o)),o<a&&me(e=e.slice(o)),o<a&&de(e))}f.push(r)}return fe(f)}function ve(e,i){var r,o=[],a=[],s=A[e+" "];if(!s){for(i||(i=ue(e)),r=i.length;r--;)(s=me(i[r]))[v]?o.push(s):a.push(s);s=A(e,function(e,i){var r=i.length>0,o=e.length>0,a=function(a,s,c,u,h){var f,p,m,v=0,b="0",x=a&&[],w=[],A=n,_=a||o&&t.find.TAG("*",h),C=y+=null==A?1:Math.random()||.1,k=_.length;for(h&&(n=s==l||s||h);b!==k&&null!=(f=_[b]);b++){if(o&&f){for(p=0,s||f.ownerDocument==l||(le(f),c=!d);m=e[p++];)if(m(f,s||l,c)){g.call(u,f);break}h&&(y=C)}r&&((f=!m&&f)&&v--,a&&x.push(f))}if(v+=b,r&&b!==v){for(p=0;m=i[p++];)m(x,w,s,c);if(a){if(v>0)for(;b--;)x[b]||w[b]||(w[b]=I.call(u));w=pe(w)}g.apply(u,w),h&&!a&&w.length>0&&v+i.length>1&&M.uniqueSort(u)}return h&&(y=C,n=A),x};return r?te(a):a}(a,o)),s.selector=e}return s}function ye(e,n,i,r){var o,a,s,l,c,u="function"==typeof e&&e,h=!r&&ue(e=u.selector||e);if(i=i||[],1===h.length){if((a=h[0]=h[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===n.nodeType&&d&&t.relative[a[1].type]){if(!(n=(t.find.ID(s.matches[0].replace(J,q),n)||[])[0]))return i;u&&(n=n.parentNode),e=e.slice(a.shift().value.length)}for(o=H.needsContext.test(e)?0:a.length;o--&&(s=a[o],!t.relative[l=s.type]);)if((c=t.find[l])&&(r=c(s.matches[0].replace(J,q),Q.test(a[0].type)&&se(n.parentNode)||n))){if(a.splice(o,1),!(e=r.length&&de(a)))return g.apply(i,r),i;break}}return(u||ve(e,h))(r,n,!d,i,!n||Q.test(e)&&se(n.parentNode)||n),i}ce.prototype=t.filters=t.pseudos,t.setFilters=new ce,m.sortStable=v.split("").sort(C).join("")===v,le(),m.sortDetached=ne((function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))})),M.find=$,M.expr[":"]=M.expr.pseudos,M.unique=M.uniqueSort,$.compile=ve,$.select=ye,$.setDocument=le,$.tokenize=ue,$.escape=M.escapeSelector,$.getText=M.text,$.isXML=M.isXMLDoc,$.selectors=M.expr,$.support=M.support,$.uniqueSort=M.uniqueSort}();var F=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&M(e).is(n))break;i.push(e)}return i},z=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},R=M.expr.match.needsContext,B=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function W(e,t,n){return v(t)?M.grep(e,(function(e,i){return!!t.call(e,i,e)!==n})):t.nodeType?M.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?M.grep(e,(function(e){return u.call(t,e)>-1!==n})):M.filter(t,e,n)}M.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?M.find.matchesSelector(i,e)?[i]:[]:M.find.matches(e,M.grep(t,(function(e){return 1===e.nodeType})))},M.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(M(e).filter((function(){for(t=0;t<i;t++)if(M.contains(r[t],this))return!0})));for(n=this.pushStack([]),t=0;t<i;t++)M.find(e,r[t],n);return i>1?M.uniqueSort(n):n},filter:function(e){return this.pushStack(W(this,e||[],!1))},not:function(e){return this.pushStack(W(this,e||[],!0))},is:function(e){return!!W(this,"string"==typeof e&&R.test(e)?M(e):e||[],!1).length}});var Y,U=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(M.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||Y,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:U.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof M?t[0]:t,M.merge(this,M.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),B.test(i[1])&&M.isPlainObject(t))for(i in t)v(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=b.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(M):M.makeArray(e,this)}).prototype=M.fn,Y=M(b);var H=/^(?:parents|prev(?:Until|All))/,V={children:!0,contents:!0,next:!0,prev:!0};function Z(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}M.fn.extend({has:function(e){var t=M(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(M.contains(this,t[e]))return!0}))},closest:function(e,t){var n,i=0,r=this.length,o=[],a="string"!=typeof e&&M(e);if(!R.test(e))for(;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&M.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?M.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?u.call(M(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(M.uniqueSort(M.merge(this.get(),M(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),M.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return F(e,"parentNode")},parentsUntil:function(e,t,n){return F(e,"parentNode",n)},next:function(e){return Z(e,"nextSibling")},prev:function(e){return Z(e,"previousSibling")},nextAll:function(e){return F(e,"nextSibling")},prevAll:function(e){return F(e,"previousSibling")},nextUntil:function(e,t,n){return F(e,"nextSibling",n)},prevUntil:function(e,t,n){return F(e,"previousSibling",n)},siblings:function(e){return z((e.parentNode||{}).firstChild,e)},children:function(e){return z(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(S(e,"template")&&(e=e.content||e),M.merge([],e.childNodes))}},(function(e,t){M.fn[e]=function(n,i){var r=M.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=M.filter(i,r)),this.length>1&&(V[e]||M.uniqueSort(r),H.test(e)&&r.reverse()),this.pushStack(r)}}));var G=/[^\x20\t\r\n\f]+/g;function Q(e){return e}function J(e){throw e}function q(e,t,n,i){var r;try{e&&v(r=e.promise)?r.call(e).done(t).fail(n):e&&v(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}M.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return M.each(e.match(G)||[],(function(e,n){t[n]=!0})),t}(e):M.extend({},e);var t,n,i,r,o=[],a=[],s=-1,l=function(){for(r=r||e.once,i=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,r&&(o=n?[]:"")},c={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){M.each(n,(function(n,i){v(i)?e.unique&&c.has(i)||o.push(i):i&&i.length&&"string"!==A(i)&&t(i)}))}(arguments),n&&!t&&l()),this},remove:function(){return M.each(arguments,(function(e,t){for(var n;(n=M.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(e){return e?M.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=a=[],n||t||(o=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},M.extend({Deferred:function(e){var t=[["notify","progress",M.Callbacks("memory"),M.Callbacks("memory"),2],["resolve","done",M.Callbacks("once memory"),M.Callbacks("once memory"),0,"resolved"],["reject","fail",M.Callbacks("once memory"),M.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return M.Deferred((function(n){M.each(t,(function(t,i){var r=v(e[i[4]])&&e[i[4]];o[i[1]]((function(){var e=r&&r.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,r){var o=0;function a(e,t,n,r){return function(){var s=this,l=arguments,c=function(){var i,c;if(!(e<o)){if((i=n.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");c=i&&("object"==typeof i||"function"==typeof i)&&i.then,v(c)?r?c.call(i,a(o,t,Q,r),a(o,t,J,r)):(o++,c.call(i,a(o,t,Q,r),a(o,t,J,r),a(o,t,Q,t.notifyWith))):(n!==Q&&(s=void 0,l=[i]),(r||t.resolveWith)(s,l))}},u=r?c:function(){try{c()}catch(i){M.Deferred.exceptionHook&&M.Deferred.exceptionHook(i,u.error),e+1>=o&&(n!==J&&(s=void 0,l=[i]),t.rejectWith(s,l))}};e?u():(M.Deferred.getErrorHook?u.error=M.Deferred.getErrorHook():M.Deferred.getStackHook&&(u.error=M.Deferred.getStackHook()),i.setTimeout(u))}}return M.Deferred((function(i){t[0][3].add(a(0,i,v(r)?r:Q,i.notifyWith)),t[1][3].add(a(0,i,v(e)?e:Q)),t[2][3].add(a(0,i,v(n)?n:J))})).promise()},promise:function(e){return null!=e?M.extend(e,r):r}},o={};return M.each(t,(function(e,i){var a=i[2],s=i[5];r[i[1]]=a.add,s&&a.add((function(){n=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(i[3].fire),o[i[0]]=function(){return o[i[0]+"With"](this===o?void 0:this,arguments),this},o[i[0]+"With"]=a.fireWith})),r.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,i=Array(n),r=s.call(arguments),o=M.Deferred(),a=function(e){return function(n){i[e]=this,r[e]=arguments.length>1?s.call(arguments):n,--t||o.resolveWith(i,r)}};if(t<=1&&(q(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||v(r[n]&&r[n].then)))return o.then();for(;n--;)q(r[n],a(n),o.reject);return o.promise()}});var X=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;M.Deferred.exceptionHook=function(e,t){i.console&&i.console.warn&&e&&X.test(e.name)&&i.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},M.readyException=function(e){i.setTimeout((function(){throw e}))};var K=M.Deferred();function $(){b.removeEventListener("DOMContentLoaded",$),i.removeEventListener("load",$),M.ready()}M.fn.ready=function(e){return K.then(e).catch((function(e){M.readyException(e)})),this},M.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--M.readyWait:M.isReady)||(M.isReady=!0,!0!==e&&--M.readyWait>0||K.resolveWith(b,[M]))}}),M.ready.then=K.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?i.setTimeout(M.ready):(b.addEventListener("DOMContentLoaded",$),i.addEventListener("load",$));var ee=function(e,t,n,i,r,o,a){var s=0,l=e.length,c=null==n;if("object"===A(n))for(s in r=!0,n)ee(e,t,s,n[s],!0,o,a);else if(void 0!==i&&(r=!0,v(i)||(a=!0),c&&(a?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(M(e),n)})),t))for(;s<l;s++)t(e[s],n,a?i:i.call(e[s],s,t(e[s],n)));return r?e:c?t.call(e):l?t(e[0],n):o},te=/^-ms-/,ne=/-([a-z])/g;function ie(e,t){return t.toUpperCase()}function re(e){return e.replace(te,"ms-").replace(ne,ie)}var oe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function ae(){this.expando=M.expando+ae.uid++}ae.uid=1,ae.prototype={cache:function(e){var t=e[this.expando];return t||(t={},oe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[re(t)]=n;else for(i in t)r[re(i)]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][re(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(re):(t=re(t))in i?[t]:t.match(G)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||M.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!M.isEmptyObject(t)}};var se=new ae,le=new ae,ce=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ue=/[A-Z]/g;function de(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(ue,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ce.test(e)?JSON.parse(e):e)}(n)}catch(e){}le.set(e,t,n)}else n=void 0;return n}M.extend({hasData:function(e){return le.hasData(e)||se.hasData(e)},data:function(e,t,n){return le.access(e,t,n)},removeData:function(e,t){le.remove(e,t)},_data:function(e,t,n){return se.access(e,t,n)},_removeData:function(e,t){se.remove(e,t)}}),M.fn.extend({data:function(e,t){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(r=le.get(o),1===o.nodeType&&!se.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&(i=re(i.slice(5)),de(o,i,r[i]));se.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each((function(){le.set(this,e)})):ee(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=le.get(o,e))||void 0!==(n=de(o,e))?n:void 0;this.each((function(){le.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){le.remove(this,e)}))}}),M.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=se.get(e,t),n&&(!i||Array.isArray(n)?i=se.access(e,t,M.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=M.queue(e,t),i=n.length,r=n.shift(),o=M._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,(function(){M.dequeue(e,t)}),o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return se.get(e,n)||se.access(e,n,{empty:M.Callbacks("once memory").add((function(){se.remove(e,[t+"queue",n])}))})}}),M.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?M.queue(this[0],e):void 0===t?this:this.each((function(){var n=M.queue(this,e,t);M._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&M.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){M.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=M.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=se.get(o[a],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(t)}});var he=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,fe=new RegExp("^(?:([+-])=|)("+he+")([a-z%]*)$","i"),pe=["Top","Right","Bottom","Left"],ge=b.documentElement,me=function(e){return M.contains(e.ownerDocument,e)},ve={composed:!0};ge.getRootNode&&(me=function(e){return M.contains(e.ownerDocument,e)||e.getRootNode(ve)===e.ownerDocument});var ye=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&me(e)&&"none"===M.css(e,"display")};function be(e,t,n,i){var r,o,a=20,s=i?function(){return i.cur()}:function(){return M.css(e,t,"")},l=s(),c=n&&n[3]||(M.cssNumber[t]?"":"px"),u=e.nodeType&&(M.cssNumber[t]||"px"!==c&&+l)&&fe.exec(M.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)M.style(e,t,u+c),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),u/=o;u*=2,M.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}var xe={};function we(e){var t,n=e.ownerDocument,i=e.nodeName,r=xe[i];return r||(t=n.body.appendChild(n.createElement(i)),r=M.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),xe[i]=r,r)}function Ae(e,t){for(var n,i,r=[],o=0,a=e.length;o<a;o++)(i=e[o]).style&&(n=i.style.display,t?("none"===n&&(r[o]=se.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&ye(i)&&(r[o]=we(i))):"none"!==n&&(r[o]="none",se.set(i,"display",n)));for(o=0;o<a;o++)null!=r[o]&&(e[o].style.display=r[o]);return e}M.fn.extend({show:function(){return Ae(this,!0)},hide:function(){return Ae(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ye(this)?M(this).show():M(this).hide()}))}});var _e,Ce,Me=/^(?:checkbox|radio)$/i,ke=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Se=/^$|^module$|\/(?:java|ecma)script/i;_e=b.createDocumentFragment().appendChild(b.createElement("div")),(Ce=b.createElement("input")).setAttribute("type","radio"),Ce.setAttribute("checked","checked"),Ce.setAttribute("name","t"),_e.appendChild(Ce),m.checkClone=_e.cloneNode(!0).cloneNode(!0).lastChild.checked,_e.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!_e.cloneNode(!0).lastChild.defaultValue,_e.innerHTML="<option></option>",m.option=!!_e.lastChild;var Ie={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Le(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&S(e,t)?M.merge([e],n):n}function Te(e,t){for(var n=0,i=e.length;n<i;n++)se.set(e[n],"globalEval",!t||se.get(t[n],"globalEval"))}Ie.tbody=Ie.tfoot=Ie.colgroup=Ie.caption=Ie.thead,Ie.th=Ie.td,m.option||(Ie.optgroup=Ie.option=[1,"<select multiple='multiple'>","</select>"]);var De=/<|&#?\w+;/;function Oe(e,t,n,i,r){for(var o,a,s,l,c,u,d=t.createDocumentFragment(),h=[],f=0,p=e.length;f<p;f++)if((o=e[f])||0===o)if("object"===A(o))M.merge(h,o.nodeType?[o]:o);else if(De.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(ke.exec(o)||["",""])[1].toLowerCase(),l=Ie[s]||Ie._default,a.innerHTML=l[1]+M.htmlPrefilter(o)+l[2],u=l[0];u--;)a=a.lastChild;M.merge(h,a.childNodes),(a=d.firstChild).textContent=""}else h.push(t.createTextNode(o));for(d.textContent="",f=0;o=h[f++];)if(i&&M.inArray(o,i)>-1)r&&r.push(o);else if(c=me(o),a=Le(d.appendChild(o),"script"),c&&Te(a),n)for(u=0;o=a[u++];)Se.test(o.type||"")&&n.push(o);return d}var je=/^([^.]*)(?:\.(.+)|)/;function Ne(){return!0}function Ee(){return!1}function Pe(e,t,n,i,r,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=void 0),t)Pe(e,s,n,i,t[s],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Ee;else if(!r)return e;return 1===o&&(a=r,r=function(e){return M().off(e),a.apply(this,arguments)},r.guid=a.guid||(a.guid=M.guid++)),e.each((function(){M.event.add(this,t,r,i,n)}))}function Fe(e,t,n){n?(se.set(e,t,!1),M.event.add(e,t,{namespace:!1,handler:function(e){var n,i=se.get(this,t);if(1&e.isTrigger&&this[t]){if(i)(M.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=s.call(arguments),se.set(this,t,i),this[t](),n=se.get(this,t),se.set(this,t,!1),i!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else i&&(se.set(this,t,M.event.trigger(i[0],i.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ne)}})):void 0===se.get(e,t)&&M.event.add(e,t,Ne)}M.event={global:{},add:function(e,t,n,i,r){var o,a,s,l,c,u,d,h,f,p,g,m=se.get(e);if(oe(e))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&M.find.matchesSelector(ge,r),n.guid||(n.guid=M.guid++),(l=m.events)||(l=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(t){return void 0!==M&&M.event.triggered!==t.type?M.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(G)||[""]).length;c--;)f=g=(s=je.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),f&&(d=M.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=M.event.special[f]||{},u=M.extend({type:f,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&M.expr.match.needsContext.test(r),namespace:p.join(".")},o),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,p,a)||e.addEventListener&&e.addEventListener(f,a)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),M.event.global[f]=!0)},remove:function(e,t,n,i,r){var o,a,s,l,c,u,d,h,f,p,g,m=se.hasData(e)&&se.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(G)||[""]).length;c--;)if(f=g=(s=je.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),f){for(d=M.event.special[f]||{},h=l[f=(i?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)u=h[o],!r&&g!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));a&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,m.handle)||M.removeEvent(e,f,m.handle),delete l[f])}else for(f in l)M.event.remove(e,f+t[c],n,i,!0);M.isEmptyObject(l)&&se.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,o,a,s=new Array(arguments.length),l=M.event.fix(e),c=(se.get(this,"events")||Object.create(null))[l.type]||[],u=M.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(a=M.event.handlers.call(this,l,c),t=0;(r=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(i=((M.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,r,o,a,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[r=(i=t[n]).selector+" "]&&(a[r]=i.needsContext?M(r,this).index(c)>-1:M.find(r,this,null,[c]).length),a[r]&&o.push(i);o.length&&s.push({elem:c,handlers:o})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(M.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[M.expando]?e:new M.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Me.test(t.type)&&t.click&&S(t,"input")&&Fe(t,"click",!0),!1},trigger:function(e){var t=this||e;return Me.test(t.type)&&t.click&&S(t,"input")&&Fe(t,"click"),!0},_default:function(e){var t=e.target;return Me.test(t.type)&&t.click&&S(t,"input")&&se.get(t,"click")||S(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},M.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},M.Event=function(e,t){if(!(this instanceof M.Event))return new M.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ne:Ee,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&M.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[M.expando]=!0},M.Event.prototype={constructor:M.Event,isDefaultPrevented:Ee,isPropagationStopped:Ee,isImmediatePropagationStopped:Ee,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ne,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ne,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ne,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},M.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},M.event.addProp),M.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){if(b.documentMode){var n=se.get(this,"handle"),i=M.event.fix(e);i.type="focusin"===e.type?"focus":"blur",i.isSimulated=!0,n(e),i.target===i.currentTarget&&n(i)}else M.event.simulate(t,e.target,M.event.fix(e))}M.event.special[e]={setup:function(){var i;if(Fe(this,e,!0),!b.documentMode)return!1;(i=se.get(this,t))||this.addEventListener(t,n),se.set(this,t,(i||0)+1)},trigger:function(){return Fe(this,e),!0},teardown:function(){var e;if(!b.documentMode)return!1;(e=se.get(this,t)-1)?se.set(this,t,e):(this.removeEventListener(t,n),se.remove(this,t))},_default:function(t){return se.get(t.target,e)},delegateType:t},M.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,r=b.documentMode?this:i,o=se.get(r,t);o||(b.documentMode?this.addEventListener(t,n):i.addEventListener(e,n,!0)),se.set(r,t,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=b.documentMode?this:i,o=se.get(r,t)-1;o?se.set(r,t,o):(b.documentMode?this.removeEventListener(t,n):i.removeEventListener(e,n,!0),se.remove(r,t))}}})),M.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){M.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,r=e.handleObj;return i&&(i===this||M.contains(this,i))||(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}})),M.fn.extend({on:function(e,t,n,i){return Pe(this,e,t,n,i)},one:function(e,t,n,i){return Pe(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,M(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ee),this.each((function(){M.event.remove(this,e,n,t)}))}});var ze=/<script|<style|<link/i,Re=/checked\s*(?:[^=]|=\s*.checked.)/i,Be=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function We(e,t){return S(e,"table")&&S(11!==t.nodeType?t:t.firstChild,"tr")&&M(e).children("tbody")[0]||e}function Ye(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ue(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function He(e,t){var n,i,r,o,a,s;if(1===t.nodeType){if(se.hasData(e)&&(s=se.get(e).events))for(r in se.remove(t,"handle events"),s)for(n=0,i=s[r].length;n<i;n++)M.event.add(t,r,s[r][n]);le.hasData(e)&&(o=le.access(e),a=M.extend({},o),le.set(t,a))}}function Ve(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Me.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Ze(e,t,n,i){t=l(t);var r,o,a,s,c,u,d=0,h=e.length,f=h-1,p=t[0],g=v(p);if(g||h>1&&"string"==typeof p&&!m.checkClone&&Re.test(p))return e.each((function(r){var o=e.eq(r);g&&(t[0]=p.call(this,r,o.html())),Ze(o,t,n,i)}));if(h&&(o=(r=Oe(t,e[0].ownerDocument,!1,e,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(s=(a=M.map(Le(r,"script"),Ye)).length;d<h;d++)c=r,d!==f&&(c=M.clone(c,!0,!0),s&&M.merge(a,Le(c,"script"))),n.call(e[d],c,d);if(s)for(u=a[a.length-1].ownerDocument,M.map(a,Ue),d=0;d<s;d++)c=a[d],Se.test(c.type||"")&&!se.access(c,"globalEval")&&M.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?M._evalUrl&&!c.noModule&&M._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):w(c.textContent.replace(Be,""),c,u))}return e}function Ge(e,t,n){for(var i,r=t?M.filter(t,e):e,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||M.cleanData(Le(i)),i.parentNode&&(n&&me(i)&&Te(Le(i,"script")),i.parentNode.removeChild(i));return e}M.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,r,o,a,s=e.cloneNode(!0),l=me(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||M.isXMLDoc(e)))for(a=Le(s),i=0,r=(o=Le(e)).length;i<r;i++)Ve(o[i],a[i]);if(t)if(n)for(o=o||Le(e),a=a||Le(s),i=0,r=o.length;i<r;i++)He(o[i],a[i]);else He(e,s);return(a=Le(s,"script")).length>0&&Te(a,!l&&Le(e,"script")),s},cleanData:function(e){for(var t,n,i,r=M.event.special,o=0;void 0!==(n=e[o]);o++)if(oe(n)){if(t=n[se.expando]){if(t.events)for(i in t.events)r[i]?M.event.remove(n,i):M.removeEvent(n,i,t.handle);n[se.expando]=void 0}n[le.expando]&&(n[le.expando]=void 0)}}}),M.fn.extend({detach:function(e){return Ge(this,e,!0)},remove:function(e){return Ge(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?M.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ze(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||We(this,e).appendChild(e)}))},prepend:function(){return Ze(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=We(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ze(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ze(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(M.cleanData(Le(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return M.clone(this,e,t)}))},html:function(e){return ee(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ze.test(e)&&!Ie[(ke.exec(e)||["",""])[1].toLowerCase()]){e=M.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(M.cleanData(Le(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ze(this,arguments,(function(t){var n=this.parentNode;M.inArray(this,e)<0&&(M.cleanData(Le(this)),n&&n.replaceChild(t,this))}),e)}}),M.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){M.fn[e]=function(e){for(var n,i=[],r=M(e),o=r.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),M(r[a])[t](n),c.apply(i,n.get());return this.pushStack(i)}}));var Qe=new RegExp("^("+he+")(?!px)[a-z%]+$","i"),Je=/^--/,qe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=i),t.getComputedStyle(e)},Xe=function(e,t,n){var i,r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];for(r in i=n.call(e),t)e.style[r]=o[r];return i},Ke=new RegExp(pe.join("|"),"i");function $e(e,t,n){var i,r,o,a,s=Je.test(t),l=e.style;return(n=n||qe(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(O,"$1")||void 0),""!==a||me(e)||(a=M.style(e,t)),!m.pixelBoxStyles()&&Qe.test(a)&&Ke.test(t)&&(i=l.width,r=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=n.width,l.width=i,l.minWidth=r,l.maxWidth=o)),void 0!==a?a+"":a}function et(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ge.appendChild(c).appendChild(u);var e=i.getComputedStyle(u);n="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",a=36===t(e.right),r=36===t(e.width),u.style.position="absolute",o=12===t(u.offsetWidth/3),ge.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,r,o,a,s,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===u.style.backgroundClip,M.extend(m,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,n,r;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),n=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",ge.appendChild(e).appendChild(t).appendChild(n),r=i.getComputedStyle(t),s=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,ge.removeChild(e)),s}}))}();var tt=["Webkit","Moz","ms"],nt=b.createElement("div").style,it={};function rt(e){return M.cssProps[e]||it[e]||(e in nt?e:it[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=tt.length;n--;)if((e=tt[n]+t)in nt)return e}(e)||e)}var ot=/^(none|table(?!-c[ea]).+)/,at={position:"absolute",visibility:"hidden",display:"block"},st={letterSpacing:"0",fontWeight:"400"};function lt(e,t,n){var i=fe.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function ct(e,t,n,i,r,o){var a="width"===t?1:0,s=0,l=0,c=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(c+=M.css(e,n+pe[a],!0,r)),i?("content"===n&&(l-=M.css(e,"padding"+pe[a],!0,r)),"margin"!==n&&(l-=M.css(e,"border"+pe[a]+"Width",!0,r))):(l+=M.css(e,"padding"+pe[a],!0,r),"padding"!==n?l+=M.css(e,"border"+pe[a]+"Width",!0,r):s+=M.css(e,"border"+pe[a]+"Width",!0,r));return!i&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l+c}function ut(e,t,n){var i=qe(e),r=(!m.boxSizingReliable()||n)&&"border-box"===M.css(e,"boxSizing",!1,i),o=r,a=$e(e,t,i),s="offset"+t[0].toUpperCase()+t.slice(1);if(Qe.test(a)){if(!n)return a;a="auto"}return(!m.boxSizingReliable()&&r||!m.reliableTrDimensions()&&S(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===M.css(e,"display",!1,i))&&e.getClientRects().length&&(r="border-box"===M.css(e,"boxSizing",!1,i),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+ct(e,t,n||(r?"border":"content"),o,i,a)+"px"}function dt(e,t,n,i,r){return new dt.prototype.init(e,t,n,i,r)}M.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=$e(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,a,s=re(t),l=Je.test(t),c=e.style;if(l||(t=rt(s)),a=M.cssHooks[t]||M.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(e,!1,i))?r:c[t];"string"==(o=typeof n)&&(r=fe.exec(n))&&r[1]&&(n=be(e,t,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(M.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,i))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var r,o,a,s=re(t);return Je.test(t)||(t=rt(s)),(a=M.cssHooks[t]||M.cssHooks[s])&&"get"in a&&(r=a.get(e,!0,n)),void 0===r&&(r=$e(e,t,i)),"normal"===r&&t in st&&(r=st[t]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),M.each(["height","width"],(function(e,t){M.cssHooks[t]={get:function(e,n,i){if(n)return!ot.test(M.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ut(e,t,i):Xe(e,at,(function(){return ut(e,t,i)}))},set:function(e,n,i){var r,o=qe(e),a=!m.scrollboxSize()&&"absolute"===o.position,s=(a||i)&&"border-box"===M.css(e,"boxSizing",!1,o),l=i?ct(e,t,i,s,o):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-ct(e,t,"border",!1,o)-.5)),l&&(r=fe.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=M.css(e,t)),lt(0,n,l)}}})),M.cssHooks.marginLeft=et(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat($e(e,"marginLeft"))||e.getBoundingClientRect().left-Xe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),M.each({margin:"",padding:"",border:"Width"},(function(e,t){M.cssHooks[e+t]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+pe[i]+t]=o[i]||o[i-2]||o[0];return r}},"margin"!==e&&(M.cssHooks[e+t].set=lt)})),M.fn.extend({css:function(e,t){return ee(this,(function(e,t,n){var i,r,o={},a=0;if(Array.isArray(t)){for(i=qe(e),r=t.length;a<r;a++)o[t[a]]=M.css(e,t[a],!1,i);return o}return void 0!==n?M.style(e,t,n):M.css(e,t)}),e,t,arguments.length>1)}}),M.Tween=dt,dt.prototype={constructor:dt,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||M.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(M.cssNumber[n]?"":"px")},cur:function(){var e=dt.propHooks[this.prop];return e&&e.get?e.get(this):dt.propHooks._default.get(this)},run:function(e){var t,n=dt.propHooks[this.prop];return this.options.duration?this.pos=t=M.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):dt.propHooks._default.set(this),this}},dt.prototype.init.prototype=dt.prototype,dt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=M.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){M.fx.step[e.prop]?M.fx.step[e.prop](e):1!==e.elem.nodeType||!M.cssHooks[e.prop]&&null==e.elem.style[rt(e.prop)]?e.elem[e.prop]=e.now:M.style(e.elem,e.prop,e.now+e.unit)}}},dt.propHooks.scrollTop=dt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},M.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},M.fx=dt.prototype.init,M.fx.step={};var ht,ft,pt=/^(?:toggle|show|hide)$/,gt=/queueHooks$/;function mt(){ft&&(!1===b.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(mt):i.setTimeout(mt,M.fx.interval),M.fx.tick())}function vt(){return i.setTimeout((function(){ht=void 0})),ht=Date.now()}function yt(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=pe[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function bt(e,t,n){for(var i,r=(xt.tweeners[t]||[]).concat(xt.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,t,e))return i}function xt(e,t,n){var i,r,o=0,a=xt.prefilters.length,s=M.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var t=ht||vt(),n=Math.max(0,c.startTime+c.duration-t),i=1-(n/c.duration||0),o=0,a=c.tweens.length;o<a;o++)c.tweens[o].run(i);return s.notifyWith(e,[c,i,n]),i<1&&a?n:(a||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:M.extend({},t),opts:M.extend(!0,{specialEasing:{},easing:M.easing._default},n),originalProperties:t,originalOptions:n,startTime:ht||vt(),duration:n.duration,tweens:[],createTween:function(t,n){var i=M.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(function(e,t){var n,i,r,o,a;for(n in e)if(r=t[i=re(n)],o=e[n],Array.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),(a=M.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete e[i],o)n in e||(e[n]=o[n],t[n]=r);else t[i]=r}(u,c.opts.specialEasing);o<a;o++)if(i=xt.prefilters[o].call(c,e,u,c.opts))return v(i.stop)&&(M._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return M.map(u,bt,c),v(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),M.fx.timer(M.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}M.Animation=M.extend(xt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return be(n.elem,e,fe.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(G);for(var n,i=0,r=e.length;i<r;i++)n=e[i],xt.tweeners[n]=xt.tweeners[n]||[],xt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,r,o,a,s,l,c,u,d="width"in t||"height"in t,h=this,f={},p=e.style,g=e.nodeType&&ye(e),m=se.get(e,"fxshow");for(i in n.queue||(null==(a=M._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always((function(){h.always((function(){a.unqueued--,M.queue(e,"fx").length||a.empty.fire()}))}))),t)if(r=t[i],pt.test(r)){if(delete t[i],o=o||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[i])continue;g=!0}f[i]=m&&m[i]||M.style(e,i)}if((l=!M.isEmptyObject(t))||!M.isEmptyObject(f))for(i in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=m&&m.display)&&(c=se.get(e,"display")),"none"===(u=M.css(e,"display"))&&(c?u=c:(Ae([e],!0),c=e.style.display||c,u=M.css(e,"display"),Ae([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===M.css(e,"float")&&(l||(h.done((function(){p.display=c})),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,f)l||(m?"hidden"in m&&(g=m.hidden):m=se.access(e,"fxshow",{display:c}),o&&(m.hidden=!g),g&&Ae([e],!0),h.done((function(){for(i in g||Ae([e]),se.remove(e,"fxshow"),f)M.style(e,i,f[i])}))),l=bt(g?m[i]:0,i,h),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?xt.prefilters.unshift(e):xt.prefilters.push(e)}}),M.speed=function(e,t,n){var i=e&&"object"==typeof e?M.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return M.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in M.fx.speeds?i.duration=M.fx.speeds[i.duration]:i.duration=M.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v(i.old)&&i.old.call(this),i.queue&&M.dequeue(this,i.queue)},i},M.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ye).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=M.isEmptyObject(e),o=M.speed(t,n,i),a=function(){var t=xt(this,M.extend({},e),o);(r||se.get(this,"finish"))&&t.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,r=null!=e&&e+"queueHooks",o=M.timers,a=se.get(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&gt.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(n),t=!1,o.splice(r,1));!t&&n||M.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=se.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],o=M.timers,a=i?i.length:0;for(n.finish=!0,M.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish}))}}),M.each(["toggle","show","hide"],(function(e,t){var n=M.fn[t];M.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(yt(t,!0),e,i,r)}})),M.each({slideDown:yt("show"),slideUp:yt("hide"),slideToggle:yt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){M.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),M.timers=[],M.fx.tick=function(){var e,t=0,n=M.timers;for(ht=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||M.fx.stop(),ht=void 0},M.fx.timer=function(e){M.timers.push(e),M.fx.start()},M.fx.interval=13,M.fx.start=function(){ft||(ft=!0,mt())},M.fx.stop=function(){ft=null},M.fx.speeds={slow:600,fast:200,_default:400},M.fn.delay=function(e,t){return e=M.fx&&M.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var r=i.setTimeout(t,e);n.stop=function(){i.clearTimeout(r)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",m.checkOn=""!==e.value,m.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",m.radioValue="t"===e.value}();var wt,At=M.expr.attrHandle;M.fn.extend({attr:function(e,t){return ee(this,M.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){M.removeAttr(this,e)}))}}),M.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?M.prop(e,t,n):(1===o&&M.isXMLDoc(e)||(r=M.attrHooks[t.toLowerCase()]||(M.expr.match.bool.test(t)?wt:void 0)),void 0!==n?null===n?void M.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=M.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&S(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(G);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),wt={set:function(e,t,n){return!1===t?M.removeAttr(e,n):e.setAttribute(n,n),n}},M.each(M.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=At[t]||M.find.attr;At[t]=function(e,t,i){var r,o,a=t.toLowerCase();return i||(o=At[a],At[a]=r,r=null!=n(e,t,i)?a:null,At[a]=o),r}}));var _t=/^(?:input|select|textarea|button)$/i,Ct=/^(?:a|area)$/i;function Mt(e){return(e.match(G)||[]).join(" ")}function kt(e){return e.getAttribute&&e.getAttribute("class")||""}function St(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(G)||[]}M.fn.extend({prop:function(e,t){return ee(this,M.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[M.propFix[e]||e]}))}}),M.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&M.isXMLDoc(e)||(t=M.propFix[t]||t,r=M.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=M.find.attr(e,"tabindex");return t?parseInt(t,10):_t.test(e.nodeName)||Ct.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(M.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),M.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){M.propFix[this.toLowerCase()]=this})),M.fn.extend({addClass:function(e){var t,n,i,r,o,a;return v(e)?this.each((function(t){M(this).addClass(e.call(this,t,kt(this)))})):(t=St(e)).length?this.each((function(){if(i=kt(this),n=1===this.nodeType&&" "+Mt(i)+" "){for(o=0;o<t.length;o++)r=t[o],n.indexOf(" "+r+" ")<0&&(n+=r+" ");a=Mt(n),i!==a&&this.setAttribute("class",a)}})):this},removeClass:function(e){var t,n,i,r,o,a;return v(e)?this.each((function(t){M(this).removeClass(e.call(this,t,kt(this)))})):arguments.length?(t=St(e)).length?this.each((function(){if(i=kt(this),n=1===this.nodeType&&" "+Mt(i)+" "){for(o=0;o<t.length;o++)for(r=t[o];n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");a=Mt(n),i!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,i,r,o,a=typeof e,s="string"===a||Array.isArray(e);return v(e)?this.each((function(n){M(this).toggleClass(e.call(this,n,kt(this),t),t)})):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=St(e),this.each((function(){if(s)for(o=M(this),r=0;r<n.length;r++)i=n[r],o.hasClass(i)?o.removeClass(i):o.addClass(i);else void 0!==e&&"boolean"!==a||((i=kt(this))&&se.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===e?"":se.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+Mt(kt(n))+" ").indexOf(t)>-1)return!0;return!1}});var It=/\r/g;M.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=v(e),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?e.call(this,n,M(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=M.map(r,(function(e){return null==e?"":e+""}))),(t=M.valHooks[this.type]||M.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=M.valHooks[r.type]||M.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(It,""):null==n?"":n:void 0}}),M.extend({valHooks:{option:{get:function(e){var t=M.find.attr(e,"value");return null!=t?t:Mt(M.text(e))}},select:{get:function(e){var t,n,i,r=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:r.length;for(i=o<0?l:a?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!S(n.parentNode,"optgroup"))){if(t=M(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,i,r=e.options,o=M.makeArray(t),a=r.length;a--;)((i=r[a]).selected=M.inArray(M.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),M.each(["radio","checkbox"],(function(){M.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=M.inArray(M(e).val(),t)>-1}},m.checkOn||(M.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Lt=i.location,Tt={guid:Date.now()},Dt=/\?/;M.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new i.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||M.error("Invalid XML: "+(n?M.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Ot=/^(?:focusinfocus|focusoutblur)$/,jt=function(e){e.stopPropagation()};M.extend(M.event,{trigger:function(e,t,n,r){var o,a,s,l,c,u,d,h,p=[n||b],g=f.call(e,"type")?e.type:e,m=f.call(e,"namespace")?e.namespace.split("."):[];if(a=h=s=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!Ot.test(g+M.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[M.expando]?e:new M.Event(g,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:M.makeArray(t,[e]),d=M.event.special[g]||{},r||!d.trigger||!1!==d.trigger.apply(n,t))){if(!r&&!d.noBubble&&!y(n)){for(l=d.delegateType||g,Ot.test(l+g)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(n.ownerDocument||b)&&p.push(s.defaultView||s.parentWindow||i)}for(o=0;(a=p[o++])&&!e.isPropagationStopped();)h=a,e.type=o>1?l:d.bindType||g,(u=(se.get(a,"events")||Object.create(null))[e.type]&&se.get(a,"handle"))&&u.apply(a,t),(u=c&&a[c])&&u.apply&&oe(a)&&(e.result=u.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,r||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),t)||!oe(n)||c&&v(n[g])&&!y(n)&&((s=n[c])&&(n[c]=null),M.event.triggered=g,e.isPropagationStopped()&&h.addEventListener(g,jt),n[g](),e.isPropagationStopped()&&h.removeEventListener(g,jt),M.event.triggered=void 0,s&&(n[c]=s)),e.result}},simulate:function(e,t,n){var i=M.extend(new M.Event,n,{type:e,isSimulated:!0});M.event.trigger(i,null,t)}}),M.fn.extend({trigger:function(e,t){return this.each((function(){M.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return M.event.trigger(e,t,n,!0)}});var Nt=/\[\]$/,Et=/\r?\n/g,Pt=/^(?:submit|button|image|reset|file)$/i,Ft=/^(?:input|select|textarea|keygen)/i;function zt(e,t,n,i){var r;if(Array.isArray(t))M.each(t,(function(t,r){n||Nt.test(e)?i(e,r):zt(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)}));else if(n||"object"!==A(t))i(e,t);else for(r in t)zt(e+"["+r+"]",t[r],n,i)}M.param=function(e,t){var n,i=[],r=function(e,t){var n=v(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!M.isPlainObject(e))M.each(e,(function(){r(this.name,this.value)}));else for(n in e)zt(n,e[n],t,r);return i.join("&")},M.fn.extend({serialize:function(){return M.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=M.prop(this,"elements");return e?M.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!M(this).is(":disabled")&&Ft.test(this.nodeName)&&!Pt.test(e)&&(this.checked||!Me.test(e))})).map((function(e,t){var n=M(this).val();return null==n?null:Array.isArray(n)?M.map(n,(function(e){return{name:t.name,value:e.replace(Et,"\r\n")}})):{name:t.name,value:n.replace(Et,"\r\n")}})).get()}});var Rt=/%20/g,Bt=/#.*$/,Wt=/([?&])_=[^&]*/,Yt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ut=/^(?:GET|HEAD)$/,Ht=/^\/\//,Vt={},Zt={},Gt="*/".concat("*"),Qt=b.createElement("a");function Jt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,o=t.toLowerCase().match(G)||[];if(v(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function qt(e,t,n,i){var r={},o=e===Zt;function a(s){var l;return r[s]=!0,M.each(e[s]||[],(function(e,s){var c=s(t,n,i);return"string"!=typeof c||o||r[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)})),l}return a(t.dataTypes[0])||!r["*"]&&a("*")}function Xt(e,t){var n,i,r=M.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&M.extend(!0,e,i),e}Qt.href=Lt.href,M.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Lt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Lt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Gt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":M.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Xt(Xt(e,M.ajaxSettings),t):Xt(M.ajaxSettings,e)},ajaxPrefilter:Jt(Vt),ajaxTransport:Jt(Zt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,r,o,a,s,l,c,u,d,h,f=M.ajaxSetup({},t),p=f.context||f,g=f.context&&(p.nodeType||p.jquery)?M(p):M.event,m=M.Deferred(),v=M.Callbacks("once memory"),y=f.statusCode||{},x={},w={},A="canceled",_={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=Yt.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==c&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)_.always(e[_.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||A;return n&&n.abort(t),C(0,t),this}};if(m.promise(_),f.url=((e||f.url||Lt.href)+"").replace(Ht,Lt.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(G)||[""],null==f.crossDomain){l=b.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Qt.protocol+"//"+Qt.host!=l.protocol+"//"+l.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=M.param(f.data,f.traditional)),qt(Vt,f,t,_),c)return _;for(d in(u=M.event&&f.global)&&0==M.active++&&M.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ut.test(f.type),r=f.url.replace(Bt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Rt,"+")):(h=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(Dt.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(Wt,"$1"),h=(Dt.test(r)?"&":"?")+"_="+Tt.guid+++h),f.url=r+h),f.ifModified&&(M.lastModified[r]&&_.setRequestHeader("If-Modified-Since",M.lastModified[r]),M.etag[r]&&_.setRequestHeader("If-None-Match",M.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&_.setRequestHeader("Content-Type",f.contentType),_.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Gt+"; q=0.01":""):f.accepts["*"]),f.headers)_.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(p,_,f)||c))return _.abort();if(A="abort",v.add(f.complete),_.done(f.success),_.fail(f.error),n=qt(Zt,f,t,_)){if(_.readyState=1,u&&g.trigger("ajaxSend",[_,f]),c)return _;f.async&&f.timeout>0&&(s=i.setTimeout((function(){_.abort("timeout")}),f.timeout));try{c=!1,n.send(x,C)}catch(e){if(c)throw e;C(-1,e)}}else C(-1,"No Transport");function C(e,t,a,l){var d,h,b,x,w,A=t;c||(c=!0,s&&i.clearTimeout(s),n=void 0,o=l||"",_.readyState=e>0?4:0,d=e>=200&&e<300||304===e,a&&(x=function(e,t,n){for(var i,r,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(f,_,a)),!d&&M.inArray("script",f.dataTypes)>-1&&M.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),x=function(e,t,n,i){var r,o,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=c[l+" "+o]||c["* "+o]))for(r in c)if((s=r.split(" "))[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[r]:!0!==c[r]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(f,x,_,d),d?(f.ifModified&&((w=_.getResponseHeader("Last-Modified"))&&(M.lastModified[r]=w),(w=_.getResponseHeader("etag"))&&(M.etag[r]=w)),204===e||"HEAD"===f.type?A="nocontent":304===e?A="notmodified":(A=x.state,h=x.data,d=!(b=x.error))):(b=A,!e&&A||(A="error",e<0&&(e=0))),_.status=e,_.statusText=(t||A)+"",d?m.resolveWith(p,[h,A,_]):m.rejectWith(p,[_,A,b]),_.statusCode(y),y=void 0,u&&g.trigger(d?"ajaxSuccess":"ajaxError",[_,f,d?h:b]),v.fireWith(p,[_,A]),u&&(g.trigger("ajaxComplete",[_,f]),--M.active||M.event.trigger("ajaxStop")))}return _},getJSON:function(e,t,n){return M.get(e,t,n,"json")},getScript:function(e,t){return M.get(e,void 0,t,"script")}}),M.each(["get","post"],(function(e,t){M[t]=function(e,n,i,r){return v(n)&&(r=r||i,i=n,n=void 0),M.ajax(M.extend({url:e,type:t,dataType:r,data:n,success:i},M.isPlainObject(e)&&e))}})),M.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),M._evalUrl=function(e,t,n){return M.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){M.globalEval(e,t,n)}})},M.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=M(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){M(this).wrapInner(e.call(this,t))})):this.each((function(){var t=M(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){M(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){M(this).replaceWith(this.childNodes)})),this}}),M.expr.pseudos.hidden=function(e){return!M.expr.pseudos.visible(e)},M.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},M.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(e){}};var Kt={0:200,1223:204},$t=M.ajaxSettings.xhr();m.cors=!!$t&&"withCredentials"in $t,m.ajax=$t=!!$t,M.ajaxTransport((function(e){var t,n;if(m.cors||$t&&!e.crossDomain)return{send:function(r,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Kt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&i.setTimeout((function(){t&&n()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),M.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),M.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return M.globalEval(e),e}}}),M.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),M.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,r){t=M("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var en,tn=[],nn=/(=)\?(?=&|$)|\?\?/;M.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tn.pop()||M.expando+"_"+Tt.guid++;return this[e]=!0,e}}),M.ajaxPrefilter("json jsonp",(function(e,t,n){var r,o,a,s=!1!==e.jsonp&&(nn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(nn,"$1"+r):!1!==e.jsonp&&(e.url+=(Dt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||M.error(r+" was not called"),a[0]},e.dataTypes[0]="json",o=i[r],i[r]=function(){a=arguments},n.always((function(){void 0===o?M(i).removeProp(r):i[r]=o,e[r]&&(e.jsonpCallback=t.jsonpCallback,tn.push(r)),a&&v(o)&&o(a[0]),a=o=void 0})),"script"})),m.createHTMLDocument=((en=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===en.childNodes.length),M.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((i=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(i)):t=b),o=!n&&[],(r=B.exec(e))?[t.createElement(r[1])]:(r=Oe([e],t,o),o&&o.length&&M(o).remove(),M.merge([],r.childNodes)));var i,r,o},M.fn.load=function(e,t,n){var i,r,o,a=this,s=e.indexOf(" ");return s>-1&&(i=Mt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),a.length>0&&M.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done((function(e){o=arguments,a.html(i?M("<div>").append(M.parseHTML(e)).find(i):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},M.expr.pseudos.animated=function(e){return M.grep(M.timers,(function(t){return e===t.elem})).length},M.offset={setOffset:function(e,t,n){var i,r,o,a,s,l,c=M.css(e,"position"),u=M(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),o=M.css(e,"top"),l=M.css(e,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(a=(i=u.position()).top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),v(t)&&(t=t.call(e,n,M.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):u.css(d)}},M.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){M.offset.setOffset(this,e,t)}));var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===M.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===M.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=M(e).offset()).top+=M.css(e,"borderTopWidth",!0),r.left+=M.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-M.css(i,"marginTop",!0),left:t.left-r.left-M.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===M.css(e,"position");)e=e.offsetParent;return e||ge}))}}),M.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;M.fn[e]=function(i){return ee(this,(function(e,i,r){var o;if(y(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===r)return o?o[t]:e[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):e[i]=r}),e,i,arguments.length)}})),M.each(["top","left"],(function(e,t){M.cssHooks[t]=et(m.pixelPosition,(function(e,n){if(n)return n=$e(e,t),Qe.test(n)?M(e).position()[t]+"px":n}))})),M.each({Height:"height",Width:"width"},(function(e,t){M.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){M.fn[i]=function(r,o){var a=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===o?"margin":"border");return ee(this,(function(t,n,r){var o;return y(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===r?M.css(t,n,s):M.style(t,n,r,s)}),t,a?r:void 0,a)}}))})),M.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){M.fn[t]=function(e){return this.on(t,e)}})),M.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),M.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){M.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;M.proxy=function(e,t){var n,i,r;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return i=s.call(arguments,2),r=function(){return e.apply(t||this,i.concat(s.call(arguments)))},r.guid=e.guid=e.guid||M.guid++,r},M.holdReady=function(e){e?M.readyWait++:M.ready(!0)},M.isArray=Array.isArray,M.parseJSON=JSON.parse,M.nodeName=S,M.isFunction=v,M.isWindow=y,M.camelCase=re,M.type=A,M.now=Date.now,M.isNumeric=function(e){var t=M.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},M.trim=function(e){return null==e?"":(e+"").replace(rn,"$1")},void 0===(n=function(){return M}.apply(t,[]))||(e.exports=n);var on=i.jQuery,an=i.$;return M.noConflict=function(e){return i.$===M&&(i.$=an),e&&i.jQuery===M&&(i.jQuery=on),M},void 0===r&&(i.jQuery=i.$=M),M}))},297:(e,t,n)=>{e.exports=function e(t,n,i){function r(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,(function(e){return r(t[a][1][e]||e)}),c,c.exports,e,t,n,i)}return n[a].exports}for(var o=void 0,a=0;a<i.length;a++)r(i[a]);return r}({1:[function(e,t,n){"use strict";var i=e("./utils"),r=e("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,r,a,s,l,c,u=[],d=0,h=e.length,f=h,p="string"!==i.getTypeOf(e);d<e.length;)f=h-d,r=p?(t=e[d++],n=d<h?e[d++]:0,d<h?e[d++]:0):(t=e.charCodeAt(d++),n=d<h?e.charCodeAt(d++):0,d<h?e.charCodeAt(d++):0),a=t>>2,s=(3&t)<<4|n>>4,l=1<f?(15&n)<<2|r>>6:64,c=2<f?63&r:64,u.push(o.charAt(a)+o.charAt(s)+o.charAt(l)+o.charAt(c));return u.join("")},n.decode=function(e){var t,n,i,a,s,l,c=0,u=0,d="data:";if(e.substr(0,5)===d)throw new Error("Invalid base64 input, it looks like a data url.");var h,f=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===o.charAt(64)&&f--,e.charAt(e.length-2)===o.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=r.uint8array?new Uint8Array(0|f):new Array(0|f);c<e.length;)t=o.indexOf(e.charAt(c++))<<2|(a=o.indexOf(e.charAt(c++)))>>4,n=(15&a)<<4|(s=o.indexOf(e.charAt(c++)))>>2,i=(3&s)<<6|(l=o.indexOf(e.charAt(c++))),h[u++]=t,64!==s&&(h[u++]=n),64!==l&&(h[u++]=i);return h}},{"./support":30,"./utils":32}],2:[function(e,t,n){"use strict";var i=e("./external"),r=e("./stream/DataWorker"),o=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function s(e,t,n,i,r){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=i,this.compressedContent=r}s.prototype={getContentWorker:function(){var e=new r(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},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(e,t,n){return e.pipe(new o).pipe(new a("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){"use strict";var i=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){"use strict";var i=e("./utils"),r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==i.getTypeOf(e)?function(e,t,n,i){var o=r,a=0+n;e^=-1;for(var s=0;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}(0|t,e,e.length):function(e,t,n,i){var o=r,a=0+n;e^=-1;for(var s=0;s<a;s++)e=e>>>8^o[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length):0}},{"./utils":32}],5:[function(e,t,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(e,t,n){"use strict";var i;i="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:i}},{lie:37}],7:[function(e,t,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,r=e("pako"),o=e("./utils"),a=e("./stream/GenericWorker"),s=i?"uint8array":"array";function l(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",o.inherits(l,a),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,e.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 e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new l("Deflate",e)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){"use strict";function i(e,t){var n,i="";for(n=0;n<t;n++)i+=String.fromCharCode(255&e),e>>>=8;return i}function r(e,t,n,r,a,u){var d,h,f=e.file,p=e.compression,g=u!==s.utf8encode,m=o.transformTo("string",u(f.name)),v=o.transformTo("string",s.utf8encode(f.name)),y=f.comment,b=o.transformTo("string",u(y)),x=o.transformTo("string",s.utf8encode(y)),w=v.length!==f.name.length,A=x.length!==y.length,_="",C="",M="",k=f.dir,S=f.date,I={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(I.crc32=e.crc32,I.compressedSize=e.compressedSize,I.uncompressedSize=e.uncompressedSize);var L=0;t&&(L|=8),g||!w&&!A||(L|=2048);var T=0,D=0;k&&(T|=16),"UNIX"===a?(D=798,T|=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16}(f.unixPermissions,k)):(D=20,T|=function(e){return 63&(e||0)}(f.dosPermissions)),d=S.getUTCHours(),d<<=6,d|=S.getUTCMinutes(),d<<=5,d|=S.getUTCSeconds()/2,h=S.getUTCFullYear()-1980,h<<=4,h|=S.getUTCMonth()+1,h<<=5,h|=S.getUTCDate(),w&&(C=i(1,1)+i(l(m),4)+v,_+="up"+i(C.length,2)+C),A&&(M=i(1,1)+i(l(b),4)+x,_+="uc"+i(M.length,2)+M);var O="";return O+="\n\0",O+=i(L,2),O+=p.magic,O+=i(d,2),O+=i(h,2),O+=i(I.crc32,4),O+=i(I.compressedSize,4),O+=i(I.uncompressedSize,4),O+=i(m.length,2),O+=i(_.length,2),{fileRecord:c.LOCAL_FILE_HEADER+O+m+_,dirRecord:c.CENTRAL_FILE_HEADER+i(D,2)+O+i(b.length,2)+"\0\0\0\0"+i(T,4)+i(r,4)+m+_+b}}var o=e("../utils"),a=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),c=e("../signature");function u(e,t,n,i){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=i,this.streamFiles=e,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(e){var t=e.meta.percent||0,n=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-i-1))/n:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=r(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=r(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:function(e){return c.DATA_DESCRIPTOR+i(e.crc32,4)+i(e.compressedSize,4)+i(e.uncompressedSize,4)}(e),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 e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=this.bytesWritten-e,r=function(e,t,n,r,a){var s=o.transformTo("string",a(r));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(e,2)+i(e,2)+i(t,4)+i(n,4)+i(s.length,2)+s}(this.dirRecords.length,n,e,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(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),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(e){var t=this._sources;if(!a.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(e){}return!0},u.prototype.lock=function(){a.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){"use strict";var i=e("../compressions"),r=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var o=new r(t.streamFiles,n,t.platform,t.encodeFileName),a=0;try{e.forEach((function(e,n){a++;var r=function(e,t){var n=e||t,r=i[n];if(!r)throw new Error(n+" is not a valid compression method !");return r}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},l=n.dir,c=n.date;n._compressWorker(r,s).withStreamInfo("file",{name:e,dir:l,date:c,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(o)})),o.entriesCount=a}catch(e){o.error(e)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,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 e=new i;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(i.prototype=e("./object")).loadAsync=e("./load"),i.support=e("./support"),i.defaults=e("./defaults"),i.version="3.10.1",i.loadAsync=function(e,t){return(new i).loadAsync(e,t)},i.external=e("./external"),t.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){"use strict";var i=e("./utils"),r=e("./external"),o=e("./utf8"),a=e("./zipEntries"),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function c(e){return new r.Promise((function(t,n){var i=e.decompressed.getContentWorker().pipe(new s);i.on("error",(function(e){n(e)})).on("end",(function(){i.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var n=this;return t=i.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(e)?r.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var n=new a(t);return n.load(e),n})).then((function(e){var n=[r.Promise.resolve(e)],i=e.files;if(t.checkCRC32)for(var o=0;o<i.length;o++)n.push(c(i[o]));return r.Promise.all(n)})).then((function(e){for(var r=e.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:t.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(e,t,n){"use strict";var i=e("../utils"),r=e("../stream/GenericWorker");function o(e,t){r.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}i.inherits(o,r),o.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.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)},t.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){"use strict";var i=e("readable-stream").Readable;function r(e,t,n){i.call(this,t),this._helper=e;var r=this;e.on("data",(function(e,t){r.push(e)||r._helper.pause(),n&&n(t)})).on("error",(function(e){r.emit("error",e)})).on("end",(function(){r.push(null)}))}e("../utils").inherits(r,i),r.prototype._read=function(){this._helper.resume()},t.exports=r},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){"use strict";t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,n){"use strict";function i(e,t,n){var i,r=o.getTypeOf(t),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&&(e=g(e)),s.createFolders&&(i=p(e))&&m.call(this,i,!0);var d="string"===r&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!d),(t instanceof c&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",r="string");var v;v=t instanceof c||t instanceof a?t:h.isNode&&h.isStream(t)?new f(e,t):o.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var y=new u(e,v,s);this.files[e]=y}var r=e("./utf8"),o=e("./utils"),a=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),l=e("./defaults"),c=e("./compressedObject"),u=e("./zipObject"),d=e("./generate"),h=e("./nodejsUtils"),f=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},g=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},m=function(e,t){return t=void 0!==t?t:l.createFolders,e=g(e),this.files[e]||i.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,i;for(t in this.files)i=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,i)},filter:function(e){var t=[];return this.forEach((function(n,i){e(n,i)&&t.push(i)})),t},file:function(e,t,n){if(1!==arguments.length)return e=this.root+e,i.call(this,e,t,n),this;if(v(e)){var r=e;return this.filter((function(e,t){return!t.dir&&r.test(e)}))}var o=this.files[this.root+e];return o&&!o.dir?o:null},folder:function(e){if(!e)return this;if(v(e))return this.filter((function(t,n){return n.dir&&e.test(t)}));var t=this.root+e,n=m.call(this,t),i=this.clone();return i.root=n.name,i},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter((function(t,n){return n.name.slice(0,e.length)===e})),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(e){var t,n={};try{if((n=o.extend(e||{},{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||"";t=d.generateWorker(this,n,i)}catch(e){(t=new a("error")).error(e)}return new s(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.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(e,t,n){"use strict";t.exports=e("stream")},{stream:void 0}],17:[function(e,t,n){"use strict";var i=e("./DataReader");function r(e){i.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(r,i),r.prototype.byteAt=function(e){return this.data[this.zero+e]},r.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),i=e.charCodeAt(2),r=e.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===t&&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(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),i=e.charCodeAt(2),r=e.charCodeAt(3),o=this.readData(4);return t===o[0]&&n===o[1]&&i===o[2]&&r===o[3]},r.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){"use strict";var i=e("../utils");function r(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}r.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return i.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=r},{"../utils":32}],19:[function(e,t,n){"use strict";var i=e("./Uint8ArrayReader");function r(e){i.call(this,e)}e("../utils").inherits(r,i),r.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){"use strict";var i=e("./DataReader");function r(e){i.call(this,e)}e("../utils").inherits(r,i),r.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},r.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},r.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},r.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){"use strict";var i=e("./ArrayReader");function r(e){i.call(this,e)}e("../utils").inherits(r,i),r.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){"use strict";var i=e("../utils"),r=e("../support"),o=e("./ArrayReader"),a=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=i.getTypeOf(e);return i.checkSupport(t),"string"!==t||r.uint8array?"nodebuffer"===t?new s(e):r.uint8array?new l(i.transformTo("uint8array",e)):new o(i.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,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(e,t,n){"use strict";var i=e("./GenericWorker"),r=e("../utils");function o(e){i.call(this,"ConvertWorker to "+e),this.destType=e}r.inherits(o,i),o.prototype.processChunk=function(e){this.push({data:r.transformTo(this.destType,e.data),meta:e.meta})},t.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){"use strict";var i=e("./GenericWorker"),r=e("../crc32");function o(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(o,i),o.prototype.processChunk=function(e){this.streamInfo.crc32=r(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){"use strict";var i=e("../utils"),r=e("./GenericWorker");function o(e){r.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}i.inherits(o,r),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}r.prototype.processChunk.call(this,e)},t.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){"use strict";var i=e("../utils"),r=e("./GenericWorker");function o(e){r.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=i.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}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 e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){"use strict";function i(e){this.name=e||"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(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),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 e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},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 e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=i},{}],29:[function(e,t,n){"use strict";var i=e("../utils"),r=e("./ConvertWorker"),o=e("./GenericWorker"),a=e("../base64"),s=e("../support"),l=e("../external"),c=null;if(s.nodestream)try{c=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function u(e,t,n){var a=t;switch(t){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=t,this._mimeType=n,i.checkSupport(a),this._worker=e.pipe(new r(a)),e.lock()}catch(e){this._worker=new o("error"),this._worker.error(e)}}u.prototype={accumulate:function(e){return function(e,t){return new l.Promise((function(n,r){var o=[],s=e._internalType,l=e._outputType,c=e._mimeType;e.on("data",(function(e,n){o.push(e),t&&t(n)})).on("error",(function(e){o=[],r(e)})).on("end",(function(){try{var e=function(e,t,n){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),n);case"base64":return a.encode(t);default:return i.transformTo(e,t)}}(l,function(e,t){var n,i=0,r=null,o=0;for(n=0;n<t.length;n++)o+=t[n].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(r=new Uint8Array(o),n=0;n<t.length;n++)r.set(t[n],i),i+=t[n].length;return r;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(s,o),c);n(e)}catch(e){r(e)}o=[]})).resume()}))}(this,e)},on:function(e,t){var n=this;return"data"===e?this._worker.on(e,(function(e){t.call(n,e.data,e.meta)})):this._worker.on(e,(function(){i.delay(t,arguments,n)})),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=u},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer="undefined"!=typeof Buffer,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var i=new ArrayBuffer(0);try{n.blob=0===new Blob([i],{type:"application/zip"}).size}catch(e){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(i),n.blob=0===r.getBlob("application/zip").size}catch(e){n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch(e){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){"use strict";for(var i=e("./utils"),r=e("./support"),o=e("./nodejsUtils"),a=e("./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(e){return r.nodebuffer?o.newBufferFrom(e,"utf-8"):function(e){var t,n,i,o,a,s=e.length,l=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=r.uint8array?new Uint8Array(l):new Array(l),o=a=0;a<l;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t}(e)},n.utf8decode=function(e){return r.nodebuffer?i.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,r,o,a=e.length,l=new Array(2*a);for(t=n=0;t<a;)if((r=e[t++])<128)l[n++]=r;else if(4<(o=s[r]))l[n++]=65533,t+=o-1;else{for(r&=2===o?31:3===o?15:7;1<o&&t<a;)r=r<<6|63&e[t++],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)}(e=i.transformTo(r.uint8array?"uint8array":"array",e))},i.inherits(c,a),c.prototype.processChunk=function(e){var t=i.transformTo(r.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var o=t;(t=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),t.set(o,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var a=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}(t),l=t;a!==t.length&&(r.uint8array?(l=t.subarray(0,a),this.leftOver=t.subarray(a,t.length)):(l=t.slice(0,a),this.leftOver=t.slice(a,t.length))),this.push({data:n.utf8decode(l),meta:e.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(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){"use strict";var i=e("./support"),r=e("./base64"),o=e("./nodejsUtils"),a=e("./external");function s(e){return e}function l(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e("setimmediate"),n.newBlob=function(e,t){n.checkSupport("blob");try{return new Blob([e],{type:t})}catch(n){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(e),i.getBlob(t)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(e,t,n){var i=[],r=0,o=e.length;if(o<=n)return String.fromCharCode.apply(null,e);for(;r<o;)"array"===t||"nodebuffer"===t?i.push(String.fromCharCode.apply(null,e.slice(r,Math.min(r+n,o)))):i.push(String.fromCharCode.apply(null,e.subarray(r,Math.min(r+n,o)))),r+=n;return i.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(e){return!1}}()}};function u(e){var t=65536,i=n.getTypeOf(e),r=!0;if("uint8array"===i?r=c.applyCanBeUsed.uint8array:"nodebuffer"===i&&(r=c.applyCanBeUsed.nodebuffer),r)for(;1<t;)try{return c.stringifyByChunk(e,i,t)}catch(e){t=Math.floor(t/2)}return c.stringifyByChar(e)}function d(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=u;var h={};h.string={string:s,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return h.string.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:function(e){return l(e,o.allocBuffer(e.length))}},h.array={string:u,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(e)}},h.arraybuffer={string:function(e){return u(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(new Uint8Array(e))}},h.uint8array={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return o.newBufferFrom(e)}},h.nodebuffer={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return h.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:s},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var i=n.getTypeOf(t);return h[i][e](t)},n.resolve=function(e){for(var t=e.split("/"),n=[],i=0;i<t.length;i++){var r=t[i];"."===r||""===r&&0!==i&&i!==t.length-1||(".."===r?n.pop():n.push(r))}return n.join("/")},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":i.nodebuffer&&o.isBuffer(e)?"nodebuffer":i.uint8array&&e instanceof Uint8Array?"uint8array":i.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!i[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,i="";for(n=0;n<(e||"").length;n++)i+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return i},n.delay=function(e,t,n){setImmediate((function(){e.apply(n||null,t||[])}))},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,o,s,c){return a.Promise.resolve(t).then((function(e){return i.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new a.Promise((function(t,n){var i=new FileReader;i.onload=function(e){t(e.target.result)},i.onerror=function(e){n(e.target.error)},i.readAsArrayBuffer(e)})):e})).then((function(t){var u=n.getTypeOf(t);return u?("arraybuffer"===u?t=n.transformTo("uint8array",t):"string"===u&&(c?t=r.decode(t):o&&!0!==s&&(t=function(e){return l(e,i.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):a.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,n){"use strict";var i=e("./reader/readerFor"),r=e("./utils"),o=e("./signature"),a=e("./zipEntry"),s=e("./support");function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+r.pretty(t)+", expected "+r.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var i=this.reader.readString(4)===t;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 e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",n=r.transformTo(t,e);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 e,t,n,i=this.zip64EndOfCentralSize-44;0<i;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,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 e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(e=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);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 e=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(e<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(e);var t=e;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,(e=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(e),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=t-n;if(0<i)this.isSignature(t,o.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(e){this.reader=i(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){"use strict";var i=e("./reader/readerFor"),r=e("./utils"),o=e("./compressedObject"),a=e("./crc32"),s=e("./utf8"),l=e("./compressions"),c=e("./support");function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.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===(t=function(e){for(var t in l)if(Object.prototype.hasOwnProperty.call(l,t)&&l[t].magic===e)return l[t];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,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=i(this.extraFields[1].value);this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,i,r=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<r;)t=e.readInt(2),n=e.readInt(2),i=e.readData(n),this.extraFields[t]={id:t,length:n,value:i};e.setIndex(r)},handleUTF8:function(){var e=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=r.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var i=this.findExtraFieldUnicodeComment();if(null!==i)this.fileCommentStr=i;else{var o=r.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=i(e.value);return 1!==t.readInt(1)||a(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=i(e.value);return 1!==t.readInt(1)||a(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){"use strict";function i(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var r=e("./stream/StreamHelper"),o=e("./stream/DataWorker"),a=e("./utf8"),s=e("./compressedObject"),l=e("./stream/GenericWorker");i.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var i="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var o=!this._dataBinary;o&&!i&&(t=t.pipe(new a.Utf8EncodeWorker)),!o&&i&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(e){(t=new l("error")).error(e)}return new r(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_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.")},d=0;d<c.length;d++)i.prototype[c[d]]=u;t.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,i){(function(e){"use strict";var n,i,r=e.MutationObserver||e.WebKitMutationObserver;if(r){var o=0,a=new r(u),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var l=new e.MessageChannel;l.port1.onmessage=u,n=function(){l.port2.postMessage(0)}}var c=[];function u(){var e,t;i=!0;for(var n=c.length;n;){for(t=c,c=[],e=-1;++e<n;)t[e]();n=c.length}i=!1}t.exports=function(e){1!==c.push(e)||i||n()}}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){"use strict";var i=e("immediate");function r(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==r&&f(this,e)}function u(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){i((function(){var i;try{i=t(n)}catch(i){return o.reject(e,i)}i===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,i)}))}function h(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function f(e,t){var n=!1;function i(t){n||(n=!0,o.reject(e,t))}function r(t){n||(n=!0,o.resolve(e,t))}var a=p((function(){t(r,i)}));"error"===a.status&&i(a.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}(t.exports=c).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))},c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var n=new this.constructor(r);return this.state!==l?d(n,this.state===s?e:t,this.outcome):this.queue.push(new u(n,e,t)),n},u.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){o.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=p(h,t);if("error"===n.status)return o.reject(e,n.value);var i=n.value;if(i)f(e,i);else{e.state=s,e.outcome=t;for(var r=-1,a=e.queue.length;++r<a;)e.queue[r].callFulfilled(t)}return e},o.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,i=e.queue.length;++n<i;)e.queue[n].callRejected(t);return e},c.resolve=function(e){return e instanceof this?e:o.resolve(new this(r),e)},c.reject=function(e){var t=new this(r);return o.reject(t,e)},c.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.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(e[l],l);return c;function u(e,r){t.resolve(e).then((function(e){a[r]=e,++s!==n||i||(i=!0,o.resolve(c,a))}),(function(e){i||(i=!0,o.reject(c,e))}))}},c.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,n=!1;if(!t)return this.resolve([]);for(var i,a=-1,s=new this(r);++a<t;)i=e[a],this.resolve(i).then((function(e){n||(n=!0,o.resolve(s,e))}),(function(e){n||(n=!0,o.reject(s,e))}));return s}},{immediate:36}],38:[function(e,t,n){"use strict";var i={};(0,e("./lib/utils/common").assign)(i,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){"use strict";var i=e("./zlib/deflate"),r=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString,c=0,u=-1,d=0,h=8;function f(e){if(!(this instanceof f))return new f(e);this.options=r.assign({level:u,method:h,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.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,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==c)throw new Error(a[n]);if(t.header&&i.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=i.deflateSetDictionary(this.strm,p))!==c)throw new Error(a[n]);this._dict_set=!0}}function p(e,t){var n=new f(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}f.prototype.push=function(e,t){var n,a,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=o.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,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))},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=f,n.deflate=p,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){"use strict";var i=e("./zlib/inflate"),r=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.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,t.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);this.header=new c,i.inflateGetHeader(this.strm,this.header)}function h(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,l,c,d,h,f=this.strm,p=this.options.chunkSize,g=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?f.input=o.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new r.Buf8(p),f.next_out=0,f.avail_out=p),(n=i.inflate(f,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&g&&(h="string"==typeof g?o.string2buf(g):"[object ArrayBuffer]"===u.call(g)?new Uint8Array(g):g,n=i.inflateSetDictionary(this.strm,h)),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);f.next_out&&(0!==f.avail_out&&n!==a.Z_STREAM_END&&(0!==f.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(f.output,f.next_out),c=f.next_out-l,d=o.buf2string(f.output,l),f.next_out=c,f.avail_out=p-c,c&&r.arraySet(f.output,f.output,l,c,0),this.onData(d)):this.onData(r.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(m=!0)}while((0<f.avail_in||0===f.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),!(f.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=h,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},n.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,n,i,r){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+i),r);else for(var o=0;o<i;o++)e[r+o]=t[n+o]},flattenChunks:function(e){var t,n,i,r,o,a;for(t=i=0,n=e.length;t<n;t++)i+=e[t].length;for(a=new Uint8Array(i),t=r=0,n=e.length;t<n;t++)o=e[t],a.set(o,r),r+=o.length;return a}},o={arraySet:function(e,t,n,i,r){for(var o=0;o<i;o++)e[r+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(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(e,t,n){"use strict";var i=e("./common"),r=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){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(e,t){if(t<65537&&(e.subarray&&o||!e.subarray&&r))return String.fromCharCode.apply(null,i.shrinkBuf(e,t));for(var n="",a=0;a<t;a++)n+=String.fromCharCode(e[a]);return n}a[254]=a[254]=1,n.string2buf=function(e){var t,n,r,o,a,s=e.length,l=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new i.Buf8(l),o=a=0;a<l;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new i.Buf8(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,i,r,o,s=t||e.length,c=new Array(2*s);for(n=i=0;n<s;)if((r=e[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&e[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(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){"use strict";t.exports=function(e,t,n,i){for(var r=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;o=o+(r=r+t[i++]|0)|0,--a;);r%=65521,o%=65521}return r|o<<16|0}},{}],44:[function(e,t,n){"use strict";t.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(e,t,n){"use strict";var i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,r){var o=i,a=r+n;e^=-1;for(var s=r;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){"use strict";var i,r=e("../utils/common"),o=e("./trees"),a=e("./adler32"),s=e("./crc32"),l=e("./messages"),c=0,u=0,d=-2,h=2,f=8,p=286,g=30,m=19,v=2*p+1,y=15,b=3,x=258,w=x+b+1,A=42,_=113;function C(e,t){return e.msg=l[t],t}function M(e){return(e<<1)-(4<e?9:0)}function k(e){for(var t=e.length;0<=--t;)e[t]=0}function S(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(r.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function I(e,t){o._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,S(e.strm)}function L(e,t){e.pending_buf[e.pending++]=t}function T(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function D(e,t){var n,i,r=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-w?e.strstart-(e.w_size-w):0,c=e.window,u=e.w_mask,d=e.prev,h=e.strstart+x,f=c[o+a-1],p=c[o+a];e.prev_length>=e.good_match&&(r>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+a]===p&&c[n+a-1]===f&&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<h);if(i=x-(h-o),o=h-x,a<i){if(e.match_start=t,s<=(a=i))break;f=c[o+a-1],p=c[o+a]}}}while((t=d[t&u])>l&&0!=--r);return a<=e.lookahead?a:e.lookahead}function O(e){var t,n,i,o,l,c,u,d,h,f,p=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-w)){for(r.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=n=e.hash_size;i=e.head[--t],e.head[t]=p<=i?i-p:0,--n;);for(t=n=p;i=e.prev[--t],e.prev[t]=p<=i?i-p:0,--n;);o+=p}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,d=e.strstart+e.lookahead,f=void 0,(h=o)<(f=c.avail_in)&&(f=h),n=0===f?0:(c.avail_in-=f,r.arraySet(u,c.input,c.next_in,f,d),1===c.state.wrap?c.adler=a(c.adler,u,f,d):2===c.state.wrap&&(c.adler=s(c.adler,u,f,d)),c.next_in+=f,c.total_in+=f,f),e.lookahead+=n,e.lookahead+e.insert>=b)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+b-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<b)););}while(e.lookahead<w&&0!==e.strm.avail_in)}function j(e,t){for(var n,i;;){if(e.lookahead<w){if(O(e),e.lookahead<w&&t===c)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=b&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+b-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-w&&(e.match_length=D(e,n)),e.match_length>=b)if(i=o._tr_tally(e,e.strstart-e.match_start,e.match_length-b),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=b){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+b-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(I(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<b-1?e.strstart:b-1,4===t?(I(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(I(e,!1),0===e.strm.avail_out)?1:2}function N(e,t){for(var n,i,r;;){if(e.lookahead<w){if(O(e),e.lookahead<w&&t===c)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=b&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+b-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=b-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-w&&(e.match_length=D(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===b&&4096<e.strstart-e.match_start)&&(e.match_length=b-1)),e.prev_length>=b&&e.match_length<=e.prev_length){for(r=e.strstart+e.lookahead-b,i=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-b),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=r&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+b-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=b-1,e.strstart++,i&&(I(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((i=o._tr_tally(e,0,e.window[e.strstart-1]))&&I(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<b-1?e.strstart:b-1,4===t?(I(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(I(e,!1),0===e.strm.avail_out)?1:2}function E(e,t,n,i,r){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=i,this.func=r}function P(){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=f,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*v),this.dyn_dtree=new r.Buf16(2*(2*g+1)),this.bl_tree=new r.Buf16(2*(2*m+1)),k(this.dyn_ltree),k(this.dyn_dtree),k(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(y+1),this.heap=new r.Buf16(2*p+1),k(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*p+1),k(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 F(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=h,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?A:_,e.adler=2===t.wrap?0:1,t.last_flush=c,o._tr_init(t),u):C(e,d)}function z(e){var t=F(e);return t===u&&function(e){e.window_size=2*e.w_size,k(e.head),e.max_lazy_match=i[e.level].max_lazy,e.good_match=i[e.level].good_length,e.nice_match=i[e.level].nice_length,e.max_chain_length=i[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=b-1,e.match_available=0,e.ins_h=0}(e.state),t}function R(e,t,n,i,o,a){if(!e)return d;var s=1;if(-1===t&&(t=6),i<0?(s=0,i=-i):15<i&&(s=2,i-=16),o<1||9<o||n!==f||i<8||15<i||t<0||9<t||a<0||4<a)return C(e,d);8===i&&(i=9);var l=new P;return(e.state=l).strm=e,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+b-1)/b),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=t,l.strategy=a,l.method=n,z(e)}i=[new E(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(O(e),0===e.lookahead&&t===c)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+n;if((0===e.strstart||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,I(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-w&&(I(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(I(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(I(e,!1),e.strm.avail_out),1)})),new E(4,4,8,4,j),new E(4,5,16,8,j),new E(4,6,32,32,j),new E(4,4,16,16,N),new E(8,16,32,32,N),new E(8,16,128,128,N),new E(8,32,128,256,N),new E(32,128,258,1024,N),new E(32,258,258,4096,N)],n.deflateInit=function(e,t){return R(e,t,f,15,8,0)},n.deflateInit2=R,n.deflateReset=z,n.deflateResetKeep=F,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?d:(e.state.gzhead=t,u):d},n.deflate=function(e,t){var n,r,a,l;if(!e||!e.state||5<t||t<0)return e?C(e,d):d;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||666===r.status&&4!==t)return C(e,0===e.avail_out?-5:d);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===A)if(2===r.wrap)e.adler=0,L(r,31),L(r,139),L(r,8),r.gzhead?(L(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)),L(r,255&r.gzhead.time),L(r,r.gzhead.time>>8&255),L(r,r.gzhead.time>>16&255),L(r,r.gzhead.time>>24&255),L(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),L(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(L(r,255&r.gzhead.extra.length),L(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=s(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(L(r,0),L(r,0),L(r,0),L(r,0),L(r,0),L(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),L(r,3),r.status=_);else{var h=f+(r.w_bits-8<<4)<<8;h|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(h|=32),h+=31-h%31,r.status=_,T(r,h),0!==r.strstart&&(T(r,e.adler>>>16),T(r,65535&e.adler)),e.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&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),S(e),a=r.pending,r.pending!==r.pending_buf_size));)L(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.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&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),S(e),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,L(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.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&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),S(e),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,L(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.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&&S(e),r.pending+2<=r.pending_buf_size&&(L(r,255&e.adler),L(r,e.adler>>8&255),e.adler=0,r.status=_)):r.status=_),0!==r.pending){if(S(e),0===e.avail_out)return r.last_flush=-1,u}else if(0===e.avail_in&&M(t)<=M(n)&&4!==t)return C(e,-5);if(666===r.status&&0!==e.avail_in)return C(e,-5);if(0!==e.avail_in||0!==r.lookahead||t!==c&&666!==r.status){var p=2===r.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(O(e),0===e.lookahead)){if(t===c)return 1;break}if(e.match_length=0,n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(I(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(I(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(I(e,!1),0===e.strm.avail_out)?1:2}(r,t):3===r.strategy?function(e,t){for(var n,i,r,a,s=e.window;;){if(e.lookahead<=x){if(O(e),e.lookahead<=x&&t===c)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=b&&0<e.strstart&&(i=s[r=e.strstart-1])===s[++r]&&i===s[++r]&&i===s[++r]){a=e.strstart+x;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);e.match_length=x-(a-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=b?(n=o._tr_tally(e,1,e.match_length-b),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(I(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(I(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(I(e,!1),0===e.strm.avail_out)?1:2}(r,t):i[r.level].func(r,t);if(3!==p&&4!==p||(r.status=666),1===p||3===p)return 0===e.avail_out&&(r.last_flush=-1),u;if(2===p&&(1===t?o._tr_align(r):5!==t&&(o._tr_stored_block(r,0,0,!1),3===t&&(k(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),S(e),0===e.avail_out))return r.last_flush=-1,u}return 4!==t?u:r.wrap<=0?1:(2===r.wrap?(L(r,255&e.adler),L(r,e.adler>>8&255),L(r,e.adler>>16&255),L(r,e.adler>>24&255),L(r,255&e.total_in),L(r,e.total_in>>8&255),L(r,e.total_in>>16&255),L(r,e.total_in>>24&255)):(T(r,e.adler>>>16),T(r,65535&e.adler)),S(e),0<r.wrap&&(r.wrap=-r.wrap),0!==r.pending?u:1)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==A&&69!==t&&73!==t&&91!==t&&103!==t&&t!==_&&666!==t?C(e,d):(e.state=null,t===_?C(e,-3):u):d},n.deflateSetDictionary=function(e,t){var n,i,o,s,l,c,h,f,p=t.length;if(!e||!e.state)return d;if(2===(s=(n=e.state).wrap)||1===s&&n.status!==A||n.lookahead)return d;for(1===s&&(e.adler=a(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(k(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new r.Buf8(n.w_size),r.arraySet(f,t,p-n.w_size,n.w_size,0),t=f,p=n.w_size),l=e.avail_in,c=e.next_in,h=e.input,e.avail_in=p,e.next_in=0,e.input=t,O(n);n.lookahead>=b;){for(i=n.strstart,o=n.lookahead-(b-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+b-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=b-1,O(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=b-1,n.match_available=0,e.next_in=c,e.input=h,e.avail_in=l,n.wrap=s,u},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){"use strict";t.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(e,t,n){"use strict";t.exports=function(e,t){var n,i,r,o,a,s,l,c,u,d,h,f,p,g,m,v,y,b,x,w,A,_,C,M,k;n=e.state,i=e.next_in,M=e.input,r=i+(e.avail_in-5),o=e.next_out,k=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,d=n.wnext,h=n.window,f=n.hold,p=n.bits,g=n.lencode,m=n.distcode,v=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{p<15&&(f+=M[i++]<<p,p+=8,f+=M[i++]<<p,p+=8),b=g[f&v];t:for(;;){if(f>>>=x=b>>>24,p-=x,0==(x=b>>>16&255))k[o++]=65535&b;else{if(!(16&x)){if(0==(64&x)){b=g[(65535&b)+(f&(1<<x)-1)];continue t}if(32&x){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}w=65535&b,(x&=15)&&(p<x&&(f+=M[i++]<<p,p+=8),w+=f&(1<<x)-1,f>>>=x,p-=x),p<15&&(f+=M[i++]<<p,p+=8,f+=M[i++]<<p,p+=8),b=m[f&y];n:for(;;){if(f>>>=x=b>>>24,p-=x,!(16&(x=b>>>16&255))){if(0==(64&x)){b=m[(65535&b)+(f&(1<<x)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(A=65535&b,p<(x&=15)&&(f+=M[i++]<<p,(p+=8)<x&&(f+=M[i++]<<p,p+=8)),l<(A+=f&(1<<x)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(f>>>=x,p-=x,(x=o-a)<A){if(u<(x=A-x)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(C=h,(_=0)===d){if(_+=c-x,x<w){for(w-=x;k[o++]=h[_++],--x;);_=o-A,C=k}}else if(d<x){if(_+=c+d-x,(x-=d)<w){for(w-=x;k[o++]=h[_++],--x;);if(_=0,d<w){for(w-=x=d;k[o++]=h[_++],--x;);_=o-A,C=k}}}else if(_+=d-x,x<w){for(w-=x;k[o++]=h[_++],--x;);_=o-A,C=k}for(;2<w;)k[o++]=C[_++],k[o++]=C[_++],k[o++]=C[_++],w-=3;w&&(k[o++]=C[_++],1<w&&(k[o++]=C[_++]))}else{for(_=o-A;k[o++]=k[_++],k[o++]=k[_++],k[o++]=k[_++],2<(w-=3););w&&(k[o++]=k[_++],1<w&&(k[o++]=k[_++]))}break}}break}}while(i<r&&o<s);i-=w=p>>3,f&=(1<<(p-=w<<3))-1,e.next_in=i,e.next_out=o,e.avail_in=i<r?r-i+5:5-(i-r),e.avail_out=o<s?s-o+257:257-(o-s),n.hold=f,n.bits=p}},{}],49:[function(e,t,n){"use strict";var i=e("../utils/common"),r=e("./adler32"),o=e("./crc32"),a=e("./inffast"),s=e("./inftrees"),l=0,c=-2,u=1,d=852,h=592;function f(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function p(){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 g(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=u,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new i.Buf32(d),t.distcode=t.distdyn=new i.Buf32(h),t.sane=1,t.back=-1,l):c}function m(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,g(e)):c}function v(e,t){var n,i;return e&&e.state?(i=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?c:(null!==i.window&&i.wbits!==t&&(i.window=null),i.wrap=n,i.wbits=t,m(e))):c}function y(e,t){var n,i;return e?(i=new p,(e.state=i).window=null,(n=v(e,t))!==l&&(e.state=null),n):c}var b,x,w=!0;function A(e){if(w){var t;for(b=new i.Buf32(512),x=new i.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,b,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,x,0,e.work,{bits:5}),w=!1}e.lencode=b,e.lenbits=9,e.distcode=x,e.distbits=5}function _(e,t,n,r){var o,a=e.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,t,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,t,n-r,o,a.wnext),(r-=o)?(i.arraySet(a.window,t,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=m,n.inflateReset2=v,n.inflateResetKeep=g,n.inflateInit=function(e){return y(e,15)},n.inflateInit2=y,n.inflate=function(e,t){var n,d,h,p,g,m,v,y,b,x,w,C,M,k,S,I,L,T,D,O,j,N,E,P,F=0,z=new i.Buf8(4),R=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return c;12===(n=e.state).mode&&(n.mode=13),g=e.next_out,h=e.output,v=e.avail_out,p=e.next_in,d=e.input,m=e.avail_in,y=n.hold,b=n.bits,x=m,w=v,N=l;e:for(;;)switch(n.mode){case u:if(0===n.wrap){n.mode=13;break}for(;b<16;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if(2&n.wrap&&35615===y){z[n.check=0]=255&y,z[1]=y>>>8&255,n.check=o(n.check,z,2,0),b=y=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&y)<<8)+(y>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&y)){e.msg="unknown compression method",n.mode=30;break}if(b-=4,j=8+(15&(y>>>=4)),0===n.wbits)n.wbits=j;else if(j>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<j,e.adler=n.check=1,n.mode=512&y?10:12,b=y=0;break;case 2:for(;b<16;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if(n.flags=y,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=y>>8&1),512&n.flags&&(z[0]=255&y,z[1]=y>>>8&255,n.check=o(n.check,z,2,0)),b=y=0,n.mode=3;case 3:for(;b<32;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}n.head&&(n.head.time=y),512&n.flags&&(z[0]=255&y,z[1]=y>>>8&255,z[2]=y>>>16&255,z[3]=y>>>24&255,n.check=o(n.check,z,4,0)),b=y=0,n.mode=4;case 4:for(;b<16;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}n.head&&(n.head.xflags=255&y,n.head.os=y>>8),512&n.flags&&(z[0]=255&y,z[1]=y>>>8&255,n.check=o(n.check,z,2,0)),b=y=0,n.mode=5;case 5:if(1024&n.flags){for(;b<16;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}n.length=y,n.head&&(n.head.extra_len=y),512&n.flags&&(z[0]=255&y,z[1]=y>>>8&255,n.check=o(n.check,z,2,0)),b=y=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(m<(C=n.length)&&(C=m),C&&(n.head&&(j=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),i.arraySet(n.head.extra,d,p,C,j)),512&n.flags&&(n.check=o(n.check,d,C,p)),m-=C,p+=C,n.length-=C),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===m)break e;for(C=0;j=d[p+C++],n.head&&j&&n.length<65536&&(n.head.name+=String.fromCharCode(j)),j&&C<m;);if(512&n.flags&&(n.check=o(n.check,d,C,p)),m-=C,p+=C,j)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===m)break e;for(C=0;j=d[p+C++],n.head&&j&&n.length<65536&&(n.head.comment+=String.fromCharCode(j)),j&&C<m;);if(512&n.flags&&(n.check=o(n.check,d,C,p)),m-=C,p+=C,j)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;b<16;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if(y!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}b=y=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;b<32;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}e.adler=n.check=f(y),b=y=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=g,e.avail_out=v,e.next_in=p,e.avail_in=m,n.hold=y,n.bits=b,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){y>>>=7&b,b-=7&b,n.mode=27;break}for(;b<3;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}switch(n.last=1&y,b-=1,3&(y>>>=1)){case 0:n.mode=14;break;case 1:if(A(n),n.mode=20,6!==t)break;y>>>=2,b-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}y>>>=2,b-=2;break;case 14:for(y>>>=7&b,b-=7&b;b<32;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if((65535&y)!=(y>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&y,b=y=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(C=n.length){if(m<C&&(C=m),v<C&&(C=v),0===C)break e;i.arraySet(h,d,p,C,g),m-=C,p+=C,v-=C,g+=C,n.length-=C;break}n.mode=12;break;case 17:for(;b<14;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if(n.nlen=257+(31&y),y>>>=5,b-=5,n.ndist=1+(31&y),y>>>=5,b-=5,n.ncode=4+(15&y),y>>>=4,b-=4,286<n.nlen||30<n.ndist){e.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(;b<3;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}n.lens[R[n.have++]]=7&y,y>>>=3,b-=3}for(;n.have<19;)n.lens[R[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,E={bits:n.lenbits},N=s(0,n.lens,0,19,n.lencode,0,n.work,E),n.lenbits=E.bits,N){e.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(;I=(F=n.lencode[y&(1<<n.lenbits)-1])>>>16&255,L=65535&F,!((S=F>>>24)<=b);){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if(L<16)y>>>=S,b-=S,n.lens[n.have++]=L;else{if(16===L){for(P=S+2;b<P;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if(y>>>=S,b-=S,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}j=n.lens[n.have-1],C=3+(3&y),y>>>=2,b-=2}else if(17===L){for(P=S+3;b<P;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}b-=S,j=0,C=3+(7&(y>>>=S)),y>>>=3,b-=3}else{for(P=S+7;b<P;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}b-=S,j=0,C=11+(127&(y>>>=S)),y>>>=7,b-=7}if(n.have+C>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;C--;)n.lens[n.have++]=j}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,E={bits:n.lenbits},N=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,E),n.lenbits=E.bits,N){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,E={bits:n.distbits},N=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,E),n.distbits=E.bits,N){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=m&&258<=v){e.next_out=g,e.avail_out=v,e.next_in=p,e.avail_in=m,n.hold=y,n.bits=b,a(e,w),g=e.next_out,h=e.output,v=e.avail_out,p=e.next_in,d=e.input,m=e.avail_in,y=n.hold,b=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;I=(F=n.lencode[y&(1<<n.lenbits)-1])>>>16&255,L=65535&F,!((S=F>>>24)<=b);){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if(I&&0==(240&I)){for(T=S,D=I,O=L;I=(F=n.lencode[O+((y&(1<<T+D)-1)>>T)])>>>16&255,L=65535&F,!(T+(S=F>>>24)<=b);){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}y>>>=T,b-=T,n.back+=T}if(y>>>=S,b-=S,n.back+=S,n.length=L,0===I){n.mode=26;break}if(32&I){n.back=-1,n.mode=12;break}if(64&I){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&I,n.mode=22;case 22:if(n.extra){for(P=n.extra;b<P;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}n.length+=y&(1<<n.extra)-1,y>>>=n.extra,b-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;I=(F=n.distcode[y&(1<<n.distbits)-1])>>>16&255,L=65535&F,!((S=F>>>24)<=b);){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if(0==(240&I)){for(T=S,D=I,O=L;I=(F=n.distcode[O+((y&(1<<T+D)-1)>>T)])>>>16&255,L=65535&F,!(T+(S=F>>>24)<=b);){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}y>>>=T,b-=T,n.back+=T}if(y>>>=S,b-=S,n.back+=S,64&I){e.msg="invalid distance code",n.mode=30;break}n.offset=L,n.extra=15&I,n.mode=24;case 24:if(n.extra){for(P=n.extra;b<P;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}n.offset+=y&(1<<n.extra)-1,y>>>=n.extra,b-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===v)break e;if(C=w-v,n.offset>C){if((C=n.offset-C)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}M=C>n.wnext?(C-=n.wnext,n.wsize-C):n.wnext-C,C>n.length&&(C=n.length),k=n.window}else k=h,M=g-n.offset,C=n.length;for(v<C&&(C=v),v-=C,n.length-=C;h[g++]=k[M++],--C;);0===n.length&&(n.mode=21);break;case 26:if(0===v)break e;h[g++]=n.length,v--,n.mode=21;break;case 27:if(n.wrap){for(;b<32;){if(0===m)break e;m--,y|=d[p++]<<b,b+=8}if(w-=v,e.total_out+=w,n.total+=w,w&&(e.adler=n.check=n.flags?o(n.check,h,w,g-w):r(n.check,h,w,g-w)),w=v,(n.flags?y:f(y))!==n.check){e.msg="incorrect data check",n.mode=30;break}b=y=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;b<32;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if(y!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}b=y=0}n.mode=29;case 29:N=1;break e;case 30:N=-3;break e;case 31:return-4;default:return c}return e.next_out=g,e.avail_out=v,e.next_in=p,e.avail_in=m,n.hold=y,n.bits=b,(n.wsize||w!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&_(e,e.output,e.next_out,w-e.avail_out)?(n.mode=31,-4):(x-=e.avail_in,w-=e.avail_out,e.total_in+=x,e.total_out+=w,n.total+=w,n.wrap&&w&&(e.adler=n.check=n.flags?o(n.check,h,w,e.next_out-w):r(n.check,h,w,e.next_out-w)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==x&&0===w||4===t)&&N===l&&(N=-5),N)},n.inflateEnd=function(e){if(!e||!e.state)return c;var t=e.state;return t.window&&(t.window=null),e.state=null,l},n.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?c:((n.head=t).done=!1,l):c},n.inflateSetDictionary=function(e,t){var n,i=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?c:11===n.mode&&r(1,t,i,0)!==n.check?-3:_(e,t,i,i)?(n.mode=31,-4):(n.havedict=1,l):c},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){"use strict";var i=e("../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];t.exports=function(e,t,n,l,c,u,d,h){var f,p,g,m,v,y,b,x,w,A=h.bits,_=0,C=0,M=0,k=0,S=0,I=0,L=0,T=0,D=0,O=0,j=null,N=0,E=new i.Buf16(16),P=new i.Buf16(16),F=null,z=0;for(_=0;_<=15;_++)E[_]=0;for(C=0;C<l;C++)E[t[n+C]]++;for(S=A,k=15;1<=k&&0===E[k];k--);if(k<S&&(S=k),0===k)return c[u++]=20971520,c[u++]=20971520,h.bits=1,0;for(M=1;M<k&&0===E[M];M++);for(S<M&&(S=M),_=T=1;_<=15;_++)if(T<<=1,(T-=E[_])<0)return-1;if(0<T&&(0===e||1!==k))return-1;for(P[1]=0,_=1;_<15;_++)P[_+1]=P[_]+E[_];for(C=0;C<l;C++)0!==t[n+C]&&(d[P[t[n+C]]++]=C);if(y=0===e?(j=F=d,19):1===e?(j=r,N-=257,F=o,z-=257,256):(j=a,F=s,-1),_=M,v=u,L=C=O=0,g=-1,m=(D=1<<(I=S))-1,1===e&&852<D||2===e&&592<D)return 1;for(;;){for(b=_-L,w=d[C]<y?(x=0,d[C]):d[C]>y?(x=F[z+d[C]],j[N+d[C]]):(x=96,0),f=1<<_-L,M=p=1<<I;c[v+(O>>L)+(p-=f)]=b<<24|x<<16|w|0,0!==p;);for(f=1<<_-1;O&f;)f>>=1;if(0!==f?(O&=f-1,O+=f):O=0,C++,0==--E[_]){if(_===k)break;_=t[n+d[C]]}if(S<_&&(O&m)!==g){for(0===L&&(L=S),v+=M,T=1<<(I=_-L);I+L<k&&!((T-=E[I+L])<=0);)I++,T<<=1;if(D+=1<<I,1===e&&852<D||2===e&&592<D)return 1;c[g=O&m]=S<<24|I<<16|v-u|0}}return 0!==O&&(c[v+O]=_-L<<24|64<<16|0),h.bits=S,0}},{"../utils/common":41}],51:[function(e,t,n){"use strict";t.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(e,t,n){"use strict";var i=e("../utils/common");function r(e){for(var t=e.length;0<=--t;)e[t]=0}var o=256,a=286,s=30,l=15,c=16,u=[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],d=[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],h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],f=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p=new Array(576);r(p);var g=new Array(60);r(g);var m=new Array(512);r(m);var v=new Array(256);r(v);var y=new Array(29);r(y);var b,x,w,A=new Array(s);function _(e,t,n,i,r){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=e&&e.length}function C(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function M(e){return e<256?m[e]:m[256+(e>>>7)]}function k(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function S(e,t,n){e.bi_valid>c-n?(e.bi_buf|=t<<e.bi_valid&65535,k(e,e.bi_buf),e.bi_buf=t>>c-e.bi_valid,e.bi_valid+=n-c):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function I(e,t,n){S(e,n[2*t],n[2*t+1])}function L(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function T(e,t,n){var i,r,o=new Array(l+1),a=0;for(i=1;i<=l;i++)o[i]=a=a+n[i-1]<<1;for(r=0;r<=t;r++){var s=e[2*r+1];0!==s&&(e[2*r]=L(o[s]++,s))}}function D(e){var t;for(t=0;t<a;t++)e.dyn_ltree[2*t]=0;for(t=0;t<s;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function O(e){8<e.bi_valid?k(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function j(e,t,n,i){var r=2*t,o=2*n;return e[r]<e[o]||e[r]===e[o]&&i[t]<=i[n]}function N(e,t,n){for(var i=e.heap[n],r=n<<1;r<=e.heap_len&&(r<e.heap_len&&j(t,e.heap[r+1],e.heap[r],e.depth)&&r++,!j(t,i,e.heap[r],e.depth));)e.heap[n]=e.heap[r],n=r,r<<=1;e.heap[n]=i}function E(e,t,n){var i,r,a,s,l=0;if(0!==e.last_lit)for(;i=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],r=e.pending_buf[e.l_buf+l],l++,0===i?I(e,r,t):(I(e,(a=v[r])+o+1,t),0!==(s=u[a])&&S(e,r-=y[a],s),I(e,a=M(--i),n),0!==(s=d[a])&&S(e,i-=A[a],s)),l<e.last_lit;);I(e,256,t)}function P(e,t){var n,i,r,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,c=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<c;n++)0!==o[2*n]?(e.heap[++e.heap_len]=u=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(r=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[r]=0,e.opt_len--,s&&(e.static_len-=a[2*r+1]);for(t.max_code=u,n=e.heap_len>>1;1<=n;n--)N(e,o,n);for(r=c;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],N(e,o,1),i=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=i,o[2*r]=o[2*n]+o[2*i],e.depth[r]=(e.depth[n]>=e.depth[i]?e.depth[n]:e.depth[i])+1,o[2*n+1]=o[2*i+1]=r,e.heap[1]=r++,N(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,i,r,o,a,s,c=t.dyn_tree,u=t.max_code,d=t.stat_desc.static_tree,h=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,g=t.stat_desc.max_length,m=0;for(o=0;o<=l;o++)e.bl_count[o]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)g<(o=c[2*c[2*(i=e.heap[n])+1]+1]+1)&&(o=g,m++),c[2*i+1]=o,u<i||(e.bl_count[o]++,a=0,p<=i&&(a=f[i-p]),s=c[2*i],e.opt_len+=s*(o+a),h&&(e.static_len+=s*(d[2*i+1]+a)));if(0!==m){do{for(o=g-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[g]--,m-=2}while(0<m);for(o=g;0!==o;o--)for(i=e.bl_count[o];0!==i;)u<(r=e.heap[--n])||(c[2*r+1]!==o&&(e.opt_len+=(o-c[2*r+1])*c[2*r],c[2*r+1]=o),i--)}}(e,t),T(o,u,e.bl_count)}function F(e,t,n){var i,r,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),t[2*(n+1)+1]=65535,i=0;i<=n;i++)r=a,a=t[2*(i+1)+1],++s<l&&r===a||(s<c?e.bl_tree[2*r]+=s:0!==r?(r!==o&&e.bl_tree[2*r]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,o=r,c=(s=0)===a?(l=138,3):r===a?(l=6,3):(l=7,4))}function z(e,t,n){var i,r,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),i=0;i<=n;i++)if(r=a,a=t[2*(i+1)+1],!(++s<l&&r===a)){if(s<c)for(;I(e,r,e.bl_tree),0!=--s;);else 0!==r?(r!==o&&(I(e,r,e.bl_tree),s--),I(e,16,e.bl_tree),S(e,s-3,2)):s<=10?(I(e,17,e.bl_tree),S(e,s-3,3)):(I(e,18,e.bl_tree),S(e,s-11,7));o=r,c=(s=0)===a?(l=138,3):r===a?(l=6,3):(l=7,4)}}r(A);var R=!1;function B(e,t,n,r){S(e,0+(r?1:0),3),function(e,t,n,r){O(e),k(e,n),k(e,~n),i.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}n._tr_init=function(e){R||(function(){var e,t,n,i,r,o=new Array(l+1);for(i=n=0;i<28;i++)for(y[i]=n,e=0;e<1<<u[i];e++)v[n++]=i;for(v[n-1]=i,i=r=0;i<16;i++)for(A[i]=r,e=0;e<1<<d[i];e++)m[r++]=i;for(r>>=7;i<s;i++)for(A[i]=r<<7,e=0;e<1<<d[i]-7;e++)m[256+r++]=i;for(t=0;t<=l;t++)o[t]=0;for(e=0;e<=143;)p[2*e+1]=8,e++,o[8]++;for(;e<=255;)p[2*e+1]=9,e++,o[9]++;for(;e<=279;)p[2*e+1]=7,e++,o[7]++;for(;e<=287;)p[2*e+1]=8,e++,o[8]++;for(T(p,287,o),e=0;e<s;e++)g[2*e+1]=5,g[2*e]=L(e,5);b=new _(p,u,257,a,l),x=new _(g,d,0,s,l),w=new _(new Array(0),h,0,19,7)}(),R=!0),e.l_desc=new C(e.dyn_ltree,b),e.d_desc=new C(e.dyn_dtree,x),e.bl_desc=new C(e.bl_tree,w),e.bi_buf=0,e.bi_valid=0,D(e)},n._tr_stored_block=B,n._tr_flush_block=function(e,t,n,i){var r,a,s=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<o;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),P(e,e.l_desc),P(e,e.d_desc),s=function(e){var t;for(F(e,e.dyn_ltree,e.l_desc.max_code),F(e,e.dyn_dtree,e.d_desc.max_code),P(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*f[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),r=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=r&&(r=a)):r=a=n+5,n+4<=r&&-1!==t?B(e,t,n,i):4===e.strategy||a===r?(S(e,2+(i?1:0),3),E(e,p,g)):(S(e,4+(i?1:0),3),function(e,t,n,i){var r;for(S(e,t-257,5),S(e,n-1,5),S(e,i-4,4),r=0;r<i;r++)S(e,e.bl_tree[2*f[r]+1],3);z(e,e.dyn_ltree,t-1),z(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),E(e,e.dyn_ltree,e.dyn_dtree)),D(e),i&&O(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(v[n]+o+1)]++,e.dyn_dtree[2*M(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){S(e,2,3),I(e,256,p),function(e){16===e.bi_valid?(k(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,n){"use strict";t.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(e,t,i){(function(e){!function(e,t){"use strict";if(!e.setImmediate){var n,i,r,o,a=1,s={},l=!1,c=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,n="[object process]"==={}.toString.call(e.process)?function(e){process.nextTick((function(){h(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(o="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",f,!1):e.attachEvent("onmessage",f),function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((r=new MessageChannel).port1.onmessage=function(e){h(e.data)},function(e){r.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(i=c.documentElement,function(e){var t=c.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):function(e){setTimeout(h,0,e)},u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),i=0;i<t.length;i++)t[i]=arguments[i+1];var r={callback:e,args:t};return s[a]=r,n(a),a++},u.clearImmediate=d}function d(e){delete s[e]}function h(e){if(l)setTimeout(h,0,e);else{var n=s[e];if(n){l=!0;try{!function(e){var n=e.callback,i=e.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(t,i)}}(n)}finally{d(e),l=!1}}}}function f(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&h(+t.data.slice(o.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)},437:(e,t,n)=>{var i,r;!function(){var o,a,s,l,c,u,d,h,f,p,g,m,v,y,b,x,w,A,_,C,M,k,S,I,L,T,D,O,j,N,E=function(e){var t=new E.Builder;return t.pipeline.add(E.trimmer,E.stopWordFilter,E.stemmer),t.searchPipeline.add(E.stemmer),e.call(t,t),t.build()};E.version="2.3.9",E.utils={},E.utils.warn=(o=this,function(e){o.console&&console.warn&&console.warn(e)}),E.utils.asString=function(e){return null==e?"":e.toString()},E.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),n=Object.keys(e),i=0;i<n.length;i++){var r=n[i],o=e[r];if(Array.isArray(o))t[r]=o.slice();else{if("string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o)throw new TypeError("clone is not deep and does not support nested objects");t[r]=o}}return t},E.FieldRef=function(e,t,n){this.docRef=e,this.fieldName=t,this._stringValue=n},E.FieldRef.joiner="/",E.FieldRef.fromString=function(e){var t=e.indexOf(E.FieldRef.joiner);if(-1===t)throw"malformed field ref string";var n=e.slice(0,t),i=e.slice(t+1);return new E.FieldRef(i,n,e)},E.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+E.FieldRef.joiner+this.docRef),this._stringValue},E.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var t=0;t<this.length;t++)this.elements[e[t]]=!0}else this.length=0},E.Set.complete={intersect:function(e){return e},union:function(){return this},contains:function(){return!0}},E.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},E.Set.prototype.contains=function(e){return!!this.elements[e]},E.Set.prototype.intersect=function(e){var t,n,i,r=[];if(e===E.Set.complete)return this;if(e===E.Set.empty)return e;this.length<e.length?(t=this,n=e):(t=e,n=this),i=Object.keys(t.elements);for(var o=0;o<i.length;o++){var a=i[o];a in n.elements&&r.push(a)}return new E.Set(r)},E.Set.prototype.union=function(e){return e===E.Set.complete?E.Set.complete:e===E.Set.empty?this:new E.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},E.idf=function(e,t){var n=0;for(var i in e)"_index"!=i&&(n+=Object.keys(e[i]).length);var r=(t-n+.5)/(n+.5);return Math.log(1+Math.abs(r))},E.Token=function(e,t){this.str=e||"",this.metadata=t||{}},E.Token.prototype.toString=function(){return this.str},E.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},E.Token.prototype.clone=function(e){return e=e||function(e){return e},new E.Token(e(this.str,this.metadata),this.metadata)},E.tokenizer=function(e,t){if(null==e||null==e)return[];if(Array.isArray(e))return e.map((function(e){return new E.Token(E.utils.asString(e).toLowerCase(),E.utils.clone(t))}));for(var n=e.toString().toLowerCase(),i=n.length,r=[],o=0,a=0;o<=i;o++){var s=o-a;if(n.charAt(o).match(E.tokenizer.separator)||o==i){if(s>0){var l=E.utils.clone(t)||{};l.position=[a,s],l.index=r.length,r.push(new E.Token(n.slice(a,o),l))}a=o+1}}return r},E.tokenizer.separator=/[\s\-]+/,E.Pipeline=function(){this._stack=[]},E.Pipeline.registeredFunctions=Object.create(null),E.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&E.utils.warn("Overwriting existing registered function: "+t),e.label=t,E.Pipeline.registeredFunctions[e.label]=e},E.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||E.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},E.Pipeline.load=function(e){var t=new E.Pipeline;return e.forEach((function(e){var n=E.Pipeline.registeredFunctions[e];if(!n)throw new Error("Cannot load unregistered function: "+e);t.add(n)})),t},E.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach((function(e){E.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)}),this)},E.Pipeline.prototype.after=function(e,t){E.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");n+=1,this._stack.splice(n,0,t)},E.Pipeline.prototype.before=function(e,t){E.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");this._stack.splice(n,0,t)},E.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},E.Pipeline.prototype.run=function(e){for(var t=this._stack.length,n=0;n<t;n++){for(var i=this._stack[n],r=[],o=0;o<e.length;o++){var a=i(e[o],o,e);if(null!=a&&""!==a)if(Array.isArray(a))for(var s=0;s<a.length;s++)r.push(a[s]);else r.push(a)}e=r}return e},E.Pipeline.prototype.runString=function(e,t){var n=new E.Token(e,t);return this.run([n]).map((function(e){return e.toString()}))},E.Pipeline.prototype.reset=function(){this._stack=[]},E.Pipeline.prototype.toJSON=function(){return this._stack.map((function(e){return E.Pipeline.warnIfFunctionNotRegistered(e),e.label}))},E.Vector=function(e){this._magnitude=0,this.elements=e||[]},E.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var t=0,n=this.elements.length/2,i=n-t,r=Math.floor(i/2),o=this.elements[2*r];i>1&&(o<e&&(t=r),o>e&&(n=r),o!=e);)i=n-t,r=t+Math.floor(i/2),o=this.elements[2*r];return o==e||o>e?2*r:o<e?2*(r+1):void 0},E.Vector.prototype.insert=function(e,t){this.upsert(e,t,(function(){throw"duplicate index"}))},E.Vector.prototype.upsert=function(e,t,n){this._magnitude=0;var i=this.positionForIndex(e);this.elements[i]==e?this.elements[i+1]=n(this.elements[i+1],t):this.elements.splice(i,0,e,t)},E.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,t=this.elements.length,n=1;n<t;n+=2){var i=this.elements[n];e+=i*i}return this._magnitude=Math.sqrt(e)},E.Vector.prototype.dot=function(e){for(var t=0,n=this.elements,i=e.elements,r=n.length,o=i.length,a=0,s=0,l=0,c=0;l<r&&c<o;)(a=n[l])<(s=i[c])?l+=2:a>s?c+=2:a==s&&(t+=n[l+1]*i[c+1],l+=2,c+=2);return t},E.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},E.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,n=0;t<this.elements.length;t+=2,n++)e[n]=this.elements[t];return e},E.Vector.prototype.toJSON=function(){return this.elements},E.stemmer=(a={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},s={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},d="^("+(c="[^aeiou][^aeiouy]*")+")?"+(u=(l="[aeiouy]")+"[aeiou]*")+c+"("+u+")?$",h="^("+c+")?"+u+c+u+c,f="^("+c+")?"+l,p=new RegExp("^("+c+")?"+u+c),g=new RegExp(h),m=new RegExp(d),v=new RegExp(f),y=/^(.+?)(ss|i)es$/,b=/^(.+?)([^s])s$/,x=/^(.+?)eed$/,w=/^(.+?)(ed|ing)$/,A=/.$/,_=/(at|bl|iz)$/,C=new RegExp("([^aeiouylsz])\\1$"),M=new RegExp("^"+c+l+"[^aeiouwxy]$"),k=/^(.+?[^aeiou])y$/,S=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,I=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,L=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,T=/^(.+?)(s|t)(ion)$/,D=/^(.+?)e$/,O=/ll$/,j=new RegExp("^"+c+l+"[^aeiouwxy]$"),N=function(e){var t,n,i,r,o,l,c;if(e.length<3)return e;if("y"==(i=e.substr(0,1))&&(e=i.toUpperCase()+e.substr(1)),o=b,(r=y).test(e)?e=e.replace(r,"$1$2"):o.test(e)&&(e=e.replace(o,"$1$2")),o=w,(r=x).test(e)){var u=r.exec(e);(r=p).test(u[1])&&(r=A,e=e.replace(r,""))}else o.test(e)&&(t=(u=o.exec(e))[1],(o=v).test(t)&&(l=C,c=M,(o=_).test(e=t)?e+="e":l.test(e)?(r=A,e=e.replace(r,"")):c.test(e)&&(e+="e")));return(r=k).test(e)&&(e=(t=(u=r.exec(e))[1])+"i"),(r=S).test(e)&&(t=(u=r.exec(e))[1],n=u[2],(r=p).test(t)&&(e=t+a[n])),(r=I).test(e)&&(t=(u=r.exec(e))[1],n=u[2],(r=p).test(t)&&(e=t+s[n])),o=T,(r=L).test(e)?(t=(u=r.exec(e))[1],(r=g).test(t)&&(e=t)):o.test(e)&&(t=(u=o.exec(e))[1]+u[2],(o=g).test(t)&&(e=t)),(r=D).test(e)&&(t=(u=r.exec(e))[1],o=m,l=j,((r=g).test(t)||o.test(t)&&!l.test(t))&&(e=t)),o=g,(r=O).test(e)&&o.test(e)&&(r=A,e=e.replace(r,"")),"y"==i&&(e=i.toLowerCase()+e.substr(1)),e},function(e){return e.update(N)}),E.Pipeline.registerFunction(E.stemmer,"stemmer"),E.generateStopWordFilter=function(e){var t=e.reduce((function(e,t){return e[t]=t,e}),{});return function(e){if(e&&t[e.toString()]!==e.toString())return e}},E.stopWordFilter=E.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),E.Pipeline.registerFunction(E.stopWordFilter,"stopWordFilter"),E.trimmer=function(e){return e.update((function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")}))},E.Pipeline.registerFunction(E.trimmer,"trimmer"),E.TokenSet=function(){this.final=!1,this.edges={},this.id=E.TokenSet._nextId,E.TokenSet._nextId+=1},E.TokenSet._nextId=1,E.TokenSet.fromArray=function(e){for(var t=new E.TokenSet.Builder,n=0,i=e.length;n<i;n++)t.insert(e[n]);return t.finish(),t.root},E.TokenSet.fromClause=function(e){return"editDistance"in e?E.TokenSet.fromFuzzyString(e.term,e.editDistance):E.TokenSet.fromString(e.term)},E.TokenSet.fromFuzzyString=function(e,t){for(var n=new E.TokenSet,i=[{node:n,editsRemaining:t,str:e}];i.length;){var r=i.pop();if(r.str.length>0){var o,a=r.str.charAt(0);a in r.node.edges?o=r.node.edges[a]:(o=new E.TokenSet,r.node.edges[a]=o),1==r.str.length&&(o.final=!0),i.push({node:o,editsRemaining:r.editsRemaining,str:r.str.slice(1)})}if(0!=r.editsRemaining){if("*"in r.node.edges)var s=r.node.edges["*"];else s=new E.TokenSet,r.node.edges["*"]=s;if(0==r.str.length&&(s.final=!0),i.push({node:s,editsRemaining:r.editsRemaining-1,str:r.str}),r.str.length>1&&i.push({node:r.node,editsRemaining:r.editsRemaining-1,str:r.str.slice(1)}),1==r.str.length&&(r.node.final=!0),r.str.length>=1){if("*"in r.node.edges)var l=r.node.edges["*"];else l=new E.TokenSet,r.node.edges["*"]=l;1==r.str.length&&(l.final=!0),i.push({node:l,editsRemaining:r.editsRemaining-1,str:r.str.slice(1)})}if(r.str.length>1){var c,u=r.str.charAt(0),d=r.str.charAt(1);d in r.node.edges?c=r.node.edges[d]:(c=new E.TokenSet,r.node.edges[d]=c),1==r.str.length&&(c.final=!0),i.push({node:c,editsRemaining:r.editsRemaining-1,str:u+r.str.slice(2)})}}}return n},E.TokenSet.fromString=function(e){for(var t=new E.TokenSet,n=t,i=0,r=e.length;i<r;i++){var o=e[i],a=i==r-1;if("*"==o)t.edges[o]=t,t.final=a;else{var s=new E.TokenSet;s.final=a,t.edges[o]=s,t=s}}return n},E.TokenSet.prototype.toArray=function(){for(var e=[],t=[{prefix:"",node:this}];t.length;){var n=t.pop(),i=Object.keys(n.node.edges),r=i.length;n.node.final&&(n.prefix.charAt(0),e.push(n.prefix));for(var o=0;o<r;o++){var a=i[o];t.push({prefix:n.prefix.concat(a),node:n.node.edges[a]})}}return e},E.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",t=Object.keys(this.edges).sort(),n=t.length,i=0;i<n;i++){var r=t[i];e=e+r+this.edges[r].id}return e},E.TokenSet.prototype.intersect=function(e){for(var t=new E.TokenSet,n=void 0,i=[{qNode:e,output:t,node:this}];i.length;){n=i.pop();for(var r=Object.keys(n.qNode.edges),o=r.length,a=Object.keys(n.node.edges),s=a.length,l=0;l<o;l++)for(var c=r[l],u=0;u<s;u++){var d=a[u];if(d==c||"*"==c){var h=n.node.edges[d],f=n.qNode.edges[c],p=h.final&&f.final,g=void 0;d in n.output.edges?(g=n.output.edges[d]).final=g.final||p:((g=new E.TokenSet).final=p,n.output.edges[d]=g),i.push({qNode:f,output:g,node:h})}}}return t},E.TokenSet.Builder=function(){this.previousWord="",this.root=new E.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},E.TokenSet.Builder.prototype.insert=function(e){var t,n=0;if(e<this.previousWord)throw new Error("Out of order word insertion");for(var i=0;i<e.length&&i<this.previousWord.length&&e[i]==this.previousWord[i];i++)n++;for(this.minimize(n),t=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child,i=n;i<e.length;i++){var r=new E.TokenSet,o=e[i];t.edges[o]=r,this.uncheckedNodes.push({parent:t,char:o,child:r}),t=r}t.final=!0,this.previousWord=e},E.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},E.TokenSet.Builder.prototype.minimize=function(e){for(var t=this.uncheckedNodes.length-1;t>=e;t--){var n=this.uncheckedNodes[t],i=n.child.toString();i in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[i]:(n.child._str=i,this.minimizedNodes[i]=n.child),this.uncheckedNodes.pop()}},E.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},E.Index.prototype.search=function(e){return this.query((function(t){new E.QueryParser(e,t).parse()}))},E.Index.prototype.query=function(e){for(var t=new E.Query(this.fields),n=Object.create(null),i=Object.create(null),r=Object.create(null),o=Object.create(null),a=Object.create(null),s=0;s<this.fields.length;s++)i[this.fields[s]]=new E.Vector;for(e.call(t,t),s=0;s<t.clauses.length;s++){var l,c=t.clauses[s],u=E.Set.empty;l=c.usePipeline?this.pipeline.runString(c.term,{fields:c.fields}):[c.term];for(var d=0;d<l.length;d++){var h=l[d];c.term=h;var f=E.TokenSet.fromClause(c),p=this.tokenSet.intersect(f).toArray();if(0===p.length&&c.presence===E.Query.presence.REQUIRED){for(var g=0;g<c.fields.length;g++)o[D=c.fields[g]]=E.Set.empty;break}for(var m=0;m<p.length;m++){var v=p[m],y=this.invertedIndex[v],b=y._index;for(g=0;g<c.fields.length;g++){var x=y[D=c.fields[g]],w=Object.keys(x),A=v+"/"+D,_=new E.Set(w);if(c.presence==E.Query.presence.REQUIRED&&(u=u.union(_),void 0===o[D]&&(o[D]=E.Set.complete)),c.presence!=E.Query.presence.PROHIBITED){if(i[D].upsert(b,c.boost,(function(e,t){return e+t})),!r[A]){for(var C=0;C<w.length;C++){var M,k=w[C],S=new E.FieldRef(k,D),I=x[k];void 0===(M=n[S])?n[S]=new E.MatchData(v,D,I):M.add(v,D,I)}r[A]=!0}}else void 0===a[D]&&(a[D]=E.Set.empty),a[D]=a[D].union(_)}}}if(c.presence===E.Query.presence.REQUIRED)for(g=0;g<c.fields.length;g++)o[D=c.fields[g]]=o[D].intersect(u)}var L=E.Set.complete,T=E.Set.empty;for(s=0;s<this.fields.length;s++){var D;o[D=this.fields[s]]&&(L=L.intersect(o[D])),a[D]&&(T=T.union(a[D]))}var O=Object.keys(n),j=[],N=Object.create(null);if(t.isNegated())for(O=Object.keys(this.fieldVectors),s=0;s<O.length;s++){S=O[s];var P=E.FieldRef.fromString(S);n[S]=new E.MatchData}for(s=0;s<O.length;s++){var F=(P=E.FieldRef.fromString(O[s])).docRef;if(L.contains(F)&&!T.contains(F)){var z,R=this.fieldVectors[P],B=i[P.fieldName].similarity(R);if(void 0!==(z=N[F]))z.score+=B,z.matchData.combine(n[P]);else{var W={ref:F,score:B,matchData:n[P]};N[F]=W,j.push(W)}}}return j.sort((function(e,t){return t.score-e.score}))},E.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map((function(e){return[e,this.invertedIndex[e]]}),this),t=Object.keys(this.fieldVectors).map((function(e){return[e,this.fieldVectors[e].toJSON()]}),this);return{version:E.version,fields:this.fields,fieldVectors:t,invertedIndex:e,pipeline:this.pipeline.toJSON()}},E.Index.load=function(e){var t={},n={},i=e.fieldVectors,r=Object.create(null),o=e.invertedIndex,a=new E.TokenSet.Builder,s=E.Pipeline.load(e.pipeline);e.version!=E.version&&E.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+E.version+"' does not match serialized index '"+e.version+"'");for(var l=0;l<i.length;l++){var c=(d=i[l])[0],u=d[1];n[c]=new E.Vector(u)}for(l=0;l<o.length;l++){var d,h=(d=o[l])[0],f=d[1];a.insert(h),r[h]=f}return a.finish(),t.fields=e.fields,t.fieldVectors=n,t.invertedIndex=r,t.tokenSet=a.root,t.pipeline=s,new E.Index(t)},E.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=E.tokenizer,this.pipeline=new E.Pipeline,this.searchPipeline=new E.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},E.Builder.prototype.ref=function(e){this._ref=e},E.Builder.prototype.field=function(e,t){if(/\//.test(e))throw new RangeError("Field '"+e+"' contains illegal character '/'");this._fields[e]=t||{}},E.Builder.prototype.b=function(e){this._b=e<0?0:e>1?1:e},E.Builder.prototype.k1=function(e){this._k1=e},E.Builder.prototype.add=function(e,t){var n=e[this._ref],i=Object.keys(this._fields);this._documents[n]=t||{},this.documentCount+=1;for(var r=0;r<i.length;r++){var o=i[r],a=this._fields[o].extractor,s=a?a(e):e[o],l=this.tokenizer(s,{fields:[o]}),c=this.pipeline.run(l),u=new E.FieldRef(n,o),d=Object.create(null);this.fieldTermFrequencies[u]=d,this.fieldLengths[u]=0,this.fieldLengths[u]+=c.length;for(var h=0;h<c.length;h++){var f=c[h];if(null==d[f]&&(d[f]=0),d[f]+=1,null==this.invertedIndex[f]){var p=Object.create(null);p._index=this.termIndex,this.termIndex+=1;for(var g=0;g<i.length;g++)p[i[g]]=Object.create(null);this.invertedIndex[f]=p}null==this.invertedIndex[f][o][n]&&(this.invertedIndex[f][o][n]=Object.create(null));for(var m=0;m<this.metadataWhitelist.length;m++){var v=this.metadataWhitelist[m],y=f.metadata[v];null==this.invertedIndex[f][o][n][v]&&(this.invertedIndex[f][o][n][v]=[]),this.invertedIndex[f][o][n][v].push(y)}}}},E.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),t=e.length,n={},i={},r=0;r<t;r++){var o=E.FieldRef.fromString(e[r]),a=o.fieldName;i[a]||(i[a]=0),i[a]+=1,n[a]||(n[a]=0),n[a]+=this.fieldLengths[o]}var s=Object.keys(this._fields);for(r=0;r<s.length;r++){var l=s[r];n[l]=n[l]/i[l]}this.averageFieldLength=n},E.Builder.prototype.createFieldVectors=function(){for(var e={},t=Object.keys(this.fieldTermFrequencies),n=t.length,i=Object.create(null),r=0;r<n;r++){for(var o=E.FieldRef.fromString(t[r]),a=o.fieldName,s=this.fieldLengths[o],l=new E.Vector,c=this.fieldTermFrequencies[o],u=Object.keys(c),d=u.length,h=this._fields[a].boost||1,f=this._documents[o.docRef].boost||1,p=0;p<d;p++){var g,m,v,y=u[p],b=c[y],x=this.invertedIndex[y]._index;void 0===i[y]?(g=E.idf(this.invertedIndex[y],this.documentCount),i[y]=g):g=i[y],m=g*((this._k1+1)*b)/(this._k1*(1-this._b+this._b*(s/this.averageFieldLength[a]))+b),m*=h,m*=f,v=Math.round(1e3*m)/1e3,l.insert(x,v)}e[o]=l}this.fieldVectors=e},E.Builder.prototype.createTokenSet=function(){this.tokenSet=E.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},E.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new E.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},E.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},E.MatchData=function(e,t,n){for(var i=Object.create(null),r=Object.keys(n||{}),o=0;o<r.length;o++){var a=r[o];i[a]=n[a].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=i)},E.MatchData.prototype.combine=function(e){for(var t=Object.keys(e.metadata),n=0;n<t.length;n++){var i=t[n],r=Object.keys(e.metadata[i]);null==this.metadata[i]&&(this.metadata[i]=Object.create(null));for(var o=0;o<r.length;o++){var a=r[o],s=Object.keys(e.metadata[i][a]);null==this.metadata[i][a]&&(this.metadata[i][a]=Object.create(null));for(var l=0;l<s.length;l++){var c=s[l];null==this.metadata[i][a][c]?this.metadata[i][a][c]=e.metadata[i][a][c]:this.metadata[i][a][c]=this.metadata[i][a][c].concat(e.metadata[i][a][c])}}}},E.MatchData.prototype.add=function(e,t,n){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][t]=n);if(t in this.metadata[e])for(var i=Object.keys(n),r=0;r<i.length;r++){var o=i[r];o in this.metadata[e][t]?this.metadata[e][t][o]=this.metadata[e][t][o].concat(n[o]):this.metadata[e][t][o]=n[o]}else this.metadata[e][t]=n},E.Query=function(e){this.clauses=[],this.allFields=e},E.Query.wildcard=new String("*"),E.Query.wildcard.NONE=0,E.Query.wildcard.LEADING=1,E.Query.wildcard.TRAILING=2,E.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},E.Query.prototype.clause=function(e){return"fields"in e||(e.fields=this.allFields),"boost"in e||(e.boost=1),"usePipeline"in e||(e.usePipeline=!0),"wildcard"in e||(e.wildcard=E.Query.wildcard.NONE),e.wildcard&E.Query.wildcard.LEADING&&e.term.charAt(0)!=E.Query.wildcard&&(e.term="*"+e.term),e.wildcard&E.Query.wildcard.TRAILING&&e.term.slice(-1)!=E.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=E.Query.presence.OPTIONAL),this.clauses.push(e),this},E.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=E.Query.presence.PROHIBITED)return!1;return!0},E.Query.prototype.term=function(e,t){if(Array.isArray(e))return e.forEach((function(e){this.term(e,E.utils.clone(t))}),this),this;var n=t||{};return n.term=e.toString(),this.clause(n),this},E.QueryParseError=function(e,t,n){this.name="QueryParseError",this.message=e,this.start=t,this.end=n},E.QueryParseError.prototype=new Error,E.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},E.QueryLexer.prototype.run=function(){for(var e=E.QueryLexer.lexText;e;)e=e(this)},E.QueryLexer.prototype.sliceString=function(){for(var e=[],t=this.start,n=this.pos,i=0;i<this.escapeCharPositions.length;i++)n=this.escapeCharPositions[i],e.push(this.str.slice(t,n)),t=n+1;return e.push(this.str.slice(t,this.pos)),this.escapeCharPositions.length=0,e.join("")},E.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},E.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},E.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return E.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},E.QueryLexer.prototype.width=function(){return this.pos-this.start},E.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},E.QueryLexer.prototype.backup=function(){this.pos-=1},E.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=E.QueryLexer.EOS&&this.backup()},E.QueryLexer.prototype.more=function(){return this.pos<this.length},E.QueryLexer.EOS="EOS",E.QueryLexer.FIELD="FIELD",E.QueryLexer.TERM="TERM",E.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",E.QueryLexer.BOOST="BOOST",E.QueryLexer.PRESENCE="PRESENCE",E.QueryLexer.lexField=function(e){return e.backup(),e.emit(E.QueryLexer.FIELD),e.ignore(),E.QueryLexer.lexText},E.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(E.QueryLexer.TERM)),e.ignore(),e.more())return E.QueryLexer.lexText},E.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(E.QueryLexer.EDIT_DISTANCE),E.QueryLexer.lexText},E.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(E.QueryLexer.BOOST),E.QueryLexer.lexText},E.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(E.QueryLexer.TERM)},E.QueryLexer.termSeparator=E.tokenizer.separator,E.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==E.QueryLexer.EOS)return E.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return E.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(E.QueryLexer.TERM),E.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(E.QueryLexer.TERM),E.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(E.QueryLexer.PRESENCE),E.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(E.QueryLexer.PRESENCE),E.QueryLexer.lexText;if(t.match(E.QueryLexer.termSeparator))return E.QueryLexer.lexTerm}else e.escapeCharacter()}},E.QueryParser=function(e,t){this.lexer=new E.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},E.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=E.QueryParser.parseClause;e;)e=e(this);return this.query},E.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},E.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},E.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},E.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case E.QueryLexer.PRESENCE:return E.QueryParser.parsePresence;case E.QueryLexer.FIELD:return E.QueryParser.parseField;case E.QueryLexer.TERM:return E.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(n+=" with value '"+t.str+"'"),new E.QueryParseError(n,t.start,t.end)}},E.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=E.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=E.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+t.str+"'";throw new E.QueryParseError(n,t.start,t.end)}var i=e.peekLexeme();if(null==i)throw n="expecting term or field, found nothing",new E.QueryParseError(n,t.start,t.end);switch(i.type){case E.QueryLexer.FIELD:return E.QueryParser.parseField;case E.QueryLexer.TERM:return E.QueryParser.parseTerm;default:throw n="expecting term or field, found '"+i.type+"'",new E.QueryParseError(n,i.start,i.end)}}},E.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var n=e.query.allFields.map((function(e){return"'"+e+"'"})).join(", "),i="unrecognised field '"+t.str+"', possible fields: "+n;throw new E.QueryParseError(i,t.start,t.end)}e.currentClause.fields=[t.str];var r=e.peekLexeme();if(null==r)throw i="expecting term, found nothing",new E.QueryParseError(i,t.start,t.end);if(r.type===E.QueryLexer.TERM)return E.QueryParser.parseTerm;throw i="expecting term, found '"+r.type+"'",new E.QueryParseError(i,r.start,r.end)}},E.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var n=e.peekLexeme();if(null!=n)switch(n.type){case E.QueryLexer.TERM:return e.nextClause(),E.QueryParser.parseTerm;case E.QueryLexer.FIELD:return e.nextClause(),E.QueryParser.parseField;case E.QueryLexer.EDIT_DISTANCE:return E.QueryParser.parseEditDistance;case E.QueryLexer.BOOST:return E.QueryParser.parseBoost;case E.QueryLexer.PRESENCE:return e.nextClause(),E.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+n.type+"'";throw new E.QueryParseError(i,n.start,n.end)}else e.nextClause()}},E.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var i="edit distance must be numeric";throw new E.QueryParseError(i,t.start,t.end)}e.currentClause.editDistance=n;var r=e.peekLexeme();if(null!=r)switch(r.type){case E.QueryLexer.TERM:return e.nextClause(),E.QueryParser.parseTerm;case E.QueryLexer.FIELD:return e.nextClause(),E.QueryParser.parseField;case E.QueryLexer.EDIT_DISTANCE:return E.QueryParser.parseEditDistance;case E.QueryLexer.BOOST:return E.QueryParser.parseBoost;case E.QueryLexer.PRESENCE:return e.nextClause(),E.QueryParser.parsePresence;default:throw i="Unexpected lexeme type '"+r.type+"'",new E.QueryParseError(i,r.start,r.end)}else e.nextClause()}},E.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var i="boost must be numeric";throw new E.QueryParseError(i,t.start,t.end)}e.currentClause.boost=n;var r=e.peekLexeme();if(null!=r)switch(r.type){case E.QueryLexer.TERM:return e.nextClause(),E.QueryParser.parseTerm;case E.QueryLexer.FIELD:return e.nextClause(),E.QueryParser.parseField;case E.QueryLexer.EDIT_DISTANCE:return E.QueryParser.parseEditDistance;case E.QueryLexer.BOOST:return E.QueryParser.parseBoost;case E.QueryLexer.PRESENCE:return e.nextClause(),E.QueryParser.parsePresence;default:throw i="Unexpected lexeme type '"+r.type+"'",new E.QueryParseError(i,r.start,r.end)}else e.nextClause()}},void 0===(r="function"==typeof(i=function(){return E})?i.call(t,n,t,e):i)||(e.exports=r)}()},34:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,n;function i(){return t.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(a(e,t))return!1;return!0}function l(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,i=[],r=e.length;for(n=0;n<r;++n)i.push(t(e[n],n));return i}function h(e,t){for(var n in t)a(t,n)&&(e[n]=t[n]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,i){return jt(e,t,n,i,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function g(e){if(null==e._isValid){var t=p(e),i=n.call(t.parsedDateParts,(function(e){return null!=e})),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function m(e){var t=f(NaN);return null!=e?h(p(t),e):p(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),i=n.length>>>0;for(t=0;t<i;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var v=i.momentProperties=[],y=!1;function b(e,t){var n,i,r,o=v.length;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=p(t)),l(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)l(r=t[i=v[n]])||(e[i]=r);return e}function x(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,i.updateOffset(this),y=!1)}function w(e){return e instanceof x||null!=e&&null!=e._isAMomentObject}function A(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function _(e,t){var n=!0;return h((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){var r,o,s,l=[],c=arguments.length;for(o=0;o<c;o++){if(r="","object"==typeof arguments[o]){for(s in r+="\n["+o+"] ",arguments[0])a(arguments[0],s)&&(r+=s+": "+arguments[0][s]+", ");r=r.slice(0,-2)}else r=arguments[o];l.push(r)}A(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var C,M={};function k(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),M[e]||(A(t),M[e]=!0)}function S(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function I(e,t){var n,i=h({},e);for(n in t)a(t,n)&&(o(e[n])&&o(t[n])?(i[n]={},h(i[n],e[n]),h(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)a(e,n)&&!a(t,n)&&o(e[n])&&(i[n]=h({},i[n]));return i}function L(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,C=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};function T(e,t,n){var i=""+Math.abs(e),r=t-i.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var D=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,O=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},N={};function E(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(N[e]=r),t&&(N[t[0]]=function(){return T(r.apply(this,arguments),t[1],t[2])}),n&&(N[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function P(e,t){return e.isValid()?(t=F(t,e.localeData()),j[t]=j[t]||function(e){var t,n,i,r=e.match(D);for(t=0,n=r.length;t<n;t++)N[r[t]]?r[t]=N[r[t]]:r[t]=(i=r[t]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(t){var i,o="";for(i=0;i<n;i++)o+=S(r[i])?r[i].call(t,e):r[i];return o}}(t),j[t](e)):e.localeData().invalidDate()}function F(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(O.lastIndex=0;n>=0&&O.test(e);)e=e.replace(O,i),O.lastIndex=0,n-=1;return e}var z={};function R(e,t){var n=e.toLowerCase();z[n]=z[n+"s"]=z[t]=e}function B(e){return"string"==typeof e?z[e]||z[e.toLowerCase()]:void 0}function W(e){var t,n,i={};for(n in e)a(e,n)&&(t=B(n))&&(i[t]=e[n]);return i}var Y={};function U(e,t){Y[e]=t}function H(e){return e%4==0&&e%100!=0||e%400==0}function V(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Z(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=V(t)),n}function G(e,t){return function(n){return null!=n?(J(this,e,n),i.updateOffset(this,t),this):Q(this,e)}}function Q(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function J(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&H(e.year())&&1===e.month()&&29===e.date()?(n=Z(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Te(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var q,X=/\d/,K=/\d\d/,$=/\d{3}/,ee=/\d{4}/,te=/[+-]?\d{6}/,ne=/\d\d?/,ie=/\d\d\d\d?/,re=/\d\d\d\d\d\d?/,oe=/\d{1,3}/,ae=/\d{1,4}/,se=/[+-]?\d{1,6}/,le=/\d+/,ce=/[+-]?\d+/,ue=/Z|[+-]\d\d:?\d\d/gi,de=/Z|[+-]\d\d(?::?\d\d)?/gi,he=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function fe(e,t,n){q[e]=S(t)?t:function(e,i){return e&&n?n:t}}function pe(e,t){return a(q,e)?q[e](t._strict,t._locale):new RegExp(ge(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,i,r){return t||n||i||r}))))}function ge(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}q={};var me={};function ve(e,t){var n,i,r=t;for("string"==typeof e&&(e=[e]),c(t)&&(r=function(e,n){n[t]=Z(e)}),i=e.length,n=0;n<i;n++)me[e[n]]=r}function ye(e,t){ve(e,(function(e,n,i,r){i._w=i._w||{},t(e,i._w,i,r)}))}function be(e,t,n){null!=t&&a(me,e)&&me[e](t,n._a,n,e)}var xe,we=0,Ae=1,_e=2,Ce=3,Me=4,ke=5,Se=6,Ie=7,Le=8;function Te(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,i=(t%(n=12)+n)%n;return e+=(t-i)/12,1===i?H(e)?29:28:31-i%7%2}xe=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},E("M",["MM",2],"Mo",(function(){return this.month()+1})),E("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),E("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),R("month","M"),U("month",8),fe("M",ne),fe("MM",ne,K),fe("MMM",(function(e,t){return t.monthsShortRegex(e)})),fe("MMMM",(function(e,t){return t.monthsRegex(e)})),ve(["M","MM"],(function(e,t){t[Ae]=Z(e)-1})),ve(["MMM","MMMM"],(function(e,t,n,i){var r=n._locale.monthsParse(e,i,n._strict);null!=r?t[Ae]=r:p(n).invalidMonth=e}));var De="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Oe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),je=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ne=he,Ee=he;function Pe(e,t,n){var i,r,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=f([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=xe.call(this._shortMonthsParse,a))?r:null:-1!==(r=xe.call(this._longMonthsParse,a))?r:null:"MMM"===t?-1!==(r=xe.call(this._shortMonthsParse,a))||-1!==(r=xe.call(this._longMonthsParse,a))?r:null:-1!==(r=xe.call(this._longMonthsParse,a))||-1!==(r=xe.call(this._shortMonthsParse,a))?r:null}function Fe(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=Z(t);else if(!c(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Te(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ze(e){return null!=e?(Fe(this,e),i.updateOffset(this,!0),this):Q(this,"Month")}function Re(){function e(e,t){return t.length-e.length}var t,n,i=[],r=[],o=[];for(t=0;t<12;t++)n=f([2e3,t]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(i.sort(e),r.sort(e),o.sort(e),t=0;t<12;t++)i[t]=ge(i[t]),r[t]=ge(r[t]);for(t=0;t<24;t++)o[t]=ge(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Be(e){return H(e)?366:365}E("Y",0,0,(function(){var e=this.year();return e<=9999?T(e,4):"+"+e})),E(0,["YY",2],0,(function(){return this.year()%100})),E(0,["YYYY",4],0,"year"),E(0,["YYYYY",5],0,"year"),E(0,["YYYYYY",6,!0],0,"year"),R("year","y"),U("year",1),fe("Y",ce),fe("YY",ne,K),fe("YYYY",ae,ee),fe("YYYYY",se,te),fe("YYYYYY",se,te),ve(["YYYYY","YYYYYY"],we),ve("YYYY",(function(e,t){t[we]=2===e.length?i.parseTwoDigitYear(e):Z(e)})),ve("YY",(function(e,t){t[we]=i.parseTwoDigitYear(e)})),ve("Y",(function(e,t){t[we]=parseInt(e,10)})),i.parseTwoDigitYear=function(e){return Z(e)+(Z(e)>68?1900:2e3)};var We=G("FullYear",!0);function Ye(e,t,n,i,r,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,i,r,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,i,r,o,a),s}function Ue(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function He(e,t,n){var i=7+t-n;return-(7+Ue(e,0,i).getUTCDay()-t)%7+i-1}function Ve(e,t,n,i,r){var o,a,s=1+7*(t-1)+(7+n-i)%7+He(e,i,r);return s<=0?a=Be(o=e-1)+s:s>Be(e)?(o=e+1,a=s-Be(e)):(o=e,a=s),{year:o,dayOfYear:a}}function Ze(e,t,n){var i,r,o=He(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?i=a+Ge(r=e.year()-1,t,n):a>Ge(e.year(),t,n)?(i=a-Ge(e.year(),t,n),r=e.year()+1):(r=e.year(),i=a),{week:i,year:r}}function Ge(e,t,n){var i=He(e,t,n),r=He(e+1,t,n);return(Be(e)-i+r)/7}E("w",["ww",2],"wo","week"),E("W",["WW",2],"Wo","isoWeek"),R("week","w"),R("isoWeek","W"),U("week",5),U("isoWeek",5),fe("w",ne),fe("ww",ne,K),fe("W",ne),fe("WW",ne,K),ye(["w","ww","W","WW"],(function(e,t,n,i){t[i.substr(0,1)]=Z(e)}));function Qe(e,t){return e.slice(t,7).concat(e.slice(0,t))}E("d",0,"do","day"),E("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),E("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),E("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),E("e",0,0,"weekday"),E("E",0,0,"isoWeekday"),R("day","d"),R("weekday","e"),R("isoWeekday","E"),U("day",11),U("weekday",11),U("isoWeekday",11),fe("d",ne),fe("e",ne),fe("E",ne),fe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),fe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),fe("dddd",(function(e,t){return t.weekdaysRegex(e)})),ye(["dd","ddd","dddd"],(function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:p(n).invalidWeekday=e})),ye(["d","e","E"],(function(e,t,n,i){t[i]=Z(e)}));var Je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Xe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ke=he,$e=he,et=he;function tt(e,t,n){var i,r,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=xe.call(this._weekdaysParse,a))?r:null:"ddd"===t?-1!==(r=xe.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=xe.call(this._minWeekdaysParse,a))?r:null:"dddd"===t?-1!==(r=xe.call(this._weekdaysParse,a))||-1!==(r=xe.call(this._shortWeekdaysParse,a))||-1!==(r=xe.call(this._minWeekdaysParse,a))?r:null:"ddd"===t?-1!==(r=xe.call(this._shortWeekdaysParse,a))||-1!==(r=xe.call(this._weekdaysParse,a))||-1!==(r=xe.call(this._minWeekdaysParse,a))?r:null:-1!==(r=xe.call(this._minWeekdaysParse,a))||-1!==(r=xe.call(this._weekdaysParse,a))||-1!==(r=xe.call(this._shortWeekdaysParse,a))?r:null}function nt(){function e(e,t){return t.length-e.length}var t,n,i,r,o,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),i=ge(this.weekdaysMin(n,"")),r=ge(this.weekdaysShort(n,"")),o=ge(this.weekdays(n,"")),a.push(i),s.push(r),l.push(o),c.push(i),c.push(r),c.push(o);a.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function it(){return this.hours()%12||12}function rt(e,t){E(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function ot(e,t){return t._meridiemParse}E("H",["HH",2],0,"hour"),E("h",["hh",2],0,it),E("k",["kk",2],0,(function(){return this.hours()||24})),E("hmm",0,0,(function(){return""+it.apply(this)+T(this.minutes(),2)})),E("hmmss",0,0,(function(){return""+it.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)})),E("Hmm",0,0,(function(){return""+this.hours()+T(this.minutes(),2)})),E("Hmmss",0,0,(function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)})),rt("a",!0),rt("A",!1),R("hour","h"),U("hour",13),fe("a",ot),fe("A",ot),fe("H",ne),fe("h",ne),fe("k",ne),fe("HH",ne,K),fe("hh",ne,K),fe("kk",ne,K),fe("hmm",ie),fe("hmmss",re),fe("Hmm",ie),fe("Hmmss",re),ve(["H","HH"],Ce),ve(["k","kk"],(function(e,t,n){var i=Z(e);t[Ce]=24===i?0:i})),ve(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ve(["h","hh"],(function(e,t,n){t[Ce]=Z(e),p(n).bigHour=!0})),ve("hmm",(function(e,t,n){var i=e.length-2;t[Ce]=Z(e.substr(0,i)),t[Me]=Z(e.substr(i)),p(n).bigHour=!0})),ve("hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[Ce]=Z(e.substr(0,i)),t[Me]=Z(e.substr(i,2)),t[ke]=Z(e.substr(r)),p(n).bigHour=!0})),ve("Hmm",(function(e,t,n){var i=e.length-2;t[Ce]=Z(e.substr(0,i)),t[Me]=Z(e.substr(i))})),ve("Hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[Ce]=Z(e.substr(0,i)),t[Me]=Z(e.substr(i,2)),t[ke]=Z(e.substr(r))}));var at=G("Hours",!0);var st,lt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:De,monthsShort:Oe,week:{dow:0,doy:6},weekdays:Je,weekdaysMin:Xe,weekdaysShort:qe,meridiemParse:/[ap]\.?m?\.?/i},ct={},ut={};function dt(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}function ht(e){return e?e.toLowerCase().replace("_","-"):e}function ft(t){var n=null;if(void 0===ct[t]&&e&&e.exports&&function(e){return null!=e.match("^[^/\\\\]*$")}(t))try{n=st._abbr,Object(function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}()),pt(n)}catch(e){ct[t]=null}return ct[t]}function pt(e,t){var n;return e&&((n=l(t)?mt(e):gt(e,t))?st=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),st._abbr}function gt(e,t){if(null!==t){var n,i=lt;if(t.abbr=e,null!=ct[e])k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=ct[e]._config;else if(null!=t.parentLocale)if(null!=ct[t.parentLocale])i=ct[t.parentLocale]._config;else{if(null==(n=ft(t.parentLocale)))return ut[t.parentLocale]||(ut[t.parentLocale]=[]),ut[t.parentLocale].push({name:e,config:t}),null;i=n._config}return ct[e]=new L(I(i,t)),ut[e]&&ut[e].forEach((function(e){gt(e.name,e.config)})),pt(e),ct[e]}return delete ct[e],null}function mt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return st;if(!r(e)){if(t=ft(e))return t;e=[e]}return function(e){for(var t,n,i,r,o=0;o<e.length;){for(t=(r=ht(e[o]).split("-")).length,n=(n=ht(e[o+1]))?n.split("-"):null;t>0;){if(i=ft(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&dt(r,n)>=t-1)break;t--}o++}return st}(e)}function vt(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[Ae]<0||n[Ae]>11?Ae:n[_e]<1||n[_e]>Te(n[we],n[Ae])?_e:n[Ce]<0||n[Ce]>24||24===n[Ce]&&(0!==n[Me]||0!==n[ke]||0!==n[Se])?Ce:n[Me]<0||n[Me]>59?Me:n[ke]<0||n[ke]>59?ke:n[Se]<0||n[Se]>999?Se:-1,p(e)._overflowDayOfYear&&(t<we||t>_e)&&(t=_e),p(e)._overflowWeeks&&-1===t&&(t=Ie),p(e)._overflowWeekday&&-1===t&&(t=Le),p(e).overflow=t),e}var yt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xt=/Z|[+-]\d\d(?::?\d\d)?/,wt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],At=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],_t=/^\/?Date\((-?\d+)/i,Ct=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Mt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function kt(e){var t,n,i,r,o,a,s=e._i,l=yt.exec(s)||bt.exec(s),c=wt.length,u=At.length;if(l){for(p(e).iso=!0,t=0,n=c;t<n;t++)if(wt[t][1].exec(l[1])){r=wt[t][0],i=!1!==wt[t][2];break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,n=u;t<n;t++)if(At[t][1].exec(l[3])){o=(l[2]||" ")+At[t][0];break}if(null==o)return void(e._isValid=!1)}if(!i&&null!=o)return void(e._isValid=!1);if(l[4]){if(!xt.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=r+(o||"")+(a||""),Dt(e)}else e._isValid=!1}function St(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function It(e){var t,n,i,r,o,a,s,l,c=Ct.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(c){if(n=c[4],i=c[3],r=c[2],o=c[5],a=c[6],s=c[7],l=[St(n),Oe.indexOf(i),parseInt(r,10),parseInt(o,10),parseInt(a,10)],s&&l.push(parseInt(s,10)),t=l,!function(e,t,n){return!e||qe.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(p(n).weekdayMismatch=!0,n._isValid=!1,!1)}(c[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return Mt[e];if(t)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}(c[8],c[9],c[10]),e._d=Ue.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function Lt(e,t,n){return null!=e?e:null!=t?t:n}function Tt(e){var t,n,r,o,a,s=[];if(!e._d){for(r=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[_e]&&null==e._a[Ae]&&function(e){var t,n,i,r,o,a,s,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,a=4,n=Lt(t.GG,e._a[we],Ze(Nt(),1,4).year),i=Lt(t.W,1),((r=Lt(t.E,1))<1||r>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=Ze(Nt(),o,a),n=Lt(t.gg,e._a[we],c.year),i=Lt(t.w,c.week),null!=t.d?((r=t.d)<0||r>6)&&(l=!0):null!=t.e?(r=t.e+o,(t.e<0||t.e>6)&&(l=!0)):r=o),i<1||i>Ge(n,o,a)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(s=Ve(n,i,r,o,a),e._a[we]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=Lt(e._a[we],r[we]),(e._dayOfYear>Be(a)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=Ue(a,0,e._dayOfYear),e._a[Ae]=n.getUTCMonth(),e._a[_e]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ce]&&0===e._a[Me]&&0===e._a[ke]&&0===e._a[Se]&&(e._nextDay=!0,e._a[Ce]=0),e._d=(e._useUTC?Ue:Ye).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ce]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(p(e).weekdayMismatch=!0)}}function Dt(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],p(e).empty=!0;var t,n,r,o,a,s,l,c=""+e._i,u=c.length,d=0;for(l=(r=F(e._f,e._locale).match(D)||[]).length,t=0;t<l;t++)o=r[t],(n=(c.match(pe(o,e))||[])[0])&&((a=c.substr(0,c.indexOf(n))).length>0&&p(e).unusedInput.push(a),c=c.slice(c.indexOf(n)+n.length),d+=n.length),N[o]?(n?p(e).empty=!1:p(e).unusedTokens.push(o),be(o,n,e)):e._strict&&!n&&p(e).unusedTokens.push(o);p(e).charsLeftOver=u-d,c.length>0&&p(e).unusedInput.push(c),e._a[Ce]<=12&&!0===p(e).bigHour&&e._a[Ce]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[Ce]=function(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}(e._locale,e._a[Ce],e._meridiem),null!==(s=p(e).era)&&(e._a[we]=e._locale.erasConvertYear(s,e._a[we])),Tt(e),vt(e)}else It(e);else kt(e)}function Ot(e){var t=e._i,n=e._f;return e._locale=e._locale||mt(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new x(vt(t)):(u(t)?e._d=t:r(n)?function(e){var t,n,i,r,o,a,s=!1,l=e._f.length;if(0===l)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<l;r++)o=0,a=!1,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],Dt(t),g(t)&&(a=!0),o+=p(t).charsLeftOver,o+=10*p(t).unusedTokens.length,p(t).score=o,s?o<i&&(i=o,n=t):(null==i||o<i||a)&&(i=o,n=t,a&&(s=!0));h(e,n||t)}(e):n?Dt(e):function(e){var t=e._i;l(t)?e._d=new Date(i.now()):u(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=_t.exec(e._i);null===t?(kt(e),!1===e._isValid&&(delete e._isValid,It(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:i.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):r(t)?(e._a=d(t.slice(0),(function(e){return parseInt(e,10)})),Tt(e)):o(t)?function(e){if(!e._d){var t=W(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Tt(e)}}(e):c(t)?e._d=new Date(t):i.createFromInputFallback(e)}(e),g(e)||(e._d=null),e))}function jt(e,t,n,i,a){var l,c={};return!0!==t&&!1!==t||(i=t,t=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(o(e)&&s(e)||r(e)&&0===e.length)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=a,c._l=n,c._i=e,c._f=t,c._strict=i,(l=new x(vt(Ot(c))))._nextDay&&(l.add(1,"d"),l._nextDay=void 0),l}function Nt(e,t,n,i){return jt(e,t,n,i,!1)}i.createFromInputFallback=_("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Et=_("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Nt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:m()})),Pt=_("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Nt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:m()}));function Ft(e,t){var n,i;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return Nt();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}var zt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Rt(e){var t=W(e),n=t.year||0,i=t.quarter||0,r=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,c=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,n,i=!1,r=zt.length;for(t in e)if(a(e,t)&&(-1===xe.call(zt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<r;++n)if(e[zt[n]]){if(i)return!1;parseFloat(e[zt[n]])!==Z(e[zt[n]])&&(i=!0)}return!0}(t),this._milliseconds=+d+1e3*u+6e4*c+1e3*l*60*60,this._days=+s+7*o,this._months=+r+3*i+12*n,this._data={},this._locale=mt(),this._bubble()}function Bt(e){return e instanceof Rt}function Wt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Yt(e,t){E(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+T(~~(e/60),2)+t+T(~~e%60,2)}))}Yt("Z",":"),Yt("ZZ",""),fe("Z",de),fe("ZZ",de),ve(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Ht(de,e)}));var Ut=/([\+\-]|\d\d)/gi;function Ht(e,t){var n,i,r=(t||"").match(e);return null===r?null:0===(i=60*(n=((r[r.length-1]||[])+"").match(Ut)||["-",0,0])[1]+Z(n[2]))?0:"+"===n[0]?i:-i}function Vt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(w(e)||u(e)?e.valueOf():Nt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Nt(e).local()}function Zt(e){return-Math.round(e._d.getTimezoneOffset())}function Gt(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Qt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Jt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function qt(e,t){var n,i,r,o,s,l,u=e,d=null;return Bt(e)?u={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(u={},t?u[t]=+e:u.milliseconds=+e):(d=Qt.exec(e))?(n="-"===d[1]?-1:1,u={y:0,d:Z(d[_e])*n,h:Z(d[Ce])*n,m:Z(d[Me])*n,s:Z(d[ke])*n,ms:Z(Wt(1e3*d[Se]))*n}):(d=Jt.exec(e))?(n="-"===d[1]?-1:1,u={y:Xt(d[2],n),M:Xt(d[3],n),w:Xt(d[4],n),d:Xt(d[5],n),h:Xt(d[6],n),m:Xt(d[7],n),s:Xt(d[8],n)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(o=Nt(u.from),s=Nt(u.to),r=o.isValid()&&s.isValid()?(s=Vt(s,o),o.isBefore(s)?l=Kt(o,s):((l=Kt(s,o)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(u={}).ms=r.milliseconds,u.M=r.months),i=new Rt(u),Bt(e)&&a(e,"_locale")&&(i._locale=e._locale),Bt(e)&&a(e,"_isValid")&&(i._isValid=e._isValid),i}function Xt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Kt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function $t(e,t){return function(n,i){var r;return null===i||isNaN(+i)||(k(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),en(this,qt(n,i),e),this}}function en(e,t,n,r){var o=t._milliseconds,a=Wt(t._days),s=Wt(t._months);e.isValid()&&(r=null==r||r,s&&Fe(e,Q(e,"Month")+s*n),a&&J(e,"Date",Q(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&i.updateOffset(e,a||s))}qt.fn=Rt.prototype,qt.invalid=function(){return qt(NaN)};var tn=$t(1,"add"),nn=$t(-1,"subtract");function rn(e){return"string"==typeof e||e instanceof String}function on(e){return w(e)||u(e)||rn(e)||c(e)||function(e){var t=r(e),n=!1;return t&&(n=0===e.filter((function(t){return!c(t)&&rn(e)})).length),t&&n}(e)||function(e){var t,n,i=o(e)&&!s(e),r=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=l.length;for(t=0;t<c;t+=1)n=l[t],r=r||a(e,n);return i&&r}(e)||null==e}function an(e,t){if(e.date()<t.date())return-an(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months");return-(n+(t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(n+1,"months")-i)))||0}function sn(e){var t;return void 0===e?this._locale._abbr:(null!=(t=mt(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ln=_("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function cn(){return this._locale}var un=1e3,dn=6e4,hn=36e5,fn=126227808e5;function pn(e,t){return(e%t+t)%t}function gn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-fn:new Date(e,t,n).valueOf()}function mn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-fn:Date.UTC(e,t,n)}function vn(e,t){return t.erasAbbrRegex(e)}function yn(){var e,t,n=[],i=[],r=[],o=[],a=this.eras();for(e=0,t=a.length;e<t;++e)i.push(ge(a[e].name)),n.push(ge(a[e].abbr)),r.push(ge(a[e].narrow)),o.push(ge(a[e].name)),o.push(ge(a[e].abbr)),o.push(ge(a[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function bn(e,t){E(0,[e,e.length],0,t)}function xn(e,t,n,i,r){var o;return null==e?Ze(this,i,r).year:(t>(o=Ge(e,i,r))&&(t=o),wn.call(this,e,t,n,i,r))}function wn(e,t,n,i,r){var o=Ve(e,t,n,i,r),a=Ue(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}E("N",0,0,"eraAbbr"),E("NN",0,0,"eraAbbr"),E("NNN",0,0,"eraAbbr"),E("NNNN",0,0,"eraName"),E("NNNNN",0,0,"eraNarrow"),E("y",["y",1],"yo","eraYear"),E("y",["yy",2],0,"eraYear"),E("y",["yyy",3],0,"eraYear"),E("y",["yyyy",4],0,"eraYear"),fe("N",vn),fe("NN",vn),fe("NNN",vn),fe("NNNN",(function(e,t){return t.erasNameRegex(e)})),fe("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ve(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,i){var r=n._locale.erasParse(e,i,n._strict);r?p(n).era=r:p(n).invalidEra=e})),fe("y",le),fe("yy",le),fe("yyy",le),fe("yyyy",le),fe("yo",(function(e,t){return t._eraYearOrdinalRegex||le})),ve(["y","yy","yyy","yyyy"],we),ve(["yo"],(function(e,t,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[we]=n._locale.eraYearOrdinalParse(e,r):t[we]=parseInt(e,10)})),E(0,["gg",2],0,(function(){return this.weekYear()%100})),E(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),bn("gggg","weekYear"),bn("ggggg","weekYear"),bn("GGGG","isoWeekYear"),bn("GGGGG","isoWeekYear"),R("weekYear","gg"),R("isoWeekYear","GG"),U("weekYear",1),U("isoWeekYear",1),fe("G",ce),fe("g",ce),fe("GG",ne,K),fe("gg",ne,K),fe("GGGG",ae,ee),fe("gggg",ae,ee),fe("GGGGG",se,te),fe("ggggg",se,te),ye(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,i){t[i.substr(0,2)]=Z(e)})),ye(["gg","GG"],(function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)})),E("Q",0,"Qo","quarter"),R("quarter","Q"),U("quarter",7),fe("Q",X),ve("Q",(function(e,t){t[Ae]=3*(Z(e)-1)})),E("D",["DD",2],"Do","date"),R("date","D"),U("date",9),fe("D",ne),fe("DD",ne,K),fe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ve(["D","DD"],_e),ve("Do",(function(e,t){t[_e]=Z(e.match(ne)[0])}));var An=G("Date",!0);E("DDD",["DDDD",3],"DDDo","dayOfYear"),R("dayOfYear","DDD"),U("dayOfYear",4),fe("DDD",oe),fe("DDDD",$),ve(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=Z(e)})),E("m",["mm",2],0,"minute"),R("minute","m"),U("minute",14),fe("m",ne),fe("mm",ne,K),ve(["m","mm"],Me);var _n=G("Minutes",!1);E("s",["ss",2],0,"second"),R("second","s"),U("second",15),fe("s",ne),fe("ss",ne,K),ve(["s","ss"],ke);var Cn,Mn,kn=G("Seconds",!1);for(E("S",0,0,(function(){return~~(this.millisecond()/100)})),E(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),E(0,["SSS",3],0,"millisecond"),E(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),E(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),E(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),E(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),E(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),E(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),R("millisecond","ms"),U("millisecond",16),fe("S",oe,X),fe("SS",oe,K),fe("SSS",oe,$),Cn="SSSS";Cn.length<=9;Cn+="S")fe(Cn,le);function Sn(e,t){t[Se]=Z(1e3*("0."+e))}for(Cn="S";Cn.length<=9;Cn+="S")ve(Cn,Sn);Mn=G("Milliseconds",!1),E("z",0,0,"zoneAbbr"),E("zz",0,0,"zoneName");var In=x.prototype;function Ln(e){return e}In.add=tn,In.calendar=function(e,t){1===arguments.length&&(arguments[0]?on(arguments[0])?(e=arguments[0],t=void 0):function(e){var t,n=o(e)&&!s(e),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<r.length;t+=1)i=i||a(e,r[t]);return n&&i}(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Nt(),r=Vt(n,this).startOf("day"),l=i.calendarFormat(this,r)||"sameElse",c=t&&(S(t[l])?t[l].call(this,n):t[l]);return this.format(c||this.localeData().calendar(l,this,Nt(n)))},In.clone=function(){return new x(this)},In.diff=function(e,t,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=Vt(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=B(t)){case"year":o=an(this,i)/12;break;case"month":o=an(this,i);break;case"quarter":o=an(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:V(o)},In.endOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?mn:gn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=hn-pn(t+(this._isUTC?0:this.utcOffset()*dn),hn)-1;break;case"minute":t=this._d.valueOf(),t+=dn-pn(t,dn)-1;break;case"second":t=this._d.valueOf(),t+=un-pn(t,un)-1}return this._d.setTime(t),i.updateOffset(this,!0),this},In.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=P(this,e);return this.localeData().postformat(t)},In.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Nt(e).isValid())?qt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},In.fromNow=function(e){return this.from(Nt(),e)},In.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Nt(e).isValid())?qt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},In.toNow=function(e){return this.to(Nt(),e)},In.get=function(e){return S(this[e=B(e)])?this[e]():this},In.invalidAt=function(){return p(this).overflow},In.isAfter=function(e,t){var n=w(e)?e:Nt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},In.isBefore=function(e,t){var n=w(e)?e:Nt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},In.isBetween=function(e,t,n,i){var r=w(e)?e:Nt(e),o=w(t)?t:Nt(t);return!!(this.isValid()&&r.isValid()&&o.isValid())&&("("===(i=i||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(o,n):!this.isAfter(o,n))},In.isSame=function(e,t){var n,i=w(e)?e:Nt(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},In.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},In.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},In.isValid=function(){return g(this)},In.lang=ln,In.locale=sn,In.localeData=cn,In.max=Pt,In.min=Et,In.parsingFlags=function(){return h({},p(this))},In.set=function(e,t){if("object"==typeof e){var n,i=function(e){var t,n=[];for(t in e)a(e,t)&&n.push({unit:t,priority:Y[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=W(e)),r=i.length;for(n=0;n<r;n++)this[i[n].unit](e[i[n].unit])}else if(S(this[e=B(e)]))return this[e](t);return this},In.startOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?mn:gn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=pn(t+(this._isUTC?0:this.utcOffset()*dn),hn);break;case"minute":t=this._d.valueOf(),t-=pn(t,dn);break;case"second":t=this._d.valueOf(),t-=pn(t,un)}return this._d.setTime(t),i.updateOffset(this,!0),this},In.subtract=nn,In.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},In.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},In.toDate=function(){return new Date(this.valueOf())},In.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?P(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",P(n,"Z")):P(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},In.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,i="moment",r="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY","-MM-DD[T]HH:mm:ss.SSS",n=r+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(In[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),In.toJSON=function(){return this.isValid()?this.toISOString():null},In.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},In.unix=function(){return Math.floor(this.valueOf()/1e3)},In.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},In.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},In.eraName=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].name;if(i[e].until<=n&&n<=i[e].since)return i[e].name}return""},In.eraNarrow=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].narrow;if(i[e].until<=n&&n<=i[e].since)return i[e].narrow}return""},In.eraAbbr=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].abbr;if(i[e].until<=n&&n<=i[e].since)return i[e].abbr}return""},In.eraYear=function(){var e,t,n,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return(this.year()-i(o[e].since).year())*n+o[e].offset;return this.year()},In.year=We,In.isLeapYear=function(){return H(this.year())},In.weekYear=function(e){return xn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},In.isoWeekYear=function(e){return xn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},In.quarter=In.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},In.month=ze,In.daysInMonth=function(){return Te(this.year(),this.month())},In.week=In.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},In.isoWeek=In.isoWeeks=function(e){var t=Ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},In.weeksInYear=function(){var e=this.localeData()._week;return Ge(this.year(),e.dow,e.doy)},In.weeksInWeekYear=function(){var e=this.localeData()._week;return Ge(this.weekYear(),e.dow,e.doy)},In.isoWeeksInYear=function(){return Ge(this.year(),1,4)},In.isoWeeksInISOWeekYear=function(){return Ge(this.isoWeekYear(),1,4)},In.date=An,In.day=In.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},In.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},In.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},In.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},In.hour=In.hours=at,In.minute=In.minutes=_n,In.second=In.seconds=kn,In.millisecond=In.milliseconds=Mn,In.utcOffset=function(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ht(de,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Zt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?en(this,qt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Zt(this)},In.utc=function(e){return this.utcOffset(0,e)},In.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Zt(this),"m")),this},In.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ht(ue,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},In.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Nt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},In.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},In.isLocal=function(){return!!this.isValid()&&!this._isUTC},In.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},In.isUtc=Gt,In.isUTC=Gt,In.zoneAbbr=function(){return this._isUTC?"UTC":""},In.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},In.dates=_("dates accessor is deprecated. Use date instead.",An),In.months=_("months accessor is deprecated. Use month instead",ze),In.years=_("years accessor is deprecated. Use year instead",We),In.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),In.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=Ot(t))._a?(e=t._isUTC?f(t._a):Nt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var i,r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(i=0;i<r;i++)(n&&e[i]!==t[i]||!n&&Z(e[i])!==Z(t[i]))&&a++;return a+o}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Tn=L.prototype;function Dn(e,t,n,i){var r=mt(),o=f().set(i,t);return r[n](o,e)}function On(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return Dn(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Dn(e,i,n,"month");return r}function jn(e,t,n,i){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var r,o=mt(),a=e?o._week.dow:0,s=[];if(null!=n)return Dn(t,(n+a)%7,i,"day");for(r=0;r<7;r++)s[r]=Dn(t,(r+a)%7,i,"day");return s}Tn.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return S(i)?i.call(t,n):i},Tn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(D).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},Tn.invalidDate=function(){return this._invalidDate},Tn.ordinal=function(e){return this._ordinal.replace("%d",e)},Tn.preparse=Ln,Tn.postformat=Ln,Tn.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return S(r)?r(e,t,n,i):r.replace(/%d/i,e)},Tn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return S(n)?n(t):n.replace(/%s/i,t)},Tn.set=function(e){var t,n;for(n in e)a(e,n)&&(S(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Tn.eras=function(e,t){var n,r,o,a=this._eras||mt("en")._eras;for(n=0,r=a.length;n<r;++n)switch("string"==typeof a[n].since&&(o=i(a[n].since).startOf("day"),a[n].since=o.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":o=i(a[n].until).startOf("day").valueOf(),a[n].until=o.valueOf()}return a},Tn.erasParse=function(e,t,n){var i,r,o,a,s,l=this.eras();for(e=e.toUpperCase(),i=0,r=l.length;i<r;++i)if(o=l[i].name.toUpperCase(),a=l[i].abbr.toUpperCase(),s=l[i].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[i];break;case"NNNN":if(o===e)return l[i];break;case"NNNNN":if(s===e)return l[i]}else if([o,a,s].indexOf(e)>=0)return l[i]},Tn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?i(e.since).year():i(e.since).year()+(t-e.offset)*n},Tn.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||yn.call(this),e?this._erasAbbrRegex:this._erasRegex},Tn.erasNameRegex=function(e){return a(this,"_erasNameRegex")||yn.call(this),e?this._erasNameRegex:this._erasRegex},Tn.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||yn.call(this),e?this._erasNarrowRegex:this._erasRegex},Tn.months=function(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||je).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone},Tn.monthsShort=function(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[je.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Tn.monthsParse=function(e,t,n){var i,r,o;if(this._monthsParseExact)return Pe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},Tn.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Re.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=Ee),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Tn.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Re.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Ne),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Tn.week=function(e){return Ze(e,this._week.dow,this._week.doy).week},Tn.firstDayOfYear=function(){return this._week.doy},Tn.firstDayOfWeek=function(){return this._week.dow},Tn.weekdays=function(e,t){var n=r(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Qe(n,this._week.dow):e?n[e.day()]:n},Tn.weekdaysMin=function(e){return!0===e?Qe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Tn.weekdaysShort=function(e){return!0===e?Qe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Tn.weekdaysParse=function(e,t,n){var i,r,o;if(this._weekdaysParseExact)return tt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},Tn.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Ke),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Tn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$e),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Tn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=et),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Tn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Tn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},pt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===Z(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=_("moment.lang is deprecated. Use moment.locale instead.",pt),i.langData=_("moment.langData is deprecated. Use moment.localeData instead.",mt);var Nn=Math.abs;function En(e,t,n,i){var r=qt(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function Pn(e){return e<0?Math.floor(e):Math.ceil(e)}function Fn(e){return 4800*e/146097}function zn(e){return 146097*e/4800}function Rn(e){return function(){return this.as(e)}}var Bn=Rn("ms"),Wn=Rn("s"),Yn=Rn("m"),Un=Rn("h"),Hn=Rn("d"),Vn=Rn("w"),Zn=Rn("M"),Gn=Rn("Q"),Qn=Rn("y");function Jn(e){return function(){return this.isValid()?this._data[e]:NaN}}var qn=Jn("milliseconds"),Xn=Jn("seconds"),Kn=Jn("minutes"),$n=Jn("hours"),ei=Jn("days"),ti=Jn("months"),ni=Jn("years");var ii=Math.round,ri={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function oi(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}var ai=Math.abs;function si(e){return(e>0)-(e<0)||+e}function li(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i,r,o,a,s,l=ai(this._milliseconds)/1e3,c=ai(this._days),u=ai(this._months),d=this.asSeconds();return d?(e=V(l/60),t=V(e/60),l%=60,e%=60,n=V(u/12),u%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",o=si(this._months)!==si(d)?"-":"",a=si(this._days)!==si(d)?"-":"",s=si(this._milliseconds)!==si(d)?"-":"",r+"P"+(n?o+n+"Y":"")+(u?o+u+"M":"")+(c?a+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+i+"S":"")):"P0D"}var ci=Rt.prototype;return ci.isValid=function(){return this._isValid},ci.abs=function(){var e=this._data;return this._milliseconds=Nn(this._milliseconds),this._days=Nn(this._days),this._months=Nn(this._months),e.milliseconds=Nn(e.milliseconds),e.seconds=Nn(e.seconds),e.minutes=Nn(e.minutes),e.hours=Nn(e.hours),e.months=Nn(e.months),e.years=Nn(e.years),this},ci.add=function(e,t){return En(this,e,t,1)},ci.subtract=function(e,t){return En(this,e,t,-1)},ci.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=B(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+Fn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(zn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},ci.asMilliseconds=Bn,ci.asSeconds=Wn,ci.asMinutes=Yn,ci.asHours=Un,ci.asDays=Hn,ci.asWeeks=Vn,ci.asMonths=Zn,ci.asQuarters=Gn,ci.asYears=Qn,ci.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Z(this._months/12):NaN},ci._bubble=function(){var e,t,n,i,r,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Pn(zn(s)+a),a=0,s=0),l.milliseconds=o%1e3,e=V(o/1e3),l.seconds=e%60,t=V(e/60),l.minutes=t%60,n=V(t/60),l.hours=n%24,a+=V(n/24),s+=r=V(Fn(a)),a-=Pn(zn(r)),i=V(s/12),s%=12,l.days=a,l.months=s,l.years=i,this},ci.clone=function(){return qt(this)},ci.get=function(e){return e=B(e),this.isValid()?this[e+"s"]():NaN},ci.milliseconds=qn,ci.seconds=Xn,ci.minutes=Kn,ci.hours=$n,ci.days=ei,ci.weeks=function(){return V(this.days()/7)},ci.months=ti,ci.years=ni,ci.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,o=ri;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(o=Object.assign({},ri,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),i=function(e,t,n,i){var r=qt(e).abs(),o=ii(r.as("s")),a=ii(r.as("m")),s=ii(r.as("h")),l=ii(r.as("d")),c=ii(r.as("M")),u=ii(r.as("w")),d=ii(r.as("y")),h=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||u<=1&&["w"]||u<n.w&&["ww",u]),(h=h||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,h[3]=+e>0,h[4]=i,oi.apply(null,h)}(this,!r,o,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)},ci.toISOString=li,ci.toString=li,ci.toJSON=li,ci.locale=sn,ci.localeData=cn,ci.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",li),ci.lang=ln,E("X",0,0,"unix"),E("x",0,0,"valueOf"),fe("x",ce),fe("X",/[+-]?\d+(\.\d{1,3})?/),ve("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ve("x",(function(e,t,n){n._d=new Date(Z(e))})),i.version="2.29.4",t=Nt,i.fn=In,i.min=function(){return Ft("isBefore",[].slice.call(arguments,0))},i.max=function(){return Ft("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=f,i.unix=function(e){return Nt(1e3*e)},i.months=function(e,t){return On(e,t,"months")},i.isDate=u,i.locale=pt,i.invalid=m,i.duration=qt,i.isMoment=w,i.weekdays=function(e,t,n){return jn(e,t,n,"weekdays")},i.parseZone=function(){return Nt.apply(null,arguments).parseZone()},i.localeData=mt,i.isDuration=Bt,i.monthsShort=function(e,t){return On(e,t,"monthsShort")},i.weekdaysMin=function(e,t,n){return jn(e,t,n,"weekdaysMin")},i.defineLocale=gt,i.updateLocale=function(e,t){if(null!=t){var n,i,r=lt;null!=ct[e]&&null!=ct[e].parentLocale?ct[e].set(I(ct[e]._config,t)):(null!=(i=ft(e))&&(r=i._config),t=I(r,t),null==i&&(t.abbr=e),(n=new L(t)).parentLocale=ct[e],ct[e]=n),pt(e)}else null!=ct[e]&&(null!=ct[e].parentLocale?(ct[e]=ct[e].parentLocale,e===pt()&&pt(e)):null!=ct[e]&&delete ct[e]);return ct[e]},i.locales=function(){return C(ct)},i.weekdaysShort=function(e,t,n){return jn(e,t,n,"weekdaysShort")},i.normalizeUnits=B,i.relativeTimeRounding=function(e){return void 0===e?ii:"function"==typeof e&&(ii=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==ri[e]&&(void 0===t?ri[e]:(ri[e]=t,"s"===e&&(ri.ss=t-1),!0))},i.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=In,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},215:e=>{"use strict";e.exports=JSON.parse('{"unitFormatGBP":"£","unitFormatUSD":"US $","unitFormatEUR":"€","unitFormatMXN":"MXN $","unitFormatUAH":"₴","centsUSD":"cents","centsEUR":"cents","centsAUD":"cents","centsZAR":"cents","centsMXN":"cents","centsGBP":"pence"}')},713:e=>{"use strict";e.exports=JSON.parse('{"Name":"Name","Number":"Number","IssueDate":"IssueDate","Paragraph":"Paragraph","Subparagraph":"Subparagraph","URI":"URI","URIDate":"URIDate","Note":"Note"}')},583:e=>{"use strict";e.exports=JSON.parse('{"common":{"accuracyInfinite":"Infinite precision","none":"None","notApplicable":"n/a","unscaled":"Unscaled","unspecified":"Unspecified"},"factDetails":{"accuracy":"Accuracy","change":"Change","changeFromIn":"From {{from}} in ","changePercentageDecrease":"{{decrease}}% decrease on ","changePercentageIncrease":"{{increase}}% increase on ","concept":"Concept","date":"Date","dimensions":"Dimensions","duplicatesCount":"{{current}} of {{total}}","entity":"Entity","factValue":"Fact Value","noPriorFactInThisReport":"No prior fact in this report","noUnit":"<NOUNIT>","properties":"Properties","scale":"Scale"},"footnotes":{"footnote":"Footnote"},"inspector":{"anchoring":"Anchoring","associatedFacts":"Associated facts","calculations":"Calculations","concealedFact":"Concealed fact","conceptType":"Concept Type","contributor":"Contributor","documentOutline":"Document outline","documentSummary":"Document summary","fact-groups":"Sections","factProperties":"Fact Properties","factSearch":"Fact Search","factValue":"Fact Value","filter":"Filter","footnoteProperties":"Footnote Properties","footnotes":"Footnotes","hiddenFact":"Hidden Fact","hiddenFacts":"Hidden Facts","highlight":"Highlight","initializing":"Initializing","loadingViewer":"Loading iXBRL Viewer","matchingConcepts":" matching concept(s)","namespaces":"Namespaces","narrowerAnchor":"Narrower anchors","negative":"Negative","nextTag":"Next tag","noFactSelected":"No Fact Selected","numericOption":"Numeric","outlineUnavailable":"Outline Unavailable","period":"Period","positive":"Positive","previousTag":"Previous tag","printDocument":"Print Document","references":"References","reset":"Reset","scales":"Scales","searchTitle":"Search","showTextOnly":"Show text only","summary":{"fact":{"header":"Fact Summary","title":"Total Facts:"},"file":{"calculations":"Calculation Linkbases","definitions":"Definition Linkbases","header":"File Summary","inline":"Inline Documents","labels":"Label Linkbases","other":"Other Linkbases","presentation":"Presentation Linkbases","references":"Reference Linkbases","schemas":"Schemas"},"tag":{"colDimensions":"Dimensions","colMembers":"Members","colNamespace":"Namespace","colPrimaryItems":"Primary Items","colTotal":"Total","header":"Tag Summary","rowTotal":"Total"}},"summation":"Summation","textOption":"Text","units":"Units","validationCode":"Code","validationMessage":"Message","validationResults":"Validation results","validationSeverity":"Severity","visibleFacts":"Visible Facts","widerAnchor":"Wider anchor"},"scale":{"0":"ones","1":"tens","2":"hundreds","3":"thousands","4":"ten thousands","5":"hundred thousands","6":"millions","7":"ten millions","8":"hundred millions","9":"billions","-3":"thousandths","-2":"hundredths","-1":"tenths"},"search":{"concealedFact":"Concealed fact","hiddenFact":"Hidden fact","noMatchFound":"No match found","selected":"selected","showMoreResults":"Show more results","tryAgainDifferentKeywords":"Try again with different keywords"},"toolbar":{"xbrlElements":"XBRL Elements"}}')},362:e=>{"use strict";e.exports=JSON.parse('{"centsUSD":"centavos","centsEUR":"centavos","centsAUD":"centavos","centsZAR":"centavos","centsMXN":"centavos","centsGBP":"centavos"}')},494:e=>{"use strict";e.exports=JSON.parse('{"Name":"Nombre","Number":"Número","IssueDate":"Fecha de Emisión","Paragraph":"Párrafo","Subparagraph":"Subpárrafo","URI":"URI","URIDate":"Fecha de URI","Note":"Nota"}')},524:e=>{"use strict";e.exports=JSON.parse('{"common":{"accuracyInfinite":"Precisió infinita","none":"Ninguno","notApplicable":"n/d","unscaled":"Sin escala","unspecified":"Sin especificar"},"factDetails":{"accuracy":"Precisión","change":"Cambio","changeFromIn":"Anteriormente {{from}} en ","changePercentageDecrease":"{{decrease}}% menos que en ","changePercentageIncrease":"{{increase}}% más que en ","concept":"Concepto","date":"Fecha","dimensions":"Dimensiones","duplicatesCount":"{{current}} de {{total}}","entity":"Entidad","factValue":"Valor del hecho","noPriorFactInThisReport":"No hay un hecho previo","noUnit":"Sin unidad","properties":"Características","scale":"Escala"},"footnotes":{"footnote":"Nota al pie de página"},"inspector":{"anchoring":"Anclaje","associatedFacts":"Hechos asociados","calculations":"Cálculos","concealedFact":"","conceptType":"Tipo de concepto","contributor":"","documentOutline":"","documentSummary":"","fact-groups":"","factProperties":"Propiedades del hecho","factSearch":"Búsqueda de hechos","factValue":"","filter":"Filtro","footnoteProperties":"Propiedades de la nota al pie de página","footnotes":"Notas al pie de página","hiddenFact":"Hecho oculto","hiddenFacts":"Hechos ocultos","highlight":"Destacar","initializing":"","loadingViewer":"Preparando el visor iXBRL","matchingConcepts":"","namespaces":"","narrowerAnchor":"Anclaje angosto","negative":"","nextTag":"","noFactSelected":"Ningún hecho seleccionado","numericOption":"Numérico","outlineUnavailable":"","period":"Periodo","positive":"","previousTag":"","printDocument":"","references":"Referencias","reset":"Limpiar","scales":"Escalas","searchTitle":"Búsqueda de hechos","showTextOnly":"","summary":{"fact":{"header":"","title":""},"file":{"calculations":"","definitions":"","header":"","inline":"","labels":"","other":"","presentation":"","references":"","schemas":""},"tag":{"colDimensions":"","colMembers":"","colNamespace":"","colPrimaryItems":"","colTotal":"","header":"","rowTotal":""}},"summation":"","textOption":"Texto","units":"Unidads","validationCode":"","validationMessage":"","validationResults":"","validationSeverity":"","visibleFacts":"Hechos visibles","widerAnchor":"Anclaje amplio"},"scale":{"0":"unidades","1":"décimos","2":"cientos","3":"miles","4":"diez miles","5":"cien miles","6":"millones","7":"diez millones","8":"cien millones","9":"billones","-3":"milésimos","-2":"centésimos","-1":"décimas"},"search":{"concealedFact":"","hiddenFact":"Hecho oculto","noMatchFound":"No se encontró ninguna coincidencia","selected":"seleccionados","showMoreResults":"Mostrar más resultados","tryAgainDifferentKeywords":"Intente nuevamente con palabras clave diferentes"},"toolbar":{"xbrlElements":"Elementos XBRL"}}')}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e=n(291),t=n.n(e),i=n(212),r=n.n(i);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===o(t)?t:String(t)}function s(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&i.push.apply(i,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach((function(t){s(e,t,n[t])}))}return e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,a(i.key),i)}}function d(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}var v={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},y=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,e),this.init(t,n)}return d(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||v,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,i){return i&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,l({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),b=function(){function e(){c(this,e),this.observers={}}return d(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,n)})),this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(t){t.apply(t,[e].concat(n))}))}}]),e}();function x(){var e,t,n=new Promise((function(n,i){e=n,t=i}));return n.resolve=e,n.reject=t,n}function w(e){return null==e?"":""+e}function A(e,t,n){function i(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function r(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(r())return{};var a=i(o.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return r()?{}:{obj:e,k:i(o.shift())}}function _(e,t,n){var i=A(e,t,Object);i.obj[i.k]=n}function C(e,t){var n=A(e,t),i=n.obj,r=n.k;if(i)return i[r]}function M(e,t,n){var i=C(e,n);return void 0!==i?i:C(t,n)}function k(e,t,n){for(var i in t)"__proto__"!==i&&"constructor"!==i&&(i in e?"string"==typeof e[i]||e[i]instanceof String||"string"==typeof t[i]||t[i]instanceof String?n&&(e[i]=t[i]):k(e[i],t[i],n):e[i]=t[i]);return e}function S(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var I={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function L(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return I[e]})):e}var T="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function D(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var i=t.split(n),r=e,o=0;o<i.length;++o){if(!r)return;if("string"==typeof r[i[o]]&&o+1<i.length)return;if(void 0===r[i[o]]){for(var a=2,s=i.slice(o,o+a).join(n),l=r[s];void 0===l&&i.length>o+a;)a++,l=r[s=i.slice(o,o+a).join(n)];if(void 0===l)return;if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s];var c=i.slice(o+a).join(n);return c?D(l,c,n):void 0}r=r[i[o]]}return r}}var O=function(e){function t(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return c(this,t),n=f(this,p(t).call(this)),T&&b.call(h(n)),n.data=e||{},n.options=i,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return m(t,e),d(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,o=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(a=e.split("."));var s=C(this.data,a);return s||!o||"string"!=typeof n?s:D(this.data&&this.data[e]&&this.data[e][t],n,r)}},{key:"addResource",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=t,t=(a=e.split("."))[1]),this.addNamespaces(t),_(this.data,a,i),r.silent||this.emit("added",e,t,n,i)}},{key:"addResources",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in n)"string"!=typeof n[r]&&"[object Array]"!==Object.prototype.toString.apply(n[r])||this.addResource(e,t,r,n[r],{silent:!0});i.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(i=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=C(this.data,a)||{};i?k(s,n,r):s=l({},s,n),_(this.data,a,s),o.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?l({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(b),j={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,i,r){var o=this;return e.forEach((function(e){o.processors[e]&&(t=o.processors[e].process(t,n,i,r))})),t}},N={},E=function(e){function t(e){var n,i,r,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c(this,t),n=f(this,p(t).call(this)),T&&b.call(h(n)),i=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r=e,o=h(n),i.forEach((function(e){r[e]&&(o[e]=r[e])})),n.options=a,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=y.create("translator"),n}return m(t,e),d(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var o=e.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:e,namespaces:r};var a=e.split(n);(n!==i||n===i&&this.options.ns.indexOf(a[0])>-1)&&(r=a.shift()),e=a.join(i)}return"string"==typeof r&&(r=[r]),{key:e,namespaces:r}}},{key:"translate",value:function(e,n,i){var r=this;if("object"!==o(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var a=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],n),c=s.key,u=s.namespaces,d=u[u.length-1],h=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(h&&"cimode"===h.toLowerCase()){if(f){var p=n.nsSeparator||this.options.nsSeparator;return d+p+c}return c}var g=this.resolve(e,n),m=g&&g.res,v=g&&g.usedKey||c,y=g&&g.exactUsedKey||c,b=Object.prototype.toString.apply(m),x=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject;if(w&&m&&"string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m&&["[object Number]","[object Function]","[object RegExp]"].indexOf(b)<0&&("string"!=typeof x||"[object Array]"!==b)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,m,l({},n,{ns:u})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");if(a){var A="[object Array]"===b,_=A?[]:{},C=A?y:v;for(var M in m)if(Object.prototype.hasOwnProperty.call(m,M)){var k="".concat(C).concat(a).concat(M);_[M]=this.translate(k,l({},n,{joinArrays:!1,ns:u})),_[M]===k&&(_[M]=m[M])}m=_}}else if(w&&"string"==typeof x&&"[object Array]"===b)(m=m.join(x))&&(m=this.extendTranslation(m,e,n,i));else{var S=!1,I=!1,L=void 0!==n.count&&"string"!=typeof n.count,T=t.hasDefaultValue(n),D=L?this.pluralResolver.getSuffix(h,n.count):"",O=n["defaultValue".concat(D)]||n.defaultValue;!this.isValidLookup(m)&&T&&(S=!0,m=O),this.isValidLookup(m)||(I=!0,m=c);var j=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&I?void 0:m,N=T&&O!==m&&this.options.updateMissing;if(I||S||N){if(this.logger.log(N?"updateKey":"missingKey",h,d,c,N?O:m),a){var E=this.resolve(c,l({},n,{keySeparator:!1}));E&&E.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var P=[],F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&F&&F[0])for(var z=0;z<F.length;z++)P.push(F[z]);else"all"===this.options.saveMissingTo?P=this.languageUtils.toResolveHierarchy(n.lng||this.language):P.push(n.lng||this.language);var R=function(e,t,i){r.options.missingKeyHandler?r.options.missingKeyHandler(e,d,t,N?i:j,N,n):r.backendConnector&&r.backendConnector.saveMissing&&r.backendConnector.saveMissing(e,d,t,N?i:j,N,n),r.emit("missingKey",e,d,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&L?P.forEach((function(e){r.pluralResolver.getSuffixes(e).forEach((function(t){R([e],c+t,n["defaultValue".concat(t)]||O)}))})):R(P,c,O))}m=this.extendTranslation(m,e,n,g,i),I&&m===c&&this.options.appendNamespaceToMissingKey&&(m="".concat(d,":").concat(c)),(I||S)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(m))}return m}},{key:"extendTranslation",value:function(e,t,n,i,r){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(l({},n,{interpolation:l({},this.options.interpolation,n.interpolation)}));var a,s=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(s){var c=e.match(this.interpolator.nestingRegexp);a=c&&c.length}var u=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(u=l({},this.options.interpolation.defaultVariables,u)),e=this.interpolator.interpolate(e,u,n.lng||this.language,n),s){var d=e.match(this.interpolator.nestingRegexp);a<(d&&d.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];return r&&r[0]===i[0]&&!n.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(i[0]," in key: ").concat(t[0])),null):o.translate.apply(o,i.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var h=n.postProcess||this.options.postProcess,f="string"==typeof h?[h]:h;return null!=e&&f&&f.length&&!1!==n.applyPostProcessor&&(e=j.handle(f,e,t,this.options&&this.options.postProcessPassResolved?l({i18nResolved:i},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,i,r,o,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),c=l.key;n=c;var u=l.namespaces;a.options.fallbackNS&&(u=u.concat(a.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,h=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,f=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);u.forEach((function(e){a.isValidLookup(t)||(o=e,!N["".concat(f[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(N["".concat(f[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(f.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach((function(n){if(!a.isValidLookup(t)){r=n;var o,l,u=c,f=[u];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(f,c,n,e,s):(d&&(o=a.pluralResolver.getSuffix(n,s.count)),d&&h&&f.push(u+o),h&&f.push(u+="".concat(a.options.contextSeparator).concat(s.context)),d&&f.push(u+=o));l=f.pop();)a.isValidLookup(t)||(i=l,t=a.getResource(n,e,l,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:i,usedLng:r,usedNS:o}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,i):this.resourceStore.getResource(e,t,n,i)}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}]),t}(b);function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var F=function(){function e(t){c(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=y.create("languageUtils")}return d(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=P(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=P(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=P(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var i=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(i)||(t=i)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var i=n.getLanguagePartFromCode(e);if(n.isSupportedCode(i))return t=i;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(i))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,i=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],o=function(e){e&&(n.isSupportedCode(e)?r.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),i.forEach((function(e){r.indexOf(e)<0&&o(n.formatLanguageCode(e))})),r}}]),e}(),z=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},B=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,e),this.languageUtils=t,this.options=i,this.logger=y.create("pluralResolver"),this.rules=(n={},z.forEach((function(e){e.lngs.forEach((function(t){n[t]={numbers:e.nr,plurals:R[e.fc]}}))})),n)}return d(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,i=this.getRule(e);if(i){var r=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[r];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var a=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),W=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,e),this.logger=y.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return d(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:L,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?S(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?S(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?S(t.nestingPrefix):t.nestingPrefixEscaped||S("$t("),this.nestingSuffix=t.nestingSuffix?S(t.nestingSuffix):t.nestingSuffixEscaped||S(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,i){var r,o,a,s=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var d=function(e){if(e.indexOf(s.formatSeparator)<0){var r=M(t,c,e);return s.alwaysFormat?s.format(r,void 0,n,l({},i,t,{interpolationkey:e})):r}var o=e.split(s.formatSeparator),a=o.shift().trim(),u=o.join(s.formatSeparator).trim();return s.format(M(t,c,a),u,n,l({},i,t,{interpolationkey:a}))};this.resetRegExp();var h=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,f=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?u(s.escape(e)):u(e)}}].forEach((function(t){for(a=0;r=t.regex.exec(e);){if(void 0===(o=d(r[1].trim())))if("function"==typeof h){var n=h(e,r,i);o="string"==typeof n?n:""}else{if(f){o=r[0];continue}s.logger.warn("missed to pass in variable ".concat(r[1]," for interpolating ").concat(e)),o=""}else"string"==typeof o||s.useRawValueToEscape||(o=w(o));var l=t.safeValue(o);if(e=e.replace(r[0],l),f?(t.regex.lastIndex+=l.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,i,r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=l({},o);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var i=e.split(new RegExp("".concat(n,"[ ]*{"))),r="{".concat(i[1]);e=i[0],r=(r=this.interpolate(r,a)).replace(/'/g,'"');try{a=JSON.parse(r),t&&(a=l({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(r)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var c=[],u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var d=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=d.shift(),c=d,u=!0}if((i=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof i)return i;"string"!=typeof i&&(i=w(i)),i||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),i=""),u&&(i=c.reduce((function(e,t){return r.format(e,t,o.lng,l({},o,{interpolationkey:n[1].trim()}))}),i.trim())),e=e.replace(n[0],i),this.regexp.lastIndex=0}return e}}]),e}(),Y=function(e){function t(e,n,i){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return c(this,t),r=f(this,p(t).call(this)),T&&b.call(h(r)),r.backend=e,r.store=n,r.services=i,r.languageUtils=i.languageUtils,r.options=o,r.logger=y.create("backendConnector"),r.state={},r.queue=[],r.backend&&r.backend.init&&r.backend.init(i,o.backend,o),r}return m(t,e),d(t,[{key:"queueLoad",value:function(e,t,n,i){var r=this,o=[],a=[],s=[],l=[];return e.forEach((function(e){var i=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&r.store.hasResourceBundle(e,t)?r.state[s]=2:r.state[s]<0||(1===r.state[s]?a.indexOf(s)<0&&a.push(s):(r.state[s]=1,i=!1,a.indexOf(s)<0&&a.push(s),o.indexOf(s)<0&&o.push(s),l.indexOf(t)<0&&l.push(t)))})),i||s.push(e)})),(o.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:i}),{toLoad:o,pending:a,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,n){var i=e.split("|"),r=i[0],o=i[1];t&&this.emit("failedLoading",r,o,t),n&&this.store.addResourceBundle(r,o,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var i,s,l,c,u;i=n.loaded,s=o,(c=(l=A(i,[r],Object)).obj)[u=l.k]=c[u]||[],c[u].push(s),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,l){s&&l&&r<5?setTimeout((function(){i.read.call(i,e,t,n,r+1,2*o,a)}),o):a(s,l)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,i,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e.split("|"),r=i[0],o=i[1];this.read(r,o,"read",void 0,void 0,(function(i,a){i&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(r," failed"),i),!i&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(r),a),t.loaded(e,i,a)}))}},{key:"saveMissing",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,i,null,l({},o,{isUpdate:r})),e&&e[0]&&this.store.addResource(e[0],t,n,i))}}]),t}(b);function U(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function H(){}const V=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(c(this,t),e=f(this,p(t).call(this)),T&&b.call(h(e)),e.options=U(n),e.services={},e.logger=y,e.modules={external:[]},i&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,i),f(e,h(e));setTimeout((function(){e.init(n,i)}),0)}return e}return m(t,e),d(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function i(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=l({},{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===o(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===o(e[2])||"object"===o(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,i){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}},this.options,U(t)),this.format=this.options.interpolation.format,n||(n=H),!this.options.isClone){this.modules.logger?y.init(i(this.modules.logger),this.options):y.init(null,this.options);var r=new F(this.options);this.store=new O(this.options.resources,this.options);var a=this.services;a.logger=y,a.resourceStore=this.store,a.languageUtils=r,a.pluralResolver=new B(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new W(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new Y(i(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];e.emit.apply(e,[t].concat(i))})),this.modules.languageDetector&&(a.languageDetector=i(this.modules.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=i(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new E(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];e.emit.apply(e,[t].concat(i))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var c=x(),u=function(){var t=function(t,i){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(i),n(t,i)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H,i="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return n();var r=[],o=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){r.indexOf(e)<0&&r.push(e)}))};i?o(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return o(e)})),this.options.preload&&this.options.preload.forEach((function(e){return o(e)})),this.services.backendConnector.load(r,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(e,t,n){var i=x();return e||(e=this.languages),t||(t=this.options.ns),n||(n=H),this.services.backendConnector.reload(e,t,(function(e){i.resolve(),n(e)})),i}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&j.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var i=x();this.emit("languageChanging",e);var r=function(r){e||r||!n.services.languageDetector||(r=[]);var o="string"==typeof r?r:n.services.languageUtils.getBestMatchFromCodes(r);o&&(n.language||(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,(function(e){!function(e,r){r?(n.language=r,n.languages=n.services.languageUtils.toResolveHierarchy(r),n.translator.changeLanguage(r),n.isLanguageChangingTo=void 0,n.emit("languageChanged",r),n.logger.log("languageChanged",r)):n.isLanguageChangingTo=void 0,i.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(r):r(e):r(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(e,t,n){var i=this,r=function e(t,r){var a;if("object"!==o(r)){for(var s=arguments.length,c=new Array(s>2?s-2:0),u=2;u<s;u++)c[u-2]=arguments[u];a=i.options.overloadTranslationOptionHandler([t,r].concat(c))}else a=l({},r);a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns;var d=i.options.keySeparator||".",h=n?"".concat(n).concat(d).concat(t):t;return i.t(h,a)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var a=function(e,n){var i=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===i||2===i};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||!(!a(i,e)||r&&!a(o,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,i=x();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){i.resolve(),t&&t(e)})),i):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=x();"string"==typeof e&&(e=[e]);var i=this.options.preload||[],r=e.filter((function(e){return i.indexOf(e)<0}));return r.length?(this.options.preload=i.concat(r),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H,r=l({},this.options,n,{isClone:!0}),o=new t(r);return["store","services","language"].forEach((function(t){o[t]=e[t]})),o.services=l({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new E(o.services,o.options),o.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];o.emit.apply(o,[e].concat(n))})),o.init(r,i),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(b));var Z,G,Q=n(34),J=n.n(Q),q=9e15,X=1e9,K="0123456789abcdef",$="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",ee="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",te={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-q,maxE:q,crypto:!1},ne=!0,ie="[DecimalError] ",re=ie+"Invalid argument: ",oe=ie+"Precision limit exceeded",ae=ie+"crypto unavailable",se="[object Decimal]",le=Math.floor,ce=Math.pow,ue=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,de=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,he=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,fe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,pe=1e7,ge=7,me=$.length-1,ve=ee.length-1,ye={toStringTag:se};function be(e){var t,n,i,r=e.length-1,o="",a=e[0];if(r>0){for(o+=a,t=1;t<r;t++)i=e[t]+"",(n=ge-i.length)&&(o+=Te(n)),o+=i;a=e[t],(n=ge-(i=a+"").length)&&(o+=Te(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}function xe(e,t,n){if(e!==~~e||e<t||e>n)throw Error(re+e)}function we(e,t,n,i){var r,o,a,s;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=ge,r=0):(r=Math.ceil((t+1)/ge),t%=ge),o=ce(10,ge-t),s=e[r]%o|0,null==i?t<3?(0==t?s=s/100|0:1==t&&(s=s/10|0),a=n<4&&99999==s||n>3&&49999==s||5e4==s||0==s):a=(n<4&&s+1==o||n>3&&s+1==o/2)&&(e[r+1]/o/100|0)==ce(10,t-2)-1||(s==o/2||0==s)&&0==(e[r+1]/o/100|0):t<4?(0==t?s=s/1e3|0:1==t?s=s/100|0:2==t&&(s=s/10|0),a=(i||n<4)&&9999==s||!i&&n>3&&4999==s):a=((i||n<4)&&s+1==o||!i&&n>3&&s+1==o/2)&&(e[r+1]/o/1e3|0)==ce(10,t-3)-1,a}function Ae(e,t,n){for(var i,r,o=[0],a=0,s=e.length;a<s;){for(r=o.length;r--;)o[r]*=t;for(o[0]+=K.indexOf(e.charAt(a++)),i=0;i<o.length;i++)o[i]>n-1&&(void 0===o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/n|0,o[i]%=n)}return o.reverse()}ye.absoluteValue=ye.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),Ce(e)},ye.ceil=function(){return Ce(new this.constructor(this),this.e+1,2)},ye.clampedTo=ye.clamp=function(e,t){var n=this,i=n.constructor;if(e=new i(e),t=new i(t),!e.s||!t.s)return new i(NaN);if(e.gt(t))throw Error(re+t);return n.cmp(e)<0?e:n.cmp(t)>0?t:new i(n)},ye.comparedTo=ye.cmp=function(e){var t,n,i,r,o=this,a=o.d,s=(e=new o.constructor(e)).d,l=o.s,c=e.s;if(!a||!s)return l&&c?l!==c?l:a===s?0:!a^l<0?1:-1:NaN;if(!a[0]||!s[0])return a[0]?l:s[0]?-c:0;if(l!==c)return l;if(o.e!==e.e)return o.e>e.e^l<0?1:-1;for(t=0,n=(i=a.length)<(r=s.length)?i:r;t<n;++t)if(a[t]!==s[t])return a[t]>s[t]^l<0?1:-1;return i===r?0:i>r^l<0?1:-1},ye.cosine=ye.cos=function(){var e,t,n=this,i=n.constructor;return n.d?n.d[0]?(e=i.precision,t=i.rounding,i.precision=e+Math.max(n.e,n.sd())+ge,i.rounding=1,n=function(e,t){var n,i,r;if(t.isZero())return t;(i=t.d.length)<32?r=(1/Be(4,n=Math.ceil(i/3))).toString():(n=16,r="2.3283064365386962890625e-10"),e.precision+=n,t=Re(e,1,t.times(r),new e(1));for(var o=n;o--;){var a=t.times(t);t=a.times(a).minus(a).times(8).plus(1)}return e.precision-=n,t}(i,We(i,n)),i.precision=e,i.rounding=t,Ce(2==G||3==G?n.neg():n,e,t,!0)):new i(1):new i(NaN)},ye.cubeRoot=ye.cbrt=function(){var e,t,n,i,r,o,a,s,l,c,u=this,d=u.constructor;if(!u.isFinite()||u.isZero())return new d(u);for(ne=!1,(o=u.s*ce(u.s*u,1/3))&&Math.abs(o)!=1/0?i=new d(o.toString()):(n=be(u.d),(o=((e=u.e)-n.length+1)%3)&&(n+=1==o||-2==o?"0":"00"),o=ce(n,1/3),e=le((e+1)/3)-(e%3==(e<0?-1:2)),(i=new d(n=o==1/0?"5e"+e:(n=o.toExponential()).slice(0,n.indexOf("e")+1)+e)).s=u.s),a=(e=d.precision)+3;;)if(c=(l=(s=i).times(s).times(s)).plus(u),i=_e(c.plus(u).times(s),c.plus(l),a+2,1),be(s.d).slice(0,a)===(n=be(i.d)).slice(0,a)){if("9999"!=(n=n.slice(a-3,a+1))&&(r||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(Ce(i,e+1,1),t=!i.times(i).times(i).eq(u));break}if(!r&&(Ce(s,e+1,0),s.times(s).times(s).eq(u))){i=s;break}a+=4,r=1}return ne=!0,Ce(i,e,d.rounding,t)},ye.decimalPlaces=ye.dp=function(){var e,t=this.d,n=NaN;if(t){if(n=((e=t.length-1)-le(this.e/ge))*ge,e=t[e])for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n},ye.dividedBy=ye.div=function(e){return _e(this,new this.constructor(e))},ye.dividedToIntegerBy=ye.divToInt=function(e){var t=this.constructor;return Ce(_e(this,new t(e),0,1,1),t.precision,t.rounding)},ye.equals=ye.eq=function(e){return 0===this.cmp(e)},ye.floor=function(){return Ce(new this.constructor(this),this.e+1,3)},ye.greaterThan=ye.gt=function(e){return this.cmp(e)>0},ye.greaterThanOrEqualTo=ye.gte=function(e){var t=this.cmp(e);return 1==t||0===t},ye.hyperbolicCosine=ye.cosh=function(){var e,t,n,i,r,o=this,a=o.constructor,s=new a(1);if(!o.isFinite())return new a(o.s?1/0:NaN);if(o.isZero())return s;n=a.precision,i=a.rounding,a.precision=n+Math.max(o.e,o.sd())+4,a.rounding=1,(r=o.d.length)<32?t=(1/Be(4,e=Math.ceil(r/3))).toString():(e=16,t="2.3283064365386962890625e-10"),o=Re(a,1,o.times(t),new a(1),!0);for(var l,c=e,u=new a(8);c--;)l=o.times(o),o=s.minus(l.times(u.minus(l.times(u))));return Ce(o,a.precision=n,a.rounding=i,!0)},ye.hyperbolicSine=ye.sinh=function(){var e,t,n,i,r=this,o=r.constructor;if(!r.isFinite()||r.isZero())return new o(r);if(t=o.precision,n=o.rounding,o.precision=t+Math.max(r.e,r.sd())+4,o.rounding=1,(i=r.d.length)<3)r=Re(o,2,r,r,!0);else{e=(e=1.4*Math.sqrt(i))>16?16:0|e,r=Re(o,2,r=r.times(1/Be(5,e)),r,!0);for(var a,s=new o(5),l=new o(16),c=new o(20);e--;)a=r.times(r),r=r.times(s.plus(a.times(l.times(a).plus(c))))}return o.precision=t,o.rounding=n,Ce(r,t,n,!0)},ye.hyperbolicTangent=ye.tanh=function(){var e,t,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(e=i.precision,t=i.rounding,i.precision=e+7,i.rounding=1,_e(n.sinh(),n.cosh(),i.precision=e,i.rounding=t)):new i(n.s)},ye.inverseCosine=ye.acos=function(){var e,t=this,n=t.constructor,i=t.abs().cmp(1),r=n.precision,o=n.rounding;return-1!==i?0===i?t.isNeg()?Ie(n,r,o):new n(0):new n(NaN):t.isZero()?Ie(n,r+4,o).times(.5):(n.precision=r+6,n.rounding=1,t=t.asin(),e=Ie(n,r+4,o).times(.5),n.precision=r,n.rounding=o,e.minus(t))},ye.inverseHyperbolicCosine=ye.acosh=function(){var e,t,n=this,i=n.constructor;return n.lte(1)?new i(n.eq(1)?0:NaN):n.isFinite()?(e=i.precision,t=i.rounding,i.precision=e+Math.max(Math.abs(n.e),n.sd())+4,i.rounding=1,ne=!1,n=n.times(n).minus(1).sqrt().plus(n),ne=!0,i.precision=e,i.rounding=t,n.ln()):new i(n)},ye.inverseHyperbolicSine=ye.asinh=function(){var e,t,n=this,i=n.constructor;return!n.isFinite()||n.isZero()?new i(n):(e=i.precision,t=i.rounding,i.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,i.rounding=1,ne=!1,n=n.times(n).plus(1).sqrt().plus(n),ne=!0,i.precision=e,i.rounding=t,n.ln())},ye.inverseHyperbolicTangent=ye.atanh=function(){var e,t,n,i,r=this,o=r.constructor;return r.isFinite()?r.e>=0?new o(r.abs().eq(1)?r.s/0:r.isZero()?r:NaN):(e=o.precision,t=o.rounding,i=r.sd(),Math.max(i,e)<2*-r.e-1?Ce(new o(r),e,t,!0):(o.precision=n=i-r.e,r=_e(r.plus(1),new o(1).minus(r),n+e,1),o.precision=e+4,o.rounding=1,r=r.ln(),o.precision=e,o.rounding=t,r.times(.5))):new o(NaN)},ye.inverseSine=ye.asin=function(){var e,t,n,i,r=this,o=r.constructor;return r.isZero()?new o(r):(t=r.abs().cmp(1),n=o.precision,i=o.rounding,-1!==t?0===t?((e=Ie(o,n+4,i).times(.5)).s=r.s,e):new o(NaN):(o.precision=n+6,o.rounding=1,r=r.div(new o(1).minus(r.times(r)).sqrt().plus(1)).atan(),o.precision=n,o.rounding=i,r.times(2)))},ye.inverseTangent=ye.atan=function(){var e,t,n,i,r,o,a,s,l,c=this,u=c.constructor,d=u.precision,h=u.rounding;if(c.isFinite()){if(c.isZero())return new u(c);if(c.abs().eq(1)&&d+4<=ve)return(a=Ie(u,d+4,h).times(.25)).s=c.s,a}else{if(!c.s)return new u(NaN);if(d+4<=ve)return(a=Ie(u,d+4,h).times(.5)).s=c.s,a}for(u.precision=s=d+10,u.rounding=1,e=n=Math.min(28,s/ge+2|0);e;--e)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(ne=!1,t=Math.ceil(s/ge),i=1,l=c.times(c),a=new u(c),r=c;-1!==e;)if(r=r.times(l),o=a.minus(r.div(i+=2)),r=r.times(l),void 0!==(a=o.plus(r.div(i+=2))).d[t])for(e=t;a.d[e]===o.d[e]&&e--;);return n&&(a=a.times(2<<n-1)),ne=!0,Ce(a,u.precision=d,u.rounding=h,!0)},ye.isFinite=function(){return!!this.d},ye.isInteger=ye.isInt=function(){return!!this.d&&le(this.e/ge)>this.d.length-2},ye.isNaN=function(){return!this.s},ye.isNegative=ye.isNeg=function(){return this.s<0},ye.isPositive=ye.isPos=function(){return this.s>0},ye.isZero=function(){return!!this.d&&0===this.d[0]},ye.lessThan=ye.lt=function(e){return this.cmp(e)<0},ye.lessThanOrEqualTo=ye.lte=function(e){return this.cmp(e)<1},ye.logarithm=ye.log=function(e){var t,n,i,r,o,a,s,l,c=this,u=c.constructor,d=u.precision,h=u.rounding;if(null==e)e=new u(10),t=!0;else{if(n=(e=new u(e)).d,e.s<0||!n||!n[0]||e.eq(1))return new u(NaN);t=e.eq(10)}if(n=c.d,c.s<0||!n||!n[0]||c.eq(1))return new u(n&&!n[0]?-1/0:1!=c.s?NaN:n?0:1/0);if(t)if(n.length>1)o=!0;else{for(r=n[0];r%10==0;)r/=10;o=1!==r}if(ne=!1,a=Ee(c,s=d+5),i=t?Se(u,s+10):Ee(e,s),we((l=_e(a,i,s,1)).d,r=d,h))do{if(a=Ee(c,s+=10),i=t?Se(u,s+10):Ee(e,s),l=_e(a,i,s,1),!o){+be(l.d).slice(r+1,r+15)+1==1e14&&(l=Ce(l,d+1,0));break}}while(we(l.d,r+=10,h));return ne=!0,Ce(l,d,h)},ye.minus=ye.sub=function(e){var t,n,i,r,o,a,s,l,c,u,d,h,f=this,p=f.constructor;if(e=new p(e),!f.d||!e.d)return f.s&&e.s?f.d?e.s=-e.s:e=new p(e.d||f.s!==e.s?f:NaN):e=new p(NaN),e;if(f.s!=e.s)return e.s=-e.s,f.plus(e);if(c=f.d,h=e.d,s=p.precision,l=p.rounding,!c[0]||!h[0]){if(h[0])e.s=-e.s;else{if(!c[0])return new p(3===l?-0:0);e=new p(f)}return ne?Ce(e,s,l):e}if(n=le(e.e/ge),u=le(f.e/ge),c=c.slice(),o=u-n){for((d=o<0)?(t=c,o=-o,a=h.length):(t=h,n=u,a=c.length),o>(i=Math.max(Math.ceil(s/ge),a)+2)&&(o=i,t.length=1),t.reverse(),i=o;i--;)t.push(0);t.reverse()}else{for((d=(i=c.length)<(a=h.length))&&(a=i),i=0;i<a;i++)if(c[i]!=h[i]){d=c[i]<h[i];break}o=0}for(d&&(t=c,c=h,h=t,e.s=-e.s),a=c.length,i=h.length-a;i>0;--i)c[a++]=0;for(i=h.length;i>o;){if(c[--i]<h[i]){for(r=i;r&&0===c[--r];)c[r]=pe-1;--c[r],c[i]+=pe}c[i]-=h[i]}for(;0===c[--a];)c.pop();for(;0===c[0];c.shift())--n;return c[0]?(e.d=c,e.e=ke(c,n),ne?Ce(e,s,l):e):new p(3===l?-0:0)},ye.modulo=ye.mod=function(e){var t,n=this,i=n.constructor;return e=new i(e),!n.d||!e.s||e.d&&!e.d[0]?new i(NaN):!e.d||n.d&&!n.d[0]?Ce(new i(n),i.precision,i.rounding):(ne=!1,9==i.modulo?(t=_e(n,e.abs(),0,3,1)).s*=e.s:t=_e(n,e,0,i.modulo,1),t=t.times(e),ne=!0,n.minus(t))},ye.naturalExponential=ye.exp=function(){return Ne(this)},ye.naturalLogarithm=ye.ln=function(){return Ee(this)},ye.negated=ye.neg=function(){var e=new this.constructor(this);return e.s=-e.s,Ce(e)},ye.plus=ye.add=function(e){var t,n,i,r,o,a,s,l,c,u,d=this,h=d.constructor;if(e=new h(e),!d.d||!e.d)return d.s&&e.s?d.d||(e=new h(e.d||d.s===e.s?d:NaN)):e=new h(NaN),e;if(d.s!=e.s)return e.s=-e.s,d.minus(e);if(c=d.d,u=e.d,s=h.precision,l=h.rounding,!c[0]||!u[0])return u[0]||(e=new h(d)),ne?Ce(e,s,l):e;if(o=le(d.e/ge),i=le(e.e/ge),c=c.slice(),r=o-i){for(r<0?(n=c,r=-r,a=u.length):(n=u,i=o,a=c.length),r>(a=(o=Math.ceil(s/ge))>a?o+1:a+1)&&(r=a,n.length=1),n.reverse();r--;)n.push(0);n.reverse()}for((a=c.length)-(r=u.length)<0&&(r=a,n=u,u=c,c=n),t=0;r;)t=(c[--r]=c[r]+u[r]+t)/pe|0,c[r]%=pe;for(t&&(c.unshift(t),++i),a=c.length;0==c[--a];)c.pop();return e.d=c,e.e=ke(c,i),ne?Ce(e,s,l):e},ye.precision=ye.sd=function(e){var t,n=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(re+e);return n.d?(t=Le(n.d),e&&n.e+1>t&&(t=n.e+1)):t=NaN,t},ye.round=function(){var e=this,t=e.constructor;return Ce(new t(e),e.e+1,t.rounding)},ye.sine=ye.sin=function(){var e,t,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(e=i.precision,t=i.rounding,i.precision=e+Math.max(n.e,n.sd())+ge,i.rounding=1,n=function(e,t){var n,i=t.d.length;if(i<3)return t.isZero()?t:Re(e,2,t,t);n=(n=1.4*Math.sqrt(i))>16?16:0|n,t=Re(e,2,t=t.times(1/Be(5,n)),t);for(var r,o=new e(5),a=new e(16),s=new e(20);n--;)r=t.times(t),t=t.times(o.plus(r.times(a.times(r).minus(s))));return t}(i,We(i,n)),i.precision=e,i.rounding=t,Ce(G>2?n.neg():n,e,t,!0)):new i(NaN)},ye.squareRoot=ye.sqrt=function(){var e,t,n,i,r,o,a=this,s=a.d,l=a.e,c=a.s,u=a.constructor;if(1!==c||!s||!s[0])return new u(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);for(ne=!1,0==(c=Math.sqrt(+a))||c==1/0?(((t=be(s)).length+l)%2==0&&(t+="0"),c=Math.sqrt(t),l=le((l+1)/2)-(l<0||l%2),i=new u(t=c==1/0?"5e"+l:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+l)):i=new u(c.toString()),n=(l=u.precision)+3;;)if(i=(o=i).plus(_e(a,o,n+2,1)).times(.5),be(o.d).slice(0,n)===(t=be(i.d)).slice(0,n)){if("9999"!=(t=t.slice(n-3,n+1))&&(r||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(Ce(i,l+1,1),e=!i.times(i).eq(a));break}if(!r&&(Ce(o,l+1,0),o.times(o).eq(a))){i=o;break}n+=4,r=1}return ne=!0,Ce(i,l,u.rounding,e)},ye.tangent=ye.tan=function(){var e,t,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(e=i.precision,t=i.rounding,i.precision=e+10,i.rounding=1,(n=n.sin()).s=1,n=_e(n,new i(1).minus(n.times(n)).sqrt(),e+10,0),i.precision=e,i.rounding=t,Ce(2==G||4==G?n.neg():n,e,t,!0)):new i(NaN)},ye.times=ye.mul=function(e){var t,n,i,r,o,a,s,l,c,u=this,d=u.constructor,h=u.d,f=(e=new d(e)).d;if(e.s*=u.s,!(h&&h[0]&&f&&f[0]))return new d(!e.s||h&&!h[0]&&!f||f&&!f[0]&&!h?NaN:h&&f?0*e.s:e.s/0);for(n=le(u.e/ge)+le(e.e/ge),(l=h.length)<(c=f.length)&&(o=h,h=f,f=o,a=l,l=c,c=a),o=[],i=a=l+c;i--;)o.push(0);for(i=c;--i>=0;){for(t=0,r=l+i;r>i;)s=o[r]+f[i]*h[r-i-1]+t,o[r--]=s%pe|0,t=s/pe|0;o[r]=(o[r]+t)%pe|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=ke(o,n),ne?Ce(e,d.precision,d.rounding):e},ye.toBinary=function(e,t){return Ye(this,2,e,t)},ye.toDecimalPlaces=ye.toDP=function(e,t){var n=this,i=n.constructor;return n=new i(n),void 0===e?n:(xe(e,0,X),void 0===t?t=i.rounding:xe(t,0,8),Ce(n,e+n.e+1,t))},ye.toExponential=function(e,t){var n,i=this,r=i.constructor;return void 0===e?n=Me(i,!0):(xe(e,0,X),void 0===t?t=r.rounding:xe(t,0,8),n=Me(i=Ce(new r(i),e+1,t),!0,e+1)),i.isNeg()&&!i.isZero()?"-"+n:n},ye.toFixed=function(e,t){var n,i,r=this,o=r.constructor;return void 0===e?n=Me(r):(xe(e,0,X),void 0===t?t=o.rounding:xe(t,0,8),n=Me(i=Ce(new o(r),e+r.e+1,t),!1,e+i.e+1)),r.isNeg()&&!r.isZero()?"-"+n:n},ye.toFraction=function(e){var t,n,i,r,o,a,s,l,c,u,d,h,f=this,p=f.d,g=f.constructor;if(!p)return new g(f);if(c=n=new g(1),i=l=new g(0),a=(o=(t=new g(i)).e=Le(p)-f.e-1)%ge,t.d[0]=ce(10,a<0?ge+a:a),null==e)e=o>0?t:c;else{if(!(s=new g(e)).isInt()||s.lt(c))throw Error(re+s);e=s.gt(t)?o>0?t:c:s}for(ne=!1,s=new g(be(p)),u=g.precision,g.precision=o=p.length*ge*2;d=_e(s,t,0,1,1),1!=(r=n.plus(d.times(i))).cmp(e);)n=i,i=r,r=c,c=l.plus(d.times(r)),l=r,r=t,t=s.minus(d.times(r)),s=r;return r=_e(e.minus(n),i,0,1,1),l=l.plus(r.times(c)),n=n.plus(r.times(i)),l.s=c.s=f.s,h=_e(c,i,o,1).minus(f).abs().cmp(_e(l,n,o,1).minus(f).abs())<1?[c,i]:[l,n],g.precision=u,ne=!0,h},ye.toHexadecimal=ye.toHex=function(e,t){return Ye(this,16,e,t)},ye.toNearest=function(e,t){var n=this,i=n.constructor;if(n=new i(n),null==e){if(!n.d)return n;e=new i(1),t=i.rounding}else{if(e=new i(e),void 0===t?t=i.rounding:xe(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(ne=!1,n=_e(n,e,0,t,1).times(e),ne=!0,Ce(n)):(e.s=n.s,n=e),n},ye.toNumber=function(){return+this},ye.toOctal=function(e,t){return Ye(this,8,e,t)},ye.toPower=ye.pow=function(e){var t,n,i,r,o,a,s=this,l=s.constructor,c=+(e=new l(e));if(!(s.d&&e.d&&s.d[0]&&e.d[0]))return new l(ce(+s,c));if((s=new l(s)).eq(1))return s;if(i=l.precision,o=l.rounding,e.eq(1))return Ce(s,i,o);if((t=le(e.e/ge))>=e.d.length-1&&(n=c<0?-c:c)<=9007199254740991)return r=De(l,s,n,i),e.s<0?new l(1).div(r):Ce(r,i,o);if((a=s.s)<0){if(t<e.d.length-1)return new l(NaN);if(0==(1&e.d[t])&&(a=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=a,s}return(t=0!=(n=ce(+s,c))&&isFinite(n)?new l(n+"").e:le(c*(Math.log("0."+be(s.d))/Math.LN10+s.e+1)))>l.maxE+1||t<l.minE-1?new l(t>0?a/0:0):(ne=!1,l.rounding=s.s=1,n=Math.min(12,(t+"").length),(r=Ne(e.times(Ee(s,i+n)),i)).d&&we((r=Ce(r,i+5,1)).d,i,o)&&(t=i+10,+be((r=Ce(Ne(e.times(Ee(s,t+n)),t),t+5,1)).d).slice(i+1,i+15)+1==1e14&&(r=Ce(r,i+1,0))),r.s=a,ne=!0,l.rounding=o,Ce(r,i,o))},ye.toPrecision=function(e,t){var n,i=this,r=i.constructor;return void 0===e?n=Me(i,i.e<=r.toExpNeg||i.e>=r.toExpPos):(xe(e,1,X),void 0===t?t=r.rounding:xe(t,0,8),n=Me(i=Ce(new r(i),e,t),e<=i.e||i.e<=r.toExpNeg,e)),i.isNeg()&&!i.isZero()?"-"+n:n},ye.toSignificantDigits=ye.toSD=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(xe(e,1,X),void 0===t?t=n.rounding:xe(t,0,8)),Ce(new n(this),e,t)},ye.toString=function(){var e=this,t=e.constructor,n=Me(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+n:n},ye.truncated=ye.trunc=function(){return Ce(new this.constructor(this),this.e+1,1)},ye.valueOf=ye.toJSON=function(){var e=this,t=e.constructor,n=Me(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+n:n};var _e=function(){function e(e,t,n){var i,r=0,o=e.length;for(e=e.slice();o--;)i=e[o]*t+r,e[o]=i%n|0,r=i/n|0;return r&&e.unshift(r),e}function t(e,t,n,i){var r,o;if(n!=i)o=n>i?1:-1;else for(r=o=0;r<n;r++)if(e[r]!=t[r]){o=e[r]>t[r]?1:-1;break}return o}function n(e,t,n,i){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*i+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(i,r,o,a,s,l){var c,u,d,h,f,p,g,m,v,y,b,x,w,A,_,C,M,k,S,I,L=i.constructor,T=i.s==r.s?1:-1,D=i.d,O=r.d;if(!(D&&D[0]&&O&&O[0]))return new L(i.s&&r.s&&(D?!O||D[0]!=O[0]:O)?D&&0==D[0]||!O?0*T:T/0:NaN);for(l?(f=1,u=i.e-r.e):(l=pe,f=ge,u=le(i.e/f)-le(r.e/f)),S=O.length,M=D.length,y=(v=new L(T)).d=[],d=0;O[d]==(D[d]||0);d++);if(O[d]>(D[d]||0)&&u--,null==o?(A=o=L.precision,a=L.rounding):A=s?o+(i.e-r.e)+1:o,A<0)y.push(1),p=!0;else{if(A=A/f+2|0,d=0,1==S){for(h=0,O=O[0],A++;(d<M||h)&&A--;d++)_=h*l+(D[d]||0),y[d]=_/O|0,h=_%O|0;p=h||d<M}else{for((h=l/(O[0]+1)|0)>1&&(O=e(O,h,l),D=e(D,h,l),S=O.length,M=D.length),C=S,x=(b=D.slice(0,S)).length;x<S;)b[x++]=0;(I=O.slice()).unshift(0),k=O[0],O[1]>=l/2&&++k;do{h=0,(c=t(O,b,S,x))<0?(w=b[0],S!=x&&(w=w*l+(b[1]||0)),(h=w/k|0)>1?(h>=l&&(h=l-1),1==(c=t(g=e(O,h,l),b,m=g.length,x=b.length))&&(h--,n(g,S<m?I:O,m,l))):(0==h&&(c=h=1),g=O.slice()),(m=g.length)<x&&g.unshift(0),n(b,g,x,l),-1==c&&(c=t(O,b,S,x=b.length))<1&&(h++,n(b,S<x?I:O,x,l)),x=b.length):0===c&&(h++,b=[0]),y[d++]=h,c&&b[0]?b[x++]=D[C]||0:(b=[D[C]],x=1)}while((C++<M||void 0!==b[0])&&A--);p=void 0!==b[0]}y[0]||y.shift()}if(1==f)v.e=u,Z=p;else{for(d=1,h=y[0];h>=10;h/=10)d++;v.e=d+u*f-1,Ce(v,s?o+v.e+1:o,a,p)}return v}}();function Ce(e,t,n,i){var r,o,a,s,l,c,u,d,h,f=e.constructor;e:if(null!=t){if(!(d=e.d))return e;for(r=1,s=d[0];s>=10;s/=10)r++;if((o=t-r)<0)o+=ge,a=t,l=(u=d[h=0])/ce(10,r-a-1)%10|0;else if((h=Math.ceil((o+1)/ge))>=(s=d.length)){if(!i)break e;for(;s++<=h;)d.push(0);u=l=0,r=1,a=(o%=ge)-ge+1}else{for(u=s=d[h],r=1;s>=10;s/=10)r++;l=(a=(o%=ge)-ge+r)<0?0:u/ce(10,r-a-1)%10|0}if(i=i||t<0||void 0!==d[h+1]||(a<0?u:u%ce(10,r-a-1)),c=n<4?(l||i)&&(0==n||n==(e.s<0?3:2)):l>5||5==l&&(4==n||i||6==n&&(o>0?a>0?u/ce(10,r-a):0:d[h-1])%10&1||n==(e.s<0?8:7)),t<1||!d[0])return d.length=0,c?(t-=e.e+1,d[0]=ce(10,(ge-t%ge)%ge),e.e=-t||0):d[0]=e.e=0,e;if(0==o?(d.length=h,s=1,h--):(d.length=h+1,s=ce(10,ge-o),d[h]=a>0?(u/ce(10,r-a)%ce(10,a)|0)*s:0),c)for(;;){if(0==h){for(o=1,a=d[0];a>=10;a/=10)o++;for(a=d[0]+=s,s=1;a>=10;a/=10)s++;o!=s&&(e.e++,d[0]==pe&&(d[0]=1));break}if(d[h]+=s,d[h]!=pe)break;d[h--]=0,s=1}for(o=d.length;0===d[--o];)d.pop()}return ne&&(e.e>f.maxE?(e.d=null,e.e=NaN):e.e<f.minE&&(e.e=0,e.d=[0])),e}function Me(e,t,n){if(!e.isFinite())return Pe(e);var i,r=e.e,o=be(e.d),a=o.length;return t?(n&&(i=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+Te(i):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):r<0?(o="0."+Te(-r-1)+o,n&&(i=n-a)>0&&(o+=Te(i))):r>=a?(o+=Te(r+1-a),n&&(i=n-r-1)>0&&(o=o+"."+Te(i))):((i=r+1)<a&&(o=o.slice(0,i)+"."+o.slice(i)),n&&(i=n-a)>0&&(r+1===a&&(o+="."),o+=Te(i))),o}function ke(e,t){var n=e[0];for(t*=ge;n>=10;n/=10)t++;return t}function Se(e,t,n){if(t>me)throw ne=!0,n&&(e.precision=n),Error(oe);return Ce(new e($),t,1,!0)}function Ie(e,t,n){if(t>ve)throw Error(oe);return Ce(new e(ee),t,n,!0)}function Le(e){var t=e.length-1,n=t*ge+1;if(t=e[t]){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function Te(e){for(var t="";e--;)t+="0";return t}function De(e,t,n,i){var r,o=new e(1),a=Math.ceil(i/ge+4);for(ne=!1;;){if(n%2&&Ue((o=o.times(t)).d,a)&&(r=!0),0===(n=le(n/2))){n=o.d.length-1,r&&0===o.d[n]&&++o.d[n];break}Ue((t=t.times(t)).d,a)}return ne=!0,o}function Oe(e){return 1&e.d[e.d.length-1]}function je(e,t,n){for(var i,r=new e(t[0]),o=0;++o<t.length;){if(!(i=new e(t[o])).s){r=i;break}r[n](i)&&(r=i)}return r}function Ne(e,t){var n,i,r,o,a,s,l,c=0,u=0,d=0,h=e.constructor,f=h.rounding,p=h.precision;if(!e.d||!e.d[0]||e.e>17)return new h(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(null==t?(ne=!1,l=p):l=t,s=new h(.03125);e.e>-2;)e=e.times(s),d+=5;for(l+=i=Math.log(ce(2,d))/Math.LN10*2+5|0,n=o=a=new h(1),h.precision=l;;){if(o=Ce(o.times(e),l,1),n=n.times(++u),be((s=a.plus(_e(o,n,l,1))).d).slice(0,l)===be(a.d).slice(0,l)){for(r=d;r--;)a=Ce(a.times(a),l,1);if(null!=t)return h.precision=p,a;if(!(c<3&&we(a.d,l-i,f,c)))return Ce(a,h.precision=p,f,ne=!0);h.precision=l+=10,n=o=s=new h(1),u=0,c++}a=s}}function Ee(e,t){var n,i,r,o,a,s,l,c,u,d,h,f=1,p=e,g=p.d,m=p.constructor,v=m.rounding,y=m.precision;if(p.s<0||!g||!g[0]||!p.e&&1==g[0]&&1==g.length)return new m(g&&!g[0]?-1/0:1!=p.s?NaN:g?0:p);if(null==t?(ne=!1,u=y):u=t,m.precision=u+=10,i=(n=be(g)).charAt(0),!(Math.abs(o=p.e)<15e14))return c=Se(m,u+2,y).times(o+""),p=Ee(new m(i+"."+n.slice(1)),u-10).plus(c),m.precision=y,null==t?Ce(p,y,v,ne=!0):p;for(;i<7&&1!=i||1==i&&n.charAt(1)>3;)i=(n=be((p=p.times(e)).d)).charAt(0),f++;for(o=p.e,i>1?(p=new m("0."+n),o++):p=new m(i+"."+n.slice(1)),d=p,l=a=p=_e(p.minus(1),p.plus(1),u,1),h=Ce(p.times(p),u,1),r=3;;){if(a=Ce(a.times(h),u,1),be((c=l.plus(_e(a,new m(r),u,1))).d).slice(0,u)===be(l.d).slice(0,u)){if(l=l.times(2),0!==o&&(l=l.plus(Se(m,u+2,y).times(o+""))),l=_e(l,new m(f),u,1),null!=t)return m.precision=y,l;if(!we(l.d,u-10,v,s))return Ce(l,m.precision=y,v,ne=!0);m.precision=u+=10,c=a=p=_e(d.minus(1),d.plus(1),u,1),h=Ce(p.times(p),u,1),r=s=1}l=c,r+=2}}function Pe(e){return String(e.s*e.s/0)}function Fe(e,t){var n,i,r;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(i=t.search(/e/i))>0?(n<0&&(n=i),n+=+t.slice(i+1),t=t.substring(0,i)):n<0&&(n=t.length),i=0;48===t.charCodeAt(i);i++);for(r=t.length;48===t.charCodeAt(r-1);--r);if(t=t.slice(i,r)){if(r-=i,e.e=n=n-i-1,e.d=[],i=(n+1)%ge,n<0&&(i+=ge),i<r){for(i&&e.d.push(+t.slice(0,i)),r-=ge;i<r;)e.d.push(+t.slice(i,i+=ge));t=t.slice(i),i=ge-t.length}else i-=r;for(;i--;)t+="0";e.d.push(+t),ne&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function ze(e,t){var n,i,r,o,a,s,l,c,u;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),fe.test(t))return Fe(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(de.test(t))n=16,t=t.toLowerCase();else if(ue.test(t))n=2;else{if(!he.test(t))throw Error(re+t);n=8}for((o=t.search(/p/i))>0?(l=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),a=(o=t.indexOf("."))>=0,i=e.constructor,a&&(o=(s=(t=t.replace(".","")).length)-o,r=De(i,new i(n),o,2*o)),o=u=(c=Ae(t,n,pe)).length-1;0===c[o];--o)c.pop();return o<0?new i(0*e.s):(e.e=ke(c,u),e.d=c,ne=!1,a&&(e=_e(e,r,4*s)),l&&(e=e.times(Math.abs(l)<54?ce(2,l):Tt.pow(2,l))),ne=!0,e)}function Re(e,t,n,i,r){var o,a,s,l,c=e.precision,u=Math.ceil(c/ge);for(ne=!1,l=n.times(n),s=new e(i);;){if(a=_e(s.times(l),new e(t++*t++),c,1),s=r?i.plus(a):i.minus(a),i=_e(a.times(l),new e(t++*t++),c,1),void 0!==(a=s.plus(i)).d[u]){for(o=u;a.d[o]===s.d[o]&&o--;);if(-1==o)break}o=s,s=i,i=a,a=o}return ne=!0,a.d.length=u+1,a}function Be(e,t){for(var n=e;--t;)n*=e;return n}function We(e,t){var n,i=t.s<0,r=Ie(e,e.precision,1),o=r.times(.5);if((t=t.abs()).lte(o))return G=i?4:1,t;if((n=t.divToInt(r)).isZero())G=i?3:2;else{if((t=t.minus(n.times(r))).lte(o))return G=Oe(n)?i?2:3:i?4:1,t;G=Oe(n)?i?1:4:i?3:2}return t.minus(r).abs()}function Ye(e,t,n,i){var r,o,a,s,l,c,u,d,h,f=e.constructor,p=void 0!==n;if(p?(xe(n,1,X),void 0===i?i=f.rounding:xe(i,0,8)):(n=f.precision,i=f.rounding),e.isFinite()){for(p?(r=2,16==t?n=4*n-3:8==t&&(n=3*n-2)):r=t,(a=(u=Me(e)).indexOf("."))>=0&&(u=u.replace(".",""),(h=new f(1)).e=u.length-a,h.d=Ae(Me(h),10,r),h.e=h.d.length),o=l=(d=Ae(u,10,r)).length;0==d[--l];)d.pop();if(d[0]){if(a<0?o--:((e=new f(e)).d=d,e.e=o,d=(e=_e(e,h,n,i,0,r)).d,o=e.e,c=Z),a=d[n],s=r/2,c=c||void 0!==d[n+1],c=i<4?(void 0!==a||c)&&(0===i||i===(e.s<0?3:2)):a>s||a===s&&(4===i||c||6===i&&1&d[n-1]||i===(e.s<0?8:7)),d.length=n,c)for(;++d[--n]>r-1;)d[n]=0,n||(++o,d.unshift(1));for(l=d.length;!d[l-1];--l);for(a=0,u="";a<l;a++)u+=K.charAt(d[a]);if(p){if(l>1)if(16==t||8==t){for(a=16==t?4:3,--l;l%a;l++)u+="0";for(l=(d=Ae(u,r,t)).length;!d[l-1];--l);for(a=1,u="1.";a<l;a++)u+=K.charAt(d[a])}else u=u.charAt(0)+"."+u.slice(1);u=u+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)u="0"+u;u="0."+u}else if(++o>l)for(o-=l;o--;)u+="0";else o<l&&(u=u.slice(0,o)+"."+u.slice(o))}else u=p?"0p+0":"0";u=(16==t?"0x":2==t?"0b":8==t?"0o":"")+u}else u=Pe(e);return e.s<0?"-"+u:u}function Ue(e,t){if(e.length>t)return e.length=t,!0}function He(e){return new this(e).abs()}function Ve(e){return new this(e).acos()}function Ze(e){return new this(e).acosh()}function Ge(e,t){return new this(e).plus(t)}function Qe(e){return new this(e).asin()}function Je(e){return new this(e).asinh()}function qe(e){return new this(e).atan()}function Xe(e){return new this(e).atanh()}function Ke(e,t){e=new this(e),t=new this(t);var n,i=this.precision,r=this.rounding,o=i+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(n=t.s<0?Ie(this,i,r):new this(0)).s=e.s:!e.d||t.isZero()?(n=Ie(this,o,1).times(.5)).s=e.s:t.s<0?(this.precision=o,this.rounding=1,n=this.atan(_e(e,t,o,1)),t=Ie(this,o,1),this.precision=i,this.rounding=r,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(_e(e,t,o,1)):(n=Ie(this,o,1).times(t.s>0?.25:.75)).s=e.s:n=new this(NaN),n}function $e(e){return new this(e).cbrt()}function et(e){return Ce(e=new this(e),e.e+1,2)}function tt(e,t,n){return new this(e).clamp(t,n)}function nt(e){if(!e||"object"!=typeof e)throw Error(ie+"Object expected");var t,n,i,r=!0===e.defaults,o=["precision",1,X,"rounding",0,8,"toExpNeg",-q,0,"toExpPos",0,q,"maxE",0,q,"minE",-q,0,"modulo",0,9];for(t=0;t<o.length;t+=3)if(n=o[t],r&&(this[n]=te[n]),void 0!==(i=e[n])){if(!(le(i)===i&&i>=o[t+1]&&i<=o[t+2]))throw Error(re+n+": "+i);this[n]=i}if(n="crypto",r&&(this[n]=te[n]),void 0!==(i=e[n])){if(!0!==i&&!1!==i&&0!==i&&1!==i)throw Error(re+n+": "+i);if(i){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(ae);this[n]=!0}else this[n]=!1}return this}function it(e){return new this(e).cos()}function rt(e){return new this(e).cosh()}function ot(e,t){return new this(e).div(t)}function at(e){return new this(e).exp()}function st(e){return Ce(e=new this(e),e.e+1,3)}function lt(){var e,t,n=new this(0);for(ne=!1,e=0;e<arguments.length;)if((t=new this(arguments[e++])).d)n.d&&(n=n.plus(t.times(t)));else{if(t.s)return ne=!0,new this(1/0);n=t}return ne=!0,n.sqrt()}function ct(e){return e instanceof Tt||e&&e.toStringTag===se||!1}function ut(e){return new this(e).ln()}function dt(e,t){return new this(e).log(t)}function ht(e){return new this(e).log(2)}function ft(e){return new this(e).log(10)}function pt(){return je(this,arguments,"lt")}function gt(){return je(this,arguments,"gt")}function mt(e,t){return new this(e).mod(t)}function vt(e,t){return new this(e).mul(t)}function yt(e,t){return new this(e).pow(t)}function bt(e){var t,n,i,r,o=0,a=new this(1),s=[];if(void 0===e?e=this.precision:xe(e,1,X),i=Math.ceil(e/ge),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(i));o<i;)(r=t[o])>=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:s[o++]=r%1e7;else{if(!crypto.randomBytes)throw Error(ae);for(t=crypto.randomBytes(i*=4);o<i;)(r=t[o]+(t[o+1]<<8)+(t[o+2]<<16)+((127&t[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,o):(s.push(r%1e7),o+=4);o=i/4}else for(;o<i;)s[o++]=1e7*Math.random()|0;for(i=s[--o],e%=ge,i&&e&&(r=ce(10,ge-e),s[o]=(i/r|0)*r);0===s[o];o--)s.pop();if(o<0)n=0,s=[0];else{for(n=-1;0===s[0];n-=ge)s.shift();for(i=1,r=s[0];r>=10;r/=10)i++;i<ge&&(n-=ge-i)}return a.e=n,a.d=s,a}function xt(e){return Ce(e=new this(e),e.e+1,this.rounding)}function wt(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function At(e){return new this(e).sin()}function _t(e){return new this(e).sinh()}function Ct(e){return new this(e).sqrt()}function Mt(e,t){return new this(e).sub(t)}function kt(){var e=0,t=arguments,n=new this(t[e]);for(ne=!1;n.s&&++e<t.length;)n=n.plus(t[e]);return ne=!0,Ce(n,this.precision,this.rounding)}function St(e){return new this(e).tan()}function It(e){return new this(e).tanh()}function Lt(e){return Ce(e=new this(e),e.e+1,1)}ye[Symbol.for("nodejs.util.inspect.custom")]=ye.toString,ye[Symbol.toStringTag]="Decimal";var Tt=ye.constructor=function e(t){var n,i,r;function o(e){var t,n,i,r=this;if(!(r instanceof o))return new o(e);if(r.constructor=o,ct(e))return r.s=e.s,void(ne?!e.d||e.e>o.maxE?(r.e=NaN,r.d=null):e.e<o.minE?(r.e=0,r.d=[0]):(r.e=e.e,r.d=e.d.slice()):(r.e=e.e,r.d=e.d?e.d.slice():e.d));if("number"==(i=typeof e)){if(0===e)return r.s=1/e<0?-1:1,r.e=0,void(r.d=[0]);if(e<0?(e=-e,r.s=-1):r.s=1,e===~~e&&e<1e7){for(t=0,n=e;n>=10;n/=10)t++;return void(ne?t>o.maxE?(r.e=NaN,r.d=null):t<o.minE?(r.e=0,r.d=[0]):(r.e=t,r.d=[e]):(r.e=t,r.d=[e]))}return 0*e!=0?(e||(r.s=NaN),r.e=NaN,void(r.d=null)):Fe(r,e.toString())}if("string"!==i)throw Error(re+e);return 45===(n=e.charCodeAt(0))?(e=e.slice(1),r.s=-1):(43===n&&(e=e.slice(1)),r.s=1),fe.test(e)?Fe(r,e):ze(r,e)}if(o.prototype=ye,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=nt,o.clone=e,o.isDecimal=ct,o.abs=He,o.acos=Ve,o.acosh=Ze,o.add=Ge,o.asin=Qe,o.asinh=Je,o.atan=qe,o.atanh=Xe,o.atan2=Ke,o.cbrt=$e,o.ceil=et,o.clamp=tt,o.cos=it,o.cosh=rt,o.div=ot,o.exp=at,o.floor=st,o.hypot=lt,o.ln=ut,o.log=dt,o.log10=ft,o.log2=ht,o.max=pt,o.min=gt,o.mod=mt,o.mul=vt,o.pow=yt,o.random=bt,o.round=xt,o.sign=wt,o.sin=At,o.sinh=_t,o.sqrt=Ct,o.sub=Mt,o.sum=kt,o.tan=St,o.tanh=It,o.trunc=Lt,void 0===t&&(t={}),t&&!0!==t.defaults)for(r=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],n=0;n<r.length;)t.hasOwnProperty(i=r[n++])||(t[i]=this[i]);return o.config(t),o}(te);$=new Tt($),ee=new Tt(ee);const Dt=Tt;function Ot(e,t){return e.hours()+e.minutes()+e.seconds()===0?(t&&(e=e.clone().subtract(1,"day")),e.format("D MMM Y")):e.format("D MMM Y HH:mm:ss")}function jt(e,t){const n=Dt(e),i=(void 0===t?n.toFixed():n.toFixed(Math.max(0,t))).split(".");return i[0]=i[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),i.join(".")}function Nt(e,t){const n=[],i=e.split(" ");let r="";return i.forEach(((e,o)=>{if(r.length>0){const a=r+" "+e;if(!(a.length>t))return o===i.length-1?void n.push(a):void(r=a);n.push(r),r=""}o!==i.length-1&&e.length<t?r=e:n.push(e)})),n}function Et(e,t){let n=Nt(e,t),i=n[0];return n.length>1&&(i+=" …"),i}function Pt(e){return e=e.replace(/^(\d{4,}-\d{2}-\d{2})(?!T|$)/,((e,t)=>t+"T00:00:00")),J().utc(e)}function Ft(e,t,n){return e.hasOwnProperty(t)||(e[t]=n),e[t]}function zt(e){setTimeout((function t(){e.next().done||setTimeout(t,0)}),0)}function Rt(e){return e?e.split(" ").map((e=>Array.from(e).map(((e,t)=>0===t?e.toUpperCase():e)).join(""))).join(" "):e}function Bt(e,t){return null===t?null:e.toString()+"-"+t}class Wt{constructor(e){this._p=e}type(){if(this._p)return"f"==this._p?"f":this._p.includes("/")?"d":"i"}toString(){let e;return e=this._p?"f"===this._p?"None":this._p.includes("/")?Ot(this.from(),!1)+" to "+Ot(this.to(),!0):Ot(this.to(),!0):"Undefined",e}to(){return this._p&&"f"!==this._p?this._p.includes("/")?Pt(this._p.split("/")[1]):Pt(this._p):null}from(){return this._p&&this._p.includes("/")?Pt(this._p.split("/")[0]):null}isEquivalentDuration(e){const t=e.type(),n=this.type();if(!t||!n)return!1;if(t!==n)return!1;if("d"!==t)return!0;const i=e.to().toDate()-e.from().toDate(),r=this.to().toDate()-this.from().toDate();return Math.abs(i-r)<.1*(i+r)}key(){return this._p}}const Yt={"http://standards.iso.org/iso/17442":{name:"LEI",url:"https://search.gleif.org/#/record/%s"},"http://www.sec.gov/CIK":{name:"CIK",url:"https://www.sec.gov/cgi-bin/browse-edgar?CIK=%s"},"http://www.companieshouse.gov.uk/":{name:"UK CRN",url:"https://beta.companieshouse.gov.uk/company/%08d"},"https://www.minfin.gov.ua":{name:"EDRPOU"}};class Ut{static identifierURL(e){const t=Yt[e.namespace];if(void 0!==t&&void 0!==t.url){let n=t.url.replace("%s",e.localname);return n=n.replace(/%0(\d+)d/,((t,n)=>e.localname.padStart(n,"0"))),n}}static identifierNameForFact(e){const t=Yt[e.identifier().namespace];if(void 0!==t)return t.name}static readableName(e){const t=Yt[e.namespace];return void 0!==t?"["+t.name+"] "+e.localname:e.qname}static readableNameHTML(e){const t=Yt[e.namespace],n=document.createElement("span");if(void 0!==t){n.appendChild(document.createElement("span")).textContent="["+t.name+"] ";const i=Ut.identifierURL(e);if(void 0!==i){const t=n.appendChild(document.createElement("a"));t.textContent=e.localname,t.setAttribute("target","_blank"),t.setAttribute("href",i)}else n.appendChild(document.createElement("span")).textContent=e.localname}else n.textContent=e.qname;return n}}const Ht={c:"Concept",e:"Entity",p:"Period",u:"Unit"};class Vt{constructor(e,t,n){this._aspect=e,this._value=t,this._report=n}name(){return this._aspect}label(){return Ht[this._aspect]??this._report.getLabel(this._aspect)}value(){return this._value}equalTo(e){return void 0!==e&&this._aspect===e._aspect&&this._value===e._value}isTaxonomyDefined(){return this._aspect.includes(":")}isNil(){return null===this._value}valueLabel(e){return"c"===this._aspect?this._report.getLabel(this._value,e)||this._value:this.isTaxonomyDefined()?this._report.getConcept(this._aspect).isTypedDimension()?null===this._value?"nil":this._value:this._report.getLabel(this._value,e)||this._value:"u"===this._aspect?this._report.reportSet.getUnit(this._value).measureLabel():"p"===this._aspect?new Wt(this._value).toString():"e"===this._aspect?Ut.readableName(this._report.qname(this._value)):this._value}}class Zt{constructor(e){this._aspectSet=e||[]}add(e){this._aspectSet.push(e)}uniqueValues(){let e={};for(const t of Object.values(this._aspectSet))e[t.value()]=t;return Object.values(e)}}class Gt{constructor(e,t,n){this.f=n,this.ixNode=e.reportSet.getIXNodeForItemId(t),this.report=e,this.vuid=t,this.linkedFacts=[],this._footnotes=[]}localId(){return function(e){return e.replace(/^\d+-/,"")}(this.vuid)}getLabel(e,t){return this.report.getLabel(this.f.a.c,e,t)}getLabelOrName(e,t){return this.report.getLabelOrName(this.f.a.c,e,t)}conceptName(){return this.f.a.c}concept(){return this.report.getConcept(this.f.a.c)}conceptQName(){return this.report.qname(this.f.a.c)}period(){return new Wt(this.f.a.p)}periodString(){return this.period().toString()}periodTo(){return this.period().to()}periodFrom(){return this.period().from()}value(){return this.f.v}readableValue(){let e=this.f.v;if(this.isInvalidIXValue())e="Invalid value";else if(this.isNumeric()){const t=this.decimals();let n;n=this.isNil()?"nil":jt(e,t),e=this.isMonetaryValue()?this.measureLabel()+" "+n:n+" "+this.measureLabel()}else if(this.isNil())e="nil";else if(this.escaped()){const n=t()("<div>").append(t()(t().parseHTML(e,null,!1)));n.find("p, td, th, h1, h2, h3, h4, ol, ul, pre, blockquote, dl, div").append(document.createTextNode(" ")).prepend(document.createTextNode(" ")),e=n.text().replace(/[\u00a0\s]+/g," ").trim()}else if(this.isEnumeration()){const t=[];for(const n of e.split(" "))t.push(this.report.getLabelOrName(n,"std"));e=t.join(", ")}return e}measure(){return this.unit()?.measure()}measureLabel(){return this.unit()?.measureLabel()??V.t("factDetails.noUnit")}unit(){if(void 0===this._unit){const e=this.aspect("u")?.value();if(!e)return;this._unit=this.report.reportSet.getUnit(e)}return this._unit}getConceptPrefix(){return this.conceptName().split(":")[0]}isCalculationContributor(){return void 0===this._isCalculationContributor&&(this._isCalculationContributor=this.report.isCalculationContributor(this.f.a.c)),this._isCalculationContributor}isCalculationSummation(){return void 0===this._isCalculationSummation&&(this._isCalculationSummation=this.report.isCalculationSummation(this.f.a.c)),this._isCalculationSummation}isNumeric(){return void 0!==this.f.a.u}dimensions(){const e={};for(const[t,n]of Object.entries(this.f.a))t.indexOf(":")>-1&&(e[t]=n);return e}hasExplicitDimension(){return Object.keys(this.dimensions()).some((e=>!this.report.getConcept(e).isTypedDimension()))}hasTypedDimension(){return Object.keys(this.dimensions()).some((e=>this.report.getConcept(e).isTypedDimension()))}isMonetaryValue(){return this.unit()?.isMonetary()??!1}isTextBlock(){return this.concept().isTextBlock()}aspects(){return Object.keys(this.f.a).map((e=>this.aspect(e)))}aspect(e){return void 0===this._aspects&&(this._aspects={}),void 0===this._aspects[e]&&void 0!==this.f.a[e]&&(this._aspects[e]=new Vt(e,this.f.a[e],this.report)),this._aspects[e]}isAligned(e,t){if(Object.keys(this.f.a).length!=Object.keys(e.f.a).length)return!1;for(const n in this.f.a)if(t.hasOwnProperty(n)){if(null!==t[n])if(t[n].constructor===Array){if(!t[n].includes(this.f.a[n]))return!1}else if(this.f.a[n]!=t[n])return!1}else if(this.f.a[n]!=e.f.a[n])return!1;return!0}isEquivalentDuration(e){return this.period().isEquivalentDuration(e.period())}decimals(){return this.f.d}scale(){return this.ixNode.scale}duplicates(){return this.report.getAlignedFacts(this)}isNil(){return null===this.f.v}isNegative(){return this.isNumeric()&&!this.isNil()&&void 0!==this.value()&&new Dt(this.value()).isNegative()&&!this.isZero()}isPositive(){return this.isNumeric()&&!this.isNil()&&void 0!==this.value()&&new Dt(this.value()).isPositive()&&!this.isZero()}isZero(){return this.isNumeric()&&!this.isNil()&&void 0!==this.value()&&new Dt(this.value()).isZero()}isInvalidIXValue(){return"INVALID_IX_VALUE"==this.f.err}getScaleLabel(e,t=!1){let n=this.measure()??"";return n&&(n=this.report.qname(n).localname),this.report.getScaleLabel(t?-e:e,this.isMonetaryValue(),n)}readableAccuracy(){if(!this.isNumeric()||this.isNil())return V.t("common.notApplicable");const e=this.decimals();if(void 0===e)return V.t("common.accuracyInfinite");if(null===e)return V.t("common.unspecified");const t=this.getScaleLabel(e,!0);return null!=t?t:e.toString()}readableScale(){if(!this.isNumeric()||this.isNil())return V.t("common.notApplicable");const e=this.scale();if(null==e)return V.t("common.unscaled");const t=this.getScaleLabel(e);return null!=t?t:e.toString()}identifier(){return this.report.qname(this.f.a.e)}escaped(){return this.ixNode.escaped}isEnumeration(){return this.concept().isEnumeration()}addFootnote(e){this._footnotes.push(e)}footnotes(){return this._footnotes}isHidden(){return this.ixNode.isHidden}isHTMLHidden(){return this.ixNode.htmlHidden()}widerConcepts(){const e=[],n=this.report.getParentRelationships(this.conceptName(),"w-n");for(const i in n)e.push(...t().map(n[i],(e=>e.src)));return e}narrowerConcepts(){const e=[],n=this.report.getChildRelationships(this.conceptName(),"w-n");for(const i in n)e.push(...t().map(n[i],(e=>e.t)));return e}addLinkedFact(e){this.linkedFacts.push(e)}}class Qt{constructor(e,t){this._c=e.concepts()[t]||{}}referenceValuesAsString(){return this._c.r?this._c.r.flatMap((e=>e.map((e=>e[1])))).join(" "):""}references(){return this._c.r?this._c.r.map((e=>e.map((e=>({part:e[0],value:e[1]}))))):[]}isTypedDimension(){return"t"===this._c.d}isExplicitDimension(){return"e"===this._c.d}isDimension(){return"d"in this._c}isEnumeration(){return Boolean(this._c.e)}isTextBlock(){return Boolean(this._c.t)}typedDomainElement(){return this._c.td}}class Jt{constructor(e,t){this.reportSet=e,this._reportData=t,this._reverseRelationshipCache={}}availableLanguages(){if(!this._availableLanguages){this._availableLanguages=new Set;for(const e of Object.values(this._reportData.concepts))for(const t of Object.values(e.labels))for(const e of Object.keys(t))this._availableLanguages.add(e)}return this._availableLanguages}facts(){return this.reportSet.factsForReport(this)}getChildRelationships(e,t){const n={},i=this._reportData.rels[t]||{};for(const t in i)e in i[t]&&(n[t]=i[t][e]);return n}_reverseRelationships(e){if(!(e in this._reverseRelationshipCache)){const t={},n=this._reportData.rels[e]||{};for(const[e,i]of Object.entries(n))for(const[n,r]of Object.entries(i))for(const i of r)i.src=n,Ft(Ft(t,e,{}),i.t,[]).push(i);this._reverseRelationshipCache[e]=t}return this._reverseRelationshipCache[e]}getParentRelationships(e,t){const n={};for(const[i,r]of Object.entries(this._reverseRelationships(t)))e in r&&(n[i]=r[e]);return n}getParentRelationshipsInGroup(e,t,n){return(this._reverseRelationships(t)[n]||{})[e]||[]}dimensionDefault(e){for(const t of Object.values(this._reportData.rels["d-d"]||{}))if(e in t)return t[e][0].t}relationshipGroups(e){return Object.keys(this._reportData.rels[e]||{})}relationshipGroupRoots(e,t){const n=[];for(const i in this._reportData.rels[e][t])t in this.getParentRelationships(i,e)||n.push(i);return n}getAlignedFacts(e,t){const n=this.reportSet.facts(),i=[];t||(t={});for(const r of n)r.isAligned(e,t)&&i.push(r);return i}deduplicate(e){const t=[];for(const n of e){let e=!1;for(const i of t)i.isAligned(n,{})&&(e=!0);e||t.push(n)}return t}getConcept(e){return new Qt(this,e)}getRoleLabel(e){const t=this._reportData.roleDefs[e];if(void 0!==t){const e=t.en;if(null!=e)return e}return this.reportSet.roleMap()[e]}localDocuments(){return void 0===this._reportData.localDocs?{}:this._reportData.localDocs}qname(e){return this.reportSet.qname(e)}getScaleLabel(e,t,n=null){let i=V.t(`scale.${e}`,{defaultValue:"noName"});return t&&-2===e&&(i=V.t(`currencies:cents${n}`,{defaultValue:i})),"noName"===i?null:i}concepts(){return this._reportData.concepts}getLabel(e,t,n){t=t||"std";const i=this.reportSet.viewerOptions.language,r=this._reportData.concepts[e];if(void 0===r)return console.log("Attempt to get label for undefined concept: "+e),"<no label>";const o=r.labels[t];if(void 0!==o&&0!=Object.keys(o).length){let t;if(t=i&&o[i]?o[i]:o.en||o["en-us"]||o[Object.keys(o).sort()[0]],void 0===t)return;let r="";return n&&this.reportSet.viewerOptions.showPrefixes&&(r="("+this.qname(e).prefix+") "),r+=t,r}}getLabelOrName(e,t,n){const i=this.getLabel(e,t,n);return void 0===i?e:i}isCalculationContributor(e){return void 0===this._calculationContributors&&(this._reportData.rels?.calc?this._calculationContributors=new Set(Object.values(this._reportData.rels.calc).flatMap((e=>Object.values(e).flatMap((e=>e.map((e=>e.t))))))):this._calculationContributors=new Set),this._calculationContributors.has(e)}isCalculationSummation(e){return void 0===this._calculationSummations&&(this._reportData.rels?.calc?this._calculationSummations=new Set(Object.values(this._reportData.rels.calc).flatMap((e=>Object.keys(e)))):this._calculationSummations=new Set),this._calculationSummations.has(e)}}class qt{constructor(e,t,n){this.vuid=t,this.linkedFacts=[],this.title=n,this.ixNode=e.reportSet.getIXNodeForItemId(t)}addLinkedFact(e){this.linkedFacts.push(e)}textContent(){return this.ixNode.textContent()}readableValue(){return this.textContent()}isTextBlock(){return!1}}class Xt{constructor(e,t){this._report=e,this._value=t;const n=t.split(/[()]/gi).join("").split("/");this._numerators=n[0].split("*"),this._denominators=n.length>1?n[1].split("*"):[],this._isMonetary=Boolean(this._numerators.find((e=>"http://www.xbrl.org/2003/iso4217"===this._report.qname(e).namespace))),this._label=n.map((e=>{const t=e.split("*").map((e=>Rt(e.split(":")[1]))).join("*");return t.includes("*")?`(${t})`:t})).join("/"),this._measure=this._numerators[0]}isMonetary(){return this._isMonetary}label(){return this._label}measure(){return this._measure}measureLabel(){const e=this.measure(),t=this._report.qname(e);return"http://www.xbrl.org/2003/iso4217"===t.namespace?V.t(`currencies:unitFormat${t.localname}`,{defaultValue:t.localname}):e}value(){return this._value}}class Kt{constructor(e,t){const n=t.split(":",2);this.localname=n[1],this.prefix=n[0],this.namespace=e[n[0]],this.qname=t}}function $t(){this.showPrefixes=!0,this.language=null}class en{constructor(e){this._data=e,this._ixNodeMap={},this.viewerOptions=new $t}setIXNodeMap(e){this._ixNodeMap=e,this._initialize()}_initialize(){this._items={},this.reports=[];const e=Object.keys(this._ixNodeMap).filter((e=>this._ixNodeMap[e].footnote));e.sort(((e,t)=>this._ixNodeMap[e].docOrderindex-this._ixNodeMap[t].docOrderindex));for(const[t,n]of(this._data.sourceReports??[{targetReports:[this._data]}]).entries())for(const i of n.targetReports){const n=new Jt(this,i);this.reports.push(n);for(const[e,r]of Object.entries(i.facts)){const i=Bt(t,e);this._items[i]=new Gt(n,i,r)}for(const[n,r]of Object.entries(i.facts)){const i=Bt(t,n),o=this._items[i];(r.fn||[]).forEach((n=>{const i=Bt(t,n);var r=this._items[i];void 0===r&&(r=new qt(o.report,i,"Footnote "+(e.indexOf(i)+1)),this._items[i]=r),r.addLinkedFact(o),o.addFootnote(r)}))}}}availableLanguages(){return Array.from(this.reports.reduce(((e,t)=>new Set([...e,...t.availableLanguages()])),new Set))}getItemById(e){return this._items[e]}getIXNodeForItemId(e){return this._ixNodeMap[e]||{}}facts(){return Object.values(this._items).filter((e=>e instanceof Gt))}filingDocuments(){return this._data.filingDocuments}prefixMap(){return this._data.prefixes}namespaceGroups(){const e={};for(const t of this.facts())e[t.conceptQName().prefix]=(e[t.conceptQName().prefix]||0)+1;const t=Object.keys(e);return t.sort(((t,n)=>e[n]-e[t])),t}getUsedConceptPrefixes(){return void 0===this._usedPrefixes&&(this._usedPrefixes=new Set(Object.values(this._items).filter((e=>e instanceof Gt)).map((e=>e.getConceptPrefix())))),this._usedPrefixes}getUsedUnits(){return void 0===this._usedUnits&&(this._usedUnits=new Set(Object.values(this._items).filter((e=>e instanceof Gt)).map((e=>e.unit()?.value())).filter((e=>e)).sort())),this._usedUnits}getUnit(e){return void 0===this._unitsMap&&(this._unitsMap={}),void 0===this._unitsMap[e]&&(this._unitsMap[e]=new Xt(this,e)),this._unitsMap[e]}getUsedScalesMap(){const e={};return Object.values(this._items).filter((e=>e instanceof Gt)).forEach((t=>{const n=t.scale();if(null!=n){n in e||(e[n]=new Set);const i=e[n],r=Rt(t.getScaleLabel(n));r&&!i.has(r)&&i.add(r)}})),e}languageNames(){return this._data.languages}roleMap(){return this._data.roles}qname(e){return new Kt(this.prefixMap(),e)}reportsData(){return this._data.sourceReports?.flatMap((e=>e.targetReports))??[this._data]}reportFiles(){return(this._data.sourceReports??[this._data]).map(((e,t)=>(e.docSetFiles??[]).map((e=>({index:t,file:e}))))).flat()}isMultiDocumentViewer(){return this.reportFiles().length>1}usesAnchoring(){return this.reportsData().some((e=>void 0!==e.rels?.["w-n"]))}hasValidationErrors(){return void 0!==this._data.validation&&this._data.validation.length>0}validation(){return this._data.validation}factsForReport(e){return Object.values(this._items).filter((t=>t instanceof Gt&&t.report==e))}}function tn(e){return"(?:"+e.join("|")+")"}function nn(e){return"(?:"+e+")?"}function rn(e){return"(?:"+e+")*"}const on=tn(["$","¢","\\bUS$","€","£","¥","\\bC$","\\bA$","\\bNT$","\\bS$","₩","₱","₨","\\bkr","\\bFr.","\\bRM","\\bR$","\\bR"]).replace(/([$.])/g,"\\$1"),an="[  \t\n\r]",sn=an+"*",ln="[-—]",cn="(?:^|(?<=(?:[/“—(]|"+an+"|"+ln+")))",un="(?:$|(?=(?:[/,.:;”—)]|"+an+"|"+ln+")))",dn="(?:st|nd|rd|th)",hn="[123]?\\d"+dn+"?",fn="(?:jan|january|feb|february|mar|march|apr|april|may|jun|june|jul|july|aug|august|sep|september|sept|oct|october|nov|november|dec|december)",pn="(?:[01]?\\d)",gn="(?:19|20)\\d\\d",mn="year"+sn+gn,vn=fn+sn+hn+sn+","+sn+gn,yn=gn+sn+fn+sn+hn,bn="\\d{4}-\\d{2}-\\d{2}",xn=tn([vn,yn,fn+sn+gn,fn+sn+hn,bn]),wn=(tn([vn,yn,bn]),"\\b"+tn([xn,gn,mn])+"\\b"),An="\\d+"+sn+"months?",_n="(?:\\b(?:zero|one|two|three|four(?:teen)?|five|six(?:ty|teen)?|seven(?:ty|teen)?|eight(?:y|een)?|nine(?:ty|teen)?|ten|eleven|twelve|thirteen|fifteen|twenty|thirty|forty|fifty)\\b)",Cn="section"+sn+"\\d{1,3}\\(?:?\\w\\)?",Mn="topic"+sn+"\\d{1,3}(?:\\.[\\w\\d])*",kn="form"+sn+"\\d{1,2}-\\w",Sn="asc"+sn+"\\w\\d{1,3}(?:-\\w?\\d{1,3})*",In="item"+sn+"\\d{1,2}\\w?",Ln="rule"+sn+"\\d{1,3}\\w?(?:-\\d{1,3}\\w?)*",Tn="note"+sn+"\\d{1,3}",Dn="level"+sn+"\\d{1,3}",On="page"+sn+"\\d{1,3}",jn="tier"+sn+"\\d{1,3}",Nn=tn([_n,"\\d+"])+sn+"months ended",En=tn([Cn,Mn,kn,Sn,In,Ln,Tn,Dn,On,jn,Nn,pn+"/[0-3]?d/"+gn,pn+"/\\d\\d"]),Pn=tn([nn(sn+ln+sn),sn]),Fn=_n+rn(Pn+_n),zn=Fn+rn(Pn+"(\\b(hundred|thousand|million|billion|trillion)\\b)"+nn(Pn+Fn)),Rn=tn([tn(["\\d{1,3}(?:,\\d{3})+","\\d+"])+nn("\\.\\d+"),"\\.\\d+"]),Bn=tn([nn(on+sn)+nn("[-+(]"+sn)+nn(on+sn)+Rn+nn(dn)+nn(sn+tn([on,"\\%"]))+sn+"\\)?"+nn(sn+tn([on,"\\%"])),zn,"\\b(?:no|none)\\b","[-֊־‐-―﹘﹣]"]),Wn=cn+tn(["("+wn+")","("+En+")",An,Bn])+un,Yn=new RegExp(Wn,"gi");var Un=n(782),Hn=n(297);function Vn(e,t){var n=t.attribute;return e=e.replace(Zn,"&amp;").replace(Gn,"&gt;").replace(Qn,"&lt;"),n&&(e=e.replace(Jn,"&apos;").replace(qn,"&quot;")),e}var Zn=/&/g,Gn=/>/g,Qn=/</g,Jn=/'/g,qn=/"/g,Xn=/((?:[\0-\x08\x0B\f\x0E-\x1F\uFFFD\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))/g,Kn=new RegExp("([\\x7F-\\x84]|[\\x86-\\x9F]|[\\uFDD0-\\uFDEF]|(?:\\uD83F[\\uDFFE\\uDFFF])|(?:\\uD87F[\\uDFFE\\uDFFF])|(?:\\uD8BF[\\uDFFE\\uDFFF])|(?:\\uD8FF[\\uDFFE\\uDFFF])|(?:\\uD93F[\\uDFFE\\uDFFF])|(?:\\uD97F[\\uDFFE\\uDFFF])|(?:\\uD9BF[\\uDFFE\\uDFFF])|(?:\\uD9FF[\\uDFFE\\uDFFF])|(?:\\uDA3F[\\uDFFE\\uDFFF])|(?:\\uDA7F[\\uDFFE\\uDFFF])|(?:\\uDABF[\\uDFFE\\uDFFF])|(?:\\uDAFF[\\uDFFE\\uDFFF])|(?:\\uDB3F[\\uDFFE\\uDFFF])|(?:\\uDB7F[\\uDFFE\\uDFFF])|(?:\\uDBBF[\\uDFFE\\uDFFF])|(?:\\uDBFF[\\uDFFE\\uDFFF])(?:[\\0-\\t\\x0B\\f\\x0E-\\u2027\\u202A-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]))","g");function $n(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).removeDiscouragedCharacters,n=void 0===t||t;return e=e.replace(Xn,""),n&&(e=e.replace(Kn,"")),e}function ei(e){return Vn($n(e),{attribute:!1})}function ti(e,t){return"".concat(ii(e)).concat(t)}var ni=26;function ii(e){if("number"!=typeof e)return"";var t=Math.floor(e/ni),n=String.fromCharCode(97+e%ni).toUpperCase();return 0===t?n:ii(t-1)+n}var ri=25569,oi=864e5;function ai(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function si(e,t,n,i,r,o){if(null===n&&!r)return"";var a='<c r="'.concat(ti(t,e),'"');if(r&&(a+=' s="'.concat(r,'"')),null===n)return a+"/>";if(i===Date&&!r)throw new Error('No "format" has been specified for a Date cell');n=function(e,t,n){switch(e){case String:if("string"!=typeof t)throw new Error("Invalid cell value: ".concat(t,". Expected a string"));return n(t);case Number:if("number"!=typeof t)throw new Error("Invalid cell value: ".concat(t,". Expected a number"));return String(t);case Date:if(!(t instanceof Date))throw new Error("Invalid cell value: ".concat(t,". Expected a Date"));return String(function(e){return e.getTime()/oi+ri}(t));case Boolean:if("boolean"!=typeof t)throw new Error("Invalid cell value: ".concat(t,". Expected a boolean"));return t?"1":"0";case"Formula":if("string"!=typeof t)throw new Error("Invalid cell value: ".concat(t,". Expected a string"));return ei(t);default:throw new Error("Unknown schema type: ".concat(e&&e.name||e))}}(i,n,o),(i=function(e){switch(e){case String:return"s";case Number:case Date:return;case Boolean:return"b";case"Formula":return"f";default:throw new Error("Unknown schema type: ".concat(e&&e.name||e))}}(i))&&(a+=' t="'.concat(i,'"'));var s,l,c,u,d=(c=function(e){switch(e){case"inlineStr":return"<is><t>";case"f":return"<f>";default:return"<v>"}}(i),u=c.replace(li,"</"),[c,u]),h=(l=2,function(e){if(Array.isArray(e))return e}(s=d)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(s,l)||function(e,t){if(e){if("string"==typeof e)return ai(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ai(e,t):void 0}}(s,l)||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.")}());return a+">"+h[0]+n+h[1]+"</c>"}var li=/</g;function ci(e){var t=e.align,n=e.alignVertical,i=e.fontFamily,r=e.fontSize,o=e.fontWeight,a=e.fontStyle,s=e.wrap,l=e.color,c=e.backgroundColor,u=e.borderColor,d=e.borderStyle,h=e.leftBorderColor,f=e.leftBorderStyle,p=e.rightBorderColor,g=e.rightBorderStyle,m=e.topBorderColor,v=e.topBorderStyle,y=e.bottomBorderColor,b=e.bottomBorderStyle;if(t||n||i||r||o||a||s||l||c||u||d||h||f||p||g||m||v||y||b)return function(e){var t={};for(var n in e)void 0!==e[n]&&(t[n]=e[n]);return t}({align:t,alignVertical:n,fontFamily:i,fontSize:r,fontWeight:o,fontStyle:a,wrap:s,color:l,backgroundColor:c,borderColor:u,borderStyle:d,leftBorderColor:h,leftBorderStyle:f,rightBorderColor:p,rightBorderStyle:g,topBorderColor:m,topBorderStyle:v,bottomBorderColor:y,bottomBorderStyle:b})}function ui(e){return ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ui(e)}function di(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function hi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?di(Object(n),!0).forEach((function(t){fi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):di(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var gi={fontWeight:"bold"},mi=14;function vi(e,t){if(!e)return"";if(e.type!==Date||e.width||(e.width=mi),!e.width)return"";var n=t+1;return'<col min="'.concat(n,'" max="').concat(n,'" width="').concat(e.width,'" customWidth="1"/>')}function yi(e){var t=e.data,n=e.rowIndex,i=e.columnIndex,r=e.span,o=e.rowSpan,a=e.cloneData,s=ci(t[n][i]);s&&(t=a());for(var l=n;l<=n+(o-1);){for(var c=i;c<=i+(r-1);){var u=t[l][c];if(l>n||c>i){if(null!=u)throw new Error("[write-excel-file] When using `span` or `rowSpan` parameters, all hidden overlapped cells should be represented by `null`s or `undefined`s. Cell at row ".concat(n+1," and column ").concat(i+1," is configured with `span` ").concat(r," and `rowSpan` ").concat(o,". Cell at row ").concat(l+1," and column ").concat(c+1," is neither `null` nor `undefined`: ").concat(JSON.stringify(u)));s&&(t[l][c]=s)}c++}l++}}function bi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function xi(e){return Vn($n(e),{attribute:!0})}var wi='<?xml version="1.0" ?>\n<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="urn:schemas-microsoft-com:mac:vml" xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main">{views}{columnsDescription}<sheetData>{data}</sheetData>{mergedCellsDescription}{layout}</worksheet>';function Ai(e,t){var n=t.schema,i=t.columns,r=t.headerStyle,o=t.getStyle,a=t.getSharedString,s=t.customFont,l=t.dateFormat,c=t.orientation,u=t.stickyRowsCount,d=t.stickyColumnsCount,h=t.sheetId;!function(e,t){if(t.schema){if(!Array.isArray(e))throw new TypeError("Expected an array of objects")}else{if(!Array.isArray(e))throw new TypeError("Expected an array of arrays");if(e.length>0&&!Array.isArray(e[0]))throw new TypeError("Expected an array of arrays")}}(e,{schema:n});var f=function(e,t){var n=[];if(t.schema)return{data:e,mergedCells:n};for(var i=function(){e=e.slice();for(var t=0;t<e.length;)e[t]=e[t].slice(),t++;return i=function(){return e},e},r=0;r<e.length;){for(var o=e[r],a=0;a<o.length;){var s=o[a];if(s){var l=s.span,c=void 0===l?1:l,u=s.rowSpan,d=void 0===u?1:u;(c>1||d>1)&&(yi({data:e,rowIndex:r,columnIndex:a,span:c,rowSpan:d,cloneData:i}),n.push([[r,a],[r+(d?d-1:0),a+(c?c-1:0)]]))}a++}r++}return{data:e,mergedCells:n}}(e,{schema:n}),p=f.data,g=f.mergedCells;return wi.replace("{data}",function(e,t){var n=t.schema,i=t.headerStyle,r=t.getStyle,o=t.getSharedString,a=t.customFont,s=t.dateFormat;if(n){for(var l,c=[],u=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return pi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pi(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n);!(l=u()).done;)if(l.value.column){c=[n.map((function(e){return hi({type:String,value:e.column,align:e.align},i||gi)}))];break}e=c.concat(e.map((function(e){return n.map((function(t){return hi(hi({},t),{},{value:t.value(e)})}))})))}return e.map((function(e,t){return function(e,t,n){var i,r=n.getStyle,o=n.getSharedString,a=n.customFont,s=n.dateFormat,l=n.usesSchema,c=t+1,u=e.map((function(e,t){if(null==e)return"";var n,u=e.height,d=ci(e),h=e.type,f=e.value,p=e.format;if(function(e){return null==e||""===e}(f)?f=null:void 0===h&&(l||(h=function(e){switch(ui(e)){case"string":return String;case"number":return Number;case"boolean":return Boolean;default:if(e instanceof Date)return Date}}(f)),void 0===h&&(h=String,f=String(f))),p){if(h!==Date&&h!==Number&&"Formula"!==h)throw new Error('`format` can only be used on `Date`, `Number` or `"Formula"` cells')}else h===Date&&(p=s);return(p||a||d)&&(n=r(d||{},{format:p})),u&&(void 0===i||i<u)&&(i=u),si(c,t,f,h,n,o)})).join("");return'<row r="'.concat(c,'"')+(i?' ht="'.concat(i,'" customHeight="1"'):"")+">"+u+"</row>"}(e,t,{getStyle:r,getSharedString:o,customFont:a,dateFormat:s,usesSchema:void 0!==n})})).join("")}(p,{schema:n,headerStyle:r,getStyle:o,getSharedString:a,customFont:s,dateFormat:l})).replace("{views}",function(e){var t=e.stickyRowsCount,n=e.stickyColumnsCount;if(!t&&!n)return"";var i="";return i+="<sheetViews>",i+='<sheetView tabSelected="1" workbookViewId="0">',i+='<pane ySplit="'.concat(t||0,'" xSplit="').concat(n||0,'" topLeftCell="').concat(ti(n||0,(t||0)+1),'" activePane="bottomRight" state="frozen"/>'),(i+="</sheetView>")+"</sheetViews>"}({stickyRowsCount:u,stickyColumnsCount:d})).replace("{columnsDescription}",function(e){var t=e.schema,n=e.columns;if(t||n){var i=(t||n).map(vi).join("");if(i)return"<cols>".concat(i,"</cols>")}return""}({schema:n,columns:i})).replace("{mergedCellsDescription}",function(e){return 0===e.length?"":'<mergeCells count="'.concat(e.length,'">')+e.map((function(e){var t,n,i=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(t,n)||function(e,t){if(e){if("string"==typeof e)return bi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bi(e,t):void 0}}(t,n)||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.")}()),r=i[0],o=i[1],a=ti(r[1],r[0]+1)+":"+ti(o[1],o[0]+1);return'<mergeCell ref="'.concat(a,'"/>')})).join("")+"</mergeCells>"}(g)).replace("{layout}",function(e){var t=e.sheetId,n=e.orientation,i="";return n&&(i+="<pageMargins",i+=' left="'.concat(.7,'"'),i+=' right="'.concat(.7,'"'),i+=' top="'.concat(.75,'"'),i+=' bottom="'.concat(.75,'"'),i+=' header="'.concat(.3,'"'),i+=' footer="'.concat(.3,'"'),i+="/>"),n&&(i+="<pageSetup",i+=' paperSize="'.concat(9,'"'),i+=' orientation="'.concat(xi(n),'"'),i+=' r:id="rId'.concat(t,'"'),i+="/>"),i}({sheetId:h,orientation:c}))}function _i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ci(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ci(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ci(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Mi=100;function ki(e){if("#"!==e[0])throw new Error('Color "'.concat(e,'" must start with a "#"'));return"FF".concat(e.slice(1).toUpperCase())}function Si(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Ii(){var e=[],t={};return{getSharedStringsXml:function(){return function(e){var t='<?xml version="1.0"?>';t+='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">';for(var n,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Si(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Si(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(n=i()).done;){var r=n.value,o=r.trim().length===r.length?"":' xml:space="preserve"';t+="<si><t".concat(o,">"),t+=ei(r),t+="</t></si>"}return t+"</sst>"}(e)},getSharedString:function(n){var i=t[n];return void 0===i&&(i=String(e.length),t[n]=i,e.push(n)),i}}}var Li=/[\[\]\/\\:*?]+/;function Ti(e){if(!e)throw new Error("Sheet name can't be empty");if(e.length>31)throw new Error('Sheet name "'.concat(e,"\" can't be longer than 31 characters"));if(Li.test(e))throw new Error('Sheet name "'.concat(e,'" contains illegal characters: []/\\:*?'))}function Di(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Oi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oi(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Oi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var ji=["fileName"];function Ni(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Ei(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fileName;return function(e,t){var n=t.sheet,i=t.sheets,r=t.schema,o=t.columns,a=t.headerStyle,s=t.fontFamily,l=t.fontSize,c=t.orientation,u=t.stickyRowsCount,d=t.stickyColumnsCount,h=t.dateFormat,f=new Hn;f.file("_rels/.rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>'),f.file("[Content_Types].xml",'<?xml version="1.0" ?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default ContentType="application/xml" Extension="xml"/><Default ContentType="application/vnd.openxmlformats-package.relationships+xml" Extension="rels"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" PartName="/xl/worksheets/sheet1.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" PartName="/xl/workbook.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" PartName="/xl/sharedStrings.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" PartName="/xl/styles.xml"/></Types>');var p=function(e){var t=e.data,n=e.sheetName,i=e.sheetNames,r=e.schema,o=e.columns,a=e.headerStyle,s=e.fontFamily,l=e.fontSize,c=e.orientation,u=e.stickyRowsCount,d=e.stickyColumnsCount,h=e.dateFormat,f=Ii(),p=f.getSharedStringsXml,g=f.getSharedString,m=function(e){var t=e.fontFamily,n=e.fontSize,i=Boolean(t||n);void 0===t&&(t="Calibri"),void 0===n&&(n=12);var r=[],o={},a=[],s={},l=[],c={},u=[],d={},h=[],f={};function p(e,p){var g,m=e.fontFamily,v=e.fontSize,y=e.fontWeight,b=e.fontStyle,x=e.align,w=e.alignVertical,A=e.wrap,_=e.color,C=e.backgroundColor,M=e.borderColor,k=e.borderStyle,S=e.leftBorderColor,I=e.leftBorderStyle,L=e.rightBorderColor,T=e.rightBorderStyle,D=e.topBorderColor,O=e.topBorderStyle,j=e.bottomBorderColor,N=e.bottomBorderStyle,E=p.format,P="".concat(m||"-",":").concat(v||"-",":").concat(y||"-",":").concat(b||"-",":").concat(_||"-"),F=C||"-",z="".concat(D||M||"-",":").concat(O||k||"-")+"/"+"".concat(L||M||"-",":").concat(T||k||"-")+"/"+"".concat(j||M||"-",":").concat(N||k||"-")+"/"+"".concat(S||M||"-",":").concat(I||k||"-"),R="".concat(x||"-","/").concat(w||"-","/").concat(E||"-","/").concat(A||"-","/").concat(P,"/").concat(F,"/").concat(z),B=s[R];if(void 0!==B)return B;E&&void 0===(g=o[E])&&(g=o[E]=String(Mi+r.length),r.push(E));var W,Y,U=i?0:void 0;return(m||v||y||b||_)&&void 0===(U=c[P])&&(U=c[P]=String(l.length),l.push({custom:!0,size:v||n,family:m||t,weight:y,style:b,color:_})),C&&void 0===(W=d[F])&&(W=d[F]=String(u.length),u.push({color:C})),(M||k||S||I||L||T||D||O||j||N)&&void 0===(Y=f[z])&&(Y=f[z]=String(h.length),h.push({left:{style:I||k,color:S||M},right:{style:T||k,color:L||M},top:{style:O||k,color:D||M},bottom:{style:N||k,color:j||M}})),a.push({fontId:U,fillId:W,borderId:Y,align:x,alignVertical:w,wrap:A,formatId:g}),s[R]=String(a.length-1)}return l.push({size:n,family:t,custom:i}),c["-:-"]=0,u.push({}),d["-"]=0,h.push({left:{},right:{},top:{},bottom:{}}),f["-:-/-:-/-:-/-:-"]=0,u.push({gray125:!0}),p({},{}),{getStylesXml:function(){return function(e){var t=e.formats,n=e.styles,i=e.fonts,r=e.fills,o=e.borders,a='<?xml version="1.0" ?>';if(a+='<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">',t.length>0){a+='<numFmts count="'.concat(t.length,'">');for(var s=0;s<t.length;s++)a+='<numFmt numFmtId="'.concat(Mi+s,'" formatCode="').concat(xi(t[s]),'"/>');a+="</numFmts>"}a+='<fonts count="'.concat(i.length,'">');for(var l,c=_i(i);!(l=c()).done;){var u=l.value,d=u.size,h=u.family,f=u.color,p=u.weight,g=u.style,m=u.custom;a+="<font>",a+='<sz val="'.concat(d,'"/>'),a+="<color ".concat(f?'rgb="'+xi(ki(f))+'"':'theme="1"',"/>"),a+='<name val="'.concat(xi(h),'"/>'),a+='<family val="2"/>',m||(a+='<scheme val="minor"/>'),"bold"===p&&(a+="<b/>"),"italic"===g&&(a+="<i/>"),a+="</font>"}a+="</fonts>",a+='<fills count="'.concat(r.length,'">');for(var v,y=_i(r);!(v=y()).done;){var b=v.value,x=b.color,w=b.gray125;a+="<fill>",x?(a+='<patternFill patternType="solid">',a+='<fgColor rgb="'.concat(xi(ki(x)),'"/>'),a+='<bgColor indexed="64"/>',a+="</patternFill>"):a+=w?'<patternFill patternType="gray125"/>':'<patternFill patternType="none"/>',a+="</fill>"}a+="</fills>",a+='<borders count="'.concat(o.length,'">');for(var A,_=_i(o);!(A=_()).done;){var C=A.value,M=C.left,k=C.right,S=C.top,I=C.bottom,L=function(e,t){var n=t.style,i=t.color;i&&!n&&(n="thin");var r=!!i;return"<".concat(e)+(n?' style="'.concat(xi(n),'"'):"")+(r?">":"/>")+(i?'<color rgb="'.concat(xi(ki(i)),'"/>'):"")+(r?"</".concat(e,">"):"")};a+="<border>",a+=L("left",M),a+=L("right",k),a+=L("top",S),a+=L("bottom",I),a+="<diagonal/>",a+="</border>"}a+="</borders>",a+='<cellXfs count="'.concat(n.length,'">');for(var T,D=_i(n);!(T=D()).done;){var O=T.value,j=O.fontId,N=O.fillId,E=O.borderId,P=O.align,F=O.alignVertical,z=O.wrap,R=O.formatId;a+="<xf "+[void 0!==R?'numFmtId="'.concat(R,'"'):void 0,void 0!==R?'applyNumberFormat="1"':void 0,void 0!==j?'fontId="'.concat(j,'"'):void 0,void 0!==j?'applyFont="1"':void 0,void 0!==N?'fillId="'.concat(N,'"'):void 0,void 0!==N?'applyFill="1"':void 0,void 0!==E?'borderId="'.concat(E,'"'):void 0,void 0!==E?'applyBorder="1"':void 0,P||F||z?'applyAlignment="1"':void 0].filter((function(e){return e})).join(" ")+">"+(P||F||z?"<alignment"+(P?' horizontal="'.concat(xi(P),'"'):"")+(F?' vertical="'.concat(xi(F),'"'):"")+(z?' wrapText="1"':"")+"/>":"")+"</xf>"}return(a+="</cellXfs>")+"</styleSheet>"}({formats:r,styles:a,fonts:l,fills:u,borders:h})},getStyle:p}}({fontFamily:s,fontSize:l}),v=m.getStylesXml,y=m.getStyle;if(i&&o&&!Array.isArray(o[0]))throw new Error('In a "write multiple sheets" scenario, `columns` parameter must be an array of `columns` for each sheet.');i||(i=[n||"Sheet1"],t=[t],o&&(o=[o]),r&&(r=[r]));for(var b,x=Di(i);!(b=x()).done;)Ti(b.value);for(var w,A=[],_=0,C=Di(i);!(w=C()).done;)w.value,A.push(Ai(t[_],{schema:r&&r[_],columns:o&&o[_],headerStyle:a,getStyle:y,getSharedString:g,customFont:s||l,dateFormat:h,orientation:c,stickyRowsCount:u,stickyColumnsCount:d,sheetId:_+1})),_++;return{sheets:i.map((function(e,t){return{id:t+1,name:e,data:A[t]}})),getSharedStringsXml:p,getStylesXml:v}}({data:e,sheetName:n,sheetNames:i,schema:r,columns:o,headerStyle:a,fontFamily:s,fontSize:l,orientation:c,stickyRowsCount:u,stickyColumnsCount:d,dateFormat:h}),g=p.sheets,m=p.getSharedStringsXml,v=p.getStylesXml,y=f.folder("xl");y.file("_rels/workbook.xml.rels",function(e){var t=e.sheets;return'<?xml version="1.0" ?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">'+t.map((function(e){var t=e.id;return'<Relationship Id="rId'.concat(t,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet').concat(t,'.xml"/>')})).join("")+'<Relationship Id="rId'.concat(t.length+1,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/>')+'<Relationship Id="rId'.concat(t.length+2,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/>')+"</Relationships>"}({sheets:g})),y.file("workbook.xml",function(e){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="urn:schemas-microsoft-com:mac:vml" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main"><workbookPr/>'+(e.stickyRowsCount||e.stickyColumnsCount?"<bookViews><workbookView/></bookViews>":"")+"<sheets>"+e.sheets.map((function(e){var t=e.id,n=e.name;return'<sheet name="'.concat(n,'" sheetId="').concat(t,'" r:id="rId').concat(t,'"/>')})).join("")+"</sheets><definedNames/><calcPr/></workbook>"}({sheets:g,stickyRowsCount:u,stickyColumnsCount:d})),y.file("styles.xml",v()),y.file("sharedStrings.xml",m());for(var b,x=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ni(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ni(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(g);!(b=x()).done;){var w=b.value,A=w.id,_=w.data;y.file("worksheets/sheet".concat(A,".xml"),_)}return f.generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})}(e,function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(t,ji)).then((function(e){return n?Un.saveAs(e,n):e}))}class Pi{constructor(e,t){this._table=e,this._reportSet=t}static addHandles(e,n){t()("table",e).each((function(){const e=t()(this);if(e.find(".ixbrl-element").length>0){e.css("position","relative");const i=new Pi(e,n);t()('<div class="ixbrl-table-handle"><span>Export table</span></div>').appendTo(e).click((()=>i.exportTable()))}}))}_getRawTable(){const e=this._table,n=this._reportSet;let i=0;const r=[];e.find("tr").each((function(){const e=[];t()(this).find("td:visible, th:visible").each((function(){const i=t()(this).attr("colspan");if(i)for(let t=0;t<i-1;t++)e.push({type:"static",value:""});const r=t()(this).find(".ixbrl-element").addBack(".ixbrl-element");let o=null;if(r.length>0){const e=r.first().data("ivids");o=n.getItemById(e)}if(o instanceof Gt){const n={type:"fact",fact:o},i=t()(this)[0];let a=r[0],s=a.textContent;for(;a!==i;)a=null!==a.previousSibling?a.previousSibling:a.parentNode,3==a.nodeType&&(s=a.textContent+s);null!==s.match(/[\(-]\s*\d/)&&(n.negative=!0),n.topBorder=null!==t()(this).css("border-top-style").match(/(solid|double)/),n.bottomBorder=null!==t()(this).css("border-bottom-style").match(/(solid|double)/),e.push(n)}else{const n=t()(this).text();e.push({type:"static",value:n})}})),e.length>i&&(i=e.length),r.push(e)}));for(const e of r)for(;e.length<i;)e.push({type:"static",value:""});return r}_getFactsInSlice(e){return e.filter((e=>"fact"===e.type)).map((e=>e.fact))}_getConstantAspectsForSlice(e,t){const n=this._getFactsInSlice(e);if(0==n.length)return null;const i=new Set;for(const e of n)for(const t of e.aspects())i.add(t.name());const r=new Map;for(const e of i){r.set(e,n[0].aspect(e));for(let t=1;t<n.length;t++)void 0!==r.get(e)&&r.get(e).equalTo(n[t].aspect(e))||r.delete(e)}return r}_writeTable(e){const t=[],n=[];for(const[i,r]of e.entries()){const e=[];for(const[t,i]of r.entries()){const r={};"fact"===i.type?(n[t]={width:18},r.value=Number(i.fact.value()),r.type=Number,r.format="#,##0",i.negative?r.value=-1*Math.abs(r.value):r.value=Math.abs(r.value),i.topBorder&&(r.topBorderStyle="medium",r.topBorderColor="#000000"),i.bottomBorder&&(r.bottomBorderStyle="medium",r.bottomBorderColor="#000000")):"aspectLabel"===i.type?(r.value=i.value,r.type=String):(r.value=i.value,r.type=String,r.color="#707070"),e.push(r)}t.push(e)}return{columns:n,data:t}}exportTable(){const e=this._getRawTable();let t=0;const n=[],i=new Set;for(const r of e){const e=this._getConstantAspectsForSlice(r);if(n.push(e),null!==e)for(const[t,n]of e)i.add(t);r.length>t&&(t=r.length)}const r=[],o=new Set;for(let n=0;n<t;n++){const t=e.map((e=>e[n])),i=this._getConstantAspectsForSlice(t);if(r.push(i),null!==i)for(const[e,t]of i)o.add(e)}const a=new Set(o);for(const e of o)for(const[t,n]of Object.entries(r))null===n||n.get(e)||a.delete(e);for(const e of o)i.delete(e);for(const n of o){const o=Array.from(i).map((()=>""));for(let e=0;e<t;e++){let t=(r[e]||new Map).get(n);void 0!==t&&(t=t.valueLabel("std")),o.push({type:"aspectLabel",value:t||""})}e.unshift(o)}for(let t=o.size;t<e.length;t++){const r=[];for(const e of i){let i=(n[t-o.size]||new Map).get(e);void 0!==i&&(i=i.valueLabel("std")),r.push({type:"aspectLabel",value:i||""})}e[t]=r.concat(e[t])}const s=this._writeTable(e);Ei(s.data,{columns:s.columns,fileName:"table.xlsx"})}}var Fi=0;class zi{constructor(e,t,n){this.wrapperNodes=t,this.escaped=!1,this.continuations=[],this.docIndex=n,this.footnote=!1,this.id=e,this.isHidden=!1,this.docOrderindex=Fi++}continuationIds(){return this.continuations.map((e=>e.id))}chainIXIds(){return[this.id].concat(this.continuationIds())}textContent(){return[this].concat(this.continuations).map((e=>e.wrapperNodes.first().text())).join(" ")}htmlHidden(){return this.wrapperNodes.is(":hidden")||this.wrapperNodes.is(((e,n)=>function(e){const t=parseFloat(e.split(",")[3]);return!isNaN(t)&&t<.1}(t()(n).css("color"))))}}class Ri{constructor(){this.index=[]}addItem(e,t){this.index.push({id:e,docIndex:t})}getAdjacentItem(e,t){const n=this.index.findIndex((t=>t.id==e)),i=this.index.length;return this.index[(n+t+i)%i].id}getFirstInDocument(e){return this.index.filter((t=>t.docIndex==e))[0].id}getLastInDocument(e){return this.index.filter((t=>t.docIndex==e)).at(-1).id}}class Bi{constructor(e){this.node=t()("#dialog-templates").find(e).clone().appendTo("#ixv #dialog-container"),t()(".close",this.node).click((()=>this.close())),t()(document).bind("keyup",(e=>{27===e.keyCode&&this.close()}))}addButton(e,n,i){const r=this.node.find(".buttons"),o=t()("<button></button>").text(e).addClass(n?"dialog-button-primary":"dialog-button-cancel");r.append(o),o.on("click",(()=>{i&&!i()||this.close()}))}close(){t()(".dialog-mask").hide(),this.node.remove()}show(){t()(".dialog-mask").show(),this.node.show()}}class Wi extends Bi{constructor(e,t,n,i){super(".dialog.message-box"),this.title=e,this.message=t,this.okText=n,this.cancelText=i}show(e,n){this.node.find(".title").text(this.title),this.node.find(".message").empty().append(this.message);const i=this.node.find(".buttons").empty(),r=t()("<button></button>").text(this.okText).addClass("dialog-button-primary");if(i.append(r),r.on("click",(()=>{this.close(),e&&e()})),this.cancelText){const e=t()("<button></button>").text(this.cancelText).addClass("dialog-button-cancel");i.append(e),e.on("click",(()=>{this.close(),n&&n()}))}super.show(this)}showAsync(){return new Promise(((e,t)=>{this.show((()=>e(!0)),(()=>e(!1)))}))}}class Yi extends Error{}function Ui(e){return-1==e.indexOf(":")?e:e.substring(e.indexOf(":")+1)}class Hi{constructor(e,n,i){this._iv=e,this._reportSet=i,this._iframes=n,this._contents=n.contents(),this.onSelect=t().Callbacks(),this.onMouseEnter=t().Callbacks(),this.onMouseLeave=t().Callbacks(),this._ixNodeMap={},this._docOrderItemIndex=new Ri,this._currentDocumentIndex=0}_checkContinuationCount(){const e=Object.keys(this.continuationOfMap).length;if(e>this._iv.options.continuationElementLimit){const n=t()("<div></div>").append(t()("<p></p>").text(`This document contains a very large number of iXBRL elements (found ${e} ix:continuation elements).`)).append(t()("<p></p>").text("You may experience performance problems viewing this document, or the viewer may not load at all.")).append(t()("<p></p>").text("Do you want to continue trying to load this document?"));return new Wi("Large document warning",n,"Continue","Cancel").showAsync().then((e=>{if(!e)throw new Yi("Too many continuations")}))}return Promise.resolve()}initialize(){return new Promise((async(e,n)=>{const i=this;i._buildContinuationMaps(),i._checkContinuationCount().catch((e=>{throw e})).then((()=>i._iv.setProgress("Pre-processing document"))).then((()=>{i._iframes.each((function(e){t()(this).data("selected",e==i._currentDocumentIndex);const n=t()(this).data("report-index");i._preProcessiXBRL(t()(this).contents().find("body").get(0),n,e)})),async function(){for(const[e,n]of i._iframes.toArray().entries()){const r=t()(n).contents().find("body").get(0);await i._iv.pluginPromise("preProcessiXBRL",r,e),i._iv.isReviewModeEnabled()&&await new Promise(((n,o)=>{i._iv.setProgress("Finding untagged numbers and dates").then((()=>{const o=t()(r).children(":visible");o.hide(),t()(r).addClass("review"),i._wrapUntaggedNumbers(t()(r),e,!1),o.show(),n()}))}))}}().then((()=>i._iv.setProgress("Preparing document"))).then((()=>{this._reportSet.setIXNodeMap(this._ixNodeMap),this._applyStyles(),this._bindHandlers(),this.scale=1,this._setTitle(0),this._addDocumentSetTabs(),e()}))})).catch((e=>n(e)))}))}_addDocumentSetTabs(){if(this._reportSet.isMultiDocumentViewer()){t()("#ixv .ixds-tabs").show();for(const[e,n]of this._reportSet.reportFiles().entries())t()('<div class="tab">').text(n.file).prop("title",n.file).data("ix-doc-id",e).click((()=>this.selectDocument(e))).appendTo(t()("#ixv #viewer-pane .ixds-tabs .tab-area"));t()("#ixv #viewer-pane .ixds-tabs .tab-area .tab").eq(0).addClass("active")}}_wrapNode(e){var n="<span>";const i=e.getElementsByTagName("*");for(var r=0;r<i.length;r++)if("block"===getComputedStyle(i[r]).getPropertyValue("display")){n="<div>";break}return t()(e).wrap(n),e.parentNode}_wrapUntaggedNumbers(e,n,i){const r=this,o=/(?:^|\s|;)-(?:sec|esef)-ix-hidden:\s*([^\s;]+)/;e.contents().each((function(){if(this.nodeType===Node.ELEMENT_NODE){const e=Ui(this.nodeName.toUpperCase());"NONFRACTION"===e||"NONNUMERIC"===e&&null!==this.getAttribute("format")||this.hasAttribute("style")&&this.getAttribute("style").match(o)||r._wrapUntaggedNumbers(t()(this),n,"NONNUMERIC"===e)}else if(this.nodeType===Node.TEXT_NODE){const n=this.nodeValue,r=t()("<div></div>");let o=0;!function(e,t){for(var n;null!==(n=Yn.exec(e));)t(n,void 0!==n[2],void 0!==n[1])}(n,(function(a,s,l){if(a.index>o&&r.append(document.createTextNode(n.substring(o,a.index))),s||i&&0===a.index&&a.index+a[0].length===n.length&&n===e.text())r.append(document.createTextNode(a[0]));else{const e=l?"review-untagged-date":"review-untagged-number";t()("<span></span>").text(a[0]).addClass(e).appendTo(r)}o=a.index+a[0].length})),o<n.length&&r.append(document.createTextNode(n.substring(o,n.length))),t()(this).replaceWith(r.contents())}}))}_showDocumentAndElement(e,n){if(this.selectDocument(e),void 0!==n&&""!=n)for(const i of[n,decodeURIComponent(n)]){const n=t().escapeSelector(i),r=this._iframes.eq(e).contents().find("#"+n+', a[name="'+n+'"]');if(r.length>0)return void this.showElement(r.eq(0))}}_updateLink(e){const n=t()(e).attr("href");if(void 0!==n){const[i,r]=n.split("#",2),o=this._reportSet.reportFiles().indexOf(i);n.includes("/")||-1==o?i&&t()(e).attr("target","_blank"):t()(e).click((e=>{this._showDocumentAndElement(o,r),e.preventDefault()}))}}_findOrCreateWrapperNode(e){const n=e.closest("td,th"),i=[],r=t()(e).text();if(null!==n&&r.length>0){const e=t()(n).text(),o=e.indexOf(r),a=e.substring(0,o)+e.substring(o+r.length);/[0-9A-Za-z]/.test(a)||i.push(n)}if(0==i.length){i.push(this._wrapNode(e));for(const t of e.querySelectorAll("*"))"absolute"===getComputedStyle(t).getPropertyValue("position")&&i.push(t)}for(const[e,t]of i.entries())i.length>1&&t.classList.add("ixbrl-contains-absolute"),0==e?t.classList.add("ixbrl-element"):t.classList.add("ixbrl-sub-element");return t()(i)}_addIdToNode(e,t){const n=e.data("ivids")||[];n.push(t),e.data("ivids",n)}_buildContinuationMaps(){const e={},n={};this._iframes.each(((i,r)=>{const o=t()(r).data("report-index");t()(r).contents().find("body *").each(((t,i)=>{const r=Ui(i.nodeName).toUpperCase();if(["NONNUMERIC","NONFRACTION","FOOTNOTE","CONTINUATION"].includes(r)){const t=Bt(o,i.getAttribute("id")),a=Bt(o,i.getAttribute("continuedAt"));null!==a&&(e[t]=a),"CONTINUATION"==r||i.hasAttribute("target")||(n[t]=[])}}))})),this.continuationOfMap={};for(const[t,r]of Object.entries(n))for(var i=t;void 0!==e[i];)i=e[i],r.push(i),void 0!==this.continuationOfMap[i]&&console.log("Continuation '"+i+"' is a continuation of multiple items."),this.continuationOfMap[i]=t;this.itemContinuationMap=n}_preProcessiXBRL(e,n,i,r){const o=Ui(e.nodeName).toUpperCase(),a="FOOTNOTE"===o,s="CONTINUATION"===o,l="NONNUMERIC"===o,c="NONFRACTION"===o,u=l||c;if(1===e.nodeType){const f=Bt(n,e.getAttribute("id"));if((u||a)&&!e.hasAttribute("target")||s&&void 0!==this.continuationOfMap[f]){var d;d=r?t()(e):this._findOrCreateWrapperNode(e);const n=s?this.continuationOfMap[f]:f;this._addIdToNode(d.first(),n);var h=this._ixNodeMap[f];if(h||(h=new zi(f,d,i),this._ixNodeMap[f]=h),r&&(h.isHidden=!0,d.addClass("ixbrl-element-hidden")),s?d.addClass("ixbrl-continuation"):this._docOrderItemIndex.addItem(f,i),c&&(d.addClass("ixbrl-element-nonfraction"),e.hasAttribute("scale"))){const t=Number(e.getAttribute("scale"));Number.isNaN(t)||0===t||(h.scale=t)}l&&(d.addClass("ixbrl-element-nonnumeric"),e.hasAttribute("escape")&&e.getAttribute("escape").match(/^(true|1)$/)&&(h.escaped=!0)),a&&(d.addClass("ixbrl-element-footnote"),h.footnote=!0)}else if("HIDDEN"==o)r=!0;else{const n=this._getIXHiddenLinkStyle(e);if(null!==n){(d=t()(e)).addClass("ixbrl-element").data("ivids",[n]),this._docOrderItemIndex.addItem(n,i);const r=this._ixNodeMap[n];r?(r.wrapperNodes=d,r.docIndex=i):this._ixNodeMap[n]=new zi(n,d,i)}"A"==o&&this._updateLink(e)}}this._preProcessChildNodes(e,n,i,r)}_getIXHiddenLinkStyle(e){if(e.hasAttribute("style")){const t=/(?:^|\s|;)-(?:sec|esef)-ix-hidden:\s*([^\s;]+)/,n=e.getAttribute("style").match(t);if(n)return n[1]}return null}_preProcessChildNodes(e,t,n,i){for(const r of e.childNodes)this._preProcessiXBRL(r,t,n,i)}_applyStyles(){const e=t()("<style>").prop("type","text/css").text(n(125).toString()).appendTo(this._iframes.contents().find("head"));this._iv.callPluginMethod("updateViewerStyleElements",e)}contents(){return this._iframes.contents()}_selectAdjacentTag(e,t){var n;null!==t?(n=this._docOrderItemIndex.getAdjacentItem(t.vuid,e),this.showDocumentForItemId(n)):n=e>0?this._docOrderItemIndex.getFirstInDocument(this._currentDocumentIndex):this._docOrderItemIndex.getLastInDocument(this._currentDocumentIndex);const i=this.elementsForItemId(n);this.showElement(i),this.selectElement(n,this._ixIdsForElement(i))}_bindHandlers(){const e=this;t()(".ixbrl-element",this._contents).click((function(n){n.stopPropagation(),e.selectElementByClick(t()(this))})).mouseenter((function(n){e._mouseEnter(t()(this))})).mouseleave((function(n){e._mouseLeave(t()(this))})),t()("body",this._contents).click((()=>e.selectElement(null))),t()("#iframe-container .zoom-in").click((()=>this.zoomIn())),t()("#iframe-container .zoom-out").click((()=>this.zoomOut())),t()("#iframe-container .print").click((()=>this.currentDocument().get(0).contentWindow.print())),Pi.addHandles(this._contents,this._reportSet)}selectNextTag(e){this._selectAdjacentTag(1,e)}selectPrevTag(e){this._selectAdjacentTag(-1,e)}intersect(e,t){const n={left:Math.max(e.left,t.left),top:Math.max(e.top,t.top),right:Math.min(e.right,t.right),bottom:Math.min(e.bottom,t.bottom)};return n.width=n.right-n.left,n.height=n.bottom-n.top,n}isScrollableElement(e){const n=t()(e).css("overflow-y");if(e.clientHeight>0&&e.clientHeight<e.scrollHeight&&("auto"==n||"scroll"==n))return!0;const i=t()(e).css("overflow-x");return e.clientWidth>0&&e.clientWidth<e.scrollWidth&&("auto"==i||"scroll"==i)}isFullyVisible(e){var n=e.getBoundingClientRect();const i=e.getBoundingClientRect();for(var r=t()(e.parentElement);!r.is("body");){if(this.isScrollableElement(r[0])&&(n=this.intersect(n,r[0].getBoundingClientRect())),n.width<i.width||n.height<i.height)return!1;r=r.parent()}const o="CSS1Compat"!=e.ownerDocument.compatMode?r:r.closest("html").get(0);return n.left>0&&n.top>0&&n.right<o.clientWidth&&n.bottom<o.clientHeight}showElement(e){const t=e.get(0);this.isFullyVisible(t)||t.scrollIntoView({block:"center",inline:"center"})}clearHighlighting(){t()("body",this._iframes.contents()).find(".ixbrl-element, .ixbrl-sub-element").removeClass("ixbrl-selected").removeClass("ixbrl-related").removeClass("ixbrl-linked-highlight")}_ixIdsForElement(e){return e.data("ivids")}selectElement(e,t,n){null!==e?this.onSelect.fire(e,t,n):this.onSelect.fire(null)}selectElementByClick(e){var n=[];const i=this;var r;e.hasClass(".ixbrl-element")||(e=e.closest(".ixbrl-element")),e.parents(".ixbrl-element").addBack().each((function(){const o=i._ixIdsForElement(t()(this));n=n.concat(o),t()(this).text()==e.text()&&void 0===r&&(r=o[0])})),this.selectElement(r,n,!0)}_mouseEnter(e){const t=e.data("ivids")[0];this.onMouseEnter.fire(t)}_mouseLeave(e){const t=e.data("ivids")[0];this.onMouseLeave.fire(t)}highlightRelatedFact(e){this.changeItemClass(e.vuid,"ixbrl-related")}highlightRelatedFacts(e){for(const t of e)this.changeItemClass(t.vuid,"ixbrl-related")}clearRelatedHighlighting(e){t()(".ixbrl-related",this._contents).removeClass("ixbrl-related")}elementsForItemId(e){return this._ixNodeMap[e].wrapperNodes}elementsForItemIds(e){return t()(e.map((e=>this._ixNodeMap[e].wrapperNodes.get())).flat())}changeItemClass(e,t,n){const i=this.elementsForItemIds([e].concat(this.itemContinuationMap[e]));n?i.removeClass(t):i.addClass(t)}highlightItem(e){this.clearHighlighting(),this.changeItemClass(e,"ixbrl-selected")}showItemById(e){if(null!==e){let t=this.elementsForItemId(e);this.showDocumentForItemId(e),t.length>0&&this.showElement(t)}}highlightAllTags(e,n){const i={};t().each(n,(function(e,t){i[t]=e}));const r=this._reportSet,o=this;e?(t()(".ixbrl-element",this._contents).addClass("ixbrl-highlight").each((function(){const e=t()(this).data("ivids").map((e=>o._ixNodeMap[e])).filter((e=>!e.footnote))[0];if(null!=e){const t=o.elementsForItemIds(e.chainIXIds()),n=i[r.getItemById(e.id).conceptQName().prefix];void 0!==n&&t.addClass("ixbrl-highlight-"+n)}})),t()(".ixbrl-sub-element",this._contents).addClass("ixbrl-highlight")):t()(".ixbrl-element, .ixbrl-sub-element",this._contents).removeClass(((e,t)=>(t.match(/(^|\s)ixbrl-highlight\S*/g)||[]).join(" ")))}_zoom(){const e=this._contents.scrollTop(),n=t()("html",this._contents).height();t()("body",this._contents).css("zoom",this.scale);const i=t()("html",this._contents).height();this._contents.scrollTop(i*e/n)}zoomIn(){this.scale*=1.1,this._zoom()}zoomOut(){this.scale/=1.1,this._zoom()}factsInSameTable(e){var n=[];return this.elementsForItemId(e.vuid).closest("table").find(".ixbrl-element").each((function(){n=n.concat(t()(this).data("ivids"))})),n}linkedHighlightFact(e){this.changeItemClass(e.vuid,"ixbrl-linked-highlight")}clearLinkedHighlightFact(e){this.changeItemClass(e.vuid,"ixbrl-linked-highlight",!0)}_setTitle(e){t()("#top-bar .document-title").text(t()("head title",this._iframes.eq(e).contents()).text())}showDocumentForItemId(e){this.selectDocument(this._ixNodeMap[e].docIndex)}currentDocument(){return this._iframes.eq(this._currentDocumentIndex)}selectDocument(e){this._currentDocumentIndex=e,t()("#ixv #viewer-pane .ixds-tabs .tab").removeClass("active").eq(e).addClass("active"),this._iframes.height(0).data("selected",!1).eq(e).height("100%").data("selected",!0),this._setTitle(e)}*postProcess(){for(const e of this._iframes.get()){const n=t()(e).contents().get(0).querySelectorAll(".ixbrl-contains-absolute");for(const[e,t]of n.entries())"inline"!==getComputedStyle(t).getPropertyValue("display")&&t.getBoundingClientRect().height,e%100==0&&(yield);for(const[e,t]of n.entries())"inline"!==getComputedStyle(t).getPropertyValue("display")&&0==t.getBoundingClientRect().height&&t.classList.add("ixbrl-no-highlight"),e%100==0&&(yield)}}postLoadAsync(){zt(this.postProcess())}}var Vi=n(437),Zi=n.n(Vi);class Gi{constructor(e){this._reportSet=e,this.ready=!1}*buildSearchIndex(e){var t=[],n={},i=this._reportSet.facts();this.periods={};for(var r=0;r<i.length;r++){var o=i[r],a={id:o.vuid},s=o.getLabel("std");for(var l in a.concept=o.conceptQName().localname,a.doc=o.getLabel("doc"),a.date=o.periodTo(),a.startDate=o.periodFrom(),n=o.dimensions())o.report.getConcept(l).isTypedDimension()?null!==n[l]&&(s+=" "+n[l]):s+=" "+o.report.getLabel(n[l],"std");a.label=s,a.ref=o.concept().referenceValuesAsString();const e=o.widerConcepts();e.length>0&&(a.widerConcept=o.report.qname(e[0]).localname,a.widerLabel=o.report.getLabel(e[0],"std"),a.widerDoc=o.report.getLabel(e[0],"doc")),t.push(a);var c=o.period();c&&(this.periods[c.key()]=c.toString()),r%100==0&&(yield)}const u=new(Zi().Builder);u.pipeline.add(Zi().trimmer,Zi().stopWordFilter,Zi().stemmer),u.searchPipeline.add(Zi().stemmer),u.ref("id"),u.field("label"),u.field("concept"),u.field("startDate"),u.field("date"),u.field("doc"),u.field("ref"),u.field("widerLabel"),u.field("widerDoc"),u.field("widerConcept");for(const[e,n]of t.entries())u.add(n),e%100==0&&(yield);this._searchIndex=u.build(),this.ready=!0,e()}visibilityFilter(e,t){return t.isHidden()?e.showHiddenFacts:e.showVisibleFacts}periodFilter(e,t){return 0===e.periodFilter.length||e.periodFilter.some((e=>t.period().key()===e))}conceptTypeFilter(e,t){return"*"===e.conceptTypeFilter||e.conceptTypeFilter===(t.isNumeric()?"numeric":"text")}dimensionTypeFilter(e,t){const n=e.dimensionTypeFilter.includes("typed"),i=e.dimensionTypeFilter.includes("explicit");return 0===e.dimensionTypeFilter.length||n&&t.hasTypedDimension()||i&&t.hasExplicitDimension()}factValueFilter(e,t){return"*"===e.factValueFilter||"positive"===e.factValueFilter&&t.isPositive()||"negative"===e.factValueFilter&&t.isNegative()}calculationsFilter(e,t){const n=e.calculationsFilter.includes("summation"),i=e.calculationsFilter.includes("contributor");return 0===e.calculationsFilter.length||n&&t.isCalculationSummation()||i&&t.isCalculationContributor()}namespacesFilter(e,t){return 0===e.namespacesFilter.length||e.namespacesFilter.some((e=>t.getConceptPrefix()===e))}unitsFilter(e,t){return 0===e.unitsFilter.length||e.unitsFilter.some((e=>t.unit()?.value()===e))}scalesFilter(e,t){return 0===e.scalesFilter.length||e.scalesFilter.some((e=>t.scale()===Number(e)))}search(e){if(!this.ready)return;const t=this._searchIndex.search(e.searchString),n=[],i=this,r=[this.visibilityFilter,this.periodFilter,this.conceptTypeFilter,this.dimensionTypeFilter,this.factValueFilter,this.calculationsFilter,this.namespacesFilter,this.unitsFilter,this.scalesFilter];return t.forEach(((t,o)=>{const a=i._reportSet.getItemById(t.ref);r.every((t=>t(e,a)))&&n.push({fact:a,score:t.score})})),n}}function Qi(e){this._fact=e}Qi.prototype.calculationFacts=function(){var e=this._fact,n=e.report;if(!this._conceptToFact){var i=n.getChildRelationships(e.conceptName(),"calc"),r={};t().each(i,(function(i,o){if(r[i]={},o.length>0){var a=n.getAlignedFacts(e,{c:t().map(o,((e,t)=>e.t))});t().each(a,((e,t)=>Ft(r[i],t.conceptName(),{})[t.vuid]=t))}})),this._conceptToFact=r}return this._conceptToFact},Qi.prototype.hasCalculations=function(){var e=this.calculationFacts();return Object.keys(e).length>0},Qi.prototype.elrs=function(){var e=this.calculationFacts(),n={};return t().each(e,(function(e,t){Object.keys(t).length>0&&(n[e]=e.match(/[^\/]*$/)[0])})),n},Qi.prototype.bestELRForFactSet=function(e){var n=this.calculationFacts(),i="",r=-1;return t().each(n,(function(n,o){var a=0;t().each(o,(function(n,i){var r=0;t().each(i,(function(n,i){t().inArray(n,e)>-1&&(r=1)})),a+=r})),a/Object.keys(o).length>r&&(r=a/Object.keys(o).length,i=n)})),i},Qi.prototype.resolvedCalculation=function(e){var n=[],i=this.calculationFacts()[e],r=this._fact.report.getChildRelationships(this._fact.conceptName(),"calc")[e];return t().each(r,(function(e,t){var r;r=1==t.w?"+":-1==t.w?"-":t.w,n.push({weightSign:r,weight:t.w,facts:i[t.t],concept:t.t})})),n};var Ji=n(12),qi=n.n(Ji);class Xi extends Bi{constructor(){super(".dialog.chart")}_multiplierDescription(e){return{0:"",3:"'000s",6:"millions",9:"billions"}[e]}_chooseMultiplier(e){let t=Math.max(...e.map((e=>Math.abs(Number(e.value()))))),n=0;for(;t>=1e3&&n<9;)t/=1e3,n+=3;return n}dataSetColour(e){return["#66cc00","#0094ff","#fbad17"][e]}addAspect(e){this._analyseDims.push(e),this._showAnalyseDimensionChart()}removeAspect(e){this._analyseDims=this._analyseDims.filter((t=>t!=e)),this._showAnalyseDimensionChart()}analyseDimension(e,t){this._analyseFact=e,this._analyseDims=t,this._showAnalyseDimensionChart()}_showAnalyseDimensionChart(){const e=this._analyseFact,n=this._analyseDims,i=this.node;t()("canvas",i).remove(),t()("<canvas>").appendTo(t()(".chart-container",i)),this.show();const r={};n[0]&&(r[n[0]]=null),n[1]&&(r[n[1]]=null);const o=e.report.deduplicate(e.report.getAlignedFacts(e,r)),a=new Zt,s=new Zt;for(const e of o)n[0]&&a.add(e.aspect(n[0])),n[1]&&s.add(e.aspect(n[1]));const l=a.uniqueValues(),c=s.uniqueValues(),u=this._chooseMultiplier(o),d=e.measureLabel()+" "+this._multiplierDescription(u),h=[],f=[];for(let t=0;t<(n[0]?l.length:1);t++){h.push(n[0]?Nt(l[t].valueLabel("std")||"",40):"");for(let i=0;i<(n[1]?c.length:1);i++){f[i]=f[i]||{label:n[1]?c[i].valueLabel():"",data:[],backgroundColor:this.dataSetColour(i),borderColor:this.dataSetColour(i)};const r={};n[0]&&(r[n[0]]=l[t].value()),n[1]&&(r[n[1]]=c[i].value());const o=e.report.getAlignedFacts(e,r);o.length>0?f[i].data[t]=o[0].value()/10**u:f[i].data[t]=0}}t()(".other-aspects",i).empty();const p=[];for(const r of e.aspects())if("c"!=r.name()){const e=t()("<div>").addClass("other-aspect").appendTo(t()(".other-aspects",i));n.includes(r.name())?e.addClass("selected").text(r.label()+": *").click((()=>this.removeAspect(r.name()))):("u"!=r.name()&&p.push(r.valueLabel()),e.text(r.label()+": "+r.valueLabel()),n.length<2&&e.addClass("addable").click((()=>this.addAspect(r.name()))))}n[1]||(n[0]||(h[0]=p.join(", ")),f[0].label=p.join(", ")),this.setChartSize();const g=t()("canvas",i),m=new(qi())(g,{type:"bar",data:{labels:h,datasets:f},options:{responsive:!0,maintainAspectRatio:!1,scales:{yAxes:[{ticks:{beginAtZero:!0},scaleLabel:{display:!0,labelString:d}}],xAxes:[{ticks:{autoSkip:!1}}]}}});t()(window).resize((()=>{this.setChartSize(),m.resize()}))}setChartSize(){const e=this.node,n=e.height()-t()(".other-aspects",this.node).outerHeight()-16;t()(".chart-container",e).height(n),t()("canvas",e).attr("height",n).height(n)}}var Ki=n(898),$i=n.n(Ki);class er{constructor(e,n){this._elt=e,n=n||{},this.type=n.type||"dropdown",e.find(".menu-title").click((t=>{e.find(".content-container").toggle(),t.stopPropagation()})),t()("html").click((n=>{0===t()(".content",e).find(t()(n.target)).length&&this.close()}))}reset(){this._elt.find(".content").empty()}close(){"dropdown"==this.type&&this._elt.find(".content-container").hide()}_add(e,n){if(void 0!==n){const i=this._elt.find(".content > div").filter((()=>t()(this).data("iv-menu-item-name")===n));if(void 0!==i&&i.length>0)return void i.after(e)}e.appendTo(this._elt.find(".content"))}addDownloadButton(e,n){const i=this,r=t()("<a></a>").addClass("item").attr({href:n}).text(e).click((()=>i.close()));this._add(r)}addCheckboxItem(e,n,i,r,o){const a=this,s=t()("<label></label>").addClass("menu-checkbox").addClass("item").text(e).data("iv-menu-item-name",i).prepend(t()('<input type="checkbox"></input>').prop("checked",o).change((function(){n(t()(this).prop("checked")),a.close()}))).append(t()("<span></span>").addClass("checkmark"));this._add(s,r),o&&n(!0)}addCheckboxGroup(e,n,i,r,o,a){const s=this,l=t()('<div class="group"></div>').data("iv-menu-item-name",o);this._add(l,a);for(const a of e){const e=t()("<label></label>").addClass("menu-checkbox").addClass("item").text(n[a]).prepend(t()('<input type="radio"></input>').attr({name:o,value:a}).change((function(){r(t()(this).val()),s.close()}))).append(t()("<span></span>").addClass("checkmark")).appendTo(l);a===i&&e.find("input").prop("checked",!0)}}}class tr{constructor(e){this._contents=t()('<div class="accordian"></div>'),this.onSelect=t().Callbacks(),this.options=e||{},this.options.onSelect&&this.onSelect.add(e.onSelect)}addCard(e,n,i,r){const o=this,a=t()('<div class="card"></div>').append(t()('<div class="title"></div>').append(e).click((function(){var e=t()(this).closest(".card");e.hasClass("active")?o.options.alwaysOpen||e.removeClass("active"):(e.closest(".accordian").find(".card").removeClass("active"),e.addClass("active"),o.onSelect.fire(e.data("accordian-card-id")))}))).append(t()('<div class="body"></div>').append(n)).appendTo(this._contents);null!==r&&a.data("accordian-card-id",r),i&&a.addClass("active")}contents(){return this.options.alwaysOpen&&0==this._contents.find(".card.active").length&&this._contents.find(".card").first().addClass("active"),this.options.dissolveSingle&&1==this._contents.children().length?this._contents.children().first().find(".body"):this._contents}}class nr{constructor(e){this._items=e}_allDimensions(){const e={},t=this._items.filter((e=>e instanceof Gt));for(const i of t){const t=Object.keys(i.dimensions());for(var n=0;n<t.length;n++)e[t[n]]=!0}return Object.keys(e)}minimallyUniqueLabel(e){if(!this._minimallyUniqueLabels){for(var t=this._items.filter((e=>e instanceof Gt)),n={},i=["c","p"].concat(this._allDimensions()),r=0;r<t.length;r++){var o=t[r];n[o.vuid]=[];for(var a=0;a<i.length;a++){var s=o.aspect(i[a]);n[o.vuid].push(s?s.valueLabel():null)}}var l={};for(a=0;a<i.length;a++){var c={};for(r=0;r<t.length;r++)c[n[t[r].vuid][a]]=!0;var u={};if(Object.keys(c).length>1){for(r=0;r<t.length;r++){var d=n[f=t[r].vuid][a],h=l[f]||[];null!==d&&h.push(d),h.length>0&&(l[f]=h,u[h.join(", ")]=!0)}if(Object.keys(u).length==t.length)break}}if(Object.keys(l).length<t.length)for(r=0;r<t.length;r++){var f=t[r].vuid;(h=l[f]||[]).unshift(n[f][0]),l[f]=h}this._items.filter((e=>e instanceof qt)).forEach((e=>{l[e.vuid]=[e.title]})),this._minimallyUniqueLabels=l}return this._minimallyUniqueLabels[e.vuid].join(", ")}}class ir extends Bi{constructor(){super(".dialog.validation-report"),this.addButton("Dismiss",!0)}displayErrors(e){const n=this.node.find("tbody");n.empty();for(const i of e)t()("<tr></tr>").append(t()("<td></td>").text(i.sev)).append(t()("<td></td>").text(i.code)).append(t()("<td></td>").text(i.msg)).appendTo(n)}}class rr extends Bi{constructor(e){super(".dialog.text-block-viewer"),this.addButton("Dismiss",!0),this.fact=e,this.node.find("#text-block-viewer-plain-text").off("change.dialog").on("change.dialog",(e=>this.displayTextBlock(e.target.checked)))}htmlWrapString(e){return"<!DOCTYPE html><html><head><title></title></head><body>"+e+"</body></html>"}static canRender(e){return e.isTextBlock()&&e.escaped()}textOnly(){return this.node.find("#text-block-viewer-plain-text").prop("checked")}displayTextBlock(){const e=this.node.find("iframe").get(0),t=e.contentDocument||e.contentWindow.document;if(t.open(),this.textOnly()){const e=document.createElement("div");e.append(document.createTextNode(this.fact.readableValue())),t.write(this.htmlWrapString(e.outerHTML))}else t.write(this.htmlWrapString(this.fact.value()));t.close()}}class or{constructor(e){this._reportSet=e,this.outlines=e.reports.map((e=>new ar(e)))}hasOutline(){return this.outlines.some((e=>Object.keys(e.sections).length>0))}sortedSections(){return this.outlines.flatMap((e=>e.sortedSections()))}groupsForFact(e){return this.outlines.find((t=>t.report==e.report)).groupsForFact(e)}}class ar{constructor(e){this.report=e;const t=e.facts().sort(((e,t)=>e.ixNode.docOrderindex-t.ixNode.docOrderindex)),n={},i={},r={},o={};this._buildDimensionMap();const a=e.relationshipGroups("pres");for(const e of t)if(!e.isHidden())for(const t of a)this.factInGroup(e,t)?(t in n||(n[t]=0,i[t]=e),n[t]++):t in n&&((!(t in r)||r[t]<n[t])&&(r[t]=n[t],o[t]=i[t]),delete n[t],delete i[t]);for(const e in n)(!(e in r)||r[e]<n[e])&&(r[e]=n[e],o[e]=i[e]);this.sections=o}factInGroup(e,t){if(0==this.report.getParentRelationshipsInGroup(e.conceptName(),"pres",t).length)return!1;const n=e.dimensions(),i=this.dimensionMap[t];for(const[e,t]of Object.entries(i))if(t.typed){if(!(e in n))return!1}else if(e in n?!(n[e]in t.members):!t.allowDefault)return!1;return!0}_buildDimensionMap(){const e=this.report.relationshipGroups("pres");this.dimensionMap={};for(const t of e){this.dimensionMap[t]={};for(const e of this.report.relationshipGroupRoots("pres",t))this.buildDimensionMapFromSubTree("pres",t,null,e)}}buildDimensionMapFromSubTree(e,t,n,i){const r=this.report.getConcept(i);if(r.isTypedDimension())this.dimensionMap[t][i]={typed:!0};else{r.isExplicitDimension()&&(n=i,this.dimensionMap[t][n]={members:{},allowDefault:!1});var o=this.report.getChildRelationships(i,e);if(t in o)for(var a of o[t])n&&(this.report.dimensionDefault(n)==a.t?this.dimensionMap[t][n].allowDefault=!0:this.dimensionMap[t][n].members[a.t]=!0),this.buildDimensionMapFromSubTree(e,t,n,a.t)}}groupsForFact(e){const t=[];for(const n of this.report.relationshipGroups("pres"))this.factInGroup(e,n)&&t.push({elr:n,fact:this.sections[n],report:this.report});return t}hasOutline(){return Object.keys(this.sections).length>0}sortedSections(){const e=Object.keys(this.sections),t=/\(parenthetical\)\s*$/i;return e.filter((e=>!t.test(this.report.getRoleLabel(e)))).sort(((e,t)=>this.report.getRoleLabel(e).localeCompare(this.report.getRoleLabel(t)))).map((e=>({report:this.report,fact:this.sections[e],elr:e})))}}const sr="dimensions",lr="members",cr="primaryItems",ur="total";class dr{constructor(){this._dimensions=new Set,this._members=new Set,this._primaryItems=new Set}addDimension(e){this._dimensions.add(e)}addMember(e){this._members.add(e)}addPrimaryItem(e){this._primaryItems.add(e)}getCounts(){return{[sr]:this._dimensions.size,[lr]:this._members.size,[cr]:this._primaryItems.size,[ur]:this._dimensions.size+this._members.size+this._primaryItems.size}}}class hr{constructor(){this._documentsByType={inline:new Set,schema:new Set,calcLinkbase:new Set,defLinkbase:new Set,labelLinkbase:new Set,presLinkbase:new Set,refLinkbase:new Set,unrecognizedLinkbase:new Set}}addDocument(e,t){for(const n of t){if(!(n in this._documentsByType))throw new Error(`Document ${e} with unrecognized type ${n}.`);this._documentsByType[n].add(e)}}getDocuments(){const e={};for(const[t,n]of Object.entries(this._documentsByType))e[t]=[...n].sort();return e}}class fr{constructor(e){this._reportSet=e}_getTagCounter(e,t){const n=t.indexOf(":");if(-1===n)throw new Error(`Element ${t} is not a concept.`);const i=t.substring(0,n);return e.has(i)||e.set(i,new dr),e.get(i)}_buildTagCounts(){const e=new Map;for(const t of this._reportSet.facts()){let n=this._getTagCounter(e,t.conceptName());n.addPrimaryItem(t.conceptName());for(const[i,r]of Object.entries(t.dimensions())){n=this._getTagCounter(e,i),n.addDimension(i);const o=t.report.getConcept(i);if(o.isTypedDimension()){const t=o.typedDomainElement();t&&(n=this._getTagCounter(e,t),n.addMember(t))}else n=this._getTagCounter(e,r),n.addMember(r)}}this._tagCounts=new Map([...e].map((([e,t])=>[e,t.getCounts()])))}_buildLocalFileSummary(){this._localFileSummary=new hr;for(const[e,t]of this._reportSet.reports.flatMap((e=>Object.entries(e.localDocuments()))))this._localFileSummary.addDocument(e,t)}totalFacts(){return void 0===this._totalFacts&&(this._totalFacts=this._reportSet.facts().length),this._totalFacts}tagCounts(){return void 0===this._tagCounts&&this._buildTagCounts(),this._tagCounts}getLocalDocuments(){return void 0===this._localFileSummary&&this._buildLocalFileSummary(),this._localFileSummary.getDocuments()}}class pr{constructor(e){this._iv=e,this._viewerOptions=new $t,this._currentItem=null}i18nInit(){return V.init({lng:this.preferredLanguages()[0],returnEmptyString:!1,fallbackLng:"en",debug:!1,resources:{en:{translation:n(583),referenceParts:n(713),currencies:n(215)},es:{translation:n(524),referenceParts:n(494),currencies:n(362)}}}).then((e=>{$i().init(V,t(),{tName:"t",i18nName:"i18n",handleName:"localize",selectorAttr:"data-i18n",targetAttr:"i18n-target",useOptionsAttr:!1,parseDefaultValueFromContent:!0})}))}initialize(e,n){const i=this;return this._viewer=n,new Promise((function(n,r){i._chart=new Xi,i._reportSet=e,i.i18nInit().then((r=>{t()(".collapsible-header").on("click",(function(){const e=t()(this).closest(".collapsible-section");e.toggleClass("collapsed"),e.hasClass("collapsed")?e.find(".collapsible-body").slideUp(250):(e.find(".collapsible-body").slideDown(250),e.hasClass("collapsible-only")&&e.siblings(".collapsible-section:not(.collapsed)").each((function(){const e=t()(this);e.addClass("collapsed"),e.find(".collapsible-body").slideUp(250)})))})),t()("#inspector .controls .search-button").on("click",(function(){t()(this).closest("#inspector").removeClass(["summary-mode","outline-mode"]).toggleClass("search-mode")})),t()("#inspector .controls .summary-button").on("click",(function(){t()(this).closest("#inspector").removeClass(["outline-mode","search-mode"]).toggleClass("summary-mode")})),t()("#inspector .controls .outline-button").on("click",(function(){t()(this).closest("#inspector").removeClass(["summary-mode","search-mode"]).toggleClass("outline-mode")})),t()("#inspector-head .back").on("click",(function(){t()(this).closest("#inspector").removeClass(["summary-mode","outline-mode","search-mode"])})),t()(".popup-trigger").hover((function(){t()(this).find(".popup-content").show()}),(function(){t()(this).find(".popup-content").hide()})),t()("#inspector").on("click",".clipboard-copy",(function(){navigator.clipboard.writeText(t()(this).data("cb-text"))})),i._toolbarMenu=new er(t()("#toolbar-highlight-menu")),i.buildToolbarHighlightMenu(),i._optionsMenu=new er(t()("#display-options-menu")),i.buildDisplayOptionsMenu(),t()("#ixv").localize(),t()(window).on("message",(e=>i.handleMessage(e))),e.viewerOptions=i._viewerOptions,i.summary=new fr(e),i.createSummary(),i.outline=new or(e),i.createOutline(),i._iv.setProgress(V.t("inspector.initializing")).then((()=>{i._search=new Gi(e),i.buildDisplayOptionsMenu(),i.buildToolbarHighlightMenu(),i.buildHighlightKey(),i.setupValidationReportIcon(),i.initializeViewer(),n()}))}))}))}initializeViewer(){this._viewer.onSelect.add(((e,t,n)=>this.selectItem(e,t,n))),this._viewer.onMouseEnter.add((e=>this.viewerMouseEnter(e))),this._viewer.onMouseLeave.add((e=>this.viewerMouseLeave(e))),t()(".ixbrl-next-tag").click((()=>this._viewer.selectNextTag(this._currentItem))),t()(".ixbrl-prev-tag").click((()=>this._viewer.selectPrevTag(this._currentItem)))}postLoadAsync(){zt(this._search.buildSearchIndex((()=>this.searchReady())))}handleFactDeepLink(){const e=location.hash.match(/^#f([0-9]+)?-(.*)$/);if(null!==e){const t=Bt(e[1]??0,e[2]);void 0!==this._reportSet.getItemById(t)&&this.selectItem(t)}}handleMessage(e){const t=e.originalEvent.data;let n;try{n=JSON.parse(t)}catch(e){return}"SHOW_FACT"==n.task?this.selectItem(n.factId):console.log("Not handling unsupported task message: "+t)}updateURLFragment(){this._currentItem?location.hash="#f"+this._currentItem.vuid.replace(/^0-/,"-"):location.hash=""}buildDisplayOptionsMenu(){if(this._optionsMenu.reset(),this._reportSet){const e=this.selectDefaultLanguage();this._optionsMenu.addCheckboxGroup(this._reportSet.availableLanguages(),this._reportSet.languageNames(),e,(e=>{this.setLanguage(e),this.update()}),"select-language"),this.setLanguage(e),this._reportSet.filingDocuments()&&this._optionsMenu.addDownloadButton("Download filing documents",this._reportSet.filingDocuments())}this._iv.callPluginMethod("extendDisplayOptionsMenu",this._optionsMenu)}buildToolbarHighlightMenu(){const e=this._iv;this._toolbarMenu.reset(),this._toolbarMenu.addCheckboxItem(V.t("toolbar.xbrlElements"),(e=>this.highlightAllTags(e)),"highlight-tags",null,this._iv.options.highlightTagsOnStartup),e.isReviewModeEnabled()&&(this._toolbarMenu.addCheckboxItem("Untagged Numbers",(function(t){const n=e.viewer.contents().find("body");t?n.addClass("review-highlight-untagged-numbers"):n.removeClass("review-highlight-untagged-numbers")}),"highlight-untagged-numbers","highlight-tags"),this._toolbarMenu.addCheckboxItem("Untagged Dates",(function(t){const n=e.viewer.contents().find("body");t?n.addClass("review-highlight-untagged-dates"):n.removeClass("review-highlight-untagged-dates")}),"highlight-untagged-dates","highlight-untagged-numbers")),this._iv.callPluginMethod("extendToolbarHighlightMenu",this._toolbarMenu)}buildHighlightKey(){let e;t()(".highlight-key .items").empty(),e=this._iv.isReviewModeEnabled()?["XBRL Elements","Untagged Numbers","Untagged Dates"]:this._reportSet.namespaceGroups(),this._iv.callPluginMethod("extendHighlightKey",e);for(const[n,i]of e.entries())t()("<div>").addClass("item").append(t()("<span></span>").addClass("sample").addClass("sample-"+n)).append(t()("<span></span>").text(i)).appendTo(t()(".highlight-key .items"))}highlightAllTags(e){this._viewer.highlightAllTags(e,this._reportSet.namespaceGroups())}factListRow(e){const n=t()('<div class="fact-list-item"></div>').click((()=>this.selectItem(e.vuid))).dblclick((()=>t()("#inspector").removeClass("search-mode"))).mousedown((e=>{e.detail>1&&e.preventDefault()})).mouseenter((()=>this._viewer.linkedHighlightFact(e))).mouseleave((()=>this._viewer.clearLinkedHighlightFact(e))).data("ivid",e.vuid);t()('<div class="select-icon"></div>').click((()=>{this.selectItem(e.vuid),t()("#inspector").removeClass("search-mode")})).appendTo(n),t()('<div class="title"></div>').text(e.getLabelOrName("std")).appendTo(n),t()('<div class="dimension"></div>').text(e.period().toString()).appendTo(n);for(const i of e.aspects())i.isTaxonomyDefined()&&!i.isNil()&&t()('<div class="dimension"></div>').text(i.valueLabel()).appendTo(n);return e.isHidden()?t()('<div class="hidden"></div>').text(V.t("search.hiddenFact")).appendTo(n):e.isHTMLHidden()&&t()('<div class="hidden"></div>').text(V.t("search.concealedFact")).appendTo(n),n}addResults(e,n,i){t()(".more-results",e).remove();for(var r=i;r<n.length;r++){if(r-i>=100){t()('<div class="more-results"></div>').text(V.t("search.showMoreResults")).on("click",(()=>this.addResults(e,n,r))).appendTo(e);break}this.factListRow(n[r].fact).appendTo(e)}}searchSpec(){const e={};return e.searchString=t()("#ixbrl-search").val(),e.showVisibleFacts=t()("#search-visible-fact-filter").prop("checked"),e.showHiddenFacts=t()("#search-hidden-fact-filter").prop("checked"),e.namespacesFilter=t()("#search-filter-namespaces select").val(),e.unitsFilter=t()("#search-filter-units select").val(),e.scalesFilter=t()("#search-filter-scales select").val(),e.periodFilter=t()("#search-filter-period select").val(),e.conceptTypeFilter=t()("#search-filter-concept-type").val(),e.factValueFilter=t()("#search-filter-fact-value").val(),e.calculationsFilter=t()("#search-filter-calculations select").val(),e.dimensionTypeFilter=t()("#search-filter-dimension-type select").val(),e}setupSearchControls(e){const n=this;t()(".search-controls input, .search-controls select").change((()=>this.search())),t()(".search-controls div.filter-toggle").click((()=>t()(".search-controls").toggleClass("show-filters"))),t()(".search-controls .search-filters .reset").click((()=>this.resetSearchFilters())),t()(".search-controls .search-filters .reset-multiselect").on("click",(function(){t()(this).siblings().children("select option:selected").prop("selected",!1),n.search()}));for(const e of Object.keys(this._search.periods))t()("<option>").attr("value",e).text(this._search.periods[e]).appendTo("#search-filter-period select");for(const e of this._reportSet.getUsedConceptPrefixes())t()("<option>").attr("value",e).text(`${e} (${this._reportSet.prefixMap()[e]})`).appendTo("#search-filter-namespaces select");for(const e of this._reportSet.getUsedUnits())t()("<option>").attr("value",e).text(`${this._reportSet.getUnit(e)?.label()} (${e})`).appendTo("#search-filter-units select");const i=this._getScalesOptions();for(const e of Object.keys(i).sort())t()("<option>").attr("value",e).text(i[e]).appendTo("#search-filter-scales select")}_getScalesOptions(){const e={},t=this._reportSet.getUsedScalesMap();return Object.keys(t).sort().forEach((n=>{const i=Array.from(t[n]).sort();i.length>0?e[n]=i.join(", "):e[n]=n.toString()})),e}resetSearchFilters(){t()("#search-filter-period select option:selected").prop("selected",!1),t()("#search-filter-concept-type").val("*"),t()("#search-filter-fact-value").val("*"),t()("#search-filter-calculations select option:selected").prop("selected",!1),t()("#search-filter-dimension-type select option:selected").prop("selected",!1),t()("#search-hidden-fact-filter").prop("checked",!0),t()("#search-visible-fact-filter").prop("checked",!0),t()("#search-filter-namespaces select option:selected").prop("selected",!1),t()("#search-filter-units select option:selected").prop("selected",!1),t()("#search-filter-scales select option:selected").prop("selected",!1),this.search()}searchReady(){this.setupSearchControls(),t()("#inspector").addClass("search-ready"),t()("#ixbrl-search").prop("disabled",!1),this.search()}search(){const e=this.searchSpec(),n=this._search.search(e);if(void 0===n)return;const i=t()("#inspector .search-results .results");t()("div",i).remove(),this._viewer.clearRelatedHighlighting();const r=t()("#inspector .search-results .search-overlay");n.length>0?(r.hide(),this.addResults(i,n,0)):(t()(".title",r).text(V.t("search.noMatchFound")),t()(".text",r).text(V.t("search.tryAgainDifferentKeywords")),r.show()),t()("#matching-concepts-count").text(n.length),""!=e.searchString&&this._viewer.highlightRelatedFacts(n.map((e=>e.fact))),this.updateMultiSelectSubheader("search-filter-scales"),this.updateMultiSelectSubheader("search-filter-units"),this.updateMultiSelectSubheader("search-filter-namespaces"),this.updateMultiSelectSubheader("search-filter-dimension-type"),this.updateMultiSelectSubheader("search-filter-calculations"),this.updateMultiSelectSubheader("search-filter-period")}updateMultiSelectSubheader(e){const n=t()(`#${e} .collapsible-subheader`),i=t()(`#${e} select option:selected`);if(1===i.length)n.text(` ${i.text()}`);else if(i.length>0){const r=t()(`#${e} select option`).length;n.text(` (${i.length}/${r} ${V.t("search.selected")})`)}else n.empty()}updateCalculation(e,n){t()(".calculations .tree").empty().append(this._calculationHTML(e,n))}createSummary(){const e=t()("#inspector .summary .body");this._populateFactSummary(e),this._populateTagSummary(e),this._populateFileSummary(e)}_populateFactSummary(e){const n=this.summary.totalFacts();t()("<span></span>").text(n).appendTo(e.find(".total-facts-value"))}_populateTagSummary(e){const n=e.find(".tag-summary-table-body"),i=this.summary.tagCounts();let r=0,o=0,a=0,s=0;for(const e of i.values())r+=e[cr],o+=e[sr],a+=e[lr],s+=e[ur];function l(e,n,i){let r=0;i>0&&(r=n/i);let o=r.toLocaleString(void 0,{style:"percent"});o=` (${o})`,t()("<td></td>").text(n).addClass("figure").append(t()("<sup></sup>").text(o)).appendTo(e)}const c=[...i.entries()].sort(((e,t)=>e[0].localeCompare(t[0])));for(const[e,i]of c){const c=t()("<tr></tr>").appendTo(n);c.append(t()("<th></th>").attr("scope","row").text(e)),l(c,i[cr],r),l(c,i[sr],o),l(c,i[lr],a),l(c,i[ur],s)}const u=e.find(".tag-summary-table-footer-row");l(u,r,r),l(u,o,o),l(u,a,a),l(u,s,s)}_populateFileSummary(e){const{inline:n,schema:i,calcLinkbase:r,defLinkbase:o,labelLinkbase:a,presLinkbase:s,refLinkbase:l,unrecognizedLinkbase:c}=this.summary.getLocalDocuments(),u=e.find(".files-summary");let d=0;function h(e,n){if(0===e.length)u.find(n).hide();else{const i=u.find(n+" ul");d+=1;for(const n of e)i.append(t()("<li></li>").text(n))}}h(n,".inline-docs"),h(i,".schemas"),h(s,".pres-links"),h(r,".calc-links"),h(o,".def-links"),h(a,".label-links"),h(l,".ref-links"),h(c,".other-links"),0==d&&u.hide()}createOutline(){if(this.outline.hasOutline()){t()(".outline .no-outline-overlay").hide();const e=t()('<div class="fact-list"></div>').appendTo(t()(".outline .body"));for(const n of this.outline.sortedSections())t()('<div class="fact-list-item"></div>').text(n.report.getRoleLabel(n.elr)).click((()=>this.selectItem(n.fact.vuid))).dblclick((()=>t()("#inspector").removeClass("outline-mode"))).mousedown((e=>{e.detail>1&&e.preventDefault()})).appendTo(e)}}updateOutline(e){t()(".fact-groups").empty();for(const n of this.outline.groupsForFact(e))t()('<div class="fact-list-item"></div>').text(e.report.getRoleLabel(n.elr)).click((()=>this.selectItem(n.fact.vuid))).appendTo(t()(".fact-groups"))}updateFootnotes(e){t()(".footnotes").empty().append(this._footnotesHTML(e)),e.linkedFacts.length>0?t()("#inspector .footnote-facts-section").show().find(".footnote-facts").empty().append(this._footnoteFactsHTML(e)):t()("#inspector .footnote-facts-section").hide()}_anchorList(e,n){const i=t()("<ul></ul>");if(n.length>0)for(const r of n){const n=e.report.getAlignedFacts(e,{c:r}),o=e.report.getLabel(r,"std",!0);t()("<li></li>").appendTo(i).append(this.factLinkHTML(o,n))}else t()("<li></li>").append(t()("<i></i>").text(V.t("common.none"))).appendTo(i);return i}updateAnchoring(e){this._reportSet.usesAnchoring()?(t()(".anchoring").show(),t()(".anchoring .collapsible-body .anchors-wider").empty().append(this._anchorList(e,e.widerConcepts())),t()(".anchoring .collapsible-body .anchors-narrower").empty().append(this._anchorList(e,e.narrowerConcepts()))):t()(".anchoring").hide()}_referencesHTML(e){e.concept();const n=new tr;for(const[i,r]of e.concept().references().entries()){const e=t()("<span></span>").text(r[0].value),o=t()('<table class="fact-properties"><tbody></tbody></table>'),a=o.find("tbody");for(const e of r){const n=t()("<tr>").append(t()("<th></th>").text(V.t(`referenceParts:${e.part}`,{defaultValue:e.part}))).append(t()("<td></td>").text(e.value)).appendTo(a);"URI"==e.part&&(n.addClass("uri"),n.find("td").wrapInner(t()("<a>").attr("href",e.value)))}n.addCard(e,o,0==i)}return n.contents()}_calculationHTML(e,n){const i=new Qi(e);if(!i.hasCalculations())return"";const r=this._viewer.factsInSameTable(e);n||(n=i.bestELRForFactSet(r));const o=e.report,a=this,s=new tr;for(const[r,l]of Object.entries(i.elrs())){const c=o.getRoleLabel(l),u=i.resolvedCalculation(r),d=t()("<div></div>");for(const[e,n]of u.entries()){const e=t()("<div></div>").addClass("item").append(t()("<span></span>").addClass("weight").text(n.weightSign+" ")).append(t()("<span></span>").addClass("concept-name").text(o.getLabelOrName(n.concept,"std"))).appendTo(d);n.facts&&(e.addClass("calc-fact-link"),e.data("ivids",Object.keys(n.facts)),e.click((()=>a.selectItem(Object.values(n.facts)[0].vuid))),e.mouseenter((()=>Object.values(n.facts).forEach((e=>this._viewer.linkedHighlightFact(e))))),e.mouseleave((()=>Object.values(n.facts).forEach((e=>this._viewer.clearLinkedHighlightFact(e))))),Object.values(n.facts).forEach((e=>this._viewer.highlightRelatedFact(e))))}t()("<div></div>").addClass("item").addClass("total").append(t()("<span></span>").addClass("weight")).append(t()("<span></span>").addClass("concept-name").text(e.getLabelOrName("std"))).appendTo(d),s.addCard(t()("<span></span>").text(c),d,r==n)}return s.contents()}_footnotesHTML(e){const n=t()("<div></div>").addClass("fact-list");for(const i of e.footnotes())i instanceof qt?t()("<div></div>").addClass("block-list-item").text(Et(i.textContent(),120)).mouseenter((()=>this._viewer.linkedHighlightFact(i))).mouseleave((()=>this._viewer.clearLinkedHighlightFact(i))).click((()=>this.selectItem(i.vuid))).appendTo(n):i instanceof Gt&&n.append(this.factListRow(i));return n}viewerMouseEnter(e){t()(".calculations .item").filter(((n,i)=>(t()(i).data("ivids")??[]).includes(e))).addClass("linked-highlight"),t()("#inspector .search .results tr").filter(((n,i)=>t()(i).data("ivid")==e)).addClass("linked-highlight")}viewerMouseLeave(e){t()(".calculations .item").removeClass("linked-highlight"),t()("#inspector .search .results tr").removeClass("linked-highlight")}describeChange(e,t){if(t.value()>0==e.value()>0&&Math.abs(e.value())+Math.abs(t.value())>0){const n=100*(t.value()-e.value())/e.value();let i=0;return i=n>=0?V.t("factDetails.changePercentageIncrease",{increase:jt(n,1)}):V.t("factDetails.changePercentageDecrease",{decrease:jt(-1*n,1)}),i}return V.t("factDetails.changeFromIn",{from:e.readableValue()})}factLinkHTML(e,n){const i=t()("<span></span>").text(e);return n.length>0&&i.addClass("fact-link").click((()=>this.selectItem(n[0].vuid))).mouseenter((()=>n.forEach((e=>this._viewer.linkedHighlightFact(e))))).mouseleave((()=>n.forEach((e=>this._viewer.clearLinkedHighlightFact(e))))),i}getPeriodIncrease(e){let n="";if(e.isNumeric()){const r=e.report.getAlignedFacts(e,{p:null});var i;if(e.periodTo())for(const t of r)t.periodTo()&&t.periodTo()<e.periodTo()&&(!i||t.periodTo()>i.periodTo())&&e.isEquivalentDuration(t)&&(i=t);if(i){const r=e.report.getAlignedFacts(i);n=t()("<span></span>").text(this.describeChange(i,e)).append(this.factLinkHTML(i.periodString(),r))}else n=t()("<i>").text(V.t("factDetails.noPriorFactInThisReport"))}else n=t()("<i>").text("n/a").attr("title","non-numeric fact");t()(".fact-properties tr.change td").html(n)}_updateValue(e,n,i){const r=e.readableValue(),o=t()("tr.value",i);let a=r;if(n)o.removeClass("truncated");else{const t=Nt(r,120);t.length>1?(o.addClass("truncated"),o.find(".show-all").off("click").on("click",(()=>this._updateValue(e,!0,i)))):o.removeClass("truncated"),a=t[0]}rr.canRender(e)?o.addClass("text-block").find(".expand-text-block").off().click((()=>this.showTextBlock(e))):o.removeClass("text-block");const s=o.find("td .value").empty().text(a);e instanceof Gt&&(e.isNil()||e.isInvalidIXValue())&&s.wrapInner("<i></i>")}showTextBlock(e){const t=new rr(e);t.displayTextBlock(),t.show()}_updateEntityIdentifier(e,n){t()("tr.entity-identifier td",n).empty().append(Ut.readableNameHTML(e.identifier()))}_footnoteFactsHTML(e){const n=t()("<div></div>");return e.linkedFacts.forEach((e=>{n.append(this.factListRow(e))})),n}_selectionSummaryAccordian(){const e=this._currentItem,i=new tr({onSelect:e=>this.switchItem(e),alwaysOpen:!0,dissolveSingle:!0}),r=new nr(this._currentItemList);for(const o of this._currentItemList){let a;const s=r.minimallyUniqueLabel(o);if(o instanceof Gt){a=t()(n(795)),t()(".std-label",a).text(o.getLabelOrName("std",!0)),t()(".documentation",a).text(o.getLabel("doc")||""),t()("tr.concept td",a).find(".text").text(o.conceptName()).attr("title",o.conceptName()).end().find(".clipboard-copy").data("cb-text",o.conceptName()).end(),t()("tr.period td",a).text(o.periodString()),o.isNumeric()&&t()("tr.period td",a).append(t()("<span></span>").addClass("analyse").text("").click((()=>this.analyseDimension(o,["p"])))),this._updateEntityIdentifier(o,a),this._updateValue(o,!1,a);const e=t()("tr.accuracy td",a).empty().append(o.readableAccuracy());o.isNumeric()&&!o.isNil()||e.wrapInner("<i></i>");const i=t()("tr.scale td",a).empty().append(o.readableScale());o.isNumeric()&&!o.isNil()||i.wrapInner("<i></i>"),t()("#dimensions",a).empty();const r=o.aspects().filter((e=>e.isTaxonomyDefined()));0===r.length&&t()("#dimensions-label",a).hide();for(const e of r){const n=t()('<div class="dimension"></div>').text(e.label()||e.name()).appendTo(t()("#dimensions",a));o.isNumeric()&&n.append(t()("<span></span>").addClass("analyse").text("").on("click",(()=>this.analyseDimension(o,[e.name()]))));const i=t()('<div class="dimension-value"></div>').text(e.valueLabel()).appendTo(n);e.isNil()&&i.wrapInner("<i></i>")}}else o instanceof qt&&(a=t()(n(775)),this._updateValue(o,!1,a));i.addCard(s,a,o.vuid==e.vuid,o.vuid)}return i}analyseDimension(e,t){(new Xi).analyseDimension(e,t)}update(){const e=this._currentItem;if(e){if(t()("#inspector").removeClass("no-fact-selected").removeClass("hidden-fact").removeClass("html-hidden-fact"),t()("#inspector .fact-inspector").empty().append(this._selectionSummaryAccordian().contents()),e instanceof Gt){t()("#inspector").removeClass("footnote-mode"),this.updateCalculation(e),this.updateOutline(e),this.updateFootnotes(e),this.updateAnchoring(e),t()("div.references").empty().append(this._referencesHTML(e)),t()("#inspector .search-results .fact-list-item").removeClass("selected"),t()("#inspector .search-results .fact-list-item").filter(((n,i)=>t()(i).data("ivid")==e.vuid)).addClass("selected");const i=e.duplicates();let r=0;const o=i.length;for(var n=0;n<o;n++)e.vuid==i[n].vuid&&(r=n);t()(".duplicates .text").text(V.t("factDetails.duplicatesCount",{current:r+1,total:o})),t()(".duplicates .prev").off().click((()=>this.selectItem(i[(r+o-1)%o].vuid))),t()(".duplicates .next").off().click((()=>this.selectItem(i[(r+1)%o].vuid))),this.getPeriodIncrease(e),e.isHidden()?t()("#inspector").addClass("hidden-fact"):e.isHTMLHidden()&&t()("#inspector").addClass("html-hidden-fact")}else e instanceof qt&&(t()("#inspector").addClass("footnote-mode"),t()("#inspector .footnote-details .footnote-facts").empty().append(this._footnoteFactsHTML(e)));t()(".fact-details").localize()}else t()("#inspector").removeClass("footnote-mode"),t()("#inspector").addClass("no-fact-selected");this.updateURLFragment()}selectItem(e,t,n){if(void 0===t)this._currentItemList=[this._reportSet.getItemById(e)];else{this._currentItemList=[];for(const e of t)this._currentItemList.push(this._reportSet.getItemById(e))}this.switchItem(e,n)}switchItem(e,t){null!==e?(this._currentItem=this._reportSet.getItemById(e),t||this._viewer.showItemById(e),this._viewer.highlightItem(e)):(this._currentItem=null,this._viewer.clearHighlighting()),this.update()}preferredLanguages(){const e=new URLSearchParams(window.location.search);if(e.has("lang"))return[e.get("lang")];const t=window.navigator.languages||[window.navigator.language||window.navigator.userLanguage];return 0!=t.length&&t[0]?t:["en"]}selectDefaultLanguage(){const e=this._reportSet.availableLanguages();for(const t of this.preferredLanguages())for(const n of e)if(n.toLowerCase()==t.toLowerCase())return n;return this._reportSet.availableLanguages()[0]}setLanguage(e){this._viewerOptions.language=e}showValidationReport(){const e=new ir;e.displayErrors(this._reportSet.validation()),e.show()}setupValidationReportIcon(){this._reportSet.hasValidationErrors()&&t()("#ixv .validation-warning").show().on("click",(()=>this.showValidationReport()))}showValidationWarning(){if(this._reportSet.hasValidationErrors()){const e=t()("<div></div>").append("<p>This report contains <b>XBRL validation errors</b>. These errors may prevent this document from opening correctly in other XBRL software.</p>");new Wi("Validation errors",e,"View Details","Dismiss").show((()=>this.showValidationReport()))}}}class gr{constructor(e){this._features=new Set,this._plugins=[],this.inspector=new pr(this),this.viewer=null,e=e||{},this.options={continuationElementLimit:1e4,showValidationWarningOnStart:!1,...e}}registerPlugin(e){this._plugins.push(e)}callPluginMethod(e,...t){for(const n of this._plugins)"function"==typeof n[e]&&n[e](...t)}pluginPromise(e,...t){return new Promise(((n,i)=>{(async()=>{for(const n of this._plugins)"function"==typeof n[e]&&await n[e](...t)})().then((()=>{n()}))}))}setFeatures(e,t){const n={};e.forEach((e=>{n[e]=!0})),new URLSearchParams(t).forEach(((e,t)=>{!1!==n[t]&&(n[t]="false"!==e)})),this._features.size>0&&(this._features=new Set);for(const[e,t]of Object.entries(n))t&&this._features.add(e)}isFeatureEnabled(e){return this._features.has(e)}isReviewModeEnabled(){return this.isFeatureEnabled("review")}isViewerEnabled(){return"false"===(new URLSearchParams(window.location.search).get("disable-viewer")??"false")}_loadInspectorHTML(){t()(n(845)).prependTo("body");const e=n(610).toString();t()('<style id="ixv-style"></style>').prop("type","text/css").text(e).appendTo("head"),t()('<link id="ixv-favicon" type="image/x-icon" rel="shortcut icon" />').attr("href",n(688)).appendTo("head");try{t()(".inspector-foot .version").text("1.4.7")}catch(e){}}_reparentDocument(){const e=t()("#ixv #iframe-container"),n=t()('<iframe title="iXBRL document view"/>').data("report-index",0).appendTo(e)[0],i=n.contentDocument||n.contentWindow.document;i.open(),i.write("<!DOCTYPE html><html><head><title></title></head><body></body></html>"),i.close();let r=t()("title").text();r=""!=r?"Inline Viewer - "+r:"Inline Viewer",void 0===t()("html").attr("lang")&&t()("html").attr("lang","en-US"),t()("head").children().not("script").not("style#ixv-style").not("link#ixv-favicon").appendTo(t()(n).contents().find("head")),t()("<title>").text(r).appendTo(t()("head")),t()("body script").appendTo(t()("body"));const o=t()(n).contents().find("body");t()("body").children().not("script").not("#ixv").not(e).appendTo(o);for(const e of[...t()("body").prop("attributes")])o.attr(e.name,e.value),t()("body").removeAttr(e.name);return t()("body").removeAttr("style"),n}_getTaxonomyData(){for(let e=document.body.children.length-1;e>=0;e--){const t=document.body.children[e];if("SCRIPT"==t.tagName.toUpperCase()&&"application/x.ixbrl-viewer+json"==t.getAttribute("type"))return t.innerHTML}return null}_checkDocumentSetBrowserSupport(){"file:"==document.location.protocol&&alert("Displaying iXBRL document sets from local files is not supported. Please view the viewer files using a web server.")}load(){const e=this,n=this.inspector;setTimeout((function(){const i=t()("body").hasClass("ixv-stub-viewer");if(!e.isViewerEnabled()&&!i)return;e._loadInspectorHTML();let o=t()();const a=e._getTaxonomyData(),s=a&&JSON.parse(a);e.setFeatures(s&&s.features||[],window.location.search);const l=new en(s);if(!e.isViewerEnabled())return void window.location.replace(l.reportFiles()[0].file);if(null===s)return t()("#ixv .loader .text").text("Error: Could not find viewer data"),void t()("#ixv .loader").removeClass("loading");i||(o=t()(e._reparentDocument()));const c=l.reportFiles();let u=!1;for(let e=i?0:1;e<c.length;e++){const n=t()("<iframe />").attr("src",c[e].file).data("report-index",c[e].index).appendTo("#ixv #iframe-container");o=o.add(n),u=!0}u&&e._checkDocumentSetBrowserSupport();const d=i?"Loading iXBRL Report":"Loading iXBRL Viewer";e.setProgress(d).then((()=>{let i=setInterval((function(){let a=!0;if(o.each((function(e){const n=this,i=n.contentDocument||n.contentWindow.document;("complete"!=i.readyState&&"interactive"!=i.readyState||0==t()(n).contents().find("body").children().length)&&(a=!1)})),a){clearInterval(i);const a=e.viewer=new Hi(e,o,l);a.initialize().then((()=>n.initialize(l,a))).then((()=>{r()("#viewer-pane").resizable({edges:{left:!1,right:".resize",bottom:!1,top:!1},restrictEdges:{outer:"parent",endOnly:!0},restrictSize:{min:{width:100}}}).on("resizestart",(()=>t()("#ixv").css("pointer-events","none"))).on("resizemove",(e=>{const n=e.target,i=100*e.rect.width/t()(n).parent().width();n.style.width=i+"%",t()("#inspector").css("width",100-i+"%")})).on("resizeend",(e=>t()("#ixv").css("pointer-events","auto"))),t()("#ixv .loader").remove(),n.handleFactDeepLink(),e.options.showValidationWarningOnStart&&n.showValidationWarning(),a.postLoadAsync(),n.postLoadAsync()})).catch((e=>{if(!(e instanceof Yi))throw e;t()("#ixv .loader").remove(),t()("#inspector").addClass("failed-to-load")}))}}),250)}))}),0)}setProgress(e){return new Promise(((n,i)=>{window.requestAnimationFrame((function(){console.log(`%c [Progress] ${e} `,"background: #77d1c8; color: black;"),t()("#ixv .loader .text").text(e),window.requestAnimationFrame((()=>n()))}))}))}}t()((()=>{new gr({showValidationWarningOnStart:!0}).load()}))})()})();