From 06d7eb5287d2db89749642c6d555a6a063853548 Mon Sep 17 00:00:00 2001 From: gabek Date: Wed, 7 Sep 2022 07:02:41 +0000 Subject: [PATCH] Bundle embedded web app --- static/web/404.html | 4 +-- static/web/404/index.html | 4 +-- .../321JlO7-NtsOP2V9EG3SH/_buildManifest.js | 1 - .../J1O8NsAKoZCvrkUzUK6Qv/_buildManifest.js | 1 + .../_ssgManifest.js | 0 .../static/chunks/1017-c26780a26480b2de.js | 1 - .../static/chunks/1082-b00b8f63f0314247.js | 1 - .../static/chunks/1142-e1c9b49c7b789e49.js | 1 - .../static/chunks/117-7b92c98ea97188a9.js | 1 - .../static/chunks/1700-11e394bac47bf35e.js | 1 - .../static/chunks/1829-271cba4b38fde9a4.js | 1 - .../static/chunks/2001-614a21ed2abaed33.js | 1 - .../static/chunks/2139-c72b3a851c3b6fc9.js | 1 - .../static/chunks/2429-cd1a27121f8cb4b6.js | 1 - .../chunks/29107295-4a69275373f23f88.js | 1 - .../static/chunks/355-368bb4a8961affdd.js | 1 - .../static/chunks/384-9cef8f24921b00dc.js | 1 - .../chunks/3fff1979-612c6162f1b345ff.js | 1 - .../static/chunks/4763-b88542f3b2d350b7.js | 1 - .../static/chunks/5046-154c3c1e09df4db0.js | 1 - .../static/chunks/5315-8b4116e0e1118ee9.js | 1 - .../static/chunks/5774-bbd349dd474c8ad5.js | 1 - .../static/chunks/5875-e7ec71226df73c20.js | 1 - .../static/chunks/5938-b8bf626b6df6d168.js | 1 - .../static/chunks/7464-3fa67b1eb9ec2f02.js | 1 - .../static/chunks/7610.95543cd3023fceae.js | 1 - .../static/chunks/7910-7248e2d1496cf795.js | 1 - .../static/chunks/8091-5880357d1811013a.js | 1 - .../static/chunks/885-063e6509a33de7b6.js | 1 - .../static/chunks/9001-dfd80bc3c21b045b.js | 1 - .../chunks/d2094a0f-f60fcb088b6bb78d.js | 1 - .../chunks/d3048c20-0576676e1017fabd.js | 1 - .../chunks/d6e1aeb5-1e3969b413cccadf.js | 1 - .../chunks/framework-79bce4a3a540b080.js | 1 - .../chunks/framework-e4a67534aaf451e8.js | 1 + .../static/chunks/main-41f8925faff1d808.js | 1 + .../static/chunks/main-43d3d12d262e745e.js | 1 - .../chunks/pages/_app-62bf33e4e926df18.js | 1 - .../chunks/pages/_app-dc14f8483464b560.js | 1 + .../chunks/pages/_error-942918685354aae9.js | 1 + .../chunks/pages/_error-f2496e8b9fdedb89.js | 1 - .../chunks/pages/admin-f5d4ed76b5bf9c78.js | 1 - .../admin/access-tokens-ef4cfda69ac8b2ee.js | 1 - .../pages/admin/actions-7c5a6b0030e5ec6a.js | 1 - .../admin/chat/messages-af084d68aaf69be4.js | 1 - .../admin/chat/users-6480f8b945ff5437.js | 1 - .../admin/config-chat-d027691622271c60.js | 1 - .../config-federation-a75cf82c23e440d0.js | 1 - .../admin/config-notify-48561d4d85f054db.js | 1 - .../config-public-details-4b1168c5914e0f72.js | 1 - .../config-server-details-614743dc0feb10ba.js | 1 - .../config-social-items-9d7af265ea826f51.js | 1 - .../admin/config-storage-7c75769293cd1cd2.js | 1 - .../admin/config-video-524ee5b72d31e876.js | 1 - .../federation/actions-d475626c90492b9e.js | 1 - .../federation/followers-84b5976a824dd548.js | 1 - .../admin/hardware-info-fb9932e584754b3b.js | 1 - .../pages/admin/help-286d71e5c1d8d003.js | 1 - .../pages/admin/logs-55d44b7f56d109e1.js | 1 - .../admin/stream-health-5f39d0e65f78053a.js | 1 - .../pages/admin/upgrade-27c19ef345f1a067.js | 1 - .../admin/viewer-info-6c62c18290cae1c3.js | 1 - .../pages/admin/webhooks-9d91ad0a0ec2bb50.js | 1 - .../embed/chat/readonly-6a72418814940e75.js | 1 - .../embed/chat/readwrite-eba1c9e46b587c63.js | 1 - .../pages/embed/video-2657bb17473d85fb.js | 1 - .../chunks/pages/index-0c5306643a4f8a94.js | 1 - .../static/chunks/webpack-56e0d48c2f60a2f6.js | 1 - .../static/chunks/webpack-7d0ef319438b7284.js | 1 + .../web/_next/static/css/06d28146501a432f.css | 1 - .../web/_next/static/css/1f5ee95fffd43a71.css | 1 - .../web/_next/static/css/86aeea9c8cee5bc8.css | 1 - .../web/_next/static/css/a46827b267152de8.css | 1 - .../web/_next/static/css/e70d97a4c102bec4.css | 1 - .../web/_next/static/css/eb3126849d706f1b.css | 34 ------------------ .../_next/static/media/airplay.5f1a7ef4.png | Bin 160 -> 0 bytes .../static/media/fediverse-black.0b51c805.png | Bin 4262 -> 0 bytes .../_next/static/media/indieauth.38c52a3d.png | Bin 10089 -> 0 bytes .../open-sans-all-300-normal.cebcd6d4.woff | Bin 70572 -> 0 bytes .../open-sans-all-400-normal.52ada23a.woff | Bin 70856 -> 0 bytes .../open-sans-all-600-normal.19cec596.woff | Bin 70716 -> 0 bytes .../open-sans-all-800-normal.2298c235.woff | Bin 69472 -> 0 bytes ...en-sans-cyrillic-300-normal.706a6086.woff2 | Bin 10032 -> 0 bytes ...en-sans-cyrillic-400-normal.b24677da.woff2 | Bin 10088 -> 0 bytes ...en-sans-cyrillic-600-normal.23382ebb.woff2 | Bin 10052 -> 0 bytes ...en-sans-cyrillic-800-normal.afd9ec9f.woff2 | Bin 9852 -> 0 bytes ...ans-cyrillic-ext-300-normal.385313bf.woff2 | Bin 17412 -> 0 bytes ...ans-cyrillic-ext-400-normal.813d185d.woff2 | Bin 17472 -> 0 bytes ...ans-cyrillic-ext-600-normal.f60b0a4a.woff2 | Bin 17520 -> 0 bytes ...ans-cyrillic-ext-800-normal.787af869.woff2 | Bin 16772 -> 0 bytes .../open-sans-greek-300-normal.e86f986f.woff2 | Bin 8936 -> 0 bytes .../open-sans-greek-400-normal.ad3b150d.woff2 | Bin 8876 -> 0 bytes .../open-sans-greek-600-normal.507f7d98.woff2 | Bin 8968 -> 0 bytes .../open-sans-greek-800-normal.9fb05e45.woff2 | Bin 8884 -> 0 bytes ...n-sans-greek-ext-300-normal.5d5239ec.woff2 | Bin 3728 -> 0 bytes ...n-sans-greek-ext-400-normal.5fb1acd1.woff2 | Bin 3720 -> 0 bytes ...n-sans-greek-ext-600-normal.60859920.woff2 | Bin 3708 -> 0 bytes ...n-sans-greek-ext-800-normal.9d84a3e8.woff2 | Bin 3772 -> 0 bytes ...open-sans-hebrew-300-normal.bd2645c2.woff2 | Bin 7508 -> 0 bytes ...open-sans-hebrew-400-normal.94d66927.woff2 | Bin 7552 -> 0 bytes ...open-sans-hebrew-600-normal.a7114a78.woff2 | Bin 7588 -> 0 bytes ...open-sans-hebrew-800-normal.0fe5cfae.woff2 | Bin 7400 -> 0 bytes .../open-sans-latin-300-normal.609cac2c.woff2 | Bin 16812 -> 0 bytes .../open-sans-latin-400-normal.abd3eb12.woff2 | Bin 16720 -> 0 bytes .../open-sans-latin-600-normal.0270e39b.woff2 | Bin 16796 -> 0 bytes .../open-sans-latin-800-normal.2f4dfbc0.woff2 | Bin 16724 -> 0 bytes ...n-sans-latin-ext-300-normal.97acd10a.woff2 | Bin 12936 -> 0 bytes ...n-sans-latin-ext-400-normal.47afa2bd.woff2 | Bin 12956 -> 0 bytes ...n-sans-latin-ext-600-normal.ee5243bd.woff2 | Bin 12976 -> 0 bytes ...n-sans-latin-ext-800-normal.84b134f5.woff2 | Bin 12952 -> 0 bytes ...-sans-vietnamese-300-normal.6383b409.woff2 | Bin 7128 -> 0 bytes ...-sans-vietnamese-400-normal.beeddf8e.woff2 | Bin 7136 -> 0 bytes ...-sans-vietnamese-600-normal.c0d3712a.woff2 | Bin 7188 -> 0 bytes ...-sans-vietnamese-800-normal.768309cf.woff2 | Bin 7132 -> 0 bytes .../poppins-all-400-normal.268c923b.woff | Bin 66572 -> 0 bytes .../poppins-all-600-normal.0e22e091.woff | Bin 66232 -> 0 bytes ...ppins-devanagari-400-normal.87c72f23.woff2 | Bin 39564 -> 0 bytes ...ppins-devanagari-600-normal.3828f203.woff2 | Bin 39324 -> 0 bytes .../poppins-latin-400-normal.916d3686.woff2 | Bin 7884 -> 0 bytes .../poppins-latin-600-normal.d8692086.woff2 | Bin 8000 -> 0 bytes ...oppins-latin-ext-400-normal.591327bf.woff2 | Bin 5544 -> 0 bytes ...oppins-latin-ext-600-normal.10939fee.woff2 | Bin 5512 -> 0 bytes static/web/admin/access-tokens/index.html | 1 - static/web/admin/actions/index.html | 1 - static/web/admin/chat/messages/index.html | 1 - static/web/admin/chat/users/index.html | 1 - static/web/admin/config-chat/index.html | 1 - static/web/admin/config-federation/index.html | 1 - static/web/admin/config-notify/index.html | 1 - .../admin/config-public-details/index.html | 1 - .../admin/config-server-details/index.html | 1 - .../web/admin/config-social-items/index.html | 1 - static/web/admin/config-storage/index.html | 1 - static/web/admin/config-video/index.html | 1 - .../web/admin/federation/actions/index.html | 1 - .../web/admin/federation/followers/index.html | 1 - static/web/admin/hardware-info/index.html | 1 - static/web/admin/help/index.html | 1 - static/web/admin/index.html | 1 - static/web/admin/logs/index.html | 1 - static/web/admin/stream-health/index.html | 1 - static/web/admin/upgrade/index.html | 1 - static/web/admin/viewer-info/index.html | 1 - static/web/admin/webhooks/index.html | 1 - static/web/embed/chat/readonly/index.html | 1 - static/web/embed/chat/readwrite/index.html | 1 - static/web/embed/video/index.html | 1 - static/web/index.html | 1 - 148 files changed, 10 insertions(+), 129 deletions(-) delete mode 100644 static/web/_next/static/321JlO7-NtsOP2V9EG3SH/_buildManifest.js create mode 100644 static/web/_next/static/J1O8NsAKoZCvrkUzUK6Qv/_buildManifest.js rename static/web/_next/static/{321JlO7-NtsOP2V9EG3SH => J1O8NsAKoZCvrkUzUK6Qv}/_ssgManifest.js (100%) delete mode 100644 static/web/_next/static/chunks/1017-c26780a26480b2de.js delete mode 100644 static/web/_next/static/chunks/1082-b00b8f63f0314247.js delete mode 100644 static/web/_next/static/chunks/1142-e1c9b49c7b789e49.js delete mode 100644 static/web/_next/static/chunks/117-7b92c98ea97188a9.js delete mode 100644 static/web/_next/static/chunks/1700-11e394bac47bf35e.js delete mode 100644 static/web/_next/static/chunks/1829-271cba4b38fde9a4.js delete mode 100644 static/web/_next/static/chunks/2001-614a21ed2abaed33.js delete mode 100644 static/web/_next/static/chunks/2139-c72b3a851c3b6fc9.js delete mode 100644 static/web/_next/static/chunks/2429-cd1a27121f8cb4b6.js delete mode 100644 static/web/_next/static/chunks/29107295-4a69275373f23f88.js delete mode 100644 static/web/_next/static/chunks/355-368bb4a8961affdd.js delete mode 100644 static/web/_next/static/chunks/384-9cef8f24921b00dc.js delete mode 100644 static/web/_next/static/chunks/3fff1979-612c6162f1b345ff.js delete mode 100644 static/web/_next/static/chunks/4763-b88542f3b2d350b7.js delete mode 100644 static/web/_next/static/chunks/5046-154c3c1e09df4db0.js delete mode 100644 static/web/_next/static/chunks/5315-8b4116e0e1118ee9.js delete mode 100644 static/web/_next/static/chunks/5774-bbd349dd474c8ad5.js delete mode 100644 static/web/_next/static/chunks/5875-e7ec71226df73c20.js delete mode 100644 static/web/_next/static/chunks/5938-b8bf626b6df6d168.js delete mode 100644 static/web/_next/static/chunks/7464-3fa67b1eb9ec2f02.js delete mode 100644 static/web/_next/static/chunks/7610.95543cd3023fceae.js delete mode 100644 static/web/_next/static/chunks/7910-7248e2d1496cf795.js delete mode 100644 static/web/_next/static/chunks/8091-5880357d1811013a.js delete mode 100644 static/web/_next/static/chunks/885-063e6509a33de7b6.js delete mode 100644 static/web/_next/static/chunks/9001-dfd80bc3c21b045b.js delete mode 100644 static/web/_next/static/chunks/d2094a0f-f60fcb088b6bb78d.js delete mode 100644 static/web/_next/static/chunks/d3048c20-0576676e1017fabd.js delete mode 100644 static/web/_next/static/chunks/d6e1aeb5-1e3969b413cccadf.js delete mode 100644 static/web/_next/static/chunks/framework-79bce4a3a540b080.js create mode 100644 static/web/_next/static/chunks/framework-e4a67534aaf451e8.js create mode 100644 static/web/_next/static/chunks/main-41f8925faff1d808.js delete mode 100644 static/web/_next/static/chunks/main-43d3d12d262e745e.js delete mode 100644 static/web/_next/static/chunks/pages/_app-62bf33e4e926df18.js create mode 100644 static/web/_next/static/chunks/pages/_app-dc14f8483464b560.js create mode 100644 static/web/_next/static/chunks/pages/_error-942918685354aae9.js delete mode 100644 static/web/_next/static/chunks/pages/_error-f2496e8b9fdedb89.js delete mode 100644 static/web/_next/static/chunks/pages/admin-f5d4ed76b5bf9c78.js delete mode 100644 static/web/_next/static/chunks/pages/admin/access-tokens-ef4cfda69ac8b2ee.js delete mode 100644 static/web/_next/static/chunks/pages/admin/actions-7c5a6b0030e5ec6a.js delete mode 100644 static/web/_next/static/chunks/pages/admin/chat/messages-af084d68aaf69be4.js delete mode 100644 static/web/_next/static/chunks/pages/admin/chat/users-6480f8b945ff5437.js delete mode 100644 static/web/_next/static/chunks/pages/admin/config-chat-d027691622271c60.js delete mode 100644 static/web/_next/static/chunks/pages/admin/config-federation-a75cf82c23e440d0.js delete mode 100644 static/web/_next/static/chunks/pages/admin/config-notify-48561d4d85f054db.js delete mode 100644 static/web/_next/static/chunks/pages/admin/config-public-details-4b1168c5914e0f72.js delete mode 100644 static/web/_next/static/chunks/pages/admin/config-server-details-614743dc0feb10ba.js delete mode 100644 static/web/_next/static/chunks/pages/admin/config-social-items-9d7af265ea826f51.js delete mode 100644 static/web/_next/static/chunks/pages/admin/config-storage-7c75769293cd1cd2.js delete mode 100644 static/web/_next/static/chunks/pages/admin/config-video-524ee5b72d31e876.js delete mode 100644 static/web/_next/static/chunks/pages/admin/federation/actions-d475626c90492b9e.js delete mode 100644 static/web/_next/static/chunks/pages/admin/federation/followers-84b5976a824dd548.js delete mode 100644 static/web/_next/static/chunks/pages/admin/hardware-info-fb9932e584754b3b.js delete mode 100644 static/web/_next/static/chunks/pages/admin/help-286d71e5c1d8d003.js delete mode 100644 static/web/_next/static/chunks/pages/admin/logs-55d44b7f56d109e1.js delete mode 100644 static/web/_next/static/chunks/pages/admin/stream-health-5f39d0e65f78053a.js delete mode 100644 static/web/_next/static/chunks/pages/admin/upgrade-27c19ef345f1a067.js delete mode 100644 static/web/_next/static/chunks/pages/admin/viewer-info-6c62c18290cae1c3.js delete mode 100644 static/web/_next/static/chunks/pages/admin/webhooks-9d91ad0a0ec2bb50.js delete mode 100644 static/web/_next/static/chunks/pages/embed/chat/readonly-6a72418814940e75.js delete mode 100644 static/web/_next/static/chunks/pages/embed/chat/readwrite-eba1c9e46b587c63.js delete mode 100644 static/web/_next/static/chunks/pages/embed/video-2657bb17473d85fb.js delete mode 100644 static/web/_next/static/chunks/pages/index-0c5306643a4f8a94.js delete mode 100644 static/web/_next/static/chunks/webpack-56e0d48c2f60a2f6.js create mode 100644 static/web/_next/static/chunks/webpack-7d0ef319438b7284.js delete mode 100644 static/web/_next/static/css/06d28146501a432f.css delete mode 100644 static/web/_next/static/css/1f5ee95fffd43a71.css delete mode 100644 static/web/_next/static/css/86aeea9c8cee5bc8.css delete mode 100644 static/web/_next/static/css/a46827b267152de8.css delete mode 100644 static/web/_next/static/css/e70d97a4c102bec4.css delete mode 100644 static/web/_next/static/css/eb3126849d706f1b.css delete mode 100644 static/web/_next/static/media/airplay.5f1a7ef4.png delete mode 100644 static/web/_next/static/media/fediverse-black.0b51c805.png delete mode 100644 static/web/_next/static/media/indieauth.38c52a3d.png delete mode 100644 static/web/_next/static/media/open-sans-all-300-normal.cebcd6d4.woff delete mode 100644 static/web/_next/static/media/open-sans-all-400-normal.52ada23a.woff delete mode 100644 static/web/_next/static/media/open-sans-all-600-normal.19cec596.woff delete mode 100644 static/web/_next/static/media/open-sans-all-800-normal.2298c235.woff delete mode 100644 static/web/_next/static/media/open-sans-cyrillic-300-normal.706a6086.woff2 delete mode 100644 static/web/_next/static/media/open-sans-cyrillic-400-normal.b24677da.woff2 delete mode 100644 static/web/_next/static/media/open-sans-cyrillic-600-normal.23382ebb.woff2 delete mode 100644 static/web/_next/static/media/open-sans-cyrillic-800-normal.afd9ec9f.woff2 delete mode 100644 static/web/_next/static/media/open-sans-cyrillic-ext-300-normal.385313bf.woff2 delete mode 100644 static/web/_next/static/media/open-sans-cyrillic-ext-400-normal.813d185d.woff2 delete mode 100644 static/web/_next/static/media/open-sans-cyrillic-ext-600-normal.f60b0a4a.woff2 delete mode 100644 static/web/_next/static/media/open-sans-cyrillic-ext-800-normal.787af869.woff2 delete mode 100644 static/web/_next/static/media/open-sans-greek-300-normal.e86f986f.woff2 delete mode 100644 static/web/_next/static/media/open-sans-greek-400-normal.ad3b150d.woff2 delete mode 100644 static/web/_next/static/media/open-sans-greek-600-normal.507f7d98.woff2 delete mode 100644 static/web/_next/static/media/open-sans-greek-800-normal.9fb05e45.woff2 delete mode 100644 static/web/_next/static/media/open-sans-greek-ext-300-normal.5d5239ec.woff2 delete mode 100644 static/web/_next/static/media/open-sans-greek-ext-400-normal.5fb1acd1.woff2 delete mode 100644 static/web/_next/static/media/open-sans-greek-ext-600-normal.60859920.woff2 delete mode 100644 static/web/_next/static/media/open-sans-greek-ext-800-normal.9d84a3e8.woff2 delete mode 100644 static/web/_next/static/media/open-sans-hebrew-300-normal.bd2645c2.woff2 delete mode 100644 static/web/_next/static/media/open-sans-hebrew-400-normal.94d66927.woff2 delete mode 100644 static/web/_next/static/media/open-sans-hebrew-600-normal.a7114a78.woff2 delete mode 100644 static/web/_next/static/media/open-sans-hebrew-800-normal.0fe5cfae.woff2 delete mode 100644 static/web/_next/static/media/open-sans-latin-300-normal.609cac2c.woff2 delete mode 100644 static/web/_next/static/media/open-sans-latin-400-normal.abd3eb12.woff2 delete mode 100644 static/web/_next/static/media/open-sans-latin-600-normal.0270e39b.woff2 delete mode 100644 static/web/_next/static/media/open-sans-latin-800-normal.2f4dfbc0.woff2 delete mode 100644 static/web/_next/static/media/open-sans-latin-ext-300-normal.97acd10a.woff2 delete mode 100644 static/web/_next/static/media/open-sans-latin-ext-400-normal.47afa2bd.woff2 delete mode 100644 static/web/_next/static/media/open-sans-latin-ext-600-normal.ee5243bd.woff2 delete mode 100644 static/web/_next/static/media/open-sans-latin-ext-800-normal.84b134f5.woff2 delete mode 100644 static/web/_next/static/media/open-sans-vietnamese-300-normal.6383b409.woff2 delete mode 100644 static/web/_next/static/media/open-sans-vietnamese-400-normal.beeddf8e.woff2 delete mode 100644 static/web/_next/static/media/open-sans-vietnamese-600-normal.c0d3712a.woff2 delete mode 100644 static/web/_next/static/media/open-sans-vietnamese-800-normal.768309cf.woff2 delete mode 100644 static/web/_next/static/media/poppins-all-400-normal.268c923b.woff delete mode 100644 static/web/_next/static/media/poppins-all-600-normal.0e22e091.woff delete mode 100644 static/web/_next/static/media/poppins-devanagari-400-normal.87c72f23.woff2 delete mode 100644 static/web/_next/static/media/poppins-devanagari-600-normal.3828f203.woff2 delete mode 100644 static/web/_next/static/media/poppins-latin-400-normal.916d3686.woff2 delete mode 100644 static/web/_next/static/media/poppins-latin-600-normal.d8692086.woff2 delete mode 100644 static/web/_next/static/media/poppins-latin-ext-400-normal.591327bf.woff2 delete mode 100644 static/web/_next/static/media/poppins-latin-ext-600-normal.10939fee.woff2 delete mode 100644 static/web/admin/access-tokens/index.html delete mode 100644 static/web/admin/actions/index.html delete mode 100644 static/web/admin/chat/messages/index.html delete mode 100644 static/web/admin/chat/users/index.html delete mode 100644 static/web/admin/config-chat/index.html delete mode 100644 static/web/admin/config-federation/index.html delete mode 100644 static/web/admin/config-notify/index.html delete mode 100644 static/web/admin/config-public-details/index.html delete mode 100644 static/web/admin/config-server-details/index.html delete mode 100644 static/web/admin/config-social-items/index.html delete mode 100644 static/web/admin/config-storage/index.html delete mode 100644 static/web/admin/config-video/index.html delete mode 100644 static/web/admin/federation/actions/index.html delete mode 100644 static/web/admin/federation/followers/index.html delete mode 100644 static/web/admin/hardware-info/index.html delete mode 100644 static/web/admin/help/index.html delete mode 100644 static/web/admin/index.html delete mode 100644 static/web/admin/logs/index.html delete mode 100644 static/web/admin/stream-health/index.html delete mode 100644 static/web/admin/upgrade/index.html delete mode 100644 static/web/admin/viewer-info/index.html delete mode 100644 static/web/admin/webhooks/index.html delete mode 100644 static/web/embed/chat/readonly/index.html delete mode 100644 static/web/embed/chat/readwrite/index.html delete mode 100644 static/web/embed/video/index.html delete mode 100644 static/web/index.html diff --git a/static/web/404.html b/static/web/404.html index cb3bd70ea..1a74bfd9c 100644 --- a/static/web/404.html +++ b/static/web/404.html @@ -1,4 +1,4 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file + }

404

This page could not be found.

\ No newline at end of file diff --git a/static/web/404/index.html b/static/web/404/index.html index cb3bd70ea..1a74bfd9c 100644 --- a/static/web/404/index.html +++ b/static/web/404/index.html @@ -1,4 +1,4 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file + }

404

This page could not be found.

\ No newline at end of file diff --git a/static/web/_next/static/321JlO7-NtsOP2V9EG3SH/_buildManifest.js b/static/web/_next/static/321JlO7-NtsOP2V9EG3SH/_buildManifest.js deleted file mode 100644 index 80e48a820..000000000 --- a/static/web/_next/static/321JlO7-NtsOP2V9EG3SH/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST=function(a,s,c,e,i,t,n,d,f,o,h,m,b,u,r,g,k,j,p,l,_,w){return{__rewrites:{beforeFiles:[],afterFiles:[{source:"/api/:path*"},{source:"/hls/:path*"},{source:"/img/:path*"},{source:"/logo"},{source:"/thumbnail.jpg"}],fallback:[]},"/":[o,h,m,a,e,b,u,r,g,"static/chunks/1700-11e394bac47bf35e.js",k,j,"static/css/86aeea9c8cee5bc8.css","static/chunks/pages/index-0c5306643a4f8a94.js"],"/_error":["static/chunks/pages/_error-f2496e8b9fdedb89.js"],"/admin":[a,s,c,e,i,t,p,"static/chunks/pages/admin-f5d4ed76b5bf9c78.js"],"/admin/access-tokens":[a,s,c,"static/chunks/pages/admin/access-tokens-ef4cfda69ac8b2ee.js"],"/admin/actions":[a,s,"static/chunks/pages/admin/actions-7c5a6b0030e5ec6a.js"],"/admin/chat/messages":[l,a,s,c,e,_,"static/chunks/pages/admin/chat/messages-af084d68aaf69be4.js"],"/admin/chat/users":[l,a,s,c,e,_,"static/chunks/pages/admin/chat/users-6480f8b945ff5437.js"],"/admin/config-chat":["static/chunks/pages/admin/config-chat-d027691622271c60.js"],"/admin/config-federation":["static/chunks/1829-271cba4b38fde9a4.js","static/chunks/pages/admin/config-federation-a75cf82c23e440d0.js"],"/admin/config-notify":["static/chunks/pages/admin/config-notify-48561d4d85f054db.js"],"/admin/config-public-details":[a,s,n,"static/css/1f5ee95fffd43a71.css","static/chunks/1142-e1c9b49c7b789e49.js",w,"static/chunks/pages/admin/config-public-details-4b1168c5914e0f72.js"],"/admin/config-server-details":["static/chunks/pages/admin/config-server-details-614743dc0feb10ba.js"],"/admin/config-social-items":[a,s,w,"static/chunks/pages/admin/config-social-items-9d7af265ea826f51.js"],"/admin/config-storage":["static/chunks/pages/admin/config-storage-7c75769293cd1cd2.js"],"/admin/config-video":[a,s,"static/chunks/5875-e7ec71226df73c20.js","static/chunks/pages/admin/config-video-524ee5b72d31e876.js"],"/admin/federation/actions":[a,s,c,"static/chunks/pages/admin/federation/actions-d475626c90492b9e.js"],"/admin/federation/followers":[a,s,c,"static/chunks/pages/admin/federation/followers-84b5976a824dd548.js"],"/admin/hardware-info":[d,c,i,t,f,n,"static/chunks/pages/admin/hardware-info-fb9932e584754b3b.js"],"/admin/help":[i,g,"static/chunks/5046-154c3c1e09df4db0.js","static/chunks/pages/admin/help-286d71e5c1d8d003.js"],"/admin/logs":[a,s,c,p,"static/chunks/pages/admin/logs-55d44b7f56d109e1.js"],"/admin/stream-health":[d,c,i,t,f,"static/chunks/pages/admin/stream-health-5f39d0e65f78053a.js"],"/admin/upgrade":[a,s,"static/chunks/9001-dfd80bc3c21b045b.js","static/chunks/pages/admin/upgrade-27c19ef345f1a067.js"],"/admin/viewer-info":[d,a,s,c,e,i,t,f,n,"static/chunks/pages/admin/viewer-info-6c62c18290cae1c3.js"],"/admin/webhooks":[a,s,"static/chunks/pages/admin/webhooks-9d91ad0a0ec2bb50.js"],"/embed/chat/readonly":[h,m,r,j,"static/css/06d28146501a432f.css","static/chunks/pages/embed/chat/readonly-6a72418814940e75.js"],"/embed/chat/readwrite":["static/chunks/pages/embed/chat/readwrite-eba1c9e46b587c63.js"],"/embed/video":[o,e,b,u,k,"static/css/a46827b267152de8.css","static/chunks/pages/embed/video-2657bb17473d85fb.js"],sortedPages:["/","/_app","/_error","/admin","/admin/access-tokens","/admin/actions","/admin/chat/messages","/admin/chat/users","/admin/config-chat","/admin/config-federation","/admin/config-notify","/admin/config-public-details","/admin/config-server-details","/admin/config-social-items","/admin/config-storage","/admin/config-video","/admin/federation/actions","/admin/federation/followers","/admin/hardware-info","/admin/help","/admin/logs","/admin/stream-health","/admin/upgrade","/admin/viewer-info","/admin/webhooks","/embed/chat/readonly","/embed/chat/readwrite","/embed/video"]}}("static/chunks/384-9cef8f24921b00dc.js","static/chunks/355-368bb4a8961affdd.js","static/chunks/8091-5880357d1811013a.js","static/chunks/5938-b8bf626b6df6d168.js","static/chunks/5315-8b4116e0e1118ee9.js","static/chunks/4763-b88542f3b2d350b7.js","static/chunks/7910-7248e2d1496cf795.js","static/chunks/3fff1979-612c6162f1b345ff.js","static/chunks/2139-c72b3a851c3b6fc9.js","static/chunks/d6e1aeb5-1e3969b413cccadf.js","static/chunks/d3048c20-0576676e1017fabd.js","static/chunks/d2094a0f-f60fcb088b6bb78d.js","static/css/e70d97a4c102bec4.css","static/chunks/2001-614a21ed2abaed33.js","static/chunks/117-7b92c98ea97188a9.js","static/chunks/1082-b00b8f63f0314247.js","static/chunks/885-063e6509a33de7b6.js","static/chunks/5774-bbd349dd474c8ad5.js","static/chunks/2429-cd1a27121f8cb4b6.js","static/chunks/29107295-4a69275373f23f88.js","static/chunks/7464-3fa67b1eb9ec2f02.js","static/chunks/1017-c26780a26480b2de.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/static/web/_next/static/J1O8NsAKoZCvrkUzUK6Qv/_buildManifest.js b/static/web/_next/static/J1O8NsAKoZCvrkUzUK6Qv/_buildManifest.js new file mode 100644 index 000000000..95c22d3af --- /dev/null +++ b/static/web/_next/static/J1O8NsAKoZCvrkUzUK6Qv/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[{source:"/api/:path*"},{source:"/hls/:path*"},{source:"/img/:path*"},{source:"/logo"},{source:"/thumbnail.jpg"}],fallback:[]},"/_error":["static/chunks/pages/_error-942918685354aae9.js"],sortedPages:["/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/static/web/_next/static/321JlO7-NtsOP2V9EG3SH/_ssgManifest.js b/static/web/_next/static/J1O8NsAKoZCvrkUzUK6Qv/_ssgManifest.js similarity index 100% rename from static/web/_next/static/321JlO7-NtsOP2V9EG3SH/_ssgManifest.js rename to static/web/_next/static/J1O8NsAKoZCvrkUzUK6Qv/_ssgManifest.js diff --git a/static/web/_next/static/chunks/1017-c26780a26480b2de.js b/static/web/_next/static/chunks/1017-c26780a26480b2de.js deleted file mode 100644 index 673adaf66..000000000 --- a/static/web/_next/static/chunks/1017-c26780a26480b2de.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1017],{91017:function(e,n,a){a.d(n,{Z:function(){return O}});var t=a(47568),s=a(14924),l=a(26042),i=a(69396),c=a(29815),o=a(34051),r=a.n(o),u=a(85893),d=a(67294),p=a(84485),f=a(71577),m=a(69677),h=a(10355),x=a(85402),v=a(48689),j=a(38939),N=a(58827),k=a(25964);function Z(e){var n=e.iconList,a=e.selectedOption,t=e.onSelected,s=""===a?null:a;return(0,u.jsxs)("div",{className:"social-dropdown-container",children:[(0,u.jsx)("p",{className:"description",children:"If you are looking for a platform name not on this list, please select Other and type in your own name. A logo will not be provided."}),(0,u.jsxs)("div",{className:"formfield-container",children:[(0,u.jsx)("div",{className:"label-side",children:(0,u.jsx)("span",{className:"formfield-label",children:"Social Platform"})}),(0,u.jsx)("div",{className:"input-side",children:(0,u.jsxs)(j.Z,{style:{width:240},className:"social-dropdown",placeholder:"Social platform...",defaultValue:s,value:s,onSelect:function(e){t&&t(e)},children:[n.map((function(e){var n=e.platform,a=e.icon,t=e.key,s="".concat(N.WB).concat(a.slice(1));return(0,u.jsxs)(j.Z.Option,{className:"social-option",value:t,children:[(0,u.jsx)("span",{className:"option-icon",children:(0,u.jsx)("img",{src:s,alt:"",className:"option-icon"})}),(0,u.jsx)("span",{className:"option-label",children:n})]},"platform-".concat(t))})),(0,u.jsx)(j.Z.Option,{className:"social-option",value:k.z_,children:"Other..."},"platform-".concat(k.z_))]})})]})]})}var S=a(35159),b=a(19411),y=a(13468),g=a(83192),w=a(78464),C=p.Z.Title;function O(){var e=(0,d.useState)([]),n=e[0],a=e[1],o=(0,d.useState)([]),p=o[0],j=o[1],O=(0,d.useState)(!1),z=O[0],_=O[1],E=(0,d.useState)(!1),I=E[0],T=E[1],H=(0,d.useState)(!1),L=H[0],P=H[1],A=(0,d.useState)(-1),B=A[0],U=A[1],D=(0,d.useState)(k.wC),V=D[0],W=D[1],F=(0,d.useState)(null),K=F[0],Q=F[1],R=(0,d.useContext)(S.aC)||{},Y=R.serverConfig,$=R.setFieldInConfigState,q=Y.instanceDetails,G=q.socialHandles,J=null,M=function(){var e=(0,t.Z)(r().mark((function e(){var n,t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,N.rQ)(N.$i,{auth:!1});case 3:n=e.sent,t=Object.keys(n).map((function(e){return(0,l.Z)({key:e},n[e])})),a(t),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.log(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),X=function(e){return n.find((function(n){return n.key===e}))||!1},ee=""!==V.platform&&!n.find((function(e){return e.key===V.platform}));(0,d.useEffect)((function(){M()}),[]),(0,d.useEffect)((function(){q.socialHandles&&j(G)}),[q]);var ne=function(){Q(null),J=null,clearTimeout(J)},ae=function(){_(!1),U(-1),T(!1),P(!1),W((0,l.Z)({},k.wC))},te=function(){ae()},se=function(e,n){W((0,i.Z)((0,l.Z)({},V),(0,s.Z)({},e,n)))},le=function(){var e=(0,t.Z)(r().mark((function e(n){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,k.Si)({apiPath:k.c9,data:{value:n},onSuccess:function(){$({fieldName:"socialHandles",value:n,path:"instanceDetails"}),P(!1),te(),Q((0,g.kg)(g.zv)),J=setTimeout(ne,k.sI)},onError:function(e){Q((0,g.kg)(g.Un,"There was an error: ".concat(e))),P(!1),J=setTimeout(ne,k.sI)}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),ie=[{title:"Social Link",dataIndex:"",key:"combo",render:function(e,n){var a=n.platform,t=n.url,s=X(a);if(!s)return(0,u.jsx)("div",{className:"social-handle-cell",children:(0,u.jsxs)("p",{className:"option-label",children:[(0,u.jsx)("strong",{children:a}),(0,u.jsx)("span",{className:"handle-url",title:t,children:t})]})});var l=s.icon,i=s.platform,c="".concat(N.WB).concat(l.slice(1));return(0,u.jsxs)("div",{className:"social-handle-cell",children:[(0,u.jsx)("span",{className:"option-icon",children:(0,u.jsx)("img",{src:c,alt:"",className:"option-icon"})}),(0,u.jsxs)("p",{className:"option-label",children:[(0,u.jsx)("strong",{children:i}),(0,u.jsx)("span",{className:"handle-url",title:t,children:t})]})]})}},{title:"",dataIndex:"",key:"edit",render:function(e,n,a){return(0,u.jsxs)("div",{className:"actions",children:[(0,u.jsx)(f.Z,{size:"small",onClick:function(){var e=p[a];U(a),W((0,l.Z)({},e)),_(!0),X(e.platform)||T(!0)},children:"Edit"}),(0,u.jsx)(f.Z,{className:"delete-button",icon:(0,u.jsx)(v.Z,{}),size:"small",onClick:function(){return function(e){var n=(0,c.Z)(p);n.splice(e,1),le(n)}(a)}})]})}}],ce={disabled:!(0,b.Z)(V.url)},oe=(0,u.jsxs)("div",{className:"other-field-container formfield-container",children:[(0,u.jsx)("div",{className:"label-side"}),(0,u.jsx)("div",{className:"input-side",children:(0,u.jsx)(m.Z,{placeholder:"Other platform name",defaultValue:V.platform,onChange:function(e){var n=e.target.value;se("platform",n)}})})]});return(0,u.jsxs)("div",{className:"social-links-edit-container",children:[(0,u.jsx)(C,{level:3,className:"section-title",children:"Your Social Handles"}),(0,u.jsx)("p",{className:"description",children:"Add all your social media handles and links to your other profiles here."}),(0,u.jsx)(w.Z,{status:K}),(0,u.jsx)(h.Z,{className:"social-handles-table",pagination:!1,size:"small",rowKey:function(e){return"".concat(e.platform,"-").concat(e.url)},columns:ie,dataSource:p}),(0,u.jsx)(x.Z,{title:"Edit Social Handle",visible:z,onOk:function(){P(!0);var e=p.length?(0,c.Z)(p):[];-1===B?e.push(V):e.splice(B,1,V),le(e)},onCancel:te,confirmLoading:L,okButtonProps:ce,children:(0,u.jsxs)("div",{className:"social-handle-modal-content",children:[(0,u.jsx)(Z,{iconList:n,selectedOption:ee?k.z_:V.platform,onSelected:function(e){e===k.z_?(T(!0),se("platform","")):(T(!1),se("platform",e))}}),I&&oe,(0,u.jsx)("br",{}),(0,u.jsx)(y.ZP,{fieldName:"social-url",label:"URL",placeholder:{mastodon:"https://mastodon.social/@username",twitter:"https://twitter.com/username"}[V.platform]||"Url to page",value:V.url,onChange:function(e){var n=e.value;se("url",n)},useTrim:!0,type:"url",pattern:b.a}),(0,u.jsx)(w.Z,{status:K})]})}),(0,u.jsx)("br",{}),(0,u.jsx)(f.Z,{type:"primary",onClick:function(){ae(),_(!0)},children:"Add a new social link"})]})}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/1082-b00b8f63f0314247.js b/static/web/_next/static/chunks/1082-b00b8f63f0314247.js deleted file mode 100644 index 5681b9052..000000000 --- a/static/web/_next/static/chunks/1082-b00b8f63f0314247.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1082],{85368:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"}},16976:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"}},67303:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"}},77384:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attrs:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"close-circle",theme:"outlined"}},79203:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"}},78515:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"}},34950:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"}},15369:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"}},20702:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"}},25828:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"}},37431:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(95183))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},67996:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(48138))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},42547:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(86266))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},74337:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(92018))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},40753:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(83482))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},42461:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(77998))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},67039:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(3855))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},94354:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(35438))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},93201:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(34106))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},628:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(4851))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},92074:function(e,t,n){"use strict";var r=n(64836),o=n(75263);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(42122)),i=r(n(27424)),l=r(n(38416)),u=r(n(70215)),c=o(n(67294)),s=r(n(94184)),f=r(n(98399)),d=r(n(95160)),p=n(46768),v=n(72479),m=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];(0,p.setTwoToneColor)("#1890ff");var h=c.forwardRef((function(e,t){var n,r=e.className,o=e.icon,p=e.spin,h=e.rotate,y=e.tabIndex,g=e.onClick,b=e.twoToneColor,x=(0,u.default)(e,m),C=c.useContext(f.default).prefixCls,_=void 0===C?"anticon":C,w=(0,s.default)(_,(n={},(0,l.default)(n,"".concat(_,"-").concat(o.name),!!o.name),(0,l.default)(n,"".concat(_,"-spin"),!!p||"loading"===o.name),n),r),P=y;void 0===P&&g&&(P=-1);var M=h?{msTransform:"rotate(".concat(h,"deg)"),transform:"rotate(".concat(h,"deg)")}:void 0,O=(0,v.normalizeTwoToneColors)(b),j=(0,i.default)(O,2),k=j[0],E=j[1];return c.createElement("span",(0,a.default)((0,a.default)({role:"img","aria-label":o.name},x),{},{ref:t,tabIndex:P,onClick:g,className:w}),c.createElement(d.default,{icon:o,primaryColor:k,secondaryColor:E,style:M}))}));h.displayName="AntdIcon",h.getTwoToneColor=p.getTwoToneColor,h.setTwoToneColor=p.setTwoToneColor;var y=h;t.default=y},98399:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,n(67294).createContext)({});t.default=r},95160:function(e,t,n){"use strict";var r=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(70215)),a=r(n(42122)),i=n(72479),l=["icon","className","onClick","style","primaryColor","secondaryColor"],u={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var c=function(e){var t=e.icon,n=e.className,r=e.onClick,c=e.style,s=e.primaryColor,f=e.secondaryColor,d=(0,o.default)(e,l),p=u;if(s&&(p={primaryColor:s,secondaryColor:f||(0,i.getSecondaryColor)(s)}),(0,i.useInsertStyles)(),(0,i.warning)((0,i.isIconDefinition)(t),"icon should be icon definiton, but got ".concat(t)),!(0,i.isIconDefinition)(t))return null;var v=t;return v&&"function"===typeof v.icon&&(v=(0,a.default)((0,a.default)({},v),{},{icon:v.icon(p.primaryColor,p.secondaryColor)})),(0,i.generate)(v.icon,"svg-".concat(v.name),(0,a.default)({className:n,onClick:r,style:c,"data-icon":v.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d))};c.displayName="IconReact",c.getTwoToneColors=function(){return(0,a.default)({},u)},c.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;u.primaryColor=t,u.secondaryColor=n||(0,i.getSecondaryColor)(t),u.calculated=!!n};var s=c;t.default=s},46768:function(e,t,n){"use strict";var r=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.setTwoToneColor=function(e){var t=(0,i.normalizeTwoToneColors)(e),n=(0,o.default)(t,2),r=n[0],l=n[1];return a.default.setTwoToneColors({primaryColor:r,secondaryColor:l})},t.getTwoToneColor=function(){var e=a.default.getTwoToneColors();if(!e.calculated)return e.primaryColor;return[e.primaryColor,e.secondaryColor]};var o=r(n(27424)),a=r(n(95160)),i=n(72479)},95183:function(e,t,n){"use strict";var r=n(75263),o=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(42122)),i=r(n(67294)),l=o(n(85368)),u=o(n(92074)),c=function(e,t){return i.createElement(u.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:l.default}))};c.displayName="CheckCircleFilled";var s=i.forwardRef(c);t.default=s},48138:function(e,t,n){"use strict";var r=n(75263),o=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(42122)),i=r(n(67294)),l=o(n(16976)),u=o(n(92074)),c=function(e,t){return i.createElement(u.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:l.default}))};c.displayName="CheckCircleOutlined";var s=i.forwardRef(c);t.default=s},86266:function(e,t,n){"use strict";var r=n(75263),o=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(42122)),i=r(n(67294)),l=o(n(67303)),u=o(n(92074)),c=function(e,t){return i.createElement(u.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:l.default}))};c.displayName="CloseCircleFilled";var s=i.forwardRef(c);t.default=s},92018:function(e,t,n){"use strict";var r=n(75263),o=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(42122)),i=r(n(67294)),l=o(n(77384)),u=o(n(92074)),c=function(e,t){return i.createElement(u.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:l.default}))};c.displayName="CloseCircleOutlined";var s=i.forwardRef(c);t.default=s},83482:function(e,t,n){"use strict";var r=n(75263),o=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(42122)),i=r(n(67294)),l=o(n(79203)),u=o(n(92074)),c=function(e,t){return i.createElement(u.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:l.default}))};c.displayName="CloseOutlined";var s=i.forwardRef(c);t.default=s},77998:function(e,t,n){"use strict";var r=n(75263),o=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(42122)),i=r(n(67294)),l=o(n(78515)),u=o(n(92074)),c=function(e,t){return i.createElement(u.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:l.default}))};c.displayName="ExclamationCircleFilled";var s=i.forwardRef(c);t.default=s},3855:function(e,t,n){"use strict";var r=n(75263),o=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(42122)),i=r(n(67294)),l=o(n(34950)),u=o(n(92074)),c=function(e,t){return i.createElement(u.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:l.default}))};c.displayName="ExclamationCircleOutlined";var s=i.forwardRef(c);t.default=s},35438:function(e,t,n){"use strict";var r=n(75263),o=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(42122)),i=r(n(67294)),l=o(n(15369)),u=o(n(92074)),c=function(e,t){return i.createElement(u.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:l.default}))};c.displayName="InfoCircleFilled";var s=i.forwardRef(c);t.default=s},34106:function(e,t,n){"use strict";var r=n(75263),o=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(42122)),i=r(n(67294)),l=o(n(20702)),u=o(n(92074)),c=function(e,t){return i.createElement(u.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:l.default}))};c.displayName="InfoCircleOutlined";var s=i.forwardRef(c);t.default=s},4851:function(e,t,n){"use strict";var r=n(75263),o=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(42122)),i=r(n(67294)),l=o(n(25828)),u=o(n(92074)),c=function(e,t){return i.createElement(u.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:l.default}))};c.displayName="LoadingOutlined";var s=i.forwardRef(c);t.default=s},72479:function(e,t,n){"use strict";var r=n(75263),o=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.warning=function(e,t){(0,c.default)(e,"[@ant-design/icons] ".concat(t))},t.isIconDefinition=function(e){return"object"===(0,i.default)(e)&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===(0,i.default)(e.icon)||"function"===typeof e.icon)},t.normalizeAttrs=d,t.generate=function e(t,n,r){if(!r)return u.default.createElement(t.tag,(0,a.default)({key:n},d(t.attrs)),(t.children||[]).map((function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))})));return u.default.createElement(t.tag,(0,a.default)((0,a.default)({key:n},d(t.attrs)),r),(t.children||[]).map((function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))})))},t.getSecondaryColor=function(e){return(0,l.generate)(e)[0]},t.normalizeTwoToneColors=function(e){if(!e)return[];return Array.isArray(e)?e:[e]},t.useInsertStyles=t.iconStyles=t.svgBaseProps=void 0;var a=o(n(42122)),i=o(n(18698)),l=n(92138),u=r(n(67294)),c=o(n(45520)),s=n(93399),f=o(n(98399));function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];if("class"===n)t.className=r,delete t.class;else t[n]=r;return t}),{})}t.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var p="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";t.iconStyles=p;t.useInsertStyles=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,t=(0,u.useContext)(f.default),n=t.csp;(0,u.useEffect)((function(){(0,s.updateCSS)(e,"@ant-design-icons",{prepend:!0,csp:n})}),[])}},131:function(e,t,n){"use strict";n.r(t),n.d(t,{TinyColor:function(){return r.C},bounds:function(){return g},convertDecimalToHex:function(){return u.Wl},convertHexToDecimal:function(){return u.T6},default:function(){return b},fromRatio:function(){return f},hslToRgb:function(){return u.ve},hsvToRgb:function(){return u.WE},inputToRGB:function(){return p.uA},isReadable:function(){return i},isValidCSSUnit:function(){return p.ky},legacyRandom:function(){return d},mostReadable:function(){return l},names:function(){return o.R},numberInputToObject:function(){return u.Yt},parseIntFromHex:function(){return u.VD},random:function(){return v},readability:function(){return a},rgbToHex:function(){return u.vq},rgbToHsl:function(){return u.lC},rgbToHsv:function(){return u.py},rgbToRgb:function(){return u.rW},rgbaToArgbHex:function(){return u.GC},rgbaToHex:function(){return u.s},stringInputToObject:function(){return p.uz},tinycolor:function(){return r.H},toMsFilter:function(){return c}});var r=n(10274),o=n(48701);function a(e,t){var n=new r.C(e),o=new r.C(t);return(Math.max(n.getLuminance(),o.getLuminance())+.05)/(Math.min(n.getLuminance(),o.getLuminance())+.05)}function i(e,t,n){var r,o;void 0===n&&(n={level:"AA",size:"small"});var i=a(e,t);switch((null!==(r=n.level)&&void 0!==r?r:"AA")+(null!==(o=n.size)&&void 0!==o?o:"small")){case"AAsmall":case"AAAlarge":return i>=4.5;case"AAlarge":return i>=3;case"AAAsmall":return i>=7;default:return!1}}function l(e,t,n){void 0===n&&(n={includeFallbackColors:!1,level:"AA",size:"small"});for(var o=null,u=0,c=n.includeFallbackColors,s=n.level,f=n.size,d=0,p=t;du&&(u=m,o=new r.C(v))}return i(e,o,{level:s,size:f})||!c?o:(n.includeFallbackColors=!1,l(e,["#fff","#000"],n))}var u=n(86500);function c(e,t){var n=new r.C(e),o="#"+(0,u.GC)(n.r,n.g,n.b,n.a),a=o,i=n.gradientType?"GradientType = 1, ":"";if(t){var l=new r.C(t);a="#"+(0,u.GC)(l.r,l.g,l.b,l.a)}return"progid:DXImageTransform.Microsoft.gradient(".concat(i,"startColorstr=").concat(o,",endColorstr=").concat(a,")")}var s=n(90279);function f(e,t){var n={r:(0,s.JX)(e.r),g:(0,s.JX)(e.g),b:(0,s.JX)(e.b)};return void 0!==e.a&&(n.a=Number(e.a)),new r.C(n,t)}function d(){return new r.C({r:Math.random(),g:Math.random(),b:Math.random()})}var p=n(1350);function v(e){if(void 0===e&&(e={}),void 0!==e.count&&null!==e.count){var t=e.count,n=[];for(e.count=void 0;t>n.length;)e.count=null,e.seed&&(e.seed+=1),n.push(v(e));return e.count=t,n}var o=function(e,t){var n=h(function(e){var t=parseInt(e,10);if(!Number.isNaN(t)&&t<360&&t>0)return[t,t];if("string"===typeof e){var n=g.find((function(t){return t.name===e}));if(n){var o=y(n);if(o.hueRange)return o.hueRange}var a=new r.C(e);if(a.isValid){var i=a.toHsv().h;return[i,i]}}return[0,360]}(e),t);n<0&&(n=360+n);return n}(e.hue,e.seed),a=function(e,t){if("monochrome"===t.hue)return 0;if("random"===t.luminosity)return h([0,100],t.seed);var n=m(e).saturationRange,r=n[0],o=n[1];switch(t.luminosity){case"bright":r=55;break;case"dark":r=o-10;break;case"light":o=55}return h([r,o],t.seed)}(o,e),i=function(e,t,n){var r=function(e,t){for(var n=m(e).lowerBounds,r=0;r=o&&t<=i){var u=(l-a)/(i-o);return u*t+(a-u*o)}}return 0}(e,t),o=100;switch(n.luminosity){case"dark":o=r+20;break;case"light":r=(o+r)/2;break;case"random":r=0,o=100}return h([r,o],n.seed)}(o,a,e),l={h:o,s:a,v:i};return void 0!==e.alpha&&(l.a=e.alpha),new r.C(l)}function m(e){e>=334&&e<=360&&(e-=360);for(var t=0,n=g;t=r.hueRange[0]&&e<=r.hueRange[1])return r}throw Error("Color not found")}function h(e,t){if(void 0===t)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var n=e[1]||1,r=e[0]||0,o=(t=(9301*t+49297)%233280)/233280;return Math.floor(r+o*(n-r))}function y(e){var t=e.lowerBounds[0][0],n=e.lowerBounds[e.lowerBounds.length-1][0],r=e.lowerBounds[e.lowerBounds.length-1][1],o=e.lowerBounds[0][1];return{name:e.name,hueRange:e.hueRange,lowerBounds:e.lowerBounds,saturationRange:[t,n],brightnessRange:[r,o]}}var g=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}],b=r.H},13594:function(e,t,n){"use strict";var r=n(75263).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.noop=a,Object.defineProperty(t,"resetWarned",{enumerable:!0,get:function(){return o.resetWarned}});var o=r(n(45520));function a(){}var i=a;t.default=i},1028:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(25633)).default;t.default=o},93319:function(e,t,n){"use strict";var r=n(75263).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DisabledContextProvider=void 0;var o=r(n(67294)),a=o.createContext(!1);t.DisabledContextProvider=function(e){var t=e.children,n=e.disabled,r=o.useContext(a);return o.createElement(a.Provider,{value:n||r},t)};var i=a;t.default=i},3236:function(e,t,n){"use strict";var r=n(75263).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SizeContextProvider=void 0;var o=r(n(67294)),a=o.createContext(void 0);t.SizeContextProvider=function(e){var t=e.children,n=e.size;return o.createElement(a.Consumer,null,(function(e){return o.createElement(a.Provider,{value:n||e},t)}))};var i=a;t.default=i},7177:function(e,t,n){"use strict";var r=n(75263).default,o=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigContext=t.ConfigConsumer=void 0,t.withConfigConsumer=function(e){return function(t){var n=t.constructor;n&&n.displayName||t.name;return function(n){return i.createElement(u,null,(function(r){var o=e.prefixCls,l=(0,r.getPrefixCls)(o,n.prefixCls);return i.createElement(t,(0,a.default)({},r,n,{prefixCls:l}))}))}}};var a=o(n(10434)),i=r(n(67294)),l=i.createContext({getPrefixCls:function(e,t){return t||(e?"ant-".concat(e):"ant")}});t.ConfigContext=l;var u=l.Consumer;t.ConfigConsumer=u},56301:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getStyle=c,t.registerTheme=function(e,t){var n=c(e,t);(0,i.default)()&&(0,l.updateCSS)(n,"".concat(u,"-dynamic-theme"))};var o=n(92138),a=n(131),i=r(n(19158)),l=n(93399),u=(r(n(13594)),"-ant-".concat(Date.now(),"-").concat(Math.random()));function c(e,t){var n={},r=function(e,t){var n=e.clone();return(n=(null===t||void 0===t?void 0:t(n))||n).toRgbString()},i=function(e,t){var i=new a.TinyColor(e),l=(0,o.generate)(i.toRgbString());n["".concat(t,"-color")]=r(i),n["".concat(t,"-color-disabled")]=l[1],n["".concat(t,"-color-hover")]=l[4],n["".concat(t,"-color-active")]=l[7],n["".concat(t,"-color-outline")]=i.clone().setAlpha(.2).toRgbString(),n["".concat(t,"-color-deprecated-bg")]=l[1],n["".concat(t,"-color-deprecated-border")]=l[3]};if(t.primaryColor){i(t.primaryColor,"primary");var l=new a.TinyColor(t.primaryColor),u=(0,o.generate)(l.toRgbString());u.forEach((function(e,t){n["primary-".concat(t+1)]=e})),n["primary-color-deprecated-l-35"]=r(l,(function(e){return e.lighten(35)})),n["primary-color-deprecated-l-20"]=r(l,(function(e){return e.lighten(20)})),n["primary-color-deprecated-t-20"]=r(l,(function(e){return e.tint(20)})),n["primary-color-deprecated-t-50"]=r(l,(function(e){return e.tint(50)})),n["primary-color-deprecated-f-12"]=r(l,(function(e){return e.setAlpha(.12*e.getAlpha())}));var c=new a.TinyColor(u[0]);n["primary-color-active-deprecated-f-30"]=r(c,(function(e){return e.setAlpha(.3*e.getAlpha())})),n["primary-color-active-deprecated-d-02"]=r(c,(function(e){return e.darken(2)}))}t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info");var s=Object.keys(n).map((function(t){return"--".concat(e,"-").concat(t,": ").concat(n[t],";")}));return"\n :root {\n ".concat(s.join("\n"),"\n }\n ").trim()}},31929:function(e,t,n){"use strict";var r=n(75263).default,o=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ConfigConsumer",{enumerable:!0,get:function(){return m.ConfigConsumer}}),Object.defineProperty(t,"ConfigContext",{enumerable:!0,get:function(){return m.ConfigContext}}),t.globalConfig=t.defaultPrefixCls=t.defaultIconPrefixCls=t.default=t.configConsumerProps=void 0;var a=o(n(10434)),i=o(n(98399)),l=n(71990),u=o(n(67265)),c=r(n(67294)),s=r(n(53594)),f=o(n(73625)),d=o(n(56350)),p=o(n(11187)),v=o(n(16318)),m=n(7177),h=n(56301),y=n(93319),g=r(n(3236));t.configConsumerProps=["getTargetContainer","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale","pageHeader"];var b=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form"];t.defaultPrefixCls="ant";var x,C,_="anticon";function w(){return x||"ant"}function P(){return C||_}t.defaultIconPrefixCls=_;t.globalConfig=function(){return{getPrefixCls:function(e,t){return t||(e?"".concat(w(),"-").concat(e):w())},getIconPrefixCls:P,getRootPrefixCls:function(e,t){return e||(x||(t&&t.includes("-")?t.replace(/^(.*)-[^-]*$/,"$1"):w()))}}};var M=function(e){var t,n,r=e.children,o=e.csp,f=e.autoInsertSpaceInButton,p=e.form,v=e.locale,h=e.componentSize,x=e.direction,C=e.space,_=e.virtual,w=e.dropdownMatchSelectWidth,P=e.legacyLocale,M=e.parentContext,O=e.iconPrefixCls,j=e.componentDisabled,k=c.useCallback((function(t,n){var r=e.prefixCls;if(n)return n;var o=r||M.getPrefixCls("");return t?"".concat(o,"-").concat(t):o}),[M.getPrefixCls,e.prefixCls]),E=(0,a.default)((0,a.default)({},M),{csp:o,autoInsertSpaceInButton:f,locale:v||P,direction:x,space:C,virtual:_,dropdownMatchSelectWidth:w,getPrefixCls:k});b.forEach((function(t){var n=e[t];n&&(E[t]=n)}));var T=(0,u.default)((function(){return E}),E,(function(e,t){var n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((function(n){return e[n]!==t[n]}))})),S=c.useMemo((function(){return{prefixCls:O,csp:o}}),[O,o]),N=r,L={};return v&&(L=(null===(t=v.Form)||void 0===t?void 0:t.defaultValidateMessages)||(null===(n=d.default.Form)||void 0===n?void 0:n.defaultValidateMessages)||{}),p&&p.validateMessages&&(L=(0,a.default)((0,a.default)({},L),p.validateMessages)),Object.keys(L).length>0&&(N=c.createElement(l.FormProvider,{validateMessages:L},r)),v&&(N=c.createElement(s.default,{locale:v,_ANT_MARK__:s.ANT_MARK},N)),(O||o)&&(N=c.createElement(i.default.Provider,{value:S},N)),h&&(N=c.createElement(g.SizeContextProvider,{size:h},N)),void 0!==j&&(N=c.createElement(y.DisabledContextProvider,{disabled:j},N)),c.createElement(m.ConfigContext.Provider,{value:T},N)},O=function(e){return c.useEffect((function(){e.direction&&(p.default.config({rtl:"rtl"===e.direction}),v.default.config({rtl:"rtl"===e.direction}))}),[e.direction]),c.createElement(f.default,null,(function(t,n,r){return c.createElement(m.ConfigConsumer,null,(function(t){return c.createElement(M,(0,a.default)({parentContext:t,legacyLocale:r},e))}))}))};O.ConfigContext=m.ConfigContext,O.SizeContext=g.default,O.config=function(e){var t=e.prefixCls,n=e.iconPrefixCls,r=e.theme;void 0!==t&&(x=t),void 0!==n&&(C=n),r&&(0,h.registerTheme)(w(),r)};var j=O;t.default=j},25633:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(10434)),a=r(n(27590)),i=r(n(52040)),l={lang:(0,o.default)({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},a.default),timePickerLocale:(0,o.default)({},i.default)};t.default=l},73625:function(e,t,n){"use strict";var r=n(75263).default,o=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.useLocaleReceiver=function(e,t){var n=s.useContext(f.default);return[s.useMemo((function(){var r=t||d.default[e||"global"],o=e&&n?n[e]:{};return(0,a.default)((0,a.default)({},"function"===typeof r?r():r),o||{})}),[e,t,n])]};var a=o(n(10434)),i=o(n(56690)),l=o(n(89728)),u=o(n(61655)),c=o(n(26389)),s=r(n(67294)),f=o(n(89354)),d=o(n(95209)),p=function(e){(0,u.default)(n,e);var t=(0,c.default)(n);function n(){return(0,i.default)(this,n),t.apply(this,arguments)}return(0,l.default)(n,[{key:"getLocale",value:function(){var e=this.props,t=e.componentName,n=e.defaultLocale||d.default[null!==t&&void 0!==t?t:"global"],r=this.context,o=t&&r?r[t]:{};return(0,a.default)((0,a.default)({},n instanceof Function?n():n),o||{})}},{key:"getLocaleCode",value:function(){var e=this.context,t=e&&e.locale;return e&&e.exist&&!t?d.default.locale:t}},{key:"render",value:function(){return this.props.children(this.getLocale(),this.getLocaleCode(),this.context)}}]),n}(s.Component);t.default=p,p.defaultProps={componentName:"global"},p.contextType=f.default},89354:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,n(67294).createContext)(void 0);t.default=r},95209:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(56350)).default;t.default=o},53594:function(e,t,n){"use strict";var r=n(75263).default,o=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ANT_MARK=void 0;var a=o(n(10434)),i=o(n(56690)),l=o(n(89728)),u=o(n(61655)),c=o(n(26389)),s=o(n(30845)),f=r(n(67294)),d=(o(n(13594)),n(10625)),p=o(n(89354));t.ANT_MARK="internalMark";var v=function(e){(0,u.default)(n,e);var t=(0,c.default)(n);function n(e){var r;return(0,i.default)(this,n),(r=t.call(this,e)).getMemoizedContextValue=(0,s.default)((function(e){return(0,a.default)((0,a.default)({},e),{exist:!0})})),(0,d.changeConfirmLocale)(e.locale&&e.locale.Modal),r}return(0,l.default)(n,[{key:"componentDidMount",value:function(){(0,d.changeConfirmLocale)(this.props.locale&&this.props.locale.Modal)}},{key:"componentDidUpdate",value:function(e){var t=this.props.locale;e.locale!==t&&(0,d.changeConfirmLocale)(t&&t.Modal)}},{key:"componentWillUnmount",value:function(){(0,d.changeConfirmLocale)()}},{key:"render",value:function(){var e=this.props,t=e.locale,n=e.children,r=this.getMemoizedContextValue(t);return f.createElement(p.default.Provider,{value:r},n)}}]),n}(f.Component);t.default=v,v.defaultProps={locale:{}}},56350:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(62273)),a=r(n(1028)),i=r(n(25633)),l=r(n(52040)),u="${label} is not a valid ${type}",c={locale:"en",Pagination:o.default,DatePicker:i.default,TimePicker:l.default,Calendar:a.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:u,method:u,array:u,object:u,number:u,date:u,boolean:u,integer:u,float:u,regexp:u,email:u,url:u,hex:u},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}};t.default=c},64333:function(e,t,n){"use strict";var r=n(75263).default,o=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(){var n,r,o=null,f={add:function(e,t){null===o||void 0===o||o.component.add(e,t)}},d=(0,l.default)(f),p=(0,i.default)(d,2),v=p[0],m=p[1];var h=u.useRef({});return h.current.open=function(i){var l=i.prefixCls,u=n("message",l),s=n(),f=i.key||(0,c.getKeyThenIncreaseKey)(),d=new Promise((function(n){var l=function(){return"function"===typeof i.onClose&&i.onClose(),n(!0)};e((0,a.default)((0,a.default)({},i),{prefixCls:u,rootPrefixCls:s,getPopupContainer:r}),(function(e){var n=e.prefixCls,r=e.instance;o=r,v(t((0,a.default)((0,a.default)({},i),{key:f,onClose:l}),n))}))})),p=function(){o&&o.removeNotice(f)};return p.then=function(e,t){return d.then(e,t)},p.promise=d,p},c.typeList.forEach((function(e){return(0,c.attachTypeApi)(h.current,e)})),[h.current,u.createElement(s.ConfigConsumer,{key:"holder"},(function(e){return n=e.getPrefixCls,r=e.getPopupContainer,m}))]}};var a=o(n(10434)),i=o(n(27424)),l=o(n(45484)),u=r(n(67294)),c=n(11187),s=n(31929)},11187:function(e,t,n){"use strict";var r=n(75263).default,o=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.attachTypeApi=L,t.getInstance=t.default=void 0,t.getKeyThenIncreaseKey=j,t.typeList=void 0;var a,i,l,u,c=o(n(10434)),s=o(n(38416)),f=o(n(37431)),d=o(n(42547)),p=o(n(42461)),v=o(n(94354)),m=o(n(628)),h=o(n(94184)),y=o(n(91127)),g=r(n(67294)),b=r(n(31929)),x=o(n(64333)),C=3,_=1,w="",P="move-up",M=!1,O=!1;function j(){return _++}function k(e,t){var n=e.prefixCls,r=e.getPopupContainer,o=(0,b.globalConfig)(),c=o.getPrefixCls,s=o.getRootPrefixCls,f=o.getIconPrefixCls,d=c("message",n||w),p=s(e.rootPrefixCls,d),v=f();if(a)t({prefixCls:d,rootPrefixCls:p,iconPrefixCls:v,instance:a});else{var m={prefixCls:d,transitionName:M?P:"".concat(p,"-").concat(P),style:{top:i},getContainer:l||r,maxCount:u};y.default.newInstance(m,(function(e){a?t({prefixCls:d,rootPrefixCls:p,iconPrefixCls:v,instance:a}):(a=e,t({prefixCls:d,rootPrefixCls:p,iconPrefixCls:v,instance:e}))}))}}var E={info:v.default,success:f.default,error:d.default,warning:p.default,loading:m.default},T=Object.keys(E);function S(e,t,n){var r,o=void 0!==e.duration?e.duration:C,a=E[e.type],i=(0,h.default)("".concat(t,"-custom-content"),(r={},(0,s.default)(r,"".concat(t,"-").concat(e.type),e.type),(0,s.default)(r,"".concat(t,"-rtl"),!0===O),r));return{key:e.key,duration:o,style:e.style||{},className:e.className,content:g.createElement(b.default,{iconPrefixCls:n},g.createElement("div",{className:i},e.icon||a&&g.createElement(a,null),g.createElement("span",null,e.content))),onClose:e.onClose,onClick:e.onClick}}t.typeList=T;var N={open:function(e){var t=e.key||j(),n=new Promise((function(n){var r=function(){return"function"===typeof e.onClose&&e.onClose(),n(!0)};k(e,(function(n){var o=n.prefixCls,a=n.iconPrefixCls;n.instance.notice(S((0,c.default)((0,c.default)({},e),{key:t,onClose:r}),o,a))}))})),r=function(){a&&a.removeNotice(t)};return r.then=function(e,t){return n.then(e,t)},r.promise=n,r},config:function(e){void 0!==e.top&&(i=e.top,a=null),void 0!==e.duration&&(C=e.duration),void 0!==e.prefixCls&&(w=e.prefixCls),void 0!==e.getContainer&&(l=e.getContainer,a=null),void 0!==e.transitionName&&(P=e.transitionName,a=null,M=!0),void 0!==e.maxCount&&(u=e.maxCount,a=null),void 0!==e.rtl&&(O=e.rtl)},destroy:function(e){if(a)if(e){(0,a.removeNotice)(e)}else{var t=a.destroy;t(),a=null}}};function L(e,t){e[t]=function(n,r,o){return function(e){return"[object Object]"===Object.prototype.toString.call(e)&&!!e.content}(n)?e.open((0,c.default)((0,c.default)({},n),{type:t})):("function"===typeof r&&(o=r,r=void 0),e.open({content:n,duration:r,type:t,onClose:o}))}}T.forEach((function(e){return L(N,e)})),N.warn=N.warning,N.useMessage=(0,x.default)(k,S);t.getInstance=function(){return null};var R=N;t.default=R},10625:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.changeConfirmLocale=function(e){i=e?(0,o.default)((0,o.default)({},i),e):(0,o.default)({},a.default.Modal)},t.getConfirmLocale=function(){return i};var o=r(n(10434)),a=r(n(56350)),i=(0,o.default)({},a.default.Modal)},23298:function(e,t,n){"use strict";var r=n(75263).default,o=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(){var n,r=null,o={add:function(e,t){null===r||void 0===r||r.component.add(e,t)}},s=(0,l.default)(o),f=(0,i.default)(s,2),d=f[0],p=f[1];var v=u.useRef({});return v.current.open=function(o){var i=o.prefixCls,l=n("notification",i);e((0,a.default)((0,a.default)({},o),{prefixCls:l}),(function(e){var n=e.prefixCls,a=e.instance;r=a,d(t(o,n))}))},["success","info","warning","error"].forEach((function(e){v.current[e]=function(t){return v.current.open((0,a.default)((0,a.default)({},t),{type:e}))}})),[v.current,u.createElement(c.ConfigConsumer,{key:"holder"},(function(e){return n=e.getPrefixCls,p}))]}};var a=o(n(10434)),i=o(n(27424)),l=o(n(45484)),u=r(n(67294)),c=n(31929)},16318:function(e,t,n){"use strict";var r=n(75263).default,o=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getInstance=t.default=void 0;var a,i,l,u=o(n(17061)),c=o(n(10434)),s=o(n(38416)),f=o(n(67996)),d=o(n(74337)),p=o(n(40753)),v=o(n(67039)),m=o(n(93201)),h=o(n(94184)),y=o(n(91127)),g=r(n(67294)),b=r(n(31929)),x=o(n(23298)),C=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{u(r.next(e))}catch(t){a(t)}}function l(e){try{u(r.throw(e))}catch(t){a(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}u((r=r.apply(e,t||[])).next())}))},_={},w=4.5,P=24,M=24,O="",j="topRight",k=!1;function E(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:M;switch(e){case"top":t={left:"50%",transform:"translateX(-50%)",right:"auto",top:n,bottom:"auto"};break;case"topLeft":t={left:0,top:n,bottom:"auto"};break;case"topRight":t={right:0,top:n,bottom:"auto"};break;case"bottom":t={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:r};break;case"bottomLeft":t={left:0,top:"auto",bottom:r};break;default:t={right:0,top:"auto",bottom:r}}return t}function T(e,t){var n=e.placement,r=void 0===n?j:n,o=e.top,i=e.bottom,u=e.getContainer,c=void 0===u?a:u,f=e.prefixCls,d=(0,b.globalConfig)(),p=d.getPrefixCls,v=d.getIconPrefixCls,m=p("notification",f||O),g=v(),x="".concat(m,"-").concat(r),C=_[x];if(C)Promise.resolve(C).then((function(e){t({prefixCls:"".concat(m,"-notice"),iconPrefixCls:g,instance:e})}));else{var w=(0,h.default)("".concat(m,"-").concat(r),(0,s.default)({},"".concat(m,"-rtl"),!0===k));_[x]=new Promise((function(e){y.default.newInstance({prefixCls:m,className:w,style:E(r,o,i),getContainer:c,maxCount:l},(function(n){e(n),t({prefixCls:"".concat(m,"-notice"),iconPrefixCls:g,instance:n})}))}))}}var S={success:f.default,info:m.default,error:d.default,warning:v.default};function N(e,t,n){var r=e.duration,o=e.icon,a=e.type,l=e.description,u=e.message,c=e.btn,f=e.onClose,d=e.onClick,v=e.key,m=e.style,y=e.className,x=e.closeIcon,C=void 0===x?i:x,_=void 0===r?w:r,P=null;o?P=g.createElement("span",{className:"".concat(t,"-icon")},e.icon):a&&(P=g.createElement(S[a]||null,{className:"".concat(t,"-icon ").concat(t,"-icon-").concat(a)}));var M=g.createElement("span",{className:"".concat(t,"-close-x")},C||g.createElement(p.default,{className:"".concat(t,"-close-icon")})),O=!l&&P?g.createElement("span",{className:"".concat(t,"-message-single-line-auto-margin")}):null;return{content:g.createElement(b.default,{iconPrefixCls:n},g.createElement("div",{className:P?"".concat(t,"-with-icon"):"",role:"alert"},P,g.createElement("div",{className:"".concat(t,"-message")},O,u),g.createElement("div",{className:"".concat(t,"-description")},l),c?g.createElement("span",{className:"".concat(t,"-btn")},c):null)),duration:_,closable:!0,closeIcon:M,onClose:f,onClick:d,key:v,style:m||{},className:(0,h.default)(y,(0,s.default)({},"".concat(t,"-").concat(a),!!a))}}var L={open:function(e){T(e,(function(t){var n=t.prefixCls,r=t.iconPrefixCls;t.instance.notice(N(e,n,r))}))},close:function(e){Object.keys(_).forEach((function(t){return Promise.resolve(_[t]).then((function(t){t.removeNotice(e)}))}))},config:function(e){var t=e.duration,n=e.placement,r=e.bottom,o=e.top,u=e.getContainer,c=e.closeIcon,s=e.prefixCls;void 0!==s&&(O=s),void 0!==t&&(w=t),void 0!==n?j=n:e.rtl&&(j="topLeft"),void 0!==r&&(M=r),void 0!==o&&(P=o),void 0!==u&&(a=u),void 0!==c&&(i=c),void 0!==e.rtl&&(k=e.rtl),void 0!==e.maxCount&&(l=e.maxCount)},destroy:function(){Object.keys(_).forEach((function(e){Promise.resolve(_[e]).then((function(e){e.destroy()})),delete _[e]}))}};["success","info","warning","error"].forEach((function(e){L[e]=function(t){return L.open((0,c.default)((0,c.default)({},t),{type:e}))}})),L.warn=L.warning,L.useNotification=(0,x.default)(T,N);t.getInstance=function(e){return C(void 0,void 0,void 0,(0,u.default)().mark((function e(){return(0,u.default)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null);case 1:case"end":return e.stop()}}),e)})))};var R=L;t.default=R},52040:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};t.default=n},32502:function(e,t,n){"use strict";var r=n(75263),o=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(10434)),i=o(n(38416)),l=o(n(56690)),u=o(n(89728)),c=o(n(61655)),s=o(n(26389)),f=r(n(67294)),d=o(n(73935)),p=o(n(94184)),v=function(e){(0,c.default)(n,e);var t=(0,s.default)(n);function n(){var e;(0,l.default)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a1&&void 0!==arguments[1]?arguments[1]:{},r=s(e,n);null===r||void 0===r||null===(t=r.parentNode)||void 0===t||t.removeChild(r)},t.updateCSS=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=l(n);if(!c.has(r)){var o=u("",n),a=o.parentNode;c.set(r,a),a.removeChild(o)}var f=s(t,n);if(f){var d,p,v;if((null===(d=n.csp)||void 0===d?void 0:d.nonce)&&f.nonce!==(null===(p=n.csp)||void 0===p?void 0:p.nonce))f.nonce=null===(v=n.csp)||void 0===v?void 0:v.nonce;return f.innerHTML!==e&&(f.innerHTML=e),f}var m=u(e,n);return m.setAttribute(i(n),t),m};var o=r(n(19158)),a="rc-util-key";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):a}function l(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function u(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,o.default)())return null;var r,a=document.createElement("style");(null===(t=n.csp)||void 0===t?void 0:t.nonce)&&(a.nonce=null===(r=n.csp)||void 0===r?void 0:r.nonce);a.innerHTML=e;var i=l(n),u=i.firstChild;return n.prepend&&i.prepend?i.prepend(a):n.prepend&&u?i.insertBefore(a,u):i.appendChild(a),a}var c=new Map;function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=l(t);return Array.from(c.get(n).children).find((function(n){return"STYLE"===n.tagName&&n.getAttribute(i(t))===e}))}},67265:function(e,t,n){"use strict";var r=n(75263);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=o.useRef({});"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t);return r.current.value};var o=r(n(67294))},18475:function(e,t,n){"use strict";var r=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)({},e);Array.isArray(t)&&t.forEach((function(e){delete n[e]}));return n};var o=r(n(42122))},45520:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.call=a,t.default=void 0,t.note=o,t.noteOnce=function(e,t){a(o,e,t)},t.resetWarned=function(){n={}},t.warning=r,t.warningOnce=i;var n={};function r(e,t){0}function o(e,t){0}function a(e,t,r){t||n[r]||(e(!1,r),n[r]=!0)}function i(e,t){a(r,e,t)}var l=i;t.default=l},73897:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a},e.exports.__esModule=!0,e.exports.default=e.exports},7071:function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},94993:function(e,t,n){var r=n(18698).default,o=n(66115);e.exports=function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},17061:function(e,t,n){var r=n(18698).default;function o(){"use strict";e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,a=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},l=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(E){s=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),i=new O(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return k()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var l=w(i,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=d(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,i),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(E){return{type:"throw",arg:E}}}t.wrap=f;var p={};function v(){}function m(){}function h(){}var y={};s(y,l,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(j([])));b&&b!==n&&a.call(b,l)&&(y=b);var x=h.prototype=v.prototype=Object.create(y);function C(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(o,i,l,u){var c=d(e[o],e,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==r(f)&&a.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,l,u)}),(function(e){n("throw",e,l,u)})):t.resolve(f).then((function(e){s.value=e,l(s)}),(function(e){return n("throw",e,l,u)}))}u(c.arg)}var o;this._invoke=function(e,r){function a(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=d(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function j(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var l=a.call(o,"catchLoc"),u=a.call(o,"finallyLoc");if(l&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:j(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},6015:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},27424:function(e,t,n){var r=n(85372),o=n(68872),a=n(86116),i=n(12218);e.exports=function(e,t){return r(e)||o(e,t)||a(e,t)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},861:function(e,t,n){var r=n(63405),o=n(79498),a=n(86116),i=n(42281);e.exports=function(e){return r(e)||o(e)||a(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},18698:function(e){function t(n){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},86116:function(e,t,n){var r=n(73897);e.exports=function(e,t){if(e){if("string"===typeof e)return r(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)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/1142-e1c9b49c7b789e49.js b/static/web/_next/static/chunks/1142-e1c9b49c7b789e49.js deleted file mode 100644 index b9168b00b..000000000 --- a/static/web/_next/static/chunks/1142-e1c9b49c7b789e49.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1142],{48689:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(1413),o=r(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},s=r(42135),a=function(e,t){return o.createElement(s.Z,(0,n.Z)((0,n.Z)({},e),{},{ref:t,icon:i}))};a.displayName="DeleteOutlined";var c=o.forwardRef(a)},88484:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(1413),o=r(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},s=r(42135),a=function(e,t){return o.createElement(s.Z,(0,n.Z)((0,n.Z)({},e),{},{ref:t,icon:i}))};a.displayName="UploadOutlined";var c=o.forwardRef(a)},94594:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(87462),o=r(4942),i=r(50888),s=r(94184),a=r.n(s),c=r(97685),l=r(91),u=r(67294),p=r(21770),h=r(15105),f=u.forwardRef((function(e,t){var r,n=e.prefixCls,i=void 0===n?"rc-switch":n,s=e.className,f=e.checked,d=e.defaultChecked,m=e.disabled,g=e.loadingIcon,_=e.checkedChildren,v=e.unCheckedChildren,b=e.onClick,k=e.onChange,y=e.onKeyDown,C=(0,l.Z)(e,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),x=(0,p.Z)(!1,{value:f,defaultValue:d}),w=(0,c.Z)(x,2),E=w[0],A=w[1];function D(e,t){var r=E;return m||(A(r=e),null===k||void 0===k||k(r,t)),r}var q=a()(i,s,(r={},(0,o.Z)(r,"".concat(i,"-checked"),E),(0,o.Z)(r,"".concat(i,"-disabled"),m),r));return u.createElement("button",Object.assign({},C,{type:"button",role:"switch","aria-checked":E,disabled:m,className:q,ref:t,onKeyDown:function(e){e.which===h.Z.LEFT?D(!1,e):e.which===h.Z.RIGHT&&D(!0,e),null===y||void 0===y||y(e)},onClick:function(e){var t=D(!E,e);null===b||void 0===b||b(t,e)}}),g,u.createElement("span",{className:"".concat(i,"-inner")},E?_:v))}));f.displayName="Switch";var d=f,m=r(53124),g=r(98866),_=r(97647),v=r(68349),b=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var r=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var n=e.data[t];Array.isArray(n)?n.forEach((function(e){r.append("".concat(t,"[]"),e)})):r.append(t,n)})),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var r="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),n=new Error(r);return n.status=t.status,n.method=e.method,n.url=e.action,n}(e,t),b(t)):e.onSuccess(b(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var n=e.headers||{};return null!==n["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(n).forEach((function(e){null!==n[e]&&t.setRequestHeader(e,n[e])})),t.send(r),{abort:function(){t.abort()}}}var y=+new Date,C=0;function x(){return"rc-upload-".concat(y,"-").concat(++C)}var w=r(80334),E=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return r.some((function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var r=n.toLowerCase(),s=t.toLowerCase(),a=[s];return".jpg"!==s&&".jpeg"!==s||(a=[".jpg",".jpeg"]),a.some((function(e){return r.endsWith(e)}))}return/\/\*$/.test(t)?i===t.replace(/\/.*$/,""):o===t||!!/^\w+$/.test(t)&&((0,w.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)}))}return!0};var A=function(e,t,r){var n=function e(n,o){n.path=o||"",n.isFile?n.file((function(e){r(e)&&(n.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=n.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))})):n.isDirectory&&function(e,t){var r=e.createReader(),n=[];!function e(){r.readEntries((function(r){var o=Array.prototype.slice.apply(r);n=n.concat(o),o.length?e():t(n)}))}()}(n,(function(t){t.forEach((function(t){e(t,"".concat(o).concat(n.name,"/"))}))}))};e.forEach((function(e){n(e.webkitGetAsEntry())}))},D=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],q=function(e){(0,d.Z)(r,e);var t=(0,m.Z)(r);function r(){var e;(0,h.Z)(this,r);for(var n=arguments.length,o=new Array(n),i=0;ii?l=-((a=i*(se/e))-s)/2:c=-((s=e*(se/i))-a)/2,n.drawImage(o,c,l,s,a);var u=r.toDataURL();document.body.removeChild(r),t(u)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){var i=new FileReader;i.addEventListener("load",(function(){i.result&&(o.src=i.result)})),i.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)}else t("")}))},isImageUrl:function(e){if(e.type&&!e.thumbUrl)return ie(e.type);var t=e.thumbUrl||e.url||"",r=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),t=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(r))||!/^data:/.test(t)&&!r}};var ve=_e,be=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(t){i(t)}}function a(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},ke="__LIST_IGNORE_".concat(Date.now(),"__"),ye=function(e,t){var r,u=e.fileList,h=e.defaultFileList,f=e.onRemove,d=e.showUploadList,m=e.listType,g=e.onPreview,_=e.onDownload,v=e.onChange,b=e.onDrop,k=e.previewFile,y=e.disabled,C=e.locale,x=e.iconRender,w=e.isImageUrl,E=e.progress,A=e.prefixCls,D=e.className,q=e.type,F=e.children,S=e.style,L=e.itemRender,O=e.maxCount,P=o.useContext(T.Z),j=y||P,B=(0,z.Z)(h||[],{value:u,postState:function(e){return null!==e&&void 0!==e?e:[]}}),U=(0,l.Z)(B,2),V=U[0],H=U[1],$=o.useState("drop"),G=(0,l.Z)($,2),J=G[0],W=G[1],K=o.useRef();o.useMemo((function(){var e=Date.now();(u||[]).forEach((function(t,r){t.uid||Object.isFrozen(t)||(t.uid="__AUTO__".concat(e,"_").concat(r,"__"))}))}),[u]);var Y=function(e,t,r){var n=(0,c.Z)(t);1===O?n=n.slice(-1):O&&(n=n.slice(0,O)),(0,I.flushSync)((function(){H(n)}));var o={file:e,fileList:n};r&&(o.event=r),null===v||void 0===v||v(o)},X=function(e){var t=e.filter((function(e){return!e.file[ke]}));if(t.length){var r=t.map((function(e){return re(e.file)})),n=(0,c.Z)(V);r.forEach((function(e){n=ne(e,n)})),r.forEach((function(e,r){var o=e;if(t[r].parsedFile)e.status="uploading";else{var i,s=e.originFileObj;try{i=new File([s],s.name,{type:s.type})}catch(a){(i=new Blob([s],{type:s.type})).name=s.name,i.lastModifiedDate=new Date,i.lastModified=(new Date).getTime()}i.uid=e.uid,o=i}Y(o,n)}))}},Q=function(e,t,r){try{"string"===typeof e&&(e=JSON.parse(e))}catch(i){}if(oe(t,V)){var n=re(t);n.status="done",n.percent=100,n.response=e,n.xhr=r;var o=ne(n,V);Y(n,o)}},ee=function(e,t){if(oe(t,V)){var r=re(t);r.status="uploading",r.percent=e.percent;var n=ne(r,V);Y(r,n,e)}},te=function(e,t,r){if(oe(r,V)){var n=re(r);n.error=e,n.response=t,n.status="error";var o=ne(n,V);Y(n,o)}},ie=function(e){var t;Promise.resolve("function"===typeof f?f(e):f).then((function(r){var o;if(!1!==r){var i=function(e,t){var r=void 0!==e.uid?"uid":"name",n=t.filter((function(t){return t[r]!==e[r]}));return n.length===t.length?null:n}(e,V);i&&(t=(0,n.Z)((0,n.Z)({},e),{status:"removed"}),null===V||void 0===V||V.forEach((function(e){var r=void 0!==t.uid?"uid":"name";e[r]!==t[r]||Object.isFrozen(e)||(e.status="removed")})),null===(o=K.current)||void 0===o||o.abort(t),Y(t,i))}}))},se=function(e){W(e.type),"drop"===e.type&&(null===b||void 0===b||b(e))};o.useImperativeHandle(t,(function(){return{onBatchStart:X,onSuccess:Q,onProgress:ee,onError:te,fileList:V,upload:K.current}}));var ae=o.useContext(R.E_),ce=ae.getPrefixCls,le=ae.direction,ue=ce("upload",A),pe=(0,n.Z)((0,n.Z)({onBatchStart:X,onError:te,onProgress:ee,onSuccess:Q},e),{prefixCls:ue,disabled:j,beforeUpload:function(t,r){return be(void 0,void 0,void 0,(0,s.Z)().mark((function n(){var o,i,c,l;return(0,s.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=e.beforeUpload,i=e.transformFile,c=t,!o){n.next=13;break}return n.next=5,o(t,r);case 5:if(!1!==(l=n.sent)){n.next=8;break}return n.abrupt("return",!1);case 8:if(delete t[ke],l!==ke){n.next=12;break}return Object.defineProperty(t,ke,{value:!0,configurable:!0}),n.abrupt("return",!1);case 12:"object"===(0,a.Z)(l)&&l&&(c=l);case 13:if(!i){n.next=17;break}return n.next=16,i(c);case 16:c=n.sent;case 17:return n.abrupt("return",c);case 18:case"end":return n.stop()}}),n)})))},onChange:void 0});delete pe.className,delete pe.style,F&&!j||delete pe.id;var he=function(e,t){return d?o.createElement(M.Z,{componentName:"Upload",defaultLocale:N.Z.Upload},(function(r){var i="boolean"===typeof d?{}:d,s=i.showRemoveIcon,a=i.showPreviewIcon,c=i.showDownloadIcon,l=i.removeIcon,u=i.previewIcon,p=i.downloadIcon;return o.createElement(ve,{prefixCls:ue,listType:m,items:V,previewFile:k,onPreview:g,onDownload:_,onRemove:ie,showRemoveIcon:!j&&s,showPreviewIcon:a,showDownloadIcon:c,removeIcon:l,previewIcon:u,downloadIcon:p,iconRender:x,locale:(0,n.Z)((0,n.Z)({},r),C),isImageUrl:w,progress:E,appendAction:e,appendActionVisible:t,itemRender:L})})):e};if("drag"===q){var fe,de=p()(ue,(fe={},(0,i.Z)(fe,"".concat(ue,"-drag"),!0),(0,i.Z)(fe,"".concat(ue,"-drag-uploading"),V.some((function(e){return"uploading"===e.status}))),(0,i.Z)(fe,"".concat(ue,"-drag-hover"),"dragover"===J),(0,i.Z)(fe,"".concat(ue,"-disabled"),j),(0,i.Z)(fe,"".concat(ue,"-rtl"),"rtl"===le),fe),D);return o.createElement("span",null,o.createElement("div",{className:de,onDrop:se,onDragOver:se,onDragLeave:se,style:S},o.createElement(Z,(0,n.Z)({},pe,{ref:K,className:"".concat(ue,"-btn")}),o.createElement("div",{className:"".concat(ue,"-drag-container")},F))),he())}var me,ge=p()(ue,(r={},(0,i.Z)(r,"".concat(ue,"-select"),!0),(0,i.Z)(r,"".concat(ue,"-select-").concat(m),!0),(0,i.Z)(r,"".concat(ue,"-disabled"),j),(0,i.Z)(r,"".concat(ue,"-rtl"),"rtl"===le),r)),_e=(me=F?void 0:{display:"none"},o.createElement("div",{className:ge,style:me},o.createElement(Z,(0,n.Z)({},pe,{ref:K}))));return"picture-card"===m?o.createElement("span",{className:p()("".concat(ue,"-picture-card-wrapper"),D)},he(_e,!!F)):o.createElement("span",{className:D},_e,he())},Ce=o.forwardRef(ye);Ce.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0};var xe=Ce,we=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){var n=e.slice(t);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},l="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function u(e){var t=e.re=r(36066)(e.__opts__),n=e.__tlds__.slice();function a(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(a(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(a(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(a(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(a(t.tpl_host_fuzzy_test),"i");var c=[];function l(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var r=e.__schemas__[t];if(null!==r){var n={validate:null,link:null};if(e.__compiled__[t]=n,"[object Object]"===o(r))return!function(e){return"[object RegExp]"===o(e)}(r.validate)?i(r.validate)?n.validate=r.validate:l(t,r):n.validate=function(e){return function(t,r){var n=t.slice(r);return e.test(n)?n.match(e)[0].length:0}}(r.validate),void(i(r.normalize)?n.normalize=r.normalize:r.normalize?l(t,r):n.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===o(e)}(r)?l(t,r):c.push(t)}})),c.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var u=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(s).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+u+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+u+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function p(e,t){var r=e.__index__,n=e.__last_index__,o=e.__text_cache__.slice(r,n);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=n+t,this.raw=o,this.text=o,this.url=o}function h(e,t){var r=new p(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function f(e,t){if(!(this instanceof f))return new f(e,t);var r;t||(r=e,Object.keys(r||{}).reduce((function(e,t){return e||a.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=n({},a,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=n({},c,e),this.__compiled__={},this.__tlds__=l,this.__tlds_replaced__=!1,this.re={},u(this)}f.prototype.add=function(e,t){return this.__schemas__[e]=t,u(this),this},f.prototype.set=function(e){return this.__opts__=n(this.__opts__,e),this},f.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,r,n,o,i,s,a,c;if(this.re.schema_test.test(e))for((a=this.re.schema_search).lastIndex=0;null!==(t=a.exec(e));)if(o=this.testSchemaAt(e,t[2],a.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||c=0&&null!==(n=e.match(this.re.email_fuzzy))&&(i=n.index+n[1].length,s=n.index+n[0].length,(this.__index__<0||ithis.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=s)),this.__index__>=0},f.prototype.pretest=function(e){return this.re.pretest.test(e)},f.prototype.testSchemaAt=function(e,t,r){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,r,this):0},f.prototype.match=function(e){var t=0,r=[];this.__index__>=0&&this.__text_cache__===e&&(r.push(h(this,t)),t=this.__last_index__);for(var n=t?e.slice(t):e;this.test(n);)r.push(h(this,t)),n=n.slice(this.__last_index__),t+=this.__last_index__;return r.length?r:null},f.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var r=this.testSchemaAt(e,t[2],t[0].length);return r?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r,h(this,0)):null},f.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,r){return e!==r[t-1]})).reverse(),u(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,u(this),this)},f.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},f.prototype.onCompile=function(){},e.exports=f},36066:function(e,t,r){"use strict";e.exports=function(e){var t={};e=e||{},t.src_Any=r(29369).source,t.src_Cc=r(99413).source,t.src_Z=r(35045).source,t.src_P=r(73189).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><\uff5c]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><\uff5c]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+"[><\uff5c]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><\uff5c]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},9980:function(e,t,r){"use strict";e.exports=r(17024)},26233:function(e,t,r){"use strict";e.exports=r(95485)},40813:function(e){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},51947:function(e){"use strict";var t="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",r="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",n=new RegExp("^(?:"+t+"|"+r+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|]*>|)"),o=new RegExp("^(?:"+t+"|"+r+")");e.exports.n=n,e.exports.q=o},67022:function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty;function o(e,t){return n.call(e,t)}function i(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!==(65535&e)&&65534!==(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function s(e){if(e>65535){var t=55296+((e-=65536)>>10),r=56320+(1023&e);return String.fromCharCode(t,r)}return String.fromCharCode(e)}var a=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,c=new RegExp(a.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),l=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,u=r(26233);var p=/[&<>"]/,h=/[&<>"]/g,f={"&":"&","<":"<",">":">",'"':"""};function d(e){return f[e]}var m=/[.?*+^$[\]\\(){}|-]/g;var g=r(73189);t.lib={},t.lib.mdurl=r(48765),t.lib.ucmicro=r(84205),t.assign=function(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){if(t){if("object"!==typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(r){e[r]=t[r]}))}})),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=o,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(a,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(c,(function(e,t,r){return t||function(e,t){var r=0;return o(u,t)?u[t]:35===t.charCodeAt(0)&&l.test(t)&&i(r="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?s(r):e}(e,r)}))},t.isValidEntityCode=i,t.fromCodePoint=s,t.escapeHtml=function(e){return p.test(e)?e.replace(h,d):e},t.arrayReplaceAt=function(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return g.test(e)},t.escapeRE=function(e){return e.replace(m,"\\$&")},t.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"\u1e7e"==="\u1e9e".toLowerCase()&&(e=e.replace(/\u1e9e/g,"\xdf")),e.toLowerCase().toUpperCase()}},51685:function(e,t,r){"use strict";t.parseLinkLabel=r(33595),t.parseLinkDestination=r(12548),t.parseLinkTitle=r(88040)},12548:function(e,t,r){"use strict";var n=r(67022).unescapeAll;e.exports=function(e,t,r){var o,i,s=t,a={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t32)return a;if(41===o){if(0===i)break;i--}t++}return s===t||0!==i||(a.str=n(e.slice(s,t)),a.lines=0,a.pos=t,a.ok=!0),a}},33595:function(e){"use strict";e.exports=function(e,t,r){var n,o,i,s,a=-1,c=e.posMax,l=e.pos;for(e.pos=t+1,n=1;e.pos=r)return c;if(34!==(i=e.charCodeAt(t))&&39!==i&&40!==i)return c;for(t++,40===i&&(i=41);t=0))try{t.hostname=p.toASCII(t.hostname)}catch(r){}return u.encode(u.format(t))}function v(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||g.indexOf(t.protocol)>=0))try{t.hostname=p.toUnicode(t.hostname)}catch(r){}return u.decode(u.format(t),u.decode.defaultChars+"%")}function b(e,t){if(!(this instanceof b))return new b(e,t);t||n.isString(e)||(t=e||{},e="default"),this.inline=new c,this.block=new a,this.core=new s,this.renderer=new i,this.linkify=new l,this.validateLink=m,this.normalizeLink=_,this.normalizeLinkText=v,this.utils=n,this.helpers=n.assign({},o),this.options={},this.configure(e),t&&this.set(t)}b.prototype.set=function(e){return n.assign(this.options,e),this},b.prototype.configure=function(e){var t,r=this;if(n.isString(e)&&!(e=h[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&r.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&r[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&r[t].ruler2.enableOnly(e.components[t].rules2)})),this},b.prototype.enable=function(e,t){var r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){r=r.concat(this[t].ruler.enable(e,!0))}),this),r=r.concat(this.inline.ruler2.enable(e,!0));var n=e.filter((function(e){return r.indexOf(e)<0}));if(n.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this},b.prototype.disable=function(e,t){var r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){r=r.concat(this[t].ruler.disable(e,!0))}),this),r=r.concat(this.inline.ruler2.disable(e,!0));var n=e.filter((function(e){return r.indexOf(e)<0}));if(n.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this},b.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},b.prototype.parse=function(e,t){if("string"!==typeof e)throw new Error("Input data should be a String");var r=new this.core.State(e,this,t);return this.core.process(r),r.tokens},b.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},b.prototype.parseInline=function(e,t){var r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens},b.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=b},82471:function(e,t,r){"use strict";var n=r(79580),o=[["table",r(91785),["paragraph","reference"]],["code",r(38768)],["fence",r(13542),["paragraph","reference","blockquote","list"]],["blockquote",r(45258),["paragraph","reference","blockquote","list"]],["hr",r(35634),["paragraph","reference","blockquote","list"]],["list",r(18532),["paragraph","reference","blockquote"]],["reference",r(43804)],["html_block",r(76329),["paragraph","reference","blockquote"]],["heading",r(61630),["paragraph","reference","blockquote"]],["lheading",r(56850)],["paragraph",r(96864)]];function i(){this.ruler=new n;for(var e=0;e=r))&&!(e.sCount[s]=c){e.line=r;break}for(n=0;n=i)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},s.prototype.parse=function(e,t,r,n){var o,i,s,a=new this.State(e,t,r,n);for(this.tokenize(a),s=(i=this.ruler2.getRules("")).length,o=0;o"+i(e[t].content)+""},s.code_block=function(e,t,r,n,o){var s=e[t];return""+i(e[t].content)+"\n"},s.fence=function(e,t,r,n,s){var a,c,l,u,p,h=e[t],f=h.info?o(h.info).trim():"",d="",m="";return f&&(d=(l=f.split(/(\s+)/g))[0],m=l.slice(2).join("")),0===(a=r.highlight&&r.highlight(h.content,d,m)||i(h.content)).indexOf(""+a+"\n"):"
"+a+"
\n"},s.image=function(e,t,r,n,o){var i=e[t];return i.attrs[i.attrIndex("alt")][1]=o.renderInlineAsText(i.children,r,n),o.renderToken(e,t,r)},s.hardbreak=function(e,t,r){return r.xhtmlOut?"
\n":"
\n"},s.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?"
\n":"
\n":"\n"},s.text=function(e,t){return i(e[t].content)},s.html_block=function(e,t){return e[t].content},s.html_inline=function(e,t){return e[t].content},a.prototype.renderAttrs=function(e){var t,r,n;if(!e.attrs)return"";for(n="",t=0,r=e.attrs.length;t\n":">")},a.prototype.renderInline=function(e,t,r){for(var n,o="",i=this.rules,s=0,a=e.length;s=4)return!1;if(62!==e.src.charCodeAt(A++))return!1;if(o)return!0;for(c=f=e.sCount[t]+1,32===e.src.charCodeAt(A)?(A++,c++,f++,i=!1,k=!0):9===e.src.charCodeAt(A)?(k=!0,(e.bsCount[t]+f)%4===3?(A++,c++,f++,i=!1):i=!0):k=!1,d=[e.bMarks[t]],e.bMarks[t]=A;A=D,v=[e.sCount[t]],e.sCount[t]=f-c,b=[e.tShift[t]],e.tShift[t]=A-e.bMarks[t],C=e.md.block.ruler.getRules("blockquote"),_=e.parentType,e.parentType="blockquote",h=t+1;h=(D=e.eMarks[h])));h++)if(62!==e.src.charCodeAt(A++)||w){if(u)break;for(y=!1,a=0,l=C.length;a=D,m.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+(k?1:0),v.push(e.sCount[h]),e.sCount[h]=f-c,b.push(e.tShift[h]),e.tShift[h]=A-e.bMarks[h]}for(g=e.blkIndent,e.blkIndent=0,(x=e.push("blockquote_open","blockquote",1)).markup=">",x.map=p=[t,0],e.md.block.tokenize(e,t,h),(x=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=E,e.parentType=_,p[1]=e.line,a=0;a=4))break;o=++n}return e.line=o,(i=e.push("code_block","code",0)).content=e.getLines(t,o,4+e.blkIndent,!1)+"\n",i.map=[t,e.line],!0}},13542:function(e){"use strict";e.exports=function(e,t,r,n){var o,i,s,a,c,l,u,p=!1,h=e.bMarks[t]+e.tShift[t],f=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(h+3>f)return!1;if(126!==(o=e.src.charCodeAt(h))&&96!==o)return!1;if(c=h,(i=(h=e.skipChars(h,o))-c)<3)return!1;if(u=e.src.slice(c,h),s=e.src.slice(h,f),96===o&&s.indexOf(String.fromCharCode(o))>=0)return!1;if(n)return!0;for(a=t;!(++a>=r)&&!((h=c=e.bMarks[a]+e.tShift[a])<(f=e.eMarks[a])&&e.sCount[a]=4)&&!((h=e.skipChars(h,o))-c=4)return!1;if(35!==(i=e.src.charCodeAt(l))||l>=u)return!1;for(s=1,i=e.src.charCodeAt(++l);35===i&&l6||ll&&n(e.src.charCodeAt(a-1))&&(u=a),e.line=t+1,(c=e.push("heading_open","h"+String(s),1)).markup="########".slice(0,s),c.map=[t,e.line],(c=e.push("inline","",0)).content=e.src.slice(l,u).trim(),c.map=[t,e.line],c.children=[],(c=e.push("heading_close","h"+String(s),-1)).markup="########".slice(0,s)),!0)}},35634:function(e,t,r){"use strict";var n=r(67022).isSpace;e.exports=function(e,t,r,o){var i,s,a,c,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(i=e.src.charCodeAt(l++))&&45!==i&&95!==i)return!1;for(s=1;l|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(o.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,r,n){var o,s,a,c,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(l))return!1;for(c=e.src.slice(l,u),o=0;o=4)return!1;for(h=e.parentType,e.parentType="paragraph";f3)){if(e.sCount[f]>=e.blkIndent&&(c=e.bMarks[f]+e.tShift[f])<(l=e.eMarks[f])&&(45===(p=e.src.charCodeAt(c))||61===p)&&(c=e.skipChars(c,p),(c=e.skipSpaces(c))>=l)){u=61===p?1:2;break}if(!(e.sCount[f]<0)){for(o=!1,i=0,s=d.length;i=s)return-1;if((r=e.src.charCodeAt(i++))<48||r>57)return-1;for(;;){if(i>=s)return-1;if(!((r=e.src.charCodeAt(i++))>=48&&r<=57)){if(41===r||46===r)break;return-1}if(i-o>=10)return-1}return i=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]=e.blkIndent&&(I=!0),(q=i(e,t))>=0){if(h=!0,S=e.bMarks[t]+e.tShift[t],v=Number(e.src.slice(S,q-1)),I&&1!==v)return!1}else{if(!((q=o(e,t))>=0))return!1;h=!1}if(I&&e.skipSpaces(q)>=e.eMarks[t])return!1;if(_=e.src.charCodeAt(q-1),n)return!0;for(g=e.tokens.length,h?(z=e.push("ordered_list_open","ol",1),1!==v&&(z.attrs=[["start",v]])):z=e.push("bullet_list_open","ul",1),z.map=m=[t,0],z.markup=String.fromCharCode(_),k=t,F=!1,Z=e.md.block.ruler.getRules("list"),x=e.parentType,e.parentType="list";k=b?1:y-p)>4&&(u=1),l=p+u,(z=e.push("list_item_open","li",1)).markup=String.fromCharCode(_),z.map=f=[t,0],h&&(z.info=e.src.slice(S,q-1)),A=e.tight,E=e.tShift[t],w=e.sCount[t],C=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=l,e.tight=!0,e.tShift[t]=a-e.bMarks[t],e.sCount[t]=y,a>=b&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,t,r,!0),e.tight&&!F||(R=!1),F=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=C,e.tShift[t]=E,e.sCount[t]=w,e.tight=A,(z=e.push("list_item_close","li",-1)).markup=String.fromCharCode(_),k=t=e.line,f[1]=k,a=e.bMarks[t],k>=r)break;if(e.sCount[k]=4)break;for(L=!1,c=0,d=Z.length;c3)&&!(e.sCount[c]<0)){for(n=!1,o=0,i=l.length;o=4)return!1;if(91!==e.src.charCodeAt(x))return!1;for(;++x3)&&!(e.sCount[E]<0)){for(b=!1,p=0,h=k.length;p0&&this.level++,this.tokens.push(o),o},i.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},i.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;et;)if(!o(this.src.charCodeAt(--e)))return e+1;return e},i.prototype.skipChars=function(e,t){for(var r=this.src.length;er;)if(t!==this.src.charCodeAt(--e))return e+1;return e},i.prototype.getLines=function(e,t,r,n){var i,s,a,c,l,u,p,h=e;if(e>=t)return"";for(u=new Array(t-e),i=0;hr?new Array(s-r+1).join(" ")+this.src.slice(c,l):this.src.slice(c,l)}return u.join("")},i.prototype.Token=n,e.exports=i},91785:function(e,t,r){"use strict";var n=r(67022).isSpace;function o(e,t){var r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.slice(r,n)}function i(e){var t,r=[],n=0,o=e.length,i=!1,s=0,a="";for(t=e.charCodeAt(n);nr)return!1;if(h=t+1,e.sCount[h]=4)return!1;if((l=e.bMarks[h]+e.tShift[h])>=e.eMarks[h])return!1;if(124!==(x=e.src.charCodeAt(l++))&&45!==x&&58!==x)return!1;if(l>=e.eMarks[h])return!1;if(124!==(w=e.src.charCodeAt(l++))&&45!==w&&58!==w&&!n(w))return!1;if(45===x&&n(w))return!1;for(;l=4)return!1;if((f=i(c)).length&&""===f[0]&&f.shift(),f.length&&""===f[f.length-1]&&f.pop(),0===(d=f.length)||d!==g.length)return!1;if(s)return!0;for(k=e.parentType,e.parentType="table",C=e.md.block.ruler.getRules("blockquote"),(m=e.push("table_open","table",1)).map=v=[t,0],(m=e.push("thead_open","thead",1)).map=[t,t+1],(m=e.push("tr_open","tr",1)).map=[t,t+1],u=0;u=4)break;for((f=i(c)).length&&""===f[0]&&f.shift(),f.length&&""===f[f.length-1]&&f.pop(),h===t+2&&((m=e.push("tbody_open","tbody",1)).map=b=[t+2,0]),(m=e.push("tr_open","tr",1)).map=[h,h+1],u=0;u/i.test(e)}e.exports=function(e){var t,r,i,s,a,c,l,u,p,h,f,d,m,g,_,v,b,k,y=e.tokens;if(e.md.options.linkify)for(r=0,i=y.length;r=0;t--)if("link_close"!==(c=s[t]).type){if("html_inline"===c.type&&(k=c.content,/^\s]/i.test(k)&&m>0&&m--,o(c.content)&&m++),!(m>0)&&"text"===c.type&&e.md.linkify.test(c.content)){for(p=c.content,b=e.md.linkify.match(p),l=[],d=c.level,f=0,b.length>0&&0===b[0].index&&t>0&&"text_special"===s[t-1].type&&(b=b.slice(1)),u=0;uf&&((a=new e.Token("text","",0)).content=p.slice(f,h),a.level=d,l.push(a)),(a=new e.Token("link_open","a",1)).attrs=[["href",_]],a.level=d++,a.markup="linkify",a.info="auto",l.push(a),(a=new e.Token("text","",0)).content=v,a.level=d,l.push(a),(a=new e.Token("link_close","a",-1)).level=--d,a.markup="linkify",a.info="auto",l.push(a),f=b[u].lastIndex);f=0;t--)"text"!==(r=e[t]).type||o||(r.content=r.content.replace(n,i)),"link_open"===r.type&&"auto"===r.info&&o--,"link_close"===r.type&&"auto"===r.info&&o++}function a(e){var r,n,o=0;for(r=e.length-1;r>=0;r--)"text"!==(n=e[r]).type||o||t.test(n.content)&&(n.content=n.content.replace(/\+-/g,"\xb1").replace(/\.{2,}/g,"\u2026").replace(/([?!])\u2026/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1\u2014").replace(/(^|\s)--(?=\s|$)/gm,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1\u2013")),"link_open"===n.type&&"auto"===n.info&&o--,"link_close"===n.type&&"auto"===n.info&&o++}e.exports=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)"inline"===e.tokens[n].type&&(r.test(e.tokens[n].content)&&s(e.tokens[n].children),t.test(e.tokens[n].content)&&a(e.tokens[n].children))}},58450:function(e,t,r){"use strict";var n=r(67022).isWhiteSpace,o=r(67022).isPunctChar,i=r(67022).isMdAsciiPunct,s=/['"]/,a=/['"]/g;function c(e,t,r){return e.slice(0,t)+r+e.slice(t+1)}function l(e,t){var r,s,l,u,p,h,f,d,m,g,_,v,b,k,y,C,x,w,E,A,D;for(E=[],r=0;r=0&&!(E[x].level<=f);x--);if(E.length=x+1,"text"===s.type){p=0,h=(l=s.content).length;e:for(;p=0)m=l.charCodeAt(u.index-1);else for(x=r-1;x>=0&&("softbreak"!==e[x].type&&"hardbreak"!==e[x].type);x--)if(e[x].content){m=e[x].content.charCodeAt(e[x].content.length-1);break}if(g=32,p=48&&m<=57&&(C=y=!1),y&&C&&(y=_,C=v),y||C){if(C)for(x=E.length-1;x>=0&&(d=E[x],!(E[x].level=0;t--)"inline"===e.tokens[t].type&&s.test(e.tokens[t].content)&&l(e.tokens[t].children,e)}},16480:function(e,t,r){"use strict";var n=r(75872);function o(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}o.prototype.Token=n,e.exports=o},46633:function(e){"use strict";e.exports=function(e){var t,r,n,o,i,s,a=e.tokens;for(t=0,r=a.length;t\x00-\x20]*)$/;e.exports=function(e,n){var o,i,s,a,c,l,u=e.pos;if(60!==e.src.charCodeAt(u))return!1;for(c=e.pos,l=e.posMax;;){if(++u>=l)return!1;if(60===(a=e.src.charCodeAt(u)))return!1;if(62===a)break}return o=e.src.slice(c+1,u),r.test(o)?(i=e.md.normalizeLink(o),!!e.md.validateLink(i)&&(n||((s=e.push("link_open","a",1)).attrs=[["href",i]],s.markup="autolink",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(o),(s=e.push("link_close","a",-1)).markup="autolink",s.info="auto"),e.pos+=o.length+2,!0)):!!t.test(o)&&(i=e.md.normalizeLink("mailto:"+o),!!e.md.validateLink(i)&&(n||((s=e.push("link_open","a",1)).attrs=[["href",i]],s.markup="autolink",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(o),(s=e.push("link_close","a",-1)).markup="autolink",s.info="auto"),e.pos+=o.length+2,!0))}},79755:function(e){"use strict";e.exports=function(e,t){var r,n,o,i,s,a,c,l,u=e.pos;if(96!==e.src.charCodeAt(u))return!1;for(r=u,u++,n=e.posMax;us;n-=d[n]+1)if((i=t[n]).marker===o.marker&&i.open&&i.end<0&&(c=!1,(i.close||o.open)&&(i.length+o.length)%3===0&&(i.length%3===0&&o.length%3===0||(c=!0)),!c)){l=n>0&&!t[n-1].open?d[n-1]+1:0,d[r]=r-n+l,d[n]=l,o.open=!1,i.end=r,i.close=!1,a=-1,f=-2;break}-1!==a&&(u[o.marker][(o.open?3:0)+(o.length||0)%3]=a)}}}e.exports=function(e){var r,n=e.tokens_meta,o=e.tokens_meta.length;for(t(0,e.delimiters),r=0;r=0;r--)95!==(n=t[r]).marker&&42!==n.marker||-1!==n.end&&(o=t[n.end],a=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===o.token+1,s=String.fromCharCode(n.marker),(i=e.tokens[n.token]).type=a?"strong_open":"em_open",i.tag=a?"strong":"em",i.nesting=1,i.markup=a?s+s:s,i.content="",(i=e.tokens[o.token]).type=a?"strong_close":"em_close",i.tag=a?"strong":"em",i.nesting=-1,i.markup=a?s+s:s,i.content="",a&&(e.tokens[t[r-1].token].content="",e.tokens[t[n.end+1].token].content="",r--))}e.exports.w=function(e,t){var r,n,o=e.pos,i=e.src.charCodeAt(o);if(t)return!1;if(95!==i&&42!==i)return!1;for(n=e.scanDelims(e.pos,42===i),r=0;r=h)return!1;if(35===e.src.charCodeAt(p+1)){if(l=e.src.slice(p).match(a))return t||(r="x"===l[1][0].toLowerCase()?parseInt(l[1].slice(1),16):parseInt(l[1],10),(u=e.push("text_special","",0)).content=i(r)?s(r):s(65533),u.markup=l[0],u.info="entity"),e.pos+=l[0].length,!0}else if((l=e.src.slice(p).match(c))&&o(n,l[1]))return t||((u=e.push("text_special","",0)).content=n[l[1]],u.markup=l[0],u.info="entity"),e.pos+=l[0].length,!0;return!1}},1917:function(e,t,r){"use strict";for(var n=r(67022).isSpace,o=[],i=0;i<256;i++)o.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){o[e.charCodeAt(0)]=1})),e.exports=function(e,t){var r,i,s,a,c,l=e.pos,u=e.posMax;if(92!==e.src.charCodeAt(l))return!1;if(++l>=u)return!1;if(10===(r=e.src.charCodeAt(l))){for(t||e.push("hardbreak","br",0),l++;l=55296&&r<=56319&&l+1=56320&&i<=57343&&(a+=e.src[l+1],l++),s="\\"+a,t||(c=e.push("text_special","",0),r<256&&0!==o[r]?c.content=a:c.content=s,c.markup=s,c.info="escape"),e.pos=l+1,!0}},69969:function(e){"use strict";e.exports=function(e){var t,r,n=0,o=e.tokens,i=e.tokens.length;for(t=r=0;t0&&n++,"text"===o[t].type&&t+1=i)&&(!(33!==(r=e.src.charCodeAt(c+1))&&63!==r&&47!==r&&!function(e){var t=32|e;return t>=97&&t<=122}(r))&&(!!(o=e.src.slice(c).match(n))&&(t||((s=e.push("html_inline","",0)).content=e.src.slice(c,c+o[0].length),a=s.content,/^\s]/i.test(a)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(s.content)&&e.linkLevel--),e.pos+=o[0].length,!0))))}},83006:function(e,t,r){"use strict";var n=r(67022).normalizeReference,o=r(67022).isSpace;e.exports=function(e,t){var r,i,s,a,c,l,u,p,h,f,d,m,g,_="",v=e.pos,b=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(l=e.pos+2,(c=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((u=c+1)=b)return!1;for(g=u,(h=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok&&(_=e.md.normalizeLink(h.str),e.md.validateLink(_)?u=h.pos:_=""),g=u;u=b||41!==e.src.charCodeAt(u))return e.pos=v,!1;u++}else{if("undefined"===typeof e.env.references)return!1;if(u=0?a=e.src.slice(g,u++):u=c+1):u=c+1,a||(a=e.src.slice(l,c)),!(p=e.env.references[n(a)]))return e.pos=v,!1;_=p.href,f=p.title}return t||(s=e.src.slice(l,c),e.md.inline.parse(s,e.md,e.env,m=[]),(d=e.push("image","img",0)).attrs=r=[["src",_],["alt",""]],d.children=m,d.content=s,f&&r.push(["title",f])),e.pos=u,e.posMax=b,!0}},81727:function(e,t,r){"use strict";var n=r(67022).normalizeReference,o=r(67022).isSpace;e.exports=function(e,t){var r,i,s,a,c,l,u,p,h="",f="",d=e.pos,m=e.posMax,g=e.pos,_=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(c=e.pos+1,(a=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((l=a+1)=m)return!1;if(g=l,(u=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok){for(h=e.md.normalizeLink(u.str),e.md.validateLink(h)?l=u.pos:h="",g=l;l=m||41!==e.src.charCodeAt(l))&&(_=!0),l++}if(_){if("undefined"===typeof e.env.references)return!1;if(l=0?s=e.src.slice(g,l++):l=a+1):l=a+1,s||(s=e.src.slice(c,a)),!(p=e.env.references[n(s)]))return e.pos=d,!1;h=p.href,f=p.title}return t||(e.pos=c,e.posMax=a,e.push("link_open","a",1).attrs=r=[["href",h]],f&&r.push(["title",f]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)),e.pos=l,e.posMax=m,!0}},12906:function(e){"use strict";var t=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;e.exports=function(e,r){var n,o,i,s,a,c,l;return!!e.md.options.linkify&&(!(e.linkLevel>0)&&(!((n=e.pos)+3>e.posMax)&&(58===e.src.charCodeAt(n)&&(47===e.src.charCodeAt(n+1)&&(47===e.src.charCodeAt(n+2)&&(!!(o=e.pending.match(t))&&(i=o[1],!!(s=e.md.linkify.matchAtStart(e.src.slice(n-i.length)))&&(a=(a=s.url).replace(/\*+$/,""),c=e.md.normalizeLink(a),!!e.md.validateLink(c)&&(r||(e.pending=e.pending.slice(0,-i.length),(l=e.push("link_open","a",1)).attrs=[["href",c]],l.markup="linkify",l.info="auto",(l=e.push("text","",0)).content=e.md.normalizeLinkText(a),(l=e.push("link_close","a",-1)).markup="linkify",l.info="auto"),e.pos+=a.length-i.length,!0)))))))))}},43905:function(e,t,r){"use strict";var n=r(67022).isSpace;e.exports=function(e,t){var r,o,i,s=e.pos;if(10!==e.src.charCodeAt(s))return!1;if(r=e.pending.length-1,o=e.posMax,!t)if(r>=0&&32===e.pending.charCodeAt(r))if(r>=1&&32===e.pending.charCodeAt(r-1)){for(i=r-1;i>=1&&32===e.pending.charCodeAt(i-1);)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(s++;s0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(i),o},a.prototype.scanDelims=function(e,t){var r,n,a,c,l,u,p,h,f,d=e,m=!0,g=!0,_=this.posMax,v=this.src.charCodeAt(e);for(r=e>0?this.src.charCodeAt(e-1):32;d<_&&this.src.charCodeAt(d)===v;)d++;return a=d-e,n=d<_?this.src.charCodeAt(d):32,p=s(r)||i(String.fromCharCode(r)),f=s(n)||i(String.fromCharCode(n)),u=o(r),(h=o(n))?m=!1:f&&(u||p||(m=!1)),u?g=!1:p&&(h||f||(g=!1)),t?(c=m,l=g):(c=m&&(!g||p),l=g&&(!m||f)),{can_open:c,can_close:l,length:a}},a.prototype.Token=n,e.exports=a},44814:function(e){"use strict";function t(e,t){var r,n,o,i,s,a=[],c=t.length;for(r=0;r=0&&(r=this.attrs[t][1]),r},t.prototype.attrJoin=function(e,t){var r=this.attrIndex(e);r<0?this.attrPush([e,t]):this.attrs[r][1]=this.attrs[r][1]+" "+t},e.exports=t},83122:function(e){"use strict";var t={};function r(e,n){var o;return"string"!==typeof n&&(n=r.defaultChars),o=function(e){var r,n,o=t[e];if(o)return o;for(o=t[e]=[],r=0;r<128;r++)n=String.fromCharCode(r),o.push(n);for(r=0;r=55296&&c<=57343?"\ufffd\ufffd\ufffd":String.fromCharCode(c),t+=6):240===(248&n)&&t+91114111?l+="\ufffd\ufffd\ufffd\ufffd":(c-=65536,l+=String.fromCharCode(55296+(c>>10),56320+(1023&c))),t+=9):l+="\ufffd";return l}))}r.defaultChars=";/?:@&=+$,#",r.componentChars="",e.exports=r},70729:function(e){"use strict";var t={};function r(e,n,o){var i,s,a,c,l,u="";for("string"!==typeof n&&(o=n,n=r.defaultChars),"undefined"===typeof o&&(o=!0),l=function(e){var r,n,o=t[e];if(o)return o;for(o=t[e]=[],r=0;r<128;r++)n=String.fromCharCode(r),/^[0-9a-z]$/i.test(n)?o.push(n):o.push("%"+("0"+r.toString(16).toUpperCase()).slice(-2));for(r=0;r=55296&&a<=57343){if(a>=55296&&a<=56319&&i+1=56320&&c<=57343){u+=encodeURIComponent(e[i]+e[i+1]),i++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[i]);return u}r.defaultChars=";/?:@&=+$,-_.!~*'()#",r.componentChars="-_.!~*'()",e.exports=r},2201:function(e){"use strict";e.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}},48765:function(e,t,r){"use strict";e.exports.encode=r(70729),e.exports.decode=r(83122),e.exports.format=r(2201),e.exports.parse=r(9553)},9553:function(e){"use strict";function t(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var r=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,o=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,i=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),s=["'"].concat(i),a=["%","/","?",";","#"].concat(s),c=["/","?","#"],l=/^[+a-z0-9A-Z_-]{0,63}$/,u=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},h={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};t.prototype.parse=function(e,t){var n,i,s,f,d,m=e;if(m=m.trim(),!t&&1===e.split("#").length){var g=o.exec(m);if(g)return this.pathname=g[1],g[2]&&(this.search=g[2]),this}var _=r.exec(m);if(_&&(s=(_=_[0]).toLowerCase(),this.protocol=_,m=m.substr(_.length)),(t||_||m.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(d="//"===m.substr(0,2))||_&&p[_]||(m=m.substr(2),this.slashes=!0)),!p[_]&&(d||_&&!h[_])){var v,b,k=-1;for(n=0;n127?E+="x":E+=w[A];if(!E.match(l)){var q=x.slice(0,n),F=x.slice(n+1),S=w.match(u);S&&(q.push(S[1]),F.unshift(S[2])),F.length&&(m=F.join(".")+m),this.hostname=q.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var L=m.indexOf("#");-1!==L&&(this.hash=m.substr(L),m=m.slice(0,L));var Z=m.indexOf("?");return-1!==Z&&(this.search=m.substr(Z),m=m.slice(0,Z)),m&&(this.pathname=m),h[s]&&this.hostname&&!this.pathname&&(this.pathname=""),this},t.prototype.parseHost=function(e){var t=n.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,r){if(e&&e instanceof t)return e;var n=new t;return n.parse(e,r),n}},90638:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(96856).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=s.default,i={loading:function(e){e.error,e.isLoading;return e.pastDelay,null}};n(e,Promise)?i.loader=function(){return e}:"function"===typeof e?i.loader=e:"object"===typeof e&&(i=o({},i,e));if((i=o({},i,t)).suspense)throw new Error("Invalid suspense option usage in next/dynamic. Read more: https://nextjs.org/docs/messages/invalid-dynamic-suspense");i.loadableGenerated&&delete(i=o({},i,i.loadableGenerated)).loadableGenerated;if("boolean"===typeof i.ssr&&!i.suspense){if(!i.ssr)return delete i.ssr,a(r,i);delete i.ssr}return r(i)},t.noSSR=a;var o=r(6495).Z,i=r(92648).Z,s=(i(r(67294)),i(r(14302)));function a(e,t){return delete t.webpack,delete t.modules,e(t)}("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16319:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoadableContext=void 0;var n=(0,r(92648).Z)(r(67294)).default.createContext(null);t.LoadableContext=n},14302:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(79658).Z,o=r(7222).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(6495).Z,s=(0,r(92648).Z)(r(67294)),a=r(16319),c=r(61688).useSyncExternalStore,l=[],u=[],p=!1;function h(e){var t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then((function(e){return r.loading=!1,r.loaded=e,e})).catch((function(e){throw r.loading=!1,r.error=e,e})),r}var f=function(){function e(t,r){n(this,e),this._loadFn=t,this._opts=r,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return o(e,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var t=this._res,r=this._opts;t.loading&&("number"===typeof r.delay&&(0===r.delay?this._state.pastDelay=!0:this._delay=setTimeout((function(){e._update({pastDelay:!0})}),r.delay)),"number"===typeof r.timeout&&(this._timeout=setTimeout((function(){e._update({timedOut:!0})}),r.timeout))),this._res.promise.then((function(){e._update({}),e._clearTimeouts()})).catch((function(t){e._update({}),e._clearTimeouts()})),this._update({})}},{key:"_update",value:function(e){this._state=i({},this._state,{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},e),this._callbacks.forEach((function(e){return e()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks.delete(e)}}}]),e}();function d(e){return function(e,t){var r=function(){if(!l){var t=new f(e,o);l={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return l.promise()},n=function(){r();var e=s.default.useContext(a.LoadableContext);e&&Array.isArray(o.modules)&&o.modules.forEach((function(t){e(t)}))},o=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null,suspense:!1},t);o.suspense&&(o.lazy=s.default.lazy(o.loader));var l=null;if(!p){var h=o.webpack?o.webpack():o.modules;h&&u.push((function(e){var t=!0,n=!1,o=void 0;try{for(var i,s=h[Symbol.iterator]();!(t=(i=s.next()).done);t=!0){var a=i.value;if(-1!==e.indexOf(a))return r()}}catch(c){n=!0,o=c}finally{try{t||null==s.return||s.return()}finally{if(n)throw o}}}))}var d=o.suspense?function(e,t){return n(),s.default.createElement(o.lazy,i({},e,{ref:t}))}:function(e,t){n();var r=c(l.subscribe,l.getCurrentValue,l.getCurrentValue);return s.default.useImperativeHandle(t,(function(){return{retry:l.retry}}),[]),s.default.useMemo((function(){return r.loading||r.error?s.default.createElement(o.loading,{isLoading:r.loading,pastDelay:r.pastDelay,timedOut:r.timedOut,error:r.error,retry:l.retry}):r.loaded?s.default.createElement((t=r.loaded)&&t.__esModule?t.default:t,e):null;var t}),[e,r])};return d.preload=function(){return r()},d.displayName="LoadableComponent",s.default.forwardRef(d)}(h,e)}function m(e,t){for(var r=[];e.length;){var n=e.pop();r.push(n(t))}return Promise.all(r).then((function(){if(e.length)return m(e,t)}))}d.preloadAll=function(){return new Promise((function(e,t){m(l).then(e,t)}))},d.preloadReady=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var r=function(){return p=!0,t()};m(u,e).then(r,r)}))},window.__NEXT_PRELOADREADY=d.preloadReady;var g=d;t.default=g},69596:function(){},5152:function(e,t,r){e.exports=r(90638)},3689:function(e,t,r){"use strict";r.r(t),r.d(t,{decode:function(){return _},encode:function(){return v},toASCII:function(){return k},toUnicode:function(){return b},ucs2decode:function(){return f},ucs2encode:function(){return d}});const n=2147483647,o=36,i=/^xn--/,s=/[^\0-\x7E]/,a=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},l=Math.floor,u=String.fromCharCode;function p(e){throw new RangeError(c[e])}function h(e,t){const r=e.split("@");let n="";r.length>1&&(n=r[0]+"@",e=r[1]);const o=function(e,t){const r=[];let n=e.length;for(;n--;)r[n]=t(e[n]);return r}((e=e.replace(a,".")).split("."),t).join(".");return n+o}function f(e){const t=[];let r=0;const n=e.length;for(;r=55296&&o<=56319&&rString.fromCodePoint(...e),m=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},g=function(e,t,r){let n=0;for(e=r?l(e/700):e>>1,e+=l(e/t);e>455;n+=o)e=l(e/35);return l(n+36*e/(e+38))},_=function(e){const t=[],r=e.length;let i=0,s=128,a=72,c=e.lastIndexOf("-");c<0&&(c=0);for(let n=0;n=128&&p("not-basic"),t.push(e.charCodeAt(n));for(let h=c>0?c+1:0;h=r&&p("invalid-input");const c=(u=e.charCodeAt(h++))-48<10?u-22:u-65<26?u-65:u-97<26?u-97:o;(c>=o||c>l((n-i)/t))&&p("overflow"),i+=c*t;const f=s<=a?1:s>=a+26?26:s-a;if(cl(n/d)&&p("overflow"),t*=d}const f=t.length+1;a=g(i-c,f,0==c),l(i/f)>n-s&&p("overflow"),s+=l(i/f),i%=f,t.splice(i++,0,s)}var u;return String.fromCodePoint(...t)},v=function(e){const t=[];let r=(e=f(e)).length,i=128,s=0,a=72;for(const n of e)n<128&&t.push(u(n));let c=t.length,h=c;for(c&&t.push("-");h=i&&tl((n-s)/f)&&p("overflow"),s+=(r-i)*f,i=r;for(const d of e)if(dn&&p("overflow"),d==i){let e=s;for(let r=o;;r+=o){const n=r<=a?1:r>=a+26?26:r-a;if(e","GT":">","Gt":"\u226b","gtdot":"\u22d7","gtlPar":"\u2995","gtquest":"\u2a7c","gtrapprox":"\u2a86","gtrarr":"\u2978","gtrdot":"\u22d7","gtreqless":"\u22db","gtreqqless":"\u2a8c","gtrless":"\u2277","gtrsim":"\u2273","gvertneqq":"\u2269\ufe00","gvnE":"\u2269\ufe00","Hacek":"\u02c7","hairsp":"\u200a","half":"\xbd","hamilt":"\u210b","HARDcy":"\u042a","hardcy":"\u044a","harrcir":"\u2948","harr":"\u2194","hArr":"\u21d4","harrw":"\u21ad","Hat":"^","hbar":"\u210f","Hcirc":"\u0124","hcirc":"\u0125","hearts":"\u2665","heartsuit":"\u2665","hellip":"\u2026","hercon":"\u22b9","hfr":"\ud835\udd25","Hfr":"\u210c","HilbertSpace":"\u210b","hksearow":"\u2925","hkswarow":"\u2926","hoarr":"\u21ff","homtht":"\u223b","hookleftarrow":"\u21a9","hookrightarrow":"\u21aa","hopf":"\ud835\udd59","Hopf":"\u210d","horbar":"\u2015","HorizontalLine":"\u2500","hscr":"\ud835\udcbd","Hscr":"\u210b","hslash":"\u210f","Hstrok":"\u0126","hstrok":"\u0127","HumpDownHump":"\u224e","HumpEqual":"\u224f","hybull":"\u2043","hyphen":"\u2010","Iacute":"\xcd","iacute":"\xed","ic":"\u2063","Icirc":"\xce","icirc":"\xee","Icy":"\u0418","icy":"\u0438","Idot":"\u0130","IEcy":"\u0415","iecy":"\u0435","iexcl":"\xa1","iff":"\u21d4","ifr":"\ud835\udd26","Ifr":"\u2111","Igrave":"\xcc","igrave":"\xec","ii":"\u2148","iiiint":"\u2a0c","iiint":"\u222d","iinfin":"\u29dc","iiota":"\u2129","IJlig":"\u0132","ijlig":"\u0133","Imacr":"\u012a","imacr":"\u012b","image":"\u2111","ImaginaryI":"\u2148","imagline":"\u2110","imagpart":"\u2111","imath":"\u0131","Im":"\u2111","imof":"\u22b7","imped":"\u01b5","Implies":"\u21d2","incare":"\u2105","in":"\u2208","infin":"\u221e","infintie":"\u29dd","inodot":"\u0131","intcal":"\u22ba","int":"\u222b","Int":"\u222c","integers":"\u2124","Integral":"\u222b","intercal":"\u22ba","Intersection":"\u22c2","intlarhk":"\u2a17","intprod":"\u2a3c","InvisibleComma":"\u2063","InvisibleTimes":"\u2062","IOcy":"\u0401","iocy":"\u0451","Iogon":"\u012e","iogon":"\u012f","Iopf":"\ud835\udd40","iopf":"\ud835\udd5a","Iota":"\u0399","iota":"\u03b9","iprod":"\u2a3c","iquest":"\xbf","iscr":"\ud835\udcbe","Iscr":"\u2110","isin":"\u2208","isindot":"\u22f5","isinE":"\u22f9","isins":"\u22f4","isinsv":"\u22f3","isinv":"\u2208","it":"\u2062","Itilde":"\u0128","itilde":"\u0129","Iukcy":"\u0406","iukcy":"\u0456","Iuml":"\xcf","iuml":"\xef","Jcirc":"\u0134","jcirc":"\u0135","Jcy":"\u0419","jcy":"\u0439","Jfr":"\ud835\udd0d","jfr":"\ud835\udd27","jmath":"\u0237","Jopf":"\ud835\udd41","jopf":"\ud835\udd5b","Jscr":"\ud835\udca5","jscr":"\ud835\udcbf","Jsercy":"\u0408","jsercy":"\u0458","Jukcy":"\u0404","jukcy":"\u0454","Kappa":"\u039a","kappa":"\u03ba","kappav":"\u03f0","Kcedil":"\u0136","kcedil":"\u0137","Kcy":"\u041a","kcy":"\u043a","Kfr":"\ud835\udd0e","kfr":"\ud835\udd28","kgreen":"\u0138","KHcy":"\u0425","khcy":"\u0445","KJcy":"\u040c","kjcy":"\u045c","Kopf":"\ud835\udd42","kopf":"\ud835\udd5c","Kscr":"\ud835\udca6","kscr":"\ud835\udcc0","lAarr":"\u21da","Lacute":"\u0139","lacute":"\u013a","laemptyv":"\u29b4","lagran":"\u2112","Lambda":"\u039b","lambda":"\u03bb","lang":"\u27e8","Lang":"\u27ea","langd":"\u2991","langle":"\u27e8","lap":"\u2a85","Laplacetrf":"\u2112","laquo":"\xab","larrb":"\u21e4","larrbfs":"\u291f","larr":"\u2190","Larr":"\u219e","lArr":"\u21d0","larrfs":"\u291d","larrhk":"\u21a9","larrlp":"\u21ab","larrpl":"\u2939","larrsim":"\u2973","larrtl":"\u21a2","latail":"\u2919","lAtail":"\u291b","lat":"\u2aab","late":"\u2aad","lates":"\u2aad\ufe00","lbarr":"\u290c","lBarr":"\u290e","lbbrk":"\u2772","lbrace":"{","lbrack":"[","lbrke":"\u298b","lbrksld":"\u298f","lbrkslu":"\u298d","Lcaron":"\u013d","lcaron":"\u013e","Lcedil":"\u013b","lcedil":"\u013c","lceil":"\u2308","lcub":"{","Lcy":"\u041b","lcy":"\u043b","ldca":"\u2936","ldquo":"\u201c","ldquor":"\u201e","ldrdhar":"\u2967","ldrushar":"\u294b","ldsh":"\u21b2","le":"\u2264","lE":"\u2266","LeftAngleBracket":"\u27e8","LeftArrowBar":"\u21e4","leftarrow":"\u2190","LeftArrow":"\u2190","Leftarrow":"\u21d0","LeftArrowRightArrow":"\u21c6","leftarrowtail":"\u21a2","LeftCeiling":"\u2308","LeftDoubleBracket":"\u27e6","LeftDownTeeVector":"\u2961","LeftDownVectorBar":"\u2959","LeftDownVector":"\u21c3","LeftFloor":"\u230a","leftharpoondown":"\u21bd","leftharpoonup":"\u21bc","leftleftarrows":"\u21c7","leftrightarrow":"\u2194","LeftRightArrow":"\u2194","Leftrightarrow":"\u21d4","leftrightarrows":"\u21c6","leftrightharpoons":"\u21cb","leftrightsquigarrow":"\u21ad","LeftRightVector":"\u294e","LeftTeeArrow":"\u21a4","LeftTee":"\u22a3","LeftTeeVector":"\u295a","leftthreetimes":"\u22cb","LeftTriangleBar":"\u29cf","LeftTriangle":"\u22b2","LeftTriangleEqual":"\u22b4","LeftUpDownVector":"\u2951","LeftUpTeeVector":"\u2960","LeftUpVectorBar":"\u2958","LeftUpVector":"\u21bf","LeftVectorBar":"\u2952","LeftVector":"\u21bc","lEg":"\u2a8b","leg":"\u22da","leq":"\u2264","leqq":"\u2266","leqslant":"\u2a7d","lescc":"\u2aa8","les":"\u2a7d","lesdot":"\u2a7f","lesdoto":"\u2a81","lesdotor":"\u2a83","lesg":"\u22da\ufe00","lesges":"\u2a93","lessapprox":"\u2a85","lessdot":"\u22d6","lesseqgtr":"\u22da","lesseqqgtr":"\u2a8b","LessEqualGreater":"\u22da","LessFullEqual":"\u2266","LessGreater":"\u2276","lessgtr":"\u2276","LessLess":"\u2aa1","lesssim":"\u2272","LessSlantEqual":"\u2a7d","LessTilde":"\u2272","lfisht":"\u297c","lfloor":"\u230a","Lfr":"\ud835\udd0f","lfr":"\ud835\udd29","lg":"\u2276","lgE":"\u2a91","lHar":"\u2962","lhard":"\u21bd","lharu":"\u21bc","lharul":"\u296a","lhblk":"\u2584","LJcy":"\u0409","ljcy":"\u0459","llarr":"\u21c7","ll":"\u226a","Ll":"\u22d8","llcorner":"\u231e","Lleftarrow":"\u21da","llhard":"\u296b","lltri":"\u25fa","Lmidot":"\u013f","lmidot":"\u0140","lmoustache":"\u23b0","lmoust":"\u23b0","lnap":"\u2a89","lnapprox":"\u2a89","lne":"\u2a87","lnE":"\u2268","lneq":"\u2a87","lneqq":"\u2268","lnsim":"\u22e6","loang":"\u27ec","loarr":"\u21fd","lobrk":"\u27e6","longleftarrow":"\u27f5","LongLeftArrow":"\u27f5","Longleftarrow":"\u27f8","longleftrightarrow":"\u27f7","LongLeftRightArrow":"\u27f7","Longleftrightarrow":"\u27fa","longmapsto":"\u27fc","longrightarrow":"\u27f6","LongRightArrow":"\u27f6","Longrightarrow":"\u27f9","looparrowleft":"\u21ab","looparrowright":"\u21ac","lopar":"\u2985","Lopf":"\ud835\udd43","lopf":"\ud835\udd5d","loplus":"\u2a2d","lotimes":"\u2a34","lowast":"\u2217","lowbar":"_","LowerLeftArrow":"\u2199","LowerRightArrow":"\u2198","loz":"\u25ca","lozenge":"\u25ca","lozf":"\u29eb","lpar":"(","lparlt":"\u2993","lrarr":"\u21c6","lrcorner":"\u231f","lrhar":"\u21cb","lrhard":"\u296d","lrm":"\u200e","lrtri":"\u22bf","lsaquo":"\u2039","lscr":"\ud835\udcc1","Lscr":"\u2112","lsh":"\u21b0","Lsh":"\u21b0","lsim":"\u2272","lsime":"\u2a8d","lsimg":"\u2a8f","lsqb":"[","lsquo":"\u2018","lsquor":"\u201a","Lstrok":"\u0141","lstrok":"\u0142","ltcc":"\u2aa6","ltcir":"\u2a79","lt":"<","LT":"<","Lt":"\u226a","ltdot":"\u22d6","lthree":"\u22cb","ltimes":"\u22c9","ltlarr":"\u2976","ltquest":"\u2a7b","ltri":"\u25c3","ltrie":"\u22b4","ltrif":"\u25c2","ltrPar":"\u2996","lurdshar":"\u294a","luruhar":"\u2966","lvertneqq":"\u2268\ufe00","lvnE":"\u2268\ufe00","macr":"\xaf","male":"\u2642","malt":"\u2720","maltese":"\u2720","Map":"\u2905","map":"\u21a6","mapsto":"\u21a6","mapstodown":"\u21a7","mapstoleft":"\u21a4","mapstoup":"\u21a5","marker":"\u25ae","mcomma":"\u2a29","Mcy":"\u041c","mcy":"\u043c","mdash":"\u2014","mDDot":"\u223a","measuredangle":"\u2221","MediumSpace":"\u205f","Mellintrf":"\u2133","Mfr":"\ud835\udd10","mfr":"\ud835\udd2a","mho":"\u2127","micro":"\xb5","midast":"*","midcir":"\u2af0","mid":"\u2223","middot":"\xb7","minusb":"\u229f","minus":"\u2212","minusd":"\u2238","minusdu":"\u2a2a","MinusPlus":"\u2213","mlcp":"\u2adb","mldr":"\u2026","mnplus":"\u2213","models":"\u22a7","Mopf":"\ud835\udd44","mopf":"\ud835\udd5e","mp":"\u2213","mscr":"\ud835\udcc2","Mscr":"\u2133","mstpos":"\u223e","Mu":"\u039c","mu":"\u03bc","multimap":"\u22b8","mumap":"\u22b8","nabla":"\u2207","Nacute":"\u0143","nacute":"\u0144","nang":"\u2220\u20d2","nap":"\u2249","napE":"\u2a70\u0338","napid":"\u224b\u0338","napos":"\u0149","napprox":"\u2249","natural":"\u266e","naturals":"\u2115","natur":"\u266e","nbsp":"\xa0","nbump":"\u224e\u0338","nbumpe":"\u224f\u0338","ncap":"\u2a43","Ncaron":"\u0147","ncaron":"\u0148","Ncedil":"\u0145","ncedil":"\u0146","ncong":"\u2247","ncongdot":"\u2a6d\u0338","ncup":"\u2a42","Ncy":"\u041d","ncy":"\u043d","ndash":"\u2013","nearhk":"\u2924","nearr":"\u2197","neArr":"\u21d7","nearrow":"\u2197","ne":"\u2260","nedot":"\u2250\u0338","NegativeMediumSpace":"\u200b","NegativeThickSpace":"\u200b","NegativeThinSpace":"\u200b","NegativeVeryThinSpace":"\u200b","nequiv":"\u2262","nesear":"\u2928","nesim":"\u2242\u0338","NestedGreaterGreater":"\u226b","NestedLessLess":"\u226a","NewLine":"\\n","nexist":"\u2204","nexists":"\u2204","Nfr":"\ud835\udd11","nfr":"\ud835\udd2b","ngE":"\u2267\u0338","nge":"\u2271","ngeq":"\u2271","ngeqq":"\u2267\u0338","ngeqslant":"\u2a7e\u0338","nges":"\u2a7e\u0338","nGg":"\u22d9\u0338","ngsim":"\u2275","nGt":"\u226b\u20d2","ngt":"\u226f","ngtr":"\u226f","nGtv":"\u226b\u0338","nharr":"\u21ae","nhArr":"\u21ce","nhpar":"\u2af2","ni":"\u220b","nis":"\u22fc","nisd":"\u22fa","niv":"\u220b","NJcy":"\u040a","njcy":"\u045a","nlarr":"\u219a","nlArr":"\u21cd","nldr":"\u2025","nlE":"\u2266\u0338","nle":"\u2270","nleftarrow":"\u219a","nLeftarrow":"\u21cd","nleftrightarrow":"\u21ae","nLeftrightarrow":"\u21ce","nleq":"\u2270","nleqq":"\u2266\u0338","nleqslant":"\u2a7d\u0338","nles":"\u2a7d\u0338","nless":"\u226e","nLl":"\u22d8\u0338","nlsim":"\u2274","nLt":"\u226a\u20d2","nlt":"\u226e","nltri":"\u22ea","nltrie":"\u22ec","nLtv":"\u226a\u0338","nmid":"\u2224","NoBreak":"\u2060","NonBreakingSpace":"\xa0","nopf":"\ud835\udd5f","Nopf":"\u2115","Not":"\u2aec","not":"\xac","NotCongruent":"\u2262","NotCupCap":"\u226d","NotDoubleVerticalBar":"\u2226","NotElement":"\u2209","NotEqual":"\u2260","NotEqualTilde":"\u2242\u0338","NotExists":"\u2204","NotGreater":"\u226f","NotGreaterEqual":"\u2271","NotGreaterFullEqual":"\u2267\u0338","NotGreaterGreater":"\u226b\u0338","NotGreaterLess":"\u2279","NotGreaterSlantEqual":"\u2a7e\u0338","NotGreaterTilde":"\u2275","NotHumpDownHump":"\u224e\u0338","NotHumpEqual":"\u224f\u0338","notin":"\u2209","notindot":"\u22f5\u0338","notinE":"\u22f9\u0338","notinva":"\u2209","notinvb":"\u22f7","notinvc":"\u22f6","NotLeftTriangleBar":"\u29cf\u0338","NotLeftTriangle":"\u22ea","NotLeftTriangleEqual":"\u22ec","NotLess":"\u226e","NotLessEqual":"\u2270","NotLessGreater":"\u2278","NotLessLess":"\u226a\u0338","NotLessSlantEqual":"\u2a7d\u0338","NotLessTilde":"\u2274","NotNestedGreaterGreater":"\u2aa2\u0338","NotNestedLessLess":"\u2aa1\u0338","notni":"\u220c","notniva":"\u220c","notnivb":"\u22fe","notnivc":"\u22fd","NotPrecedes":"\u2280","NotPrecedesEqual":"\u2aaf\u0338","NotPrecedesSlantEqual":"\u22e0","NotReverseElement":"\u220c","NotRightTriangleBar":"\u29d0\u0338","NotRightTriangle":"\u22eb","NotRightTriangleEqual":"\u22ed","NotSquareSubset":"\u228f\u0338","NotSquareSubsetEqual":"\u22e2","NotSquareSuperset":"\u2290\u0338","NotSquareSupersetEqual":"\u22e3","NotSubset":"\u2282\u20d2","NotSubsetEqual":"\u2288","NotSucceeds":"\u2281","NotSucceedsEqual":"\u2ab0\u0338","NotSucceedsSlantEqual":"\u22e1","NotSucceedsTilde":"\u227f\u0338","NotSuperset":"\u2283\u20d2","NotSupersetEqual":"\u2289","NotTilde":"\u2241","NotTildeEqual":"\u2244","NotTildeFullEqual":"\u2247","NotTildeTilde":"\u2249","NotVerticalBar":"\u2224","nparallel":"\u2226","npar":"\u2226","nparsl":"\u2afd\u20e5","npart":"\u2202\u0338","npolint":"\u2a14","npr":"\u2280","nprcue":"\u22e0","nprec":"\u2280","npreceq":"\u2aaf\u0338","npre":"\u2aaf\u0338","nrarrc":"\u2933\u0338","nrarr":"\u219b","nrArr":"\u21cf","nrarrw":"\u219d\u0338","nrightarrow":"\u219b","nRightarrow":"\u21cf","nrtri":"\u22eb","nrtrie":"\u22ed","nsc":"\u2281","nsccue":"\u22e1","nsce":"\u2ab0\u0338","Nscr":"\ud835\udca9","nscr":"\ud835\udcc3","nshortmid":"\u2224","nshortparallel":"\u2226","nsim":"\u2241","nsime":"\u2244","nsimeq":"\u2244","nsmid":"\u2224","nspar":"\u2226","nsqsube":"\u22e2","nsqsupe":"\u22e3","nsub":"\u2284","nsubE":"\u2ac5\u0338","nsube":"\u2288","nsubset":"\u2282\u20d2","nsubseteq":"\u2288","nsubseteqq":"\u2ac5\u0338","nsucc":"\u2281","nsucceq":"\u2ab0\u0338","nsup":"\u2285","nsupE":"\u2ac6\u0338","nsupe":"\u2289","nsupset":"\u2283\u20d2","nsupseteq":"\u2289","nsupseteqq":"\u2ac6\u0338","ntgl":"\u2279","Ntilde":"\xd1","ntilde":"\xf1","ntlg":"\u2278","ntriangleleft":"\u22ea","ntrianglelefteq":"\u22ec","ntriangleright":"\u22eb","ntrianglerighteq":"\u22ed","Nu":"\u039d","nu":"\u03bd","num":"#","numero":"\u2116","numsp":"\u2007","nvap":"\u224d\u20d2","nvdash":"\u22ac","nvDash":"\u22ad","nVdash":"\u22ae","nVDash":"\u22af","nvge":"\u2265\u20d2","nvgt":">\u20d2","nvHarr":"\u2904","nvinfin":"\u29de","nvlArr":"\u2902","nvle":"\u2264\u20d2","nvlt":"<\u20d2","nvltrie":"\u22b4\u20d2","nvrArr":"\u2903","nvrtrie":"\u22b5\u20d2","nvsim":"\u223c\u20d2","nwarhk":"\u2923","nwarr":"\u2196","nwArr":"\u21d6","nwarrow":"\u2196","nwnear":"\u2927","Oacute":"\xd3","oacute":"\xf3","oast":"\u229b","Ocirc":"\xd4","ocirc":"\xf4","ocir":"\u229a","Ocy":"\u041e","ocy":"\u043e","odash":"\u229d","Odblac":"\u0150","odblac":"\u0151","odiv":"\u2a38","odot":"\u2299","odsold":"\u29bc","OElig":"\u0152","oelig":"\u0153","ofcir":"\u29bf","Ofr":"\ud835\udd12","ofr":"\ud835\udd2c","ogon":"\u02db","Ograve":"\xd2","ograve":"\xf2","ogt":"\u29c1","ohbar":"\u29b5","ohm":"\u03a9","oint":"\u222e","olarr":"\u21ba","olcir":"\u29be","olcross":"\u29bb","oline":"\u203e","olt":"\u29c0","Omacr":"\u014c","omacr":"\u014d","Omega":"\u03a9","omega":"\u03c9","Omicron":"\u039f","omicron":"\u03bf","omid":"\u29b6","ominus":"\u2296","Oopf":"\ud835\udd46","oopf":"\ud835\udd60","opar":"\u29b7","OpenCurlyDoubleQuote":"\u201c","OpenCurlyQuote":"\u2018","operp":"\u29b9","oplus":"\u2295","orarr":"\u21bb","Or":"\u2a54","or":"\u2228","ord":"\u2a5d","order":"\u2134","orderof":"\u2134","ordf":"\xaa","ordm":"\xba","origof":"\u22b6","oror":"\u2a56","orslope":"\u2a57","orv":"\u2a5b","oS":"\u24c8","Oscr":"\ud835\udcaa","oscr":"\u2134","Oslash":"\xd8","oslash":"\xf8","osol":"\u2298","Otilde":"\xd5","otilde":"\xf5","otimesas":"\u2a36","Otimes":"\u2a37","otimes":"\u2297","Ouml":"\xd6","ouml":"\xf6","ovbar":"\u233d","OverBar":"\u203e","OverBrace":"\u23de","OverBracket":"\u23b4","OverParenthesis":"\u23dc","para":"\xb6","parallel":"\u2225","par":"\u2225","parsim":"\u2af3","parsl":"\u2afd","part":"\u2202","PartialD":"\u2202","Pcy":"\u041f","pcy":"\u043f","percnt":"%","period":".","permil":"\u2030","perp":"\u22a5","pertenk":"\u2031","Pfr":"\ud835\udd13","pfr":"\ud835\udd2d","Phi":"\u03a6","phi":"\u03c6","phiv":"\u03d5","phmmat":"\u2133","phone":"\u260e","Pi":"\u03a0","pi":"\u03c0","pitchfork":"\u22d4","piv":"\u03d6","planck":"\u210f","planckh":"\u210e","plankv":"\u210f","plusacir":"\u2a23","plusb":"\u229e","pluscir":"\u2a22","plus":"+","plusdo":"\u2214","plusdu":"\u2a25","pluse":"\u2a72","PlusMinus":"\xb1","plusmn":"\xb1","plussim":"\u2a26","plustwo":"\u2a27","pm":"\xb1","Poincareplane":"\u210c","pointint":"\u2a15","popf":"\ud835\udd61","Popf":"\u2119","pound":"\xa3","prap":"\u2ab7","Pr":"\u2abb","pr":"\u227a","prcue":"\u227c","precapprox":"\u2ab7","prec":"\u227a","preccurlyeq":"\u227c","Precedes":"\u227a","PrecedesEqual":"\u2aaf","PrecedesSlantEqual":"\u227c","PrecedesTilde":"\u227e","preceq":"\u2aaf","precnapprox":"\u2ab9","precneqq":"\u2ab5","precnsim":"\u22e8","pre":"\u2aaf","prE":"\u2ab3","precsim":"\u227e","prime":"\u2032","Prime":"\u2033","primes":"\u2119","prnap":"\u2ab9","prnE":"\u2ab5","prnsim":"\u22e8","prod":"\u220f","Product":"\u220f","profalar":"\u232e","profline":"\u2312","profsurf":"\u2313","prop":"\u221d","Proportional":"\u221d","Proportion":"\u2237","propto":"\u221d","prsim":"\u227e","prurel":"\u22b0","Pscr":"\ud835\udcab","pscr":"\ud835\udcc5","Psi":"\u03a8","psi":"\u03c8","puncsp":"\u2008","Qfr":"\ud835\udd14","qfr":"\ud835\udd2e","qint":"\u2a0c","qopf":"\ud835\udd62","Qopf":"\u211a","qprime":"\u2057","Qscr":"\ud835\udcac","qscr":"\ud835\udcc6","quaternions":"\u210d","quatint":"\u2a16","quest":"?","questeq":"\u225f","quot":"\\"","QUOT":"\\"","rAarr":"\u21db","race":"\u223d\u0331","Racute":"\u0154","racute":"\u0155","radic":"\u221a","raemptyv":"\u29b3","rang":"\u27e9","Rang":"\u27eb","rangd":"\u2992","range":"\u29a5","rangle":"\u27e9","raquo":"\xbb","rarrap":"\u2975","rarrb":"\u21e5","rarrbfs":"\u2920","rarrc":"\u2933","rarr":"\u2192","Rarr":"\u21a0","rArr":"\u21d2","rarrfs":"\u291e","rarrhk":"\u21aa","rarrlp":"\u21ac","rarrpl":"\u2945","rarrsim":"\u2974","Rarrtl":"\u2916","rarrtl":"\u21a3","rarrw":"\u219d","ratail":"\u291a","rAtail":"\u291c","ratio":"\u2236","rationals":"\u211a","rbarr":"\u290d","rBarr":"\u290f","RBarr":"\u2910","rbbrk":"\u2773","rbrace":"}","rbrack":"]","rbrke":"\u298c","rbrksld":"\u298e","rbrkslu":"\u2990","Rcaron":"\u0158","rcaron":"\u0159","Rcedil":"\u0156","rcedil":"\u0157","rceil":"\u2309","rcub":"}","Rcy":"\u0420","rcy":"\u0440","rdca":"\u2937","rdldhar":"\u2969","rdquo":"\u201d","rdquor":"\u201d","rdsh":"\u21b3","real":"\u211c","realine":"\u211b","realpart":"\u211c","reals":"\u211d","Re":"\u211c","rect":"\u25ad","reg":"\xae","REG":"\xae","ReverseElement":"\u220b","ReverseEquilibrium":"\u21cb","ReverseUpEquilibrium":"\u296f","rfisht":"\u297d","rfloor":"\u230b","rfr":"\ud835\udd2f","Rfr":"\u211c","rHar":"\u2964","rhard":"\u21c1","rharu":"\u21c0","rharul":"\u296c","Rho":"\u03a1","rho":"\u03c1","rhov":"\u03f1","RightAngleBracket":"\u27e9","RightArrowBar":"\u21e5","rightarrow":"\u2192","RightArrow":"\u2192","Rightarrow":"\u21d2","RightArrowLeftArrow":"\u21c4","rightarrowtail":"\u21a3","RightCeiling":"\u2309","RightDoubleBracket":"\u27e7","RightDownTeeVector":"\u295d","RightDownVectorBar":"\u2955","RightDownVector":"\u21c2","RightFloor":"\u230b","rightharpoondown":"\u21c1","rightharpoonup":"\u21c0","rightleftarrows":"\u21c4","rightleftharpoons":"\u21cc","rightrightarrows":"\u21c9","rightsquigarrow":"\u219d","RightTeeArrow":"\u21a6","RightTee":"\u22a2","RightTeeVector":"\u295b","rightthreetimes":"\u22cc","RightTriangleBar":"\u29d0","RightTriangle":"\u22b3","RightTriangleEqual":"\u22b5","RightUpDownVector":"\u294f","RightUpTeeVector":"\u295c","RightUpVectorBar":"\u2954","RightUpVector":"\u21be","RightVectorBar":"\u2953","RightVector":"\u21c0","ring":"\u02da","risingdotseq":"\u2253","rlarr":"\u21c4","rlhar":"\u21cc","rlm":"\u200f","rmoustache":"\u23b1","rmoust":"\u23b1","rnmid":"\u2aee","roang":"\u27ed","roarr":"\u21fe","robrk":"\u27e7","ropar":"\u2986","ropf":"\ud835\udd63","Ropf":"\u211d","roplus":"\u2a2e","rotimes":"\u2a35","RoundImplies":"\u2970","rpar":")","rpargt":"\u2994","rppolint":"\u2a12","rrarr":"\u21c9","Rrightarrow":"\u21db","rsaquo":"\u203a","rscr":"\ud835\udcc7","Rscr":"\u211b","rsh":"\u21b1","Rsh":"\u21b1","rsqb":"]","rsquo":"\u2019","rsquor":"\u2019","rthree":"\u22cc","rtimes":"\u22ca","rtri":"\u25b9","rtrie":"\u22b5","rtrif":"\u25b8","rtriltri":"\u29ce","RuleDelayed":"\u29f4","ruluhar":"\u2968","rx":"\u211e","Sacute":"\u015a","sacute":"\u015b","sbquo":"\u201a","scap":"\u2ab8","Scaron":"\u0160","scaron":"\u0161","Sc":"\u2abc","sc":"\u227b","sccue":"\u227d","sce":"\u2ab0","scE":"\u2ab4","Scedil":"\u015e","scedil":"\u015f","Scirc":"\u015c","scirc":"\u015d","scnap":"\u2aba","scnE":"\u2ab6","scnsim":"\u22e9","scpolint":"\u2a13","scsim":"\u227f","Scy":"\u0421","scy":"\u0441","sdotb":"\u22a1","sdot":"\u22c5","sdote":"\u2a66","searhk":"\u2925","searr":"\u2198","seArr":"\u21d8","searrow":"\u2198","sect":"\xa7","semi":";","seswar":"\u2929","setminus":"\u2216","setmn":"\u2216","sext":"\u2736","Sfr":"\ud835\udd16","sfr":"\ud835\udd30","sfrown":"\u2322","sharp":"\u266f","SHCHcy":"\u0429","shchcy":"\u0449","SHcy":"\u0428","shcy":"\u0448","ShortDownArrow":"\u2193","ShortLeftArrow":"\u2190","shortmid":"\u2223","shortparallel":"\u2225","ShortRightArrow":"\u2192","ShortUpArrow":"\u2191","shy":"\xad","Sigma":"\u03a3","sigma":"\u03c3","sigmaf":"\u03c2","sigmav":"\u03c2","sim":"\u223c","simdot":"\u2a6a","sime":"\u2243","simeq":"\u2243","simg":"\u2a9e","simgE":"\u2aa0","siml":"\u2a9d","simlE":"\u2a9f","simne":"\u2246","simplus":"\u2a24","simrarr":"\u2972","slarr":"\u2190","SmallCircle":"\u2218","smallsetminus":"\u2216","smashp":"\u2a33","smeparsl":"\u29e4","smid":"\u2223","smile":"\u2323","smt":"\u2aaa","smte":"\u2aac","smtes":"\u2aac\ufe00","SOFTcy":"\u042c","softcy":"\u044c","solbar":"\u233f","solb":"\u29c4","sol":"/","Sopf":"\ud835\udd4a","sopf":"\ud835\udd64","spades":"\u2660","spadesuit":"\u2660","spar":"\u2225","sqcap":"\u2293","sqcaps":"\u2293\ufe00","sqcup":"\u2294","sqcups":"\u2294\ufe00","Sqrt":"\u221a","sqsub":"\u228f","sqsube":"\u2291","sqsubset":"\u228f","sqsubseteq":"\u2291","sqsup":"\u2290","sqsupe":"\u2292","sqsupset":"\u2290","sqsupseteq":"\u2292","square":"\u25a1","Square":"\u25a1","SquareIntersection":"\u2293","SquareSubset":"\u228f","SquareSubsetEqual":"\u2291","SquareSuperset":"\u2290","SquareSupersetEqual":"\u2292","SquareUnion":"\u2294","squarf":"\u25aa","squ":"\u25a1","squf":"\u25aa","srarr":"\u2192","Sscr":"\ud835\udcae","sscr":"\ud835\udcc8","ssetmn":"\u2216","ssmile":"\u2323","sstarf":"\u22c6","Star":"\u22c6","star":"\u2606","starf":"\u2605","straightepsilon":"\u03f5","straightphi":"\u03d5","strns":"\xaf","sub":"\u2282","Sub":"\u22d0","subdot":"\u2abd","subE":"\u2ac5","sube":"\u2286","subedot":"\u2ac3","submult":"\u2ac1","subnE":"\u2acb","subne":"\u228a","subplus":"\u2abf","subrarr":"\u2979","subset":"\u2282","Subset":"\u22d0","subseteq":"\u2286","subseteqq":"\u2ac5","SubsetEqual":"\u2286","subsetneq":"\u228a","subsetneqq":"\u2acb","subsim":"\u2ac7","subsub":"\u2ad5","subsup":"\u2ad3","succapprox":"\u2ab8","succ":"\u227b","succcurlyeq":"\u227d","Succeeds":"\u227b","SucceedsEqual":"\u2ab0","SucceedsSlantEqual":"\u227d","SucceedsTilde":"\u227f","succeq":"\u2ab0","succnapprox":"\u2aba","succneqq":"\u2ab6","succnsim":"\u22e9","succsim":"\u227f","SuchThat":"\u220b","sum":"\u2211","Sum":"\u2211","sung":"\u266a","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","sup":"\u2283","Sup":"\u22d1","supdot":"\u2abe","supdsub":"\u2ad8","supE":"\u2ac6","supe":"\u2287","supedot":"\u2ac4","Superset":"\u2283","SupersetEqual":"\u2287","suphsol":"\u27c9","suphsub":"\u2ad7","suplarr":"\u297b","supmult":"\u2ac2","supnE":"\u2acc","supne":"\u228b","supplus":"\u2ac0","supset":"\u2283","Supset":"\u22d1","supseteq":"\u2287","supseteqq":"\u2ac6","supsetneq":"\u228b","supsetneqq":"\u2acc","supsim":"\u2ac8","supsub":"\u2ad4","supsup":"\u2ad6","swarhk":"\u2926","swarr":"\u2199","swArr":"\u21d9","swarrow":"\u2199","swnwar":"\u292a","szlig":"\xdf","Tab":"\\t","target":"\u2316","Tau":"\u03a4","tau":"\u03c4","tbrk":"\u23b4","Tcaron":"\u0164","tcaron":"\u0165","Tcedil":"\u0162","tcedil":"\u0163","Tcy":"\u0422","tcy":"\u0442","tdot":"\u20db","telrec":"\u2315","Tfr":"\ud835\udd17","tfr":"\ud835\udd31","there4":"\u2234","therefore":"\u2234","Therefore":"\u2234","Theta":"\u0398","theta":"\u03b8","thetasym":"\u03d1","thetav":"\u03d1","thickapprox":"\u2248","thicksim":"\u223c","ThickSpace":"\u205f\u200a","ThinSpace":"\u2009","thinsp":"\u2009","thkap":"\u2248","thksim":"\u223c","THORN":"\xde","thorn":"\xfe","tilde":"\u02dc","Tilde":"\u223c","TildeEqual":"\u2243","TildeFullEqual":"\u2245","TildeTilde":"\u2248","timesbar":"\u2a31","timesb":"\u22a0","times":"\xd7","timesd":"\u2a30","tint":"\u222d","toea":"\u2928","topbot":"\u2336","topcir":"\u2af1","top":"\u22a4","Topf":"\ud835\udd4b","topf":"\ud835\udd65","topfork":"\u2ada","tosa":"\u2929","tprime":"\u2034","trade":"\u2122","TRADE":"\u2122","triangle":"\u25b5","triangledown":"\u25bf","triangleleft":"\u25c3","trianglelefteq":"\u22b4","triangleq":"\u225c","triangleright":"\u25b9","trianglerighteq":"\u22b5","tridot":"\u25ec","trie":"\u225c","triminus":"\u2a3a","TripleDot":"\u20db","triplus":"\u2a39","trisb":"\u29cd","tritime":"\u2a3b","trpezium":"\u23e2","Tscr":"\ud835\udcaf","tscr":"\ud835\udcc9","TScy":"\u0426","tscy":"\u0446","TSHcy":"\u040b","tshcy":"\u045b","Tstrok":"\u0166","tstrok":"\u0167","twixt":"\u226c","twoheadleftarrow":"\u219e","twoheadrightarrow":"\u21a0","Uacute":"\xda","uacute":"\xfa","uarr":"\u2191","Uarr":"\u219f","uArr":"\u21d1","Uarrocir":"\u2949","Ubrcy":"\u040e","ubrcy":"\u045e","Ubreve":"\u016c","ubreve":"\u016d","Ucirc":"\xdb","ucirc":"\xfb","Ucy":"\u0423","ucy":"\u0443","udarr":"\u21c5","Udblac":"\u0170","udblac":"\u0171","udhar":"\u296e","ufisht":"\u297e","Ufr":"\ud835\udd18","ufr":"\ud835\udd32","Ugrave":"\xd9","ugrave":"\xf9","uHar":"\u2963","uharl":"\u21bf","uharr":"\u21be","uhblk":"\u2580","ulcorn":"\u231c","ulcorner":"\u231c","ulcrop":"\u230f","ultri":"\u25f8","Umacr":"\u016a","umacr":"\u016b","uml":"\xa8","UnderBar":"_","UnderBrace":"\u23df","UnderBracket":"\u23b5","UnderParenthesis":"\u23dd","Union":"\u22c3","UnionPlus":"\u228e","Uogon":"\u0172","uogon":"\u0173","Uopf":"\ud835\udd4c","uopf":"\ud835\udd66","UpArrowBar":"\u2912","uparrow":"\u2191","UpArrow":"\u2191","Uparrow":"\u21d1","UpArrowDownArrow":"\u21c5","updownarrow":"\u2195","UpDownArrow":"\u2195","Updownarrow":"\u21d5","UpEquilibrium":"\u296e","upharpoonleft":"\u21bf","upharpoonright":"\u21be","uplus":"\u228e","UpperLeftArrow":"\u2196","UpperRightArrow":"\u2197","upsi":"\u03c5","Upsi":"\u03d2","upsih":"\u03d2","Upsilon":"\u03a5","upsilon":"\u03c5","UpTeeArrow":"\u21a5","UpTee":"\u22a5","upuparrows":"\u21c8","urcorn":"\u231d","urcorner":"\u231d","urcrop":"\u230e","Uring":"\u016e","uring":"\u016f","urtri":"\u25f9","Uscr":"\ud835\udcb0","uscr":"\ud835\udcca","utdot":"\u22f0","Utilde":"\u0168","utilde":"\u0169","utri":"\u25b5","utrif":"\u25b4","uuarr":"\u21c8","Uuml":"\xdc","uuml":"\xfc","uwangle":"\u29a7","vangrt":"\u299c","varepsilon":"\u03f5","varkappa":"\u03f0","varnothing":"\u2205","varphi":"\u03d5","varpi":"\u03d6","varpropto":"\u221d","varr":"\u2195","vArr":"\u21d5","varrho":"\u03f1","varsigma":"\u03c2","varsubsetneq":"\u228a\ufe00","varsubsetneqq":"\u2acb\ufe00","varsupsetneq":"\u228b\ufe00","varsupsetneqq":"\u2acc\ufe00","vartheta":"\u03d1","vartriangleleft":"\u22b2","vartriangleright":"\u22b3","vBar":"\u2ae8","Vbar":"\u2aeb","vBarv":"\u2ae9","Vcy":"\u0412","vcy":"\u0432","vdash":"\u22a2","vDash":"\u22a8","Vdash":"\u22a9","VDash":"\u22ab","Vdashl":"\u2ae6","veebar":"\u22bb","vee":"\u2228","Vee":"\u22c1","veeeq":"\u225a","vellip":"\u22ee","verbar":"|","Verbar":"\u2016","vert":"|","Vert":"\u2016","VerticalBar":"\u2223","VerticalLine":"|","VerticalSeparator":"\u2758","VerticalTilde":"\u2240","VeryThinSpace":"\u200a","Vfr":"\ud835\udd19","vfr":"\ud835\udd33","vltri":"\u22b2","vnsub":"\u2282\u20d2","vnsup":"\u2283\u20d2","Vopf":"\ud835\udd4d","vopf":"\ud835\udd67","vprop":"\u221d","vrtri":"\u22b3","Vscr":"\ud835\udcb1","vscr":"\ud835\udccb","vsubnE":"\u2acb\ufe00","vsubne":"\u228a\ufe00","vsupnE":"\u2acc\ufe00","vsupne":"\u228b\ufe00","Vvdash":"\u22aa","vzigzag":"\u299a","Wcirc":"\u0174","wcirc":"\u0175","wedbar":"\u2a5f","wedge":"\u2227","Wedge":"\u22c0","wedgeq":"\u2259","weierp":"\u2118","Wfr":"\ud835\udd1a","wfr":"\ud835\udd34","Wopf":"\ud835\udd4e","wopf":"\ud835\udd68","wp":"\u2118","wr":"\u2240","wreath":"\u2240","Wscr":"\ud835\udcb2","wscr":"\ud835\udccc","xcap":"\u22c2","xcirc":"\u25ef","xcup":"\u22c3","xdtri":"\u25bd","Xfr":"\ud835\udd1b","xfr":"\ud835\udd35","xharr":"\u27f7","xhArr":"\u27fa","Xi":"\u039e","xi":"\u03be","xlarr":"\u27f5","xlArr":"\u27f8","xmap":"\u27fc","xnis":"\u22fb","xodot":"\u2a00","Xopf":"\ud835\udd4f","xopf":"\ud835\udd69","xoplus":"\u2a01","xotime":"\u2a02","xrarr":"\u27f6","xrArr":"\u27f9","Xscr":"\ud835\udcb3","xscr":"\ud835\udccd","xsqcup":"\u2a06","xuplus":"\u2a04","xutri":"\u25b3","xvee":"\u22c1","xwedge":"\u22c0","Yacute":"\xdd","yacute":"\xfd","YAcy":"\u042f","yacy":"\u044f","Ycirc":"\u0176","ycirc":"\u0177","Ycy":"\u042b","ycy":"\u044b","yen":"\xa5","Yfr":"\ud835\udd1c","yfr":"\ud835\udd36","YIcy":"\u0407","yicy":"\u0457","Yopf":"\ud835\udd50","yopf":"\ud835\udd6a","Yscr":"\ud835\udcb4","yscr":"\ud835\udcce","YUcy":"\u042e","yucy":"\u044e","yuml":"\xff","Yuml":"\u0178","Zacute":"\u0179","zacute":"\u017a","Zcaron":"\u017d","zcaron":"\u017e","Zcy":"\u0417","zcy":"\u0437","Zdot":"\u017b","zdot":"\u017c","zeetrf":"\u2128","ZeroWidthSpace":"\u200b","Zeta":"\u0396","zeta":"\u03b6","zfr":"\ud835\udd37","Zfr":"\u2128","ZHcy":"\u0416","zhcy":"\u0436","zigrarr":"\u21dd","zopf":"\ud835\udd6b","Zopf":"\u2124","Zscr":"\ud835\udcb5","zscr":"\ud835\udccf","zwj":"\u200d","zwnj":"\u200c"}')}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/117-7b92c98ea97188a9.js b/static/web/_next/static/chunks/117-7b92c98ea97188a9.js deleted file mode 100644 index 8b2974c7d..000000000 --- a/static/web/_next/static/chunks/117-7b92c98ea97188a9.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[117],{36531:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var o=r(1413),n=r(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32zm-622.3-84c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9z"}}]},name:"edit",theme:"filled"},a=r(42135),s=function(e,t){return n.createElement(a.Z,(0,o.Z)((0,o.Z)({},e),{},{ref:t,icon:i}))};s.displayName="EditFilled";var c=n.forwardRef(s)},29158:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var o=r(1413),n=r(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"},a=r(42135),s=function(e,t){return n.createElement(a.Z,(0,o.Z)((0,o.Z)({},e),{},{ref:t,icon:i}))};s.displayName="LinkOutlined";var c=n.forwardRef(s)},27496:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var o=r(1413),n=r(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"},a=r(42135),s=function(e,t){return n.createElement(a.Z,(0,o.Z)((0,o.Z)({},e),{},{ref:t,icon:i}))};s.displayName="SendOutlined";var c=n.forwardRef(s)},64942:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var o=r(1413),n=r(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M112 476h72v72h-72zm182 0h72v72h-72zm364 0h72v72h-72zm182 0h72v72h-72zm-364 0h72v72h-72z"}}]},name:"small-dash",theme:"outlined"},a=r(42135),s=function(e,t){return n.createElement(a.Z,(0,o.Z)((0,o.Z)({},e),{},{ref:t,icon:i}))};s.displayName="SmallDashOutlined";var c=n.forwardRef(s)},93045:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var o=r(1413),n=r(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z"}}]},name:"smile",theme:"outlined"},a=r(42135),s=function(e,t){return n.createElement(a.Z,(0,o.Z)((0,o.Z)({},e),{},{ref:t,icon:i}))};s.displayName="SmileOutlined";var c=n.forwardRef(s)},66017:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var o=r(1413),n=r(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 780H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM505.7 669a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V176c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8z"}}]},name:"vertical-align-bottom",theme:"outlined"},a=r(42135),s=function(e,t){return n.createElement(a.Z,(0,o.Z)((0,o.Z)({},e),{},{ref:t,icon:i}))};s.displayName="VerticalAlignBottomOutlined";var c=n.forwardRef(s)},6226:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var o=r(4942),n=r(87462),i=r(71002),a=r(94184),s=r.n(a),c=r(67294),l=r(53124),u=r(99134),d=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n0){var B=g[0]/2;R.paddingLeft=B,R.paddingRight=B}if(g&&g[1]>0&&!b){var z=g[1]/2;R.paddingTop=z,R.paddingBottom=z}return j&&(R.flex=function(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(j),!1!==v||R.minWidth||(R.minWidth=0)),c.createElement("div",(0,n.Z)({},T,{style:(0,n.Z)((0,n.Z)({},R),D),className:I,ref:t}),A)}))},99134:function(e,t,r){"use strict";var o=(0,r(67294).createContext)({});t.Z=o},25968:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var o=r(87462),n=r(4942),i=r(71002),a=r(97685),s=r(94184),c=r.n(s),l=r(67294),u=r(53124),d=r(98082),h=r(24308),p=r(93355),m=r(99134),f=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n0?B[0]/-2:void 0,H=null!=B[1]&&B[1]>0?B[1]/-2:void 0;if(F&&(P.marginLeft=F,P.marginRight=F),L){var V=(0,a.Z)(B,2);P.rowGap=V[1]}else H&&(P.marginTop=H,P.marginBottom=H);var O=(0,a.Z)(B,2),N=O[0],U=O[1],M=l.useMemo((function(){return{gutter:[N,U],wrap:x,supportFlexGap:L}}),[N,U,x,L]);return l.createElement(m.Z.Provider,{value:M},l.createElement("div",(0,o.Z)({},E,{className:z,style:(0,o.Z)((0,o.Z)({},P),b),ref:t}),y))}))},6907:function(e){"use strict";e.exports=function(e){if(e=String(e||""),o.test(e))return"rtl";if(n.test(e))return"ltr";return"neutral"};var t="\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc",r="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff",o=new RegExp("^[^"+r+"]*["+t+"]"),n=new RegExp("^[^"+t+"]*["+r+"]")},86492:function(e,t,r){var o;e=r.nmd(e),function(n){var i=t,a=(e&&e.exports,"object"==typeof r.g&&r.g);a.global!==a&&a.window;var s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=/[\x01-\x7F]/g,l=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,u=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,d={"\xad":"shy","\u200c":"zwnj","\u200d":"zwj","\u200e":"lrm","\u2063":"ic","\u2062":"it","\u2061":"af","\u200f":"rlm","\u200b":"ZeroWidthSpace","\u2060":"NoBreak","\u0311":"DownBreve","\u20db":"tdot","\u20dc":"DotDot","\t":"Tab","\n":"NewLine","\u2008":"puncsp","\u205f":"MediumSpace","\u2009":"thinsp","\u200a":"hairsp","\u2004":"emsp13","\u2002":"ensp","\u2005":"emsp14","\u2003":"emsp","\u2007":"numsp","\xa0":"nbsp","\u205f\u200a":"ThickSpace","\u203e":"oline",_:"lowbar","\u2010":"dash","\u2013":"ndash","\u2014":"mdash","\u2015":"horbar",",":"comma",";":"semi","\u204f":"bsemi",":":"colon","\u2a74":"Colone","!":"excl","\xa1":"iexcl","?":"quest","\xbf":"iquest",".":"period","\u2025":"nldr","\u2026":"mldr","\xb7":"middot","'":"apos","\u2018":"lsquo","\u2019":"rsquo","\u201a":"sbquo","\u2039":"lsaquo","\u203a":"rsaquo",'"':"quot","\u201c":"ldquo","\u201d":"rdquo","\u201e":"bdquo","\xab":"laquo","\xbb":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","\u2308":"lceil","\u2309":"rceil","\u230a":"lfloor","\u230b":"rfloor","\u2985":"lopar","\u2986":"ropar","\u298b":"lbrke","\u298c":"rbrke","\u298d":"lbrkslu","\u298e":"rbrksld","\u298f":"lbrksld","\u2990":"rbrkslu","\u2991":"langd","\u2992":"rangd","\u2993":"lparlt","\u2994":"rpargt","\u2995":"gtlPar","\u2996":"ltrPar","\u27e6":"lobrk","\u27e7":"robrk","\u27e8":"lang","\u27e9":"rang","\u27ea":"Lang","\u27eb":"Rang","\u27ec":"loang","\u27ed":"roang","\u2772":"lbbrk","\u2773":"rbbrk","\u2016":"Vert","\xa7":"sect","\xb6":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","\u2030":"permil","\u2031":"pertenk","\u2020":"dagger","\u2021":"Dagger","\u2022":"bull","\u2043":"hybull","\u2032":"prime","\u2033":"Prime","\u2034":"tprime","\u2057":"qprime","\u2035":"bprime","\u2041":"caret","`":"grave","\xb4":"acute","\u02dc":"tilde","^":"Hat","\xaf":"macr","\u02d8":"breve","\u02d9":"dot","\xa8":"die","\u02da":"ring","\u02dd":"dblac","\xb8":"cedil","\u02db":"ogon","\u02c6":"circ","\u02c7":"caron","\xb0":"deg","\xa9":"copy","\xae":"reg","\u2117":"copysr","\u2118":"wp","\u211e":"rx","\u2127":"mho","\u2129":"iiota","\u2190":"larr","\u219a":"nlarr","\u2192":"rarr","\u219b":"nrarr","\u2191":"uarr","\u2193":"darr","\u2194":"harr","\u21ae":"nharr","\u2195":"varr","\u2196":"nwarr","\u2197":"nearr","\u2198":"searr","\u2199":"swarr","\u219d":"rarrw","\u219d\u0338":"nrarrw","\u219e":"Larr","\u219f":"Uarr","\u21a0":"Rarr","\u21a1":"Darr","\u21a2":"larrtl","\u21a3":"rarrtl","\u21a4":"mapstoleft","\u21a5":"mapstoup","\u21a6":"map","\u21a7":"mapstodown","\u21a9":"larrhk","\u21aa":"rarrhk","\u21ab":"larrlp","\u21ac":"rarrlp","\u21ad":"harrw","\u21b0":"lsh","\u21b1":"rsh","\u21b2":"ldsh","\u21b3":"rdsh","\u21b5":"crarr","\u21b6":"cularr","\u21b7":"curarr","\u21ba":"olarr","\u21bb":"orarr","\u21bc":"lharu","\u21bd":"lhard","\u21be":"uharr","\u21bf":"uharl","\u21c0":"rharu","\u21c1":"rhard","\u21c2":"dharr","\u21c3":"dharl","\u21c4":"rlarr","\u21c5":"udarr","\u21c6":"lrarr","\u21c7":"llarr","\u21c8":"uuarr","\u21c9":"rrarr","\u21ca":"ddarr","\u21cb":"lrhar","\u21cc":"rlhar","\u21d0":"lArr","\u21cd":"nlArr","\u21d1":"uArr","\u21d2":"rArr","\u21cf":"nrArr","\u21d3":"dArr","\u21d4":"iff","\u21ce":"nhArr","\u21d5":"vArr","\u21d6":"nwArr","\u21d7":"neArr","\u21d8":"seArr","\u21d9":"swArr","\u21da":"lAarr","\u21db":"rAarr","\u21dd":"zigrarr","\u21e4":"larrb","\u21e5":"rarrb","\u21f5":"duarr","\u21fd":"loarr","\u21fe":"roarr","\u21ff":"hoarr","\u2200":"forall","\u2201":"comp","\u2202":"part","\u2202\u0338":"npart","\u2203":"exist","\u2204":"nexist","\u2205":"empty","\u2207":"Del","\u2208":"in","\u2209":"notin","\u220b":"ni","\u220c":"notni","\u03f6":"bepsi","\u220f":"prod","\u2210":"coprod","\u2211":"sum","+":"plus","\xb1":"pm","\xf7":"div","\xd7":"times","<":"lt","\u226e":"nlt","<\u20d2":"nvlt","=":"equals","\u2260":"ne","=\u20e5":"bne","\u2a75":"Equal",">":"gt","\u226f":"ngt",">\u20d2":"nvgt","\xac":"not","|":"vert","\xa6":"brvbar","\u2212":"minus","\u2213":"mp","\u2214":"plusdo","\u2044":"frasl","\u2216":"setmn","\u2217":"lowast","\u2218":"compfn","\u221a":"Sqrt","\u221d":"prop","\u221e":"infin","\u221f":"angrt","\u2220":"ang","\u2220\u20d2":"nang","\u2221":"angmsd","\u2222":"angsph","\u2223":"mid","\u2224":"nmid","\u2225":"par","\u2226":"npar","\u2227":"and","\u2228":"or","\u2229":"cap","\u2229\ufe00":"caps","\u222a":"cup","\u222a\ufe00":"cups","\u222b":"int","\u222c":"Int","\u222d":"tint","\u2a0c":"qint","\u222e":"oint","\u222f":"Conint","\u2230":"Cconint","\u2231":"cwint","\u2232":"cwconint","\u2233":"awconint","\u2234":"there4","\u2235":"becaus","\u2236":"ratio","\u2237":"Colon","\u2238":"minusd","\u223a":"mDDot","\u223b":"homtht","\u223c":"sim","\u2241":"nsim","\u223c\u20d2":"nvsim","\u223d":"bsim","\u223d\u0331":"race","\u223e":"ac","\u223e\u0333":"acE","\u223f":"acd","\u2240":"wr","\u2242":"esim","\u2242\u0338":"nesim","\u2243":"sime","\u2244":"nsime","\u2245":"cong","\u2247":"ncong","\u2246":"simne","\u2248":"ap","\u2249":"nap","\u224a":"ape","\u224b":"apid","\u224b\u0338":"napid","\u224c":"bcong","\u224d":"CupCap","\u226d":"NotCupCap","\u224d\u20d2":"nvap","\u224e":"bump","\u224e\u0338":"nbump","\u224f":"bumpe","\u224f\u0338":"nbumpe","\u2250":"doteq","\u2250\u0338":"nedot","\u2251":"eDot","\u2252":"efDot","\u2253":"erDot","\u2254":"colone","\u2255":"ecolon","\u2256":"ecir","\u2257":"cire","\u2259":"wedgeq","\u225a":"veeeq","\u225c":"trie","\u225f":"equest","\u2261":"equiv","\u2262":"nequiv","\u2261\u20e5":"bnequiv","\u2264":"le","\u2270":"nle","\u2264\u20d2":"nvle","\u2265":"ge","\u2271":"nge","\u2265\u20d2":"nvge","\u2266":"lE","\u2266\u0338":"nlE","\u2267":"gE","\u2267\u0338":"ngE","\u2268\ufe00":"lvnE","\u2268":"lnE","\u2269":"gnE","\u2269\ufe00":"gvnE","\u226a":"ll","\u226a\u0338":"nLtv","\u226a\u20d2":"nLt","\u226b":"gg","\u226b\u0338":"nGtv","\u226b\u20d2":"nGt","\u226c":"twixt","\u2272":"lsim","\u2274":"nlsim","\u2273":"gsim","\u2275":"ngsim","\u2276":"lg","\u2278":"ntlg","\u2277":"gl","\u2279":"ntgl","\u227a":"pr","\u2280":"npr","\u227b":"sc","\u2281":"nsc","\u227c":"prcue","\u22e0":"nprcue","\u227d":"sccue","\u22e1":"nsccue","\u227e":"prsim","\u227f":"scsim","\u227f\u0338":"NotSucceedsTilde","\u2282":"sub","\u2284":"nsub","\u2282\u20d2":"vnsub","\u2283":"sup","\u2285":"nsup","\u2283\u20d2":"vnsup","\u2286":"sube","\u2288":"nsube","\u2287":"supe","\u2289":"nsupe","\u228a\ufe00":"vsubne","\u228a":"subne","\u228b\ufe00":"vsupne","\u228b":"supne","\u228d":"cupdot","\u228e":"uplus","\u228f":"sqsub","\u228f\u0338":"NotSquareSubset","\u2290":"sqsup","\u2290\u0338":"NotSquareSuperset","\u2291":"sqsube","\u22e2":"nsqsube","\u2292":"sqsupe","\u22e3":"nsqsupe","\u2293":"sqcap","\u2293\ufe00":"sqcaps","\u2294":"sqcup","\u2294\ufe00":"sqcups","\u2295":"oplus","\u2296":"ominus","\u2297":"otimes","\u2298":"osol","\u2299":"odot","\u229a":"ocir","\u229b":"oast","\u229d":"odash","\u229e":"plusb","\u229f":"minusb","\u22a0":"timesb","\u22a1":"sdotb","\u22a2":"vdash","\u22ac":"nvdash","\u22a3":"dashv","\u22a4":"top","\u22a5":"bot","\u22a7":"models","\u22a8":"vDash","\u22ad":"nvDash","\u22a9":"Vdash","\u22ae":"nVdash","\u22aa":"Vvdash","\u22ab":"VDash","\u22af":"nVDash","\u22b0":"prurel","\u22b2":"vltri","\u22ea":"nltri","\u22b3":"vrtri","\u22eb":"nrtri","\u22b4":"ltrie","\u22ec":"nltrie","\u22b4\u20d2":"nvltrie","\u22b5":"rtrie","\u22ed":"nrtrie","\u22b5\u20d2":"nvrtrie","\u22b6":"origof","\u22b7":"imof","\u22b8":"mumap","\u22b9":"hercon","\u22ba":"intcal","\u22bb":"veebar","\u22bd":"barvee","\u22be":"angrtvb","\u22bf":"lrtri","\u22c0":"Wedge","\u22c1":"Vee","\u22c2":"xcap","\u22c3":"xcup","\u22c4":"diam","\u22c5":"sdot","\u22c6":"Star","\u22c7":"divonx","\u22c8":"bowtie","\u22c9":"ltimes","\u22ca":"rtimes","\u22cb":"lthree","\u22cc":"rthree","\u22cd":"bsime","\u22ce":"cuvee","\u22cf":"cuwed","\u22d0":"Sub","\u22d1":"Sup","\u22d2":"Cap","\u22d3":"Cup","\u22d4":"fork","\u22d5":"epar","\u22d6":"ltdot","\u22d7":"gtdot","\u22d8":"Ll","\u22d8\u0338":"nLl","\u22d9":"Gg","\u22d9\u0338":"nGg","\u22da\ufe00":"lesg","\u22da":"leg","\u22db":"gel","\u22db\ufe00":"gesl","\u22de":"cuepr","\u22df":"cuesc","\u22e6":"lnsim","\u22e7":"gnsim","\u22e8":"prnsim","\u22e9":"scnsim","\u22ee":"vellip","\u22ef":"ctdot","\u22f0":"utdot","\u22f1":"dtdot","\u22f2":"disin","\u22f3":"isinsv","\u22f4":"isins","\u22f5":"isindot","\u22f5\u0338":"notindot","\u22f6":"notinvc","\u22f7":"notinvb","\u22f9":"isinE","\u22f9\u0338":"notinE","\u22fa":"nisd","\u22fb":"xnis","\u22fc":"nis","\u22fd":"notnivc","\u22fe":"notnivb","\u2305":"barwed","\u2306":"Barwed","\u230c":"drcrop","\u230d":"dlcrop","\u230e":"urcrop","\u230f":"ulcrop","\u2310":"bnot","\u2312":"profline","\u2313":"profsurf","\u2315":"telrec","\u2316":"target","\u231c":"ulcorn","\u231d":"urcorn","\u231e":"dlcorn","\u231f":"drcorn","\u2322":"frown","\u2323":"smile","\u232d":"cylcty","\u232e":"profalar","\u2336":"topbot","\u233d":"ovbar","\u233f":"solbar","\u237c":"angzarr","\u23b0":"lmoust","\u23b1":"rmoust","\u23b4":"tbrk","\u23b5":"bbrk","\u23b6":"bbrktbrk","\u23dc":"OverParenthesis","\u23dd":"UnderParenthesis","\u23de":"OverBrace","\u23df":"UnderBrace","\u23e2":"trpezium","\u23e7":"elinters","\u2423":"blank","\u2500":"boxh","\u2502":"boxv","\u250c":"boxdr","\u2510":"boxdl","\u2514":"boxur","\u2518":"boxul","\u251c":"boxvr","\u2524":"boxvl","\u252c":"boxhd","\u2534":"boxhu","\u253c":"boxvh","\u2550":"boxH","\u2551":"boxV","\u2552":"boxdR","\u2553":"boxDr","\u2554":"boxDR","\u2555":"boxdL","\u2556":"boxDl","\u2557":"boxDL","\u2558":"boxuR","\u2559":"boxUr","\u255a":"boxUR","\u255b":"boxuL","\u255c":"boxUl","\u255d":"boxUL","\u255e":"boxvR","\u255f":"boxVr","\u2560":"boxVR","\u2561":"boxvL","\u2562":"boxVl","\u2563":"boxVL","\u2564":"boxHd","\u2565":"boxhD","\u2566":"boxHD","\u2567":"boxHu","\u2568":"boxhU","\u2569":"boxHU","\u256a":"boxvH","\u256b":"boxVh","\u256c":"boxVH","\u2580":"uhblk","\u2584":"lhblk","\u2588":"block","\u2591":"blk14","\u2592":"blk12","\u2593":"blk34","\u25a1":"squ","\u25aa":"squf","\u25ab":"EmptyVerySmallSquare","\u25ad":"rect","\u25ae":"marker","\u25b1":"fltns","\u25b3":"xutri","\u25b4":"utrif","\u25b5":"utri","\u25b8":"rtrif","\u25b9":"rtri","\u25bd":"xdtri","\u25be":"dtrif","\u25bf":"dtri","\u25c2":"ltrif","\u25c3":"ltri","\u25ca":"loz","\u25cb":"cir","\u25ec":"tridot","\u25ef":"xcirc","\u25f8":"ultri","\u25f9":"urtri","\u25fa":"lltri","\u25fb":"EmptySmallSquare","\u25fc":"FilledSmallSquare","\u2605":"starf","\u2606":"star","\u260e":"phone","\u2640":"female","\u2642":"male","\u2660":"spades","\u2663":"clubs","\u2665":"hearts","\u2666":"diams","\u266a":"sung","\u2713":"check","\u2717":"cross","\u2720":"malt","\u2736":"sext","\u2758":"VerticalSeparator","\u27c8":"bsolhsub","\u27c9":"suphsol","\u27f5":"xlarr","\u27f6":"xrarr","\u27f7":"xharr","\u27f8":"xlArr","\u27f9":"xrArr","\u27fa":"xhArr","\u27fc":"xmap","\u27ff":"dzigrarr","\u2902":"nvlArr","\u2903":"nvrArr","\u2904":"nvHarr","\u2905":"Map","\u290c":"lbarr","\u290d":"rbarr","\u290e":"lBarr","\u290f":"rBarr","\u2910":"RBarr","\u2911":"DDotrahd","\u2912":"UpArrowBar","\u2913":"DownArrowBar","\u2916":"Rarrtl","\u2919":"latail","\u291a":"ratail","\u291b":"lAtail","\u291c":"rAtail","\u291d":"larrfs","\u291e":"rarrfs","\u291f":"larrbfs","\u2920":"rarrbfs","\u2923":"nwarhk","\u2924":"nearhk","\u2925":"searhk","\u2926":"swarhk","\u2927":"nwnear","\u2928":"toea","\u2929":"tosa","\u292a":"swnwar","\u2933":"rarrc","\u2933\u0338":"nrarrc","\u2935":"cudarrr","\u2936":"ldca","\u2937":"rdca","\u2938":"cudarrl","\u2939":"larrpl","\u293c":"curarrm","\u293d":"cularrp","\u2945":"rarrpl","\u2948":"harrcir","\u2949":"Uarrocir","\u294a":"lurdshar","\u294b":"ldrushar","\u294e":"LeftRightVector","\u294f":"RightUpDownVector","\u2950":"DownLeftRightVector","\u2951":"LeftUpDownVector","\u2952":"LeftVectorBar","\u2953":"RightVectorBar","\u2954":"RightUpVectorBar","\u2955":"RightDownVectorBar","\u2956":"DownLeftVectorBar","\u2957":"DownRightVectorBar","\u2958":"LeftUpVectorBar","\u2959":"LeftDownVectorBar","\u295a":"LeftTeeVector","\u295b":"RightTeeVector","\u295c":"RightUpTeeVector","\u295d":"RightDownTeeVector","\u295e":"DownLeftTeeVector","\u295f":"DownRightTeeVector","\u2960":"LeftUpTeeVector","\u2961":"LeftDownTeeVector","\u2962":"lHar","\u2963":"uHar","\u2964":"rHar","\u2965":"dHar","\u2966":"luruhar","\u2967":"ldrdhar","\u2968":"ruluhar","\u2969":"rdldhar","\u296a":"lharul","\u296b":"llhard","\u296c":"rharul","\u296d":"lrhard","\u296e":"udhar","\u296f":"duhar","\u2970":"RoundImplies","\u2971":"erarr","\u2972":"simrarr","\u2973":"larrsim","\u2974":"rarrsim","\u2975":"rarrap","\u2976":"ltlarr","\u2978":"gtrarr","\u2979":"subrarr","\u297b":"suplarr","\u297c":"lfisht","\u297d":"rfisht","\u297e":"ufisht","\u297f":"dfisht","\u299a":"vzigzag","\u299c":"vangrt","\u299d":"angrtvbd","\u29a4":"ange","\u29a5":"range","\u29a6":"dwangle","\u29a7":"uwangle","\u29a8":"angmsdaa","\u29a9":"angmsdab","\u29aa":"angmsdac","\u29ab":"angmsdad","\u29ac":"angmsdae","\u29ad":"angmsdaf","\u29ae":"angmsdag","\u29af":"angmsdah","\u29b0":"bemptyv","\u29b1":"demptyv","\u29b2":"cemptyv","\u29b3":"raemptyv","\u29b4":"laemptyv","\u29b5":"ohbar","\u29b6":"omid","\u29b7":"opar","\u29b9":"operp","\u29bb":"olcross","\u29bc":"odsold","\u29be":"olcir","\u29bf":"ofcir","\u29c0":"olt","\u29c1":"ogt","\u29c2":"cirscir","\u29c3":"cirE","\u29c4":"solb","\u29c5":"bsolb","\u29c9":"boxbox","\u29cd":"trisb","\u29ce":"rtriltri","\u29cf":"LeftTriangleBar","\u29cf\u0338":"NotLeftTriangleBar","\u29d0":"RightTriangleBar","\u29d0\u0338":"NotRightTriangleBar","\u29dc":"iinfin","\u29dd":"infintie","\u29de":"nvinfin","\u29e3":"eparsl","\u29e4":"smeparsl","\u29e5":"eqvparsl","\u29eb":"lozf","\u29f4":"RuleDelayed","\u29f6":"dsol","\u2a00":"xodot","\u2a01":"xoplus","\u2a02":"xotime","\u2a04":"xuplus","\u2a06":"xsqcup","\u2a0d":"fpartint","\u2a10":"cirfnint","\u2a11":"awint","\u2a12":"rppolint","\u2a13":"scpolint","\u2a14":"npolint","\u2a15":"pointint","\u2a16":"quatint","\u2a17":"intlarhk","\u2a22":"pluscir","\u2a23":"plusacir","\u2a24":"simplus","\u2a25":"plusdu","\u2a26":"plussim","\u2a27":"plustwo","\u2a29":"mcomma","\u2a2a":"minusdu","\u2a2d":"loplus","\u2a2e":"roplus","\u2a2f":"Cross","\u2a30":"timesd","\u2a31":"timesbar","\u2a33":"smashp","\u2a34":"lotimes","\u2a35":"rotimes","\u2a36":"otimesas","\u2a37":"Otimes","\u2a38":"odiv","\u2a39":"triplus","\u2a3a":"triminus","\u2a3b":"tritime","\u2a3c":"iprod","\u2a3f":"amalg","\u2a40":"capdot","\u2a42":"ncup","\u2a43":"ncap","\u2a44":"capand","\u2a45":"cupor","\u2a46":"cupcap","\u2a47":"capcup","\u2a48":"cupbrcap","\u2a49":"capbrcup","\u2a4a":"cupcup","\u2a4b":"capcap","\u2a4c":"ccups","\u2a4d":"ccaps","\u2a50":"ccupssm","\u2a53":"And","\u2a54":"Or","\u2a55":"andand","\u2a56":"oror","\u2a57":"orslope","\u2a58":"andslope","\u2a5a":"andv","\u2a5b":"orv","\u2a5c":"andd","\u2a5d":"ord","\u2a5f":"wedbar","\u2a66":"sdote","\u2a6a":"simdot","\u2a6d":"congdot","\u2a6d\u0338":"ncongdot","\u2a6e":"easter","\u2a6f":"apacir","\u2a70":"apE","\u2a70\u0338":"napE","\u2a71":"eplus","\u2a72":"pluse","\u2a73":"Esim","\u2a77":"eDDot","\u2a78":"equivDD","\u2a79":"ltcir","\u2a7a":"gtcir","\u2a7b":"ltquest","\u2a7c":"gtquest","\u2a7d":"les","\u2a7d\u0338":"nles","\u2a7e":"ges","\u2a7e\u0338":"nges","\u2a7f":"lesdot","\u2a80":"gesdot","\u2a81":"lesdoto","\u2a82":"gesdoto","\u2a83":"lesdotor","\u2a84":"gesdotol","\u2a85":"lap","\u2a86":"gap","\u2a87":"lne","\u2a88":"gne","\u2a89":"lnap","\u2a8a":"gnap","\u2a8b":"lEg","\u2a8c":"gEl","\u2a8d":"lsime","\u2a8e":"gsime","\u2a8f":"lsimg","\u2a90":"gsiml","\u2a91":"lgE","\u2a92":"glE","\u2a93":"lesges","\u2a94":"gesles","\u2a95":"els","\u2a96":"egs","\u2a97":"elsdot","\u2a98":"egsdot","\u2a99":"el","\u2a9a":"eg","\u2a9d":"siml","\u2a9e":"simg","\u2a9f":"simlE","\u2aa0":"simgE","\u2aa1":"LessLess","\u2aa1\u0338":"NotNestedLessLess","\u2aa2":"GreaterGreater","\u2aa2\u0338":"NotNestedGreaterGreater","\u2aa4":"glj","\u2aa5":"gla","\u2aa6":"ltcc","\u2aa7":"gtcc","\u2aa8":"lescc","\u2aa9":"gescc","\u2aaa":"smt","\u2aab":"lat","\u2aac":"smte","\u2aac\ufe00":"smtes","\u2aad":"late","\u2aad\ufe00":"lates","\u2aae":"bumpE","\u2aaf":"pre","\u2aaf\u0338":"npre","\u2ab0":"sce","\u2ab0\u0338":"nsce","\u2ab3":"prE","\u2ab4":"scE","\u2ab5":"prnE","\u2ab6":"scnE","\u2ab7":"prap","\u2ab8":"scap","\u2ab9":"prnap","\u2aba":"scnap","\u2abb":"Pr","\u2abc":"Sc","\u2abd":"subdot","\u2abe":"supdot","\u2abf":"subplus","\u2ac0":"supplus","\u2ac1":"submult","\u2ac2":"supmult","\u2ac3":"subedot","\u2ac4":"supedot","\u2ac5":"subE","\u2ac5\u0338":"nsubE","\u2ac6":"supE","\u2ac6\u0338":"nsupE","\u2ac7":"subsim","\u2ac8":"supsim","\u2acb\ufe00":"vsubnE","\u2acb":"subnE","\u2acc\ufe00":"vsupnE","\u2acc":"supnE","\u2acf":"csub","\u2ad0":"csup","\u2ad1":"csube","\u2ad2":"csupe","\u2ad3":"subsup","\u2ad4":"supsub","\u2ad5":"subsub","\u2ad6":"supsup","\u2ad7":"suphsub","\u2ad8":"supdsub","\u2ad9":"forkv","\u2ada":"topfork","\u2adb":"mlcp","\u2ae4":"Dashv","\u2ae6":"Vdashl","\u2ae7":"Barv","\u2ae8":"vBar","\u2ae9":"vBarv","\u2aeb":"Vbar","\u2aec":"Not","\u2aed":"bNot","\u2aee":"rnmid","\u2aef":"cirmid","\u2af0":"midcir","\u2af1":"topcir","\u2af2":"nhpar","\u2af3":"parsim","\u2afd":"parsl","\u2afd\u20e5":"nparsl","\u266d":"flat","\u266e":"natur","\u266f":"sharp","\xa4":"curren","\xa2":"cent",$:"dollar","\xa3":"pound","\xa5":"yen","\u20ac":"euro","\xb9":"sup1","\xbd":"half","\u2153":"frac13","\xbc":"frac14","\u2155":"frac15","\u2159":"frac16","\u215b":"frac18","\xb2":"sup2","\u2154":"frac23","\u2156":"frac25","\xb3":"sup3","\xbe":"frac34","\u2157":"frac35","\u215c":"frac38","\u2158":"frac45","\u215a":"frac56","\u215d":"frac58","\u215e":"frac78","\ud835\udcb6":"ascr","\ud835\udd52":"aopf","\ud835\udd1e":"afr","\ud835\udd38":"Aopf","\ud835\udd04":"Afr","\ud835\udc9c":"Ascr","\xaa":"ordf","\xe1":"aacute","\xc1":"Aacute","\xe0":"agrave","\xc0":"Agrave","\u0103":"abreve","\u0102":"Abreve","\xe2":"acirc","\xc2":"Acirc","\xe5":"aring","\xc5":"angst","\xe4":"auml","\xc4":"Auml","\xe3":"atilde","\xc3":"Atilde","\u0105":"aogon","\u0104":"Aogon","\u0101":"amacr","\u0100":"Amacr","\xe6":"aelig","\xc6":"AElig","\ud835\udcb7":"bscr","\ud835\udd53":"bopf","\ud835\udd1f":"bfr","\ud835\udd39":"Bopf","\u212c":"Bscr","\ud835\udd05":"Bfr","\ud835\udd20":"cfr","\ud835\udcb8":"cscr","\ud835\udd54":"copf","\u212d":"Cfr","\ud835\udc9e":"Cscr","\u2102":"Copf","\u0107":"cacute","\u0106":"Cacute","\u0109":"ccirc","\u0108":"Ccirc","\u010d":"ccaron","\u010c":"Ccaron","\u010b":"cdot","\u010a":"Cdot","\xe7":"ccedil","\xc7":"Ccedil","\u2105":"incare","\ud835\udd21":"dfr","\u2146":"dd","\ud835\udd55":"dopf","\ud835\udcb9":"dscr","\ud835\udc9f":"Dscr","\ud835\udd07":"Dfr","\u2145":"DD","\ud835\udd3b":"Dopf","\u010f":"dcaron","\u010e":"Dcaron","\u0111":"dstrok","\u0110":"Dstrok","\xf0":"eth","\xd0":"ETH","\u2147":"ee","\u212f":"escr","\ud835\udd22":"efr","\ud835\udd56":"eopf","\u2130":"Escr","\ud835\udd08":"Efr","\ud835\udd3c":"Eopf","\xe9":"eacute","\xc9":"Eacute","\xe8":"egrave","\xc8":"Egrave","\xea":"ecirc","\xca":"Ecirc","\u011b":"ecaron","\u011a":"Ecaron","\xeb":"euml","\xcb":"Euml","\u0117":"edot","\u0116":"Edot","\u0119":"eogon","\u0118":"Eogon","\u0113":"emacr","\u0112":"Emacr","\ud835\udd23":"ffr","\ud835\udd57":"fopf","\ud835\udcbb":"fscr","\ud835\udd09":"Ffr","\ud835\udd3d":"Fopf","\u2131":"Fscr","\ufb00":"fflig","\ufb03":"ffilig","\ufb04":"ffllig","\ufb01":"filig",fj:"fjlig","\ufb02":"fllig","\u0192":"fnof","\u210a":"gscr","\ud835\udd58":"gopf","\ud835\udd24":"gfr","\ud835\udca2":"Gscr","\ud835\udd3e":"Gopf","\ud835\udd0a":"Gfr","\u01f5":"gacute","\u011f":"gbreve","\u011e":"Gbreve","\u011d":"gcirc","\u011c":"Gcirc","\u0121":"gdot","\u0120":"Gdot","\u0122":"Gcedil","\ud835\udd25":"hfr","\u210e":"planckh","\ud835\udcbd":"hscr","\ud835\udd59":"hopf","\u210b":"Hscr","\u210c":"Hfr","\u210d":"Hopf","\u0125":"hcirc","\u0124":"Hcirc","\u210f":"hbar","\u0127":"hstrok","\u0126":"Hstrok","\ud835\udd5a":"iopf","\ud835\udd26":"ifr","\ud835\udcbe":"iscr","\u2148":"ii","\ud835\udd40":"Iopf","\u2110":"Iscr","\u2111":"Im","\xed":"iacute","\xcd":"Iacute","\xec":"igrave","\xcc":"Igrave","\xee":"icirc","\xce":"Icirc","\xef":"iuml","\xcf":"Iuml","\u0129":"itilde","\u0128":"Itilde","\u0130":"Idot","\u012f":"iogon","\u012e":"Iogon","\u012b":"imacr","\u012a":"Imacr","\u0133":"ijlig","\u0132":"IJlig","\u0131":"imath","\ud835\udcbf":"jscr","\ud835\udd5b":"jopf","\ud835\udd27":"jfr","\ud835\udca5":"Jscr","\ud835\udd0d":"Jfr","\ud835\udd41":"Jopf","\u0135":"jcirc","\u0134":"Jcirc","\u0237":"jmath","\ud835\udd5c":"kopf","\ud835\udcc0":"kscr","\ud835\udd28":"kfr","\ud835\udca6":"Kscr","\ud835\udd42":"Kopf","\ud835\udd0e":"Kfr","\u0137":"kcedil","\u0136":"Kcedil","\ud835\udd29":"lfr","\ud835\udcc1":"lscr","\u2113":"ell","\ud835\udd5d":"lopf","\u2112":"Lscr","\ud835\udd0f":"Lfr","\ud835\udd43":"Lopf","\u013a":"lacute","\u0139":"Lacute","\u013e":"lcaron","\u013d":"Lcaron","\u013c":"lcedil","\u013b":"Lcedil","\u0142":"lstrok","\u0141":"Lstrok","\u0140":"lmidot","\u013f":"Lmidot","\ud835\udd2a":"mfr","\ud835\udd5e":"mopf","\ud835\udcc2":"mscr","\ud835\udd10":"Mfr","\ud835\udd44":"Mopf","\u2133":"Mscr","\ud835\udd2b":"nfr","\ud835\udd5f":"nopf","\ud835\udcc3":"nscr","\u2115":"Nopf","\ud835\udca9":"Nscr","\ud835\udd11":"Nfr","\u0144":"nacute","\u0143":"Nacute","\u0148":"ncaron","\u0147":"Ncaron","\xf1":"ntilde","\xd1":"Ntilde","\u0146":"ncedil","\u0145":"Ncedil","\u2116":"numero","\u014b":"eng","\u014a":"ENG","\ud835\udd60":"oopf","\ud835\udd2c":"ofr","\u2134":"oscr","\ud835\udcaa":"Oscr","\ud835\udd12":"Ofr","\ud835\udd46":"Oopf","\xba":"ordm","\xf3":"oacute","\xd3":"Oacute","\xf2":"ograve","\xd2":"Ograve","\xf4":"ocirc","\xd4":"Ocirc","\xf6":"ouml","\xd6":"Ouml","\u0151":"odblac","\u0150":"Odblac","\xf5":"otilde","\xd5":"Otilde","\xf8":"oslash","\xd8":"Oslash","\u014d":"omacr","\u014c":"Omacr","\u0153":"oelig","\u0152":"OElig","\ud835\udd2d":"pfr","\ud835\udcc5":"pscr","\ud835\udd61":"popf","\u2119":"Popf","\ud835\udd13":"Pfr","\ud835\udcab":"Pscr","\ud835\udd62":"qopf","\ud835\udd2e":"qfr","\ud835\udcc6":"qscr","\ud835\udcac":"Qscr","\ud835\udd14":"Qfr","\u211a":"Qopf","\u0138":"kgreen","\ud835\udd2f":"rfr","\ud835\udd63":"ropf","\ud835\udcc7":"rscr","\u211b":"Rscr","\u211c":"Re","\u211d":"Ropf","\u0155":"racute","\u0154":"Racute","\u0159":"rcaron","\u0158":"Rcaron","\u0157":"rcedil","\u0156":"Rcedil","\ud835\udd64":"sopf","\ud835\udcc8":"sscr","\ud835\udd30":"sfr","\ud835\udd4a":"Sopf","\ud835\udd16":"Sfr","\ud835\udcae":"Sscr","\u24c8":"oS","\u015b":"sacute","\u015a":"Sacute","\u015d":"scirc","\u015c":"Scirc","\u0161":"scaron","\u0160":"Scaron","\u015f":"scedil","\u015e":"Scedil","\xdf":"szlig","\ud835\udd31":"tfr","\ud835\udcc9":"tscr","\ud835\udd65":"topf","\ud835\udcaf":"Tscr","\ud835\udd17":"Tfr","\ud835\udd4b":"Topf","\u0165":"tcaron","\u0164":"Tcaron","\u0163":"tcedil","\u0162":"Tcedil","\u2122":"trade","\u0167":"tstrok","\u0166":"Tstrok","\ud835\udcca":"uscr","\ud835\udd66":"uopf","\ud835\udd32":"ufr","\ud835\udd4c":"Uopf","\ud835\udd18":"Ufr","\ud835\udcb0":"Uscr","\xfa":"uacute","\xda":"Uacute","\xf9":"ugrave","\xd9":"Ugrave","\u016d":"ubreve","\u016c":"Ubreve","\xfb":"ucirc","\xdb":"Ucirc","\u016f":"uring","\u016e":"Uring","\xfc":"uuml","\xdc":"Uuml","\u0171":"udblac","\u0170":"Udblac","\u0169":"utilde","\u0168":"Utilde","\u0173":"uogon","\u0172":"Uogon","\u016b":"umacr","\u016a":"Umacr","\ud835\udd33":"vfr","\ud835\udd67":"vopf","\ud835\udccb":"vscr","\ud835\udd19":"Vfr","\ud835\udd4d":"Vopf","\ud835\udcb1":"Vscr","\ud835\udd68":"wopf","\ud835\udccc":"wscr","\ud835\udd34":"wfr","\ud835\udcb2":"Wscr","\ud835\udd4e":"Wopf","\ud835\udd1a":"Wfr","\u0175":"wcirc","\u0174":"Wcirc","\ud835\udd35":"xfr","\ud835\udccd":"xscr","\ud835\udd69":"xopf","\ud835\udd4f":"Xopf","\ud835\udd1b":"Xfr","\ud835\udcb3":"Xscr","\ud835\udd36":"yfr","\ud835\udcce":"yscr","\ud835\udd6a":"yopf","\ud835\udcb4":"Yscr","\ud835\udd1c":"Yfr","\ud835\udd50":"Yopf","\xfd":"yacute","\xdd":"Yacute","\u0177":"ycirc","\u0176":"Ycirc","\xff":"yuml","\u0178":"Yuml","\ud835\udccf":"zscr","\ud835\udd37":"zfr","\ud835\udd6b":"zopf","\u2128":"Zfr","\u2124":"Zopf","\ud835\udcb5":"Zscr","\u017a":"zacute","\u0179":"Zacute","\u017e":"zcaron","\u017d":"Zcaron","\u017c":"zdot","\u017b":"Zdot","\u01b5":"imped","\xfe":"thorn","\xde":"THORN","\u0149":"napos","\u03b1":"alpha","\u0391":"Alpha","\u03b2":"beta","\u0392":"Beta","\u03b3":"gamma","\u0393":"Gamma","\u03b4":"delta","\u0394":"Delta","\u03b5":"epsi","\u03f5":"epsiv","\u0395":"Epsilon","\u03dd":"gammad","\u03dc":"Gammad","\u03b6":"zeta","\u0396":"Zeta","\u03b7":"eta","\u0397":"Eta","\u03b8":"theta","\u03d1":"thetav","\u0398":"Theta","\u03b9":"iota","\u0399":"Iota","\u03ba":"kappa","\u03f0":"kappav","\u039a":"Kappa","\u03bb":"lambda","\u039b":"Lambda","\u03bc":"mu","\xb5":"micro","\u039c":"Mu","\u03bd":"nu","\u039d":"Nu","\u03be":"xi","\u039e":"Xi","\u03bf":"omicron","\u039f":"Omicron","\u03c0":"pi","\u03d6":"piv","\u03a0":"Pi","\u03c1":"rho","\u03f1":"rhov","\u03a1":"Rho","\u03c3":"sigma","\u03a3":"Sigma","\u03c2":"sigmaf","\u03c4":"tau","\u03a4":"Tau","\u03c5":"upsi","\u03a5":"Upsilon","\u03d2":"Upsi","\u03c6":"phi","\u03d5":"phiv","\u03a6":"Phi","\u03c7":"chi","\u03a7":"Chi","\u03c8":"psi","\u03a8":"Psi","\u03c9":"omega","\u03a9":"ohm","\u0430":"acy","\u0410":"Acy","\u0431":"bcy","\u0411":"Bcy","\u0432":"vcy","\u0412":"Vcy","\u0433":"gcy","\u0413":"Gcy","\u0453":"gjcy","\u0403":"GJcy","\u0434":"dcy","\u0414":"Dcy","\u0452":"djcy","\u0402":"DJcy","\u0435":"iecy","\u0415":"IEcy","\u0451":"iocy","\u0401":"IOcy","\u0454":"jukcy","\u0404":"Jukcy","\u0436":"zhcy","\u0416":"ZHcy","\u0437":"zcy","\u0417":"Zcy","\u0455":"dscy","\u0405":"DScy","\u0438":"icy","\u0418":"Icy","\u0456":"iukcy","\u0406":"Iukcy","\u0457":"yicy","\u0407":"YIcy","\u0439":"jcy","\u0419":"Jcy","\u0458":"jsercy","\u0408":"Jsercy","\u043a":"kcy","\u041a":"Kcy","\u045c":"kjcy","\u040c":"KJcy","\u043b":"lcy","\u041b":"Lcy","\u0459":"ljcy","\u0409":"LJcy","\u043c":"mcy","\u041c":"Mcy","\u043d":"ncy","\u041d":"Ncy","\u045a":"njcy","\u040a":"NJcy","\u043e":"ocy","\u041e":"Ocy","\u043f":"pcy","\u041f":"Pcy","\u0440":"rcy","\u0420":"Rcy","\u0441":"scy","\u0421":"Scy","\u0442":"tcy","\u0422":"Tcy","\u045b":"tshcy","\u040b":"TSHcy","\u0443":"ucy","\u0423":"Ucy","\u045e":"ubrcy","\u040e":"Ubrcy","\u0444":"fcy","\u0424":"Fcy","\u0445":"khcy","\u0425":"KHcy","\u0446":"tscy","\u0426":"TScy","\u0447":"chcy","\u0427":"CHcy","\u045f":"dzcy","\u040f":"DZcy","\u0448":"shcy","\u0428":"SHcy","\u0449":"shchcy","\u0429":"SHCHcy","\u044a":"hardcy","\u042a":"HARDcy","\u044b":"ycy","\u042b":"Ycy","\u044c":"softcy","\u042c":"SOFTcy","\u044d":"ecy","\u042d":"Ecy","\u044e":"yucy","\u042e":"YUcy","\u044f":"yacy","\u042f":"YAcy","\u2135":"aleph","\u2136":"beth","\u2137":"gimel","\u2138":"daleth"},h=/["&'<>`]/g,p={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},m=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,f=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,g=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,v={aacute:"\xe1",Aacute:"\xc1",abreve:"\u0103",Abreve:"\u0102",ac:"\u223e",acd:"\u223f",acE:"\u223e\u0333",acirc:"\xe2",Acirc:"\xc2",acute:"\xb4",acy:"\u0430",Acy:"\u0410",aelig:"\xe6",AElig:"\xc6",af:"\u2061",afr:"\ud835\udd1e",Afr:"\ud835\udd04",agrave:"\xe0",Agrave:"\xc0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03b1",Alpha:"\u0391",amacr:"\u0101",Amacr:"\u0100",amalg:"\u2a3f",amp:"&",AMP:"&",and:"\u2227",And:"\u2a53",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",ange:"\u29a4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angst:"\xc5",angzarr:"\u237c",aogon:"\u0105",Aogon:"\u0104",aopf:"\ud835\udd52",Aopf:"\ud835\udd38",ap:"\u2248",apacir:"\u2a6f",ape:"\u224a",apE:"\u2a70",apid:"\u224b",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224a",aring:"\xe5",Aring:"\xc5",ascr:"\ud835\udcb6",Ascr:"\ud835\udc9c",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224d",atilde:"\xe3",Atilde:"\xc3",auml:"\xe4",Auml:"\xc4",awconint:"\u2233",awint:"\u2a11",backcong:"\u224c",backepsilon:"\u03f6",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",Backslash:"\u2216",Barv:"\u2ae7",barvee:"\u22bd",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23b5",bbrktbrk:"\u23b6",bcong:"\u224c",bcy:"\u0431",Bcy:"\u0411",bdquo:"\u201e",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29b0",bepsi:"\u03f6",bernou:"\u212c",Bernoullis:"\u212c",beta:"\u03b2",Beta:"\u0392",beth:"\u2136",between:"\u226c",bfr:"\ud835\udd1f",Bfr:"\ud835\udd05",bigcap:"\u22c2",bigcirc:"\u25ef",bigcup:"\u22c3",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",bigvee:"\u22c1",bigwedge:"\u22c0",bkarow:"\u290d",blacklozenge:"\u29eb",blacksquare:"\u25aa",blacktriangle:"\u25b4",blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bnot:"\u2310",bNot:"\u2aed",bopf:"\ud835\udd53",Bopf:"\ud835\udd39",bot:"\u22a5",bottom:"\u22a5",bowtie:"\u22c8",boxbox:"\u29c9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250c",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252c",boxhD:"\u2565",boxHd:"\u2564",boxHD:"\u2566",boxhu:"\u2534",boxhU:"\u2568",boxHu:"\u2567",boxHU:"\u2569",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxul:"\u2518",boxuL:"\u255b",boxUl:"\u255c",boxUL:"\u255d",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255a",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253c",boxvH:"\u256a",boxVh:"\u256b",boxVH:"\u256c",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251c",boxvR:"\u255e",boxVr:"\u255f",boxVR:"\u2560",bprime:"\u2035",breve:"\u02d8",Breve:"\u02d8",brvbar:"\xa6",bscr:"\ud835\udcb7",Bscr:"\u212c",bsemi:"\u204f",bsim:"\u223d",bsime:"\u22cd",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bump:"\u224e",bumpe:"\u224f",bumpE:"\u2aae",bumpeq:"\u224f",Bumpeq:"\u224e",cacute:"\u0107",Cacute:"\u0106",cap:"\u2229",Cap:"\u22d2",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",CapitalDifferentialD:"\u2145",caps:"\u2229\ufe00",caret:"\u2041",caron:"\u02c7",Cayleys:"\u212d",ccaps:"\u2a4d",ccaron:"\u010d",Ccaron:"\u010c",ccedil:"\xe7",Ccedil:"\xc7",ccirc:"\u0109",Ccirc:"\u0108",Cconint:"\u2230",ccups:"\u2a4c",ccupssm:"\u2a50",cdot:"\u010b",Cdot:"\u010a",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"\u29b2",cent:"\xa2",centerdot:"\xb7",CenterDot:"\xb7",cfr:"\ud835\udd20",Cfr:"\u212d",chcy:"\u0447",CHcy:"\u0427",check:"\u2713",checkmark:"\u2713",chi:"\u03c7",Chi:"\u03a7",cir:"\u25cb",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledast:"\u229b",circledcirc:"\u229a",circleddash:"\u229d",CircleDot:"\u2299",circledR:"\xae",circledS:"\u24c8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cire:"\u2257",cirE:"\u29c3",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201d",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",colone:"\u2254",Colone:"\u2a74",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2a6d",Congruent:"\u2261",conint:"\u222e",Conint:"\u222f",ContourIntegral:"\u222e",copf:"\ud835\udd54",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xa9",COPY:"\xa9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21b5",cross:"\u2717",Cross:"\u2a2f",cscr:"\ud835\udcb8",Cscr:"\ud835\udc9e",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cularrp:"\u293d",cup:"\u222a",Cup:"\u22d3",cupbrcap:"\u2a48",cupcap:"\u2a46",CupCap:"\u224d",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curarrm:"\u293c",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",curlyvee:"\u22ce",curlywedge:"\u22cf",curren:"\xa4",curvearrowleft:"\u21b6",curvearrowright:"\u21b7",cuvee:"\u22ce",cuwed:"\u22cf",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232d",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",dArr:"\u21d3",Darr:"\u21a1",dash:"\u2010",dashv:"\u22a3",Dashv:"\u2ae4",dbkarow:"\u290f",dblac:"\u02dd",dcaron:"\u010f",Dcaron:"\u010e",dcy:"\u0434",Dcy:"\u0414",dd:"\u2146",DD:"\u2145",ddagger:"\u2021",ddarr:"\u21ca",DDotrahd:"\u2911",ddotseq:"\u2a77",deg:"\xb0",Del:"\u2207",delta:"\u03b4",Delta:"\u0394",demptyv:"\u29b1",dfisht:"\u297f",dfr:"\ud835\udd21",Dfr:"\ud835\udd07",dHar:"\u2965",dharl:"\u21c3",dharr:"\u21c2",DiacriticalAcute:"\xb4",DiacriticalDot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",DiacriticalGrave:"`",DiacriticalTilde:"\u02dc",diam:"\u22c4",diamond:"\u22c4",Diamond:"\u22c4",diamondsuit:"\u2666",diams:"\u2666",die:"\xa8",DifferentialD:"\u2146",digamma:"\u03dd",disin:"\u22f2",div:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",djcy:"\u0452",DJcy:"\u0402",dlcorn:"\u231e",dlcrop:"\u230d",dollar:"$",dopf:"\ud835\udd55",Dopf:"\ud835\udd3b",dot:"\u02d9",Dot:"\xa8",DotDot:"\u20dc",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22a1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222f",DoubleDot:"\xa8",DoubleDownArrow:"\u21d3",DoubleLeftArrow:"\u21d0",DoubleLeftRightArrow:"\u21d4",DoubleLeftTee:"\u2ae4",DoubleLongLeftArrow:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",DoubleLongRightArrow:"\u27f9",DoubleRightArrow:"\u21d2",DoubleRightTee:"\u22a8",DoubleUpArrow:"\u21d1",DoubleUpDownArrow:"\u21d5",DoubleVerticalBar:"\u2225",downarrow:"\u2193",Downarrow:"\u21d3",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21f5",DownBreve:"\u0311",downdownarrows:"\u21ca",downharpoonleft:"\u21c3",downharpoonright:"\u21c2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVector:"\u21bd",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295f",DownRightVector:"\u21c1",DownRightVectorBar:"\u2957",DownTee:"\u22a4",DownTeeArrow:"\u21a7",drbkarow:"\u2910",drcorn:"\u231f",drcrop:"\u230c",dscr:"\ud835\udcb9",Dscr:"\ud835\udc9f",dscy:"\u0455",DScy:"\u0405",dsol:"\u29f6",dstrok:"\u0111",Dstrok:"\u0110",dtdot:"\u22f1",dtri:"\u25bf",dtrif:"\u25be",duarr:"\u21f5",duhar:"\u296f",dwangle:"\u29a6",dzcy:"\u045f",DZcy:"\u040f",dzigrarr:"\u27ff",eacute:"\xe9",Eacute:"\xc9",easter:"\u2a6e",ecaron:"\u011b",Ecaron:"\u011a",ecir:"\u2256",ecirc:"\xea",Ecirc:"\xca",ecolon:"\u2255",ecy:"\u044d",Ecy:"\u042d",eDDot:"\u2a77",edot:"\u0117",eDot:"\u2251",Edot:"\u0116",ee:"\u2147",efDot:"\u2252",efr:"\ud835\udd22",Efr:"\ud835\udd08",eg:"\u2a9a",egrave:"\xe8",Egrave:"\xc8",egs:"\u2a96",egsdot:"\u2a98",el:"\u2a99",Element:"\u2208",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",elsdot:"\u2a97",emacr:"\u0113",Emacr:"\u0112",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25fb",emptyv:"\u2205",EmptyVerySmallSquare:"\u25ab",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",eng:"\u014b",ENG:"\u014a",ensp:"\u2002",eogon:"\u0119",Eogon:"\u0118",eopf:"\ud835\udd56",Eopf:"\ud835\udd3c",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",epsilon:"\u03b5",Epsilon:"\u0395",epsiv:"\u03f5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2a96",eqslantless:"\u2a95",Equal:"\u2a75",equals:"=",EqualTilde:"\u2242",equest:"\u225f",Equilibrium:"\u21cc",equiv:"\u2261",equivDD:"\u2a78",eqvparsl:"\u29e5",erarr:"\u2971",erDot:"\u2253",escr:"\u212f",Escr:"\u2130",esdot:"\u2250",esim:"\u2242",Esim:"\u2a73",eta:"\u03b7",Eta:"\u0397",eth:"\xf0",ETH:"\xd0",euml:"\xeb",Euml:"\xcb",euro:"\u20ac",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",Fcy:"\u0424",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",ffr:"\ud835\udd23",Ffr:"\ud835\udd09",filig:"\ufb01",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",fopf:"\ud835\udd57",Fopf:"\ud835\udd3d",forall:"\u2200",ForAll:"\u2200",fork:"\u22d4",forkv:"\u2ad9",Fouriertrf:"\u2131",fpartint:"\u2a0d",frac12:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",fscr:"\ud835\udcbb",Fscr:"\u2131",gacute:"\u01f5",gamma:"\u03b3",Gamma:"\u0393",gammad:"\u03dd",Gammad:"\u03dc",gap:"\u2a86",gbreve:"\u011f",Gbreve:"\u011e",Gcedil:"\u0122",gcirc:"\u011d",Gcirc:"\u011c",gcy:"\u0433",Gcy:"\u0413",gdot:"\u0121",Gdot:"\u0120",ge:"\u2265",gE:"\u2267",gel:"\u22db",gEl:"\u2a8c",geq:"\u2265",geqq:"\u2267",geqslant:"\u2a7e",ges:"\u2a7e",gescc:"\u2aa9",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",gfr:"\ud835\udd24",Gfr:"\ud835\udd0a",gg:"\u226b",Gg:"\u22d9",ggg:"\u22d9",gimel:"\u2137",gjcy:"\u0453",GJcy:"\u0403",gl:"\u2277",gla:"\u2aa5",glE:"\u2a92",glj:"\u2aa4",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gnE:"\u2269",gneq:"\u2a88",gneqq:"\u2269",gnsim:"\u22e7",gopf:"\ud835\udd58",Gopf:"\ud835\udd3e",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",gscr:"\u210a",Gscr:"\ud835\udca2",gsim:"\u2273",gsime:"\u2a8e",gsiml:"\u2a90",gt:">",Gt:"\u226b",GT:">",gtcc:"\u2aa7",gtcir:"\u2a7a",gtdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrapprox:"\u2a86",gtrarr:"\u2978",gtrdot:"\u22d7",gtreqless:"\u22db",gtreqqless:"\u2a8c",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",Hacek:"\u02c7",hairsp:"\u200a",half:"\xbd",hamilt:"\u210b",hardcy:"\u044a",HARDcy:"\u042a",harr:"\u2194",hArr:"\u21d4",harrcir:"\u2948",harrw:"\u21ad",Hat:"^",hbar:"\u210f",hcirc:"\u0125",Hcirc:"\u0124",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22b9",hfr:"\ud835\udd25",Hfr:"\u210c",HilbertSpace:"\u210b",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",hopf:"\ud835\udd59",Hopf:"\u210d",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\ud835\udcbd",Hscr:"\u210b",hslash:"\u210f",hstrok:"\u0127",Hstrok:"\u0126",HumpDownHump:"\u224e",HumpEqual:"\u224f",hybull:"\u2043",hyphen:"\u2010",iacute:"\xed",Iacute:"\xcd",ic:"\u2063",icirc:"\xee",Icirc:"\xce",icy:"\u0438",Icy:"\u0418",Idot:"\u0130",iecy:"\u0435",IEcy:"\u0415",iexcl:"\xa1",iff:"\u21d4",ifr:"\ud835\udd26",Ifr:"\u2111",igrave:"\xec",Igrave:"\xcc",ii:"\u2148",iiiint:"\u2a0c",iiint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",ijlig:"\u0133",IJlig:"\u0132",Im:"\u2111",imacr:"\u012b",Imacr:"\u012a",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22b7",imped:"\u01b5",Implies:"\u21d2",in:"\u2208",incare:"\u2105",infin:"\u221e",infintie:"\u29dd",inodot:"\u0131",int:"\u222b",Int:"\u222c",intcal:"\u22ba",integers:"\u2124",Integral:"\u222b",intercal:"\u22ba",Intersection:"\u22c2",intlarhk:"\u2a17",intprod:"\u2a3c",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",iocy:"\u0451",IOcy:"\u0401",iogon:"\u012f",Iogon:"\u012e",iopf:"\ud835\udd5a",Iopf:"\ud835\udd40",iota:"\u03b9",Iota:"\u0399",iprod:"\u2a3c",iquest:"\xbf",iscr:"\ud835\udcbe",Iscr:"\u2110",isin:"\u2208",isindot:"\u22f5",isinE:"\u22f9",isins:"\u22f4",isinsv:"\u22f3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",Itilde:"\u0128",iukcy:"\u0456",Iukcy:"\u0406",iuml:"\xef",Iuml:"\xcf",jcirc:"\u0135",Jcirc:"\u0134",jcy:"\u0439",Jcy:"\u0419",jfr:"\ud835\udd27",Jfr:"\ud835\udd0d",jmath:"\u0237",jopf:"\ud835\udd5b",Jopf:"\ud835\udd41",jscr:"\ud835\udcbf",Jscr:"\ud835\udca5",jsercy:"\u0458",Jsercy:"\u0408",jukcy:"\u0454",Jukcy:"\u0404",kappa:"\u03ba",Kappa:"\u039a",kappav:"\u03f0",kcedil:"\u0137",Kcedil:"\u0136",kcy:"\u043a",Kcy:"\u041a",kfr:"\ud835\udd28",Kfr:"\ud835\udd0e",kgreen:"\u0138",khcy:"\u0445",KHcy:"\u0425",kjcy:"\u045c",KJcy:"\u040c",kopf:"\ud835\udd5c",Kopf:"\ud835\udd42",kscr:"\ud835\udcc0",Kscr:"\ud835\udca6",lAarr:"\u21da",lacute:"\u013a",Lacute:"\u0139",laemptyv:"\u29b4",lagran:"\u2112",lambda:"\u03bb",Lambda:"\u039b",lang:"\u27e8",Lang:"\u27ea",langd:"\u2991",langle:"\u27e8",lap:"\u2a85",Laplacetrf:"\u2112",laquo:"\xab",larr:"\u2190",lArr:"\u21d0",Larr:"\u219e",larrb:"\u21e4",larrbfs:"\u291f",larrfs:"\u291d",larrhk:"\u21a9",larrlp:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",lat:"\u2aab",latail:"\u2919",lAtail:"\u291b",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lBarr:"\u290e",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",lcaron:"\u013e",Lcaron:"\u013d",lcedil:"\u013c",Lcedil:"\u013b",lceil:"\u2308",lcub:"{",lcy:"\u043b",Lcy:"\u041b",ldca:"\u2936",ldquo:"\u201c",ldquor:"\u201e",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27e8",leftarrow:"\u2190",Leftarrow:"\u21d0",LeftArrow:"\u2190",LeftArrowBar:"\u21e4",LeftArrowRightArrow:"\u21c6",leftarrowtail:"\u21a2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21c3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230a",leftharpoondown:"\u21bd",leftharpoonup:"\u21bc",leftleftarrows:"\u21c7",leftrightarrow:"\u2194",Leftrightarrow:"\u21d4",LeftRightArrow:"\u2194",leftrightarrows:"\u21c6",leftrightharpoons:"\u21cb",leftrightsquigarrow:"\u21ad",LeftRightVector:"\u294e",LeftTee:"\u22a3",LeftTeeArrow:"\u21a4",LeftTeeVector:"\u295a",leftthreetimes:"\u22cb",LeftTriangle:"\u22b2",LeftTriangleBar:"\u29cf",LeftTriangleEqual:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21bf",LeftUpVectorBar:"\u2958",LeftVector:"\u21bc",LeftVectorBar:"\u2952",leg:"\u22da",lEg:"\u2a8b",leq:"\u2264",leqq:"\u2266",leqslant:"\u2a7d",les:"\u2a7d",lescc:"\u2aa8",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessapprox:"\u2a85",lessdot:"\u22d6",lesseqgtr:"\u22da",lesseqqgtr:"\u2a8b",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2aa1",lesssim:"\u2272",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",lfisht:"\u297c",lfloor:"\u230a",lfr:"\ud835\udd29",Lfr:"\ud835\udd0f",lg:"\u2276",lgE:"\u2a91",lHar:"\u2962",lhard:"\u21bd",lharu:"\u21bc",lharul:"\u296a",lhblk:"\u2584",ljcy:"\u0459",LJcy:"\u0409",ll:"\u226a",Ll:"\u22d8",llarr:"\u21c7",llcorner:"\u231e",Lleftarrow:"\u21da",llhard:"\u296b",lltri:"\u25fa",lmidot:"\u0140",Lmidot:"\u013f",lmoust:"\u23b0",lmoustache:"\u23b0",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lnE:"\u2268",lneq:"\u2a87",lneqq:"\u2268",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",lobrk:"\u27e6",longleftarrow:"\u27f5",Longleftarrow:"\u27f8",LongLeftArrow:"\u27f5",longleftrightarrow:"\u27f7",Longleftrightarrow:"\u27fa",LongLeftRightArrow:"\u27f7",longmapsto:"\u27fc",longrightarrow:"\u27f6",Longrightarrow:"\u27f9",LongRightArrow:"\u27f6",looparrowleft:"\u21ab",looparrowright:"\u21ac",lopar:"\u2985",lopf:"\ud835\udd5d",Lopf:"\ud835\udd43",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25ca",lozenge:"\u25ca",lozf:"\u29eb",lpar:"(",lparlt:"\u2993",lrarr:"\u21c6",lrcorner:"\u231f",lrhar:"\u21cb",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\ud835\udcc1",Lscr:"\u2112",lsh:"\u21b0",Lsh:"\u21b0",lsim:"\u2272",lsime:"\u2a8d",lsimg:"\u2a8f",lsqb:"[",lsquo:"\u2018",lsquor:"\u201a",lstrok:"\u0142",Lstrok:"\u0141",lt:"<",Lt:"\u226a",LT:"<",ltcc:"\u2aa6",ltcir:"\u2a79",ltdot:"\u22d6",lthree:"\u22cb",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltri:"\u25c3",ltrie:"\u22b4",ltrif:"\u25c2",ltrPar:"\u2996",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",macr:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21a6",Map:"\u2905",mapsto:"\u21a6",mapstodown:"\u21a7",mapstoleft:"\u21a4",mapstoup:"\u21a5",marker:"\u25ae",mcomma:"\u2a29",mcy:"\u043c",Mcy:"\u041c",mdash:"\u2014",mDDot:"\u223a",measuredangle:"\u2221",MediumSpace:"\u205f",Mellintrf:"\u2133",mfr:"\ud835\udd2a",Mfr:"\ud835\udd10",mho:"\u2127",micro:"\xb5",mid:"\u2223",midast:"*",midcir:"\u2af0",middot:"\xb7",minus:"\u2212",minusb:"\u229f",minusd:"\u2238",minusdu:"\u2a2a",MinusPlus:"\u2213",mlcp:"\u2adb",mldr:"\u2026",mnplus:"\u2213",models:"\u22a7",mopf:"\ud835\udd5e",Mopf:"\ud835\udd44",mp:"\u2213",mscr:"\ud835\udcc2",Mscr:"\u2133",mstpos:"\u223e",mu:"\u03bc",Mu:"\u039c",multimap:"\u22b8",mumap:"\u22b8",nabla:"\u2207",nacute:"\u0144",Nacute:"\u0143",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266e",natural:"\u266e",naturals:"\u2115",nbsp:"\xa0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",ncaron:"\u0148",Ncaron:"\u0147",ncedil:"\u0146",Ncedil:"\u0145",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",ncy:"\u043d",Ncy:"\u041d",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21d7",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NewLine:"\n",nexist:"\u2204",nexists:"\u2204",nfr:"\ud835\udd2b",Nfr:"\ud835\udd11",nge:"\u2271",ngE:"\u2267\u0338",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",nGg:"\u22d9\u0338",ngsim:"\u2275",ngt:"\u226f",nGt:"\u226b\u20d2",ngtr:"\u226f",nGtv:"\u226b\u0338",nharr:"\u21ae",nhArr:"\u21ce",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",njcy:"\u045a",NJcy:"\u040a",nlarr:"\u219a",nlArr:"\u21cd",nldr:"\u2025",nle:"\u2270",nlE:"\u2266\u0338",nleftarrow:"\u219a",nLeftarrow:"\u21cd",nleftrightarrow:"\u21ae",nLeftrightarrow:"\u21ce",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",nLl:"\u22d8\u0338",nlsim:"\u2274",nlt:"\u226e",nLt:"\u226a\u20d2",nltri:"\u22ea",nltrie:"\u22ec",nLtv:"\u226a\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xa0",nopf:"\ud835\udd5f",Nopf:"\u2115",not:"\xac",Not:"\u2aec",NotCongruent:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",notin:"\u2209",notindot:"\u22f5\u0338",notinE:"\u22f9\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",NotLeftTriangle:"\u22ea",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",NotReverseElement:"\u220c",NotRightTriangle:"\u22eb",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangleEqual:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",npre:"\u2aaf\u0338",nprec:"\u2280",npreceq:"\u2aaf\u0338",nrarr:"\u219b",nrArr:"\u21cf",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nrightarrow:"\u219b",nRightarrow:"\u21cf",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",nscr:"\ud835\udcc3",Nscr:"\ud835\udca9",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsube:"\u2288",nsubE:"\u2ac5\u0338",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupe:"\u2289",nsupE:"\u2ac6\u0338",nsupset:"\u2283\u20d2",nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",ntilde:"\xf1",Ntilde:"\xd1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",nu:"\u03bd",Nu:"\u039d",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvDash:"\u22ad",nVdash:"\u22ae",nVDash:"\u22af",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvHarr:"\u2904",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21d6",nwarrow:"\u2196",nwnear:"\u2927",oacute:"\xf3",Oacute:"\xd3",oast:"\u229b",ocir:"\u229a",ocirc:"\xf4",Ocirc:"\xd4",ocy:"\u043e",Ocy:"\u041e",odash:"\u229d",odblac:"\u0151",Odblac:"\u0150",odiv:"\u2a38",odot:"\u2299",odsold:"\u29bc",oelig:"\u0153",OElig:"\u0152",ofcir:"\u29bf",ofr:"\ud835\udd2c",Ofr:"\ud835\udd12",ogon:"\u02db",ograve:"\xf2",Ograve:"\xd2",ogt:"\u29c1",ohbar:"\u29b5",ohm:"\u03a9",oint:"\u222e",olarr:"\u21ba",olcir:"\u29be",olcross:"\u29bb",oline:"\u203e",olt:"\u29c0",omacr:"\u014d",Omacr:"\u014c",omega:"\u03c9",Omega:"\u03a9",omicron:"\u03bf",Omicron:"\u039f",omid:"\u29b6",ominus:"\u2296",oopf:"\ud835\udd60",Oopf:"\ud835\udd46",opar:"\u29b7",OpenCurlyDoubleQuote:"\u201c",OpenCurlyQuote:"\u2018",operp:"\u29b9",oplus:"\u2295",or:"\u2228",Or:"\u2a54",orarr:"\u21bb",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oS:"\u24c8",oscr:"\u2134",Oscr:"\ud835\udcaa",oslash:"\xf8",Oslash:"\xd8",osol:"\u2298",otilde:"\xf5",Otilde:"\xd5",otimes:"\u2297",Otimes:"\u2a37",otimesas:"\u2a36",ouml:"\xf6",Ouml:"\xd6",ovbar:"\u233d",OverBar:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",OverParenthesis:"\u23dc",par:"\u2225",para:"\xb6",parallel:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",PartialD:"\u2202",pcy:"\u043f",Pcy:"\u041f",percnt:"%",period:".",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",pfr:"\ud835\udd2d",Pfr:"\ud835\udd13",phi:"\u03c6",Phi:"\u03a6",phiv:"\u03d5",phmmat:"\u2133",phone:"\u260e",pi:"\u03c0",Pi:"\u03a0",pitchfork:"\u22d4",piv:"\u03d6",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plus:"+",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\xb1",Poincareplane:"\u210c",pointint:"\u2a15",popf:"\ud835\udd61",Popf:"\u2119",pound:"\xa3",pr:"\u227a",Pr:"\u2abb",prap:"\u2ab7",prcue:"\u227c",pre:"\u2aaf",prE:"\u2ab3",prec:"\u227a",precapprox:"\u2ab7",preccurlyeq:"\u227c",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",preceq:"\u2aaf",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",precsim:"\u227e",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2ab9",prnE:"\u2ab5",prnsim:"\u22e8",prod:"\u220f",Product:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",Proportion:"\u2237",Proportional:"\u221d",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",pscr:"\ud835\udcc5",Pscr:"\ud835\udcab",psi:"\u03c8",Psi:"\u03a8",puncsp:"\u2008",qfr:"\ud835\udd2e",Qfr:"\ud835\udd14",qint:"\u2a0c",qopf:"\ud835\udd62",Qopf:"\u211a",qprime:"\u2057",qscr:"\ud835\udcc6",Qscr:"\ud835\udcac",quaternions:"\u210d",quatint:"\u2a16",quest:"?",questeq:"\u225f",quot:'"',QUOT:'"',rAarr:"\u21db",race:"\u223d\u0331",racute:"\u0155",Racute:"\u0154",radic:"\u221a",raemptyv:"\u29b3",rang:"\u27e9",Rang:"\u27eb",rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raquo:"\xbb",rarr:"\u2192",rArr:"\u21d2",Rarr:"\u21a0",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21a3",Rarrtl:"\u2916",rarrw:"\u219d",ratail:"\u291a",rAtail:"\u291c",ratio:"\u2236",rationals:"\u211a",rbarr:"\u290d",rBarr:"\u290f",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",rcaron:"\u0159",Rcaron:"\u0158",rcedil:"\u0157",Rcedil:"\u0156",rceil:"\u2309",rcub:"}",rcy:"\u0440",Rcy:"\u0420",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",Re:"\u211c",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",rect:"\u25ad",reg:"\xae",REG:"\xae",ReverseElement:"\u220b",ReverseEquilibrium:"\u21cb",ReverseUpEquilibrium:"\u296f",rfisht:"\u297d",rfloor:"\u230b",rfr:"\ud835\udd2f",Rfr:"\u211c",rHar:"\u2964",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",rho:"\u03c1",Rho:"\u03a1",rhov:"\u03f1",RightAngleBracket:"\u27e9",rightarrow:"\u2192",Rightarrow:"\u21d2",RightArrow:"\u2192",RightArrowBar:"\u21e5",RightArrowLeftArrow:"\u21c4",rightarrowtail:"\u21a3",RightCeiling:"\u2309",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVector:"\u21c2",RightDownVectorBar:"\u2955",RightFloor:"\u230b",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightrightarrows:"\u21c9",rightsquigarrow:"\u219d",RightTee:"\u22a2",RightTeeArrow:"\u21a6",RightTeeVector:"\u295b",rightthreetimes:"\u22cc",RightTriangle:"\u22b3",RightTriangleBar:"\u29d0",RightTriangleEqual:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVector:"\u21be",RightUpVectorBar:"\u2954",RightVector:"\u21c0",RightVectorBar:"\u2953",ring:"\u02da",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoust:"\u23b1",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",ropf:"\ud835\udd63",Ropf:"\u211d",roplus:"\u2a2e",rotimes:"\u2a35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",Rrightarrow:"\u21db",rsaquo:"\u203a",rscr:"\ud835\udcc7",Rscr:"\u211b",rsh:"\u21b1",Rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtimes:"\u22ca",rtri:"\u25b9",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",RuleDelayed:"\u29f4",ruluhar:"\u2968",rx:"\u211e",sacute:"\u015b",Sacute:"\u015a",sbquo:"\u201a",sc:"\u227b",Sc:"\u2abc",scap:"\u2ab8",scaron:"\u0161",Scaron:"\u0160",sccue:"\u227d",sce:"\u2ab0",scE:"\u2ab4",scedil:"\u015f",Scedil:"\u015e",scirc:"\u015d",Scirc:"\u015c",scnap:"\u2aba",scnE:"\u2ab6",scnsim:"\u22e9",scpolint:"\u2a13",scsim:"\u227f",scy:"\u0441",Scy:"\u0421",sdot:"\u22c5",sdotb:"\u22a1",sdote:"\u2a66",searhk:"\u2925",searr:"\u2198",seArr:"\u21d8",searrow:"\u2198",sect:"\xa7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\ud835\udd30",Sfr:"\ud835\udd16",sfrown:"\u2322",sharp:"\u266f",shchcy:"\u0449",SHCHcy:"\u0429",shcy:"\u0448",SHcy:"\u0428",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xad",sigma:"\u03c3",Sigma:"\u03a3",sigmaf:"\u03c2",sigmav:"\u03c2",sim:"\u223c",simdot:"\u2a6a",sime:"\u2243",simeq:"\u2243",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2a33",smeparsl:"\u29e4",smid:"\u2223",smile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",softcy:"\u044c",SOFTcy:"\u042c",sol:"/",solb:"\u29c4",solbar:"\u233f",sopf:"\ud835\udd64",Sopf:"\ud835\udd4a",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\ufe00",sqcup:"\u2294",sqcups:"\u2294\ufe00",Sqrt:"\u221a",sqsub:"\u228f",sqsube:"\u2291",sqsubset:"\u228f",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25a1",square:"\u25a1",Square:"\u25a1",SquareIntersection:"\u2293",SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25aa",squf:"\u25aa",srarr:"\u2192",sscr:"\ud835\udcc8",Sscr:"\ud835\udcae",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22c6",star:"\u2606",Star:"\u22c6",starf:"\u2605",straightepsilon:"\u03f5",straightphi:"\u03d5",strns:"\xaf",sub:"\u2282",Sub:"\u22d0",subdot:"\u2abd",sube:"\u2286",subE:"\u2ac5",subedot:"\u2ac3",submult:"\u2ac1",subne:"\u228a",subnE:"\u2acb",subplus:"\u2abf",subrarr:"\u2979",subset:"\u2282",Subset:"\u22d0",subseteq:"\u2286",subseteqq:"\u2ac5",SubsetEqual:"\u2286",subsetneq:"\u228a",subsetneqq:"\u2acb",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",succ:"\u227b",succapprox:"\u2ab8",succcurlyeq:"\u227d",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",succeq:"\u2ab0",succnapprox:"\u2aba",succneqq:"\u2ab6",succnsim:"\u22e9",succsim:"\u227f",SuchThat:"\u220b",sum:"\u2211",Sum:"\u2211",sung:"\u266a",sup:"\u2283",Sup:"\u22d1",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supdot:"\u2abe",supdsub:"\u2ad8",supe:"\u2287",supE:"\u2ac6",supedot:"\u2ac4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supne:"\u228b",supnE:"\u2acc",supplus:"\u2ac0",supset:"\u2283",Supset:"\u22d1",supseteq:"\u2287",supseteqq:"\u2ac6",supsetneq:"\u228b",supsetneqq:"\u2acc",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21d9",swarrow:"\u2199",swnwar:"\u292a",szlig:"\xdf",Tab:"\t",target:"\u2316",tau:"\u03c4",Tau:"\u03a4",tbrk:"\u23b4",tcaron:"\u0165",Tcaron:"\u0164",tcedil:"\u0163",Tcedil:"\u0162",tcy:"\u0442",Tcy:"\u0422",tdot:"\u20db",telrec:"\u2315",tfr:"\ud835\udd31",Tfr:"\ud835\udd17",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",theta:"\u03b8",Theta:"\u0398",thetasym:"\u03d1",thetav:"\u03d1",thickapprox:"\u2248",thicksim:"\u223c",ThickSpace:"\u205f\u200a",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223c",thorn:"\xfe",THORN:"\xde",tilde:"\u02dc",Tilde:"\u223c",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xd7",timesb:"\u22a0",timesbar:"\u2a31",timesd:"\u2a30",tint:"\u222d",toea:"\u2928",top:"\u22a4",topbot:"\u2336",topcir:"\u2af1",topf:"\ud835\udd65",Topf:"\ud835\udd4b",topfork:"\u2ada",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25b5",triangledown:"\u25bf",triangleleft:"\u25c3",trianglelefteq:"\u22b4",triangleq:"\u225c",triangleright:"\u25b9",trianglerighteq:"\u22b5",tridot:"\u25ec",trie:"\u225c",triminus:"\u2a3a",TripleDot:"\u20db",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",tscr:"\ud835\udcc9",Tscr:"\ud835\udcaf",tscy:"\u0446",TScy:"\u0426",tshcy:"\u045b",TSHcy:"\u040b",tstrok:"\u0167",Tstrok:"\u0166",twixt:"\u226c",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",uacute:"\xfa",Uacute:"\xda",uarr:"\u2191",uArr:"\u21d1",Uarr:"\u219f",Uarrocir:"\u2949",ubrcy:"\u045e",Ubrcy:"\u040e",ubreve:"\u016d",Ubreve:"\u016c",ucirc:"\xfb",Ucirc:"\xdb",ucy:"\u0443",Ucy:"\u0423",udarr:"\u21c5",udblac:"\u0171",Udblac:"\u0170",udhar:"\u296e",ufisht:"\u297e",ufr:"\ud835\udd32",Ufr:"\ud835\udd18",ugrave:"\xf9",Ugrave:"\xd9",uHar:"\u2963",uharl:"\u21bf",uharr:"\u21be",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",umacr:"\u016b",Umacr:"\u016a",uml:"\xa8",UnderBar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",UnionPlus:"\u228e",uogon:"\u0173",Uogon:"\u0172",uopf:"\ud835\udd66",Uopf:"\ud835\udd4c",uparrow:"\u2191",Uparrow:"\u21d1",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21c5",updownarrow:"\u2195",Updownarrow:"\u21d5",UpDownArrow:"\u2195",UpEquilibrium:"\u296e",upharpoonleft:"\u21bf",upharpoonright:"\u21be",uplus:"\u228e",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03c5",Upsi:"\u03d2",upsih:"\u03d2",upsilon:"\u03c5",Upsilon:"\u03a5",UpTee:"\u22a5",UpTeeArrow:"\u21a5",upuparrows:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",uring:"\u016f",Uring:"\u016e",urtri:"\u25f9",uscr:"\ud835\udcca",Uscr:"\ud835\udcb0",utdot:"\u22f0",utilde:"\u0169",Utilde:"\u0168",utri:"\u25b5",utrif:"\u25b4",uuarr:"\u21c8",uuml:"\xfc",Uuml:"\xdc",uwangle:"\u29a7",vangrt:"\u299c",varepsilon:"\u03f5",varkappa:"\u03f0",varnothing:"\u2205",varphi:"\u03d5",varpi:"\u03d6",varpropto:"\u221d",varr:"\u2195",vArr:"\u21d5",varrho:"\u03f1",varsigma:"\u03c2",varsubsetneq:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vartheta:"\u03d1",vartriangleleft:"\u22b2",vartriangleright:"\u22b3",vBar:"\u2ae8",Vbar:"\u2aeb",vBarv:"\u2ae9",vcy:"\u0432",Vcy:"\u0412",vdash:"\u22a2",vDash:"\u22a8",Vdash:"\u22a9",VDash:"\u22ab",Vdashl:"\u2ae6",vee:"\u2228",Vee:"\u22c1",veebar:"\u22bb",veeeq:"\u225a",vellip:"\u22ee",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200a",vfr:"\ud835\udd33",Vfr:"\ud835\udd19",vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",vopf:"\ud835\udd67",Vopf:"\ud835\udd4d",vprop:"\u221d",vrtri:"\u22b3",vscr:"\ud835\udccb",Vscr:"\ud835\udcb1",vsubne:"\u228a\ufe00",vsubnE:"\u2acb\ufe00",vsupne:"\u228b\ufe00",vsupnE:"\u2acc\ufe00",Vvdash:"\u22aa",vzigzag:"\u299a",wcirc:"\u0175",Wcirc:"\u0174",wedbar:"\u2a5f",wedge:"\u2227",Wedge:"\u22c0",wedgeq:"\u2259",weierp:"\u2118",wfr:"\ud835\udd34",Wfr:"\ud835\udd1a",wopf:"\ud835\udd68",Wopf:"\ud835\udd4e",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\ud835\udccc",Wscr:"\ud835\udcb2",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",xfr:"\ud835\udd35",Xfr:"\ud835\udd1b",xharr:"\u27f7",xhArr:"\u27fa",xi:"\u03be",Xi:"\u039e",xlarr:"\u27f5",xlArr:"\u27f8",xmap:"\u27fc",xnis:"\u22fb",xodot:"\u2a00",xopf:"\ud835\udd69",Xopf:"\ud835\udd4f",xoplus:"\u2a01",xotime:"\u2a02",xrarr:"\u27f6",xrArr:"\u27f9",xscr:"\ud835\udccd",Xscr:"\ud835\udcb3",xsqcup:"\u2a06",xuplus:"\u2a04",xutri:"\u25b3",xvee:"\u22c1",xwedge:"\u22c0",yacute:"\xfd",Yacute:"\xdd",yacy:"\u044f",YAcy:"\u042f",ycirc:"\u0177",Ycirc:"\u0176",ycy:"\u044b",Ycy:"\u042b",yen:"\xa5",yfr:"\ud835\udd36",Yfr:"\ud835\udd1c",yicy:"\u0457",YIcy:"\u0407",yopf:"\ud835\udd6a",Yopf:"\ud835\udd50",yscr:"\ud835\udcce",Yscr:"\ud835\udcb4",yucy:"\u044e",YUcy:"\u042e",yuml:"\xff",Yuml:"\u0178",zacute:"\u017a",Zacute:"\u0179",zcaron:"\u017e",Zcaron:"\u017d",zcy:"\u0437",Zcy:"\u0417",zdot:"\u017c",Zdot:"\u017b",zeetrf:"\u2128",ZeroWidthSpace:"\u200b",zeta:"\u03b6",Zeta:"\u0396",zfr:"\ud835\udd37",Zfr:"\u2128",zhcy:"\u0436",ZHcy:"\u0416",zigrarr:"\u21dd",zopf:"\ud835\udd6b",Zopf:"\u2124",zscr:"\ud835\udccf",Zscr:"\ud835\udcb5",zwj:"\u200d",zwnj:"\u200c"},b={aacute:"\xe1",Aacute:"\xc1",acirc:"\xe2",Acirc:"\xc2",acute:"\xb4",aelig:"\xe6",AElig:"\xc6",agrave:"\xe0",Agrave:"\xc0",amp:"&",AMP:"&",aring:"\xe5",Aring:"\xc5",atilde:"\xe3",Atilde:"\xc3",auml:"\xe4",Auml:"\xc4",brvbar:"\xa6",ccedil:"\xe7",Ccedil:"\xc7",cedil:"\xb8",cent:"\xa2",copy:"\xa9",COPY:"\xa9",curren:"\xa4",deg:"\xb0",divide:"\xf7",eacute:"\xe9",Eacute:"\xc9",ecirc:"\xea",Ecirc:"\xca",egrave:"\xe8",Egrave:"\xc8",eth:"\xf0",ETH:"\xd0",euml:"\xeb",Euml:"\xcb",frac12:"\xbd",frac14:"\xbc",frac34:"\xbe",gt:">",GT:">",iacute:"\xed",Iacute:"\xcd",icirc:"\xee",Icirc:"\xce",iexcl:"\xa1",igrave:"\xec",Igrave:"\xcc",iquest:"\xbf",iuml:"\xef",Iuml:"\xcf",laquo:"\xab",lt:"<",LT:"<",macr:"\xaf",micro:"\xb5",middot:"\xb7",nbsp:"\xa0",not:"\xac",ntilde:"\xf1",Ntilde:"\xd1",oacute:"\xf3",Oacute:"\xd3",ocirc:"\xf4",Ocirc:"\xd4",ograve:"\xf2",Ograve:"\xd2",ordf:"\xaa",ordm:"\xba",oslash:"\xf8",Oslash:"\xd8",otilde:"\xf5",Otilde:"\xd5",ouml:"\xf6",Ouml:"\xd6",para:"\xb6",plusmn:"\xb1",pound:"\xa3",quot:'"',QUOT:'"',raquo:"\xbb",reg:"\xae",REG:"\xae",sect:"\xa7",shy:"\xad",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",szlig:"\xdf",thorn:"\xfe",THORN:"\xde",times:"\xd7",uacute:"\xfa",Uacute:"\xda",ucirc:"\xfb",Ucirc:"\xdb",ugrave:"\xf9",Ugrave:"\xd9",uml:"\xa8",uuml:"\xfc",Uuml:"\xdc",yacute:"\xfd",Yacute:"\xdd",yen:"\xa5",yuml:"\xff"},y={0:"\ufffd",128:"\u20ac",130:"\u201a",131:"\u0192",132:"\u201e",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02c6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017d",145:"\u2018",146:"\u2019",147:"\u201c",148:"\u201d",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02dc",153:"\u2122",154:"\u0161",155:"\u203a",156:"\u0153",158:"\u017e",159:"\u0178"},w=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],C=String.fromCharCode,x={}.hasOwnProperty,E=function(e,t){return x.call(e,t)},k=function(e,t){if(!e)return t;var r,o={};for(r in t)o[r]=E(e,r)?e[r]:t[r];return o},S=function(e,t){var r="";return e>=55296&&e<=57343||e>1114111?(t&&D("character reference outside the permissible Unicode range"),"\ufffd"):E(y,e)?(t&&D("disallowed character reference"),y[e]):(t&&function(e,t){for(var r=-1,o=e.length;++r65535&&(r+=C((e-=65536)>>>10&1023|55296),e=56320|1023&e),r+=C(e))},A=function(e){return"&#x"+e.toString(16).toUpperCase()+";"},j=function(e){return"&#"+e+";"},D=function(e){throw Error("Parse error: "+e)},T=function(e,t){(t=k(t,T.options)).strict&&f.test(e)&&D("forbidden code point");var r=t.encodeEverything,o=t.useNamedReferences,n=t.allowUnsafeSymbols,i=t.decimal?j:A,a=function(e){return i(e.charCodeAt(0))};return r?(e=e.replace(c,(function(e){return o&&E(d,e)?"&"+d[e]+";":a(e)})),o&&(e=e.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),o&&(e=e.replace(u,(function(e){return"&"+d[e]+";"})))):o?(n||(e=e.replace(h,(function(e){return"&"+d[e]+";"}))),e=(e=e.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒")).replace(u,(function(e){return"&"+d[e]+";"}))):n||(e=e.replace(h,a)),e.replace(s,(function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return i(1024*(t-55296)+r-56320+65536)})).replace(l,a)};T.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var q=function(e,t){var r=(t=k(t,q.options)).strict;return r&&m.test(e)&&D("malformed character reference"),e.replace(g,(function(e,o,n,i,a,s,c,l,u){var d,h,p,m,f,g;return o?v[f=o]:n?(f=n,(g=i)&&t.isAttributeValue?(r&&"="==g&&D("`&` did not start a character reference"),e):(r&&D("named character reference was not terminated by a semicolon"),b[f]+(g||""))):a?(p=a,h=s,r&&!h&&D("character reference was not terminated by a semicolon"),d=parseInt(p,10),S(d,r)):c?(m=c,h=l,r&&!h&&D("character reference was not terminated by a semicolon"),d=parseInt(m,16),S(d,r)):(r&&D("named character reference was not terminated by a semicolon"),e)}))};q.options={isAttributeValue:!1,strict:!1};var L={version:"1.2.0",encode:T,decode:q,escape:function(e){return e.replace(h,(function(e){return p[e]}))},unescape:q};void 0===(o=function(){return L}.call(t,r,t,e))||(e.exports=o)}()},18156:function(e,t){"use strict";for(var r="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),o={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},n={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:r?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},a=1;a<20;a++)i["f"+a]=111+a;function s(e,t,r){t&&!("byKey"in t)&&(r=t,t=null),Array.isArray(e)||(e=[e]);var o=e.map((function(e){return c(e,t)})),n=function(e){return o.some((function(t){return l(t,e)}))};return null==r?n:n(r)}function c(e,t){var r=t&&t.byKey,n={},i=(e=e.replace("++","+add")).split("+"),a=i.length;for(var s in o)n[o[s]]=!1;var c=!0,l=!1,h=void 0;try{for(var p,m=i[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){var f=p.value,g=f.endsWith("?")&&f.length>1;g&&(f=f.slice(0,-1));var v=d(f),b=o[v];1!==a&&b||(r?n.key=v:n.which=u(f)),b&&(n[b]=!g||null)}}catch(y){l=!0,h=y}finally{try{!c&&m.return&&m.return()}finally{if(l)throw h}}return n}function l(e,t){for(var r in e){var o=e[r],n=void 0;if(null!=o&&((null!=(n="key"===r&&null!=t.key?t.key.toLowerCase():"which"===r?91===o&&93===t.which?91:t.which:t[r])||!1!==o)&&n!==o))return!1}return!0}function u(e){return e=d(e),i[e]||e.toUpperCase().charCodeAt(0)}function d(e){return e=e.toLowerCase(),e=n[e]||e}t.TB=function(e,t){return s(e,{byKey:!0},t)}},23493:function(e,t,r){var o=r(23279),n=r(13218);e.exports=function(e,t,r){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return n(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),o(e,t,{leading:i,maxWait:t,trailing:a})}},37501:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deepMap=t.removeDiacritics=t.getSearch=t.getMatchBoundaries=void 0;const o=r(67294);t.getMatchBoundaries=function(e,t){const r=t.exec(e);if(r)return{first:r.index,last:r.index+r[0].length}},t.getSearch=function(e){const{search:r,ignoreDiacritics:o,diacriticsBlacklist:i,caseSensitive:a}=e;if(r instanceof RegExp)return r;let s=n(r);return o&&(s=(0,t.removeDiacritics)(s,i)),new RegExp(s,a?"":"i")};t.removeDiacritics=(e,t)=>{if(!String.prototype.normalize)return e;if(t){const r=t.split("");return e.normalize("NFD").replace(/.[\u0300-\u036f]+/g,(function(e){return r.indexOf(e.normalize())>-1?e.normalize():e[0]}))}return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")};const n=e=>e?e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"):"";t.deepMap=(e,r)=>o.Children.toArray(e).map(((e,n,i)=>{return(0,o.isValidElement)(e)&&(a=e,(0,o.isValidElement)(a)&&Boolean(a.props.children))?r((0,o.cloneElement)(e,Object.assign(Object.assign({},e.props),{children:(0,t.deepMap)(e.props.children,r)}))):r(e,n,i);var a})),t.default=t.deepMap},98456:function(e,t,r){"use strict";var o=this&&this.__rest||function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n(0,n.jsx)("span",{children:e},`${e}-${r}`);return(0,n.jsx)("span",Object.assign({},f,{ref:t},{children:(t=>s?(0,a.deepMap)(t,(t=>"string"===typeof t?((e,t)=>{const o=[];let n=e;for(;n;){const e=c?(0,a.removeDiacritics)(n,l||""):n;if(!t.test(e))return o.push(g(n)),o;const p=(0,a.getMatchBoundaries)(e,t);if(0===(null===p||void 0===p?void 0:p.first)&&0===(null===p||void 0===p?void 0:p.last))return o;const m=n.slice(0,null===p||void 0===p?void 0:p.first);m&&o.push(g(m));const f=n.slice(null===p||void 0===p?void 0:p.first,null===p||void 0===p?void 0:p.last);f&&o.push((s=f,(0,i.createElement)(u,{key:`${s}-${r}`,className:d,style:h},s))),n=n.slice(null===p||void 0===p?void 0:p.last),r++}var s;return o})(t,(0,a.getSearch)(e)):t)):[t])(p)}),void 0)}))},47049:function(e,t,r){"use strict";t.y=void 0;var o=r(98456);Object.defineProperty(t,"y",{enumerable:!0,get:function(){return o.Highlight}})},9764:function(e,t,r){"use strict";r.d(t,{OO:function(){return Nr}});var o=r(67294);function n(e,t){return function(r){return e(t(r))}}function i(e,t){return t(e)}function a(e,t){return function(r){return e(t,r)}}function s(e,t){return function(){return e(t)}}function c(e,t){return t(e),e}function l(){for(var e=arguments.length,t=new Array(e),r=0;r-1&&e.splice(t,1)};case 0:return void e.slice().forEach((function(e){e(r)}));default:throw new Error("unrecognized action "+t)}}}function C(e){var t=e,r=w();return function(e,o){switch(e){case 1:o(t);break;case 0:t=o;break;case 4:return t}return r(e,o)}}function x(e){return c(w(),(function(t){return b(e,t)}))}function E(e,t){return c(C(t),(function(t){return b(e,t)}))}function k(){for(var e=arguments.length,t=new Array(e),r=0;r1?t-1:0),o=1;o0?e--:t(r)}}}function R(e){var t,r;return function(o){return function(n){t=n,r||(r=setTimeout((function(){r=void 0,o(t)}),e))}}}function B(e){var t,r;return function(o){return function(n){t=n,r&&clearTimeout(r),r=setTimeout((function(){o(t)}),e)}}}function z(){for(var e=arguments.length,t=new Array(e),r=0;re.length)&&(t=e.length);for(var r=0,o=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var M=["children"];var $="undefined"!==typeof document?o.useLayoutEffect:o.useEffect;function G(e,t,r){var n=Object.keys(t.required||{}),i=Object.keys(t.optional||{}),l=Object.keys(t.methods||{}),u=Object.keys(t.events||{}),h=(0,o.createContext)({});function b(e,r){e.propsReady&&f(e.propsReady,!1);for(var o,a=U(n);!(o=a()).done;){var s=o.value;f(e[t.required[s]],r[s])}for(var c,l=U(i);!(c=l()).done;){var u=c.value;if(u in r)f(e[t.optional[u]],r[u])}e.propsReady&&f(e.propsReady,!0)}function y(e){return u.reduce((function(r,o){return r[o]=function(e){var t,r,o=function(){return t&&t()};return function(n,i){switch(n){case 1:if(i){if(r===i)return;return o(),r=i,t=m(e,i)}return o(),p;case 2:return o(),void(r=null);default:throw new Error("unrecognized action "+n)}}}(e[t.events[o]]),r}),{})}var w=(0,o.forwardRef)((function(a,p){var v=a.children,w=function(e,t){if(null==e)return{};var r,o,n={},i=Object.keys(e);for(o=0;o=0||(n[r]=e[r]);return n}(a,M),C=(0,o.useState)((function(){return c(function(e){var t=new Map;return function e(r){var o=r.id,n=r.constructor,i=r.dependencies,a=r.singleton;if(a&&t.has(o))return t.get(o);var s=n(i.map((function(t){return e(t)})));return a&&t.set(o,s),s}(e)}(e),(function(e){return b(e,w)}))})),x=C[0],E=(0,o.useState)(s(y,x))[0];return $((function(){for(var e,t=U(u);!(e=t()).done;){var r=e.value;r in w&&m(E[r],w[r])}return function(){Object.values(E).map(g)}}),[w,E,x]),$((function(){b(x,w)})),(0,o.useImperativeHandle)(p,d(function(e){return l.reduce((function(r,o){return r[o]=function(r){f(e[t.methods[o]],r)},r}),{})}(x))),(0,o.createElement)(h.Provider,{value:x},r?(0,o.createElement)(r,function(e,t){for(var r={},o={},n=0,i=e.length;n=0||(n[r]=e[r]);return n}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var _,Q,X,ee="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;(X=Q||(Q={}))[X.DEBUG=0]="DEBUG",X[X.INFO=1]="INFO",X[X.WARN=2]="WARN",X[X.ERROR=3]="ERROR";var te=((_={})[Q.DEBUG]="debug",_[Q.INFO]="log",_[Q.WARN]="warn",_[Q.ERROR]="error",_),re=V((function(){var e=C(Q.ERROR);return{log:C((function(t,r,o){var n;void 0===o&&(o=Q.INFO),o>=(null!=(n=("undefined"==typeof globalThis?window:globalThis).VIRTUOSO_LOG_LEVEL)?n:v(e))&&console[te[o]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,r)})),logLevel:e}}),[],{singleton:!0});function oe(e,t){void 0===t&&(t=!0);var r=(0,o.useRef)(null),n=function(e){};if("undefined"!=typeof ResizeObserver){var i=new ResizeObserver((function(t){var r=t[0].target;null!==r.offsetParent&&e(r)}));n=function(e){e&&t?(i.observe(e),r.current=e):(r.current&&i.unobserve(r.current),r.current=null)}}return{ref:r,callbackRef:n}}function ne(e,t){return void 0===t&&(t=!0),oe(e,t).callbackRef}function ie(e,t,r,o,n,i,a){return oe((function(r){for(var s=function(e,t,r,o){var n=e.length;if(0===n)return null;for(var i=[],a=0;at&&(a=a.concat(ve(e.l,t,r))),o>=t&&o<=r&&a.push({k:o,v:n}),o<=r&&(a=a.concat(ve(i,t,r))),a}function be(e){return he(e)?[]:[].concat(be(e.l),[{k:e.k,v:e.v}],be(e.r))}function ye(e){return he(e.r)?[e.k,e.v]:ye(e.r)}function we(e){return he(e.r)?e.l:Ee(Ce(e,{r:we(e.r)}))}function Ce(e,t){return de(void 0!==t.k?t.k:e.k,void 0!==t.v?t.v:e.v,void 0!==t.lvl?t.lvl:e.lvl,void 0!==t.l?t.l:e.l,void 0!==t.r?t.r:e.r)}function xe(e){return he(e)||e.lvl>e.r.lvl}function Ee(e){var t=e.l,r=e.r,o=e.lvl;if(r.lvl>=o-1&&t.lvl>=o-1)return e;if(o>r.lvl+1){if(xe(t))return je(Ce(e,{lvl:o-1}));if(he(t)||he(t.r))throw new Error("Unexpected empty nodes");return Ce(t.r,{l:Ce(t,{r:t.r.l}),r:Ce(e,{l:t.r.r,lvl:o-1}),lvl:o})}if(xe(e))return Ae(Ce(e,{lvl:o-1}));if(he(r)||he(r.l))throw new Error("Unexpected empty nodes");var n=r.l,i=xe(n)?r.lvl-1:r.lvl;return Ce(n,{l:Ce(e,{r:n.l,lvl:o-1}),r:Ae(Ce(r,{l:n.r,lvl:i})),lvl:n.lvl+1})}function ke(e,t,r){return he(e)?[]:Se(ve(e,fe(e,t)[0],r),(function(e){return{index:e.k,value:e.v}}))}function Se(e,t){var r=e.length;if(0===r)return[];for(var o=t(e[0]),n=o.index,i=o.value,a=[],s=1;s0&&(0,t[2])("received item sizes",r,Q.DEBUG);var i=e.sizeTree,a=i,s=0;if(o.length>0&&he(i)&&2===r.length){var c=r[0].size,l=r[1].size;a=o.reduce((function(e,t){return ge(ge(e,t,c),t+1,l)}),a)}else{var u=function(e,t){for(var r,o=he(e)?0:1/0,n=Y(t);!(r=n()).done;){var i=r.value,a=i.size,s=i.startIndex,c=i.endIndex;if(o=Math.min(o,s),he(e))e=ge(e,0,a);else{var l=ke(e,s-1,c+1);if(!l.some(Le(i))){for(var u,d=!1,h=!1,p=Y(l);!(u=p()).done;){var m=u.value,f=m.start,g=m.end,v=m.value;d?(c>=f||a===v)&&(e=me(e,f)):(h=v!==a,d=!0),g>c&&c>=f&&v!==a&&(e=ge(e,c+1,v))}h&&(e=ge(e,s,a))}}}return[e,o]}(a,r);a=u[0],s=u[1]}if(a===i)return e;var d=ze(e.offsetTree,s,a,n),h=d.offsetTree;return{sizeTree:a,offsetTree:h,lastIndex:d.lastIndex,lastOffset:d.lastOffset,lastSize:d.lastSize,groupOffsetTree:o.reduce((function(e,t){return ge(e,t,Fe(t,h,n))}),pe()),groupIndices:o}}function Fe(e,t,r){if(0===t.length)return 0;var o=Te(t,e,Ie),n=e-o.index,i=o.size*n+(n-1)*r+o.offset;return i>0?i+r:i}function He(e,t,r){if(function(e){return void 0!==e.groupIndex}(e))return t.groupIndices[e.groupIndex]+1;var o=Ve("LAST"===e.index?r:e.index,t);return Math.max(0,o,Math.min(r,o))}function Ve(e,t){if(!Oe(t))return e;for(var r=0;t.groupIndices[r]<=e+r;)r++;return e+r}function Oe(e){return!he(e.groupOffsetTree)}var Ne={offsetHeight:"height",offsetWidth:"width"},Ue=V((function(e){var t=e[0].log,r=e[1].recalcInProgress,o=w(),n=w(),i=E(n,0),a=w(),s=w(),c=C(0),l=C([]),u=C(void 0),d=C(void 0),h=C((function(e,t){return ae(e,Ne[t])})),p=C(void 0),g=C(0),y={offsetTree:[],sizeTree:pe(),groupOffsetTree:pe(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]},k=E(S(o,z(l,t,g),L(Pe,y),j()),y);b(S(l,D((function(e){return e.length>0})),z(k,g),T((function(e){var t=e[0],r=e[1],o=e[2],n=t.reduce((function(e,t,n){return ge(e,t,Fe(t,r.offsetTree,o)||n)}),pe());return W({},r,{groupIndices:t,groupOffsetTree:n})}))),k),b(S(n,z(k),D((function(e){return e[0]0?(f(r,!0),f(a,e)):e<0&&f(s,e)})),m(S(c,z(t)),(function(e){e[0]<0&&(0,e[1])("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:c},Q.ERROR)}));var I=x(a);b(S(a,z(k),T((function(e){var t=e[0],r=e[1];if(r.groupIndices.length>0)throw new Error("Virtuoso: prepending items does not work with groups");return be(r.sizeTree).reduce((function(e,r){var o=r.k,n=r.v;return{ranges:[].concat(e.ranges,[{startIndex:e.prevIndex,endIndex:o+t-1,size:e.prevSize}]),prevIndex:o+t,prevSize:n}}),{ranges:[],prevIndex:0,prevSize:r.lastSize}).ranges}))),o);var R=x(S(s,z(k,g),T((function(e){return Fe(-e[0],e[1].offsetTree,e[2])}))));return b(S(s,z(k,g),T((function(e){var t=e[0],r=e[1],o=e[2];if(r.groupIndices.length>0)throw new Error("Virtuoso: shifting items does not work with groups");var n=be(r.sizeTree).reduce((function(e,r){var o=r.v;return ge(e,Math.max(0,r.k+t),o)}),pe());return W({},r,{sizeTree:n},ze(r.offsetTree,0,n,o))}))),k),{data:p,totalCount:n,sizeRanges:o,groupIndices:l,defaultItemSize:d,fixedItemSize:u,unshiftWith:a,shiftWith:s,shiftWithOffset:R,beforeUnshiftWith:I,firstItemIndex:c,gap:g,sizes:k,listRefresh:q,statefulTotalCount:i,trackItemSizes:A,itemSize:h}}),l(re,qe),{singleton:!0}),Me="undefined"!=typeof document&&"scrollBehavior"in document.documentElement.style;function $e(e){var t="number"==typeof e?{index:e}:e;return t.align||(t.align="start"),t.behavior&&Me||(t.behavior="auto"),t.offset||(t.offset=0),t}var Ge=V((function(e){var t=e[0],r=t.sizes,o=t.totalCount,n=t.listRefresh,i=t.gap,a=e[1],s=a.scrollingInProgress,c=a.viewportHeight,l=a.scrollTo,u=a.smoothScrollTargetReached,d=a.headerHeight,h=a.footerHeight,p=e[2].log,g=w(),v=C(0),x=null,E=null,k=null;function A(){x&&(x(),x=null),k&&(k(),k=null),E&&(clearTimeout(E),E=null),f(s,!1)}return b(S(g,z(r,c,o,v,d,h,p),z(i),T((function(e){var t=e[0],r=t[0],o=t[1],i=t[2],a=t[3],c=t[4],l=t[5],d=t[6],h=t[7],p=e[1],v=$e(r),b=v.align,w=v.behavior,C=v.offset,j=a-1,D=He(v,o,j),T=Fe(D,o.offsetTree,p)+l;"end"===b?(T=T-i+fe(o.sizeTree,D)[1],D===j&&(T+=d)):"center"===b?T=T-i/2+fe(o.sizeTree,D)[1]/2:T-=c,C&&(T+=C);var q=function(e){A(),e?(h("retrying to scroll to",{location:r},Q.DEBUG),f(g,r)):h("list did not change, scroll successful",{},Q.DEBUG)};if(A(),"smooth"===w){var L=!1;k=m(n,(function(e){L=L||e})),x=y(u,(function(){q(L)}))}else x=y(S(n,(function(e){var t=setTimeout((function(){e(!1)}),150);return function(r){r&&(e(!0),clearTimeout(t))}})),q);return E=setTimeout((function(){A()}),1200),f(s,!0),h("scrolling from index to",{index:D,top:T,behavior:w},Q.DEBUG),{top:T,behavior:w}}))),l),{scrollToIndex:g,topListHeight:v}}),l(Ue,le,re),{singleton:!0}),Ze="up",We={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},Ke=V((function(e){var t=e[0],r=t.scrollContainerState,o=t.scrollTop,n=t.viewportHeight,i=t.headerHeight,a=t.footerHeight,s=t.scrollBy,c=C(!1),l=C(!0),u=w(),d=w(),h=C(4),p=C(0),m=E(S(P(S(F(o),I(1),q(!0)),S(F(o),I(1),q(!1),B(100))),j()),!1),f=E(S(P(S(s,q(!0)),S(s,q(!1),B(200))),j()),!1);b(S(H(F(o),F(p)),T((function(e){return e[0]<=e[1]})),j()),l),b(S(l,R(50)),d);var g=x(S(H(r,F(n),F(i),F(a),F(h)),L((function(e,t){var r,o,n=t[0],i=n.scrollTop,a=n.scrollHeight,s=t[1],c={viewportHeight:s,scrollTop:i,scrollHeight:a};return i+s-a>-t[4]?(i>e.state.scrollTop?(r="SCROLLED_DOWN",o=e.state.scrollTop-i):(r="SIZE_DECREASED",o=e.state.scrollTop-i||e.scrollTopDelta),{atBottom:!0,state:c,atBottomBecause:r,scrollTopDelta:o}):{atBottom:!1,notAtBottomBecause:c.scrollHeight>e.state.scrollHeight?"SIZE_INCREASED":st+h-f&&(m=Ze),(a-=l)0){a=e[0].offset;var c=e[e.length-1];s=c.offset+c.size}var l=r-n.lastIndex,u=a,d=n.lastOffset+l*n.lastSize+(l-1)*o-s;return{items:st(e,n,i),topItems:st(t,n,i),topListHeight:t.reduce((function(e,t){return t.size+e}),0),offsetTop:a,offsetBottom:d,top:u,bottom:s,totalCount:r,firstItemIndex:i}}var lt=V((function(e){var t=e[0],r=t.sizes,o=t.totalCount,n=t.data,i=t.firstItemIndex,a=t.gap,s=e[1],l=e[2],u=l.visibleRange,d=l.listBoundary,h=l.topListHeight,p=e[3],m=p.scrolledToInitialItem,f=p.initialTopMostItemIndex,g=e[4].topListHeight,v=e[5],y=e[6].didMount,k=e[7].recalcInProgress,A=C([]),q=w();b(s.topItemsIndexes,A);var L=E(S(H(y,k,F(u,tt),F(o),F(r),F(f),m,F(A),F(i),F(a),n),D((function(e){return e[0]&&!e[1]})),T((function(e){var t=e[2],r=t[0],o=t[1],n=e[3],i=e[5],a=e[6],s=e[7],l=e[8],u=e[9],d=e[10],h=e[4],p=h.sizeTree,m=h.offsetTree;if(0===n||0===r&&0===o)return W({},at,{totalCount:n});if(he(p))return ct(function(e,t,r){if(Oe(t)){var o=Ve(e,t);return[{index:fe(t.groupOffsetTree,o)[0],size:0,offset:0},{index:o,size:0,offset:0,data:r&&r[0]}]}return[{index:e,size:0,offset:0,data:r&&r[0]}]}(function(e,t){return"number"==typeof e?e:"LAST"===e.index?t-1:e.index}(i,n),h,d),[],n,u,h,l);var f=[];if(s.length>0)for(var g,v=s[0],b=s[s.length-1],y=0,w=Y(ke(p,v,b));!(g=w()).done;)for(var C=g.value,x=C.value,E=Math.max(C.start,v),k=Math.min(C.end,b),S=E;S<=k;S++)f.push({index:S,size:x,offset:y,data:d&&d[S]}),y+=x;if(!a)return ct([],f,n,u,h,l);var A=s.length>0?s[s.length-1]+1:0,j=function(e,t,r,o){return void 0===o&&(o=0),o>0&&(t=Math.max(t,Te(e,o,Ie).offset)),Se((i=r,s=De(n=e,t,a=Re),c=De(n,i,a,s),n.slice(s,c+1)),Be);var n,i,a,s,c}(m,r,o,A);if(0===j.length)return null;var D=n-1;return ct(c([],(function(e){for(var t,n=Y(j);!(t=n()).done;){var i=t.value,a=i.value,s=a.offset,c=i.start,l=a.size;if(a.offset=o);m++)e.push({index:m,size:l,offset:s,data:d&&d[m]}),s+=l+u}})),f,n,u,h,l)})),D((function(e){return null!==e})),j()),at);return b(S(n,D((function(e){return void 0!==e})),T((function(e){return e.length}))),o),b(S(L,T((function(e){return e.topListHeight}))),g),b(g,h),b(S(L,T((function(e){return[e.top,e.bottom]}))),d),b(S(L,T((function(e){return e.items}))),q),W({listState:L,topItemsIndexes:A,endReached:x(S(L,D((function(e){return e.items.length>0})),z(o,n),D((function(e){var t=e[0].items;return t[t.length-1].originalIndex===e[1]-1})),T((function(e){return[e[1]-1,e[2]]})),j(tt),T((function(e){return e[0]})))),startReached:x(S(L,R(200),D((function(e){var t=e.items;return t.length>0&&t[0].originalIndex===e.topItems.length})),T((function(e){return e.items[0].index})),j())),rangeChanged:x(S(L,D((function(e){return e.items.length>0})),T((function(e){for(var t=e.items,r=0,o=t.length-1;"group"===t[r].type&&rr;)o--;return{startIndex:t[r].index,endIndex:t[o].index}})),j(rt))),itemsRendered:q},v)}),l(Ue,et,it,Ye,Ge,Ke,Je,qe),{singleton:!0}),ut=V((function(e){var t=e[0],r=t.sizes,o=t.firstItemIndex,n=t.data,i=t.gap,a=e[1].listState,s=e[2].didMount,c=C(0);return b(S(s,z(c),D((function(e){return 0!==e[1]})),z(r,o,i,n),T((function(e){var t=e[0][1],r=e[1],o=e[2],n=e[3],i=e[4],a=void 0===i?[]:i,s=0;if(r.groupIndices.length>0)for(var c,l=Y(r.groupIndices);!((c=l()).done||c.value-s>=t);)s++;var u=t+s;return ct(Array.from({length:u}).map((function(e,t){return{index:t,size:0,offset:0,data:a[t]}})),[],u,n,r,o)}))),a),{initialItemCount:c}}),l(Ue,lt,Je),{singleton:!0}),dt=V((function(e){var t=e[0].scrollVelocity,r=C(!1),o=w(),n=C(!1);return b(S(t,z(n,r,o),D((function(e){return!!e[1]})),T((function(e){var t=e[0],r=e[1],o=e[2],n=e[3],i=r.enter;if(o){if((0,r.exit)(t,n))return!1}else if(i(t,n))return!0;return o})),j()),r),m(S(H(r,t,o),z(n)),(function(e){var t=e[0],r=e[1];return t[0]&&r&&r.change&&r.change(t[1],t[2])})),{isSeeking:r,scrollSeekConfiguration:n,scrollVelocity:t,scrollSeekRangeChanged:o}}),l(Ke),{singleton:!0}),ht=V((function(e){var t=e[0].topItemsIndexes,r=C(0);return b(S(r,D((function(e){return e>0})),T((function(e){return Array.from({length:e}).map((function(e,t){return t}))}))),t),{topItemCount:r}}),l(lt)),pt=V((function(e){var t=e[0],r=t.footerHeight,o=t.headerHeight,n=t.fixedHeaderHeight,i=e[1].listState,a=w(),s=E(S(H(r,o,n,i),T((function(e){var t=e[3];return e[0]+e[1]+e[2]+t.offsetBottom+t.bottom}))),0);return b(F(s),a),{totalListHeight:s,totalListHeightChanged:a}}),l(le,lt),{singleton:!0});function mt(e){var t,r=!1;return function(){return r||(r=!0,t=e()),t}}var ft=mt((function(){return/iP(ad|hone|od).+Version\/[\d.]+.*Safari/i.test(navigator.userAgent)})),gt=V((function(e){var t=e[0],r=t.scrollBy,o=t.scrollTop,n=t.deviation,i=t.scrollingInProgress,a=e[1],s=a.isScrolling,c=a.isAtBottom,l=a.scrollDirection,u=e[3],d=u.beforeUnshiftWith,h=u.shiftWithOffset,p=u.sizes,g=u.gap,v=e[4].log,y=e[5].recalcInProgress,w=x(S(e[2].listState,z(a.lastJumpDueToItemResize),L((function(e,t){var r=e[1],o=t[0],n=o.items,i=o.totalCount,a=o.bottom+o.offsetBottom,s=0;return e[2]===i&&r.length>0&&n.length>0&&(0===n[0].originalIndex&&0===r[0].originalIndex||0!=(s=a-e[3])&&(s+=t[1])),[s,n,i,a]}),[0,[],0,0]),D((function(e){return 0!==e[0]})),z(o,l,i,c,v),D((function(e){return!e[3]&&0!==e[1]&&e[2]===Ze})),T((function(e){var t=e[0][0];return(0,e[5])("Upward scrolling compensation",{amount:t},Q.DEBUG),t}))));function C(e){e>0?(f(r,{top:-e,behavior:"auto"}),f(n,0)):(f(n,0),f(r,{top:-e,behavior:"auto"}))}return m(S(w,z(n,s)),(function(e){var t=e[0],r=e[1];e[2]&&ft()?f(n,r-t):C(-t)})),m(S(H(E(s,!1),n,y),D((function(e){return!e[0]&&!e[2]&&0!==e[1]})),T((function(e){return e[1]})),R(1)),C),b(S(h,T((function(e){return{top:-e}}))),r),m(S(d,z(p,g),T((function(e){var t=e[0];return t*e[1].lastSize+t*e[2]}))),(function(e){f(n,e),requestAnimationFrame((function(){f(r,{top:e}),requestAnimationFrame((function(){f(n,0),f(y,!1)}))}))})),{deviation:n}}),l(le,Ke,lt,Ue,re,qe)),vt=V((function(e){var t=e[0].totalListHeight,r=e[1].didMount,o=e[2].scrollTo,n=C(0);return m(S(r,z(n),D((function(e){return 0!==e[1]})),T((function(e){return{top:e[1]}}))),(function(e){y(S(t,D((function(e){return 0!==e}))),(function(){setTimeout((function(){f(o,e)}))}))})),{initialScrollTop:n}}),l(pt,Je,le),{singleton:!0}),bt=V((function(e){var t=e[0].viewportHeight,r=e[1].totalListHeight,o=C(!1);return{alignToBottom:o,paddingTopAddition:E(S(H(o,t,r),D((function(e){return e[0]})),T((function(e){return Math.max(0,e[1]-e[2])})),j()),0)}}),l(le,pt),{singleton:!0}),yt=V((function(e){var t=e[0],r=t.scrollTo,o=t.scrollContainerState,n=w(),i=w(),a=w(),s=C(!1),c=C(void 0);return b(S(H(n,i),T((function(e){var t=e[0],r=t.viewportHeight,o=t.scrollHeight;return{scrollTop:Math.max(0,t.scrollTop-e[1].offsetTop),scrollHeight:o,viewportHeight:r}}))),o),b(S(r,z(i),T((function(e){var t=e[0];return W({},t,{top:t.top+e[1].offsetTop})}))),a),{useWindowScroll:s,customScrollParent:c,windowScrollContainerState:n,windowViewportRect:i,windowScrollTo:a}}),l(le)),wt=["done","behavior","align"],Ct=V((function(e){var t=e[0],r=t.sizes,o=t.totalCount,n=t.gap,i=e[1],a=i.scrollTop,s=i.viewportHeight,c=i.headerHeight,l=i.scrollingInProgress,u=e[2].scrollToIndex,d=w();return b(S(d,z(r,s,o,c,a,n),T((function(e){var t=e[0],r=e[1],o=e[2],n=e[3],i=e[4],a=e[5],s=e[6],c=t.done,u=t.behavior,d=t.align,h=K(t,wt),p=null,m=He(t,r,n-1),f=Fe(m,r.offsetTree,s)+i;return fa+o&&(p=W({},h,{behavior:u,align:null!=d?d:"end"})),p?c&&y(S(l,I(1),D((function(e){return!1===e}))),c):c&&c(),p})),D((function(e){return null!==e}))),u),{scrollIntoView:d}}),l(Ue,le,Ge,lt,re),{singleton:!0}),xt=["listState","topItemsIndexes"],Et=V((function(e){return W({},e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])}),l(it,ut,Je,dt,pt,vt,bt,yt,Ct)),kt=V((function(e){var t=e[0],r=t.totalCount,o=t.sizeRanges,n=t.fixedItemSize,i=t.defaultItemSize,a=t.trackItemSizes,s=t.itemSize,c=t.data,l=t.firstItemIndex,u=t.groupIndices,d=t.statefulTotalCount,h=t.gap,p=e[1],m=p.initialTopMostItemIndex,f=p.scrolledToInitialItem,g=e[2],v=e[3],y=e[4],w=y.listState,C=y.topItemsIndexes,x=K(y,xt),E=e[5].scrollToIndex,k=e[7].topItemCount,A=e[8].groupCounts,j=e[9],D=e[10];return b(x.rangeChanged,j.scrollSeekRangeChanged),b(S(j.windowViewportRect,T((function(e){return e.visibleHeight}))),g.viewportHeight),W({totalCount:r,data:c,firstItemIndex:l,sizeRanges:o,initialTopMostItemIndex:m,scrolledToInitialItem:f,topItemsIndexes:C,topItemCount:k,groupCounts:A,fixedItemHeight:n,defaultItemHeight:i,gap:h},v,{statefulTotalCount:d,listState:w,scrollToIndex:E,trackItemSizes:a,itemSize:s,groupIndices:u},x,j,g,D)}),l(Ue,Ye,le,Qe,lt,Ge,gt,ht,et,Et,re)),St=mt((function(){if("undefined"==typeof document)return"sticky";var e=document.createElement("div");return e.style.position="-webkit-sticky","-webkit-sticky"===e.style.position?"-webkit-sticky":"sticky"}));function At(e,t){var r=(0,o.useRef)(null),n=(0,o.useCallback)((function(o){if(null!==o&&o.offsetParent){var n,i,a=o.getBoundingClientRect(),s=a.width;if(t){var c=t.getBoundingClientRect(),l=a.top-c.top;n=c.height-Math.max(0,l),i=l+t.scrollTop}else n=window.innerHeight-Math.max(0,a.top),i=a.top+window.pageYOffset;r.current={offsetTop:i,visibleHeight:n,visibleWidth:s},e(r.current)}}),[e,t]),i=oe(n),a=i.callbackRef,s=i.ref,c=(0,o.useCallback)((function(){n(s.current)}),[n,s]);return(0,o.useEffect)((function(){if(t){t.addEventListener("scroll",c);var e=new ResizeObserver(c);return e.observe(t),function(){t.removeEventListener("scroll",c),e.unobserve(t)}}return window.addEventListener("scroll",c),window.addEventListener("resize",c),function(){window.removeEventListener("scroll",c),window.removeEventListener("resize",c)}}),[c,t]),a}var jt=["placeholder"],Dt=["style","children"],Tt=["style","children"];function qt(e){return e}var Lt=V((function(){var e=C((function(e){return"Item "+e})),t=C(null),r=C((function(e){return"Group "+e})),o=C({}),n=C(qt),i=C("div"),a=C(p),s=function(e,t){return void 0===t&&(t=null),E(S(o,T((function(t){return t[e]})),j()),t)};return{context:t,itemContent:e,groupContent:r,components:o,computeItemKey:n,headerFooterTag:i,scrollerRef:a,FooterComponent:s("Footer"),HeaderComponent:s("Header"),TopItemListComponent:s("TopItemList"),ListComponent:s("List","div"),ItemComponent:s("Item","div"),GroupComponent:s("Group","div"),ScrollerComponent:s("Scroller","div"),EmptyPlaceholder:s("EmptyPlaceholder"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder")}}));function It(e,t){var r=w();return m(r,(function(){return console.warn("react-virtuoso: You are using a deprecated property. "+t,"color: red;","color: inherit;","color: blue;")})),b(r,e),r}var Rt=V((function(e){var t=e[0],r=e[1],o={item:It(r.itemContent,"Rename the %citem%c prop to %citemContent."),group:It(r.groupContent,"Rename the %cgroup%c prop to %cgroupContent."),topItems:It(t.topItemCount,"Rename the %ctopItems%c prop to %ctopItemCount."),itemHeight:It(t.fixedItemHeight,"Rename the %citemHeight%c prop to %cfixedItemHeight."),scrollingStateChange:It(t.isScrolling,"Rename the %cscrollingStateChange%c prop to %cisScrolling."),adjustForPrependedItems:w(),maxHeightCacheSize:w(),footer:w(),header:w(),HeaderContainer:w(),FooterContainer:w(),ItemContainer:w(),ScrollContainer:w(),GroupContainer:w(),ListContainer:w(),emptyComponent:w(),scrollSeek:w()};function n(e,t,o){b(S(e,z(r.components),T((function(e){var r,n=e[0],i=e[1];return console.warn("react-virtuoso: "+o+" property is deprecated. Pass components."+t+" instead."),W({},i,((r={})[t]=n,r))}))),r.components)}return m(o.adjustForPrependedItems,(function(){console.warn("react-virtuoso: adjustForPrependedItems is no longer supported. Use the firstItemIndex property instead - https://virtuoso.dev/prepend-items.","color: red;","color: inherit;","color: blue;")})),m(o.maxHeightCacheSize,(function(){console.warn("react-virtuoso: maxHeightCacheSize is no longer necessary. Setting it has no effect - remove it from your code.")})),m(o.HeaderContainer,(function(){console.warn("react-virtuoso: HeaderContainer is deprecated. Use headerFooterTag if you want to change the wrapper of the header component and pass components.Header to change its contents.")})),m(o.FooterContainer,(function(){console.warn("react-virtuoso: FooterContainer is deprecated. Use headerFooterTag if you want to change the wrapper of the footer component and pass components.Footer to change its contents.")})),m(o.scrollSeek,(function(e){var o=e.placeholder,n=K(e,jt);console.warn("react-virtuoso: scrollSeek property is deprecated. Pass scrollSeekConfiguration and specify the placeholder in components.ScrollSeekPlaceholder instead."),f(r.components,W({},v(r.components),{ScrollSeekPlaceholder:o})),f(t.scrollSeekConfiguration,n)})),n(o.footer,"Footer","footer"),n(o.header,"Header","header"),n(o.ItemContainer,"Item","ItemContainer"),n(o.ListContainer,"List","ListContainer"),n(o.ScrollContainer,"Scroller","ScrollContainer"),n(o.emptyComponent,"EmptyPlaceholder","emptyComponent"),n(o.GroupContainer,"Group","GroupContainer"),W({},t,r,o)}),l(kt,Lt)),Bt=function(e){return o.createElement("div",{style:{height:e.height}})},zt={position:St(),zIndex:1,overflowAnchor:"none"},Pt={overflowAnchor:"none"},Ft=o.memo((function(e){var t=e.showTopList,r=void 0!==t&&t,n=Qt("listState"),i=_t("sizeRanges"),a=Qt("useWindowScroll"),s=Qt("customScrollParent"),c=_t("windowScrollContainerState"),l=_t("scrollContainerState"),u=s||a?c:l,d=Qt("itemContent"),h=Qt("context"),m=Qt("groupContent"),f=Qt("trackItemSizes"),g=ie(i,Qt("itemSize"),f,r?p:u,Qt("log"),_t("gap"),s).callbackRef,v=o.useState(0),b=v[0],y=v[1];Xt("deviation",(function(e){b!==e&&y(e)}));var w=Qt("EmptyPlaceholder"),C=Qt("ScrollSeekPlaceholder")||Bt,x=Qt("ListComponent"),E=Qt("ItemComponent"),k=Qt("GroupComponent"),S=Qt("computeItemKey"),A=Qt("isSeeking"),j=Qt("groupIndices").length>0,D=Qt("paddingTopAddition"),T=r?{}:{boxSizing:"border-box",paddingTop:n.offsetTop+D,paddingBottom:n.offsetBottom,marginTop:b};return!r&&0===n.totalCount&&w?(0,o.createElement)(w,Nt(w,h)):(0,o.createElement)(x,W({},Nt(x,h),{ref:g,style:T,"data-test-id":r?"virtuoso-top-item-list":"virtuoso-item-list"}),(r?n.topItems:n.items).map((function(e){var t=e.originalIndex,r=S(t+n.firstItemIndex,e.data,h);return A?(0,o.createElement)(C,W({},Nt(C,h),{key:r,index:e.index,height:e.size,type:e.type||"item"},"group"===e.type?{}:{groupIndex:e.groupIndex})):"group"===e.type?(0,o.createElement)(k,W({},Nt(k,h),{key:r,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,style:zt}),m(e.index)):(0,o.createElement)(E,W({},Nt(E,h),{key:r,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,"data-item-group-index":e.groupIndex,style:Pt}),j?d(e.index,e.groupIndex,e.data,h):d(e.index,e.data,h))})))})),Ht={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},Vt={width:"100%",height:"100%",position:"absolute",top:0},Ot={width:"100%",position:St(),top:0};function Nt(e,t){if("string"!=typeof e)return{context:t}}var Ut=o.memo((function(){var e=Qt("HeaderComponent"),t=_t("headerHeight"),r=Qt("headerFooterTag"),n=ne((function(e){return t(ae(e,"height"))})),i=Qt("context");return e?(0,o.createElement)(r,{ref:n},(0,o.createElement)(e,Nt(e,i))):null})),Mt=o.memo((function(){var e=Qt("FooterComponent"),t=_t("footerHeight"),r=Qt("headerFooterTag"),n=ne((function(e){return t(ae(e,"height"))})),i=Qt("context");return e?(0,o.createElement)(r,{ref:n},(0,o.createElement)(e,Nt(e,i))):null}));function $t(e){var t=e.usePublisher,r=e.useEmitter,n=e.useEmitterValue;return o.memo((function(e){var i=e.style,a=e.children,s=K(e,Dt),c=t("scrollContainerState"),l=n("ScrollerComponent"),u=t("smoothScrollTargetReached"),d=n("scrollerRef"),h=n("context"),p=ce(c,u,l,d),m=p.scrollerRef,f=p.scrollByCallback;return r("scrollTo",p.scrollToCallback),r("scrollBy",f),(0,o.createElement)(l,W({ref:m,style:W({},Ht,i),"data-test-id":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0},s,Nt(l,h)),a)}))}function Gt(e){var t=e.usePublisher,r=e.useEmitter,n=e.useEmitterValue;return o.memo((function(e){var i=e.style,a=e.children,s=K(e,Tt),c=t("windowScrollContainerState"),l=n("ScrollerComponent"),u=t("smoothScrollTargetReached"),d=n("totalListHeight"),h=n("deviation"),m=n("customScrollParent"),f=n("context"),g=ce(c,u,l,p,m),v=g.scrollerRef,b=g.scrollByCallback,y=g.scrollToCallback;return ee((function(){return v.current=m||window,function(){v.current=null}}),[v,m]),r("windowScrollTo",y),r("scrollBy",b),(0,o.createElement)(l,W({style:W({position:"relative"},i,0!==d?{height:d+h}:{}),"data-virtuoso-scroller":!0},s,Nt(l,f)),a)}))}var Zt=function(e){var t=e.children,r=ne(n(_t("viewportHeight"),(function(e){return ae(e,"height")})));return o.createElement("div",{style:Vt,ref:r,"data-viewport-type":"element"},t)},Wt=function(e){var t=e.children,r=At(_t("windowViewportRect"),Qt("customScrollParent"));return o.createElement("div",{ref:r,style:Vt,"data-viewport-type":"window"},t)},Kt=function(e){var t=e.children,r=Qt("TopItemListComponent"),n=Qt("headerHeight"),i=W({},Ot,{marginTop:n+"px"}),a=Qt("context");return(0,o.createElement)(r||"div",{style:i,context:a},t)},Jt=G(Rt,{required:{},optional:{context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",react18ConcurrentRendering:"react18ConcurrentRendering",item:"item",group:"group",topItems:"topItems",itemHeight:"itemHeight",scrollingStateChange:"scrollingStateChange",maxHeightCacheSize:"maxHeightCacheSize",footer:"footer",header:"header",ItemContainer:"ItemContainer",ScrollContainer:"ScrollContainer",ListContainer:"ListContainer",GroupContainer:"GroupContainer",emptyComponent:"emptyComponent",HeaderContainer:"HeaderContainer",FooterContainer:"FooterContainer",scrollSeek:"scrollSeek"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",adjustForPrependedItems:"adjustForPrependedItems",autoscrollToBottom:"autoscrollToBottom"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},o.memo((function(e){var t=Qt("useWindowScroll"),r=Qt("topItemsIndexes").length>0,n=Qt("customScrollParent"),i=n||t?Wt:Zt;return o.createElement(n||t?tr:er,W({},e),o.createElement(i,null,o.createElement(Ut,null),o.createElement(Ft,null),o.createElement(Mt,null)),r&&o.createElement(Kt,null,o.createElement(Ft,{showTopList:!0})))}))),Yt=Jt.Component,_t=Jt.usePublisher,Qt=Jt.useEmitterValue,Xt=Jt.useEmitter,er=$t({usePublisher:_t,useEmitterValue:Qt,useEmitter:Xt}),tr=Gt({usePublisher:_t,useEmitterValue:Qt,useEmitter:Xt}),rr={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},or={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},nr=Math.round,ir=Math.ceil,ar=Math.floor,sr=Math.min,cr=Math.max;function lr(e,t){return Array.from({length:t-e+1}).map((function(t,r){return{index:r+e}}))}function ur(e,t){return e&&e.column===t.column&&e.row===t.row}var dr=V((function(e){var t=e[0],r=t.overscan,o=t.visibleRange,n=t.listBoundary,i=e[1],a=i.scrollTop,s=i.viewportHeight,c=i.scrollBy,l=i.scrollTo,u=i.smoothScrollTargetReached,d=i.scrollContainerState,h=e[2],p=e[3],m=e[4],f=m.propsReady,g=m.didMount,v=e[5],y=v.windowViewportRect,k=v.windowScrollTo,A=v.useWindowScroll,L=v.customScrollParent,I=v.windowScrollContainerState,R=e[6],B=C(0),P=C(0),V=C(rr),O=C({height:0,width:0}),N=C({height:0,width:0}),U=w(),M=w(),$=C(0),G=C({row:0,column:0});b(S(g,z(P),D((function(e){return 0!==e[1]})),T((function(e){return{items:lr(0,e[1]-1),top:0,bottom:0,offsetBottom:0,offsetTop:0,itemHeight:0,itemWidth:0}}))),V),b(S(H(F(B),o,F(G,ur),F(N,(function(e,t){return e&&e.width===t.width&&e.height===t.height}))),z(O),T((function(e){var t=e[0],r=t[0],o=t[1],n=o[0],i=o[1],a=t[2],s=t[3],c=e[1],l=a.row,u=s.height,d=s.width,h=c.width;if(0===r||0===h)return rr;if(0===d)return or;var p=mr(h,d,a.column),m=p*ar((n+l)/(u+l)),f=p*ir((i+l)/(u+l))-1;f=cr(0,sr(r-1,f));var g=lr(m=sr(f,cr(0,m)),f),v=hr(c,a,s,g),b=v.top,y=v.bottom,w=ir(r/p);return{items:g,offsetTop:b,offsetBottom:w*u+(w-1)*l-y,top:b,bottom:y,itemHeight:u,itemWidth:d}}))),V),b(S(O,T((function(e){return e.height}))),s),b(S(H(O,N,V,G),T((function(e){var t=hr(e[0],e[3],e[1],e[2].items);return[t.top,t.bottom]})),j(tt)),n);var Z=x(S(F(V),D((function(e){return e.items.length>0})),z(B),D((function(e){var t=e[0].items;return t[t.length-1].index===e[1]-1})),T((function(e){return e[1]-1})),j())),K=x(S(F(V),D((function(e){var t=e.items;return t.length>0&&0===t[0].index})),q(0),j())),J=x(S(F(V),D((function(e){return e.items.length>0})),T((function(e){var t=e.items;return{startIndex:t[0].index,endIndex:t[t.length-1].index}})),j(rt)));b(J,p.scrollSeekRangeChanged),b(S(U,z(O,N,B,G),T((function(e){var t=e[1],r=e[2],o=e[3],n=e[4],i=$e(e[0]),a=i.align,s=i.behavior,c=i.offset,l=i.index;"LAST"===l&&(l=o-1);var u=pr(t,n,r,l=cr(0,l,sr(o-1,l)));return"end"===a?u=nr(u-t.height+r.height):"center"===a&&(u=nr(u-t.height/2+r.height/2)),c&&(u+=c),{top:u,behavior:s}}))),l);var Y=E(S(V,T((function(e){return e.offsetBottom+e.bottom}))),0);return b(S(y,T((function(e){return{width:e.visibleWidth,height:e.visibleHeight}}))),O),W({totalCount:B,viewportDimensions:O,itemDimensions:N,scrollTop:a,scrollHeight:M,overscan:r,scrollBy:c,scrollTo:l,scrollToIndex:U,smoothScrollTargetReached:u,windowViewportRect:y,windowScrollTo:k,useWindowScroll:A,customScrollParent:L,windowScrollContainerState:I,deviation:$,scrollContainerState:d,initialItemCount:P,gap:G},p,{gridState:V,totalListHeight:Y},h,{startReached:K,endReached:Z,rangeChanged:J,propsReady:f},R)}),l(it,le,Ke,dt,Je,yt,re));function hr(e,t,r,o){var n=r.height;return void 0===n||0===o.length?{top:0,bottom:0}:{top:pr(e,t,r,o[0].index),bottom:pr(e,t,r,o[o.length-1].index)+n}}function pr(e,t,r,o){var n=mr(e.width,r.width,t.column),i=ar(o/n),a=i*r.height+cr(0,i-1)*t.row;return a>0?a+t.row:a}function mr(e,t,r){return cr(1,ar((e+r)/(t+r)))}var fr=["placeholder"],gr=V((function(){var e=C((function(e){return"Item "+e})),t=C({}),r=C(null),o=C("virtuoso-grid-item"),n=C("virtuoso-grid-list"),i=C(qt),a=C(p),s=function(e,r){return void 0===r&&(r=null),E(S(t,T((function(t){return t[e]})),j()),r)};return{context:r,itemContent:e,components:t,computeItemKey:i,itemClassName:o,listClassName:n,scrollerRef:a,ListComponent:s("List","div"),ItemComponent:s("Item","div"),ScrollerComponent:s("Scroller","div"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder","div")}})),vr=V((function(e){var t=e[0],r=e[1],o={item:It(r.itemContent,"Rename the %citem%c prop to %citemContent."),ItemContainer:w(),ScrollContainer:w(),ListContainer:w(),emptyComponent:w(),scrollSeek:w()};function n(e,t,o){b(S(e,z(r.components),T((function(e){var r,n=e[0],i=e[1];return console.warn("react-virtuoso: "+o+" property is deprecated. Pass components."+t+" instead."),W({},i,((r={})[t]=n,r))}))),r.components)}return m(o.scrollSeek,(function(e){var o=e.placeholder,n=K(e,fr);console.warn("react-virtuoso: scrollSeek property is deprecated. Pass scrollSeekConfiguration and specify the placeholder in components.ScrollSeekPlaceholder instead."),f(r.components,W({},v(r.components),{ScrollSeekPlaceholder:o})),f(t.scrollSeekConfiguration,n)})),n(o.ItemContainer,"Item","ItemContainer"),n(o.ListContainer,"List","ListContainer"),n(o.ScrollContainer,"Scroller","ScrollContainer"),W({},t,r,o)}),l(dr,gr)),br=o.memo((function(){var e=Er("gridState"),t=Er("listClassName"),r=Er("itemClassName"),n=Er("itemContent"),i=Er("computeItemKey"),a=Er("isSeeking"),s=xr("scrollHeight"),c=Er("ItemComponent"),l=Er("ListComponent"),u=Er("ScrollSeekPlaceholder"),d=Er("context"),h=xr("itemDimensions"),p=xr("gap"),m=Er("log"),f=ne((function(e){s(e.parentElement.parentElement.scrollHeight);var t=e.firstChild;t&&h(t.getBoundingClientRect()),p({row:jr("row-gap",getComputedStyle(e).rowGap,m),column:jr("column-gap",getComputedStyle(e).columnGap,m)})}));return(0,o.createElement)(l,W({ref:f,className:t},Nt(l,d),{style:{paddingTop:e.offsetTop,paddingBottom:e.offsetBottom}}),e.items.map((function(t){var s=i(t.index);return a?(0,o.createElement)(u,W({key:s},Nt(u,d),{index:t.index,height:e.itemHeight,width:e.itemWidth})):(0,o.createElement)(c,W({},Nt(c,d),{className:r,"data-index":t.index,key:s}),n(t.index,d))})))})),yr=function(e){var t=e.children,r=xr("viewportDimensions"),n=ne((function(e){r(e.getBoundingClientRect())}));return o.createElement("div",{style:Vt,ref:n},t)},wr=function(e){var t=e.children,r=At(xr("windowViewportRect"),Er("customScrollParent"));return o.createElement("div",{ref:r,style:Vt},t)},Cr=G(vr,{optional:{totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",item:"item",ItemContainer:"ItemContainer",ScrollContainer:"ScrollContainer",ListContainer:"ListContainer",scrollSeek:"scrollSeek"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange"}},o.memo((function(e){var t=W({},e),r=Er("useWindowScroll"),n=Er("customScrollParent"),i=n||r?wr:yr;return o.createElement(n||r?Ar:Sr,W({},t),o.createElement(i,null,o.createElement(br,null)))}))),xr=(Cr.Component,Cr.usePublisher),Er=Cr.useEmitterValue,kr=Cr.useEmitter,Sr=$t({usePublisher:xr,useEmitterValue:Er,useEmitter:kr}),Ar=Gt({usePublisher:xr,useEmitterValue:Er,useEmitter:kr});function jr(e,t,r){return"normal"===t||null!=t&&t.endsWith("px")||r(e+" was not resolved to pixel value correctly",t,Q.WARN),"normal"===t?0:parseInt(null!=t?t:"0",10)}var Dr=V((function(){var e=C((function(e){return o.createElement("td",null,"Item $",e)})),t=C(null),r=C(null),n=C({}),i=C(qt),a=C(p),s=function(e,t){return void 0===t&&(t=null),E(S(n,T((function(t){return t[e]})),j()),t)};return{context:t,itemContent:e,fixedHeaderContent:r,components:n,computeItemKey:i,scrollerRef:a,TableComponent:s("Table","table"),TableHeadComponent:s("TableHead","thead"),TableBodyComponent:s("TableBody","tbody"),TableRowComponent:s("TableRow","tr"),ScrollerComponent:s("Scroller","div"),EmptyPlaceholder:s("EmptyPlaceholder"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder"),FillerRow:s("FillerRow")}})),Tr=V((function(e){return W({},e[0],e[1])}),l(kt,Dr)),qr=function(e){return o.createElement("tr",null,o.createElement("td",{style:{height:e.height}}))},Lr=function(e){return o.createElement("tr",null,o.createElement("td",{style:{height:e.height,padding:0,border:0}}))},Ir=o.memo((function(){var e=Fr("listState"),t=Pr("sizeRanges"),r=Fr("useWindowScroll"),n=Fr("customScrollParent"),i=Pr("windowScrollContainerState"),a=Pr("scrollContainerState"),s=n||r?i:a,c=Fr("itemContent"),l=Fr("trackItemSizes"),u=ie(t,Fr("itemSize"),l,s,Fr("log"),void 0,n),d=u.callbackRef,h=u.ref,p=o.useState(0),m=p[0],f=p[1];Hr("deviation",(function(e){m!==e&&(h.current.style.marginTop=e+"px",f(e))}));var g=Fr("EmptyPlaceholder"),v=Fr("ScrollSeekPlaceholder")||qr,b=Fr("FillerRow")||Lr,y=Fr("TableBodyComponent"),w=Fr("TableRowComponent"),C=Fr("computeItemKey"),x=Fr("isSeeking"),E=Fr("paddingTopAddition"),k=Fr("firstItemIndex"),S=Fr("statefulTotalCount"),A=Fr("context");if(0===S&&g)return(0,o.createElement)(g,Nt(g,A));var j=e.offsetTop+E+m,D=e.offsetBottom,T=j>0?o.createElement(b,{height:j,key:"padding-top"}):null,q=D>0?o.createElement(b,{height:D,key:"padding-bottom"}):null,L=e.items.map((function(e){var t=e.originalIndex,r=C(t+k,e.data,A);return x?(0,o.createElement)(v,W({},Nt(v,A),{key:r,index:e.index,height:e.size,type:e.type||"item"})):(0,o.createElement)(w,W({},Nt(w,A),{key:r,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,style:{overflowAnchor:"none"}}),c(e.index,e.data,A))}));return(0,o.createElement)(y,W({ref:d,"data-test-id":"virtuoso-item-list"},Nt(y,A)),[T].concat(L,[q]))})),Rr=function(e){var t=e.children,r=ne(n(Pr("viewportHeight"),(function(e){return ae(e,"height")})));return o.createElement("div",{style:Vt,ref:r,"data-viewport-type":"element"},t)},Br=function(e){var t=e.children,r=At(Pr("windowViewportRect"),Fr("customScrollParent"));return o.createElement("div",{ref:r,style:Vt,"data-viewport-type":"window"},t)},zr=G(Tr,{required:{},optional:{context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",fixedHeaderContent:"fixedHeaderContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",react18ConcurrentRendering:"react18ConcurrentRendering"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},o.memo((function(e){var t=Fr("useWindowScroll"),r=Fr("customScrollParent"),i=Pr("fixedHeaderHeight"),a=Fr("fixedHeaderContent"),s=Fr("context"),c=ne(n(i,(function(e){return ae(e,"height")}))),l=r||t?Or:Vr,u=r||t?Br:Rr,d=Fr("TableComponent"),h=Fr("TableHeadComponent"),p=a?o.createElement(h,W({key:"TableHead",style:{zIndex:1,position:"sticky",top:0},ref:c},Nt(h,s)),a()):null;return o.createElement(l,W({},e),o.createElement(u,null,o.createElement(d,W({style:{borderSpacing:0}},Nt(d,s)),[p,o.createElement(Ir,{key:"TableBody"})])))}))),Pr=(zr.Component,zr.usePublisher),Fr=zr.useEmitterValue,Hr=zr.useEmitter,Vr=$t({usePublisher:Pr,useEmitterValue:Fr,useEmitter:Hr}),Or=Gt({usePublisher:Pr,useEmitterValue:Fr,useEmitter:Hr}),Nr=Yt},12615:function(e,t,r){"use strict";function o(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function n(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function i(e,t){if(e.clientHeightt||i>e&&a=t&&s>=r?i-e-o:a>t&&sr?a-t+n:0}function s(e,t){var r=window,n=t.scrollMode,s=t.block,c=t.inline,l=t.boundary,u=t.skipOverflowHiddenElements,d="function"==typeof l?l:function(e){return e!==l};if(!o(e))throw new TypeError("Invalid target");for(var h=document.scrollingElement||document.documentElement,p=[],m=e;o(m)&&d(m);){if((m=m.parentElement)===h){p.push(m);break}null!=m&&m===document.body&&i(m)&&!i(document.documentElement)||null!=m&&i(m,u)&&p.push(m)}for(var f=r.visualViewport?r.visualViewport.width:innerWidth,g=r.visualViewport?r.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,b=window.scrollY||pageYOffset,y=e.getBoundingClientRect(),w=y.height,C=y.width,x=y.top,E=y.right,k=y.bottom,S=y.left,A="start"===s||"nearest"===s?x:"end"===s?k:x+w/2,j="center"===c?S+C/2:"end"===c?E:S,D=[],T=0;T=0&&S>=0&&k<=g&&E<=f&&x>=B&&k<=P&&S>=F&&E<=z)return D;var H=getComputedStyle(q),V=parseInt(H.borderLeftWidth,10),O=parseInt(H.borderTopWidth,10),N=parseInt(H.borderRightWidth,10),U=parseInt(H.borderBottomWidth,10),M=0,$=0,G="offsetWidth"in q?q.offsetWidth-q.clientWidth-V-N:0,Z="offsetHeight"in q?q.offsetHeight-q.clientHeight-O-U:0;if(h===q)M="start"===s?A:"end"===s?A-g:"nearest"===s?a(b,b+g,g,O,U,b+A,b+A+w,w):A-g/2,$="start"===c?j:"center"===c?j-f/2:"end"===c?j-f:a(v,v+f,f,V,N,v+j,v+j+C,C),M=Math.max(0,M+b),$=Math.max(0,$+v);else{M="start"===s?A-B-O:"end"===s?A-P+U+Z:"nearest"===s?a(B,P,I,O,U+Z,A,A+w,w):A-(B+I/2)+Z/2,$="start"===c?j-F-V:"center"===c?j-(F+R/2)+G/2:"end"===c?j-z+N+G:a(F,z,R,V,N+G,j,j+C,C);var W=q.scrollLeft,K=q.scrollTop;A+=K-(M=Math.max(0,Math.min(K+M,q.scrollHeight-I+Z))),j+=W-($=Math.max(0,Math.min(W+$,q.scrollWidth-R+G)))}D.push({el:q,top:M,left:$})}return D}function c(e){return e===Object(e)&&0!==Object.keys(e).length}r.d(t,{Z:function(){return l}});var l=function(e,t){var r=e.isConnected||e.ownerDocument.documentElement.contains(e);if(c(t)&&"function"===typeof t.behavior)return t.behavior(r?s(e,t):[]);if(r){var o=function(e){return!1===e?{block:"end",inline:"nearest"}:c(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var r="scrollBehavior"in document.body.style;e.forEach((function(e){var o=e.el,n=e.top,i=e.left;o.scroll&&r?o.scroll({top:n,left:i,behavior:t}):(o.scrollTop=n,o.scrollLeft=i)}))}(s(e,o),o.behavior)}}},12902:function(e,t,r){"use strict";function o(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o3?t.i-4:t.i:Array.isArray(e)?1:h(e)?2:p(e)?3:0}function c(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function l(e,t){return 2===s(e)?e.get(t):e[t]}function u(e,t,r){var o=s(e);2===o?e.set(t,r):3===o?(e.delete(t),e.add(r)):e[t]=r}function d(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e){return O&&e instanceof Map}function p(e){return N&&e instanceof Set}function m(e){return e.o||e.t}function f(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=K(e);delete t[G];for(var r=W(t),o=0;o1&&(e.set=e.add=e.clear=e.delete=v),Object.freeze(e),t&&a(e,(function(e,t){return g(t,!0)}),!0)),e}function v(){o(2)}function b(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function y(e){var t=J[e];return t||o(18,e),t}function w(){return H}function C(e,t){t&&(y("Patches"),e.u=[],e.s=[],e.v=t)}function x(e){E(e),e.p.forEach(S),e.p=null}function E(e){e===H&&(H=e.l)}function k(e){return H={p:[],l:H,h:e,m:!0,_:0}}function S(e){var t=e[G];0===t.i||1===t.i?t.j():t.O=!0}function A(e,t){t._=t.p.length;var r=t.p[0],n=void 0!==e&&e!==r;return t.h.g||y("ES5").S(t,e,n),n?(r[G].P&&(x(t),o(4)),i(e)&&(e=j(t,e),t.l||T(t,e)),t.u&&y("Patches").M(r[G].t,e,t.u,t.s)):e=j(t,r,[]),x(t),t.u&&t.v(t.u,t.s),e!==M?e:void 0}function j(e,t,r){if(b(t))return t;var o=t[G];if(!o)return a(t,(function(n,i){return D(e,o,t,n,i,r)}),!0),t;if(o.A!==e)return t;if(!o.P)return T(e,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=4===o.i||5===o.i?o.o=f(o.k):o.o;a(3===o.i?new Set(n):n,(function(t,i){return D(e,o,n,t,i,r)})),T(e,n,!1),r&&e.u&&y("Patches").R(o,r,e.u,e.s)}return o.o}function D(e,t,r,o,a,s){if(n(a)){var l=j(e,a,s&&t&&3!==t.i&&!c(t.D,o)?s.concat(o):void 0);if(u(r,o,l),!n(l))return;e.m=!1}if(i(a)&&!b(a)){if(!e.h.F&&e._<1)return;j(e,a),t&&t.A.l||T(e,a)}}function T(e,t,r){void 0===r&&(r=!1),e.h.F&&e.m&&g(t,r)}function q(e,t){var r=e[G];return(r?m(r):e)[t]}function L(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var o=Object.getOwnPropertyDescriptor(r,t);if(o)return o;r=Object.getPrototypeOf(r)}}function I(e){e.P||(e.P=!0,e.l&&I(e.l))}function R(e){e.o||(e.o=f(e.t))}function B(e,t,r){var o=h(t)?y("MapSet").N(t,r):p(t)?y("MapSet").T(t,r):e.g?function(e,t){var r=Array.isArray(e),o={i:r?1:0,A:t?t.A:w(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},n=o,i=Y;r&&(n=[o],i=_);var a=Proxy.revocable(n,i),s=a.revoke,c=a.proxy;return o.k=c,o.j=s,c}(t,r):y("ES5").J(t,r);return(r?r.A:w()).p.push(o),o}function z(e){return n(e)||o(22,e),function e(t){if(!i(t))return t;var r,o=t[G],n=s(t);if(o){if(!o.P&&(o.i<4||!y("ES5").K(o)))return o.t;o.I=!0,r=P(t,n),o.I=!1}else r=P(t,n);return a(r,(function(t,n){o&&l(o.t,t)===n||u(r,t,e(n))})),3===n?new Set(r):r}(e)}function P(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return f(e)}r.d(t,{P2:function(){return te},Uy:function(){return ee},_x:function(){return re},mv:function(){return n}});var F,H,V="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),O="undefined"!=typeof Map,N="undefined"!=typeof Set,U="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,M=V?Symbol.for("immer-nothing"):((F={})["immer-nothing"]=!0,F),$=V?Symbol.for("immer-draftable"):"__$immer_draftable",G=V?Symbol.for("immer-state"):"__$immer_state",Z=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),W="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,K=Object.getOwnPropertyDescriptors||function(e){var t={};return W(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},J={},Y={get:function(e,t){if(t===G)return e;var r=m(e);if(!c(r,t))return function(e,t,r){var o,n=L(t,r);return n?"value"in n?n.value:null===(o=n.get)||void 0===o?void 0:o.call(e.k):void 0}(e,r,t);var o=r[t];return e.I||!i(o)?o:o===q(e.t,t)?(R(e),e.o[t]=B(e.A.h,o,e)):o},has:function(e,t){return t in m(e)},ownKeys:function(e){return Reflect.ownKeys(m(e))},set:function(e,t,r){var o=L(m(e),t);if(null==o?void 0:o.set)return o.set.call(e.k,r),!0;if(!e.P){var n=q(m(e),t),i=null==n?void 0:n[G];if(i&&i.t===r)return e.o[t]=r,e.D[t]=!1,!0;if(d(r,n)&&(void 0!==r||c(e.t,t)))return!0;R(e),I(e)}return e.o[t]===r&&"number"!=typeof r&&(void 0!==r||t in e.o)||(e.o[t]=r,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==q(e.t,t)||t in e.t?(e.D[t]=!1,R(e),I(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=m(e),o=Reflect.getOwnPropertyDescriptor(r,t);return o?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:o.enumerable,value:r[t]}:o},defineProperty:function(){o(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){o(12)}},_={};a(Y,(function(e,t){_[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),_.deleteProperty=function(e,t){return _.set.call(this,e,t,void 0)},_.set=function(e,t,r){return Y.set.call(this,e[0],t,r,e[0])};var Q=function(){function e(e){var t=this;this.g=U,this.F=!0,this.produce=function(e,r,n){if("function"==typeof e&&"function"!=typeof r){var a=r;r=e;var s=t;return function(e){var t=this;void 0===e&&(e=a);for(var o=arguments.length,n=Array(o>1?o-1:0),i=1;i1?o-1:0),i=1;i=0;r--){var o=t[r];if(0===o.path.length&&"replace"===o.op){e=o.value;break}}r>-1&&(t=t.slice(r+1));var i=y("Patches").$;return n(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}(),X=new Q,ee=X.produce,te=(X.produceWithPatches.bind(X),X.setAutoFreeze.bind(X),X.setUseProxies.bind(X),X.applyPatches.bind(X),X.createDraft.bind(X)),re=X.finishDraft.bind(X)},57741:function(e,t,r){"use strict";r.d(t,{wU:function(){return Ct}});var o=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},n=(e,t,r)=>(o(e,t,"read from private field"),r?r.call(e):t.get(e)),i=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},a=(e,t,r,n)=>(o(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),s=(e,t,r)=>(o(e,t,"access private method"),r);async function c(e,t={}){const{local:r=!1,version:o="latest",cdnUrl:n,...i}=t,a=function(e,t,r){let o=`https://cdn.jsdelivr.net/npm/emojibase-data@${t}/${e}`;return"function"==typeof r?o=r(e,t):"string"==typeof r&&(o=`${r}/${e}`),o}(e,o,n),s=r?localStorage:sessionStorage,c=`emojibase/${o}/${e}`,l=s.getItem(c);if(l)return Promise.resolve(JSON.parse(l));const u=await fetch(a,{credentials:"omit",mode:"cors",redirect:"error",...i});if(!u.ok)throw new Error("Failed to load Emojibase dataset.");const d=await u.json();try{s.setItem(c,JSON.stringify(d))}catch{}return d}const l={discord:"joypixels",slack:"iamcal"};async function u(e,t,r){var o;return c(`${e}/shortcodes/${null!==(o=l[t])&&void 0!==o?o:t}.json`,r)}function d(e,t){if(0===t.length)return e;const r=new Set(e.shortcodes);return t.forEach((t=>{const o=t[e.hexcode];Array.isArray(o)?o.forEach((e=>r.add(e))):o&&r.add(o)})),e.shortcodes=[...r],e.skins&&e.skins.forEach((e=>{d(e,t)})),e}async function h(e,t={}){const{compact:r=!1,flat:o=!1,shortcodes:n=[],...i}=t,a=await c(`${e}/${r?"compact":"data"}.json`,i);let s=[];return n.length>0&&(s=await Promise.all(n.map((t=>{let r;if(t.includes("/")){const[e,o]=t.split("/");r=u(e,o,i)}else r=u(e,t,i);return r.catch((()=>({})))})))),o?function(e,t=[]){const r=[];return e.forEach((e=>{if(e.skins){const{skins:o,...n}=e;r.push(d(n,t)),o.forEach((e=>{const o={...e};n.tags&&(o.tags=[...n.tags]),r.push(d(o,t))}))}else r.push(d(e,t))})),r}(a,s):function(e,t){return 0===t.length||e.forEach((e=>{d(e,t)})),e}(a,s)}async function p(e,t){return c(`${e}/messages.json`,t)}function m(e,t){const r=e.target.closest("[data-emoji]");if(r){const e=t.find((e=>e.emoji===r.dataset.emoji));if(e)return e}return null}function f(e){var t;const r=null==(t=window.matchMedia)?void 0:t.call(window,"(prefers-reduced-motion: reduce)");return e.animate&&!(null!=r&&r.matches)}function g(e,t){return e.toLowerCase().includes(t.toLowerCase())}function v(e,t,r,o){if(f(o)&&e.animate)return e.animate(t,r).finished;const n="normal"===r.direction?1:0,i=Object.entries(t).reduce(((e,[t,r])=>({...e,[t]:r[n]})),{});return Object.assign(e.style,i),Promise.resolve()}function b(e){var t;const r=document.createElement("template");return r.innerHTML=e,null==(t=r.content)?void 0:t.firstElementChild}function y(...e){return e.reduce(((e,t)=>({...e,[t]:w(t)})),{})}function w(e){return`${e}`}async function C(e){try{return(await fetch(e,{method:"HEAD"})).headers.get("etag")}catch{return null}}async function x(e,t,r){const o=r||t(e);return await o.open(),o}async function E(e,t,r){const o=await x(e,t,r),[n,i]=await function(e){const{emojisUrl:t,messagesUrl:r}=function(e,t){const r=`https://cdn.jsdelivr.net/npm/emojibase-data@${"latest"}/${t}`;return{emojisUrl:`${r}/data.json`,messagesUrl:`${r}/messages.json`}}(0,e);try{return Promise.all([C(t),C(r)])}catch{return Promise.all([null,null])}}(e);if(await o.isPopulated())n&&i&&await async function(e,t,r){let o;try{o=await e.getEtags()}catch{o={}}const{storedEmojisEtag:n,storedMessagesEtag:i}=o;if(r!==i||t!==n){const[o,n]=await Promise.all([p(e.locale),h(e.locale)]);await e.populate({groups:o.groups,emojis:n,emojisEtag:t,messagesEtag:r})}}(o,n,i);else{const[t,r]=await Promise.all([p(e),h(e)]);await o.populate({groups:t.groups,emojis:r,emojisEtag:n,messagesEtag:i})}return o}async function k(e,t,r,o,n){const i=await x(e,t,n),a=await async function(e){const t=(new TextEncoder).encode(e),r=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(r)).map((e=>e.toString(16).padStart(2,"0"))).join("")}(o);return(!(await i.isPopulated())||await async function(e,t){return t!==await e.getHash()}(i,a))&&await i.populate({groups:r.groups,emojis:o,hash:a}),i}async function S(e,t,r,o,n){return r&&o?k(e,t,r,o,n):E(e,t,n)}class A{constructor(){this.handleKeyDown=this.handleKeyDown.bind(this)}activate(e){this.rootElement=e,this.rootElement.addEventListener("keydown",this.handleKeyDown)}deactivate(){var e;null==(e=this.rootElement)||e.removeEventListener("keydown",this.handleKeyDown)}get focusableElements(){return this.rootElement.querySelectorAll('input, [tabindex="0"]')}get lastFocusableElement(){return this.focusableElements[this.focusableElements.length-1]}get firstFocusableElement(){return this.focusableElements[0]}checkFocus(e,t,r){e.target===t&&(r.focus(),e.preventDefault())}handleKeyDown(e){"Tab"===e.key&&this.checkFocus(e,e.shiftKey?this.firstFocusableElement:this.lastFocusableElement,e.shiftKey?this.lastFocusableElement:this.firstFocusableElement)}}const{light:j,dark:D,auto:T}=y("light","dark","auto");class q{constructor({template:e,classes:t,parent:r}){this.isDestroyed=!1,this.appEvents={},this.uiEvents=[],this.uiElements={},this.ui={},this.template=e,this.classes=t,this.parent=r,this.keyBindingHandler=this.keyBindingHandler.bind(this)}initialize(){this.bindAppEvents()}setCustomEmojis(e){this.customEmojis=e}setEvents(e){this.events=e}setPickerId(e){this.pickerId=e}emit(e,...t){this.events.emit(e,...t)}setI18n(e){this.i18n=e}setRenderer(e){this.renderer=e}setEmojiData(e){this.emojiDataPromise=e,e.then((e=>{this.emojiData=e}))}updateEmojiData(e){this.emojiData=e,this.emojiDataPromise=Promise.resolve(e)}setOptions(e){this.options=e}renderSync(e={}){return this.el=this.template.renderSync({classes:this.classes,i18n:this.i18n,pickerId:this.pickerId,...e}),this.postRender(),this.el}async render(e={}){return await this.emojiDataPromise,this.el=await this.template.renderAsync({classes:this.classes,i18n:this.i18n,pickerId:this.pickerId,...e}),this.postRender(),this.el}postRender(){this.bindUIElements(),this.bindKeyBindings(),this.bindUIEvents(),this.scheduleShowAnimation()}bindAppEvents(){Object.keys(this.appEvents).forEach((e=>{this.events.on(e,this.appEvents[e],this)})),this.events.on("data:ready",this.updateEmojiData,this)}unbindAppEvents(){Object.keys(this.appEvents).forEach((e=>{this.events.off(e,this.appEvents[e])})),this.events.off("data:ready",this.updateEmojiData)}keyBindingHandler(e){const t=this.keyBindings[e.key];t&&t.call(this,e)}bindKeyBindings(){this.keyBindings&&this.el.addEventListener("keydown",this.keyBindingHandler)}unbindKeyBindings(){this.keyBindings&&this.el.removeEventListener("keydown",this.keyBindingHandler)}bindUIElements(){this.ui=Object.keys(this.uiElements).reduce(((e,t)=>({...e,[t]:this.el.querySelector(this.uiElements[t])})),{})}bindUIEvents(){this.uiEvents.forEach((e=>{e.handler=e.handler.bind(this),(e.target?this.ui[e.target]:this.el).addEventListener(e.event,e.handler,e.options)}))}unbindUIEvents(){this.uiEvents.forEach((e=>{(e.target?this.ui[e.target]:this.el).removeEventListener(e.event,e.handler)}))}destroy(){this.unbindAppEvents(),this.unbindUIEvents(),this.unbindKeyBindings(),this.el.remove(),this.isDestroyed=!0}scheduleShowAnimation(){if(this.parent){const e=new MutationObserver((t=>{const[r]=t;"childList"===r.type&&r.addedNodes[0]===this.el&&(f(this.options)&&this.animateShow&&this.animateShow(),e.disconnect)}));e.observe(this.parent,{childList:!0})}}static childEvent(e,t,r,o={}){return{target:e,event:t,handler:r,options:o}}static uiEvent(e,t,r={}){return{event:e,handler:t,options:r}}static byClass(e){return`.${e}`}}const L={clock:'\x3c!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --\x3e',flag:'\x3c!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --\x3e',frown:'\x3c!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --\x3e',gamepad:'\x3c!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --\x3e',lightbulb:'\x3c!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --\x3e',mug:'\x3c!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --\x3e',plane:'\x3c!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --\x3e',robot:'\x3c!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --\x3e',sad:'\n \n \n \n \n \n \n \x3c!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --\x3e\n \n \n \n \n \n',search:'\x3c!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --\x3e',smiley:'\x3c!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --\x3e',symbols:'\x3c!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --\x3e',tree:'\x3c!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --\x3e',users:'\x3c!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --\x3e',warning:'\n \n \n \n \n \n \n \x3c!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --\x3e\n \n',xmark:'\x3c!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --\x3e'},I={recents:"clock","smileys-emotion":"smiley","people-body":"users","animals-nature":"tree","food-drink":"mug",activities:"gamepad","travel-places":"plane",objects:"lightbulb",symbols:"symbols",flags:"flag",custom:"robot"};function R(e,t){if(!(e in L))return console.warn(`Unknown icon: "${e}"`),document.createElement("div");const r=function(e,t){const r=b(t);return r.dataset.icon=e,r.classList.add(w("icon")),r}(e,L[e]);return t&&r.classList.add(w(`icon-${t}`)),r}const B="sync";var z,P,F,H,V,O,N,U;class M{constructor(e,t={}){i(this,F),i(this,V),i(this,N),i(this,z,void 0),i(this,P,void 0),a(this,z,e),a(this,P,t.mode||B)}renderSync(e={}){const t=b(n(this,z).call(this,e));return s(this,N,U).call(this,t,e),s(this,V,O).call(this,t),s(this,F,H).call(this,t,e),t}async renderAsync(e={}){const t=b(n(this,z).call(this,e));return s(this,N,U).call(this,t,e),s(this,V,O).call(this,t),await s(this,F,H).call(this,t,e),t}render(e){return"sync"===n(this,P)?this.renderSync(e):this.renderAsync(e)}}z=new WeakMap,P=new WeakMap,F=new WeakSet,H=async function(e,t){const r=e.querySelectorAll("[data-view]"),o=[];for(const n of r){const e=t[n.dataset.view];e?"sync"!==n.dataset.render?o.push(e.render().then((e=>(n.replaceWith(e),e)))):n.replaceWith(e.renderSync()):n.remove()}return Promise.all(o)},V=new WeakSet,O=function(e){e.querySelectorAll("i[data-icon]").forEach((e=>{const{icon:t,size:r}=e.dataset;e.replaceWith(R(t,r))}))},N=new WeakSet,U=function(e,t){return e.querySelectorAll("[data-placeholder]").forEach((e=>{const r=e.dataset.placeholder;if(r&&t[r]){const o=t[r];e.replaceWith(...[o].flat())}else console.warn(`Missing placeholder element for key "${r}"`)})),e};const $=y("imagePlaceholder","placeholder"),G=new M((({classes:e})=>`\n
\n`));class Z extends q{constructor({classNames:e}={}){super({template:G,classes:$}),this.classNames=e}load(e){const t=document.createElement("img");this.classNames&&(t.className=this.classNames),t.addEventListener("load",(()=>{this.el.replaceWith(t)}),{once:!0}),Promise.resolve(e).then((e=>t.src=e))}renderSync(){return super.renderSync(),this.classNames&&this.classNames.split(" ").forEach((e=>this.el.classList.add(e))),this.el}}const W=y("customEmoji");const K=new M((({emoji:e})=>`${e}`));class J extends class{renderElement(e){return{content:e}}renderImage(e="",t){const r=new Z({classNames:e});return r.renderSync(),{content:r,resolver:()=>(r.load(t()),r.el)}}doRender(e,t,r){if(e.custom)return this.renderCustom(e,t,r);const{content:o,resolver:n}=this.render(e,r),i=o instanceof Element?o:o.el;return n&&n(),i}doEmit(e){return e.custom?this.emitCustom(e):this.emit(e)}emitCustom({url:e,label:t,emoji:r,data:o}){return{url:e,label:t,emoji:r,data:o}}renderCustom(e,t,r=""){const o=[W.customEmoji,r].join(" ").trim(),{content:n,resolver:i}=this.renderImage(o,(()=>e.url)),a=n instanceof Element?n:n.el;return i&&i(),a}}{render(e){return this.renderElement(K.renderSync({emoji:e.emoji}))}emit({emoji:e,hexcode:t,label:r}){return{emoji:e,hexcode:t,label:r}}}const Y=[(e,t)=>("1F91D"===e.hexcode&&t<14&&(e.skins=[]),e),(e,t)=>(e.skins&&(e.skins=e.skins.filter((e=>!e.version||e.version<=t))),e)];function _(e,t){return e.filter((e=>null!==function(e,t){return Y.some((r=>null===r(e,t)))?null:e}(e,t)))}function Q(e){var t;return{emoji:e.emoji,label:e.label,tags:e.tags,skins:null==(t=e.skins)?void 0:t.map((e=>Q(e))),order:e.order,custom:!1,hexcode:e.hexcode,version:e.version}}function X(e,t,r){var o;return!(r&&!r.some((t=>t.order===e.group)))&&(g(e.label,t)||(null==(o=e.tags)?void 0:o.some((e=>g(e,t)))))}class ee{constructor(e="en"){this.locale=e}}const te="PicMo";function re(e){return new oe(e)}re.deleteDatabase=e=>new Promise(((t,r)=>{const o=indexedDB.deleteDatabase(`${te}-${e}`);o.addEventListener("success",t),o.addEventListener("error",r)}));class oe extends ee{async open(){const e=indexedDB.open(`${te}-${this.locale}`);return new Promise(((t,r)=>{e.addEventListener("success",(e=>{var r;this.db=null==(r=e.target)?void 0:r.result,t()})),e.addEventListener("error",r),e.addEventListener("upgradeneeded",(async e=>{var t;this.db=null==(t=e.target)?void 0:t.result,this.db.createObjectStore("category",{keyPath:"order"});const r=this.db.createObjectStore("emoji",{keyPath:"emoji"});r.createIndex("category","group"),r.createIndex("version","version"),this.db.createObjectStore("meta")}))}))}async delete(){this.close();const e=indexedDB.deleteDatabase(`${te}-${this.locale}`);await this.waitForRequest(e)}close(){this.db.close()}async getEmojiCount(){const e=this.db.transaction("emoji","readonly").objectStore("emoji");return(await this.waitForRequest(e.count())).target.result}async getEtags(){const e=this.db.transaction("meta","readonly").objectStore("meta"),[t,r]=await Promise.all([this.waitForRequest(e.get("emojisEtag")),this.waitForRequest(e.get("messagesEtag"))]);return{storedEmojisEtag:t.target.result,storedMessagesEtag:r.target.result}}async setMeta(e){const t=this.db.transaction("meta","readwrite"),r=t.objectStore("meta");return new Promise((o=>{t.oncomplete=o,Object.keys(e).filter(Boolean).forEach((t=>{r.put(e[t],t)}))}))}async getHash(){const e=this.db.transaction("meta","readonly").objectStore("meta");return(await this.waitForRequest(e.get("hash"))).target.result}async isPopulated(){const e=this.db.transaction("category","readonly").objectStore("category");return(await this.waitForRequest(e.count())).target.result>0}async populate({groups:e,emojis:t,emojisEtag:r,messagesEtag:o,hash:n}){await this.removeAllObjects("category","emoji");const i=[this.addObjects("category",e),this.addObjects("emoji",t),this.setMeta({emojisEtag:r,messagesEtag:o,hash:n})];await Promise.all(i)}async getCategories(e){var t;const r=this.db.transaction("category","readonly").objectStore("category");let o=(await this.waitForRequest(r.getAll())).target.result.filter((e=>"component"!==e.key));if(e.showRecents&&o.unshift({key:"recents",order:-1}),null!=(t=e.custom)&&t.length&&o.push({key:"custom",order:10}),e.categories){const t=e.categories;o=o.filter((e=>t.includes(e.key))),o.sort(((e,r)=>t.indexOf(e.key)-t.indexOf(r.key)))}else o.sort(((e,t)=>e.order-t.order));return o}async getEmojis(e,t){const r=this.db.transaction("emoji","readonly").objectStore("emoji").index("category");return _((await this.waitForRequest(r.getAll(e.order))).target.result.filter((e=>e.version<=t)).sort(((e,t)=>null!=e.order&&null!=t.order?e.order-t.order:0)).map(Q),t)}async searchEmojis(e,t,r,o){const n=[];return new Promise(((i,a)=>{const s=this.db.transaction("emoji","readonly").objectStore("emoji").openCursor();s.addEventListener("success",(a=>{var s;const c=null==(s=a.target)?void 0:s.result;if(!c)return i([..._(n,r),...t.filter((t=>X(t,e)))]);const l=c.value;X(l,e,o)&&l.version<=r&&n.push(Q(l)),c.continue()})),s.addEventListener("error",(e=>{a(e)}))}))}async waitForRequest(e){return new Promise(((t,r)=>{e.onsuccess=t,e.onerror=r}))}withTransaction(e,t="readwrite",r){return new Promise(((o,n)=>{const i=this.db.transaction(e,t);i.oncomplete=o,i.onerror=n,r(i)}))}async removeAllObjects(...e){const t=this.db.transaction(e,"readwrite"),r=e.map((e=>t.objectStore(e)));await Promise.all(r.map((e=>this.waitForRequest(e.clear()))))}async addObjects(e,t){return this.withTransaction(e,"readwrite",(r=>{const o=r.objectStore(e);t.forEach((e=>{o.add(e)}))}))}}const ne="PicMo:recents";class ie extends class{}{constructor(e){super(),this.storage=e}clear(){this.storage.removeItem(ne)}getRecents(e){var t;try{return JSON.parse(null!=(t=this.storage.getItem(ne))?t:"[]").slice(0,e)}catch{return[]}}addOrUpdateRecent(e,t){const r=[e,...this.getRecents(t).filter((t=>t.hexcode!==e.hexcode))].slice(0,t);try{this.storage.setItem(ne,JSON.stringify(r))}catch{console.warn("storage is not available, recent emojis will not be saved")}}}class ae extends ie{constructor(){super(localStorage)}}const se={dataStore:re,theme:j,animate:!0,showCategoryTabs:!0,showPreview:!0,showRecents:!0,showSearch:!0,showVariants:!0,emojisPerRow:8,visibleRows:6,emojiVersion:"auto",i18n:{"categories.activities":"Activities","categories.animals-nature":"Animals & Nature","categories.custom":"Custom","categories.flags":"Flags","categories.food-drink":"Food & Drink","categories.objects":"Objects","categories.people-body":"People & Body","categories.recents":"Recently Used","categories.smileys-emotion":"Smileys & Emotion","categories.symbols":"Symbols","categories.travel-places":"Travel & Places","error.load":"Failed to load emojis","recents.clear":"Clear recent emojis","recents.none":"You haven't selected any emojis yet.",retry:"Try again","search.clear":"Clear search","search.error":"Failed to search emojis","search.notFound":"No results found",search:"Search emojis..."},locale:"en",maxRecents:50,custom:[]};var ce,le,ue,de,he;class pe{constructor(){i(this,le),i(this,de),i(this,ce,new Map)}on(e,t,r){s(this,de,he).call(this,e,t,r)}once(e,t,r){s(this,de,he).call(this,e,t,r,!0)}off(e,t){const r=s(this,le,ue).call(this,e);n(this,ce).set(e,r.filter((e=>e.handler!==t)))}emit(e,...t){s(this,le,ue).call(this,e).forEach((r=>{r.handler.apply(r.context,t),r.once&&this.off(e,r.handler)}))}removeAll(){n(this,ce).clear()}}ce=new WeakMap,le=new WeakSet,ue=function(e){return n(this,ce).has(e)||n(this,ce).set(e,[]),n(this,ce).get(e)},de=new WeakSet,he=function(e,t,r,o=!1){s(this,le,ue).call(this,e).push({context:r,handler:t,once:o})};const me=!0;class fe extends pe{}class ge extends pe{}const ve=y("emojiCategory","categoryName","noRecents","recentEmojis");class be extends q{constructor({template:e,category:t,showVariants:r,lazyLoader:o}){super({template:e,classes:ve}),this.baseUIElements={categoryName:q.byClass(ve.categoryName)},this.category=t,this.showVariants=r,this.lazyLoader=o}setActive(e,t,r){this.emojiContainer.setActive(e,t,r)}}const ye=new M((({classes:e,emoji:t})=>`\n \n
\n \n`)),we=y("emojiButton");class Ce extends q{constructor({emoji:e,lazyLoader:t,category:r}){super({template:ye,classes:we}),this.emoji=e,this.lazyLoader=t,this.category=r}initialize(){this.uiEvents=[q.uiEvent("focus",this.handleFocus)],super.initialize()}handleFocus(){this.category&&this.events.emit("focus:change",this.category)}activateFocus(e){this.el.tabIndex=0,e&&this.el.focus()}deactivateFocus(){this.el.tabIndex=-1}renderSync(){return super.renderSync({emoji:this.emoji,emojiContent:this.renderer.doRender(this.emoji,this.lazyLoader)})}}class xe{constructor(e,t,r=0,o=0,n=!1){this.events=new pe,this.keyHandlers={ArrowLeft:this.focusPrevious.bind(this),ArrowRight:this.focusNext.bind(this),ArrowUp:this.focusUp.bind(this),ArrowDown:this.focusDown.bind(this)},this.rowCount=Math.ceil(t/e),this.columnCount=e,this.focusedRow=r,this.focusedColumn=o,this.emojiCount=t,this.wrap=n,this.handleKeyDown=this.handleKeyDown.bind(this)}destroy(){this.events.removeAll()}on(e,t){this.events.on(e,t)}handleKeyDown(e){e.key in this.keyHandlers&&(e.preventDefault(),this.keyHandlers[e.key]())}setCell(e,t,r=!0){const o=this.getIndex();this.focusedRow=e,void 0!==t&&(this.focusedColumn=Math.min(this.columnCount,t)),(this.focusedRow>=this.rowCount||this.getIndex()>=this.emojiCount)&&(this.focusedRow=this.rowCount-1,this.focusedColumn=this.emojiCount%this.columnCount-1),this.events.emit("focus:change",{from:o,to:this.getIndex(),performFocus:r})}setFocusedIndex(e,t=!0){const r=Math.floor(e/this.columnCount),o=e%this.columnCount;this.setCell(r,o,t)}focusNext(){this.focusedColumn0?this.setCell(this.focusedRow,this.focusedColumn-1):this.focusedRow>0?this.setCell(this.focusedRow-1,this.columnCount-1):this.wrap?this.setCell(this.rowCount-1,this.columnCount-1):this.events.emit("focus:underflow",this.columnCount-1)}focusUp(){this.focusedRow>0?this.setCell(this.focusedRow-1,this.focusedColumn):this.events.emit("focus:underflow",this.focusedColumn)}focusDown(){this.focusedRow`\n
\n
\n
\n`)),ke=y("emojiContainer");class Se extends q{constructor({emojis:e,showVariants:t,preview:r=!0,lazyLoader:o,category:n,fullHeight:i=!1}){super({template:Ee,classes:ke}),this.fullHeight=!1,this.showVariants=t,this.lazyLoader=o,this.preview=r,this.emojis=e,this.category=n,this.fullHeight=i,this.setFocus=this.setFocus.bind(this),this.triggerNextCategory=this.triggerNextCategory.bind(this),this.triggerPreviousCategory=this.triggerPreviousCategory.bind(this)}initialize(){this.grid=new xe(this.options.emojisPerRow,this.emojiCount,0,0,!this.category),this.grid.on("focus:change",this.setFocus),this.grid.on("focus:overflow",this.triggerNextCategory),this.grid.on("focus:underflow",this.triggerPreviousCategory),this.uiEvents=[q.uiEvent("click",this.selectEmoji),q.uiEvent("keydown",this.grid.handleKeyDown)],this.preview&&this.uiEvents.push(q.uiEvent("mouseover",this.showPreview),q.uiEvent("mouseout",this.hidePreview),q.uiEvent("focus",this.showPreview,{capture:!0}),q.uiEvent("blur",this.hidePreview,{capture:!0})),super.initialize()}setFocusedView(e,t){if(e)if("string"==typeof e){const t=this.emojis.findIndex((t=>t.emoji===e));this.grid.setFocusedIndex(t,!1),setTimeout((()=>{var e,r,o,n;const i=this.emojiViews[t].el;i.scrollIntoView();const a=null==(e=i.parentElement)?void 0:e.previousElementSibling;(null==(o=null==(r=i.parentElement)?void 0:r.parentElement)?void 0:o.parentElement).scrollTop-=null!=(n=null==a?void 0:a.offsetHeight)?n:0}))}else"first"===e.row||0===e.row?this.grid.setCell(0,e.offset,t):"last"===e.row&&this.grid.setCell(this.grid.getRowCount()-1,e.offset,t)}setActive(e,t,r){var o;e?this.setFocusedView(t,r):null==(o=this.emojiViews[this.grid.getIndex()])||o.deactivateFocus()}renderSync(){return this.emojiViews=this.emojis.map((e=>this.viewFactory.create(Ce,{emoji:e,category:this.category,lazyLoader:this.lazyLoader,renderer:this.renderer}))),this.emojiElements=this.emojiViews.map((e=>e.renderSync())),super.renderSync({emojis:this.emojiElements,i18n:this.i18n})}destroy(){super.destroy(),this.emojiViews.forEach((e=>e.destroy())),this.grid.destroy()}triggerPreviousCategory(e){this.events.emit("category:previous",e)}triggerNextCategory(e){this.category&&this.events.emit("category:next",e)}setFocus({from:e,to:t,performFocus:r}){var o,n;null==(o=this.emojiViews[e])||o.deactivateFocus(),null==(n=this.emojiViews[t])||n.activateFocus(r)}selectEmoji(e){e.stopPropagation();const t=m(e,this.emojis);t&&this.events.emit("emoji:select",{emoji:t,showVariants:this.showVariants})}showPreview(e){const t=e.target.closest("button"),r=null==t?void 0:t.firstElementChild,o=m(e,this.emojis);o&&this.events.emit("preview:show",o,null==r?void 0:r.cloneNode(!0))}hidePreview(e){m(e,this.emojis)&&this.events.emit("preview:hide")}get emojiCount(){return this.emojis.length}}const Ae=new M((({classes:e,category:t,pickerId:r,icon:o,i18n:n})=>`\n
\n

\n \n ${n.get(`categories.${t.key}`,t.message||t.key)}\n

\n
\n
\n`));class je extends be{constructor({category:e,showVariants:t,lazyLoader:r,emojiVersion:o}){super({category:e,showVariants:t,lazyLoader:r,template:Ae}),this.showVariants=t,this.lazyLoader=r,this.emojiVersion=o}initialize(){this.uiElements={...this.baseUIElements},super.initialize()}async render(){await this.emojiDataPromise;const e=await this.emojiData.getEmojis(this.category,this.emojiVersion);return this.emojiContainer=this.viewFactory.create(Se,{emojis:e,showVariants:this.showVariants,lazyLoader:this.lazyLoader,category:this.category.key}),super.render({category:this.category,emojis:this.emojiContainer,emojiCount:e.length,icon:I[this.category.key]})}}class De extends Se{constructor({category:e,emojis:t,preview:r=!0,lazyLoader:o}){super({category:e,emojis:t,showVariants:!1,preview:r,lazyLoader:o})}async addOrUpdate(e){const t=this.el.querySelector(`[data-emoji="${e.emoji}"]`);t&&(this.el.removeChild(t),this.emojis=this.emojis.filter((t=>t!==e)));const r=this.viewFactory.create(Ce,{emoji:e});if(this.el.insertBefore(r.renderSync(),this.el.firstChild),this.emojis=[e,...this.emojis.filter((t=>t!==e))],this.emojis.length>this.options.maxRecents){this.emojis=this.emojis.slice(0,this.options.maxRecents);const e=this.el.childElementCount-this.options.maxRecents;for(let t=0;t`\n
\n

\n \n ${i.get(`categories.${r.key}`,r.message||r.key)}\n

\n
\n
\n
\n
\n ${i.get("recents.none")}\n
\n
\n`),{mode:"async"});const qe=new M((({classes:e,category:t,pickerId:r,icon:o,i18n:n})=>`\n
\n

\n \n ${n.get(`categories.${t.key}`,t.message||t.key)}\n

\n
\n
\n`));class Le{constructor(){this.elements=new Map}lazyLoad(e,t){return this.elements.set(e,t),e}observe(e){if(window.IntersectionObserver){const t=new IntersectionObserver((e=>{e.filter((e=>e.intersectionRatio>0)).map((e=>e.target)).forEach((e=>{const r=this.elements.get(e);null==r||r(),t.unobserve(e)}))}),{root:e});this.elements.forEach(((e,r)=>{t.observe(r)}))}else this.elements.forEach((e=>{e()}))}}const Ie=y("emojiArea"),Re=new M((({classes:e})=>`\n
\n
\n
\n`),{mode:"async"}),Be={recents:class extends be{constructor({category:e,lazyLoader:t,provider:r}){super({category:e,showVariants:!1,lazyLoader:t,template:Te}),this.provider=r}initialize(){this.uiElements={...this.baseUIElements,recents:q.byClass(ve.recentEmojis)},this.appEvents={"recent:add":this.addRecent},super.initialize()}async addRecent(e){await this.emojiContainer.addOrUpdate(e),this.ui.recents.dataset.empty="false"}async render(){var e;const t=null==(e=this.provider)?void 0:e.getRecents(this.options.maxRecents);return this.emojiContainer=this.viewFactory.create(De,{emojis:t,showVariants:!1,lazyLoader:this.lazyLoader,category:this.category.key}),await super.render({category:this.category,emojis:this.emojiContainer,emojiCount:t.length,icon:I[this.category.key]}),this.el}},custom:class extends be{constructor({category:e,lazyLoader:t}){super({template:qe,showVariants:!1,lazyLoader:t,category:e})}initialize(){this.uiElements={...this.baseUIElements},super.initialize()}async render(){return this.emojiContainer=this.viewFactory.create(Se,{emojis:this.customEmojis,showVariants:this.showVariants,lazyLoader:this.lazyLoader,category:this.category.key}),super.render({category:this.category,emojis:this.emojiContainer,emojiCount:this.customEmojis.length,icon:I[this.category.key]})}}};class ze extends q{constructor({categoryTabs:e,categories:t,emojiVersion:r}){super({template:Re,classes:Ie}),this.selectedCategory=0,this.scrollListenerState="active",this.lazyLoader=new Le,this.categoryTabs=e,this.categories=t,this.emojiVersion=r,this.handleScroll=function(e,t){let r=null;return()=>{r||(r=window.setTimeout((()=>{e(),r=null}),t))}}(this.handleScroll.bind(this),100)}initialize(){this.appEvents={"category:select":this.handleCategorySelect,"category:previous":this.focusPreviousCategory,"category:next":this.focusNextCategory,"focus:change":this.updateFocusedCategory},this.uiElements={emojis:q.byClass(Ie.emojiArea)},this.uiEvents=[q.uiEvent("scroll",this.handleScroll)],super.initialize()}get focusableEmoji(){return this.el.querySelector('[tabindex="0"]')}async render(){this.emojiCategories=this.categories.map(this.createCategory,this);const e={};return this.categories.forEach(((t,r)=>{e[`emojis-${t.key}`]=this.emojiCategories[r]})),await super.render({emojis:await Promise.all(this.emojiCategories.map((e=>e.render())))}),this.lazyLoader.observe(this.el),window.ResizeObserver&&(this.observer=new ResizeObserver((()=>{const e=this.el.scrollHeight-this.scrollHeight;this.el.scrollTop-this.scrollTop===0&&e>0&&(this.el.scrollTop+=e),this.scrollHeight=this.el.scrollHeight,this.scrollTop=this.el.scrollTop})),this.emojiCategories.forEach((e=>{this.observer.observe(e.el)}))),this.el}destroy(){super.destroy(),this.emojiCategories.forEach((e=>{var t;null==(t=this.observer)||t.unobserve(e.el),e.destroy()}))}handleCategorySelect(e,t){this.selectCategory(e,t)}createCategory(e){const t=Be[e.key]||je;return this.viewFactory.create(t,{category:e,showVariants:!0,lazyLoader:this.lazyLoader,emojiVersion:this.emojiVersion,provider:this.options.recentsProvider})}determineInitialCategory(){var e;return this.options.initialCategory&&this.categories.find((e=>e.key===this.options.initialCategory))?this.options.initialCategory:null==(e=this.categories.find((e=>"recents"!==e.key)))?void 0:e.key}determineFocusTarget(e){const t=this.emojiCategories.find((t=>t.category.key===e));return this.options.initialEmoji&&(null==t?void 0:t.el.querySelector(`[data-emoji="${this.options.initialEmoji}"]`))?this.options.initialEmoji:"button"}reset(e=!0){this.events.emit("preview:hide");const t=this.determineInitialCategory();t&&(this.selectCategory(t,{focus:this.determineFocusTarget(t),performFocus:e,scroll:"jump"}),this.selectedCategory=this.getCategoryIndex(t))}getCategoryIndex(e){return this.categories.findIndex((t=>t.key===e))}focusPreviousCategory(e){this.selectedCategory>0&&this.focusCategory(this.selectedCategory-1,{row:"last",offset:null!=e?e:this.options.emojisPerRow})}focusNextCategory(e){this.selectedCategory{var o;return e<(null==(o=this.emojiCategories[r+1])?void 0:o.el.offsetTop)})),o={changeFocusable:!1,performFocus:!1,scroll:!1};0===e?this.categoryTabs.setActiveTab(0,o):Math.floor(e)===Math.floor(t)||r<0?this.categoryTabs.setActiveTab(this.categories.length-1,o):this.categoryTabs.setActiveTab(r,o)}}const Pe=new M((({classList:e,classes:t,icon:r,message:o})=>`\n\n`)),Fe=y("error","iconContainer","title");class He extends q{constructor({message:e,icon:t="warning",template:r=Pe,className:o}){super({template:r,classes:Fe}),this.message=e,this.icon=t,this.className=o}renderSync(){const e=[Fe.error,this.className].join(" ").trim();return super.renderSync({message:this.message,icon:this.icon,classList:e})}}const Ve=new M((({classList:e,classes:t,icon:r,i18n:o,message:n})=>`\n \n`)),Oe=y("dataError");class Ne extends He{constructor({message:e}){super({message:e,template:Ve,className:Oe.dataError})}initialize(){this.uiElements={retryButton:"button"},this.uiEvents=[q.childEvent("retryButton","click",this.onRetry)],super.initialize()}async onRetry(){this.emojiData?await this.emojiData.delete():await this.options.dataStore.deleteDatabase(this.options.locale),this.events.emit("reinitialize");const e=await S(this.options.locale,this.options.dataStore,this.options.messages,this.options.emojiData,this.emojiData);this.viewFactory.setEmojiData(e),this.events.emit("data:ready",e)}}const Ue=y("preview","previewEmoji","previewName","tagList","tag"),Me=new M((({classes:e,tag:t})=>`\n
  • ${t}
  • \n`)),$e=new M((({classes:e})=>`\n
    \n
    \n
    \n
      \n
      \n`));class Ge extends q{constructor(){super({template:$e,classes:Ue})}initialize(){this.uiElements={emoji:q.byClass(Ue.previewEmoji),name:q.byClass(Ue.previewName),tagList:q.byClass(Ue.tagList)},this.appEvents={"preview:show":this.showPreview,"preview:hide":this.hidePreview},super.initialize()}showPreview(e,t){if(this.ui.emoji.replaceChildren(t),this.ui.name.textContent=e.label,e.tags){this.ui.tagList.style.display="flex";const t=e.tags.map((e=>Me.renderSync({tag:e,classes:Ue})));this.ui.tagList.replaceChildren(...t)}}hidePreview(){this.ui.emoji.replaceChildren(),this.ui.name.textContent="",this.ui.tagList.replaceChildren()}}const Ze=new M((({classes:e,i18n:t})=>`\n \n`)),We=new M((({classes:e,i18n:t})=>`\n
      \n \n \n
      \n`),{mode:"async"}),Ke=y("searchContainer","searchField","clearButton","searchAccessory","clearSearchButton","notFound");class Je extends q{constructor({categories:e,emojiVersion:t}){super({template:We,classes:Ke}),this.categories=e.filter((e=>"recents"!==e.key)),this.emojiVersion=t,this.search=function(e,t){let r=null;return(...o)=>{r&&window.clearTimeout(r),r=window.setTimeout((()=>{e(...o),r=null}),t)}}(this.search.bind(this),100)}initialize(){this.uiElements={searchField:q.byClass(Ke.searchField),searchAccessory:q.byClass(Ke.searchAccessory)},this.uiEvents=[q.childEvent("searchField","keydown",this.onKeyDown),q.childEvent("searchField","input",this.onSearchInput)],super.initialize()}async render(){return await super.render(),this.searchIcon=R("search"),this.notFoundMessage=this.viewFactory.create(He,{message:this.i18n.get("search.notFound"),className:Ke.notFound,icon:"sad"}),this.notFoundMessage.renderSync(),this.errorMessage=this.viewFactory.create(He,{message:this.i18n.get("search.error")}),this.errorMessage.renderSync(),this.clearSearchButton=Ze.render({classes:Ke,i18n:this.i18n}),this.clearSearchButton.addEventListener("click",(e=>this.onClearSearch(e))),this.searchField=this.ui.searchField,this.showSearchIcon(),this.el}showSearchIcon(){this.showSearchAccessory(this.searchIcon)}showClearSearchButton(){this.showSearchAccessory(this.clearSearchButton)}showSearchAccessory(e){this.ui.searchAccessory.replaceChildren(e)}clear(){this.searchField.value="",this.showSearchIcon()}focus(){this.searchField.focus()}onClearSearch(e){var t;e.stopPropagation(),this.searchField.value="",null==(t=this.resultsContainer)||t.destroy(),this.resultsContainer=null,this.showSearchIcon(),this.events.emit("content:show"),this.searchField.focus()}handleResultsKeydown(e){this.resultsContainer&&"Escape"===e.key&&this.onClearSearch(e)}onKeyDown(e){var t;"Escape"===e.key&&this.searchField.value?this.onClearSearch(e):("Enter"===e.key||"ArrowDown"===e.key)&&this.resultsContainer&&(e.preventDefault(),null==(t=this.resultsContainer.el.querySelector('[tabindex="0"]'))||t.focus())}onSearchInput(e){this.searchField.value?(this.showClearSearchButton(),this.search()):this.onClearSearch(e)}async search(){var e;if(this.searchField.value)try{const t=await this.emojiData.searchEmojis(this.searchField.value,this.customEmojis,this.emojiVersion,this.categories);if(this.events.emit("preview:hide"),t.length){const r=new Le;this.resultsContainer=this.viewFactory.create(Se,{emojis:t,fullHeight:!0,showVariants:!0,lazyLoader:r}),this.resultsContainer.renderSync(),null!=(e=this.resultsContainer)&&e.el&&(r.observe(this.resultsContainer.el),this.resultsContainer.setActive(!0,{row:0,offset:0},!1),this.resultsContainer.el.addEventListener("keydown",(e=>this.handleResultsKeydown(e))),this.events.emit("content:show",this.resultsContainer))}else this.events.emit("content:show",this.notFoundMessage)}catch{this.events.emit("content:show",this.errorMessage)}}}const Ye=new M((({classes:e})=>`\n
      \n
      \n
      \n
      \n
      \n`)),_e=y("variantOverlay","variantPopup"),Qe={easing:"ease-in-out",duration:250,fill:"both"},Xe={opacity:[0,1]},et={opacity:[0,1],transform:["scale3d(0.8, 0.8, 0.8)","scale3d(1, 1, 1)"]};class tt extends q{constructor({emoji:e,parent:t}){super({template:Ye,classes:_e,parent:t}),this.focusedEmojiIndex=0,this.focusTrap=new A,this.animateShow=()=>Promise.all([v(this.el,Xe,Qe,this.options),v(this.ui.popup,et,Qe,this.options)]),this.emoji=e}initialize(){this.uiElements={popup:q.byClass(_e.variantPopup)},this.uiEvents=[q.uiEvent("click",this.handleClick),q.uiEvent("keydown",this.handleKeydown)],super.initialize()}animateHide(){const e={...Qe,direction:"reverse"};return Promise.all([v(this.el,Xe,e,this.options),v(this.ui.popup,et,e,this.options)])}async hide(){await this.animateHide(),this.events.emit("variantPopup:hide")}handleKeydown(e){"Escape"===e.key&&(this.hide(),e.stopPropagation())}handleClick(e){this.ui.popup.contains(e.target)||this.hide()}getEmoji(e){return this.renderedEmojis[e]}setFocusedEmoji(e){this.getEmoji(this.focusedEmojiIndex).tabIndex=-1,this.focusedEmojiIndex=e;const t=this.getEmoji(this.focusedEmojiIndex);t.tabIndex=0,t.focus()}destroy(){this.emojiContainer.destroy(),this.focusTrap.deactivate(),super.destroy()}renderSync(){const e=[{...this.emoji,skins:null},...(this.emoji.skins||[]).map((e=>({...e,label:this.emoji.label,tags:this.emoji.tags})))];return this.emojiContainer=this.viewFactory.create(Se,{emojis:e,preview:!1}),super.renderSync({emojis:this.emojiContainer}),e.length`\n
    • \n \n \n
    • \n`)),ot=y("categoryTab","categoryTabActive","categoryButton");class nt extends q{constructor({category:e,icon:t}){super({template:rt,classes:ot}),this.isActive=!1,this.category=e,this.icon=t}initialize(){this.uiElements={button:q.byClass(ot.categoryButton)},this.uiEvents=[q.childEvent("button","click",this.selectCategory),q.childEvent("button","focus",this.selectCategory)],super.initialize()}renderSync(){return super.renderSync({category:this.category,icon:this.icon}),this.ui.button.ariaSelected="false",this.el}setActive(e,t={}){const{changeFocusable:r,performFocus:o,scroll:n}={changeFocusable:!0,performFocus:!0,scroll:!0,...t};this.el.classList.toggle(ot.categoryTabActive,e),r&&(this.ui.button.tabIndex=e?0:-1,this.ui.button.ariaSelected=e.toString()),e&&o&&(this.ui.button.focus(),n&&this.events.emit("category:select",this.category.key,{scroll:"animate",focus:"button",performFocus:!1})),this.isActive=e}selectCategory(){this.isActive||this.events.emit("category:select",this.category.key,{scroll:"animate",focus:"button",performFocus:!0})}}const it=new M((({classes:e})=>`\n
      \n
        \n
        \n
      \n
      \n`)),at=y("categoryButtons","categoryButtonsContainer");class st extends q{constructor({categories:e}){super({template:it,classes:at}),this.activeCategoryIndex=0,this.categories=e}initialize(){this.keyBindings={ArrowLeft:this.stepSelectedTab(-1),ArrowRight:this.stepSelectedTab(1)},this.uiEvents=[q.uiEvent("scroll",this.checkOverflow)],super.initialize()}checkOverflow(){const e=Math.abs(this.el.scrollLeft-(this.el.scrollWidth-this.el.offsetWidth))>1,t=this.el.scrollLeft>0;this.el.className="categoryButtonsContainer",t&&e?this.el.classList.add("has-overflow-both"):t?this.el.classList.add("has-overflow-left"):e&&this.el.classList.add("has-overflow-right")}renderSync(){return this.tabViews=this.categories.map((e=>this.viewFactory.create(nt,{category:e,icon:I[e.key]}))),super.renderSync({tabs:this.tabViews.map((e=>e.renderSync()))}),this.el}get currentCategory(){return this.categories[this.activeCategoryIndex]}get currentTabView(){return this.tabViews[this.activeCategoryIndex]}setActiveTab(e,t={}){this.checkOverflow();const r=this.currentTabView,o=this.tabViews[e];r.setActive(!1,t),o.setActive(!0,t),this.activeCategoryIndex=e}getTargetCategory(e){return e<0?this.categories.length-1:e>=this.categories.length?0:e}stepSelectedTab(e){return()=>{const t=this.activeCategoryIndex+e;this.setActiveTab(this.getTargetCategory(t),{changeFocusable:!0,performFocus:!0})}}}const ct=[{version:15,emoji:String.fromCodePoint(129768)},{version:14,emoji:String.fromCodePoint(128733)},{version:13,emoji:String.fromCodePoint(129729)},{version:12,emoji:String.fromCodePoint(129449)},{version:11,emoji:String.fromCodePoint(129463)},{version:5,emoji:String.fromCodePoint(129322)},{version:4,emoji:String.fromCodePoint(9877)},{version:3,emoji:String.fromCodePoint(129314)},{version:2,emoji:String.fromCodePoint(128488)},{version:1,emoji:String.fromCodePoint(128512)}];function lt(){var e;const t=ct.find((e=>function(e){const t=document.createElement("canvas").getContext("2d");if(t)return t.textBaseline="top",t.font="32px Arial",t.fillText(e,0,0),0!==t.getImageData(16,16,1,1).data[0]}(e.emoji)));return null!=(e=null==t?void 0:t.version)?e:1}function ut(e,t){return Array.from({length:e},(()=>t)).join("")}function dt(e){const{emojiCount:t,classes:r,theme:o,className:n,categoryCount:i}=e;return`\n
      \n ${(({showHeader:t,classes:r})=>t?`\n
      \n ${(({showSearch:e,classes:t})=>e?`\n
      \n
      \n
      \n `:"")(e)}\n ${(({showCategoryTabs:e,classes:t})=>e?`\n
      \n ${ut(i,`
      `)}\n
      \n `:"")(e)}\n
      \n `:"")(e)}\n
      \n
      \n
      \n ${ut(t,`
      `)}\n
      \n
      \n ${(({showPreview:e,classes:t})=>e?`\n
      \n
      \n
      \n
        \n ${ut(3,`
      • `)}\n
      \n
      \n `:"")(e)}\n
      \n `}const ht=new M((e=>e.isLoaded?function(e){const{classes:t,theme:r,className:o=""}=e;return`\n
      \n ${function({showHeader:e,classes:t}){return e?`\n
      \n
      \n
      \n
      \n `:""}(e)}\n
      \n
      \n
      \n
      \n
      \n `}(e):dt(e))),pt=y("picker","skeleton","placeholder","searchSkeleton","searchInput","categoryTabsSkeleton","headerSkeleton","categoryTab","contentSkeleton","categoryName","emojiGrid","emoji","previewSkeleton","previewEmoji","previewName","tagList","tag","overlay","content","fullHeight","pluginContainer","header"),mt={emojisPerRow:"--emojis-per-row",visibleRows:"--row-count",emojiSize:"--emoji-size"};class ft extends q{constructor(){super({template:ht,classes:pt}),this.pickerReady=!1,this.externalEvents=new ge,this.updaters={styleProperty:e=>t=>this.el.style.setProperty(mt[e],t.toString()),theme:e=>{this.el.classList.remove(this.options.theme),this.el.classList.add(e)},className:e=>{this.options.className&&this.el.classList.remove(this.options.className),this.el.classList.add(e)},emojisPerRow:this.updateStyleProperty.bind(this,"emojisPerRow"),emojiSize:this.updateStyleProperty.bind(this,"emojiSize"),visibleRows:this.updateStyleProperty.bind(this,"visibleRows")}}initialize(){this.uiElements={pickerContent:q.byClass(pt.content),header:q.byClass(pt.header)},this.uiEvents=[q.uiEvent("keydown",this.handleKeyDown)],this.appEvents={error:this.onError,reinitialize:this.reinitialize,"data:ready":this.onDataReady,"content:show":this.showContent,"variantPopup:hide":this.hideVariantPopup,"emoji:select":this.selectEmoji},super.initialize(),this.options.recentsProvider}destroy(){var e,t;super.destroy(),null==(e=this.search)||e.destroy(),this.emojiArea.destroy(),null==(t=this.categoryTabs)||t.destroy(),this.events.removeAll(),this.externalEvents.removeAll()}clearRecents(){this.options.recentsProvider.clear()}addEventListener(e,t){this.externalEvents.on(e,t)}removeEventListener(e,t){this.externalEvents.off(e,t)}initializePickerView(){this.pickerReady&&(this.showContent(),this.emojiArea.reset(!1))}handleKeyDown(e){const t=e.ctrlKey||e.metaKey;"s"===e.key&&t&&this.search&&(e.preventDefault(),this.search.focus())}buildChildViews(){return this.options.showPreview&&(this.preview=this.viewFactory.create(Ge)),this.options.showSearch&&(this.search=this.viewFactory.create(Je,{categories:this.categories,emojiVersion:this.emojiVersion})),this.options.showCategoryTabs&&(this.categoryTabs=this.viewFactory.create(st,{categories:this.categories})),this.currentView=this.emojiArea=this.viewFactory.create(ze,{categoryTabs:this.categoryTabs,categories:this.categories,emojiVersion:this.emojiVersion}),[this.preview,this.search,this.emojiArea,this.categoryTabs]}setStyleProperties(){this.options.showSearch||this.el.style.setProperty("--search-height-full","0px"),this.options.showCategoryTabs||(this.el.style.setProperty("--category-tabs-height","0px"),this.el.style.setProperty("--category-tabs-offset","0px")),this.options.showPreview||this.el.style.setProperty("--emoji-preview-height-full","0px"),Object.keys(mt).forEach((e=>{this.options[e]&&this.el.style.setProperty(mt[e],this.options[e].toString())}))}updateStyleProperty(e,t){this.el.style.setProperty(mt[e],t.toString())}reinitialize(){this.renderSync()}onError(e){const t=this.viewFactory.create(Ne,{message:this.i18n.get("error.load")}),r=this.el.offsetHeight||375;throw this.el.style.height=`${r}px`,this.el.replaceChildren(t.renderSync()),e}async onDataReady(e){const t=this.el;try{e?this.emojiData=e:await this.emojiDataPromise,"auto"===this.options.emojiVersion?this.emojiVersion=lt()||parseFloat("14.0"):this.emojiVersion=this.options.emojiVersion,this.categories=await this.emojiData.getCategories(this.options);const[r,o,n,i]=this.buildChildViews();await super.render({isLoaded:!0,search:o,categoryTabs:i,emojiArea:n,preview:r,showHeader:Boolean(this.search||this.categoryTabs),theme:this.options.theme,className:this.options.className}),this.el.style.setProperty("--category-count",this.categories.length.toString()),this.pickerReady=!0,t.replaceWith(this.el),this.setStyleProperties(),this.initializePickerView(),this.setInitialFocus(),this.externalEvents.emit("data:ready")}catch(r){this.events.emit("error",r)}}renderSync(){var e;let t=(null==(e=this.options.categories)?void 0:e.length)||10;if(this.options.showRecents&&(t+=1),super.renderSync({isLoaded:!1,theme:this.options.theme,showSearch:this.options.showSearch,showPreview:this.options.showPreview,showCategoryTabs:this.options.showCategoryTabs,showHeader:this.options.showSearch||this.options.showCategoryTabs,emojiCount:this.options.emojisPerRow*this.options.visibleRows,categoryCount:t}),this.el.style.setProperty("--category-count",t.toString()),!this.options.rootElement)throw new Error("Picker must be given a root element via the rootElement option");return this.options.rootElement.replaceChildren(this.el),this.setStyleProperties(),this.pickerReady&&this.initializePickerView(),this.el}getInitialFocusTarget(){if(typeof this.options.autoFocus<"u")switch(this.options.autoFocus){case"emojis":return this.emojiArea.focusableEmoji;case"search":return this.search;case"auto":return this.search||this.emojiArea.focusableEmoji;default:return null}if(!0===this.options.autoFocusSearch)return console.warn("options.autoFocusSearch is deprecated, please use options.focusTarget instead"),this.search}setInitialFocus(){var e;!this.pickerReady||null==(e=this.getInitialFocusTarget())||e.focus()}reset(e=!0){var t;this.pickerReady&&(this.emojiArea.reset(e),this.showContent(this.emojiArea)),null==(t=this.search)||t.clear(),this.hideVariantPopup()}showContent(e=this.emojiArea){var t,r;e!==this.currentView&&(this.currentView!==this.emojiArea&&(null==(t=this.currentView)||t.destroy()),this.ui.pickerContent.classList.toggle(pt.fullHeight,e!==this.emojiArea),this.ui.pickerContent.replaceChildren(e.el),this.currentView=e,e===this.emojiArea?(this.emojiArea.reset(),this.categoryTabs&&this.ui.header.appendChild(this.categoryTabs.el)):null==(r=this.categoryTabs)||r.el.remove())}hideVariantPopup(){var e;null==(e=this.variantPopup)||e.destroy()}isPickerClick(e){var t,r;const o=e.target,n=this.el.contains(o),i=null==(r=null==(t=this.variantPopup)?void 0:t.el)?void 0:r.contains(o);return n||i}async selectEmoji({emoji:e}){var t,r;(null==(t=e.skins)?void 0:t.length)&&this.options.showVariants&&!this.isVariantPopupOpen?this.showVariantPopup(e):(await(null==(r=this.variantPopup)?void 0:r.animateHide()),this.events.emit("variantPopup:hide"),await this.emitEmoji(e))}get isVariantPopupOpen(){return this.variantPopup&&!this.variantPopup.isDestroyed}async showVariantPopup(e){const t=document.activeElement;this.events.once("variantPopup:hide",(()=>{null==t||t.focus()})),this.variantPopup=this.viewFactory.create(tt,{emoji:e,parent:this.el}),this.el.appendChild(this.variantPopup.renderSync()),this.variantPopup.activate()}async emitEmoji(e){this.externalEvents.emit("emoji:select",await this.renderer.doEmit(e)),this.options.recentsProvider.addOrUpdateRecent(e,this.options.maxRecents),this.events.emit("recent:add",e)}updateOptions(e){Object.keys(e).forEach((t=>{this.updaters[t](e[t])})),Object.assign(this.options,e)}}class gt{constructor({events:e,i18n:t,renderer:r,emojiData:o,options:n,customEmojis:i=[],pickerId:a}){this.events=e,this.i18n=t,this.renderer=r,this.emojiData=o,this.options=n,this.customEmojis=i,this.pickerId=a}setEmojiData(e){this.emojiData=Promise.resolve(e)}create(e,...t){const r=new e(...t);return r.setPickerId(this.pickerId),r.setEvents(this.events),r.setI18n(this.i18n),r.setRenderer(this.renderer),r.setEmojiData(this.emojiData),r.setOptions(this.options),r.setCustomEmojis(this.customEmojis),r.viewFactory=this,r.initialize(),r}}var vt;class bt{constructor(e={}){i(this,vt,void 0),a(this,vt,new Map(Object.entries(e)))}get(e,t=e){return n(this,vt).get(e)||t}}vt=new WeakMap;let yt=0;const wt=function(){let e=!1;return function(t){me&&!e&&(function(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&!(typeof document>"u")){var o=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===r&&o.firstChild?o.insertBefore(n,o.firstChild):o.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}(t),e=!0)}}();function Ct(e){wt('.picmo-picker .icon{width:1.25em;height:1em;fill:currentColor}.icon-small{font-size:.8em}.icon-medium{font-size:1em}.icon-large{font-size:1.25em}.icon-2x{font-size:2em}.icon-3x{font-size:3em}.icon-4x{font-size:4em}.icon-5x{font-size:5em}.icon-8x{font-size:8em}.icon-10x{font-size:10em}.light,.auto{color-scheme:light;--accent-color: #4f46e5;--background-color: #f9fafb;--border-color: #cccccc;--category-name-background-color: #f9fafb;--category-name-button-color: #999999;--category-name-text-color: hsl(214, 30%, 50%);--category-tab-active-background-color: rgba(255, 255, 255, .6);--category-tab-active-color: var(--accent-color);--category-tab-color: #666;--category-tab-highlight-background-color: rgba(0, 0, 0, .15);--error-color-dark: hsl(0, 100%, 45%);--error-color: hsl(0, 100%, 40%);--focus-indicator-background-color: hsl(198, 65%, 85%);--focus-indicator-color: #333333;--hover-background-color: #c7d2fe;--placeholder-background-color: #cccccc;--preview-background-color: var(--secondary-background-color);--scrollbar-background-color: var(--background-color);--scrollbar-color: #aaa;--search-background-color: #f9fafb;--search-focus-background-color: #ffffff;--search-icon-color: #999999;--search-placeholder-color: #71717a;--secondary-background-color: #e2e8f0;--secondary-text-color: #666666;--tag-background-color: rgba(162, 190, 245, .3);--text-color: #000000;--variant-popup-background-color: #ffffff}.dark{color-scheme:dark;--accent-color: #A580F9;--background-color: #333333;--border-color: #666666;--category-name-background-color: #333333;--category-name-button-color: #eeeeee;--category-name-text-color: #ffffff;--category-tab-active-background-color: #000000;--category-tab-active-color: var(--accent-color);--category-tab-color: #cccccc;--category-tab-highlight-background-color: #4A4A4A;--error-color-dark: hsl(0, 7%, 3%);--error-color: hsl(0, 30%, 60%);--focus-indicator-background-color: hsl(0, 0%, 50%);--focus-indicator-color: #999999;--hover-background-color: hsla(0, 0%, 40%, .85);--image-placeholder-color: #ffffff;--placeholder-background-color: #666666;--search-background-color: #71717a;--search-focus-background-color: #52525b;--search-icon-color: #cccccc;--search-placeholder-color: #d4d4d8;--secondary-background-color: #000000 ;--secondary-text-color: #999999;--tag-background-color: rgba(162, 190, 245, .3);--text-color: #ffffff;--variant-popup-background-color: #333333}@media (prefers-color-scheme: dark){.auto{color-scheme:dark;--accent-color: #A580F9;--background-color: #333333;--border-color: #666666;--category-name-background-color: #333333;--category-name-button-color: #eeeeee;--category-name-text-color: #ffffff;--category-tab-active-background-color: #000000;--category-tab-active-color: var(--accent-color);--category-tab-color: #cccccc;--category-tab-highlight-background-color: #4A4A4A;--error-color-dark: hsl(0, 7%, 3%);--error-color: hsl(0, 30%, 60%);--focus-indicator-background-color: hsl(0, 0%, 50%);--focus-indicator-color: #999999;--hover-background-color: hsla(0, 0%, 40%, .85);--image-placeholder-color: #ffffff;--placeholder-background-color: #666666;--search-background-color: #71717a;--search-focus-background-color: #52525b;--search-icon-color: #cccccc;--search-placeholder-color: #d4d4d8;--secondary-background-color: #000000 ;--secondary-text-color: #999999;--tag-background-color: rgba(162, 190, 245, .3);--text-color: #ffffff;--variant-popup-background-color: #333333}}.picmo-picker .categoryButtonsContainer{overflow:auto;padding:2px 0;scrollbar-width:thin}.picmo-picker .categoryButtonsContainer.has-overflow-right{mask-image:linear-gradient(270deg,rgba(255,255,255,0) 0%,rgba(255,255,255,1) 10%);-webkit-mask-image:linear-gradient(270deg,rgba(255,255,255,0) 0%,rgba(255,255,255,1) 10%)}.picmo-picker .categoryButtonsContainer.has-overflow-left{mask-image:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,1) 10%);-webkit-mask-image:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,1) 10%)}.picmo-picker .categoryButtonsContainer.has-overflow-both{mask-image:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,1) 10%,rgba(255,255,255,1) 90%,rgba(255,255,255,0) 100%);-webkit-mask-image:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,1) 10%,rgba(255,255,255,1) 90%,rgba(255,255,255,0) 100%)}.picmo-picker .categoryButtonsContainer::-webkit-scrollbar{width:8px;height:8px}.picmo-picker .categoryButtonsContainer::-webkit-scrollbar-thumb{background:var(--scrollbar-color);border-radius:1em}.picmo-picker .categoryButtons{display:flex;flex-direction:row;gap:var(--tab-gap);margin:0;padding:0 .5em;align-items:center;height:var(--category-tabs-height);box-sizing:border-box;width:100%;justify-content:space-between;position:relative;list-style-type:none;justify-self:center;max-width:min(23.55rem,calc(var(--category-count, 1) * 2.5rem))}.picmo-picker .categoryButtons .categoryTab{display:flex;align-items:center;transition:all .1s;width:2em}.picmo-picker .categoryButtons .categoryTab.categoryTabActive .categoryButton{color:var(--category-tab-active-color);background:linear-gradient(rgba(255,255,255,.75) 0%,rgba(255,255,255,.75) 100%),linear-gradient(var(--category-tab-active-color) 0%,var(--category-tab-active-color) 100%);border:2px solid var(--category-tab-active-color)}.picmo-picker .categoryButtons .categoryTab.categoryTabActive .categoryButton:hover{background-color:var(--category-tab-active-background-color)}.picmo-picker .categoryButtons .categoryTab button.categoryButton{border-radius:5px;background:transparent;border:2px solid transparent;color:var(--category-tab-color);cursor:pointer;padding:2px;vertical-align:middle;display:flex;align-items:center;justify-content:center;font-size:1.2rem;width:1.6em;height:1.6em;transition:all .1s}.picmo-picker .categoryButtons .categoryTab button.categoryButton:is(img){width:var(--category-tab-size);height:var(--category-tab-size)}.picmo-picker .categoryButtons .categoryTab button.categoryButton:hover{background:var(--category-tab-highlight-background-color)}.dataError [data-icon]{opacity:.8}@keyframes appear{0%{opacity:0}to{opacity:.8}}@keyframes appear-grow{0%{opacity:0;transform:scale(.8)}to{opacity:.8;transform:scale(1)}}.picmo-picker .error{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:var(--secondary-text-color)}.picmo-picker .error .iconContainer{opacity:.8;animation:appear-grow .25s cubic-bezier(.175,.885,.32,1.275);--color-primary: var(--error-color);--color-secondary: var(--error-color-dark)}.picmo-picker .error .title{animation:appear .25s;animation-delay:50ms;animation-fill-mode:both}.picmo-picker .error button{padding:8px 16px;cursor:pointer;background:var(--background-color);border:1px solid var(--text-color);border-radius:5px;color:var(--text-color)}.picmo-picker .error button:hover{background:var(--text-color);color:var(--background-color)}.emojiButton{background:transparent;border:none;border-radius:15px;cursor:pointer;display:flex;font-family:var(--emoji-font);font-size:var(--emoji-size);height:100%;justify-content:center;align-items:center;margin:0;overflow:hidden;padding:0;width:100%}.emojiButton:hover{background:var(--hover-background-color)}.emojiButton:focus{border-radius:0;background:var(--focus-indicator-background-color);outline:1px solid var(--focus-indicator-color)}.picmo-picker .emojiArea{height:var(--emoji-area-height);overflow-y:auto;position:relative;scrollbar-color:var(--scrollbar-color) var(--scrollbar-background-color);scrollbar-width:thin}.picmo-picker .emojiArea::-webkit-scrollbar{background:var(--scrollbar-background-color);width:1.1em}.picmo-picker .emojiArea::-webkit-scrollbar-thumb{background:var(--scrollbar-color);border-left:4px solid transparent;border-right:4px solid transparent;background-clip:padding-box;height:1em;border-radius:1em}.picmo-picker .emojiCategory{position:relative}.picmo-picker .emojiCategory .categoryName{font-size:.9em;padding:.5rem;margin:0;background:var(--category-name-background-color);color:var(--category-name-text-color);top:0;z-index:1;display:grid;gap:4px;grid-template-columns:auto 1fr auto;align-items:center;line-height:1;box-sizing:border-box;height:var(--category-name-height);justify-content:flex-start;text-transform:uppercase}.picmo-picker .emojiCategory .categoryName button{background:transparent;border:none;display:flex;align-items:center;cursor:pointer;color:var(--category-name-button-color)}.picmo-picker .emojiCategory .categoryName button:hover{opacity:1}.picmo-picker .emojiCategory .noRecents{color:var(--secondary-text-color);grid-column:1 / span var(--emojis-per-row);font-size:.9em;text-align:center;display:flex;align-items:center;justify-content:center;min-height:calc(var(--emoji-size) * var(--emoji-size-multiplier))}.picmo-picker .emojiCategory .recentEmojis[data-empty=true]{display:none}:is(.picmo-picker .emojiCategory) .recentEmojis[data-empty=false]+div{display:none}.picmo-picker .emojiContainer{display:grid;justify-content:space-between;gap:1px;padding:0 .5em;grid-template-columns:repeat(var(--emojis-per-row),calc(var(--emoji-size) * var(--emoji-size-multiplier)));grid-auto-rows:calc(var(--emoji-size) * var(--emoji-size-multiplier));align-items:center;justify-items:center}.picmo-picker.picker{--border-radius: 5px;--emoji-area-height: calc( (var(--row-count) * var(--emoji-size) * var(--emoji-size-multiplier)) + var(--category-name-height) );--content-height: var(--emoji-area-height);--emojis-per-row: 8;--row-count: 6;--emoji-preview-margin: 4px;--emoji-preview-height: calc(var(--emoji-preview-size) + 1em + 1px);--emoji-preview-height-full: calc(var(--emoji-preview-height) + var(--emoji-preview-margin));--emoji-preview-size: 2.75em;--emoji-size: 2rem;--emoji-size-multiplier: 1.3;--content-margin: 8px;--category-tabs-height:calc(1.5em + 9px);--category-tabs-offset: 8px;--category-tab-size: 1.2rem;--category-name-height: 2rem;--category-name-padding-y: 6px;--search-height: 2em;--search-margin: .5em;--search-margin-bottom: 4px;--search-height-full: calc(var(--search-height) + var(--search-margin) + var(--search-margin-bottom));--overlay-background-color: rgba(0, 0, 0, .8);--emoji-font: "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "EmojiOne Color", "Android Emoji";--ui-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;--ui-font-size: 16px;--picker-width: calc(var(--emojis-per-row) * var(--emoji-size) * var(--emoji-size-multiplier) + 2.75rem);background:var(--background-color);border-radius:var(--border-radius);border:1px solid var(--border-color);font-family:var(--ui-font);font-size:var(--ui-font-size);overflow:hidden;position:relative;width:var(--picker-width);display:grid;gap:8px}.picmo-picker.picker>*{font-family:var(--ui-font)}.picmo-picker.skeleton{background:var(--background-color);border-radius:var(--border-radius);border:1px solid var(--border-color);font-family:var(--ui-font);width:var(--picker-width);color:var(--secondary-text-color)}.picmo-picker.skeleton *{box-sizing:border-box}.picmo-picker.skeleton .placeholder{background:var(--placeholder-background-color);position:relative;overflow:hidden}.picmo-picker.skeleton .placeholder:after{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);background-image:linear-gradient(90deg,rgba(255,255,255,0) 0,rgba(255,255,255,.2) 20%,rgba(255,255,255,.5) 60%,rgba(255,255,255,0) 100%);animation:shine 2s infinite;content:""}.picmo-picker.skeleton .headerSkeleton{background-color:var(--secondary-background-color);padding-top:8px;padding-bottom:8px;display:flex;flex-direction:column;overflow:hidden;gap:8px;border-bottom:1px solid var(--border-color);width:var(--picker-width)}.picmo-picker.skeleton .searchSkeleton{padding:0 8px;height:var(--search-height)}.picmo-picker.skeleton .searchSkeleton .searchInput{width:100%;height:28px;border-radius:3px}.picmo-picker.skeleton .categoryTabsSkeleton{height:var(--category-tabs-height);display:flex;flex-direction:row;align-items:center;justify-self:center;width:calc(2rem * var(--category-count, 1))}.picmo-picker.skeleton .categoryTabsSkeleton .categoryTab{width:25px;height:25px;padding:2px;border-radius:5px;margin:.25em}.picmo-picker.skeleton .contentSkeleton{height:var(--content-height);padding-right:8px;opacity:.7}.picmo-picker.skeleton .contentSkeleton .categoryName{width:50%;height:1rem;margin:.5rem;box-sizing:border-box}.picmo-picker.skeleton .contentSkeleton .emojiGrid{display:grid;justify-content:space-between;gap:1px;padding:0 .5em;grid-template-columns:repeat(var(--emojis-per-row),calc(var(--emoji-size) * var(--emoji-size-multiplier)));grid-auto-rows:calc(var(--emoji-size) * var(--emoji-size-multiplier));align-items:center;justify-items:center;width:var(--picker-width)}.picmo-picker.skeleton .contentSkeleton .emojiGrid .emoji{width:var(--emoji-size);height:var(--emoji-size);border-radius:50%}.picmo-picker.skeleton .previewSkeleton{height:var(--emoji-preview-height);border-top:1px solid var(--border-color);display:grid;align-items:center;padding:.5em;gap:6px;grid-template-columns:auto 1fr;grid-template-rows:auto 1fr;grid-template-areas:"emoji name" "emoji tags"}.picmo-picker.skeleton .previewSkeleton .previewEmoji{grid-area:emoji;border-radius:50%;width:var(--emoji-preview-size);height:var(--emoji-preview-size)}.picmo-picker.skeleton .previewSkeleton .previewName{grid-area:name;height:.8em;width:80%}.picmo-picker.skeleton .previewSkeleton .tagList{grid-area:tags;list-style-type:none;display:flex;flex-direction:row;padding:0;margin:0}.picmo-picker.skeleton .previewSkeleton .tagList .tag{border-radius:3px;padding:2px 8px;margin-right:.25em;height:1em;width:20%}.overlay{background:rgba(0,0,0,.75);height:100%;left:0;position:fixed;top:0;width:100%;z-index:1000}.content{position:relative;overflow:hidden;height:var(--content-height)}.content.fullHeight{height:calc(var(--content-height) + var(--category-tabs-height) + var(--category-tabs-offset));overflow-y:auto;scrollbar-color:var(--scrollbar-color) var(--scrollbar-background-color);scrollbar-width:thin}.content.fullHeight::-webkit-scrollbar{background:var(--scrollbar-background-color);width:1.1em}.content.fullHeight::-webkit-scrollbar-thumb{background:var(--scrollbar-color);background-clip:padding-box;height:1em;border-radius:.5em}.pluginContainer{margin:.5em;display:flex;flex-direction:row}.header{background-color:var(--secondary-background-color);padding-top:8px;padding-bottom:8px;display:grid;gap:8px;border-bottom:1px solid var(--border-color)}@media (prefers-reduced-motion: reduce){.placeholder{background:var(--placeholder-background-color);position:relative;overflow:hidden}.placeholder:after{display:none}}.picmo-picker .preview{border-top:1px solid var(--border-color);display:grid;align-items:center;gap:6px;grid-template-columns:auto 1fr;grid-template-rows:auto 1fr;grid-template-areas:"emoji name" "emoji tags";height:var(--emoji-preview-height);box-sizing:border-box;padding:.5em;position:relative;background:var(--preview-background-color)}.picmo-picker .preview .previewEmoji{grid-area:emoji;font-size:var(--emoji-preview-size);font-family:var(--emoji-font);width:1.25em;display:flex;align-items:center;justify-content:center}.picmo-picker .preview .previewName{grid-area:name;color:var(--text-color);font-size:.8em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}.picmo-picker .preview .tagList{grid-area:tags;list-style-type:none;display:flex;flex-direction:row;padding:0;margin:0;font-size:.75em;overflow:hidden}.picmo-picker .preview .tag{border-radius:3px;background:var(--tag-background-color);color:var(--text-color);padding:2px 8px;margin-right:.25em;white-space:nowrap}.picmo-picker .preview .tag:last-child{margin-right:0}.picmo-picker .searchContainer{display:flex;height:var(--search-height);box-sizing:border-box;padding:0 8px;position:relative}.picmo-picker .searchContainer .searchField{background:var(--search-background-color);border-radius:3px;border:none;box-sizing:border-box;color:var(--text-color);font-size:.9em;outline:none;padding:.5em 2.25em .5em .5em;width:100%}.picmo-picker .searchContainer .searchField:focus{background:var(--search-focus-background-color)}.picmo-picker .searchContainer .searchField::placeholder{color:var(--search-placeholder-color)}.picmo-picker .searchContainer .searchAccessory{color:var(--search-icon-color);height:100%;position:absolute;right:1em;top:0;width:1.25rem;display:flex;align-items:center}.picmo-picker .searchContainer .searchAccessory svg{fill:var(--search-icon-color)}.picmo-picker .searchContainer .clearButton{border:0;color:var(--search-icon-color);background:transparent;cursor:pointer}.picmo-picker .searchContainer .clearSearchButton{cursor:pointer;border:none;background:transparent;color:var(--search-icon-color);font-size:1em;width:100%;height:100%;display:flex;align-items:center;padding:0}.picmo-picker .searchContainer .notFound [data-icon]{fill:#f3e265}.picmo-picker .variantOverlay{background:var(--overlay-background-color);border-radius:5px;display:flex;flex-direction:column;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%;z-index:1}.picmo-picker .variantOverlay .variantPopup{background:var(--variant-popup-background-color);border-radius:5px;margin:.5em;padding:.5em;text-align:center;user-select:none;display:flex;align-items:center;justify-content:center}.customEmoji{width:1em;height:1em}@keyframes shine{to{transform:translate(100%)}}.picmo-picker .imagePlaceholder{width:2rem;height:2rem;border-radius:50%}.placeholder{background:#DDDBDD;position:relative}.placeholder:after{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);background-image:linear-gradient(90deg,rgba(255,255,255,0) 0,rgba(255,255,255,.2) 20%,rgba(255,255,255,.5) 60%,rgba(255,255,255,0) 100%);animation:shine 2s infinite;content:""}\n');const t=function(e={}){return{...se,...e,renderer:e.renderer||new J,recentsProvider:e.recentsProvider||new ae}}(e),r=((null==t?void 0:t.custom)||[]).map((e=>({...e,custom:!0,tags:["custom",...e.tags||[]]}))),o=new fe,n=function(e){return S(e.locale,e.dataStore,e.messages,e.emojiData)}(t),i=new bt(t.i18n);n.then((e=>{o.emit("data:ready",e)})).catch((e=>{o.emit("error",e)}));const a=new gt({events:o,i18n:i,customEmojis:r,renderer:t.renderer,options:t,emojiData:n,pickerId:`picmo-${Date.now()}-${yt++}`}).create(ft);return a.renderSync(),a}},45628:function(e,t,r){"use strict";function o(e){return"[object Object]"===Object.prototype.toString.call(e)}function n(e){var t,r;return!1!==o(e)&&(void 0===(t=e.constructor)||!1!==o(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}r.d(t,{P:function(){return n}})}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/1700-11e394bac47bf35e.js b/static/web/_next/static/chunks/1700-11e394bac47bf35e.js deleted file mode 100644 index 9bbe0b164..000000000 --- a/static/web/_next/static/chunks/1700-11e394bac47bf35e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1700],{25413:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"}},6594:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"}},77307:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"}},54067:function(e,t,n){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=(r=n(45799))&&r.__esModule?r:{default:r};t.default=a,e.exports=a},68229:function(e,t,n){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=(r=n(7500))&&r.__esModule?r:{default:r};t.default=a,e.exports=a},67638:function(e,t,n){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=(r=n(86994))&&r.__esModule?r:{default:r};t.default=a,e.exports=a},71578:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(1413),a=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.8-240-277.2V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.8C336.3 170.2 232 286.9 232 428v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48z"}}]},name:"bell",theme:"filled"},l=n(42135),i=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};i.displayName="BellFilled";var c=a.forwardRef(i)},34447:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(1413),a=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9z"}}]},name:"heart",theme:"filled"},l=n(42135),i=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};i.displayName="HeartFilled";var c=a.forwardRef(i)},45799:function(e,t,n){var r=n(75263),a=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n(42122)),l=r(n(67294)),i=a(n(25413)),c=a(n(92074)),s=function(e,t){return l.createElement(c.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:i.default}))};s.displayName="BarsOutlined";var u=l.forwardRef(s);t.default=u},7500:function(e,t,n){var r=n(75263),a=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n(42122)),l=r(n(67294)),i=a(n(6594)),c=a(n(92074)),s=function(e,t){return l.createElement(c.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:i.default}))};s.displayName="LeftOutlined";var u=l.forwardRef(s);t.default=u},86994:function(e,t,n){var r=n(75263),a=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n(42122)),l=r(n(67294)),i=a(n(77307)),c=a(n(92074)),s=function(e,t){return l.createElement(c.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:i.default}))};s.displayName="RightOutlined";var u=l.forwardRef(s);t.default=u},24093:function(e,t,n){n.d(t,{C:function(){return P}});var r=n(87462),a=n(4942),o=n(71002),l=n(97685),i=n(94184),c=n.n(i),s=n(48555),u=n(42550),f=n(67294),d=n(53124),v=n(25378),m=n(24308),p=f.createContext("default"),g=function(e){var t=e.children,n=e.size;return f.createElement(p.Consumer,null,(function(e){return f.createElement(p.Provider,{value:n||e},t)}))},h=p,y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);ar){if(t>0)return(0,i.Z)({},e,o);if(t<0&&ar)return(0,i.Z)({},e,t<0?o:-o);return{}}var x=["visible","onVisibleChange","getContainer","current","countRender"],b=u.createContext({previewUrls:new Map,setPreviewUrls:function(){return null},current:null,setCurrent:function(){return null},setShowPreview:function(){return null},setMousePosition:function(){return null},registerImage:function(){return function(){return null}},rootClassName:""}),Z=b.Provider,E=function(e){var t=e.previewPrefixCls,n=void 0===t?"rc-image-preview":t,o=e.children,l=e.icons,i=void 0===l?{}:l,f=e.preview,d="object"===(0,a.Z)(f)?f:{},v=d.visible,p=void 0===v?void 0:v,g=d.onVisibleChange,h=void 0===g?void 0:g,y=d.getContainer,C=void 0===y?void 0:y,w=d.current,b=void 0===w?0:w,E=d.countRender,N=void 0===E?void 0:E,O=(0,s.Z)(d,x),P=(0,u.useState)(new Map),k=(0,c.Z)(P,2),S=k[0],z=k[1],j=(0,u.useState)(),R=(0,c.Z)(j,2),_=R[0],L=R[1],H=(0,m.Z)(!!p,{value:p,onChange:h}),I=(0,c.Z)(H,2),V=I[0],T=I[1],B=(0,u.useState)(null),F=(0,c.Z)(B,2),W=F[0],D=F[1],Y=void 0!==p,A=Array.from(S.keys())[b],G=new Map(Array.from(S).filter((function(e){return!!(0,c.Z)(e,2)[1].canPreview})).map((function(e){var t=(0,c.Z)(e,2);return[t[0],t[1].url]})));return u.useEffect((function(){L(A)}),[A]),u.useEffect((function(){!V&&Y&&L(A)}),[A,Y,V]),u.createElement(Z,{value:{isPreviewGroup:!0,previewUrls:G,setPreviewUrls:z,current:_,setCurrent:L,setShowPreview:T,setMousePosition:D,registerImage:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=function(){z((function(t){var n=new Map(t);return n.delete(e)?n:t}))};return z((function(r){return new Map(r).set(e,{url:t,canPreview:n})})),r}}},o,u.createElement(M,(0,r.Z)({"aria-hidden":!V,visible:V,prefixCls:n,onClose:function(e){e.stopPropagation(),T(!1),D(null)},mousePosition:W,src:G.get(_),icons:i,getContainer:C,countRender:N},O)))},N=["prefixCls","src","alt","onClose","afterClose","visible","icons","rootClassName","countRender"],O=u.useState,P=u.useEffect,k=u.useCallback,S=u.useRef,z=u.useContext,j={x:0,y:0},M=function(e){var t,n=e.prefixCls,a=e.src,o=e.alt,f=e.onClose,m=(e.afterClose,e.visible),x=e.icons,Z=void 0===x?{}:x,E=e.rootClassName,M=e.countRender,R=(0,s.Z)(e,N),_=Z.rotateLeft,L=Z.rotateRight,H=Z.zoomIn,I=Z.zoomOut,V=Z.close,T=Z.left,B=Z.right,F=O(1),W=(0,c.Z)(F,2),D=W[0],Y=W[1],A=O(0),G=(0,c.Z)(A,2),X=G[0],U=G[1],$=function(e){var t=u.useRef(null),n=u.useState(e),r=(0,c.Z)(n,2),a=r[0],o=r[1],i=u.useRef([]);return u.useEffect((function(){return function(){return t.current&&C.Z.cancel(t.current)}}),[]),[a,function(e){null===t.current&&(i.current=[],t.current=(0,C.Z)((function(){o((function(e){var n=e;return i.current.forEach((function(e){n=(0,l.Z)((0,l.Z)({},n),e)})),t.current=null,n}))}))),i.current.push(e)}]}(j),K=(0,c.Z)($,2),Q=K[0],q=K[1],J=S(),ee=S({originX:0,originY:0,deltaX:0,deltaY:0}),te=O(!1),ne=(0,c.Z)(te,2),re=ne[0],ae=ne[1],oe=z(b),le=oe.previewUrls,ie=oe.current,ce=oe.isPreviewGroup,se=oe.setCurrent,ue=le.size,fe=Array.from(le.keys()),de=fe.indexOf(ie),ve=ce?le.get(ie):a,me=ce&&ue>1,pe=O({wheelDirection:0}),ge=(0,c.Z)(pe,2),he=ge[0],ye=ge[1],Ce=function(){Y((function(e){return e+1})),q(j)},we=function(){D>1&&Y((function(e){return e-1})),q(j)},xe=d()((0,i.Z)({},"".concat(n,"-moving"),re)),be="".concat(n,"-operations-operation"),Ze="".concat(n,"-operations-icon"),Ee=[{icon:V,onClick:f,type:"close"},{icon:H,onClick:Ce,type:"zoomIn"},{icon:I,onClick:we,type:"zoomOut",disabled:1===D},{icon:L,onClick:function(){U((function(e){return e+90}))},type:"rotateRight"},{icon:_,onClick:function(){U((function(e){return e-90}))},type:"rotateLeft"}],Ne=function(){if(m&&re){var e=J.current.offsetWidth*D,t=J.current.offsetHeight*D,n=J.current.getBoundingClientRect(),r=n.left,a=n.top,o=X%180!==0;ae(!1);var i=function(e,t,n,r){var a=(0,v.g1)(),o=a.width,i=a.height,c=null;return e<=o&&t<=i?c={x:0,y:0}:(e>o||t>i)&&(c=(0,l.Z)((0,l.Z)({},w("x",n,e,o)),w("y",r,t,i))),c}(o?t:e,o?e:t,r,a);i&&q((0,l.Z)({},i))}},Oe=function(e){m&&re&&q({x:e.pageX-ee.current.deltaX,y:e.pageY-ee.current.deltaY})},Pe=function(e){if(m){e.preventDefault();var t=e.deltaY;ye({wheelDirection:t})}},ke=k((function(e){m&&me&&(e.preventDefault(),e.keyCode===h.Z.LEFT?de>0&&se(fe[de-1]):e.keyCode===h.Z.RIGHT&&de0?we():e<0&&Ce()}),[he]),P((function(){var e,t,n=(0,g.Z)(window,"mouseup",Ne,!1),r=(0,g.Z)(window,"mousemove",Oe,!1),a=(0,g.Z)(window,"wheel",Pe,{passive:!1}),o=(0,g.Z)(window,"keydown",ke,!1);try{window.top!==window.self&&(e=(0,g.Z)(window.top,"mouseup",Ne,!1),t=(0,g.Z)(window.top,"mousemove",Oe,!1))}catch(l){(0,y.Kp)(!1,"[rc-image] ".concat(l))}return function(){n.remove(),r.remove(),a.remove(),o.remove(),e&&e.remove(),t&&t.remove()}}),[m,re,ke]),u.createElement(p.Z,(0,r.Z)({transitionName:"zoom",maskTransitionName:"fade",closable:!1,keyboard:!0,prefixCls:n,onClose:f,afterClose:function(){Y(1),U(0),q(j)},visible:m,wrapClassName:xe,rootClassName:E},R),u.createElement("ul",{className:"".concat(n,"-operations")},me&&u.createElement("li",{className:"".concat(n,"-operations-progress")},null!==(t=null===M||void 0===M?void 0:M(de+1,ue))&&void 0!==t?t:"".concat(de+1," / ").concat(ue)),Ee.map((function(e){var t=e.icon,r=e.onClick,a=e.type,o=e.disabled;return u.createElement("li",{className:d()(be,(0,i.Z)({},"".concat(n,"-operations-operation-disabled"),!!o)),onClick:r,key:a},u.isValidElement(t)?u.cloneElement(t,{className:Ze}):t)}))),u.createElement("div",{className:"".concat(n,"-img-wrapper"),style:{transform:"translate3d(".concat(Q.x,"px, ").concat(Q.y,"px, 0)")}},u.createElement("img",{width:e.width,height:e.height,onMouseDown:function(e){0===e.button&&(e.preventDefault(),e.stopPropagation(),ee.current.deltaX=e.pageX-Q.x,ee.current.deltaY=e.pageY-Q.y,ee.current.originX=Q.x,ee.current.originY=Q.y,ae(!0))},onDoubleClick:function(){m&&(1!==D&&Y(1),Q.x===j.x&&Q.y===j.y||q(j))},ref:J,className:"".concat(n,"-img"),src:ve,alt:o,style:{transform:"scale3d(".concat(D,", ").concat(D,", 1) rotate(").concat(X,"deg)")}})),me&&u.createElement("div",{className:d()("".concat(n,"-switch-left"),(0,i.Z)({},"".concat(n,"-switch-left-disabled"),0===de)),onClick:function(e){e.preventDefault(),e.stopPropagation(),de>0&&se(fe[de-1])}},T),me&&u.createElement("div",{className:d()("".concat(n,"-switch-right"),(0,i.Z)({},"".concat(n,"-switch-right-disabled"),de===ue-1)),onClick:function(e){e.preventDefault(),e.stopPropagation(),de0&&void 0!==arguments[0]?arguments[0]:"";return e+=1,"".concat(t).concat(e)}}();var x=v.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,a=e.trigger,x=e.children,b=e.defaultCollapsed,Z=void 0!==b&&b,E=e.theme,N=void 0===E?"dark":E,O=e.style,P=void 0===O?{}:O,k=e.collapsible,S=void 0!==k&&k,z=e.reverseArrow,j=void 0!==z&&z,M=e.width,R=void 0===M?200:M,_=e.collapsedWidth,L=void 0===_?80:_,H=e.zeroWidthTriggerStyle,I=e.breakpoint,V=e.onCollapse,T=e.onBreakpoint,B=h(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),F=(0,v.useContext)(g.LayoutContext).siderHook,W=(0,v.useState)("collapsed"in B?B.collapsed:Z),D=(0,i.default)(W,2),Y=D[0],A=D[1],G=(0,v.useState)(!1),X=(0,i.default)(G,2),U=X[0],$=X[1];(0,v.useEffect)((function(){"collapsed"in B&&A(B.collapsed)}),[B.collapsed]);var K=function(e,t){"collapsed"in B||A(e),null===V||void 0===V||V(e,t)},Q=(0,v.useRef)();Q.current=function(e){$(e.matches),null===T||void 0===T||T(e.matches),Y!==e.matches&&K(e.matches,"responsive")},(0,v.useEffect)((function(){function e(e){return Q.current(e)}var t;if("undefined"!==typeof window){var n=window.matchMedia;if(n&&I&&I in y){t=n("(max-width: ".concat(y[I],")"));try{t.addEventListener("change",e)}catch(r){t.addListener(e)}e(t)}}return function(){try{null===t||void 0===t||t.removeEventListener("change",e)}catch(r){null===t||void 0===t||t.removeListener(e)}}}),[I]),(0,v.useEffect)((function(){var e=w("ant-sider-");return F.addSider(e),function(){return F.removeSider(e)}}),[]);var q=function(){K(!Y,"clickTrigger")},J=(0,v.useContext)(m.ConfigContext).getPrefixCls,ee=v.useMemo((function(){return{siderCollapsed:Y}}),[Y]);return v.createElement(C.Provider,{value:ee},function(){var e,i=J("layout-sider",n),m=(0,d.default)(B,["collapsed"]),g=Y?L:R,h=(0,p.default)(g)?"".concat(g,"px"):String(g),y=0===parseFloat(String(L||0))?v.createElement("span",{onClick:q,className:(0,f.default)("".concat(i,"-zero-width-trigger"),"".concat(i,"-zero-width-trigger-").concat(j?"right":"left")),style:H},a||v.createElement(c.default,null)):null,C={expanded:j?v.createElement(u.default,null):v.createElement(s.default,null),collapsed:j?v.createElement(s.default,null):v.createElement(u.default,null)}[Y?"collapsed":"expanded"],w=null!==a?y||v.createElement("div",{className:"".concat(i,"-trigger"),onClick:q,style:{width:h}},a||C):null,b=(0,l.default)((0,l.default)({},P),{flex:"0 0 ".concat(h),maxWidth:h,minWidth:h,width:h}),Z=(0,f.default)(i,"".concat(i,"-").concat(N),(e={},(0,o.default)(e,"".concat(i,"-collapsed"),!!Y),(0,o.default)(e,"".concat(i,"-has-trigger"),S&&null!==a&&!y),(0,o.default)(e,"".concat(i,"-below"),!!U),(0,o.default)(e,"".concat(i,"-zero-width"),0===parseFloat(h)),e),r);return v.createElement("aside",(0,l.default)({className:Z},m,{style:b,ref:t}),v.createElement("div",{className:"".concat(i,"-children")},x),S||U&&y?w:null)}())}));t.ZP=x},62704:function(e,t,n){var r=n(75263).default,a=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.LayoutContext=t.Header=t.Footer=t.Content=void 0;var o=a(n(861)),l=a(n(38416)),i=a(n(27424)),c=a(n(10434)),s=a(n(94184)),u=r(n(67294)),f=n(31929),d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a0),(0,l.default)(n,"".concat(h,"-rtl"),"rtl"===r),n),y),E=u.useMemo((function(){return{siderHook:{addSider:function(e){g((function(t){return[].concat((0,o.default)(t),[e])}))},removeSider:function(e){g((function(t){return t.filter((function(t){return t!==e}))}))}}}}),[]);return u.createElement(v.Provider,{value:E},u.createElement(x,(0,c.default)({ref:t,className:Z},b),C))})),h=m({suffixCls:"layout",tagName:"section",displayName:"Layout"})(g),y=m({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(p);t.Header=y;var C=m({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(p);t.Footer=C;var w=m({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(p);t.Content=w;var x=h;t.default=x},82670:function(e,t,n){function r(e,t){return null!=t&&"undefined"!==typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}n.d(t,{Z:function(){return r}})}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/1829-271cba4b38fde9a4.js b/static/web/_next/static/chunks/1829-271cba4b38fde9a4.js deleted file mode 100644 index 3fac3e7b4..000000000 --- a/static/web/_next/static/chunks/1829-271cba4b38fde9a4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1829],{24308:function(e,t,n){n.d(t,{c4:function(){return o}});var c=n(4942),r=n(87462),o=["xxl","xl","lg","md","sm","xs"],a={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},l=new Map,i=-1,s={},u={matchHandlers:{},dispatch:function(e){return s=e,l.forEach((function(e){return e(s)})),l.size>=1},subscribe:function(e){return l.size||this.register(),i+=1,l.set(i,e),e(s),i},unsubscribe:function(e){l.delete(e),l.size||this.unregister()},unregister:function(){var e=this;Object.keys(a).forEach((function(t){var n=a[t],c=e.matchHandlers[n];null===c||void 0===c||c.mql.removeListener(null===c||void 0===c?void 0:c.listener)})),l.clear()},register:function(){var e=this;Object.keys(a).forEach((function(t){var n=a[t],o=function(n){var o=n.matches;e.dispatch((0,r.Z)((0,r.Z)({},s),(0,c.Z)({},t,o)))},l=window.matchMedia(n);l.addListener(o),e.matchHandlers[n]={mql:l,listener:o},o(l)}))}};t.ZP=u},6226:function(e,t,n){n.d(t,{Z:function(){return p}});var c=n(4942),r=n(87462),o=n(71002),a=n(94184),l=n.n(a),i=n(67294),s=n(53124),u=n(99134),f=function(e,t){var n={};for(var c in e)Object.prototype.hasOwnProperty.call(e,c)&&t.indexOf(c)<0&&(n[c]=e[c]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(c=Object.getOwnPropertySymbols(e);r0){var A=h[0]/2;R.paddingLeft=A,R.paddingRight=A}if(h&&h[1]>0&&!y){var T=h[1]/2;R.paddingTop=T,R.paddingBottom=T}return j&&(R.flex=function(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(j),!1!==b||R.minWidth||(R.minWidth=0)),i.createElement("div",(0,r.Z)({},P,{style:(0,r.Z)((0,r.Z)({},R),N),className:_,ref:t}),k)}))},99134:function(e,t,n){var c=(0,n(67294).createContext)({});t.Z=c},25968:function(e,t,n){n.d(t,{Z:function(){return h}});var c=n(87462),r=n(4942),o=n(71002),a=n(97685),l=n(94184),i=n.n(l),s=n(67294),u=n(53124),f=n(98082),d=n(24308),p=n(93355),m=n(99134),v=function(e,t){var n={};for(var c in e)Object.prototype.hasOwnProperty.call(e,c)&&t.indexOf(c)<0&&(n[c]=e[c]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(c=Object.getOwnPropertySymbols(e);r0?A[0]/-2:void 0,L=null!=A[1]&&A[1]>0?A[1]/-2:void 0;if(H&&(z.marginLeft=H,z.marginRight=H),I){var F=(0,a.Z)(A,2);z.rowGap=F[1]}else L&&(z.marginTop=L,z.marginBottom=L);var G=(0,a.Z)(A,2),D=G[0],K=G[1],M=s.useMemo((function(){return{gutter:[D,K],wrap:C,supportFlexGap:I}}),[D,K,C,I]);return s.createElement(m.Z.Provider,{value:M},s.createElement("div",(0,c.Z)({},w,{className:T,style:(0,c.Z)((0,c.Z)({},z),y),ref:t}),Z))}))},94594:function(e,t,n){n.d(t,{Z:function(){return g}});var c=n(87462),r=n(4942),o=n(50888),a=n(94184),l=n.n(a),i=n(97685),s=n(91),u=n(67294),f=n(21770),d=n(15105),p=u.forwardRef((function(e,t){var n,c=e.prefixCls,o=void 0===c?"rc-switch":c,a=e.className,p=e.checked,m=e.defaultChecked,v=e.disabled,h=e.loadingIcon,b=e.checkedChildren,y=e.unCheckedChildren,Z=e.onClick,x=e.onChange,g=e.onKeyDown,C=(0,s.Z)(e,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),w=(0,f.Z)(!1,{value:p,defaultValue:m}),O=(0,i.Z)(w,2),E=O[0],k=O[1];function j(e,t){var n=E;return v||(k(n=e),null===x||void 0===x||x(n,t)),n}var N=l()(o,a,(n={},(0,r.Z)(n,"".concat(o,"-checked"),E),(0,r.Z)(n,"".concat(o,"-disabled"),v),n));return u.createElement("button",Object.assign({},C,{type:"button",role:"switch","aria-checked":E,disabled:v,className:N,ref:t,onKeyDown:function(e){e.which===d.Z.LEFT?j(!1,e):e.which===d.Z.RIGHT&&j(!0,e),null===g||void 0===g||g(e)},onClick:function(e){var t=j(!E,e);null===Z||void 0===Z||Z(t,e)}}),h,u.createElement("span",{className:"".concat(o,"-inner")},E?b:y))}));p.displayName="Switch";var m=p,v=n(53124),h=n(98866),b=n(97647),y=n(68349),Z=function(e,t){var n={};for(var c in e)Object.prototype.hasOwnProperty.call(e,c)&&t.indexOf(c)<0&&(n[c]=e[c]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(c=Object.getOwnPropertySymbols(e);rh&&(l-=h,l-=h,l-=o(2))}return Number(l)}),c=function(t,e){var r=(void 0===e?{}:e).le,n=void 0!==r&&r;("bigint"!==typeof t&&"number"!==typeof t||"number"===typeof t&&t!==t)&&(t=0),t=o(t);for(var i,a=(i=t,Math.ceil(function(t){return t.toString(2).length}(i)/8)),u=new Uint8Array(new ArrayBuffer(a)),c=0;c=e.length&&c.call(e,(function(e,r){return e===(u[r]?u[r]&t[o+r]:t[o+r])}))}},92260:function(t,e,r){"use strict";r.d(e,{Hi:function(){return d},Jg:function(){return f},KL:function(){return l},_5:function(){return h},kS:function(){return c},lA:function(){return m},p7:function(){return p},ws:function(){return u},xz:function(){return g}});var n=r(58908),i=r.n(n),a={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},o=["video","audio","text"],s=["Video","Audio","Text"],u=function(t){return t?t.replace(/avc1\.(\d+)\.(\d+)/i,(function(t,e,r){return"avc1."+("00"+Number(e).toString(16)).slice(-2)+"00"+("00"+Number(r).toString(16)).slice(-2)})):t},c=function(t){void 0===t&&(t="");var e=t.split(","),r=[];return e.forEach((function(t){var e;t=t.trim(),o.forEach((function(n){var i=a[n].exec(t.toLowerCase());if(i&&!(i.length<=1)){e=n;var o=t.substring(0,i[1].length),s=t.replace(o,"");r.push({type:o,details:s,mediaType:n})}})),e||r.push({type:t,details:"",mediaType:"unknown"})})),r},f=function(t,e){if(!t.mediaGroups.AUDIO||!e)return null;var r=t.mediaGroups.AUDIO[e];if(!r)return null;for(var n in r){var i=r[n];if(i.default&&i.playlists)return c(i.playlists[0].attributes.CODECS)}return null},l=function(t){return void 0===t&&(t=""),a.audio.test(t.trim().toLowerCase())},h=function(t){if(t&&"string"===typeof t){var e,r=t.toLowerCase().split(",").map((function(t){return u(t.trim())})),n="video";1===r.length&&l(r[0])?n="audio":1===r.length&&(void 0===(e=r[0])&&(e=""),a.text.test(e.trim().toLowerCase()))&&(n="application");var i="mp4";return r.every((function(t){return a.mp4.test(t)}))?i="mp4":r.every((function(t){return a.webm.test(t)}))?i="webm":r.every((function(t){return a.ogg.test(t)}))&&(i="ogg"),n+"/"+i+';codecs="'+t+'"'}},p=function(t){return void 0===t&&(t=""),i().MediaSource&&i().MediaSource.isTypeSupported&&i().MediaSource.isTypeSupported(h(t))||!1},d=function(t){return void 0===t&&(t=""),t.toLowerCase().split(",").every((function(t){t=t.trim();for(var e=0;er;){var a=t[r],o=0,s=0,u=t[++s];for(s++;128&u;)o=(127&u)<<7,u=t[s],s++;o+=127&u;for(var c=0;c>>0,c=e.subarray(s+4,s+8);if(0===u)break;var f=s+u;if(f>e.length){if(n)break;f=e.length}var l=e.subarray(s+8,f);(0,i.G3)(c,r[0])&&(1===r.length?o.push(l):o.push.apply(o,t(l,r.slice(1),n))),s=f}return o},u={EBML:(0,i.Ki)([26,69,223,163]),DocType:(0,i.Ki)([66,130]),Segment:(0,i.Ki)([24,83,128,103]),SegmentInfo:(0,i.Ki)([21,73,169,102]),Tracks:(0,i.Ki)([22,84,174,107]),Track:(0,i.Ki)([174]),TrackNumber:(0,i.Ki)([215]),DefaultDuration:(0,i.Ki)([35,227,131]),TrackEntry:(0,i.Ki)([174]),TrackType:(0,i.Ki)([131]),FlagDefault:(0,i.Ki)([136]),CodecID:(0,i.Ki)([134]),CodecPrivate:(0,i.Ki)([99,162]),VideoTrack:(0,i.Ki)([224]),AudioTrack:(0,i.Ki)([225]),Cluster:(0,i.Ki)([31,67,182,117]),Timestamp:(0,i.Ki)([231]),TimestampScale:(0,i.Ki)([42,215,177]),BlockGroup:(0,i.Ki)([160]),BlockDuration:(0,i.Ki)([155]),Block:(0,i.Ki)([161]),SimpleBlock:(0,i.Ki)([163])},c=[128,64,32,16,8,4,2,1],f=function(t,e,r,n){void 0===r&&(r=!0),void 0===n&&(n=!1);var a=function(t){for(var e=1,r=0;r=r.length)return r.length;var a=f(r,n,!1);if((0,i.G3)(e.bytes,a.bytes))return n;var o=f(r,n+a.length);return t(e,r,n+o.length+o.value+a.length)},p=function t(e,r){r=function(t){return Array.isArray(t)?t.map((function(t){return l(t)})):[l(t)]}(r),e=(0,i.Ki)(e);var n=[];if(!r.length)return n;for(var a=0;ae.length?e.length:u+s.value,p=e.subarray(u,c);(0,i.G3)(r[0],o.bytes)&&(1===r.length?n.push(p):n=n.concat(t(p,r.slice(1)))),a+=o.length+s.length+p.length}return n},d=r(68925),m=(0,i.Ki)([0,0,0,1]),g=(0,i.Ki)([0,0,1]),v=(0,i.Ki)([0,0,3]),y=function(t){for(var e=[],r=1;r>1&63),-1!==r.indexOf(c)&&(a=o+u),o+=u+("h264"===e?1:2)}else o++}return t.subarray(0,0)},w={webm:(0,i.Ki)([119,101,98,109]),matroska:(0,i.Ki)([109,97,116,114,111,115,107,97]),flac:(0,i.Ki)([102,76,97,67]),ogg:(0,i.Ki)([79,103,103,83]),ac3:(0,i.Ki)([11,119]),riff:(0,i.Ki)([82,73,70,70]),avi:(0,i.Ki)([65,86,73]),wav:(0,i.Ki)([87,65,86,69]),"3gp":(0,i.Ki)([102,116,121,112,51,103]),mp4:(0,i.Ki)([102,116,121,112]),fmp4:(0,i.Ki)([115,116,121,112]),mov:(0,i.Ki)([102,116,121,112,113,116]),moov:(0,i.Ki)([109,111,111,118]),moof:(0,i.Ki)([109,111,111,102])},E={aac:function(t){var e=(0,d.c)(t);return(0,i.G3)(t,[255,16],{offset:e,mask:[255,22]})},mp3:function(t){var e=(0,d.c)(t);return(0,i.G3)(t,[255,2],{offset:e,mask:[255,6]})},webm:function(t){var e=p(t,[u.EBML,u.DocType])[0];return(0,i.G3)(e,w.webm)},mkv:function(t){var e=p(t,[u.EBML,u.DocType])[0];return(0,i.G3)(e,w.matroska)},mp4:function(t){return!E["3gp"](t)&&!E.mov(t)&&(!(!(0,i.G3)(t,w.mp4,{offset:4})&&!(0,i.G3)(t,w.fmp4,{offset:4}))||(!(!(0,i.G3)(t,w.moof,{offset:4})&&!(0,i.G3)(t,w.moov,{offset:4}))||void 0))},mov:function(t){return(0,i.G3)(t,w.mov,{offset:4})},"3gp":function(t){return(0,i.G3)(t,w["3gp"],{offset:4})},ac3:function(t){var e=(0,d.c)(t);return(0,i.G3)(t,w.ac3,{offset:e})},ts:function(t){if(t.length<189&&t.length>=1)return 71===t[0];for(var e=0;e+1880}},36722:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(58908),i=r.n(n),a=r(48764).lW;function o(t){for(var e,r=(e=t,i().atob?i().atob(e):a.from(e,"base64").toString("binary")),n=new Uint8Array(r.length),o=0;o>4?i+20:i+10}(e,r),t(e,r))}},8485:function(t,e,r){"use strict";r.d(e,{t:function(){return a}});var n=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,i=/^application\/dash\+xml/i,a=function(t){return n.test(t)?"hls":i.test(t)?"dash":"application/vnd.videojs.vhs+json"===t?"vhs-json":null}},80779:function(t,e,r){"use strict";var n=r(49945),i=r.n(n),a=r(58908),o=r.n(a),s="http://example.com";e.Z=function(t,e){if(/^[a-z]+:/i.test(e))return e;/^data:/.test(t)&&(t=o().location&&o().location.href||"");var r="function"===typeof o().URL,n=/^\/\//.test(t),a=!o().location&&!/\/\//i.test(t);if(r?t=new(o().URL)(t,o().location||s):/\/\//i.test(t)||(t=i().buildAbsoluteURL(o().location&&o().location.href||"",t)),r){var u=new URL(e,t);return a?u.href.slice(s.length):n?u.href.slice(u.protocol.length):u.href}return i().buildAbsoluteURL(t,e)}},13490:function(t,e,r){"use strict";var n=r(58908);t.exports=function(t,e){return void 0===e&&(e=!1),function(r,i,a){if(r)t(r);else if(i.statusCode>=400&&i.statusCode<=599){var o=a;if(e)if(n.TextDecoder){var s=function(t){void 0===t&&(t="");return t.toLowerCase().split(";").reduce((function(t,e){var r=e.split("="),n=r[0],i=r[1];return"charset"===n.trim()?i.trim():t}),"utf-8")}(i.headers&&i.headers["content-type"]);try{o=new TextDecoder(s).decode(a)}catch(u){}}else o=String.fromCharCode.apply(null,new Uint8Array(a));t({cause:o})}else t(null,a)}}},9603:function(t,e,r){"use strict";var n=r(58908),i=r(10434),a=r(27376);s.httpHandler=r(13490);function o(t,e,r){var n=t;return a(e)?(r=e,"string"===typeof t&&(n={uri:t})):n=i({},e,{uri:t}),n.callback=r,n}function s(t,e,r){return u(e=o(t,e,r))}function u(t){if("undefined"===typeof t.callback)throw new Error("callback argument missing");var e=!1,r=function(r,n,i){e||(e=!0,t.callback(r,n,i))};function n(){var t=void 0;if(t=c.response?c.response:c.responseText||function(t){try{if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!e)return t.responseXML}catch(r){}return null}(c),g)try{t=JSON.parse(t)}catch(e){}return t}function i(t){return clearTimeout(f),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,r(t,v)}function a(){if(!u){var e;clearTimeout(f),e=t.useXDR&&void 0===c.status?200:1223===c.status?204:c.status;var i=v,a=null;return 0!==e?(i={body:n(),statusCode:e,method:h,headers:{},url:l,rawRequest:c},c.getAllResponseHeaders&&(i.headers=function(t){var e={};return t?(t.trim().split("\n").forEach((function(t){var r=t.indexOf(":"),n=t.slice(0,r).trim().toLowerCase(),i=t.slice(r+1).trim();"undefined"===typeof e[n]?e[n]=i:Array.isArray(e[n])?e[n].push(i):e[n]=[e[n],i]})),e):e}(c.getAllResponseHeaders()))):a=new Error("Internal XMLHttpRequest Error"),r(a,i,i.body)}}var o,u,c=t.xhr||null;c||(c=t.cors||t.useXDR?new s.XDomainRequest:new s.XMLHttpRequest);var f,l=c.url=t.uri||t.url,h=c.method=t.method||"GET",p=t.body||t.data,d=c.headers=t.headers||{},m=!!t.sync,g=!1,v={body:void 0,headers:{},statusCode:0,method:h,url:l,rawRequest:c};if("json"in t&&!1!==t.json&&(g=!0,d.accept||d.Accept||(d.Accept="application/json"),"GET"!==h&&"HEAD"!==h&&(d["content-type"]||d["Content-Type"]||(d["Content-Type"]="application/json"),p=JSON.stringify(!0===t.json?p:t.json))),c.onreadystatechange=function(){4===c.readyState&&setTimeout(a,0)},c.onload=a,c.onerror=i,c.onprogress=function(){},c.onabort=function(){u=!0},c.ontimeout=i,c.open(h,l,!m,t.username,t.password),m||(c.withCredentials=!!t.withCredentials),!m&&t.timeout>0&&(f=setTimeout((function(){if(!u){u=!0,c.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",i(t)}}),t.timeout)),c.setRequestHeader)for(o in d)d.hasOwnProperty(o)&&c.setRequestHeader(o,d[o]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(c.responseType=t.responseType),"beforeSend"in t&&"function"===typeof t.beforeSend&&t.beforeSend(c),c.send(p||null),c}t.exports=s,t.exports.default=s,s.XMLHttpRequest=n.XMLHttpRequest||function(){},s.XDomainRequest="withCredentials"in new s.XMLHttpRequest?s.XMLHttpRequest:n.XDomainRequest,function(t,e){for(var r=0;r=e+r||e?new java.lang.String(t,e,r)+"":t}function g(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}l.prototype.parseFromString=function(t,e){var r=this.options,n=new f,i=r.domBuilder||new h,o=r.errorHandler,s=r.locator,c=r.xmlns||{},l=/\/x?html?$/.test(e),p=l?a.HTML_ENTITIES:a.XML_ENTITIES;return s&&i.setDocumentLocator(s),n.errorHandler=function(t,e,r){if(!t){if(e instanceof h)return e;t=e}var n={},i=t instanceof Function;function a(e){var a=t[e];!a&&i&&(a=2==t.length?function(r){t(e,r)}:t),n[e]=a&&function(t){a("[xmldom "+e+"]\t"+t+d(r))}||function(){}}return r=r||{},a("warning"),a("error"),a("fatalError"),n}(o,i,s),n.domBuilder=r.domBuilder||i,l&&(c[""]=u.HTML),c.xml=c.xml||u.XML,t&&"string"===typeof t?n.parse(t,c,p):n.errorHandler.error("invalid doc source"),i.doc},h.prototype={startDocument:function(){this.doc=(new s).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,r,n){var i=this.doc,a=i.createElementNS(t,r||e),o=n.length;g(this,a),this.currentElement=a,this.locator&&p(this.locator,a);for(var s=0;s=0))throw x(A,new Error(t.tagName+"@"+r));for(var i=e.length-1;n"==t&&">")||"&"==t&&"&"||'"'==t&&"""||"&#"+t.charCodeAt()+";"}function _(t,e){if(e(t))return!0;if(t=t.firstChild)do{if(_(t,e))return!0}while(t=t.nextSibling)}function X(){}function F(t,e,r,i){t&&t._inc++,r.namespaceURI===n.XMLNS&&delete e._nsMap[r.prefix?r.localName:""]}function j(t,e,r){if(t&&t._inc){t._inc++;var n=e.childNodes;if(r)n[n.length++]=r;else{for(var i=e.firstChild,a=0;i;)n[a++]=i,i=i.nextSibling;n.length=a}}}function G(t,e){var r=e.previousSibling,n=e.nextSibling;return r?r.nextSibling=n:t.firstChild=n,n?n.previousSibling=r:t.lastChild=r,j(t.ownerDocument,t),e}function H(t,e,r){var n=e.parentNode;if(n&&n.removeChild(e),e.nodeType===w){var i=e.firstChild;if(null==i)return e;var a=e.lastChild}else i=a=e;var o=r?r.previousSibling:t.lastChild;i.previousSibling=o,a.nextSibling=r,o?o.nextSibling=i:t.firstChild=i,null==r?t.lastChild=a:r.previousSibling=a;do{i.parentNode=t}while(i!==a&&(i=i.nextSibling));return j(t.ownerDocument||t,t),e.nodeType==w&&(e.firstChild=e.lastChild=null),e}function Z(){this._nsMap={}}function q(){}function V(){}function z(){}function K(){}function Y(){}function W(){}function $(){}function J(){}function Q(){}function tt(){}function et(){}function rt(){}function nt(t,e){var r=[],n=9==this.nodeType&&this.documentElement||this,i=n.prefix,a=n.namespaceURI;if(a&&null==i&&null==(i=n.lookupPrefix(a)))var o=[{namespace:a,prefix:null}];return ot(this,r,t,e,o),r.join("")}function it(t,e,r){var i=t.prefix||"",a=t.namespaceURI;if(!a)return!1;if("xml"===i&&a===n.XML||a===n.XMLNS)return!1;for(var o=r.length;o--;){var s=r[o];if(s.prefix===i)return s.namespace!==a}return!0}function at(t,e,r){t.push(" ",e,'="',r.replace(/[<&"]/g,k),'"')}function ot(t,e,r,i,a){if(a||(a=[]),i){if(!(t=i(t)))return;if("string"==typeof t)return void e.push(t)}switch(t.nodeType){case f:var o=t.attributes,s=o.length,u=t.firstChild,c=t.tagName,m=c;if(!(r=n.isHTML(t.namespaceURI)||r)&&!t.prefix&&t.namespaceURI){for(var E,T=0;T=0;S--){if(""===(N=a[S]).prefix&&N.namespace===t.namespaceURI){E=N.namespace;break}}if(E!==t.namespaceURI)for(S=a.length-1;S>=0;S--){var N;if((N=a[S]).namespace===t.namespaceURI){N.prefix&&(m=N.prefix+":"+c);break}}}e.push("<",m);for(var A=0;A"),r&&/^script$/i.test(c))for(;u;)u.data?e.push(u.data):ot(u,e,r,i,a.slice()),u=u.nextSibling;else for(;u;)ot(u,e,r,i,a.slice()),u=u.nextSibling;e.push("")}else e.push("/>");return;case y:case w:for(u=t.firstChild;u;)ot(u,e,r,i,a.slice()),u=u.nextSibling;return;case l:return at(e,t.name,t.value);case h:return e.push(t.data.replace(/[<&]/g,k).replace(/]]>/g,"]]>"));case p:return e.push("");case v:return e.push("\x3c!--",t.data,"--\x3e");case b:var O=t.publicId,D=t.systemId;if(e.push("");else if(D&&"."!=D)e.push(" SYSTEM ",D,">");else{var C=t.internalSubset;C&&e.push(" [",C,"]"),e.push(">")}return;case g:return e.push("");case d:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function st(t,e,r){var n;switch(e.nodeType){case f:(n=e.cloneNode(!1)).ownerDocument=t;case w:break;case l:r=!0}if(n||(n=e.cloneNode(!1)),n.ownerDocument=t,n.parentNode=null,r)for(var i=e.firstChild;i;)n.appendChild(st(t,i,r)),i=i.nextSibling;return n}function ut(t,e,r){var n=new e.constructor;for(var i in e){var a=e[i];"object"!=typeof a&&a!=n[i]&&(n[i]=a)}switch(e.childNodes&&(n.childNodes=new R),n.ownerDocument=t,n.nodeType){case f:var o=e.attributes,s=n.attributes=new C,u=o.length;s._ownerElement=n;for(var c=0;c0},lookupPrefix:function(t){for(var e=this;e;){var r=e._nsMap;if(r)for(var n in r)if(r[n]==t)return n;e=e.nodeType==l?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var r=e._nsMap;if(r&&t in r)return r[t];e=e.nodeType==l?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){return null==this.lookupPrefix(t)}},s(c,B),s(c,B.prototype),X.prototype={nodeName:"#document",nodeType:y,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==w){for(var r=t.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,e),r=n}return t}return null==this.documentElement&&t.nodeType==f&&(this.documentElement=t),H(this,t,e),t.ownerDocument=this,t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),G(this,t)},importNode:function(t,e){return st(this,t,e)},getElementById:function(t){var e=null;return _(this.documentElement,(function(r){if(r.nodeType==f&&r.getAttribute("id")==t)return e=r,!0})),e},getElementsByClassName:function(t){var e=o(t);return new O(this,(function(r){var n=[];return e.length>0&&_(r.documentElement,(function(i){if(i!==r&&i.nodeType===f){var a=i.getAttribute("class");if(a){var s=t===a;if(!s){var u=o(a);s=e.every((c=u,function(t){return c&&-1!==c.indexOf(t)}))}s&&n.push(i)}}var c})),n}))},createElement:function(t){var e=new Z;return e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new R,(e.attributes=new C)._ownerElement=e,e},createDocumentFragment:function(){var t=new tt;return t.ownerDocument=this,t.childNodes=new R,t},createTextNode:function(t){var e=new z;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new K;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new Y;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var r=new et;return r.ownerDocument=this,r.tagName=r.target=t,r.nodeValue=r.data=e,r},createAttribute:function(t){var e=new q;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new Q;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var r=new Z,n=e.split(":"),i=r.attributes=new C;return r.childNodes=new R,r.ownerDocument=this,r.nodeName=e,r.tagName=e,r.namespaceURI=t,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=e,i._ownerElement=r,r},createAttributeNS:function(t,e){var r=new q,n=e.split(":");return r.ownerDocument=this,r.nodeName=e,r.name=e,r.namespaceURI=t,r.specified=!0,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=e,r}},u(X,B),Z.prototype={nodeType:f,hasAttribute:function(t){return null!=this.getAttributeNode(t)},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var r=this.ownerDocument.createAttribute(t);r.value=r.nodeValue=""+e,this.setAttributeNode(r)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===w?this.insertBefore(t,null):function(t,e){var r=e.parentNode;if(r){var n=t.lastChild;r.removeChild(e),n=t.lastChild}return n=t.lastChild,e.parentNode=t,e.previousSibling=n,e.nextSibling=null,n?n.nextSibling=e:t.firstChild=e,t.lastChild=e,j(t.ownerDocument,t,e),e}(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);r&&this.removeAttributeNode(r)},hasAttributeNS:function(t,e){return null!=this.getAttributeNodeNS(t,e)},getAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);return r&&r.value||""},setAttributeNS:function(t,e,r){var n=this.ownerDocument.createAttributeNS(t,e);n.value=n.nodeValue=""+r,this.setAttributeNode(n)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new O(this,(function(e){var r=[];return _(e,(function(n){n===e||n.nodeType!=f||"*"!==t&&n.tagName!=t||r.push(n)})),r}))},getElementsByTagNameNS:function(t,e){return new O(this,(function(r){var n=[];return _(r,(function(i){i===r||i.nodeType!==f||"*"!==t&&i.namespaceURI!==t||"*"!==e&&i.localName!=e||n.push(i)})),n}))}},X.prototype.getElementsByTagName=Z.prototype.getElementsByTagName,X.prototype.getElementsByTagNameNS=Z.prototype.getElementsByTagNameNS,u(Z,B),q.prototype.nodeType=l,u(q,B),V.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(S[N])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,r){r=this.data.substring(0,t)+r+this.data.substring(t+e),this.nodeValue=this.data=r,this.length=r.length}},u(V,B),z.prototype={nodeName:"#text",nodeType:h,splitText:function(t){var e=this.data,r=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},u(z,V),K.prototype={nodeName:"#comment",nodeType:v},u(K,V),Y.prototype={nodeName:"#cdata-section",nodeType:p},u(Y,V),W.prototype.nodeType=b,u(W,B),$.prototype.nodeType=E,u($,B),J.prototype.nodeType=m,u(J,B),Q.prototype.nodeType=d,u(Q,B),tt.prototype.nodeName="#document-fragment",tt.prototype.nodeType=w,u(tt,B),et.prototype.nodeType=g,u(et,B),rt.prototype.serializeToString=function(t,e,r){return nt.call(t,e,r)},B.prototype.toString=nt;try{if(Object.defineProperty){function ft(t){switch(t.nodeType){case f:case w:var e=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&e.push(ft(t)),t=t.nextSibling;return e.join("");default:return t.nodeValue}}Object.defineProperty(O.prototype,"length",{get:function(){return D(this),this.$$length}}),Object.defineProperty(B.prototype,"textContent",{get:function(){return ft(this)},set:function(t){switch(this.nodeType){case f:case w:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),ct=function(t,e,r){t["$$"+e]=r}}}catch(lt){}e.DocumentType=W,e.DOMException=x,e.DOMImplementation=P,e.Element=Z,e.Node=B,e.NodeList=R,e.XMLSerializer=rt},31045:function(t,e,r){var n=r(72167).freeze;e.XML_ENTITIES=n({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=n({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",times:"\xd7",divide:"\xf7",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",euro:"\u20ac",trade:"\u2122",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}),e.entityMap=e.HTML_ENTITIES},3969:function(t,e,r){var n=r(41146);n.DOMImplementation,n.XMLSerializer,e.DOMParser=r(86129).DOMParser},76925:function(t,e,r){var n=r(72167).NAMESPACE,i=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,a=new RegExp("[\\-\\.0-9"+i.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),o=new RegExp("^"+i.source+a.source+"*(?::"+i.source+a.source+"*)?$");function s(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,s)}function u(){}function c(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function f(t,e,r,i,a,o){function s(t,e,n){r.attributeNames.hasOwnProperty(t)&&o.fatalError("Attribute "+t+" redefined"),r.addValue(t,e,n)}for(var u,c=++e,f=0;;){var l=t.charAt(c);switch(l){case"=":if(1===f)u=t.slice(e,c),f=3;else{if(2!==f)throw new Error("attribute equal must after attrName");f=3}break;case"'":case'"':if(3===f||1===f){if(1===f&&(o.warning('attribute value must after "="'),u=t.slice(e,c)),e=c+1,!((c=t.indexOf(l,e))>0))throw new Error("attribute value no end '"+l+"' match");s(u,h=t.slice(e,c).replace(/&#?\w+;/g,a),e-1),f=5}else{if(4!=f)throw new Error('attribute value must after "="');s(u,h=t.slice(e,c).replace(/&#?\w+;/g,a),e),o.warning('attribute "'+u+'" missed start quot('+l+")!!"),e=c+1,f=5}break;case"/":switch(f){case 0:r.setTagName(t.slice(e,c));case 5:case 6:case 7:f=7,r.closed=!0;case 4:case 1:case 2:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==f&&r.setTagName(t.slice(e,c)),c;case">":switch(f){case 0:r.setTagName(t.slice(e,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(h=t.slice(e,c)).slice(-1)&&(r.closed=!0,h=h.slice(0,-1));case 2:2===f&&(h=u),4==f?(o.warning('attribute "'+h+'" missed quot(")!'),s(u,h.replace(/&#?\w+;/g,a),e)):(n.isHTML(i[""])&&h.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+h+'" missed value!! "'+h+'" instead!!'),s(h,h,e));break;case 3:throw new Error("attribute value missed!!")}return c;case"\x80":l=" ";default:if(l<=" ")switch(f){case 0:r.setTagName(t.slice(e,c)),f=6;break;case 1:u=t.slice(e,c),f=2;break;case 4:var h=t.slice(e,c).replace(/&#?\w+;/g,a);o.warning('attribute "'+h+'" missed quot(")!!'),s(u,h,e);case 5:f=6}else switch(f){case 2:r.tagName;n.isHTML(i[""])&&u.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+u+'" missed value!! "'+u+'" instead2!!'),s(u,u,e),e=c,f=1;break;case 5:o.warning('attribute space is required"'+u+'"!!');case 6:f=1,e=c;break;case 3:f=4,e=c;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function l(t,e,r){for(var i=t.tagName,a=null,o=t.length;o--;){var s=t[o],u=s.qName,c=s.value;if((p=u.indexOf(":"))>0)var f=s.prefix=u.slice(0,p),l=u.slice(p+1),h="xmlns"===f&&l;else l=u,f=null,h="xmlns"===u&&"";s.localName=l,!1!==h&&(null==a&&(a={},d(r,r={})),r[h]=a[h]=c,s.uri=n.XMLNS,e.startPrefixMapping(h,c))}for(o=t.length;o--;){(f=(s=t[o]).prefix)&&("xml"===f&&(s.uri=n.XML),"xmlns"!==f&&(s.uri=r[f||""]))}var p;(p=i.indexOf(":"))>0?(f=t.prefix=i.slice(0,p),l=t.localName=i.slice(p+1)):(f=null,l=t.localName=i);var m=t.uri=r[f||""];if(e.startElement(m,l,i,t),!t.closed)return t.currentNSMap=r,t.localNSMap=a,!0;if(e.endElement(m,l,i),a)for(f in a)e.endPrefixMapping(f)}function h(t,e,r,n,i){if(/^(?:script|textarea)$/i.test(r)){var a=t.indexOf("",e),o=t.substring(e+1,a);if(/[&<]/.test(o))return/^script$/i.test(r)?(i.characters(o,0,o.length),a):(o=o.replace(/&#?\w+;/g,n),i.characters(o,0,o.length),a)}return e+1}function p(t,e,r,n){var i=n[r];return null==i&&((i=t.lastIndexOf(""))e?(r.comment(t,e+4,i-e-4),i+3):(n.error("Unclosed comment"),-1):-1;if("CDATA["==t.substr(e+3,6)){var i=t.indexOf("]]>",e+9);return r.startCDATA(),r.characters(t,e+9,i-e-9),r.endCDATA(),i+3}var a=function(t,e){var r,n=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;i.lastIndex=e,i.exec(t);for(;r=i.exec(t);)if(n.push(r),r[1])return n}(t,e),o=a.length;if(o>1&&/!doctype/i.test(a[0][0])){var s=a[1][0],u=!1,c=!1;o>3&&(/^public$/i.test(a[2][0])?(u=a[3][0],c=o>4&&a[4][0]):/^system$/i.test(a[2][0])&&(c=a[3][0]));var f=a[o-1];return r.startDTD(s,u,c),r.endDTD(),f.index+f[0].length}return-1}function g(t,e,r){var n=t.indexOf("?>",e);if(n){var i=t.substring(e,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i){i[0].length;return r.processingInstruction(i[1],i[2]),n+2}return-1}return-1}function v(){this.attributeNames={}}s.prototype=new Error,s.prototype.name=s.name,u.prototype={parse:function(t,e,r){var i=this.domBuilder;i.startDocument(),d(e,e={}),function(t,e,r,i,a){function o(t){if(t>65535){var e=55296+((t-=65536)>>10),r=56320+(1023&t);return String.fromCharCode(e,r)}return String.fromCharCode(t)}function u(t){var e=t.slice(1,-1);return e in r?r[e]:"#"===e.charAt(0)?o(parseInt(e.substr(1).replace("x","0x"))):(a.error("entity not found:"+t),t)}function d(e){if(e>A){var r=t.substring(A,e).replace(/&#?\w+;/g,u);T&&y(A),i.characters(r,0,e-A),A=e}}function y(e,r){for(;e>=w&&(r=E.exec(t));)b=r.index,w=b+r[0].length,T.lineNumber++;T.columnNumber=e-b+1}var b=0,w=0,E=/.*(?:\r\n?|\n)|.*$/g,T=i.locator,S=[{currentNSMap:e}],N={},A=0;for(;;){try{var I=t.indexOf("<",A);if(I<0){if(!t.substr(A).match(/^\s*$/)){var x=i.doc,R=x.createTextNode(t.substr(A));x.appendChild(R),i.currentElement=R}return}switch(I>A&&d(I),t.charAt(I+1)){case"/":var O=t.indexOf(">",I+3),D=t.substring(I+2,O).replace(/[ \t\n\r]+$/g,""),C=S.pop();O<0?(D=t.substring(I+2).replace(/[\s<].*/,""),a.error("end tag name: "+D+" is not complete:"+C.tagName),O=I+1+D.length):D.match(/\sA?A=O:d(Math.max(I,A)+1)}}(t,e,r,i,this.errorHandler),i.endDocument()}},v.prototype={setTagName:function(t){if(!o.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,r){if(!o.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:r}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}},e.XMLReader=u,e.ParseError=s},27049:function(t,e,r){"use strict";var n=r(87462),i=r(4942),a=r(94184),o=r.n(a),s=r(67294),u=r(53124),c=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i0?"-".concat(m):m,N=!!y,A="left"===m&&null!=g,I="right"===m&&null!=g,x=o()(T,"".concat(T,"-").concat(p),(e={},(0,i.Z)(e,"".concat(T,"-with-text"),N),(0,i.Z)(e,"".concat(T,"-with-text").concat(S),N),(0,i.Z)(e,"".concat(T,"-dashed"),!!b),(0,i.Z)(e,"".concat(T,"-plain"),!!w),(0,i.Z)(e,"".concat(T,"-rtl"),"rtl"===f),(0,i.Z)(e,"".concat(T,"-no-default-orientation-margin-left"),A),(0,i.Z)(e,"".concat(T,"-no-default-orientation-margin-right"),I),e),v),R=(0,n.Z)((0,n.Z)({},A&&{marginLeft:g}),I&&{marginRight:g});return s.createElement("div",(0,n.Z)({className:x},E,{role:"separator"}),y&&s.createElement("span",{className:"".concat(T,"-inner-text"),style:R},y))}},79742:function(t,e){"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,a=u(t),o=a[0],s=a[1],c=new i(function(t,e,r){return 3*(e+r)/4-r}(0,o,s)),f=0,l=s>0?o-4:o;for(r=0;r>16&255,c[f++]=e>>8&255,c[f++]=255&e;2===s&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[f++]=255&e);1===s&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[f++]=e>>8&255,c[f++]=255&e);return c},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,a=[],o=16383,s=0,u=n-i;su?u:s+o));1===i?(e=t[n-1],a.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],a.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return a.join("")};for(var r=[],n=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t,e,n){for(var i,a,o=[],s=e;s>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},48764:function(t,e,r){"use strict";var n=r(79742),i=r(80645),a="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.lW=u,e.h2=50;var o=2147483647;function s(t){if(t>o)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,r){if("number"===typeof t){if("string"===typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return c(t,e,r)}function c(t,e,r){if("string"===typeof t)return function(t,e){"string"===typeof e&&""!==e||(e="utf8");if(!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|m(t,e),n=s(r),i=n.write(t,e);i!==r&&(n=n.slice(0,i));return n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(j(t,Uint8Array)){var e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return h(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(j(t,ArrayBuffer)||t&&j(t.buffer,ArrayBuffer))return p(t,e,r);if("undefined"!==typeof SharedArrayBuffer&&(j(t,SharedArrayBuffer)||t&&j(t.buffer,SharedArrayBuffer)))return p(t,e,r);if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return u.from(n,e,r);var i=function(t){if(u.isBuffer(t)){var e=0|d(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!==typeof t.length||G(t.length)?s(0):h(t);if("Buffer"===t.type&&Array.isArray(t.data))return h(t.data)}(t);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function f(t){if("number"!==typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return f(t),s(t<0?0:0|d(t))}function h(t){for(var e=t.length<0?0:0|d(t.length),r=s(e),n=0;n=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function m(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||j(t,ArrayBuffer))return t.byteLength;if("string"!==typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return _(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return X(t).length;default:if(i)return n?-1:_(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return D(this,e,r);case"utf8":case"utf-8":return I(this,e,r);case"ascii":return R(this,e,r);case"latin1":case"binary":return O(this,e,r);case"base64":return A(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function v(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function y(t,e,r,n,i){if(0===t.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),G(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,i);if("number"===typeof e)return e&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,r,n,i){var a,o=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,s/=2,u/=2,r/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var f=-1;for(a=r;as&&(r=s-u),a=r;a>=0;a--){for(var l=!0,h=0;hi&&(n=i):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o>8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function A(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function I(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i239?4:c>223?3:c>191?2:1;if(i+l<=r)switch(l){case 1:c<128&&(f=c);break;case 2:128===(192&(a=t[i+1]))&&(u=(31&c)<<6|63&a)>127&&(f=u);break;case 3:a=t[i+1],o=t[i+2],128===(192&a)&&128===(192&o)&&(u=(15&c)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(u=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=l}return function(t){var e=t.length;if(e<=x)return String.fromCharCode.apply(String,t);var r="",n=0;for(;nn.length?u.from(a).copy(n,i):Uint8Array.prototype.set.call(n,a,i);else{if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i)}i+=a.length}return n},u.byteLength=m,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;er&&(t+=" ... "),""},a&&(u.prototype[a]=u.prototype.inspect),u.prototype.compare=function(t,e,r,n,i){if(j(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),s=Math.min(a,o),c=this.slice(n,i),f=t.slice(e,r),l=0;l>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return E(this,t,e,r);case"ascii":case"latin1":case"binary":return T(this,t,e,r);case"base64":return S(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function R(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;in)&&(r=n);for(var i="",a=e;ar)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,r,n,i,a){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function U(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function P(t,e,r,n,a){return e=+e,r>>>=0,a||U(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function B(t,e,r,n,a){return e=+e,r>>>=0,a||U(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||M(t,e,this.length);for(var n=this[t],i=1,a=0;++a>>=0,e>>>=0,r||M(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||M(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||M(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||M(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||M(t,e,this.length);for(var n=this[t],i=1,a=0;++a=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||M(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n>0&&(i*=256);)a+=this[t+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*e)),a},u.prototype.readInt8=function(t,e){return t>>>=0,e||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||M(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){t>>>=0,e||M(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return t>>>=0,e||M(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||M(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||M(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||M(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e>>>=0,r>>>=0,n)||L(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&t;++a>>=0,r>>>=0,n)||L(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);L(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&t;++a>0)-s&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);L(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeFloatLE=function(t,e,r){return P(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return P(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return B(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return B(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"===typeof t)for(a=e;a55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function X(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(k,"")).length<2)return"";for(;t.length%4!==0;)t+="=";return t}(t))}function F(t,e,r,n){for(var i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function j(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function G(t){return t!==t}var H=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},86559:function(t,e,r){"use strict";r.d(e,{Z:function(){return g}});var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},i=function(t,e,r){var i,a=n[t];return i="string"===typeof a?a:1===e?a.one:a.other.replace("{{count}}",e.toString()),null!==r&&void 0!==r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function a(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.width?String(e.width):t.defaultWidth,n=t.formats[r]||t.formats[t.defaultWidth];return n}}var o={date:a({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:a({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:a({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},u=function(t,e,r,n){return s[t]};function c(t){return function(e,r){var n;if("formatting"===(null!==r&&void 0!==r&&r.context?String(r.context):"standalone")&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth,a=null!==r&&void 0!==r&&r.width?String(r.width):i;n=t.formattingValues[a]||t.formattingValues[i]}else{var o=t.defaultWidth,s=null!==r&&void 0!==r&&r.width?String(r.width):t.defaultWidth;n=t.values[s]||t.values[o]}return n[t.argumentCallback?t.argumentCallback(e):e]}}var f={ordinalNumber:function(t,e){var r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:c({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:c({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:c({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:c({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:c({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function l(t){return function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.width,i=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],a=e.match(i);if(!a)return null;var o,s=a[0],u=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(u)?p(u,(function(t){return t.test(s)})):h(u,(function(t){return t.test(s)}));o=t.valueCallback?t.valueCallback(c):c,o=r.valueCallback?r.valueCallback(o):o;var f=e.slice(s.length);return{value:o,rest:f}}}function h(t,e){for(var r in t)if(t.hasOwnProperty(r)&&e(t[r]))return r}function p(t,e){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(d.matchPattern);if(!r)return null;var n=r[0],i=t.match(d.parsePattern);if(!i)return null;var a=d.valueCallback?d.valueCallback(i[0]):i[0];a=e.valueCallback?e.valueCallback(a):a;var o=t.slice(n.length);return{value:a,rest:o}}),era:l({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:l({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:l({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:l({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:l({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},g={code:"en-US",formatDistance:i,formatLong:o,formatRelative:u,localize:f,match:m,options:{weekStartsOn:0,firstWeekContainsDate:1}}},84314:function(t,e,r){"use strict";r.d(e,{j:function(){return i}});var n={};function i(){return n}},24262:function(t,e,r){"use strict";function n(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}r.d(e,{Z:function(){return n}})},83946:function(t,e,r){"use strict";function n(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}r.d(e,{Z:function(){return n}})},77349:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(83946),i=r(19013),a=r(13882);function o(t,e){(0,a.Z)(2,arguments);var r=(0,i.Z)(t),o=(0,n.Z)(e);return isNaN(o)?new Date(NaN):o?(r.setDate(r.getDate()+o),r):r}},11640:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(83946),i=r(19013),a=r(13882);function o(t,e){(0,a.Z)(2,arguments);var r=(0,i.Z)(t),o=(0,n.Z)(e);if(isNaN(o))return new Date(NaN);if(!o)return r;var s=r.getDate(),u=new Date(r.getTime());u.setMonth(r.getMonth()+o+1,0);var c=u.getDate();return s>=c?u:(r.setFullYear(u.getFullYear(),u.getMonth(),s),r)}},75401:function(t,e,r){"use strict";r.d(e,{Z:function(){return u}});var n=r(24262),i=r(19013),a=r(13882);function o(t){(0,a.Z)(1,arguments);var e=(0,i.Z)(t);return e.setHours(0,0,0,0),e}var s=864e5;function u(t,e){(0,a.Z)(2,arguments);var r=o(t),i=o(e),u=r.getTime()-(0,n.Z)(r),c=i.getTime()-(0,n.Z)(i);return Math.round((u-c)/s)}},68730:function(t,e,r){"use strict";r.d(e,{Z:function(){return T}});var n=r(49474),i=r(77349),a=r(11640),o=r(19013),s=r(13882),u=r(83946);function c(t,e){if((0,s.Z)(2,arguments),!e||"object"!==typeof e)return new Date(NaN);var r=e.years?(0,u.Z)(e.years):0,n=e.months?(0,u.Z)(e.months):0,c=e.weeks?(0,u.Z)(e.weeks):0,f=e.days?(0,u.Z)(e.days):0,l=e.hours?(0,u.Z)(e.hours):0,h=e.minutes?(0,u.Z)(e.minutes):0,p=e.seconds?(0,u.Z)(e.seconds):0,d=(0,o.Z)(t),m=n||r?(0,a.Z)(d,n+12*r):d,g=f||c?(0,i.Z)(m,f+7*c):m,v=h+60*l,y=p+60*v,b=1e3*y,w=new Date(g.getTime()+b);return w}var f=r(75401);function l(t,e){var r=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return r<0?-1:r>0?1:r}function h(t,e){(0,s.Z)(2,arguments);var r=(0,o.Z)(t),n=(0,o.Z)(e),i=l(r,n),a=Math.abs((0,f.Z)(r,n));r.setDate(r.getDate()-i*a);var u=Number(l(r,n)===-i),c=i*(a-u);return 0===c?0:c}Math.pow(10,8);var p=36e5,d=r(59910),m=r(93645);function g(t,e,r){(0,s.Z)(2,arguments);var n=(0,d.Z)(t,e)/p;return(0,m.u)(null===r||void 0===r?void 0:r.roundingMethod)(n)}function v(t,e,r){(0,s.Z)(2,arguments);var n=(0,d.Z)(t,e)/6e4;return(0,m.u)(null===r||void 0===r?void 0:r.roundingMethod)(n)}var y=r(82161),b=r(11699);function w(t,e){(0,s.Z)(2,arguments);var r=(0,o.Z)(t),n=(0,o.Z)(e);return r.getFullYear()-n.getFullYear()}function E(t,e){(0,s.Z)(2,arguments);var r=(0,o.Z)(t),i=(0,o.Z)(e),a=(0,n.Z)(r,i),u=Math.abs(w(r,i));r.setFullYear(1584),i.setFullYear(1584);var c=(0,n.Z)(r,i)===-a,f=a*(u-Number(c));return 0===f?0:f}function T(t){(0,s.Z)(1,arguments);var e=(0,o.Z)(t.start),r=(0,o.Z)(t.end);if(isNaN(e.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(r.getTime()))throw new RangeError("End Date is invalid");var i={};i.years=Math.abs(E(r,e));var a=(0,n.Z)(r,e),u=c(e,{years:a*i.years});i.months=Math.abs((0,y.Z)(r,u));var f=c(u,{months:a*i.months});i.days=Math.abs(h(r,f));var l=c(f,{days:a*i.days});i.hours=Math.abs(g(r,l));var p=c(l,{hours:a*i.hours});i.minutes=Math.abs(v(r,p));var d=c(p,{minutes:a*i.minutes});return i.seconds=Math.abs((0,b.Z)(r,d)),i}},89144:function(t,e,r){var n,i="undefined"!==typeof r.g?r.g:"undefined"!==typeof window?window:{},a=r(25893);"undefined"!==typeof document?n=document:(n=i["__GLOBAL_DOCUMENT_CACHE@4"])||(n=i["__GLOBAL_DOCUMENT_CACHE@4"]=a),t.exports=n},58908:function(t,e,r){var n;n="undefined"!==typeof window?window:"undefined"!==typeof r.g?r.g:"undefined"!==typeof self?self:{},t.exports=n},80645:function(t,e){e.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,u=(1<>1,f=-7,l=r?i-1:0,h=r?-1:1,p=t[e+l];for(l+=h,a=p&(1<<-f)-1,p>>=-f,f+=s;f>0;a=256*a+t[e+l],l+=h,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=256*o+t[e+l],l+=h,f-=8);if(0===a)a=1-c;else{if(a===u)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},e.write=function(t,e,r,n,i,a){var o,s,u,c=8*a-i-1,f=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=f):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),(e+=o+l>=1?h/u:h*Math.pow(2,1-l))*u>=2&&(o++,u/=2),o+l>=f?(s=0,o=f):o+l>=1?(s=(e*u-1)*Math.pow(2,i),o+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,i),o=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(o=o<0;t[r+p]=255&o,p+=d,o/=256,c-=8);t[r+p-d]|=128*m}},27376:function(t){t.exports=function(t){if(!t)return!1;var r=e.call(t);return"[object Function]"===r||"function"===typeof t&&"[object RegExp]"!==r||"undefined"!==typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var e=Object.prototype.toString},27537:function(t,e){function r(t){if(t&&"object"===typeof t){var e=t.which||t.keyCode||t.charCode;e&&(t=e)}if("number"===typeof t)return o[t];var r,a=String(t);return(r=n[a.toLowerCase()])?r:(r=i[a.toLowerCase()])||(1===a.length?a.charCodeAt(0):void 0)}r.isEventKey=function(t,e){if(t&&"object"===typeof t){var r=t.which||t.keyCode||t.charCode;if(null===r||void 0===r)return!1;if("string"===typeof e){var a;if(a=n[e.toLowerCase()])return a===r;if(a=i[e.toLowerCase()])return a===r}else if("number"===typeof e)return e===r;return!1}};var n=(e=t.exports=r).code=e.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=e.aliases={windows:91,"\u21e7":16,"\u2325":18,"\u2303":17,"\u2318":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(a=97;a<123;a++)n[String.fromCharCode(a)]=a-32;for(var a=48;a<58;a++)n[a-48]=a;for(a=1;a<13;a++)n["f"+a]=a+111;for(a=0;a<10;a++)n["numpad "+a]=a+96;var o=e.names=e.title={};for(a in n)o[n[a]]=a;for(var s in i)n[s]=i[s]},9323:function(t,e,r){"use strict";r.d(e,{_b:function(){return m}});var n=r(94578),i=function(){function t(){this.listeners={}}var e=t.prototype;return e.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},e.off=function(t,e){if(!this.listeners[t])return!1;var r=this.listeners[t].indexOf(e);return this.listeners[t]=this.listeners[t].slice(0),this.listeners[t].splice(r,1),r>-1},e.trigger=function(t){var e=this.listeners[t];if(e)if(2===arguments.length)for(var r=e.length,n=0;n-1;e=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,e)),this.buffer=this.buffer.substring(e+1)},e}(i),c=String.fromCharCode(9),f=function(t){var e=/([0-9.]*)?@?([0-9.]*)?/.exec(t||""),r={};return e[1]&&(r.length=parseInt(e[1],10)),e[2]&&(r.offset=parseInt(e[2],10)),r},l=function(t){for(var e,r=t.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),n={},i=r.length;i--;)""!==r[i]&&((e=/([^=]*)=(.*)/.exec(r[i]).slice(1))[0]=e[0].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^['"](.*)['"]$/g,"$1"),n[e[0]]=e[1]);return n},h=function(t){function e(){var e;return(e=t.call(this)||this).customParsers=[],e.tagMappers=[],e}(0,n.Z)(e,t);var r=e.prototype;return r.push=function(t){var e,r,n=this;0!==(t=t.trim()).length&&("#"===t[0]?this.tagMappers.reduce((function(e,r){var n=r(t);return n===t?e:e.concat([n])}),[t]).forEach((function(t){for(var i=0;i0&&(f.duration=t.duration),0===t.duration&&(f.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=c},key:function(){if(t.attributes)if("NONE"!==t.attributes.METHOD)if(t.attributes.URI){if("com.apple.streamingkeydelivery"===t.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:t.attributes});if("com.microsoft.playready"===t.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:t.attributes.URI});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===t.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(t.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===t.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==t.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):t.attributes.KEYID&&"0x"===t.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:t.attributes.KEYFORMAT,keyId:t.attributes.KEYID.substring(2)},pssh:(0,s.Z)(t.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}t.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),n={method:t.attributes.METHOD||"AES-128",uri:t.attributes.URI},"undefined"!==typeof t.attributes.IV&&(n.iv=t.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else n=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(t.number)?this.manifest.mediaSequence=t.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+t.number})},"discontinuity-sequence":function(){isFinite(t.number)?(this.manifest.discontinuitySequence=t.number,v=t.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+t.number})},"playlist-type":function(){/VOD|EVENT/.test(t.playlistType)?this.manifest.playlistType=t.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+t.playlist})},map:function(){r={},t.uri&&(r.uri=t.uri),t.byterange&&(r.byterange=t.byterange),n&&(r.key=n)},"stream-inf":function(){this.manifest.playlists=c,this.manifest.mediaGroups=this.manifest.mediaGroups||g,t.attributes?(f.attributes||(f.attributes={}),(0,a.Z)(f.attributes,t.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||g,t.attributes&&t.attributes.TYPE&&t.attributes["GROUP-ID"]&&t.attributes.NAME){var r=this.manifest.mediaGroups[t.attributes.TYPE];r[t.attributes["GROUP-ID"]]=r[t.attributes["GROUP-ID"]]||{},e=r[t.attributes["GROUP-ID"]],(o={default:/yes/i.test(t.attributes.DEFAULT)}).default?o.autoselect=!0:o.autoselect=/yes/i.test(t.attributes.AUTOSELECT),t.attributes.LANGUAGE&&(o.language=t.attributes.LANGUAGE),t.attributes.URI&&(o.uri=t.attributes.URI),t.attributes["INSTREAM-ID"]&&(o.instreamId=t.attributes["INSTREAM-ID"]),t.attributes.CHARACTERISTICS&&(o.characteristics=t.attributes.CHARACTERISTICS),t.attributes.FORCED&&(o.forced=/yes/i.test(t.attributes.FORCED)),e[t.attributes.NAME]=o}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){v+=1,f.discontinuity=!0,this.manifest.discontinuityStarts.push(c.length)},"program-date-time":function(){"undefined"===typeof this.manifest.dateTimeString&&(this.manifest.dateTimeString=t.dateTimeString,this.manifest.dateTimeObject=t.dateTimeObject),f.dateTimeString=t.dateTimeString,f.dateTimeObject=t.dateTimeObject},targetduration:function(){!isFinite(t.duration)||t.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+t.duration}):(this.manifest.targetDuration=t.duration,d.call(this,this.manifest))},start:function(){t.attributes&&!isNaN(t.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:t.attributes["TIME-OFFSET"],precise:t.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){f.cueOut=t.data},"cue-out-cont":function(){f.cueOutCont=t.data},"cue-in":function(){f.cueIn=t.data},skip:function(){this.manifest.skip=p(t.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",t.attributes,["SKIPPED-SEGMENTS"])},part:function(){var e=this;l=!0;var r=this.manifest.segments.length,n=p(t.attributes);f.parts=f.parts||[],f.parts.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=b),b=n.byterange.offset+n.byterange.length);var i=f.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+i+" for segment #"+r,t.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((function(t,r){t.hasOwnProperty("lastPart")||e.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+r+" lacks required attribute(s): LAST-PART"})}))},"server-control":function(){var e=this.manifest.serverControl=p(t.attributes);e.hasOwnProperty("canBlockReload")||(e.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),d.call(this,this.manifest),e.canSkipDateranges&&!e.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var e=this.manifest.segments.length,r=p(t.attributes),n=r.type&&"PART"===r.type;f.preloadHints=f.preloadHints||[],f.preloadHints.push(r),r.byterange&&(r.byterange.hasOwnProperty("offset")||(r.byterange.offset=n?b:0,n&&(b=r.byterange.offset+r.byterange.length)));var i=f.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+i+" for segment #"+e,t.attributes,["TYPE","URI"]),r.type)for(var a=0;ae.timeline?1:-1}));var e,r},R=function(t){var e,r,n=[];return e=t,r=function(t,e,r,i){n=n.concat(t.playlists||[])},I.forEach((function(t){for(var n in e.mediaGroups[t])for(var i in e.mediaGroups[t][n]){var a=e.mediaGroups[t][n][i];r(a,t,n,i)}})),n},O=function(t){var e=t.playlist,r=t.mediaSequence;e.mediaSequence=r,e.segments.forEach((function(t,r){t.number=e.mediaSequence+r}))},D=function(t){var e=t.oldManifest,r=t.newManifest,n=e.playlists.concat(R(e)),i=r.playlists.concat(R(r));return r.timelineStarts=x([e.timelineStarts,r.timelineStarts]),function(t){var e=t.oldPlaylists,r=t.newPlaylists,n=t.timelineStarts;r.forEach((function(t){t.discontinuitySequence=p(n,(function(e){return e.timeline===t.timeline}));var r=function(t,e){for(var r=0;rr.timeline||r.segments.length&&t.timeline>r.segments[r.segments.length-1].timeline)&&t.discontinuitySequence--);r.segments[a].discontinuity&&!i.discontinuity&&(i.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),O({playlist:t,mediaSequence:r.segments[a].number})}}))}({oldPlaylists:n,newPlaylists:i,timelineStarts:r.timelineStarts}),r},C=function(t){return t&&t.uri+"-"+function(t){var e;return e="bigint"===typeof t.offset||"bigint"===typeof t.length?a().BigInt(t.offset)+a().BigInt(t.length)-a().BigInt(1):t.offset+t.length-1,t.offset+"-"+e}(t.byterange)},M=function(t){return f(t.reduce((function(t,e){var r=e.attributes.id+(e.attributes.lang||"");if(t[r]){var n;if(e.segments)e.segments[0]&&(e.segments[0].discontinuity=!0),(n=t[r].segments).push.apply(n,e.segments);e.attributes.contentProtection&&(t[r].attributes.contentProtection=e.attributes.contentProtection)}else t[r]=e,t[r].attributes.timelineStarts=[];return t[r].attributes.timelineStarts.push({start:e.attributes.periodStart,timeline:e.attributes.periodStart}),t}),{})).map((function(t){var e,r;return t.discontinuityStarts=(e=t.segments||[],r="discontinuity",e.reduce((function(t,e,n){return e[r]&&t.push(n),t}),[])),t}))},L=function(t,e){var r=C(t.sidx),n=r&&e[r]&&e[r].sidx;return n&&A(t,n,t.sidx.resolvedUri),t},U=function(t,e){if(void 0===e&&(e={}),!Object.keys(e).length)return t;for(var r in t)t[r]=L(t[r],e);return t},P=function(t){var e,r=t.attributes,n=t.segments,i=t.sidx,a=t.discontinuityStarts,o={attributes:(e={NAME:r.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:r.width,height:r.height},CODECS:r.codecs,BANDWIDTH:r.bandwidth},e["PROGRAM-ID"]=1,e),uri:"",endList:"static"===r.type,timeline:r.periodStart,resolvedUri:"",targetDuration:r.duration,discontinuityStarts:a,timelineStarts:r.timelineStarts,segments:n};return r.contentProtection&&(o.contentProtection=r.contentProtection),i&&(o.sidx=i),o},B=function(t){var e=t.attributes;return"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType},k=function(t){var e=t.attributes;return"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType},_=function(t){var e=t.attributes;return"text/vtt"===e.mimeType||"text"===e.contentType},X=function(t){return t?Object.keys(t).reduce((function(e,r){var n=t[r];return e.concat(n.playlists)}),[]):[]},F=function(t){var e,r=t.dashPlaylists,n=t.locations,i=t.sidxMapping,a=void 0===i?{}:i,o=t.previousManifest;if(!r.length)return{};var s=r[0].attributes,u=s.sourceDuration,c=s.type,f=s.suggestedPresentationDelay,l=s.minimumUpdatePeriod,h=M(r.filter(B)).map(P),d=M(r.filter(k)),m=M(r.filter(_)),g=r.map((function(t){return t.attributes.captionServices})).filter(Boolean),v={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(e={AUDIO:{},VIDEO:{}},e["CLOSED-CAPTIONS"]={},e.SUBTITLES={},e),uri:"",duration:u,playlists:U(h,a)};l>=0&&(v.minimumUpdatePeriod=1e3*l),n&&(v.locations=n),"dynamic"===c&&(v.suggestedPresentationDelay=f);var y,b,w=0===v.playlists.length,E=d.length?function(t,e,r){var n;void 0===e&&(e={}),void 0===r&&(r=!1);var i=t.reduce((function(t,i){var a=i.attributes.role&&i.attributes.role.value||"",o=i.attributes.lang||"",s=i.attributes.label||"main";if(o&&!i.attributes.label){var u=a?" ("+a+")":"";s=""+i.attributes.lang+u}t[s]||(t[s]={language:o,autoselect:!0,default:"main"===a,playlists:[],uri:""});var c=L(function(t,e){var r,n=t.attributes,i=t.segments,a=t.sidx,o=t.mediaSequence,s=t.discontinuitySequence,u=t.discontinuityStarts,c={attributes:(r={NAME:n.id,BANDWIDTH:n.bandwidth,CODECS:n.codecs},r["PROGRAM-ID"]=1,r),uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:"",targetDuration:n.duration,discontinuitySequence:s,discontinuityStarts:u,timelineStarts:n.timelineStarts,mediaSequence:o,segments:i};return n.contentProtection&&(c.contentProtection=n.contentProtection),a&&(c.sidx=a),e&&(c.attributes.AUDIO="audio",c.attributes.SUBTITLES="subs"),c}(i,r),e);return t[s].playlists.push(c),"undefined"===typeof n&&"main"===a&&((n=i).default=!0),t}),{});return n||(i[Object.keys(i)[0]].default=!0),i}(d,a,w):null,T=m.length?function(t,e){return void 0===e&&(e={}),t.reduce((function(t,r){var n=r.attributes.lang||"text";return t[n]||(t[n]={language:n,default:!1,autoselect:!1,playlists:[],uri:""}),t[n].playlists.push(L(function(t){var e,r=t.attributes,n=t.segments,i=t.mediaSequence,a=t.discontinuityStarts,o=t.discontinuitySequence;"undefined"===typeof n&&(n=[{uri:r.baseUrl,timeline:r.periodStart,resolvedUri:r.baseUrl||"",duration:r.sourceDuration,number:0}],r.duration=r.sourceDuration);var s=((e={NAME:r.id,BANDWIDTH:r.bandwidth})["PROGRAM-ID"]=1,e);return r.codecs&&(s.CODECS=r.codecs),{attributes:s,uri:"",endList:"static"===r.type,timeline:r.periodStart,resolvedUri:r.baseUrl||"",targetDuration:r.duration,timelineStarts:r.timelineStarts,discontinuityStarts:a,discontinuitySequence:o,mediaSequence:i,segments:n}}(r),e)),t}),{})}(m,a):null,S=h.concat(X(E),X(T)),N=S.map((function(t){return t.timelineStarts}));return v.timelineStarts=x(N),y=S,b=v.timelineStarts,y.forEach((function(t){t.mediaSequence=0,t.discontinuitySequence=p(b,(function(e){return e.timeline===t.timeline})),t.segments&&t.segments.forEach((function(t,e){t.number=e}))})),E&&(v.mediaGroups.AUDIO.audio=E),T&&(v.mediaGroups.SUBTITLES.subs=T),g.length&&(v.mediaGroups["CLOSED-CAPTIONS"].cc=g.reduce((function(t,e){return e?(e.forEach((function(e){var r=e.channel,n=e.language;t[n]={autoselect:!1,default:!1,instreamId:r,language:n},e.hasOwnProperty("aspectRatio")&&(t[n].aspectRatio=e.aspectRatio),e.hasOwnProperty("easyReader")&&(t[n].easyReader=e.easyReader),e.hasOwnProperty("3D")&&(t[n]["3D"]=e["3D"])})),t):t}),{})),o?D({oldManifest:o,newManifest:v}):v},j=function(t,e,r){var n=t.NOW,i=t.clientOffset,a=t.availabilityStartTime,o=t.timescale,s=void 0===o?1:o,u=t.periodStart,c=void 0===u?0:u,f=t.minimumUpdatePeriod,l=(n+i)/1e3+(void 0===f?0:f)-(a+c);return Math.ceil((l*s-e)/r)},G=function(t,e){for(var r=t.type,n=t.minimumUpdatePeriod,i=void 0===n?0:n,a=t.media,o=void 0===a?"":a,s=t.sourceDuration,u=t.timescale,c=void 0===u?1:u,f=t.startNumber,l=void 0===f?1:f,h=t.periodStart,p=[],d=-1,m=0;md&&(d=b);var w=void 0;if(y<0){var E=m+1;w=E===e.length?"dynamic"===r&&i>0&&o.indexOf("$Number$")>0?j(t,d,v):(s*c-d)/v:(e[E].t-d)/v}else w=y+1;for(var T=l+p.length+w,S=l+p.length;S=i?a:""+new Array(i-a.length+1).join("0")+a)}}(e))},q=function(t,e){var r={RepresentationID:t.id,Bandwidth:t.bandwidth||0},i=t.initialization,a=void 0===i?{sourceURL:"",range:""}:i,o=w({baseUrl:t.baseUrl,source:Z(a.sourceURL,r),range:a.range}),s=function(t,e){return t.duration||e?t.duration?S(t):G(t,e):[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodStart}]}(t,e);return s.map((function(e){r.Number=e.number,r.Time=e.time;var i=Z(t.media||"",r),a=t.timescale||1,s=t.presentationTimeOffset||0,u=t.periodStart+(e.time-s)/a;return{uri:i,timeline:e.timeline,duration:e.duration,resolvedUri:(0,n.Z)(t.baseUrl||"",i),map:o,number:e.number,presentationTime:u}}))},V=function(t,e){var r=t.duration,n=t.segmentUrls,i=void 0===n?[]:n,a=t.periodStart;if(!r&&!e||r&&e)throw new Error(y);var o,s=i.map((function(e){return function(t,e){var r=t.baseUrl,n=t.initialization,i=void 0===n?{}:n,a=w({baseUrl:r,source:i.sourceURL,range:i.range}),o=w({baseUrl:r,source:e.media,range:e.mediaRange});return o.map=a,o}(t,e)}));return r&&(o=S(t)),e&&(o=G(t,e)),o.map((function(e,r){if(s[r]){var n=s[r],i=t.timescale||1,o=t.presentationTimeOffset||0;return n.timeline=e.timeline,n.duration=e.duration,n.number=e.number,n.presentationTime=a+(e.time-o)/i,n}})).filter((function(t){return t}))},z=function(t){var e,r,n=t.attributes,i=t.segmentInfo;i.template?(r=q,e=c(n,i.template)):i.base?(r=N,e=c(n,i.base)):i.list&&(r=V,e=c(n,i.list));var a={attributes:n};if(!r)return a;var o=r(e,i.segmentTimeline);if(e.duration){var s=e,u=s.duration,f=s.timescale,l=void 0===f?1:f;e.duration=u/l}else o.length?e.duration=o.reduce((function(t,e){return Math.max(t,Math.ceil(e.duration))}),0):e.duration=0;return a.attributes=e,a.segments=o,i.base&&e.indexRange&&(a.sidx=o[0],a.segments=[]),a},K=function(t,e){return h(t.childNodes).filter((function(t){return t.tagName===e}))},Y=function(t){return t.textContent.trim()},W=function(t){var e=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(t);if(!e)return 0;var r=e.slice(1),n=r[0],i=r[1],a=r[2],o=r[3],s=r[4],u=r[5];return 31536e3*parseFloat(n||0)+2592e3*parseFloat(i||0)+86400*parseFloat(a||0)+3600*parseFloat(o||0)+60*parseFloat(s||0)+parseFloat(u||0)},$={mediaPresentationDuration:function(t){return W(t)},availabilityStartTime:function(t){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e=t)&&(e+="Z"),Date.parse(e)/1e3;var e},minimumUpdatePeriod:function(t){return W(t)},suggestedPresentationDelay:function(t){return W(t)},type:function(t){return t},timeShiftBufferDepth:function(t){return W(t)},start:function(t){return W(t)},width:function(t){return parseInt(t,10)},height:function(t){return parseInt(t,10)},bandwidth:function(t){return parseInt(t,10)},startNumber:function(t){return parseInt(t,10)},timescale:function(t){return parseInt(t,10)},presentationTimeOffset:function(t){return parseInt(t,10)},duration:function(t){var e=parseInt(t,10);return isNaN(e)?W(t):e},d:function(t){return parseInt(t,10)},t:function(t){return parseInt(t,10)},r:function(t){return parseInt(t,10)},DEFAULT:function(t){return t}},J=function(t){return t&&t.attributes?h(t.attributes).reduce((function(t,e){var r=$[e.name]||$.DEFAULT;return t[e.name]=r(e.value),t}),{}):{}},Q={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},tt=function(t,e){return e.length?l(t.map((function(t){return e.map((function(e){return(0,n.Z)(t,Y(e))}))}))):t},et=function(t){var e=K(t,"SegmentTemplate")[0],r=K(t,"SegmentList")[0],n=r&&K(r,"SegmentURL").map((function(t){return c({tag:"SegmentURL"},J(t))})),i=K(t,"SegmentBase")[0],a=r||e,o=a&&K(a,"SegmentTimeline")[0],s=r||i||e,u=s&&K(s,"Initialization")[0],f=e&&J(e);f&&u?f.initialization=u&&J(u):f&&f.initialization&&(f.initialization={sourceURL:f.initialization});var l={template:f,segmentTimeline:o&&K(o,"S").map((function(t){return J(t)})),list:r&&c(J(r),{segmentUrls:n,initialization:J(u)}),base:i&&c(J(i),{initialization:J(u)})};return Object.keys(l).forEach((function(t){l[t]||delete l[t]})),l},rt=function(t,e,r){return function(n){var i,a=J(n),s=tt(e,K(n,"BaseURL")),u=K(n,"Role")[0],f={role:J(u)},h=c(t,a,f),p=K(n,"Accessibility")[0],d="urn:scte:dash:cc:cea-608:2015"===(i=J(p)).schemeIdUri?("string"!==typeof i.value?[]:i.value.split(";")).map((function(t){var e,r;if(r=t,/^CC\d=/.test(t)){var n=t.split("=");e=n[0],r=n[1]}else/^CC\d$/.test(t)&&(e=t);return{channel:e,language:r}})):"urn:scte:dash:cc:cea-708:2015"===i.schemeIdUri?("string"!==typeof i.value?[]:i.value.split(";")).map((function(t){var e={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(t)){var r=t.split("="),n=r[0],i=r[1],a=void 0===i?"":i;e.channel=n,e.language=t,a.split(",").forEach((function(t){var r=t.split(":"),n=r[0],i=r[1];"lang"===n?e.language=i:"er"===n?e.easyReader=Number(i):"war"===n?e.aspectRatio=Number(i):"3D"===n&&(e["3D"]=Number(i))}))}else e.language=t;return e.channel&&(e.channel="SERVICE"+e.channel),e})):void 0;d&&(h=c(h,{captionServices:d}));var m=K(n,"Label")[0];if(m&&m.childNodes.length){var g=m.childNodes[0].nodeValue.trim();h=c(h,{label:g})}var v=K(n,"ContentProtection").reduce((function(t,e){var r=J(e);r.schemeIdUri&&(r.schemeIdUri=r.schemeIdUri.toLowerCase());var n=Q[r.schemeIdUri];if(n){t[n]={attributes:r};var i=K(e,"cenc:pssh")[0];if(i){var a=Y(i);t[n].pssh=a&&(0,o.Z)(a)}}return t}),{});Object.keys(v).length&&(h=c(h,{contentProtection:v}));var y=et(n),b=K(n,"Representation"),w=c(r,y);return l(b.map(function(t,e,r){return function(n){var i=K(n,"BaseURL"),a=tt(e,i),o=c(t,J(n)),s=et(n);return a.map((function(t){return{segmentInfo:c(r,s),attributes:c(o,{baseUrl:t})}}))}}(h,s,w)))}},nt=function(t,e){return function(r,n){var i=tt(e,K(r.node,"BaseURL")),a=c(t,{periodStart:r.attributes.start});"number"===typeof r.attributes.duration&&(a.periodDuration=r.attributes.duration);var o=K(r.node,"AdaptationSet"),s=et(r.node);return l(o.map(rt(a,i,s)))}},it=function(t){if(""===t)throw new Error(m);var e,r,n=new s.DOMParser;try{r=(e=n.parseFromString(t,"application/xml"))&&"MPD"===e.documentElement.tagName?e.documentElement:null}catch(i){}if(!r||r&&r.getElementsByTagName("parsererror").length>0)throw new Error(g);return r},at=function(t,e){void 0===e&&(e={});var r=function(t,e){void 0===e&&(e={});var r=e,n=r.manifestUri,i=void 0===n?"":n,a=r.NOW,o=void 0===a?Date.now():a,s=r.clientOffset,u=void 0===s?0:s,c=K(t,"Period");if(!c.length)throw new Error(d);var f=K(t,"Location"),h=J(t),p=tt([i],K(t,"BaseURL"));h.type=h.type||"static",h.sourceDuration=h.mediaPresentationDuration||0,h.NOW=o,h.clientOffset=u,f.length&&(h.locations=f.map(Y));var m=[];return c.forEach((function(t,e){var r=J(t),n=m[e-1];r.start=function(t){var e=t.attributes,r=t.priorPeriodAttributes,n=t.mpdType;return"number"===typeof e.start?e.start:r&&"number"===typeof r.start&&"number"===typeof r.duration?r.start+r.duration:r||"static"!==n?null:0}({attributes:r,priorPeriodAttributes:n?n.attributes:null,mpdType:h.type}),m.push({node:t,attributes:r})})),{locations:h.locations,representationInfo:l(m.map(nt(h,p)))}}(it(t),e),n=r.representationInfo.map(z);return F({dashPlaylists:n,locations:r.locations,sidxMapping:e.sidxMapping,previousManifest:e.previousManifest})},ot=function(t){return function(t){var e=K(t,"UTCTiming")[0];if(!e)return null;var r=J(e);switch(r.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":r.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":r.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":r.method="DIRECT",r.value=Date.parse(r.value);break;default:throw new Error(b)}return r}(it(t))}},84221:function(t,e,r){var n=r(46894).getUint64;t.exports=function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),r={version:t[0],flags:new Uint8Array(t.subarray(1,4)),references:[],referenceId:e.getUint32(4),timescale:e.getUint32(8)},i=12;0===r.version?(r.earliestPresentationTime=e.getUint32(i),r.firstOffset=e.getUint32(i+4),i+=8):(r.earliestPresentationTime=n(t.subarray(i)),r.firstOffset=n(t.subarray(i+8)),i+=16),i+=2;var a=e.getUint16(i);for(i+=2;a>0;i+=12,a--)r.references.push({referenceType:(128&t[i])>>>7,referencedSize:2147483647&e.getUint32(i),subsegmentDuration:e.getUint32(i+4),startsWithSap:!!(128&t[i+8]),sapType:(112&t[i+8])>>>4,sapDeltaTime:268435455&e.getUint32(i+8)});return r}},51489:function(t){var e,r,n,i,a,o,s,u=9e4;e=function(t){return t*u},r=function(t,e){return t*e},n=function(t){return t/u},i=function(t,e){return t/e},a=function(t,r){return e(i(t,r))},o=function(t,e){return r(n(t),e)},s=function(t,e,r){return n(r?t:t-e)},t.exports={ONE_SECOND_IN_TS:u,secondsToVideoTs:e,secondsToAudioTs:r,videoTsToSeconds:n,audioTsToSeconds:i,audioTsToVideoTs:a,videoTsToAudioTs:o,metadataTsToSeconds:s}},46894:function(t){var e=Math.pow(2,32);t.exports={getUint64:function(t){var r,n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.getBigUint64?(r=n.getBigUint64(0))59?e(r[1],r[2],0,r[4]):e(0,r[1],r[2],r[4]):null}function s(){this.values=i(null)}function u(t,e,r,n){var i=n?t.split(n):[t];for(var a in i)if("string"===typeof i[a]){var o=i[a].split(r);if(2===o.length)e(o[0].trim(),o[1].trim())}}function c(t,e,r){var n=t;function i(){var e=o(t);if(null===e)throw new a(a.Errors.BadTimeStamp,"Malformed timestamp: "+n);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function c(){t=t.replace(/^\s+/,"")}if(c(),e.startTime=i(),c(),"--\x3e"!==t.substr(0,3))throw new a(a.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+n);t=t.substr(3),c(),e.endTime=i(),c(),function(t,e){var n=new s;u(t,(function(t,e){switch(t){case"region":for(var i=r.length-1;i>=0;i--)if(r[i].id===e){n.set(t,r[i].region);break}break;case"vertical":n.alt(t,e,["rl","lr"]);break;case"line":var a=e.split(","),o=a[0];n.integer(t,o),n.percent(t,o)&&n.set("snapToLines",!1),n.alt(t,o,["auto"]),2===a.length&&n.alt("lineAlign",a[1],["start","center","end"]);break;case"position":a=e.split(","),n.percent(t,a[0]),2===a.length&&n.alt("positionAlign",a[1],["start","center","end"]);break;case"size":n.percent(t,e);break;case"align":n.alt(t,e,["start","center","end","left","right"])}}),/:/,/\s/),e.region=n.get("region",null),e.vertical=n.get("vertical","");try{e.line=n.get("line","auto")}catch(i){}e.lineAlign=n.get("lineAlign","start"),e.snapToLines=n.get("snapToLines",!0),e.size=n.get("size",100);try{e.align=n.get("align","center")}catch(i){e.align=n.get("align","middle")}try{e.position=n.get("position","auto")}catch(i){e.position=n.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},e.align)}e.positionAlign=n.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},e.align)}(t,e)}a.prototype=i(Error.prototype),a.prototype.constructor=a,a.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},s.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,r){return r?this.has(t)?this.values[t]:e[r]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,r){for(var n=0;n=0&&e<=100)&&(this.set(t,e),!0)}};var f=n.createElement&&n.createElement("textarea"),l={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},h={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},p={v:"title",lang:"lang"},d={rt:"ruby"};function m(t,e){function r(){if(!e)return null;var t,r=e.match(/^([^<]*)(<[^>]*>?)?/);return t=r[1]?r[1]:r[2],e=e.substr(t.length),t}function n(t,e){return!d[e.localName]||d[e.localName]===t.localName}function i(e,r){var n=l[e];if(!n)return null;var i=t.document.createElement(n),a=p[e];return a&&r&&(i[a]=r.trim()),i}for(var a,s,u=t.document.createElement("div"),c=u,m=[];null!==(a=r());)if("<"!==a[0])c.appendChild(t.document.createTextNode((s=a,f.innerHTML=s,s=f.textContent,f.textContent="",s)));else{if("/"===a[1]){m.length&&m[m.length-1]===a.substr(2).replace(">","")&&(m.pop(),c=c.parentNode);continue}var g,v=o(a.substr(1,a.length-2));if(v){g=t.document.createProcessingInstruction("timestamp",v),c.appendChild(g);continue}var y=a.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y)continue;if(!(g=i(y[1],y[3])))continue;if(!n(c,g))continue;if(y[2]){var b=y[2].split(".");b.forEach((function(t){var e=/^bg_/.test(t),r=e?t.slice(3):t;if(h.hasOwnProperty(r)){var n=e?"background-color":"color",i=h[r];g.style[n]=i}})),g.className=b.join(" ")}m.push(y[1]),c.appendChild(g),c=g}return u}var g=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function v(t){for(var e=0;e=r[0]&&t<=r[1])return!0}return!1}function y(t){var e=[],r="";if(!t||!t.childNodes)return"ltr";function n(t,e){for(var r=e.childNodes.length-1;r>=0;r--)t.push(e.childNodes[r])}function i(t){if(!t||!t.length)return null;var e=t.pop(),r=e.textContent||e.innerText;if(r){var a=r.match(/^.*(\n|\r)/);return a?(t.length=0,a[0]):r}return"ruby"===e.tagName?i(t):e.childNodes?(n(t,e),i(t)):void 0}for(n(e,t);r=i(e);)for(var a=0;a=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,r=e.textTrackList,n=0,i=0;il&&(f=f<0?-1:1,f*=Math.ceil(l/c)*c),o<0&&(f+=""===a.vertical?r.height:r.width,s=s.reverse()),i.move(h,f)}else{var p=i.lineHeight/r.height*100;switch(a.lineAlign){case"center":o-=p/2;break;case"end":o-=p}switch(a.vertical){case"":e.applyStyles({top:e.formatStyle(o,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(o,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(o,"%")})}s=["+y","-x","+x","-y"],i=new E(e)}var d=function(t,e){for(var i,a=new E(t),o=1,s=0;su&&(i=new E(t),o=u),t=new E(a)}return i||a}(i,s);e.move(d.toCSSCompatValues(r))}function S(){}b.prototype.applyStyles=function(t,e){for(var r in e=e||this.div,t)t.hasOwnProperty(r)&&(e.style[r]=t[r])},b.prototype.formatStyle=function(t,e){return 0===t?0:t+e},w.prototype=i(b.prototype),w.prototype.constructor=w,E.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},E.prototype.overlaps=function(t){return this.leftt.left&&this.topt.top},E.prototype.overlapsAny=function(t){for(var e=0;e=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},E.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.leftt.right;case"+y":return this.topt.bottom}},E.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},E.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},E.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,r=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,n=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||n,height:t.height||e,bottom:t.bottom||n+(t.height||e),width:t.width||r}},S.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!==typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},S.convertCueToDOMTree=function(t,e){return t&&e?m(t,e):null};S.processCues=function(t,e,r){if(!t||!e||!r)return null;for(;r.firstChild;)r.removeChild(r.firstChild);var n=t.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",r.appendChild(n),function(t){for(var e=0;e100)throw new Error("Position must be between 0 and 100.");m=t,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return g},set:function(t){var e=n(t);e?(g=e,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return v},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");v=t,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return y},set:function(t){var e=n(t);if(!e)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");y=e,this.hasBeenReset=!0}}}),this.displayState=void 0}i.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.exports=i},13710:function(t){var e={"":!0,up:!0};function r(t){return"number"===typeof t&&t>=0&&t<=100}t.exports=function(){var t=100,n=3,i=0,a=100,o=0,s=100,u="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!r(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return n},set:function(t){if("number"!==typeof t)throw new TypeError("Lines must be set to a number.");n=t}},regionAnchorY:{enumerable:!0,get:function(){return a},set:function(t){if(!r(t))throw new Error("RegionAnchorX must be between 0 and 100.");a=t}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(t){if(!r(t))throw new Error("RegionAnchorY must be between 0 and 100.");i=t}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(t){if(!r(t))throw new Error("ViewportAnchorY must be between 0 and 100.");s=t}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(t){if(!r(t))throw new Error("ViewportAnchorX must be between 0 and 100.");o=t}},scroll:{enumerable:!0,get:function(){return u},set:function(t){var r=function(t){return"string"===typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()}(t);!1===r?console.warn("Scroll: an invalid or illegal string was specified."):u=r}}})}},10434:function(t){function e(){return t.exports=e=Object.assign?Object.assign.bind():function(t){for(var e=1;e=6}function M(t){return"number"===typeof t}var z=["bytes","KB","MB","GB","TB","PB","EB"];function _(t,e,n,r){t=t||"",n.prefix&&(e<0&&(e*=-1,t+="-"),t+=n.prefix);var o=n.suffix||"",i=n.precision,a=n.round;if(n.byteScale){var c,u=r?n.byteScale:e;u>=0x1000000000000000?(e/=0x1000000000000000,c=6):u>=0x4000000000000?(e/=0x4000000000000,c=5):u>=1099511627776?(e/=1099511627776,c=4):u>=1073741824?(e/=1073741824,c=3):u>=1048576?(e/=1048576,c=2):u>=1024?(e/=1024,c=1):c=0,void 0===i&&void 0===a&&(e>=1023.5&&c=1e3?4:3),o=" "+z[c]}if(void 0!==i&&void 0!==a)throw Error("Use either round or precision, not both");if(!r&&(void 0!==i&&(e=e.toPrecision(i),n.zeros||(e=parseFloat(e))),void 0!==a))if(a<0){var l=Math.pow(10,-1*a);e=parseInt((1*e/l).toFixed(0))*l}else e=e.toFixed(a),n.zeros||(e=parseFloat(e));if(n.thousands||n.decimal){var f=(e=s(e)).split(".");e=f[0],n.thousands&&(e=e.replace(/\B(?=(\d{3})+(?!\d))/g,n.thousands)),f.length>1&&(e+=(n.decimal||".")+f[1])}return t+e+o}function C(t,e,n){return n in e?e[n]:n in t.options?t.options[n]:null}function k(t){var e,n,r;for(e=0;e25?r=25:r<10&&(r=10),n.scales.x.ticks.callback||(n.scales.x.ticks.callback=function(t){return(t=s(this.getLabelForValue(t))).length>r?t.substring(0,r-2)+"...":t})},W=function(e,n,r){var o={prefix:e.options.prefix,suffix:e.options.suffix,thousands:e.options.thousands,decimal:e.options.decimal,precision:e.options.precision,round:e.options.round,zeros:e.options.zeros};if(e.options.bytes){var i=e.data;"pie"===r&&(i=[{data:i}]);for(var a=0,s=0;sa&&(a=c.data[u][1]);for(var l=1;a>=1024;)l*=1024,a/=1024;o.byteScale=l}if("pie"!==r){var f=n.scales.y;"bar"===r&&(f=n.scales.x),o.byteScale&&(f.ticks.stepSize||(f.ticks.stepSize=o.byteScale/2),f.ticks.maxTicksLimit||(f.ticks.maxTicksLimit=4)),f.ticks.callback||(f.ticks.callback=function(t){return _("",t,o,!0)})}if(!n.plugins.tooltip.callbacks.label)if("scatter"===r)n.plugins.tooltip.callbacks.label=function(t){var e=t.dataset.label||"";return e&&(e+=": "),e+"("+t.label+", "+t.formattedValue+")"};else if("bubble"===r)n.plugins.tooltip.callbacks.label=function(t){var e=t.dataset.label||"";e&&(e+=": ");var n=t.raw;return e+"("+n.x+", "+n.y+", "+n.v+")"};else if("pie"===r)n.plugins.tooltip.callbacks.label=function(e){var n=e.label,r=": ";return t(n)?(n=n.slice())[0]+=r:n+=r,_(n,e.parsed,o)};else{var h="bar"===r?"x":"y";n.plugins.tooltip.callbacks.label=function(t){if(null!==t.parsed[h]){var e=t.dataset.label||"";return e&&(e+=": "),_(e,t.parsed[h],o)}}}},Y=f(o(A,O),S,E,P,D,L,F,I),U=function(e,n,r){var i,a=[],s=[],l=e.options.colors||T,f=!0,h=!0,p=!0,w=!0,M=!0,z=!0,_=e.data,k=0;if("bubble"===r)for(var A=0;A<_.length;A++)for(var O=_[A],S=0;Sk&&(k=O.data[S][2]);var E,P,D,R,j,L,F,I=[],H=[];if("bar"===r||"column"===r||"number"!==e.xtype&&"bubble"!==e.xtype){var W,Y,U=[];for(E=0;E<_.length;E++)for(D=_[E],P=0;P0){var et=(N(G)?u(G):s[0]).getTime(),nt=(N(tt)?u(tt):s[0]).getTime();for(E=1;Ent&&(nt=rt)}var ot,it=(nt-et)/864e5;if(!n.scales.x.time.unit&&(w||it>3650?(n.scales.x.time.unit="year",ot=365):p||it>300?(n.scales.x.time.unit="month",ot=30):f||it>10?(n.scales.x.time.unit="day",ot=1):M||it>.5?(n.scales.x.time.displayFormats={hour:"MMM d, h a"},n.scales.x.time.unit="hour",ot=1/24):z&&(n.scales.x.time.displayFormats={minute:"h:mm a"},n.scales.x.time.unit="minute",ot=1/24/60),ot&&it>0)){var at=e.element.offsetWidth;if(at>0){var st=Math.ceil(it/ot/(at/100));h&&1===ot&&(st=7*Math.ceil(st/7)),n.scales.x.time.stepSize=st}}n.scales.x.time.tooltipFormat||(f?n.scales.x.time.tooltipFormat="PP":M?n.scales.x.time.tooltipFormat="MMM d, h a":z&&(n.scales.x.time.tooltipFormat="h:mm a"))}return{labels:s,datasets:a}},V=function(t){this.name="chartjs",this.library=t};V.prototype.renderLineChart=function(t,e){var n={};!t.options.max&&k(t.data)&&(n.max=1);var r=Y(t,o(n,t.options));W(t,r,e);var i=U(t,r,e||"line");"number"===t.xtype?(r.scales.x.type=r.scales.x.type||"linear",r.scales.x.position=r.scales.x.position||"bottom"):r.scales.x.type="string"===t.xtype?"category":"time",this.drawChart(t,"line",i,r)},V.prototype.renderPieChart=function(t){var e=o({},A);t.options.donut&&(e.cutout="50%"),"legend"in t.options&&S(e,t.options.legend),t.options.title&&E(e,t.options.title),e=o(e,t.options.library||{}),W(t,e,"pie");for(var n=[],r=[],i=0;i\u25cf '+_(this.series.name+": ",this.y,o)+"
      "})},q=function(t){this.name="highcharts",this.library=t};q.prototype.renderLineChart=function(t,e){var n={};"areaspline"===(e=e||"spline")&&(n={plotOptions:{areaspline:{stacking:"normal"},area:{stacking:"normal"},series:{marker:{enabled:!1}}}}),!1===t.options.curve&&("areaspline"===e?e="area":"spline"===e&&(e="line"));var r,o,i,a=J(t,t.options,n);"number"===t.xtype?a.xAxis.type=a.xAxis.type||"linear":a.xAxis.type="string"===t.xtype?"category":"datetime",a.chart.type||(a.chart.type=e),Z(t,a,e);var s=t.data;for(o=0;o0)return!1;return!0}function mt(t){var e=t.element,n=document.createElement("a"),r=t.options.download;!0===r?r={}:"string"===typeof r&&(r={filename:r}),n.download=r.filename||"chart.png",n.style.position="absolute",n.style.top="20px",n.style.right="20px",n.style.zIndex=1e3,n.style.lineHeight="20px",n.target="_blank";var o=document.createElement("img");o.alt="Download",o.style.border="none",o.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAABCFBMVEUAAADMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMywEsqxAAAAV3RSTlMAAQIDBggJCgsMDQ4PERQaHB0eISIjJCouLzE0OTo/QUJHSUpLTU5PUllhYmltcHh5foWLjI+SlaCio6atr7S1t7m6vsHHyM7R2tze5Obo7fHz9ff5+/1hlxK2AAAA30lEQVQYGUXBhVYCQQBA0TdYWAt2d3d3YWAHyur7/z9xgD16Lw0DW+XKx+1GgX+FRzM3HWQWrHl5N/oapW5RPe0PkBu+UYeICvozTWZVK23Ao04B79oJrOsJDOoxkZoQPWgX29pHpCZEk7rEvQYiNSFq1UMqvlCjJkRBS1R8hb00Vb/TajtBL7nTHE1X1vyMQF732dQhyF2o6SAwrzP06iUQzvwsArlnzcOdrgBhJyHa1QOgO9U1GsKuvjUTjavliZYQ8nNPapG6sap/3nrIdJ6bOWzmX/fy0XVpfzZP3S8OJT3g9EEiJwAAAABJRU5ErkJggg==",n.appendChild(o),e.style.position="relative",t.__downloadAttached=!0,t.__enterEvent=xt(e,"mouseover",(function(o){var i=o.relatedTarget;i&&(i===this||wt(this,i))||!t.options.download||(n.href=t.toImage(r),e.appendChild(n))})),t.__leaveEvent=xt(e,"mouseout",(function(t){var e=t.relatedTarget;e&&(e===this||wt(this,e))||n.parentNode&&n.parentNode.removeChild(n)}))}function xt(t,e,n){if(t.addEventListener)return t.addEventListener(e,n,!1),n;var r=function(){return n.call(t,window.event)};return t.attachEvent("on"+e,r),r}function vt(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)}function wt(t,e){if(t===e)return!1;for(;e&&e!==t;)e=e.parentNode;return e===t}lt.prototype.renderLineChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n={};!1===t.options.curve&&(n.curveType="none"),!1===t.options.points&&(n.pointSize=0);var r=ct(t,t.options,n),o=e.createDataTable(t.data,t.xtype);e.drawChart(t,"LineChart",o,r)}))},lt.prototype.renderPieChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n={chartArea:{top:"10%",height:"80%"},legend:{}};t.options.colors&&(n.colors=t.options.colors),t.options.donut&&(n.pieHole=.5),"legend"in t.options&&et(n,t.options.legend),t.options.title&&nt(n,t.options.title);var r=o(o(tt,n),t.options.library||{}),i=new e.library.visualization.DataTable;i.addColumn("string",""),i.addColumn("number","Value"),i.addRows(t.data),e.drawChart(t,"PieChart",i,r)}))},lt.prototype.renderColumnChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n=ct(t,t.options),r=e.createDataTable(t.data,t.xtype);e.drawChart(t,"ColumnChart",r,n)}))},lt.prototype.renderBarChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n={hAxis:{gridlines:{color:"#ccc"}}},r=f(tt,et,nt,rt,ot,it,at,st)(t,t.options,n),o=e.createDataTable(t.data,t.xtype);e.drawChart(t,"BarChart",o,r)}))},lt.prototype.renderAreaChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n={isStacked:!0,pointSize:0,areaOpacity:.5},r=ct(t,t.options,n),o=e.createDataTable(t.data,t.xtype);e.drawChart(t,"AreaChart",o,r)}))},lt.prototype.renderGeoChart=function(t){var e=this;this.waitForLoaded(t,"geochart",(function(){var n={legend:"none",colorAxis:{colors:t.options.colors||["#f6c7b6","#ce502d"]}},r=o(o(tt,n),t.options.library||{}),i=new e.library.visualization.DataTable;i.addColumn("string",""),i.addColumn("number",t.options.label||"Value"),i.addRows(t.data),e.drawChart(t,"GeoChart",i,r)}))},lt.prototype.renderScatterChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n,r,o,i,a={},s=ct(t,t.options,a),c=t.data,u=[];for(n=0;n0?new Error("No charting library found for "+t):new Error("No charting libraries found - be sure to include one before your charts")}var Ht=function(t,e,n){var r;if("string"===typeof t&&(r=t,!(t=document.getElementById(t))))throw new Error("No element with id "+r);this.element=t,this.options=o(qt.options,n||{}),this.dataSource=e,qt.charts[t.id]=this,jt(this,e,!0),this.options.refresh&&this.startRefresh()};Ht.prototype.getElement=function(){return this.element},Ht.prototype.getDataSource=function(){return this.dataSource},Ht.prototype.getData=function(){return this.data},Ht.prototype.getOptions=function(){return this.options},Ht.prototype.getChartObject=function(){return this.chart},Ht.prototype.getAdapter=function(){return this.adapter},Ht.prototype.updateData=function(t,e){this.dataSource=t,e&&this.__updateOptions(e),jt(this,t,!0)},Ht.prototype.setOptions=function(t){this.__updateOptions(t),this.redraw()},Ht.prototype.redraw=function(){jt(this,this.rawData)},Ht.prototype.refreshData=function(){if("string"===typeof this.dataSource){var t=-1===this.dataSource.indexOf("?")?"?":"&";jt(this,this.dataSource+t+"_="+(new Date).getTime())}else"function"===typeof this.dataSource&&jt(this,this.dataSource)},Ht.prototype.startRefresh=function(){var t=this,e=this.options.refresh;if(e&&"string"!==typeof this.dataSource&&"function"!==typeof this.dataSource)throw new Error("Data source must be a URL or callback for refresh");if(!this.intervalId){if(!e)throw new Error("No refresh interval");this.intervalId=setInterval((function(){t.refreshData()}),1e3*e)}},Ht.prototype.stopRefresh=function(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)},Ht.prototype.toImage=function(t){if("chartjs"===this.adapter){if(t&&t.background&&"transparent"!==t.background){var e=this.chart.canvas,n=this.chart.ctx,r=document.createElement("canvas"),o=r.getContext("2d");return r.width=n.canvas.width,r.height=n.canvas.height,o.fillStyle=t.background,o.fillRect(0,0,r.width,r.height),o.drawImage(e,0,0),r.toDataURL("image/png")}return this.chart.toBase64Image()}throw new Error("Feature only available for Chart.js")},Ht.prototype.destroy=function(){this.destroyed=!0,this.stopRefresh(),this.__adapterObject&&this.__adapterObject.destroy(this),this.__enterEvent&&vt(this.element,"mouseover",this.__enterEvent),this.__leaveEvent&&vt(this.element,"mouseout",this.__leaveEvent)},Ht.prototype.__updateOptions=function(t){var e=t.refresh&&t.refresh!==this.options.refresh;this.options=o(qt.options,t),e&&(this.stopRefresh(),this.startRefresh())},Ht.prototype.__render=function(){this.data=this.__processData(),Bt(this.__chartName(),this)},Ht.prototype.__config=function(){return St};var Wt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return gt(this)},e.prototype.__chartName=function(){return"LineChart"},e}(Ht),Yt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return yt(this)},e.prototype.__chartName=function(){return"PieChart"},e}(Ht),Ut=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return gt(this,null,!0)},e.prototype.__chartName=function(){return"ColumnChart"},e}(Ht),Vt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return gt(this,null,!0)},e.prototype.__chartName=function(){return"BarChart"},e}(Ht),Qt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return gt(this)},e.prototype.__chartName=function(){return"AreaChart"},e}(Ht),Xt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return yt(this)},e.prototype.__chartName=function(){return"GeoChart"},e}(Ht),$t=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return gt(this,"number")},e.prototype.__chartName=function(){return"ScatterChart"},e}(Ht),Jt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return gt(this,"bubble")},e.prototype.__chartName=function(){return"BubbleChart"},e}(Ht),Zt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){var t,e=this.rawData;for(t=0;t("number"===typeof t||t instanceof Number)&&isFinite(+t);function u(t,e){return c(t)?t:e}function l(t,e){return"undefined"===typeof t?e:t}const f=(t,e)=>"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100:t/e,h=(t,e)=>"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function p(t,e,n){if(t&&"function"===typeof t.call)return t.apply(n,e)}function d(t,e,n,r){let o,i,c;if(a(t))if(i=t.length,r)for(o=i-1;o>=0;o--)e.call(n,t[o],o);else for(o=0;ot,x:t=>t.x,y:t=>t.y};function z(t,e){const n=M[e]||(M[e]=function(t){const e=function(t){const e=t.split("."),n=[];let r="";for(const o of e)r+=o,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}(e));return n(t)}function _(t){return t.charAt(0).toUpperCase()+t.slice(1)}const C=t=>"undefined"!==typeof t,k=t=>"function"===typeof t,A=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function O(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}const T=Math.PI,S=2*T,E=S+T,P=Number.POSITIVE_INFINITY,D=T/180,R=T/2,j=T/4,L=2*T/3,F=Math.log10,I=Math.sign;function B(t){const e=Math.round(t);t=W(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(F(t))),r=t/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function N(t){const e=[],n=Math.sqrt(t);let r;for(r=1;rt-e)).pop(),e}function H(t){return!isNaN(parseFloat(t))&&isFinite(t)}function W(t,e,n){return Math.abs(t-e)=t}function U(t,e,n){let r,o,i;for(r=0,o=t.length;rc&&u=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function nt(t,e,n){n=n||(n=>t[n]1;)r=i+o>>1,n(r)?i=r:o=r;return{lo:i,hi:o}}const rt=(t,e,n,r)=>nt(t,n,r?r=>t[r][e]<=n:r=>t[r][e]nt(t,n,(r=>t[r][e]>=n));function it(t,e,n){let r=0,o=t.length;for(;rr&&t[o-1]>n;)o--;return r>0||o{const n="_onData"+_(e),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const o=r.apply(this,e);return t._chartjs.listeners.forEach((t=>{"function"===typeof t[n]&&t[n](...e)})),o}})})))}function ct(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,o=r.indexOf(e);-1!==o&&r.splice(o,1),r.length>0||(at.forEach((e=>{delete t[e]})),delete t._chartjs)}function ut(t){const e=new Set;let n,r;for(n=0,r=t.length;nArray.prototype.slice.call(t));let o=!1,i=[];return function(...n){i=r(n),o||(o=!0,lt.call(window,(()=>{o=!1,t.apply(e,i)})))}}function ht(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}const pt=t=>"start"===t?"left":"end"===t?"right":"center",dt=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2,gt=(t,e,n,r)=>t===(r?"left":"right")?n:"center"===t?(e+n)/2:e;function yt(t,e,n){const r=e.length;let o=0,i=r;if(t._sorted){const{iScale:a,_parsed:s}=t,c=a.axis,{min:u,max:l,minDefined:f,maxDefined:h}=a.getUserBounds();f&&(o=G(Math.min(rt(s,a.axis,u).lo,n?r:rt(e,c,a.getPixelForValue(u)).lo),0,r-1)),i=h?G(Math.max(rt(s,a.axis,l,!0).hi+1,n?0:rt(e,c,a.getPixelForValue(l),!0).hi+1),o,r)-o:r-o}return{start:o,count:i}}function bt(t){const{xScale:e,yScale:n,_scaleRanges:r}=t,o={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!r)return t._scaleRanges=o,!0;const i=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,o),i}const mt=t=>0===t||1===t,xt=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*S/n),vt=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*S/n)+1,wt={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*R),easeOutSine:t=>Math.sin(t*R),easeInOutSine:t=>-.5*(Math.cos(T*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>mt(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>mt(t)?t:xt(t,.075,.3),easeOutElastic:t=>mt(t)?t:vt(t,.075,.3),easeInOutElastic(t){const e=.1125;return mt(t)?t:t<.5?.5*xt(2*t,e,.45):.5+.5*vt(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-wt.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*wt.easeInBounce(2*t):.5*wt.easeOutBounce(2*t-1)+.5};function Mt(t){return t+.5|0}const zt=(t,e,n)=>Math.max(Math.min(t,n),e);function _t(t){return zt(Mt(2.55*t),0,255)}function Ct(t){return zt(Mt(255*t),0,255)}function kt(t){return zt(Mt(t/2.55)/100,0,1)}function At(t){return zt(Mt(100*t),0,100)}const Ot={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Tt=[..."0123456789ABCDEF"],St=t=>Tt[15&t],Et=t=>Tt[(240&t)>>4]+Tt[15&t],Pt=t=>(240&t)>>4===(15&t);function Dt(t){var e=(t=>Pt(t.r)&&Pt(t.g)&&Pt(t.b)&&Pt(t.a))(t)?St:Et;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const Rt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function jt(t,e,n){const r=e*Math.min(n,1-n),o=(e,o=(e+t/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function Lt(t,e,n){const r=(r,o=(r+t/60)%6)=>n-n*e*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function Ft(t,e,n){const r=jt(t,1,.5);let o;for(e+n>1&&(o=1/(e+n),e*=o,n*=o),o=0;o<3;o++)r[o]*=1-e-n,r[o]+=e;return r}function It(t){const e=t.r/255,n=t.g/255,r=t.b/255,o=Math.max(e,n,r),i=Math.min(e,n,r),a=(o+i)/2;let s,c,u;return o!==i&&(u=o-i,c=a>.5?u/(2-o-i):u/(o+i),s=function(t,e,n,r,o){return t===o?(e-n)/r+(e>16&255,i>>8&255,255&i]}return t}(),Vt.transparent=[0,0,0,0]);const e=Vt[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const Xt=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const $t=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Jt=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Zt(t,e,n){if(t){let r=It(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,0===e?360:1)),r=Nt(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function qt(t,e){return t?Object.assign(e||{},t):t}function Kt(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Ct(t[3]))):(e=qt(t,{r:0,g:0,b:0,a:1})).a=Ct(e.a),e}function Gt(t){return"r"===t.charAt(0)?function(t){const e=Xt.exec(t);let n,r,o,i=255;if(e){if(e[7]!==n){const t=+e[7];i=e[8]?_t(t):zt(255*t,0,255)}return n=+e[1],r=+e[3],o=+e[5],n=255&(e[2]?_t(n):zt(n,0,255)),r=255&(e[4]?_t(r):zt(r,0,255)),o=255&(e[6]?_t(o):zt(o,0,255)),{r:n,g:r,b:o,a:i}}}(t):Wt(t)}class te{constructor(t){if(t instanceof te)return t;const e=typeof t;let n;"object"===e?n=Kt(t):"string"===e&&(n=function(t){var e,n=t.length;return"#"===t[0]&&(4===n||5===n?e={r:255&17*Ot[t[1]],g:255&17*Ot[t[2]],b:255&17*Ot[t[3]],a:5===n?17*Ot[t[4]]:255}:7!==n&&9!==n||(e={r:Ot[t[1]]<<4|Ot[t[2]],g:Ot[t[3]]<<4|Ot[t[4]],b:Ot[t[5]]<<4|Ot[t[6]],a:9===n?Ot[t[7]]<<4|Ot[t[8]]:255})),e}(t)||Qt(t)||Gt(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=qt(this._rgb);return t&&(t.a=kt(t.a)),t}set rgb(t){this._rgb=Kt(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${kt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?Dt(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=It(t),n=e[0],r=At(e[1]),o=At(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${o}%, ${kt(t.a)})`:`hsl(${n}, ${r}%, ${o}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,r=t.rgb;let o;const i=e===o?.5:e,a=2*i-1,s=n.a-r.a,c=((a*s===-1?a:(a+s)/(1+a*s))+1)/2;o=1-c,n.r=255&c*n.r+o*r.r+.5,n.g=255&c*n.g+o*r.g+.5,n.b=255&c*n.b+o*r.b+.5,n.a=i*n.a+(1-i)*r.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const r=Jt(kt(t.r)),o=Jt(kt(t.g)),i=Jt(kt(t.b));return{r:Ct($t(r+n*(Jt(kt(e.r))-r))),g:Ct($t(o+n*(Jt(kt(e.g))-o))),b:Ct($t(i+n*(Jt(kt(e.b))-i))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new te(this.rgb)}alpha(t){return this._rgb.a=Ct(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=Mt(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Zt(this._rgb,2,t),this}darken(t){return Zt(this._rgb,2,-t),this}saturate(t){return Zt(this._rgb,1,t),this}desaturate(t){return Zt(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=It(t);n[0]=Ht(n[0]+e),n=Nt(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function ee(t){return new te(t)}function ne(t){if(t&&"object"===typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function re(t){return ne(t)?t:ee(t)}function oe(t){return ne(t)?t:ee(t).saturate(.5).darken(.1).hexString()}const ie=Object.create(null),ae=Object.create(null);function se(t,e){if(!e)return t;const n=e.split(".");for(let r=0,o=n.length;rt.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>oe(e.backgroundColor),this.hoverBorderColor=(t,e)=>oe(e.borderColor),this.hoverColor=(t,e)=>oe(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return ce(this,t,e)}get(t){return se(this,t)}describe(t,e){return ce(ae,t,e)}override(t,e){return ce(ie,t,e)}route(t,e,n,r){const o=se(this,t),i=se(this,n),a="_"+e;Object.defineProperties(o,{[a]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=i[r];return s(t)?Object.assign({},e,t):l(t,e)},set(t){this[a]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function le(t,e,n,r,o){let i=e[o];return i||(i=e[o]=t.measureText(o).width,n.push(o)),i>r&&(r=i),r}function fe(t,e,n,r){let o=(r=r||{}).data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(o=r.data={},i=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let s=0;const c=n.length;let u,l,f,h,p;for(u=0;un.length){for(u=0;u0&&t.stroke()}}function ye(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.xe.top-n&&t.y0&&""!==s.strokeColor;let l,f;for(t.save(),t.font=o.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);i(e.rotation)||t.rotate(e.rotation);e.color&&(t.fillStyle=e.color);e.textAlign&&(t.textAlign=e.textAlign);e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,s),l=0;ll(t[n],t[e[n]]):e=>t[e]:()=>t;for(const a of o)n[a]=+i(a)||0;return n}function Oe(t){return Ae(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Te(t){return Ae(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Se(t){const e=Oe(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Ee(t,e){t=t||{},e=e||ue.font;let n=l(t.size,e.size);"string"===typeof n&&(n=parseInt(n,10));let r=l(t.style,e.style);r&&!(""+r).match(Ce)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");const o={family:l(t.family,e.family),lineHeight:ke(l(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:l(t.weight,e.weight),string:""};return o.string=function(t){return!t||i(t.size)||i(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function Pe(t,e,n,r){let o,i,s,c=!0;for(o=0,i=t.length;on&&0===t?0:t+e;return{min:a(r,-Math.abs(i)),max:a(o,i)}}function Re(t,e){return Object.assign(Object.create(t),e)}function je(t,e=[""],n=t,r,o=(()=>t[0])){C(r)||(r=Qe("_fallback",t));const i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:r,_getTarget:o,override:o=>je([o,...t],e,n,r)};return new Proxy(i,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,r)=>Ne(n,r,(()=>function(t,e,n,r){let o;for(const i of e)if(o=Qe(Ie(i,t),n),C(o))return Be(t,o)?Ue(n,r,t,o):o}(r,e,t,n))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Xe(t).includes(e),ownKeys:t=>Xe(t),set(t,e,n){const r=t._storage||(t._storage=o());return t[e]=r[e]=n,delete t._keys,!0}})}function Le(t,e,n,r){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Fe(t,r),setContext:e=>Le(t,e,n,r),override:o=>Le(t.override(o),e,n,r)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>Ne(t,e,(()=>function(t,e,n){const{_proxy:r,_context:o,_subProxy:i,_descriptors:c}=t;let u=r[e];k(u)&&c.isScriptable(e)&&(u=function(t,e,n,r){const{_proxy:o,_context:i,_subProxy:a,_stack:s}=n;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t),e=e(i,a||r),s.delete(t),Be(t,e)&&(e=Ue(o._scopes,o,t,e));return e}(e,u,t,n));a(u)&&u.length&&(u=function(t,e,n,r){const{_proxy:o,_context:i,_subProxy:a,_descriptors:c}=n;if(C(i.index)&&r(t))e=e[i.index%e.length];else if(s(e[0])){const n=e,r=o._scopes.filter((t=>t!==n));e=[];for(const s of n){const n=Ue(r,o,t,s);e.push(Le(n,i,a&&a[t],c))}}return e}(e,u,t,c.isIndexable));Be(e,u)&&(u=Le(u,o,i&&i[e],c));return u}(t,e,n))),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,r)=>(t[n]=r,delete e[n],!0)})}function Fe(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:n,indexable:r,isScriptable:k(n)?n:()=>n,isIndexable:k(r)?r:()=>r}}const Ie=(t,e)=>t?t+_(e):e,Be=(t,e)=>s(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Ne(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const r=n();return t[e]=r,r}function He(t,e,n){return k(t)?t(e,n):t}const We=(t,e)=>!0===t?e:"string"===typeof t?z(e,t):void 0;function Ye(t,e,n,r,o){for(const i of e){const e=We(n,i);if(e){t.add(e);const i=He(e._fallback,n,o);if(C(i)&&i!==n&&i!==r)return i}else if(!1===e&&C(r)&&n!==r)return null}return!1}function Ue(t,e,n,r){const o=e._rootScopes,i=He(e._fallback,n,r),c=[...t,...o],u=new Set;u.add(r);let l=Ve(u,c,n,i||n,r);return null!==l&&((!C(i)||i===n||(l=Ve(u,c,i,l,r),null!==l))&&je(Array.from(u),[""],o,i,(()=>function(t,e,n){const r=t._getTarget();e in r||(r[e]={});const o=r[e];if(a(o)&&s(n))return n;return o}(e,n,r))))}function Ve(t,e,n,r,o){for(;n;)n=Ye(t,e,n,r,o);return n}function Qe(t,e){for(const n of e){if(!n)continue;const e=n[t];if(C(e))return e}}function Xe(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function $e(t,e,n,r){const{iScale:o}=t,{key:i="r"}=this._parsing,a=new Array(r);let s,c,u,l;for(s=0,c=r;se"x"===t?"y":"x";function Ke(t,e,n,r){const o=t.skip?e:t,i=e,a=n.skip?e:n,s=J(i,o),c=J(a,i);let u=s/(s+c),l=c/(s+c);u=isNaN(u)?0:u,l=isNaN(l)?0:l;const f=r*u,h=r*l;return{previous:{x:i.x-f*(a.x-o.x),y:i.y-f*(a.y-o.y)},next:{x:i.x+h*(a.x-o.x),y:i.y+h*(a.y-o.y)}}}function Ge(t,e="x"){const n=qe(e),r=t.length,o=Array(r).fill(0),i=Array(r);let a,s,c,u=Ze(t,0);for(a=0;a!t.skip))),"monotone"===e.cubicInterpolationMode)Ge(t,o);else{let n=r?t[t.length-1]:t[0];for(i=0,a=t.length;iwindow.getComputedStyle(t,null);const sn=["top","right","bottom","left"];function cn(t,e,n){const r={};n=n?"-"+n:"";for(let o=0;o<4;o++){const i=sn[o];r[i]=parseFloat(t[e+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function un(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,o=an(n),i="border-box"===o.boxSizing,a=cn(o,"padding"),s=cn(o,"border","width"),{x:c,y:u,box:l}=function(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:o,offsetY:i}=r;let a,s,c=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(o,i,t.target))a=o,s=i;else{const t=e.getBoundingClientRect();a=r.clientX-t.left,s=r.clientY-t.top,c=!0}return{x:a,y:s,box:c}}(t,n),f=a.left+(l&&s.left),h=a.top+(l&&s.top);let{width:p,height:d}=e;return i&&(p-=a.width+s.width,d-=a.height+s.height),{x:Math.round((c-f)/p*n.width/r),y:Math.round((u-h)/d*n.height/r)}}const ln=t=>Math.round(10*t)/10;function fn(t,e,n,r){const o=an(t),i=cn(o,"margin"),a=on(o.maxWidth,t,"clientWidth")||P,s=on(o.maxHeight,t,"clientHeight")||P,c=function(t,e,n){let r,o;if(void 0===e||void 0===n){const i=rn(t);if(i){const t=i.getBoundingClientRect(),a=an(i),s=cn(a,"border","width"),c=cn(a,"padding");e=t.width-c.width-s.width,n=t.height-c.height-s.height,r=on(a.maxWidth,i,"clientWidth"),o=on(a.maxHeight,i,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:r||P,maxHeight:o||P}}(t,e,n);let{width:u,height:l}=c;if("content-box"===o.boxSizing){const t=cn(o,"border","width"),e=cn(o,"padding");u-=e.width+t.width,l-=e.height+t.height}return u=Math.max(0,u-i.width),l=Math.max(0,r?Math.floor(u/r):l-i.height),u=ln(Math.min(u,a,c.maxWidth)),l=ln(Math.min(l,s,c.maxHeight)),u&&!l&&(l=ln(u/2)),{width:u,height:l}}function hn(t,e,n){const r=e||1,o=Math.floor(t.height*r),i=Math.floor(t.width*r);t.height=o/r,t.width=i/r;const a=t.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==r||a.height!==o||a.width!==i)&&(t.currentDevicePixelRatio=r,a.height=o,a.width=i,t.ctx.setTransform(r,0,0,r,0,0),!0)}const pn=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}return t}();function dn(t,e){const n=function(t,e){return an(t).getPropertyValue(e)}(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function gn(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function yn(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:"middle"===r?n<.5?t.y:e.y:"after"===r?n<1?t.y:e.y:n>0?e.y:t.y}}function bn(t,e,n,r){const o={x:t.cp2x,y:t.cp2y},i={x:e.cp1x,y:e.cp1y},a=gn(t,o,n),s=gn(o,i,n),c=gn(i,e,n),u=gn(a,s,n),l=gn(s,c,n);return gn(u,l,n)}const mn=new Map;function xn(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let r=mn.get(n);return r||(r=new Intl.NumberFormat(t,e),mn.set(n,r)),r}(e,n).format(t)}function vn(t,e,n){return t?function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,n):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function wn(t,e){let n,r;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function Mn(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function zn(t){return"angle"===t?{between:K,compare:Z,normalize:q}:{between:et,compare:(t,e)=>t-e,normalize:t=>t}}function _n({start:t,end:e,count:n,loop:r,style:o}){return{start:t%n,end:e%n,loop:r&&(e-t+1)%n===0,style:o}}function Cn(t,e,n){if(!n)return[t];const{property:r,start:o,end:i}=n,a=e.length,{compare:s,between:c,normalize:u}=zn(r),{start:l,end:f,loop:h,style:p}=function(t,e,n){const{property:r,start:o,end:i}=n,{between:a,normalize:s}=zn(r),c=e.length;let u,l,{start:f,end:h,loop:p}=t;if(p){for(f+=c,h+=c,u=0,l=c;um||c(o,b,g)&&0!==s(o,b),w=()=>!m||0===s(i,g)||c(i,b,g);for(let M=l,z=l;M<=f;++M)y=e[M%a],y.skip||(g=u(y[r]),g!==b&&(m=c(g,o,i),null===x&&v()&&(x=0===s(g,o)?M:z),null!==x&&w()&&(d.push(_n({start:x,end:M,loop:h,count:a,style:p})),x=null),z=M,b=g));return null!==x&&d.push(_n({start:x,end:f,loop:h,count:a,style:p})),d}function kn(t,e){const n=[],r=t.segments;for(let o=0;oo&&t[i%e].skip;)i--;return i%=e,{start:o,end:i}}(n,o,i,r);if(!0===r)return On(t,[{start:a,end:s,loop:i}],n,e);return On(t,function(t,e,n,r){const o=t.length,i=[];let a,s=e,c=t[e];for(a=e+1;a<=n;++a){const n=t[a%o];n.skip||n.stop?c.skip||(r=!1,i.push({start:e%o,end:(a-1)%o,loop:r}),e=s=n.stop?a:null):(s=a,c.skip&&(e=a)),c=n}return null!==s&&i.push({start:e%o,end:s%o,loop:r}),i}(n,a,so&&a.push(e.substring(o,r.index));var s=t.props.hrefDecorator(r.url),n=t.props.textDecorator(r.text),u=t.props.componentDecorator(s,n,i);a.push(u),o=r.lastIndex})),e.length>o&&a.push(e.substring(o)),1===a.length?a[0]:a}},{key:"parse",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"===typeof e?this.parseString(e):o.isValidElement(e)&&"a"!==e.type&&"button"!==e.type?o.cloneElement(e,{key:r},this.parse(e.props.children)):Array.isArray(e)?e.map((function(e,r){return t.parse(e,r)})):e}},{key:"render",value:function(){return o.createElement(o.Fragment,null,this.parse(this.props.children))}}]),t}(o.Component);p.defaultProps={componentDecorator:i.default,hrefDecorator:s.default,matchDecorator:n.default,textDecorator:u.default},t.default=p},29872:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(67294));t.default=function(e,t,r){return a.createElement("a",{href:e,key:r},t)}},77599:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e}},86704:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(r(12166)),o=i(r(10248));function i(e){return e&&e.__esModule?e:{default:e}}var s=new a.default;s.tlds(o.default),t.default=function(e){return s.match(e)}},1627:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e}},53731:function(e,t,r){"use strict";var a,o=r(79186),i=(a=o)&&a.__esModule?a:{default:a};t.Z=i.default},12166:function(e,t,r){"use strict";function a(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){t&&Object.keys(t).forEach((function(r){e[r]=t[r]}))})),e}function o(e){return Object.prototype.toString.call(e)}function i(e){return"[object Function]"===o(e)}function s(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var n={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var u={"http:":{validate:function(e,t,r){var a=e.slice(t);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(a)?a.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){var a=e.slice(t);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(a)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:a.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){var a=e.slice(t);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(a)?a.match(r.re.mailto)[0].length:0}}},c="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function l(e){var t=e.re=r(73216)(e.__opts__),a=e.__tlds__.slice();function n(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||a.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),a.push(t.src_xn),t.src_tlds=a.join("|"),t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),"i");var u=[];function c(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var r=e.__schemas__[t];if(null!==r){var a={validate:null,link:null};if(e.__compiled__[t]=a,"[object Object]"===o(r))return!function(e){return"[object RegExp]"===o(e)}(r.validate)?i(r.validate)?a.validate=r.validate:c(t,r):a.validate=function(e){return function(t,r){var a=t.slice(r);return e.test(a)?a.match(e)[0].length:0}}(r.validate),void(i(r.normalize)?a.normalize=r.normalize:r.normalize?c(t,r):a.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===o(e)}(r)?c(t,r):u.push(t)}})),u.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var l=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(s).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+l+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+l+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function _(e,t){var r=e.__index__,a=e.__last_index__,o=e.__text_cache__.slice(r,a);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=a+t,this.raw=o,this.text=o,this.url=o}function p(e,t){var r=new _(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function h(e,t){if(!(this instanceof h))return new h(e,t);var r;t||(r=e,Object.keys(r||{}).reduce((function(e,t){return e||n.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=a({},n,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=a({},u,e),this.__compiled__={},this.__tlds__=c,this.__tlds_replaced__=!1,this.re={},l(this)}h.prototype.add=function(e,t){return this.__schemas__[e]=t,l(this),this},h.prototype.set=function(e){return this.__opts__=a(this.__opts__,e),this},h.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,r,a,o,i,s,n,u;if(this.re.schema_test.test(e))for((n=this.re.schema_search).lastIndex=0;null!==(t=n.exec(e));)if(o=this.testSchemaAt(e,t[2],n.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||u=0&&null!==(a=e.match(this.re.email_fuzzy))&&(i=a.index+a[1].length,s=a.index+a[0].length,(this.__index__<0||ithis.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=s)),this.__index__>=0},h.prototype.pretest=function(e){return this.re.pretest.test(e)},h.prototype.testSchemaAt=function(e,t,r){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,r,this):0},h.prototype.match=function(e){var t=0,r=[];this.__index__>=0&&this.__text_cache__===e&&(r.push(p(this,t)),t=this.__last_index__);for(var a=t?e.slice(t):e;this.test(a);)r.push(p(this,t)),a=a.slice(this.__last_index__),t+=this.__last_index__;return r.length?r:null},h.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,r){return e!==r[t-1]})).reverse(),l(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,l(this),this)},h.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},h.prototype.onCompile=function(){},e.exports=h},73216:function(e,t,r){"use strict";e.exports=function(e){var t={};t.src_Any=r(29369).source,t.src_Cc=r(99413).source,t.src_Z=r(35045).source,t.src_P=r(73189).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><\uff5c]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><\uff5c]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+"[><\uff5c]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><\uff5c]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},99413:function(e){e.exports=/[\0-\x1F\x7F-\x9F]/},73189:function(e){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},35045:function(e){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},29369:function(e){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},10248:function(e){"use strict";e.exports=JSON.parse('["aaa","aarp","abarth","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","adac","ads","adult","ae","aeg","aero","aetna","af","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alfaromeo","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","avianca","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","bananarepublic","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","bugatti","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","cancerresearch","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","cat","catering","catholic","cba","cbn","cbre","cbs","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","cityeats","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","comcast","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cookingchannel","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dabur","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dunlop","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","etisalat","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fiat","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","foodnetwork","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontdoor","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","guardian","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hgtv","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hoteles","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerrylogistics","kerryproperties","kfh","kg","kh","ki","kia","kids","kim","kinder","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","lancaster","lancia","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","linde","link","lipsy","live","living","lk","llc","llp","loan","loans","locker","locus","loft","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","luxe","luxury","lv","ly","ma","macys","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","maserati","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","music","mutual","mv","mw","mx","my","mz","na","nab","nagoya","name","natura","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","northwesternmutual","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","office","okinawa","olayan","olayangroup","oldnavy","ollo","om","omega","one","ong","onl","online","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","passagens","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","racing","radio","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","ro","rocher","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sb","sbi","sbs","sc","sca","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","sd","se","search","seat","secure","security","seek","select","sener","services","ses","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shaw","shell","shia","shiksha","shoes","shop","shopping","shouji","show","showtime","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tiffany","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelchannel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","verm\xf6gensberater","verm\xf6gensberatung","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volkswagen","volvo","vote","voting","voto","voyage","vu","vuelos","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xfinity","xihuan","xin","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw","\u03b5\u03bb","\u03b5\u03c5","\u0431\u0433","\u0431\u0435\u043b","\u0434\u0435\u0442\u0438","\u0435\u044e","\u043a\u0430\u0442\u043e\u043b\u0438\u043a","\u043a\u043e\u043c","\u043c\u043a\u0434","\u043c\u043e\u043d","\u043c\u043e\u0441\u043a\u0432\u0430","\u043e\u043d\u043b\u0430\u0439\u043d","\u043e\u0440\u0433","\u0440\u0443\u0441","\u0440\u0444","\u0441\u0430\u0439\u0442","\u0441\u0440\u0431","\u0443\u043a\u0440","\u049b\u0430\u0437","\u0570\u0561\u0575","\u05d9\u05e9\u05e8\u05d0\u05dc","\u05e7\u05d5\u05dd","\u0627\u0628\u0648\u0638\u0628\u064a","\u0627\u062a\u0635\u0627\u0644\u0627\u062a","\u0627\u0631\u0627\u0645\u0643\u0648","\u0627\u0644\u0627\u0631\u062f\u0646","\u0627\u0644\u0628\u062d\u0631\u064a\u0646","\u0627\u0644\u062c\u0632\u0627\u0626\u0631","\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629","\u0627\u0644\u0639\u0644\u064a\u0627\u0646","\u0627\u0644\u0645\u063a\u0631\u0628","\u0627\u0645\u0627\u0631\u0627\u062a","\u0627\u06cc\u0631\u0627\u0646","\u0628\u0627\u0631\u062a","\u0628\u0627\u0632\u0627\u0631","\u0628\u064a\u062a\u0643","\u0628\u06be\u0627\u0631\u062a","\u062a\u0648\u0646\u0633","\u0633\u0648\u062f\u0627\u0646","\u0633\u0648\u0631\u064a\u0629","\u0634\u0628\u0643\u0629","\u0639\u0631\u0627\u0642","\u0639\u0631\u0628","\u0639\u0645\u0627\u0646","\u0641\u0644\u0633\u0637\u064a\u0646","\u0642\u0637\u0631","\u0643\u0627\u062b\u0648\u0644\u064a\u0643","\u0643\u0648\u0645","\u0645\u0635\u0631","\u0645\u0644\u064a\u0633\u064a\u0627","\u0645\u0648\u0631\u064a\u062a\u0627\u0646\u064a\u0627","\u0645\u0648\u0642\u0639","\u0647\u0645\u0631\u0627\u0647","\u067e\u0627\u06a9\u0633\u062a\u0627\u0646","\u0680\u0627\u0631\u062a","\u0915\u0949\u092e","\u0928\u0947\u091f","\u092d\u093e\u0930\u0924","\u092d\u093e\u0930\u0924\u092e\u094d","\u092d\u093e\u0930\u094b\u0924","\u0938\u0902\u0917\u0920\u0928","\u09ac\u09be\u0982\u09b2\u09be","\u09ad\u09be\u09b0\u09a4","\u09ad\u09be\u09f0\u09a4","\u0a2d\u0a3e\u0a30\u0a24","\u0aad\u0abe\u0ab0\u0aa4","\u0b2d\u0b3e\u0b30\u0b24","\u0b87\u0ba8\u0bcd\u0ba4\u0bbf\u0baf\u0bbe","\u0b87\u0bb2\u0b99\u0bcd\u0b95\u0bc8","\u0b9a\u0bbf\u0b99\u0bcd\u0b95\u0baa\u0bcd\u0baa\u0bc2\u0bb0\u0bcd","\u0c2d\u0c3e\u0c30\u0c24\u0c4d","\u0cad\u0cbe\u0cb0\u0ca4","\u0d2d\u0d3e\u0d30\u0d24\u0d02","\u0dbd\u0d82\u0d9a\u0dcf","\u0e04\u0e2d\u0e21","\u0e44\u0e17\u0e22","\u0ea5\u0eb2\u0ea7","\u10d2\u10d4","\u307f\u3093\u306a","\u30a2\u30de\u30be\u30f3","\u30af\u30e9\u30a6\u30c9","\u30b0\u30fc\u30b0\u30eb","\u30b3\u30e0","\u30b9\u30c8\u30a2","\u30bb\u30fc\u30eb","\u30d5\u30a1\u30c3\u30b7\u30e7\u30f3","\u30dd\u30a4\u30f3\u30c8","\u4e16\u754c","\u4e2d\u4fe1","\u4e2d\u56fd","\u4e2d\u570b","\u4e2d\u6587\u7f51","\u4e9a\u9a6c\u900a","\u4f01\u4e1a","\u4f5b\u5c71","\u4fe1\u606f","\u5065\u5eb7","\u516b\u5366","\u516c\u53f8","\u516c\u76ca","\u53f0\u6e7e","\u53f0\u7063","\u5546\u57ce","\u5546\u5e97","\u5546\u6807","\u5609\u91cc","\u5609\u91cc\u5927\u9152\u5e97","\u5728\u7ebf","\u5927\u62ff","\u5929\u4e3b\u6559","\u5a31\u4e50","\u5bb6\u96fb","\u5e7f\u4e1c","\u5fae\u535a","\u6148\u5584","\u6211\u7231\u4f60","\u624b\u673a","\u62db\u8058","\u653f\u52a1","\u653f\u5e9c","\u65b0\u52a0\u5761","\u65b0\u95fb","\u65f6\u5c1a","\u66f8\u7c4d","\u673a\u6784","\u6de1\u9a6c\u9521","\u6e38\u620f","\u6fb3\u9580","\u70b9\u770b","\u79fb\u52a8","\u7ec4\u7ec7\u673a\u6784","\u7f51\u5740","\u7f51\u5e97","\u7f51\u7ad9","\u7f51\u7edc","\u8054\u901a","\u8bfa\u57fa\u4e9a","\u8c37\u6b4c","\u8d2d\u7269","\u901a\u8ca9","\u96c6\u56e2","\u96fb\u8a0a\u76c8\u79d1","\u98de\u5229\u6d66","\u98df\u54c1","\u9910\u5385","\u9999\u683c\u91cc\u62c9","\u9999\u6e2f","\ub2f7\ub137","\ub2f7\ucef4","\uc0bc\uc131","\ud55c\uad6d"]')}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/29107295-4a69275373f23f88.js b/static/web/_next/static/chunks/29107295-4a69275373f23f88.js deleted file mode 100644 index 9854e52e8..000000000 --- a/static/web/_next/static/chunks/29107295-4a69275373f23f88.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3662],{96486:function(n,t,r){var e;n=r.nmd(n),function(){var u,i="Expected a function",o="__lodash_hash_undefined__",f="__lodash_placeholder__",a=16,c=32,l=64,s=128,h=256,p=1/0,v=9007199254740991,_=NaN,g=4294967295,y=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",c],["partialRight",l],["rearg",h]],d="[object Arguments]",b="[object Array]",w="[object Boolean]",m="[object Date]",x="[object Error]",j="[object Function]",A="[object GeneratorFunction]",k="[object Map]",O="[object Number]",I="[object Object]",E="[object Promise]",R="[object RegExp]",z="[object Set]",S="[object String]",C="[object Symbol]",W="[object WeakMap]",L="[object ArrayBuffer]",U="[object DataView]",B="[object Float32Array]",T="[object Float64Array]",$="[object Int8Array]",D="[object Int16Array]",N="[object Int32Array]",M="[object Uint8Array]",F="[object Uint8ClampedArray]",P="[object Uint16Array]",q="[object Uint32Array]",Z=/\b__p \+= '';/g,K=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,J=RegExp(G.source),Y=RegExp(H.source),Q=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rn=/^\w*$/,en=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,un=/[\\^$.*+?()[\]{}|]/g,on=RegExp(un.source),fn=/^\s+/,an=/\s/,cn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ln=/\{\n\/\* \[wrapped with (.+)\] \*/,sn=/,? & /,hn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,vn=/\\(\\)?/g,_n=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gn=/\w*$/,yn=/^[-+]0x[0-9a-f]+$/i,dn=/^0b[01]+$/i,bn=/^\[object .+?Constructor\]$/,wn=/^0o[0-7]+$/i,mn=/^(?:0|[1-9]\d*)$/,xn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jn=/($^)/,An=/['\n\r\u2028\u2029\\]/g,kn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",On="\\u2700-\\u27bf",In="a-z\\xdf-\\xf6\\xf8-\\xff",En="A-Z\\xc0-\\xd6\\xd8-\\xde",Rn="\\ufe0e\\ufe0f",zn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Sn="['\u2019]",Cn="[\\ud800-\\udfff]",Wn="["+zn+"]",Ln="["+kn+"]",Un="\\d+",Bn="[\\u2700-\\u27bf]",Tn="["+In+"]",$n="[^\\ud800-\\udfff"+zn+Un+On+In+En+"]",Dn="\\ud83c[\\udffb-\\udfff]",Nn="[^\\ud800-\\udfff]",Mn="(?:\\ud83c[\\udde6-\\uddff]){2}",Fn="[\\ud800-\\udbff][\\udc00-\\udfff]",Pn="["+En+"]",qn="(?:"+Tn+"|"+$n+")",Zn="(?:"+Pn+"|"+$n+")",Kn="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Vn="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Gn="(?:"+Ln+"|"+Dn+")"+"?",Hn="[\\ufe0e\\ufe0f]?",Jn=Hn+Gn+("(?:\\u200d(?:"+[Nn,Mn,Fn].join("|")+")"+Hn+Gn+")*"),Yn="(?:"+[Bn,Mn,Fn].join("|")+")"+Jn,Qn="(?:"+[Nn+Ln+"?",Ln,Mn,Fn,Cn].join("|")+")",Xn=RegExp(Sn,"g"),nt=RegExp(Ln,"g"),tt=RegExp(Dn+"(?="+Dn+")|"+Qn+Jn,"g"),rt=RegExp([Pn+"?"+Tn+"+"+Kn+"(?="+[Wn,Pn,"$"].join("|")+")",Zn+"+"+Vn+"(?="+[Wn,Pn+qn,"$"].join("|")+")",Pn+"?"+qn+"+"+Kn,Pn+"+"+Vn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Un,Yn].join("|"),"g"),et=RegExp("[\\u200d\\ud800-\\udfff"+kn+Rn+"]"),ut=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ot=-1,ft={};ft[B]=ft[T]=ft[$]=ft[D]=ft[N]=ft[M]=ft[F]=ft[P]=ft[q]=!0,ft[d]=ft[b]=ft[L]=ft[w]=ft[U]=ft[m]=ft[x]=ft[j]=ft[k]=ft[O]=ft[I]=ft[R]=ft[z]=ft[S]=ft[W]=!1;var at={};at[d]=at[b]=at[L]=at[U]=at[w]=at[m]=at[B]=at[T]=at[$]=at[D]=at[N]=at[k]=at[O]=at[I]=at[R]=at[z]=at[S]=at[C]=at[M]=at[F]=at[P]=at[q]=!0,at[x]=at[j]=at[W]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lt=parseFloat,st=parseInt,ht="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,pt="object"==typeof self&&self&&self.Object===Object&&self,vt=ht||pt||Function("return this")(),_t=t&&!t.nodeType&&t,gt=_t&&n&&!n.nodeType&&n,yt=gt&>.exports===_t,dt=yt&&ht.process,bt=function(){try{var n=gt&>.require&>.require("util").types;return n||dt&&dt.binding&&dt.binding("util")}catch(t){}}(),wt=bt&&bt.isArrayBuffer,mt=bt&&bt.isDate,xt=bt&&bt.isMap,jt=bt&&bt.isRegExp,At=bt&&bt.isSet,kt=bt&&bt.isTypedArray;function Ot(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function It(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u-1}function Wt(n,t,r){for(var e=-1,u=null==n?0:n.length;++e-1;);return r}function rr(n,t){for(var r=n.length;r--&&Ft(t,n[r],0)>-1;);return r}function er(n,t){for(var r=n.length,e=0;r--;)n[r]===t&&++e;return e}var ur=Vt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),ir=Vt({"&":"&","<":"<",">":">",'"':""","'":"'"});function or(n){return"\\"+ct[n]}function fr(n){return et.test(n)}function ar(n){var t=-1,r=Array(n.size);return n.forEach((function(n,e){r[++t]=[e,n]})),r}function cr(n,t){return function(r){return n(t(r))}}function lr(n,t){for(var r=-1,e=n.length,u=0,i=[];++r",""":'"',"'":"'"});var yr=function n(t){var r=(t=null==t?vt:yr.defaults(vt.Object(),t,yr.pick(vt,it))).Array,e=t.Date,an=t.Error,kn=t.Function,On=t.Math,In=t.Object,En=t.RegExp,Rn=t.String,zn=t.TypeError,Sn=r.prototype,Cn=kn.prototype,Wn=In.prototype,Ln=t["__core-js_shared__"],Un=Cn.toString,Bn=Wn.hasOwnProperty,Tn=0,$n=function(){var n=/[^.]+$/.exec(Ln&&Ln.keys&&Ln.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),Dn=Wn.toString,Nn=Un.call(In),Mn=vt._,Fn=En("^"+Un.call(Bn).replace(un,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pn=yt?t.Buffer:u,qn=t.Symbol,Zn=t.Uint8Array,Kn=Pn?Pn.allocUnsafe:u,Vn=cr(In.getPrototypeOf,In),Gn=In.create,Hn=Wn.propertyIsEnumerable,Jn=Sn.splice,Yn=qn?qn.isConcatSpreadable:u,Qn=qn?qn.iterator:u,tt=qn?qn.toStringTag:u,et=function(){try{var n=hi(In,"defineProperty");return n({},"",{}),n}catch(t){}}(),ct=t.clearTimeout!==vt.clearTimeout&&t.clearTimeout,ht=e&&e.now!==vt.Date.now&&e.now,pt=t.setTimeout!==vt.setTimeout&&t.setTimeout,_t=On.ceil,gt=On.floor,dt=In.getOwnPropertySymbols,bt=Pn?Pn.isBuffer:u,Dt=t.isFinite,Vt=Sn.join,dr=cr(In.keys,In),br=On.max,wr=On.min,mr=e.now,xr=t.parseInt,jr=On.random,Ar=Sn.reverse,kr=hi(t,"DataView"),Or=hi(t,"Map"),Ir=hi(t,"Promise"),Er=hi(t,"Set"),Rr=hi(t,"WeakMap"),zr=hi(In,"create"),Sr=Rr&&new Rr,Cr={},Wr=Di(kr),Lr=Di(Or),Ur=Di(Ir),Br=Di(Er),Tr=Di(Rr),$r=qn?qn.prototype:u,Dr=$r?$r.valueOf:u,Nr=$r?$r.toString:u;function Mr(n){if(ef(n)&&!Ko(n)&&!(n instanceof Zr)){if(n instanceof qr)return n;if(Bn.call(n,"__wrapped__"))return Ni(n)}return new qr(n)}var Fr=function(){function n(){}return function(t){if(!rf(t))return{};if(Gn)return Gn(t);n.prototype=t;var r=new n;return n.prototype=u,r}}();function Pr(){}function qr(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=u}function Zr(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Kr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t=t?n:t)),n}function ce(n,t,r,e,i,o){var f,a=1&t,c=2&t,l=4&t;if(r&&(f=i?r(n,e,i,o):r(n)),f!==u)return f;if(!rf(n))return n;var s=Ko(n);if(s){if(f=function(n){var t=n.length,r=new n.constructor(t);t&&"string"==typeof n[0]&&Bn.call(n,"index")&&(r.index=n.index,r.input=n.input);return r}(n),!a)return zu(n,f)}else{var h=_i(n),p=h==j||h==A;if(Jo(n))return Au(n,a);if(h==I||h==d||p&&!i){if(f=c||p?{}:yi(n),!a)return c?function(n,t){return Su(n,vi(n),t)}(n,function(n,t){return n&&Su(t,Uf(t),n)}(f,n)):function(n,t){return Su(n,pi(n),t)}(n,ie(f,n))}else{if(!at[h])return i?n:{};f=function(n,t,r){var e=n.constructor;switch(t){case L:return ku(n);case w:case m:return new e(+n);case U:return function(n,t){var r=t?ku(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}(n,r);case B:case T:case $:case D:case N:case M:case F:case P:case q:return Ou(n,r);case k:return new e;case O:case S:return new e(n);case R:return function(n){var t=new n.constructor(n.source,gn.exec(n));return t.lastIndex=n.lastIndex,t}(n);case z:return new e;case C:return u=n,Dr?In(Dr.call(u)):{}}var u}(n,h,a)}}o||(o=new Jr);var v=o.get(n);if(v)return v;o.set(n,f),cf(n)?n.forEach((function(e){f.add(ce(e,t,r,e,n,o))})):uf(n)&&n.forEach((function(e,u){f.set(u,ce(e,t,r,u,n,o))}));var _=s?u:(l?c?ii:ui:c?Uf:Lf)(n);return Et(_||n,(function(e,u){_&&(e=n[u=e]),re(f,u,ce(e,t,r,u,n,o))})),f}function le(n,t,r){var e=r.length;if(null==n)return!e;for(n=In(n);e--;){var i=r[e],o=t[i],f=n[i];if(f===u&&!(i in n)||!o(f))return!1}return!0}function se(n,t,r){if("function"!=typeof n)throw new zn(i);return Ci((function(){n.apply(u,r)}),t)}function he(n,t,r,e){var u=-1,i=Ct,o=!0,f=n.length,a=[],c=t.length;if(!f)return a;r&&(t=Lt(t,Qt(r))),e?(i=Wt,o=!1):t.length>=200&&(i=nr,o=!1,t=new Hr(t));n:for(;++u-1},Vr.prototype.set=function(n,t){var r=this.__data__,e=ee(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},Gr.prototype.clear=function(){this.size=0,this.__data__={hash:new Kr,map:new(Or||Vr),string:new Kr}},Gr.prototype.delete=function(n){var t=li(this,n).delete(n);return this.size-=t?1:0,t},Gr.prototype.get=function(n){return li(this,n).get(n)},Gr.prototype.has=function(n){return li(this,n).has(n)},Gr.prototype.set=function(n,t){var r=li(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Hr.prototype.add=Hr.prototype.push=function(n){return this.__data__.set(n,o),this},Hr.prototype.has=function(n){return this.__data__.has(n)},Jr.prototype.clear=function(){this.__data__=new Vr,this.size=0},Jr.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},Jr.prototype.get=function(n){return this.__data__.get(n)},Jr.prototype.has=function(n){return this.__data__.has(n)},Jr.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Vr){var e=r.__data__;if(!Or||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Gr(e)}return r.set(n,t),this.size=r.size,this};var pe=Lu(me),ve=Lu(xe,!0);function _e(n,t){var r=!0;return pe(n,(function(n,e,u){return r=!!t(n,e,u)})),r}function ge(n,t,r){for(var e=-1,i=n.length;++e0&&r(f)?t>1?de(f,t-1,r,e,u):Ut(u,f):e||(u[u.length]=f)}return u}var be=Uu(),we=Uu(!0);function me(n,t){return n&&be(n,t,Lf)}function xe(n,t){return n&&we(n,t,Lf)}function je(n,t){return St(t,(function(t){return Xo(n[t])}))}function Ae(n,t){for(var r=0,e=(t=wu(t,n)).length;null!=n&&rt}function Ee(n,t){return null!=n&&Bn.call(n,t)}function Re(n,t){return null!=n&&t in In(n)}function ze(n,t,e){for(var i=e?Wt:Ct,o=n[0].length,f=n.length,a=f,c=r(f),l=1/0,s=[];a--;){var h=n[a];a&&t&&(h=Lt(h,Qt(t))),l=wr(h.length,l),c[a]=!e&&(t||o>=120&&h.length>=120)?new Hr(a&&h):u}h=n[0];var p=-1,v=c[0];n:for(;++p=f?a:a*("desc"==r[e]?-1:1)}return n.index-t.index}(n,t,r)}))}function Ke(n,t,r){for(var e=-1,u=t.length,i={};++e-1;)f!==n&&Jn.call(f,a,1),Jn.call(n,a,1);return n}function Ge(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;bi(u)?Jn.call(n,u,1):hu(n,u)}}return n}function He(n,t){return n+gt(jr()*(t-n+1))}function Je(n,t){var r="";if(!n||t<1||t>v)return r;do{t%2&&(r+=n),(t=gt(t/2))&&(n+=n)}while(t);return r}function Ye(n,t){return Wi(Ii(n,t,oa),n+"")}function Qe(n){return Qr(Pf(n))}function Xe(n,t){var r=Pf(n);return Bi(r,ae(t,0,r.length))}function nu(n,t,r,e){if(!rf(n))return n;for(var i=-1,o=(t=wu(t,n)).length,f=o-1,a=n;null!=a&&++ii?0:i+t),(e=e>i?i:e)<0&&(e+=i),i=t>e?0:e-t>>>0,t>>>=0;for(var o=r(i);++u>>1,o=n[i];null!==o&&!sf(o)&&(r?o<=t:o=200){var c=t?null:Ju(n);if(c)return sr(c);o=!1,u=nr,a=new Hr}else a=t?[]:f;n:for(;++e=e?n:uu(n,t,r)}var ju=ct||function(n){return vt.clearTimeout(n)};function Au(n,t){if(t)return n.slice();var r=n.length,e=Kn?Kn(r):new n.constructor(r);return n.copy(e),e}function ku(n){var t=new n.constructor(n.byteLength);return new Zn(t).set(new Zn(n)),t}function Ou(n,t){var r=t?ku(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function Iu(n,t){if(n!==t){var r=n!==u,e=null===n,i=n===n,o=sf(n),f=t!==u,a=null===t,c=t===t,l=sf(t);if(!a&&!l&&!o&&n>t||o&&f&&c&&!a&&!l||e&&f&&c||!r&&c||!i)return 1;if(!e&&!o&&!l&&n1?r[i-1]:u,f=i>2?r[2]:u;for(o=n.length>3&&"function"==typeof o?(i--,o):u,f&&wi(r[0],r[1],f)&&(o=i<3?u:o,i=1),t=In(t);++e-1?i[o?t[f]:f]:u}}function Nu(n){return ei((function(t){var r=t.length,e=r,o=qr.prototype.thru;for(n&&t.reverse();e--;){var f=t[e];if("function"!=typeof f)throw new zn(i);if(o&&!a&&"wrapper"==fi(f))var a=new qr([],!0)}for(e=a?e:r;++e1&&b.reverse(),p&&la))return!1;var l=o.get(n),s=o.get(t);if(l&&s)return l==t&&s==n;var h=-1,p=!0,v=2&r?new Hr:u;for(o.set(n,t),o.set(t,n);++h-1&&n%1==0&&n1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(cn,"{\n/* [wrapped with "+t+"] */\n")}(e,function(n,t){return Et(y,(function(r){var e="_."+r[0];t&r[1]&&!Ct(n,e)&&n.push(e)})),n.sort()}(function(n){var t=n.match(ln);return t?t[1].split(sn):[]}(e),r)))}function Ui(n){var t=0,r=0;return function(){var e=mr(),i=16-(e-r);if(r=e,i>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(u,arguments)}}function Bi(n,t){var r=-1,e=n.length,i=e-1;for(t=t===u?e:t;++r1?n[t-1]:u;return r="function"==typeof r?(n.pop(),r):u,oo(n,r)}));function po(n){var t=Mr(n);return t.__chain__=!0,t}function vo(n,t){return t(n)}var _o=ei((function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,i=function(t){return fe(t,n)};return!(t>1||this.__actions__.length)&&e instanceof Zr&&bi(r)?((e=e.slice(r,+r+(t?1:0))).__actions__.push({func:vo,args:[i],thisArg:u}),new qr(e,this.__chain__).thru((function(n){return t&&!n.length&&n.push(u),n}))):this.thru(i)}));var go=Cu((function(n,t,r){Bn.call(n,r)?++n[r]:oe(n,r,1)}));var yo=Du(qi),bo=Du(Zi);function wo(n,t){return(Ko(n)?Et:pe)(n,ci(t,3))}function mo(n,t){return(Ko(n)?Rt:ve)(n,ci(t,3))}var xo=Cu((function(n,t,r){Bn.call(n,r)?n[r].push(t):oe(n,r,[t])}));var jo=Ye((function(n,t,e){var u=-1,i="function"==typeof t,o=Go(n)?r(n.length):[];return pe(n,(function(n){o[++u]=i?Ot(t,n,e):Se(n,t,e)})),o})),Ao=Cu((function(n,t,r){oe(n,r,t)}));function ko(n,t){return(Ko(n)?Lt:Ne)(n,ci(t,3))}var Oo=Cu((function(n,t,r){n[r?0:1].push(t)}),(function(){return[[],[]]}));var Io=Ye((function(n,t){if(null==n)return[];var r=t.length;return r>1&&wi(n,t[0],t[1])?t=[]:r>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),Ze(n,de(t,1),[])})),Eo=ht||function(){return vt.Date.now()};function Ro(n,t,r){return t=r?u:t,t=n&&null==t?n.length:t,Qu(n,s,u,u,u,u,t)}function zo(n,t){var r;if("function"!=typeof t)throw new zn(i);return n=yf(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=u),r}}var So=Ye((function(n,t,r){var e=1;if(r.length){var u=lr(r,ai(So));e|=c}return Qu(n,e,t,r,u)})),Co=Ye((function(n,t,r){var e=3;if(r.length){var u=lr(r,ai(Co));e|=c}return Qu(t,e,n,r,u)}));function Wo(n,t,r){var e,o,f,a,c,l,s=0,h=!1,p=!1,v=!0;if("function"!=typeof n)throw new zn(i);function _(t){var r=e,i=o;return e=o=u,s=t,a=n.apply(i,r)}function g(n){return s=n,c=Ci(d,t),h?_(n):a}function y(n){var r=n-l;return l===u||r>=t||r<0||p&&n-s>=f}function d(){var n=Eo();if(y(n))return b(n);c=Ci(d,function(n){var r=t-(n-l);return p?wr(r,f-(n-s)):r}(n))}function b(n){return c=u,v&&e?_(n):(e=o=u,a)}function w(){var n=Eo(),r=y(n);if(e=arguments,o=this,l=n,r){if(c===u)return g(l);if(p)return ju(c),c=Ci(d,t),_(l)}return c===u&&(c=Ci(d,t)),a}return t=bf(t)||0,rf(r)&&(h=!!r.leading,f=(p="maxWait"in r)?br(bf(r.maxWait)||0,t):f,v="trailing"in r?!!r.trailing:v),w.cancel=function(){c!==u&&ju(c),s=0,e=l=o=c=u},w.flush=function(){return c===u?a:b(Eo())},w}var Lo=Ye((function(n,t){return se(n,1,t)})),Uo=Ye((function(n,t,r){return se(n,bf(t)||0,r)}));function Bo(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new zn(i);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(Bo.Cache||Gr),r}function To(n){if("function"!=typeof n)throw new zn(i);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}Bo.Cache=Gr;var $o=mu((function(n,t){var r=(t=1==t.length&&Ko(t[0])?Lt(t[0],Qt(ci())):Lt(de(t,1),Qt(ci()))).length;return Ye((function(e){for(var u=-1,i=wr(e.length,r);++u=t})),Zo=Ce(function(){return arguments}())?Ce:function(n){return ef(n)&&Bn.call(n,"callee")&&!Hn.call(n,"callee")},Ko=r.isArray,Vo=wt?Qt(wt):function(n){return ef(n)&&Oe(n)==L};function Go(n){return null!=n&&tf(n.length)&&!Xo(n)}function Ho(n){return ef(n)&&Go(n)}var Jo=bt||ba,Yo=mt?Qt(mt):function(n){return ef(n)&&Oe(n)==m};function Qo(n){if(!ef(n))return!1;var t=Oe(n);return t==x||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!ff(n)}function Xo(n){if(!rf(n))return!1;var t=Oe(n);return t==j||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function nf(n){return"number"==typeof n&&n==yf(n)}function tf(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=v}function rf(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function ef(n){return null!=n&&"object"==typeof n}var uf=xt?Qt(xt):function(n){return ef(n)&&_i(n)==k};function of(n){return"number"==typeof n||ef(n)&&Oe(n)==O}function ff(n){if(!ef(n)||Oe(n)!=I)return!1;var t=Vn(n);if(null===t)return!0;var r=Bn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Un.call(r)==Nn}var af=jt?Qt(jt):function(n){return ef(n)&&Oe(n)==R};var cf=At?Qt(At):function(n){return ef(n)&&_i(n)==z};function lf(n){return"string"==typeof n||!Ko(n)&&ef(n)&&Oe(n)==S}function sf(n){return"symbol"==typeof n||ef(n)&&Oe(n)==C}var hf=kt?Qt(kt):function(n){return ef(n)&&tf(n.length)&&!!ft[Oe(n)]};var pf=Vu(De),vf=Vu((function(n,t){return n<=t}));function _f(n){if(!n)return[];if(Go(n))return lf(n)?vr(n):zu(n);if(Qn&&n[Qn])return function(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}(n[Qn]());var t=_i(n);return(t==k?ar:t==z?sr:Pf)(n)}function gf(n){return n?(n=bf(n))===p||n===-1/0?17976931348623157e292*(n<0?-1:1):n===n?n:0:0===n?n:0}function yf(n){var t=gf(n),r=t%1;return t===t?r?t-r:t:0}function df(n){return n?ae(yf(n),0,g):0}function bf(n){if("number"==typeof n)return n;if(sf(n))return _;if(rf(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=rf(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Yt(n);var r=dn.test(n);return r||wn.test(n)?st(n.slice(2),r?2:8):yn.test(n)?_:+n}function wf(n){return Su(n,Uf(n))}function mf(n){return null==n?"":lu(n)}var xf=Wu((function(n,t){if(Ai(t)||Go(t))Su(t,Lf(t),n);else for(var r in t)Bn.call(t,r)&&re(n,r,t[r])})),jf=Wu((function(n,t){Su(t,Uf(t),n)})),Af=Wu((function(n,t,r,e){Su(t,Uf(t),n,e)})),kf=Wu((function(n,t,r,e){Su(t,Lf(t),n,e)})),Of=ei(fe);var If=Ye((function(n,t){n=In(n);var r=-1,e=t.length,i=e>2?t[2]:u;for(i&&wi(t[0],t[1],i)&&(e=1);++r1),t})),Su(n,ii(n),r),e&&(r=ce(r,7,ti));for(var u=t.length;u--;)hu(r,t[u]);return r}));var Df=ei((function(n,t){return null==n?{}:function(n,t){return Ke(n,t,(function(t,r){return zf(n,r)}))}(n,t)}));function Nf(n,t){if(null==n)return{};var r=Lt(ii(n),(function(n){return[n]}));return t=ci(t),Ke(n,r,(function(n,r){return t(n,r[0])}))}var Mf=Yu(Lf),Ff=Yu(Uf);function Pf(n){return null==n?[]:Xt(n,Lf(n))}var qf=Tu((function(n,t,r){return t=t.toLowerCase(),n+(r?Zf(t):t)}));function Zf(n){return Xf(mf(n).toLowerCase())}function Kf(n){return(n=mf(n))&&n.replace(xn,ur).replace(nt,"")}var Vf=Tu((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Gf=Tu((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Hf=Bu("toLowerCase");var Jf=Tu((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}));var Yf=Tu((function(n,t,r){return n+(r?" ":"")+Xf(t)}));var Qf=Tu((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Xf=Bu("toUpperCase");function na(n,t,r){return n=mf(n),(t=r?u:t)===u?function(n){return ut.test(n)}(n)?function(n){return n.match(rt)||[]}(n):function(n){return n.match(hn)||[]}(n):n.match(t)||[]}var ta=Ye((function(n,t){try{return Ot(n,u,t)}catch(r){return Qo(r)?r:new an(r)}})),ra=ei((function(n,t){return Et(t,(function(t){t=$i(t),oe(n,t,So(n[t],n))})),n}));function ea(n){return function(){return n}}var ua=Nu(),ia=Nu(!0);function oa(n){return n}function fa(n){return Be("function"==typeof n?n:ce(n,1))}var aa=Ye((function(n,t){return function(r){return Se(r,n,t)}})),ca=Ye((function(n,t){return function(r){return Se(n,r,t)}}));function la(n,t,r){var e=Lf(t),u=je(t,e);null!=r||rf(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=je(t,Lf(t)));var i=!(rf(r)&&"chain"in r)||!!r.chain,o=Xo(n);return Et(u,(function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__),u=r.__actions__=zu(this.__actions__);return u.push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,Ut([this.value()],arguments))})})),n}function sa(){}var ha=qu(Lt),pa=qu(zt),va=qu($t);function _a(n){return mi(n)?Kt($i(n)):function(n){return function(t){return Ae(t,n)}}(n)}var ga=Ku(),ya=Ku(!0);function da(){return[]}function ba(){return!1}var wa=Pu((function(n,t){return n+t}),0),ma=Hu("ceil"),xa=Pu((function(n,t){return n/t}),1),ja=Hu("floor");var Aa=Pu((function(n,t){return n*t}),1),ka=Hu("round"),Oa=Pu((function(n,t){return n-t}),0);return Mr.after=function(n,t){if("function"!=typeof t)throw new zn(i);return n=yf(n),function(){if(--n<1)return t.apply(this,arguments)}},Mr.ary=Ro,Mr.assign=xf,Mr.assignIn=jf,Mr.assignInWith=Af,Mr.assignWith=kf,Mr.at=Of,Mr.before=zo,Mr.bind=So,Mr.bindAll=ra,Mr.bindKey=Co,Mr.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Ko(n)?n:[n]},Mr.chain=po,Mr.chunk=function(n,t,e){t=(e?wi(n,t,e):t===u)?1:br(yf(t),0);var i=null==n?0:n.length;if(!i||t<1)return[];for(var o=0,f=0,a=r(_t(i/t));oi?0:i+r),(e=e===u||e>i?i:yf(e))<0&&(e+=i),e=r>e?0:df(e);r>>0)?(n=mf(n))&&("string"==typeof t||null!=t&&!af(t))&&!(t=lu(t))&&fr(n)?xu(vr(n),0,r):n.split(t,r):[]},Mr.spread=function(n,t){if("function"!=typeof n)throw new zn(i);return t=null==t?0:br(yf(t),0),Ye((function(r){var e=r[t],u=xu(r,0,t);return e&&Ut(u,e),Ot(n,this,u)}))},Mr.tail=function(n){var t=null==n?0:n.length;return t?uu(n,1,t):[]},Mr.take=function(n,t,r){return n&&n.length?uu(n,0,(t=r||t===u?1:yf(t))<0?0:t):[]},Mr.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?uu(n,(t=e-(t=r||t===u?1:yf(t)))<0?0:t,e):[]},Mr.takeRightWhile=function(n,t){return n&&n.length?vu(n,ci(t,3),!1,!0):[]},Mr.takeWhile=function(n,t){return n&&n.length?vu(n,ci(t,3)):[]},Mr.tap=function(n,t){return t(n),n},Mr.throttle=function(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new zn(i);return rf(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),Wo(n,t,{leading:e,maxWait:t,trailing:u})},Mr.thru=vo,Mr.toArray=_f,Mr.toPairs=Mf,Mr.toPairsIn=Ff,Mr.toPath=function(n){return Ko(n)?Lt(n,$i):sf(n)?[n]:zu(Ti(mf(n)))},Mr.toPlainObject=wf,Mr.transform=function(n,t,r){var e=Ko(n),u=e||Jo(n)||hf(n);if(t=ci(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:rf(n)&&Xo(i)?Fr(Vn(n)):{}}return(u?Et:me)(n,(function(n,e,u){return t(r,n,e,u)})),r},Mr.unary=function(n){return Ro(n,1)},Mr.union=ro,Mr.unionBy=eo,Mr.unionWith=uo,Mr.uniq=function(n){return n&&n.length?su(n):[]},Mr.uniqBy=function(n,t){return n&&n.length?su(n,ci(t,2)):[]},Mr.uniqWith=function(n,t){return t="function"==typeof t?t:u,n&&n.length?su(n,u,t):[]},Mr.unset=function(n,t){return null==n||hu(n,t)},Mr.unzip=io,Mr.unzipWith=oo,Mr.update=function(n,t,r){return null==n?n:pu(n,t,bu(r))},Mr.updateWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:pu(n,t,bu(r),e)},Mr.values=Pf,Mr.valuesIn=function(n){return null==n?[]:Xt(n,Uf(n))},Mr.without=fo,Mr.words=na,Mr.wrap=function(n,t){return Do(bu(t),n)},Mr.xor=ao,Mr.xorBy=co,Mr.xorWith=lo,Mr.zip=so,Mr.zipObject=function(n,t){return yu(n||[],t||[],re)},Mr.zipObjectDeep=function(n,t){return yu(n||[],t||[],nu)},Mr.zipWith=ho,Mr.entries=Mf,Mr.entriesIn=Ff,Mr.extend=jf,Mr.extendWith=Af,la(Mr,Mr),Mr.add=wa,Mr.attempt=ta,Mr.camelCase=qf,Mr.capitalize=Zf,Mr.ceil=ma,Mr.clamp=function(n,t,r){return r===u&&(r=t,t=u),r!==u&&(r=(r=bf(r))===r?r:0),t!==u&&(t=(t=bf(t))===t?t:0),ae(bf(n),t,r)},Mr.clone=function(n){return ce(n,4)},Mr.cloneDeep=function(n){return ce(n,5)},Mr.cloneDeepWith=function(n,t){return ce(n,5,t="function"==typeof t?t:u)},Mr.cloneWith=function(n,t){return ce(n,4,t="function"==typeof t?t:u)},Mr.conformsTo=function(n,t){return null==t||le(n,t,Lf(t))},Mr.deburr=Kf,Mr.defaultTo=function(n,t){return null==n||n!==n?t:n},Mr.divide=xa,Mr.endsWith=function(n,t,r){n=mf(n),t=lu(t);var e=n.length,i=r=r===u?e:ae(yf(r),0,e);return(r-=t.length)>=0&&n.slice(r,i)==t},Mr.eq=Fo,Mr.escape=function(n){return(n=mf(n))&&Y.test(n)?n.replace(H,ir):n},Mr.escapeRegExp=function(n){return(n=mf(n))&&on.test(n)?n.replace(un,"\\$&"):n},Mr.every=function(n,t,r){var e=Ko(n)?zt:_e;return r&&wi(n,t,r)&&(t=u),e(n,ci(t,3))},Mr.find=yo,Mr.findIndex=qi,Mr.findKey=function(n,t){return Nt(n,ci(t,3),me)},Mr.findLast=bo,Mr.findLastIndex=Zi,Mr.findLastKey=function(n,t){return Nt(n,ci(t,3),xe)},Mr.floor=ja,Mr.forEach=wo,Mr.forEachRight=mo,Mr.forIn=function(n,t){return null==n?n:be(n,ci(t,3),Uf)},Mr.forInRight=function(n,t){return null==n?n:we(n,ci(t,3),Uf)},Mr.forOwn=function(n,t){return n&&me(n,ci(t,3))},Mr.forOwnRight=function(n,t){return n&&xe(n,ci(t,3))},Mr.get=Rf,Mr.gt=Po,Mr.gte=qo,Mr.has=function(n,t){return null!=n&&gi(n,t,Ee)},Mr.hasIn=zf,Mr.head=Vi,Mr.identity=oa,Mr.includes=function(n,t,r,e){n=Go(n)?n:Pf(n),r=r&&!e?yf(r):0;var u=n.length;return r<0&&(r=br(u+r,0)),lf(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&Ft(n,t,r)>-1},Mr.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:yf(r);return u<0&&(u=br(e+u,0)),Ft(n,t,u)},Mr.inRange=function(n,t,r){return t=gf(t),r===u?(r=t,t=0):r=gf(r),function(n,t,r){return n>=wr(t,r)&&n=-9007199254740991&&n<=v},Mr.isSet=cf,Mr.isString=lf,Mr.isSymbol=sf,Mr.isTypedArray=hf,Mr.isUndefined=function(n){return n===u},Mr.isWeakMap=function(n){return ef(n)&&_i(n)==W},Mr.isWeakSet=function(n){return ef(n)&&"[object WeakSet]"==Oe(n)},Mr.join=function(n,t){return null==n?"":Vt.call(n,t)},Mr.kebabCase=Vf,Mr.last=Yi,Mr.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var i=e;return r!==u&&(i=(i=yf(r))<0?br(e+i,0):wr(i,e-1)),t===t?function(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}(n,t,i):Mt(n,qt,i,!0)},Mr.lowerCase=Gf,Mr.lowerFirst=Hf,Mr.lt=pf,Mr.lte=vf,Mr.max=function(n){return n&&n.length?ge(n,oa,Ie):u},Mr.maxBy=function(n,t){return n&&n.length?ge(n,ci(t,2),Ie):u},Mr.mean=function(n){return Zt(n,oa)},Mr.meanBy=function(n,t){return Zt(n,ci(t,2))},Mr.min=function(n){return n&&n.length?ge(n,oa,De):u},Mr.minBy=function(n,t){return n&&n.length?ge(n,ci(t,2),De):u},Mr.stubArray=da,Mr.stubFalse=ba,Mr.stubObject=function(){return{}},Mr.stubString=function(){return""},Mr.stubTrue=function(){return!0},Mr.multiply=Aa,Mr.nth=function(n,t){return n&&n.length?qe(n,yf(t)):u},Mr.noConflict=function(){return vt._===this&&(vt._=Mn),this},Mr.noop=sa,Mr.now=Eo,Mr.pad=function(n,t,r){n=mf(n);var e=(t=yf(t))?pr(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return Zu(gt(u),r)+n+Zu(_t(u),r)},Mr.padEnd=function(n,t,r){n=mf(n);var e=(t=yf(t))?pr(n):0;return t&&et){var e=n;n=t,t=e}if(r||n%1||t%1){var i=jr();return wr(n+i*(t-n+lt("1e-"+((i+"").length-1))),t)}return He(n,t)},Mr.reduce=function(n,t,r){var e=Ko(n)?Bt:Gt,u=arguments.length<3;return e(n,ci(t,4),r,u,pe)},Mr.reduceRight=function(n,t,r){var e=Ko(n)?Tt:Gt,u=arguments.length<3;return e(n,ci(t,4),r,u,ve)},Mr.repeat=function(n,t,r){return t=(r?wi(n,t,r):t===u)?1:yf(t),Je(mf(n),t)},Mr.replace=function(){var n=arguments,t=mf(n[0]);return n.length<3?t:t.replace(n[1],n[2])},Mr.result=function(n,t,r){var e=-1,i=(t=wu(t,n)).length;for(i||(i=1,n=u);++ev)return[];var r=g,e=wr(n,g);t=ci(t),n-=g;for(var u=Jt(e,t);++r=o)return n;var a=r-pr(e);if(a<1)return e;var c=f?xu(f,0,a).join(""):n.slice(0,a);if(i===u)return c+e;if(f&&(a+=c.length-a),af(i)){if(n.slice(a).search(i)){var l,s=c;for(i.global||(i=En(i.source,mf(gn.exec(i))+"g")),i.lastIndex=0;l=i.exec(s);)var h=l.index;c=c.slice(0,h===u?a:h)}}else if(n.indexOf(lu(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+e},Mr.unescape=function(n){return(n=mf(n))&&J.test(n)?n.replace(G,gr):n},Mr.uniqueId=function(n){var t=++Tn;return mf(n)+t},Mr.upperCase=Qf,Mr.upperFirst=Xf,Mr.each=wo,Mr.eachRight=mo,Mr.first=Vi,la(Mr,function(){var n={};return me(Mr,(function(t,r){Bn.call(Mr.prototype,r)||(n[r]=t)})),n}(),{chain:!1}),Mr.VERSION="4.17.21",Et(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Mr[n].placeholder=Mr})),Et(["drop","take"],(function(n,t){Zr.prototype[n]=function(r){r=r===u?1:br(yf(r),0);var e=this.__filtered__&&!t?new Zr(this):this.clone();return e.__filtered__?e.__takeCount__=wr(r,e.__takeCount__):e.__views__.push({size:wr(r,g),type:n+(e.__dir__<0?"Right":"")}),e},Zr.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),Et(["filter","map","takeWhile"],(function(n,t){var r=t+1,e=1==r||3==r;Zr.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:ci(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}})),Et(["head","last"],(function(n,t){var r="take"+(t?"Right":"");Zr.prototype[n]=function(){return this[r](1).value()[0]}})),Et(["initial","tail"],(function(n,t){var r="drop"+(t?"":"Right");Zr.prototype[n]=function(){return this.__filtered__?new Zr(this):this[r](1)}})),Zr.prototype.compact=function(){return this.filter(oa)},Zr.prototype.find=function(n){return this.filter(n).head()},Zr.prototype.findLast=function(n){return this.reverse().find(n)},Zr.prototype.invokeMap=Ye((function(n,t){return"function"==typeof n?new Zr(this):this.map((function(r){return Se(r,n,t)}))})),Zr.prototype.reject=function(n){return this.filter(To(ci(n)))},Zr.prototype.slice=function(n,t){n=yf(n);var r=this;return r.__filtered__&&(n>0||t<0)?new Zr(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==u&&(r=(t=yf(t))<0?r.dropRight(-t):r.take(t-n)),r)},Zr.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Zr.prototype.toArray=function(){return this.take(g)},me(Zr.prototype,(function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),i=Mr[e?"take"+("last"==t?"Right":""):t],o=e||/^find/.test(t);i&&(Mr.prototype[t]=function(){var t=this.__wrapped__,f=e?[1]:arguments,a=t instanceof Zr,c=f[0],l=a||Ko(t),s=function(n){var t=i.apply(Mr,Ut([n],f));return e&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(a=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=a&&!p;if(!o&&l){t=_?t:new Zr(this);var g=n.apply(t,f);return g.__actions__.push({func:vo,args:[s],thisArg:u}),new qr(g,h)}return v&&_?n.apply(this,f):(g=this.thru(s),v?e?g.value()[0]:g.value():g)})})),Et(["pop","push","shift","sort","splice","unshift"],(function(n){var t=Sn[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);Mr.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Ko(u)?u:[],n)}return this[r]((function(r){return t.apply(Ko(r)?r:[],n)}))}})),me(Zr.prototype,(function(n,t){var r=Mr[t];if(r){var e=r.name+"";Bn.call(Cr,e)||(Cr[e]=[]),Cr[e].push({name:t,func:r})}})),Cr[Mu(u,2).name]=[{name:"wrapper",func:u}],Zr.prototype.clone=function(){var n=new Zr(this.__wrapped__);return n.__actions__=zu(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=zu(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=zu(this.__views__),n},Zr.prototype.reverse=function(){if(this.__filtered__){var n=new Zr(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Zr.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=Ko(n),e=t<0,u=r?n.length:0,i=function(n,t,r){var e=-1,u=r.length;for(;++e=this.__values__.length;return{done:n,value:n?u:this.__values__[this.__index__++]}},Mr.prototype.plant=function(n){for(var t,r=this;r instanceof Pr;){var e=Ni(r);e.__index__=0,e.__values__=u,t?i.__wrapped__=e:t=e;var i=e;r=r.__wrapped__}return i.__wrapped__=n,t},Mr.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Zr){var t=n;return this.__actions__.length&&(t=new Zr(this)),(t=t.reverse()).__actions__.push({func:vo,args:[to],thisArg:u}),new qr(t,this.__chain__)}return this.thru(to)},Mr.prototype.toJSON=Mr.prototype.valueOf=Mr.prototype.value=function(){return _u(this.__wrapped__,this.__actions__)},Mr.prototype.first=Mr.prototype.head,Qn&&(Mr.prototype[Qn]=function(){return this}),Mr}();vt._=yr,(e=function(){return yr}.call(t,r,t,n))===u||(n.exports=e)}.call(this)}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/355-368bb4a8961affdd.js b/static/web/_next/static/chunks/355-368bb4a8961affdd.js deleted file mode 100644 index d27bb241c..000000000 --- a/static/web/_next/static/chunks/355-368bb4a8961affdd.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[355],{32808:function(e,n,t){t.d(n,{Z:function(){return N}});var r=t(4942),o=t(87462),a=t(94184),l=t.n(a),i=t(50132),c=t(67294),d=t(53124),s=t(65223),u=t(74902),f=t(97685),p=t(98423),v=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0&&(a=M().map((function(e){return c.createElement(k,{prefixCls:L,key:e.value.toString(),disabled:"disabled"in e?e.disabled:C.disabled,value:e.value,checked:-1!==S.indexOf(e.value),onChange:e.onChange,className:"".concat(T,"-item"),style:e.style},e.label)})));var A={toggleOption:function(e){var n=S.indexOf(e.value),t=(0,u.Z)(S);-1===n?t.push(e.value):t.splice(n,1),"value"in C||K(t);var r=M();null===x||void 0===x||x(t.filter((function(e){return-1!==D.indexOf(e)})).sort((function(e,n){return r.findIndex((function(n){return n.value===e}))-r.findIndex((function(e){return e.value===n}))})))},value:S,disabled:C.disabled,name:C.name,registerValue:function(e){R((function(n){return[].concat((0,u.Z)(n),[e])}))},cancelValue:function(e){R((function(n){return n.filter((function(n){return n!==e}))}))}},H=l()(T,(0,r.Z)({},"".concat(T,"-rtl"),"rtl"===N),y);return c.createElement("div",(0,o.Z)({className:H,style:g},I,{ref:n}),c.createElement(h.Provider,{value:A},a))},y=c.forwardRef(m),g=c.memo(y),x=t(98866),C=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=t}(t,p||1,null===e||void 0===e?void 0:e.startRow,null===e||void 0===e?void 0:e.endRow);return{onHover:null===e||void 0===e?void 0:e.onHover,hovering:n}})),h=v.onHover,y=v.hovering;return u.createElement(z,(0,l.Z)({},e,{colSpan:f,rowSpan:p,hovering:y,ref:n,onHover:h}))}));_.displayName="WrappedCell";var F=_,j=u.createContext(null);function B(e,n,t,r,o){var a,l,i=t[e]||{},c=t[n]||{};"left"===i.fixed?a=r.left[e]:"right"===c.fixed&&(l=r.right[n]);var d=!1,s=!1,u=!1,f=!1,p=t[n+1],v=t[e-1];if("rtl"===o){if(void 0!==a)f=!(v&&"left"===v.fixed);else if(void 0!==l){u=!(p&&"right"===p.fixed)}}else if(void 0!==a){d=!(p&&"left"===p.fixed)}else if(void 0!==l){s=!(v&&"right"===v.fixed)}return{fixLeft:a,fixRight:l,lastFixLeft:d,firstFixRight:s,lastFixRight:u,firstFixLeft:f,isSticky:r.isSticky}}function V(e){var n,t=e.cells,r=e.stickyOffsets,o=e.flattenColumns,a=e.rowComponent,i=e.cellComponent,c=e.onHeaderRow,d=e.index,s=u.useContext(j),f=s.prefixCls,p=s.direction;c&&(n=c(t.map((function(e){return e.column})),d));var v=w(t.map((function(e){return e.column})));return u.createElement(a,n,t.map((function(e,n){var t,a=e.column,c=B(e.colStart,e.colEnd,o,r,p);return a&&a.onHeaderCell&&(t=e.column.onHeaderCell(a)),u.createElement(F,(0,l.Z)({},e,{ellipsis:a.ellipsis,align:a.align,component:i,prefixCls:f,key:v[n]},c,{additionalProps:t,rowType:"header"}))})))}V.displayName="HeaderRow";var W=V;var U=function(e){var n=e.stickyOffsets,t=e.columns,r=e.flattenColumns,o=e.onHeaderRow,a=u.useContext(j),l=a.prefixCls,i=a.getComponent,c=u.useMemo((function(){return function(e){var n=[];!function e(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;n[o]=n[o]||[];var a=r;return t.filter(Boolean).map((function(t){var r={key:t.key,className:t.className||"",children:t.title,column:t,colStart:a},l=1,i=t.children;return i&&i.length>0&&(l=e(i,a,o+1).reduce((function(e,n){return e+n}),0),r.hasSubColumns=!0),"colSpan"in t&&(l=t.colSpan),"rowSpan"in t&&(r.rowSpan=t.rowSpan),r.colSpan=l,r.colEnd=r.colStart+l-1,n[o].push(r),a+=l,l}))}(e,0);for(var t=n.length,r=function(e){n[e].forEach((function(n){"rowSpan"in n||n.hasSubColumns||(n.rowSpan=t-e)}))},o=0;o1?t-1:0),a=1;a0?[].concat((0,s.Z)(e),(0,s.Z)(ue(o).map((function(e){return(0,d.Z)({fixed:r},e)})))):[].concat((0,s.Z)(e),[(0,d.Z)((0,d.Z)({},n),{},{fixed:r})])}),[])}var fe=function(e,n){var t=e.prefixCls,r=e.columns,a=e.children,l=e.expandable,i=e.expandedKeys,c=e.getRowKey,s=e.onTriggerExpand,f=e.expandIcon,p=e.rowExpandable,v=e.expandIconColumnIndex,h=e.direction,m=e.expandRowByClick,y=e.columnWidth,g=e.fixed,x=u.useMemo((function(){return r||se(a)}),[r,a]),C=u.useMemo((function(){if(l){var e,n=x.slice();if(!n.includes(ie)){var r=v||0;r>=0&&n.splice(r,0,ie)}0;var a=n.indexOf(ie);n=n.filter((function(e,n){return e!==ie||n===a}));var d,h=x[a];d="left"!==g&&!g||v?"right"!==g&&!g||v!==x.length?h?h.fixed:null:"right":"left";var C=(e={},(0,o.Z)(e,le,{className:"".concat(t,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,o.Z)(e,"title",""),(0,o.Z)(e,"fixed",d),(0,o.Z)(e,"className","".concat(t,"-row-expand-icon-cell")),(0,o.Z)(e,"width",y),(0,o.Z)(e,"render",(function(e,n,r){var o=c(n,r),a=i.has(o),l=!p||p(n),d=f({prefixCls:t,expanded:a,expandable:l,record:n,onExpand:s});return m?u.createElement("span",{onClick:function(e){return e.stopPropagation()}},d):d})),e);return n.map((function(e){return e===ie?C:e}))}return x.filter((function(e){return e!==ie}))}),[l,x,c,i,f,h]),E=u.useMemo((function(){var e=C;return n&&(e=n(e)),e.length||(e=[{render:function(){return null}}]),e}),[n,C,h]),Z=u.useMemo((function(){return"rtl"===h?function(e){return e.map((function(e){var n=e.fixed,t=(0,k.Z)(e,de),r=n;return"left"===n?r="right":"right"===n&&(r="left"),(0,d.Z)({fixed:r},t)}))}(ue(E)):ue(E)}),[E,h]);return[E,Z]};function pe(e){var n=(0,u.useRef)(e),t=(0,u.useState)({}),r=(0,a.Z)(t,2)[1],o=(0,u.useRef)(null),l=(0,u.useRef)([]);return(0,u.useEffect)((function(){return function(){o.current=null}}),[]),[n.current,function(e){l.current.push(e);var t=Promise.resolve();o.current=t,t.then((function(){if(o.current===t){var e=l.current,a=n.current;l.current=[],e.forEach((function(e){n.current=e(n.current)})),o.current=null,a!==n.current&&r({})}}))}]}var ve=function(e,n,t){return(0,u.useMemo)((function(){for(var r=[],o=[],a=0,l=0,i=0;i=0;a-=1){var i=n[a],c=t&&t[a],d=c&&c[le];if(i||d||o){var s=d||{},f=(s.columnType,(0,k.Z)(s,he));r.unshift(u.createElement("col",(0,l.Z)({key:a,style:{width:i}},f))),o=!0}}return u.createElement("colgroup",null,r)};var ye=function(e){var n=e.className,t=e.children;return u.createElement("div",{className:n},t)},ge=u.createContext({});var xe=["children"];function Ce(e){return e.children}Ce.Row=function(e){var n=e.children,t=(0,k.Z)(e,xe);return u.createElement("tr",t,n)},Ce.Cell=function(e){var n=e.className,t=e.index,r=e.children,o=e.colSpan,a=void 0===o?1:o,i=e.rowSpan,c=e.align,d=u.useContext(j),s=d.prefixCls,f=d.direction,p=u.useContext(ge),v=p.scrollColumnIndex,h=p.stickyOffsets,m=t+a-1+1===v?a+1:a,y=B(t,t+m-1,p.flattenColumns,h,f);return u.createElement(F,(0,l.Z)({className:n,index:t,component:"td",prefixCls:s,record:null,dataIndex:null,align:c,colSpan:m,rowSpan:i,render:function(){return r}},y))};var Ee=Ce;var ke=function(e){var n=e.children,t=e.stickyOffsets,r=e.flattenColumns,o=u.useContext(j).prefixCls,a=r.length-1,l=r[a],i=u.useMemo((function(){return{stickyOffsets:t,flattenColumns:r,scrollColumnIndex:(null===l||void 0===l?void 0:l.scrollbar)?a:null}}),[l,r,a,t]);return u.createElement(ge.Provider,{value:i},u.createElement("tfoot",{className:"".concat(o,"-summary")},n))},Ze=Ee;function Ne(e){var n,t=e.prefixCls,r=e.record,a=e.onExpand,l=e.expanded,i=e.expandable,d="".concat(t,"-row-expand-icon");if(!i)return u.createElement("span",{className:c()(d,"".concat(t,"-row-spaced"))});return u.createElement("span",{className:c()(d,(n={},(0,o.Z)(n,"".concat(t,"-row-expanded"),l),(0,o.Z)(n,"".concat(t,"-row-collapsed"),!l),n)),onClick:function(e){a(r,e),e.stopPropagation()}})}var be=t(64019),we=t(27678),Se=function(e,n){var t,r,l=e.scrollBodyRef,i=e.onScroll,s=e.offsetScroll,f=e.container,p=u.useContext(j).prefixCls,v=(null===(t=l.current)||void 0===t?void 0:t.scrollWidth)||0,h=(null===(r=l.current)||void 0===r?void 0:r.clientWidth)||0,m=v&&h*(h/v),y=u.useRef(),g=pe({scrollLeft:0,isHiddenScrollBar:!1}),C=(0,a.Z)(g,2),E=C[0],k=C[1],Z=u.useRef({delta:0,x:0}),N=u.useState(!1),b=(0,a.Z)(N,2),w=b[0],S=b[1],K=function(){S(!1)},O=function(e){var n,t=(e||(null===(n=window)||void 0===n?void 0:n.event)).buttons;if(w&&0!==t){var r=Z.current.x+e.pageX-Z.current.x-Z.current.delta;r<=0&&(r=0),r+m>=h&&(r=h-m),i({scrollLeft:r/h*(v+2)}),Z.current.x=e.pageX}else w&&S(!1)},P=function(){if(l.current){var e=(0,we.os)(l.current).top,n=e+l.current.offsetHeight,t=f===window?document.documentElement.scrollTop+window.innerHeight:(0,we.os)(f).top+f.clientHeight;n-(0,x.Z)()<=t||e>=t-s?k((function(e){return(0,d.Z)((0,d.Z)({},e),{},{isHiddenScrollBar:!0})})):k((function(e){return(0,d.Z)((0,d.Z)({},e),{},{isHiddenScrollBar:!1})}))}},D=function(e){k((function(n){return(0,d.Z)((0,d.Z)({},n),{},{scrollLeft:e/v*h||0})}))};return u.useImperativeHandle(n,(function(){return{setScrollLeft:D}})),u.useEffect((function(){var e=(0,be.Z)(document.body,"mouseup",K,!1),n=(0,be.Z)(document.body,"mousemove",O,!1);return P(),function(){e.remove(),n.remove()}}),[m,w]),u.useEffect((function(){var e=(0,be.Z)(f,"scroll",P,!1),n=(0,be.Z)(window,"resize",P,!1);return function(){e.remove(),n.remove()}}),[f]),u.useEffect((function(){E.isHiddenScrollBar||k((function(e){var n=l.current;return n?(0,d.Z)((0,d.Z)({},e),{},{scrollLeft:n.scrollLeft/n.scrollWidth*n.clientWidth}):e}))}),[E.isHiddenScrollBar]),v<=h||!m||E.isHiddenScrollBar?null:u.createElement("div",{style:{height:(0,x.Z)(),width:h,bottom:s},className:"".concat(p,"-sticky-scroll")},u.createElement("div",{onMouseDown:function(e){e.persist(),Z.current.delta=e.pageX-E.scrollLeft,Z.current.x=0,S(!0),e.preventDefault()},ref:y,className:c()("".concat(p,"-sticky-scroll-bar"),(0,o.Z)({},"".concat(p,"-sticky-scroll-bar-active"),w)),style:{width:"".concat(m,"px"),transform:"translate3d(".concat(E.scrollLeft,"px, 0, 0)")}}))},Ke=u.forwardRef(Se),Oe=(0,t(98924).Z)()?window:null;var Pe=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var De=u.forwardRef((function(e,n){var t=e.className,r=e.noData,a=e.columns,l=e.flattenColumns,i=e.colWidths,f=e.columCount,p=e.stickyOffsets,v=e.direction,h=e.fixHeader,m=e.stickyTopOffset,y=e.stickyBottomOffset,g=e.stickyClassName,x=e.onScroll,C=e.maxContentScroll,E=e.children,N=(0,k.Z)(e,Pe),b=u.useContext(j),w=b.prefixCls,S=b.scrollbarSize,K=b.isSticky,O=K&&!h?0:S,P=u.useRef(null),D=u.useCallback((function(e){(0,Z.mH)(n,e),(0,Z.mH)(P,e)}),[]);u.useEffect((function(){var e;function n(e){var n=e.currentTarget,t=e.deltaX;t&&(x({currentTarget:n,scrollLeft:n.scrollLeft+t}),e.preventDefault())}return null===(e=P.current)||void 0===e||e.addEventListener("wheel",n),function(){var e;null===(e=P.current)||void 0===e||e.removeEventListener("wheel",n)}}),[]);var R=u.useMemo((function(){return l.every((function(e){return e.width>=0}))}),[l]),M=l[l.length-1],L={fixed:M?M.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(w,"-cell-scrollbar")}}},T=(0,u.useMemo)((function(){return O?[].concat((0,s.Z)(a),[L]):a}),[O,a]),I=(0,u.useMemo)((function(){return O?[].concat((0,s.Z)(l),[L]):l}),[O,l]),A=(0,u.useMemo)((function(){var e=p.right,n=p.left;return(0,d.Z)((0,d.Z)({},p),{},{left:"rtl"===v?[].concat((0,s.Z)(n.map((function(e){return e+O}))),[0]):n,right:"rtl"===v?e:[].concat((0,s.Z)(e.map((function(e){return e+O}))),[0]),isSticky:K})}),[O,p,K]),H=function(e,n){return(0,u.useMemo)((function(){for(var t=[],r=0;r0)):(an(a>0),sn(a1&&void 0!==arguments[1]?arguments[1]:{},t=n.getContainer,r=void 0===t?function(){return window}:t,o=n.callback,a=n.duration,l=void 0===a?450:a,i=r(),c=Ye(i,!0),d=Date.now(),s=function n(){var t=Date.now()-d,r=Xe(t>l?l:t,c,e,l);qe(i)?i.scrollTo(window.pageXOffset,r):i instanceof HTMLDocument||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=r:i.scrollTop=r,t0&&(M=x.map((function(e){return"string"===typeof e||"number"===typeof e?u.createElement(On,{key:e.toString(),prefixCls:D,disabled:k,value:e,checked:v===e},e):u.createElement(On,{key:"radio-group-value-options-".concat(e.value),prefixCls:D,disabled:e.disabled||k,value:e.value,checked:v===e.value,style:e.style},e.label)})));var L=N||s,T=c()(R,"".concat(R,"-").concat(E),(t={},(0,o.Z)(t,"".concat(R,"-").concat(L),L),(0,o.Z)(t,"".concat(R,"-rtl"),"rtl"===d),t),g);return u.createElement("div",(0,l.Z)({},(0,gn.Z)(e),{className:T,style:b,onMouseEnter:S,onMouseLeave:K,onFocus:O,onBlur:P,id:w,ref:n}),u.createElement(Cn,{value:{onChange:function(n){var t=v,r=n.target.value;"value"in e||h(r);var o=e.onChange;o&&r!==t&&o(n)},value:v,disabled:e.disabled,name:e.name,optionType:e.optionType}},M))})),Dn=u.memo(Pn),Rn=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o1&&void 0!==arguments[1]?arguments[1]:null;return t.map((function(u,f){for(var p,v=pt(r?r.pos:"0",f),h=Yn(u[a],v),m=0;m1&&void 0!==arguments[1]?arguments[1]:{},t=n.initWrapper,r=n.processEntity,o=n.onProcessFinished,a=n.externalGetKey,l=n.childrenPropName,i=n.fieldNames,c=arguments.length>2?arguments[2]:void 0,d=a||c,s={},u={},f={posEntities:s,keyEntities:u};return t&&(f=t(f)||f),et(e,(function(e){var n=e.node,t=e.index,o=e.pos,a=e.key,l=e.parentPos,i=e.level,c={node:n,nodes:e.nodes,index:t,key:a,pos:o,level:i},d=Yn(a,o);s[o]=c,u[d]=c,c.parent=s[l],c.parent&&(c.parent.children=c.parent.children||[],c.parent.children.push(c)),r&&r(c,f)}),{externalGetKey:d,childrenPropName:l,fieldNames:i}),o&&o(f),f}function tt(e,n){var t=n.expandedKeys,r=n.selectedKeys,o=n.loadedKeys,a=n.loadingKeys,l=n.checkedKeys,i=n.halfCheckedKeys,c=n.dragOverNodeKey,d=n.dropPosition,s=n.keyEntities[e];return{eventKey:e,expanded:-1!==t.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==a.indexOf(e),checked:-1!==l.indexOf(e),halfChecked:-1!==i.indexOf(e),pos:String(s?s.pos:""),dragOver:c===e&&0===d,dragOverGapTop:c===e&&-1===d,dragOverGapBottom:c===e&&1===d}}function rt(e){var n=e.data,t=e.expanded,r=e.selected,o=e.checked,a=e.loaded,l=e.loading,i=e.halfChecked,c=e.dragOver,s=e.dragOverGapTop,u=e.dragOverGapBottom,f=e.pos,p=e.active,v=e.eventKey,h=(0,d.Z)((0,d.Z)({},n),{},{expanded:t,selected:r,checked:o,loaded:a,loading:l,halfChecked:i,dragOver:c,dragOverGapTop:s,dragOverGapBottom:u,pos:f,active:p,key:v});return"props"in h||Object.defineProperty(h,"props",{get:function(){return(0,y.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}var ot=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],at="open",lt="close",it=function(e){(0,Bn.Z)(t,e);var n=(0,Vn.Z)(t);function t(){var e;(0,_n.Z)(this,t);for(var r=arguments.length,o=new Array(r),a=0;a=0&&t.splice(r,1),t}function ut(e,n){var t=(e||[]).slice();return-1===t.indexOf(n)&&t.push(n),t}function ft(e){return e.split("-")}function pt(e,n){return"".concat(e,"-").concat(n)}function vt(e,n){var t=[];return function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];n.forEach((function(n){var r=n.key,o=n.children;t.push(r),e(o)}))}(n[e].children),t}function ht(e){if(e.parent){var n=ft(e.pos);return Number(n[n.length-1])===e.parent.children.length-1}return!1}function mt(e,n,t,r,o,a,l,i,c,d){var s,u=e.clientX,f=e.clientY,p=e.target.getBoundingClientRect(),v=p.top,h=p.height,m=(("rtl"===d?-1:1)*(((null===o||void 0===o?void 0:o.x)||0)-u)-12)/r,y=i[t.props.eventKey];if(f-1.5?a({dragNode:w,dropNode:S,dropPosition:1})?Z=1:K=!1:a({dragNode:w,dropNode:S,dropPosition:0})?Z=0:a({dragNode:w,dropNode:S,dropPosition:1})?Z=1:K=!1:a({dragNode:w,dropNode:S,dropPosition:1})?Z=1:K=!1,{dropPosition:Z,dropLevelOffset:N,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:k,dropContainerKey:0===Z?null:(null===(s=y.parent)||void 0===s?void 0:s.key)||null,dropAllowed:K}}function yt(e,n){if(e)return n.multiple?e.slice():e.length?[e[0]]:e}function gt(e){if(!e)return null;var n;if(Array.isArray(e))n={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,r.Z)(e))return(0,y.ZP)(!1,"`checkedKeys` is not an array or an object"),null;n={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return n}function xt(e,n){var t=new Set;function r(e){if(!t.has(e)){var o=n[e];if(o){t.add(e);var a=o.parent;o.node.disabled||a&&r(a.key)}}}return(e||[]).forEach((function(e){r(e)})),(0,s.Z)(t)}var Ct=t(73453),Et=t(62874),kt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Zt=function(e,n){var t=e.className,r=e.style,o=e.motion,i=e.motionNodes,d=e.motionType,s=e.onMotionStart,f=e.onMotionEnd,p=e.active,v=e.treeNodeRequiredProps,h=(0,k.Z)(e,kt),m=u.useState(!0),y=(0,a.Z)(m,2),g=y[0],x=y[1],C=u.useContext(Un).prefixCls,E=u.useRef(!1),Z=function(){E.current||f(),E.current=!0};return(0,u.useEffect)((function(){i&&"hide"===d&&g&&x(!1)}),[i]),(0,u.useEffect)((function(){return i&&s(),function(){i&&Z()}}),[]),i?u.createElement(Et.Z,(0,l.Z)({ref:n,visible:g},o,{motionAppear:"show"===d,onAppearEnd:Z,onLeaveEnd:Z}),(function(e,n){var t=e.className,r=e.style;return u.createElement("div",{ref:n,className:c()("".concat(C,"-treenode-motion"),t),style:r},i.map((function(e){var n=(0,l.Z)({},e.data),t=e.title,r=e.key,o=e.isStart,a=e.isEnd;delete n.children;var i=tt(r,v);return u.createElement(dt,(0,l.Z)({},n,i,{title:t,active:p,data:e.data,key:r,isStart:o,isEnd:a}))})))})):u.createElement(dt,(0,l.Z)({domRef:n,className:t,style:r},h,{active:p}))};Zt.displayName="MotionTreeNode";var Nt=u.forwardRef(Zt);function bt(e,n,t){var r=e.findIndex((function(e){return e.key===t})),o=e[r+1],a=n.findIndex((function(e){return e.key===t}));if(o){var l=n.findIndex((function(e){return e.key===o.key}));return n.slice(a+1,l)}return n.slice(a+1)}var wt=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],St={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Kt=function(){},Ot="RC_TREE_MOTION_".concat(Math.random()),Pt={key:Ot},Dt={key:Ot,level:0,index:0,pos:"0",node:Pt,nodes:[Pt]},Rt={parent:null,children:[],pos:Dt.pos,data:Pt,title:null,key:Ot,isStart:[],isEnd:[]};function Mt(e,n,t,r){return!1!==n&&t?e.slice(0,Math.ceil(t/r)+1):e}function Lt(e){return Yn(e.key,e.pos)}var Tt=u.forwardRef((function(e,n){var t=e.prefixCls,r=e.data,o=(e.selectable,e.checkable,e.expandedKeys),i=e.selectedKeys,c=e.checkedKeys,d=e.loadedKeys,s=e.loadingKeys,f=e.halfCheckedKeys,p=e.keyEntities,v=e.disabled,h=e.dragging,m=e.dragOverNodeKey,y=e.dropPosition,g=e.motion,x=e.height,C=e.itemHeight,E=e.virtual,Z=e.focusable,N=e.activeItem,b=e.focused,w=e.tabIndex,S=e.onKeyDown,K=e.onFocus,O=e.onBlur,P=e.onActiveChange,D=e.onListChangeStart,R=e.onListChangeEnd,M=(0,k.Z)(e,wt),L=u.useRef(null),T=u.useRef(null);u.useImperativeHandle(n,(function(){return{scrollTo:function(e){L.current.scrollTo(e)},getIndentWidth:function(){return T.current.offsetWidth}}}));var I=u.useState(o),A=(0,a.Z)(I,2),H=A[0],z=A[1],_=u.useState(r),F=(0,a.Z)(_,2),j=F[0],B=F[1],V=u.useState(r),W=(0,a.Z)(V,2),U=W[0],G=W[1],X=u.useState([]),q=(0,a.Z)(X,2),Y=q[0],J=q[1],Q=u.useState(null),$=(0,a.Z)(Q,2),ee=$[0],ne=$[1],te=u.useRef(r);function re(){var e=te.current;B(e),G(e),J([]),ne(null),R()}te.current=r,u.useEffect((function(){z(o);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=e.length,r=n.length;if(1!==Math.abs(t-r))return{add:!1,key:null};function o(e,n){var t=new Map;e.forEach((function(e){t.set(e,!0)}));var r=n.filter((function(e){return!t.has(e)}));return 1===r.length?r[0]:null}return t ").concat(n);return n}(N)),u.createElement("div",null,u.createElement("input",{style:St,disabled:!1===Z||v,tabIndex:!1!==Z?w:null,onKeyDown:S,onFocus:K,onBlur:O,value:"",onChange:Kt,"aria-label":"for screen reader"})),u.createElement("div",{className:"".concat(t,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},u.createElement("div",{className:"".concat(t,"-indent")},u.createElement("div",{ref:T,className:"".concat(t,"-indent-unit")}))),u.createElement(Ct.Z,(0,l.Z)({},M,{data:oe,itemKey:Lt,height:x,fullHeight:!1,virtual:E,itemHeight:C,prefixCls:"".concat(t,"-list"),ref:L,onVisibleChange:function(e,n){var t=new Set(e);n.filter((function(e){return!t.has(e)})).some((function(e){return Lt(e)===Ot}))&&re()}}),(function(e){var n=e.pos,t=(0,l.Z)({},e.data),r=e.title,o=e.key,a=e.isStart,i=e.isEnd,c=Yn(o,n);delete t.key,delete t.children;var d=tt(c,ae);return u.createElement(Nt,(0,l.Z)({},t,d,{title:r,active:!!N&&o===N.key,pos:n,data:e.data,isStart:a,isEnd:i,motion:g,motionNodes:o===Ot?Y:null,motionType:ee,onMotionStart:D,onMotionEnd:re,treeNodeRequiredProps:ae,onMouseMove:function(){P(null)}}))})))}));Tt.displayName="NodeList";var It=Tt;function At(e,n){var t=new Set;return e.forEach((function(e){n.has(e)||t.add(e)})),t}function Ht(e){var n=e||{},t=n.disabled,r=n.disableCheckbox,o=n.checkable;return!(!t&&!r)||!1===o}function zt(e,n,t,r){var o,a=[];o=r||Ht;var l,i=new Set(e.filter((function(e){var n=!!t[e];return n||a.push(e),n}))),c=new Map,d=0;return Object.keys(t).forEach((function(e){var n=t[e],r=n.level,o=c.get(r);o||(o=new Set,c.set(r,o)),o.add(n),d=Math.max(d,r)})),(0,y.ZP)(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),l=!0===n?function(e,n,t,r){for(var o=new Set(e),a=new Set,l=0;l<=t;l+=1)(n.get(l)||new Set).forEach((function(e){var n=e.key,t=e.node,a=e.children,l=void 0===a?[]:a;o.has(n)&&!r(t)&&l.filter((function(e){return!r(e.node)})).forEach((function(e){o.add(e.key)}))}));for(var i=new Set,c=t;c>=0;c-=1)(n.get(c)||new Set).forEach((function(e){var n=e.parent,t=e.node;if(!r(t)&&e.parent&&!i.has(e.parent.key))if(r(e.parent.node))i.add(n.key);else{var l=!0,c=!1;(n.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var n=e.key,t=o.has(n);l&&!t&&(l=!1),c||!t&&!a.has(n)||(c=!0)})),l&&o.add(n.key),c&&a.add(n.key),i.add(n.key)}}));return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(At(a,o))}}(i,c,d,o):function(e,n,t,r,o){for(var a=new Set(e),l=new Set(n),i=0;i<=r;i+=1)(t.get(i)||new Set).forEach((function(e){var n=e.key,t=e.node,r=e.children,i=void 0===r?[]:r;a.has(n)||l.has(n)||o(t)||i.filter((function(e){return!o(e.node)})).forEach((function(e){a.delete(e.key)}))}));l=new Set;for(var c=new Set,d=r;d>=0;d-=1)(t.get(d)||new Set).forEach((function(e){var n=e.parent,t=e.node;if(!o(t)&&e.parent&&!c.has(e.parent.key))if(o(e.parent.node))c.add(n.key);else{var r=!0,i=!1;(n.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var n=e.key,t=a.has(n);r&&!t&&(r=!1),i||!t&&!l.has(n)||(i=!0)})),r||a.delete(n.key),i&&l.add(n.key),c.add(n.key)}}));return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(At(l,a))}}(i,n.halfCheckedKeys,c,d,o),l}var _t=function(e){(0,Bn.Z)(t,e);var n=(0,Vn.Z)(t);function t(){var e;(0,_n.Z)(this,t);for(var r=arguments.length,o=new Array(r),a=0;a2&&void 0!==arguments[2]&&arguments[2],a=e.state,l=a.dragChildrenKeys,i=a.dropPosition,c=a.dropTargetKey,s=a.dropTargetPos,u=a.dropAllowed;if(u){var f=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==c){var p=(0,d.Z)((0,d.Z)({},tt(c,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.key)===c,data:e.state.keyEntities[c].node}),v=-1!==l.indexOf(c);(0,y.ZP)(!v,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var h=ft(s),m={event:n,node:rt(p),dragNode:e.dragNode?rt(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(l),dropToGap:0!==i,dropPosition:i+Number(h[h.length-1])};o||null===f||void 0===f||f(m),e.dragNode=null}}},e.cleanDragState=function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(n,t){var r=e.state,o=r.expandedKeys,a=r.flattenNodes,l=t.expanded,i=t.key;if(!(t.isLeaf||n.shiftKey||n.metaKey||n.ctrlKey)){var c=a.filter((function(e){return e.key===i}))[0],s=rt((0,d.Z)((0,d.Z)({},tt(i,e.getTreeNodeRequiredProps())),{},{data:c.data}));e.setExpandedKeys(l?st(o,i):ut(o,i)),e.onNodeExpand(n,s)}},e.onNodeClick=function(n,t){var r=e.props,o=r.onClick;"click"===r.expandAction&&e.triggerExpandActionExpand(n,t),null===o||void 0===o||o(n,t)},e.onNodeDoubleClick=function(n,t){var r=e.props,o=r.onDoubleClick;"doubleClick"===r.expandAction&&e.triggerExpandActionExpand(n,t),null===o||void 0===o||o(n,t)},e.onNodeSelect=function(n,t){var r=e.state.selectedKeys,o=e.state,a=o.keyEntities,l=o.fieldNames,i=e.props,c=i.onSelect,d=i.multiple,s=t.selected,u=t[l.key],f=!s,p=(r=f?d?ut(r,u):[u]:st(r,u)).map((function(e){var n=a[e];return n?n.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:r}),null===c||void 0===c||c(r,{event:"select",selected:f,node:t,selectedNodes:p,nativeEvent:n.nativeEvent})},e.onNodeCheck=function(n,t,r){var o,a=e.state,l=a.keyEntities,i=a.checkedKeys,c=a.halfCheckedKeys,d=e.props,u=d.checkStrictly,f=d.onCheck,p=t.key,v={event:"check",node:t,checked:r,nativeEvent:n.nativeEvent};if(u){var h=r?ut(i,p):st(i,p);o={checked:h,halfChecked:st(c,p)},v.checkedNodes=h.map((function(e){return l[e]})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:h})}else{var m=zt([].concat((0,s.Z)(i),[p]),!0,l),y=m.checkedKeys,g=m.halfCheckedKeys;if(!r){var x=new Set(y);x.delete(p);var C=zt(Array.from(x),{checked:!1,halfCheckedKeys:g},l);y=C.checkedKeys,g=C.halfCheckedKeys}o=y,v.checkedNodes=[],v.checkedNodesPositions=[],v.halfCheckedKeys=g,y.forEach((function(e){var n=l[e];if(n){var t=n.node,r=n.pos;v.checkedNodes.push(t),v.checkedNodesPositions.push({node:t,pos:r})}})),e.setUncontrolledState({checkedKeys:y},!1,{halfCheckedKeys:g})}null===f||void 0===f||f(o,v)},e.onNodeLoad=function(n){var t=n.key,r=new Promise((function(r,o){e.setState((function(a){var l=a.loadedKeys,i=void 0===l?[]:l,c=a.loadingKeys,d=void 0===c?[]:c,s=e.props,u=s.loadData,f=s.onLoad;return u&&-1===i.indexOf(t)&&-1===d.indexOf(t)?(u(n).then((function(){var o=ut(e.state.loadedKeys,t);null===f||void 0===f||f(o,{event:"load",node:n}),e.setUncontrolledState({loadedKeys:o}),e.setState((function(e){return{loadingKeys:st(e.loadingKeys,t)}})),r()})).catch((function(n){if(e.setState((function(e){return{loadingKeys:st(e.loadingKeys,t)}})),e.loadingRetryTimes[t]=(e.loadingRetryTimes[t]||0)+1,e.loadingRetryTimes[t]>=10){var a=e.state.loadedKeys;(0,y.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:ut(a,t)}),r()}o(n)})),{loadingKeys:ut(d,t)}):null}))}));return r.catch((function(){})),r},e.onNodeMouseEnter=function(n,t){var r=e.props.onMouseEnter;null===r||void 0===r||r({event:n,node:t})},e.onNodeMouseLeave=function(n,t){var r=e.props.onMouseLeave;null===r||void 0===r||r({event:n,node:t})},e.onNodeContextMenu=function(n,t){var r=e.props.onRightClick;r&&(n.preventDefault(),r({event:n,node:t}))},e.onFocus=function(){var n=e.props.onFocus;e.setState({focused:!0});for(var t=arguments.length,r=new Array(t),o=0;o1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,a=!0,l={};Object.keys(n).forEach((function(t){t in e.props?a=!1:(o=!0,l[t]=n[t])})),!o||t&&!a||e.setState((0,d.Z)((0,d.Z)({},l),r))}},e.scrollTo=function(n){e.listRef.current.scrollTo(n)},e}return(0,Fn.Z)(t,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props.activeKey;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,n,t=this.state,a=t.focused,i=t.flattenNodes,d=t.keyEntities,s=t.draggingNodeKey,f=t.activeKey,v=t.dropLevelOffset,h=t.dropContainerKey,m=t.dropTargetKey,y=t.dropPosition,g=t.dragOverNodeKey,x=t.indent,C=this.props,E=C.prefixCls,k=C.className,Z=C.style,N=C.showLine,b=C.focusable,w=C.tabIndex,S=void 0===w?0:w,K=C.selectable,O=C.showIcon,P=C.icon,D=C.switcherIcon,R=C.draggable,M=C.checkable,L=C.checkStrictly,T=C.disabled,I=C.motion,A=C.loadData,H=C.filterTreeNode,z=C.height,_=C.itemHeight,F=C.virtual,j=C.titleRender,B=C.dropIndicatorRender,V=C.onContextMenu,W=C.onScroll,U=C.direction,G=C.rootClassName,X=C.rootStyle,q=(0,p.Z)(this.props,{aria:!0,data:!0});return R&&(n="object"===(0,r.Z)(R)?R:"function"===typeof R?{nodeDraggable:R}:{}),u.createElement(Un.Provider,{value:{prefixCls:E,selectable:K,showIcon:O,icon:P,switcherIcon:D,draggable:n,draggingNodeKey:s,checkable:M,checkStrictly:L,disabled:T,keyEntities:d,dropLevelOffset:v,dropContainerKey:h,dropTargetKey:m,dropPosition:y,dragOverNodeKey:g,indent:x,direction:U,dropIndicatorRender:B,loadData:A,filterTreeNode:H,titleRender:j,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},u.createElement("div",{role:"tree",className:c()(E,k,G,(e={},(0,o.Z)(e,"".concat(E,"-show-line"),N),(0,o.Z)(e,"".concat(E,"-focused"),a),(0,o.Z)(e,"".concat(E,"-active-focused"),null!==f),e)),style:X},u.createElement(It,(0,l.Z)({ref:this.listRef,prefixCls:E,style:Z,data:i,disabled:T,selectable:K,checkable:!!M,motion:I,dragging:null!==s,height:z,itemHeight:_,virtual:F,focusable:b,focused:a,tabIndex:S,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:V,onScroll:W},this.getTreeNodeRequiredProps(),q))))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var t,r=n.prevProps,a={prevProps:e};function l(n){return!r&&n in e||r&&r[n]!==e[n]}var i=n.fieldNames;if(l("fieldNames")&&(i=Jn(e.fieldNames),a.fieldNames=i),l("treeData")?t=e.treeData:l("children")&&((0,y.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),t=Qn(e.children)),t){a.treeData=t;var c=nt(t,{fieldNames:i});a.keyEntities=(0,d.Z)((0,o.Z)({},Ot,Dt),c.keyEntities)}var s,u=a.keyEntities||n.keyEntities;if(l("expandedKeys")||r&&l("autoExpandParent"))a.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?xt(e.expandedKeys,u):e.expandedKeys;else if(!r&&e.defaultExpandAll){var f=(0,d.Z)({},u);delete f[Ot],a.expandedKeys=Object.keys(f).map((function(e){return f[e].key}))}else!r&&e.defaultExpandedKeys&&(a.expandedKeys=e.autoExpandParent||e.defaultExpandParent?xt(e.defaultExpandedKeys,u):e.defaultExpandedKeys);if(a.expandedKeys||delete a.expandedKeys,t||a.expandedKeys){var p=$n(t||n.treeData,a.expandedKeys||n.expandedKeys,i);a.flattenNodes=p}if((e.selectable&&(l("selectedKeys")?a.selectedKeys=yt(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(a.selectedKeys=yt(e.defaultSelectedKeys,e))),e.checkable)&&(l("checkedKeys")?s=gt(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?s=gt(e.defaultCheckedKeys)||{}:t&&(s=gt(e.checkedKeys)||{checkedKeys:n.checkedKeys,halfCheckedKeys:n.halfCheckedKeys}),s)){var v=s,h=v.checkedKeys,m=void 0===h?[]:h,g=v.halfCheckedKeys,x=void 0===g?[]:g;if(!e.checkStrictly){var C=zt(m,!0,u);m=C.checkedKeys,x=C.halfCheckedKeys}a.checkedKeys=m,a.halfCheckedKeys=x}return l("loadedKeys")&&(a.loadedKeys=e.loadedKeys),a}}]),t}(u.Component);_t.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var n=e.dropPosition,t=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:o.top=0,o.left=-t*r;break;case 1:o.bottom=0,o.left=-t*r;break;case 0:o.bottom=0,o.left=r}return u.createElement("div",{style:o})},allowDrop:function(){return!0},expandAction:!1},_t.TreeNode=dt;var Ft=_t,jt=t(33603),Bt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Vt=function(e,n){return u.createElement(an.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:n,icon:Bt}))};Vt.displayName="FileOutlined";var Wt=u.forwardRef(Vt),Ut={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Gt=function(e,n){return u.createElement(an.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:n,icon:Ut}))};Gt.displayName="FolderOpenOutlined";var Xt=u.forwardRef(Gt),qt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Yt=function(e,n){return u.createElement(an.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:n,icon:qt}))};Yt.displayName="FolderOutlined";var Jt,Qt=u.forwardRef(Yt);function $t(e,n){e.forEach((function(e){var t=e.key,r=e.children;!1!==n(t,e)&&$t(r||[],n)}))}function er(e){var n=e.treeData,t=e.expandedKeys,r=e.startKey,o=e.endKey,a=[],l=Jt.None;if(r&&r===o)return[r];if(!r||!o)return[];return $t(n,(function(e){if(l===Jt.End)return!1;if(function(e){return e===r||e===o}(e)){if(a.push(e),l===Jt.None)l=Jt.Start;else if(l===Jt.Start)return l=Jt.End,!1}else l===Jt.Start&&a.push(e);return-1!==t.indexOf(e)})),a}function nr(e,n){var t=(0,s.Z)(n),r=[];return $t(e,(function(e,n){var o=t.indexOf(e);return-1!==o&&(r.push(n),t.splice(o,1)),!!t.length})),r}!function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"}(Jt||(Jt={}));var tr=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1},n=e.confirm,t=e.closeDropdown;n&&Y([]),t&&P(!1),G(""),I(Z?(N||[]).map((function(e){return String(e)})):[])},$=c()((0,o.Z)({},"".concat(i,"-menu-without-submenu"),!(l.filters||[]).some((function(e){return e.children})))),ee=function(e){if(e.target.checked){var n=Mr(null===l||void 0===l?void 0:l.filters).map((function(e){return String(e)}));I(n)}else I([])},ne=function e(n){return(n.filters||[]).map((function(n,t){var r=String(n.value),o={title:n.text,key:void 0!==n.value?r:t};return n.children&&(o.children=e({filters:n.children})),o}))};if("function"===typeof l.filterDropdown)q=l.filterDropdown({prefixCls:"".concat(i,"-custom"),setSelectedKeys:function(e){return A({selectedKeys:e})},selectedKeys:T(),confirm:function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0}).closeDropdown&&P(!1),Y(T())},clearFilters:Q,filters:l.filters,visible:D});else if(l.filterDropdown)q=l.filterDropdown;else{var te=T()||[];q=u.createElement(u.Fragment,null,0===(l.filters||[]).length?u.createElement(vn.Z,{image:vn.Z.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===p?u.createElement(u.Fragment,null,u.createElement(wr,{filterSearch:h,value:U,onChange:X,tablePrefixCls:t,locale:g}),u.createElement("div",{className:"".concat(t,"-filter-dropdown-tree")},s?u.createElement(fn.Z,{checked:te.length===Mr(l.filters).length,indeterminate:te.length>0&&te.length0?c:e}),m=Math.ceil((c||e)/h.pageSize);h.current>m&&(h.current=m||1);var y=function(e,n){v({current:null!==e&&void 0!==e?e:1,pageSize:n||h.pageSize})};return!1===n?[{},function(){}]:[(0,l.Z)((0,l.Z)({},h),{onChange:function(e,r){var o;n&&(null===(o=n.onChange)||void 0===o||o.call(n,e,r)),y(e,r),t(e,r||(null===h||void 0===h?void 0:h.pageSize))}}),y]}var zr=t(84506),_r=t(80882),Fr={},jr="SELECT_ALL",Br="SELECT_INVERT",Vr="SELECT_NONE",Wr=[];function Ur(e,n){var t=[];return(e||[]).forEach((function(e){t.push(e),e&&"object"===(0,r.Z)(e)&&n in e&&(t=[].concat((0,s.Z)(t),(0,s.Z)(Ur(e[n],n))))})),t}function Gr(e,n){var t=e||{},r=t.preserveSelectedRowKeys,i=t.selectedRowKeys,c=t.defaultSelectedRowKeys,d=t.getCheckboxProps,f=t.onChange,p=t.onSelect,v=t.onSelectAll,h=t.onSelectInvert,m=t.onSelectNone,y=t.onSelectMultiple,g=t.columnWidth,x=t.type,C=t.selections,E=t.fixed,k=t.renderCell,Z=t.hideSelectAll,N=t.checkStrictly,b=void 0===N||N,w=n.prefixCls,S=n.data,K=n.pageData,O=n.getRecordByKey,P=n.getRowKey,D=n.expandType,R=n.childrenColumnName,M=n.locale,L=n.getPopupContainer,T=(0,yn.Z)(i||c||Wr,{value:i}),I=(0,a.Z)(T,2),A=I[0],H=I[1],z=u.useRef(new Map),_=(0,u.useCallback)((function(e){if(r){var n=new Map;e.forEach((function(e){var t=O(e);!t&&z.current.has(e)&&(t=z.current.get(e)),n.set(e,t)})),z.current=n}}),[O,r]);u.useEffect((function(){_(A)}),[A]);var F=(0,u.useMemo)((function(){return b?{keyEntities:null}:nt(S,{externalGetKey:P,childrenPropName:R})}),[S,P,b,R]).keyEntities,j=(0,u.useMemo)((function(){return Ur(K,R)}),[K,R]),B=(0,u.useMemo)((function(){var e=new Map;return j.forEach((function(n,t){var r=P(n,t),o=(d?d(n):null)||{};e.set(r,o)})),e}),[j,P,d]),V=(0,u.useCallback)((function(e){var n;return!!(null===(n=B.get(P(e)))||void 0===n?void 0:n.disabled)}),[B,P]),W=(0,u.useMemo)((function(){if(b)return[A||[],[]];var e=zt(A,!0,F,V);return[e.checkedKeys||[],e.halfCheckedKeys]}),[A,b,F,V]),U=(0,a.Z)(W,2),G=U[0],X=U[1],q=(0,u.useMemo)((function(){var e="radio"===x?G.slice(0,1):G;return new Set(e)}),[G,x]),Y=(0,u.useMemo)((function(){return"radio"===x?new Set:new Set(X)}),[X,x]),J=(0,u.useState)(null),Q=(0,a.Z)(J,2),$=Q[0],ee=Q[1];u.useEffect((function(){e||H(Wr)}),[!!e]);var ne=(0,u.useCallback)((function(e,n){var t,o;_(e),r?(t=e,o=e.map((function(e){return z.current.get(e)}))):(t=[],o=[],e.forEach((function(e){var n=O(e);void 0!==n&&(t.push(e),o.push(n))}))),H(t),null===f||void 0===f||f(t,o,{type:n})}),[H,O,f,r]),te=(0,u.useCallback)((function(e,n,t,r){if(p){var o=t.map((function(e){return O(e)}));p(O(e),n,o,r)}ne(t,"single")}),[p,O,ne]),re=(0,u.useMemo)((function(){return!C||Z?null:(!0===C?[jr,Br,Vr]:C).map((function(e){return e===jr?{key:"all",text:M.selectionAll,onSelect:function(){ne(S.map((function(e,n){return P(e,n)})).filter((function(e){var n=B.get(e);return!(null===n||void 0===n?void 0:n.disabled)||q.has(e)})),"all")}}:e===Br?{key:"invert",text:M.selectInvert,onSelect:function(){var e=new Set(q);K.forEach((function(n,t){var r=P(n,t),o=B.get(r);(null===o||void 0===o?void 0:o.disabled)||(e.has(r)?e.delete(r):e.add(r))}));var n=Array.from(e);h&&h(n),ne(n,"invert")}}:e===Vr?{key:"none",text:M.selectNone,onSelect:function(){null===m||void 0===m||m(),ne(Array.from(q).filter((function(e){var n=B.get(e);return null===n||void 0===n?void 0:n.disabled})),"none")}}:e})).map((function(e){return(0,l.Z)((0,l.Z)({},e),{onSelect:function(){for(var n,t,r=arguments.length,o=new Array(r),a=0;a2&&void 0!==arguments[2]&&arguments[2],r=(0,l.Z)((0,l.Z)({},ie),e);t&&(ie.resetPagination(),r.pagination.current&&(r.pagination.current=1),m&&m.onChange&&m.onChange(1,r.pagination.pageSize)),D&&!1!==D.scrollToFirstRowOnChange&&re.body.current&&Je(0,{getContainer:function(){return re.body.current}}),null===Z||void 0===Z||Z(r.pagination,r.filters,r.sorter,{currentDataSource:Tr(io(q,r.sorterStates,ne),r.filterStates),action:n})},de=co({prefixCls:J,mergedColumns:z,onSorterChange:function(e,n){ce({sorter:e,sorterStates:n},"sort",!1)},sortDirections:R||["ascend","descend"],tableLocale:X,showSorterTooltip:T}),ue=(0,a.Z)(de,4),fe=ue[0],pe=ue[1],ve=ue[2],he=ue[3],me=u.useMemo((function(){return io(q,pe,ne)}),[q,pe]);ie.sorter=he(),ie.sorterStates=pe;var ye=Ir({prefixCls:J,locale:X,dropdownPrefixCls:Q,mergedColumns:z,onFilterChange:function(e,n){ce({filters:e,filterStates:n},"filter",!0)},getPopupContainer:N}),ge=(0,a.Z)(ye,3),xe=ge[0],Ce=ge[1],Ee=ge[2],ke=Tr(me,Ce);ie.filters=Ee(),ie.filterStates=Ce;var Ze=uo(u.useMemo((function(){return(0,l.Z)({},ve)}),[ve])),Ne=(0,a.Z)(Ze,1)[0],be=Hr(ke.length,m,(function(e,n){ce({pagination:(0,l.Z)((0,l.Z)({},ie.pagination),{current:e,pageSize:n})},"paginate")})),we=(0,a.Z)(be,2),Se=we[0],Ke=we[1];ie.pagination=!1===m?{}:function(e,n){var t={current:n.current,pageSize:n.pageSize},o=e&&"object"===(0,r.Z)(e)?e:{};return Object.keys(o).forEach((function(e){var r=n[e];"function"!==typeof r&&(t[e]=r)})),t}(m,Se),ie.resetPagination=Ke;var Oe=u.useMemo((function(){if(!1===m||!Se.pageSize)return ke;var e=Se.current,n=void 0===e?1:e,t=Se.total,r=Se.pageSize,o=void 0===r?10:r;return ke.lengtho?ke.slice((n-1)*o,n*o):ke:ke.slice((n-1)*o,n*o)}),[!!m,ke,Se&&Se.current,Se&&Se.pageSize,Se&&Se.total]),Pe=Gr(y,{prefixCls:J,data:ke,pageData:Oe,getRowKey:oe,getRecordByKey:le,expandType:te,childrenColumnName:ne,locale:X,getPopupContainer:N}),De=(0,a.Z)(Pe,2),Re=De[0],Me=De[1];$.__PARENT_RENDER_ICON__=$.expandIcon,$.expandIcon=$.expandIcon||w||en(X),"nest"===te&&void 0===$.expandIconColumnIndex?$.expandIconColumnIndex=y?1:0:$.expandIconColumnIndex>0&&y&&($.expandIconColumnIndex-=1),"number"!==typeof $.indentSize&&($.indentSize="number"===typeof P?P:15);var Le,Ie,Ae,Ge=u.useCallback((function(e){return Ne(Re(xe(fe(e))))}),[fe,xe,Re]);if(!1!==m&&(null===Se||void 0===Se?void 0:Se.total)){var Xe;Xe=Se.size?Se.size:"small"===G||"middle"===G?"small":void 0;var qe=function(e){return u.createElement(We.Z,(0,l.Z)({},Se,{className:c()("".concat(J,"-pagination ").concat(J,"-pagination-").concat(e),Se.className),size:Xe}))},Ye="rtl"===U?"left":"right",Qe=Se.position;if(null!==Qe&&Array.isArray(Qe)){var $e=Qe.find((function(e){return-1!==e.indexOf("top")})),nn=Qe.find((function(e){return-1!==e.indexOf("bottom")})),tn=Qe.every((function(e){return"none"==="".concat(e)}));$e||nn||tn||(Ie=qe(Ye)),$e&&(Le=qe($e.toLowerCase().replace("top",""))),nn&&(Ie=qe(nn.toLowerCase().replace("bottom","")))}else Ie=qe(Ye)}"boolean"===typeof b?Ae={spinning:b}:"object"===(0,r.Z)(b)&&(Ae=(0,l.Z)({spinning:!0},b));var rn=c()("".concat(J,"-wrapper"),(0,o.Z)({},"".concat(J,"-wrapper-rtl"),"rtl"===U),d);return u.createElement("div",{ref:n,className:rn,style:s},u.createElement(Ue.Z,(0,l.Z)({spinning:!1},Ae),Le,u.createElement(He,(0,l.Z)({},_,{columns:z,direction:U,expandable:$,prefixCls:J,className:c()((t={},(0,o.Z)(t,"".concat(J,"-middle"),"middle"===G),(0,o.Z)(t,"".concat(J,"-small"),"small"===G),(0,o.Z)(t,"".concat(J,"-bordered"),p),(0,o.Z)(t,"".concat(J,"-empty"),0===q.length),t)),data:Oe,rowKey:oe,rowClassName:function(e,n,t){var r;return r="function"===typeof x?c()(x(e,n,t)):c()(x),c()((0,o.Z)({},"".concat(J,"-row-selected"),Me.has(oe(e,n))),r)},emptyText:M&&M.emptyText||(W||Fe.Z)("Table"),internalHooks:Te,internalRefs:re,transformColumns:Ge})),Ie))}var vo=u.forwardRef(po);vo.defaultProps={rowKey:"key"},vo.SELECTION_COLUMN=Fr,vo.EXPAND_COLUMN=He.EXPAND_COLUMN,vo.SELECTION_ALL=jr,vo.SELECTION_INVERT=Br,vo.SELECTION_NONE=Vr,vo.Column=Qe,vo.ColumnGroup=$e,vo.Summary=Ze;var ho=vo},50132:function(e,n,t){var r=t(87462),o=t(4942),a=t(91),l=t(1413),i=t(15671),c=t(43144),d=t(60136),s=t(33643),u=t(67294),f=t(94184),p=t.n(f),v=function(e){(0,d.Z)(t,e);var n=(0,s.Z)(t);function t(e){var r;(0,i.Z)(this,t),(r=n.call(this,e)).handleChange=function(e){var n=r.props,t=n.disabled,o=n.onChange;t||("checked"in r.props||r.setState({checked:e.target.checked}),o&&o({target:(0,l.Z)((0,l.Z)({},r.props),{},{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e.nativeEvent}))},r.saveInput=function(e){r.input=e};var o="checked"in e?e.checked:e.defaultChecked;return r.state={checked:o},r}return(0,c.Z)(t,[{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"render",value:function(){var e,n=this.props,t=n.prefixCls,l=n.className,i=n.style,c=n.name,d=n.id,s=n.type,f=n.disabled,v=n.readOnly,h=n.tabIndex,m=n.onClick,y=n.onFocus,g=n.onBlur,x=n.onKeyDown,C=n.onKeyPress,E=n.onKeyUp,k=n.autoFocus,Z=n.value,N=n.required,b=(0,a.Z)(n,["prefixCls","className","style","name","id","type","disabled","readOnly","tabIndex","onClick","onFocus","onBlur","onKeyDown","onKeyPress","onKeyUp","autoFocus","value","required"]),w=Object.keys(b).reduce((function(e,n){return"aria-"!==n.substr(0,5)&&"data-"!==n.substr(0,5)&&"role"!==n||(e[n]=b[n]),e}),{}),S=this.state.checked,K=p()(t,l,(e={},(0,o.Z)(e,"".concat(t,"-checked"),S),(0,o.Z)(e,"".concat(t,"-disabled"),f),e));return u.createElement("span",{className:K,style:i},u.createElement("input",(0,r.Z)({name:c,id:d,type:s,required:N,readOnly:v,disabled:f,tabIndex:h,className:"".concat(t,"-input"),checked:!!S,onClick:m,onFocus:y,onBlur:g,onKeyUp:E,onKeyDown:x,onKeyPress:C,onChange:this.handleChange,autoFocus:k,ref:this.saveInput,value:Z},w)),u.createElement("span",{className:"".concat(t,"-inner")}))}}],[{key:"getDerivedStateFromProps",value:function(e,n){return"checked"in e?(0,l.Z)((0,l.Z)({},n),{},{checked:e.checked}):null}}]),t}(u.Component);v.defaultProps={prefixCls:"rc-checkbox",className:"",style:{},type:"checkbox",defaultChecked:!1,onFocus:function(){},onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){}},n.Z=v}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/384-9cef8f24921b00dc.js b/static/web/_next/static/chunks/384-9cef8f24921b00dc.js deleted file mode 100644 index bf12627c0..000000000 --- a/static/web/_next/static/chunks/384-9cef8f24921b00dc.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[384],{57838:function(e,t,n){n.d(t,{Z:function(){return i}});var a=n(97685),r=n(67294);function i(){var e=r.useReducer((function(e){return e+1}),0);return(0,a.Z)(e,2)[1]}},24308:function(e,t,n){n.d(t,{c4:function(){return i}});var a=n(4942),r=n(87462),i=["xxl","xl","lg","md","sm","xs"],o={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},l=new Map,c=-1,s={},u={matchHandlers:{},dispatch:function(e){return s=e,l.forEach((function(e){return e(s)})),l.size>=1},subscribe:function(e){return l.size||this.register(),c+=1,l.set(c,e),e(s),c},unsubscribe:function(e){l.delete(e),l.size||this.unregister()},unregister:function(){var e=this;Object.keys(o).forEach((function(t){var n=o[t],a=e.matchHandlers[n];null===a||void 0===a||a.mql.removeListener(null===a||void 0===a?void 0:a.listener)})),l.clear()},register:function(){var e=this;Object.keys(o).forEach((function(t){var n=o[t],i=function(n){var i=n.matches;e.dispatch((0,r.Z)((0,r.Z)({},s),(0,a.Z)({},t,i)))},l=window.matchMedia(n);l.addListener(i),e.matchHandlers[n]={mql:l,listener:i},i(l)}))}};t.ZP=u},25378:function(e,t,n){var a=n(67294),r=n(57838),i=n(24308);t.Z=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=(0,a.useRef)({}),n=(0,r.Z)();return(0,a.useEffect)((function(){var a=i.ZP.subscribe((function(a){t.current=a,e&&n()}));return function(){return i.ZP.unsubscribe(a)}}),[]),t.current}},40378:function(e,t,n){var a=n(6213);t.Z=a.Z},3698:function(e,t,n){n.d(t,{Z:function(){return D}});var a=n(4942),r=n(87462),i=n(1413),o=n(67294),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},c=n(42135),s=function(e,t){return o.createElement(c.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:t,icon:l}))};s.displayName="DoubleLeftOutlined";var u=o.forwardRef(s),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},h=function(e,t){return o.createElement(c.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:t,icon:p}))};h.displayName="DoubleRightOutlined";var m=o.forwardRef(h),d=n(6171),f=n(18073),g=n(94184),v=n.n(g),x=n(15671),C=n(43144),b=n(60136),y=n(33643),N=function(e){var t,n="".concat(e.rootPrefixCls,"-item"),r=v()(n,"".concat(n,"-").concat(e.page),(t={},(0,a.Z)(t,"".concat(n,"-active"),e.active),(0,a.Z)(t,"".concat(n,"-disabled"),!e.page),(0,a.Z)(t,e.className,!!e.className),t));return o.createElement("li",{title:e.showTitle?e.page:null,className:r,onClick:function(){e.onClick(e.page)},onKeyPress:function(t){e.onKeyPress(t,e.onClick,e.page)},tabIndex:"0"},e.itemRender(e.page,"page",o.createElement("a",{rel:"nofollow"},e.page)))},E=13,P=38,k=40,S=function(e){(0,b.Z)(n,e);var t=(0,y.Z)(n);function n(){var e;(0,x.Z)(this,n);for(var a=arguments.length,r=new Array(a),i=0;i=0||t.relatedTarget.className.indexOf("".concat(i,"-item"))>=0)||r(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode!==E&&"click"!==t.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))},e}return(0,C.Z)(n,[{key:"getValidValue",value:function(){var e=this.state.goInputText;return!e||isNaN(e)?void 0:Number(e)}},{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,n=e.pageSizeOptions;return n.some((function(e){return e.toString()===t.toString()}))?n:n.concat([t.toString()]).sort((function(e,t){return(isNaN(Number(e))?0:Number(e))-(isNaN(Number(t))?0:Number(t))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,a=t.locale,r=t.rootPrefixCls,i=t.changeSize,l=t.quickGo,c=t.goButton,s=t.selectComponentClass,u=t.buildOptionText,p=t.selectPrefixCls,h=t.disabled,m=this.state.goInputText,d="".concat(r,"-options"),f=s,g=null,v=null,x=null;if(!i&&!l)return null;var C=this.getPageSizeOptions();if(i&&f){var b=C.map((function(t,n){return o.createElement(f.Option,{key:n,value:t.toString()},(u||e.buildOptionText)(t))}));g=o.createElement(f,{disabled:h,prefixCls:p,showSearch:!1,className:"".concat(d,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(n||C[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":a.page_size,defaultOpen:!1},b)}return l&&(c&&(x="boolean"===typeof c?o.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:h,className:"".concat(d,"-quick-jumper-button")},a.jump_to_confirm):o.createElement("span",{onClick:this.go,onKeyUp:this.go},c)),v=o.createElement("div",{className:"".concat(d,"-quick-jumper")},a.jump_to,o.createElement("input",{disabled:h,type:"text",value:m,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":a.page}),a.page,x)),o.createElement("li",{className:"".concat(d)},g,v)}}]),n}(o.Component);S.defaultProps={pageSizeOptions:["10","20","50","100"]};var I=S;function w(){}function z(e){var t=Number(e);return"number"===typeof t&&!isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Z(e,t,n){var a="undefined"===typeof e?t.pageSize:e;return Math.floor((n.total-1)/a)+1}var O=function(e){(0,b.Z)(n,e);var t=(0,y.Z)(n);function n(e){var a;(0,x.Z)(this,n),(a=t.call(this,e)).getJumpPrevPage=function(){return Math.max(1,a.state.current-(a.props.showLessItems?3:5))},a.getJumpNextPage=function(){return Math.min(Z(void 0,a.state,a.props),a.state.current+(a.props.showLessItems?3:5))},a.getItemIcon=function(e,t){var n=a.props.prefixCls,r=e||o.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"===typeof e&&(r=o.createElement(e,(0,i.Z)({},a.props))),r},a.savePaginationNode=function(e){a.paginationNode=e},a.isValid=function(e){var t=a.props.total;return z(e)&&e!==a.state.current&&z(t)&&t>0},a.shouldDisplayQuickJumper=function(){var e=a.props,t=e.showQuickJumper;return!(e.total<=a.state.pageSize)&&t},a.handleKeyDown=function(e){e.keyCode!==P&&e.keyCode!==k||e.preventDefault()},a.handleKeyUp=function(e){var t=a.getValidValue(e);t!==a.state.currentInputValue&&a.setState({currentInputValue:t}),e.keyCode===E?a.handleChange(t):e.keyCode===P?a.handleChange(t-1):e.keyCode===k&&a.handleChange(t+1)},a.handleBlur=function(e){var t=a.getValidValue(e);a.handleChange(t)},a.changePageSize=function(e){var t=a.state.current,n=Z(e,a.state,a.props);t=t>n?n:t,0===n&&(t=a.state.current),"number"===typeof e&&("pageSize"in a.props||a.setState({pageSize:e}),"current"in a.props||a.setState({current:t,currentInputValue:t})),a.props.onShowSizeChange(t,e),"onChange"in a.props&&a.props.onChange&&a.props.onChange(t,e)},a.handleChange=function(e){var t=a.props,n=t.disabled,r=t.onChange,i=a.state,o=i.pageSize,l=i.current,c=i.currentInputValue;if(a.isValid(e)&&!n){var s=Z(void 0,a.state,a.props),u=e;return e>s?u=s:e<1&&(u=1),"current"in a.props||a.setState({current:u}),u!==c&&a.setState({currentInputValue:u}),r(u,o),u}return l},a.prev=function(){a.hasPrev()&&a.handleChange(a.state.current-1)},a.next=function(){a.hasNext()&&a.handleChange(a.state.current+1)},a.jumpPrev=function(){a.handleChange(a.getJumpPrevPage())},a.jumpNext=function(){a.handleChange(a.getJumpNextPage())},a.hasPrev=function(){return a.state.current>1},a.hasNext=function(){return a.state.current2?n-2:0),r=2;r=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,a=e.totalBoundaryShowSizeChanger;return"undefined"!==typeof t?t:n>a}},{key:"renderPrev",value:function(e){var t=this.props,n=t.prevIcon,a=(0,t.itemRender)(e,"prev",this.getItemIcon(n,"prev page")),r=!this.hasPrev();return(0,o.isValidElement)(a)?(0,o.cloneElement)(a,{disabled:r}):a}},{key:"renderNext",value:function(e){var t=this.props,n=t.nextIcon,a=(0,t.itemRender)(e,"next",this.getItemIcon(n,"next page")),r=!this.hasNext();return(0,o.isValidElement)(a)?(0,o.cloneElement)(a,{disabled:r}):a}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,i=t.className,l=t.style,c=t.disabled,s=t.hideOnSinglePage,u=t.total,p=t.locale,h=t.showQuickJumper,m=t.showLessItems,d=t.showTitle,f=t.showTotal,g=t.simple,x=t.itemRender,C=t.showPrevNextJumpers,b=t.jumpPrevIcon,y=t.jumpNextIcon,E=t.selectComponentClass,P=t.selectPrefixCls,k=t.pageSizeOptions,S=this.state,w=S.current,z=S.pageSize,O=S.currentInputValue;if(!0===s&&u<=z)return null;var _=Z(void 0,this.state,this.props),j=[],T=null,V=null,K=null,L=null,J=null,B=h&&h.goButton,R=m?1:2,M=w-1>0?w-1:0,D=w+1<_?w+1:_,U=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{});if(g)return B&&(J="boolean"===typeof B?o.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},p.jump_to_confirm):o.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},B),J=o.createElement("li",{title:d?"".concat(p.jump_to).concat(w,"/").concat(_):null,className:"".concat(n,"-simple-pager")},J)),o.createElement("ul",(0,r.Z)({className:v()(n,"".concat(n,"-simple"),(0,a.Z)({},"".concat(n,"-disabled"),c),i),style:l,ref:this.savePaginationNode},U),o.createElement("li",{title:d?p.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:v()("".concat(n,"-prev"),(0,a.Z)({},"".concat(n,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(M)),o.createElement("li",{title:d?"".concat(w,"/").concat(_):null,className:"".concat(n,"-simple-pager")},o.createElement("input",{type:"text",value:O,disabled:c,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:"3"}),o.createElement("span",{className:"".concat(n,"-slash")},"/"),_),o.createElement("li",{title:d?p.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:v()("".concat(n,"-next"),(0,a.Z)({},"".concat(n,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(D)),J);if(_<=3+2*R){var q={locale:p,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:d,itemRender:x};_||j.push(o.createElement(N,(0,r.Z)({},q,{key:"noPager",page:1,className:"".concat(n,"-item-disabled")})));for(var G=1;G<=_;G+=1){var H=w===G;j.push(o.createElement(N,(0,r.Z)({},q,{key:G,page:G,active:H})))}}else{var Q=m?p.prev_3:p.prev_5,A=m?p.next_3:p.next_5;C&&(T=o.createElement("li",{title:d?Q:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:v()("".concat(n,"-jump-prev"),(0,a.Z)({},"".concat(n,"-jump-prev-custom-icon"),!!b))},x(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(b,"prev page"))),V=o.createElement("li",{title:d?A:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:v()("".concat(n,"-jump-next"),(0,a.Z)({},"".concat(n,"-jump-next-custom-icon"),!!y))},x(this.getJumpNextPage(),"jump-next",this.getItemIcon(y,"next page")))),L=o.createElement(N,{locale:p,last:!0,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:_,page:_,active:!1,showTitle:d,itemRender:x}),K=o.createElement(N,{locale:p,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:d,itemRender:x});var W=Math.max(1,w-R),F=Math.min(w+R,_);w-1<=R&&(F=1+2*R),_-w<=R&&(W=_-2*R);for(var Y=W;Y<=F;Y+=1){var X=w===Y;j.push(o.createElement(N,{locale:p,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Y,page:Y,active:X,showTitle:d,itemRender:x}))}w-1>=2*R&&3!==w&&(j[0]=(0,o.cloneElement)(j[0],{className:"".concat(n,"-item-after-jump-prev")}),j.unshift(T)),_-w>=2*R&&w!==_-2&&(j[j.length-1]=(0,o.cloneElement)(j[j.length-1],{className:"".concat(n,"-item-before-jump-next")}),j.push(V)),1!==W&&j.unshift(K),F!==_&&j.push(L)}var $=null;f&&($=o.createElement("li",{className:"".concat(n,"-total-text")},f(u,[0===u?0:(w-1)*z+1,w*z>u?u:w*z])));var ee=!this.hasPrev()||!_,te=!this.hasNext()||!_;return o.createElement("ul",(0,r.Z)({className:v()(n,i,(0,a.Z)({},"".concat(n,"-disabled"),c)),style:l,unselectable:"unselectable",ref:this.savePaginationNode},U),$,o.createElement("li",{title:d?p.prev_page:null,onClick:this.prev,tabIndex:ee?null:0,onKeyPress:this.runIfEnterPrev,className:v()("".concat(n,"-prev"),(0,a.Z)({},"".concat(n,"-disabled"),ee)),"aria-disabled":ee},this.renderPrev(M)),j,o.createElement("li",{title:d?p.next_page:null,onClick:this.next,tabIndex:te?null:0,onKeyPress:this.runIfEnterNext,className:v()("".concat(n,"-next"),(0,a.Z)({},"".concat(n,"-disabled"),te)),"aria-disabled":te},this.renderNext(D)),o.createElement(I,{disabled:c,locale:p,rootPrefixCls:n,selectComponentClass:E,selectPrefixCls:P,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:w,pageSize:z,pageSizeOptions:k,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:B}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var a=t.current,r=Z(e.pageSize,t,e);a=a>r?r:a,"current"in e||(n.current=a,n.currentInputValue=a),n.pageSize=e.pageSize}return n}}]),n}(o.Component);O.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:w,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:w,locale:{items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875",page_size:"\u9875\u7801"},style:{},itemRender:function(e,t,n){return n},totalBoundaryShowSizeChanger:50};var _=O,j=n(62906),T=n(53124),V=n(25378),K=n(23715),L=n(38939),J=function(e){return o.createElement(L.Z,(0,r.Z)({},e,{size:"small"}))},B=function(e){return o.createElement(L.Z,(0,r.Z)({},e,{size:"middle"}))};J.Option=L.Z.Option,B.Option=L.Z.Option;var R=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);rs({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=s.r.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((i,s)=>{if(!i.running||!i.items.length)return;const n=i.items;let o,a=n.length-1,r=!1;for(;a>=0;--a)o=n[a],o._active?(o._total>i.duration&&(i.duration=o._total),o.tick(t),r=!0):(n[a]=n[n.length-1],n.pop());r&&(s.draw(),this._notify(s,i,t,"progress")),n.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),e+=n.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const o="transparent",a={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const n=(0,s.c)(t||o),a=n.valid&&(0,s.c)(e||o);return a&&a.valid?a.mix(n,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class r{constructor(t,e,i,n){const o=e[i];n=(0,s.a)([t.to,n,o,t.from]);const r=(0,s.a)([t.from,o,n]);this._active=!0,this._fn=t.fn||a[t.type||typeof r],this._easing=s.e[t.easing]||s.e.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=r,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const n=this._target[this._prop],o=i-this._start,a=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=(0,s.a)([t.to,e,n,t.from]),this._from=(0,s.a)([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,s=this._prop,n=this._from,o=this._loop,a=this._to;let r;if(this._active=n!==a&&(o||e1?2-r:r,r=this._easing(Math.min(1,Math.max(0,r))),this._target[s]=this._fn(n,a,r))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,i)=>{t.push({res:e,rej:i})}))}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let s=0;s"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),s.d.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),s.d.describe("animations",{_fallback:"animation"}),s.d.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class l{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!(0,s.i)(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach((i=>{const n=t[i];if(!(0,s.i)(n))return;const o={};for(const t of h)o[t]=n[t];((0,s.b)(n.properties)&&n.properties||[i]).forEach((t=>{t!==i&&e.has(t)||e.set(t,o)}))}))}_animateOptions(t,e){const i=e.options,s=function(t,e){if(!e)return;let i=t.options;if(!i)return void(t.options=e);i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}}));return i}(t,i);if(!s)return[];const n=this._createAnimations(s,i);return i.$shared&&function(t,e){const i=[],s=Object.keys(e);for(let n=0;n{t.options=i}),(()=>{})),n}_createAnimations(t,e){const i=this._properties,s=[],n=t.$animations||(t.$animations={}),o=Object.keys(e),a=Date.now();let h;for(h=o.length-1;h>=0;--h){const l=o[h];if("$"===l.charAt(0))continue;if("options"===l){s.push(...this._animateOptions(t,e));continue}const c=e[l];let d=n[l];const u=i.get(l);if(d){if(u&&d.active()){d.update(u,c,a);continue}d.cancel()}u&&u.duration?(n[l]=d=new r(u,t,l,c),s.push(d)):t[l]=c}return s}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(n.add(this._chart,i),!0):void 0}}function c(t,e){const i=t&&t.options||{},s=i.reverse,n=void 0===i.min?e:0,o=void 0===i.max?e:0;return{start:s?o:n,end:s?n:o}}function d(t,e){const i=[],s=t._getSortedDatasetMetas(e);let n,o;for(n=0,o=s.length;n0||!i&&e<0)return n.index}return null}function m(t,e){const{chart:i,_cachedMeta:s}=t,n=i._stacks||(i._stacks={}),{iScale:o,vScale:a,index:r}=s,h=o.axis,l=a.axis,c=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(o,a,s),d=e.length;let u;for(let g=0;gi[t].axis===e)).shift()}function b(t,e){const i=t.controller.index,s=t.vScale&&t.vScale.axis;if(s){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[s]||void 0===e[s][i])return;delete e[s][i]}}}const _=t=>"reset"===t||"none"===t,v=(t,e)=>e?t:Object.assign({},t);class y{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=g(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&b(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),n=(t,e,i,s)=>"x"===t?e:"r"===t?s:i,o=e.xAxisID=(0,s.v)(i.xAxisID,x(t,"x")),a=e.yAxisID=(0,s.v)(i.yAxisID,x(t,"y")),r=e.rAxisID=(0,s.v)(i.rAxisID,x(t,"r")),h=e.indexAxis,l=e.iAxisID=n(h,o,a,r),c=e.vAxisID=n(h,a,o,r);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(a),e.rScale=this.getScaleForId(r),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&(0,s.u)(this._data,this),t._stacked&&b(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if((0,s.i)(e))this._data=function(t){const e=Object.keys(t),i=new Array(e.length);let s,n,o;for(s=0,n=e.length;s0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=n,i._sorted=!0,c=n;else{c=(0,s.b)(n[t])?this.parseArrayData(i,n,t,e):(0,s.i)(n[t])?this.parseObjectData(i,n,t,e):this.parsePrimitiveData(i,n,t,e);const o=()=>null===l[r]||u&&l[r]t&&!e.hidden&&e._stacked&&{keys:d(i,!0),values:null})(e,i,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(t){const{min:e,max:i,minDefined:s,maxDefined:n}=t.getUserBounds();return{min:s?e:Number.NEGATIVE_INFINITY,max:n?i:Number.POSITIVE_INFINITY}}(r);let g,p;function f(){p=n[g];const e=p[r.axis];return!(0,s.g)(p[t.axis])||c>e||u=0;--g)if(!f()){this.updateRangeFromParsed(l,t,p,h);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let n,o,a;for(n=0,o=e.length;n=0&&tthis.getContext(i,n)),d);return p.$shared&&(p.$shared=h,o[a]=Object.freeze(v(p,h))),p}_resolveAnimations(t,e,i){const s=this.chart,n=this._cachedDataOpts,o=`animation-${e}`,a=n[o];if(a)return a;let r;if(!1!==s.options.animation){const s=this.chart.config,n=s.datasetAnimationScopeKeys(this._type,e),o=s.getOptionScopes(this.getDataset(),n);r=s.createResolver(o,this.getContext(t,i,e))}const h=new l(s,r&&r.animations);return r&&r._cacheable&&(n[o]=Object.freeze(h)),h}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||_(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),s=this._sharedOptions,n=this.getSharedOptions(i),o=this.includeOptions(e,n)||n!==s;return this.updateSharedOptions(n,e,i),{sharedOptions:n,includeOptions:o}}updateElement(t,e,i,s){_(s)?Object.assign(t,i):this._resolveAnimations(e,s).update(t,i)}updateSharedOptions(t,e,i){t&&!_(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,s){t.active=s;const n=this.getStyle(e,s);this._resolveAnimations(e,i,s).update(t,{options:!s&&this.getSharedOptions(n)||n})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[a,r,h]of this._syncList)this[a](r,h);this._syncList=[];const s=i.length,n=e.length,o=Math.min(n,s);o&&this.parse(0,o),n>s?this._insertElements(s,n-s,t):n{for(t.length+=e,a=t.length-1;a>=o;a--)t[a]=t[a-e]};for(r(n),a=t;at-e)))}return t._cache.$bar}(e,t.type);let n,o,a,r,h=e._length;const l=()=>{32767!==a&&-32768!==a&&((0,s.j)(r)&&(h=Math.min(h,Math.abs(a-r)||h)),r=a)};for(n=0,o=i.length;nMath.abs(r)&&(h=r,l=a),e[i.axis]=l,e._custom={barStart:h,barEnd:l,start:n,end:o,min:a,max:r}}(t,e,i,n):e[i.axis]=i.parse(t,n),e}function w(t,e,i,s){const n=t.iScale,o=t.vScale,a=n.getLabels(),r=n===o,h=[];let l,c,d,u;for(l=i,c=i+s;lt.x,i="left",s="right"):(e=t.baset.controller.options.grouped)),o=i.options.stacked,a=[],r=t=>{const i=t.controller.getParsed(e),n=i&&i[t.vScale.axis];if((0,s.k)(n)||isNaN(n))return!0};for(const s of n)if((void 0===e||!r(s))&&((!1===o||-1===a.indexOf(s.stack)||void 0===o&&void 0===s.stack)&&a.push(s.stack),s.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const s=this._getStacks(t,i),n=void 0!==e?s.indexOf(e):-1;return-1===n?s.length-1:n}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,s=[];let n,o;for(n=0,o=e.data.length;n=i?1:-1)}(d,e,a)*o,u===a&&(m-=d/2);const t=e.getPixelForDecimal(0),i=e.getPixelForDecimal(1),n=Math.min(t,i),r=Math.max(t,i);m=Math.max(Math.min(m,r),n),c=m+d}if(m===e.getPixelForValue(a)){const t=(0,s.s)(d)*e.getLineWidthForValue(a)/2;m+=t,d-=t}return{size:d,base:m,head:c,center:c+d/2}}_calculateBarIndexPixels(t,e){const i=e.scale,n=this.options,o=n.skipNull,a=(0,s.v)(n.maxBarThickness,1/0);let r,h;if(e.grouped){const i=o?this._getStackCount(t):e.stackCount,l="flex"===n.barThickness?function(t,e,i,s){const n=e.pixels,o=n[t];let a=t>0?n[t-1]:null,r=t=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:i,yScale:s}=e,n=this.getParsed(t),o=i.getLabelForValue(n.x),a=s.getLabelForValue(n.y),r=n._custom;return{label:e.label,value:"("+o+", "+a+(r?", "+r:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,s){const n="reset"===s,{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:r,includeOptions:h}=this._getSharedOptions(e,s),l=o.axis,c=a.axis;for(let d=e;d""}}}};class E extends y{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,n=this._cachedMeta;if(!1===this._parsing)n._parsed=i;else{let o,a,r=t=>+i[t];if((0,s.i)(i[t])){const{key:t="value"}=this._parsing;r=e=>+(0,s.f)(i[e],t)}for(o=t,a=t+e;o(0,s.p)(t,h,l,!0)?1:Math.max(e,e*i,n,n*i),f=(t,e,n)=>(0,s.p)(t,h,l,!0)?-1:Math.min(e,e*i,n,n*i),m=p(0,c,u),x=p(s.H,d,g),b=f(s.P,c,u),_=f(s.P+s.H,d,g);n=(m-b)/2,o=(x-_)/2,a=-(m+b)/2,r=-(x+_)/2}return{ratioX:n,ratioY:o,offsetX:a,offsetY:r}}(d,c,h),m=(i.width-a)/u,x=(i.height-a)/g,b=Math.max(Math.min(m,x)/2,0),_=(0,s.n)(this.options.radius,b),v=(_-Math.max(_*h,0))/this._getVisibleDatasetWeightTotal();this.offsetX=p*_,this.offsetY=f*_,n.total=this.calculateTotal(),this.outerRadius=_-v*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-v*l,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){const i=this.options,n=this._cachedMeta,o=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===n._parsed[t]||n.data[t].hidden?0:this.calculateCircumference(n._parsed[t]*o/s.T)}updateElements(t,e,i,s){const n="reset"===s,o=this.chart,a=o.chartArea,r=o.options.animation,h=(a.left+a.right)/2,l=(a.top+a.bottom)/2,c=n&&r.animateScale,d=c?0:this.innerRadius,u=c?0:this.outerRadius,{sharedOptions:g,includeOptions:p}=this._getSharedOptions(e,s);let f,m=this._getRotation();for(f=0;f0&&!isNaN(t)?s.T*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],o=(0,s.o)(e._parsed[t],i.options.locale);return{label:n[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const i=this.chart;let s,n,o,a,r;if(!t)for(s=0,n=i.data.datasets.length;s"spacing"!==t,_indexable:t=>"spacing"!==t},E.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map(((e,s)=>{const n=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const i=": "+t.formattedValue;return(0,s.b)(e)?(e=e.slice(),e[0]+=i):e+=i,e}}}}};class T extends y{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:n=[],_dataset:o}=e,a=this.chart._animationsDisabled;let{start:r,count:h}=(0,s.q)(e,n,a);this._drawStart=r,this._drawCount=h,(0,s.w)(e)&&(r=0,h=n.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!o._decimated,i.points=n;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(i,void 0,{animated:!a,options:l},t),this.updateElements(n,r,h,t)}updateElements(t,e,i,n){const o="reset"===n,{iScale:a,vScale:r,_stacked:h,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(e,n),u=a.axis,g=r.axis,{spanGaps:p,segment:f}=this.options,m=(0,s.x)(p)?p:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||o||"none"===n;let b=e>0&&this.getParsed(e-1);for(let _=e;_0&&Math.abs(i[u]-b[u])>m,f&&(p.parsed=i,p.raw=l.data[_]),d&&(p.options=c||this.resolveDataElementOptions(_,e.active?"active":n)),x||this.updateElement(e,_,p,n),b=i}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,s=t.data||[];if(!s.length)return i;const n=s[0].size(this.resolveDataElementOptions(0)),o=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,n,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}T.id="line",T.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},T.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class R extends y{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],o=(0,s.o)(e._parsed[t].r,i.options.locale);return{label:n[t]||"",value:o}}parseObjectData(t,e,i,n){return s.y.bind(this)(t,e,i,n)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,i)=>{const s=this.getParsed(i).r;!isNaN(s)&&this.chart.getDataVisibility(i)&&(se.max&&(e.max=s))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,s=Math.min(e.right-e.left,e.bottom-e.top),n=Math.max(s/2,0),o=(n-Math.max(i.cutoutPercentage?n/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=n-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,i,n){const o="reset"===n,a=this.chart,r=a.options.animation,h=this._cachedMeta.rScale,l=h.xCenter,c=h.yCenter,d=h.getIndexAngle(0)-.5*s.P;let u,g=d;const p=360/this.countVisibleElements();for(u=0;u{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++})),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?(0,s.t)(this.resolveDataElementOptions(t,e).angle||i):0}}R.id="polarArea",R.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},R.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map(((e,s)=>{const n=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class z extends E{}z.id="pie",z.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class I extends y{getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,n){return s.y.bind(this)(t,e,i,n)}update(t){const e=this._cachedMeta,i=e.dataset,s=e.data||[],n=e.iScale.getLabels();if(i.points=s,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:n.length===s.length,options:e};this.updateElement(i,void 0,o,t)}this.updateElements(s,0,s.length,t)}updateElements(t,e,i,s){const n=this._cachedMeta.rScale,o="reset"===s;for(let a=e;a{s[t]=i[t]&&i[t].active()?i[t]._to:this[t]})),s}}F.defaults={},F.defaultRoutes=void 0;const V={values:t=>(0,s.b)(t)?t:""+t,numeric(t,e,i){if(0===t)return"0";const n=this.chart.options.locale;let o,a=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(o="scientific"),a=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t));return i}(t,i)}const r=(0,s.z)(Math.abs(a)),h=Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:o,minimumFractionDigits:h,maximumFractionDigits:h};return Object.assign(l,this.options.ticks.format),(0,s.o)(t,n,l)},logarithmic(t,e,i){if(0===t)return"0";const n=t/Math.pow(10,Math.floor((0,s.z)(t)));return 1===n||2===n||5===n?V.numeric.call(this,t,e,i):""}};var B={formatters:V};function N(t,e){const i=t.options.ticks,n=i.maxTicksLimit||function(t){const e=t.options.offset,i=t._tickSize(),s=t._length/i+(e?0:1),n=t._maxLength/i;return Math.floor(Math.min(s,n))}(t),o=i.major.enabled?function(t){const e=[];let i,s;for(i=0,s=t.length;in)return function(t,e,i,s){let n,o=0,a=i[0];for(s=Math.ceil(s),n=0;no)return t}return Math.max(o,1)}(o,e,n);if(a>0){let t,i;const n=a>1?Math.round((h-r)/(a-1)):null;for(H(e,l,c,(0,s.k)(n)?0:r-n,r),t=0,i=a-1;te.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:B.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),s.d.route("scale.ticks","color","","color"),s.d.route("scale.grid","color","","borderColor"),s.d.route("scale.grid","borderColor","","borderColor"),s.d.route("scale.title","color","","color"),s.d.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),s.d.describe("scales",{_fallback:"scale"}),s.d.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const W=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i;function j(t,e){const i=[],s=t.length/e,n=t.length;let o=0;for(;oa+r)))return l}function U(t){return t.drawTicks?t.tickLength:0}function Y(t,e){if(!t.display)return 0;const i=(0,s.O)(t.font,e),n=(0,s.K)(t.padding);return((0,s.b)(t.text)?t.text.length:1)*i.lineHeight+n.height}function K(t,e,i){let n=(0,s.R)(t);return(i&&"right"!==e||!i&&"right"===e)&&(n=(t=>"left"===t?"right":"right"===t?"left":t)(n)),n}class X extends F{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:n}=this;return t=(0,s.B)(t,Number.POSITIVE_INFINITY),e=(0,s.B)(e,Number.NEGATIVE_INFINITY),i=(0,s.B)(i,Number.POSITIVE_INFINITY),n=(0,s.B)(n,Number.NEGATIVE_INFINITY),{min:(0,s.B)(t,i),max:(0,s.B)(e,n),minDefined:(0,s.g)(t),maxDefined:(0,s.g)(e)}}getMinMax(t){let e,{min:i,max:n,minDefined:o,maxDefined:a}=this.getUserBounds();if(o&&a)return{min:i,max:n};const r=this.getMatchingVisibleMetas();for(let s=0,h=r.length;sn?n:i,n=o&&i>n?i:n,{min:(0,s.B)(i,(0,s.B)(n,i)),max:(0,s.B)(n,(0,s.B)(i,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){(0,s.C)(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:n,grace:o,ticks:a}=this.options,r=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=(0,s.D)(this,o,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const h=r=o||i<=1||!this.isHorizontal())return void(this.labelRotation=n);const c=this._getLabelSizes(),d=c.widest.width,u=c.highest.height,g=(0,s.E)(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/i:g/(i-1),d+6>a&&(a=g/(i-(t.offset?.5:1)),r=this.maxHeight-U(t.grid)-e.padding-Y(t.title,this.chart.options.font),h=Math.sqrt(d*d+u*u),l=(0,s.F)(Math.min(Math.asin((0,s.E)((c.highest.height+6)/a,-1,1)),Math.asin((0,s.E)(r/h,-1,1))-Math.asin((0,s.E)(u/h,-1,1)))),l=Math.max(n,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){(0,s.C)(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){(0,s.C)(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:n,grid:o}}=this,a=this._isVisible(),r=this.isHorizontal();if(a){const a=Y(n,e.options.font);if(r?(t.width=this.maxWidth,t.height=U(o)+a):(t.height=this.maxHeight,t.width=U(o)+a),i.display&&this.ticks.length){const{first:e,last:n,widest:o,highest:a}=this._getLabelSizes(),h=2*i.padding,l=(0,s.t)(this.labelRotation),c=Math.cos(l),d=Math.sin(l);if(r){const e=i.mirror?0:d*o.width+c*a.height;t.height=Math.min(this.maxHeight,t.height+e+h)}else{const e=i.mirror?0:c*o.width+d*a.height;t.width=Math.min(this.maxWidth,t.width+e+h)}this._calculatePadding(e,n,d,c)}}this._handleMargins(),r?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,s){const{ticks:{align:n,padding:o},position:a}=this.options,r=0!==this.labelRotation,h="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,l=this.right-this.getPixelForTick(this.ticks.length-1);let c=0,d=0;r?h?(c=s*t.width,d=i*e.height):(c=i*t.height,d=s*e.width):"start"===n?d=e.width:"end"===n?c=t.width:"inner"!==n&&(c=t.width/2,d=e.width/2),this.paddingLeft=Math.max((c-a+o)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-l+o)*this.width/(this.width-l),0)}else{let i=e.height/2,s=t.height/2;"start"===n?(i=0,s=t.height):"end"===n&&(i=e.height,s=0),this.paddingTop=i+o,this.paddingBottom=s+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){(0,s.C)(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e{const i=t.gc,s=i.length/2;let n;if(s>e){for(n=0;n({width:o[t]||0,height:a[t]||0});return{first:M(0),last:M(e-1),widest:M(v),highest:M(y),widths:o,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return(0,s.I)(this._alignToPixels?(0,s.J)(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&tr*n?r/i:h/n:h*n0}_computeGridLineItems(t){const e=this.axis,i=this.chart,n=this.options,{grid:o,position:a}=n,r=o.offset,h=this.isHorizontal(),l=this.ticks.length+(r?1:0),c=U(o),d=[],u=o.setContext(this.getContext()),g=u.drawBorder?u.borderWidth:0,p=g/2,f=function(t){return(0,s.J)(i,t,g)};let m,x,b,_,v,y,M,k,w,S,D,P;if("top"===a)m=f(this.bottom),y=this.bottom-c,k=m-p,S=f(t.top)+p,P=t.bottom;else if("bottom"===a)m=f(this.top),S=t.top,P=f(t.bottom)-p,y=m+p,k=this.top+c;else if("left"===a)m=f(this.right),v=this.right-c,M=m-p,w=f(t.left)+p,D=t.right;else if("right"===a)m=f(this.left),w=t.left,D=f(t.right)-p,v=m+p,M=this.left+c;else if("x"===e){if("center"===a)m=f((t.top+t.bottom)/2+.5);else if((0,s.i)(a)){const t=Object.keys(a)[0],e=a[t];m=f(this.chart.scales[t].getPixelForValue(e))}S=t.top,P=t.bottom,y=m+p,k=y+c}else if("y"===e){if("center"===a)m=f((t.left+t.right)/2);else if((0,s.i)(a)){const t=Object.keys(a)[0],e=a[t];m=f(this.chart.scales[t].getPixelForValue(e))}v=m-p,M=v-c,w=t.left,D=t.right}const C=(0,s.v)(n.ticks.maxTicksLimit,l),A=Math.max(1,Math.ceil(l/C));for(x=0;xe.value===t));if(i>=0){return e.setContext(this.getContext(i)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let n,o;const a=(t,e,s)=>{s.width&&s.color&&(i.save(),i.lineWidth=s.width,i.strokeStyle=s.color,i.setLineDash(s.borderDash||[]),i.lineDashOffset=s.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(n=0,o=s.length;n{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",s=[];let n,o;for(n=0,o=e.length;n{const n=i.split("."),o=n.pop(),a=[t].concat(n).join("."),r=e[i].split("."),h=r.pop(),l=r.join(".");s.d.route(a,o,l,h)}))}(e,t.defaultRoutes);t.descriptors&&s.d.describe(e,t.descriptors)}(t,a,i),this.override&&s.d.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,n=this.scope;i in e&&delete e[i],n&&i in s.d[n]&&(delete s.d[n][i],this.override&&delete s.U[i])}}var G=new class{constructor(){this.controllers=new Q(y,"datasets",!0),this.elements=new Q(F,"elements"),this.plugins=new Q(Object,"plugins"),this.scales=new Q(X,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach((e=>{const n=i||this._getRegistryForType(e);i||n.isForType(e)||n===this.plugins&&e.id?this._exec(t,n,e):(0,s.Q)(e,(e=>{const s=i||this._getRegistryForType(e);this._exec(t,s,e)}))}))}_exec(t,e,i){const n=(0,s.W)(t);(0,s.C)(i["before"+n],[],i),e[t](i),(0,s.C)(i["after"+n],[],i)}_getRegistryForType(t){for(let e=0;e0&&this.getParsed(e-1);for(let v=e;v0&&Math.abs(i[g]-_[g])>x,m&&(c.parsed=i,c.raw=l.data[v]),u&&(c.options=d||this.resolveDataElementOptions(v,e.active?"active":n)),b||this.updateElement(e,v,c,n),_=i}this.updateSharedOptions(d,n,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}const i=t.dataset,s=i.options&&i.options.borderWidth||0;if(!e.length)return s;const n=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(s,n,o)/2}}J.id="scatter",J.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},J.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var q=Object.freeze({__proto__:null,BarController:O,BubbleController:L,DoughnutController:E,LineController:T,PolarAreaController:R,PieController:z,RadarController:I,ScatterController:J});function Z(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class tt{constructor(t){this.options=t||{}}init(t){}formats(){return Z()}parse(t,e){return Z()}format(t,e){return Z()}add(t,e,i){return Z()}diff(t,e,i){return Z()}startOf(t,e,i){return Z()}endOf(t,e){return Z()}}tt.override=function(t){Object.assign(tt.prototype,t)};var et={_date:tt};function it(t,e,i,n){const{controller:o,data:a,_sorted:r}=t,h=o._cachedMeta.iScale;if(h&&e===h.axis&&"r"!==e&&r&&a.length){const t=h._reversePixels?s.Y:s.Z;if(!n)return t(a,e,i);if(o._sharedOptions){const s=a[0],n="function"===typeof s.getRange&&s.getRange(e);if(n){const s=t(a,e,i-n),o=t(a,e,i+n);return{lo:s.lo,hi:o.hi}}}}return{lo:0,hi:a.length-1}}function st(t,e,i,s,n){const o=t.getSortedVisibleDatasetMetas(),a=i[e];for(let r=0,h=o.length;r{t[a](e[i],n)&&(o.push({element:t,datasetIndex:s,index:h}),r=r||t.inRange(e.x,e.y,n))})),s&&!r?[]:o}var ht={evaluateInteractionItems:st,modes:{index(t,e,i,n){const o=(0,s.X)(e,t),a=i.axis||"x",r=i.includeInvisible||!1,h=i.intersect?nt(t,o,a,n,r):at(t,o,a,!1,n,r),l=[];return h.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=h[0].index,i=t.data[e];i&&!i.skip&&l.push({element:i,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,i,n){const o=(0,s.X)(e,t),a=i.axis||"xy",r=i.includeInvisible||!1;let h=i.intersect?nt(t,o,a,n,r):at(t,o,a,!1,n,r);if(h.length>0){const e=h[0].datasetIndex,i=t.getDatasetMeta(e).data;h=[];for(let t=0;tnt(t,(0,s.X)(e,t),i.axis||"xy",n,i.includeInvisible||!1),nearest(t,e,i,n){const o=(0,s.X)(e,t),a=i.axis||"xy",r=i.includeInvisible||!1;return at(t,o,a,i.intersect,n,r)},x:(t,e,i,n)=>rt(t,(0,s.X)(e,t),"x",i.intersect,n),y:(t,e,i,n)=>rt(t,(0,s.X)(e,t),"y",i.intersect,n)}};const lt=["left","top","right","bottom"];function ct(t,e){return t.filter((t=>t.pos===e))}function dt(t,e){return t.filter((t=>-1===lt.indexOf(t.pos)&&t.box.axis===e))}function ut(t,e){return t.sort(((t,i)=>{const s=e?i:t,n=e?t:i;return s.weight===n.weight?s.index-n.index:s.weight-n.weight}))}function gt(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:s,stackWeight:n}=i;if(!t||!lt.includes(s))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=n}return e}(t),{vBoxMaxWidth:s,hBoxMaxHeight:n}=e;let o,a,r;for(o=0,a=t.length;o{s[t]=Math.max(e[t],i[t])})),s}return s(t?["left","right"]:["top","bottom"])}function bt(t,e,i,s){const n=[];let o,a,r,h,l,c;for(o=0,a=t.length,l=0;ot.box.fullSize)),!0),s=ut(ct(e,"left"),!0),n=ut(ct(e,"right")),o=ut(ct(e,"top"),!0),a=ut(ct(e,"bottom")),r=dt(e,"x"),h=dt(e,"y");return{fullSize:i,leftAndTop:s.concat(o),rightAndBottom:n.concat(h).concat(a).concat(r),chartArea:ct(e,"chartArea"),vertical:s.concat(n).concat(h),horizontal:o.concat(a).concat(r)}}(t.boxes),l=h.vertical,c=h.horizontal;(0,s.Q)(t.boxes,(t=>{"function"===typeof t.beforeLayout&&t.beforeLayout()}));const d=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,u=Object.freeze({outerWidth:e,outerHeight:i,padding:o,availableWidth:a,availableHeight:r,vBoxMaxWidth:a/2/d,hBoxMaxHeight:r/2}),g=Object.assign({},o);ft(g,(0,s.K)(n));const p=Object.assign({maxPadding:g,w:a,h:r,x:o.left,y:o.top},o),f=gt(l.concat(c),u);bt(h.fullSize,p,u,f),bt(l,p,u,f),bt(c,p,u,f)&&bt(l,p,u,f),function(t){const e=t.maxPadding;function i(i){const s=Math.max(e[i]-t[i],0);return t[i]+=s,s}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(p),vt(h.leftAndTop,p,u,f),p.x+=p.w,p.y+=p.h,vt(h.rightAndBottom,p,u,f),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},(0,s.Q)(h.chartArea,(e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})}))}};class Mt{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,s){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,s?Math.floor(e/s):i)}}isAttached(t){return!0}updateConfig(t){}}class kt extends Mt{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const wt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},St=t=>null===t||""===t;const Dt=!!s.a5&&{passive:!0};function Pt(t,e,i){t.canvas.removeEventListener(e,i,Dt)}function Ct(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function At(t,e,i){const s=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||Ct(i.addedNodes,s),e=e&&!Ct(i.removedNodes,s);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}function Ot(t,e,i){const s=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||Ct(i.removedNodes,s),e=e&&!Ct(i.addedNodes,s);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}const Lt=new Map;let Et=0;function Tt(){const t=window.devicePixelRatio;t!==Et&&(Et=t,Lt.forEach(((e,i)=>{i.currentDevicePixelRatio!==t&&e()})))}function Rt(t,e,i){const n=t.canvas,o=n&&(0,s.a2)(n);if(!o)return;const a=(0,s.a4)(((t,e)=>{const s=o.clientWidth;i(t,e),s{const e=t[0],i=e.contentRect.width,s=e.contentRect.height;0===i&&0===s||a(i,s)}));return r.observe(o),function(t,e){Lt.size||window.addEventListener("resize",Tt),Lt.set(t,e)}(t,a),r}function zt(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){Lt.delete(t),Lt.size||window.removeEventListener("resize",Tt)}(t)}function It(t,e,i){const n=t.canvas,o=(0,s.a4)((e=>{null!==t.ctx&&i(function(t,e){const i=wt[t.type]||t.type,{x:n,y:o}=(0,s.X)(t,e);return{type:i,chart:e,native:t,x:void 0!==n?n:null,y:void 0!==o?o:null}}(e,t))}),t,(t=>{const e=t[0];return[e,e.offsetX,e.offsetY]}));return function(t,e,i){t.addEventListener(e,i,Dt)}(n,e,o),o}class Ft extends Mt{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,n=t.getAttribute("height"),o=t.getAttribute("width");if(t.$chartjs={initial:{height:n,width:o,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",St(o)){const e=(0,s.a3)(t,"width");void 0!==e&&(t.width=e)}if(St(n))if(""===t.style.height)t.height=t.width/(e||2);else{const e=(0,s.a3)(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e.$chartjs)return!1;const i=e.$chartjs.initial;["height","width"].forEach((t=>{const n=i[t];(0,s.k)(n)?e.removeAttribute(t):e.setAttribute(t,n)}));const n=i.style||{};return Object.keys(n).forEach((t=>{e.style[t]=n[t]})),e.width=e.width,delete e.$chartjs,!0}addEventListener(t,e,i){this.removeEventListener(t,e);const s=t.$proxies||(t.$proxies={}),n={attach:At,detach:Ot,resize:Rt}[e]||It;s[e]=n(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),s=i[e];if(!s)return;({attach:zt,detach:zt,resize:zt}[e]||Pt)(t,e,s),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,n){return(0,s.a1)(t,e,i,n)}isAttached(t){const e=(0,s.a2)(t);return!(!e||!e.isConnected)}}class Vt{constructor(){this._init=[]}notify(t,e,i,s){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const n=s?this._descriptors(t).filter(s):this._descriptors(t),o=this._notify(n,t,e,i);return"afterDestroy"===e&&(this._notify(n,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,i,n){n=n||{};for(const o of t){const t=o.plugin,a=t[i],r=[e,n,o.options];if(!1===(0,s.C)(a,r,t)&&n.cancelable)return!1}return!0}invalidate(){(0,s.k)(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const i=t&&t.config,n=(0,s.v)(i.options&&i.options.plugins,{}),o=function(t){const e={},i=[],s=Object.keys(G.plugins.items);for(let o=0;ot.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(s(e,i),t,"stop"),this._notify(s(i,e),t,"start")}}function Bt(t,e){return e||!1!==t?!0===t?{}:t:null}function Nt(t,{plugin:e,local:i},s,n){const o=t.pluginScopeKeys(e),a=t.getOptionScopes(s,o);return i&&e.defaults&&a.push(e.defaults),t.createResolver(a,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Ht(t,e){const i=s.d.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function Wt(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(i=e.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.charAt(0).toLowerCase();var i}function jt(t){const e=t.options||(t.options={});e.plugins=(0,s.v)(e.plugins,{}),e.scales=function(t,e){const i=s.U[t.type]||{scales:{}},n=e.scales||{},o=Ht(t.type,e),a=Object.create(null),r=Object.create(null);return Object.keys(n).forEach((t=>{const e=n[t];if(!(0,s.i)(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const h=Wt(t,e),l=function(t,e){return t===e?"_index_":"_value_"}(h,o),c=i.scales||{};a[h]=a[h]||t,r[t]=(0,s.ac)(Object.create(null),[{axis:h},e,c[h],c[l]])})),t.data.datasets.forEach((i=>{const o=i.type||t.type,h=i.indexAxis||Ht(o,e),l=(s.U[o]||{}).scales||{};Object.keys(l).forEach((t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,h),o=i[e+"AxisID"]||a[e]||e;r[o]=r[o]||Object.create(null),(0,s.ac)(r[o],[{axis:e},n[o],l[t]])}))})),Object.keys(r).forEach((t=>{const e=r[t];(0,s.ac)(e,[s.d.scales[e.type],s.d.scale])})),r}(t,e)}function $t(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Ut=new Map,Yt=new Set;function Kt(t,e){let i=Ut.get(t);return i||(i=e(),Ut.set(t,i),Yt.add(i)),i}const Xt=(t,e,i)=>{const n=(0,s.f)(e,i);void 0!==n&&t.add(n)};class Qt{constructor(t){this._config=function(t){return(t=t||{}).data=$t(t.data),jt(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=$t(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),jt(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Kt(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Kt(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Kt(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Kt(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const i=this._scopeCache;let s=i.get(t);return s&&!e||(s=new Map,i.set(t,s)),s}getOptionScopes(t,e,i){const{options:n,type:o}=this,a=this._cachedScopes(t,i),r=a.get(e);if(r)return r;const h=new Set;e.forEach((e=>{t&&(h.add(t),e.forEach((e=>Xt(h,t,e)))),e.forEach((t=>Xt(h,n,t))),e.forEach((t=>Xt(h,s.U[o]||{},t))),e.forEach((t=>Xt(h,s.d,t))),e.forEach((t=>Xt(h,s.a7,t)))}));const l=Array.from(h);return 0===l.length&&l.push(Object.create(null)),Yt.has(e)&&a.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,s.U[e]||{},s.d.datasets[e]||{},{type:e},s.d,s.a7]}resolveNamedOptions(t,e,i,n=[""]){const o={$shared:!0},{resolver:a,subPrefixes:r}=Gt(this._resolverCache,t,n);let h=a;if(function(t,e){const{isScriptable:i,isIndexable:n}=(0,s.ab)(t);for(const o of e){const e=i(o),a=n(o),r=(a||e)&&t[o];if(e&&((0,s.a8)(r)||Jt(r))||a&&(0,s.b)(r))return!0}return!1}(a,e)){o.$shared=!1,i=(0,s.a8)(i)?i():i;const e=this.createResolver(t,i,r);h=(0,s.a9)(a,i,e)}for(const s of e)o[s]=h[s];return o}createResolver(t,e,i=[""],n){const{resolver:o}=Gt(this._resolverCache,t,i);return(0,s.i)(e)?(0,s.a9)(o,e,void 0,n):o}}function Gt(t,e,i){let n=t.get(e);n||(n=new Map,t.set(e,n));const o=i.join();let a=n.get(o);if(!a){a={resolver:(0,s.aa)(e,i),subPrefixes:i.filter((t=>!t.toLowerCase().includes("hover")))},n.set(o,a)}return a}const Jt=t=>(0,s.i)(t)&&Object.getOwnPropertyNames(t).reduce(((e,i)=>e||(0,s.a8)(t[i])),!1);const qt=["top","bottom","left","right","chartArea"];function Zt(t,e){return"top"===t||"bottom"===t||-1===qt.indexOf(t)&&"x"===e}function te(t,e){return function(i,s){return i[t]===s[t]?i[e]-s[e]:i[t]-s[t]}}function ee(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),(0,s.C)(i&&i.onComplete,[t],e)}function ie(t){const e=t.chart,i=e.options.animation;(0,s.C)(i&&i.onProgress,[t],e)}function se(t){return(0,s.a6)()&&"string"===typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const ne={},oe=t=>{const e=se(t);return Object.values(ne).filter((t=>t.canvas===e)).pop()};function ae(t,e,i){const s=Object.keys(t);for(const n of s){const s=+n;if(s>=e){const o=t[n];delete t[n],(i>0||s>e)&&(t[s+i]=o)}}}class re{constructor(t,e){const i=this.config=new Qt(e),o=se(t),a=oe(o);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const r=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(t){return!(0,s.a6)()||"undefined"!==typeof OffscreenCanvas&&t instanceof OffscreenCanvas?kt:Ft}(o)),this.platform.updateConfig(i);const h=this.platform.acquireContext(o,r.aspectRatio),l=h&&h.canvas,c=l&&l.height,d=l&&l.width;this.id=(0,s.ad)(),this.ctx=h,this.canvas=l,this.width=d,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Vt,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=(0,s.ae)((t=>this.update(t)),r.resizeDelay||0),this._dataChanges=[],ne[this.id]=this,h&&l?(n.listen(this,"complete",ee),n.listen(this,"progress",ie),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:n,_aspectRatio:o}=this;return(0,s.k)(t)?e&&o?o:n?i/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():(0,s.af)(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return(0,s.ag)(this.canvas,this.ctx),this}stop(){return n.stop(this),this}resize(t,e){n.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,n=this.canvas,o=i.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(n,t,e,o),r=i.devicePixelRatio||this.platform.getDevicePixelRatio(),h=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,(0,s.af)(this,r,!0)&&(this.notifyPlugins("resize",{size:a}),(0,s.C)(i.onResize,[this,a],this),this.attached&&this._doResize(h)&&this.render())}ensureScalesHaveIDs(){const t=this.options.scales||{};(0,s.Q)(t,((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,n=Object.keys(i).reduce(((t,e)=>(t[e]=!1,t)),{});let o=[];e&&(o=o.concat(Object.keys(e).map((t=>{const i=e[t],s=Wt(t,i),n="r"===s,o="x"===s;return{options:i,dposition:n?"chartArea":o?"bottom":"left",dtype:n?"radialLinear":o?"category":"linear"}})))),(0,s.Q)(o,(e=>{const o=e.options,a=o.id,r=Wt(a,o),h=(0,s.v)(o.type,e.dtype);void 0!==o.position&&Zt(o.position,r)===Zt(e.dposition)||(o.position=e.dposition),n[a]=!0;let l=null;if(a in i&&i[a].type===h)l=i[a];else{l=new(G.getScale(h))({id:a,type:h,ctx:this.ctx,chart:this}),i[l.id]=l}l.init(o,t)})),(0,s.Q)(n,((t,e)=>{t||delete i[e]})),(0,s.Q)(i,(t=>{yt.configure(this,t,t.options),yt.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort(((t,e)=>t.index-e.index)),i>e){for(let t=e;te.length&&delete this._stacks,t.forEach(((t,i)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(i)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,n;for(this._removeUnreferencedMetasets(),i=0,n=e.length;i{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let s=0,l=this.data.datasets.length;s{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(te("z","_idx"));const{_active:r,_lastEvent:h}=this;h?this._eventHandler(h,!0):r.length&&this._updateHoverStyles(r,r,!0),this.render()}_updateScales(){(0,s.Q)(this.scales,(t=>{yt.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);(0,s.ah)(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:n}of e){ae(t,s,"_removeElements"===i?-n:n)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),n=i(0);for(let o=1;ot.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;yt.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],(0,s.Q)(this.boxes,(t=>{i&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,i=t._clip,n=!i.disabled,o=this.chartArea,a={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(n&&(0,s.L)(e,{left:!1===i.left?0:o.left-i.left,right:!1===i.right?this.width:o.right+i.right,top:!1===i.top?0:o.top-i.top,bottom:!1===i.bottom?this.height:o.bottom+i.bottom}),t.controller.draw(),n&&(0,s.N)(e),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return(0,s.$)(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,s){const n=ht.modes[e];return"function"===typeof n?n(this,t,i,s):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let s=i.filter((t=>t&&t._dataset===e)).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=(0,s.h)(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"===typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){const n=i?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,n);(0,s.j)(e)?(o.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),a.update(o,{visible:i}),this.update((e=>e.datasetIndex===t?n:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),n.remove(this),t=0,e=this.data.datasets.length;t{e.addEventListener(this,i,s),t[i]=s},n=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};(0,s.Q)(this.options.events,(t=>i(t,n)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,s)=>{e.addEventListener(this,i,s),t[i]=s},s=(i,s)=>{t[i]&&(e.removeEventListener(this,i,s),delete t[i])},n=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const a=()=>{s("attach",a),this.attached=!0,this.resize(),i("resize",n),i("detach",o)};o=()=>{this.attached=!1,s("resize",n),this._stop(),this._resize(0,0),i("attach",a)},e.isAttached(this.canvas)?a():o()}unbindEvents(){(0,s.Q)(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},(0,s.Q)(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const s=i?"set":"remove";let n,o,a,r;for("dataset"===e&&(n=this.getDatasetMeta(t[0].datasetIndex),n.controller["_"+s+"DatasetHoverStyle"]()),a=0,r=t.length;a{const i=this.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}));!(0,s.ai)(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}_updateHoverStyles(t,e,i){const s=this.options.hover,n=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=n(e,t),a=i?t:n(t,e);o.length&&this.updateHoverStyle(o,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},s=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,s))return;const n=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(n||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:n=[],options:o}=this,a=e,r=this._getActiveElements(t,n,i,a),h=(0,s.aj)(t),l=function(t,e,i,s){return i&&"mouseout"!==t.type?s?e:t:null}(t,this._lastEvent,i,h);i&&(this._lastEvent=null,(0,s.C)(o.onHover,[t,r,this],this),h&&(0,s.C)(o.onClick,[t,r,this],this));const c=!(0,s.ai)(r,n);return(c||e)&&(this._active=r,this._updateHoverStyles(r,n,e)),this._lastEvent=l,c}_getActiveElements(t,e,i,s){if("mouseout"===t.type)return[];if(!i)return e;const n=this.options.hover;return this.getElementsAtEventForMode(t,n.mode,n,s)}}const he=()=>(0,s.Q)(re.instances,(t=>t._plugins.invalidate())),le=!0;function ce(t,e,i){const{startAngle:n,pixelMargin:o,x:a,y:r,outerRadius:h,innerRadius:l}=e;let c=o/h;t.beginPath(),t.arc(a,r,h,n-c,i+c),l>o?(c=o/l,t.arc(a,r,l,i+c,n-c,!0)):t.arc(a,r,o,i+s.H,n-s.H),t.closePath(),t.clip()}function de(t,e,i,n){const o=(a=t.options.borderRadius,(0,s.al)(a,["outerStart","outerEnd","innerStart","innerEnd"]));var a;const r=(i-e)/2,h=Math.min(r,n*e/2),l=t=>{const e=(i-Math.min(r,t))*n/2;return(0,s.E)(t,0,Math.min(r,e))};return{outerStart:l(o.outerStart),outerEnd:l(o.outerEnd),innerStart:(0,s.E)(o.innerStart,0,h),innerEnd:(0,s.E)(o.innerEnd,0,h)}}function ue(t,e,i,s){return{x:i+t*Math.cos(e),y:s+t*Math.sin(e)}}function ge(t,e,i,n,o,a){const{x:r,y:h,startAngle:l,pixelMargin:c,innerRadius:d}=e,u=Math.max(e.outerRadius+n+i-c,0),g=d>0?d+n+i+c:0;let p=0;const f=o-l;if(n){const t=((d>0?d-n:0)+(u>0?u-n:0))/2;p=(f-(0!==t?f*t/(t+n):f))/2}const m=(f-Math.max(.001,f*u-i/s.P)/u)/2,x=l+m+p,b=o-m-p,{outerStart:_,outerEnd:v,innerStart:y,innerEnd:M}=de(e,g,u,b-x),k=u-_,w=u-v,S=x+_/k,D=b-v/w,P=g+y,C=g+M,A=x+y/P,O=b-M/C;if(t.beginPath(),a){if(t.arc(r,h,u,S,D),v>0){const e=ue(w,D,r,h);t.arc(e.x,e.y,v,D,b+s.H)}const e=ue(C,b,r,h);if(t.lineTo(e.x,e.y),M>0){const e=ue(C,O,r,h);t.arc(e.x,e.y,M,b+s.H,O+Math.PI)}if(t.arc(r,h,g,b-M/g,x+y/g,!0),y>0){const e=ue(P,A,r,h);t.arc(e.x,e.y,y,A+Math.PI,x-s.H)}const i=ue(k,x,r,h);if(t.lineTo(i.x,i.y),_>0){const e=ue(k,S,r,h);t.arc(e.x,e.y,_,x-s.H,S)}}else{t.moveTo(r,h);const e=Math.cos(S)*u+r,i=Math.sin(S)*u+h;t.lineTo(e,i);const s=Math.cos(D)*u+r,n=Math.sin(D)*u+h;t.lineTo(s,n)}t.closePath()}function pe(t,e,i,n,o,a){const{options:r}=e,{borderWidth:h,borderJoinStyle:l}=r,c="inner"===r.borderAlign;h&&(c?(t.lineWidth=2*h,t.lineJoin=l||"round"):(t.lineWidth=h,t.lineJoin=l||"bevel"),e.fullCircles&&function(t,e,i){const{x:n,y:o,startAngle:a,pixelMargin:r,fullCircles:h}=e,l=Math.max(e.outerRadius-r,0),c=e.innerRadius+r;let d;for(i&&ce(t,e,a+s.T),t.beginPath(),t.arc(n,o,c,a+s.T,a,!0),d=0;d{G.add(...t),he()}},unregister:{enumerable:le,value:(...t)=>{G.remove(...t),he()}}});class fe extends F{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,i){const n=this.getProps(["x","y"],i),{angle:o,distance:a}=(0,s.a0)(n,{x:t,y:e}),{startAngle:r,endAngle:h,innerRadius:l,outerRadius:c,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),u=this.options.spacing/2,g=(0,s.v)(d,h-r)>=s.T||(0,s.p)(o,r,h),p=(0,s.ak)(a,l+u,c+u);return g&&p}getCenterPoint(t){const{x:e,y:i,startAngle:s,endAngle:n,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:r,spacing:h}=this.options,l=(s+n)/2,c=(o+a+h+r)/2;return{x:e+Math.cos(l)*c,y:i+Math.sin(l)*c}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,n=(e.offset||0)/2,o=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>s.T?Math.floor(i/s.T):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();let r=0;if(n){r=n/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*r,Math.sin(e)*r),this.circumference>=s.P&&(r=n)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const h=function(t,e,i,n,o){const{fullCircles:a,startAngle:r,circumference:h}=e;let l=e.endAngle;if(a){ge(t,e,i,n,r+s.T,o);for(let e=0;er&&o>r;return{count:s,start:h,loop:e.loop,ilen:l(a+(l?r-t:t))%o,_=()=>{g!==p&&(t.lineTo(m,p),t.lineTo(m,g),t.lineTo(m,f))};for(h&&(d=n[b(0)],t.moveTo(d.x,d.y)),c=0;c<=r;++c){if(d=n[b(c)],d.skip)continue;const e=d.x,i=d.y,s=0|e;s===u?(ip&&(p=i),m=(x*m+e)/++x):(_(),t.lineTo(e,i),u=s,x=0,g=p=i),f=i}_()}function ye(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&"monotone"!==e.cubicInterpolationMode&&!e.stepped&&!i?ve:_e}fe.id="arc",fe.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},fe.defaultRoutes={backgroundColor:"backgroundColor"};const Me="function"===typeof Path2D;function ke(t,e,i,s){Me&&!e.options.segment?function(t,e,i,s){let n=e._path;n||(n=e._path=new Path2D,e.path(n,i,s)&&n.closePath()),me(t,e.options),t.stroke(n)}(t,e,i,s):function(t,e,i,s){const{segments:n,options:o}=e,a=ye(e);for(const r of n)me(t,o,r.style),t.beginPath(),a(t,e,r,{start:i,end:i+s-1})&&t.closePath(),t.stroke()}(t,e,i,s)}class we extends F{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const n=i.spanGaps?this._loop:this._fullLoop;(0,s.am)(this._points,i,t,n,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=(0,s.an)(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,n=t[e],o=this.points,a=(0,s.ao)(this,{property:e,start:n,end:n});if(!a.length)return;const r=[],h=function(t){return t.stepped?s.ap:t.tension||"monotone"===t.cubicInterpolationMode?s.aq:s.ar}(i);let l,c;for(l=0,c=a.length;l"borderDash"!==t&&"fill"!==t};class De extends F{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,i){const s=this.options,{x:n,y:o}=this.getProps(["x","y"],i);return Math.pow(t-n,2)+Math.pow(e-o,2){ze(t)}))}var Fe={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled)return void Ie(t);const n=t.width;t.data.datasets.forEach(((e,o)=>{const{_data:a,indexAxis:r}=e,h=t.getDatasetMeta(o),l=a||e.data;if("y"===(0,s.a)([r,t.options.indexAxis]))return;if(!h.controller.supportsDecimation)return;const c=t.scales[h.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(t.options.parsing)return;let{start:d,count:u}=function(t,e){const i=e.length;let n,o=0;const{iScale:a}=t,{min:r,max:h,minDefined:l,maxDefined:c}=a.getUserBounds();return l&&(o=(0,s.E)((0,s.Z)(e,a.axis,r).lo,0,i-1)),n=c?(0,s.E)((0,s.Z)(e,a.axis,h).hi+1,o,i)-o:i-o,{start:o,count:n}}(h,l);if(u<=(i.threshold||4*n))return void ze(e);let g;switch((0,s.k)(a)&&(e._data=l,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),i.algorithm){case"lttb":g=function(t,e,i,s,n){const o=n.samples||s;if(o>=i)return t.slice(e,e+i);const a=[],r=(i-2)/(o-2);let h=0;const l=e+i-1;let c,d,u,g,p,f=e;for(a[h++]=t[f],c=0;cu&&(u=g,d=t[s],p=s);a[h++]=d,f=p}return a[h++]=t[l],a}(l,d,u,n,i);break;case"min-max":g=function(t,e,i,n){let o,a,r,h,l,c,d,u,g,p,f=0,m=0;const x=[],b=e+i-1,_=t[e].x,v=t[b].x-_;for(o=e;op&&(p=h,d=o),f=(m*f+a.x)/++m;else{const i=o-1;if(!(0,s.k)(c)&&!(0,s.k)(d)){const e=Math.min(c,d),s=Math.max(c,d);e!==u&&e!==i&&x.push({...t[e],x:f}),s!==u&&s!==i&&x.push({...t[s],x:f})}o>0&&i!==u&&x.push(t[i]),x.push(a),l=e,m=0,g=p=h,c=d=u=o}}return x}(l,d,u,n);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=g}))},destroy(t){Ie(t)}};function Ve(t,e,i,n){if(n)return;let o=e[t],a=i[t];return"angle"===t&&(o=(0,s.az)(o),a=(0,s.az)(a)),{property:t,start:o,end:a}}function Be(t,e,i){for(;e>t;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function Ne(t,e,i,s){return t&&e?s(t[i],e[i]):t?t[i]:e?e[i]:0}function He(t,e){let i=[],n=!1;return(0,s.b)(t)?(n=!0,i=t):i=function(t,e){const{x:i=null,y:s=null}=t||{},n=e.points,o=[];return e.segments.forEach((({start:t,end:e})=>{e=Be(t,e,n);const a=n[t],r=n[e];null!==s?(o.push({x:a.x,y:s}),o.push({x:r.x,y:s})):null!==i&&(o.push({x:i,y:a.y}),o.push({x:i,y:r.y}))})),o}(t,e),i.length?new we({points:i,options:{tension:0},_loop:n,_fullLoop:n}):null}function We(t){return t&&!1!==t.fill}function je(t,e,i){let n=t[e].fill;const o=[e];let a;if(!i)return n;for(;!1!==n&&-1===o.indexOf(n);){if(!(0,s.g)(n))return n;if(a=t[n],!a)return!1;if(a.visible)return n;o.push(n),n=a.fill}return!1}function $e(t,e,i){const n=function(t){const e=t.options,i=e.fill;let n=(0,s.v)(i&&i.target,i);void 0===n&&(n=!!e.backgroundColor);if(!1===n||null===n)return!1;if(!0===n)return"origin";return n}(t);if((0,s.i)(n))return!isNaN(n.value)&&n;let o=parseFloat(n);return(0,s.g)(o)&&Math.floor(o)===o?function(t,e,i,s){"-"!==t&&"+"!==t||(i=e+i);if(i===e||i<0||i>=s)return!1;return i}(n[0],e,o,i):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function Ue(t,e,i){const s=[];for(let n=0;n=0;--a){const e=n[a].$filler;e&&(e.line.updateControlPoints(o,e.axis),s&&e.fill&&Qe(t.ctx,e,o))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const s=t.getSortedVisibleDatasetMetas();for(let n=s.length-1;n>=0;--n){const e=s[n].$filler;We(e)&&Qe(t.ctx,e,t.chartArea)}},beforeDatasetDraw(t,e,i){const s=e.meta.$filler;We(s)&&"beforeDatasetDraw"===i.drawTime&&Qe(t.ctx,s,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const ei=(t,e)=>{let{boxHeight:i=e,boxWidth:s=e}=t;return t.usePointStyle&&(i=Math.min(i,e),s=t.pointStyleWidth||Math.min(s,e)),{boxWidth:s,boxHeight:i,itemHeight:Math.max(e,i)}};class ii extends F{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=(0,s.C)(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,i)=>t.sort(e,i,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const i=t.labels,n=(0,s.O)(i.font),o=n.size,a=this._computeTitleHeight(),{boxWidth:r,itemHeight:h}=ei(i,o);let l,c;e.font=n.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(a,o,r,h)+10):(c=this.maxHeight,l=this._fitCols(a,o,r,h)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,s){const{ctx:n,maxWidth:o,options:{labels:{padding:a}}}=this,r=this.legendHitBoxes=[],h=this.lineWidths=[0],l=s+a;let c=t;n.textAlign="left",n.textBaseline="middle";let d=-1,u=-l;return this.legendItems.forEach(((t,g)=>{const p=i+e/2+n.measureText(t.text).width;(0===g||h[h.length-1]+p+2*a>o)&&(c+=l,h[h.length-(g>0?0:1)]=0,u+=l,d++),r[g]={left:0,top:u,row:d,width:p,height:s},h[h.length-1]+=p+a})),c}_fitCols(t,e,i,s){const{ctx:n,maxHeight:o,options:{labels:{padding:a}}}=this,r=this.legendHitBoxes=[],h=this.columnSizes=[],l=o-t;let c=a,d=0,u=0,g=0,p=0;return this.legendItems.forEach(((t,o)=>{const f=i+e/2+n.measureText(t.text).width;o>0&&u+s+2*a>l&&(c+=d+a,h.push({width:d,height:u}),g+=d+a,p++,d=u=0),r[o]={left:g,top:u,col:p,width:f,height:s},d=Math.max(d,f),u+=s+a})),c+=d,h.push({width:d,height:u}),c}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:n},rtl:o}}=this,a=(0,s.aA)(o,this.left,this.width);if(this.isHorizontal()){let o=0,r=(0,s.S)(i,this.left+n,this.right-this.lineWidths[o]);for(const h of e)o!==h.row&&(o=h.row,r=(0,s.S)(i,this.left+n,this.right-this.lineWidths[o])),h.top+=this.top+t+n,h.left=a.leftForLtr(a.x(r),h.width),r+=h.width+n}else{let o=0,r=(0,s.S)(i,this.top+t+n,this.bottom-this.columnSizes[o].height);for(const h of e)h.col!==o&&(o=h.col,r=(0,s.S)(i,this.top+t+n,this.bottom-this.columnSizes[o].height)),h.top=r,h.left+=this.left+n,h.left=a.leftForLtr(a.x(h.left),h.width),r+=h.height+n}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;(0,s.L)(t,this),this._draw(),(0,s.N)(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:n}=this,{align:o,labels:a}=t,r=s.d.color,h=(0,s.aA)(t.rtl,this.left,this.width),l=(0,s.O)(a.font),{color:c,padding:d}=a,u=l.size,g=u/2;let p;this.drawTitle(),n.textAlign=h.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=l.string;const{boxWidth:f,boxHeight:m,itemHeight:x}=ei(a,u),b=this.isHorizontal(),_=this._computeTitleHeight();p=b?{x:(0,s.S)(o,this.left+d,this.right-i[0]),y:this.top+d+_,line:0}:{x:this.left+d,y:(0,s.S)(o,this.top+_+d,this.bottom-e[0].height),line:0},(0,s.aB)(this.ctx,t.textDirection);const v=x+d;this.legendItems.forEach(((y,M)=>{n.strokeStyle=y.fontColor||c,n.fillStyle=y.fontColor||c;const k=n.measureText(y.text).width,w=h.textAlign(y.textAlign||(y.textAlign=a.textAlign)),S=f+g+k;let D=p.x,P=p.y;h.setWidth(this.width),b?M>0&&D+S+d>this.right&&(P=p.y+=v,p.line++,D=p.x=(0,s.S)(o,this.left+d,this.right-i[p.line])):M>0&&P+v>this.bottom&&(D=p.x=D+e[p.line].width+d,p.line++,P=p.y=(0,s.S)(o,this.top+_+d,this.bottom-e[p.line].height));!function(t,e,i){if(isNaN(f)||f<=0||isNaN(m)||m<0)return;n.save();const o=(0,s.v)(i.lineWidth,1);if(n.fillStyle=(0,s.v)(i.fillStyle,r),n.lineCap=(0,s.v)(i.lineCap,"butt"),n.lineDashOffset=(0,s.v)(i.lineDashOffset,0),n.lineJoin=(0,s.v)(i.lineJoin,"miter"),n.lineWidth=o,n.strokeStyle=(0,s.v)(i.strokeStyle,r),n.setLineDash((0,s.v)(i.lineDash,[])),a.usePointStyle){const r={radius:m*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:o},l=h.xPlus(t,f/2),c=e+g;(0,s.aE)(n,r,l,c,a.pointStyleWidth&&f)}else{const a=e+Math.max((u-m)/2,0),r=h.leftForLtr(t,f),l=(0,s.ax)(i.borderRadius);n.beginPath(),Object.values(l).some((t=>0!==t))?(0,s.av)(n,{x:r,y:a,w:f,h:m,radius:l}):n.rect(r,a,f,m),n.fill(),0!==o&&n.stroke()}n.restore()}(h.x(D),P,y),D=(0,s.aC)(w,D+f+g,b?D+S:this.right,t.rtl),function(t,e,i){(0,s.M)(n,i.text,t,e+x/2,l,{strikethrough:i.hidden,textAlign:h.textAlign(i.textAlign)})}(h.x(D),P,y),b?p.x+=S+d:p.y+=v})),(0,s.aD)(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=(0,s.O)(e.font),n=(0,s.K)(e.padding);if(!e.display)return;const o=(0,s.aA)(t.rtl,this.left,this.width),a=this.ctx,r=e.position,h=i.size/2,l=n.top+h;let c,d=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),c=this.top+l,d=(0,s.S)(t.align,d,this.right-u);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);c=l+(0,s.S)(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const g=(0,s.S)(r,d,d+u);a.textAlign=o.textAlign((0,s.R)(r)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=i.string,(0,s.M)(a,e.text,g,c,i)}_computeTitleHeight(){const t=this.options.title,e=(0,s.O)(t.font),i=(0,s.K)(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,n,o;if((0,s.ak)(t,this.left,this.right)&&(0,s.ak)(e,this.top,this.bottom))for(o=this.legendHitBoxes,i=0;it.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:n,textAlign:o,color:a}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const r=t.controller.getStyle(i?0:void 0),h=(0,s.K)(r.borderWidth);return{text:e[t.index].label,fillStyle:r.backgroundColor,fontColor:a,hidden:!t.visible,lineCap:r.borderCapStyle,lineDash:r.borderDash,lineDashOffset:r.borderDashOffset,lineJoin:r.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:r.borderColor,pointStyle:n||r.pointStyle,rotation:r.rotation,textAlign:o||r.textAlign,borderRadius:0,datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class ni extends F{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const n=(0,s.b)(i.text)?i.text.length:1;this._padding=(0,s.K)(i.padding);const o=n*(0,s.O)(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:n,right:o,options:a}=this,r=a.align;let h,l,c,d=0;return this.isHorizontal()?(l=(0,s.S)(r,i,o),c=e+t,h=o-i):("left"===a.position?(l=i+t,c=(0,s.S)(r,n,e),d=-.5*s.P):(l=o-t,c=(0,s.S)(r,e,n),d=.5*s.P),h=n-e),{titleX:l,titleY:c,maxWidth:h,rotation:d}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=(0,s.O)(e.font),n=i.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:r,rotation:h}=this._drawArgs(n);(0,s.M)(t,e.text,0,0,i,{color:e.color,maxWidth:r,rotation:h,textAlign:(0,s.R)(e.align),textBaseline:"middle",translation:[o,a]})}}var oi={id:"title",_element:ni,start(t,e,i){!function(t,e){const i=new ni({ctx:t.ctx,options:e,chart:t});yt.configure(t,i,e),yt.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;yt.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const s=t.titleBlock;yt.configure(t,s,i),s.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ai=new WeakMap;var ri={id:"subtitle",start(t,e,i){const s=new ni({ctx:t.ctx,options:i,chart:t});yt.configure(t,s,i),yt.addBox(t,s),ai.set(t,s)},stop(t){yt.removeBox(t,ai.get(t)),ai.delete(t)},beforeUpdate(t,e,i){const s=ai.get(t);yt.configure(t,s,i),s.options=i},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const hi={average(t){if(!t.length)return!1;let e,i,s=0,n=0,o=0;for(e=0,i=t.length;e-1?t.split("\n"):t}function di(t,e){const{element:i,datasetIndex:s,index:n}=e,o=t.getDatasetMeta(s).controller,{label:a,value:r}=o.getLabelAndValue(n);return{chart:t,label:a,parsed:o.getParsed(n),raw:t.data.datasets[s].data[n],formattedValue:r,dataset:o.getDataset(),dataIndex:n,datasetIndex:s,element:i}}function ui(t,e){const i=t.chart.ctx,{body:n,footer:o,title:a}=t,{boxWidth:r,boxHeight:h}=e,l=(0,s.O)(e.bodyFont),c=(0,s.O)(e.titleFont),d=(0,s.O)(e.footerFont),u=a.length,g=o.length,p=n.length,f=(0,s.K)(e.padding);let m=f.height,x=0,b=n.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(b+=t.beforeBody.length+t.afterBody.length,u&&(m+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),b){m+=p*(e.displayColors?Math.max(h,l.lineHeight):l.lineHeight)+(b-p)*l.lineHeight+(b-1)*e.bodySpacing}g&&(m+=e.footerMarginTop+g*d.lineHeight+(g-1)*e.footerSpacing);let _=0;const v=function(t){x=Math.max(x,i.measureText(t).width+_)};return i.save(),i.font=c.string,(0,s.Q)(t.title,v),i.font=l.string,(0,s.Q)(t.beforeBody.concat(t.afterBody),v),_=e.displayColors?r+2+e.boxPadding:0,(0,s.Q)(n,(t=>{(0,s.Q)(t.before,v),(0,s.Q)(t.lines,v),(0,s.Q)(t.after,v)})),_=0,i.font=d.string,(0,s.Q)(t.footer,v),i.restore(),x+=f.width,{width:x,height:m}}function gi(t,e,i,s){const{x:n,width:o}=i,{width:a,chartArea:{left:r,right:h}}=t;let l="center";return"center"===s?l=n<=(r+h)/2?"left":"right":n<=o/2?l="left":n>=a-o/2&&(l="right"),function(t,e,i,s){const{x:n,width:o}=s,a=i.caretSize+i.caretPadding;return"left"===t&&n+o+a>e.width||"right"===t&&n-o-a<0||void 0}(l,t,e,i)&&(l="center"),l}function pi(t,e,i){const s=i.yAlign||e.yAlign||function(t,e){const{y:i,height:s}=e;return it.height-s/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||gi(t,e,i,s),yAlign:s}}function fi(t,e,i,n){const{caretSize:o,caretPadding:a,cornerRadius:r}=t,{xAlign:h,yAlign:l}=i,c=o+a,{topLeft:d,topRight:u,bottomLeft:g,bottomRight:p}=(0,s.ax)(r);let f=function(t,e){let{x:i,width:s}=t;return"right"===e?i-=s:"center"===e&&(i-=s/2),i}(e,h);const m=function(t,e,i){let{y:s,height:n}=t;return"top"===e?s+=i:s-="bottom"===e?n+i:n/2,s}(e,l,c);return"center"===l?"left"===h?f+=c:"right"===h&&(f-=c):"left"===h?f-=Math.max(d,g)+o:"right"===h&&(f+=Math.max(u,p)+o),{x:(0,s.E)(f,0,n.width-e.width),y:(0,s.E)(m,0,n.height-e.height)}}function mi(t,e,i){const n=(0,s.K)(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-n.right:t.x+n.left}function xi(t){return li([],ci(t))}function bi(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}class _i extends F{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&e.options.animation&&i.animations,n=new l(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(n)),n}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,i=this._tooltipItems,(0,s.h)(t,{tooltip:e,tooltipItems:i,type:"tooltip"})));var t,e,i}getTitle(t,e){const{callbacks:i}=e,s=i.beforeTitle.apply(this,[t]),n=i.title.apply(this,[t]),o=i.afterTitle.apply(this,[t]);let a=[];return a=li(a,ci(s)),a=li(a,ci(n)),a=li(a,ci(o)),a}getBeforeBody(t,e){return xi(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:i}=e,n=[];return(0,s.Q)(t,(t=>{const e={before:[],lines:[],after:[]},s=bi(i,t);li(e.before,ci(s.beforeLabel.call(this,t))),li(e.lines,s.label.call(this,t)),li(e.after,ci(s.afterLabel.call(this,t))),n.push(e)})),n}getAfterBody(t,e){return xi(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:i}=e,s=i.beforeFooter.apply(this,[t]),n=i.footer.apply(this,[t]),o=i.afterFooter.apply(this,[t]);let a=[];return a=li(a,ci(s)),a=li(a,ci(n)),a=li(a,ci(o)),a}_createItems(t){const e=this._active,i=this.chart.data,n=[],o=[],a=[];let r,h,l=[];for(r=0,h=e.length;rt.filter(e,s,n,i)))),t.itemSort&&(l=l.sort(((e,s)=>t.itemSort(e,s,i)))),(0,s.Q)(l,(e=>{const i=bi(t.callbacks,e);n.push(i.labelColor.call(this,e)),o.push(i.labelPointStyle.call(this,e)),a.push(i.labelTextColor.call(this,e))})),this.labelColors=n,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=l,l}update(t,e){const i=this.options.setContext(this.getContext()),s=this._active;let n,o=[];if(s.length){const t=hi[i.position].call(this,s,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const e=this._size=ui(this,i),a=Object.assign({},t,e),r=pi(this.chart,i,a),h=fi(i,a,r,this.chart);this.xAlign=r.xAlign,this.yAlign=r.yAlign,n={opacity:1,x:h.x,y:h.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(n={opacity:0});this._tooltipItems=o,this.$context=void 0,n&&this._resolveAnimations().update(this,n),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,s){const n=this.getCaretPosition(t,i,s);e.lineTo(n.x1,n.y1),e.lineTo(n.x2,n.y2),e.lineTo(n.x3,n.y3)}getCaretPosition(t,e,i){const{xAlign:n,yAlign:o}=this,{caretSize:a,cornerRadius:r}=i,{topLeft:h,topRight:l,bottomLeft:c,bottomRight:d}=(0,s.ax)(r),{x:u,y:g}=t,{width:p,height:f}=e;let m,x,b,_,v,y;return"center"===o?(v=g+f/2,"left"===n?(m=u,x=m-a,_=v+a,y=v-a):(m=u+p,x=m+a,_=v-a,y=v+a),b=m):(x="left"===n?u+Math.max(h,c)+a:"right"===n?u+p-Math.max(l,d)-a:this.caretX,"top"===o?(_=g,v=_-a,m=x-a,b=x+a):(_=g+f,v=_+a,m=x+a,b=x-a),y=_),{x1:m,x2:x,x3:b,y1:_,y2:v,y3:y}}drawTitle(t,e,i){const n=this.title,o=n.length;let a,r,h;if(o){const l=(0,s.aA)(i.rtl,this.x,this.width);for(t.x=mi(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",a=(0,s.O)(i.titleFont),r=i.titleSpacing,e.fillStyle=i.titleColor,e.font=a.string,h=0;h0!==t))?(t.beginPath(),t.fillStyle=o.multiKeyBackground,(0,s.av)(t,{x:e,y:f,w:l,h:h,radius:r}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),(0,s.av)(t,{x:i,y:f+1,w:l-2,h:h-2,radius:r}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,f,l,h),t.strokeRect(e,f,l,h),t.fillStyle=a.backgroundColor,t.fillRect(i,f+1,l-2,h-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:n}=this,{bodySpacing:o,bodyAlign:a,displayColors:r,boxHeight:h,boxWidth:l,boxPadding:c}=i,d=(0,s.O)(i.bodyFont);let u=d.lineHeight,g=0;const p=(0,s.aA)(i.rtl,this.x,this.width),f=function(i){e.fillText(i,p.x(t.x+g),t.y+u/2),t.y+=u+o},m=p.textAlign(a);let x,b,_,v,y,M,k;for(e.textAlign=a,e.textBaseline="middle",e.font=d.string,t.x=mi(this,m,i),e.fillStyle=i.bodyColor,(0,s.Q)(this.beforeBody,f),g=r&&"right"!==m?"center"===a?l/2+c:l+2+c:0,v=0,M=n.length;v0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,s=i&&i.x,n=i&&i.y;if(s||n){const i=hi[t.position].call(this,this._active,this._eventPosition);if(!i)return;const o=this._size=ui(this,t),a=Object.assign({},i,this._size),r=pi(e,t,a),h=fi(t,a,r,e);s._to===h.x&&n._to===h.y||(this.xAlign=r.xAlign,this.yAlign=r.yAlign,this.width=o.width,this.height=o.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,h))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const n={width:this.width,height:this.height},o={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const a=(0,s.K)(e.padding),r=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&r&&(t.save(),t.globalAlpha=i,this.drawBackground(o,t,n,e),(0,s.aB)(t,e.textDirection),o.y+=a.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),(0,s.aD)(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,n=t.map((({datasetIndex:t,index:e})=>{const i=this.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}})),o=!(0,s.ai)(i,n),a=this._positionChanged(n,e);(o||a)&&(this._active=n,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,o=this._active||[],a=this._getActiveElements(t,o,e,i),r=this._positionChanged(a,t),h=e||!(0,s.ai)(a,o)||r;return h&&(this._active=a,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),h}_getActiveElements(t,e,i,s){const n=this.options;if("mouseout"===t.type)return[];if(!s)return e;const o=this.chart.getElementsAtEventForMode(t,n.mode,n,i);return n.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:i,caretY:s,options:n}=this,o=hi[n.position].call(this,t,e);return!1!==o&&(i!==o.x||s!==o.y)}}_i.positioners=hi;var vi={id:"tooltip",_element:_i,positioners:hi,afterInit(t,e,i){i&&(t.tooltip=new _i({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",i))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:s.aF,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,s=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(s>0&&e.dataIndex"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},yi=Object.freeze({__proto__:null,Decimation:Fe,Filler:ti,Legend:si,SubTitle:ri,Title:oi,Tooltip:vi});function Mi(t,e,i,s){const n=t.indexOf(e);if(-1===n)return((t,e,i,s)=>("string"===typeof e?(i=t.push(e)-1,s.unshift({index:i,label:e})):isNaN(e)&&(i=null),i))(t,e,i,s);return n!==t.lastIndexOf(e)?i:n}class ki extends X{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:i,label:s}of e)t[i]===s&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if((0,s.k)(t))return null;const i=this.getLabels();return((t,e)=>null===t?null:(0,s.E)(Math.round(t),0,e))(e=isFinite(e)&&i[e]===t?e:Mi(i,t,(0,s.v)(e,t),this._addedLabels),i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:s}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,s=[];let n=this.getLabels();n=0===t&&e===n.length-1?n:n.slice(t,e+1),this._valueRange=Math.max(n.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let o=t;o<=e;o++)s.push({value:o});return s}getLabelForValue(t){const e=this.getLabels();return t>=0&&te.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function wi(t,e,{horizontal:i,minRotation:n}){const o=(0,s.t)(n),a=(i?Math.sin(o):Math.cos(o))||.001,r=.75*e*(""+t).length;return Math.min(e/a,r)}ki.id="category",ki.defaults={ticks:{callback:ki.prototype.getLabelForValue}};class Si extends X{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return(0,s.k)(t)||("number"===typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:n,max:o}=this;const a=t=>n=e?n:t,r=t=>o=i?o:t;if(t){const t=(0,s.s)(n),e=(0,s.s)(o);t<0&&e<0?r(0):t>0&&e>0&&a(0)}if(n===o){let e=1;(o>=Number.MAX_SAFE_INTEGER||n<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*o)),r(o+e),t||a(n-e)}this.min=n,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:s}=t;return s?(e=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const n=function(t,e){const i=[],{bounds:n,step:o,min:a,max:r,precision:h,count:l,maxTicks:c,maxDigits:d,includeBounds:u}=t,g=o||1,p=c-1,{min:f,max:m}=e,x=!(0,s.k)(a),b=!(0,s.k)(r),_=!(0,s.k)(l),v=(m-f)/(d+1);let y,M,k,w,S=(0,s.aI)((m-f)/p/g)*g;if(S<1e-14&&!x&&!b)return[{value:f},{value:m}];w=Math.ceil(m/S)-Math.floor(f/S),w>p&&(S=(0,s.aI)(w*S/p/g)*g),(0,s.k)(h)||(y=Math.pow(10,h),S=Math.ceil(S*y)/y),"ticks"===n?(M=Math.floor(f/S)*S,k=Math.ceil(m/S)*S):(M=f,k=m),x&&b&&o&&(0,s.aJ)((r-a)/o,S/1e3)?(w=Math.round(Math.min((r-a)/S,c)),S=(r-a)/w,M=a,k=r):_?(M=x?a:M,k=b?r:k,w=l-1,S=(k-M)/w):(w=(k-M)/S,w=(0,s.aK)(w,Math.round(w),S/1e3)?Math.round(w):Math.ceil(w));const D=Math.max((0,s.aL)(S),(0,s.aL)(M));y=Math.pow(10,(0,s.k)(h)?D:h),M=Math.round(M*y)/y,k=Math.round(k*y)/y;let P=0;for(x&&(u&&M!==a?(i.push({value:a}),M0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=(0,s.g)(t)?Math.max(0,t):null,this.max=(0,s.g)(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,n=this.max;const o=e=>i=t?i:e,a=t=>n=e?n:t,r=(t,e)=>Math.pow(10,Math.floor((0,s.z)(t))+e);i===n&&(i<=0?(o(1),a(10)):(o(r(i,-1)),a(r(n,1)))),i<=0&&o(r(n,-1)),n<=0&&a(r(i,1)),this._zero&&this.min!==this._suggestedMin&&i===r(this.min,0)&&o(r(i,-1)),this.min=i,this.max=n}buildTicks(){const t=this.options,e=function(t,e){const i=Math.floor((0,s.z)(e.max)),n=Math.ceil(e.max/Math.pow(10,i)),o=[];let a=(0,s.B)(t.min,Math.pow(10,Math.floor((0,s.z)(e.min)))),r=Math.floor((0,s.z)(a)),h=Math.floor(a/Math.pow(10,r)),l=r<0?Math.pow(10,Math.abs(r)):1;do{o.push({value:a,major:Pi(a)}),++h,10===h&&(h=1,++r,l=r>=0?1:l),a=Math.round(h*Math.pow(10,r)*l)/l}while(rn?{start:e-i,end:e}:{start:e,end:e+i}}function Li(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},i=Object.assign({},e),n=[],o=[],a=t._pointLabels.length,r=t.options.pointLabels,h=r.centerPointLabels?s.P/a:0;for(let u=0;ue.r&&(r=(s.end-e.r)/o,t.r=Math.max(t.r,e.r+r)),n.starte.b&&(h=(n.end-e.b)/a,t.b=Math.max(t.b,e.b+h))}function Ti(t){return 0===t||180===t?"center":t<180?"left":"right"}function Ri(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function zi(t,e,i){return 90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e),t}function Ii(t,e,i,n){const{ctx:o}=t;if(i)o.arc(t.xCenter,t.yCenter,e,0,s.T);else{let i=t.getPointPosition(0,e);o.moveTo(i.x,i.y);for(let s=1;s{const i=(0,s.C)(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?Li(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,s){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,s))}getIndexAngle(t){const e=s.T/(this._pointLabels.length||1),i=this.options.startAngle||0;return(0,s.az)(t*e+(0,s.t)(i))}getDistanceFromCenterForValue(t){if((0,s.k)(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if((0,s.k)(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t=0;o--){const e=n.setContext(t.getPointLabelContext(o)),a=(0,s.O)(e.font),{x:r,y:h,textAlign:l,left:c,top:d,right:u,bottom:g}=t._pointLabelItems[o],{backdropColor:p}=e;if(!(0,s.k)(p)){const t=(0,s.ax)(e.borderRadius),n=(0,s.K)(e.backdropPadding);i.fillStyle=p;const o=c-n.left,a=d-n.top,r=u-c+n.width,h=g-d+n.height;Object.values(t).some((t=>0!==t))?(i.beginPath(),(0,s.av)(i,{x:o,y:a,w:r,h:h,radius:t}),i.fill()):i.fillRect(o,a,r,h)}(0,s.M)(i,t._pointLabels[o],r,h+a.lineHeight/2,a,{color:e.color,textAlign:l,textBaseline:"middle"})}}(this,o),n.display&&this.ticks.forEach(((t,e)=>{if(0!==e){r=this.getDistanceFromCenterForValue(t.value);!function(t,e,i,s){const n=t.ctx,o=e.circular,{color:a,lineWidth:r}=e;!o&&!s||!a||!r||i<0||(n.save(),n.strokeStyle=a,n.lineWidth=r,n.setLineDash(e.borderDash),n.lineDashOffset=e.borderDashOffset,n.beginPath(),Ii(t,i,o,s),n.closePath(),n.stroke(),n.restore())}(this,n.setContext(this.getContext(e-1)),r,o)}})),i.display){for(t.save(),a=o-1;a>=0;a--){const s=i.setContext(this.getPointLabelContext(a)),{color:n,lineWidth:o}=s;o&&n&&(t.lineWidth=o,t.strokeStyle=n,t.setLineDash(s.borderDash),t.lineDashOffset=s.borderDashOffset,r=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),h=this.getPointPosition(a,r),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(h.x,h.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const n=this.getIndexAngle(0);let o,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(n),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((n,r)=>{if(0===r&&!e.reverse)return;const h=i.setContext(this.getContext(r)),l=(0,s.O)(h.font);if(o=this.getDistanceFromCenterForValue(this.ticks[r].value),h.showLabelBackdrop){t.font=l.string,a=t.measureText(n.label).width,t.fillStyle=h.backdropColor;const e=(0,s.K)(h.backdropPadding);t.fillRect(-a/2-e.left,-o-l.size/2-e.top,a+e.width,l.size+e.height)}(0,s.M)(t,n.label,0,-o,l,{color:h.color})})),t.restore()}drawTitle(){}}Fi.id="radialLinear",Fi.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:B.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},Fi.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Fi.descriptors={angleLines:{_fallback:"grid"}};const Vi={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}},Bi=Object.keys(Vi);function Ni(t,e){return t-e}function Hi(t,e){if((0,s.k)(e))return null;const i=t._adapter,{parser:n,round:o,isoWeekday:a}=t._parseOpts;let r=e;return"function"===typeof n&&(r=n(r)),(0,s.g)(r)||(r="string"===typeof n?i.parse(r,n):i.parse(r)),null===r?null:(o&&(r="week"!==o||!(0,s.x)(a)&&!0!==a?i.startOf(r,o):i.startOf(r,"isoWeek",a)),+r)}function Wi(t,e,i,s){const n=Bi.length;for(let o=Bi.indexOf(t);o=e?i[n]:i[o]]=!0}}else t[e]=!0}function $i(t,e,i){const s=[],n={},o=e.length;let a,r;for(a=0;a=0&&(e[h].major=!0);return e}(t,s,n,i):s}class Ui extends X{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){const i=t.time||(t.time={}),n=this._adapter=new et._date(t.adapters.date);n.init(e),(0,s.ac)(i.displayFormats,n.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Hi(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:n,max:o,minDefined:a,maxDefined:r}=this.getUserBounds();function h(t){a||isNaN(t.min)||(n=Math.min(n,t.min)),r||isNaN(t.max)||(o=Math.max(o,t.max))}a&&r||(h(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||h(this.getMinMax(!1))),n=(0,s.g)(n)&&!isNaN(n)?n:+e.startOf(Date.now(),i),o=(0,s.g)(o)&&!isNaN(o)?o:+e.endOf(Date.now(),i)+1,this.min=Math.min(n,o-1),this.max=Math.max(n+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,n="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const o=this.min,a=this.max,r=(0,s.aN)(n,o,a);return this._unit=e.unit||(i.autoSkip?Wi(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(t,e,i,s,n){for(let o=Bi.length-1;o>=Bi.indexOf(i);o--){const i=Bi[o];if(Vi[i].common&&t._adapter.diff(n,s,i)>=e-1)return i}return Bi[i?Bi.indexOf(i):0]}(this,r.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=Bi.indexOf(t)+1,i=Bi.length;e+t.value)))}initOffsets(t){let e,i,n=0,o=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),n=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),o=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=(0,s.E)(n,0,a),o=(0,s.E)(o,0,a),this._offsets={start:n,end:o,factor:1/(n+1+o)}}_generate(){const t=this._adapter,e=this.min,i=this.max,n=this.options,o=n.time,a=o.unit||Wi(o.minUnit,e,i,this._getLabelCapacity(e)),r=(0,s.v)(o.stepSize,1),h="week"===a&&o.isoWeekday,l=(0,s.x)(h)||!0===h,c={};let d,u,g=e;if(l&&(g=+t.startOf(g,"isoWeek",h)),g=+t.startOf(g,l?"day":a),t.diff(i,e,a)>1e5*r)throw new Error(e+" and "+i+" are too far apart with stepSize of "+r+" "+a);const p="data"===n.ticks.source&&this.getDataTimestamps();for(d=g,u=0;dt-e)).map((t=>+t))}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}_tickFormatFunction(t,e,i,n){const o=this.options,a=o.time.displayFormats,r=this._unit,h=this._majorUnit,l=r&&a[r],c=h&&a[h],d=i[e],u=h&&c&&d&&d.major,g=this._adapter.format(t,n||(u?c:l)),p=o.ticks.callback;return p?(0,s.C)(p,[g,e,i],this):g}generateTickLabels(t){let e,i,s;for(e=0,i=t.length;e0?a:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(t=0,e=s.length;t=t[h].pos&&e<=t[l].pos&&({lo:h,hi:l}=(0,s.Z)(t,"pos",e)),({pos:n,time:a}=t[h]),({pos:o,time:r}=t[l])):(e>=t[h].time&&e<=t[l].time&&({lo:h,hi:l}=(0,s.Z)(t,"time",e)),({time:n,pos:a}=t[h]),({time:o,pos:r}=t[l]));const c=o-n;return c?a+(r-a)*(e-n)/c:a}Ui.id="time",Ui.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class Ki extends Ui{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Yi(e,this.min),this._tableRange=Yi(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,s=[],n=[];let o,a,r,h,l;for(o=0,a=t.length;o=e&&h<=i&&s.push(h);if(s.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(o=0,a=s.length;o0?u:0)),p&&(p="".concat(o).concat(p)),e=[c.createElement("span",{key:"int",className:"".concat(i,"-content-value-int")},d,v),p&&c.createElement("span",{key:"decimal",className:"".concat(i,"-content-value-decimal")},p)]}else e=s}return c.createElement("span",{className:"".concat(i,"-content-value")},e)},h=function(n){var e=n.prefixCls,t=n.className,u=n.style,o=n.valueStyle,a=n.value,f=void 0===a?0:a,i=n.title,l=n.valueRender,v=n.prefix,m=n.suffix,x=n.loading,h=n.direction,w=n.onMouseEnter,y=n.onMouseLeave,E=c.createElement(g,(0,r.Z)({},n,{value:f})),N=d()(e,(0,s.Z)({},"".concat(e,"-rtl"),"rtl"===h),t);return c.createElement("div",{className:N,style:u,onMouseEnter:w,onMouseLeave:y},i&&c.createElement("div",{className:"".concat(e,"-title")},i),c.createElement(p.Z,{paragraph:!1,loading:x,className:"".concat(e,"-skeleton")},c.createElement("div",{style:o,className:"".concat(e,"-content")},v&&c.createElement("span",{className:"".concat(e,"-content-prefix")},v),l?l(E):E,m&&c.createElement("span",{className:"".concat(e,"-content-suffix")},m))))};h.defaultProps={decimalSeparator:".",groupSeparator:",",loading:!1};var w=(0,v.PG)({prefixCls:"statistic"})(h),y=t(97685),E=t(32475),N=t.n(E),Z=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function k(n,e){var t=e.format,r=void 0===t?"":t,u=new Date(n).getTime(),o=Date.now();return function(n,e){var t=n,r=/\[[^\]]*]/g,u=(e.match(r)||[]).map((function(n){return n.slice(1,-1)})),o=e.replace(r,"[]"),a=Z.reduce((function(n,e){var r=(0,y.Z)(e,2),u=r[0],o=r[1];if(-1!==n.indexOf(u)){var a=Math.floor(t/o);return t-=a*o,n.replace(new RegExp("".concat(u,"+"),"g"),(function(n){var e=n.length;return N()(a.toString(),e,"0")}))}return n}),o),f=0;return a.replace(r,(function(){var n=u[f];return f+=1,n}))}(Math.max(u-o,0),r)}var T=1e3/30;function C(n){return new Date(n).getTime()}var D=function(n){(0,a.Z)(t,n);var e=(0,f.Z)(t);function t(){var n;return(0,u.Z)(this,t),(n=e.apply(this,arguments)).syncTimer=function(){C(n.props.value)>=Date.now()?n.startTimer():n.stopTimer()},n.startTimer=function(){if(!n.countdownId){var e=n.props,t=e.onChange,r=C(e.value);n.countdownId=window.setInterval((function(){n.forceUpdate(),t&&r>Date.now()&&t(r-Date.now())}),T)}},n.stopTimer=function(){var e=n.props,t=e.onFinish,r=e.value;if(n.countdownId){clearInterval(n.countdownId),n.countdownId=void 0;var u=C(r);t&&u9007199254740991)return r;do{t%2&&(r+=n),(t=e(t/2))&&(n+=n)}while(t);return r}},14259:function(n){n.exports=function(n,e,t){var r=-1,u=n.length;e<0&&(e=-e>u?0:u+e),(t=t>u?u:t)<0&&(t+=u),u=e>t?0:t-e>>>0,e>>>=0;for(var o=Array(u);++r=u?n:r(n,e,t)}},78302:function(n,e,t){var r=t(18190),u=t(80531),o=t(40180),a=t(62689),f=t(88016),c=t(83140),i=Math.ceil;n.exports=function(n,e){var t=(e=void 0===e?" ":u(e)).length;if(t<2)return t?r(e,n):e;var s=r(e,i(n/f(e)));return a(e)?o(c(s),0,n).join(""):s.slice(0,n)}},62689:function(n){var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");n.exports=function(n){return e.test(n)}},88016:function(n,e,t){var r=t(48983),u=t(62689),o=t(21903);n.exports=function(n){return u(n)?o(n):r(n)}},83140:function(n,e,t){var r=t(44286),u=t(62689),o=t(676);n.exports=function(n){return u(n)?o(n):r(n)}},21903:function(n){var e="[\\ud800-\\udfff]",t="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",u="[^\\ud800-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",f="(?:"+t+"|"+r+")"+"?",c="[\\ufe0e\\ufe0f]?",i=c+f+("(?:\\u200d(?:"+[u,o,a].join("|")+")"+c+f+")*"),s="(?:"+[u+t+"?",t,o,a,e].join("|")+")",l=RegExp(r+"(?="+r+")|"+s+i,"g");n.exports=function(n){for(var e=l.lastIndex=0;l.test(n);)++e;return e}},676:function(n){var e="[\\ud800-\\udfff]",t="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",u="[^\\ud800-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",f="(?:"+t+"|"+r+")"+"?",c="[\\ufe0e\\ufe0f]?",i=c+f+("(?:\\u200d(?:"+[u,o,a].join("|")+")"+c+f+")*"),s="(?:"+[u+t+"?",t,o,a,e].join("|")+")",l=RegExp(r+"(?="+r+")|"+s+i,"g");n.exports=function(n){return n.match(l)||[]}},11726:function(n,e,t){var r=t(78302),u=t(88016),o=t(40554),a=t(79833);n.exports=function(n,e,t){n=a(n);var f=(e=o(e))?u(n):0;return e&&f=1},subscribe:function(e){return c.size||this.register(),i+=1,c.set(i,e),e(s),i},unsubscribe:function(e){c.delete(e),c.size||this.unregister()},unregister:function(){var e=this;Object.keys(o).forEach((function(t){var a=o[t],r=e.matchHandlers[a];null===r||void 0===r||r.mql.removeListener(null===r||void 0===r?void 0:r.listener)})),c.clear()},register:function(){var e=this;Object.keys(o).forEach((function(t){var a=o[t],l=function(a){var l=a.matches;e.dispatch((0,n.Z)((0,n.Z)({},s),(0,r.Z)({},t,l)))},c=window.matchMedia(a);c.addListener(l),e.matchHandlers[a]={mql:c,listener:l},l(c)}))}};t.ZP=u},27049:function(e,t,a){"use strict";var r=a(87462),n=a(4942),l=a(94184),o=a.n(l),c=a(67294),i=a(53124),s=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n0?"-".concat(m):m,F=!!M,O="left"===m&&null!=h,x="right"===m&&null!=h,w=o()(b,"".concat(b,"-").concat(p),(t={},(0,n.Z)(t,"".concat(b,"-with-text"),F),(0,n.Z)(t,"".concat(b,"-with-text").concat(C),F),(0,n.Z)(t,"".concat(b,"-dashed"),!!g),(0,n.Z)(t,"".concat(b,"-plain"),!!y),(0,n.Z)(t,"".concat(b,"-rtl"),"rtl"===u),(0,n.Z)(t,"".concat(b,"-no-default-orientation-margin-left"),O),(0,n.Z)(t,"".concat(b,"-no-default-orientation-margin-right"),x),t),E),L=(0,r.Z)((0,r.Z)({},O&&{marginLeft:h}),x&&{marginRight:h});return c.createElement("div",(0,r.Z)({className:w},k,{role:"separator"}),M&&c.createElement("span",{className:"".concat(b,"-inner-text"),style:L},M))}},33859:function(e,t,a){"use strict";a.d(t,{ZP:function(){return O}});var r=a(4942),n=a(89739),l=a(4340),o=a(21640),c=a(1413),i=a(67294),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},u=a(42135),d=function(e,t){return i.createElement(u.Z,(0,c.Z)((0,c.Z)({},e),{},{ref:t,icon:s}))};d.displayName="WarningFilled";var f=i.forwardRef(d),p=a(94184),v=a.n(p),m=a(53124),h=function(){return i.createElement("svg",{width:"252",height:"294"},i.createElement("defs",null,i.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(0 .012)"},i.createElement("mask",{fill:"#fff"}),i.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),i.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),i.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),i.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),i.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),i.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),i.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),i.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),i.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),i.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),i.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1890FF"}),i.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),i.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),i.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),i.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),i.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),i.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),i.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),i.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),i.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),i.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),i.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),i.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),i.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),i.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),i.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),i.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),i.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),i.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),i.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),i.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),i.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),i.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),i.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),i.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),i.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),i.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),i.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),i.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),i.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),i.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),i.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"})))},E=function(){return i.createElement("svg",{width:"254",height:"294"},i.createElement("defs",null,i.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),i.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(0 .067)"},i.createElement("mask",{fill:"#fff"}),i.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),i.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),i.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),i.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),i.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),i.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),i.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),i.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),i.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),i.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),i.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),i.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),i.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),i.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),i.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),i.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),i.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),i.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),i.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),i.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),i.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),i.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),i.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),i.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),i.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),i.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),i.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),i.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),i.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),i.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),i.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),i.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),i.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),i.createElement("mask",{fill:"#fff"}),i.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),i.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),i.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),i.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),i.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),i.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),i.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),i.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),i.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),i.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),i.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"})))},M=function(){return i.createElement("svg",{width:"251",height:"294"},i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),i.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),i.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),i.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),i.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),i.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),i.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),i.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),i.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),i.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),i.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),i.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),i.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),i.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),i.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),i.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),i.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),i.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),i.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),i.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),i.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),i.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),i.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),i.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),i.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),i.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),i.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),i.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),i.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),i.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),i.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),i.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),i.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),i.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),i.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),i.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),i.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),i.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),i.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"})))},g={success:n.Z,error:l.Z,info:o.Z,warning:f},y={404:h,500:E,403:M},k=Object.keys(y),b=function(e){var t=e.prefixCls,a=e.icon,r=e.status,n=v()("".concat(t,"-icon"));if(k.includes("".concat(r))){var l=y[r];return i.createElement("div",{className:"".concat(n," ").concat(t,"-image")},i.createElement(l,null))}var o=i.createElement(g[r]);return i.createElement("div",{className:n},a||o)},C=function(e){var t=e.prefixCls,a=e.extra;return a?i.createElement("div",{className:"".concat(t,"-extra")},a):null},F=function(e){var t=e.prefixCls,a=e.className,n=e.subTitle,l=e.title,o=e.style,c=e.children,s=e.status,u=void 0===s?"info":s,d=e.icon,f=e.extra,p=i.useContext(m.E_),h=p.getPrefixCls,E=p.direction,M=h("result",t),g=v()(M,"".concat(M,"-").concat(u),a,(0,r.Z)({},"".concat(M,"-rtl"),"rtl"===E));return i.createElement("div",{className:g,style:o},i.createElement(b,{prefixCls:M,status:u,icon:d}),i.createElement("div",{className:"".concat(M,"-title")},l),n&&i.createElement("div",{className:"".concat(M,"-subtitle")},n),i.createElement(C,{prefixCls:M,extra:f}),c&&i.createElement("div",{className:"".concat(M,"-content")},c))};F.PRESENTED_IMAGE_403=y[403],F.PRESENTED_IMAGE_404=y[404],F.PRESENTED_IMAGE_500=y[500];var O=F},45471:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PresetStatusColorTypes=t.PresetColorTypes=void 0;var r=a(66764),n=(0,r.tuple)("success","processing","error","default","warning");t.PresetStatusColorTypes=n;var l=(0,r.tuple)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime");t.PresetColorTypes=l},53683:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransitionName=t.getTransitionDirection=t.default=void 0;var r=function(){return{height:0,opacity:0}},n=function(e){return{height:e.scrollHeight,opacity:1}},l=function(e,t){return!0===(null===t||void 0===t?void 0:t.deadline)||"height"===t.propertyName},o={motionName:"ant-motion-collapse",onAppearStart:r,onEnterStart:r,onAppearActive:n,onEnterActive:n,onLeaveStart:function(e){return{height:e?e.offsetHeight:0}},onLeaveActive:r,onAppearEnd:l,onEnterEnd:l,onLeaveEnd:l,motionDeadline:500};(0,a(66764).tuple)("bottomLeft","bottomRight","topLeft","topRight");t.getTransitionDirection=function(e){return void 0===e||"topLeft"!==e&&"topRight"!==e?"slide-up":"slide-down"};t.getTransitionName=function(e,t,a){return void 0!==a?a:"".concat(e,"-").concat(t)};var c=o;t.default=c},74132:function(e,t,a){"use strict";var r=a(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.arrowWidth,a=void 0===t?4:t,r=e.horizontalArrowShift,o=void 0===r?16:r,c=e.verticalArrowShift,u=void 0===c?8:c,d=e.autoAdjustOverflow,f=e.arrowPointAtCenter,p={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(o+a),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(u+a)]},topRight:{points:["br","tc"],offset:[o+a,-4]},rightTop:{points:["tl","cr"],offset:[4,-(u+a)]},bottomRight:{points:["tr","bc"],offset:[o+a,4]},rightBottom:{points:["bl","cr"],offset:[4,u+a]},bottomLeft:{points:["tl","bc"],offset:[-(o+a),4]},leftBottom:{points:["br","cl"],offset:[-4,u+a]}};return Object.keys(p).forEach((function(e){p[e]=f?(0,n.default)((0,n.default)({},p[e]),{overflow:s(d),targetOffset:i}):(0,n.default)((0,n.default)({},l.placements[e]),{overflow:s(d)}),p[e].ignoreShake=!0})),p},t.getOverflowOptions=s;var n=r(a(10434)),l=a(24375),o={adjustX:1,adjustY:1},c={adjustX:0,adjustY:0},i=[0,0];function s(e){return"boolean"===typeof e?e?o:c:(0,n.default)((0,n.default)({},c),e)}},47419:function(e,t,a){"use strict";var r=a(75263).default;Object.defineProperty(t,"__esModule",{value:!0}),t.cloneElement=function(e,t){return o(e,e,t)},t.isValidElement=void 0,t.replaceElement=o;var n=r(a(67294)),l=n.isValidElement;function o(e,t,a){return l(e)?n.cloneElement(e,"function"===typeof a?a(e.props||{}):a):t}t.isValidElement=l},71434:function(e,t,a){"use strict";var r=a(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getMergedStatus=void 0,t.getStatusClassNames=function(e,t,a){var r;return(0,l.default)((r={},(0,n.default)(r,"".concat(e,"-status-success"),"success"===t),(0,n.default)(r,"".concat(e,"-status-warning"),"warning"===t),(0,n.default)(r,"".concat(e,"-status-error"),"error"===t),(0,n.default)(r,"".concat(e,"-status-validating"),"validating"===t),(0,n.default)(r,"".concat(e,"-has-feedback"),a),r))};var n=r(a(38416)),l=r(a(94184));(0,a(66764).tuple)("warning","error","");t.getMergedStatus=function(e,t){return t||e}},38882:function(e,t,a){"use strict";var r=a(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.detectFlexGapSupported=t.canUseDocElement=void 0,Object.defineProperty(t,"isStyleSupport",{enumerable:!0,get:function(){return o.isStyleSupport}});var n,l=r(a(19158)),o=a(3481),c=function(){return(0,l.default)()&&window.document.documentElement};t.canUseDocElement=c;t.detectFlexGapSupported=function(){if(!c())return!1;if(void 0!==n)return n;var e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),n=1===e.scrollHeight,document.body.removeChild(e),n}},60938:function(e,t,a){"use strict";var r=a(75263).default,n=a(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=n(a(10434)),o=n(a(27712)),c=r(a(67294)),i=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);nr&&(n=t),n}var O=v.forwardRef((function(e,t){var a,r=e.prefixCls,n=e.bordered,O=void 0===n||n,x=e.showCount,w=void 0!==x&&x,L=e.maxLength,N=e.className,_=e.style,A=e.size,S=e.disabled,j=e.onCompositionStart,P=e.onCompositionEnd,z=e.onChange,R=e.status,B=b(e,["prefixCls","bordered","showCount","maxLength","className","style","size","disabled","onCompositionStart","onCompositionEnd","onChange","status"]),T=v.useContext(m.ConfigContext),D=T.getPrefixCls,I=T.direction,H=v.useContext(E.default),W=v.useContext(h.default),Z=S||W,U=v.useContext(M.FormItemInputContext),V=U.status,K=U.hasFeedback,G=U.isFormItemInput,Q=U.feedbackIcon,Y=(0,g.getMergedStatus)(V,R),X=v.useRef(null),q=v.useRef(null),J=v.useState(!1),$=(0,i.default)(J,2),ee=$[0],te=$[1],ae=v.useRef(),re=v.useRef(0),ne=(0,f.default)(B.defaultValue,{value:B.value}),le=(0,i.default)(ne,2),oe=le[0],ce=le[1],ie=B.hidden,se=function(e,t){void 0===B.value&&(ce(e),null===t||void 0===t||t())},ue=Number(L)>0,de=D("input",r);v.useImperativeHandle(t,(function(){var e;return{resizableTextArea:null===(e=X.current)||void 0===e?void 0:e.resizableTextArea,focus:function(e){var t,a;(0,k.triggerFocus)(null===(a=null===(t=X.current)||void 0===t?void 0:t.resizableTextArea)||void 0===a?void 0:a.textArea,e)},blur:function(){var e;return null===(e=X.current)||void 0===e?void 0:e.blur()}}}));var fe=v.createElement(d.default,(0,c.default)({},(0,p.default)(B,["allowClear"]),{disabled:Z,className:(0,u.default)((a={},(0,o.default)(a,"".concat(de,"-borderless"),!O),(0,o.default)(a,N,N&&!w),(0,o.default)(a,"".concat(de,"-sm"),"small"===H||"small"===A),(0,o.default)(a,"".concat(de,"-lg"),"large"===H||"large"===A),a),(0,g.getStatusClassNames)(de,Y)),style:w?void 0:_,prefixCls:de,onCompositionStart:function(e){te(!0),ae.current=oe,re.current=e.currentTarget.selectionStart,null===j||void 0===j||j(e)},onChange:function(e){var t=e.target.value;!ee&&ue&&(t=F(e.target.selectionStart>=L+1||e.target.selectionStart===t.length||!e.target.selectionStart,oe,t,L));se(t),(0,k.resolveOnChange)(e.currentTarget,e,z,t)},onCompositionEnd:function(e){var t;te(!1);var a=e.currentTarget.value;ue&&(a=F(re.current>=L+1||re.current===(null===(t=ae.current)||void 0===t?void 0:t.length),ae.current,a,L));a!==oe&&(se(a),(0,k.resolveOnChange)(e.currentTarget,e,z,a)),null===P||void 0===P||P(e)},ref:X})),pe=(0,k.fixControlledValue)(oe);ee||!ue||null!==B.value&&void 0!==B.value||(pe=C(pe,L));var ve=v.createElement(y.default,(0,c.default)({disabled:Z},B,{prefixCls:de,direction:I,inputType:"text",value:pe,element:fe,handleReset:function(e){var t,a,r;se(""),null===(t=X.current)||void 0===t||t.focus(),(0,k.resolveOnChange)(null===(r=null===(a=X.current)||void 0===a?void 0:a.resizableTextArea)||void 0===r?void 0:r.textArea,e,z)},ref:q,bordered:O,status:R,style:w?void 0:_}));if(w||K){var me,he=(0,s.default)(pe).length,Ee="";return Ee="object"===(0,l.default)(w)?w.formatter({count:he,maxLength:L}):"".concat(he).concat(ue?" / ".concat(L):""),v.createElement("div",{hidden:ie,className:(0,u.default)("".concat(de,"-textarea"),(me={},(0,o.default)(me,"".concat(de,"-textarea-rtl"),"rtl"===I),(0,o.default)(me,"".concat(de,"-textarea-show-count"),w),(0,o.default)(me,"".concat(de,"-textarea-in-form-item"),G),me),(0,g.getStatusClassNames)("".concat(de,"-textarea"),Y,K),N),style:_,"data-count":Ee},ve,K&&v.createElement("span",{className:"".concat(de,"-textarea-suffix")},Q))}return ve}));t.default=O},36714:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasPrefixSuffix=function(e){return!!(e.prefix||e.suffix||e.allowClear)}},94055:function(e,t,a){"use strict";var r=a(75263).default,n=a(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=n(a(38416)),o=n(a(27424)),c=n(a(10434)),i=n(a(94184)),s=n(a(43763)),u=n(a(60869)),d=r(a(67294)),f=a(31929),p=a(45471),v=a(53683),m=n(a(74132)),h=a(47419),E=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n=0||r.indexOf("Bottom")>=0?l.top="".concat(n.height-t.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(l.top="".concat(-t.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?l.left="".concat(n.width-t.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(l.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(l.left," ").concat(l.top)}},overlayInnerStyle:U,arrowContent:d.createElement("span",{className:"".concat(R,"-arrow-content"),style:D}),motion:{motionName:(0,v.getTransitionName)(B,"zoom-big-fast",e.transitionName),motionDeadline:1e3}}),T?(0,h.cloneElement)(I,{className:W}):I)}));y.defaultProps={placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var k=y;t.default=k},12385:function(e,t,a){"use strict";var r=a(75263).default,n=a(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=n(a(10434)),o=n(a(27424)),c=n(a(18698)),i=n(a(45598)),s=n(a(82546)),u=r(a(67294));function d(e){var t=(0,c.default)(e);return"string"===t||"number"===t}function f(e,t){for(var a=0,r=[],n=0;nt){var c=t-a;return r.push(String(l).slice(0,c)),r}r.push(l),a=o}return e}var p=function(e){var t=e.enabledMeasure,a=e.children,r=e.text,n=e.width,c=e.rows,p=e.onEllipsis,v=u.useState([0,0,0]),m=(0,o.default)(v,2),h=m[0],E=m[1],M=u.useState(0),g=(0,o.default)(M,2),y=g[0],k=g[1],b=(0,o.default)(h,3),C=b[0],F=b[1],O=b[2],x=u.useState(0),w=(0,o.default)(x,2),L=w[0],N=w[1],_=u.useRef(null),A=u.useRef(null),S=u.useMemo((function(){return(0,i.default)(r)}),[r]),j=u.useMemo((function(){return function(e){var t=0;return e.forEach((function(e){d(e)?t+=String(e).length:t+=1})),t}(S)}),[S]),P=u.useMemo((function(){return t&&3===y?a(f(S,F),F1&&et,nt=function(e){var t;je(!0),null===(t=Ye.onExpand)||void 0===t||t.call(Ye,e)},lt=y.useState(0),ot=(0,i.default)(lt,2),ct=ot[0],it=ot[1],st=function(e){var t;Be(e),Re!==e&&(null===(t=Ye.onEllipsis)||void 0===t||t.call(Ye,e))};y.useEffect((function(){var e=Q.current;if(Qe&&et&&e){var t=rt?e.offsetHeight1&&void 0!==arguments[1]?arguments[1]:{},r=[];return n.default.Children.forEach(t,(function(t){(void 0!==t&&null!==t||a.keepEmpty)&&(Array.isArray(t)?r=r.concat(e(t)):(0,l.isFragment)(t)&&t.props?r=r.concat(e(t.props.children,a)):r.push(t))})),r};var n=r(a(67294)),l=a(11805)},3481:function(e,t,a){"use strict";var r=a(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.isStyleSupport=function(e,t){if(!Array.isArray(e)&&void 0!==t)return function(e,t){if(!l(e))return!1;var a=document.createElement("div"),r=a.style[e];return a.style[e]=t,a.style[e]!==r}(e,t);return l(e)};var n=r(a(19158)),l=function(e){if((0,n.default)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],a=window.document.documentElement;return t.some((function(e){return e in a.style}))}return!1}},27712:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=a.F1&&t<=a.F12)return!1;switch(t){case a.ALT:case a.CAPS_LOCK:case a.CONTEXT_MENU:case a.CTRL:case a.DOWN:case a.END:case a.ESC:case a.HOME:case a.INSERT:case a.LEFT:case a.MAC_FF_META:case a.META:case a.NUMLOCK:case a.NUM_CENTER:case a.PAGE_DOWN:case a.PAGE_UP:case a.PAUSE:case a.PRINT_SCREEN:case a.RIGHT:case a.SHIFT:case a.UP:case a.WIN_KEY:case a.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=a.ZERO&&e<=a.NINE)return!0;if(e>=a.NUM_ZERO&&e<=a.NUM_MULTIPLY)return!0;if(e>=a.A&&e<=a.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case a.SPACE:case a.QUESTION_MARK:case a.NUM_PLUS:case a.NUM_MINUS:case a.NUM_PERIOD:case a.NUM_DIVISION:case a.SEMICOLON:case a.DASH:case a.EQUALS:case a.COMMA:case a.PERIOD:case a.SLASH:case a.APOSTROPHE:case a.SINGLE_QUOTE:case a.OPEN_SQUARE_BRACKET:case a.BACKSLASH:case a.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},r=a;t.default=r},18545:function(e,t,a){"use strict";var r=a(75263);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=n.useRef();t.current=e;var a=n.useCallback((function(){for(var e,a=arguments.length,r=new Array(a),n=0;n0){var K=y[0]/2;_.paddingLeft=K,_.paddingRight=K}if(y&&y[1]>0&&!Z){var R=y[1]/2;_.paddingTop=R,_.paddingBottom=R}return j&&(_.flex=function(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(j),!1!==b||_.minWidth||(_.minWidth=0)),i.createElement("div",(0,n.Z)({},S,{style:(0,n.Z)((0,n.Z)({},_),P),className:k,ref:t}),N)}))},99134:function(e,t,a){var r=(0,a(67294).createContext)({});t.Z=r},25968:function(e,t,a){a.d(t,{Z:function(){return y}});var r=a(87462),n=a(4942),c=a(71002),o=a(97685),l=a(94184),i=a.n(l),s=a(67294),u=a(53124),f=a(98082),p=a(24308),d=a(93355),v=a(99134),m=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n0?K[0]/-2:void 0,G=null!=K[1]&&K[1]>0?K[1]/-2:void 0;if(I&&(B.marginLeft=I,B.marginRight=I),T){var L=(0,o.Z)(K,2);B.rowGap=L[1]}else G&&(B.marginTop=G,B.marginBottom=G);var z=(0,o.Z)(K,2),F=z[0],M=z[1],W=s.useMemo((function(){return{gutter:[F,M],wrap:O,supportFlexGap:T}}),[F,M,O,T]);return s.createElement(v.Z.Provider,{value:W},s.createElement("div",(0,r.Z)({},E,{className:R,style:(0,r.Z)((0,r.Z)({},B),Z),ref:t}),h))}))}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/5774-bbd349dd474c8ad5.js b/static/web/_next/static/chunks/5774-bbd349dd474c8ad5.js deleted file mode 100644 index ffcb04260..000000000 --- a/static/web/_next/static/chunks/5774-bbd349dd474c8ad5.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5774],{56924:function(e,t,n){"use strict";n.d(t,{Z:function(){return T}});var r,s,a,o,i,c=n(85893),u=n(71577),l=n(9764),d=n(67294),h=n(36531),m=n(66017),p=n(11622),f=n(13545),x=n.n(f),g=n(52196),v=n(93174),j=n.n(v);function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t12e4)&&r===(null===s||void 0===s?void 0:s.user.id)}function U(e){var t=e.user.scopes;return!(!t||0===t.length)&&t.includes("MODERATOR")}T.defaultProps={showInput:!0,height:"calc(100vh - 170px)"}},42827:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(85893),s=(n(67294),n(79010)),a=n.n(s);function o(e){var t=e.badge,n=e.userColor,s="var(--theme-user-colors-".concat(n,")"),o={color:s,borderColor:s};return(0,r.jsx)("span",{style:o,className:a().badge,children:t})}},52196:function(e,t,n){"use strict";n.d(t,{uU:function(){return r.Z},xu:function(){return he},AO:function(){return q}});var r=n(56924),s=n(14924),a=n(85893),o=n(67294),i=n(47049),c=n(86492),u=n.n(c),l=n(94184),d=n.n(l),h=n(94199),m=n(29158),p=n(4480),f=n(78583),x=n.n(f);function g(e){var t=new Date(e);if(Number.isNaN(t))return"";if(function(e){var t="string"===typeof e?new Date(e):e;return(new Date-t)/864e5}(e)>=1){var n=t.toLocaleDateString("en-US",{dateStyle:"medium"});return"at ".concat(n," at ").concat(t.toLocaleTimeString())}return"".concat(t.toLocaleTimeString())}var v=n(47568),j=n(34051),y=n.n(j),_=n(11475),C=n(90420),M=n(18429),w=n(64942),N=n(85402),b=n(12461),Z=n(66516),k=n(38504),S=n(26713),E=n(25968),T=n(6226),B=n(71577),U=n(11382),A=n(51438),D=function(){function e(){(0,A.Z)(this,e)}return e.removeMessage=function(e,t){return(0,v.Z)(y().mark((function n(){var r,s,a;return y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return(r=new URL("/api/chat/messagevisibility",window.location.toString())).searchParams.append("accessToken",t),s=r.toString(),a={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({idArray:[e]})},n.next=6,fetch(s,a);case 6:case"end":return n.stop()}}),n)})))()},e.banUser=function(e,t){return(0,v.Z)(y().mark((function n(){var r,s,a;return y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return(r=new URL("/api/chat/users/setenabled",window.location.toString())).searchParams.append("accessToken",t),s=r.toString(),a={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e})},n.next=6,fetch(s,a);case 6:case"end":return n.stop()}}),n)})))()},e}(),O=n(62638),I=n.n(O),P=function(){var e=(0,v.Z)(y().mark((function e(t,n){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{D.removeMessage(t,n)}catch(r){console.error(r)}case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),R=function(e){var t=e.label,n=e.value;return(0,a.jsxs)(E.Z,{justify:"space-around",align:"middle",children:[(0,a.jsx)(T.Z,{span:12,children:t}),(0,a.jsx)(T.Z,{span:12,children:n})]})},F=function(e){var t=e.id,n=e.body,r=e.accessToken;return(0,a.jsxs)(E.Z,{justify:"space-around",align:"middle",children:[(0,a.jsx)(T.Z,{span:18,children:n}),(0,a.jsx)(T.Z,{children:(0,a.jsx)(B.Z,{onClick:function(){return P(t,r)},children:"X"})})]})},L=function(e){var t=e.client,n=t.messageCount,r=t.userAgent,s=t.connectedAt,o=t.geo;return(0,a.jsxs)("div",{children:[(0,a.jsx)(R,{label:"Messages Sent",value:"".concat(n)}),(0,a.jsx)(R,{label:"Geo",value:o}),(0,a.jsx)(R,{label:"Connected At",value:s.toString()}),(0,a.jsx)(R,{label:"User Agent",value:r})]})},H=function(e){var t=e.color,n="var(--theme-color-users-".concat(t,")");return(0,a.jsxs)(E.Z,{justify:"space-around",align:"middle",children:[(0,a.jsx)(T.Z,{span:12,children:"Color"}),(0,a.jsx)(T.Z,{span:12,children:(0,a.jsx)("div",{className:I().colorBlock,style:{backgroundColor:n},children:t})})]})};function W(e){var t=e.userId,n=e.accessToken,r=(0,o.useState)(null),s=r[0],i=r[1],c=(0,o.useState)(!0),u=c[0],l=c[1],d=function(){var e=(0,v.Z)(y().mark((function e(){var n;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/moderation/chat/user/".concat(t));case 3:return e.next=5,e.sent.json();case 5:n=e.sent,i(n),l(!1),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.error(e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}();if((0,o.useEffect)((function(){d()}),[]),!s)return null;var h=s.user,m=s.connectedClients,p=s.messages,f=h.displayName,x=h.displayColor,g=h.createdAt,j=h.previousNames,_=h.scopes,C=h.isBot,M=h.authenticated;return(0,a.jsx)("div",{className:I().modalContainer,children:(0,a.jsxs)(U.Z,{spinning:u,children:[(0,a.jsx)("h1",{children:f}),(0,a.jsxs)(E.Z,{justify:"space-around",align:"middle",children:[_.map((function(e){return(0,a.jsx)(T.Z,{children:e})})),M&&(0,a.jsx)(T.Z,{children:"Authenticated"}),C&&(0,a.jsx)(T.Z,{children:"Bot"})]}),(0,a.jsx)(H,{color:x}),(0,a.jsx)(R,{label:"User Created",value:g.toString()}),(0,a.jsx)(R,{label:"Previous Names",value:j.join(",")}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Currently Connected"}),m.length>0&&(0,a.jsx)(E.Z,{gutter:[15,15],wrap:!0,children:m.map((function(e){return(0,a.jsx)(T.Z,{flex:"auto",children:(0,a.jsx)(L,{client:e})})}))}),(0,a.jsx)("hr",{}),p.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{children:"Recent Chat Messages"}),(0,a.jsx)("div",{className:I().chatHistory,children:p.map((function(e){return(0,a.jsx)(F,{id:e.id,body:e.body,accessToken:n},e.id)}))})]})]})})}var J=n(31833),V=n.n(J),Y=N.Z.confirm;function z(e){var t=e.messageID,n=e.userID,r=e.userDisplayName,s=e.accessToken,i=(0,o.useState)(!1),c=i[0],u=i[1],l=function(){var e=(0,v.Z)(y().mark((function e(){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,D.banUser(n,s);case 3:e.next=9;break;case 5:e.prev=5,e.t0=e.catch(0),console.error(e.t0),b.ZP.error(e.t0);case 9:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}(),d=function(){var e=(0,v.Z)(y().mark((function e(){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,D.removeMessage(t,s);case 3:e.next=9;break;case 5:e.prev=5,e.t0=e.catch(0),console.error(e.t0),b.ZP.error(e.t0);case 9:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}(),h=function(){var e=(0,v.Z)(y().mark((function e(){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Y({icon:(0,a.jsx)(_.Z,{}),content:"Are you sure you want to remove this message from ".concat(r,"?"),onOk:function(){d()}});case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),m=function(){var e=(0,v.Z)(y().mark((function e(){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Y({icon:(0,a.jsx)(_.Z,{}),content:"Are you sure you want to ban ".concat(r," from chat?"),onOk:function(){l()}});case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=(0,a.jsx)(Z.Z,{onClick:function(e){var t=e.key;"hide-message"===t?h():"ban-user"===t?m():"more-info"===t&&u(!0)},items:[{label:(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:V().icon,children:(0,a.jsx)(C.Z,{})}),"Hide Message"]}),key:"hide-message"},{label:(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:V().icon,children:(0,a.jsx)(M.Z,{})}),"Ban User"]}),key:"ban-user"},{label:(0,a.jsx)("div",{children:"More Info..."}),key:"more-info"}]});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(k.Z,{overlay:p,trigger:["click"],children:(0,a.jsx)("button",{type:"button",onClick:function(e){return e.preventDefault()},children:(0,a.jsx)(S.Z,{children:(0,a.jsx)(w.Z,{})})})}),(0,a.jsx)(N.Z,{visible:c,okText:"Ban User",okButtonProps:{danger:!0},onOk:l,onCancel:function(){u(!1)},children:(0,a.jsx)(W,{userId:n,accessToken:s})})]})}var G=n(42827),X=n(39370);function q(e){var t=e.message,n=e.highlightString,r=e.showModeratorMenu,c=e.sentBySelf,l=e.sameUserAsLast,f=e.isAuthorModerator,v=e.isAuthorAuthenticated,j=t.id,y=t.body,_=t.user,C=t.timestamp,M=_.id,w=_.displayName,N=_.displayColor,b=(0,p.sJ)(X.FI),Z="var(--theme-color-users-".concat(N,")"),k="Sent ".concat(g(C)),S=(0,o.useState)(y),E=S[0],T=S[1],B=[];return f&&B.push((0,a.jsx)(G.Z,{badge:"mod",userColor:N},"mod")),v&&B.push((0,a.jsx)(G.Z,{badge:(0,a.jsx)(m.Z,{title:"authenticated"}),userColor:N},"auth")),(0,o.useEffect)((function(){T(u().decode(y))}),[t]),(0,a.jsx)("div",{className:d()(x().messagePadding,l&&x().messagePaddingCollapsed),children:(0,a.jsxs)("div",{className:d()(x().root,(0,s.Z)({},x().ownMessage,c)),style:{borderColor:Z},children:[!l&&(0,a.jsx)(h.Z,{title:"user info goes here",placement:"topLeft",mouseEnterDelay:1,children:(0,a.jsxs)("div",{className:x().user,style:{color:Z},children:[(0,a.jsx)("span",{className:x().userName,children:w}),(0,a.jsx)("span",{children:B})]})}),(0,a.jsx)(h.Z,{title:k,mouseEnterDelay:1,children:(0,a.jsx)(i.y,{search:n,children:(0,a.jsx)("div",{className:x().message,dangerouslySetInnerHTML:{__html:E}})})}),r&&(0,a.jsx)("div",{className:x().modMenuWrapper,children:(0,a.jsx)(z,{messageID:j,accessToken:b,userID:M,userDisplayName:w})}),(0,a.jsx)("div",{className:x().customBorder,style:{color:Z}}),(0,a.jsx)("div",{className:x().background,style:{color:Z}})]})})}var K=n(26042),Q=n(69396),$=n(828),ee=n(93045),te=n(27496),ne=n(55241),re=n(77493),se=n(96391),ae=n(57741);function oe(e){var t=(0,o.useState)([]),n=t[0],r=t[1],s=e.onEmojiSelect,i=e.onCustomEmojiSelect,c=(0,o.useRef)(),u=function(){var e=(0,v.Z)(y().mark((function e(){var t,n;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/emoji");case 3:return t=e.sent,e.next=6,t.json();case 6:n=e.sent,r(n),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.error("cannot fetch custom emoji",e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}();return(0,o.useEffect)((function(){u()}),[]),(0,o.useEffect)((function(){var e=n.map((function(e){return{emoji:e.name,label:e.name,url:e.url}}));(0,ae.wU)({rootElement:c.current,custom:e,initialCategory:"custom",showPreview:!1,showRecents:!0}).addEventListener("emoji:select",(function(e){e.url?i(e):s(e)}))}),[n]),(0,a.jsx)("div",{ref:c})}var ie=n(11622),ce=n(25882),ue=n.n(ce),le=function(e){var t=e.attributes,n=e.element,r=e.children,s=(0,se.vt)(),o=(0,se.UE)();return(0,a.jsxs)("span",(0,Q.Z)((0,K.Z)({},t),{contentEditable:!1,children:[(0,a.jsx)("img",{alt:n.alt,src:n.src,title:n.name,style:{display:"inline",maxWidth:"50px",maxHeight:"20px",boxShadow:"".concat(s&&o?"0 0 0 3px #B4D5FF":"none")}}),r]}))},de=function(e){var t,n;if(re.xv.isText(e))return e.text;0===e.children.length?t=[{text:""}]:t=null===(n=e.children)||void 0===n?void 0:n.map((function(e){return de(e)})).join("");switch(e.type){case"paragraph":return"

      ".concat(t,"

      ");case"image":return'').concat(e.alt,'');default:return t}};function he(){var e=(0,o.useState)(!1),t=e[0],n=e[1],r=(0,p.sJ)(X.Gt),s=(0,o.useMemo)((function(){return(0,se.BU)(function(e){var t=e.isVoid;return e.isVoid=function(e){return"image"===e.type||t(e)},e.isInline=function(e){return"image"===e.type},e}((0,re.Jh)()))}),[]),i=function(){if(r){var e=de(s);r.send({type:ie.C.CHAT,body:e}),re.YR.delete(s,{at:{anchor:re.ML.start(s,[]),focus:re.ML.end(s,[])}})}else console.log("websocketService is not defined")},c=function(e,t){if(e){var n=s.selection,r=function(e,t,n){return{type:"image",alt:e,src:t,name:n,children:[{text:""}]}}(t,e,t);if(re.YR.insertNodes(s,r,{select:!0}),n){var a,o=(0,$.Z)(re.ML.parent(s,null===(a=n.focus)||void 0===a?void 0:a.path),2),i=o[0],c=o[1];s.isVoid(i)||re.NB.string(i).length?re.YR.insertNodes(s,r,{at:re.y$.next(c),select:!0}):(re.YR.insertNodes(s,r,{at:c,select:!0}),re.ML.normalize(s,{force:!0}))}else re.YR.insertNodes(s,r,{select:!0})}};return(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:ue().root,children:[(0,a.jsxs)(se.mH,{editor:s,value:[{type:"paragraph",children:[{text:""}]}],children:[(0,a.jsx)(se.CX,{onKeyDown:function(e){"Enter"===e.key&&(e.preventDefault(),i())},renderElement:function(e){return"image"===e.element.type?(0,a.jsx)(le,(0,K.Z)({},e)):(0,a.jsx)("p",(0,K.Z)({},e))},placeholder:"Chat message goes here...",style:{width:"100%"},autoFocus:!0}),(0,a.jsx)(ne.Z,{content:(0,a.jsx)(oe,{onEmojiSelect:function(e){if(se.F3.focus(s),e.url){var t=e.url;c(t,t)}else{var n=e.emoji;re.YR.insertText(s,n)}},onCustomEmojiSelect:function(e){se.F3.focus(s);var t=e.url;c(t,t)}}),trigger:"click",onVisibleChange:function(e){return n(e)},visible:t})]}),(0,a.jsx)("button",{type:"button",className:ue().emojiButton,title:"Emoji picker button",onClick:function(){return n(!t)},children:(0,a.jsx)(ee.Z,{})}),(0,a.jsx)(B.Z,{className:ue().sendButton,size:"large",type:"ghost",icon:(0,a.jsx)(te.Z,{}),onClick:i})]})})}},13545:function(e){e.exports={chatHeader:"ChatContainer_chatHeader__EJsYI",toBottomWrap:"ChatContainer_toBottomWrap__3V5wa",nameChangeView:"ChatContainer_nameChangeView__ziyXN",nameChangeText:"ChatContainer_nameChangeText__yXG__",plain:"ChatContainer_plain__IPS19"}},83066:function(e){e.exports={join:"ChatJoinMessage_join__fP0IQ"}},31833:function(e){e.exports={icon:"ChatModerationActionMenu_icon__9j6DF"}},62638:function(e){e.exports={modalContainer:"ChatModerationDetailsModal_modalContainer__czndV",chatHistory:"ChatModerationDetailsModal_chatHistory__PunRk",colorBlock:"ChatModerationDetailsModal_colorBlock___rAlw"}},93174:function(e){e.exports={chatModerationNotification:"ChatModeratorNotification_chatModerationNotification__kgFWe",icon:"ChatModeratorNotification_icon__7FdGg"}},31681:function(e){e.exports={chatSystemMessage:"ChatSystemMessage_chatSystemMessage__c6XEN",user:"ChatSystemMessage_user__6yHSJ",message:"ChatSystemMessage_message__ySq5g"}},25882:function(e){e.exports={root:"ChatTextField_root__4oUkJ",inputWrapper:"ChatTextField_inputWrapper__qBEWv",submitButtonWrapper:"ChatTextField_submitButtonWrapper__YBPMe",sendButton:"ChatTextField_sendButton__MOmD4",emojiButton:"ChatTextField_emojiButton__ON_Cu"}},79010:function(e){e.exports={badge:"ChatUserBadge_badge__1EdUp"}},78583:function(e){e.exports={root:"ChatUserMessage_root__79heB",user:"ChatUserMessage_user__xUEp9",message:"ChatUserMessage_message__MJ9LD",customBorder:"ChatUserMessage_customBorder__YudkU",ownMessage:"ChatUserMessage_ownMessage__d28A3",background:"ChatUserMessage_background__Tfghp",modMenuWrapper:"ChatUserMessage_modMenuWrapper__7fblv",messagePadding:"ChatUserMessage_messagePadding__Xp1F6",messagePaddingCollapsed:"ChatUserMessage_messagePaddingCollapsed__qxN0E"}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/5875-e7ec71226df73c20.js b/static/web/_next/static/chunks/5875-e7ec71226df73c20.js deleted file mode 100644 index f7a468ae6..000000000 --- a/static/web/_next/static/chunks/5875-e7ec71226df73c20.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5875],{48689:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(1413),a=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},l=n(42135),c=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="DeleteOutlined";var i=a.forwardRef(c)},6226:function(e,t,n){n.d(t,{Z:function(){return v}});var r=n(4942),a=n(87462),o=n(71002),l=n(94184),c=n.n(l),i=n(67294),u=n(53124),s=n(99134),f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a0){var I=h[0]/2;F.paddingLeft=I,F.paddingRight=I}if(h&&h[1]>0&&!g){var L=h[1]/2;F.paddingTop=L,F.paddingBottom=L}return M&&(F.flex=function(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(M),!1!==b||F.minWidth||(F.minWidth=0)),i.createElement("div",(0,a.Z)({},P,{style:(0,a.Z)((0,a.Z)({},F),N),className:j,ref:t}),O)}))},99134:function(e,t,n){var r=(0,n(67294).createContext)({});t.Z=r},65360:function(e,t,n){n.d(t,{Z:function(){return k}});var r=n(87462),a=n(97685),o=n(21640),l=n(94184),c=n.n(l),i=n(21770),u=n(15105),s=n(67294),f=n(53124),d=n(55241),v=n(96159),m=n(71577),p=n(6134),h=n(86743),b=n(23715),g=n(6213),y=n(81643);function Z(e){var t=e.prefixCls,n=e.okButtonProps,a=e.cancelButtonProps,o=e.title,l=e.cancelText,c=e.okText,i=e.okType,u=e.icon,d=e.showCancel,v=void 0===d||d,Z=e.close,x=e.onConfirm,C=e.onCancel,E=s.useContext(f.E_).getPrefixCls;return s.createElement(b.Z,{componentName:"Popconfirm",defaultLocale:g.Z.Popconfirm},(function(e){return s.createElement("div",{className:"".concat(t,"-inner-content")},s.createElement("div",{className:"".concat(t,"-message")},u,s.createElement("div",{className:"".concat(t,"-message-title")},(0,y.Z)(o))),s.createElement("div",{className:"".concat(t,"-buttons")},v&&s.createElement(m.Z,(0,r.Z)({onClick:C,size:"small"},a),l||e.cancelText),s.createElement(h.Z,{buttonProps:(0,r.Z)((0,r.Z)({size:"small"},(0,p.n)(i)),n),actionFn:x,close:Z,prefixCls:E("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},c||e.okText)))}))}var x=void 0,C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a0?I[0]/-2:void 0,H=null!=I[1]&&I[1]>0?I[1]/-2:void 0;if(D&&(T.marginLeft=D,T.marginRight=D),R){var A=(0,l.Z)(I,2);T.rowGap=A[1]}else H&&(T.marginTop=H,T.marginBottom=H);var _=(0,l.Z)(I,2),B=_[0],V=_[1],z=u.useMemo((function(){return{gutter:[B,V],wrap:C,supportFlexGap:R}}),[B,V,C,R]);return u.createElement(m.Z.Provider,{value:z},u.createElement("div",(0,r.Z)({},E,{className:L,style:(0,r.Z)((0,r.Z)({},T),g),ref:t}),y))}))},22918:function(e,t,n){n.d(t,{Z:function(){return B}});var r=n(71002),a=n(4942),o=n(87462),l=n(97685),c=n(94184),i=n.n(c),u=n(74902),s=n(67294),f=n(96774),d=n.n(f),v=n(21770),m=n(91),p=n(1413),h=n(15105),b=s.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0});function g(e,t,n){return(e-t)/(n-t)}function y(e,t,n,r){var a=g(t,n,r),o={};switch(e){case"rtl":o.right="".concat(100*a,"%"),o.transform="translateX(50%)";break;case"btt":o.bottom="".concat(100*a,"%"),o.transform="translateY(50%)";break;case"ttb":o.top="".concat(100*a,"%"),o.transform="translateY(-50%)";break;default:o.left="".concat(100*a,"%"),o.transform="translateX(-50%)"}return o}function Z(e,t){return Array.isArray(e)?e[t]:e}var x=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"];var C=s.forwardRef((function(e,t){var n,r,l=e.prefixCls,c=e.value,u=e.valueIndex,f=e.onStartMove,d=e.style,v=e.render,g=e.dragging,C=e.onOffsetChange,E=(0,m.Z)(e,x),k=s.useContext(b),w=k.min,O=k.max,M=k.direction,N=k.disabled,P=k.range,S=k.tabIndex,R=k.ariaLabelForHandle,j=k.ariaLabelledByForHandle,F=k.ariaValueTextFormatterForHandle,I="".concat(l,"-handle"),L=function(e){N||f(e,u)},T=y(M,c,w,O),D=s.createElement("div",(0,o.Z)({ref:t,className:i()(I,(n={},(0,a.Z)(n,"".concat(I,"-").concat(u+1),P),(0,a.Z)(n,"".concat(I,"-dragging"),g),n)),style:(0,p.Z)((0,p.Z)({},T),d),onMouseDown:L,onTouchStart:L,onKeyDown:function(e){if(!N){var t=null;switch(e.which||e.keyCode){case h.Z.LEFT:t="ltr"===M||"btt"===M?-1:1;break;case h.Z.RIGHT:t="ltr"===M||"btt"===M?1:-1;break;case h.Z.UP:t="ttb"!==M?1:-1;break;case h.Z.DOWN:t="ttb"!==M?-1:1;break;case h.Z.HOME:t="min";break;case h.Z.END:t="max";break;case h.Z.PAGE_UP:t=2;break;case h.Z.PAGE_DOWN:t=-2}null!==t&&(e.preventDefault(),C(t,u))}},tabIndex:N?null:Z(S,u),role:"slider","aria-valuemin":w,"aria-valuemax":O,"aria-valuenow":c,"aria-disabled":N,"aria-label":Z(R,u),"aria-labelledby":Z(j,u),"aria-valuetext":null===(r=Z(F,u))||void 0===r?void 0:r(c)},E));return v&&(D=v(D,{index:u,prefixCls:l,value:c,dragging:g})),D})),E=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"];var k=s.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,a=e.onStartMove,l=e.onOffsetChange,c=e.values,i=e.handleRender,u=e.draggingIndex,f=(0,m.Z)(e,E),d=s.useRef({});return s.useImperativeHandle(t,(function(){return{focus:function(e){var t;null===(t=d.current[e])||void 0===t||t.focus()}}})),s.createElement(s.Fragment,null,c.map((function(e,t){return s.createElement(C,(0,o.Z)({ref:function(e){e?d.current[t]=e:delete d.current[t]},dragging:u===t,prefixCls:n,style:Z(r,t),key:t,value:e,valueIndex:t,onStartMove:a,onOffsetChange:l,render:i},f))})))}));function w(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function O(e){var t=e.prefixCls,n=e.style,r=e.start,a=e.end,o=e.index,l=e.onStartMove,c=s.useContext(b),u=c.direction,f=c.min,d=c.max,v=c.disabled,m=c.range,h="".concat(t,"-track"),y=g(r,f,d),Z=g(a,f,d),x=function(e){!v&&l&&l(e,-1)},C={};switch(u){case"rtl":C.right="".concat(100*y,"%"),C.width="".concat(100*Z-100*y,"%");break;case"btt":C.bottom="".concat(100*y,"%"),C.height="".concat(100*Z-100*y,"%");break;case"ttb":C.top="".concat(100*y,"%"),C.height="".concat(100*Z-100*y,"%");break;default:C.left="".concat(100*y,"%"),C.width="".concat(100*Z-100*y,"%")}return s.createElement("div",{className:i()(h,m&&"".concat(h,"-").concat(o+1)),style:(0,p.Z)((0,p.Z)({},C),n),onMouseDown:x,onTouchStart:x})}function M(e){var t=e.prefixCls,n=e.style,r=e.values,a=e.startPoint,o=e.onStartMove,l=s.useContext(b),c=l.included,i=l.range,u=l.min,f=s.useMemo((function(){if(!i){if(0===r.length)return[];var e=null!==a&&void 0!==a?a:u,t=r[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}for(var n=[],o=0;o=0&&V}),[V,ve]),pe=s.useMemo((function(){return Object.keys(ee||{}).map((function(e){var t=ee[e],n={value:Number(e)};return t&&"object"===(0,r.Z)(t)&&!s.isValidElement(t)&&("label"in t||"style"in t)?(n.style=t.style,n.label=t.label):n.label=t,n})).filter((function(e){var t=e.label;return t||"number"===typeof t})).sort((function(e,t){return e.value-t.value}))}),[ee]),he=function(e,t,n,r,a,o){var l=s.useCallback((function(n){var r=isFinite(n)?n:e;return r=Math.min(t,n),Math.max(e,r)}),[e,t]),c=s.useCallback((function(r){if(null!==n){var a=e+Math.round((l(r)-e)/n)*n,o=function(e){return(String(e).split(".")[1]||"").length},c=Math.max(o(n),o(t),o(e)),i=Number(a.toFixed(c));return e<=i&&i<=t?i:null}return null}),[n,e,t,l]),i=s.useCallback((function(a){var o=l(a),i=r.map((function(e){return e.value}));null!==n&&i.push(c(a)),i.push(e,t);var u=i[0],s=t-e;return i.forEach((function(e){var t=Math.abs(o-e);t<=s&&(u=e,s=t)})),u}),[e,t,r,n,l,c]),f=function a(o,l,i){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";if("number"===typeof l){var f,d=o[i],v=d+l,m=[];r.forEach((function(e){m.push(e.value)})),m.push(e,t),m.push(c(d));var p=l>0?1:-1;"unit"===s?m.push(c(d+p*n)):m.push(c(v)),m=m.filter((function(e){return null!==e})).filter((function(e){return l<0?e<=d:e>=d})),"unit"===s&&(m=m.filter((function(e){return e!==d})));var h="unit"===s?d:v;f=m[0];var b=Math.abs(f-h);if(m.forEach((function(e){var t=Math.abs(e-h);t1){var g=(0,u.Z)(o);return g[i]=f,a(g,l-p,i,s)}return f}return"min"===l?e:"max"===l?t:void 0},d=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",a=e[n],o=f(e,t,n,r);return{value:o,changed:o!==a}},v=function(e){return null===o&&0===e||"number"===typeof o&&e3&&void 0!==arguments[3]?arguments[3]:"unit",l=e.map(i),c=l[n],u=f(l,t,n,r);if(l[n]=u,!1===a){var s=o||0;n>0&&l[n-1]!==c&&(l[n]=Math.max(l[n],l[n-1]+s)),n0;b-=1)for(var g=!0;v(l[b]-l[b-1])&&g;){var y=d(l,-1,b-1);l[b-1]=y.value,g=y.changed}for(var Z=l.length-1;Z>0;Z-=1)for(var x=!0;v(l[Z]-l[Z-1])&&x;){var C=d(l,-1,Z-1);l[Z-1]=C.value,x=C.changed}for(var E=0;E=0?L+1:2;for(n=n.slice(0,r);n.length=0&&ie.current.focus(e)}je(null)}),[Re]);var Fe=s.useMemo((function(){return(!z||null!==ve)&&z}),[z,ve]),Ie=function(e,t,n,r,a,o,c,i,f){var d=s.useState(null),v=(0,l.Z)(d,2),m=v[0],p=v[1],h=s.useState(-1),b=(0,l.Z)(h,2),g=b[0],y=b[1],Z=s.useState(n),x=(0,l.Z)(Z,2),C=x[0],E=x[1],k=s.useState(n),O=(0,l.Z)(k,2),M=O[0],N=O[1],P=s.useRef(null),S=s.useRef(null);s.useEffect((function(){-1===g&&E(n)}),[n,g]),s.useEffect((function(){return function(){document.removeEventListener("mousemove",P.current),document.removeEventListener("mouseup",S.current),document.removeEventListener("touchmove",P.current),document.removeEventListener("touchend",S.current)}}),[]);var R=function(e,t){C.some((function(t,n){return t!==e[n]}))&&(void 0!==t&&p(t),E(e),c(e))},j=function(e,t){if(-1===e){var n=M[0],l=M[M.length-1],c=r-n,i=a-l,s=t*(a-r);s=Math.max(s,c),s=Math.min(s,i);var d=o(n+s);s=d-n;var v=M.map((function(e){return e+s}));R(v)}else{var m=(a-r)*t,p=(0,u.Z)(C);p[e]=M[e];var h=f(p,m,e,"dist");R(h.values,h.value)}},F=s.useRef(j);F.current=j;var I=s.useMemo((function(){var e=(0,u.Z)(n).sort((function(e,t){return e-t})),t=(0,u.Z)(C).sort((function(e,t){return e-t}));return e.every((function(e,n){return e===t[n]}))?C:n}),[n,C]);return[g,m,I,function(r,a){r.stopPropagation();var o=n[a];y(a),p(o),N(n);var l=w(r),c=l.pageX,u=l.pageY,s=function(n){n.preventDefault();var r,o=w(n),l=o.pageX,i=o.pageY,s=l-c,f=i-u,d=e.current.getBoundingClientRect(),v=d.width,m=d.height;switch(t){case"btt":r=-f/m;break;case"ttb":r=f/m;break;case"rtl":r=-s/v;break;default:r=s/v}F.current(a,r)},f=function e(t){t.preventDefault(),document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",s),document.removeEventListener("touchend",e),document.removeEventListener("touchmove",s),P.current=null,S.current=null,y(-1),i()};document.addEventListener("mouseup",f),document.addEventListener("mousemove",s),document.addEventListener("touchend",f),document.addEventListener("touchmove",s),P.current=s,S.current=f}]}(ue,se,ke,fe,de,ge,Me,(function(){null===H||void 0===H||H(Oe(we.current))}),ye),Le=(0,l.Z)(Ie,4),Te=Le[0],De=Le[1],He=Le[2],Ae=Le[3],_e=function(e,t){Ae(e,t),null===D||void 0===D||D(Oe(we.current))},Be=-1!==Te;s.useEffect((function(){if(!Be){var e=ke.lastIndexOf(De);ie.current.focus(e)}}),[Be]);var Ve=s.useMemo((function(){return(0,u.Z)(He).sort((function(e,t){return e-t}))}),[He]),ze=s.useMemo((function(){return I?[Ve[0],Ve[Ve.length-1]]:[fe,Ve[0]]}),[Ve,I,fe]),Ge=(0,l.Z)(ze,2),Xe=Ge[0],Ye=Ge[1];s.useImperativeHandle(t,(function(){return{focus:function(){ie.current.focus(0)},blur:function(){var e=document.activeElement;ue.current.contains(e)&&(null===e||void 0===e||e.blur())}}})),s.useEffect((function(){g&&ie.current.focus(0)}),[]);var Ke=s.useMemo((function(){return{min:fe,max:de,direction:se,disabled:h,step:ve,included:K,includedStart:Xe,includedEnd:Ye,range:I,tabIndex:ae,ariaLabelForHandle:oe,ariaLabelledByForHandle:le,ariaValueTextFormatterForHandle:ce}}),[fe,de,se,h,ve,K,Xe,Ye,I,ae,oe,le,ce]);return s.createElement(b.Provider,{value:Ke},s.createElement("div",{ref:ue,className:i()(c,f,(n={},(0,a.Z)(n,"".concat(c,"-disabled"),h),(0,a.Z)(n,"".concat(c,"-vertical"),X),(0,a.Z)(n,"".concat(c,"-horizontal"),!X),(0,a.Z)(n,"".concat(c,"-with-marks"),pe.length),n)),style:m,onMouseDown:function(e){e.preventDefault();var t,n=ue.current.getBoundingClientRect(),r=n.width,a=n.height,o=n.left,l=n.top,c=n.bottom,i=n.right,u=e.clientX,s=e.clientY;switch(se){case"btt":t=(c-s)/a;break;case"ttb":t=(s-l)/a;break;case"rtl":t=(i-u)/r;break;default:t=(u-o)/r}Ne(ge(fe+t*(de-fe)))}},s.createElement("div",{className:"".concat(c,"-rail"),style:Q}),s.createElement(M,{prefixCls:c,style:U,values:Ve,startPoint:W,onStartMove:Fe?_e:null}),s.createElement(R,{prefixCls:c,marks:pe,dots:te,style:$,activeStyle:J}),s.createElement(k,{ref:ie,prefixCls:c,style:q,values:He,draggingIndex:Te,onStartMove:_e,onOffsetChange:function(e,t){if(!h){var n=ye(ke,e,t);null===D||void 0===D||D(Oe(ke)),Me(n.values),null===H||void 0===H||H(Oe(n.values)),je(n.value)}},onFocus:y,onBlur:Z,handleRender:ne}),s.createElement(P,{prefixCls:c,marks:pe,onClick:Ne})))}));var F=j,I=n(53124),L=n(75164),T=n(42550),D=n(94199),H=s.forwardRef((function(e,t){var n=e.visible,r=(0,s.useRef)(null),a=(0,s.useRef)(null);function l(){L.Z.cancel(a.current),a.current=null}return s.useEffect((function(){return n?a.current=(0,L.Z)((function(){var e;null===(e=r.current)||void 0===e||e.forcePopupAlign(),a.current=null})):l(),l}),[n,e.title]),s.createElement(D.Z,(0,o.Z)({ref:(0,T.sQ)(r,t)},e))})),A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a0?1:u}},82161:function(t,n,r){r.d(n,{Z:function(){return c}});var e=r(19013),a=r(13882);function o(t,n){(0,a.Z)(2,arguments);var r=(0,e.Z)(t),o=(0,e.Z)(n),u=r.getFullYear()-o.getFullYear(),i=r.getMonth()-o.getMonth();return 12*u+i}var u=r(49474);function i(t){(0,a.Z)(1,arguments);var n=(0,e.Z)(t);return n.setHours(23,59,59,999),n}function s(t){(0,a.Z)(1,arguments);var n=(0,e.Z)(t),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function f(t){(0,a.Z)(1,arguments);var n=(0,e.Z)(t);return i(n).getTime()===s(n).getTime()}function c(t,n){(0,a.Z)(2,arguments);var r,i=(0,e.Z)(t),s=(0,e.Z)(n),c=(0,u.Z)(i,s),l=Math.abs(o(i,s));if(l<1)r=0;else{1===i.getMonth()&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-c*l);var Z=(0,u.Z)(i,s)===-c;f((0,e.Z)(t))&&1===l&&1===(0,u.Z)(t,s)&&(Z=!1),r=c*(l-Number(Z))}return 0===r?0:r}},45938:function(t,n,r){r.d(n,{Z:function(){return d}});var e=r(84314),a=r(49474),o=r(82161),u=r(11699),i=r(86559),s=r(19013);function f(t,n){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}function c(t){return f({},t)}var l=r(24262),Z=r(13882),v=1440,m=43200;function h(t,n,r){var h,d;(0,Z.Z)(2,arguments);var D=(0,e.j)(),M=null!==(h=null!==(d=null===r||void 0===r?void 0:r.locale)&&void 0!==d?d:D.locale)&&void 0!==h?h:i.Z;if(!M.formatDistance)throw new RangeError("locale must contain formatDistance property");var g=(0,a.Z)(t,n);if(isNaN(g))throw new RangeError("Invalid time value");var p,X,b=f(c(r),{addSuffix:Boolean(null===r||void 0===r?void 0:r.addSuffix),comparison:g});g>0?(p=(0,s.Z)(n),X=(0,s.Z)(t)):(p=(0,s.Z)(t),X=(0,s.Z)(n));var w,T=(0,u.Z)(X,p),x=((0,l.Z)(X)-(0,l.Z)(p))/1e3,Y=Math.round((T-x)/60);if(Y<2)return null!==r&&void 0!==r&&r.includeSeconds?T<5?M.formatDistance("lessThanXSeconds",5,b):T<10?M.formatDistance("lessThanXSeconds",10,b):T<20?M.formatDistance("lessThanXSeconds",20,b):T<40?M.formatDistance("halfAMinute",0,b):T<60?M.formatDistance("lessThanXMinutes",1,b):M.formatDistance("xMinutes",1,b):0===Y?M.formatDistance("lessThanXMinutes",1,b):M.formatDistance("xMinutes",Y,b);if(Y<45)return M.formatDistance("xMinutes",Y,b);if(Y<90)return M.formatDistance("aboutXHours",1,b);if(Y0){var z=v[0]/2;S.paddingLeft=z,S.paddingRight=z}if(v&&v[1]>0&&!Z){var D=v[1]/2;S.paddingTop=D,S.paddingBottom=D}return k&&(S.flex=function(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(k),!1!==x||S.minWidth||(S.minWidth=0)),i.createElement("div",(0,a.Z)({},A,{style:(0,a.Z)((0,a.Z)({},S),T),className:M,ref:t}),N)}))},27049:function(e,t,n){var r=n(87462),a=n(4942),c=n(94184),o=n.n(c),s=n(67294),i=n(53124),l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a0?"-".concat(h):h,C=!!Z,O="left"===h&&null!=v,N="right"===h&&null!=v,k=o()(j,"".concat(j,"-").concat(p),(t={},(0,a.Z)(t,"".concat(j,"-with-text"),C),(0,a.Z)(t,"".concat(j,"-with-text").concat(w),C),(0,a.Z)(t,"".concat(j,"-dashed"),!!b),(0,a.Z)(t,"".concat(j,"-plain"),!!y),(0,a.Z)(t,"".concat(j,"-rtl"),"rtl"===u),(0,a.Z)(t,"".concat(j,"-no-default-orientation-margin-left"),O),(0,a.Z)(t,"".concat(j,"-no-default-orientation-margin-right"),N),t),x),T=(0,r.Z)((0,r.Z)({},O&&{marginLeft:v}),N&&{marginRight:v});return s.createElement("div",(0,r.Z)({className:k},g,{role:"separator"}),Z&&s.createElement("span",{className:"".concat(j,"-inner-text"),style:T},Z))}},99134:function(e,t,n){var r=(0,n(67294).createContext)({});t.Z=r},25968:function(e,t,n){n.d(t,{Z:function(){return v}});var r=n(87462),a=n(4942),c=n(71002),o=n(97685),s=n(94184),i=n.n(s),l=n(67294),u=n(53124),d=n(98082),f=n(24308),p=n(93355),m=n(99134),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a0?z[0]/-2:void 0,I=null!=z[1]&&z[1]>0?z[1]/-2:void 0;if(R&&(L.marginLeft=R,L.marginRight=R),E){var B=(0,o.Z)(z,2);L.rowGap=B[1]}else I&&(L.marginTop=I,L.marginBottom=I);var F=(0,o.Z)(z,2),_=F[0],V=F[1],U=l.useMemo((function(){return{gutter:[_,V],wrap:j,supportFlexGap:E}}),[_,V,j,E]);return l.createElement(m.Z.Provider,{value:U},l.createElement("div",(0,r.Z)({},w,{className:D,style:(0,r.Z)((0,r.Z)({},L),Z),ref:t}),b))}))},30883:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(47568),a=n(34051),c=n.n(a),o=n(85893),s=n(85402),i=n(71577),l=n(21640),u=n(82911),d=n(84674),f=n(58827);function p(e){var t=e.user,n=e.isEnabled,a=e.label,p=e.onClick;function m(){return m=(0,r.Z)(c().mark((function e(t){var r,a,o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.id,a={userId:r,enabled:!n},e.prev=2,e.next=5,(0,f.rQ)(f.NM,{data:a,method:"POST",auth:!0});case 5:return o=e.sent,e.abrupt("return",o.success);case 9:e.prev=9,e.t0=e.catch(2),console.error(e.t0);case 12:return e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e,null,[[2,9]])}))),m.apply(this,arguments)}var h=n?"ban":"unban",v=n?(0,o.jsx)(l.Z,{style:{color:"var(--ant-error)"}}):(0,o.jsx)(u.Z,{style:{color:"var(--ant-warning)"}}),x=(0,o.jsxs)(o.Fragment,{children:["Are you sure you want to ",h," ",(0,o.jsx)("strong",{children:t.displayName}),n?" and remove their messages?":"?"]});return(0,o.jsx)(i.Z,{onClick:function(){s.Z.confirm({title:"Confirm ".concat(h),content:x,onCancel:function(){},onOk:function(){return new Promise((function(e,n){var r=function(e){return m.apply(this,arguments)}(t);r?setTimeout((function(){e(r),null===p||void 0===p||p()}),3e3):n()}))},okType:"danger",okText:n?"Absolutely":null,icon:v})},size:"small",icon:n?(0,o.jsx)(d.Z,{twoToneColor:"#ff4d4f"}):null,className:"block-user-button",children:a||h})}p.defaultProps={label:"",onClick:null}},31386:function(e,t,n){n.d(t,{Z:function(){return S}});var r=n(29815),a=n(85893),c=n(67294),o=n(94199),s=n(85402),i=n(84485),l=n(25968),u=n(6226),d=n(27049),f=n(26713),p=n(45938),m=n(58091),h=n(96486),v=n(30883),x=n(47568),Z=n(34051),b=n.n(Z),y=n(71577),g=n(21640),j=n(82911),w=n(84674),C=n(1413),O={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z",fill:e}},{tag:"path",attrs:{d:"M214 226.7v427.6l298 232.2 298-232.2V226.7L512 125.1 214 226.7zM632.8 328H688c6.5 0 10.3 7.4 6.5 12.7L481.9 633.4a16.1 16.1 0 01-26 0l-126.4-174c-3.8-5.3 0-12.7 6.5-12.7h55.2c5.2 0 10 2.5 13 6.6l64.7 89.1 150.9-207.8c3-4.1 7.9-6.6 13-6.6z",fill:t}},{tag:"path",attrs:{d:"M404.2 453.3c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z",fill:e}}]}},name:"safety-certificate",theme:"twotone"},N=n(42135),k=function(e,t){return c.createElement(N.Z,(0,C.Z)((0,C.Z)({},e),{},{ref:t,icon:O}))};k.displayName="SafetyCertificateTwoTone";var T=c.forwardRef(k),A=n(58827);function P(e){var t,n=e.user,r=e.onClick;function c(){return c=(0,x.Z)(b().mark((function e(t,n){var r,a,c;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.id,a={userId:r,isModerator:n},e.prev=2,e.next=5,(0,A.rQ)(A.jr,{data:a,method:"POST",auth:!0});case 5:return c=e.sent,e.abrupt("return",c.success);case 9:e.prev=9,e.t0=e.catch(2),console.error(e.t0);case 12:return e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e,null,[[2,9]])}))),c.apply(this,arguments)}var o=null===(t=n.scopes)||void 0===t?void 0:t.includes("MODERATOR"),i=o?"remove moderator":"add moderator",l=o?(0,a.jsx)(g.Z,{style:{color:"var(--ant-error)"}}):(0,a.jsx)(j.Z,{style:{color:"var(--ant-warning)"}}),u=(0,a.jsxs)(a.Fragment,{children:["Are you sure you want to ",i," ",(0,a.jsx)("strong",{children:n.displayName}),"?"]});return(0,a.jsx)(y.Z,{onClick:function(){s.Z.confirm({title:"Confirm ".concat(i),content:u,onCancel:function(){},onOk:function(){return new Promise((function(e,t){var a=function(e,t){return c.apply(this,arguments)}(n,!o);a?setTimeout((function(){e(a),null===r||void 0===r||r()}),3e3):t()}))},okType:"danger",okText:o?"Yup!":null,icon:l})},size:"small",icon:o?(0,a.jsx)(w.Z,{twoToneColor:"#ff4d4f"}):(0,a.jsx)(T,{twoToneColor:"#22bb44"}),className:"block-user-button",children:i})}P.defaultProps={onClick:null};var E=n(20643),M=n(2766);function S(e){var t=e.user,n=e.connectionInfo,x=e.children,Z=(0,c.useState)(!1),b=Z[0],y=Z[1],g=function(){y(!1)},j=t.displayName,w=t.createdAt,C=t.previousNames,O=t.nameChangedAt,N=t.disabledAt,k=n||{},T=k.connectedAt,A=k.messageCount,S=k.userAgent,z=null,D=C&&(0,r.Z)(C);C&&C.length>1&&O&&(z=new Date(O),D.reverse());var L=new Date(w),R=(0,m.Z)(L,"PP pp"),I=z?(0,p.Z)(z):null;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.Z,{title:(0,a.jsxs)(a.Fragment,{children:["Created at: ",R,".",(0,a.jsx)("br",{})," Click for more info."]}),placement:"bottomLeft",children:(0,a.jsx)("button",{type:"button","aria-label":"Display more details about this user",className:"user-item-container",onClick:function(){y(!0)},children:x})}),(0,a.jsx)(s.Z,{destroyOnClose:!0,width:600,cancelText:"Close",okButtonProps:{style:{display:"none"}},title:"User details: ".concat(j),visible:b,onOk:g,onCancel:g,children:(0,a.jsxs)("div",{className:"user-details",children:[(0,a.jsx)(i.Z.Title,{level:4,children:j}),(0,a.jsxs)("p",{className:"created-at",children:["User created at ",R,"."]}),(0,a.jsxs)(l.Z,{gutter:16,children:[n&&(0,a.jsxs)(u.Z,{md:z?12:24,children:[(0,a.jsx)(i.Z.Title,{level:5,children:"This user is currently connected to Chat."}),(0,a.jsxs)("ul",{className:"connection-info",children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Active for:"})," ",(0,p.Z)(new Date(T))]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Messages sent:"})," ",A]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"User Agent:"}),(0,a.jsx)("br",{}),(0,M.AB)(S)]})]})]}),z&&(0,a.jsxs)(u.Z,{md:n?12:24,children:[(0,a.jsx)(i.Z.Title,{level:5,children:"This user is also seen as:"}),(0,a.jsx)("ul",{className:"previous-names-list",children:(0,h.uniq)(D).map((function(e,t){return(0,a.jsxs)("li",{className:0===t?"latest":"",children:[(0,a.jsx)("span",{className:"user-name-item",children:e}),0===t?" (Changed ".concat(I," ago)"):""]})}))})]})]}),(0,a.jsx)(d.Z,{}),(0,a.jsxs)(f.Z,{direction:"horizontal",children:[N?(0,a.jsxs)(a.Fragment,{children:["This user was banned on ",(0,a.jsx)("code",{children:(0,E.u)(N)}),".",(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)(v.Z,{label:"Unban this user",user:t,isEnabled:!1,onClick:g})]}):(0,a.jsx)(v.Z,{label:"Ban this user",user:t,isEnabled:!0,onClick:g}),(0,a.jsx)(P,{user:t,onClick:g})]})]})})]})}S.defaultProps={connectionInfo:null}},20643:function(e,t,n){n.d(t,{Z:function(){return l},u:function(){return i}});var r=n(85893),a=n(10355),c=n(58091),o=n(31386),s=n(30883);function i(e){return(0,c.Z)(new Date(e),"MMM d H:mma")}function l(e){var t=e.data,n=[{title:"Last Known Display Name",dataIndex:"displayName",key:"displayName",render:function(e,t){return(0,r.jsx)(o.Z,{user:t,children:(0,r.jsx)("span",{className:"display-name",children:e})})}},{title:"Created",dataIndex:"createdAt",key:"createdAt",render:function(e){return i(e)},sorter:function(e,t){return new Date(e.createdAt).getTime()-new Date(t.createdAt).getTime()},sortDirections:["descend","ascend"]},{title:"Disabled at",dataIndex:"disabledAt",key:"disabledAt",defaultSortOrder:"descend",render:function(e){return e?i(e):null},sorter:function(e,t){return new Date(e.disabledAt).getTime()-new Date(t.disabledAt).getTime()},sortDirections:["descend","ascend"]},{title:"",key:"block",className:"actions-col",render:function(e,t){return(0,r.jsx)(s.Z,{user:t,isEnabled:!t.disabledAt})}}];return(0,r.jsx)(a.Z,{pagination:{hideOnSinglePage:!0},className:"table-container",columns:n,dataSource:t,size:"small",rowKey:"id"})}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/7610.95543cd3023fceae.js b/static/web/_next/static/chunks/7610.95543cd3023fceae.js deleted file mode 100644 index eacc5cac4..000000000 --- a/static/web/_next/static/chunks/7610.95543cd3023fceae.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7610],{26729:function(e){var t=Object.prototype.hasOwnProperty,n="~";function i(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,i,o,a){if("function"!==typeof i)throw new TypeError("The listener must be a function");var l=new r(i,o||e,a),s=n?n+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],l]:e._events[s].push(l):(e._events[s]=l,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new i:delete e._events[t]}function l(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(n=!1)),l.prototype.eventNames=function(){var e,i,r=[];if(0===this._eventsCount)return r;for(i in e=this._events)t.call(e,i)&&r.push(n?i.slice(1):i);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},l.prototype.listeners=function(e){var t=n?n+e:e,i=this._events[t];if(!i)return[];if(i.fn)return[i.fn];for(var r=0,o=i.length,a=new Array(o);r1&&void 0!==arguments[1]?arguments[1]:0,n=(d[e[t+0]]+d[e[t+1]]+d[e[t+2]]+d[e[t+3]]+"-"+d[e[t+4]]+d[e[t+5]]+"-"+d[e[t+6]]+d[e[t+7]]+"-"+d[e[t+8]]+d[e[t+9]]+"-"+d[e[t+10]]+d[e[t+11]]+d[e[t+12]]+d[e[t+13]]+d[e[t+14]]+d[e[t+15]]).toLowerCase();if(!h(n))throw TypeError("Stringified UUID is invalid");return n};var m=function(e,t,n){var i=(e=e||{}).random||(e.rng||c)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=i[r];return t}return p(i)};function g(e){return l.createElement("i",{className:"rmel-iconfont rmel-icon-"+e.type})}function v(e){return l.createElement("div",{className:"rc-md-navigation "+(e.visible?"visible":"in-visible")},l.createElement("div",{className:"navigation-nav left"},l.createElement("div",{className:"button-wrap"},e.left)),l.createElement("div",{className:"navigation-nav right"},l.createElement("div",{className:"button-wrap"},e.right)))}function y(e){return l.createElement("div",{className:"tool-bar",style:e.style},e.children)}var b=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),r=0;r=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 _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n0)for(var l,s=L(n);!(l=s()).done;){var c=l.value;if("undefined"!==typeof a[c]&&!a[c])return!1}else if(a.metaKey||a.ctrlKey||a.shiftKey||a.altKey)return!1;return a.key?a.key===r:a.keyCode===i}function H(e,t){var n=e.split("\n"),i=e.substr(0,t).split("\n"),r=i.length,o=i[i.length-1].length,a=n[i.length-1],l=i.length>1?i[i.length-2]:null,s=n.length>i.length?n[i.length]:null;return{line:r,col:o,beforeText:e.substr(0,t),afterText:e.substr(t),curLine:a,prevLine:l,nextLine:s}}for(var I={bold:["**","**"],italic:["*","*"],underline:["++","++"],strikethrough:["~~","~~"],quote:["\n> ","\n"],inlinecode:["`","`"],code:["\n```\n","\n```\n"]},A=1;A<=6;A++)I["h"+A]=["\n"+U("#",A)+" ","\n"];function Z(e){for(var t=e.row,n=void 0===t?2:t,i=e.col,r=void 0===i?2:i,o=["|"],a=["|"],l=["|"],s="",c=1;c<=r;c++)o.push(" Head |"),l.push(" --- |"),a.push(" Data |");for(var u=1;u<=n;u++)s+="\n"+a.join("");return o.join("")+"\n"+l.join("")+s}function O(e,t){var n=t;if("\n"!==n.substr(0,1)&&(n="\n"+n),"unordered"===e)return n.length>1?n.replace(/\n/g,"\n* ").trim():"* ";var i=1;return n.length>1?n.replace(/\n/g,(function(){return"\n"+i+++". "})).trim():"1. "}function D(e,t){return{text:e,newBlock:t,selection:{start:e.length,end:e.length}}}var R=function(e,t,n){if("undefined"!==typeof I[t])return{text:""+I[t][0]+e+I[t][1],selection:{start:I[t][0].length,end:I[t][0].length+e.length}};switch(t){case"tab":var i=1===n.tabMapValue?"\t":" ".repeat(n.tabMapValue),r=i+e.replace(/\n/g,"\n"+i),o=e.includes("\n")?e.match(/\n/g).length:0;return{text:r,selection:{start:n.tabMapValue,end:n.tabMapValue*(o+1)+e.length}};case"unordered":return D(O("unordered",e),!0);case"order":return D(O("order",e),!0);case"hr":return D("---",!0);case"table":return{text:Z(n),newBlock:!0};case"image":return{text:"!["+(e||n.target)+"]("+(n.imageUrl||"")+")",selection:{start:2,end:e.length+2}};case"link":return{text:"["+e+"]("+(n.linkUrl||"")+")",selection:{start:1,end:e.length+1}}}return{text:e,selection:{start:0,end:e.length}}};function P(e,t){var n={};return Object.keys(e).forEach((function(i){"undefined"!==typeof t[i]?"object"!==typeof t[i]?n[i]=t[i]:Array.isArray(t[i])?n[i]=[].concat(t[i]):n[i]=P(e[i],t[i]):n[i]=e[i]})),n}var W=function(e,t){return{placeholder:R("","image",{target:"Uploading_"+m(),imageUrl:""}).text,uploaded:new Promise((function(n){var i=!0,r=function(t){i&&console.warn("Deprecated: onImageUpload should return a Promise, callback will be removed in future"),n(R("","image",{target:e.name,imageUrl:t}).text)},o=t(e,r);K(o)&&(i=!1,o.then(r))}))}},F={theme:"default",view:{menu:!0,md:!0,html:!0},canView:{menu:!0,md:!0,html:!0,both:!0,fullScreen:!0,hideMenu:!0},htmlClass:"",markdownClass:"",syncScrollMode:["rightFollowLeft","leftFollowRight"],imageUrl:"",imageAccept:"",linkUrl:"",loggerMaxSize:100,loggerInterval:600,table:{maxRow:4,maxCol:6},allowPasteImage:!0,onImageUpload:void 0,onCustomImageUpload:void 0,shortcuts:!0,onChangeTrigger:"both"},B=function(e){function t(){return e.apply(this,arguments)||this}(0,a.Z)(t,e);var n=t.prototype;return n.getHtml=function(){return"string"===typeof this.props.html?this.props.html:this.el.current?this.el.current.innerHTML:""},n.render=function(){return"string"===typeof this.props.html?l.createElement("div",{ref:this.el,dangerouslySetInnerHTML:{__html:this.props.html},className:this.props.className||"custom-html-style"}):l.createElement("div",{ref:this.el,className:this.props.className||"custom-html-style"},this.props.html)},t}(function(e){function t(t){var n;return(n=e.call(this,t)||this).el=l.createRef(),n}(0,a.Z)(t,e);var n=t.prototype;return n.getElement=function(){return this.el.current},n.getHeight=function(){return this.el.current?this.el.current.offsetHeight:0},t}(l.Component));function j(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)return;if("string"===typeof e)return z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return z(e,t)}(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 z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1?n-1:0),o=1;o0&&h.length>0&&(l="\n"+l,s&&(s.start++,s.end++));var d=c.afterText;n.start!==n.end&&(d=H(this.getMdValue(),n.end).afterText),""!==d.trim()&&"\n\n"!==d.substr(0,2)&&("\n"!==d.substr(0,1)&&(l+="\n"),l+="\n")}this.insertText(l,!0,s)},n.insertPlaceholder=function(e,t){var n=this;this.insertText(e,!0),t.then((function(t){var i=n.getMdValue().replace(e,t);n.setText(i)}))},n.insertText=function(e,t,n){void 0===e&&(e=""),void 0===t&&(t=!1);var i=this.state.text,r=this.getSelection(),o=i.slice(0,r.start),a=i.slice(t?r.end:r.start,i.length);this.setText(o+e+a,void 0,n?{start:n.start+o.length,end:n.end+o.length}:{start:r.start,end:r.start})},n.setText=function(e,t,n){var i=this;void 0===e&&(e="");var r=this.config.onChangeTrigger,o=void 0===r?"both":r,a=e.replace(/\u21b5/g,"\n");if(this.state.text!==e){this.setState({text:a}),!this.props.onChange||"both"!==o&&"beforeRender"!==o||this.props.onChange({text:a,html:this.getHtmlValue()},t),this.emitter.emit(this.emitter.EVENT_CHANGE,e,t,"undefined"===typeof t),n&&setTimeout((function(){return i.setSelection(n)})),this.hasContentChanged||(this.hasContentChanged=!0);var l=this.renderHTML(a);"both"!==o&&"afterRender"!==o||l.then((function(){i.props.onChange&&i.props.onChange({text:i.state.text,html:i.getHtmlValue()},t)}))}},n.getMdValue=function(){return this.state.text},n.getHtmlValue=function(){return"string"===typeof this.state.html?this.state.html:this.nodeMdPreview.current?this.nodeMdPreview.current.getHtml():""},n.onKeyboard=function(e){var t=this;Array.isArray(e)?e.forEach((function(e){return t.onKeyboard(e)})):this.keyboardListeners.includes(e)||this.keyboardListeners.push(e)},n.offKeyboard=function(e){var t=this;if(Array.isArray(e))e.forEach((function(e){return t.offKeyboard(e)}));else{var n=this.keyboardListeners.indexOf(e);n>=0&&this.keyboardListeners.splice(n,1)}},n.handleKeyDown=function(e){for(var t,n=j(this.keyboardListeners);!(t=n()).done;){var i=t.value;if(V(e,i))return e.preventDefault(),void i.callback(e)}this.emitter.emit(this.emitter.EVENT_KEY_DOWN,e)},n.getEventType=function(e){switch(e){case"change":return this.emitter.EVENT_CHANGE;case"fullscreen":return this.emitter.EVENT_FULL_SCREEN;case"viewchange":return this.emitter.EVENT_VIEW_CHANGE;case"keydown":return this.emitter.EVENT_KEY_DOWN;case"editor_keydown":return this.emitter.EVENT_EDITOR_KEY_DOWN;case"blur":return this.emitter.EVENT_BLUR;case"focus":return this.emitter.EVENT_FOCUS;case"scroll":return this.emitter.EVENT_SCROLL}},n.on=function(e,t){var n=this.getEventType(e);n&&this.emitter.on(n,t)},n.off=function(e,t){var n=this.getEventType(e);n&&this.emitter.off(n,t)},n.setView=function(e){var t=this,n=(0,r.Z)({},this.state.view,e);this.setState({view:n},(function(){t.emitter.emit(t.emitter.EVENT_VIEW_CHANGE,n)}))},n.getView=function(){return(0,r.Z)({},this.state.view)},n.fullScreen=function(e){var t=this;this.state.fullScreen!==e&&this.setState({fullScreen:e},(function(){t.emitter.emit(t.emitter.EVENT_FULL_SCREEN,e)}))},n.registerPluginApi=function(e,t){this.pluginApis.set(e,t)},n.unregisterPluginApi=function(e){this.pluginApis.delete(e)},n.callPluginApi=function(e){var t=this.pluginApis.get(e);if(!t)throw new Error("API "+e+" not found");for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r0&&e.onImageChanged(t.target.files[0])}}))},t}(T);he.pluginName="image";var de=function(e){function t(t){var n;return(n=e.call(this,t)||this).handleKeyboard={key:"k",keyCode:75,aliasCommand:!0,withKey:["ctrlKey"],callback:function(){return n.editor.insertMarkdown("link")}},n}(0,a.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},n.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},n.render=function(){var e=this;return l.createElement("span",{className:"button button-type-link",title:S.get("btnLink"),onClick:function(){return e.editor.insertMarkdown("link")}},l.createElement(g,{type:"link"}))},t}(T);de.pluginName="link";var fe=function(e){function t(t){var n;return(n=e.call(this,t)||this).handleKeyboard={key:"7",keyCode:55,withKey:["ctrlKey","shiftKey"],aliasCommand:!0,callback:function(){return n.editor.insertMarkdown("order")}},n}(0,a.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},n.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},n.render=function(){var e=this;return l.createElement("span",{className:"button button-type-ordered",title:S.get("btnOrdered"),onClick:function(){return e.editor.insertMarkdown("order")}},l.createElement(g,{type:"list-ordered"}))},t}(T);fe.pluginName="list-ordered";var pe=function(e){function t(t){var n;return(n=e.call(this,t)||this).handleKeyboard={key:"8",keyCode:56,withKey:["ctrlKey","shiftKey"],aliasCommand:!0,callback:function(){return n.editor.insertMarkdown("unordered")}},n}(0,a.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},n.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},n.render=function(){var e=this;return l.createElement("span",{className:"button button-type-unordered",title:S.get("btnUnordered"),onClick:function(){return e.editor.insertMarkdown("unordered")}},l.createElement(g,{type:"list-unordered"}))},t}(T);pe.pluginName="list-unordered";var me,ge=function(){function e(e){void 0===e&&(e={}),this.record=[],this.recycle=[],this.initValue="";var t=e.maxSize,n=void 0===t?100:t;this.maxSize=n}var t=e.prototype;return t.push=function(e){for(var t=this.record.push(e);this.record.length>this.maxSize;)this.record.shift();return t},t.get=function(){return this.record},t.getLast=function(){var e=this.record.length;return this.record[e-1]},t.undo=function(e){var t=this.record.pop();if("undefined"===typeof t)return this.initValue;if(t!==e)return this.recycle.push(t),t;var n=this.record.pop();return"undefined"===typeof n?(this.recycle.push(t),this.initValue):(this.recycle.push(t),n)},t.redo=function(){var e=this.recycle.pop();if("undefined"!==typeof e)return this.push(e),e},t.cleanRedo=function(){this.recycle=[]},t.getUndoCount=function(){return this.undo.length},t.getRedoCount=function(){return this.recycle.length},e}(),ve=function(e){function t(t){var n;return(n=e.call(this,t)||this).handleKeyboards=[],n.lastPop=null,n.handleChange=n.handleChange.bind((0,o.Z)(n)),n.handleRedo=n.handleRedo.bind((0,o.Z)(n)),n.handleUndo=n.handleUndo.bind((0,o.Z)(n)),n.handleKeyboards=[{key:"y",keyCode:89,withKey:["ctrlKey"],callback:n.handleRedo},{key:"z",keyCode:90,withKey:["metaKey","shiftKey"],callback:n.handleRedo},{key:"z",keyCode:90,aliasCommand:!0,withKey:["ctrlKey"],callback:n.handleUndo}],n.logger=new ge({maxSize:n.editorConfig.loggerMaxSize}),n.editor.registerPluginApi("undo",n.handleUndo),n.editor.registerPluginApi("redo",n.handleRedo),n}(0,a.Z)(t,e);var n=t.prototype;return n.handleUndo=function(){var e=this.logger.undo(this.editor.getMdValue());"undefined"!==typeof e&&(this.pause(),this.lastPop=e,this.editor.setText(e),this.forceUpdate())},n.handleRedo=function(){var e=this.logger.redo();"undefined"!==typeof e&&(this.lastPop=e,this.editor.setText(e),this.forceUpdate())},n.handleChange=function(e,t,n){var i=this;if(this.logger.getLast()!==e&&(null===this.lastPop||this.lastPop!==e)){if(this.logger.cleanRedo(),n)return this.logger.push(e),this.lastPop=null,void this.forceUpdate();this.timerId&&(window.clearTimeout(this.timerId),this.timerId=0),this.timerId=window.setTimeout((function(){i.logger.getLast()!==e&&(i.logger.push(e),i.lastPop=null,i.forceUpdate()),window.clearTimeout(i.timerId),i.timerId=0}),this.editorConfig.loggerInterval)}},n.componentDidMount=function(){var e=this;this.editor.on("change",this.handleChange),this.handleKeyboards.forEach((function(t){return e.editor.onKeyboard(t)})),this.logger.initValue=this.editor.getMdValue(),this.forceUpdate()},n.componentWillUnmount=function(){var e=this;this.timerId&&window.clearTimeout(this.timerId),this.editor.off("change",this.handleChange),this.editor.unregisterPluginApi("undo"),this.editor.unregisterPluginApi("redo"),this.handleKeyboards.forEach((function(t){return e.editor.offKeyboard(t)}))},n.pause=function(){this.timerId&&(window.clearTimeout(this.timerId),this.timerId=void 0)},n.render=function(){var e=this.logger.getUndoCount()>1||this.logger.initValue!==this.editor.getMdValue(),t=this.logger.getRedoCount()>0;return l.createElement(l.Fragment,null,l.createElement("span",{className:"button button-type-undo "+(e?"":"disabled"),title:S.get("btnUndo"),onClick:this.handleUndo},l.createElement(g,{type:"undo"})),l.createElement("span",{className:"button button-type-redo "+(t?"":"disabled"),title:S.get("btnRedo"),onClick:this.handleRedo},l.createElement(g,{type:"redo"})))},t}(T);ve.pluginName="logger",function(e){e[e.SHOW_ALL=0]="SHOW_ALL",e[e.SHOW_MD=1]="SHOW_MD",e[e.SHOW_HTML=2]="SHOW_HTML"}(me||(me={}));var ye=function(e){function t(t){var n;return(n=e.call(this,t)||this).handleClick=n.handleClick.bind((0,o.Z)(n)),n.handleChange=n.handleChange.bind((0,o.Z)(n)),n.state={view:n.editor.getView()},n}(0,a.Z)(t,e);var n=t.prototype;return n.handleClick=function(){switch(this.next){case me.SHOW_ALL:this.editor.setView({html:!0,md:!0});break;case me.SHOW_HTML:this.editor.setView({html:!0,md:!1});break;case me.SHOW_MD:this.editor.setView({html:!1,md:!0})}},n.handleChange=function(e){this.setState({view:e})},n.componentDidMount=function(){this.editor.on("viewchange",this.handleChange)},n.componentWillUnmount=function(){this.editor.off("viewchange",this.handleChange)},n.getDisplayInfo=function(){switch(this.next){case me.SHOW_ALL:return{icon:"view-split",title:"All"};case me.SHOW_HTML:return{icon:"visibility",title:"Preview"};default:return{icon:"keyboard",title:"Editor"}}},n.render=function(){if(this.isDisplay){var e=this.getDisplayInfo();return l.createElement("span",{className:"button button-type-mode",title:S.get("btnMode"+e.title),onClick:this.handleClick},l.createElement(g,{type:e.icon}))}return null},(0,M.Z)(t,[{key:"isDisplay",get:function(){var e=this.editorConfig.canView;return!!e&&[e.html,e.md,e.both].filter((function(e){return e})).length>=2}},{key:"next",get:function(){var e=this.editorConfig.canView,t=this.state.view,n=[me.SHOW_ALL,me.SHOW_MD,me.SHOW_HTML];e&&(e.both||n.splice(n.indexOf(me.SHOW_ALL),1),e.md||n.splice(n.indexOf(me.SHOW_MD),1),e.html||n.splice(n.indexOf(me.SHOW_HTML),1));var i=me.SHOW_MD;if(t.html&&(i=me.SHOW_HTML),t.html&&t.md&&(i=me.SHOW_ALL),0===n.length)return i;if(1===n.length)return n[0];var r=n.indexOf(i);return r4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,i=n>0?90+n/2:-90,l=2*Math.PI*e,u=l*((360-n)/360),d=t/100*360*((360-n)/360),p=0===n?0:{bottom:0,top:180,left:90,right:-90}[s],f=(100-r)/100*u;return"round"===a&&100!==r&&(f+=c/2)>=u&&(f=u-.01),{stroke:"string"===typeof o?o:void 0,strokeDasharray:"".concat(u,"px ").concat(l),strokeDashoffset:f,transform:"rotate(".concat(i+d+p,"deg)"),transformOrigin:"50% 50%",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},L=function(e){var t=e.id,r=e.prefixCls,o=e.strokeWidth,s=e.trailWidth,a=e.gapDegree,c=e.gapPosition,i=e.trailColor,l=e.strokeLinecap,d=e.style,f=e.className,v=e.strokeColor,k=e.percent,m=(0,y.Z)(e,w),g=Z(t),C="".concat(g,"-gradient"),E=50-o/2,x=D(E,0,100,i,a,c,l,o),O=W(k),N=W(v),L=N.find((function(e){return e&&"object"===(0,b.Z)(e)})),A=h();return p.createElement("svg",(0,n.Z)({className:u()("".concat(r,"-circle"),f),viewBox:"0 0 ".concat(j," ").concat(j),style:d,id:t},m),L&&p.createElement("defs",null,p.createElement("linearGradient",{id:C,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(L).sort((function(e,t){return P(e)-P(t)})).map((function(e,t){return p.createElement("stop",{key:t,offset:e,stopColor:L[e]})})))),p.createElement("circle",{className:"".concat(r,"-circle-trail"),r:E,cx:50,cy:50,stroke:i,strokeLinecap:l,strokeWidth:s||o,style:x}),function(){var e=0;return O.map((function(t,n){var s=N[n]||N[N.length-1],i=s&&"object"===(0,b.Z)(s)?"url(#".concat(C,")"):void 0,u=D(E,e,t,s,a,c,l,o);return e+=t,p.createElement("circle",{key:n,className:"".concat(r,"-circle-path"),r:E,cx:50,cy:50,stroke:i,strokeLinecap:l,strokeWidth:o,opacity:0===t?0:1,style:u,ref:function(e){A[n]=e}})})).reverse()}())};L.defaultProps=m,L.displayName="Circle";var A=L;function S(e){return!e||e<0?0:e>100?100:e}function _(e){var t=e.success,r=e.successPercent;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}function I(e){var t=e.percent,r=S(_({success:e.success,successPercent:e.successPercent}));return[r,S(S(t)-r)]}var R=function(e){var t=e.prefixCls,r=e.width,n=e.strokeWidth,s=e.trailColor,a=void 0===s?null:s,c=e.strokeLinecap,i=void 0===c?"round":c,l=e.gapPosition,d=e.gapDegree,f=e.type,v=e.children,y=e.success,m=r||120,h={width:m,height:m,fontSize:.15*m+6},g=n||6,C=l||"dashboard"===f&&"bottom"||void 0,b="[object Object]"===Object.prototype.toString.call(e.strokeColor),E=function(e){var t=e.success,r=void 0===t?{}:t,o=e.strokeColor;return[r.strokeColor||k.presetPrimaryColors.green,o||null]}({success:y,strokeColor:e.strokeColor}),x=u()("".concat(t,"-inner"),(0,o.Z)({},"".concat(t,"-circle-gradient"),b));return p.createElement("div",{className:x,style:h},p.createElement(A,{percent:I(e),strokeWidth:g,trailWidth:g,strokeColor:E,strokeLinecap:i,trailColor:a,prefixCls:t,gapDegree:d||0===d?d:"dashboard"===f?75:void 0,gapPosition:C}),v)},z=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n=100?"success":t||"normal"}(),D=function(t,r){var o,n=e.format,l=_(e);if(!b)return null;var u="line"===x;return n||"exception"!==r&&"success"!==r?o=(n||function(e){return"".concat(e,"%")})(S(m),S(l)):"exception"===r?o=u?p.createElement(c.Z,null):p.createElement(i.Z,null):"success"===r&&(o=u?p.createElement(s.Z,null):p.createElement(a.Z,null)),p.createElement("span",{className:"".concat(t,"-text"),title:"string"===typeof o?o:void 0},o)}(W,j),L=Array.isArray(k)?k[0]:k,A="string"===typeof k||Array.isArray(k)?k:void 0;"line"===x?N=v?p.createElement(B,(0,n.Z)({},e,{strokeColor:A,prefixCls:W,steps:v}),D):p.createElement(q,(0,n.Z)({},e,{strokeColor:L,prefixCls:W,direction:P}),D):"circle"!==x&&"dashboard"!==x||(N=p.createElement(R,(0,n.Z)({},e,{strokeColor:L,prefixCls:W,progressStatus:j}),D));var I=u()(W,(t={},(0,o.Z)(t,"".concat(W,"-").concat(("dashboard"===x?"circle":v&&"steps")||x),!0),(0,o.Z)(t,"".concat(W,"-status-").concat(j),!0),(0,o.Z)(t,"".concat(W,"-show-info"),b),(0,o.Z)(t,"".concat(W,"-").concat(g),g),(0,o.Z)(t,"".concat(W,"-rtl"),"rtl"===P),t),l);return p.createElement("div",(0,n.Z)({},(0,d.Z)(O,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"]),{className:I}),N)},H=G}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/8091-5880357d1811013a.js b/static/web/_next/static/chunks/8091-5880357d1811013a.js deleted file mode 100644 index 14aff40b2..000000000 --- a/static/web/_next/static/chunks/8091-5880357d1811013a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8091],{86559:function(t,e,n){n.d(e,{Z:function(){return v}});var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},a=function(t,e,n){var a,i=r[t];return a="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",e.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};function i(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,r=t.formats[n]||t.formats[t.defaultWidth];return r}}var o={date:i({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:i({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:i({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},u={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},d=function(t,e,n,r){return u[t]};function s(t){return function(e,n){var r;if("formatting"===(null!==n&&void 0!==n&&n.context?String(n.context):"standalone")&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,i=null!==n&&void 0!==n&&n.width?String(n.width):a;r=t.formattingValues[i]||t.formattingValues[a]}else{var o=t.defaultWidth,u=null!==n&&void 0!==n&&n.width?String(n.width):t.defaultWidth;r=t.values[u]||t.values[o]}return r[t.argumentCallback?t.argumentCallback(e):e]}}var l={ordinalNumber:function(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:s({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:s({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:s({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function c(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,a=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],i=e.match(a);if(!i)return null;var o,u=i[0],d=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],s=Array.isArray(d)?f(d,(function(t){return t.test(u)})):h(d,(function(t){return t.test(u)}));o=t.valueCallback?t.valueCallback(s):s,o=n.valueCallback?n.valueCallback(o):o;var l=e.slice(u.length);return{value:o,rest:l}}}function h(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function f(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(m.matchPattern);if(!n)return null;var r=n[0],a=t.match(m.parsePattern);if(!a)return null;var i=m.valueCallback?m.valueCallback(a[0]):a[0];i=e.valueCallback?e.valueCallback(i):i;var o=t.slice(r.length);return{value:i,rest:o}}),era:c({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:c({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:c({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:c({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:c({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},v={code:"en-US",formatDistance:a,formatLong:o,formatRelative:d,localize:l,match:g,options:{weekStartsOn:0,firstWeekContainsDate:1}}},84314:function(t,e,n){n.d(e,{j:function(){return a}});var r={};function a(){return r}},24262:function(t,e,n){function r(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}n.d(e,{Z:function(){return r}})},83946:function(t,e,n){function r(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}n.d(e,{Z:function(){return r}})},58091:function(t,e,n){n.d(e,{Z:function(){return R}});var r=n(13882);function a(t){return(0,r.Z)(1,arguments),t instanceof Date||"object"===typeof t&&"[object Date]"===Object.prototype.toString.call(t)}var i=n(19013);function o(t){if((0,r.Z)(1,arguments),!a(t)&&"number"!==typeof t)return!1;var e=(0,i.Z)(t);return!isNaN(Number(e))}var u=n(92234),d=864e5;function s(t){(0,r.Z)(1,arguments);var e=1,n=(0,i.Z)(t),a=n.getUTCDay(),o=(a=o.getTime()?n+1:e.getTime()>=d.getTime()?n:n-1}function c(t){(0,r.Z)(1,arguments);var e=l(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var a=s(n);return a}var h=6048e5;var f=n(83946),m=n(84314);function g(t,e){var n,a,o,u,d,s,l,c;(0,r.Z)(1,arguments);var h=(0,m.j)(),g=(0,f.Z)(null!==(n=null!==(a=null!==(o=null!==(u=null===e||void 0===e?void 0:e.weekStartsOn)&&void 0!==u?u:null===e||void 0===e||null===(d=e.locale)||void 0===d||null===(s=d.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:h.weekStartsOn)&&void 0!==a?a:null===(l=h.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=(0,i.Z)(t),w=v.getUTCDay(),b=(w=1&&b<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(v+1,0,b),y.setUTCHours(0,0,0,0);var T=g(y,e),p=new Date(0);p.setUTCFullYear(v,0,b),p.setUTCHours(0,0,0,0);var C=g(p,e);return h.getTime()>=T.getTime()?v+1:h.getTime()>=C.getTime()?v:v-1}function w(t,e){var n,a,i,o,u,d,s,l;(0,r.Z)(1,arguments);var c=(0,m.j)(),h=(0,f.Z)(null!==(n=null!==(a=null!==(i=null!==(o=null===e||void 0===e?void 0:e.firstWeekContainsDate)&&void 0!==o?o:null===e||void 0===e||null===(u=e.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==i?i:c.firstWeekContainsDate)&&void 0!==a?a:null===(s=c.locale)||void 0===s||null===(l=s.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==n?n:1),w=v(t,e),b=new Date(0);b.setUTCFullYear(w,0,h),b.setUTCHours(0,0,0,0);var y=g(b,e);return y}var b=6048e5;function y(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length0?n:1-n;return y("yy"===e?r%100:r,e.length)},M:function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):y(n+1,2)},d:function(t,e){return y(t.getUTCDate(),e.length)},a:function(t,e){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(t,e){return y(t.getUTCHours()%12||12,e.length)},H:function(t,e){return y(t.getUTCHours(),e.length)},m:function(t,e){return y(t.getUTCMinutes(),e.length)},s:function(t,e){return y(t.getUTCSeconds(),e.length)},S:function(t,e){var n=e.length,r=t.getUTCMilliseconds();return y(Math.floor(r*Math.pow(10,n-3)),e.length)}},p="midnight",C="noon",M="morning",k="afternoon",D="evening",U="night",x={G:function(t,e,n){var r=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if("yo"===e){var r=t.getUTCFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return T.y(t,e)},Y:function(t,e,n,r){var a=v(t,r),i=a>0?a:1-a;return"YY"===e?y(i%100,2):"Yo"===e?n.ordinalNumber(i,{unit:"year"}):y(i,e.length)},R:function(t,e){return y(l(t),e.length)},u:function(t,e){return y(t.getUTCFullYear(),e.length)},Q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return y(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return y(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){var r=t.getUTCMonth();switch(e){case"M":case"MM":return T.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return y(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,a){var o=function(t,e){(0,r.Z)(1,arguments);var n=(0,i.Z)(t),a=g(n,e).getTime()-w(n,e).getTime();return Math.round(a/b)+1}(t,a);return"wo"===e?n.ordinalNumber(o,{unit:"week"}):y(o,e.length)},I:function(t,e,n){var a=function(t){(0,r.Z)(1,arguments);var e=(0,i.Z)(t),n=s(e).getTime()-c(e).getTime();return Math.round(n/h)+1}(t);return"Io"===e?n.ordinalNumber(a,{unit:"week"}):y(a,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):T.d(t,e)},D:function(t,e,n){var a=function(t){(0,r.Z)(1,arguments);var e=(0,i.Z)(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var a=e.getTime(),o=n-a;return Math.floor(o/d)+1}(t);return"Do"===e?n.ordinalNumber(a,{unit:"dayOfYear"}):y(a,e.length)},E:function(t,e,n){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){var a=t.getUTCDay(),i=(a-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return y(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){var a=t.getUTCDay(),i=(a-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return y(i,e.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(t,e,n){var r=t.getUTCDay(),a=0===r?7:r;switch(e){case"i":return String(a);case"ii":return y(a,e.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,n){var r,a=t.getUTCHours();switch(r=12===a?C:0===a?p:a/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,n){var r,a=t.getUTCHours();switch(r=a>=17?D:a>=12?k:a>=4?M:U,e){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){var r=t.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return T.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):T.H(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):y(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):y(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):T.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):T.s(t,e)},S:function(t,e){return T.S(t,e)},X:function(t,e,n,r){var a=(r._originalDate||t).getTimezoneOffset();if(0===a)return"Z";switch(e){case"X":return S(a);case"XXXX":case"XX":return W(a);default:return W(a,":")}},x:function(t,e,n,r){var a=(r._originalDate||t).getTimezoneOffset();switch(e){case"x":return S(a);case"xxxx":case"xx":return W(a);default:return W(a,":")}},O:function(t,e,n,r){var a=(r._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+P(a,":");default:return"GMT"+W(a,":")}},z:function(t,e,n,r){var a=(r._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+P(a,":");default:return"GMT"+W(a,":")}},t:function(t,e,n,r){var a=r._originalDate||t;return y(Math.floor(a.getTime()/1e3),e.length)},T:function(t,e,n,r){return y((r._originalDate||t).getTime(),e.length)}};function P(t,e){var n=t>0?"-":"+",r=Math.abs(t),a=Math.floor(r/60),i=r%60;if(0===i)return n+String(a);var o=e||"";return n+String(a)+o+y(i,2)}function S(t,e){return t%60===0?(t>0?"-":"+")+y(Math.abs(t)/60,2):W(t,e)}function W(t,e){var n=e||"",r=t>0?"-":"+",a=Math.abs(t);return r+y(Math.floor(a/60),2)+n+y(a%60,2)}var Y=x,Z=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},E=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},N={p:E,P:function(t,e){var n,r=t.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return Z(t,e);switch(a){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;default:n=e.dateTime({width:"full"})}return n.replace("{{date}}",Z(a,e)).replace("{{time}}",E(i,e))}},O=n(24262),q=["D","DD"],H=["YY","YYYY"];function F(t){return-1!==q.indexOf(t)}function j(t){return-1!==H.indexOf(t)}function z(t,e,n){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var L=n(86559),Q=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,A=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,G=/^'([^]*?)'?$/,X=/''/g,B=/[a-zA-Z]/;function R(t,e,n){var a,d,s,l,c,h,g,v,w,b,y,T,p,C,M,k,D,U;(0,r.Z)(2,arguments);var x=String(e),P=(0,m.j)(),S=null!==(a=null!==(d=null===n||void 0===n?void 0:n.locale)&&void 0!==d?d:P.locale)&&void 0!==a?a:L.Z,W=(0,f.Z)(null!==(s=null!==(l=null!==(c=null!==(h=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==h?h:null===n||void 0===n||null===(g=n.locale)||void 0===g||null===(v=g.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==c?c:P.firstWeekContainsDate)&&void 0!==l?l:null===(w=P.locale)||void 0===w||null===(b=w.options)||void 0===b?void 0:b.firstWeekContainsDate)&&void 0!==s?s:1);if(!(W>=1&&W<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Z=(0,f.Z)(null!==(y=null!==(T=null!==(p=null!==(C=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==C?C:null===n||void 0===n||null===(M=n.locale)||void 0===M||null===(k=M.options)||void 0===k?void 0:k.weekStartsOn)&&void 0!==p?p:P.weekStartsOn)&&void 0!==T?T:null===(D=P.locale)||void 0===D||null===(U=D.options)||void 0===U?void 0:U.weekStartsOn)&&void 0!==y?y:0);if(!(Z>=0&&Z<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!S.localize)throw new RangeError("locale must contain localize property");if(!S.formatLong)throw new RangeError("locale must contain formatLong property");var E=(0,i.Z)(t);if(!o(E))throw new RangeError("Invalid time value");var q=(0,O.Z)(E),H=(0,u.Z)(E,q),G={firstWeekContainsDate:W,weekStartsOn:Z,locale:S,_originalDate:E},X=x.match(A).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,N[e])(t,S.formatLong):t})).join("").match(Q).map((function(r){if("''"===r)return"'";var a=r[0];if("'"===a)return _(r);var i=Y[a];if(i)return null!==n&&void 0!==n&&n.useAdditionalWeekYearTokens||!j(r)||z(r,e,String(t)),null!==n&&void 0!==n&&n.useAdditionalDayOfYearTokens||!F(r)||z(r,e,String(t)),i(H,r,S.localize,G);if(a.match(B))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return r})).join("");return X}function _(t){var e=t.match(G);return e?e[1].replace(X,"'"):t}},92234:function(t,e,n){n.d(e,{Z:function(){return u}});var r=n(83946),a=n(19013),i=n(13882);function o(t,e){(0,i.Z)(2,arguments);var n=(0,a.Z)(t).getTime(),o=(0,r.Z)(e);return new Date(n+o)}function u(t,e){(0,i.Z)(2,arguments);var n=(0,r.Z)(e);return o(t,-n)}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/885-063e6509a33de7b6.js b/static/web/_next/static/chunks/885-063e6509a33de7b6.js deleted file mode 100644 index 2447c8bc0..000000000 --- a/static/web/_next/static/chunks/885-063e6509a33de7b6.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[885],{1698:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var i=n(85893),r=n(27049),a=n(71577),s=n(92032),o=n(29316),u=n.n(o);function c(e){var t=e.name,n=e.text;return(0,i.jsx)("div",{className:u().outerContainer,children:(0,i.jsxs)("div",{className:u().innerContainer,children:[(0,i.jsxs)("div",{className:u().header,children:[t," is currently offline."]}),(0,i.jsx)(r.Z,{}),(0,i.jsx)("div",{children:n}),(0,i.jsx)("div",{className:u().footer,children:(0,i.jsxs)(a.Z,{type:"primary",onClick:function(){console.log("show notification modal")},children:[(0,i.jsx)(s.Z,{}),"Notify when Live"]})})]})})}},36887:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(85893),r=n(45938),a=n(68730),s=n(67294),o=n(99611),u=n(93132),c=n.n(u);function l(e){var t=(0,s.useState)(new Date)[1];(0,s.useEffect)((function(){var e=setInterval((function(){return t(new Date)}),1e3);return function(){clearInterval(e)}}),[]);var n,u=e.online,l=e.lastConnectTime,h=e.lastDisconnectTime,f=e.viewerCount,d="";if(u&&l){var p=function(e){var t=(0,a.Z)({start:e,end:new Date});return t.days>1?"".concat(t.days," days ").concat(t.hours," hours"):t.hours>=1?"".concat(t.hours," hours ").concat(t.minutes," minutes"):"".concat(t.minutes," minutes ").concat(t.seconds," seconds")}(new Date(l));d=u?"Live for ".concat(p):"Offline",n=f>0&&(0,i.jsxs)("span",{children:[(0,i.jsx)(o.Z,{})," ",f]})}else u||(d="Offline",h&&(n="Last live ".concat((0,r.Z)(new Date(h))," ago.")));return(0,i.jsxs)("div",{className:c().statusbar,children:[(0,i.jsx)("div",{children:d}),(0,i.jsx)("div",{children:n})]})}l.defaultProps={lastConnectTime:null,lastDisconnectTime:null}},98881:function(e,t,n){"use strict";n.d(t,{Z:function(){return Q}});var i=n(47568),r=n(828),a=n(34051),s=n.n(a),o=n(85893),u=n(67294),c=n(4480),l=n(49218),h=n(85215),f=n(90121),d=n.n(f);n(33108);var p=function(e){var t=u.useRef(null),n=u.useRef(null),i=e.options,r=e.onReady;return u.useEffect((function(){if(!n.current){var e=t.current,a=n.current=(0,h.Z)(e,i,(function(){return a.log("player is ready"),r&&r(a,h.Z)}));a.autoplay(i.autoplay),a.src(i.sources)}}),[i,t]),u.useEffect((function(){var e=n.current;return function(){e&&(e.dispose(),n.current=null)}}),[n]),(0,o.jsx)("div",{"data-vjs-player":!0,children:(0,o.jsx)("video",{ref:t,className:"video-js vjs-big-play-centered ".concat(d().player," vjs-owncast")})})},v=n(51438);var m=function(){function e(){(0,v.Z)(this,e)}var t=e.prototype;return t.start=function(){this.stop(),this.timer=setInterval((function(){!function(){try{fetch("/api/ping")}catch(e){console.error(e)}}()}),4e3)},t.stop=function(){clearInterval(this.timer)},e}(),y=n(26042),g=n(69396),b=n(29815),k={position:"absolute",width:"100%",height:"100%"};function T(e){var t=e.src,n=void 0===t?"":t,i=e.width,r=e.height,a=e.objectFit,s=void 0===a?"fill":a,c=e.duration,l=void 0===c?"1s":c,h=(0,u.useMemo)((function(){return{display:"inline-block",position:"relative",width:i,height:r}}),[i,r]),f=(0,u.useMemo)((function(){return[(0,g.Z)((0,y.Z)({},k),{objectFit:s,opacity:0,transition:"opacity ".concat(l)}),(0,g.Z)((0,y.Z)({},k),{objectFit:s,opacity:1,transition:"opacity ".concat(l)}),(0,g.Z)((0,y.Z)({},k),{objectFit:s,opacity:0})]}),[s,l]),d=(0,u.useState)(0),p=d[0],v=d[1],m=(0,u.useState)(["",""]),T=m[0],w=m[1],x=n!==T[1]?n:"",C=function(){v((p+1)%3),w([T[1],x])};return(0,o.jsx)("span",{style:h,children:(0,b.Z)(T).concat([x]).map((function(e,t){return""!==e&&(0,o.jsx)("img",{src:e,alt:"",style:f[t],onLoad:2===t?C:void 0},e)}))})}T.defaultProps={objectFit:"fill",duration:"3s"};var w=n(1125),x=n.n(w);function C(e){var t,n=e.online,i=e.initialSrc,r=e.src,a=(0,u.useState)(i),s=a[0],c=a[1],l=(0,u.useState)("0s"),h=l[0],f=l[1];return(0,u.useEffect)((function(){clearInterval(t),t=setInterval((function(){"0s"===h&&f("3s"),c("".concat(r,"?").concat(Date.now()))}),2e4)}),[]),(0,o.jsxs)("div",{className:x().poster,children:[!n&&(0,o.jsx)("img",{src:i,alt:"logo"}),n&&(0,o.jsx)(T,{src:s,duration:h,objectFit:"cover",width:"100%",height:"100%"})]})}var j=n(73682),B=n(39370),I=n(52951);var E=function(){function e(t,n){var i=this;(0,v.Z)(this,e),this.player=t,this.supportsDetailedMetrics=!1,this.hasPerformedInitialVariantChange=!1,this.clockSkewMs=0,this.segmentDownloadTime=[],this.bandwidthTracking=[],this.latencyTracking=[],this.errors=0,this.qualityVariantChanges=0,this.isBuffering=!1,this.bufferingDurationTimer=0,this.collectPlaybackMetricsTimer=0,this.videoJSReady=this.videoJSReady.bind(this),this.handlePlaying=this.handlePlaying.bind(this),this.handleBuffering=this.handleBuffering.bind(this),this.handleEnded=this.handleEnded.bind(this),this.handleError=this.handleError.bind(this),this.send=this.send.bind(this),this.collectPlaybackMetrics=this.collectPlaybackMetrics.bind(this),this.handleNoLongerBuffering=this.handleNoLongerBuffering.bind(this),this.player.on("canplaythrough",this.handleNoLongerBuffering),this.player.on("error",this.handleError),this.player.on("stalled",this.handleBuffering),this.player.on("waiting",this.handleBuffering),this.player.on("playing",this.handlePlaying),this.player.on("ended",this.handleEnded);var r=n.xhr;n.Vhs.xhr=function(){for(var e=arguments.length,t=new Array(e),n=0;n=40)return;this.trackLatency(a)}catch(s){console.warn(s)}}}},{key:"send",value:function(){var e=this;return(0,i.Z)(s().mark((function t(){var n,i,r,a,o,u,c,l,h,f;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==e.segmentDownloadTime.length){t.next=2;break}return t.abrupt("return");case 2:if(e.player&&!e.player.paused()){t.next=4;break}return t.abrupt("return");case 4:return n=e.errors,e.supportsDetailedMetrics?(a=(r=function(e){return e.reduce((function(e,t){return e+t}),0)/e.length})(e.segmentDownloadTime)/1e3,o=Math.round(1e3*a)/1e3,u=r(e.bandwidthTracking)/1e3,c=Math.round(1e3*u)/1e3,l=r(e.latencyTracking)/1e3,h=Math.round(1e3*l)/1e3,i={bandwidth:c,latency:h,downloadDuration:o,errors:n+e.isBuffering?1:0,qualityVariantChanges:e.qualityVariantChanges}):i={errors:n+e.isBuffering?1:0},e.errors=0,e.qualityVariantChanges=0,e.segmentDownloadTime=[],e.bandwidthTracking=[],e.latencyTracking=[],f={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)},t.prev=13,t.next=16,fetch("/api/metrics/playback",f);case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(13),console.error(t.t0);case 21:case"end":return t.stop()}}),t,null,[[13,18]])})))()}}]),e}(),P=E,Z=n(45785),M=n(82662),D=n(88029),L=n(91224);function S(e,t,n,i){var r=t.getComponent("MenuItem"),a=t.getComponent("MenuItem"),s=t.getComponent("MenuButton"),o=function(e){(0,D.Z)(n,e);var t=(0,L.Z)(n);function n(e,i){return(0,v.Z)(this,n),t.call(this,e,i)}return n.prototype.createEl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"button",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,Z.Z)((0,M.Z)(n.prototype),"createEl",this).call(this,e,t,i);return r.innerHTML='
      ',r},n}(r),u=new a(e,{selectable:!0});u.setAttribute("class","latency-toggle-item"),u.on("click",(function(){i()}));var c=new o(e,{selectable:!1}),l=t.extend(s,{constructor:function(){s.call(this,e)},createItems:function(){var t=e.tech({IWillNotUseThisInPlugins:!0}),i=new a(e,{selectable:!0,label:"Auto"}),r=n.map((function(n){var i=new a(e,{selectable:!0,label:n.name});return i.on("click",(function(){t?(t.vhs.representations().forEach((function(e,t){e.enabled(t===n.index)})),i.selected(!1)):console.warn("Invalid attempt to access null player tech")})),i}));i.on("click",(function(){t.vhs.representations().forEach((function(e){e.enabled(!0)})),i.selected(!1)}));var s=!!t&&!!t.vhs;return n.length<2&&s?[u]:n.length>1&&s?[i].concat((0,b.Z)(r),[c,u]):s||1!==n.length?[i].concat((0,b.Z)(r)):[]}}),h=e.tech({IWillNotUseThisInPlugins:!0});if(!(n.length<2)||h&&h.vhs){var f=new l;return f.addClass("vjs-quality-selector"),f}}var _=function(){function e(t){(0,v.Z)(this,e),this.player=t,this.playing=!1,this.enabled=!1,this.running=!1,this.inTimeout=!1,this.jumpingToLiveIgnoreBuffer=!1,this.timeoutTimer=0,this.checkTimer=0,this.bufferingCounter=0,this.bufferingTimer=0,this.playbackRate=1,this.lastJumpOccurred=null,this.startupTime=new Date,this.clockSkewMs=0,this.currentLatency=null,this.bufferedAtLatency=[],this.player.on("playing",this.handlePlaying.bind(this)),this.player.on("pause",this.handlePause.bind(this)),this.player.on("error",this.handleError.bind(this)),this.player.on("waiting",this.handleBuffering.bind(this)),this.player.on("stalled",this.handleBuffering.bind(this)),this.player.on("ended",this.handleEnded.bind(this)),this.player.on("canplaythrough",this.handlePlaying.bind(this)),this.player.on("canplay",this.handlePlaying.bind(this)),this.check=this.check.bind(this),this.start=this.start.bind(this),this.enable=this.enable.bind(this),this.countBufferingEvent=this.countBufferingEvent.bind(this)}return(0,I.Z)(e,[{key:"setClockSkew",value:function(e){this.clockSkewMs=e}},{key:"check",value:function(){if(!((new Date).getTime()-this.startupTime.getTime()<1e4)&&!this.player.paused()&&!this.player.seeking()&&!this.inTimeout&&this.enabled){var e=this.player.tech({IWillNotUseThisInPlugins:!0});if(e&&e.vhs)if(2===this.player.networkState()){var t=0;try{if(0===e.vhs.stats.buffered.length)return void this.timeout();e.vhs.stats.buffered.forEach((function(e){t+=e.end-e.start}))}catch(m){console.error(m)}var n=e.vhs.playlists.media().attributes.BANDWIDTH,i=e.vhs.systemBandwidth/n;try{var a=function(e){for(var t,n=e.vhs.playlists.media(),i=e.currentTime(),a=0,s=n.segments.length;a=c&&(c=u+3e3);var l=a.dateTimeObject.getTime(),h=(new Date).getTime()+this.clockSkewMs-l;if(this.currentLatency=h,Math.abs(h)>8e4)return void this.timeout();if(h>c){if(this.shouldJumpToLive()&&h>c+5e3){var f=h/1e3-3*a.duration,d=this.player.currentTime()+f;console.info("latency",h/1e3,"jumping",f,"to live from ",this.player.currentTime()," to ",d);var p=e.vhs.stats.buffered[0].end;if(d>e.vhs.stats.buffered[0].startthis.playbackRate+.02&&(v=this.playbackRate+.02),v=Math.round(v*Math.pow(10,3))/Math.pow(10,3),this.start(v)}else h<=u&&this.stop();console.info("latency",h/1e3,"min",u/1e3,"max",c/1e3,"playback rate",this.playbackRate,"enabled:",this.enabled,"running: ",this.running,"skew: ",this.clockSkewMs,"rebuffer events: ",this.bufferingCounter)}catch(y){}}}}},{key:"shouldJumpToLive",value:function(){return!(this.bufferingCounter>1)&&(new Date).getTime()-this.lastJumpOccurred>2e4}},{key:"jump",value:function(e){var t=this;this.jumpingToLiveIgnoreBuffer=!0,this.performedInitialLiveJump=!0,this.lastJumpOccurred=new Date,console.info("current time",this.player.currentTime(),"seeking to",e),this.player.currentTime(e),setTimeout((function(){t.jumpingToLiveIgnoreBuffer=!1}),5e3)}},{key:"setPlaybackRate",value:function(e){this.playbackRate=e,this.player.playbackRate(e)}},{key:"start",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;!this.inTimeout&&this.enabled&&e!==this.playbackRate&&(this.running=!0,this.setPlaybackRate(e))}},{key:"stop",value:function(){this.running&&console.log("stopping latency compensator..."),this.running=!1,this.setPlaybackRate(1)}},{key:"enable",value:function(){var e=this;this.enabled=!0,clearInterval(this.checkTimer),clearTimeout(this.bufferingTimer),this.checkTimer=setInterval((function(){e.check()}),3e3)}},{key:"disable",value:function(){clearInterval(this.checkTimer),clearTimeout(this.timeoutTimer),this.stop(),this.enabled=!1}},{key:"timeout",value:function(){var e=this;this.jumpingToLiveIgnoreBuffer||(this.inTimeout=!0,this.stop(),clearTimeout(this.timeoutTimer),this.timeoutTimer=setTimeout((function(){e.endTimeout()}),3e4))}},{key:"endTimeout",value:function(){clearTimeout(this.timeoutTimer),this.inTimeout=!1}},{key:"handlePlaying",value:function(){var e=this.playing;this.playing=!0,clearTimeout(this.bufferingTimer),this.enabled&&this.shouldJumpToLive()&&(e||(this.jumpingToLiveIgnoreBuffer=!0,this.player.liveTracker.seekToLiveEdge(),this.lastJumpOccurred=new Date))}},{key:"handlePause",value:function(){this.playing=!1}},{key:"handleEnded",value:function(){this.enabled&&this.disable()}},{key:"handleError",value:function(){this.enabled&&this.timeout()}},{key:"countBufferingEvent",value:function(){var e=this;this.bufferingCounter+=1,this.bufferingCounter>4?this.disable():(this.bufferedAtLatency.push(this.currentLatency),console.log("latency compensation timeout due to buffering:",this.bufferingCounter,"buffering events of",4),setTimeout((function(){e.bufferingCounter>0&&(e.bufferingCounter-=1)}),18e4))}},{key:"handleBuffering",value:function(){var e=this;this.enabled&&!this.inTimeout&&(this.jumpingToLiveIgnoreBuffer?this.jumpingToLiveIgnoreBuffer=!1:(this.timeout(),clearTimeout(this.bufferingTimer),this.bufferingTimer=setTimeout((function(){e.countBufferingEvent()}),200)))}}]),e}(),R=_,N="/api/video/variants",O="owncast_volume",V="latencyCompensatorEnabled",J=new m,q=null,A=null,F=!1;function W(){return U.apply(this,arguments)}function U(){return(U=(0,i.Z)(s().mark((function e(){var t,n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[],e.prev=1,e.next=4,fetch(N);case 4:return n=e.sent,e.next=7,n.json();case 7:t=e.sent,e.next=13;break;case 10:e.prev=10,e.t0=e.catch(1),console.error(e.t0);case 13:return e.abrupt("return",t);case 14:case"end":return e.stop()}}),e,null,[[1,10]])})))).apply(this,arguments)}function Q(e){var t=u.useRef(null),n=e.source,a=e.online,h=(0,r.Z)((0,c.FV)(B.We),2),f=h[0],d=h[1],v=(0,c.sJ)(B.g8),m=function(){(0,j.qQ)(O,t.current.muted()?0:t.current.volume())},y=function(e){var t=document.querySelector(".latency-toggle-item > .vjs-menu-item-text");t&&(t.innerHTML=e)},g=function(){A&&A.stop(),F=!0,(A=new R(t.current)).setClockSkew(v),A.enable(),(0,j.qQ)(V,!0),y("disable minimized latency")},b=function(){A&&A.disable(),A=null,F=!1,(0,j.qQ)(V,!1),y('enable minimized latency (experimental)')},k=function(){F?b():g()},T=function(e){var t=e.tech({IWillNotUseThisInPlugins:!0});t&&t.vhs&&("true"===(0,j.$o)(V)&&t&&t.vhs?g():b())},w=function(){var e=(0,i.Z)(s().mark((function e(t,n){var i,r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W();case 2:i=e.sent,r=S(t,n,i,k),t.controlBar.addChild(r,{},t.controlBar.children_.length-2),T(t);case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();(0,l.y1)("space",(function(){t.current.paused()?t.current.play():t.current.pause()}),{enableOnContentEditable:!1}),(0,l.y1)("f",(function(){t.current.isFullscreen()?t.current.exitFullscreen():t.current.requestFullscreen()}),{enableOnContentEditable:!1}),(0,l.y1)("m",(function(){t.current.muted()||0===t.current.volume()?t.current.volume(.7):t.current.volume(0)}),{enableOnContentEditable:!1}),(0,l.y1)("0",(function(){return t.current.volume(t.current.volume()+.1)}),{enableOnContentEditable:!1}),(0,l.y1)("9",(function(){return t.current.volume(t.current.volume()-.1)}),{enableOnContentEditable:!1});var x={autoplay:!1,controls:!0,responsive:!0,fluid:!1,playsInline:!0,liveui:!0,preload:"auto",controlBar:{progressControl:{seekBar:!1}},html5:{vhs:{enableLowInitialPlaylist:!0,experimentalBufferBasedABR:!0,useNetworkInformationApi:!0,maxPlaylistRetries:30}},liveTracker:{trackingThreshold:0,liveTolerance:15},sources:[{src:n,type:"application/x-mpegURL"}]};return(0,u.useEffect)((function(){q&&q.setClockSkew(v)}),[v]),(0,o.jsxs)("div",{style:{display:"grid"},children:[a&&(0,o.jsx)("div",{style:{gridColumn:1,gridRow:1},children:(0,o.jsx)(p,{options:x,onReady:function(e,n){t.current=e,function(){try{t.current.volume((0,j.$o)(O)||1)}catch(e){console.warn(e)}}(),function(e,t){if(window.hasOwnProperty("WebKitPlaybackTargetAvailabilityEvent")){var n=t.getComponent("Button"),i=t.extend(n,{constructor:function(){n.call(this,e)},handleClick:function(){try{document.getElementsByTagName("video")[0].webkitShowPlaybackTargetPicker()}catch(e){console.error(e)}}});e.controlBar.addChild(new i).addClass("vjs-airplay")}}(e,n),e.on("waiting",(function(){e.log("player is waiting")})),e.on("dispose",(function(){e.log("player will dispose"),J.stop()})),e.on("playing",(function(){e.log("player is playing"),J.start(),d(!0)})),e.on("pause",(function(){e.log("player is paused"),J.stop(),d(!1)})),e.on("ended",(function(){e.log("player is ended"),J.stop(),d(!1)})),n.hookOnce(),e.on("volumechange",m),(q=new P(e,n)).setClockSkew(v),w(e,n)}})}),(0,o.jsx)("div",{style:{gridColumn:1,gridRow:1},children:!f&&(0,o.jsx)(C,{online:a,initialSrc:"/thumbnail.jpg",src:"/thumbnail.jpg"})})]})}},29316:function(e){e.exports={outerContainer:"OfflineBanner_outerContainer__3AbsB",innerContainer:"OfflineBanner_innerContainer__zTm13",header:"OfflineBanner_header__Vu20o",footer:"OfflineBanner_footer__o3Zl5"}},93132:function(e){e.exports={statusbar:"Statusbar_statusbar__AtVnB"}},90121:function(e){e.exports={player:"Player_player__6VqUk",poster:"Player_poster____6gX"}},1125:function(e){e.exports={poster:"VideoPoster_poster__RDkSk"}},25893:function(){}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/9001-dfd80bc3c21b045b.js b/static/web/_next/static/chunks/9001-dfd80bc3c21b045b.js deleted file mode 100644 index 68048e5b1..000000000 --- a/static/web/_next/static/chunks/9001-dfd80bc3c21b045b.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9001],{94470:function(e){"use strict";var n=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},l=function(e){if(!e||"[object Object]"!==t.call(e))return!1;var r,o=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return"undefined"===typeof r||n.call(e,r)},u=function(e,n){r&&"__proto__"===n.name?r(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},a=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(o)return o(e,t).value}return e[t]};e.exports=function e(){var n,t,r,o,s,c,f=arguments[0],p=1,d=arguments.length,h=!1;for("boolean"===typeof f&&(h=f,f=arguments[1]||{},p=2),(null==f||"object"!==typeof f&&"function"!==typeof f)&&(f={});p=55296&&u<=57343){if(u>=55296&&u<=56319&&i+1=56320&&a<=57343){c+=encodeURIComponent(e[i]+e[i+1]),i++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[i]);return c}t.defaultChars=";/?:@&=+$,-_.!~*'()#",t.componentChars="-_.!~*'()",e.exports=t},69921:function(e,n){"use strict";var t,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function y(e){if("object"===typeof e&&null!==e){var n=e.$$typeof;switch(n){case r:switch(e=e.type){case i:case u:case l:case p:case d:return e;default:switch(e=e&&e.$$typeof){case c:case s:case f:case m:case h:case a:return e;default:return n}}case o:return n}}}t=Symbol.for("react.module.reference"),n.ContextConsumer=s,n.ContextProvider=a,n.Element=r,n.ForwardRef=f,n.Fragment=i,n.Lazy=m,n.Memo=h,n.Portal=o,n.Profiler=u,n.StrictMode=l,n.Suspense=p,n.SuspenseList=d,n.isAsyncMode=function(){return!1},n.isConcurrentMode=function(){return!1},n.isContextConsumer=function(e){return y(e)===s},n.isContextProvider=function(e){return y(e)===a},n.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},n.isForwardRef=function(e){return y(e)===f},n.isFragment=function(e){return y(e)===i},n.isLazy=function(e){return y(e)===m},n.isMemo=function(e){return y(e)===h},n.isPortal=function(e){return y(e)===o},n.isProfiler=function(e){return y(e)===u},n.isStrictMode=function(e){return y(e)===l},n.isSuspense=function(e){return y(e)===p},n.isSuspenseList=function(e){return y(e)===d},n.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===u||e===l||e===p||e===d||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===f||e.$$typeof===t||void 0!==e.getModuleId)},n.typeOf=y},59864:function(e,n,t){"use strict";e.exports=t(69921)},57848:function(e,n,t){var r=t(18139);e.exports=function(e,n){var t,o=null;if(!e||"string"!==typeof e)return o;for(var i,l,u=r(e),a="function"===typeof n,s=0,c=u.length;se.length){for(;i--;)if(47===e.charCodeAt(i)){if(t){r=i+1;break}}else o<0&&(t=!0,o=i+1);return o<0?"":e.slice(r,o)}if(n===e)return"";let l=-1,u=n.length-1;for(;i--;)if(47===e.charCodeAt(i)){if(t){r=i+1;break}}else l<0&&(t=!0,l=i+1),u>-1&&(e.charCodeAt(i)===n.charCodeAt(u--)?u<0&&(o=i):(u=-1,o=l));r===o?o=l:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(d(e),0===e.length)return".";let n,t=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(n){t=r;break}}else n||(n=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},extname:function(e){d(e);let n,t=e.length,r=-1,o=0,i=-1,l=0;for(;t--;){const u=e.charCodeAt(t);if(47!==u)r<0&&(n=!0,r=t+1),46===u?i<0?i=t:1!==l&&(l=1):i>-1&&(l=-1);else if(n){o=t+1;break}}if(i<0||r<0||0===l||1===l&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let n,t=-1;for(;++t2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),l=a,u=0;continue}}else if(o.length>0){o="",i=0,l=a,u=0;continue}n&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(l+1,a):o=e.slice(l+1,a),i=a-l-1;l=a,u=0}else 46===t&&u>-1?u++:u=-1}return o}(e,!n);0!==t.length||n||(t=".");t.length>0&&47===e.charCodeAt(e.length-1)&&(t+="/");return n?"/"+t:t}(n)},sep:"/"};function d(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const h={cwd:function(){return"/"}};function m(e){return null!==e&&"object"===typeof e&&e.href&&e.origin}function g(e){if("string"===typeof e)e=new URL(e);else if(!m(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const n=e.pathname;let t=-1;for(;++tn.length;let u;r&&n.push(o);try{u=e.apply(this,n)}catch(i){const n=i;if(r&&t)throw n;return o(n)}r||(u instanceof Promise?u.then(l,o):u instanceof Error?o(u):l(u))}function o(e,...r){t||(t=!0,n(e,...r))}function l(e){o(null,e)}}(u,o)(...l):r(null,...l)}}(null,...n)},use:function(t){if("function"!==typeof t)throw new TypeError("Expected `middelware` to be a function, not "+t);return e.push(t),n}};return n}const A=function e(){const n=E(),t=[];let r,o={},i=-1;return u.data=function(e,n){if("string"===typeof e)return 2===arguments.length?(I("data",r),o[e]=n,u):F.call(o,e)&&o[e]||null;if(e)return I("data",r),o=e,u;return o},u.Parser=void 0,u.Compiler=void 0,u.freeze=function(){if(r)return u;for(;++i{if(!e&&n&&t){const o=u.stringify(n,t);void 0===o||null===o||("string"===typeof(r=o)||l(r)?t.value=o:t.result=o),i(e,t)}else i(e);var r}))}t(null,n)},u.processSync=function(e){let n;u.freeze(),T("processSync",u.Parser),O("processSync",u.Compiler);const t=z(e);return u.process(t,r),D("processSync","process",n),t;function r(e){n=!0,S(e)}},u;function u(){const n=e();let r=-1;for(;++ro?0:o+n:n>o?o:n,t=t>0?t:0,r.length<1e4)i=Array.from(r),i.unshift(n,t),[].splice.apply(e,i);else for(t&&[].splice.apply(e,[n,t]);l0?(B(e,e.length,0,n),e):n}const _={}.hasOwnProperty;function N(e,n){let t;for(t in n){const r=(_.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let i;for(i in o){_.call(r,i)||(r[i]=[]);const e=o[i];H(r[i],Array.isArray(e)?e:e?[e]:[])}}}function H(e,n){let t=-1;const r=[];for(;++ti))return;const t=n.events.length;let o,u,a=t;for(;a--;)if("exit"===n.events[a][0]&&"chunkFlow"===n.events[a][1].type){if(o){u=n.events[a][1].end;break}o=!0}for(y(l),e=t;er;){const r=t[o];n.containerState=r[1],r[0].exit.call(n,e)}t.length=r}function k(){r.write([null]),o=void 0,r=void 0,n.containerState._closeFlow=void 0}}},oe={tokenize:function(e,n,t){return ne(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const ie={tokenize:function(e,n,t){return ne(e,(function(e){return null===e||X(e)?n(e):t(e)}),"linePrefix")},partial:!0};function le(e){const n={};let t,r,o,i,l,u,a,s=-1;for(;++s=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}},partial:!0};const ce={tokenize:function(e){const n=this,t=e.attempt(ie,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}),e.attempt(this.parser.constructs.flowInitial,r,ne(e,e.attempt(this.parser.constructs.flow,r,e.attempt(ae,r)),"linePrefix")));return t;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n.currentConstruct=void 0,t;e.consume(r)}}};const fe={resolveAll:me()},pe=he("string"),de=he("text");function he(e){return{tokenize:function(n){const t=this,r=this.parser.constructs[e],o=n.attempt(r,i,l);return i;function i(e){return a(e)?o(e):l(e)}function l(e){if(null!==e)return n.enter("data"),n.consume(e),u;n.consume(e)}function u(e){return a(e)?(n.exit("data"),o(e)):(n.consume(e),u)}function a(e){if(null===e)return!0;const n=r[e];let o=-1;if(n)for(;++o-1&&(l[0]=l[0].slice(r)),i>0&&l.push(e[o].slice(0,i)));return l}(l,e)}function h(){return Object.assign({},r)}function m(){let e;for(;r._indexs?t(o):(e.consume(o),h):41===o?c--?(e.consume(o),h):(e.exit("chunkString"),e.exit(u),e.exit(l),e.exit(r),n(o)):null===o||K(o)?c?t(o):(e.exit("chunkString"),e.exit(u),e.exit(l),e.exit(r),n(o)):Y(o)?t(o):(e.consume(o),92===o?m:h)}function m(n){return 40===n||41===n||92===n?(e.consume(n),h):h(n)}}function Ee(e,n,t,r,o,i){const l=this;let u,a=0;return function(n){return e.enter(r),e.enter(o),e.consume(n),e.exit(o),e.enter(i),s};function s(f){return null===f||91===f||93===f&&!u||94===f&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs||a>999?t(f):93===f?(e.exit(i),e.enter(o),e.consume(f),e.exit(o),e.exit(r),n):X(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(n){return null===n||91===n||93===n||X(n)||a++>999?(e.exit("chunkString"),s(n)):(e.consume(n),u=u||!Z(n),92===n?f:c)}function f(n){return 91===n||92===n||93===n?(e.consume(n),a++,c):c(n)}}function Ae(e,n,t,r,o,i){let l;return function(n){return e.enter(r),e.enter(o),e.consume(n),e.exit(o),l=40===n?41:n,u};function u(t){return t===l?(e.enter(o),e.consume(t),e.exit(o),e.exit(r),n):(e.enter(i),a(t))}function a(n){return n===l?(e.exit(i),u(l)):null===n?t(n):X(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ne(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(n))}function s(n){return n===l||null===n||X(n)?(e.exit("chunkString"),a(n)):(e.consume(n),92===n?c:s)}function c(n){return n===l||92===n?(e.consume(n),s):s(n)}}function Fe(e,n){let t;return function r(o){if(X(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t=!0,r;if(Z(o))return ne(e,r,t?"linePrefix":"lineSuffix")(o);return n(o)}}function Pe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Te={name:"definition",tokenize:function(e,n,t){const r=this;let o;return function(n){return e.enter("definition"),Ee.call(r,e,i,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(n)};function i(n){return o=Pe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===n?(e.enter("definitionMarker"),e.consume(n),e.exit("definitionMarker"),Fe(e,Ce(e,e.attempt(Oe,ne(e,l,"whitespace"),ne(e,l,"whitespace")),t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):t(n)}function l(i){return null===i||X(i)?(e.exit("definition"),r.parser.defined.includes(o)||r.parser.defined.push(o),n(i)):t(i)}}},Oe={tokenize:function(e,n,t){return function(n){return K(n)?Fe(e,r)(n):t(n)};function r(n){return 34===n||39===n||40===n?Ae(e,ne(e,o,"whitespace"),t,"definitionTitle","definitionTitleMarker","definitionTitleString")(n):t(n)}function o(e){return null===e||X(e)?n(e):t(e)}},partial:!0};const Ie={name:"codeIndented",tokenize:function(e,n,t){const r=this;return function(n){return e.enter("codeIndented"),ne(e,o,"linePrefix",5)(n)};function o(e){const n=r.events[r.events.length-1];return n&&"linePrefix"===n[1].type&&n[2].sliceSerialize(n[1],!0).length>=4?i(e):t(e)}function i(n){return null===n?u(n):X(n)?e.attempt(Le,i,u)(n):(e.enter("codeFlowValue"),l(n))}function l(n){return null===n||X(n)?(e.exit("codeFlowValue"),i(n)):(e.consume(n),l)}function u(t){return e.exit("codeIndented"),n(t)}}},Le={tokenize:function(e,n,t){const r=this;return o;function o(n){return r.parser.lazy[r.now().line]?t(n):X(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),o):ne(e,i,"linePrefix",5)(n)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?n(e):X(e)?o(e):t(e)}},partial:!0};const De={name:"headingAtx",tokenize:function(e,n,t){const r=this;let o=0;return function(n){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),i(n)};function i(u){return 35===u&&o++<6?(e.consume(u),i):null===u||K(u)?(e.exit("atxHeadingSequence"),r.interrupt?n(u):l(u)):t(u)}function l(t){return 35===t?(e.enter("atxHeadingSequence"),u(t)):null===t||X(t)?(e.exit("atxHeading"),n(t)):Z(t)?ne(e,l,"whitespace")(t):(e.enter("atxHeadingText"),a(t))}function u(n){return 35===n?(e.consume(n),u):(e.exit("atxHeadingSequence"),l(n))}function a(n){return null===n||35===n||K(n)?(e.exit("atxHeadingText"),l(n)):(e.consume(n),a)}},resolve:function(e,n){let t,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(t={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},B(e,i,o-i+1,[["enter",t,n],["enter",r,n],["exit",r,n],["exit",t,n]]));return e}};const ze={name:"setextUnderline",tokenize:function(e,n,t){const r=this;let o,i,l=r.events.length;for(;l--;)if("lineEnding"!==r.events[l][1].type&&"linePrefix"!==r.events[l][1].type&&"content"!==r.events[l][1].type){i="paragraph"===r.events[l][1].type;break}return function(n){if(!r.parser.lazy[r.now().line]&&(r.interrupt||i))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),o=n,u(n);return t(n)};function u(n){return n===o?(e.consume(n),u):(e.exit("setextHeadingLineSequence"),ne(e,a,"lineSuffix")(n))}function a(r){return null===r||X(r)?(e.exit("setextHeadingLine"),n(r)):t(r)}},resolveTo:function(e,n){let t,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){t=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const l={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",l,n]),e.splice(o+1,0,["exit",e[t][1],n]),e[t][1].end=Object.assign({},e[o][1].end)):e[t][1]=l;return e.push(["exit",l,n]),e}};const Me=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Re=["pre","script","style","textarea"],Be={name:"htmlFlow",tokenize:function(e,n,t){const r=this;let o,i,l,u,a;return function(n){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),s};function s(u){return 33===u?(e.consume(u),c):47===u?(e.consume(u),d):63===u?(e.consume(u),o=3,r.interrupt?n:z):U(u)?(e.consume(u),l=String.fromCharCode(u),i=!0,h):t(u)}function c(i){return 45===i?(e.consume(i),o=2,f):91===i?(e.consume(i),o=5,l="CDATA[",u=0,p):U(i)?(e.consume(i),o=4,r.interrupt?n:z):t(i)}function f(o){return 45===o?(e.consume(o),r.interrupt?n:z):t(o)}function p(o){return o===l.charCodeAt(u++)?(e.consume(o),u===l.length?r.interrupt?n:A:p):t(o)}function d(n){return U(n)?(e.consume(n),l=String.fromCharCode(n),h):t(n)}function h(u){return null===u||47===u||62===u||K(u)?47!==u&&i&&Re.includes(l.toLowerCase())?(o=1,r.interrupt?n(u):A(u)):Me.includes(l.toLowerCase())?(o=6,47===u?(e.consume(u),m):r.interrupt?n(u):A(u)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(u):i?y(u):g(u)):45===u||$(u)?(e.consume(u),l+=String.fromCharCode(u),h):t(u)}function m(o){return 62===o?(e.consume(o),r.interrupt?n:A):t(o)}function g(n){return Z(n)?(e.consume(n),g):C(n)}function y(n){return 47===n?(e.consume(n),C):58===n||95===n||U(n)?(e.consume(n),k):Z(n)?(e.consume(n),y):C(n)}function k(n){return 45===n||46===n||58===n||95===n||$(n)?(e.consume(n),k):x(n)}function x(n){return 61===n?(e.consume(n),v):Z(n)?(e.consume(n),x):y(n)}function v(n){return null===n||60===n||61===n||62===n||96===n?t(n):34===n||39===n?(e.consume(n),a=n,b):Z(n)?(e.consume(n),v):(a=null,S(n))}function b(n){return null===n||X(n)?t(n):n===a?(e.consume(n),w):(e.consume(n),b)}function S(n){return null===n||34===n||39===n||60===n||61===n||62===n||96===n||K(n)?x(n):(e.consume(n),S)}function w(e){return 47===e||62===e||Z(e)?y(e):t(e)}function C(n){return 62===n?(e.consume(n),E):t(n)}function E(n){return Z(n)?(e.consume(n),E):null===n||X(n)?A(n):t(n)}function A(n){return 45===n&&2===o?(e.consume(n),O):60===n&&1===o?(e.consume(n),I):62===n&&4===o?(e.consume(n),M):63===n&&3===o?(e.consume(n),z):93===n&&5===o?(e.consume(n),D):!X(n)||6!==o&&7!==o?null===n||X(n)?F(n):(e.consume(n),A):e.check(je,M,F)(n)}function F(n){return e.exit("htmlFlowData"),P(n)}function P(n){return null===n?R(n):X(n)?e.attempt({tokenize:T,partial:!0},P,R)(n):(e.enter("htmlFlowData"),A(n))}function T(e,n,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?t(e):n(e)}}function O(n){return 45===n?(e.consume(n),z):A(n)}function I(n){return 47===n?(e.consume(n),l="",L):A(n)}function L(n){return 62===n&&Re.includes(l.toLowerCase())?(e.consume(n),M):U(n)&&l.length<8?(e.consume(n),l+=String.fromCharCode(n),L):A(n)}function D(n){return 93===n?(e.consume(n),z):A(n)}function z(n){return 62===n?(e.consume(n),M):45===n&&2===o?(e.consume(n),z):A(n)}function M(n){return null===n||X(n)?(e.exit("htmlFlowData"),R(n)):(e.consume(n),M)}function R(t){return e.exit("htmlFlow"),n(t)}},resolveTo:function(e){let n=e.length;for(;n--&&("enter"!==e[n][0]||"htmlFlow"!==e[n][1].type););n>1&&"linePrefix"===e[n-2][1].type&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2));return e},concrete:!0},je={tokenize:function(e,n,t){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(ie,n,t)}},partial:!0};const _e={name:"codeFenced",tokenize:function(e,n,t){const r=this,o={tokenize:function(e,n,t){let r=0;return ne(e,o,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function o(n){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),i(n)}function i(n){return n===a?(e.consume(n),r++,i):r1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const f=Object.assign({},e[t][1].end),p=Object.assign({},e[c][1].start);Je(f,-u),Je(p,u),i={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[t][1].end)},l={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:p},o={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[t][1].end),end:Object.assign({},e[c][1].start)},r={type:u>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},l.end)},e[t][1].end=Object.assign({},i.start),e[c][1].start=Object.assign({},l.end),a=[],e[t][1].end.offset-e[t][1].start.offset&&(a=j(a,[["enter",e[t][1],n],["exit",e[t][1],n]])),a=j(a,[["enter",r,n],["enter",i,n],["exit",i,n],["enter",o,n]]),a=j(a,ye(n.parser.constructs.insideSpan.null,e.slice(t+1,c),n)),a=j(a,[["exit",o,n],["enter",l,n],["exit",l,n],["exit",r,n]]),e[c][1].end.offset-e[c][1].start.offset?(s=2,a=j(a,[["enter",e[c][1],n],["exit",e[c][1],n]])):s=0,B(e,t-1,c-t+3,a),c=t+a.length-s-2;break}c=-1;for(;++c13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||65535===(65535&t)||65534===(65535&t)||t>1114111?"\ufffd":String.fromCharCode(t)}const yn=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function kn(e,n,t){if(n)return n;if(35===t.charCodeAt(0)){const e=t.charCodeAt(1),n=120===e||88===e;return gn(t.slice(n?2:1),n?16:10)}return He(t)||e}function xn(e){return e&&"object"===typeof e?"position"in e||"type"in e?bn(e.position):"start"in e||"end"in e?bn(e):"line"in e||"column"in e?vn(e):"":""}function vn(e){return Sn(e&&e.line)+":"+Sn(e&&e.column)}function bn(e){return vn(e&&e.start)+"-"+vn(e&&e.end)}function Sn(e){return e&&"number"===typeof e?e:1}const wn={}.hasOwnProperty,Cn=function(e,n,t){return"string"!==typeof n&&(t=n,n=void 0),function(e={}){const n=En({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(oe),autolinkProtocol:P,autolinkEmail:P,atxHeading:a(ee),blockQuote:a(K),characterEscape:P,characterReference:P,codeFenced:a(X),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(X,s),codeText:a(Z,s),codeTextData:P,data:P,codeFlowValue:P,definition:a(J),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(G),hardBreakEscape:a(ne),hardBreakTrailing:a(ne),htmlFlow:a(te,s),htmlFlowData:P,htmlText:a(te,s),htmlTextData:P,image:a(re),label:s,link:a(oe),listItem:a(le),listItemValue:m,listOrdered:a(ie,h),listUnordered:a(ie),paragraph:a(ue),reference:V,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(ee),strong:a(ae),thematicBreak:a(ce)},exit:{atxHeading:f(),atxHeadingSequence:C,autolink:f(),autolinkEmail:Y,autolinkProtocol:Q,blockQuote:f(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:$,characterReferenceMarkerNumeric:$,characterReferenceValue:W,codeFenced:f(x),codeFencedFence:k,codeFencedFenceInfo:g,codeFencedFenceMeta:y,codeFlowValue:T,codeIndented:f(v),codeText:f(z),codeTextData:T,data:T,definition:f(),definitionDestinationString:w,definitionLabelString:b,definitionTitleString:S,emphasis:f(),hardBreakEscape:f(I),hardBreakTrailing:f(I),htmlFlow:f(L),htmlFlowData:T,htmlText:f(D),htmlTextData:T,image:f(B),label:_,labelText:j,lineEnding:O,link:f(R),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:q,resourceDestinationString:N,resourceTitleString:H,resource:U,setextHeading:f(F),setextHeadingLineSequence:A,setextHeadingText:E,strong:f(),thematicBreak:f()}},e.mdastExtensions||[]),t={};return r;function r(e){let t={type:"root",children:[]};const r=[],a=[],f={stack:[t],tokenStack:r,config:n,enter:c,exit:p,buffer:s,resume:d,setData:i,getData:l};let h=-1;for(;++h0){const e=r[r.length-1];(e[1]||Fn).call(f,void 0,e[0])}for(t.position={start:u(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:u(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},h=-1;++h{const t=this.data("settings");return Cn(n,Object.assign({},t,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})},Tn=function(e,n,t){var r={type:String(e)};return void 0!==t&&null!==t||"string"!==typeof n&&!Array.isArray(n)?Object.assign(r,n):t=n,Array.isArray(t)?r.children=t:void 0!==t&&null!==t&&(r.value=String(t)),r};const On=function(e){if(void 0===e||null===e)return Ln;if("string"===typeof e)return function(e){return In(n);function n(n){return n&&n.type===e}}(e);if("object"===typeof e)return Array.isArray(e)?function(e){const n=[];let t=-1;for(;++t":"")+")"}));return f;function f(){let s,c,f,p=[];if((!n||o(l,u,a[a.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[true,e];return[e]}(t(l,a)),false===p[0]))return p;if(l.children&&"skip"!==p[0])for(c=(r?l.children.length:-1)+i,f=a.concat(l);c>-1&&c-1?t.offset:null}}}const jn={}.hasOwnProperty;function _n(e){return String(e||"").toUpperCase()}const Nn={}.hasOwnProperty;function Hn(e,n){const t=n.data||{};return"value"in n&&!(Nn.call(t,"hName")||Nn.call(t,"hProperties")||Nn.call(t,"hChildren"))?e.augment(n,Tn("text",n.value)):e(n,"div",qn(e,n))}function Un(e,n,t){const r=n&&n.type;let o;if(!r)throw new Error("Expected node, got `"+n+"`");return o=Nn.call(e.handlers,r)?e.handlers[r]:e.passThrough&&e.passThrough.includes(r)?Vn:e.unknownHandler,("function"===typeof o?o:Hn)(e,n,t)}function Vn(e,n){return"children"in n?{...n,children:qn(e,n)}:n}function qn(e,n){const t=[];if("children"in n){const r=n.children;let o=-1;for(;++o":"gt"};function Wn(e,n){const t=function(e){return e.replace(/["&<>]/g,(function(e){return"&"+$n[e]+";"}))}(function(e){const n=[];let t=-1,r=0,o=0;for(;++t55295&&i<57344){const n=e.charCodeAt(t+1);i<56320&&n>56319&&n<57344?(l=String.fromCharCode(i,n),o=1):l="\ufffd"}else l=String.fromCharCode(i);l&&(n.push(e.slice(r,t),encodeURIComponent(l)),r=t+o+1,l=""),o&&(t+=o,o=0)}return n.join("")+e.slice(r)}(e||""));if(!n)return t;const r=t.indexOf(":"),o=t.indexOf("?"),i=t.indexOf("#"),l=t.indexOf("/");return r<0||l>-1&&r>l||o>-1&&r>o||i>-1&&r>i||n.test(t.slice(0,r))?t:""}function Qn(e,n){const t=[];let r=-1;for(n&&t.push(Tn("text","\n"));++r0&&t.push(Tn("text","\n")),t}function Yn(e,n){const t=String(n.identifier),r=Wn(t.toLowerCase()),o=e.footnoteOrder.indexOf(t);let i;-1===o?(e.footnoteOrder.push(t),e.footnoteCounts[t]=1,i=e.footnoteOrder.length):(e.footnoteCounts[t]++,i=o+1);const l=e.footnoteCounts[t];return e(n,"sup",[e(n.position,"a",{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:"footnote-label"},[Tn("text",String(i))])])}var Kn=t(70729);function Xn(e,n){const t=n.referenceType;let r="]";if("collapsed"===t?r+="[]":"full"===t&&(r+="["+(n.label||n.identifier)+"]"),"imageReference"===n.type)return Tn("text","!["+n.alt+r);const o=qn(e,n),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift(Tn("text","["));const l=o[o.length-1];return l&&"text"===l.type?l.value+=r:o.push(Tn("text",r)),o}function Zn(e){const n=e.spread;return void 0===n||null===n?e.children.length>1:n}function Jn(e,n,t){let r=0,o=e.length;if(n){let n=e.codePointAt(r);for(;9===n||32===n;)r++,n=e.codePointAt(r)}if(t){let n=e.codePointAt(o-1);for(;9===n||32===n;)o--,n=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const Gn={blockquote:function(e,n){return e(n,"blockquote",Qn(qn(e,n),!0))},break:function(e,n){return[e(n,"br"),Tn("text","\n")]},code:function(e,n){const t=n.value?n.value+"\n":"",r=n.lang&&n.lang.match(/^[^ \t]+(?=[ \t]|$)/),o={};r&&(o.className=["language-"+r]);const i=e(n,"code",o,[Tn("text",t)]);return n.meta&&(i.data={meta:n.meta}),e(n.position,"pre",[i])},delete:function(e,n){return e(n,"del",qn(e,n))},emphasis:function(e,n){return e(n,"em",qn(e,n))},footnoteReference:Yn,footnote:function(e,n){const t=e.footnoteById;let r=1;for(;r in t;)r++;const o=String(r);return t[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:n.children}],position:n.position},Yn(e,{type:"footnoteReference",identifier:o,position:n.position})},heading:function(e,n){return e(n,"h"+n.depth,qn(e,n))},html:function(e,n){return e.dangerous?e.augment(n,Tn("raw",n.value)):null},imageReference:function(e,n){const t=e.definition(n.identifier);if(!t)return Xn(e,n);const r={src:Kn(t.url||""),alt:n.alt};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(n,"img",r)},image:function(e,n){const t={src:Kn(n.url),alt:n.alt};return null!==n.title&&void 0!==n.title&&(t.title=n.title),e(n,"img",t)},inlineCode:function(e,n){return e(n,"code",[Tn("text",n.value.replace(/\r?\n|\r/g," "))])},linkReference:function(e,n){const t=e.definition(n.identifier);if(!t)return Xn(e,n);const r={href:Kn(t.url||"")};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(n,"a",r,qn(e,n))},link:function(e,n){const t={href:Kn(n.url)};return null!==n.title&&void 0!==n.title&&(t.title=n.title),e(n,"a",t,qn(e,n))},listItem:function(e,n,t){const r=qn(e,n),o=t?function(e){let n=e.spread;const t=e.children;let r=-1;for(;!n&&++r0&&t.children.unshift(Tn("text"," ")),t.children.unshift(e(null,"input",{type:"checkbox",checked:n.checked,disabled:!0})),i.className=["task-list-item"]}let u=-1;for(;++u0,!0),r[0]),o=r.index+r[0].length,r=t.exec(n);return i.push(Jn(n.slice(o),o>0,!1)),i.join("")}(String(n.value))))},thematicBreak:function(e,n){return e(n,"hr")},toml:et,yaml:et,definition:et,footnoteDefinition:et};function et(){return null}const nt={}.hasOwnProperty;function tt(e,n){const t=n||{},r=t.allowDangerousHtml||!1,o={};return l.dangerous=r,l.clobberPrefix=void 0===t.clobberPrefix||null===t.clobberPrefix?"user-content-":t.clobberPrefix,l.footnoteLabel=t.footnoteLabel||"Footnotes",l.footnoteLabelTagName=t.footnoteLabelTagName||"h2",l.footnoteLabelProperties=t.footnoteLabelProperties||{className:["sr-only"]},l.footnoteBackLabel=t.footnoteBackLabel||"Back to content",l.definition=function(e){const n=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return zn(e,"definition",(e=>{const t=_n(e.identifier);t&&!jn.call(n,t)&&(n[t]=e)})),function(e){const t=_n(e);return t&&jn.call(n,t)?n[t]:null}}(e),l.footnoteById=o,l.footnoteOrder=[],l.footnoteCounts={},l.augment=i,l.handlers={...Gn,...t.handlers},l.unknownHandler=t.unknownHandler,l.passThrough=t.passThrough,zn(e,"footnoteDefinition",(e=>{const n=String(e.identifier).toUpperCase();nt.call(o,n)||(o[n]=e)})),l;function i(e,n){if(e&&"data"in e&&e.data){const t=e.data;t.hName&&("element"!==n.type&&(n={type:"element",tagName:"",properties:{},children:[]}),n.tagName=t.hName),"element"===n.type&&t.hProperties&&(n.properties={...n.properties,...t.hProperties}),"children"in n&&n.children&&t.hChildren&&(n.children=t.hChildren)}if(e){const r="type"in e?e:{position:e};(t=r)&&t.position&&t.position.start&&t.position.start.line&&t.position.start.column&&t.position.end&&t.position.end.line&&t.position.end.column&&(n.position={start:Mn(r),end:Rn(r)})}var t;return n}function l(e,n,t,r){return Array.isArray(t)&&(r=t,t={}),i(e,{type:"element",tagName:n,properties:t||{},children:r||[]})}}function rt(e,n){const t=tt(e,n),r=Un(t,e,null),o=function(e){let n=-1;const t=[];for(;++n1?"-"+u:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"\u21a9"}]};u>1&&n.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(u)}]}),a.length>0&&a.push({type:"text",value:" "}),a.push(n)}const s=o[o.length-1];if(s&&"element"===s.type&&"p"===s.tagName){const e=s.children[s.children.length-1];e&&"text"===e.type?e.value+=" ":s.children.push({type:"text",value:" "}),s.children.push(...a)}else o.push(...a);const c={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+l},children:Qn(o,!0)};r.position&&(c.position=r.position),t.push(c)}return 0===t.length?null:{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[Tn("text",e.footnoteLabel)]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:Qn(t,!0)},{type:"text",value:"\n"}]}}(t);return o&&r.children.push(Tn("text","\n"),o),Array.isArray(r)?{type:"root",children:r}:r}var ot=function(e,n){return e&&"run"in e?function(e,n){return(t,r,o)=>{e.run(rt(t,n),r,(e=>{o(e)}))}}(e,n):function(e){return n=>rt(n,e)}(e||n)};var it=t(45697);class lt{constructor(e,n,t){this.property=e,this.normal=n,t&&(this.space=t)}}function ut(e,n){const t={},r={};let o=-1;for(;++o"xlink:"+n.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Et=wt({space:"xml",transform:(e,n)=>"xml:"+n.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function At(e,n){return n in e?e[n]:n}function Ft(e,n){return At(e,n.toLowerCase())}const Pt=wt({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Ft,properties:{xmlns:null,xmlnsXLink:null}}),Tt=wt({transform:(e,n)=>"role"===n?n:"aria-"+n.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:pt,ariaAutoComplete:null,ariaBusy:pt,ariaChecked:pt,ariaColCount:ht,ariaColIndex:ht,ariaColSpan:ht,ariaControls:mt,ariaCurrent:null,ariaDescribedBy:mt,ariaDetails:null,ariaDisabled:pt,ariaDropEffect:mt,ariaErrorMessage:null,ariaExpanded:pt,ariaFlowTo:mt,ariaGrabbed:pt,ariaHasPopup:null,ariaHidden:pt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:mt,ariaLevel:ht,ariaLive:null,ariaModal:pt,ariaMultiLine:pt,ariaMultiSelectable:pt,ariaOrientation:null,ariaOwns:mt,ariaPlaceholder:null,ariaPosInSet:ht,ariaPressed:pt,ariaReadOnly:pt,ariaRelevant:null,ariaRequired:pt,ariaRoleDescription:mt,ariaRowCount:ht,ariaRowIndex:ht,ariaRowSpan:ht,ariaSelected:pt,ariaSetSize:ht,ariaSort:null,ariaValueMax:ht,ariaValueMin:ht,ariaValueNow:ht,ariaValueText:null,role:null}}),Ot=wt({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ft,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:gt,acceptCharset:mt,accessKey:mt,action:null,allow:null,allowFullScreen:ft,allowPaymentRequest:ft,allowUserMedia:ft,alt:null,as:null,async:ft,autoCapitalize:null,autoComplete:mt,autoFocus:ft,autoPlay:ft,capture:ft,charSet:null,checked:ft,cite:null,className:mt,cols:ht,colSpan:null,content:null,contentEditable:pt,controls:ft,controlsList:mt,coords:ht|gt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ft,defer:ft,dir:null,dirName:null,disabled:ft,download:dt,draggable:pt,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ft,formTarget:null,headers:mt,height:ht,hidden:ft,high:ht,href:null,hrefLang:null,htmlFor:mt,httpEquiv:mt,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:ft,itemId:null,itemProp:mt,itemRef:mt,itemScope:ft,itemType:mt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ft,low:ht,manifest:null,max:null,maxLength:ht,media:null,method:null,min:null,minLength:ht,multiple:ft,muted:ft,name:null,nonce:null,noModule:ft,noValidate:ft,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ft,optimum:ht,pattern:null,ping:mt,placeholder:null,playsInline:ft,poster:null,preload:null,readOnly:ft,referrerPolicy:null,rel:mt,required:ft,reversed:ft,rows:ht,rowSpan:ht,sandbox:mt,scope:null,scoped:ft,seamless:ft,selected:ft,shape:null,size:ht,sizes:null,slot:null,span:ht,spellCheck:pt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ht,step:null,style:null,tabIndex:ht,target:null,title:null,translate:null,type:null,typeMustMatch:ft,useMap:null,value:pt,width:ht,wrap:null,align:null,aLink:null,archive:mt,axis:null,background:null,bgColor:null,border:ht,borderColor:null,bottomMargin:ht,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ft,declare:ft,event:null,face:null,frame:null,frameBorder:null,hSpace:ht,leftMargin:ht,link:null,longDesc:null,lowSrc:null,marginHeight:ht,marginWidth:ht,noResize:ft,noHref:ft,noShade:ft,noWrap:ft,object:null,profile:null,prompt:null,rev:null,rightMargin:ht,rules:null,scheme:null,scrolling:pt,standby:null,summary:null,text:null,topMargin:ht,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ht,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ft,disableRemotePlayback:ft,prefix:null,property:null,results:ht,security:null,unselectable:null}}),It=wt({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:At,properties:{about:yt,accentHeight:ht,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ht,amplitude:ht,arabicForm:null,ascent:ht,attributeName:null,attributeType:null,azimuth:ht,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ht,by:null,calcMode:null,capHeight:ht,className:mt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ht,diffuseConstant:ht,direction:null,display:null,dur:null,divisor:ht,dominantBaseline:null,download:ft,dx:null,dy:null,edgeMode:null,editable:null,elevation:ht,enableBackground:null,end:null,event:null,exponent:ht,externalResourcesRequired:null,fill:null,fillOpacity:ht,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:gt,g2:gt,glyphName:gt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ht,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ht,horizOriginX:ht,horizOriginY:ht,id:null,ideographic:ht,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ht,k:ht,k1:ht,k2:ht,k3:ht,k4:ht,kernelMatrix:yt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ht,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ht,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ht,overlineThickness:ht,paintOrder:null,panose1:null,path:null,pathLength:ht,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:mt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ht,pointsAtY:ht,pointsAtZ:ht,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:yt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:yt,rev:yt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:yt,requiredFeatures:yt,requiredFonts:yt,requiredFormats:yt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ht,specularExponent:ht,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ht,strikethroughThickness:ht,string:null,stroke:null,strokeDashArray:yt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ht,strokeOpacity:ht,strokeWidth:null,style:null,surfaceScale:ht,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:yt,tabIndex:ht,tableValues:null,target:null,targetX:ht,targetY:ht,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:yt,to:null,transform:null,u1:null,u2:null,underlinePosition:ht,underlineThickness:ht,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ht,values:null,vAlphabetic:ht,vMathematical:ht,vectorEffect:null,vHanging:ht,vIdeographic:ht,version:null,vertAdvY:ht,vertOriginX:ht,vertOriginY:ht,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ht,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Lt=ut([Et,Ct,Pt,Tt,Ot],"html"),Dt=ut([Et,Ct,Pt,Tt,It],"svg"),zt=function(e){if(void 0===e||null===e)return Rt;if("string"===typeof e)return function(e){return Mt(n);function n(n){return n&&n.type===e}}(e);if("object"===typeof e)return Array.isArray(e)?function(e){const n=[];let t=-1;for(;++t":"")+")"}));return f;function f(){let s,c,f,p=[];if((!n||o(l,u,a[a.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[true,e];return[e]}(t(l,a)),false===p[0]))return p;if(l.children&&"skip"!==p[0])for(c=(r?l.children.length:-1)+i,f=a.concat(l);c>-1&&c{!function(e,n,t,r){"function"===typeof n&&"function"!==typeof t&&(r=t,t=n,n=null),Bt(e,n,(function(e,n){const r=n[n.length-1];return t(e,r?r.children.indexOf(e):null,r)}),r)}(n,"element",((n,t,r)=>{const o=r;let i;if(e.allowedElements?i=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(i=e.disallowedElements.includes(n.tagName)),!i&&e.allowElement&&"number"===typeof t&&(i=!e.allowElement(n,t,o)),i&&"number"===typeof t)return e.unwrapDisallowed&&n.children?o.children.splice(t,1,...n.children):o.children.splice(t,1),t}))}}const _t=["http","https","mailto","tel"];var Nt=t(59864);function Ht(e){var n=e&&"object"===typeof e&&"text"===e.type?e.value||"":e;return"string"===typeof n&&""===n.replace(/[ \t\n\f\r]/g,"")}const Ut=/^data[-\w.:]+$/i,Vt=/-[a-z]/g,qt=/[A-Z]/g;function $t(e){return"-"+e.toLowerCase()}function Wt(e){return e.charAt(1).toUpperCase()}const Qt={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var Yt=t(57848);const Kt={}.hasOwnProperty,Xt=new Set(["table","thead","tbody","tfoot","tr"]);function Zt(e,n){const t=[];let r,o=-1;for(;++oString(e))).join("")),!h&&o.rawSourcePos&&(a.sourcePosition=n.position),!h&&o.includeElementIndex&&(a.index=Gt(r,n),a.siblingCount=Gt(r)),h||(a.node=n),f.length>0?i.createElement(d,a,f):i.createElement(d,a)}function Gt(e,n){let t=-1,r=0;for(;++t4&&"data"===t.slice(0,4)&&Ut.test(n)){if("-"===n.charAt(4)){const e=n.slice(5).replace(Vt,Wt);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=n.slice(4);if(!Vt.test(e)){let t=e.replace(qt,$t);"-"!==t.charAt(0)&&(t="-"+t),n="data"+t}}o=vt}return new o(r,n)}(r.schema,n);let i=t;null!==i&&void 0!==i&&i===i&&(Array.isArray(i)&&(i=o.commaSeparated?function(e,n){var t=n||{};return""===e[e.length-1]&&(e=e.concat("")),e.join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(i):i.join(" ").trim()),"style"===o.property&&"string"===typeof i&&(i=function(e){const n={};try{Yt(e,t)}catch{}return n;function t(e,t){const r="-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e;n[r.replace(/-([a-z])/g,nr)]=t}}(i)),o.space&&o.property?e[Kt.call(Qt,o.property)?Qt[o.property]:o.property]=i:o.attribute&&(e[o.attribute]=i))}function nr(e,n){return n.toUpperCase()}const tr={}.hasOwnProperty,rr={plugins:{to:"plugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function or(e){for(const i in rr)if(tr.call(rr,i)&&tr.call(e,i)){const e=rr[i];console.warn(`[react-markdown] Warning: please ${e.to?`use \`${e.to}\` instead of`:"remove"} \`${i}\` (see for more info)`),delete rr[i]}const n=A().use(Pn).use(e.remarkPlugins||[]).use(ot,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(jt,e),t=new k;"string"===typeof e.children?t.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=n.runSync(n.parse(t),t);if("root"!==r.type)throw new TypeError("Expected a `root` node");let o=i.createElement(i.Fragment,{},Zt({options:e,schema:Lt,listDepth:0},r));return e.className&&(o=i.createElement("div",{className:e.className},o)),o}or.defaultProps={transformLinkUri:function(e){const n=(e||"").trim(),t=n.charAt(0);if("#"===t||"/"===t)return n;const r=n.indexOf(":");if(-1===r)return n;let o=-1;for(;++o<_t.length;){const e=_t[o];if(r===e.length&&n.slice(0,e.length).toLowerCase()===e)return n}return o=n.indexOf("?"),-1!==o&&r>o?n:(o=n.indexOf("#"),-1!==o&&r>o?n:"javascript:void(0)")}},or.propTypes={children:it.string,className:it.string,allowElement:it.func,allowedElements:it.arrayOf(it.string),disallowedElements:it.arrayOf(it.string),unwrapDisallowed:it.bool,remarkPlugins:it.arrayOf(it.oneOfType([it.object,it.func,it.arrayOf(it.oneOfType([it.bool,it.string,it.object,it.func,it.arrayOf(it.any)]))])),rehypePlugins:it.arrayOf(it.oneOfType([it.object,it.func,it.arrayOf(it.oneOfType([it.bool,it.string,it.object,it.func,it.arrayOf(it.any)]))])),sourcePos:it.bool,rawSourcePos:it.bool,skipHtml:it.bool,includeElementIndex:it.bool,transformLinkUri:it.oneOfType([it.func,it.bool]),linkTarget:it.oneOfType([it.func,it.string]),transformImageUri:it.func,components:it.object}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/d2094a0f-f60fcb088b6bb78d.js b/static/web/_next/static/chunks/d2094a0f-f60fcb088b6bb78d.js deleted file mode 100644 index 9f9503d75..000000000 --- a/static/web/_next/static/chunks/d2094a0f-f60fcb088b6bb78d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8700],{96391:function(e,t,r){r.d(t,{BU:function(){return Ft},CX:function(){return vt},F3:function(){return fe},UE:function(){return yt},mH:function(){return Dt},vt:function(){return Re}});var a=r(6907),n=r.n(a),o=r(23279),i=r.n(o),s=r(23493),l=r.n(s),d=r(67294),c=r(12615),u=r(77493),f=r(18156),v=r(73935);function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r,a,n={},o=Object.keys(e);for(a=0;a=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var g=0;class m{constructor(){this.id="".concat(g++)}}var w=new WeakMap,M=new WeakMap,b=new WeakMap,x=new WeakMap,k=new WeakMap,y=new WeakMap,L=new WeakMap,C=new WeakMap,D=new WeakMap,E=new WeakMap,O=new WeakMap,S=new WeakMap,B=new WeakMap,F=new WeakMap,P=new WeakMap,R=new WeakMap,N=new WeakMap,T=new WeakMap,W=new WeakMap,j=new WeakMap,A=new WeakMap,I=Symbol("placeholder"),q=Symbol("mark-placeholder"),Y=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,U=e=>$(e)&&1===e.nodeType,$=e=>{var t=Y(e);return!!t&&e instanceof t.Node},_=e=>{var t=e&&e.anchorNode&&Y(e.anchorNode);return!!t&&e instanceof t.Selection},z=e=>$(e)&&3===e.nodeType,V=(e,t,r)=>{for(var a,{childNodes:n}=e,o=n[t],i=t,s=!1,l=!1;($(a=o)&&8===a.nodeType||U(o)&&0===o.childNodes.length||U(o)&&"false"===o.getAttribute("contenteditable"))&&(!s||!l);)i>=n.length?(s=!0,i=t-1,r="backward"):i<0?(l=!0,i=t+1,r="forward"):(o=n[i],t=i,i+="forward"===r?1:-1);return[o,t]},K=(e,t,r)=>{var[a]=V(e,t,r);return a},H=e=>{var t="";if(z(e)&&e.nodeValue)return e.nodeValue;if(U(e)){for(var r of Array.from(e.childNodes))t+=H(r);var a=getComputedStyle(e).getPropertyValue("display");"block"!==a&&"list"!==a&&"BR"!==e.tagName||(t+="\n")}return t},X=/data-slate-fragment="(.+?)"/m,J=(e,t,r)=>{var{target:a}=t;if(U(a)&&a.matches('[contentEditable="false"]'))return!1;var{document:n}=fe.getWindow(e);if(n.contains(a))return fe.hasDOMNode(e,a,{editable:!0});var o=r.find((e=>{var{addedNodes:t,removedNodes:r}=e;for(var n of t)if(n===a||n.contains(a))return!0;for(var o of r)if(o===a||o.contains(a))return!0}));return!(!o||o===t)&&J(e,o,r)},Q=parseInt(d.version.split(".")[0],10)>=17,Z="undefined"!==typeof navigator&&"undefined"!==typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,G="undefined"!==typeof navigator&&/Mac OS X/.test(navigator.userAgent),ee="undefined"!==typeof navigator&&/Android/.test(navigator.userAgent),te="undefined"!==typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),re="undefined"!==typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),ae="undefined"!==typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),ne="undefined"!==typeof navigator&&/Chrome/i.test(navigator.userAgent),oe="undefined"!==typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),ie="undefined"!==typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),se="undefined"!==typeof navigator&&/.*QQBrowser/.test(navigator.userAgent),le="undefined"!==typeof navigator&&/.*UCBrowser/.test(navigator.userAgent),de="undefined"!==typeof navigator&&/.*Wechat/.test(navigator.userAgent),ce=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),ue=!oe&&!ae&&"undefined"!==typeof globalThis&&globalThis.InputEvent&&"function"===typeof globalThis.InputEvent.prototype.getTargetRanges,fe={isComposing:e=>!!S.get(e),getWindow(e){var t=b.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey(e,t){var r=C.get(t);return r||(r=new m,C.set(t,r)),r},findPath(e,t){for(var r=[],a=t;;){var n=M.get(a);if(null==n){if(u.ML.isEditor(a))return r;break}var o=w.get(a);if(null==o)break;r.unshift(o),a=n}throw new Error("Unable to find the path for Slate node: ".concat(u.o4.stringify(t)))},findDocumentOrShadowRoot(e){var t=fe.toDOMNode(e,e),r=t.getRootNode();return(r instanceof Document||r instanceof ShadowRoot)&&null!=r.getSelection?r:t.ownerDocument},isFocused:e=>!!O.get(e),isReadOnly:e=>!!E.get(e),blur(e){var t=fe.toDOMNode(e,e),r=fe.findDocumentOrShadowRoot(e);O.set(e,!1),r.activeElement===t&&t.blur()},focus(e){var t=fe.toDOMNode(e,e),r=fe.findDocumentOrShadowRoot(e);O.set(e,!0),r.activeElement!==t&&t.focus({preventScroll:!0})},deselect(e){fe.toDOMNode(e,e);var{selection:t}=e,r=fe.findDocumentOrShadowRoot(e).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),t&&u.YR.deselect(e)},hasDOMNode(e,t){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{editable:n=!1}=a,o=fe.toDOMNode(e,e);try{r=U(t)?t:t.parentElement}catch(i){if(!i.message.includes('Permission denied to access property "nodeType"'))throw i}return!!r&&(r.closest("[data-slate-editor]")===o&&(!(n&&!r.isContentEditable)||("boolean"===typeof r.isContentEditable&&r.closest('[contenteditable="false"]')===o||!!r.getAttribute("data-slate-zero-width"))))},insertData(e,t){e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),setFragmentData(e,t,r){e.setFragmentData(t,r)},toDOMNode(e,t){var r=D.get(e),a=u.ML.isEditor(t)?x.get(e):null===r||void 0===r?void 0:r.get(fe.findKey(e,t));if(!a)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(u.o4.stringify(t)));return a},toDOMPoint(e,t){var r,[a]=u.ML.node(e,t.path),n=fe.toDOMNode(e,a);u.ML.void(e,{at:t})&&(t={path:t.path,offset:0});for(var o=Array.from(n.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),i=0,s=0;s{var[t,r]=e;if(U(t)&&t.childNodes.length){var a=r===t.childNodes.length,n=a?r-1:r;for([t,n]=V(t,n,a?"backward":"forward"),a=n{ee&&!a&&e.hasAttribute("data-slate-zero-width")&&e.textContent.length>0&&"\ufeff"!==e.textContext?e.textContent.startsWith("\ufeff")&&(e.textContent=e.textContent.slice(1)):e.parentNode.removeChild(e)})),d=M.textContent.length,m=l}}else if(p){for(var b=p.querySelectorAll("[data-slate-leaf]"),x=0;x{d-=e.textContent.length}))):d=1}m&&d===m.textContent.length&&ee&&"z"===m.getAttribute("data-slate-zero-width")&&null!==(c=m.textContent)&&void 0!==c&&c.startsWith("\ufeff")&&(s.hasAttribute("data-slate-zero-width")||te&&null!==(f=m.textContent)&&void 0!==f&&f.endsWith("\n\n"))&&d--}if(ee&&!l&&!a){var y=s.hasAttribute("data-slate-node")?s:s.closest("[data-slate-node]");if(y&&fe.hasDOMNode(e,y,{editable:!0})){var L=fe.toSlateNode(e,y),{path:C,offset:D}=u.ML.start(e,fe.findPath(e,L));return y.querySelector("[data-slate-leaf]")||(D=i),{path:C,offset:D}}}if(!l){if(n)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var E=fe.toSlateNode(e,l);return{path:fe.findPath(e,E),offset:d}},toSlateRange(e,t,r){var a,n,o,i,s,{exactMatch:l,suppressThrow:d}=r;if((_(t)?t.anchorNode:t.startContainer)&&(_(t)?(a=t.anchorNode,n=t.anchorOffset,o=t.focusNode,i=t.focusOffset,s=ne&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(a=t.startContainer,n=t.startOffset,o=t.endContainer,i=t.endOffset,s=t.collapsed)),null==a||null==o||null==n||null==i)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));var c=fe.toSlatePoint(e,[a,n],{exactMatch:l,suppressThrow:d});if(!c)return null;var f=s?c:fe.toSlatePoint(e,[o,i],{exactMatch:l,suppressThrow:d});if(!f)return null;var v={anchor:c,focus:f};return u.e6.isExpanded(v)&&u.e6.isForward(v)&&U(o)&&u.ML.void(e,{at:v.focus,mode:"highest"})&&(v=u.ML.unhangRange(e,v,{voids:!0})),v},hasRange(e,t){var{anchor:r,focus:a}=t;return u.ML.hasPath(e,r.path)&&u.ML.hasPath(e,a.path)},androidScheduleFlush(e){var t;null===(t=P.get(e))||void 0===t||t()},androidPendingDiffs:e=>T.get(e)},ve=ce?d.useLayoutEffect:d.useEffect,he=["anchor","focus"],pe=["anchor","focus"],ge=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every((r=>t.hasOwnProperty(r)&&e[r]===t[r])),me=(e,t)=>{if(e.length!==t.length)return!1;for(var r=0;r{var{isLast:t,leaf:r,parent:a,text:n}=e,o=ke(),i=fe.findPath(o,n),s=u.y$.parent(i),l=!0===r[q];return o.isVoid(a)?d.createElement(be,{length:u.NB.string(a).length}):""!==r.text||a.children[a.children.length-1]!==n||o.isInline(a)||""!==u.ML.string(o,s)?""===r.text?d.createElement(be,{isMarkPlaceholder:l}):t&&"\n"===r.text.slice(-1)?d.createElement(Me,{isTrailing:!0,text:r.text}):d.createElement(Me,{text:r.text}):d.createElement(be,{isLineBreak:!0,isMarkPlaceholder:l})},Me=e=>{var{text:t,isTrailing:r=!1}=e,a=(0,d.useRef)(null),n=()=>"".concat(null!==t&&void 0!==t?t:"").concat(r?"\n":"");return ve((()=>{var e=n();a.current&&a.current.textContent!==e&&(a.current.textContent=e)})),a.current?d.createElement("span",{"data-slate-string":!0,ref:a}):d.createElement("span",{"data-slate-string":!0,ref:a},n())},be=e=>{var{length:t=0,isLineBreak:r=!1,isMarkPlaceholder:a=!1}=e,n={"data-slate-zero-width":r?"n":"z","data-slate-length":t};return a&&(n["data-slate-mark-placeholder"]=!0),d.createElement("span",Object.assign({},n),ee&&r?null:"\ufeff",r?d.createElement("br",null):null)},xe=(0,d.createContext)(null),ke=()=>{var e=(0,d.useContext)(xe);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the component's context.");return e},ye=e=>{var{leaf:t,isLast:r,text:a,parent:n,renderPlaceholder:o,renderLeaf:i=(e=>d.createElement(Ce,Object.assign({},e)))}=e,s=(0,d.useRef)(null),l=ke();(0,d.useEffect)((()=>{var e=null===s||void 0===s?void 0:s.current,t=document.querySelector('[data-slate-editor="true"]');if(e&&t)return t.style.minHeight="".concat(e.clientHeight,"px"),k.set(l,e),()=>{t.style.minHeight="auto",k.delete(l)}}),[s,t]);var c=d.createElement(we,{isLast:r,leaf:t,parent:n,text:a});if(t[I]){var u={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none"},contentEditable:!1,ref:s}};c=d.createElement(d.Fragment,null,o(u),c)}return i({attributes:{"data-slate-leaf":!0},children:c,leaf:t,text:a})},Le=d.memo(ye,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&u.xv.equals(t.leaf,e.leaf)&&t.leaf[I]===e.leaf[I])),Ce=e=>{var{attributes:t,children:r}=e;return d.createElement("span",Object.assign({},t),r)},De=e=>{for(var{decorations:t,isLast:r,parent:a,renderPlaceholder:n,renderLeaf:o,text:i}=e,s=ke(),l=(0,d.useRef)(null),c=u.xv.decorations(i,t),f=fe.findKey(s,i),v=[],h=0;h{var e=D.get(s);l.current?(null===e||void 0===e||e.set(f,l.current),L.set(i,l.current),y.set(l.current,i)):(null===e||void 0===e||e.delete(f),L.delete(i))})),d.createElement("span",{"data-slate-node":"text",ref:l},v)},Ee=d.memo(De,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.text===e.text&&me(t.decorations,e.decorations))),Oe=e=>{var{decorations:t,element:r,renderElement:a=(e=>d.createElement(Be,Object.assign({},e))),renderPlaceholder:o,renderLeaf:i,selection:s}=e,l=(0,d.useRef)(null),c=ke(),f=We(),v=c.isInline(r),h=fe.findKey(c,r),p=Ne({decorations:t,node:r,renderElement:a,renderPlaceholder:o,renderLeaf:i,selection:s}),g={"data-slate-node":"element",ref:l};if(v&&(g["data-slate-inline"]=!0),!v&&u.ML.hasInlines(c,r)){var m=u.NB.string(r),b=n()(m);"rtl"===b&&(g.dir=b)}if(u.ML.isVoid(c,r)){g["data-slate-void"]=!0,!f&&v&&(g.contentEditable=!1);var x=v?"span":"div",[[k]]=u.NB.texts(r);p=d.createElement(x,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},d.createElement(Ee,{renderPlaceholder:o,decorations:[],isLast:!1,parent:r,text:k})),w.set(k,0),M.set(k,r)}return ve((()=>{var e=D.get(c);l.current?(null===e||void 0===e||e.set(h,l.current),L.set(r,l.current),y.set(l.current,r)):(null===e||void 0===e||e.delete(h),L.delete(r))})),a({attributes:g,children:p,element:r})},Se=d.memo(Oe,((e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&me(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&u.e6.equals(e.selection,t.selection)))),Be=e=>{var{attributes:t,children:r,element:a}=e,n=ke().isInline(a)?"span":"div";return d.createElement(n,Object.assign({},t,{style:{position:"relative"}}),r)},Fe=(0,d.createContext)((()=>[])),Pe=(0,d.createContext)(!1),Re=()=>(0,d.useContext)(Pe),Ne=e=>{for(var{decorations:t,node:r,renderElement:a,renderPlaceholder:n,renderLeaf:o,selection:i}=e,s=(0,d.useContext)(Fe),l=ke(),c=fe.findPath(l,r),f=[],v=u.W_.isElement(r)&&!l.isInline(r)&&u.ML.hasInlines(l,r),h=0;h(0,d.useContext)(Te),je=(0,d.createContext)(null),Ae={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},Ie={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},qe={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Ye=e=>{var t=Ae[e],r=Ie[e],a=qe[e],n=t&&(0,f.TB)(t),o=r&&(0,f.TB)(r),i=a&&(0,f.TB)(a);return e=>!(!n||!n(e))||(!!(G&&o&&o(e))||!(G||!i||!i(e)))},Ue={isBold:Ye("bold"),isCompose:Ye("compose"),isMoveBackward:Ye("moveBackward"),isMoveForward:Ye("moveForward"),isDeleteBackward:Ye("deleteBackward"),isDeleteForward:Ye("deleteForward"),isDeleteLineBackward:Ye("deleteLineBackward"),isDeleteLineForward:Ye("deleteLineForward"),isDeleteWordBackward:Ye("deleteWordBackward"),isDeleteWordForward:Ye("deleteWordForward"),isExtendBackward:Ye("extendBackward"),isExtendForward:Ye("extendForward"),isExtendLineBackward:Ye("extendLineBackward"),isExtendLineForward:Ye("extendLineForward"),isItalic:Ye("italic"),isMoveLineBackward:Ye("moveLineBackward"),isMoveLineForward:Ye("moveLineForward"),isMoveWordBackward:Ye("moveWordBackward"),isMoveWordForward:Ye("moveWordForward"),isRedo:Ye("redo"),isSoftBreak:Ye("insertSoftBreak"),isSplitBlock:Ye("splitBlock"),isTransposeCharacter:Ye("transposeCharacter"),isUndo:Ye("undo")},$e={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class _e extends d.Component{constructor(){super(...arguments),this.context=null,this.manager=null,this.mutationObserver=null}observe(){var e,{node:t}=this.props;if(!t.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");null===(e=this.mutationObserver)||void 0===e||e.observe(t.current,$e)}componentDidMount(){var{receivedUserInput:e}=this.props,t=this.context;this.manager=((e,t)=>{var r=[],a=()=>{r=[]};return{registerMutations:a=>{if(t.current){var n=a.filter((t=>J(e,t,a)));r.push(...n)}},restoreDOM:function(){r.reverse().forEach((e=>{"characterData"!==e.type?(e.removedNodes.forEach((t=>{e.target.insertBefore(t,e.nextSibling)})),e.addedNodes.forEach((t=>{e.target.removeChild(t)}))):e.target.textContent=e.oldValue})),a()},clear:a}})(t,e),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var e,t,r,a,n=null===(e=this.mutationObserver)||void 0===e?void 0:e.takeRecords();null!==n&&void 0!==n&&n.length&&(null===(a=this.manager)||void 0===a||a.registerMutations(n));return null===(t=this.mutationObserver)||void 0===t||t.disconnect(),null===(r=this.manager)||void 0===r||r.restoreDOM(),null}componentDidUpdate(){var e;null===(e=this.manager)||void 0===e||e.clear(),this.observe()}componentWillUnmount(){var e;null===(e=this.mutationObserver)||void 0===e||e.disconnect()}render(){return this.props.children}}_e.contextType=xe;var ze=ee?_e:e=>{var{children:t}=e;return d.createElement(d.Fragment,null,t)};function Ve(e,t){var{path:r,diff:a}=t;if(!u.ML.hasPath(e,r))return!1;var n=u.NB.get(e,r);if(!u.xv.isText(n))return!1;if(a.start!==n.text.length||0===a.text.length)return n.text.slice(a.start,a.start+a.text.length)===a.text;var o=u.y$.next(r);if(!u.ML.hasPath(e,o))return!1;var i=u.NB.get(e,o);return u.xv.isText(i)&&i.text.startsWith(a.text)}function Ke(e,t){var{start:r,end:a,text:n}=t,o=e.slice(r,a),i=function(e,t){for(var r=Math.min(e.length,t.length),a=0;a1?t-1:0),a=1;ae.slice(0,t.start)+t.text+e.slice(t.end)),e)}(e,t,r),i=Math.max(r.start+r.text.length,t.start+t.text.length+(t.start+t.text.length>r.start?r.text.length:0)-n),s=o.slice(a,i);return Ke(e,{start:a,end:Math.max(t.end,r.end-t.text.length+(t.end-t.start)),text:s})}function Xe(e){var{path:t,diff:r}=e;return{anchor:{path:t,offset:r.start},focus:{path:t,offset:r.end}}}function Je(e,t){var{path:r,offset:a}=t;if(!u.ML.hasPath(e,r))return null;var n=u.NB.get(e,r);if(!u.xv.isText(n))return null;var o=u.ML.above(e,{match:t=>u.ML.isBlock(e,t),at:r});if(!o)return null;for(;a>n.text.length;){var i=u.ML.next(e,{at:r,match:u.xv.isText});if(!i||!u.y$.isDescendant(i[1],o[1]))return null;a-=n.text.length,n=i[0],r=i[1]}return{path:r,offset:a}}function Qe(e,t){var r=Je(e,t.anchor);if(!r)return null;if(u.e6.isCollapsed(t))return{anchor:r,focus:r};var a=Je(e,t.focus);return a?{anchor:r,focus:a}:null}function Ze(e,t,r){var a=T.get(e),n=null===a||void 0===a?void 0:a.find((e=>{var{path:r}=e;return u.y$.equals(r,t.path)}));if(!n||t.offset<=n.diff.start)return u.E9.transform(t,r,{affinity:"backward"});var{diff:o}=n;if(t.offset<=o.start+o.text.length){var i={path:t.path,offset:o.start},s=u.E9.transform(i,r,{affinity:"backward"});return s?{path:s.path,offset:s.offset+t.offset-o.start}:null}var l={path:t.path,offset:t.offset-o.text.length+o.end-o.start},d=u.E9.transform(l,r,{affinity:"backward"});return d?"split_node"===r.type&&u.y$.equals(r.path,t.path)&&l.offset{var e=j.get(t);if(j.delete(t),e){var{selection:r}=t,a=Qe(t,e);!a||r&&u.e6.equals(a,r)||u.YR.select(t,a)}},f=()=>{var e;if(i&&(clearTimeout(i),i=null),s&&(clearTimeout(s),s=null),m()||g()){n||(n=!0,setTimeout((()=>n=!1))),g()&&(n="action");var o=t.selection&&u.ML.rangeRef(t,t.selection,{affinity:"forward"});N.set(t,t.marks),W.get(t),T.get(t);for(var l,f=!(null===(e=T.get(t))||void 0===e||!e.length);l=null===(v=T.get(t))||void 0===v?void 0:v[0];){var v,h,p=R.get(t);void 0!==p&&(R.delete(t),t.marks=p),p&&!1===d&&(d=null);var w=Xe(l);t.selection&&u.e6.equals(t.selection,w)||u.YR.select(t,w),l.diff.text?u.ML.insertText(t,l.diff.text):u.ML.deleteFragment(t),T.set(t,null===(h=T.get(t))||void 0===h?void 0:h.filter((e=>{var{id:t}=e;return t!==l.id}))),Ve(t,l)||(f=!1,W.delete(t),N.delete(t),n="action",j.delete(t),r.cancel(),a.cancel(),null===o||void 0===o||o.unref())}var M=null===o||void 0===o?void 0:o.unref();if(!M||j.get(t)||t.selection&&u.e6.equals(M,t.selection)||u.YR.select(t,M),g())(()=>{var e=W.get(t);if(W.delete(t),e){if(e.at){var r=u.E9.isPoint(e.at)?Je(t,e.at):Qe(t,e.at);if(!r)return;var a=u.ML.range(t,r);t.selection&&u.e6.equals(t.selection,a)||u.YR.select(t,r)}e.run()}})();else{f&&r(),r.flush(),a.flush(),c();var b=N.get(t);N.delete(t),void 0!==b&&(t.marks=b,t.onChange())}}else c()},v=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=k.get(t);r&&(m()||e?r.style.display="none":r.style.removeProperty("display"))},h=(e,r)=>{var a,n=null!==(a=T.get(t))&&void 0!==a?a:[];T.set(t,n);var o=u.NB.leaf(t,e),i=n.findIndex((t=>u.y$.equals(t.path,e)));if(i<0)return Ke(o.text,r)&&n.push({path:e,diff:r,id:l++}),void v();var s=He(o.text,n[i].diff,r);if(!s)return n.splice(i,1),void v();n[i]=tt(tt({},n[i]),{},{diff:s})},p=function(e){var{at:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};d=!1,j.delete(t),r.cancel(),a.cancel(),g()&&f(),W.set(t,{at:n,run:e}),s=setTimeout(f)},g=()=>!!W.get(t),m=()=>{var e;return!(null===(e=T.get(t))||void 0===e||!e.length)},w=()=>{g()||(s=setTimeout(f))};return{flush:f,scheduleFlush:w,hasPendingDiffs:m,hasPendingAction:g,hasPendingChanges:()=>g()||m(),isFlushing:()=>n,handleUserSelect:e=>{j.set(t,e),i&&(clearTimeout(i),i=null);var{selection:r}=t;if(e){var a=!r||!u.y$.equals(r.anchor.path,e.anchor.path),n=!r||!u.y$.equals(r.anchor.path.slice(0,-1),e.anchor.path.slice(0,-1));(a&&d||n)&&(d=!1),!a&&m()||(i=setTimeout(f,200))}},handleCompositionEnd:e=>{o&&clearTimeout(o),o=setTimeout((()=>{S.set(t,!1),f()}),25)},handleCompositionStart:e=>{S.set(t,!0),o&&(clearTimeout(o),o=null)},handleDOMBeforeInput:e=>{var r;i&&(clearTimeout(i),i=null);var{inputType:a}=e,n=null,o=e.dataTransfer||e.data||void 0;!1!==d&&"insertText"!==a&&"insertCompositionText"!==a&&(d=!1);var[s]=e.getTargetRanges();s&&(n=fe.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!0}));var l=fe.getWindow(t).getSelection();if(!n&&l&&(s=l,n=fe.toSlateRange(t,l,{exactMatch:!1,suppressThrow:!0})),n=null!==(r=n)&&void 0!==r?r:t.selection){if(u.e6.isExpanded(n)&&a.startsWith("delete")){var[c,f]=u.e6.edges(n);if(u.NB.leaf(t,c.path).text.length===c.offset&&0===f.offset){var v=u.ML.next(t,{at:c.path,match:u.xv.isText});v&&u.y$.equals(v[1],f.path)&&(n={anchor:f,focus:f})}}if(u.e6.isExpanded(n)&&a.startsWith("delete")){if(u.y$.equals(n.anchor.path,n.focus.path)){var[g,m]=u.e6.edges(n);return h(n.anchor.path,{text:"",end:m.offset,start:g.offset})}var M=a.endsWith("Backward")?"backward":"forward";return p((()=>u.ML.deleteFragment(t,{direction:M})),{at:n})}switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return p((()=>u.ML.deleteFragment(t)),{at:n});case"deleteContent":case"deleteContentForward":var{anchor:b}=n;if(u.e6.isCollapsed(n)){var x=u.NB.leaf(t,b.path);if(b.offsetu.ML.deleteForward(t)),{at:n});case"deleteContentBackward":var k,{anchor:y}=n;return(_(s)?s.isCollapsed:!(null===(k=s)||void 0===k||!k.collapsed))&&u.e6.isCollapsed(n)&&y.offset>0?h(y.path,{text:"",start:y.offset-1,end:y.offset}):p((()=>u.ML.deleteBackward(t)),{at:n});case"deleteEntireSoftLine":return p((()=>{u.ML.deleteBackward(t,{unit:"line"}),u.ML.deleteForward(t,{unit:"line"})}),{at:n});case"deleteHardLineBackward":return p((()=>u.ML.deleteBackward(t,{unit:"block"})),{at:n});case"deleteSoftLineBackward":return p((()=>u.ML.deleteBackward(t,{unit:"line"})),{at:n});case"deleteHardLineForward":return p((()=>u.ML.deleteForward(t,{unit:"block"})),{at:n});case"deleteSoftLineForward":return p((()=>u.ML.deleteForward(t,{unit:"line"})),{at:n});case"deleteWordBackward":return p((()=>u.ML.deleteBackward(t,{unit:"word"})),{at:n});case"deleteWordForward":return p((()=>u.ML.deleteForward(t,{unit:"word"})),{at:n});case"insertLineBreak":return p((()=>u.ML.insertSoftBreak(t)),{at:n});case"insertParagraph":return p((()=>u.ML.insertBreak(t)),{at:n});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("DataTransfer"===(null===o||void 0===o?void 0:o.constructor.name))return p((()=>fe.insertData(t,o)),{at:n});if("string"===typeof o&&o.includes("\n"))return p((()=>u.ML.insertSoftBreak(t)),{at:u.e6.end(n)});var L=null!==o&&void 0!==o?o:"";if(R.get(t)&&(L=L.replace("\ufeff","")),u.y$.equals(n.anchor.path,n.focus.path)){var[C,D]=u.e6.edges(n),E={start:C.offset,end:D.offset,text:L};if(L&&d&&"insertCompositionText"===a){var O=d.start+d.text.search(/\S|$/);E.start+E.text.search(/\S|$/)===O+1&&E.end===d.start+d.text.length?(E.start-=1,d=null,w()):d=!1}else d="insertText"===a&&(null===d?E:!(!d||!u.e6.isCollapsed(n)||d.end+d.text.length!==C.offset)&&tt(tt({},d),{},{text:d.text+L}));return void h(C.path,E)}return p((()=>u.ML.insertText(t,L)),{at:n})}}},handleKeyDown:e=>{m()||(v(!0),setTimeout(v))},handleDomMutations:e=>{var r;m()||g()||e.some((r=>J(t,r,e)))&&(null===(r=A.get(t))||void 0===r||r())},handleInput:()=>{!g()&&m()||f()}}}var at=["node"];function nt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}var ot={subtree:!0,childList:!0,characterData:!0};function it(e){var{node:t}=e,r=p(e,at);if(!ee)return null;var a=ke(),n=function(){var e=(0,d.useRef)(!1);return(0,d.useEffect)((()=>(e.current=!0,()=>{e.current=!1})),[]),e.current}(),[o]=(0,d.useState)((()=>rt(function(e){for(var t=1;tnew MutationObserver(t)));ve((()=>{a.takeRecords()})),(0,d.useEffect)((()=>{if(!e.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return a.observe(e.current,r),()=>a.disconnect()}),[])}(t,o.handleDomMutations,ot),P.set(a,o.scheduleFlush),n&&o.flush(),o}var st=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as"],lt=["text"],dt=["text"];function ct(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function ut(e){for(var t=1;td.createElement(d.Fragment,null,Ne(e)),vt=e=>{var{autoFocus:t,decorate:r=pt,onDOMBeforeInput:a,placeholder:o,readOnly:s=!1,renderElement:c,renderLeaf:f,renderPlaceholder:v=(e=>d.createElement(ht,Object.assign({},e))),scrollSelectionIntoView:h=gt,style:g={},as:m="div"}=e,w=p(e,st),M=(()=>{var e=(0,d.useContext)(je);if(!e)throw new Error("The `useSlate` hook must be used inside the component's context.");var{editor:t}=e;return t})(),[k,C]=(0,d.useState)(!1),D=(0,d.useRef)(null),F=(0,d.useRef)([]),{onUserInput:P,receivedUserInput:T}=function(){var e=ke(),t=(0,d.useRef)(!1),r=(0,d.useRef)(0),a=(0,d.useCallback)((()=>{if(!t.current){t.current=!0;var a=fe.getWindow(e);a.cancelAnimationFrame(r.current),r.current=a.requestAnimationFrame((()=>{t.current=!1}))}}),[]);return(0,d.useEffect)((()=>()=>cancelAnimationFrame(r.current)),[]),{receivedUserInput:t,onUserInput:a}}(),[,W]=(0,d.useReducer)((e=>e+1),0);A.set(M,W),E.set(M,s);var j=(0,d.useMemo)((()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1})),[]);(0,d.useEffect)((()=>{D.current&&t&&D.current.focus()}),[t]);var _=(0,d.useCallback)(l()((()=>{if((ee||!fe.isComposing(M))&&(!j.isUpdatingSelection||null!==V&&void 0!==V&&V.isFlushing())&&!j.isDraggingInternally){var e=fe.findDocumentOrShadowRoot(M),{activeElement:t}=e,r=fe.toDOMNode(M,M),a=e.getSelection();if(t===r?(j.latestElement=t,O.set(M,!0)):O.delete(M),!a)return u.YR.deselect(M);var{anchorNode:n,focusNode:o}=a,i=wt(M,n)||Mt(M,n),s=wt(M,o)||Mt(M,o);if(i&&s){var l=fe.toSlateRange(M,a,{exactMatch:!1,suppressThrow:!0});l&&(fe.isComposing(M)||null!==V&&void 0!==V&&V.hasPendingChanges()||null!==V&&void 0!==V&&V.isFlushing()?null===V||void 0===V||V.handleUserSelect(l):u.YR.select(M,l))}}}),100),[s]),z=(0,d.useMemo)((()=>i()(_,0)),[_]),V=it({node:D,onDOMSelectionChange:_,scheduleOnDOMSelectionChange:z});ve((()=>{var e;D.current&&(e=Y(D.current))?(b.set(M,e),x.set(M,D.current),L.set(M,D.current),y.set(D.current,M)):L.delete(M);var{selection:t}=M,r=fe.findDocumentOrShadowRoot(M).getSelection();if(r&&fe.isFocused(M)&&(null===V||void 0===V||!V.hasPendingAction())){var a=e=>{var a="None"!==r.type;if(t||a){var n=x.get(M),o=!1;if(n.contains(r.anchorNode)&&n.contains(r.focusNode)&&(o=!0),a&&o&&t&&!e){var i=fe.toSlateRange(M,r,{exactMatch:!0,suppressThrow:!0});if(i&&u.e6.equals(i,t)){var s;if(!j.hasMarkPlaceholder)return;var{anchorNode:l}=r;if(null!==l&&void 0!==l&&null!==(s=l.parentElement)&&void 0!==s&&s.hasAttribute("data-slate-mark-placeholder"))return}}if(!t||fe.hasRange(M,t)){j.isUpdatingSelection=!0;var d=t&&fe.toDOMRange(M,t);return d?(u.e6.isBackward(t)?r.setBaseAndExtent(d.endContainer,d.endOffset,d.startContainer,d.startOffset):r.setBaseAndExtent(d.startContainer,d.startOffset,d.endContainer,d.endOffset),h(M,d)):r.removeAllRanges(),d}M.selection=fe.toSlateRange(M,r,{exactMatch:!1,suppressThrow:!0})}},n=a(),o="action"===(null===V||void 0===V?void 0:V.isFlushing());if(ee&&o){var i=null,s=requestAnimationFrame((()=>{if(o){var e=e=>{try{fe.toDOMNode(M,M).focus(),a(e)}catch(t){}};e(),i=setTimeout((()=>{e(!0),j.isUpdatingSelection=!1}))}}));return()=>{cancelAnimationFrame(s),i&&clearTimeout(i)}}setTimeout((()=>{n&&te&&fe.toDOMNode(M,M).focus();j.isUpdatingSelection=!1}))}}));var K=(0,d.useCallback)((e=>{if(P(),!s&&wt(M,e.target)&&!xt(e,a)){var t;if(V)return V.handleDOMBeforeInput(e);z.flush(),_.flush();var{selection:r}=M,{inputType:n}=e,o=e.dataTransfer||e.data||void 0,i="insertCompositionText"===n||"deleteCompositionText"===n;if(i&&fe.isComposing(M))return;var l=!1;if("insertText"===n&&r&&u.e6.isCollapsed(r)&&e.data&&1===e.data.length&&/[a-z ]/i.test(e.data)&&0!==r.anchor.offset){var d,c;l=!0,M.marks&&(l=!1);var{anchor:f}=r,[v,h]=fe.toDOMPoint(M,f),p=null===(d=v.parentElement)||void 0===d?void 0:d.closest("a"),g=fe.getWindow(M);if(l&&p&&fe.hasDOMNode(M,p)){var m,w=null===g||void 0===g?void 0:g.document.createTreeWalker(p,NodeFilter.SHOW_TEXT).lastChild();w===v&&(null===(m=w.textContent)||void 0===m?void 0:m.length)===h&&(l=!1)}if(l&&v.parentElement&&"pre"===(null===g||void 0===g||null===(c=g.getComputedStyle(v.parentElement))||void 0===c?void 0:c.whiteSpace)){var b=u.ML.above(M,{at:f.path,match:e=>u.ML.isBlock(M,e)});b&&u.NB.string(b[0]).includes("\t")&&(l=!1)}}if(!n.startsWith("delete")||n.startsWith("deleteBy")){var[x]=e.getTargetRanges();if(x){var k=fe.toSlateRange(M,x,{exactMatch:!1,suppressThrow:!1});if(!r||!u.e6.equals(r,k)){l=!1;var y=!i&&M.selection&&u.ML.rangeRef(M,M.selection);u.YR.select(M,k),y&&B.set(M,y)}}}if(i)return;if(l||e.preventDefault(),r&&u.e6.isExpanded(r)&&n.startsWith("delete")){var L=n.endsWith("Backward")?"backward":"forward";return void u.ML.deleteFragment(M,{direction:L})}switch(n){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":u.ML.deleteFragment(M);break;case"deleteContent":case"deleteContentForward":u.ML.deleteForward(M);break;case"deleteContentBackward":u.ML.deleteBackward(M);break;case"deleteEntireSoftLine":u.ML.deleteBackward(M,{unit:"line"}),u.ML.deleteForward(M,{unit:"line"});break;case"deleteHardLineBackward":u.ML.deleteBackward(M,{unit:"block"});break;case"deleteSoftLineBackward":u.ML.deleteBackward(M,{unit:"line"});break;case"deleteHardLineForward":u.ML.deleteForward(M,{unit:"block"});break;case"deleteSoftLineForward":u.ML.deleteForward(M,{unit:"line"});break;case"deleteWordBackward":u.ML.deleteBackward(M,{unit:"word"});break;case"deleteWordForward":u.ML.deleteForward(M,{unit:"word"});break;case"insertLineBreak":u.ML.insertSoftBreak(M);break;case"insertParagraph":u.ML.insertBreak(M);break;case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":var{selection:D}=M;D&&u.e6.isExpanded(D)&&u.ML.deleteFragment(M),"insertFromComposition"===n&&fe.isComposing(M)&&(C(!1),S.set(M,!1)),"DataTransfer"===(null===o||void 0===o?void 0:o.constructor.name)?fe.insertData(M,o):"string"===typeof o&&(l?F.current.push((()=>u.ML.insertText(M,o))):u.ML.insertText(M,o))}var E=null===(t=B.get(M))||void 0===t?void 0:t.unref();B.delete(M),!E||M.selection&&u.e6.equals(M.selection,E)||u.YR.select(M,E)}}),[s,a]);ve((()=>(D.current&&ue&&D.current.addEventListener("beforeinput",K),()=>{D.current&&ue&&D.current.removeEventListener("beforeinput",K)})),[K]),ve((()=>{var e=fe.getWindow(M);return e.document.addEventListener("selectionchange",z),()=>{e.document.removeEventListener("selectionchange",z)}}),[z]);var H=r([M,[]]);if(o&&1===M.children.length&&1===Array.from(u.NB.texts(M)).length&&""===u.NB.string(M)&&!k){var X=u.ML.start(M,[]);H.push({[I]:!0,placeholder:o,anchor:X,focus:X})}var{marks:J}=M;if(j.hasMarkPlaceholder=!1,M.selection&&u.e6.isCollapsed(M.selection)&&J){var{anchor:Q}=M.selection,G=p(u.NB.leaf(M,Q.path),lt);if(!u.xv.equals(G,J,{loose:!0})){j.hasMarkPlaceholder=!0;var ae=Object.fromEntries(Object.keys(G).map((e=>[e,null])));H.push(ut(ut(ut({[q]:!0},ae),J),{},{anchor:Q,focus:Q}))}}return(0,d.useEffect)((()=>{setTimeout((()=>{var{selection:e}=M;if(e){var{anchor:t}=e,r=p(u.NB.leaf(M,t.path),dt);if(!u.xv.equals(r,J,{loose:!0}))return void R.set(M,J)}R.delete(M)}))})),d.createElement(Te.Provider,{value:s},d.createElement(Fe.Provider,{value:r},d.createElement(ze,{node:D,receivedUserInput:T},d.createElement(m,Object.assign({role:s?void 0:"textbox"},w,{spellCheck:!(!ue&&ce)&&w.spellCheck,autoCorrect:ue||!ce?w.autoCorrect:"false",autoCapitalize:ue||!ce?w.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!s,zindex:-1,suppressContentEditableWarning:!0,ref:D,style:ut({position:"relative",outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},g),onBeforeInput:(0,d.useCallback)((e=>{if(!ue&&!s&&!bt(e,w.onBeforeInput)&&wt(M,e.target)&&(e.preventDefault(),!fe.isComposing(M))){var t=e.data;u.ML.insertText(M,t)}}),[s]),onInput:(0,d.useCallback)((e=>{if(V)V.handleInput();else{for(var t of F.current)t();F.current=[]}}),[]),onBlur:(0,d.useCallback)((e=>{if(!s&&!j.isUpdatingSelection&&wt(M,e.target)&&!bt(e,w.onBlur)){var t=fe.findDocumentOrShadowRoot(M);if(j.latestElement!==t.activeElement){var{relatedTarget:r}=e;if(r!==fe.toDOMNode(M,M)&&(!U(r)||!r.hasAttribute("data-slate-spacer"))){if(null!=r&&$(r)&&fe.hasDOMNode(M,r)){var a=fe.toSlateNode(M,r);if(u.W_.isElement(a)&&!M.isVoid(a))return}if(re){var n=t.getSelection();null===n||void 0===n||n.removeAllRanges()}O.delete(M)}}}}),[s,w.onBlur]),onClick:(0,d.useCallback)((e=>{if(mt(M,e.target)&&!bt(e,w.onClick)&&$(e.target)){var t=fe.toSlateNode(M,e.target),r=fe.findPath(M,t);if(!u.ML.hasPath(M,r)||u.NB.get(M,r)!==t)return;if(3===e.detail&&r.length>=1){var a=r;if(!u.ML.isBlock(M,t)){var n,o=u.ML.above(M,{match:e=>u.ML.isBlock(M,e),at:r});a=null!==(n=null===o||void 0===o?void 0:o[1])&&void 0!==n?n:r.slice(0,1)}var i=u.ML.range(M,a);return void u.YR.select(M,i)}if(s)return;var l=u.ML.start(M,r),d=u.ML.end(M,r),c=u.ML.void(M,{at:l}),f=u.ML.void(M,{at:d});if(c&&f&&u.y$.equals(c[1],f[1])){var v=u.ML.range(M,l);u.YR.select(M,v)}}}),[s,w.onClick]),onCompositionEnd:(0,d.useCallback)((e=>{if(wt(M,e.target)){if(fe.isComposing(M)&&(C(!1),S.set(M,!1)),null===V||void 0===V||V.handleCompositionEnd(e),bt(e,w.onCompositionEnd)||ee)return;if(!re&&!ie&&!Z&&!se&&!de&&!le&&e.data){var t=R.get(M);R.delete(M),void 0!==t&&(N.set(M,M.marks),M.marks=t),u.ML.insertText(M,e.data);var r=N.get(M);N.delete(M),void 0!==r&&(M.marks=r)}}}),[w.onCompositionEnd]),onCompositionUpdate:(0,d.useCallback)((e=>{wt(M,e.target)&&!bt(e,w.onCompositionUpdate)&&(fe.isComposing(M)||(C(!0),S.set(M,!0)))}),[w.onCompositionUpdate]),onCompositionStart:(0,d.useCallback)((e=>{if(wt(M,e.target)){if(null===V||void 0===V||V.handleCompositionStart(e),bt(e,w.onCompositionStart)||ee)return;C(!0);var{selection:t}=M;if(t){if(u.e6.isExpanded(t))return void u.ML.deleteFragment(M);var r=u.ML.above(M,{match:e=>u.ML.isInline(M,e),mode:"highest"});if(r){var[,a]=r;if(u.ML.isEnd(M,t.anchor,a)){var n=u.ML.after(M,a);u.YR.setSelection(M,{anchor:n,focus:n})}}}}}),[w.onCompositionStart]),onCopy:(0,d.useCallback)((e=>{wt(M,e.target)&&!bt(e,w.onCopy)&&(e.preventDefault(),fe.setFragmentData(M,e.clipboardData,"copy"))}),[w.onCopy]),onCut:(0,d.useCallback)((e=>{if(!s&&wt(M,e.target)&&!bt(e,w.onCut)){e.preventDefault(),fe.setFragmentData(M,e.clipboardData,"cut");var{selection:t}=M;if(t)if(u.e6.isExpanded(t))u.ML.deleteFragment(M);else{var r=u.NB.parent(M,t.anchor.path);u.ML.isVoid(M,r)&&u.YR.delete(M)}}}),[s,w.onCut]),onDragOver:(0,d.useCallback)((e=>{if(mt(M,e.target)&&!bt(e,w.onDragOver)){var t=fe.toSlateNode(M,e.target);u.ML.isVoid(M,t)&&e.preventDefault()}}),[w.onDragOver]),onDragStart:(0,d.useCallback)((e=>{if(!s&&mt(M,e.target)&&!bt(e,w.onDragStart)){var t=fe.toSlateNode(M,e.target),r=fe.findPath(M,t);if(u.ML.isVoid(M,t)||u.ML.void(M,{at:r,voids:!0})){var a=u.ML.range(M,r);u.YR.select(M,a)}j.isDraggingInternally=!0,fe.setFragmentData(M,e.dataTransfer,"drag")}}),[s,w.onDragStart]),onDrop:(0,d.useCallback)((e=>{if(!s&&mt(M,e.target)&&!bt(e,w.onDrop)){e.preventDefault();var t=M.selection,r=fe.findEventRange(M,e),a=e.dataTransfer;u.YR.select(M,r),j.isDraggingInternally&&(!t||u.e6.equals(t,r)||u.ML.void(M,{at:r,voids:!0})||u.YR.delete(M,{at:t})),fe.insertData(M,a),fe.isFocused(M)||fe.focus(M)}j.isDraggingInternally=!1}),[s,w.onDrop]),onDragEnd:(0,d.useCallback)((e=>{!s&&j.isDraggingInternally&&w.onDragEnd&&mt(M,e.target)&&w.onDragEnd(e),j.isDraggingInternally=!1}),[s,w.onDragEnd]),onFocus:(0,d.useCallback)((e=>{if(!s&&!j.isUpdatingSelection&&wt(M,e.target)&&!bt(e,w.onFocus)){var t=fe.toDOMNode(M,M),r=fe.findDocumentOrShadowRoot(M);if(j.latestElement=r.activeElement,te&&e.target!==t)return void t.focus();O.set(M,!0)}}),[s,w.onFocus]),onKeyDown:(0,d.useCallback)((e=>{if(!s&&wt(M,e.target)){null===V||void 0===V||V.handleKeyDown(e);var{nativeEvent:t}=e;if(fe.isComposing(M)&&!1===t.isComposing&&(S.set(M,!1),C(!1)),bt(e,w.onKeyDown)||fe.isComposing(M))return;var{selection:r}=M,a=M.children[null!==r?r.focus.path[0]:0],o="rtl"===n()(u.NB.string(a));if(Ue.isRedo(t)){e.preventDefault();var i=M;return void("function"===typeof i.redo&&i.redo())}if(Ue.isUndo(t)){e.preventDefault();var l=M;return void("function"===typeof l.undo&&l.undo())}if(Ue.isMoveLineBackward(t))return e.preventDefault(),void u.YR.move(M,{unit:"line",reverse:!0});if(Ue.isMoveLineForward(t))return e.preventDefault(),void u.YR.move(M,{unit:"line"});if(Ue.isExtendLineBackward(t))return e.preventDefault(),void u.YR.move(M,{unit:"line",edge:"focus",reverse:!0});if(Ue.isExtendLineForward(t))return e.preventDefault(),void u.YR.move(M,{unit:"line",edge:"focus"});if(Ue.isMoveBackward(t))return e.preventDefault(),void(r&&u.e6.isCollapsed(r)?u.YR.move(M,{reverse:!o}):u.YR.collapse(M,{edge:"start"}));if(Ue.isMoveForward(t))return e.preventDefault(),void(r&&u.e6.isCollapsed(r)?u.YR.move(M,{reverse:o}):u.YR.collapse(M,{edge:"end"}));if(Ue.isMoveWordBackward(t))return e.preventDefault(),r&&u.e6.isExpanded(r)&&u.YR.collapse(M,{edge:"focus"}),void u.YR.move(M,{unit:"word",reverse:!o});if(Ue.isMoveWordForward(t))return e.preventDefault(),r&&u.e6.isExpanded(r)&&u.YR.collapse(M,{edge:"focus"}),void u.YR.move(M,{unit:"word",reverse:o});if(ue){if((ne||re)&&r&&(Ue.isDeleteBackward(t)||Ue.isDeleteForward(t))&&u.e6.isCollapsed(r)){var d=u.NB.parent(M,r.anchor.path);if(u.W_.isElement(d)&&u.ML.isVoid(M,d)&&u.ML.isInline(M,d))return e.preventDefault(),void u.ML.deleteBackward(M,{unit:"block"})}}else{if(Ue.isBold(t)||Ue.isItalic(t)||Ue.isTransposeCharacter(t))return void e.preventDefault();if(Ue.isSoftBreak(t))return e.preventDefault(),void u.ML.insertSoftBreak(M);if(Ue.isSplitBlock(t))return e.preventDefault(),void u.ML.insertBreak(M);if(Ue.isDeleteBackward(t))return e.preventDefault(),void(r&&u.e6.isExpanded(r)?u.ML.deleteFragment(M,{direction:"backward"}):u.ML.deleteBackward(M));if(Ue.isDeleteForward(t))return e.preventDefault(),void(r&&u.e6.isExpanded(r)?u.ML.deleteFragment(M,{direction:"forward"}):u.ML.deleteForward(M));if(Ue.isDeleteLineBackward(t))return e.preventDefault(),void(r&&u.e6.isExpanded(r)?u.ML.deleteFragment(M,{direction:"backward"}):u.ML.deleteBackward(M,{unit:"line"}));if(Ue.isDeleteLineForward(t))return e.preventDefault(),void(r&&u.e6.isExpanded(r)?u.ML.deleteFragment(M,{direction:"forward"}):u.ML.deleteForward(M,{unit:"line"}));if(Ue.isDeleteWordBackward(t))return e.preventDefault(),void(r&&u.e6.isExpanded(r)?u.ML.deleteFragment(M,{direction:"backward"}):u.ML.deleteBackward(M,{unit:"word"}));if(Ue.isDeleteWordForward(t))return e.preventDefault(),void(r&&u.e6.isExpanded(r)?u.ML.deleteFragment(M,{direction:"forward"}):u.ML.deleteForward(M,{unit:"word"}))}}}),[s,w.onKeyDown]),onPaste:(0,d.useCallback)((e=>{s||!wt(M,e.target)||bt(e,w.onPaste)||ue&&!(e=>e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length)(e.nativeEvent)||(e.preventDefault(),fe.insertData(M,e.clipboardData))}),[s,w.onPaste])}),d.createElement(ft,{decorations:H,node:M,renderElement:c,renderPlaceholder:v,renderLeaf:f,selection:M.selection})))))},ht=e=>{var{attributes:t,children:r}=e;return d.createElement("span",Object.assign({},t),r,ee&&d.createElement("br",null))},pt=()=>[],gt=(e,t)=>{if(!e.selection||e.selection&&u.e6.isCollapsed(e.selection)){var r=t.startContainer.parentElement;r.getBoundingClientRect=t.getBoundingClientRect.bind(t),(0,c.Z)(r,{scrollMode:"if-needed"}),delete r.getBoundingClientRect}},mt=(e,t)=>$(t)&&fe.hasDOMNode(e,t),wt=(e,t)=>$(t)&&fe.hasDOMNode(e,t,{editable:!0}),Mt=(e,t)=>{if(E.get(e))return!1;var r=mt(e,t)&&fe.toSlateNode(e,t);return u.ML.isVoid(e,r)},bt=(e,t)=>{if(!t)return!1;var r=t(e);return null!=r?r:e.isDefaultPrevented()||e.isPropagationStopped()},xt=(e,t)=>{if(!t)return!1;var r=t(e);return null!=r?r:e.defaultPrevented},kt=(0,d.createContext)(!1),yt=()=>(0,d.useContext)(kt);var Lt=(0,d.createContext)({});var Ct=["editor","children","onChange","value"],Dt=e=>{var{editor:t,children:r,onChange:a,value:n}=e,o=p(e,Ct),i=(0,d.useRef)(!1),[s,l]=d.useState((()=>{if(!u.NB.isNodeList(n))throw new Error("[Slate] value is invalid! Expected a list of elements"+"but got: ".concat(u.o4.stringify(n)));if(!u.ML.isEditor(t))throw new Error("[Slate] editor is invalid! you passed:"+"".concat(u.o4.stringify(t)));return t.children=n,Object.assign(t,o),{v:0,editor:t}})),{selectorContext:c,onChange:f}=function(e){var t=(0,d.useRef)([]).current,r=(0,d.useRef)({editor:e}).current,a=(0,d.useCallback)((e=>{r.editor=e,t.forEach((t=>t(e)))}),[]);return{selectorContext:(0,d.useMemo)((()=>({getSlate:()=>r.editor,addEventListener:e=>(t.push(e),()=>{t.splice(t.indexOf(e),1)})})),[t,r]),onChange:a}}(t),v=(0,d.useCallback)((()=>{a&&a(t.children),l((e=>({v:e.v+1,editor:t}))),f(t)}),[a]);F.set(t,v),(0,d.useEffect)((()=>()=>{F.set(t,(()=>{})),i.current=!0}),[]);var[h,g]=(0,d.useState)(fe.isFocused(t));return(0,d.useEffect)((()=>{g(fe.isFocused(t))})),ve((()=>{var e=()=>g(fe.isFocused(t));return Q?(document.addEventListener("focusin",e),document.addEventListener("focusout",e),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",e)}):(document.addEventListener("focus",e,!0),document.addEventListener("blur",e,!0),()=>{document.removeEventListener("focus",e,!0),document.removeEventListener("blur",e,!0)})}),[]),d.createElement(Lt.Provider,{value:c},d.createElement(je.Provider,{value:s},d.createElement(xe.Provider,{value:s.editor},d.createElement(kt.Provider,{value:h},r))))},Et=(e,t)=>{var r=(t.top+t.bottom)/2;return e.top<=r&&e.bottom>=r},Ot=(e,t,r)=>{var a=fe.toDOMRange(e,t).getBoundingClientRect(),n=fe.toDOMRange(e,r).getBoundingClientRect();return Et(a,n)&&Et(n,a)};function St(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function Bt(e){for(var t=1;t{var t=e,{apply:r,onChange:a,deleteBackward:n,addMark:o,removeMark:i}=t;return D.set(t,new WeakMap),t.addMark=(e,r)=>{var a,n;null===(a=P.get(t))||void 0===a||a(),!R.get(t)&&null!==(n=T.get(t))&&void 0!==n&&n.length&&R.set(t,null),N.delete(t),o(e,r)},t.removeMark=e=>{var r;!R.get(t)&&null!==(r=T.get(t))&&void 0!==r&&r.length&&R.set(t,null),N.delete(t),i(e)},t.deleteBackward=e=>{if("line"!==e)return n(e);if(t.selection&&u.e6.isCollapsed(t.selection)){var r=u.ML.above(t,{match:e=>u.ML.isBlock(t,e),at:t.selection});if(r){var[,a]=r,o=u.ML.range(t,a,t.selection.anchor),i=((e,t)=>{var r=u.ML.range(e,u.e6.end(t)),a=Array.from(u.ML.positions(e,{at:t})),n=0,o=a.length,i=Math.floor(o/2);if(Ot(e,u.ML.range(e,a[n]),r))return u.ML.range(e,a[n],r);if(a.length<2)return u.ML.range(e,a[a.length-1],r);for(;i!==a.length&&i!==n;)Ot(e,u.ML.range(e,a[i]),r)?o=i:n=i,i=Math.floor((n+o)/2);return u.ML.range(e,a[o],r)})(t,o);u.e6.isCollapsed(i)||u.YR.delete(t,{at:i})}}},t.apply=e=>{var a=[],n=T.get(t);if(null!==n&&void 0!==n&&n.length){var o=n.map((t=>function(e,t){var{path:r,diff:a,id:n}=e;switch(t.type){case"insert_text":return!u.y$.equals(t.path,r)||t.offset>=a.end?e:t.offset<=a.start?{diff:{start:t.text.length+a.start,end:t.text.length+a.end,text:a.text},id:n,path:r}:{diff:{start:a.start,end:a.end+t.text.length,text:a.text},id:n,path:r};case"remove_text":return!u.y$.equals(t.path,r)||t.offset>=a.end?e:t.offset+t.text.length<=a.start?{diff:{start:a.start-t.text.length,end:a.end-t.text.length,text:a.text},id:n,path:r}:{diff:{start:a.start,end:a.end-t.text.length,text:a.text},id:n,path:r};case"split_node":return!u.y$.equals(t.path,r)||t.position>=a.end?{diff:a,id:n,path:u.y$.transform(r,t,{affinity:"backward"})}:t.position>a.start?{diff:{start:a.start,end:Math.min(t.position,a.end),text:a.text},id:n,path:r}:{diff:{start:a.start-t.position,end:a.end-t.position,text:a.text},id:n,path:u.y$.transform(r,t,{affinity:"forward"})};case"merge_node":return u.y$.equals(t.path,r)?{diff:{start:a.start+t.position,end:a.end+t.position,text:a.text},id:n,path:u.y$.transform(r,t)}:{diff:a,id:n,path:u.y$.transform(r,t)}}var o=u.y$.transform(r,t);return o?{diff:a,path:o,id:n}:null}(t,e))).filter(Boolean);T.set(t,o)}var i=j.get(t);i&&j.set(t,Ge(t,i,e));var s=W.get(t);if(null!==s&&void 0!==s&&s.at){var l=u.E9.isPoint(null===s||void 0===s?void 0:s.at)?Ze(t,s.at,e):Ge(t,s.at,e);W.set(t,l?Bt(Bt({},s),{},{at:l}):null)}switch(e.type){case"insert_text":case"remove_text":case"set_node":case"split_node":a.push(...Pt(t,e.path));break;case"set_selection":var d;null===(d=B.get(t))||void 0===d||d.unref(),B.delete(t);break;case"insert_node":case"remove_node":a.push(...Pt(t,u.y$.parent(e.path)));break;case"merge_node":var c=u.y$.previous(e.path);a.push(...Pt(t,c));break;case"move_node":var f=u.y$.common(u.y$.parent(e.path),u.y$.parent(e.newPath));a.push(...Pt(t,f))}for(var[v,h]of(r(e),a)){var[p]=u.ML.node(t,v);C.set(p,h)}},t.setFragmentData=e=>{var{selection:r}=t;if(r){var[a,n]=u.e6.edges(r),o=u.ML.void(t,{at:a.path}),i=u.ML.void(t,{at:n.path});if(!u.e6.isCollapsed(r)||o){var s=fe.toDOMRange(t,r),l=s.cloneContents(),d=l.childNodes[0];if(l.childNodes.forEach((e=>{e.textContent&&""!==e.textContent.trim()&&(d=e)})),i){var[c]=i,f=s.cloneRange(),v=fe.toDOMNode(t,c);f.setEndAfter(v),l=f.cloneContents()}if(o&&(d=l.querySelector("[data-slate-spacer]")),Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach((e=>{var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),z(d)){var h=d.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(d),l.appendChild(h),d=h}var p=t.getFragment(),g=JSON.stringify(p),m=window.btoa(encodeURIComponent(g));d.setAttribute("data-slate-fragment",m),e.setData("application/x-slate-fragment",m);var w=l.ownerDocument.createElement("div");return w.appendChild(l),w.setAttribute("hidden","true"),l.ownerDocument.body.appendChild(w),e.setData("text/html",w.innerHTML),e.setData("text/plain",H(w)),l.ownerDocument.body.removeChild(w),e}}},t.insertData=e=>{t.insertFragmentData(e)||t.insertTextData(e)},t.insertFragmentData=e=>{var r=e.getData("application/x-slate-fragment")||(e=>{var t=e.getData("text/html"),[,r]=t.match(X)||[];return r})(e);if(r){var a=decodeURIComponent(window.atob(r)),n=JSON.parse(a);return t.insertFragment(n),!0}return!1},t.insertTextData=e=>{var r=e.getData("text/plain");if(r){var a=r.split(/\r\n|\r|\n/),n=!1;for(var o of a)n&&u.YR.splitNodes(t,{always:!0}),t.insertText(o),n=!0;return!0}return!1},t.onChange=()=>{v.unstable_batchedUpdates((()=>{var e=F.get(t);e&&e(),a()}))},t},Pt=(e,t)=>{var r=[];for(var[a,n]of u.ML.levels(e,{at:t})){var o=fe.findKey(e,a);r.push([n,o])}return r}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/d3048c20-0576676e1017fabd.js b/static/web/_next/static/chunks/d3048c20-0576676e1017fabd.js deleted file mode 100644 index 2ffe7ad58..000000000 --- a/static/web/_next/static/chunks/d3048c20-0576676e1017fabd.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1272],{77493:function(u,e,t){t.d(e,{E9:function(){return Cu},Jh:function(){return h},ML:function(){return K},NB:function(){return tu},W_:function(){return J},YR:function(){return zu},e6:function(){return fu},o4:function(){return du},xv:function(){return mu},y$:function(){return ou}});var r=t(45628),n=t(12902);function a(u,e,t){return e in u?Object.defineProperty(u,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):u[e]=t,u}var o=new WeakMap,i=new WeakMap,D=new WeakMap,s=new WeakMap,C=new WeakMap,l=new WeakMap,B=new WeakMap;function c(u,e){var t=Object.keys(u);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(u);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(u,e).enumerable}))),t.push.apply(t,r)}return t}function f(u){for(var e=1;e{var u={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:e=>{for(var t of K.pathRefs(u))iu.transform(t,e);for(var r of K.pointRefs(u))lu.transform(r,e);for(var n of K.rangeRefs(u))hu.transform(n,e);var a,s,C=o.get(u)||[],l=i.get(u)||new Set,B=u=>{if(u){var e=u.join(",");s.has(e)||(s.add(e),a.push(u))}};if(ou.operationCanTransformPath(e))for(var c of(a=[],s=new Set,C)){B(ou.transform(c,e))}else a=C,s=l;var f=u.getDirtyPaths(e);for(var h of f)B(h);o.set(u,a),i.set(u,s),zu.transform(u,e),u.operations.push(e),K.normalize(u),"set_selection"===e.type&&(u.marks=null),D.get(u)||(D.set(u,!0),Promise.resolve().then((()=>{D.set(u,!1),u.onChange(),u.operations=[]})))},addMark:(e,t)=>{var{selection:r}=u;if(r)if(fu.isExpanded(r))zu.setNodes(u,{[e]:t},{match:mu.isText,split:!0});else{var n=f(f({},K.marks(u)||{}),{},{[e]:t});u.marks=n,D.get(u)||u.onChange()}},deleteBackward:e=>{var{selection:t}=u;t&&fu.isCollapsed(t)&&zu.delete(u,{unit:e,reverse:!0})},deleteForward:e=>{var{selection:t}=u;t&&fu.isCollapsed(t)&&zu.delete(u,{unit:e})},deleteFragment:e=>{var{selection:t}=u;t&&fu.isExpanded(t)&&zu.delete(u,{reverse:"backward"===e})},getFragment:()=>{var{selection:e}=u;return e?tu.fragment(u,e):[]},insertBreak:()=>{zu.splitNodes(u,{always:!0})},insertSoftBreak:()=>{zu.splitNodes(u,{always:!0})},insertFragment:e=>{zu.insertFragment(u,e)},insertNode:e=>{zu.insertNodes(u,e)},insertText:e=>{var{selection:t,marks:r}=u;if(t){if(r){var n=f({text:e},r);zu.insertNodes(u,n)}else zu.insertText(u,e);u.marks=null}},normalizeNode:e=>{var[t,r]=e;if(!mu.isText(t))if(J.isElement(t)&&0===t.children.length){zu.insertNodes(u,{text:""},{at:r.concat(0),voids:!0})}else for(var n=!K.isEditor(t)&&(J.isElement(t)&&(u.isInline(t)||0===t.children.length||mu.isText(t.children[0])||u.isInline(t.children[0]))),a=0,o=0;o{var{selection:t}=u;if(t)if(fu.isExpanded(t))zu.unsetNodes(u,e,{match:mu.isText,split:!0});else{var r=f({},K.marks(u)||{});delete r[e],u.marks=r,D.get(u)||u.onChange()}},getDirtyPaths:u=>{switch(u.type){case"insert_text":case"remove_text":case"set_node":var{path:e}=u;return ou.levels(e);case"insert_node":var{node:t,path:r}=u,n=ou.levels(r),a=mu.isText(t)?[]:Array.from(tu.nodes(t),(u=>{var[,e]=u;return r.concat(e)}));return[...n,...a];case"merge_node":var{path:o}=u;return[...ou.ancestors(o),ou.previous(o)];case"move_node":var{path:i,newPath:D}=u;if(ou.equals(i,D))return[];var s=[],C=[];for(var l of ou.ancestors(i)){var B=ou.transform(l,u);s.push(B)}for(var c of ou.ancestors(D)){var f=ou.transform(c,u);C.push(f)}var h=C[C.length-1],A=D[D.length-1],d=h.concat(A);return[...s,...C,d];case"remove_node":var{path:F}=u;return[...ou.ancestors(F)];case"split_node":var{path:v}=u;return[...ou.levels(v),ou.next(v)];default:return[]}}};return u};function A(u,e){if(null==u)return{};var t,r,n=function(u,e){if(null==u)return{};var t,r,n={},a=Object.keys(u);for(r=0;r=0||(n[t]=u[t]);return n}(u,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(u);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(u,t)&&(n[t]=u[t])}return n}var d,F=function(u){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=!e,r=e?y(u):u,n=d.None,a=d.None,o=0,i=null;for(var D of r){var s=D.codePointAt(0);if(!s)break;var C=S(D,s);if([n,a]=t?[a,C]:[C,n],q(n,d.ZWJ)&&q(a,d.ExtPict)&&!L(t?u.substring(0,o):u.substring(0,u.length-o)))break;if(q(n,d.RI)&&q(a,d.RI)&&!(i=null!==i?!i:!!t||W(u.substring(0,u.length-o))))break;if(n!==d.None&&a!==d.None&&V(n,a))break;o+=D.length}return o||1},v=/\s/,E=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,p=/['\u2018\u2019]/,g=(u,e,t)=>{if(t){var r=u.length-e;return[u.slice(r,u.length),u.slice(0,r)]}return[u.slice(0,e),u.slice(e)]},m=function u(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(v.test(e))return!1;if(p.test(e)){var n=F(t,r),[a,o]=g(t,n,r);if(u(a,o,r))return!0}return!E.test(e)},y=function*(u){for(var e=u.length-1,t=0;tu>=55296&&u<=56319,b=u=>u>=56320&&u<=57343;!function(u){u[u.None=0]="None",u[u.Extend=1]="Extend",u[u.ZWJ=2]="ZWJ",u[u.RI=4]="RI",u[u.Prepend=8]="Prepend",u[u.SpacingMark=16]="SpacingMark",u[u.L=32]="L",u[u.V=64]="V",u[u.T=128]="T",u[u.LV=256]="LV",u[u.LVT=512]="LVT",u[u.ExtPict=1024]="ExtPict",u[u.Any=2048]="Any"}(d||(d={}));var x=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,O=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,P=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,k=/^[\u1100-\u115F\uA960-\uA97C]$/,j=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,N=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,_=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,T=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,R=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,S=(u,e)=>{var t=d.Any;return-1!==u.search(x)&&(t|=d.Extend),8205===e&&(t|=d.ZWJ),e>=127462&&e<=127487&&(t|=d.RI),-1!==u.search(O)&&(t|=d.Prepend),-1!==u.search(P)&&(t|=d.SpacingMark),-1!==u.search(k)&&(t|=d.L),-1!==u.search(j)&&(t|=d.V),-1!==u.search(N)&&(t|=d.T),-1!==u.search(_)&&(t|=d.LV),-1!==u.search(T)&&(t|=d.LVT),-1!==u.search(R)&&(t|=d.ExtPict),t};function q(u,e){return 0!==(u&e)}var I=[[d.L,d.L|d.V|d.LV|d.LVT],[d.LV|d.V,d.V|d.T],[d.LVT|d.T,d.T],[d.Any,d.Extend|d.ZWJ],[d.Any,d.SpacingMark],[d.Prepend,d.Any],[d.ZWJ,d.ExtPict],[d.RI,d.RI]];function V(u,e){return-1===I.findIndex((t=>q(u,t[0])&&q(e,t[1])))}var z=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,L=u=>-1!==u.search(z),M=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,W=u=>{var e=u.match(M);return null!==e&&e[0].length/2%2===1},$=u=>(0,r.P)(u)&&tu.isNodeList(u.children)&&!K.isEditor(u),J={isAncestor:u=>(0,r.P)(u)&&tu.isNodeList(u.children),isElement:$,isElementList:u=>Array.isArray(u)&&u.every((u=>J.isElement(u))),isElementProps:u=>void 0!==u.children,isElementType:function(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return $(u)&&u[t]===e},matches(u,e){for(var t in e)if("children"!==t&&u[t]!==e[t])return!1;return!0}},Z=["text"],U=["text"];function Y(u,e){var t=Object.keys(u);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(u);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(u,e).enumerable}))),t.push.apply(t,r)}return t}function G(u){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},{voids:t=!1,mode:r="lowest",at:n=u.selection,match:a}=e;if(n){var o=K.path(u,n),i="lowest"===r;for(var[D,s]of K.levels(u,{at:o,voids:t,match:a,reverse:i}))if(!mu.isText(D)&&!ou.equals(o,s))return[D,s]}},addMark(u,e,t){u.addMark(e,t)},after(u,e){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={anchor:K.point(u,e,{edge:"end"}),focus:K.end(u,[])},{distance:a=1}=r,o=0;for(var i of K.positions(u,G(G({},r),{},{at:n}))){if(o>a)break;0!==o&&(t=i),o++}return t},before(u,e){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={anchor:K.start(u,[]),focus:K.point(u,e,{edge:"start"})},{distance:a=1}=r,o=0;for(var i of K.positions(u,G(G({},r),{},{at:n,reverse:!0}))){if(o>a)break;0!==o&&(t=i),o++}return t},deleteBackward(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:t="character"}=e;u.deleteBackward(t)},deleteForward(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:t="character"}=e;u.deleteForward(t)},deleteFragment(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:t="forward"}=e;u.deleteFragment(t)},edges:(u,e)=>[K.start(u,e),K.end(u,e)],end:(u,e)=>K.point(u,e,{edge:"end"}),first(u,e){var t=K.path(u,e,{edge:"start"});return K.node(u,t)},fragment(u,e){var t=K.range(u,e);return tu.fragment(u,t)},hasBlocks:(u,e)=>e.children.some((e=>K.isBlock(u,e))),hasInlines:(u,e)=>e.children.some((e=>mu.isText(e)||K.isInline(u,e))),hasTexts:(u,e)=>e.children.every((u=>mu.isText(u))),insertBreak(u){u.insertBreak()},insertSoftBreak(u){u.insertSoftBreak()},insertFragment(u,e){u.insertFragment(e)},insertNode(u,e){u.insertNode(e)},insertText(u,e){u.insertText(e)},isBlock:(u,e)=>J.isElement(e)&&!u.isInline(e),isEditor(u){var e=H.get(u);if(void 0!==e)return e;if(!(0,r.P)(u))return!1;var t="function"===typeof u.addMark&&"function"===typeof u.apply&&"function"===typeof u.deleteBackward&&"function"===typeof u.deleteForward&&"function"===typeof u.deleteFragment&&"function"===typeof u.insertBreak&&"function"===typeof u.insertSoftBreak&&"function"===typeof u.insertFragment&&"function"===typeof u.insertNode&&"function"===typeof u.insertText&&"function"===typeof u.isInline&&"function"===typeof u.isVoid&&"function"===typeof u.normalizeNode&&"function"===typeof u.onChange&&"function"===typeof u.removeMark&&"function"===typeof u.getDirtyPaths&&(null===u.marks||(0,r.P)(u.marks))&&(null===u.selection||fu.isRange(u.selection))&&tu.isNodeList(u.children)&&au.isOperationList(u.operations);return H.set(u,t),t},isEnd(u,e,t){var r=K.end(u,t);return Cu.equals(e,r)},isEdge:(u,e,t)=>K.isStart(u,e,t)||K.isEnd(u,e,t),isEmpty(u,e){var{children:t}=e,[r]=t;return 0===t.length||1===t.length&&mu.isText(r)&&""===r.text&&!u.isVoid(e)},isInline:(u,e)=>J.isElement(e)&&u.isInline(e),isNormalizing(u){var e=s.get(u);return void 0===e||e},isStart(u,e,t){if(0!==e.offset)return!1;var r=K.start(u,t);return Cu.equals(e,r)},isVoid:(u,e)=>J.isElement(e)&&u.isVoid(e),last(u,e){var t=K.path(u,e,{edge:"end"});return K.node(u,t)},leaf(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=K.path(u,e,t);return[tu.leaf(u,r),r]},*levels(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:t=u.selection,reverse:r=!1,voids:n=!1}=e,{match:a}=e;if(null==a&&(a=()=>!0),t){var o=[],i=K.path(u,t);for(var[D,s]of tu.levels(u,i))if(a(D,s)&&(o.push([D,s]),!n&&K.isVoid(u,D)))break;r&&o.reverse(),yield*o}},marks(u){var{marks:e,selection:t}=u;if(!t)return null;if(e)return e;if(fu.isExpanded(t)){var[r]=K.nodes(u,{match:mu.isText});if(r){var[n]=r;return A(n,Z)}return{}}var{anchor:a}=t,{path:o}=a,[i]=K.leaf(u,o);if(0===a.offset){var D=K.previous(u,{at:o,match:mu.isText}),s=K.above(u,{match:e=>K.isBlock(u,e)});if(D&&s){var[C,l]=D,[,B]=s;ou.isAncestor(B,l)&&(i=C)}}return A(i,U)},next(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:t="lowest",voids:r=!1}=e,{match:n,at:a=u.selection}=e;if(a){var o=K.after(u,a,{voids:r});if(o){var[,i]=K.last(u,[]),D=[o.path,i];if(ou.isPath(a)&&0===a.length)throw new Error("Cannot get the next node from the root node!");if(null==n)if(ou.isPath(a)){var[s]=K.parent(u,a);n=u=>s.children.includes(u)}else n=()=>!0;var[C]=K.nodes(u,{at:D,match:n,mode:t,voids:r});return C}}},node(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=K.path(u,e,t);return[tu.get(u,r),r]},*nodes(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:t=u.selection,mode:r="all",universal:n=!1,reverse:a=!1,voids:o=!1}=e,{match:i}=e;if(i||(i=()=>!0),t){var D,s;if(Q.isSpan(t))D=t[0],s=t[1];else{var C=K.path(u,t,{edge:"start"}),l=K.path(u,t,{edge:"end"});D=a?l:C,s=a?C:l}var B,c=tu.nodes(u,{reverse:a,from:D,to:s,pass:e=>{var[t]=e;return!o&&K.isVoid(u,t)}}),f=[];for(var[h,A]of c){var d=B&&0===ou.compare(A,B[1]);if("highest"!==r||!d)if(i(h,A))if("lowest"===r&&d)B=[h,A];else{var F="lowest"===r?B:[h,A];F&&(n?f.push(F):yield F),B=[h,A]}else if(n&&!d&&mu.isText(h))return}"lowest"===r&&B&&(n?f.push(B):yield B),n&&(yield*f)}},normalize(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:t=!1}=e,r=u=>o.get(u)||[],n=u=>{var e=r(u).pop(),t=e.join(",");return(u=>i.get(u)||new Set)(u).delete(t),e};if(K.isNormalizing(u)){if(t){var a=Array.from(tu.nodes(u),(u=>{var[,e]=u;return e})),D=new Set(a.map((u=>u.join(","))));o.set(u,a),i.set(u,D)}0!==r(u).length&&K.withoutNormalizing(u,(()=>{for(var e of r(u))if(tu.has(u,e)){var t=K.node(u,e),[a,o]=t;J.isElement(a)&&0===a.children.length&&u.normalizeNode(t)}for(var i=42*r(u).length,D=0;0!==r(u).length;){if(D>i)throw new Error("\n Could not completely normalize the editor after ".concat(i," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var s=n(u);if(tu.has(u,s)){var C=K.node(u,s);u.normalizeNode(C)}D++}}))}},parent(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=K.path(u,e,t),n=ou.parent(r);return K.node(u,n)},path(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:n}=t;if(ou.isPath(e))if("start"===n){var[,a]=tu.first(u,e);e=a}else if("end"===n){var[,o]=tu.last(u,e);e=o}return fu.isRange(e)&&(e="start"===n?fu.start(e):"end"===n?fu.end(e):ou.common(e.anchor.path,e.focus.path)),Cu.isPoint(e)&&(e=e.path),null!=r&&(e=e.slice(0,r)),e},hasPath:(u,e)=>tu.has(u,e),pathRef(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=t,n={current:e,affinity:r,unref(){var{current:e}=n;return K.pathRefs(u).delete(n),n.current=null,e}};return K.pathRefs(u).add(n),n},pathRefs(u){var e=C.get(u);return e||(e=new Set,C.set(u,e)),e},point(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=t;if(ou.isPath(e)){var n;if("end"===r){var[,a]=tu.last(u,e);n=a}else{var[,o]=tu.first(u,e);n=o}var i=tu.get(u,n);if(!mu.isText(i))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(e,"] because it has no ").concat(r," text node."));return{path:n,offset:"end"===r?i.text.length:0}}if(fu.isRange(e)){var[D,s]=fu.edges(e);return"start"===r?D:s}return e},pointRef(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=t,n={current:e,affinity:r,unref(){var{current:e}=n;return K.pointRefs(u).delete(n),n.current=null,e}};return K.pointRefs(u).add(n),n},pointRefs(u){var e=l.get(u);return e||(e=new Set,l.set(u,e)),e},*positions(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:t=u.selection,unit:r="offset",reverse:n=!1,voids:a=!1}=e;if(t){var o=K.range(u,t),[i,D]=fu.edges(o),s=n?D:i,C=!1,l="",B=0,c=0,f=0;for(var[h,A]of K.nodes(u,{at:t,reverse:n,voids:a})){if(J.isElement(h)){if(!a&&u.isVoid(h)){yield K.start(u,A);continue}if(u.isInline(h))continue;if(K.hasInlines(u,h)){var d=ou.isAncestor(A,D.path)?D:K.end(u,A),v=ou.isAncestor(A,i.path)?i:K.start(u,A);l=K.string(u,{anchor:v,focus:d},{voids:a}),C=!0}}if(mu.isText(h)){var E=ou.equals(A,s.path);for(E?(c=n?s.offset:h.text.length-s.offset,f=s.offset):(c=h.text.length,f=n?c:0),(E||C||"offset"===r)&&(yield{path:A,offset:f},C=!1);;){if(0===B){if(""===l)break;B=p(l,r,n),l=g(l,B,n)[1]}if(f=n?f-B:f+B,(c-=B)<0){B=-c;break}B=0,yield{path:A,offset:f}}}}}function p(u,e,t){return"character"===e?F(u,t):"word"===e?function(u){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=0,r=!1;u.length>0;){var n=F(u,e),[a,o]=g(u,n,e);if(m(a,o,e))r=!0,t+=n;else{if(r)break;t+=n}u=o}return t}(u,t):"line"===e||"block"===e?u.length:1}},previous(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:t="lowest",voids:r=!1}=e,{match:n,at:a=u.selection}=e;if(a){var o=K.before(u,a,{voids:r});if(o){var[,i]=K.first(u,[]),D=[o.path,i];if(ou.isPath(a)&&0===a.length)throw new Error("Cannot get the previous node from the root node!");if(null==n)if(ou.isPath(a)){var[s]=K.parent(u,a);n=u=>s.children.includes(u)}else n=()=>!0;var[C]=K.nodes(u,{reverse:!0,at:D,match:n,mode:t,voids:r});return C}}},range:(u,e,t)=>fu.isRange(e)&&!t?e:{anchor:K.start(u,e),focus:K.end(u,t||e)},rangeRef(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=t,n={current:e,affinity:r,unref(){var{current:e}=n;return K.rangeRefs(u).delete(n),n.current=null,e}};return K.rangeRefs(u).add(n),n},rangeRefs(u){var e=B.get(u);return e||(e=new Set,B.set(u,e)),e},removeMark(u,e){u.removeMark(e)},setNormalizing(u,e){s.set(u,e)},start:(u,e)=>K.point(u,e,{edge:"start"}),string(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=t,n=K.range(u,e),[a,o]=fu.edges(n),i="";for(var[D,s]of K.nodes(u,{at:n,match:mu.isText,voids:r})){var C=D.text;ou.equals(s,o.path)&&(C=C.slice(0,o.offset)),ou.equals(s,a.path)&&(C=C.slice(a.offset)),i+=C}return i},unhangRange(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=t,[n,a]=fu.edges(e);if(0!==n.offset||0!==a.offset||fu.isCollapsed(e))return e;var o=K.above(u,{at:a,match:e=>K.isBlock(u,e)}),i=o?o[1]:[],D={anchor:K.start(u,n),focus:a},s=!0;for(var[C,l]of K.nodes(u,{at:D,match:mu.isText,reverse:!0,voids:r}))if(s)s=!1;else if(""!==C.text||ou.isBefore(l,i)){a={path:l,offset:C.text.length};break}return{anchor:n,focus:a}},void(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return K.above(u,G(G({},e),{},{match:e=>K.isVoid(u,e)}))},withoutNormalizing(u,e){var t=K.isNormalizing(u);K.setNormalizing(u,!1);try{e()}finally{K.setNormalizing(u,t)}K.normalize(u)}},Q={isSpan:u=>Array.isArray(u)&&2===u.length&&u.every(ou.isPath)},X=["children"],uu=["text"],eu=new WeakMap,tu={ancestor(u,e){var t=tu.get(u,e);if(mu.isText(t))throw new Error("Cannot get the ancestor node at path [".concat(e,"] because it refers to a text node instead: ").concat(du.stringify(t)));return t},*ancestors(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of ou.ancestors(e,t)){var n=[tu.ancestor(u,r),r];yield n}},child(u,e){if(mu.isText(u))throw new Error("Cannot get the child of a text node: ".concat(du.stringify(u)));var t=u.children[e];if(null==t)throw new Error("Cannot get child at index `".concat(e,"` in node: ").concat(du.stringify(u)));return t},*children(u,e){for(var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=t,n=tu.ancestor(u,e),{children:a}=n,o=r?a.length-1:0;r?o>=0:o1&&void 0!==arguments[1]?arguments[1]:{};for(var[t,r]of tu.nodes(u,e))0!==r.length&&(yield[t,r])},*elements(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[t,r]of tu.nodes(u,e))J.isElement(t)&&(yield[t,r])},extractProps:u=>J.isAncestor(u)?A(u,X):A(u,uu),first(u,e){for(var t=e.slice(),r=tu.get(u,t);r&&!mu.isText(r)&&0!==r.children.length;)r=r.children[0],t.push(0);return[r,t]},fragment(u,e){if(mu.isText(u))throw new Error("Cannot get a fragment starting from a root text node: ".concat(du.stringify(u)));return(0,n.Uy)({children:u.children},(u=>{var[t,r]=fu.edges(e),n=tu.nodes(u,{reverse:!0,pass:u=>{var[,t]=u;return!fu.includes(e,t)}});for(var[,a]of n){if(!fu.includes(e,a)){var o=tu.parent(u,a),i=a[a.length-1];o.children.splice(i,1)}if(ou.equals(a,r.path)){var D=tu.leaf(u,a);D.text=D.text.slice(0,r.offset)}if(ou.equals(a,t.path)){var s=tu.leaf(u,a);s.text=s.text.slice(t.offset)}}K.isEditor(u)&&(u.selection=null)})).children},get(u,e){for(var t=u,r=0;rmu.isText(u)||J.isElement(u)||K.isEditor(u),isNodeList(u){if(!Array.isArray(u))return!1;var e=eu.get(u);if(void 0!==e)return e;var t=u.every((u=>tu.isNode(u)));return eu.set(u,t),t},last(u,e){for(var t=e.slice(),r=tu.get(u,t);r&&!mu.isText(r)&&0!==r.children.length;){var n=r.children.length-1;r=r.children[n],t.push(n)}return[r,t]},leaf(u,e){var t=tu.get(u,e);if(!mu.isText(t))throw new Error("Cannot get the leaf node at path [".concat(e,"] because it refers to a non-leaf node: ").concat(du.stringify(t)));return t},*levels(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of ou.levels(e,t)){var n=tu.get(u,r);yield[n,r]}},matches:(u,e)=>J.isElement(u)&&J.isElementProps(e)&&J.matches(u,e)||mu.isText(u)&&mu.isTextProps(e)&&mu.matches(u,e),*nodes(u){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:t,reverse:r=!1}=e,{from:n=[],to:a}=e,o=new Set,i=[],D=u;!a||!(r?ou.isBefore(i,a):ou.isAfter(i,a));)if(o.has(D)||(yield[D,i]),o.has(D)||mu.isText(D)||0===D.children.length||null!=t&&!1!==t([D,i])){if(0===i.length)break;if(!r){var s=ou.next(i);if(tu.has(u,s)){i=s,D=tu.get(u,i);continue}}if(r&&0!==i[i.length-1])i=ou.previous(i),D=tu.get(u,i);else i=ou.parent(i),D=tu.get(u,i),o.add(D)}else{o.add(D);var C=r?D.children.length-1:0;ou.isAncestor(i,n)&&(C=n[i.length]),i=i.concat(C),D=tu.get(u,i)}},parent(u,e){var t=ou.parent(e),r=tu.get(u,t);if(mu.isText(r))throw new Error("Cannot get the parent of path [".concat(e,"] because it does not exist in the root."));return r},string:u=>mu.isText(u)?u.text:u.children.map(tu.string).join(""),*texts(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[t,r]of tu.nodes(u,e))mu.isText(t)&&(yield[t,r])}};function ru(u,e){var t=Object.keys(u);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(u);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(u,e).enumerable}))),t.push.apply(t,r)}return t}function nu(u){for(var e=1;eau.isOperation(u)&&u.type.endsWith("_node"),isOperation(u){if(!(0,r.P)(u))return!1;switch(u.type){case"insert_node":case"remove_node":return ou.isPath(u.path)&&tu.isNode(u.node);case"insert_text":case"remove_text":return"number"===typeof u.offset&&"string"===typeof u.text&&ou.isPath(u.path);case"merge_node":return"number"===typeof u.position&&ou.isPath(u.path)&&(0,r.P)(u.properties);case"move_node":return ou.isPath(u.path)&&ou.isPath(u.newPath);case"set_node":return ou.isPath(u.path)&&(0,r.P)(u.properties)&&(0,r.P)(u.newProperties);case"set_selection":return null===u.properties&&fu.isRange(u.newProperties)||null===u.newProperties&&fu.isRange(u.properties)||(0,r.P)(u.properties)&&(0,r.P)(u.newProperties);case"split_node":return ou.isPath(u.path)&&"number"===typeof u.position&&(0,r.P)(u.properties);default:return!1}},isOperationList:u=>Array.isArray(u)&&u.every((u=>au.isOperation(u))),isSelectionOperation:u=>au.isOperation(u)&&u.type.endsWith("_selection"),isTextOperation:u=>au.isOperation(u)&&u.type.endsWith("_text"),inverse(u){switch(u.type){case"insert_node":return nu(nu({},u),{},{type:"remove_node"});case"insert_text":return nu(nu({},u),{},{type:"remove_text"});case"merge_node":return nu(nu({},u),{},{type:"split_node",path:ou.previous(u.path)});case"move_node":var{newPath:e,path:t}=u;if(ou.equals(e,t))return u;if(ou.isSibling(t,e))return nu(nu({},u),{},{path:e,newPath:t});var r=ou.transform(t,u),n=ou.transform(ou.next(t),u);return nu(nu({},u),{},{path:r,newPath:n});case"remove_node":return nu(nu({},u),{},{type:"insert_node"});case"remove_text":return nu(nu({},u),{},{type:"insert_text"});case"set_node":var{properties:a,newProperties:o}=u;return nu(nu({},u),{},{properties:o,newProperties:a});case"set_selection":var{properties:i,newProperties:D}=u;return nu(nu({},u),{},null==i?{properties:D,newProperties:null}:null==D?{properties:null,newProperties:i}:{properties:D,newProperties:i});case"split_node":return nu(nu({},u),{},{type:"merge_node",path:ou.next(u.path)})}}},ou={ancestors(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:t=!1}=e,r=ou.levels(u,e);return r=t?r.slice(1):r.slice(0,-1)},common(u,e){for(var t=[],r=0;re[r])return 1}return 0},endsAfter(u,e){var t=u.length-1,r=u.slice(0,t),n=e.slice(0,t),a=u[t],o=e[t];return ou.equals(r,n)&&a>o},endsAt(u,e){var t=u.length,r=u.slice(0,t),n=e.slice(0,t);return ou.equals(r,n)},endsBefore(u,e){var t=u.length-1,r=u.slice(0,t),n=e.slice(0,t),a=u[t],o=e[t];return ou.equals(r,n)&&au.length===e.length&&u.every(((u,t)=>u===e[t])),hasPrevious:u=>u[u.length-1]>0,isAfter:(u,e)=>1===ou.compare(u,e),isAncestor:(u,e)=>u.length-1===ou.compare(u,e),isChild:(u,e)=>u.length===e.length+1&&0===ou.compare(u,e),isCommon:(u,e)=>u.length<=e.length&&0===ou.compare(u,e),isDescendant:(u,e)=>u.length>e.length&&0===ou.compare(u,e),isParent:(u,e)=>u.length+1===e.length&&0===ou.compare(u,e),isPath:u=>Array.isArray(u)&&(0===u.length||"number"===typeof u[0]),isSibling(u,e){if(u.length!==e.length)return!1;var t=u.slice(0,-1),r=e.slice(0,-1);return u[u.length-1]!==e[e.length-1]&&ou.equals(t,r)},levels(u){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:t=!1}=e,r=[],n=0;n<=u.length;n++)r.push(u.slice(0,n));return t&&r.reverse(),r},next(u){if(0===u.length)throw new Error("Cannot get the next path of a root path [".concat(u,"], because it has no next index."));var e=u[u.length-1];return u.slice(0,-1).concat(e+1)},operationCanTransformPath(u){switch(u.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(u){if(0===u.length)throw new Error("Cannot get the parent path of the root path [".concat(u,"]."));return u.slice(0,-1)},previous(u){if(0===u.length)throw new Error("Cannot get the previous path of a root path [".concat(u,"], because it has no previous index."));var e=u[u.length-1];if(e<=0)throw new Error("Cannot get the previous path of a first child path [".concat(u,"] because it would result in a negative index."));return u.slice(0,-1).concat(e-1)},relative(u,e){if(!ou.isAncestor(e,u)&&!ou.equals(u,e))throw new Error("Cannot get the relative path of [".concat(u,"] inside ancestor [").concat(e,"], because it is not above or equal to the path."));return u.slice(e.length)},transform(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,n.Uy)(u,(r=>{var{affinity:n="forward"}=t;if(u&&0!==(null===u||void 0===u?void 0:u.length)){if(null===r)return null;switch(e.type){case"insert_node":var{path:a}=e;(ou.equals(a,r)||ou.endsBefore(a,r)||ou.isAncestor(a,r))&&(r[a.length-1]+=1);break;case"remove_node":var{path:o}=e;if(ou.equals(o,r)||ou.isAncestor(o,r))return null;ou.endsBefore(o,r)&&(r[o.length-1]-=1);break;case"merge_node":var{path:i,position:D}=e;ou.equals(i,r)||ou.endsBefore(i,r)?r[i.length-1]-=1:ou.isAncestor(i,r)&&(r[i.length-1]-=1,r[i.length]+=D);break;case"split_node":var{path:s,position:C}=e;if(ou.equals(s,r)){if("forward"===n)r[r.length-1]+=1;else if("backward"!==n)return null}else ou.endsBefore(s,r)?r[s.length-1]+=1:ou.isAncestor(s,r)&&u[s.length]>=C&&(r[s.length-1]+=1,r[s.length]-=C);break;case"move_node":var{path:l,newPath:B}=e;if(ou.equals(l,B))return;if(ou.isAncestor(l,r)||ou.equals(l,r)){var c=B.slice();return ou.endsBefore(l,B)&&l.lengthe.offset?1:0:t},isAfter:(u,e)=>1===Cu.compare(u,e),isBefore:(u,e)=>-1===Cu.compare(u,e),equals:(u,e)=>u.offset===e.offset&&ou.equals(u.path,e.path),isPoint:u=>(0,r.P)(u)&&"number"===typeof u.offset&&ou.isPath(u.path),transform(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,n.Uy)(u,(u=>{if(null===u)return null;var{affinity:r="forward"}=t,{path:n,offset:a}=u;switch(e.type){case"insert_node":case"move_node":u.path=ou.transform(n,e,t);break;case"insert_text":ou.equals(e.path,n)&&(e.offset1&&void 0!==arguments[1]?arguments[1]:{},{reverse:t=!1}=e,{anchor:r,focus:n}=u;return fu.isBackward(u)===t?[r,n]:[n,r]},end(u){var[,e]=fu.edges(u);return e},equals:(u,e)=>Cu.equals(u.anchor,e.anchor)&&Cu.equals(u.focus,e.focus),includes(u,e){if(fu.isRange(e)){if(fu.includes(u,e.anchor)||fu.includes(u,e.focus))return!0;var[t,r]=fu.edges(u),[n,a]=fu.edges(e);return Cu.isBefore(t,n)&&Cu.isAfter(r,a)}var[o,i]=fu.edges(u),D=!1,s=!1;return Cu.isPoint(e)?(D=Cu.compare(e,o)>=0,s=Cu.compare(e,i)<=0):(D=ou.compare(e,o.path)>=0,s=ou.compare(e,i.path)<=0),D&&s},intersection(u,e){var t=A(u,Bu),[r,n]=fu.edges(u),[o,i]=fu.edges(e),D=Cu.isBefore(r,o)?o:r,s=Cu.isBefore(n,i)?n:i;return Cu.isBefore(s,D)?null:function(u){for(var e=1;e!fu.isCollapsed(u),isForward:u=>!fu.isBackward(u),isRange:u=>(0,r.P)(u)&&Cu.isPoint(u.anchor)&&Cu.isPoint(u.focus),*points(u){yield[u.anchor,"anchor"],yield[u.focus,"focus"]},start(u){var[e]=fu.edges(u);return e},transform(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,n.Uy)(u,(u=>{if(null===u)return null;var r,n,{affinity:a="inward"}=t;if("inward"===a){var o=fu.isCollapsed(u);fu.isForward(u)?(r="forward",n=o?r:"backward"):(r="backward",n=o?r:"forward")}else"outward"===a?fu.isForward(u)?(r="backward",n="forward"):(r="forward",n="backward"):(r=a,n=a);var i=Cu.transform(u.anchor,e,{affinity:r}),D=Cu.transform(u.focus,e,{affinity:n});if(!i||!D)return null;u.anchor=i,u.focus=D}))}},hu={transform(u,e){var{current:t,affinity:r}=u;if(null!=t){var n=fu.transform(t,e,{affinity:r});u.current=n,null==n&&u.unref()}}},Au=void 0,du={setScrubber(u){Au=u},stringify:u=>JSON.stringify(u,Au)},Fu=(u,e)=>{for(var t in u){var n=u[t],a=e[t];if((0,r.P)(n)&&(0,r.P)(a)){if(!Fu(n,a))return!1}else if(Array.isArray(n)&&Array.isArray(a)){if(n.length!==a.length)return!1;for(var o=0;o2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=t;function n(u){return A(u,vu)}return Fu(r?n(u):u,r?n(e):e)},isText:u=>(0,r.P)(u)&&"string"===typeof u.text,isTextList:u=>Array.isArray(u)&&u.every((u=>mu.isText(u))),isTextProps:u=>void 0!==u.text,matches(u,e){for(var t in e)if("text"!==t&&(!u.hasOwnProperty(t)||u[t]!==e[t]))return!1;return!0},decorations(u,e){var t=[gu({},u)];for(var r of e){var n=A(r,Eu),[a,o]=fu.edges(r),i=[],D=0,s=a.offset,C=o.offset;for(var l of t){var{length:B}=l.text,c=D;if(D+=B,s<=c&&D<=C)Object.assign(l,n),i.push(l);else if(s!==C&&(s===D||C===c)||s>D||Cc){var v=s-c;h=gu(gu({},f),{},{text:f.text.slice(0,v)}),f=gu(gu({},f),{},{text:f.text.slice(v)})}Object.assign(f,n),h&&i.push(h),i.push(f),d&&i.push(d)}}t=i}return t}};function yu(u,e){var t=Object.keys(u);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(u);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(u,e).enumerable}))),t.push.apply(t,r)}return t}function wu(u){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{};K.withoutNormalizing(u,(()=>{var{hanging:r=!1,voids:n=!1,mode:a="lowest"}=t,{at:o,match:i,select:D}=t;if(tu.isNode(e)&&(e=[e]),0!==e.length){var[s]=e;if(o||(o=u.selection?u.selection:u.children.length>0?K.end(u,[]):[0],D=!0),null==D&&(D=!1),fu.isRange(o))if(r||(o=K.unhangRange(u,o)),fu.isCollapsed(o))o=o.anchor;else{var[,C]=fu.edges(o),l=K.pointRef(u,C);zu.delete(u,{at:o}),o=l.unref()}if(Cu.isPoint(o)){null==i&&(i=mu.isText(s)?u=>mu.isText(u):u.isInline(s)?e=>mu.isText(e)||K.isInline(u,e):e=>K.isBlock(u,e));var[B]=K.nodes(u,{at:o.path,match:i,mode:a,voids:n});if(!B)return;var[,c]=B,f=K.pathRef(u,c),h=K.isEnd(u,o,c);zu.splitNodes(u,{at:o,match:i,mode:a,voids:n});var A=f.unref();o=h?ou.next(A):A}var d=ou.parent(o),F=o[o.length-1];if(n||!K.void(u,{at:d})){for(var v of e){var E=d.concat(F);F++,u.apply({type:"insert_node",path:E,node:v}),o=ou.next(o)}if(o=ou.previous(o),D){var p=K.end(u,o);p&&zu.select(u,p)}}}}))},liftNodes(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};K.withoutNormalizing(u,(()=>{var{at:t=u.selection,mode:r="lowest",voids:n=!1}=e,{match:a}=e;if(null==a&&(a=ou.isPath(t)?_u(u,t):e=>K.isBlock(u,e)),t){var o=K.nodes(u,{at:t,match:a,mode:r,voids:n}),i=Array.from(o,(e=>{var[,t]=e;return K.pathRef(u,t)}));for(var D of i){var s=D.unref();if(s.length<2)throw new Error("Cannot lift node at a path [".concat(s,"] because it has a depth of less than `2`."));var C=K.node(u,ou.parent(s)),[l,B]=C,c=s[s.length-1],{length:f}=l.children;if(1===f){var h=ou.next(B);zu.moveNodes(u,{at:s,to:h,voids:n}),zu.removeNodes(u,{at:B,voids:n})}else if(0===c)zu.moveNodes(u,{at:s,to:B,voids:n});else if(c===f-1){var A=ou.next(B);zu.moveNodes(u,{at:s,to:A,voids:n})}else{var d=ou.next(s),F=ou.next(B);zu.splitNodes(u,{at:d,voids:n}),zu.moveNodes(u,{at:s,to:F,voids:n})}}}}))},mergeNodes(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};K.withoutNormalizing(u,(()=>{var{match:t,at:r=u.selection}=e,{hanging:n=!1,voids:a=!1,mode:o="lowest"}=e;if(r){if(null==t)if(ou.isPath(r)){var[i]=K.parent(u,r);t=u=>i.children.includes(u)}else t=e=>K.isBlock(u,e);if(!n&&fu.isRange(r)&&(r=K.unhangRange(u,r)),fu.isRange(r))if(fu.isCollapsed(r))r=r.anchor;else{var[,D]=fu.edges(r),s=K.pointRef(u,D);zu.delete(u,{at:r}),r=s.unref(),null==e.at&&zu.select(u,r)}var[C]=K.nodes(u,{at:r,match:t,voids:a,mode:o}),l=K.previous(u,{at:r,match:t,voids:a,mode:o});if(C&&l){var[B,c]=C,[f,h]=l;if(0!==c.length&&0!==h.length){var d,F,v=ou.next(h),E=ou.common(c,h),p=ou.isSibling(c,h),g=Array.from(K.levels(u,{at:c}),(u=>{var[e]=u;return e})).slice(E.length).slice(0,-1),m=K.above(u,{at:c,mode:"highest",match:e=>g.includes(e)&&ju(u,e)}),y=m&&K.pathRef(u,m[1]);if(mu.isText(B)&&mu.isText(f)){var w=A(B,bu);F=f.text.length,d=w}else{if(!J.isElement(B)||!J.isElement(f))throw new Error("Cannot merge the node at path [".concat(c,"] with the previous sibling because it is not the same kind: ").concat(du.stringify(B)," ").concat(du.stringify(f)));w=A(B,xu);F=f.children.length,d=w}p||zu.moveNodes(u,{at:c,to:v,voids:a}),y&&zu.removeNodes(u,{at:y.current,voids:a}),J.isElement(f)&&K.isEmpty(u,f)||mu.isText(f)&&""===f.text&&0!==h[h.length-1]?zu.removeNodes(u,{at:h,voids:a}):u.apply({type:"merge_node",path:v,position:F,properties:d}),y&&y.unref()}}}}))},moveNodes(u,e){K.withoutNormalizing(u,(()=>{var{to:t,at:r=u.selection,mode:n="lowest",voids:a=!1}=e,{match:o}=e;if(r){null==o&&(o=ou.isPath(r)?_u(u,r):e=>K.isBlock(u,e));var i=K.pathRef(u,t),D=K.nodes(u,{at:r,match:o,mode:n,voids:a}),s=Array.from(D,(e=>{var[,t]=e;return K.pathRef(u,t)}));for(var C of s){var l=C.unref(),B=i.current;0!==l.length&&u.apply({type:"move_node",path:l,newPath:B}),i.current&&ou.isSibling(B,l)&&ou.isAfter(B,l)&&(i.current=ou.next(i.current))}i.unref()}}))},removeNodes(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};K.withoutNormalizing(u,(()=>{var{hanging:t=!1,voids:r=!1,mode:n="lowest"}=e,{at:a=u.selection,match:o}=e;if(a){null==o&&(o=ou.isPath(a)?_u(u,a):e=>K.isBlock(u,e)),!t&&fu.isRange(a)&&(a=K.unhangRange(u,a));var i=K.nodes(u,{at:a,match:o,mode:n,voids:r}),D=Array.from(i,(e=>{var[,t]=e;return K.pathRef(u,t)}));for(var s of D){var C=s.unref();if(C){var[l]=K.node(u,C);u.apply({type:"remove_node",path:C,node:l})}}}}))},setNodes(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};K.withoutNormalizing(u,(()=>{var{match:r,at:n=u.selection,compare:a,merge:o}=t,{hanging:i=!1,mode:D="lowest",split:s=!1,voids:C=!1}=t;if(n){if(null==r&&(r=ou.isPath(n)?_u(u,n):e=>K.isBlock(u,e)),!i&&fu.isRange(n)&&(n=K.unhangRange(u,n)),s&&fu.isRange(n)){if(fu.isCollapsed(n)&&K.leaf(u,n.anchor)[0].text.length>0)return;var l=K.rangeRef(u,n,{affinity:"inward"}),[B,c]=fu.edges(n),f="lowest"===D?"lowest":"highest",h=K.isEnd(u,c,c.path);zu.splitNodes(u,{at:c,match:r,mode:f,voids:C,always:!h});var A=K.isStart(u,B,B.path);zu.splitNodes(u,{at:B,match:r,mode:f,voids:C,always:!A}),n=l.unref(),null==t.at&&zu.select(u,n)}for(var[d,F]of(a||(a=(u,e)=>u!==e),K.nodes(u,{at:n,match:r,mode:D,voids:C}))){var v={},E={};if(0!==F.length){var p=!1;for(var g in e)"children"!==g&&"text"!==g&&a(e[g],d[g])&&(p=!0,d.hasOwnProperty(g)&&(v[g]=d[g]),o?null!=e[g]&&(E[g]=o(d[g],e[g])):null!=e[g]&&(E[g]=e[g]));p&&u.apply({type:"set_node",path:F,properties:v,newProperties:E})}}}}))},splitNodes(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};K.withoutNormalizing(u,(()=>{var{mode:t="lowest",voids:r=!1}=e,{match:n,at:a=u.selection,height:o=0,always:i=!1}=e;if(null==n&&(n=e=>K.isBlock(u,e)),fu.isRange(a)&&(a=Nu(u,a)),ou.isPath(a)){var D=a,s=K.point(u,D),[C]=K.parent(u,D);n=u=>u===C,o=s.path.length-D.length+1,a=s,i=!0}if(a){var l,B=K.pointRef(u,a,{affinity:"backward"});try{var[c]=K.nodes(u,{at:a,match:n,mode:t,voids:r});if(!c)return;var f=K.void(u,{at:a,mode:"highest"});if(!r&&f){var[h,A]=f;if(J.isElement(h)&&u.isInline(h)){var d=K.after(u,A);if(!d){var F=ou.next(A);zu.insertNodes(u,{text:""},{at:F,voids:r}),d=K.point(u,F)}a=d,i=!0}o=a.path.length-A.length+1,i=!0}l=K.pointRef(u,a);var v=a.path.length-o,[,E]=c,p=a.path.slice(0,v),g=0===o?a.offset:a.path[v]+0;for(var[m,y]of K.levels(u,{at:p,reverse:!0,voids:r})){var w=!1;if(y.length2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(e)||(e=[e]);var r={};for(var n of e)r[n]=null;zu.setNodes(u,r,t)},unwrapNodes(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};K.withoutNormalizing(u,(()=>{var{mode:t="lowest",split:r=!1,voids:n=!1}=e,{at:a=u.selection,match:o}=e;if(a){null==o&&(o=ou.isPath(a)?_u(u,a):e=>K.isBlock(u,e)),ou.isPath(a)&&(a=K.range(u,a));var i=fu.isRange(a)?K.rangeRef(u,a):null,D=K.nodes(u,{at:a,match:o,mode:t,voids:n}),s=Array.from(D,(e=>{var[,t]=e;return K.pathRef(u,t)})).reverse(),C=function(e){var t=e.unref(),[a]=K.node(u,t),o=K.range(u,t);r&&i&&(o=fu.intersection(i.current,o)),zu.liftNodes(u,{at:o,match:u=>J.isAncestor(a)&&a.children.includes(u),voids:n})};for(var l of s)C(l);i&&i.unref()}}))},wrapNodes(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};K.withoutNormalizing(u,(()=>{var{mode:r="lowest",split:n=!1,voids:a=!1}=t,{match:o,at:i=u.selection}=t;if(i){if(null==o&&(o=ou.isPath(i)?_u(u,i):u.isInline(e)?e=>K.isInline(u,e)||mu.isText(e):e=>K.isBlock(u,e)),n&&fu.isRange(i)){var[D,s]=fu.edges(i),C=K.rangeRef(u,i,{affinity:"inward"});zu.splitNodes(u,{at:s,match:o,voids:a}),zu.splitNodes(u,{at:D,match:o,voids:a}),i=C.unref(),null==t.at&&zu.select(u,i)}var l=Array.from(K.nodes(u,{at:i,match:u.isInline(e)?e=>K.isBlock(u,e):u=>K.isEditor(u),mode:"lowest",voids:a}));for(var[,B]of l){var c=fu.isRange(i)?fu.intersection(i,K.range(u,B)):i;if(c){var f=Array.from(K.nodes(u,{at:c,match:o,mode:r,voids:a}));if(f.length>0)if("continue"===function(){var[t]=f,r=f[f.length-1],[,n]=t,[,o]=r;if(0===n.length&&0===o.length)return"continue";var i=ou.equals(n,o)?ou.parent(n):ou.common(n,o),D=K.range(u,n,o),s=K.node(u,i),[C]=s,l=i.length+1,B=ou.next(o.slice(0,l)),c=Pu(Pu({},e),{},{children:[]});zu.insertNodes(u,c,{at:B,voids:a}),zu.moveNodes(u,{at:D,match:u=>J.isAncestor(C)&&C.children.includes(u),to:B.concat(0),voids:a})}())continue}}}}))}},ju=(u,e)=>{if(J.isElement(e)){var t=e;return!!K.isVoid(u,e)||1===t.children.length&&ju(u,t.children[0])}return!K.isEditor(e)},Nu=(u,e)=>{if(fu.isCollapsed(e))return e.anchor;var[,t]=fu.edges(e),r=K.pointRef(u,t);return zu.delete(u,{at:e}),r.unref()},_u=(u,e)=>{var[t]=K.node(u,e);return u=>u===t};function Tu(u,e){var t=Object.keys(u);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(u);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(u,e).enumerable}))),t.push.apply(t,r)}return t}function Ru(u){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},{edge:t="anchor"}=e,{selection:r}=u;if(r)if("anchor"===t)zu.select(u,r.anchor);else if("focus"===t)zu.select(u,r.focus);else if("start"===t){var[n]=fu.edges(r);zu.select(u,n)}else if("end"===t){var[,a]=fu.edges(r);zu.select(u,a)}},deselect(u){var{selection:e}=u;e&&u.apply({type:"set_selection",properties:e,newProperties:null})},move(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:t}=u,{distance:r=1,unit:n="character",reverse:a=!1}=e,{edge:o=null}=e;if(t){"start"===o&&(o=fu.isBackward(t)?"focus":"anchor"),"end"===o&&(o=fu.isBackward(t)?"anchor":"focus");var{anchor:i,focus:D}=t,s={distance:r,unit:n},C={};if(null==o||"anchor"===o){var l=a?K.before(u,i,s):K.after(u,i,s);l&&(C.anchor=l)}if(null==o||"focus"===o){var B=a?K.before(u,D,s):K.after(u,D,s);B&&(C.focus=B)}zu.setSelection(u,C)}},select(u,e){var{selection:t}=u;if(e=K.range(u,e),t)zu.setSelection(u,e);else{if(!fu.isRange(e))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(du.stringify(e)));u.apply({type:"set_selection",properties:t,newProperties:e})}},setPoint(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=u,{edge:n="both"}=t;if(r){"start"===n&&(n=fu.isBackward(r)?"focus":"anchor"),"end"===n&&(n=fu.isBackward(r)?"anchor":"focus");var{anchor:a,focus:o}=r,i="anchor"===n?a:o;zu.setSelection(u,{["anchor"===n?"anchor":"focus"]:Ru(Ru({},i),e)})}},setSelection(u,e){var{selection:t}=u,r={},n={};if(t){for(var a in e)("anchor"===a&&null!=e.anchor&&!Cu.equals(e.anchor,t.anchor)||"focus"===a&&null!=e.focus&&!Cu.equals(e.focus,t.focus)||"anchor"!==a&&"focus"!==a&&e[a]!==t[a])&&(r[a]=t[a],n[a]=e[a]);Object.keys(r).length>0&&u.apply({type:"set_selection",properties:r,newProperties:n})}}},qu={delete(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};K.withoutNormalizing(u,(()=>{var{reverse:t=!1,unit:r="character",distance:n=1,voids:a=!1}=e,{at:o=u.selection,hanging:i=!1}=e;if(o){var D=!1;if(fu.isRange(o)&&fu.isCollapsed(o)&&(D=!0,o=o.anchor),Cu.isPoint(o)){var s=K.void(u,{at:o,mode:"highest"});if(!a&&s){var[,C]=s;o=C}else{var l={unit:r,distance:n};o={anchor:o,focus:t?K.before(u,o,l)||K.start(u,[]):K.after(u,o,l)||K.end(u,[])},i=!0}}if(ou.isPath(o))zu.removeNodes(u,{at:o,voids:a});else if(!fu.isCollapsed(o)){if(!i){var[,B]=fu.edges(o),c=K.end(u,[]);Cu.equals(B,c)||(o=K.unhangRange(u,o,{voids:a}))}var[f,h]=fu.edges(o),A=K.above(u,{match:e=>K.isBlock(u,e),at:f,voids:a}),d=K.above(u,{match:e=>K.isBlock(u,e),at:h,voids:a}),F=A&&d&&!ou.equals(A[1],d[1]),v=ou.equals(f.path,h.path),E=a?null:K.void(u,{at:f,mode:"highest"}),p=a?null:K.void(u,{at:h,mode:"highest"});if(E){var g=K.before(u,f);g&&A&&ou.isAncestor(A[1],g.path)&&(f=g)}if(p){var m=K.after(u,h);m&&d&&ou.isAncestor(d[1],m.path)&&(h=m)}var y,w=[];for(var b of K.nodes(u,{at:o,voids:a})){var[x,O]=b;y&&0===ou.compare(O,y)||(!a&&K.isVoid(u,x)||!ou.isCommon(O,f.path)&&!ou.isCommon(O,h.path))&&(w.push(b),y=O)}var P=Array.from(w,(e=>{var[,t]=e;return K.pathRef(u,t)})),k=K.pointRef(u,f),j=K.pointRef(u,h),N="";if(!v&&!E){var _=k.current,[T]=K.leaf(u,_),{path:R}=_,{offset:S}=f,q=T.text.slice(S);q.length>0&&(u.apply({type:"remove_text",path:R,offset:S,text:q}),N=q)}for(var I of P){var V=I.unref();zu.removeNodes(u,{at:V,voids:a})}if(!p){var z=j.current,[L]=K.leaf(u,z),{path:M}=z,W=v?f.offset:0,$=L.text.slice(W,h.offset);$.length>0&&(u.apply({type:"remove_text",path:M,offset:W,text:$}),N=$)}!v&&F&&j.current&&k.current&&zu.mergeNodes(u,{at:j.current,hanging:!0,voids:a}),D&&t&&"character"===r&&N.length>1&&N.match(/[\u0E00-\u0E7F]+/)&&zu.insertText(u,N.slice(0,N.length-n));var J=k.unref(),Z=j.unref(),U=t?J||Z:Z||J;null==e.at&&U&&zu.select(u,U)}}}))},insertFragment(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};K.withoutNormalizing(u,(()=>{var{hanging:r=!1,voids:n=!1}=t,{at:a=u.selection}=t;if(e.length&&a){if(fu.isRange(a))if(r||(a=K.unhangRange(u,a)),fu.isCollapsed(a))a=a.anchor;else{var[,o]=fu.edges(a);if(!n&&K.void(u,{at:o}))return;var i=K.pointRef(u,o);zu.delete(u,{at:a}),a=i.unref()}else ou.isPath(a)&&(a=K.start(u,a));if(n||!K.void(u,{at:a})){var D=K.above(u,{at:a,match:e=>K.isInline(u,e),mode:"highest",voids:n});if(D){var[,s]=D;if(K.isEnd(u,a,s))a=K.after(u,s);else if(K.isStart(u,a,s)){a=K.before(u,s)}}var C=K.above(u,{match:e=>K.isBlock(u,e),at:a,voids:n}),[,l]=C,B=K.isStart(u,a,l),c=K.isEnd(u,a,l),f=B&&c,h=!B||B&&c,A=!c,[,d]=tu.first({children:e},[]),[,F]=tu.last({children:e},[]),v=[],E=e=>{var[t,r]=e;return!(0===r.length)&&(!!f||!(h&&ou.isAncestor(r,d)&&J.isElement(t)&&!u.isVoid(t)&&!u.isInline(t))&&!(A&&ou.isAncestor(r,F)&&J.isElement(t)&&!u.isVoid(t)&&!u.isInline(t)))};for(var p of tu.nodes({children:e},{pass:E}))E(p)&&v.push(p);var g=[],m=[],y=[],w=!0,b=!1;for(var[x]of v)J.isElement(x)&&!u.isInline(x)?(w=!1,b=!0,m.push(x)):w?g.push(x):y.push(x);var[O]=K.nodes(u,{at:a,match:e=>mu.isText(e)||K.isInline(u,e),mode:"highest",voids:n}),[,P]=O,k=K.isStart(u,a,P),j=K.isEnd(u,a,P),N=K.pathRef(u,c&&!y.length?ou.next(l):l),_=K.pathRef(u,j?ou.next(P):P);zu.splitNodes(u,{at:a,match:e=>b?K.isBlock(u,e):mu.isText(e)||K.isInline(u,e),mode:b?"lowest":"highest",always:b&&(!B||g.length>0)&&(!c||y.length>0),voids:n});var T,R=K.pathRef(u,!k||k&&j?ou.next(P):P);if(zu.insertNodes(u,g,{at:R.current,match:e=>mu.isText(e)||K.isInline(u,e),mode:"highest",voids:n}),f&&!g.length&&m.length&&!y.length&&zu.delete(u,{at:l,voids:n}),zu.insertNodes(u,m,{at:N.current,match:e=>K.isBlock(u,e),mode:"lowest",voids:n}),zu.insertNodes(u,y,{at:_.current,match:e=>mu.isText(e)||K.isInline(u,e),mode:"highest",voids:n}),!t.at)if(y.length>0&&_.current?T=ou.previous(_.current):m.length>0&&N.current?T=ou.previous(N.current):R.current&&(T=ou.previous(R.current)),T){var S=K.end(u,T);zu.select(u,S)}R.unref(),N.unref(),_.unref()}}}))},insertText(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};K.withoutNormalizing(u,(()=>{var{voids:r=!1}=t,{at:n=u.selection}=t;if(n){if(ou.isPath(n)&&(n=K.range(u,n)),fu.isRange(n))if(fu.isCollapsed(n))n=n.anchor;else{var a=fu.end(n);if(!r&&K.void(u,{at:a}))return;var o=fu.start(n),i=K.pointRef(u,o),D=K.pointRef(u,a);zu.delete(u,{at:n,voids:r});var s=i.unref(),C=D.unref();n=s||C,zu.setSelection(u,{anchor:n,focus:n})}if(r||!K.void(u,{at:n})){var{path:l,offset:B}=n;e.length>0&&u.apply({type:"insert_text",path:l,offset:B,text:e})}}}))}};function Iu(u,e){var t=Object.keys(u);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(u);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(u,e).enumerable}))),t.push.apply(t,r)}return t}function Vu(u){for(var e=1;e{switch(t.type){case"insert_node":var{path:r,node:n}=t,a=tu.parent(u,r),o=r[r.length-1];if(o>a.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(a.children.splice(o,0,n),e)for(var[i,D]of fu.points(e))e[D]=Cu.transform(i,t);break;case"insert_text":var{path:s,offset:C,text:l}=t;if(0===l.length)break;var B=tu.leaf(u,s),c=B.text.slice(0,C),f=B.text.slice(C);if(B.text=c+l+f,e)for(var[h,A]of fu.points(e))e[A]=Cu.transform(h,t);break;case"merge_node":var{path:d}=t,F=tu.get(u,d),v=ou.previous(d),E=tu.get(u,v),p=tu.parent(u,d),g=d[d.length-1];if(mu.isText(F)&&mu.isText(E))E.text+=F.text;else{if(mu.isText(F)||mu.isText(E))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(d,"] to nodes of different interfaces: ").concat(du.stringify(F)," ").concat(du.stringify(E)));E.children.push(...F.children)}if(p.children.splice(g,1),e)for(var[m,y]of fu.points(e))e[y]=Cu.transform(m,t);break;case"move_node":var{path:w,newPath:b}=t;if(ou.isAncestor(w,b))throw new Error("Cannot move a path [".concat(w,"] to new path [").concat(b,"] because the destination is inside itself."));var x=tu.get(u,w),O=tu.parent(u,w),P=w[w.length-1];O.children.splice(P,1);var k=ou.transform(w,t),j=tu.get(u,ou.parent(k)),N=k[k.length-1];if(j.children.splice(N,0,x),e)for(var[_,T]of fu.points(e))e[T]=Cu.transform(_,t);break;case"remove_node":var{path:R}=t,S=R[R.length-1];if(tu.parent(u,R).children.splice(S,1),e)for(var[q,I]of fu.points(e)){var V=Cu.transform(q,t);if(null!=e&&null!=V)e[I]=V;else{var z=void 0,L=void 0;for(var[M,W]of tu.texts(u)){if(-1!==ou.compare(W,R)){L=[M,W];break}z=[M,W]}var $=!1;z&&L&&($=ou.equals(L[1],R)?!ou.hasPrevious(L[1]):ou.common(z[1],R).length0?l:0)}if(a().console){var u=a().console[i];u||"debug"!==i||(u=a().console.info||a().console.log),u&&s&&o.test(i)&&u[Array.isArray(r)?"apply":"call"](a().console,r)}}}(t,r),r.createLogger=function(i){return e(t+": "+i)},r.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:n},r.level=function(e){if("string"===typeof e){if(!r.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');n=e}return n},(r.history=function(){return H?[].concat(H):[]}).filter=function(e){return(H||[]).filter((function(t){return new RegExp(".*"+e+".*").test(t[0])}))},r.history.clear=function(){H&&(H.length=0)},r.history.disable=function(){null!==H&&(H.length=0,H=null)},r.history.enable=function(){null===H&&(H=[])},r.error=function(){for(var e=arguments.length,t=new Array(e),r=0;r1?t-1:0),n=1;n=0)throw new Error("class has illegal whitespace characters")}function Te(){return o()===a().document}function be(e){return Z(e)&&1===e.nodeType}function Se(){try{return a().parent!==a().self}catch(e){return!0}}function ke(e){return function(t,i){if(!ve(t))return o()[e](null);ve(i)&&(i=o().querySelector(i));var n=be(i)?i:o();return n[e]&&n[e](t)}}function Ce(e,t,i,n){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===i&&(i={});var r=o().createElement(e);return Object.getOwnPropertyNames(t).forEach((function(e){var i=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(q.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+i+"."),r.setAttribute(e,i)):"textContent"===e?Ee(r,i):r[e]===i&&"tabIndex"!==e||(r[e]=i)})),Object.getOwnPropertyNames(i).forEach((function(e){r.setAttribute(e,i[e])})),n&&We(r,n),r}function Ee(e,t){return"undefined"===typeof e.textContent?e.innerText=t:e.textContent=t,e}function we(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function Ie(e,t){return ye(t),e.classList?e.classList.contains(t):(i=t,new RegExp("(^|\\s)"+i+"($|\\s)")).test(e.className);var i}function xe(e,t){return e.classList?e.classList.add(t):Ie(e,t)||(e.className=(e.className+" "+t).trim()),e}function Pe(e,t){return e?(e.classList?e.classList.remove(t):(ye(t),e.className=e.className.split(/\s+/).filter((function(e){return e!==t})).join(" ")),e):(q.warn("removeClass was called with an element that doesn't exist"),null)}function Ae(e,t,i){var n=Ie(e,t);if("function"===typeof i&&(i=i(e,t)),"boolean"!==typeof i&&(i=!n),i!==n)return i?xe(e,t):Pe(e,t),e}function Le(e,t){Object.getOwnPropertyNames(t).forEach((function(i){var n=t[i];null===n||"undefined"===typeof n||!1===n?e.removeAttribute(i):e.setAttribute(i,!0===n?"":n)}))}function Oe(e){var t={},i=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0)for(var n=e.attributes,r=n.length-1;r>=0;r--){var a=n[r].name,s=n[r].value;"boolean"!==typeof e[a]&&-1===i.indexOf(","+a+",")||(s=null!==s),t[a]=s}return t}function De(e,t){return e.getAttribute(t)}function Me(e,t,i){e.setAttribute(t,i)}function Re(e,t){e.removeAttribute(t)}function Ue(){o().body.focus(),o().onselectstart=function(){return!1}}function Be(){o().onselectstart=function(){return!0}}function Ne(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),i={};return["bottom","height","left","right","top","width"].forEach((function(e){void 0!==t[e]&&(i[e]=t[e])})),i.height||(i.height=parseFloat(X(e,"height"))),i.width||(i.width=parseFloat(X(e,"width"))),i}}function Fe(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};for(var t=e.offsetWidth,i=e.offsetHeight,n=0,r=0;e.offsetParent&&e!==o()[U.fullscreenElement];)n+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:n,top:r,width:t,height:i}}function je(e,t){var i={x:0,y:0};if(me)for(var n=e;n&&"html"!==n.nodeName.toLowerCase();){var r=X(n,"transform");if(/^matrix/.test(r)){var a=r.slice(7,-1).split(/,\s/).map(Number);i.x+=a[4],i.y+=a[5]}else if(/^matrix3d/.test(r)){var s=r.slice(9,-1).split(/,\s/).map(Number);i.x+=s[12],i.y+=s[13]}n=n.parentNode}var o={},l=Fe(t.target),u=Fe(e),d=u.width,c=u.height,h=t.offsetY-(u.top-l.top),p=t.offsetX-(u.left-l.left);return t.changedTouches&&(p=t.changedTouches[0].pageX-u.left,h=t.changedTouches[0].pageY+u.top,me&&(p-=i.x,h-=i.y)),o.y=1-Math.max(0,Math.min(1,h/c)),o.x=Math.max(0,Math.min(1,p/d)),o}function He(e){return Z(e)&&3===e.nodeType}function qe(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function Ve(e){return"function"===typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map((function(e){return"function"===typeof e&&(e=e()),be(e)||He(e)?e:"string"===typeof e&&/\S/.test(e)?o().createTextNode(e):void 0})).filter((function(e){return e}))}function We(e,t){return Ve(t).forEach((function(t){return e.appendChild(t)})),e}function ze(e,t){return We(qe(e),t)}function Ge(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||("mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons))}var Ke,Ze=ke("querySelector"),Qe=ke("querySelectorAll"),Xe=Object.freeze({__proto__:null,isReal:Te,isEl:be,isInFrame:Se,createEl:Ce,textContent:Ee,prependTo:we,hasClass:Ie,addClass:xe,removeClass:Pe,toggleClass:Ae,setAttributes:Le,getAttributes:Oe,getAttribute:De,setAttribute:Me,removeAttribute:Re,blockTextSelection:Ue,unblockTextSelection:Be,getBoundingClientRect:Ne,findPosition:Fe,getPointerPosition:je,isTextNode:He,emptyEl:qe,normalizeContent:Ve,appendContent:We,insertContent:ze,isSingleLeftClick:Ge,$:Ze,$$:Qe}),Ye=!1,$e=function(){if(!1!==Ke.options.autoSetup){var e=Array.prototype.slice.call(o().getElementsByTagName("video")),t=Array.prototype.slice.call(o().getElementsByTagName("audio")),i=Array.prototype.slice.call(o().getElementsByTagName("video-js")),n=e.concat(t,i);if(n&&n.length>0)for(var r=0,a=n.length;r-1&&(r={passive:!0}),e.addEventListener(t,n.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,n.dispatcher)}function pt(e,t,i){if(ot.has(e)){var n=ot.get(e);if(n.handlers){if(Array.isArray(t))return ut(pt,e,t,i);var r=function(e,t){n.handlers[t]=[],lt(e,t)};if(void 0!==t){var a=n.handlers[t];if(a)if(i){if(i.guid)for(var s=0;s=t&&(e.apply(void 0,arguments),i=n)}},St=function(){};St.prototype.allowedEvents_={},St.prototype.on=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},ht(this,e,t),this.addEventListener=i},St.prototype.addEventListener=St.prototype.on,St.prototype.off=function(e,t){pt(this,e,t)},St.prototype.removeEventListener=St.prototype.off,St.prototype.one=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},mt(this,e,t),this.addEventListener=i},St.prototype.any=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},gt(this,e,t),this.addEventListener=i},St.prototype.trigger=function(e){var t=e.type||e;"string"===typeof e&&(e={type:t}),e=dt(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),ft(this,e)},St.prototype.dispatchEvent=St.prototype.trigger,St.prototype.queueTrigger=function(e){var t=this;_t||(_t=new Map);var i=e.type||e,n=_t.get(this);n||(n=new Map,_t.set(this,n));var r=n.get(i);n.delete(i),a().clearTimeout(r);var s=a().setTimeout((function(){0===n.size&&(n=null,_t.delete(t)),t.trigger(e)}),0);n.set(i,s)};var kt=function(e){return"function"===typeof e.name?e.name():"string"===typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e},Ct=function(e){return e instanceof St||!!e.eventBusEl_&&["on","one","off","trigger"].every((function(t){return"function"===typeof e[t]}))},Et=function(e){return"string"===typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},wt=function(e,t,i){if(!e||!e.nodeName&&!Ct(e))throw new Error("Invalid target for "+kt(t)+"#"+i+"; must be a DOM node or evented object.")},It=function(e,t,i){if(!Et(e))throw new Error("Invalid event type for "+kt(t)+"#"+i+"; must be a non-empty string or array.")},xt=function(e,t,i){if("function"!==typeof e)throw new Error("Invalid listener for "+kt(t)+"#"+i+"; must be a function.")},Pt=function(e,t,i){var n,r,a,s=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return s?(n=e.eventBusEl_,t.length>=3&&t.shift(),r=t[0],a=t[1]):(n=t[0],r=t[1],a=t[2]),wt(n,e,i),It(r,e,i),xt(a,e,i),{isTargetingSelf:s,target:n,type:r,listener:a=Tt(e,a)}},At=function(e,t,i,n){wt(e,e,t),e.nodeName?vt[t](e,i,n):e[t](i,n)},Lt={on:function(){for(var e=this,t=arguments.length,i=new Array(t),n=0;n=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}},t.isDisposed=function(){return Boolean(this.isDisposed_)},t.player=function(){return this.player_},t.options=function(e){return e?(this.options_=Bt(this.options_,e),this.options_):this.options_},t.el=function(){return this.el_},t.createEl=function(e,t,i){return Ce(e,t,i)},t.localize=function(e,t,i){void 0===i&&(i=e);var n=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),a=r&&r[n],s=n&&n.split("-")[0],o=r&&r[s],l=i;return a&&a[e]?l=a[e]:o&&o[e]&&(l=o[e]),t&&(l=l.replace(/\{(\d+)\}/g,(function(e,i){var n=t[i-1],r=n;return"undefined"===typeof n&&(r=e),r}))),l},t.handleLanguagechange=function(){},t.contentEl=function(){return this.contentEl_||this.el_},t.id=function(){return this.id_},t.name=function(){return this.name_},t.children=function(){return this.children_},t.getChildById=function(e){return this.childIndex_[e]},t.getChild=function(e){if(e)return this.childNameIndex_[e]},t.getDescendant=function(){for(var e=arguments.length,t=new Array(e),i=0;i=0;i--)if(this.children_[i]===e){t=!0,this.children_.splice(i,1);break}if(t){e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[Ut(e.name())]=null,this.childNameIndex_[Rt(e.name())]=null;var n=e.el();n&&n.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},t.initChildren=function(){var t=this,i=this.options_.children;if(i){var n,r=this.options_,a=e.getComponent("Tech");(n=Array.isArray(i)?i:Object.keys(i)).concat(Object.keys(this.options_).filter((function(e){return!n.some((function(t){return"string"===typeof t?e===t:e===t.name}))}))).map((function(e){var n,r;return"string"===typeof e?r=i[n=e]||t.options_[n]||{}:(n=e.name,r=e),{name:n,opts:r}})).filter((function(t){var i=e.getComponent(t.opts.componentClass||Ut(t.name));return i&&!a.isTech(i)})).forEach((function(e){var i=e.name,n=e.opts;if(void 0!==r[i]&&(n=r[i]),!1!==n){!0===n&&(n={}),n.playerOptions=t.options_.playerOptions;var a=t.addChild(i,n);a&&(t[i]=a)}}))}},t.buildCSSClass=function(){return""},t.ready=function(e,t){if(void 0===t&&(t=!1),e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},t.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach((function(e){e.call(this)}),this),this.trigger("ready")}),1)},t.$=function(e,t){return Ze(e,t||this.contentEl())},t.$$=function(e,t){return Qe(e,t||this.contentEl())},t.hasClass=function(e){return Ie(this.el_,e)},t.addClass=function(e){xe(this.el_,e)},t.removeClass=function(e){Pe(this.el_,e)},t.toggleClass=function(e,t){Ae(this.el_,e,t)},t.show=function(){this.removeClass("vjs-hidden")},t.hide=function(){this.addClass("vjs-hidden")},t.lockShowing=function(){this.addClass("vjs-lock-showing")},t.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.getAttribute=function(e){return De(this.el_,e)},t.setAttribute=function(e,t){Me(this.el_,e,t)},t.removeAttribute=function(e){Re(this.el_,e)},t.width=function(e,t){return this.dimension("width",e,t)},t.height=function(e,t){return this.dimension("height",e,t)},t.dimensions=function(e,t){this.width(e,!0),this.height(t)},t.dimension=function(e,t,i){if(void 0!==t)return null!==t&&t===t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(i||this.trigger("componentresize"));if(!this.el_)return 0;var n=this.el_.style[e],r=n.indexOf("px");return-1!==r?parseInt(n.slice(0,r),10):parseInt(this.el_["offset"+Ut(e)],10)},t.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=X(this.el_,e),0===(t=parseFloat(t))||isNaN(t)){var i="offset"+Ut(e);t=this.el_[i]}return t},t.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.currentWidth=function(){return this.currentDimension("width")},t.currentHeight=function(){return this.currentDimension("height")},t.focus=function(){this.el_.focus()},t.blur=function(){this.el_.blur()},t.handleKeyDown=function(e){this.player_&&(d().isEventKey(e,"Tab")||e.stopPropagation(),this.player_.handleKeyDown(e))},t.handleKeyPress=function(e){this.handleKeyDown(e)},t.emitTapEvents=function(){var e,t=0,i=null;this.on("touchstart",(function(n){1===n.touches.length&&(i={pageX:n.touches[0].pageX,pageY:n.touches[0].pageY},t=a().performance.now(),e=!0)})),this.on("touchmove",(function(t){if(t.touches.length>1)e=!1;else if(i){var n=t.touches[0].pageX-i.pageX,r=t.touches[0].pageY-i.pageY;Math.sqrt(n*n+r*r)>10&&(e=!1)}}));var n=function(){e=!1};this.on("touchleave",n),this.on("touchcancel",n),this.on("touchend",(function(n){(i=null,!0===e)&&(a().performance.now()-t<200&&(n.preventDefault(),this.trigger("tap")))}))},t.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e,t=Tt(this.player(),this.player().reportUserActivity);this.on("touchstart",(function(){t(),this.clearInterval(e),e=this.setInterval(t,250)}));var i=function(i){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",i),this.on("touchcancel",i)}},t.setTimeout=function(e,t){var i,n=this;return e=Tt(this,e),this.clearTimersOnDispose_(),i=a().setTimeout((function(){n.setTimeoutIds_.has(i)&&n.setTimeoutIds_.delete(i),e()}),t),this.setTimeoutIds_.add(i),i},t.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),a().clearTimeout(e)),e},t.setInterval=function(e,t){e=Tt(this,e),this.clearTimersOnDispose_();var i=a().setInterval(e,t);return this.setIntervalIds_.add(i),i},t.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),a().clearInterval(e)),e},t.requestAnimationFrame=function(e){var t,i=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=Tt(this,e),t=a().requestAnimationFrame((function(){i.rafIds_.has(t)&&i.rafIds_.delete(t),e()})),this.rafIds_.add(t),t):this.setTimeout(e,1e3/60)},t.requestNamedAnimationFrame=function(e,t){var i=this;if(!this.namedRafs_.has(e)){this.clearTimersOnDispose_(),t=Tt(this,t);var n=this.requestAnimationFrame((function(){t(),i.namedRafs_.has(e)&&i.namedRafs_.delete(e)}));return this.namedRafs_.set(e,n),e}},t.cancelNamedAnimationFrame=function(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))},t.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_.delete(e),a().cancelAnimationFrame(e)),e):this.clearTimeout(e)},t.clearTimersOnDispose_=function(){var e=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",(function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach((function(t){var i=t[0],n=t[1];e[i].forEach((function(t,i){return e[n](i)}))})),e.clearingTimersOnDispose_=!1})))},e.registerComponent=function(t,i){if("string"!==typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var n,r=e.getComponent("Tech"),a=r&&r.isTech(i),s=e===i||e.prototype.isPrototypeOf(i.prototype);if(a||!s)throw n=a?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+n+".");t=Ut(t),e.components_||(e.components_={});var o=e.getComponent("Player");if("Player"===t&&o&&o.players){var l=o.players,u=Object.keys(l);if(l&&u.length>0&&u.map((function(e){return l[e]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=i,e.components_[Rt(t)]=i,i},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();function Vt(e,t,i,n){return function(e,t,i){if("number"!==typeof t||t<0||t>i)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+i+").")}(e,n,i.length-1),i[n][t]}function Wt(e){var t;return t=void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:Vt.bind(null,"start",0,e),end:Vt.bind(null,"end",1,e)},a().Symbol&&a().Symbol.iterator&&(t[a().Symbol.iterator]=function(){return(e||[]).values()}),t}function zt(e,t){return Array.isArray(e)?Wt(e):void 0===e||void 0===t?Wt():Wt([[e,t]])}function Gt(e,t){var i,n,r=0;if(!t)return 0;e&&e.length||(e=zt(0,0));for(var a=0;at&&(n=t),r+=n-i;return r/t}function Kt(e){if(e instanceof Kt)return e;"number"===typeof e?this.code=e:"string"===typeof e?this.message=e:Z(e)&&("number"===typeof e.code&&(this.code=e.code),K(this,e)),this.message||(this.message=Kt.defaultMessages[this.code]||"")}qt.prototype.supportsRaf_="function"===typeof a().requestAnimationFrame&&"function"===typeof a().cancelAnimationFrame,qt.registerComponent("Component",qt),Kt.prototype.code=0,Kt.prototype.message="",Kt.prototype.status=null,Kt.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Kt.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var Zt=0;Zt=0;n--)if(t[n].enabled){ni(t,t[n]);break}return(i=e.call(this,t)||this).changing_=!1,i}(0,h.Z)(t,e);var i=t.prototype;return i.addTrack=function(t){var i=this;t.enabled&&ni(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.enabledChange_=function(){i.changing_||(i.changing_=!0,ni(i,t),i.changing_=!1,i.trigger("change"))},t.addEventListener("enabledchange",t.enabledChange_))},i.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)},t}(ti),ai=function(e,t){for(var i=0;i=0;n--)if(t[n].selected){ai(t,t[n]);break}return(i=e.call(this,t)||this).changing_=!1,Object.defineProperty((0,c.Z)(i),"selectedIndex",{get:function(){for(var e=0;e0&&(a().console&&a().console.groupCollapsed&&a().console.groupCollapsed("Text Track parsing errors for "+t.src),n.forEach((function(e){return q.error(e)})),a().console&&a().console.groupEnd&&a().console.groupEnd()),i.flush()},bi=function(e,t){var i={uri:e},n=vi(e);n&&(i.cors=n);var r="use-credentials"===t.tech_.crossOrigin();r&&(i.withCredentials=r),g()(i,Tt(this,(function(e,i,n){if(e)return q.error(e,i);t.loaded_=!0,"function"!==typeof a().WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],(function(e){if("vttjserror"!==e.type)return Ti(n,t);q.error("vttjs failed to load, stopping trying to process "+t.src)})):Ti(n,t)})))},Si=function(e){function t(t){var i;if(void 0===t&&(t={}),!t.tech)throw new Error("A tech was not provided.");var n=Bt(t,{kind:hi[t.kind]||"subtitles",language:t.language||t.srclang||""}),r=pi[n.mode]||"disabled",a=n.default;"metadata"!==n.kind&&"chapters"!==n.kind||(r="hidden"),(i=e.call(this,n)||this).tech_=n.tech,i.cues_=[],i.activeCues_=[],i.preload_=!1!==i.tech_.preloadTextTracks;var s=new ui(i.cues_),o=new ui(i.activeCues_),l=!1;i.timeupdateHandler=Tt((0,c.Z)(i),(function(){this.tech_.isDisposed()||(this.tech_.isReady_?(this.activeCues=this.activeCues,l&&(this.trigger("cuechange"),l=!1),this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler)):this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))}));return i.tech_.one("dispose",(function(){i.stopTracking()})),"disabled"!==r&&i.startTracking(),Object.defineProperties((0,c.Z)(i),{default:{get:function(){return a},set:function(){}},mode:{get:function(){return r},set:function(e){pi[e]&&r!==e&&(r=e,this.preload_||"disabled"===r||0!==this.cues.length||bi(this.src,this),this.stopTracking(),"disabled"!==r&&this.startTracking(),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?s:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return o;for(var e=this.tech_.currentTime(),t=[],i=0,n=this.cues.length;i=e||r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e)&&t.push(r)}if(l=!1,t.length!==this.activeCues_.length)l=!0;else for(var a=0;a0)return void this.trigger("vttjsloaded");var t=o().createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",(function(){t.onload=null,t.onerror=null})),a().WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},i.emulateTextTracks=function(){var e=this,t=this.textTracks(),i=this.remoteTextTracks(),n=function(e){return t.addTrack(e.track)},r=function(e){return t.removeTrack(e.track)};i.on("addtrack",n),i.on("removetrack",r),this.addWebVttScript_();var a=function(){return e.trigger("texttrackchange")},s=function(){a();for(var e=0;e=0;r--){var a=e[r];a[t]&&a[t](n,i)}}(e,i,o,s),o}var Ri={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},Ui={setCurrentTime:1,setMuted:1,setVolume:1},Bi={play:1,pause:1};function Ni(e){return function(t,i){return t===Oi?Oi:i[e]?i[e](t):t}}function Fi(e,t,i,n,r,a){void 0===e&&(e={}),void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===a&&(a=!1);var s=t,o=s[0],l=s.slice(1);if("string"===typeof o)Fi(e,Ai[o],i,n,r,a);else if(o){var u=function(e,t){var i=Li[e.id()],n=null;if(void 0===i||null===i)return n=t(e),Li[e.id()]=[[t,n]],n;for(var r=0;r0;!this.player_.tech(!0)||(ue||se)&&t||this.player_.tech(!0).focus(),this.player_.paused()?Xt(this.player_.play()):this.player_.pause()}},t}(zi);qt.registerComponent("PosterImage",Gi);var Ki={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function Zi(e,t){var i;if(4===e.length)i=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");i=e.slice(1)}return"rgba("+parseInt(i.slice(0,2),16)+","+parseInt(i.slice(2,4),16)+","+parseInt(i.slice(4,6),16)+","+t+")"}function Qi(e,t,i){try{e.style[t]=i}catch(n){return}}var Xi=function(e){function t(t,i,n){var r;r=e.call(this,t,i,n)||this;var s=function(e){return r.updateDisplay(e)};return t.on("loadstart",(function(e){return r.toggleDisplay(e)})),t.on("texttrackchange",s),t.on("loadedmetadata",(function(e){return r.preselectTrack(e)})),t.ready(Tt((0,c.Z)(r),(function(){if(t.tech_&&t.tech_.featuresNativeTextTracks)this.hide();else{t.on("fullscreenchange",s),t.on("playerresize",s),a().addEventListener("orientationchange",s),t.on("dispose",(function(){return a().removeEventListener("orientationchange",s)}));for(var e=this.options_.playerOptions.tracks||[],i=0;i0;return Xt(t),void(!this.player_.tech(!0)||(ue||se)&&i||this.player_.tech(!0).focus())}var n=this.player_.getChild("controlBar"),r=n&&n.getChild("playToggle");if(r){var a=function(){return r.focus()};Qt(t)?t.then(a,(function(){})):this.setTimeout(a,1)}else this.player_.tech(!0).focus()},i.handleKeyDown=function(t){this.mouseused_=!1,e.prototype.handleKeyDown.call(this,t)},i.handleMouseDown=function(e){this.mouseused_=!0},t}($i);Ji.prototype.controlText_="Play Video",qt.registerComponent("BigPlayButton",Ji);var en=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).controlText(i&&i.controlText||n.localize("Close")),n}(0,h.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},i.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},i.handleKeyDown=function(t){d().isEventKey(t,"Esc")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}($i);qt.registerComponent("CloseButton",en);var tn=function(e){function t(t,i){var n;return void 0===i&&(i={}),n=e.call(this,t,i)||this,i.replay=void 0===i.replay||i.replay,n.on(t,"play",(function(e){return n.handlePlay(e)})),n.on(t,"pause",(function(e){return n.handlePause(e)})),i.replay&&n.on(t,"ended",(function(e){return n.handleEnded(e)})),n}(0,h.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},i.handleClick=function(e){this.player_.paused()?Xt(this.player_.play()):this.player_.pause()},i.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},i.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},i.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},i.handleEnded=function(e){var t=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",(function(e){return t.handleSeeked(e)}))},t}($i);tn.prototype.controlText_="Play",qt.registerComponent("PlayToggle",tn);var nn=function(e,t){e=e<0?0:e;var i=Math.floor(e%60),n=Math.floor(e/60%60),r=Math.floor(e/3600),a=Math.floor(t/60%60),s=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=n=i="-"),(r=r>0||s>0?r+":":"")+(n=((r||a>=10)&&n<10?"0"+n:n)+":")+(i=i<10?"0"+i:i)},rn=nn;function an(e,t){return void 0===t&&(t=e),rn(e,t)}var sn=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).on(t,["timeupdate","ended"],(function(e){return n.updateContent(e)})),n.updateTextNode_(),n}(0,h.Z)(t,e);var i=t.prototype;return i.createEl=function(){var t=this.buildCSSClass(),i=e.prototype.createEl.call(this,"div",{className:t+" vjs-time-control vjs-control"}),n=Ce("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+"\xa0"},{role:"presentation"});return i.appendChild(n),this.contentEl_=Ce("span",{className:t+"-display"},{"aria-live":"off",role:"presentation"}),i.appendChild(this.contentEl_),i},i.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},i.updateTextNode_=function(e){var t=this;void 0===e&&(e=0),e=an(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",(function(){if(t.contentEl_){var e=t.textNode_;e&&t.contentEl_.firstChild!==e&&(e=null,q.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),t.textNode_=o().createTextNode(t.formattedTime_),t.textNode_&&(e?t.contentEl_.replaceChild(t.textNode_,e):t.contentEl_.appendChild(t.textNode_))}})))},i.updateContent=function(e){},t}(qt);sn.prototype.labelText_="Time",sn.prototype.controlText_="Time",qt.registerComponent("TimeDisplay",sn);var on=function(e){function t(){return e.apply(this,arguments)||this}(0,h.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-current-time"},i.updateContent=function(e){var t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)},t}(sn);on.prototype.labelText_="Current Time",on.prototype.controlText_="Current Time",qt.registerComponent("CurrentTimeDisplay",on);var ln=function(e){function t(t,i){var n,r=function(e){return n.updateContent(e)};return(n=e.call(this,t,i)||this).on(t,"durationchange",r),n.on(t,"loadstart",r),n.on(t,"loadedmetadata",r),n}(0,h.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-duration"},i.updateContent=function(e){var t=this.player_.duration();this.updateTextNode_(t)},t}(sn);ln.prototype.labelText_="Duration",ln.prototype.controlText_="Duration",qt.registerComponent("DurationDisplay",ln);var un=function(e){function t(){return e.apply(this,arguments)||this}return(0,h.Z)(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),i=e.prototype.createEl.call(this,"div"),n=e.prototype.createEl.call(this,"span",{textContent:"/"});return i.appendChild(n),t.appendChild(i),t},t}(qt);qt.registerComponent("TimeDivider",un);var dn=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).on(t,"durationchange",(function(e){return n.updateContent(e)})),n}(0,h.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-remaining-time"},i.createEl=function(){var t=e.prototype.createEl.call(this);return!1!==this.options_.displayNegative&&t.insertBefore(Ce("span",{},{"aria-hidden":!0},"-"),this.contentEl_),t},i.updateContent=function(e){var t;"number"===typeof this.player_.duration()&&(t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t))},t}(sn);dn.prototype.labelText_="Remaining Time",dn.prototype.controlText_="Remaining Time",qt.registerComponent("RemainingTimeDisplay",dn);var cn=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).updateShowing(),n.on(n.player(),"durationchange",(function(e){return n.updateShowing(e)})),n}(0,h.Z)(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=Ce("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(Ce("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+"\xa0"})),this.contentEl_.appendChild(o().createTextNode(this.localize("LIVE"))),t.appendChild(this.contentEl_),t},i.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},i.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(qt);qt.registerComponent("LiveDisplay",cn);var hn=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).updateLiveEdgeStatus(),n.player_.liveTracker&&(n.updateLiveEdgeStatusHandler_=function(e){return n.updateLiveEdgeStatus(e)},n.on(n.player_.liveTracker,"liveedgechange",n.updateLiveEdgeStatusHandler_)),n}(0,h.Z)(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=Ce("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),t.appendChild(this.textEl_),t},i.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},i.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},i.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,e.prototype.dispose.call(this)},t}($i);hn.prototype.controlText_="Seek to live, currently playing live",qt.registerComponent("SeekToLive",hn);var pn=function(e,t,i){return e=Number(e),Math.min(i,Math.max(t,isNaN(e)?t:e))},fn=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).handleMouseDown_=function(e){return n.handleMouseDown(e)},n.handleMouseUp_=function(e){return n.handleMouseUp(e)},n.handleKeyDown_=function(e){return n.handleKeyDown(e)},n.handleClick_=function(e){return n.handleClick(e)},n.handleMouseMove_=function(e){return n.handleMouseMove(e)},n.update_=function(e){return n.update(e)},n.bar=n.getChild(n.options_.barName),n.vertical(!!n.options_.vertical),n.enable(),n}(0,h.Z)(t,e);var i=t.prototype;return i.enabled=function(){return this.enabled_},i.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},i.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},i.createEl=function(t,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),i.className=i.className+" vjs-slider",i=K({tabIndex:0},i),n=K({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},n),e.prototype.createEl.call(this,t,i,n)},i.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||oe||e.preventDefault(),Ue(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)},i.handleMouseMove=function(e){},i.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;Be(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.update()},i.update=function(){var e=this;if(this.el_&&this.bar){var t=this.getProgress();return t===this.progress_||(this.progress_=t,this.requestNamedAnimationFrame("Slider#update",(function(){var i=e.vertical()?"height":"width";e.bar.el().style[i]=(100*t).toFixed(2)+"%"}))),t}},i.getProgress=function(){return Number(pn(this.getPercent(),0,1).toFixed(4))},i.calculateDistance=function(e){var t=je(this.el_,e);return this.vertical()?t.y:t.x},i.handleKeyDown=function(t){d().isEventKey(t,"Left")||d().isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepBack()):d().isEventKey(t,"Right")||d().isEventKey(t,"Up")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):e.prototype.handleKeyDown.call(this,t)},i.handleClick=function(e){e.stopPropagation(),e.preventDefault()},i.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(qt);qt.registerComponent("Slider",fn);var mn=function(e,t){return pn(e/t*100,0,100).toFixed(2)+"%"},gn=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).partEls_=[],n.on(t,"progress",(function(e){return n.update(e)})),n}(0,h.Z)(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),i=Ce("span",{className:"vjs-control-text"}),n=Ce("span",{textContent:this.localize("Loaded")}),r=o().createTextNode(": ");return this.percentageEl_=Ce("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),t.appendChild(i),i.appendChild(n),i.appendChild(r),i.appendChild(this.percentageEl_),t},i.dispose=function(){this.partEls_=null,this.percentageEl_=null,e.prototype.dispose.call(this)},i.update=function(e){var t=this;this.requestNamedAnimationFrame("LoadProgressBar#update",(function(){var e=t.player_.liveTracker,i=t.player_.buffered(),n=e&&e.isLive()?e.seekableEnd():t.player_.duration(),r=t.player_.bufferedEnd(),a=t.partEls_,s=mn(r,n);t.percent_!==s&&(t.el_.style.width=s,Ee(t.percentageEl_,s),t.percent_=s);for(var o=0;oi.length;c--)t.el_.removeChild(a[c-1]);a.length=i.length}))},t}(qt);qt.registerComponent("LoadProgressBar",gn);var _n=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).update=bt(Tt((0,c.Z)(n),n.update),yt),n}(0,h.Z)(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},i.update=function(e,t,i){var n=Fe(this.el_),r=Ne(this.player_.el()),a=e.width*t;if(r&&n){var s=e.left-r.left+a,o=e.width-a+(r.right-e.right),l=n.width/2;sn.width&&(l=n.width),l=Math.round(l),this.el_.style.right="-"+l+"px",this.write(i)}},i.write=function(e){Ee(this.el_,e)},i.updateTime=function(e,t,i,n){var r=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",(function(){var a,s=r.player_.duration();if(r.player_.liveTracker&&r.player_.liveTracker.isLive()){var o=r.player_.liveTracker.liveWindow(),l=o-t*o;a=(l<1?"":"-")+an(l,o)}else a=an(i,s);r.update(e,t,a),n&&n()}))},t}(qt);qt.registerComponent("TimeTooltip",_n);var vn=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).update=bt(Tt((0,c.Z)(n),n.update),yt),n}(0,h.Z)(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},i.update=function(e,t){var i=this.getChild("timeTooltip");if(i){var n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();i.updateTime(e,t,n)}},t}(qt);vn.prototype.options_={children:[]},me||ie||vn.prototype.options_.children.push("timeTooltip"),qt.registerComponent("PlayProgressBar",vn);var yn=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).update=bt(Tt((0,c.Z)(n),n.update),yt),n}(0,h.Z)(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},i.update=function(e,t){var i=this,n=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,n,(function(){i.el_.style.left=e.width*t+"px"}))},t}(qt);yn.prototype.options_={children:["timeTooltip"]},qt.registerComponent("MouseTimeDisplay",yn);var Tn=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).setEventHandlers_(),n}(0,h.Z)(t,e);var i=t.prototype;return i.setEventHandlers_=function(){var e=this;this.update_=Tt(this,this.update),this.update=bt(this.update_,yt),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=function(t){return e.enableInterval_(t)},this.disableIntervalHandler_=function(t){return e.disableInterval_(t)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in o()&&"visibilityState"in o()&&this.on(o(),"visibilitychange",this.toggleVisibility_)},i.toggleVisibility_=function(e){"hidden"===o().visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},i.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,yt))},i.disableInterval_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},i.update=function(t){var i=this;if("hidden"!==o().visibilityState){var n=e.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",(function(){var e=i.player_.ended()?i.player_.duration():i.getCurrentTime_(),t=i.player_.liveTracker,r=i.player_.duration();t&&t.isLive()&&(r=i.player_.liveTracker.liveCurrentTime()),i.percent_!==n&&(i.el_.setAttribute("aria-valuenow",(100*n).toFixed(2)),i.percent_=n),i.currentTime_===e&&i.duration_===r||(i.el_.setAttribute("aria-valuetext",i.localize("progress bar timing: currentTime={1} duration={2}",[an(e,r),an(r,r)],"{1} of {2}")),i.currentTime_=e,i.duration_=r),i.bar&&i.bar.update(Ne(i.el()),i.getProgress())})),n}},i.userSeek_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)},i.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},i.getPercent=function(){var e,t=this.getCurrentTime_(),i=this.player_.liveTracker;return i&&i.isLive()?(e=(t-i.seekableStart())/i.liveWindow(),i.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),e},i.handleMouseDown=function(t){Ge(t)&&(t.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},i.handleMouseMove=function(e,t){if(void 0===t&&(t=!1),Ge(e)){var i;t||this.player_.scrubbing()||this.player_.scrubbing(!0);var n=this.calculateDistance(e),r=this.player_.liveTracker;if(r&&r.isLive()){if(n>=.99)return void r.seekToLiveEdge();var a=r.seekableStart(),s=r.liveCurrentTime();if((i=a+n*r.liveWindow())>=s&&(i=s),i<=a&&(i=a+.1),i===1/0)return}else(i=n*this.player_.duration())===this.player_.duration()&&(i-=.1);this.userSeek_(i)}},i.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},i.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},i.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?Xt(this.player_.play()):this.update_()},i.stepForward=function(){this.userSeek_(this.player_.currentTime()+5)},i.stepBack=function(){this.userSeek_(this.player_.currentTime()-5)},i.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},i.handleKeyDown=function(t){var i=this.player_.liveTracker;if(d().isEventKey(t,"Space")||d().isEventKey(t,"Enter"))t.preventDefault(),t.stopPropagation(),this.handleAction(t);else if(d().isEventKey(t,"Home"))t.preventDefault(),t.stopPropagation(),this.userSeek_(0);else if(d().isEventKey(t,"End"))t.preventDefault(),t.stopPropagation(),i&&i.isLive()?this.userSeek_(i.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(d()(t))){t.preventDefault(),t.stopPropagation();var n=10*(d().codes[d()(t)]-d().codes[0])/100;i&&i.isLive()?this.userSeek_(i.seekableStart()+i.liveWindow()*n):this.userSeek_(this.player_.duration()*n)}else d().isEventKey(t,"PgDn")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):d().isEventKey(t,"PgUp")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):e.prototype.handleKeyDown.call(this,t)},i.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in o()&&"visibilityState"in o()&&this.off(o(),"visibilitychange",this.toggleVisibility_),e.prototype.dispose.call(this)},t}(fn);Tn.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},me||ie||Tn.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),qt.registerComponent("SeekBar",Tn);var bn=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).handleMouseMove=bt(Tt((0,c.Z)(n),n.handleMouseMove),yt),n.throttledHandleMouseSeek=bt(Tt((0,c.Z)(n),n.handleMouseSeek),yt),n.handleMouseUpHandler_=function(e){return n.handleMouseUp(e)},n.handleMouseDownHandler_=function(e){return n.handleMouseDown(e)},n.enable(),n}(0,h.Z)(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},i.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var i=t.getChild("playProgressBar"),n=t.getChild("mouseTimeDisplay");if(i||n){var r=t.el(),a=Fe(r),s=je(r,e).x;s=pn(s,0,1),n&&n.update(a,s),i&&i.update(a,t.getProgress())}}},i.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},i.enabled=function(){return this.enabled_},i.disable=function(){if(this.children().forEach((function(e){return e.disable&&e.disable()})),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){var e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&Xt(this.player_.play())}},i.enable=function(){this.children().forEach((function(e){return e.enable&&e.enable()})),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},i.removeListenersAddedOnMousedownAndTouchstart=function(){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)},i.handleMouseDown=function(e){var t=this.el_.ownerDocument,i=this.getChild("seekBar");i&&i.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},i.handleMouseUp=function(e){var t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()},t}(qt);bn.prototype.options_={children:["seekBar"]},qt.registerComponent("ProgressControl",bn);var Sn=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).on(t,["enterpictureinpicture","leavepictureinpicture"],(function(e){return n.handlePictureInPictureChange(e)})),n.on(t,["disablepictureinpicturechanged","loadedmetadata"],(function(e){return n.handlePictureInPictureEnabledChange(e)})),n.on(t,["loadedmetadata","audioonlymodechange","audiopostermodechange"],(function(){"audio"===t.currentType().substring(0,5)||t.audioPosterMode()||t.audioOnlyMode()?(t.isInPictureInPicture()&&t.exitPictureInPicture(),n.hide()):n.show()})),n.disable(),n}(0,h.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-picture-in-picture-control "+e.prototype.buildCSSClass.call(this)},i.handlePictureInPictureEnabledChange=function(){o().pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},i.handlePictureInPictureChange=function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},i.handleClick=function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},t}($i);Sn.prototype.controlText_="Picture-in-Picture",qt.registerComponent("PictureInPictureToggle",Sn);var kn=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).on(t,"fullscreenchange",(function(e){return n.handleFullscreenChange(e)})),!1===o()[t.fsApi_.fullscreenEnabled]&&n.disable(),n}(0,h.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},i.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},i.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}($i);kn.prototype.controlText_="Fullscreen",qt.registerComponent("FullscreenToggle",kn);var Cn=function(e){function t(){return e.apply(this,arguments)||this}return(0,h.Z)(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-volume-level"});return t.appendChild(e.prototype.createEl.call(this,"span",{className:"vjs-control-text"})),t},t}(qt);qt.registerComponent("VolumeLevel",Cn);var En=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).update=bt(Tt((0,c.Z)(n),n.update),yt),n}(0,h.Z)(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},i.update=function(e,t,i,n){if(!i){var r=Ne(this.el_),a=Ne(this.player_.el()),s=e.width*t;if(!a||!r)return;var o=e.left-a.left+s,l=e.width-s+(a.right-e.right),u=r.width/2;or.width&&(u=r.width),this.el_.style.right="-"+u+"px"}this.write(n+"%")},i.write=function(e){Ee(this.el_,e)},i.updateVolume=function(e,t,i,n,r){var a=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",(function(){a.update(e,t,i,n.toFixed(0)),r&&r()}))},t}(qt);qt.registerComponent("VolumeLevelTooltip",En);var wn=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).update=bt(Tt((0,c.Z)(n),n.update),yt),n}(0,h.Z)(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},i.update=function(e,t,i){var n=this,r=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,i,r,(function(){i?n.el_.style.bottom=e.height*t+"px":n.el_.style.left=e.width*t+"px"}))},t}(qt);wn.prototype.options_={children:["volumeLevelTooltip"]},qt.registerComponent("MouseVolumeLevelDisplay",wn);var In=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).on("slideractive",(function(e){return n.updateLastVolume_(e)})),n.on(t,"volumechange",(function(e){return n.updateARIAAttributes(e)})),t.ready((function(){return n.updateARIAAttributes()})),n}(0,h.Z)(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},i.handleMouseDown=function(t){Ge(t)&&e.prototype.handleMouseDown.call(this,t)},i.handleMouseMove=function(e){var t=this.getChild("mouseVolumeLevelDisplay");if(t){var i=this.el(),n=Ne(i),r=this.vertical(),a=je(i,e);a=r?a.y:a.x,a=pn(a,0,1),t.update(n,a,r)}Ge(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},i.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},i.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},i.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},i.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},i.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},i.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},i.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",(function(){0===e.player_.volume()&&e.player_.lastVolume_(t)}))},t}(fn);In.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},me||ie||In.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),In.prototype.playerEvent="volumechange",qt.registerComponent("VolumeBar",In);var xn=function(e){function t(t,i){var n;return void 0===i&&(i={}),i.vertical=i.vertical||!1,("undefined"===typeof i.volumeBar||Q(i.volumeBar))&&(i.volumeBar=i.volumeBar||{},i.volumeBar.vertical=i.vertical),n=e.call(this,t,i)||this,function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))}((0,c.Z)(n),t),n.throttledHandleMouseMove=bt(Tt((0,c.Z)(n),n.handleMouseMove),yt),n.handleMouseUpHandler_=function(e){return n.handleMouseUp(e)},n.on("mousedown",(function(e){return n.handleMouseDown(e)})),n.on("touchstart",(function(e){return n.handleMouseDown(e)})),n.on("mousemove",(function(e){return n.handleMouseMove(e)})),n.on(n.volumeBar,["focus","slideractive"],(function(){n.volumeBar.addClass("vjs-slider-active"),n.addClass("vjs-slider-active"),n.trigger("slideractive")})),n.on(n.volumeBar,["blur","sliderinactive"],(function(){n.volumeBar.removeClass("vjs-slider-active"),n.removeClass("vjs-slider-active"),n.trigger("sliderinactive")})),n}(0,h.Z)(t,e);var i=t.prototype;return i.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},i.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},i.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)},i.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(qt);xn.prototype.options_={children:["volumeBar"]},qt.registerComponent("VolumeControl",xn);var Pn=function(e){function t(t,i){var n;return n=e.call(this,t,i)||this,function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))}((0,c.Z)(n),t),n.on(t,["loadstart","volumechange"],(function(e){return n.update(e)})),n}(0,h.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},i.handleClick=function(e){var t=this.player_.volume(),i=this.player_.lastVolume_();if(0===t){var n=i<.1?.1:i;this.player_.volume(n),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},i.update=function(e){this.updateIcon_(),this.updateControlText_()},i.updateIcon_=function(){var e=this.player_.volume(),t=3;me&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var i=0;i<4;i++)Pe(this.el_,"vjs-vol-"+i);xe(this.el_,"vjs-vol-"+t)},i.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)},t}($i);Pn.prototype.controlText_="Mute",qt.registerComponent("MuteToggle",Pn);var An=function(e){function t(t,i){var n;return void 0===i&&(i={}),"undefined"!==typeof i.inline?i.inline=i.inline:i.inline=!0,("undefined"===typeof i.volumeControl||Q(i.volumeControl))&&(i.volumeControl=i.volumeControl||{},i.volumeControl.vertical=!i.inline),(n=e.call(this,t,i)||this).handleKeyPressHandler_=function(e){return n.handleKeyPress(e)},n.on(t,["loadstart"],(function(e){return n.volumePanelState_(e)})),n.on(n.muteToggle,"keyup",(function(e){return n.handleKeyPress(e)})),n.on(n.volumeControl,"keyup",(function(e){return n.handleVolumeControlKeyUp(e)})),n.on("keydown",(function(e){return n.handleKeyPress(e)})),n.on("mouseover",(function(e){return n.handleMouseOver(e)})),n.on("mouseout",(function(e){return n.handleMouseOut(e)})),n.on(n.volumeControl,["slideractive"],n.sliderActive_),n.on(n.volumeControl,["sliderinactive"],n.sliderInactive_),n}(0,h.Z)(t,e);var i=t.prototype;return i.sliderActive_=function(){this.addClass("vjs-slider-active")},i.sliderInactive_=function(){this.removeClass("vjs-slider-active")},i.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},i.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},i.dispose=function(){this.handleMouseOut(),e.prototype.dispose.call(this)},i.handleVolumeControlKeyUp=function(e){d().isEventKey(e,"Esc")&&this.muteToggle.focus()},i.handleMouseOver=function(e){this.addClass("vjs-hover"),ht(o(),"keyup",this.handleKeyPressHandler_)},i.handleMouseOut=function(e){this.removeClass("vjs-hover"),pt(o(),"keyup",this.handleKeyPressHandler_)},i.handleKeyPress=function(e){d().isEventKey(e,"Esc")&&this.handleMouseOut()},t}(qt);An.prototype.options_={children:["muteToggle","volumeControl"]},qt.registerComponent("VolumePanel",An);var Ln=function(e){function t(t,i){var n;return n=e.call(this,t,i)||this,i&&(n.menuButton_=i.menuButton),n.focusedChild_=-1,n.on("keydown",(function(e){return n.handleKeyDown(e)})),n.boundHandleBlur_=function(e){return n.handleBlur(e)},n.boundHandleTapClick_=function(e){return n.handleTapClick(e)},n}(0,h.Z)(t,e);var i=t.prototype;return i.addEventListenerForItem=function(e){e instanceof qt&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},i.removeEventListenerForItem=function(e){e instanceof qt&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))},i.removeChild=function(t){"string"===typeof t&&(t=this.getChild(t)),this.removeEventListenerForItem(t),e.prototype.removeChild.call(this,t)},i.addItem=function(e){var t=this.addChild(e);t&&this.addEventListenerForItem(t)},i.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=Ce(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var i=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return i.appendChild(this.contentEl_),ht(i,"click",(function(e){e.preventDefault(),e.stopImmediatePropagation()})),i},i.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,e.prototype.dispose.call(this)},i.handleBlur=function(e){var t=e.relatedTarget||o().activeElement;if(!this.children().some((function(e){return e.el()===t}))){var i=this.menuButton_;i&&i.buttonPressed_&&t!==i.el().firstChild&&i.unpressButton()}},i.handleTapClick=function(e){if(this.menuButton_){this.menuButton_.unpressButton();var t=this.children();if(!Array.isArray(t))return;var i=t.filter((function(t){return t.el()===e.target}))[0];if(!i)return;"CaptionSettingsMenuItem"!==i.name()&&this.menuButton_.focus()}},i.handleKeyDown=function(e){d().isEventKey(e,"Left")||d().isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(d().isEventKey(e,"Right")||d().isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())},i.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},i.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},i.focus=function(e){void 0===e&&(e=0);var t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(qt);qt.registerComponent("Menu",Ln);var On=function(e){function t(t,i){var n;void 0===i&&(i={}),(n=e.call(this,t,i)||this).menuButton_=new $i(t,i),n.menuButton_.controlText(n.controlText_),n.menuButton_.el_.setAttribute("aria-haspopup","true");var r=$i.prototype.buildCSSClass();n.menuButton_.el_.className=n.buildCSSClass()+" "+r,n.menuButton_.removeClass("vjs-control"),n.addChild(n.menuButton_),n.update(),n.enabled_=!0;var a=function(e){return n.handleClick(e)};return n.handleMenuKeyUp_=function(e){return n.handleMenuKeyUp(e)},n.on(n.menuButton_,"tap",a),n.on(n.menuButton_,"click",a),n.on(n.menuButton_,"keydown",(function(e){return n.handleKeyDown(e)})),n.on(n.menuButton_,"mouseenter",(function(){n.addClass("vjs-hover"),n.menu.show(),ht(o(),"keyup",n.handleMenuKeyUp_)})),n.on("mouseleave",(function(e){return n.handleMouseLeave(e)})),n.on("keydown",(function(e){return n.handleSubmenuKeyDown(e)})),n}(0,h.Z)(t,e);var i=t.prototype;return i.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))},i.createMenu=function(){var e=new Ln(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=Ce("li",{className:"vjs-menu-title",textContent:Ut(this.options_.title),tabIndex:-1}),i=new qt(this.player_,{el:t});e.addItem(i)}if(this.items=this.createItems(),this.items)for(var n=0;n-1&&"showing"===a.mode){i=!1;break}}i!==this.isSelected_&&this.selected(i)},i.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),i=!0,n=0,r=t.length;n-1&&"showing"===a.mode){i=!1;break}}i&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(Un);qt.registerComponent("OffTextTrackMenuItem",Bn);var Nn=function(e){function t(t,i){return void 0===i&&(i={}),i.tracks=t.textTracks(),e.call(this,t,i)||this}return(0,h.Z)(t,e),t.prototype.createItems=function(e,t){var i;void 0===e&&(e=[]),void 0===t&&(t=Un),this.label_&&(i=this.label_+" off"),e.push(new Bn(this.player_,{kinds:this.kinds_,kind:this.kind_,label:i})),this.hideThreshold_+=1;var n=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r-1){var s=new t(this.player_,{track:a,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});s.addClass("vjs-"+a.kind+"-menu-item"),e.push(s)}}return e},t}(Dn);qt.registerComponent("TextTrackButton",Nn);var Fn=function(e){function t(t,i){var n,r=i.track,a=i.cue,s=t.currentTime();return i.selectable=!0,i.multiSelectable=!1,i.label=a.text,i.selected=a.startTime<=s&&s=0;t--){var i=e[t];if(i.kind===this.kind_)return i}},i.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(Ut(this.kind_))},i.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},i.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var i=0,n=t.length;i-1&&(n.label_="captions"),n.menuButton_.controlText(Ut(n.label_)),n}(0,h.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},i.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},i.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new Vn(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=e.prototype.createItems.call(this,t,zn)},t}(Nn);Gn.prototype.kinds_=["captions","subtitles"],Gn.prototype.controlText_="Subtitles",qt.registerComponent("SubsCapsButton",Gn);var Kn=function(e){function t(t,i){var n,r=i.track,a=t.audioTracks();i.label=r.label||r.language||"Unknown",i.selected=r.enabled,(n=e.call(this,t,i)||this).track=r,n.addClass("vjs-"+r.kind+"-menu-item");var s=function(){for(var e=arguments.length,t=new Array(e),i=0;i=0;i--)t.push(new Qn(this.player(),{rate:e[i]+"x"}));return t},i.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},i.handleClick=function(e){var t=this.player().playbackRate(),i=this.playbackRates(),n=(i.indexOf(t)+1)%i.length;this.player().playbackRate(i[n])},i.handlePlaybackRateschange=function(e){this.update()},i.playbackRates=function(){var e=this.player();return e.playbackRates&&e.playbackRates()||[]},i.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},i.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},i.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")},t}(On);Xn.prototype.controlText_="Playback Rate",qt.registerComponent("PlaybackRateMenuButton",Xn);var Yn=function(e){function t(){return e.apply(this,arguments)||this}(0,h.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},i.createEl=function(t,i,n){return void 0===t&&(t="div"),void 0===i&&(i={}),void 0===n&&(n={}),i.className||(i.className=this.buildCSSClass()),e.prototype.createEl.call(this,t,i,n)},t}(qt);qt.registerComponent("Spacer",Yn);var $n=function(e){function t(){return e.apply(this,arguments)||this}(0,h.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),textContent:"\xa0"})},t}(Yn);qt.registerComponent("CustomControlSpacer",$n);var Jn=function(e){function t(){return e.apply(this,arguments)||this}return(0,h.Z)(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(qt);Jn.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in o()&&Jn.prototype.options_.children.splice(Jn.prototype.options_.children.length-1,0,"pictureInPictureToggle"),qt.registerComponent("ControlBar",Jn);var er=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).on(t,"error",(function(e){return n.open(e)})),n}(0,h.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},i.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(ei);er.prototype.options_=(0,l.Z)({},ei.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),qt.registerComponent("ErrorDisplay",er);var tr="vjs-text-track-settings",ir=["#000","Black"],nr=["#00F","Blue"],rr=["#0FF","Cyan"],ar=["#0F0","Green"],sr=["#F0F","Magenta"],or=["#F00","Red"],lr=["#FFF","White"],ur=["#FF0","Yellow"],dr=["1","Opaque"],cr=["0.5","Semi-Transparent"],hr=["0","Transparent"],pr={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[ir,lr,or,ar,nr,ur,sr,rr]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[dr,cr,hr]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[lr,ir,or,ar,nr,ur,sr,rr]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[dr,cr]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[hr,cr,dr]}};function fr(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}pr.windowColor.options=pr.backgroundColor.options;var mr=function(e){function t(t,i){var n;return i.temporary=!1,(n=e.call(this,t,i)||this).updateDisplay=n.updateDisplay.bind((0,c.Z)(n)),n.fill(),n.hasBeenOpened_=n.hasBeenFilled_=!0,n.endDialog=Ce("p",{className:"vjs-control-text",textContent:n.localize("End of dialog window.")}),n.el().appendChild(n.endDialog),n.setDefaults(),void 0===i.persistTextTrackSettings&&(n.options_.persistTextTrackSettings=n.options_.playerOptions.persistTextTrackSettings),n.on(n.$(".vjs-done-button"),"click",(function(){n.saveSettings(),n.close()})),n.on(n.$(".vjs-default-button"),"click",(function(){n.setDefaults(),n.updateDisplay()})),G(pr,(function(e){n.on(n.$(e.selector),"change",n.updateDisplay)})),n.options_.persistTextTrackSettings&&n.restoreSettings(),n}(0,h.Z)(t,e);var i=t.prototype;return i.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},i.createElSelect_=function(e,t,i){var n=this;void 0===t&&(t=""),void 0===i&&(i="label");var r=pr[e],a=r.id.replace("%s",this.id_),s=[t,a].join(" ").trim();return["<"+i+' id="'+a+'" class="'+("label"===i?"vjs-label":"")+'">',this.localize(r.label),"",'").join("")},i.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['
      ','',this.localize("Text"),"",this.createElSelect_("color",e),'',this.createElSelect_("textOpacity",e),"","
      "].join("")},i.createElBgColor_=function(){var e="captions-background-"+this.id_;return['
      ','',this.localize("Background"),"",this.createElSelect_("backgroundColor",e),'',this.createElSelect_("backgroundOpacity",e),"","
      "].join("")},i.createElWinColor_=function(){var e="captions-window-"+this.id_;return['
      ','',this.localize("Window"),"",this.createElSelect_("windowColor",e),'',this.createElSelect_("windowOpacity",e),"","
      "].join("")},i.createElColors_=function(){return Ce("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},i.createElFont_=function(){return Ce("div",{className:"vjs-track-settings-font",innerHTML:['
      ',this.createElSelect_("fontPercent","","legend"),"
      ",'
      ',this.createElSelect_("edgeStyle","","legend"),"
      ",'
      ',this.createElSelect_("fontFamily","","legend"),"
      "].join("")})},i.createElControls_=function(){var e=this.localize("restore all settings to the default values");return Ce("div",{className:"vjs-track-settings-controls",innerHTML:['",'"].join("")})},i.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},i.label=function(){return this.localize("Caption Settings Dialog")},i.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},i.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},i.getValues=function(){var e,t,i,n=this;return t=function(e,t,i){var r,a,s=(r=n.$(t.selector),a=t.parser,fr(r.options[r.options.selectedIndex].value,a));return void 0!==s&&(e[i]=s),e},void 0===(i={})&&(i=0),z(e=pr).reduce((function(i,n){return t(i,e[n],n)}),i)},i.setValues=function(e){var t=this;G(pr,(function(i,n){!function(e,t,i){if(t)for(var n=0;nthis.options_.liveTolerance;this.timeupdateSeen_&&n!==1/0||(s=!1),s!==this.behindLiveEdge_&&(this.behindLiveEdge_=s,this.trigger("liveedgechange"))}},i.handleDurationchange=function(){this.toggleTracking()},i.toggleTracking=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},i.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,yt),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))},i.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)},i.handleSeeked=function(){var e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()},i.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)},i.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)},i.nextSeekedFromUser=function(){this.nextSeekedFromUser_=!0},i.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},i.seekableEnd=function(){for(var e=this.player_.seekable(),t=[],i=e?e.length:0;i--;)t.push(e.end(i));return t.length?t.sort()[t.length-1]:1/0},i.seekableStart=function(){for(var e=this.player_.seekable(),t=[],i=e?e.length:0;i--;)t.push(e.start(i));return t.length?t.sort()[0]:0},i.liveWindow=function(){var e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()},i.isLive=function(){return this.isTracking()},i.atLiveEdge=function(){return!this.behindLiveEdge()},i.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},i.pastSeekEnd=function(){var e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_},i.behindLiveEdge=function(){return this.behindLiveEdge_},i.isTracking=function(){return"number"===typeof this.trackingInterval_},i.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))},i.dispose=function(){this.off(o(),"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),e.prototype.dispose.call(this)},t}(qt);qt.registerComponent("LiveTracker",vr);var yr,Tr=function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var i=e.$$("source"),n=[],r="";if(!i.length)return!1;for(var a=0;a=2&&r.push("loadeddata"),e.readyState>=3&&r.push("canplay"),e.readyState>=4&&r.push("canplaythrough"),this.ready((function(){r.forEach((function(e){this.trigger(e)}),this)}))}},i.setScrubbing=function(e){this.isScrubbing_=e},i.scrubbing=function(){return this.isScrubbing_},i.setCurrentTime=function(e){try{this.isScrubbing_&&this.el_.fastSeek&&ge?this.el_.fastSeek(e):this.el_.currentTime=e}catch(t){q(t,"Video is not ready. (Video.js)")}},i.duration=function(){var e=this;if(this.el_.duration===1/0&&ie&&oe&&0===this.el_.currentTime){return this.on("timeupdate",(function t(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))})),NaN}return this.el_.duration||NaN},i.width=function(){return this.el_.offsetWidth},i.height=function(){return this.el_.offsetHeight},i.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},i=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",i),this.on("dispose",(function(){e.off("webkitbeginfullscreen",i),e.off("webkitendfullscreen",t)}))}},i.supportsFullScreen=function(){if("function"===typeof this.el_.webkitEnterFullScreen){var e=a().navigator&&a().navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},i.enterFullScreen=function(){var e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)Xt(this.el_.play()),this.setTimeout((function(){e.pause();try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}}),0);else try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}},i.exitFullScreen=function(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))},i.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},i.requestVideoFrameCallback=function(t){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(t):e.prototype.requestVideoFrameCallback.call(this,t)},i.cancelVideoFrameCallback=function(t){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(t):e.prototype.cancelVideoFrameCallback.call(this,t)},i.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},i.reset=function(){t.resetMediaElement(this.el_)},i.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},i.setControls=function(e){this.el_.controls=!!e},i.addTextTrack=function(t,i,n){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,i,n):e.prototype.addTextTrack.call(this,t,i,n)},i.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var i=o().createElement("track");return t.kind&&(i.kind=t.kind),t.label&&(i.label=t.label),(t.language||t.srclang)&&(i.srclang=t.language||t.srclang),t.default&&(i.default=t.default),t.id&&(i.id=t.id),t.src&&(i.src=t.src),i},i.addRemoteTextTrack=function(t,i){var n=e.prototype.addRemoteTextTrack.call(this,t,i);return this.featuresNativeTextTracks&&this.el().appendChild(n),n},i.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks)for(var i=this.$$("track"),n=i.length;n--;)t!==i[n]&&t!==i[n].track||this.el().removeChild(i[n])},i.getVideoPlaybackQuality=function(){if("function"===typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return"undefined"!==typeof this.el().webkitDroppedFrameCount&&"undefined"!==typeof this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),a().performance&&"function"===typeof a().performance.now?e.creationTime=a().performance.now():a().performance&&a().performance.timing&&"number"===typeof a().performance.timing.navigationStart&&(e.creationTime=a().Date.now()-a().performance.timing.navigationStart),e},t}(Pi);wr(Ir,"TEST_VID",(function(){if(Te()){var e=o().createElement("video"),t=o().createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}})),Ir.isSupported=function(){try{Ir.TEST_VID.volume=.5}catch(e){return!1}return!(!Ir.TEST_VID||!Ir.TEST_VID.canPlayType)},Ir.canPlayType=function(e){return Ir.TEST_VID.canPlayType(e)},Ir.canPlaySource=function(e,t){return Ir.canPlayType(e.type)},Ir.canControlVolume=function(){try{var e=Ir.TEST_VID.volume;Ir.TEST_VID.volume=e/2+.1;var t=e!==Ir.TEST_VID.volume;return t&&me?(a().setTimeout((function(){Ir&&Ir.prototype&&(Ir.prototype.featuresVolumeControl=e!==Ir.TEST_VID.volume)})),!1):t}catch(i){return!1}},Ir.canMuteVolume=function(){try{var e=Ir.TEST_VID.muted;return Ir.TEST_VID.muted=!e,Ir.TEST_VID.muted?Me(Ir.TEST_VID,"muted","muted"):Re(Ir.TEST_VID,"muted"),e!==Ir.TEST_VID.muted}catch(t){return!1}},Ir.canControlPlaybackRate=function(){if(ie&&oe&&le<58)return!1;try{var e=Ir.TEST_VID.playbackRate;return Ir.TEST_VID.playbackRate=e/2+.1,e!==Ir.TEST_VID.playbackRate}catch(t){return!1}},Ir.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(o().createElement("video"),"src",{get:e,set:e}),Object.defineProperty(o().createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(o().createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(o().createElement("audio"),"innerHTML",{get:e,set:e})}catch(t){return!1}return!0},Ir.supportsNativeTextTracks=function(){return ge||me&&oe},Ir.supportsNativeVideoTracks=function(){return!(!Ir.TEST_VID||!Ir.TEST_VID.videoTracks)},Ir.supportsNativeAudioTracks=function(){return!(!Ir.TEST_VID||!Ir.TEST_VID.audioTracks)},Ir.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach((function(e){var t=e[0],i=e[1];wr(Ir.prototype,t,(function(){return Ir[i]()}),!0)})),Ir.prototype.featuresVolumeControl=Ir.canControlVolume(),Ir.prototype.movingMediaElementInDOM=!me,Ir.prototype.featuresFullscreenResize=!0,Ir.prototype.featuresProgressEvents=!0,Ir.prototype.featuresTimeupdateEvents=!0,Ir.prototype.featuresVideoFrameCallback=!(!Ir.TEST_VID||!Ir.TEST_VID.requestVideoFrameCallback),Ir.patchCanPlayType=function(){ne>=4&&!ae&&!oe&&(yr=Ir.TEST_VID&&Ir.TEST_VID.constructor.prototype.canPlayType,Ir.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(e)?"maybe":yr.call(this,e)})},Ir.unpatchCanPlayType=function(){var e=Ir.TEST_VID.constructor.prototype.canPlayType;return yr&&(Ir.TEST_VID.constructor.prototype.canPlayType=yr),e},Ir.patchCanPlayType(),Ir.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"===typeof e.load&&function(){try{e.load()}catch(t){}}()}},Ir.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),i=t.length;i--;)e.removeChild(t[i]);e.removeAttribute("src"),"function"===typeof e.load&&function(){try{e.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach((function(e){Ir.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(e){Ir.prototype["set"+Ut(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}})),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach((function(e){Ir.prototype[e]=function(){return this.el_[e]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach((function(e){Ir.prototype["set"+Ut(e)]=function(t){this.el_[e]=t}})),["pause","load","play"].forEach((function(e){Ir.prototype[e]=function(){return this.el_[e]()}})),Pi.withSourceHandlers(Ir),Ir.nativeSourceHandler={},Ir.nativeSourceHandler.canPlayType=function(e){try{return Ir.TEST_VID.canPlayType(e)}catch(t){return""}},Ir.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Ir.nativeSourceHandler.canPlayType(e.type);if(e.src){var i=_i(e.src);return Ir.nativeSourceHandler.canPlayType("video/"+i)}return""},Ir.nativeSourceHandler.handleSource=function(e,t,i){t.setSrc(e.src)},Ir.nativeSourceHandler.dispose=function(){},Ir.registerSourceHandler(Ir.nativeSourceHandler),Pi.registerTech("Html5",Ir);var xr=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Pr={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Ar=["tiny","xsmall","small","medium","large","xlarge","huge"],Lr={};Ar.forEach((function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;Lr[e]="vjs-layout-"+t}));var Or={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},Dr=function(e){function t(i,n,r){var a;if(i.id=i.id||n.id||"vjs_video_"+at(),(n=K(t.getTagSettings(i),n)).initChildren=!1,n.createEl=!1,n.evented=!1,n.reportTouchActivity=!1,!n.language)if("function"===typeof i.closest){var s=i.closest("[lang]");s&&s.getAttribute&&(n.language=s.getAttribute("lang"))}else for(var l=i;l&&1===l.nodeType;){if(Oe(l).hasOwnProperty("lang")){n.language=l.getAttribute("lang");break}l=l.parentNode}if((a=e.call(this,null,n,r)||this).boundDocumentFullscreenChange_=function(e){return a.documentFullscreenChange_(e)},a.boundFullWindowOnEscKey_=function(e){return a.fullWindowOnEscKey(e)},a.boundUpdateStyleEl_=function(e){return a.updateStyleEl_(e)},a.boundApplyInitTime_=function(e){return a.applyInitTime_(e)},a.boundUpdateCurrentBreakpoint_=function(e){return a.updateCurrentBreakpoint_(e)},a.boundHandleTechClick_=function(e){return a.handleTechClick_(e)},a.boundHandleTechDoubleClick_=function(e){return a.handleTechDoubleClick_(e)},a.boundHandleTechTouchStart_=function(e){return a.handleTechTouchStart_(e)},a.boundHandleTechTouchMove_=function(e){return a.handleTechTouchMove_(e)},a.boundHandleTechTouchEnd_=function(e){return a.handleTechTouchEnd_(e)},a.boundHandleTechTap_=function(e){return a.handleTechTap_(e)},a.isFullscreen_=!1,a.log=V(a.id_),a.fsApi_=U,a.isPosterFromTech_=!1,a.queuedCallbacks_=[],a.isReady_=!1,a.hasStarted_=!1,a.userActive_=!1,a.debugEnabled_=!1,a.audioOnlyMode_=!1,a.audioPosterMode_=!1,a.audioOnlyCache_={playerHeight:null,hiddenChildren:[]},!a.options_||!a.options_.techOrder||!a.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(a.tag=i,a.tagAttributes=i&&Oe(i),a.language(a.options_.language),n.languages){var u={};Object.getOwnPropertyNames(n.languages).forEach((function(e){u[e.toLowerCase()]=n.languages[e]})),a.languages_=u}else a.languages_=t.prototype.options_.languages;a.resetCache_(),a.poster_=n.poster||"",a.controls_=!!n.controls,i.controls=!1,i.removeAttribute("controls"),a.changingSrc_=!1,a.playCallbacks_=[],a.playTerminatedQueue_=[],i.hasAttribute("autoplay")?a.autoplay(!0):a.autoplay(a.options_.autoplay),n.plugins&&Object.keys(n.plugins).forEach((function(e){if("function"!==typeof a[e])throw new Error('plugin "'+e+'" does not exist')})),a.scrubbing_=!1,a.el_=a.createEl(),Ot((0,c.Z)(a),{eventBusKey:"el_"}),a.fsApi_.requestFullscreen&&(ht(o(),a.fsApi_.fullscreenchange,a.boundDocumentFullscreenChange_),a.on(a.fsApi_.fullscreenchange,a.boundDocumentFullscreenChange_)),a.fluid_&&a.on(["playerreset","resize"],a.boundUpdateStyleEl_);var d=Bt(a.options_);n.plugins&&Object.keys(n.plugins).forEach((function(e){a[e](n.plugins[e])})),n.debug&&a.debug(!0),a.options_.playerOptions=d,a.middleware_=[],a.playbackRates(n.playbackRates),a.initChildren(),a.isAudio("audio"===i.nodeName.toLowerCase()),a.controls()?a.addClass("vjs-controls-enabled"):a.addClass("vjs-controls-disabled"),a.el_.setAttribute("role","region"),a.isAudio()?a.el_.setAttribute("aria-label",a.localize("Audio Player")):a.el_.setAttribute("aria-label",a.localize("Video Player")),a.isAudio()&&a.addClass("vjs-audio"),a.flexNotSupported_()&&a.addClass("vjs-no-flex"),he&&a.addClass("vjs-touch-enabled"),me||a.addClass("vjs-workinghover"),t.players[a.id_]=(0,c.Z)(a);var h=O.split(".")[0];return a.addClass("vjs-v"+h),a.userActive(!0),a.reportUserActivity(),a.one("play",(function(e){return a.listenForUserActivity_(e)})),a.on("stageclick",(function(e){return a.handleStageClick_(e)})),a.on("keydown",(function(e){return a.handleKeyDown(e)})),a.on("languagechange",(function(e){return a.handleLanguagechange(e)})),a.breakpoints(a.options_.breakpoints),a.responsive(a.options_.responsive),a.on("ready",(function(){a.audioPosterMode(a.options_.audioPosterMode),a.audioOnlyMode(a.options_.audioOnlyMode)})),a}(0,h.Z)(t,e);var i=t.prototype;return i.dispose=function(){var i=this;this.trigger("dispose"),this.off("dispose"),pt(o(),this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),pt(o(),"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),Li[this.id()]=null,xi.names.forEach((function(e){var t=xi[e],n=i[t.getterName]();n&&n.off&&n.off()})),e.prototype.dispose.call(this,{restoreEl:this.options_.restoreEl})},i.createEl=function(){var t,i=this.tag,n=this.playerElIngest_=i.parentNode&&i.parentNode.hasAttribute&&i.parentNode.hasAttribute("data-vjs-player"),r="video-js"===this.tag.tagName.toLowerCase();n?t=this.el_=i.parentNode:r||(t=this.el_=e.prototype.createEl.call(this,"div"));var s=Oe(i);if(r){for(t=this.el_=i,i=this.tag=o().createElement("video");t.children.length;)i.appendChild(t.firstChild);Ie(t,"video-js")||xe(t,"video-js"),t.appendChild(i),n=this.playerElIngest_=t,Object.keys(t).forEach((function(e){try{i[e]=t[e]}catch(n){}}))}if(i.setAttribute("tabindex","-1"),s.tabindex="-1",(ue||oe&&ce)&&(i.setAttribute("role","application"),s.role="application"),i.removeAttribute("width"),i.removeAttribute("height"),"width"in s&&delete s.width,"height"in s&&delete s.height,Object.getOwnPropertyNames(s).forEach((function(e){r&&"class"===e||t.setAttribute(e,s[e]),r&&i.setAttribute(e,s[e])})),i.playerId=i.id,i.id+="_html5_api",i.className="vjs-tech",i.player=t.player=this,this.addClass("vjs-paused"),!0!==a().VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=it("vjs-styles-dimensions");var l=Ze(".vjs-styles-defaults"),u=Ze("head");u.insertBefore(this.styleEl_,l?l.nextSibling:u.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var d=i.getElementsByTagName("a"),c=0;c0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),r=n[1]/n[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/r:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*r,i=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(i),nt(this.styleEl_,"\n ."+i+" {\n width: "+e+"px;\n height: "+t+"px;\n }\n\n ."+i+".vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: "+100*r+"%;\n }\n ")}else{var s="number"===typeof this.width_?this.width_:this.options_.width,o="number"===typeof this.height_?this.height_:this.options_.height,l=this.tech_&&this.tech_.el();l&&(s>=0&&(l.width=s),o>=0&&(l.height=o))}},i.loadTech_=function(e,t){var i=this;this.tech_&&this.unloadTech_();var n=Ut(e),r=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==n&&this.tag&&(Pi.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=n,this.isReady_=!1;var a=this.autoplay();("string"===typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(a=!1);var s={source:t,autoplay:a,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};xi.names.forEach((function(e){var t=xi[e];s[t.getterName]=i[t.privateName]})),K(s,this.options_[n]),K(s,this.options_[r]),K(s,this.options_[e.toLowerCase()]),this.tag&&(s.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(s.startTime=this.cache_.currentTime);var o=Pi.getTech(e);if(!o)throw new Error("No Tech named '"+n+"' exists! '"+n+"' should be registered using videojs.registerTech()'");this.tech_=new o(s),this.tech_.ready(Tt(this,this.handleTechReady_),!0),Jt(this.textTracksJson_||[],this.tech_),xr.forEach((function(e){i.on(i.tech_,e,(function(t){return i["handleTech"+Ut(e)+"_"](t)}))})),Object.keys(Pr).forEach((function(e){i.on(i.tech_,e,(function(t){0===i.tech_.playbackRate()&&i.tech_.seeking()?i.queuedCallbacks_.push({callback:i["handleTech"+Pr[e]+"_"].bind(i),event:t}):i["handleTech"+Pr[e]+"_"](t)}))})),this.on(this.tech_,"loadstart",(function(e){return i.handleTechLoadStart_(e)})),this.on(this.tech_,"sourceset",(function(e){return i.handleTechSourceset_(e)})),this.on(this.tech_,"waiting",(function(e){return i.handleTechWaiting_(e)})),this.on(this.tech_,"ended",(function(e){return i.handleTechEnded_(e)})),this.on(this.tech_,"seeking",(function(e){return i.handleTechSeeking_(e)})),this.on(this.tech_,"play",(function(e){return i.handleTechPlay_(e)})),this.on(this.tech_,"firstplay",(function(e){return i.handleTechFirstPlay_(e)})),this.on(this.tech_,"pause",(function(e){return i.handleTechPause_(e)})),this.on(this.tech_,"durationchange",(function(e){return i.handleTechDurationChange_(e)})),this.on(this.tech_,"fullscreenchange",(function(e,t){return i.handleTechFullscreenChange_(e,t)})),this.on(this.tech_,"fullscreenerror",(function(e,t){return i.handleTechFullscreenError_(e,t)})),this.on(this.tech_,"enterpictureinpicture",(function(e){return i.handleTechEnterPictureInPicture_(e)})),this.on(this.tech_,"leavepictureinpicture",(function(e){return i.handleTechLeavePictureInPicture_(e)})),this.on(this.tech_,"error",(function(e){return i.handleTechError_(e)})),this.on(this.tech_,"posterchange",(function(e){return i.handleTechPosterChange_(e)})),this.on(this.tech_,"textdata",(function(e){return i.handleTechTextData_(e)})),this.on(this.tech_,"ratechange",(function(e){return i.handleTechRateChange_(e)})),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===n&&this.tag||we(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},i.unloadTech_=function(){var e=this;xi.names.forEach((function(t){var i=xi[t];e[i.privateName]=e[i.getterName]()})),this.textTracksJson_=$t(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},i.tech=function(e){return void 0===e&&q.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},i.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)},i.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)},i.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},i.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())},i.manualAutoplay_=function(e){var t=this;if(this.tech_&&"string"===typeof e){var i,n=function(){var e=t.muted();t.muted(!0);var i=function(){t.muted(e)};t.playTerminatedQueue_.push(i);var n=t.play();if(Qt(n))return n.catch((function(e){throw i(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(e||""))}))};if("any"!==e||this.muted()?i="muted"!==e||this.muted()?this.play():n():Qt(i=this.play())&&(i=i.catch(n)),Qt(i))return i.then((function(){t.trigger({type:"autoplay-success",autoplay:e})})).catch((function(){t.trigger({type:"autoplay-failure",autoplay:e})}))}},i.updateSourceCaches_=function(e){void 0===e&&(e="");var t=e,i="";"string"!==typeof t&&(t=e.src,i=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!i&&(i=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var i=e.cache_.sources.filter((function(e){return e.src===t}));if(i.length)return i[0].type;for(var n=e.$$("source"),r=0;r0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach((function(e){return e.callback(e.event)})),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},i.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting");var t=this.currentTime();this.on("timeupdate",(function i(){t!==e.currentTime()&&(e.removeClass("vjs-waiting"),e.off("timeupdate",i))}))},i.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},i.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},i.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},i.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},i.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},i.handleTechFirstPlay_=function(){this.options_.starttime&&(q.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},i.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},i.handleTechEnded_=function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},i.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},i.handleTechClick_=function(e){this.controls_&&(void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.click&&!1===this.options_.userActions.click||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"===typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?Xt(this.play()):this.pause()))},i.handleTechDoubleClick_=function(e){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),(function(t){return t.contains(e.target)}))||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"===typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))},i.handleTechTap_=function(){this.userActive(!this.userActive())},i.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},i.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},i.handleTechTouchEnd_=function(e){e.cancelable&&e.preventDefault()},i.handleStageClick_=function(){this.reportUserActivity()},i.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},i.documentFullscreenChange_=function(e){var t=e.target.player;if(!t||t===this){var i=this.el(),n=o()[this.fsApi_.fullscreenElement]===i;!n&&i.matches?n=i.matches(":"+this.fsApi_.fullscreen):!n&&i.msMatchesSelector&&(n=i.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(n)}},i.handleTechFullscreenChange_=function(e,t){var i=this;t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",(function(){i.removeClass("vjs-ios-native-fs")}))),this.isFullscreen(t.isFullscreen))},i.handleTechFullscreenError_=function(e,t){this.trigger("fullscreenerror",t)},i.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},i.handleTechEnterPictureInPicture_=function(e){this.isInPictureInPicture(!0)},i.handleTechLeavePictureInPicture_=function(e){this.isInPictureInPicture(!1)},i.handleTechError_=function(){var e=this.tech_.error();this.error(e)},i.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},i.getCache=function(){return this.cache_},i.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}},i.techCall_=function(e,t){this.ready((function(){if(e in Ui)return function(e,t,i,n){return t[i](e.reduce(Ni(i),n))}(this.middleware_,this.tech_,e,t);if(e in Bi)return Mi(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(i){throw q(i),i}}),!0)},i.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in Ri)return function(e,t,i){return e.reduceRight(Ni(i),t[i]())}(this.middleware_,this.tech_,e);if(e in Bi)return Mi(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw q("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw q("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw q(t),t}}},i.play=function(){var e=this,t=this.options_.Promise||a().Promise;return t?new t((function(t){e.play_(t)})):this.play_()},i.play_=function(e){var t=this;void 0===e&&(e=Xt),this.playCallbacks_.push(e);var i=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!i)return this.waitToPlay_=function(e){t.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(i||!ge&&!me||this.load());var n=this.techGet_("play");null===n?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(n)},i.runPlayTerminatedQueue_=function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach((function(e){e()}))},i.runPlayCallbacks_=function(e){var t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach((function(t){t(e)}))},i.pause=function(){this.techCall_("pause")},i.paused=function(){return!1!==this.techGet_("paused")},i.played=function(){return this.techGet_("played")||zt(0,0)},i.scrubbing=function(e){if("undefined"===typeof e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},i.currentTime=function(e){return"undefined"!==typeof e?(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),void(this.cache_.initTime=0)):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},i.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},i.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))},i.remainingTime=function(){return this.duration()-this.currentTime()},i.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},i.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=zt(0,0)),e},i.bufferedPercent=function(){return Gt(this.buffered(),this.duration())},i.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),i=e.end(e.length-1);return i>t&&(i=t),i},i.volume=function(e){var t;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},i.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},i.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},i.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},i.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},i.isFullscreen=function(e){if(void 0!==e){var t=this.isFullscreen_;return this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_},i.requestFullscreen=function(e){var t=this.options_.Promise||a().Promise;if(t){var i=this;return new t((function(t,n){function r(){i.off("fullscreenerror",s),i.off("fullscreenchange",a)}function a(){r(),t()}function s(e,t){r(),n(t)}i.one("fullscreenchange",a),i.one("fullscreenerror",s);var o=i.requestFullscreenHelper_(e);o&&(o.then(r,r),o.then(t,n))}))}return this.requestFullscreenHelper_()},i.requestFullscreenHelper_=function(e){var t,i=this;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){var n=this.el_[this.fsApi_.requestFullscreen](t);return n&&n.then((function(){return i.isFullscreen(!0)}),(function(){return i.isFullscreen(!1)})),n}this.tech_.supportsFullScreen()&&!0===!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()},i.exitFullscreen=function(){var e=this.options_.Promise||a().Promise;if(e){var t=this;return new e((function(e,i){function n(){t.off("fullscreenerror",a),t.off("fullscreenchange",r)}function r(){n(),e()}function a(e,t){n(),i(t)}t.one("fullscreenchange",r),t.one("fullscreenerror",a);var s=t.exitFullscreenHelper_();s&&(s.then(n,n),s.then(e,i))}))}return this.exitFullscreenHelper_()},i.exitFullscreenHelper_=function(){var e=this;if(this.fsApi_.requestFullscreen){var t=o()[this.fsApi_.exitFullscreen]();return t&&Xt(t.then((function(){return e.isFullscreen(!1)}))),t}this.tech_.supportsFullScreen()&&!0===!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},i.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=o().documentElement.style.overflow,ht(o(),"keydown",this.boundFullWindowOnEscKey_),o().documentElement.style.overflow="hidden",xe(o().body,"vjs-full-window"),this.trigger("enterFullWindow")},i.fullWindowOnEscKey=function(e){d().isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},i.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,pt(o(),"keydown",this.boundFullWindowOnEscKey_),o().documentElement.style.overflow=this.docOrigOverflow,Pe(o().body,"vjs-full-window"),this.trigger("exitFullWindow")},i.disablePictureInPicture=function(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")},i.isInPictureInPicture=function(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},i.requestPictureInPicture=function(){if("pictureInPictureEnabled"in o()&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},i.exitPictureInPicture=function(){if("pictureInPictureEnabled"in o())return o().exitPictureInPicture()},i.handleKeyDown=function(e){var t=this.options_.userActions;if(t&&t.hotkeys){(function(e){var t=e.tagName.toLowerCase();if(e.isContentEditable)return!0;if("input"===t)return-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(e.type);return-1!==["textarea"].indexOf(t)})(this.el_.ownerDocument.activeElement)||("function"===typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e))}},i.handleHotkeys=function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},i=t.fullscreenKey,n=void 0===i?function(e){return d().isEventKey(e,"f")}:i,r=t.muteKey,a=void 0===r?function(e){return d().isEventKey(e,"m")}:r,s=t.playPauseKey,l=void 0===s?function(e){return d().isEventKey(e,"k")||d().isEventKey(e,"Space")}:s;if(n.call(this,e)){e.preventDefault(),e.stopPropagation();var u=qt.getComponent("FullscreenToggle");!1!==o()[this.fsApi_.fullscreenEnabled]&&u.prototype.handleClick.call(this,e)}else if(a.call(this,e)){e.preventDefault(),e.stopPropagation(),qt.getComponent("MuteToggle").prototype.handleClick.call(this,e)}else if(l.call(this,e)){e.preventDefault(),e.stopPropagation(),qt.getComponent("PlayToggle").prototype.handleClick.call(this,e)}},i.canPlayType=function(e){for(var t,i=0,n=this.options_.techOrder;i1?i.handleSrc_(n.slice(1)):(i.changingSrc_=!1,i.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0),void i.triggerReady());a=r,s=i.tech_,a.forEach((function(e){return e.setTech&&e.setTech(s)}))})),this.options_.retryOnError&&n.length>1){var r=function(){i.error(null),i.handleSrc_(n.slice(1),!0)},a=function(){i.off("error",r)};this.one("error",r),this.one("playing",a),this.resetRetryOnError_=function(){i.off("error",r),i.off("playing",a)}}}else this.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0)},i.src=function(e){return this.handleSrc_(e,!1)},i.src_=function(e){var t,i,n=this,r=this.selectSource([e]);return!r||(t=r.tech,i=this.techName_,Ut(t)!==Ut(i)?(this.changingSrc_=!0,this.loadTech_(r.tech,r.source),this.tech_.ready((function(){n.changingSrc_=!1})),!1):(this.ready((function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1}),!0),!1))},i.load=function(){this.techCall_("load")},i.reset=function(){var e=this,t=this.options_.Promise||a().Promise;this.paused()||!t?this.doReset_():Xt(this.play().then((function(){return e.doReset_()})))},i.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),Ct(this)&&this.trigger("playerreset")},i.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},i.resetProgressBar_=function(){this.currentTime(0);var e=this.controlBar||{},t=e.durationDisplay,i=e.remainingTimeDisplay;t&&t.updateContent(),i&&i.updateContent()},i.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},i.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},i.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},i.currentSource=function(){return this.cache_.source||{}},i.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},i.currentType=function(){return this.currentSource()&&this.currentSource().type||""},i.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},i.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t;"string"===typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"===typeof e?e:"play"),t=!1):this.options_.autoplay=!!e,t="undefined"===typeof t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)},i.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},i.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},i.poster=function(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},i.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},i.controls=function(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},i.usingNativeControls=function(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},i.error=function(e){var t=this;if(void 0===e)return this.error_||null;if(M("beforeerror").forEach((function(i){var n=i(t,e);Z(n)&&!Array.isArray(n)||"string"===typeof n||"number"===typeof n||null===n?e=n:t.log.error("please return a value that MediaError expects in beforeerror hooks")})),this.options_.suppressNotSupportedError&&e&&4===e.code){var i=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],i),void this.one("loadstart",(function(){this.off(["click","touchstart"],i)}))}if(null===e)return this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new Kt(e),this.addClass("vjs-error"),q.error("(CODE:"+this.error_.code+" "+Kt.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),M("error").forEach((function(e){return e(t,t.error_)}))},i.reportUserActivity=function(e){this.userActivity_=!0},i.userActive=function(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",(function(e){e.stopPropagation(),e.preventDefault()})),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},i.listenForUserActivity_=function(){var e,t,i,n=Tt(this,this.reportUserActivity),r=function(t){n(),this.clearInterval(e)};this.on("mousedown",(function(){n(),this.clearInterval(e),e=this.setInterval(n,250)})),this.on("mousemove",(function(e){e.screenX===t&&e.screenY===i||(t=e.screenX,i=e.screenY,n())})),this.on("mouseup",r),this.on("mouseleave",r);var a,s=this.getChild("controlBar");!s||me||ie||(s.on("mouseenter",(function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0})),s.on("mouseleave",(function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout}))),this.on("keydown",n),this.on("keyup",n),this.setInterval((function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(a);var e=this.options_.inactivityTimeout;e<=0||(a=this.setTimeout((function(){this.userActivity_||this.userActive(!1)}),e))}}),250)},i.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},i.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},i.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},i.enableAudioOnlyUI_=function(){var e=this;this.addClass("vjs-audio-only-mode");var t=this.children(),i=this.getChild("ControlBar"),n=i&&i.currentHeight();t.forEach((function(t){t!==i&&t.el_&&!t.hasClass("vjs-hidden")&&(t.hide(),e.audioOnlyCache_.hiddenChildren.push(t))})),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(n),this.trigger("audioonlymodechange")},i.disableAudioOnlyUI_=function(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEach((function(e){return e.show()})),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")},i.audioOnlyMode=function(e){var t=this;if("boolean"!==typeof e||e===this.audioOnlyMode_)return this.audioOnlyMode_;this.audioOnlyMode_=e;var i=this.options_.Promise||a().Promise;if(i){if(e){var n=[];return this.isInPictureInPicture()&&n.push(this.exitPictureInPicture()),this.isFullscreen()&&n.push(this.exitFullscreen()),this.audioPosterMode()&&n.push(this.audioPosterMode(!1)),i.all(n).then((function(){return t.enableAudioOnlyUI_()}))}return i.resolve().then((function(){return t.disableAudioOnlyUI_()}))}e?(this.isInPictureInPicture()&&this.exitPictureInPicture(),this.isFullscreen()&&this.exitFullscreen(),this.enableAudioOnlyUI_()):this.disableAudioOnlyUI_()},i.enablePosterModeUI_=function(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},i.disablePosterModeUI_=function(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},i.audioPosterMode=function(e){var t=this;if("boolean"!==typeof e||e===this.audioPosterMode_)return this.audioPosterMode_;this.audioPosterMode_=e;var i=this.options_.Promise||a().Promise;return i?e?this.audioOnlyMode()?this.audioOnlyMode(!1).then((function(){t.enablePosterModeUI_()})):i.resolve().then((function(){t.enablePosterModeUI_()})):i.resolve().then((function(){t.disablePosterModeUI_()})):e?(this.audioOnlyMode()&&this.audioOnlyMode(!1),void this.enablePosterModeUI_()):void this.disablePosterModeUI_()},i.addTextTrack=function(e,t,i){if(this.tech_)return this.tech_.addTextTrack(e,t,i)},i.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},i.removeRemoteTextTrack=function(e){void 0===e&&(e={});var t=e.track;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)},i.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},i.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},i.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},i.language=function(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),Ct(this)&&this.trigger("languagechange"))},i.languages=function(){return Bt(t.prototype.options_.languages,this.languages_)},i.toJSON=function(){var e=Bt(this.options_),t=e.tracks;e.tracks=[];for(var i=0;i"):function(){}},Xr=1/30,Yr=.1,$r=function(e,t){var i,n=[];if(e&&e.length)for(i=0;i=t}))},ea=function(e,t){return $r(e,(function(e){return e-Xr>=t}))},ta=function(e){var t=[];if(!e||!e.length)return"";for(var i=0;i "+e.end(i));return t.join(", ")},ia=function(e){for(var t=[],i=0;ia||(i+=t>r&&t<=a?a-t:a-r)}return i},aa=Wr.createTimeRange,sa=function(e,t){if(!t.preload)return t.duration;var i=0;return(t.parts||[]).forEach((function(e){i+=e.duration})),(t.preloadHints||[]).forEach((function(t){"PART"===t.type&&(i+=e.partTargetDuration)})),i},oa=function(e){return(e.segments||[]).reduce((function(e,t,i){return t.parts?t.parts.forEach((function(n,r){e.push({duration:n.duration,segmentIndex:i,partIndex:r,part:n,segment:t})})):e.push({duration:t.duration,segmentIndex:i,partIndex:null,segment:t,part:null}),e}),[])},la=function(e){var t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},ua=function(e){var t=e.preloadSegment;if(t){var i=t.parts,n=(t.preloadHints||[]).reduce((function(e,t){return e+("PART"===t.type?1:0)}),0);return n+=i&&i.length?i.length:0}},da=function(e,t){if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;var i=la(t).length>0;return i&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:i&&t.partTargetDuration?3*t.partTargetDuration:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?3*t.targetDuration:0},ca=function(e,t,i){if("undefined"===typeof t&&(t=e.mediaSequence+e.segments.length),tr){var s=[r,n];n=s[0],r=s[1]}if(n<0){for(var o=n;oDate.now()},ga=function(e){return e.excludeUntil&&e.excludeUntil===1/0},_a=function(e){var t=ma(e);return!e.disabled&&!t},va=function(e,t){return t.attributes&&t.attributes[e]},ya=function(e,t){if(1===e.playlists.length)return!0;var i=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter((function(e){return!!_a(e)&&(e.attributes.BANDWIDTH||0)0)for(var h=u-1;h>=0;h--){var p=l[h];if(o+=p.duration,s){if(o<0)continue}else if(o+Xr<=0)continue;return{partIndex:p.partIndex,segmentIndex:p.segmentIndex,startTime:a-pa({defaultDuration:t.targetDuration,durationList:l,startIndex:u,endIndex:h})}}return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:i}}if(u<0){for(var f=u;f<0;f++)if((o-=t.targetDuration)<0)return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:i};u=0}for(var m=u;m0)continue}else if(o-Xr>=0)continue;return{partIndex:g.partIndex,segmentIndex:g.segmentIndex,startTime:a+pa({defaultDuration:t.targetDuration,durationList:l,startIndex:u,endIndex:m})}}return{segmentIndex:l[l.length-1].segmentIndex,partIndex:l[l.length-1].partIndex,startTime:i}},isEnabled:_a,isDisabled:function(e){return e.disabled},isBlacklisted:ma,isIncompatible:ga,playlistEnd:fa,isAes:function(e){for(var t=0;t-1&&o!==s.length-1&&(i._HLS_part=o),(o>-1||s.length)&&r--}i._HLS_msn=r}if(t.serverControl&&t.serverControl.canSkipUntil&&(i._HLS_skip=t.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(i).length){var l=new(a().URL)(e);["_HLS_skip","_HLS_msn","_HLS_part"].forEach((function(e){i.hasOwnProperty(e)&&l.searchParams.set(e,i[e])})),e=l.toString()}return e}(i,t)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:i,withCredentials:this.withCredentials},(function(t,i){if(e.request)return t?e.playlistRequestError(e.request,e.media(),"HAVE_METADATA"):void e.haveMetadata({playlistString:e.request.responseText,url:e.media().uri,id:e.media().id})}))}},i.playlistRequestError=function(e,t,i){var n=t.uri,r=t.id;this.request=null,i&&(this.state=i),this.error={playlist:this.master.playlists[r],status:e.status,message:"HLS playlist request error at URL: "+n+".",responseText:e.responseText,code:e.status>=500?4:2},this.trigger("error")},i.parseManifest_=function(e){var t=this,i=e.url;return function(e){var t=e.onwarn,i=e.oninfo,n=e.manifestString,r=e.customTagParsers,a=void 0===r?[]:r,s=e.customTagMappers,o=void 0===s?[]:s,l=e.experimentalLLHLS,u=new S._b;t&&u.on("warn",t),i&&u.on("info",i),a.forEach((function(e){return u.addParser(e)})),o.forEach((function(e){return u.addTagMapper(e)})),u.push(n),u.end();var d=u.manifest;if(l||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach((function(e){d.hasOwnProperty(e)&&delete d[e]})),d.segments&&d.segments.forEach((function(e){["parts","preloadHints"].forEach((function(t){e.hasOwnProperty(t)&&delete e[t]}))}))),!d.targetDuration){var c=10;d.segments&&d.segments.length&&(c=d.segments.reduce((function(e,t){return Math.max(e,t.duration)}),0)),t&&t("manifest has no targetDuration defaulting to "+c),d.targetDuration=c}var h=la(d);if(h.length&&!d.partTargetDuration){var p=h.reduce((function(e,t){return Math.max(e,t.duration)}),0);t&&(t("manifest has no partTargetDuration defaulting to "+p),Ca.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),d.partTargetDuration=p}return d}({onwarn:function(e){var n=e.message;return t.logger_("m3u8-parser warn for "+i+": "+n)},oninfo:function(e){var n=e.message;return t.logger_("m3u8-parser info for "+i+": "+n)},manifestString:e.manifestString,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,experimentalLLHLS:this.experimentalLLHLS})},i.haveMetadata=function(e){var t=e.playlistString,i=e.playlistObject,n=e.url,r=e.id;this.request=null,this.state="HAVE_METADATA";var a=i||this.parseManifest_({url:n,manifestString:t});a.lastRequest=Date.now(),Ia({playlist:a,uri:n,id:r});var s=Ra(this.master,a);this.targetDuration=a.partTargetDuration||a.targetDuration,this.pendingMedia_=null,s?(this.master=s,this.media_=this.master.playlists[r]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(Ua(this.media(),!!s)),this.trigger("loadedplaylist")},i.dispose=function(){this.trigger("dispose"),this.stopRequest(),a().clearTimeout(this.mediaUpdateTimeout),a().clearTimeout(this.finalRenditionTimeout),this.off()},i.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},i.media=function(e,t){var i=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"===typeof e){if(!this.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.master.playlists[e]}if(a().clearTimeout(this.finalRenditionTimeout),t){var n=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=a().setTimeout(this.media.bind(this,e,!1),n)}else{var r=this.state,s=!this.media_||e.id!==this.media_.id,o=this.master.playlists[e.id];if(o&&o.endList||e.endList&&e.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(s&&(this.trigger("mediachanging"),"HAVE_MASTER"===r?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(this.updateMediaUpdateTimeout_(Ua(e,!0)),s){if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e,this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials},(function(t,n){if(i.request){if(e.lastRequest=Date.now(),e.resolvedUri=Zr(i.handleManifestRedirects,e.resolvedUri,n),t)return i.playlistRequestError(i.request,e,r);i.haveMetadata({playlistString:n.responseText,url:e.uri,id:e.id}),"HAVE_MASTER"===r?i.trigger("loadedmetadata"):i.trigger("mediachange")}}))}}},i.pause=function(){this.mediaUpdateTimeout&&(a().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")},i.load=function(e){var t=this;this.mediaUpdateTimeout&&(a().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);var i=this.media();if(e){var n=i?(i.partTargetDuration||i.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=a().setTimeout((function(){t.mediaUpdateTimeout=null,t.load()}),n)}else this.started?i&&!i.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()},i.updateMediaUpdateTimeout_=function(e){var t=this;this.mediaUpdateTimeout&&(a().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=a().setTimeout((function(){t.mediaUpdateTimeout=null,t.trigger("mediaupdatetimeout"),t.updateMediaUpdateTimeout_(e)}),e))},i.start=function(){var e=this;if(this.started=!0,"object"===typeof this.src)return this.src.uri||(this.src.uri=a().location.href),this.src.resolvedUri=this.src.uri,void setTimeout((function(){e.setupInitialPlaylist(e.src)}),0);this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},(function(t,i){if(e.request){if(e.request=null,t)return e.error={status:i.status,message:"HLS playlist request error at URL: "+e.src+".",responseText:i.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");e.src=Zr(e.handleManifestRedirects,e.src,i);var n=e.parseManifest_({manifestString:i.responseText,url:e.src});e.setupInitialPlaylist(n)}}))},i.srcUri=function(){return"string"===typeof this.src?this.src:this.src.uri},i.setupInitialPlaylist=function(e){if(this.state="HAVE_MASTER",e.playlists)return this.master=e,xa(this.master,this.srcUri()),e.playlists.forEach((function(e){e.segments=Da(e),e.segments.forEach((function(t){Oa(t,e.resolvedUri)}))})),this.trigger("loadedplaylist"),void(this.request||this.media(this.master.playlists[0]));var t=this.srcUri()||a().location.href;this.master=function(e,t){var i=Ea(0,t),n={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:a().location.href,resolvedUri:a().location.href,playlists:[{uri:t,id:i,resolvedUri:t,attributes:{}}]};return n.playlists[i]=n.playlists[0],n.playlists[t]=n.playlists[0],n}(0,t),this.haveMetadata({playlistObject:e,url:t,id:this.master.playlists[0].id}),this.trigger("loadedmetadata")},t}(Aa),Na=Wr.xhr,Fa=Wr.mergeOptions,ja=function(e,t,i,n){var r="arraybuffer"===e.responseType?e.response:e.responseText;!t&&r&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=r.byteLength||r.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8*1e3))),i.headers&&(e.responseHeaders=i.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),t||e.aborted||200===i.statusCode||206===i.statusCode||0===i.statusCode||(t=new Error("XHR Failed with a response of: "+(e&&(r||e.responseText)))),n(t,e)},Ha=function(){var e=function e(t,i){t=Fa({timeout:45e3},t);var n=e.beforeRequest||Wr.Vhs.xhr.beforeRequest;if(n&&"function"===typeof n){var r=n(t);r&&(t=r)}var a=(!0===Wr.Vhs.xhr.original?Na:Wr.Vhs.xhr)(t,(function(e,t){return ja(a,e,t,i)})),s=a.abort;return a.abort=function(){return a.aborted=!0,s.apply(a,arguments)},a.uri=t.uri,a.requestTime=Date.now(),a};return e.original=!0,e},qa=function(e){var t,i={};return e.byterange&&(i.Range="bytes="+(t=e.byterange).offset+"-"+("bigint"===typeof t.offset||"bigint"===typeof t.length?a().BigInt(t.offset)+a().BigInt(t.length)-a().BigInt(1):t.offset+t.length-1)),i},Va=function(e,t){return e.start(t)+"-"+e.end(t)},Wa=function(e,t){var i=e.toString(16);return"00".substring(0,2-i.length)+i+(t%2?" ":"")},za=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},Ga=function(e){var t={};return Object.keys(e).forEach((function(i){var n=e[i];(0,E.Au)(n)?t[i]={bytes:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength}:t[i]=n})),t},Ka=function(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},Za=function(e){return e.resolvedUri},Qa=function(e){for(var t=Array.prototype.slice.call(e),i=16,n="",r=0;rn){if(e>n+.25*a.duration)return null;i=a}return{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:n-i.duration,type:i.videoTimingInfo?"accurate":"estimate"}}(n,t);if(!a)return r({message:"valid programTime was not found"});if("estimate"===a.type)return r({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:a.estimatedStart});var s={mediaSeconds:n},o=function(e,t){if(!t.dateTimeObject)return null;var i=t.videoTimingInfo.transmuxerPrependedSeconds,n=e-(t.videoTimingInfo.transmuxedPresentationStart+i);return new Date(t.dateTimeObject.getTime()+1e3*n)}(n,a.segment);return o&&(s.programDateTime=o.toISOString()),r(null,s)},$a=function e(t){var i=t.programTime,n=t.playlist,r=t.retryCount,a=void 0===r?2:r,s=t.seekTo,o=t.pauseAfterSeek,l=void 0===o||o,u=t.tech,d=t.callback;if(!d)throw new Error("seekToProgramTime: callback must be provided");if("undefined"===typeof i||!n||!s)return d({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!n.endList&&!u.hasStarted_)return d({message:"player must be playing a live stream to start buffering"});if(!function(e){if(!e.segments||0===e.segments.length)return!1;for(var t=0;tnew Date(o.getTime()+1e3*l)?null:(i>o&&(n=s),{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:ka.duration(t,t.mediaSequence+t.segments.indexOf(n)),type:n.videoTimingInfo?"accurate":"estimate"})}(i,n);if(!c)return d({message:i+" was not found in the stream"});var h=c.segment,p=function(e,t){var i,n;try{i=new Date(e),n=new Date(t)}catch(a){}var r=i.getTime();return(n.getTime()-r)/1e3}(h.dateTimeObject,i);if("estimate"===c.type)return 0===a?d({message:i+" is not buffered yet. Try again"}):(s(c.estimatedStart+p),void u.one("seeked",(function(){e({programTime:i,playlist:n,retryCount:a-1,seekTo:s,pauseAfterSeek:l,tech:u,callback:d})})));var f=h.start+p;u.one("seeked",(function(){return d(null,u.currentTime())})),l&&u.pause(),s(f)},Ja=function(e,t){if(4===e.readyState)return t()},es=Wr.EventTarget,ts=Wr.mergeOptions,is=function(e,t){if(!Ma(e,t))return!1;if(e.sidx&&t.sidx&&(e.sidx.offset!==t.sidx.offset||e.sidx.length!==t.sidx.length))return!1;if(!e.sidx&&t.sidx||e.sidx&&!t.sidx)return!1;if(e.segments&&!t.segments||!e.segments&&t.segments)return!1;if(!e.segments&&!t.segments)return!0;for(var i=0;i=d+u)return o(t,{response:a.subarray(u,u+d),status:i.status,uri:i.uri});n.request=n.vhs_.xhr({uri:s,responseType:"arraybuffer",headers:qa({byterange:e.sidx.byterange})},o)}))}else this.mediaRequest_=a().setTimeout((function(){return i(!1)}),0)},i.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},a().clearTimeout(this.minimumUpdatePeriodTimeout_),a().clearTimeout(this.mediaRequest_),a().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.off()},i.hasPendingRequest=function(){return this.request||this.mediaRequest_},i.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},i.media=function(e){var t=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var i=this.state;if("string"===typeof e){if(!this.masterPlaylistLoader_.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.masterPlaylistLoader_.master.playlists[e]}var n=!this.media_||e.id!==this.media_.id;if(n&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(n&&(this.trigger("mediachanging"),this.trigger("mediachange")));n&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,i,(function(n){t.haveMetadata({startingState:i,playlist:e})})))},i.haveMetadata=function(e){var t=e.startingState,i=e.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[i.id]=i,this.mediaRequest_=null,this.refreshMedia_(i.id),"HAVE_MASTER"===t?this.trigger("loadedmetadata"):this.trigger("mediachange")},i.pause=function(){this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),a().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMaster_&&(a().clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)},i.load=function(e){var t=this;a().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var i=this.media();if(e){var n=i?i.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=a().setTimeout((function(){return t.load()}),n)}else this.started?i&&!i.endList?(this.isMaster_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()},i.start=function(){var e=this;this.started=!0,this.isMaster_?this.requestMaster_((function(t,i){e.haveMaster_(),e.hasPendingRequest()||e.media_||e.media(e.masterPlaylistLoader_.master.playlists[0])})):this.mediaRequest_=a().setTimeout((function(){return e.haveMaster_()}),0)},i.requestMaster_=function(e){var t=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},(function(i,n){if(!t.requestErrored_(i,n)){var r=n.responseText!==t.masterPlaylistLoader_.masterXml_;return t.masterPlaylistLoader_.masterXml_=n.responseText,n.responseHeaders&&n.responseHeaders.date?t.masterLoaded_=Date.parse(n.responseHeaders.date):t.masterLoaded_=Date.now(),t.masterPlaylistLoader_.srcUrl=Zr(t.handleManifestRedirects,t.masterPlaylistLoader_.srcUrl,n),r?(t.handleMaster_(),void t.syncClientServerClock_((function(){return e(n,r)}))):e(n,r)}"HAVE_NOTHING"===t.state&&(t.started=!1)}))},i.syncClientServerClock_=function(e){var t=this,i=(0,w.LG)(this.masterPlaylistLoader_.masterXml_);return null===i?(this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),e()):"DIRECT"===i.method?(this.masterPlaylistLoader_.clientOffset_=i.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:Kr(this.masterPlaylistLoader_.srcUrl,i.value),method:i.method,withCredentials:this.withCredentials},(function(n,r){if(t.request){if(n)return t.masterPlaylistLoader_.clientOffset_=t.masterLoaded_-Date.now(),e();var a;a="HEAD"===i.method?r.responseHeaders&&r.responseHeaders.date?Date.parse(r.responseHeaders.date):t.masterLoaded_:Date.parse(r.responseText),t.masterPlaylistLoader_.clientOffset_=a-Date.now(),e()}})))},i.haveMaster_=function(){this.state="HAVE_MASTER",this.isMaster_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)},i.handleMaster_=function(){this.mediaRequest_=null;var e=this.masterPlaylistLoader_.master,t=function(e){var t=e.masterXml,i=e.srcUrl,n=e.clientOffset,r=e.sidxMapping,a=e.previousManifest,s=(0,w.Qc)(t,{manifestUri:i,clientOffset:n,sidxMapping:r,previousManifest:a});return xa(s,i),s}({masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_,previousManifest:e});e&&(t=function(e,t,i){for(var n=!0,r=ts(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts}),a=0;a-1)},this.trigger=function(t){var i,n,r,a;if(i=e[t])if(2===arguments.length)for(r=i.length,n=0;n>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))},a=function(){return t(C.ftyp,E,w,E,I)},_=function(e){return t(C.hdlr,A[e])},s=function(e){return t(C.mdat,e)},g=function(e){var i=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(i[12]=e.samplerate>>>24&255,i[13]=e.samplerate>>>16&255,i[14]=e.samplerate>>>8&255,i[15]=255&e.samplerate),t(C.mdhd,i)},m=function(e){return t(C.mdia,g(e),_(e.type),l(e))},o=function(e){return t(C.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},l=function(e){return t(C.minf,"video"===e.type?t(C.vmhd,L):t(C.smhd,O),n(),y(e))},u=function(e,i){for(var n=[],r=i.length;r--;)n[r]=b(i[r]);return t.apply(null,[C.moof,o(e)].concat(n))},d=function(e){for(var i=e.length,n=[];i--;)n[i]=p(e[i]);return t.apply(null,[C.moov,h(4294967295)].concat(n).concat(c(e)))},c=function(e){for(var i=e.length,n=[];i--;)n[i]=S(e[i]);return t.apply(null,[C.mvex].concat(n))},h=function(e){var i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return t(C.mvhd,i)},v=function(e){var i,n,r=e.samples||[],a=new Uint8Array(4+r.length);for(n=0;n>>8),s.push(255&r[i].byteLength),s=s.concat(Array.prototype.slice.call(r[i]));for(i=0;i>>8),o.push(255&a[i].byteLength),o=o.concat(Array.prototype.slice.call(a[i]));if(n=[C.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),t(C.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([r.length],s,[a.length],o))),t(C.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var l=e.sarRatio[0],u=e.sarRatio[1];n.push(t(C.pasp,new Uint8Array([(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l,(4278190080&u)>>24,(16711680&u)>>16,(65280&u)>>8,255&u])))}return t.apply(null,n)},i=function(e){return t(C.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),r(e))}}(),f=function(e){var i=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return t(C.tkhd,i)},b=function(e){var i,n,r,a,s,o;return i=t(C.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),s=Math.floor(e.baseMediaDecodeTime/H),o=Math.floor(e.baseMediaDecodeTime%H),n=t(C.tfdt,new Uint8Array([1,0,0,0,s>>>24&255,s>>>16&255,s>>>8&255,255&s,o>>>24&255,o>>>16&255,o>>>8&255,255&o])),92,"audio"===e.type?(r=k(e,92),t(C.traf,i,n,r)):(a=v(e),r=k(e,a.length+92),t(C.traf,i,n,r,a))},p=function(e){return e.duration=e.duration||4294967295,t(C.trak,f(e),m(e))},S=function(e){var i=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(i[i.length-1]=0),t(C.trex,i)},function(){var e,i,n;n=function(e,t){var i=0,n=0,r=0,a=0;return e.length&&(void 0!==e[0].duration&&(i=1),void 0!==e[0].size&&(n=2),void 0!==e[0].flags&&(r=4),void 0!==e[0].compositionTimeOffset&&(a=8)),[0,0,i|n|r|a,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},i=function(e,i){var r,a,s,o,l,u;for(i+=20+16*(o=e.samples||[]).length,s=n(o,i),(a=new Uint8Array(s.length+16*o.length)).set(s),r=s.length,u=0;u>>24,a[r++]=(16711680&l.duration)>>>16,a[r++]=(65280&l.duration)>>>8,a[r++]=255&l.duration,a[r++]=(4278190080&l.size)>>>24,a[r++]=(16711680&l.size)>>>16,a[r++]=(65280&l.size)>>>8,a[r++]=255&l.size,a[r++]=l.flags.isLeading<<2|l.flags.dependsOn,a[r++]=l.flags.isDependedOn<<6|l.flags.hasRedundancy<<4|l.flags.paddingValue<<1|l.flags.isNonSyncSample,a[r++]=61440&l.flags.degradationPriority,a[r++]=15&l.flags.degradationPriority,a[r++]=(4278190080&l.compositionTimeOffset)>>>24,a[r++]=(16711680&l.compositionTimeOffset)>>>16,a[r++]=(65280&l.compositionTimeOffset)>>>8,a[r++]=255&l.compositionTimeOffset;return t(C.trun,a)},e=function(e,i){var r,a,s,o,l,u;for(i+=20+8*(o=e.samples||[]).length,s=n(o,i),(r=new Uint8Array(s.length+8*o.length)).set(s),a=s.length,u=0;u>>24,r[a++]=(16711680&l.duration)>>>16,r[a++]=(65280&l.duration)>>>8,r[a++]=255&l.duration,r[a++]=(4278190080&l.size)>>>24,r[a++]=(16711680&l.size)>>>16,r[a++]=(65280&l.size)>>>8,r[a++]=255&l.size;return t(C.trun,r)},k=function(t,n){return"audio"===t.type?e(t,n):i(t,n)}}();var q,V,W,z,G,K,Z,Q,X=s,Y=u,$=function(e){var t,i=a(),n=d(e);return(t=new Uint8Array(i.byteLength+n.byteLength)).set(i),t.set(n,i.byteLength),t},J=function(e,t){var i={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return i.dataOffset=t,i.compositionTimeOffset=e.pts-e.dts,i.duration=e.duration,i.size=4*e.length,i.size+=e.byteLength,e.keyFrame&&(i.flags.dependsOn=2,i.flags.isNonSyncSample=0),i},ee=function(e){var t,i,n=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,n.byteLength=0,t=0;t1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},ne=function(e,t){var i,n,r,a,s,o=t||0,l=[];for(i=0;ide/2))){for((s=le()[e.samplerate])||(s=t[0].data),o=0;o=i?e:(t.minSegmentDts=1/0,e.filter((function(e){return e.dts>=i&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)})))},ve=function(e){var t,i,n=[];for(t=0;t=this.virtualRowCount&&"function"===typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},Oe.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},Oe.prototype.addText=function(e){this.rows[this.rowIdx]+=e},Oe.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var De=function(e,t,i){this.serviceNum=e,this.text="",this.currentWindow=new Oe(-1),this.windows=[],this.stream=i,"string"===typeof t&&this.createTextDecoder(t)};De.prototype.init=function(e,t){this.startPts=e;for(var i=0;i<8;i++)this.windows[i]=new Oe(i),"function"===typeof t&&(this.windows[i].beforeRowOverflow=t)},De.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},De.prototype.createTextDecoder=function(e){if("undefined"===typeof TextDecoder)this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(e)}catch(t){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+e+" encoding. "+t})}};var Me=function e(t){t=t||{},e.prototype.init.call(this);var i,n=this,r=t.captionServices||{},a={};Object.keys(r).forEach((function(e){i=r[e],/^SERVICE/.test(e)&&(a[e]=i.encoding)})),this.serviceEncodings=a,this.current708Packet=null,this.services={},this.push=function(e){3===e.type?(n.new708Packet(),n.add708Bytes(e)):(null===n.current708Packet&&n.new708Packet(),n.add708Bytes(e))}};Me.prototype=new N,Me.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},Me.prototype.add708Bytes=function(e){var t=e.ccData,i=t>>>8,n=255&t;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(i),this.current708Packet.data.push(n)},Me.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,i=null,n=null,r=0,a=t[r++];for(e.seq=a>>6,e.sizeCode=63&a;r>5)&&n>0&&(i=a=t[r++]),this.pushServiceBlock(i,r,n),n>0&&(r+=n-1)},Me.prototype.pushServiceBlock=function(e,t,i){var n,r=t,a=this.current708Packet.data,s=this.services[e];for(s||(s=this.initService(e,r));r>5,a.rowLock=(16&n)>>4,a.columnLock=(8&n)>>3,a.priority=7&n,n=i[++e],a.relativePositioning=(128&n)>>7,a.anchorVertical=127&n,n=i[++e],a.anchorHorizontal=n,n=i[++e],a.anchorPoint=(240&n)>>4,a.rowCount=15&n,n=i[++e],a.columnCount=63&n,n=i[++e],a.windowStyle=(56&n)>>3,a.penStyle=7&n,a.virtualRowCount=a.rowCount+1,e},Me.prototype.setWindowAttributes=function(e,t){var i=this.current708Packet.data,n=i[e],r=t.currentWindow.winAttr;return n=i[++e],r.fillOpacity=(192&n)>>6,r.fillRed=(48&n)>>4,r.fillGreen=(12&n)>>2,r.fillBlue=3&n,n=i[++e],r.borderType=(192&n)>>6,r.borderRed=(48&n)>>4,r.borderGreen=(12&n)>>2,r.borderBlue=3&n,n=i[++e],r.borderType+=(128&n)>>5,r.wordWrap=(64&n)>>6,r.printDirection=(48&n)>>4,r.scrollDirection=(12&n)>>2,r.justify=3&n,n=i[++e],r.effectSpeed=(240&n)>>4,r.effectDirection=(12&n)>>2,r.displayEffect=3&n,e},Me.prototype.flushDisplayed=function(e,t){for(var i=[],n=0;n<8;n++)t.windows[n].visible&&!t.windows[n].isEmpty()&&i.push(t.windows[n].getText());t.endPts=e,t.text=i.join("\n\n"),this.pushCaption(t),t.startPts=e},Me.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},Me.prototype.displayWindows=function(e,t){var i=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var r=0;r<8;r++)i&1<>4,r.offset=(12&n)>>2,r.penSize=3&n,n=i[++e],r.italics=(128&n)>>7,r.underline=(64&n)>>6,r.edgeType=(56&n)>>3,r.fontStyle=7&n,e},Me.prototype.setPenColor=function(e,t){var i=this.current708Packet.data,n=i[e],r=t.currentWindow.penColor;return n=i[++e],r.fgOpacity=(192&n)>>6,r.fgRed=(48&n)>>4,r.fgGreen=(12&n)>>2,r.fgBlue=3&n,n=i[++e],r.bgOpacity=(192&n)>>6,r.bgRed=(48&n)>>4,r.bgGreen=(12&n)>>2,r.bgBlue=3&n,n=i[++e],r.edgeRed=(48&n)>>4,r.edgeGreen=(12&n)>>2,r.edgeBlue=3&n,e},Me.prototype.setPenLocation=function(e,t){var i=this.current708Packet.data,n=i[e],r=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,n=i[++e],r.row=15&n,n=i[++e],r.column=63&n,e},Me.prototype.reset=function(e,t){var i=this.getPts(e);return this.flushDisplayed(i,t),this.initService(t.serviceNum,e)};var Re={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Ue=function(e){return null===e?"":(e=Re[e]||e,String.fromCharCode(e))},Be=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Ne=function(){for(var e=[],t=15;t--;)e.push("");return e},Fe=function e(t,i){e.prototype.init.call(this),this.field_=t||0,this.dataChannel_=i||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,i,n,r,a;if((t=32639&e.ccData)!==this.lastControlCode_){if(4096===(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),n=t>>>8,r=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),i=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=i,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=Ne();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Ne();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=Ne()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(n,r))a=Ue((n=(3&n)<<8)|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isExtCharacter(n,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),a=Ue((n=(3&n)<<8)|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isMidRowCode(n,r))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14===(14&r)&&this.addFormatting(e.pts,["i"]),1===(1&r)&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(n,r))this.column_+=3&r;else if(this.isPAC(n,r)){var s=Be.indexOf(7968&t);"rollUp"===this.mode_&&(s-this.rollUpRows_+1<0&&(s=this.rollUpRows_-1),this.setRollUp(e.pts,s)),s!==this.row_&&(this.clearFormatting(e.pts),this.row_=s),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16===(16&t)&&(this.column_=4*((14&t)>>1)),this.isColorPAC(r)&&14===(14&r)&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(n)&&(0===r&&(r=null),a=Ue(n),a+=Ue(r),this[this.mode_](e.pts,a),this.column_+=a.length)}else this.lastControlCode_=null}};Fe.prototype=new N,Fe.prototype.flushDisplayed=function(e){var t=this.displayed_.map((function(e,t){try{return e.trim()}catch(i){return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+t+"."}),""}}),this).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})},Fe.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Ne(),this.nonDisplayed_=Ne(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},Fe.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},Fe.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},Fe.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},Fe.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},Fe.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},Fe.prototype.isPAC=function(e,t){return e>=this.BASE_&&e=64&&t<=127},Fe.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},Fe.prototype.isNormalChar=function(e){return e>=32&&e<=127},Fe.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=Ne(),this.displayed_=Ne()),void 0!==t&&t!==this.row_)for(var i=0;i"}),"");this[this.mode_](e,i)},Fe.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce((function(e,t){return e+""}),"");this.formatting_=[],this[this.mode_](e,t)}},Fe.prototype.popOn=function(e,t){var i=this.nonDisplayed_[this.row_];i+=t,this.nonDisplayed_[this.row_]=i},Fe.prototype.rollUp=function(e,t){var i=this.displayed_[this.row_];i+=t,this.displayed_[this.row_]=i},Fe.prototype.shiftRowsUp_=function(){var e;for(e=0;et&&(i=-1);Math.abs(t-e)>4294967296;)e+=8589934592*i;return e},We=function e(t){var i,n;e.prototype.init.call(this),this.type_=t||qe,this.push=function(e){this.type_!==qe&&e.type!==this.type_||(void 0===n&&(n=e.dts),e.dts=Ve(e.dts,n),e.pts=Ve(e.pts,n),i=e.dts,this.trigger("data",e))},this.flush=function(){n=i,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){n=void 0,i=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};We.prototype=new N;var ze,Ge=We,Ke=Ve,Ze=function(e,t,i){var n,r="";for(n=t;n>>2;d*=4,d+=3&u[7],o.timeStamp=d,void 0===t.pts&&void 0===t.dts&&(t.pts=o.timeStamp,t.dts=o.timeStamp),this.trigger("timestamp",o)}t.frames.push(o),i+=10,i+=s}while(i>>4>1&&(n+=t[n]+1),0===i.pid)i.type="pat",e(t.subarray(n),i),this.trigger("data",i);else if(i.pid===this.pmtPid)for(i.type="pmt",e(t.subarray(n),i),this.trigger("data",i);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,n,i]):this.processPes_(t,n,i)},this.processPes_=function(e,t,i){i.pid===this.programMapTable.video?i.streamType=He.H264_STREAM_TYPE:i.pid===this.programMapTable.audio?i.streamType=He.ADTS_STREAM_TYPE:i.streamType=this.programMapTable["timed-metadata"][i.pid],i.type="pes",i.data=e.subarray(t),this.trigger("data",i)}},Je.prototype=new N,Je.STREAM_TYPES={h264:27,adts:15},et=function(){var e,t=this,i=!1,n={data:[],size:0},r={data:[],size:0},a={data:[],size:0},s=function(e,i,n){var r,a,s=new Uint8Array(e.size),o={type:i},l=0,u=0;if(e.data.length&&!(e.size<9)){for(o.trackId=e.data[0].pid,l=0;l>>3,t.pts*=4,t.pts+=(6&e[13])>>>1,t.dts=t.pts,64&i&&(t.dts=(14&e[14])<<27|(255&e[15])<<20|(254&e[16])<<12|(255&e[17])<<5|(254&e[18])>>>3,t.dts*=4,t.dts+=(6&e[18])>>>1)),t.data=e.subarray(9+e[8]))}(s,o),r="video"===i||o.packetLength<=e.size,(n||r)&&(e.size=0,e.data.length=0),r&&t.trigger("data",o)}};et.prototype.init.call(this),this.push=function(o){({pat:function(){},pes:function(){var e,t;switch(o.streamType){case He.H264_STREAM_TYPE:e=n,t="video";break;case He.ADTS_STREAM_TYPE:e=r,t="audio";break;case He.METADATA_STREAM_TYPE:e=a,t="timed-metadata";break;default:return}o.payloadUnitStartIndicator&&s(e,t,!0),e.data.push(o),e.size+=o.data.byteLength},pmt:function(){var n={type:"metadata",tracks:[]};null!==(e=o.programMapTable).video&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),i=!0,t.trigger("data",n)}})[o.type]()},this.reset=function(){n.size=0,n.data.length=0,r.size=0,r.data.length=0,this.trigger("reset")},this.flushStreams_=function(){s(n,"video"),s(r,"audio"),s(a,"timed-metadata")},this.flush=function(){if(!i&&e){var n={type:"metadata",tracks:[]};null!==e.video&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),t.trigger("data",n)}i=!1,this.flushStreams_(),this.trigger("done")}},et.prototype=new N;var rt={PAT_PID:0,MP2T_PACKET_LENGTH:nt,TransportPacketStream:$e,TransportParseStream:Je,ElementaryStream:et,TimestampRolloverStream:it,CaptionStream:je.CaptionStream,Cea608Stream:je.Cea608Stream,Cea708Stream:je.Cea708Stream,MetadataStream:tt};for(var at in He)He.hasOwnProperty(at)&&(rt[at]=He[at]);var st,ot=rt,lt=de,ut=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];st=function(e){var t,i=0;st.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:"adts skiping bytes "+e+" to "+t+" in frame "+i+" outside syncword"})},this.push=function(n){var r,a,s,o,l,u=0;if(e||(i=0),"audio"===n.type){var d;for(t&&t.length?(s=t,(t=new Uint8Array(s.byteLength+n.data.byteLength)).set(s),t.set(n.data,s.byteLength)):t=n.data;u+7>5,l=(o=1024*(1+(3&t[u+6])))*lt/ut[(60&t[u+2])>>>2],t.byteLength-u>>6&3),channelcount:(1&t[u+2])<<2|(192&t[u+3])>>>6,samplerate:ut[(60&t[u+2])>>>2],samplingfrequencyindex:(60&t[u+2])>>>2,samplesize:16,data:t.subarray(u+7+a,u+r)}),i++,u+=r}else"number"!==typeof d&&(d=u),u++;"number"===typeof d&&(this.skipWarn_(d,u),d=null),t=t.subarray(u)}},this.flush=function(){i=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}},st.prototype=new N;var dt,ct,ht,pt=st,ft=function(e){var t=e.byteLength,i=0,n=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+n},this.loadWord=function(){var r=e.byteLength-t,a=new Uint8Array(4),s=Math.min(4,t);if(0===s)throw new Error("no bytes available");a.set(e.subarray(r,r+s)),i=new DataView(a.buffer).getUint32(0),n=8*s,t-=s},this.skipBits=function(e){var r;n>e?(i<<=e,n-=e):(e-=n,e-=8*(r=Math.floor(e/8)),t-=r,this.loadWord(),i<<=e,n-=e)},this.readBits=function(e){var r=Math.min(n,e),a=i>>>32-r;return(n-=r)>0?i<<=r:t>0&&this.loadWord(),(r=e-r)>0?a<>>e))return i<<=e,n-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};ct=function(){var e,t,i=0;ct.prototype.init.call(this),this.push=function(n){var r;t?((r=new Uint8Array(t.byteLength+n.data.byteLength)).set(t),r.set(n.data,t.byteLength),t=r):t=n.data;for(var a=t.byteLength;i3&&this.trigger("data",t.subarray(i+3)),t=null,i=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},ct.prototype=new N,ht={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},dt=function(){var e,t,i,n,r,a,s,o=new ct;dt.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,i=e.pts,n=e.dts,o.push(e))},o.on("data",(function(s){var o={trackId:t,pts:i,dts:n,data:s,nalUnitTypeCode:31&s[0]};switch(o.nalUnitTypeCode){case 5:o.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:o.nalUnitType="sei_rbsp",o.escapedRBSP=r(s.subarray(1));break;case 7:o.nalUnitType="seq_parameter_set_rbsp",o.escapedRBSP=r(s.subarray(1)),o.config=a(o.escapedRBSP);break;case 8:o.nalUnitType="pic_parameter_set_rbsp";break;case 9:o.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",o)})),o.on("done",(function(){e.trigger("done")})),o.on("partialdone",(function(){e.trigger("partialdone")})),o.on("reset",(function(){e.trigger("reset")})),o.on("endedtimeline",(function(){e.trigger("endedtimeline")})),this.flush=function(){o.flush()},this.partialFlush=function(){o.partialFlush()},this.reset=function(){o.reset()},this.endTimeline=function(){o.endTimeline()},s=function(e,t){var i,n=8,r=8;for(i=0;i=0?i:0,(16&e[t+5])>>4?i+20:i+10},yt=function e(t,i){return t.length-i<10||t[i]!=="I".charCodeAt(0)||t[i+1]!=="D".charCodeAt(0)||t[i+2]!=="3".charCodeAt(0)?i:e(t,i+=vt(t,i))},Tt=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},bt={isLikelyAacData:function(e){var t=yt(e,0);return e.length>=t+2&&255===(255&e[t])&&240===(240&e[t+1])&&16===(22&e[t+1])},parseId3TagSize:vt,parseAdtsSize:function(e,t){var i=(224&e[t+5])>>5,n=e[t+4]<<3;return 6144&e[t+3]|n|i},parseType:function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&240===(240&e[t+1])?"audio":null},parseSampleRate:function(e){for(var t=0;t+5>>2];t++}return null},parseAacTimestamp:function(e){var t,i,n;t=10,64&e[5]&&(t+=4,t+=Tt(e.subarray(10,14)));do{if((i=Tt(e.subarray(t+4,t+8)))<1)return null;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){n=e.subarray(t+10,t+i+10);for(var r=0;r>>2;return o*=4,o+=3&s[7]}break}}t+=10,t+=i}while(t=3;)if(e[l]!=="I".charCodeAt(0)||e[l+1]!=="D".charCodeAt(0)||e[l+2]!=="3".charCodeAt(0))if(255!==(255&e[l])||240!==(240&e[l+1]))l++;else{if(e.length-l<7)break;if(l+(o=bt.parseAdtsSize(e,l))>e.length)break;a={type:"audio",data:e.subarray(l,l+o),pts:t,dts:t},this.trigger("data",a),l+=o}else{if(e.length-l<10)break;if(l+(o=bt.parseId3TagSize(e,l))>e.length)break;r={type:"timed-metadata",data:e.subarray(l,l+o)},this.trigger("data",r),l+=o}n=e.length-l,e=n>0?e.subarray(l):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new N;var St,kt,Ct,Et,wt=mt,It=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],xt=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],Pt=gt.H264Stream,At=bt.isLikelyAacData,Lt=de,Ot=function(e,t){t.stream=e,this.trigger("log",t)},Dt=function(e,t){for(var i=Object.keys(t),n=0;n=-1e4&&i<=45e3&&(!n||o>i)&&(n=a,o=i));return n?n.gop:null},this.alignGopsAtStart_=function(e){var t,i,n,r,a,o,l,u;for(a=e.byteLength,o=e.nalCount,l=e.duration,t=i=0;tn.pts?t++:(i++,a-=r.byteLength,o-=r.nalCount,l-=r.duration);return 0===i?e:i===e.length?null:((u=e.slice(i)).byteLength=a,u.duration=l,u.nalCount=o,u.pts=u[0].pts,u.dts=u[0].dts,u)},this.alignGopsAtEnd_=function(e){var t,i,n,r,a,o,l;for(t=s.length-1,i=e.length-1,a=null,o=!1;t>=0&&i>=0;){if(n=s[t],r=e[i],n.pts===r.pts){o=!0;break}n.pts>r.pts?t--:(t===s.length-1&&(a=i),i--)}if(!o&&null===a)return null;if(0===(l=o?i:a))return e;var u=e.slice(l),d=u.reduce((function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e}),{byteLength:0,duration:0,nalCount:0});return u.byteLength=d.byteLength,u.duration=d.duration,u.nalCount=d.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(e){s=e}},St.prototype=new N,Et=function(e,t){this.numberOfTracks=0,this.metadataStream=t,"undefined"!==typeof(e=e||{}).remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"===typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,Et.prototype.init.call(this),this.push=function(e){return e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),void("audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes))))}},Et.prototype=new N,Et.prototype.flush=function(e){var t,i,n,r,a=0,s={captions:[],captionStreams:{},metadata:[],info:{}},o=0;if(this.pendingTracks.length=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(o=this.videoTrack.timelineStartInfo.pts,xt.forEach((function(e){s.info[e]=this.videoTrack[e]}),this)):this.audioTrack&&(o=this.audioTrack.timelineStartInfo.pts,It.forEach((function(e){s.info[e]=this.audioTrack[e]}),this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?s.type=this.pendingTracks[0].type:s.type="combined",this.emittedTracks+=this.pendingTracks.length,n=$(this.pendingTracks),s.initSegment=new Uint8Array(n.byteLength),s.initSegment.set(n),s.data=new Uint8Array(this.pendingBytes),r=0;r=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},Et.prototype.setRemux=function(e){this.remuxTracks=e},Ct=function(e){var t,i,n=this,r=!0;Ct.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="aac",r.metadataStream=new ot.MetadataStream,r.aacStream=new wt,r.audioTimestampRolloverStream=new ot.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new ot.TimestampRolloverStream("timed-metadata"),r.adtsStream=new pt,r.coalesceStream=new Et(e,r.metadataStream),r.headOfPipeline=r.aacStream,r.aacStream.pipe(r.audioTimestampRolloverStream).pipe(r.adtsStream),r.aacStream.pipe(r.timedMetadataTimestampRolloverStream).pipe(r.metadataStream).pipe(r.coalesceStream),r.metadataStream.on("timestamp",(function(e){r.aacStream.setTimestamp(e.timeStamp)})),r.aacStream.on("data",(function(a){"timed-metadata"!==a.type&&"audio"!==a.type||r.audioSegmentStream||(i=i||{timelineStartInfo:{baseMediaDecodeTime:n.baseMediaDecodeTime},codec:"adts",type:"audio"},r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new kt(i,e),r.audioSegmentStream.on("log",n.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",n.trigger.bind(n,"audioTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream),n.trigger("trackinfo",{hasAudio:!!i,hasVideo:!!t}))})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),Dt(this,r)},this.setupTsPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="ts",r.metadataStream=new ot.MetadataStream,r.packetStream=new ot.TransportPacketStream,r.parseStream=new ot.TransportParseStream,r.elementaryStream=new ot.ElementaryStream,r.timestampRolloverStream=new ot.TimestampRolloverStream,r.adtsStream=new pt,r.h264Stream=new Pt,r.captionStream=new ot.CaptionStream(e),r.coalesceStream=new Et(e,r.metadataStream),r.headOfPipeline=r.packetStream,r.packetStream.pipe(r.parseStream).pipe(r.elementaryStream).pipe(r.timestampRolloverStream),r.timestampRolloverStream.pipe(r.h264Stream),r.timestampRolloverStream.pipe(r.adtsStream),r.timestampRolloverStream.pipe(r.metadataStream).pipe(r.coalesceStream),r.h264Stream.pipe(r.captionStream).pipe(r.coalesceStream),r.elementaryStream.on("data",(function(a){var s;if("metadata"===a.type){for(s=a.tracks.length;s--;)t||"video"!==a.tracks[s].type?i||"audio"!==a.tracks[s].type||((i=a.tracks[s]).timelineStartInfo.baseMediaDecodeTime=n.baseMediaDecodeTime):(t=a.tracks[s]).timelineStartInfo.baseMediaDecodeTime=n.baseMediaDecodeTime;t&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new St(t,e),r.videoSegmentStream.on("log",n.getLogTrigger_("videoSegmentStream")),r.videoSegmentStream.on("timelineStartInfo",(function(t){i&&!e.keepOriginalTimestamps&&(i.timelineStartInfo=t,r.audioSegmentStream.setEarliestDts(t.dts-n.baseMediaDecodeTime))})),r.videoSegmentStream.on("processedGopsInfo",n.trigger.bind(n,"gopInfo")),r.videoSegmentStream.on("segmentTimingInfo",n.trigger.bind(n,"videoSegmentTimingInfo")),r.videoSegmentStream.on("baseMediaDecodeTime",(function(e){i&&r.audioSegmentStream.setVideoBaseMediaDecodeTime(e)})),r.videoSegmentStream.on("timingInfo",n.trigger.bind(n,"videoTimingInfo")),r.h264Stream.pipe(r.videoSegmentStream).pipe(r.coalesceStream)),i&&!r.audioSegmentStream&&(r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new kt(i,e),r.audioSegmentStream.on("log",n.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",n.trigger.bind(n,"audioTimingInfo")),r.audioSegmentStream.on("segmentTimingInfo",n.trigger.bind(n,"audioSegmentTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream)),n.trigger("trackinfo",{hasAudio:!!i,hasVideo:!!t})}})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("id3Frame",(function(e){e.dispatchType=r.metadataStream.dispatchType,n.trigger("id3Frame",e)})),r.coalesceStream.on("caption",this.trigger.bind(this,"caption")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),Dt(this,r)},this.setBaseMediaDecodeTime=function(n){var r=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=n),i&&(i.timelineStartInfo.dts=void 0,i.timelineStartInfo.pts=void 0,be(i),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),t&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,be(t),r.captionStream.reset()),r.timestampRolloverStream&&r.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){i&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var i=this.transmuxPipeline_;e.remux=t,i&&i.coalesceStream&&i.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(e){var t=this;return function(i){i.stream=e,t.trigger("log",i)}},this.push=function(e){if(r){var t=At(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),r=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){r=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},Ct.prototype=new N;var Ut,Bt,Nt,Ft={Transmuxer:Ct,VideoSegmentStream:St,AudioSegmentStream:kt,AUDIO_PROPERTIES:It,VIDEO_PROPERTIES:xt,generateSegmentTimingInfo:Rt},jt=function(e){return e>>>0},Ht=function(e){return("00"+e.toString(16)).slice(-2)},qt=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3])},Vt=jt,Wt=function e(t,i){var n,r,a,s,o,l=[];if(!i.length)return null;for(n=0;n1?n+r:t.byteLength,a===i[0]&&(1===i.length?l.push(t.subarray(n+8,s)):(o=e(t.subarray(n+8,s),i.slice(1))).length&&(l=l.concat(o))),n=s;return l},zt=jt,Gt=j.getUint64,Kt=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))};return 1===t.version?t.baseMediaDecodeTime=Gt(e.subarray(4)):t.baseMediaDecodeTime=zt(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t},Zt=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},Qt=function(e){var t,i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=1&i.flags[2],a=4&i.flags[2],s=1&i.flags[1],o=2&i.flags[1],l=4&i.flags[1],u=8&i.flags[1],d=n.getUint32(4),c=8;for(r&&(i.dataOffset=n.getInt32(c),c+=4),a&&d&&(t={flags:Zt(e.subarray(c,c+4))},c+=4,s&&(t.duration=n.getUint32(c),c+=4),o&&(t.size=n.getUint32(c),c+=4),u&&(1===i.version?t.compositionTimeOffset=n.getInt32(c):t.compositionTimeOffset=n.getUint32(c),c+=4),i.samples.push(t),d--);d--;)t={},s&&(t.duration=n.getUint32(c),c+=4),o&&(t.size=n.getUint32(c),c+=4),l&&(t.flags=Zt(e.subarray(c,c+4)),c+=4),u&&(1===i.version?t.compositionTimeOffset=n.getInt32(c):t.compositionTimeOffset=n.getUint32(c),c+=4),i.samples.push(t);return i},Xt=function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:i.getUint32(4)},r=1&n.flags[2],a=2&n.flags[2],s=8&n.flags[2],o=16&n.flags[2],l=32&n.flags[2],u=65536&n.flags[0],d=131072&n.flags[0];return t=8,r&&(t+=4,n.baseDataOffset=i.getUint32(12),t+=4),a&&(n.sampleDescriptionIndex=i.getUint32(t),t+=4),s&&(n.defaultSampleDuration=i.getUint32(t),t+=4),o&&(n.defaultSampleSize=i.getUint32(t),t+=4),l&&(n.defaultSampleFlags=i.getUint32(t)),u&&(n.durationIsEmpty=!0),!r&&d&&(n.baseDataOffsetIsMoof=!0),n},Yt="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof i.g?i.g:"undefined"!==typeof self?self:{},$t="undefined"!==typeof window?window:"undefined"!==typeof Yt?Yt:"undefined"!==typeof self?self:{},Jt=Ie,ei=je.CaptionStream,ti=function(e,t){for(var i=e,n=0;n0?Kt(d[0]).baseMediaDecodeTime:0,h=Wt(s,["trun"]);t===u&&h.length>0&&(i=function(e,t,i){var n=t,r=i.defaultSampleDuration||0,a=i.defaultSampleSize||0,s=i.trackId,o=[];return e.forEach((function(e){var t=Qt(e).samples;t.forEach((function(e){void 0===e.duration&&(e.duration=r),void 0===e.size&&(e.size=a),e.trackId=s,e.dts=n,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),"bigint"===typeof n?(e.pts=n+$t.BigInt(e.compositionTimeOffset),n+=$t.BigInt(e.duration)):(e.pts=n+e.compositionTimeOffset,n+=e.duration)})),o=o.concat(t)})),o}(h,c,l),n=function(e,t,i){var n,r,a,s,o=new DataView(e.buffer,e.byteOffset,e.byteLength),l={logs:[],seiNals:[]};for(r=0;r+40;){var l=t.shift();this.parse(l,a,s)}return o=function(e,t,i){if(null===t)return null;var n=ii(e,t)[t]||{};return{seiNals:n.seiNals,logs:n.logs,timescale:i}}(e,i,n),o&&o.logs&&(r.logs=r.logs.concat(o.logs)),null!==o&&o.seiNals?(this.pushNals(o.seiNals),this.flushStream(),r):r.logs.length?{logs:r.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach((function(t){e.push(t)}))},this.flushStream=function(){if(!this.isInitialized())return null;a?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){r.captions=[],r.captionStreams={},r.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],i=null,n=null,r?this.clearParsedCaptions():r={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},ri=jt,ai=Ht,si=j.getUint64;Ut=function(e,t){var i=Wt(t,["moof","traf"]).reduce((function(t,i){var n,r,a=Wt(i,["tfhd"])[0],s=ri(a[4]<<24|a[5]<<16|a[6]<<8|a[7]),o=e[s]||9e4,l=Wt(i,["tfdt"])[0],u=new DataView(l.buffer,l.byteOffset,l.byteLength);return"bigint"===typeof(n=1===l[0]?si(l.subarray(4,12)):u.getUint32(4))?r=n/$t.BigInt(o):"number"!==typeof n||isNaN(n)||(r=n/o),r11?(r.codec+=".",r.codec+=ai(d[9]),r.codec+=ai(d[10]),r.codec+=ai(d[11])):r.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(r.codec)?(d=c.subarray(28),"esds"===qt(d.subarray(4,8))&&d.length>20&&0!==d[19]?(r.codec+="."+ai(d[19]),r.codec+="."+ai(d[20]>>>2&63).replace(/^0/,"")):r.codec="mp4a.40.2"):r.codec=r.codec.toLowerCase())}var h=Wt(e,["mdia","mdhd"])[0];h&&(r.timescale=Nt(h)),i.push(r)})),i};var oi=Ut,li=Bt,ui=function(e){var t=31&e[1];return t<<=8,t|=e[2]},di=function(e){return!!(64&e[1])},ci=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},hi=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},pi={parseType:function(e,t){var i=ui(e);return 0===i?"pat":i===t?"pmt":t?"pes":null},parsePat:function(e){var t=di(e),i=4+ci(e);return t&&(i+=e[i]+1),(31&e[i+10])<<8|e[i+11]},parsePmt:function(e){var t={},i=di(e),n=4+ci(e);if(i&&(n+=e[n]+1),1&e[n+5]){var r;r=3+((15&e[n+1])<<8|e[n+2])-4;for(var a=12+((15&e[n+10])<<8|e[n+11]);a=e.byteLength)return null;var i,n=null;return 192&(i=e[t+7])&&((n={}).pts=(14&e[t+9])<<27|(255&e[t+10])<<20|(254&e[t+11])<<12|(255&e[t+12])<<5|(254&e[t+13])>>>3,n.pts*=4,n.pts+=(6&e[t+13])>>>1,n.dts=n.pts,64&i&&(n.dts=(14&e[t+14])<<27|(255&e[t+15])<<20|(254&e[t+16])<<12|(255&e[t+17])<<5|(254&e[t+18])>>>3,n.dts*=4,n.dts+=(6&e[t+18])>>>1)),n},videoPacketContainsKeyFrame:function(e){for(var t=4+ci(e),i=e.subarray(t),n=0,r=0,a=!1;r3&&"slice_layer_without_partitioning_rbsp_idr"===hi(31&i[r+3])&&(a=!0),a}},fi=Ke,mi={};mi.ts=pi,mi.aac=bt;var gi=de,_i=188,vi=71,yi=function(e,t,i){for(var n,r,a,s,o=0,l=_i,u=!1;l<=e.byteLength;)if(e[o]!==vi||e[l]!==vi&&l!==e.byteLength)o++,l++;else{if(n=e.subarray(o,l),"pes"===mi.ts.parseType(n,t.pid))r=mi.ts.parsePesType(n,t.table),a=mi.ts.parsePayloadUnitStartIndicator(n),"audio"===r&&a&&(s=mi.ts.parsePesTime(n))&&(s.type="audio",i.audio.push(s),u=!0);if(u)break;o+=_i,l+=_i}for(o=(l=e.byteLength)-_i,u=!1;o>=0;)if(e[o]!==vi||e[l]!==vi&&l!==e.byteLength)o--,l--;else{if(n=e.subarray(o,l),"pes"===mi.ts.parseType(n,t.pid))r=mi.ts.parsePesType(n,t.table),a=mi.ts.parsePayloadUnitStartIndicator(n),"audio"===r&&a&&(s=mi.ts.parsePesTime(n))&&(s.type="audio",i.audio.push(s),u=!0);if(u)break;o-=_i,l-=_i}},Ti=function(e,t,i){for(var n,r,a,s,o,l,u,d=0,c=_i,h=!1,p={data:[],size:0};c=0;)if(e[d]!==vi||e[c]!==vi)d--,c--;else{if(n=e.subarray(d,c),"pes"===mi.ts.parseType(n,t.pid))r=mi.ts.parsePesType(n,t.table),a=mi.ts.parsePayloadUnitStartIndicator(n),"video"===r&&a&&(s=mi.ts.parsePesTime(n))&&(s.type="video",i.video.push(s),h=!0);if(h)break;d-=_i,c-=_i}},bi=function(e){var t={pid:null,table:null},i={};for(var n in function(e,t){for(var i,n=0,r=_i;r=3;){switch(mi.aac.parseType(e,o)){case"timed-metadata":if(e.length-o<10){i=!0;break}if((s=mi.aac.parseId3TagSize(e,o))>e.length){i=!0;break}null===a&&(t=e.subarray(o,o+s),a=mi.aac.parseAacTimestamp(t)),o+=s;break;case"audio":if(e.length-o<7){i=!0;break}if((s=mi.aac.parseAdtsSize(e,o))>e.length){i=!0;break}null===r&&(t=e.subarray(o,o+s),r=mi.aac.parseSampleRate(t)),n++,o+=s;break;default:o++}if(i)return null}if(null===r||null===a)return null;var l=gi/r;return{audio:[{type:"audio",dts:a,pts:a},{type:"audio",dts:a+1024*n*l,pts:a+1024*n*l}]}}(e):bi(e),i&&(i.audio||i.video)?(function(e,t){if(e.audio&&e.audio.length){var i=t;("undefined"===typeof i||isNaN(i))&&(i=e.audio[0].dts),e.audio.forEach((function(e){e.dts=fi(e.dts,i),e.pts=fi(e.pts,i),e.dtsTime=e.dts/gi,e.ptsTime=e.pts/gi}))}if(e.video&&e.video.length){var n=t;if(("undefined"===typeof n||isNaN(n))&&(n=e.video[0].dts),e.video.forEach((function(e){e.dts=fi(e.dts,n),e.pts=fi(e.pts,n),e.dtsTime=e.dts/gi,e.ptsTime=e.pts/gi})),e.firstKeyFrame){var r=e.firstKeyFrame;r.dts=fi(r.dts,n),r.pts=fi(r.pts,n),r.dtsTime=r.dts/gi,r.ptsTime=r.pts/gi}}}(i,t),i):null},ki=function(){function e(e,t){this.options=t||{},this.self=e,this.init()}var t=e.prototype;return t.init=function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new Ft.Transmuxer(this.options),function(e,t){t.on("data",(function(t){var i=t.initSegment;t.initSegment={data:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength};var n=t.data;t.data=n.buffer,e.postMessage({action:"data",segment:t,byteOffset:n.byteOffset,byteLength:n.byteLength},[t.data])})),t.on("done",(function(t){e.postMessage({action:"done"})})),t.on("gopInfo",(function(t){e.postMessage({action:"gopInfo",gopInfo:t})})),t.on("videoSegmentTimingInfo",(function(t){var i={start:{decode:he(t.start.dts),presentation:he(t.start.pts)},end:{decode:he(t.end.dts),presentation:he(t.end.pts)},baseMediaDecodeTime:he(t.baseMediaDecodeTime)};t.prependedContentDuration&&(i.prependedContentDuration=he(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:i})})),t.on("audioSegmentTimingInfo",(function(t){var i={start:{decode:he(t.start.dts),presentation:he(t.start.pts)},end:{decode:he(t.end.dts),presentation:he(t.end.pts)},baseMediaDecodeTime:he(t.baseMediaDecodeTime)};t.prependedContentDuration&&(i.prependedContentDuration=he(t.prependedContentDuration)),e.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:i})})),t.on("id3Frame",(function(t){e.postMessage({action:"id3Frame",id3Frame:t})})),t.on("caption",(function(t){e.postMessage({action:"caption",caption:t})})),t.on("trackinfo",(function(t){e.postMessage({action:"trackinfo",trackInfo:t})})),t.on("audioTimingInfo",(function(t){e.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:he(t.start),end:he(t.end)}})})),t.on("videoTimingInfo",(function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:he(t.start),end:he(t.end)}})})),t.on("log",(function(t){e.postMessage({action:"log",log:t})}))}(this.self,this.transmuxer)},t.pushMp4Captions=function(e){this.captionParser||(this.captionParser=new ni,this.captionParser.init());var t=new Uint8Array(e.data,e.byteOffset,e.byteLength),i=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:i&&i.captions||[],logs:i&&i.logs||[],data:t.buffer},[t.buffer])},t.probeMp4StartTime=function(e){var t=e.timescales,i=e.data,n=oi(t,i);this.self.postMessage({action:"probeMp4StartTime",startTime:n,data:i},[i.buffer])},t.probeMp4Tracks=function(e){var t=e.data,i=li(t);this.self.postMessage({action:"probeMp4Tracks",tracks:i,data:t},[t.buffer])},t.probeTs=function(e){var t=e.data,i=e.baseStartTime,n="number"!==typeof i||isNaN(i)?void 0:i*de,r=Si(t,n),a=null;r&&((a={hasVideo:r.video&&2===r.video.length||!1,hasAudio:r.audio&&2===r.audio.length||!1}).hasVideo&&(a.videoStart=r.video[0].ptsTime),a.hasAudio&&(a.audioStart=r.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:a,data:t},[t.buffer])},t.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},t.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},t.push=function(e){var t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)},t.reset=function(){this.transmuxer.reset()},t.setTimestampOffset=function(e){var t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(ce(t)))},t.setAudioAppendStart=function(e){this.transmuxer.setAudioAppendStart(Math.ceil(ce(e.appendStart)))},t.setRemux=function(e){this.transmuxer.setRemux(e.remux)},t.flush=function(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})},t.endTimeline=function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})},t.alignGopsWith=function(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())},e}();self.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new ki(self,e.data.options):(this.messageHandlers||(this.messageHandlers=new ki(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}}))),cs=os(ds),hs=function(e){var t=e.transmuxer,i=e.bytes,n=e.audioAppendStart,r=e.gopsToAlignWith,a=e.remux,s=e.onData,o=e.onTrackInfo,l=e.onAudioTimingInfo,u=e.onVideoTimingInfo,d=e.onVideoSegmentTimingInfo,c=e.onAudioSegmentTimingInfo,h=e.onId3,p=e.onCaptions,f=e.onDone,m=e.onEndedTimeline,g=e.onTransmuxerLog,_=e.isEndOfTimeline,v={buffer:[]},y=_;if(t.onmessage=function(i){t.currentTransmux===e&&("data"===i.data.action&&function(e,t,i){var n=e.data.segment,r=n.type,a=n.initSegment,s=n.captions,o=n.captionStreams,l=n.metadata,u=n.videoFrameDtsTime,d=n.videoFramePtsTime;t.buffer.push({captions:s,captionStreams:o,metadata:l});var c=e.data.segment.boxes||{data:e.data.segment.data},h={type:r,data:new Uint8Array(c.data,c.data.byteOffset,c.data.byteLength),initSegment:new Uint8Array(a.data,a.byteOffset,a.byteLength)};"undefined"!==typeof u&&(h.videoFrameDtsTime=u),"undefined"!==typeof d&&(h.videoFramePtsTime=d),i(h)}(i,v,s),"trackinfo"===i.data.action&&o(i.data.trackInfo),"gopInfo"===i.data.action&&function(e,t){t.gopInfo=e.data.gopInfo}(i,v),"audioTimingInfo"===i.data.action&&l(i.data.audioTimingInfo),"videoTimingInfo"===i.data.action&&u(i.data.videoTimingInfo),"videoSegmentTimingInfo"===i.data.action&&d(i.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===i.data.action&&c(i.data.audioSegmentTimingInfo),"id3Frame"===i.data.action&&h([i.data.id3Frame],i.data.id3Frame.dispatchType),"caption"===i.data.action&&p(i.data.caption),"endedtimeline"===i.data.action&&(y=!1,m()),"log"===i.data.action&&g(i.data.log),"transmuxed"===i.data.type&&(y||(t.onmessage=null,function(e){var t=e.transmuxedData,i=e.callback;t.buffer=[],i(t)}({transmuxedData:v,callback:f}),ps(t))))},n&&t.postMessage({action:"setAudioAppendStart",appendStart:n}),Array.isArray(r)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),"undefined"!==typeof a&&t.postMessage({action:"setRemux",remux:a}),i.byteLength){var T=i instanceof ArrayBuffer?i:i.buffer,b=i instanceof ArrayBuffer?0:i.byteOffset;t.postMessage({action:"push",data:T,byteOffset:b,byteLength:i.byteLength},[T])}_&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},ps=function(e){e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"===typeof e.currentTransmux?e.currentTransmux():hs(e.currentTransmux))},fs=function(e,t){e.postMessage({action:t}),ps(e)},ms=function(e,t){if(!t.currentTransmux)return t.currentTransmux=e,void fs(t,e);t.transmuxQueue.push(fs.bind(null,t,e))},gs=function(e){if(!e.transmuxer.currentTransmux)return e.transmuxer.currentTransmux=e,void hs(e);e.transmuxer.transmuxQueue.push(e)},_s=function(e){ms("reset",e)},vs=function(e){var t=new cs;t.currentTransmux=null,t.transmuxQueue=[];var i=t.terminate;return t.terminate=function(){return t.currentTransmux=null,t.transmuxQueue.length=0,i.call(t)},t.postMessage({action:"init",options:e}),t},ys=function(e){var t=e.transmuxer,i=e.endAction||e.action,n=e.callback,r=(0,l.Z)({},e,{endAction:null,transmuxer:null,callback:null});if(t.addEventListener("message",(function r(a){a.data.action===i&&(t.removeEventListener("message",r),a.data.data&&(a.data.data=new Uint8Array(a.data.data,e.byteOffset||0,e.byteLength||a.data.data.byteLength),e.data&&(e.data=a.data.data)),n(a.data))})),e.data){var a=e.data instanceof ArrayBuffer;r.byteOffset=a?0:e.data.byteOffset,r.byteLength=e.data.byteLength;var s=[a?e.data:e.data.buffer];t.postMessage(r,s)}else t.postMessage(r)},Ts=2,bs=-101,Ss=-102,ks=function(e){e.forEach((function(e){e.abort()}))},Cs=function(e,t){return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:bs,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:Ss,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:Ts,xhr:t}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:Ts,xhr:t}:null},Es=function(e,t,i){return function(n,r){var a=r.response,s=Cs(n,r);if(s)return i(s,e);if(16!==a.byteLength)return i({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:Ts,xhr:r},e);for(var o=new DataView(a),l=new Uint32Array([o.getUint32(0),o.getUint32(4),o.getUint32(8),o.getUint32(12)]),u=0;u1)return Ms("multiple "+e+" codecs found as attributes: "+t[e].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs."),void(t[e]=null);t[e]=t[e][0]})),t},Bs=function(e){var t=0;return e.audio&&t++,e.video&&t++,t},Ns=function(e,t){var i=t.attributes||{},n=Us(function(e){var t=e.attributes||{};if(t.CODECS)return(0,k.kS)(t.CODECS)}(t)||[]);if(Rs(e,t)&&!n.audio&&!function(e,t){if(!Rs(e,t))return!0;var i=t.attributes||{},n=e.mediaGroups.AUDIO[i.AUDIO];for(var r in n)if(!n[r].uri&&!n[r].playlists)return!0;return!1}(e,t)){var r=Us((0,k.Jg)(e,i.AUDIO)||[]);r.audio&&(n.audio=r.audio)}return n},Fs=Qr("PlaylistSelector"),js=function(e){if(e&&e.playlist){var t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})}},Hs=function(e,t){if(!e)return"";var i=a().getComputedStyle(e);return i?i[t]:""},qs=function(e,t){var i=e.slice();e.sort((function(e,n){var r=t(e,n);return 0===r?i.indexOf(e)-i.indexOf(n):r}))},Vs=function(e,t){var i,n;return e.attributes.BANDWIDTH&&(i=e.attributes.BANDWIDTH),i=i||a().Number.MAX_VALUE,t.attributes.BANDWIDTH&&(n=t.attributes.BANDWIDTH),i-(n=n||a().Number.MAX_VALUE)},Ws=function(e,t,i,n,r,s){if(e){var o={bandwidth:t,width:i,height:n,limitRenditionByPlayerDimensions:r},l=e.playlists;ka.isAudioOnly(e)&&(l=s.getAudioTrackPlaylists_(),o.audioOnly=!0);var u=l.map((function(e){var t=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,i=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return{bandwidth:e.attributes&&e.attributes.BANDWIDTH||a().Number.MAX_VALUE,width:t,height:i,playlist:e}}));qs(u,(function(e,t){return e.bandwidth-t.bandwidth}));var d=(u=u.filter((function(e){return!ka.isIncompatible(e.playlist)}))).filter((function(e){return ka.isEnabled(e.playlist)}));d.length||(d=u.filter((function(e){return!ka.isDisabled(e.playlist)})));var c=d.filter((function(e){return e.bandwidth*as.BANDWIDTH_VARIANCEi||e.height>n}))).filter((function(e){return e.width===v[0].width&&e.height===v[0].height})),h=y[y.length-1],T=y.filter((function(e){return e.bandwidth===h.bandwidth}))[0]),s.experimentalLeastPixelDiffSelector){var k=g.map((function(e){return e.pixelDiff=Math.abs(e.width-i)+Math.abs(e.height-n),e}));qs(k,(function(e,t){return e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff})),b=k[0]}var C=b||T||S||p||d[0]||u[0];if(C&&C.playlist){var E="sortedPlaylistReps";return b?E="leastPixelDiffRep":T?E="resolutionPlusOneRep":S?E="resolutionBestRep":p?E="bandwidthBestRep":d[0]&&(E="enabledPlaylistReps"),Fs("choosing "+js(C)+" using "+E+" with options",o),C.playlist}return Fs("could not choose a playlist with options",o),null}},zs=function(){var e=this.useDevicePixelRatio&&a().devicePixelRatio||1;return Ws(this.playlists.master,this.systemBandwidth,parseInt(Hs(this.tech_.el(),"width"),10)*e,parseInt(Hs(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)},Gs=function(e){var t=e.inbandTextTracks,i=e.metadataArray,n=e.timestampOffset,r=e.videoDuration;if(i){var s=a().WebKitDataCue||a().VTTCue,o=t.metadataTrack_;if(o&&(i.forEach((function(e){var t=e.cueTime+n;!("number"!==typeof t||a().isNaN(t)||t<0)&&t<1/0&&e.frames.forEach((function(e){var i=new s(t,t,e.value||e.url||e.data||"");i.frame=e,i.value=e,function(e){Object.defineProperties(e.frame,{id:{get:function(){return Wr.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get:function(){return Wr.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get:function(){return Wr.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})}(i),o.addCue(i)}))})),o.cues&&o.cues.length)){for(var l=o.cues,u=[],d=0;d=e&&r.endTime<=t&&i.removeCue(r)},Zs=function(e){return"number"===typeof e&&isFinite(e)},Qs=1/60,Xs=function(e){var t=e.startOfSegment,i=e.duration,n=e.segment,r=e.part,a=e.playlist,s=a.mediaSequence,o=a.id,l=a.segments,u=void 0===l?[]:l,d=e.mediaIndex,c=e.partIndex,h=e.timeline,p=u.length-1,f="mediaIndex/partIndex increment";e.getMediaInfoForTime?f="getMediaInfoForTime ("+e.getMediaInfoForTime+")":e.isSyncRequest&&(f="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(f+=" with independent "+e.independent);var m="number"===typeof c,g=e.segment.uri?"segment":"pre-segment",_=m?ua({preloadSegment:n})-1:0;return g+" ["+(s+d)+"/"+(s+p)+"]"+(m?" part ["+c+"/"+_+"]":"")+" segment start/end ["+n.start+" => "+n.end+"]"+(m?" part start/end ["+r.start+" => "+r.end+"]":"")+" startOfSegment ["+t+"] duration ["+i+"] timeline ["+h+"] selected by ["+f+"] playlist ["+o+"]"},Ys=function(e){return e+"TimingInfo"},$s=function(e){var t=e.timelineChangeController,i=e.currentTimeline,n=e.segmentTimeline,r=e.loaderType,a=e.audioDisabled;if(i===n)return!1;if("audio"===r){var s=t.lastTimelineChange({type:"main"});return!s||s.to!==n}if("main"===r&&a){var o=t.pendingTimelineChange({type:"audio"});return!o||o.to!==n}return!1},Js=function(e){var t=e.segmentDuration,i=e.maxDuration;return!!t&&Math.round(t)>i+Xr},eo=function(e,t){if("hls"!==t)return null;var i=function(e){var t=0;return["video","audio"].forEach((function(i){var n=e[i+"TimingInfo"];if(n){var r,s=n.start,o=n.end;"bigint"===typeof s||"bigint"===typeof o?r=a().BigInt(o)-a().BigInt(s):"number"===typeof s&&"number"===typeof o&&(r=o-s),"undefined"!==typeof r&&r>t&&(t=r)}})),"bigint"===typeof t&&t=11,n.appendInitSegment_={audio:!0,video:!0},n.playlistOfLastInitSegment_={audio:null,video:null},n.callQueue_=[],n.loadQueue_=[],n.metadataQueue_={id3:[],caption:[]},n.waitingOnRemove_=!1,n.quotaExceededErrorRetryTimeout_=null,n.activeInitSegmentId_=null,n.initSegments_={},n.cacheEncryptionKeys_=t.cacheEncryptionKeys,n.keyCache_={},n.decrypter_=t.decrypter,n.syncController_=t.syncController,n.syncPoint_={segmentIndex:0,time:0},n.transmuxer_=n.createTransmuxer_(),n.triggerSyncInfoUpdate_=function(){return n.trigger("syncinfoupdate")},n.syncController_.on("syncinfoupdate",n.triggerSyncInfoUpdate_),n.mediaSource_.addEventListener("sourceopen",(function(){n.isEndOfStream_()||(n.ended_=!1)})),n.fetchAtBuffer_=!1,n.logger_=Qr("SegmentLoader["+n.loaderType_+"]"),Object.defineProperty((0,c.Z)(n),"state",{get:function(){return this.state_},set:function(e){e!==this.state_&&(this.logger_(this.state_+" -> "+e),this.state_=e,this.trigger("statechange"))}}),n.sourceUpdater_.on("ready",(function(){n.hasEnoughInfoToAppend_()&&n.processCallQueue_()})),"main"===n.loaderType_&&n.timelineChangeController_.on("pendingtimelinechange",(function(){n.hasEnoughInfoToAppend_()&&n.processCallQueue_()})),"audio"===n.loaderType_&&n.timelineChangeController_.on("timelinechange",(function(){n.hasEnoughInfoToLoad_()&&n.processLoadQueue_(),n.hasEnoughInfoToAppend_()&&n.processCallQueue_()})),n}(0,h.Z)(t,e);var i=t.prototype;return i.createTransmuxer_=function(){return vs({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})},i.resetStats_=function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0},i.dispose=function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&a().clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},i.setAudio=function(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())},i.abort=function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)},i.abort_=function(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,a().clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null},i.checkForAbort_=function(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)},i.error=function(e){return"undefined"!==typeof e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_},i.endOfStream=function(){this.ended_=!0,this.transmuxer_&&_s(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},i.buffered_=function(){var e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return Wr.createTimeRanges();if("main"===this.loaderType_){var t=e.hasAudio,i=e.hasVideo,n=e.isMuxed;if(i&&t&&!this.audioDisabled_&&!n)return this.sourceUpdater_.buffered();if(i)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()},i.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var i=Ka(e),n=this.initSegments_[i];return t&&!n&&e.bytes&&(this.initSegments_[i]=n={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),n||e},i.segmentKey=function(e,t){if(void 0===t&&(t=!1),!e)return null;var i=Za(e),n=this.keyCache_[i];this.cacheEncryptionKeys_&&t&&!n&&e.bytes&&(this.keyCache_[i]=n={resolvedUri:e.resolvedUri,bytes:e.bytes});var r={resolvedUri:(n||e).resolvedUri};return n&&(r.bytes=n.bytes),r},i.couldBeginLoading_=function(){return this.playlist_&&!this.paused()},i.load=function(){if(this.monitorBuffer_(),this.playlist_)return"INIT"===this.state&&this.couldBeginLoading_()?this.init_():void(!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY"))},i.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},i.playlist=function(e,t){if(void 0===t&&(t={}),e){var i=this.playlist_,n=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e));var r=null;if(i&&(i.id?r=i.id:i.uri&&(r=i.uri)),this.logger_("playlist update ["+r+" => "+(e.id||e.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!i||i.uri!==e.uri)return null!==this.mediaIndex&&(e.endList?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");var a=e.mediaSequence-i.mediaSequence;if(this.logger_("live window shift ["+a+"]"),null!==this.mediaIndex)if(this.mediaIndex-=a,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{var s=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!s.parts||!s.parts.length||!s.parts[this.partIndex])){var o=this.mediaIndex;this.logger_("currently processing part (index "+this.partIndex+") no longer exists."),this.resetLoader(),this.mediaIndex=o}}n&&(n.mediaIndex-=a,n.mediaIndex<0?(n.mediaIndex=null,n.partIndex=null):(n.mediaIndex>=0&&(n.segment=e.segments[n.mediaIndex]),n.partIndex>=0&&n.segment.parts&&(n.part=n.segment.parts[n.partIndex]))),this.syncController_.saveExpiredSegmentInfo(i,e)}},i.pause=function(){this.checkBufferTimeout_&&(a().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},i.paused=function(){return null===this.checkBufferTimeout_},i.resetEverything=function(e){this.ended_=!1,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))},i.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},i.resyncLoader=function(){this.transmuxer_&&_s(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})},i.remove=function(e,t,i,n){if(void 0===i&&(i=function(){}),void 0===n&&(n=!1),t===1/0&&(t=this.duration_()),t<=e)this.logger_("skipping remove because end ${end} is <= start ${start}");else if(this.sourceUpdater_&&this.getMediaInfo_()){var r=1,a=function(){0===--r&&i()};for(var s in!n&&this.audioDisabled_||(r++,this.sourceUpdater_.removeAudio(e,t,a)),(n||"main"===this.loaderType_)&&(this.gopBuffer_=function(e,t,i,n){for(var r=Math.ceil((t-n)*L.ONE_SECOND_IN_TS),a=Math.ceil((i-n)*L.ONE_SECOND_IN_TS),s=e.slice(),o=e.length;o--&&!(e[o].pts<=a););if(-1===o)return s;for(var l=o+1;l--&&!(e[l].pts<=r););return l=Math.max(l,0),s.splice(l,o-l+1),s}(this.gopBuffer_,e,t,this.timeMapping_),r++,this.sourceUpdater_.removeVideo(e,t,a)),this.inbandTextTracks_)Ks(e,t,this.inbandTextTracks_[s]);Ks(e,t,this.segmentMetadataTrack_),a()}else this.logger_("skipping remove because no source updater or starting media info")},i.monitorBuffer_=function(){this.checkBufferTimeout_&&a().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=a().setTimeout(this.monitorBufferTick_.bind(this),1)},i.monitorBufferTick_=function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&a().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=a().setTimeout(this.monitorBufferTick_.bind(this),500)},i.fillBuffer_=function(){if(!this.sourceUpdater_.updating()){var e=this.chooseNextRequest_();e&&("number"===typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e))}},i.isEndOfStream_=function(e,t,i){if(void 0===e&&(e=this.mediaIndex),void 0===t&&(t=this.playlist_),void 0===i&&(i=this.partIndex),!t||!this.mediaSource_)return!1;var n="number"===typeof e&&t.segments[e],r=e+1===t.segments.length,a=!n||!n.parts||i+1===n.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&r&&a},i.chooseNextRequest_=function(){var e=this.buffered_(),t=na(e)||0,i=ra(e,this.currentTime_()),n=!this.hasPlayed_()&&i>=1,r=i>=this.goalBufferLength_(),a=this.playlist_.segments;if(!a.length||n||r)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());var s={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(s.isSyncRequest)s.mediaIndex=function(e,t,i){t=t||[];for(var n=[],r=0,a=0;ai))return a}return 0===n.length?0:n[n.length-1]}(this.currentTimeline_,a,t);else if(null!==this.mediaIndex){var o=a[this.mediaIndex],l="number"===typeof this.partIndex?this.partIndex:-1;s.startOfSegment=o.end?o.end:t,o.parts&&o.parts[l+1]?(s.mediaIndex=this.mediaIndex,s.partIndex=l+1):s.mediaIndex=this.mediaIndex+1}else{var u=ka.getMediaInfoForTime({experimentalExactManifestTimings:this.experimentalExactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?t:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time}),d=u.segmentIndex,c=u.startTime,h=u.partIndex;s.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd "+t:"currentTime "+this.currentTime_(),s.mediaIndex=d,s.startOfSegment=c,s.partIndex=h}var p=a[s.mediaIndex],f=p&&"number"===typeof s.partIndex&&p.parts&&p.parts[s.partIndex];if(!p||"number"===typeof s.partIndex&&!f)return null;if("number"!==typeof s.partIndex&&p.parts&&(s.partIndex=0,f=p.parts[0]),!i&&f&&!f.independent)if(0===s.partIndex){var m=a[s.mediaIndex-1],g=m.parts&&m.parts.length&&m.parts[m.parts.length-1];g&&g.independent&&(s.mediaIndex-=1,s.partIndex=m.parts.length-1,s.independent="previous segment")}else p.parts[s.partIndex-1].independent&&(s.partIndex-=1,s.independent="previous part");var _=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return s.mediaIndex>=a.length-1&&_&&!this.seeking_()?null:this.generateSegmentInfo_(s)},i.generateSegmentInfo_=function(e){var t=e.independent,i=e.playlist,n=e.mediaIndex,r=e.startOfSegment,a=e.isSyncRequest,s=e.partIndex,o=e.forceTimestampOffset,l=e.getMediaInfoForTime,u=i.segments[n],d="number"===typeof s&&u.parts[s],c={requestId:"segment-loader-"+Math.random(),uri:d&&d.resolvedUri||u.resolvedUri,mediaIndex:n,partIndex:d?s:null,isSyncRequest:a,startOfSegment:r,playlist:i,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:u.timeline,duration:d&&d.duration||u.duration,segment:u,part:d,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:l,independent:t},h="undefined"!==typeof o?o:this.isPendingTimestampOffset_;c.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:u.timeline,currentTimeline:this.currentTimeline_,startOfSegment:r,buffered:this.buffered_(),overrideCheck:h});var p=na(this.sourceUpdater_.audioBuffered());return"number"===typeof p&&(c.audioAppendStart=p-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(c.gopsToAlignWith=function(e,t,i){if("undefined"===typeof t||null===t||!e.length)return[];var n,r=Math.ceil((t-i+3)*L.ONE_SECOND_IN_TS);for(n=0;nr);n++);return e.slice(n)}(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),c},i.timestampOffsetForSegment_=function(e){return function(e){var t=e.segmentTimeline,i=e.currentTimeline,n=e.startOfSegment,r=e.buffered;return e.overrideCheck||t!==i?t "+o+" for "+e),function(e,t,i){if(!e[i]){t.trigger({type:"usage",name:"vhs-608"}),t.trigger({type:"usage",name:"hls-608"});var n=i;/^cc708_/.test(i)&&(n="SERVICE"+i.split("_")[1]);var r=t.textTracks().getTrackById(n);if(r)e[i]=r;else{var a=i,s=i,o=!1,l=(t.options_.vhs&&t.options_.vhs.captionServices||{})[n];l&&(a=l.label,s=l.language,o=l.default),e[i]=t.addRemoteTextTrack({kind:"captions",id:n,default:o,label:a,language:s},!1).track}}}(u,i.vhs_.tech_,e),Ks(s,o,u[e]),function(e){var t=e.inbandTextTracks,i=e.captionArray,n=e.timestampOffset;if(i){var r=a().WebKitDataCue||a().VTTCue;i.forEach((function(e){var i=e.stream;t[i].addCue(new r(e.startTime+n,e.endTime+n,e.text))}))}}({captionArray:l,inbandTextTracks:u,timestampOffset:n})})),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}else this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t));else this.logger_("SegmentLoader received no captions from a caption event")},i.handleId3_=function(e,t,i){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(this.pendingSegment_.hasAppendedData_){var n=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();!function(e,t,i){e.metadataTrack_||(e.metadataTrack_=i.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,e.metadataTrack_.inBandMetadataTrackDispatchType=t)}(this.inbandTextTracks_,i,this.vhs_.tech_),Gs({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:n,videoDuration:this.duration_()})}else this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,i))},i.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach((function(e){return e()})),this.metadataQueue_.caption.forEach((function(e){return e()})),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},i.processCallQueue_=function(){var e=this.callQueue_;this.callQueue_=[],e.forEach((function(e){return e()}))},i.processLoadQueue_=function(){var e=this.loadQueue_;this.loadQueue_=[],e.forEach((function(e){return e()}))},i.hasEnoughInfoToLoad_=function(){if("audio"!==this.loaderType_)return!0;var e=this.pendingSegment_;return!!e&&(!this.getCurrentMediaInfo_()||!$s({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},i.getCurrentMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),e&&e.trackInfo||this.currentMediaInfo_},i.getMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),this.getCurrentMediaInfo_(e)||this.startingMediaInfo_},i.hasEnoughInfoToAppend_=function(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;var i=t.hasAudio,n=t.hasVideo,r=t.isMuxed;return!(n&&!e.videoTimingInfo)&&(!(i&&!this.audioDisabled_&&!r&&!e.audioTimingInfo)&&!$s({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},i.handleData_=function(e,t){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(!this.callQueue_.length&&this.hasEnoughInfoToAppend_()){var i=this.pendingSegment_;if(this.setTimeMapping_(i.timeline),this.updateMediaSecondsLoaded_(i.part||i.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),i.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),i.isFmp4=e.isFmp4,i.timingInfo=i.timingInfo||{},i.isFmp4)this.trigger("fmp4"),i.timingInfo.start=i[Ys(t.type)].start;else{var n,r=this.getCurrentMediaInfo_(),a="main"===this.loaderType_&&r&&r.hasVideo;a&&(n=i.videoTimingInfo.start),i.timingInfo.start=this.trueSegmentStart_({currentStart:i.timingInfo.start,playlist:i.playlist,mediaIndex:i.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:a,firstVideoFrameTimeForData:n,videoTimingInfo:i.videoTimingInfo,audioTimingInfo:i.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(i,t.type),this.updateSourceBufferTimestampOffset_(i),i.isSyncRequest){this.updateTimingInfoEnd_(i),this.syncController_.saveSegmentTimingInfo({segmentInfo:i,shouldSaveTimelineMapping:"main"===this.loaderType_});var s=this.chooseNextRequest_();if(s.mediaIndex!==i.mediaIndex||s.partIndex!==i.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}i.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(i,t)}}else this.callQueue_.push(this.handleData_.bind(this,e,t))},i.updateAppendInitSegmentStatus=function(e,t){"main"!==this.loaderType_||"number"!==typeof e.timestampOffset||e.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)},i.getInitSegmentAndUpdateState_=function(e){var t=e.type,i=e.initSegment,n=e.map,r=e.playlist;if(n){var a=Ka(n);if(this.activeInitSegmentId_===a)return null;i=this.initSegmentForMap(n,!0).bytes,this.activeInitSegmentId_=a}return i&&this.appendInitSegment_[t]?(this.playlistOfLastInitSegment_[t]=r,this.appendInitSegment_[t]=!1,this.activeInitSegmentId_=null,i):null},i.handleQuotaExceededError_=function(e,t){var i=this,n=e.segmentInfo,r=e.type,s=e.bytes,o=this.sourceUpdater_.audioBuffered(),l=this.sourceUpdater_.videoBuffered();o.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+ia(o).join(", ")),l.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+ia(l).join(", "));var u=o.length?o.start(0):0,d=o.length?o.end(o.length-1):0,c=l.length?l.start(0):0,h=l.length?l.end(l.length-1):0;if(d-u<=1&&h-c<=1)return this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: "+s.byteLength+", audio buffer: "+ia(o).join(", ")+", video buffer: "+ia(l).join(", ")+", "),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),void this.trigger("error");this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:n,type:r,bytes:s}));var p=this.currentTime_()-1;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+p),this.remove(0,p,(function(){i.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),i.waitingOnRemove_=!1,i.quotaExceededErrorRetryTimeout_=a().setTimeout((function(){i.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),i.quotaExceededErrorRetryTimeout_=null,i.processCallQueue_()}),1e3)}),!0)},i.handleAppendError_=function(e,t){var i=e.segmentInfo,n=e.type,r=e.bytes;t&&(22!==t.code?(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",t),this.error(n+" append of "+r.length+"b failed for segment #"+i.mediaIndex+" in playlist "+i.playlist.id),this.trigger("appenderror")):this.handleQuotaExceededError_({segmentInfo:i,type:n,bytes:r}))},i.appendToSourceBuffer_=function(e){var t=e.segmentInfo,i=e.type,n=e.initSegment,r=e.data,a=e.bytes;if(!a){var s=[r],o=r.byteLength;n&&(s.unshift(n),o+=n.byteLength),a=function(e){var t,i=0;return e.bytes&&(t=new Uint8Array(e.bytes),e.segments.forEach((function(e){t.set(e,i),i+=e.byteLength}))),t}({bytes:o,segments:s})}this.sourceUpdater_.appendBuffer({segmentInfo:t,type:i,bytes:a},this.handleAppendError_.bind(this,{segmentInfo:t,type:i,bytes:a}))},i.handleSegmentTimingInfo_=function(e,t,i){if(this.pendingSegment_&&t===this.pendingSegment_.requestId){var n=this.pendingSegment_.segment,r=e+"TimingInfo";n[r]||(n[r]={}),n[r].transmuxerPrependedSeconds=i.prependedContentDuration||0,n[r].transmuxedPresentationStart=i.start.presentation,n[r].transmuxedDecodeStart=i.start.decode,n[r].transmuxedPresentationEnd=i.end.presentation,n[r].transmuxedDecodeEnd=i.end.decode,n[r].baseMediaDecodeTime=i.baseMediaDecodeTime}},i.appendData_=function(e,t){var i=t.type,n=t.data;if(n&&n.byteLength&&("audio"!==i||!this.audioDisabled_)){var r=this.getInitSegmentAndUpdateState_({type:i,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:i,initSegment:r,data:n})}},i.loadSegment_=function(e){var t=this;this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"===typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.hasEnoughInfoToLoad_()?this.updateTransmuxerAndRequestSegment_(e):this.loadQueue_.push((function(){var i=(0,l.Z)({},e,{forceTimestampOffset:!0});(0,l.Z)(e,t.generateSegmentInfo_(i)),t.isPendingTimestampOffset_=!1,t.updateTransmuxerAndRequestSegment_(e)}))},i.updateTransmuxerAndRequestSegment_=function(e){var t=this;this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));var i=this.createSimplifiedSegmentObj_(e),n=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),r=null!==this.mediaIndex,a=e.timeline!==this.currentTimeline_&&e.timeline>0,s=n||r&&a;this.logger_("Requesting "+Xs(e)),i.map&&!i.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=Ds({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:i,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:s,endedTimelineFn:function(){t.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:function(i){var n=i.message,r=i.level,a=i.stream;t.logger_(Xs(e)+" logged from transmuxer stream "+a+" as a "+r+": "+n)}})},i.trimBackBuffer_=function(e){var t=function(e,t,i){var n=t-as.BACK_BUFFER_LENGTH;e.length&&(n=Math.max(n,e.start(0)));var r=t-i;return Math.min(r,n)}(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)},i.createSimplifiedSegmentObj_=function(e){var t=e.segment,i=e.part,n={resolvedUri:i?i.resolvedUri:t.resolvedUri,byterange:i?i.byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part},r=e.playlist.segments[e.mediaIndex-1];if(r&&r.timeline===t.timeline&&(r.videoTimingInfo?n.baseStartTime=r.videoTimingInfo.transmuxedDecodeEnd:r.audioTimingInfo&&(n.baseStartTime=r.audioTimingInfo.transmuxedDecodeEnd)),t.key){var a=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);n.key=this.segmentKey(t.key),n.key.iv=a}return t.map&&(n.map=this.initSegmentForMap(t.map)),n},i.saveTransferStats_=function(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)},i.saveBandwidthRelatedStats_=function(e,t){this.pendingSegment_.byteLength=t.bytesReceived,e=n);r++);return e.slice(0,r).concat(t)}(this.gopBuffer_,i.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(n)}},i.setTimeMapping_=function(e){var t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)},i.updateMediaSecondsLoaded_=function(e){"number"===typeof e.start&&"number"===typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration},i.shouldUpdateTransmuxerTimestampOffset_=function(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())},i.trueSegmentStart_=function(e){var t=e.currentStart,i=e.playlist,n=e.mediaIndex,r=e.firstVideoFrameTimeForData,a=e.currentVideoTimestampOffset,s=e.useVideoTimingInfo,o=e.videoTimingInfo,l=e.audioTimingInfo;if("undefined"!==typeof t)return t;if(!s)return l.start;var u=i.segments[n-1];return 0!==n&&u&&"undefined"!==typeof u.start&&u.end===r+a?o.start:r},i.waitForAppendsToComplete_=function(e){var t=this.getCurrentMediaInfo_(e);if(!t)return this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:1/0}),void this.trigger("error");var i=t.hasAudio,n=t.hasVideo,r=t.isMuxed,a="main"===this.loaderType_&&n,s=!this.audioDisabled_&&i&&!r;if(e.waitingOnAppends=0,!e.hasAppendedData_)return e.timingInfo||"number"!==typeof e.timestampOffset||(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),void this.checkAppendsDone_(e);a&&e.waitingOnAppends++,s&&e.waitingOnAppends++,a&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),s&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))},i.checkAppendsDone_=function(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())},i.checkForIllegalMediaSwitch=function(e){var t=function(e,t,i){return"main"===e&&t&&i?i.hasAudio||i.hasVideo?t.hasVideo&&!i.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!t.hasVideo&&i.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null}(this.loaderType_,this.getCurrentMediaInfo_(),e);return!!t&&(this.error({message:t,blacklistDuration:1/0}),this.trigger("error"),!0)},i.updateSourceBufferTimestampOffset_=function(e){if(null!==e.timestampOffset&&"number"===typeof e.timingInfo.start&&!e.changedTimestampOffset&&"main"===this.loaderType_){var t=!1;e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset")}},i.getSegmentStartTimeForTimestampOffsetCalculation_=function(e){var t=e.videoTimingInfo,i=e.audioTimingInfo,n=e.timingInfo;return this.useDtsForTimestampOffset_?t&&"number"===typeof t.transmuxedDecodeStart?t.transmuxedDecodeStart:i&&"number"===typeof i.transmuxedDecodeStart?i.transmuxedDecodeStart:n.start:n.start},i.updateTimingInfoEnd_=function(e){e.timingInfo=e.timingInfo||{};var t=this.getMediaInfo_(),i="main"===this.loaderType_&&t&&t.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;i&&(e.timingInfo.end="number"===typeof i.end?i.end:i.start+e.duration)},i.handleAppendsDone_=function(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var e=this.pendingSegment_;this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_});var t=eo(e,this.sourceType_);if(t&&("warn"===t.severity?Wr.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",!e.isSyncRequest||(this.trigger("syncinfoupdate"),e.hasAppendedData_)){this.logger_("Appended "+Xs(e)),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");var i=e.segment,n=e.part,r=i.end&&this.currentTime_()-i.end>3*e.playlist.targetDuration,a=n&&n.end&&this.currentTime_()-n.end>3*e.playlist.partTargetDuration;if(r||a)return this.logger_("bad "+(r?"segment":"part")+" "+Xs(e)),void this.resetEverything();null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}else this.logger_("Throwing away un-appended sync request "+Xs(e))},i.recordThroughput_=function(e){if(e.duration=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e},i.stopForError=function(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")},i.segmentRequestFinished_=function(e,t,i){var n=this;if(this.subtitlesTrack_){if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return e.code===bs&&this.handleTimeout_(),e.code===Ss?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);var r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,t.stats),this.state="APPENDING",this.trigger("appending");var s=r.segment;if(s.map&&(s.map.bytes=t.map.bytes),r.bytes=t.bytes,"function"!==typeof a().WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var o,l=function(){n.subtitlesTrack_.tech_.off("vttjsloaded",o),n.stopForError({message:"Error loading vtt.js"})};return o=function(){n.subtitlesTrack_.tech_.off("vttjserror",l),n.segmentRequestFinished_(e,t,i)},this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",o),void this.subtitlesTrack_.tech_.one("vttjserror",l)}s.requested=!0;try{this.parseVTTCues_(r)}catch(u){return void this.stopForError({message:u.message})}if(this.updateTimeMapping_(r,this.syncController_.timelines[r.timeline],this.playlist_),r.cues.length?r.timingInfo={start:r.cues[0].startTime,end:r.cues[r.cues.length-1].endTime}:r.timingInfo={start:r.startOfSegment,end:r.startOfSegment+r.duration},r.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");r.byteLength=r.bytes.byteLength,this.mediaSecondsLoaded+=s.duration,r.cues.forEach((function(e){n.subtitlesTrack_.addCue(n.featuresNativeTextTracks_?new(a().VTTCue)(e.startTime,e.endTime,e.text):e)})),function(e){var t=e.cues;if(t)for(var i=0;i1&&n.push(t[a]);n.length&&n.forEach((function(t){return e.removeCue(t)}))}}(this.subtitlesTrack_),this.handleAppendsDone_()}else this.state="READY"},i.handleData_=function(){},i.updateTimingInfoEnd_=function(){},i.parseVTTCues_=function(e){var t,i=!1;"function"===typeof a().TextDecoder?t=new(a().TextDecoder)("utf8"):(t=a().WebVTT.StringDecoder(),i=!0);var n=new(a().WebVTT.Parser)(a(),a().vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},n.oncue=e.cues.push.bind(e.cues),n.ontimestampmap=function(t){e.timestampmap=t},n.onparsingerror=function(e){Wr.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){var r=e.segment.map.bytes;i&&(r=Co(r)),n.parse(r)}var s=e.bytes;i&&(s=Co(s)),n.parse(s),n.flush()},i.updateTimeMapping_=function(e,t,i){var n=e.segment;if(t)if(e.cues.length){var r=e.timestampmap,a=r.MPEGTS/L.ONE_SECOND_IN_TS-r.LOCAL+t.mapping;if(e.cues.forEach((function(e){e.startTime+=a,e.endTime+=a})),!i.syncInfo){var s=e.cues[0].startTime,o=e.cues[e.cues.length-1].startTime;i.syncInfo={mediaSequence:i.mediaSequence+e.mediaIndex,time:Math.min(s,o-n.duration)}}}else n.empty=!0},t}(to),Io=function(e,t){for(var i=e.cues,n=0;n=r.adStartTime&&t<=r.adEndTime)return r}return null},xo=[{name:"VOD",run:function(e,t,i,n,r){if(i!==1/0){return{time:0,segmentIndex:0,partIndex:null}}return null}},{name:"ProgramDateTime",run:function(e,t,i,n,r){if(!Object.keys(e.timelineToDatetimeMappings).length)return null;var a=null,s=null,o=oa(t);r=r||0;for(var l=0;l=h)&&(s=h,a={time:c,segmentIndex:u.segmentIndex,partIndex:u.partIndex})}}return a}},{name:"Discontinuity",run:function(e,t,i,n,r){var a=null;if(r=r||0,t.discontinuityStarts&&t.discontinuityStarts.length)for(var s=null,o=0;o=c)&&(s=c,a={time:d.time,segmentIndex:l,partIndex:null})}}return a}},{name:"Playlist",run:function(e,t,i,n,r){return t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}:null}}],Po=function(e){function t(t){var i;return(i=e.call(this)||this).timelines=[],i.discontinuities=[],i.timelineToDatetimeMappings={},i.logger_=Qr("SyncController"),i}(0,h.Z)(t,e);var i=t.prototype;return i.getSyncPoint=function(e,t,i,n){var r=this.runStrategies_(e,t,i,n);return r.length?this.selectSyncPoint_(r,{key:"time",value:n}):null},i.getExpiredTime=function(e,t){if(!e||!e.segments)return null;var i=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!i.length)return null;var n=this.selectSyncPoint_(i,{key:"segmentIndex",value:0});return n.segmentIndex>0&&(n.time*=-1),Math.abs(n.time+pa({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:n.segmentIndex,endIndex:0}))},i.runStrategies_=function(e,t,i,n){for(var r=[],a=0;a86400)Wr.log.warn("Not saving expired segment info. Media sequence gap "+i+" is too large.");else for(var n=i-1;n>=0;n--){var r=e.segments[n];if(r&&"undefined"!==typeof r.start){t.syncInfo={mediaSequence:e.mediaSequence+n,time:r.start},this.logger_("playlist refresh sync: [time:"+t.syncInfo.time+", mediaSequence: "+t.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}},i.setDateTimeMappingForStart=function(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){var t=e.segments[0],i=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-i}},i.saveSegmentTimingInfo=function(e){var t=e.segmentInfo,i=e.shouldSaveTimelineMapping,n=this.calculateSegmentTimeMapping_(t,t.timingInfo,i),r=t.segment;n&&(this.saveDiscontinuitySyncInfo_(t),t.playlist.syncInfo||(t.playlist.syncInfo={mediaSequence:t.playlist.mediaSequence+t.mediaIndex,time:r.start}));var a=r.dateTimeObject;r.discontinuity&&i&&a&&(this.timelineToDatetimeMappings[r.timeline]=-a.getTime()/1e3)},i.timestampOffsetForTimeline=function(e){return"undefined"===typeof this.timelines[e]?null:this.timelines[e].time},i.mappingForTimeline=function(e){return"undefined"===typeof this.timelines[e]?null:this.timelines[e].mapping},i.calculateSegmentTimeMapping_=function(e,t,i){var n,r,a=e.segment,s=e.part,o=this.timelines[e.timeline];if("number"===typeof e.timestampOffset)o={time:e.startOfSegment,mapping:e.startOfSegment-t.start},i&&(this.timelines[e.timeline]=o,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+e.timeline+": [time: "+o.time+"] [mapping: "+o.mapping+"]")),n=e.startOfSegment,r=t.end+o.mapping;else{if(!o)return!1;n=t.start+o.mapping,r=t.end+o.mapping}return s&&(s.start=n,s.end=r),(!a.start||no){var l=void 0;l=s<0?i.start-pa({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:r}):i.end+pa({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:r}),this.discontinuities[a]={time:l,accuracy:o}}}},i.dispose=function(){this.trigger("dispose"),this.off()},t}(Wr.EventTarget),Ao=function(e){function t(){var t;return(t=e.call(this)||this).pendingTimelineChanges_={},t.lastTimelineChanges_={},t}(0,h.Z)(t,e);var i=t.prototype;return i.clearPendingTimelineChange=function(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")},i.pendingTimelineChange=function(e){var t=e.type,i=e.from,n=e.to;return"number"===typeof i&&"number"===typeof n&&(this.pendingTimelineChanges_[t]={type:t,from:i,to:n},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[t]},i.lastTimelineChange=function(e){var t=e.type,i=e.from,n=e.to;return"number"===typeof i&&"number"===typeof n&&(this.lastTimelineChanges_[t]={type:t,from:i,to:n},delete this.pendingTimelineChanges_[t],this.trigger("timelinechange")),this.lastTimelineChanges_[t]},i.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},t}(Wr.EventTarget),Lo=ls(us((function(){var e="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof i.g?i.g:"undefined"!==typeof self?self:{};function t(e,t,i){return e(i={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}((void 0===t||null===t)&&i.path)}},i.exports),i.exports}var n=t((function(e){function t(e,t){for(var i=0;i-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var i=t.length,n=0;n>7))^e]=e;for(t=i=0;!c[t];t^=n||1,i=f[i]||1)for(a=(a=i^i<<1^i<<2^i<<3^i<<4)>>8^255&a^99,c[t]=a,h[a]=t,o=16843009*p[r=p[n=p[t]]]^65537*r^257*n^16843008*t,s=257*p[a]^16843008*a,e=0;e<4;e++)u[e][t]=s=s<<24^s>>>8,d[e][a]=o=o<<24^o>>>8;for(e=0;e<5;e++)u[e]=u[e].slice(0),d[e]=d[e].slice(0);return l}()),this._tables=[[l[0][0].slice(),l[0][1].slice(),l[0][2].slice(),l[0][3].slice(),l[0][4].slice()],[l[1][0].slice(),l[1][1].slice(),l[1][2].slice(),l[1][3].slice(),l[1][4].slice()]];var r=this._tables[0][4],a=this._tables[1],s=e.length,o=1;if(4!==s&&6!==s&&8!==s)throw new Error("Invalid aes key size");var u=e.slice(0),d=[];for(this._key=[u,d],t=s;t<4*s+28;t++)n=u[t-1],(t%s===0||8===s&&t%s===4)&&(n=r[n>>>24]<<24^r[n>>16&255]<<16^r[n>>8&255]<<8^r[255&n],t%s===0&&(n=n<<8^n>>>24^o<<24,o=o<<1^283*(o>>7))),u[t]=u[t-s]^n;for(i=0;t;i++,t--)n=u[3&i?t:t-4],d[i]=t<=4||i<4?n:a[0][r[n>>>24]]^a[1][r[n>>16&255]]^a[2][r[n>>8&255]]^a[3][r[255&n]]}return e.prototype.decrypt=function(e,t,i,n,r,a){var s,o,l,u,d=this._key[1],c=e^d[0],h=n^d[1],p=i^d[2],f=t^d[3],m=d.length/4-2,g=4,_=this._tables[1],v=_[0],y=_[1],T=_[2],b=_[3],S=_[4];for(u=0;u>>24]^y[h>>16&255]^T[p>>8&255]^b[255&f]^d[g],o=v[h>>>24]^y[p>>16&255]^T[f>>8&255]^b[255&c]^d[g+1],l=v[p>>>24]^y[f>>16&255]^T[c>>8&255]^b[255&h]^d[g+2],f=v[f>>>24]^y[c>>16&255]^T[h>>8&255]^b[255&p]^d[g+3],g+=4,c=s,h=o,p=l;for(u=0;u<4;u++)r[(3&-u)+a]=S[c>>>24]<<24^S[h>>16&255]<<16^S[p>>8&255]<<8^S[255&f]^d[g++],s=c,c=h,h=p,p=f,f=s},e}(),d=function(e){function t(){var t;return(t=e.call(this,s)||this).jobs=[],t.delay=1,t.timeout_=null,t}a(t,e);var i=t.prototype;return i.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},i.push=function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},t}(s),c=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},h=function(){function e(t,i,n,r){var a=e.STEP,s=new Int32Array(t.buffer),o=new Uint8Array(t.byteLength),l=0;for(this.asyncStream_=new d,this.asyncStream_.push(this.decryptChunk_(s.subarray(l,l+a),i,n,o)),l=a;l>2),m=new u(Array.prototype.slice.call(t)),g=new Uint8Array(e.byteLength),_=new Int32Array(g.buffer);for(n=i[0],r=i[1],a=i[2],s=i[3],p=0;p=0&&(t="main-desc"),t},Mo=function(e,t){e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},Ro=function(e,t){t.activePlaylistLoader=e,e.load()},Uo={AUDIO:function(e,t){return function(){var i=t.segmentLoaders[e],n=t.mediaTypes[e],r=t.blacklistCurrentPlaylist;Mo(i,n);var a=n.activeTrack(),s=n.activeGroup(),o=(s.filter((function(e){return e.default}))[0]||s[0]).id,l=n.tracks[o];if(a!==l){for(var u in Wr.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),n.tracks)n.tracks[u].enabled=n.tracks[u]===l;n.onTrackChanged()}else r({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(e,t){return function(){var i=t.segmentLoaders[e],n=t.mediaTypes[e];Wr.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),Mo(i,n);var r=n.activeTrack();r&&(r.mode="disabled"),n.onTrackChanged()}}},Bo={AUDIO:function(e,t,i){if(t){var n=i.tech,r=i.requestOptions,a=i.segmentLoaders[e];t.on("loadedmetadata",(function(){var e=t.media();a.playlist(e,r),(!n.paused()||e.endList&&"none"!==n.preload())&&a.load()})),t.on("loadedplaylist",(function(){a.playlist(t.media(),r),n.paused()||a.load()})),t.on("error",Uo[e](e,i))}},SUBTITLES:function(e,t,i){var n=i.tech,r=i.requestOptions,a=i.segmentLoaders[e],s=i.mediaTypes[e];t.on("loadedmetadata",(function(){var e=t.media();a.playlist(e,r),a.track(s.activeTrack()),(!n.paused()||e.endList&&"none"!==n.preload())&&a.load()})),t.on("loadedplaylist",(function(){a.playlist(t.media(),r),n.paused()||a.load()})),t.on("error",Uo[e](e,i))}},No={AUDIO:function(e,t){var i=t.vhs,n=t.sourceType,r=t.segmentLoaders[e],a=t.requestOptions,s=t.master.mediaGroups,o=t.mediaTypes[e],l=o.groups,u=o.tracks,d=o.logger_,c=t.masterPlaylistLoader,h=Sa(c.master);for(var p in s[e]&&0!==Object.keys(s[e]).length||(s[e]={main:{default:{default:!0}}},h&&(s[e].main.default.playlists=c.master.playlists)),s[e])for(var f in l[p]||(l[p]=[]),s[e][p]){var m=s[e][p][f],g=void 0;if(h?(d("AUDIO group '"+p+"' label '"+f+"' is a master playlist"),m.isMasterPlaylist=!0,g=null):g="vhs-json"===n&&m.playlists?new Ba(m.playlists[0],i,a):m.resolvedUri?new Ba(m.resolvedUri,i,a):m.playlists&&"dash"===n?new rs(m.playlists[0],i,a,c):null,m=Wr.mergeOptions({id:f,playlistLoader:g},m),Bo[e](e,m.playlistLoader,t),l[p].push(m),"undefined"===typeof u[f]){var _=new Wr.AudioTrack({id:f,kind:Do(m),enabled:!1,language:m.language,default:m.default,label:f});u[f]=_}}r.on("error",Uo[e](e,t))},SUBTITLES:function(e,t){var i=t.tech,n=t.vhs,r=t.sourceType,a=t.segmentLoaders[e],s=t.requestOptions,o=t.master.mediaGroups,l=t.mediaTypes[e],u=l.groups,d=l.tracks,c=t.masterPlaylistLoader;for(var h in o[e])for(var p in u[h]||(u[h]=[]),o[e][h])if(!o[e][h][p].forced){var f=o[e][h][p],m=void 0;if("hls"===r)m=new Ba(f.resolvedUri,n,s);else if("dash"===r){if(!f.playlists.filter((function(e){return e.excludeUntil!==1/0})).length)return;m=new rs(f.playlists[0],n,s,c)}else"vhs-json"===r&&(m=new Ba(f.playlists?f.playlists[0]:f.resolvedUri,n,s));if(f=Wr.mergeOptions({id:p,playlistLoader:m},f),Bo[e](e,f.playlistLoader,t),u[h].push(f),"undefined"===typeof d[p]){var g=i.addRemoteTextTrack({id:p,kind:"subtitles",default:f.default&&f.autoselect,language:f.language,label:p},!1).track;d[p]=g}}a.on("error",Uo[e](e,t))},"CLOSED-CAPTIONS":function(e,t){var i=t.tech,n=t.master.mediaGroups,r=t.mediaTypes[e],a=r.groups,s=r.tracks;for(var o in n[e])for(var l in a[o]||(a[o]=[]),n[e][o]){var u=n[e][o][l];if(/^(?:CC|SERVICE)/.test(u.instreamId)){var d=i.options_.vhs&&i.options_.vhs.captionServices||{},c={label:l,language:u.language,instreamId:u.instreamId,default:u.default&&u.autoselect};if(d[c.instreamId]&&(c=Wr.mergeOptions(c,d[c.instreamId])),void 0===c.default&&delete c.default,a[o].push(Wr.mergeOptions({id:l},u)),"undefined"===typeof s[l]){var h=i.addRemoteTextTrack({id:c.instreamId,kind:"captions",default:c.default,language:c.language,label:c.label},!1).track;s[l]=h}}}}},Fo=function e(t,i){for(var n=0;n1&&Sa(t.master))for(var l=0;l "+a+" from "+t),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+t})),this.masterPlaylistLoader_.media(e,i)},i.startABRTimer_=function(){var e=this;this.stopABRTimer_(),this.abrTimer_=a().setInterval((function(){return e.checkABR_()}),250)},i.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(a().clearInterval(this.abrTimer_),this.abrTimer_=null)},i.getAudioTrackPlaylists_=function(){var e=this.master(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;var i,n=e.mediaGroups.AUDIO,r=Object.keys(n);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)i=this.mediaTypes_.AUDIO.activeTrack();else{var a=n.main||r.length&&n[r[0]];for(var s in a)if(a[s].default){i={label:s};break}}if(!i)return t;var o=[];for(var l in n)if(n[l][i.label]){var u=n[l][i.label];if(u.playlists&&u.playlists.length)o.push.apply(o,u.playlists);else if(u.uri)o.push(u);else if(e.playlists.length)for(var d=0;d1&&(this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})),this.useCueTags_&&(this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"}),this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"}))},i.shouldSwitchToMedia_=function(e){var t=this.masterPlaylistLoader_.media()||this.masterPlaylistLoader_.pendingMedia_,i=this.tech_.currentTime(),n=this.bufferLowWaterLine(),r=this.bufferHighWaterLine();return function(e){var t=e.currentPlaylist,i=e.buffered,n=e.currentTime,r=e.nextPlaylist,a=e.bufferLowWaterLine,s=e.bufferHighWaterLine,o=e.duration,l=e.experimentalBufferBasedABR,u=e.log;if(!r)return Wr.log.warn("We received no playlist to switch to. Please check your stream."),!1;var d="allowing switch "+(t&&t.id||"null")+" -> "+r.id;if(!t)return u(d+" as current playlist is not set"),!0;if(r.id===t.id)return!1;var c=Boolean(Jr(i,n).length);if(!t.endList)return c||"number"!==typeof t.partTargetDuration?(u(d+" as current playlist is live"),!0):(u("not "+d+" as current playlist is live llhls, but currentTime isn't in buffered."),!1);var h=ra(i,n),p=l?as.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:as.MAX_BUFFER_LOW_WATER_LINE;if(om)&&h>=a){var _=d+" as forwardBuffer >= bufferLowWaterLine ("+h+" >= "+a+")";return l&&(_+=" and next bandwidth > current bandwidth ("+f+" > "+m+")"),u(_),!0}return u("not "+d+" as no switching criteria met"),!1}({buffered:this.tech_.buffered(),currentTime:i,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:n,bufferHighWaterLine:r,duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_})},i.setupSegmentLoaderListeners_=function(){var e=this;this.experimentalBufferBasedABR||(this.mainSegmentLoader_.on("bandwidthupdate",(function(){var t=e.selectPlaylist();e.shouldSwitchToMedia_(t)&&e.switchMedia_(t,"bandwidthupdate"),e.tech_.trigger("bandwidthupdate")})),this.mainSegmentLoader_.on("progress",(function(){e.trigger("progress")}))),this.mainSegmentLoader_.on("error",(function(){e.blacklistCurrentPlaylist(e.mainSegmentLoader_.error())})),this.mainSegmentLoader_.on("appenderror",(function(){e.error=e.mainSegmentLoader_.error_,e.trigger("error")})),this.mainSegmentLoader_.on("syncinfoupdate",(function(){e.onSyncInfoUpdate_()})),this.mainSegmentLoader_.on("timestampoffset",(function(){e.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"}),e.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})})),this.audioSegmentLoader_.on("syncinfoupdate",(function(){e.onSyncInfoUpdate_()})),this.audioSegmentLoader_.on("appenderror",(function(){e.error=e.audioSegmentLoader_.error_,e.trigger("error")})),this.mainSegmentLoader_.on("ended",(function(){e.logger_("main segment loader ended"),e.onEndOfStream()})),this.mainSegmentLoader_.on("earlyabort",(function(t){e.experimentalBufferBasedABR||(e.delegateLoaders_("all",["abort"]),e.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},120))}));var t=function(){if(!e.sourceUpdater_.hasCreatedSourceBuffers())return e.tryToCreateSourceBuffers_();var t=e.getCodecsOrExclude_();t&&e.sourceUpdater_.addOrChangeSourceBuffers(t)};this.mainSegmentLoader_.on("trackinfo",t),this.audioSegmentLoader_.on("trackinfo",t),this.mainSegmentLoader_.on("fmp4",(function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("fmp4",(function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("ended",(function(){e.logger_("audioSegmentLoader ended"),e.onEndOfStream()}))},i.mediaSecondsLoaded_=function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)},i.load=function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()},i.smoothQualityChange_=function(e){void 0===e&&(e=this.selectPlaylist()),this.fastQualityChange_(e)},i.fastQualityChange_=function(e){var t=this;void 0===e&&(e=this.selectPlaylist()),e!==this.masterPlaylistLoader_.media()?(this.switchMedia_(e,"fast-quality"),this.mainSegmentLoader_.resetEverything((function(){Wr.browser.IE_VERSION||Wr.browser.IS_EDGE?t.tech_.setCurrentTime(t.tech_.currentTime()+.04):t.tech_.setCurrentTime(t.tech_.currentTime())}))):this.logger_("skipping fastQualityChange because new media is same as old")},i.play=function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();var e=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()this.maxPlaylistRetries?1/0:Date.now()+1e3*t,i.excludeUntil=n,e.reason&&(i.lastExcludeReason_=e.reason),this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"}),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"});var l=this.selectPlaylist();if(!l)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");var u=e.internal?this.logger_:Wr.log.warn,d=e.message?" "+e.message:"";u((e.internal?"Internal problem":"Problem")+" encountered with playlist "+i.id+"."+d+" Switching to playlist "+l.id+"."),l.attributes.AUDIO!==i.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),l.attributes.SUBTITLES!==i.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);var c=l.targetDuration/2*1e3||5e3,h="number"===typeof l.lastRequest&&Date.now()-l.lastRequest<=c;return this.switchMedia_(l,"exclude",s||h)},i.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},i.delegateLoaders_=function(e,t){var i=this,n=[],r="all"===e;(r||"main"===e)&&n.push(this.masterPlaylistLoader_);var a=[];(r||"audio"===e)&&a.push("AUDIO"),(r||"subtitle"===e)&&(a.push("CLOSED-CAPTIONS"),a.push("SUBTITLES")),a.forEach((function(e){var t=i.mediaTypes_[e]&&i.mediaTypes_[e].activePlaylistLoader;t&&n.push(t)})),["main","audio","subtitle"].forEach((function(t){var r=i[t+"SegmentLoader_"];!r||e!==t&&"all"!==e||n.push(r)})),n.forEach((function(e){return t.forEach((function(t){"function"===typeof e[t]&&e[t]()}))}))},i.setCurrentTime=function(e){var t=Jr(this.tech_.buffered(),e);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0},i.duration=function(){if(!this.masterPlaylistLoader_)return 0;var e=this.masterPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:no.Playlist.duration(e):1/0:0},i.seekable=function(){return this.seekable_},i.onSyncInfoUpdate_=function(){var e;if(this.masterPlaylistLoader_){var t=this.masterPlaylistLoader_.media();if(t){var i=this.syncController_.getExpiredTime(t,this.duration());if(null!==i){var n=this.masterPlaylistLoader_.master,r=no.Playlist.seekable(t,i,no.Playlist.liveEdgeDelay(n,t));if(0!==r.length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(t=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(i=this.syncController_.getExpiredTime(t,this.duration())))return;if(0===(e=no.Playlist.seekable(t,i,no.Playlist.liveEdgeDelay(n,t))).length)return}var a,s;this.seekable_&&this.seekable_.length&&(a=this.seekable_.end(0),s=this.seekable_.start(0)),e?e.start(0)>r.end(0)||r.start(0)>e.end(0)?this.seekable_=r:this.seekable_=Wr.createTimeRanges([[e.start(0)>r.start(0)?e.start(0):r.start(0),e.end(0)0&&(n=Math.max(n,i.end(i.length-1))),this.mediaSource.duration!==n&&this.sourceUpdater_.setDuration(n)}},i.dispose=function(){var e=this;this.trigger("dispose"),this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach((function(t){var i=e.mediaTypes_[t].groups;for(var n in i)i[n].forEach((function(e){e.playlistLoader&&e.playlistLoader.dispose()}))})),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()},i.master=function(){return this.masterPlaylistLoader_.master},i.media=function(){return this.masterPlaylistLoader_.media()||this.initialMedia_},i.areMediaTypesKnown_=function(){var e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),i=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!t||!i)},i.getCodecsOrExclude_=function(){var e=this,t={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}};t.video=t.main;var i=Ns(this.master(),this.media()),n={},r=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(t.main.hasVideo&&(n.video=i.video||t.main.videoCodec||k.xz),t.main.isMuxed&&(n.video+=","+(i.audio||t.main.audioCodec||k.lA)),(t.main.hasAudio&&!t.main.isMuxed||t.audio.hasAudio||r)&&(n.audio=i.audio||t.main.audioCodec||t.audio.audioCodec||k.lA,t.audio.isFmp4=t.main.hasAudio&&!t.main.isMuxed?t.main.isFmp4:t.audio.isFmp4),n.audio||n.video){var a,s={};if(["video","audio"].forEach((function(e){if(n.hasOwnProperty(e)&&(r=t[e].isFmp4,o=n[e],!(r?(0,k.p7)(o):(0,k.Hi)(o)))){var i=t[e].isFmp4?"browser":"muxer";s[i]=s[i]||[],s[i].push(n[e]),"audio"===e&&(a=i)}var r,o})),r&&a&&this.media().attributes.AUDIO){var o=this.media().attributes.AUDIO;this.master().playlists.forEach((function(t){(t.attributes&&t.attributes.AUDIO)===o&&t!==e.media()&&(t.excludeUntil=1/0)})),this.logger_("excluding audio group "+o+" as "+a+' does not support codec(s): "'+n.audio+'"')}if(!Object.keys(s).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var l=[];if(["video","audio"].forEach((function(t){var i=((0,k.kS)(e.sourceUpdater_.codecs[t]||"")[0]||{}).type,r=((0,k.kS)(n[t]||"")[0]||{}).type;i&&r&&i.toLowerCase()!==r.toLowerCase()&&l.push('"'+e.sourceUpdater_.codecs[t]+'" -> "'+n[t]+'"')})),l.length)return void this.blacklistCurrentPlaylist({playlist:this.media(),message:"Codec switching not supported: "+l.join(", ")+".",blacklistDuration:1/0,internal:!0})}return n}var u=Object.keys(s).reduce((function(e,t){return e&&(e+=", "),e+=t+' does not support codec(s): "'+s[t].join(",")+'"'}),"")+".";this.blacklistCurrentPlaylist({playlist:this.media(),internal:!0,message:u,blacklistDuration:1/0})}else this.blacklistCurrentPlaylist({playlist:this.media(),message:"Could not determine codecs for playlist.",blacklistDuration:1/0})},i.tryToCreateSourceBuffers_=function(){if("open"===this.mediaSource.readyState&&!this.sourceUpdater_.hasCreatedSourceBuffers()&&this.areMediaTypesKnown_()){var e=this.getCodecsOrExclude_();if(e){this.sourceUpdater_.createSourceBuffers(e);var t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}}},i.excludeUnsupportedVariants_=function(){var e=this,t=this.master().playlists,i=[];Object.keys(t).forEach((function(n){var r=t[n];if(-1===i.indexOf(r.id)){i.push(r.id);var a=Ns(e.master,r),s=[];!a.audio||(0,k.Hi)(a.audio)||(0,k.p7)(a.audio)||s.push("audio codec "+a.audio),!a.video||(0,k.Hi)(a.video)||(0,k.p7)(a.video)||s.push("video codec "+a.video),a.text&&"stpp.ttml.im1t"===a.text&&s.push("text codec "+a.text),s.length&&(r.excludeUntil=1/0,e.logger_("excluding "+r.id+" for unsupported: "+s.join(", ")))}}))},i.excludeIncompatibleVariants_=function(e){var t=this,i=[],n=this.master().playlists,r=Us((0,k.kS)(e)),a=Bs(r),s=r.video&&(0,k.kS)(r.video)[0]||null,o=r.audio&&(0,k.kS)(r.audio)[0]||null;Object.keys(n).forEach((function(e){var r=n[e];if(-1===i.indexOf(r.id)&&r.excludeUntil!==1/0){i.push(r.id);var l=[],u=Ns(t.masterPlaylistLoader_.master,r),d=Bs(u);if(u.audio||u.video){if(d!==a&&l.push('codec count "'+d+'" !== "'+a+'"'),!t.sourceUpdater_.canChangeType()){var c=u.video&&(0,k.kS)(u.video)[0]||null,h=u.audio&&(0,k.kS)(u.audio)[0]||null;c&&s&&c.type.toLowerCase()!==s.type.toLowerCase()&&l.push('video codec "'+c.type+'" !== "'+s.type+'"'),h&&o&&h.type.toLowerCase()!==o.type.toLowerCase()&&l.push('audio codec "'+h.type+'" !== "'+o.type+'"')}l.length&&(r.excludeUntil=1/0,t.logger_("blacklisting "+r.id+": "+l.join(" && ")))}}}))},i.updateAdCues_=function(e){var t=0,i=this.seekable();i.length&&(t=i.start(0)),function(e,t,i){if(void 0===i&&(i=0),e.segments)for(var n,r=i,s=0;s0&&this.logger_("resetting possible stalled download count for "+e+" loader"),this[e+"StalledDownloads_"]=0,this[e+"Buffered_"]=t.buffered_()},t.checkSegmentDownloads_=function(e){var t=this.masterPlaylistController_,i=t[e+"SegmentLoader_"],n=i.buffered_(),r=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e)return!0;if(e.length!==t.length)return!0;for(var i=0;i=t.end(t.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e)}},t.cancelTimer_=function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null},t.fixesBadSeeks_=function(){if(!this.tech_.seeking())return!1;var e,t=this.seekable(),i=this.tech_.currentTime();this.afterSeekableWindow_(t,i,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(e=t.end(t.length-1));if(this.beforeSeekableWindow_(t,i)){var n=t.start(0);e=n+(n===t.end(0)?0:Yr)}if("undefined"!==typeof e)return this.logger_("Trying to seek outside of seekable at time "+i+" with seekable range "+ta(t)+". Seeking to "+e+"."),this.tech_.setCurrentTime(e),!0;for(var r=this.masterPlaylistController_.sourceUpdater_,a=this.tech_.buffered(),s=r.audioBuffer?r.audioBuffered():null,o=r.videoBuffer?r.videoBuffered():null,l=this.media(),u=l.partTargetDuration?l.partTargetDuration:2*(l.targetDuration-Xr),d=[s,o],c=0;c "+i.end(0)+"]. Attempting to resume playback by seeking to the current time."),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"}),void this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})):void 0}},t.techWaiting_=function(){var e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(e,t)){var i=e.end(e.length-1);return this.logger_("Fell out of live window at time "+t+". Seeking to live point (seekable end) "+i),this.cancelTimer_(),this.tech_.setCurrentTime(i),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var n=this.tech_.vhs.masterPlaylistController_.sourceUpdater_,r=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:n.audioBuffered(),videoBuffered:n.videoBuffered(),currentTime:t}))return this.cancelTimer_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;var a=ea(r,t);if(a.length>0){var s=a.start(0)-t;return this.logger_("Stopped at "+t+", setting timer for "+s+", seeking to "+a.start(0)),this.cancelTimer_(),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*s,t),!0}return!1},t.afterSeekableWindow_=function(e,t,i,n){if(void 0===n&&(n=!1),!e.length)return!1;var r=e.end(e.length-1)+Yr;return!i.endList&&n&&(r=e.end(e.length-1)+3*i.targetDuration),t>r},t.beforeSeekableWindow_=function(e,t){return!!(e.length&&e.start(0)>0&&t2)return{start:r,end:a}}return null},e}(),Zo={errorInterval:30,getSource:function(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},Qo=function e(t,i){var n=0,r=0,a=Wr.mergeOptions(Zo,i);t.ready((function(){t.trigger({type:"usage",name:"vhs-error-reload-initialized"}),t.trigger({type:"usage",name:"hls-error-reload-initialized"})}));var s=function(){r&&t.currentTime(r)},o=function(e){null!==e&&void 0!==e&&(r=t.duration()!==1/0&&t.currentTime()||0,t.one("loadedmetadata",s),t.src(e),t.trigger({type:"usage",name:"vhs-error-reload"}),t.trigger({type:"usage",name:"hls-error-reload"}),t.play())},l=function(){return Date.now()-n<1e3*a.errorInterval?(t.trigger({type:"usage",name:"vhs-error-reload-canceled"}),void t.trigger({type:"usage",name:"hls-error-reload-canceled"})):a.getSource&&"function"===typeof a.getSource?(n=Date.now(),a.getSource.call(t,o)):void Wr.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")},u=function e(){t.off("loadedmetadata",s),t.off("error",l),t.off("dispose",e)};t.on("error",l),t.on("dispose",u),t.reloadSourceOnError=function(i){u(),e(t,i)}},Xo="2.14.2",Yo={PlaylistLoader:Ba,Playlist:ka,utils:Xa,STANDARD_PLAYLIST_SELECTOR:zs,INITIAL_PLAYLIST_SELECTOR:function(){var e=this,t=this.playlists.master.playlists.filter(ka.isEnabled);return qs(t,(function(e,t){return Vs(e,t)})),t.filter((function(t){return!!Ns(e.playlists.master,t).video}))[0]||null},lastBandwidthSelector:zs,movingAverageBandwidthSelector:function(e){var t=-1,i=-1;if(e<0||e>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var n=this.useDevicePixelRatio&&a().devicePixelRatio||1;return t<0&&(t=this.systemBandwidth,i=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==i&&(t=e*this.systemBandwidth+(1-e)*t,i=this.systemBandwidth),Ws(this.playlists.master,t,parseInt(Hs(this.tech_.el(),"width"),10)*n,parseInt(Hs(this.tech_.el(),"height"),10)*n,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}},comparePlaylistBandwidth:Vs,comparePlaylistResolution:function(e,t){var i,n;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(i=e.attributes.RESOLUTION.width),i=i||a().Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(n=t.attributes.RESOLUTION.width),i===(n=n||a().Number.MAX_VALUE)&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:i-n},xhr:Ha()};Object.keys(as).forEach((function(e){Object.defineProperty(Yo,e,{get:function(){return Wr.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),as[e]},set:function(t){Wr.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),"number"!==typeof t||t<0?Wr.log.warn("value of Vhs."+e+" must be greater than or equal to 0"):as[e]=t}})}));var $o="videojs-vhs",Jo=function(e,t){for(var i=t.media(),n=-1,r=0;r=i&&e>=i?Math.max(e,n):n}return e},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=e,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var e,t=1/(this.bandwidth||1);return e=this.throughput>0?1/this.throughput:0,Math.floor(1/(t+e))},set:function(){Wr.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return i.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return i.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return i.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return i.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return i.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return i.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return i.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return i.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},mediaAppends:{get:function(){return i.masterPlaylistController_.mediaAppends_()||0},enumerable:!0},mainAppendsToLoadedData:{get:function(){return i.masterPlaylistController_.mainAppendsToLoadedData_()||0},enumerable:!0},audioAppendsToLoadedData:{get:function(){return i.masterPlaylistController_.audioAppendsToLoadedData_()||0},enumerable:!0},appendsToLoadedData:{get:function(){return i.masterPlaylistController_.appendsToLoadedData_()||0},enumerable:!0},timeToLoadedData:{get:function(){return i.masterPlaylistController_.timeToLoadedData_()||0},enumerable:!0},buffered:{get:function(){return ia(i.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return i.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return i.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return i.tech_.name_},enumerable:!0},duration:{get:function(){return i.tech_.duration()},enumerable:!0},master:{get:function(){return i.playlists.master},enumerable:!0},playerDimensions:{get:function(){return i.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return ia(i.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return i.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",(function(){i.options_.useBandwidthFromLocalStorage&&function(e){if(!a().localStorage)return!1;var t=il();t=t?Wr.mergeOptions(t,e):e;try{a().localStorage.setItem($o,JSON.stringify(t))}catch(i){return!1}}({bandwidth:i.bandwidth,throughput:Math.round(i.throughput)})})),this.masterPlaylistController_.on("selectedinitialmedia",(function(){var e;(e=i).representations=function(){var t=e.masterPlaylistController_.master(),i=Sa(t)?e.masterPlaylistController_.getAudioTrackPlaylists_():t.playlists;return i?i.filter((function(e){return!ga(e)})).map((function(t,i){return new zo(e,t,t.id)})):[]}})),this.masterPlaylistController_.sourceUpdater_.on("createdsourcebuffers",(function(){i.setupEme_()})),this.on(this.masterPlaylistController_,"progress",(function(){this.tech_.trigger("progress")})),this.on(this.masterPlaylistController_,"firstplay",(function(){this.ignoreNextSeekingEvent_=!0})),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=a().URL.createObjectURL(this.masterPlaylistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}},i.createKeySessions_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),el({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:t&&t.media(),mainPlaylists:this.playlists.master.playlists}).then((function(){e.logger_("created EME key session"),e.masterPlaylistController_.sourceUpdater_.initializedEme()})).catch((function(t){e.logger_("error while creating EME key session",t),e.player_.error({message:"Failed to initialize media keys for EME",code:3})}))},i.handleWaitingForKey_=function(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()},i.setupEme_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader,i=tl({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:t&&t.media()});this.player_.tech_.on("keystatuschange",(function(t){"output-restricted"===t.status&&e.masterPlaylistController_.blacklistCurrentPlaylist({playlist:e.masterPlaylistController_.media(),message:"DRM keystatus changed to "+t.status+". Playlist will fail to play. Check for HDCP content.",blacklistDuration:1/0})})),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),11!==Wr.browser.IE_VERSION&&i?this.createKeySessions_():this.masterPlaylistController_.sourceUpdater_.initializedEme()},i.setupQualityLevels_=function(){var e=this,t=Wr.players[this.tech_.options_.playerId];t&&t.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=t.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",(function(){var t,i;t=e.qualityLevels_,(i=e).representations().forEach((function(e){t.addQualityLevel(e)})),Jo(t,i.playlists)})),this.playlists.on("mediachange",(function(){Jo(e.qualityLevels_,e.playlists)})))},t.version=function(){return{"@videojs/http-streaming":Xo,"mux.js":"6.0.1","mpd-parser":"0.21.1","m3u8-parser":"4.7.1","aes-decrypter":"3.1.3"}},i.version=function(){return this.constructor.version()},i.canChangeType=function(){return ko.canChangeType()},i.play=function(){this.masterPlaylistController_.play()},i.setCurrentTime=function(e){this.masterPlaylistController_.setCurrentTime(e)},i.duration=function(){return this.masterPlaylistController_.duration()},i.seekable=function(){return this.masterPlaylistController_.seekable()},i.dispose=function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.tech_&&delete this.tech_.hls,this.mediaSourceUrl_&&a().URL.revokeObjectURL&&(a().URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),e.prototype.dispose.call(this)},i.convertToProgramTime=function(e,t){return Ya({playlist:this.masterPlaylistController_.media(),time:e,callback:t})},i.seekToProgramTime=function(e,t,i,n){return void 0===i&&(i=!0),void 0===n&&(n=2),$a({programTime:e,playlist:this.masterPlaylistController_.media(),retryCount:n,pauseAfterSeek:i,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})},t}(Wr.getComponent("Component")),rl={name:"videojs-http-streaming",VERSION:Xo,canHandleSource:function(e,t){void 0===t&&(t={});var i=Wr.mergeOptions(Wr.options,t);return rl.canPlayType(e.type,i)},handleSource:function(e,t,i){void 0===i&&(i={});var n=Wr.mergeOptions(Wr.options,i);return t.vhs=new nl(e,t,n),Wr.hasOwnProperty("hls")||Object.defineProperty(t,"hls",{get:function(){return Wr.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),t.vhs},configurable:!0}),t.vhs.xhr=Ha(),t.vhs.src(e.src,e.type),t.vhs},canPlayType:function(e,t){void 0===t&&(t={});var i=Wr.mergeOptions(Wr.options,t),n=i.vhs,r=(n=void 0===n?{}:n).overrideNative,a=void 0===r?!Wr.browser.IS_ANY_SAFARI:r,s=i.hls,o=(s=void 0===s?{}:s).overrideNative,l=void 0!==o&&o,u=(0,C.t)(e);return u&&(!Yo.supportsTypeNatively(u)||l||a)?"maybe":""}};((0,k.p7)("avc1.4d400d,mp4a.40.2")&&Wr.getTech("Html5").registerSourceHandler(rl,0),Wr.VhsHandler=nl,Object.defineProperty(Wr,"HlsHandler",{get:function(){return Wr.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),nl},configurable:!0}),Wr.VhsSourceHandler=rl,Object.defineProperty(Wr,"HlsSourceHandler",{get:function(){return Wr.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),rl},configurable:!0}),Wr.Vhs=Yo,Object.defineProperty(Wr,"Hls",{get:function(){return Wr.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),Yo},configurable:!0}),Wr.use||(Wr.registerComponent("Hls",Yo),Wr.registerComponent("Vhs",Yo)),Wr.options.vhs=Wr.options.vhs||{},Wr.options.hls=Wr.options.hls||{},Wr.getPlugin&&Wr.getPlugin("reloadSourceOnError"))||(Wr.registerPlugin||Wr.plugin)("reloadSourceOnError",(function(e){Qo(this,e)}));t.Z=Wr}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/framework-79bce4a3a540b080.js b/static/web/_next/static/chunks/framework-79bce4a3a540b080.js deleted file mode 100644 index fd4fffb67..000000000 --- a/static/web/_next/static/chunks/framework-79bce4a3a540b080.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9774],{64448:function(e,t,n){var r=n(67294),l=n(96086),a=n(63840);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n