From a0e4c93358696d8597128e1e60beed0c9ab67c40 Mon Sep 17 00:00:00 2001 From: jaywcjlove Date: Fri, 29 Nov 2024 18:16:26 +0000 Subject: [PATCH] v2.3.2 fix(Circle): fix circle style issue. #161 #142 5148da3d74efe8688ed1cd00f528dd391eeada08 --- asset-manifest.json | 102 +++++++++--------- coverage/badges.svg | 8 +- .../color-alpha/src/Pointer.tsx.html | 2 +- .../lcov-report/color-alpha/src/index.html | 2 +- .../color-alpha/src/index.tsx.html | 2 +- .../lcov-report/color-block/src/index.html | 2 +- .../color-block/src/index.tsx.html | 2 +- .../color-chrome/src/Arrow.tsx.html | 2 +- .../color-chrome/src/EyeDropper.tsx.html | 2 +- .../lcov-report/color-chrome/src/index.html | 2 +- .../color-chrome/src/index.tsx.html | 2 +- .../color-circle/src/Point.tsx.html | 10 +- .../lcov-report/color-circle/src/index.html | 2 +- .../color-circle/src/index.tsx.html | 2 +- .../lcov-report/color-colorful/src/index.html | 2 +- .../color-colorful/src/index.tsx.html | 2 +- .../lcov-report/color-compact/src/index.html | 2 +- .../color-compact/src/index.tsx.html | 2 +- .../lcov-report/color-convert/src/index.html | 2 +- .../color-convert/src/index.ts.html | 2 +- .../color-editable-input-hsla/src/index.html | 2 +- .../src/index.tsx.html | 2 +- .../color-editable-input-rgba/src/index.html | 2 +- .../src/index.tsx.html | 2 +- .../color-editable-input/src/index.html | 2 +- .../color-editable-input/src/index.tsx.html | 2 +- .../color-github/src/Point.tsx.html | 2 +- .../lcov-report/color-github/src/index.html | 2 +- .../color-github/src/index.tsx.html | 2 +- coverage/lcov-report/color-hue/src/index.html | 2 +- .../lcov-report/color-hue/src/index.tsx.html | 2 +- .../lcov-report/color-material/src/index.html | 2 +- .../color-material/src/index.tsx.html | 2 +- .../lcov-report/color-name/src/index.html | 2 +- .../lcov-report/color-name/src/index.tsx.html | 2 +- .../color-saturation/src/Pointer.tsx.html | 2 +- .../color-saturation/src/index.html | 2 +- .../color-saturation/src/index.tsx.html | 2 +- .../color-shade-slider/src/index.html | 2 +- .../color-shade-slider/src/index.tsx.html | 2 +- .../lcov-report/color-sketch/src/index.html | 2 +- .../color-sketch/src/index.tsx.html | 2 +- .../lcov-report/color-slider/src/index.html | 2 +- .../color-slider/src/index.tsx.html | 2 +- .../lcov-report/color-swatch/src/index.html | 2 +- .../color-swatch/src/index.tsx.html | 2 +- .../color-wheel/src/Pointer.tsx.html | 2 +- .../lcov-report/color-wheel/src/index.html | 2 +- .../color-wheel/src/index.tsx.html | 2 +- .../lcov-report/color-wheel/src/utils.ts.html | 2 +- coverage/lcov-report/color/src/index.html | 2 +- coverage/lcov-report/color/src/index.tsx.html | 2 +- .../drag-event-interactive/src/index.html | 2 +- .../drag-event-interactive/src/index.tsx.html | 2 +- .../drag-event-interactive/src/utils.ts.html | 2 +- coverage/lcov-report/index.html | 2 +- coverage/lcov.info | 4 +- index.html | 2 +- ...a3507.chunk.css => 692.48e590e3.chunk.css} | 2 +- ...unk.css.map => 692.48e590e3.chunk.css.map} | 2 +- ...ba6f900.chunk.js => 131.e5348000.chunk.js} | 4 +- ...chunk.js.map => 131.e5348000.chunk.js.map} | 2 +- ...d3e8205.chunk.js => 241.6fc5765f.chunk.js} | 4 +- ...chunk.js.map => 241.6fc5765f.chunk.js.map} | 2 +- ...1130039.chunk.js => 288.9ab27c56.chunk.js} | 4 +- ...chunk.js.map => 288.9ab27c56.chunk.js.map} | 2 +- static/js/313.dbf48c9c.chunk.js | 2 + static/js/313.dbf48c9c.chunk.js.map | 1 + static/js/313.f82cd4c3.chunk.js | 2 - static/js/313.f82cd4c3.chunk.js.map | 1 - static/js/328.862b6975.chunk.js.map | 1 - ...62b6975.chunk.js => 328.ef1ad258.chunk.js} | 6 +- static/js/328.ef1ad258.chunk.js.map | 1 + ...0a60209.chunk.js => 331.bacb8bbb.chunk.js} | 4 +- ...chunk.js.map => 331.bacb8bbb.chunk.js.map} | 2 +- ...ac19222.chunk.js => 369.5c59c8c1.chunk.js} | 4 +- ...chunk.js.map => 369.5c59c8c1.chunk.js.map} | 2 +- ...85fbe56.chunk.js => 494.28dc922e.chunk.js} | 4 +- ...chunk.js.map => 494.28dc922e.chunk.js.map} | 2 +- ...b20bfc8.chunk.js => 522.6353df0b.chunk.js} | 4 +- ...chunk.js.map => 522.6353df0b.chunk.js.map} | 2 +- ...6116de6.chunk.js => 563.799faf0f.chunk.js} | 4 +- ...chunk.js.map => 563.799faf0f.chunk.js.map} | 2 +- ...bf1c3f5.chunk.js => 571.b934f5eb.chunk.js} | 4 +- ...chunk.js.map => 571.b934f5eb.chunk.js.map} | 2 +- ...256a8d0.chunk.js => 674.cf455a85.chunk.js} | 4 +- ...chunk.js.map => 674.cf455a85.chunk.js.map} | 2 +- static/js/692.584ca748.chunk.js | 3 + ....txt => 692.584ca748.chunk.js.LICENSE.txt} | 0 ...chunk.js.map => 692.584ca748.chunk.js.map} | 2 +- ...68ec7b2.chunk.js => 696.de31eaab.chunk.js} | 4 +- ...chunk.js.map => 696.de31eaab.chunk.js.map} | 2 +- ...1cd15522.chunk.js => 73.f14be78c.chunk.js} | 4 +- ....chunk.js.map => 73.f14be78c.chunk.js.map} | 2 +- ...937948a.chunk.js => 734.5c5fc93a.chunk.js} | 4 +- ...chunk.js.map => 734.5c5fc93a.chunk.js.map} | 2 +- ...5eef5f2.chunk.js => 875.2adb8422.chunk.js} | 4 +- ...chunk.js.map => 875.2adb8422.chunk.js.map} | 2 +- ...674dc66.chunk.js => 907.4d213e26.chunk.js} | 4 +- ...chunk.js.map => 907.4d213e26.chunk.js.map} | 2 +- ...e19d238.chunk.js => 914.e5a8b925.chunk.js} | 4 +- ...chunk.js.map => 914.e5a8b925.chunk.js.map} | 2 +- static/js/920.b7d9b0fa.chunk.js | 3 - ...5aac447.chunk.js => 984.3ec44d21.chunk.js} | 4 +- ...chunk.js.map => 984.3ec44d21.chunk.js.map} | 2 +- ...87071b2.chunk.js => 993.57153c12.chunk.js} | 4 +- ...chunk.js.map => 993.57153c12.chunk.js.map} | 2 +- ...81a2394.chunk.js => 995.5b72bd5d.chunk.js} | 4 +- ...chunk.js.map => 995.5b72bd5d.chunk.js.map} | 2 +- ...72d8c90.chunk.js => 999.f2dea92d.chunk.js} | 4 +- ...chunk.js.map => 999.f2dea92d.chunk.js.map} | 2 +- static/js/main.455e00d2.js | 62 ----------- static/js/main.455e00d2.js.map | 1 - static/js/main.6ee7bf5e.js | 62 +++++++++++ ...CENSE.txt => main.6ee7bf5e.js.LICENSE.txt} | 6 +- static/js/main.6ee7bf5e.js.map | 1 + 116 files changed, 255 insertions(+), 255 deletions(-) rename static/css/{920.f36a3507.chunk.css => 692.48e590e3.chunk.css} (99%) rename static/css/{920.f36a3507.chunk.css.map => 692.48e590e3.chunk.css.map} (99%) rename static/js/{131.7ba6f900.chunk.js => 131.e5348000.chunk.js} (97%) rename static/js/{131.7ba6f900.chunk.js.map => 131.e5348000.chunk.js.map} (98%) rename static/js/{241.9d3e8205.chunk.js => 241.6fc5765f.chunk.js} (98%) rename static/js/{241.9d3e8205.chunk.js.map => 241.6fc5765f.chunk.js.map} (99%) rename static/js/{288.b1130039.chunk.js => 288.9ab27c56.chunk.js} (97%) rename static/js/{288.b1130039.chunk.js.map => 288.9ab27c56.chunk.js.map} (98%) create mode 100644 static/js/313.dbf48c9c.chunk.js create mode 100644 static/js/313.dbf48c9c.chunk.js.map delete mode 100644 static/js/313.f82cd4c3.chunk.js delete mode 100644 static/js/313.f82cd4c3.chunk.js.map delete mode 100644 static/js/328.862b6975.chunk.js.map rename static/js/{328.862b6975.chunk.js => 328.ef1ad258.chunk.js} (78%) create mode 100644 static/js/328.ef1ad258.chunk.js.map rename static/js/{331.70a60209.chunk.js => 331.bacb8bbb.chunk.js} (97%) rename static/js/{331.70a60209.chunk.js.map => 331.bacb8bbb.chunk.js.map} (99%) rename static/js/{369.cac19222.chunk.js => 369.5c59c8c1.chunk.js} (96%) rename static/js/{369.cac19222.chunk.js.map => 369.5c59c8c1.chunk.js.map} (98%) rename static/js/{494.785fbe56.chunk.js => 494.28dc922e.chunk.js} (97%) rename static/js/{494.785fbe56.chunk.js.map => 494.28dc922e.chunk.js.map} (98%) rename static/js/{522.eb20bfc8.chunk.js => 522.6353df0b.chunk.js} (96%) rename static/js/{522.eb20bfc8.chunk.js.map => 522.6353df0b.chunk.js.map} (98%) rename static/js/{563.06116de6.chunk.js => 563.799faf0f.chunk.js} (98%) rename static/js/{563.06116de6.chunk.js.map => 563.799faf0f.chunk.js.map} (99%) rename static/js/{571.fbf1c3f5.chunk.js => 571.b934f5eb.chunk.js} (99%) rename static/js/{571.fbf1c3f5.chunk.js.map => 571.b934f5eb.chunk.js.map} (99%) rename static/js/{674.4256a8d0.chunk.js => 674.cf455a85.chunk.js} (97%) rename static/js/{674.4256a8d0.chunk.js.map => 674.cf455a85.chunk.js.map} (99%) create mode 100644 static/js/692.584ca748.chunk.js rename static/js/{920.b7d9b0fa.chunk.js.LICENSE.txt => 692.584ca748.chunk.js.LICENSE.txt} (100%) rename static/js/{920.b7d9b0fa.chunk.js.map => 692.584ca748.chunk.js.map} (54%) rename static/js/{696.868ec7b2.chunk.js => 696.de31eaab.chunk.js} (97%) rename static/js/{696.868ec7b2.chunk.js.map => 696.de31eaab.chunk.js.map} (98%) rename static/js/{73.1cd15522.chunk.js => 73.f14be78c.chunk.js} (96%) rename static/js/{73.1cd15522.chunk.js.map => 73.f14be78c.chunk.js.map} (98%) rename static/js/{734.4937948a.chunk.js => 734.5c5fc93a.chunk.js} (97%) rename static/js/{734.4937948a.chunk.js.map => 734.5c5fc93a.chunk.js.map} (98%) rename static/js/{875.b5eef5f2.chunk.js => 875.2adb8422.chunk.js} (97%) rename static/js/{875.b5eef5f2.chunk.js.map => 875.2adb8422.chunk.js.map} (98%) rename static/js/{907.b674dc66.chunk.js => 907.4d213e26.chunk.js} (97%) rename static/js/{907.b674dc66.chunk.js.map => 907.4d213e26.chunk.js.map} (98%) rename static/js/{914.ae19d238.chunk.js => 914.e5a8b925.chunk.js} (98%) rename static/js/{914.ae19d238.chunk.js.map => 914.e5a8b925.chunk.js.map} (99%) delete mode 100644 static/js/920.b7d9b0fa.chunk.js rename static/js/{984.35aac447.chunk.js => 984.3ec44d21.chunk.js} (97%) rename static/js/{984.35aac447.chunk.js.map => 984.3ec44d21.chunk.js.map} (98%) rename static/js/{993.e87071b2.chunk.js => 993.57153c12.chunk.js} (98%) rename static/js/{993.e87071b2.chunk.js.map => 993.57153c12.chunk.js.map} (99%) rename static/js/{995.c81a2394.chunk.js => 995.5b72bd5d.chunk.js} (98%) rename static/js/{995.c81a2394.chunk.js.map => 995.5b72bd5d.chunk.js.map} (99%) rename static/js/{999.372d8c90.chunk.js => 999.f2dea92d.chunk.js} (97%) rename static/js/{999.372d8c90.chunk.js.map => 999.f2dea92d.chunk.js.map} (98%) delete mode 100644 static/js/main.455e00d2.js delete mode 100644 static/js/main.455e00d2.js.map create mode 100644 static/js/main.6ee7bf5e.js rename static/js/{main.455e00d2.js.LICENSE.txt => main.6ee7bf5e.js.LICENSE.txt} (93%) create mode 100644 static/js/main.6ee7bf5e.js.map diff --git a/asset-manifest.json b/asset-manifest.json index 89819f8aa..3f19bfdb5 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,30 +1,30 @@ { "files": { "main.css": "/static/css/main.6ef0c5a4.css", - "main.js": "/static/js/main.455e00d2.js", + "main.js": "/static/js/main.6ee7bf5e.js", "static/css/313.b92d3464.chunk.css": "/static/css/313.b92d3464.chunk.css", - "static/js/313.f82cd4c3.chunk.js": "/static/js/313.f82cd4c3.chunk.js", - "static/js/914.ae19d238.chunk.js": "/static/js/914.ae19d238.chunk.js", - "static/js/288.b1130039.chunk.js": "/static/js/288.b1130039.chunk.js", - "static/js/995.c81a2394.chunk.js": "/static/js/995.c81a2394.chunk.js", - "static/js/328.862b6975.chunk.js": "/static/js/328.862b6975.chunk.js", - "static/js/563.06116de6.chunk.js": "/static/js/563.06116de6.chunk.js", - "static/js/993.e87071b2.chunk.js": "/static/js/993.e87071b2.chunk.js", - "static/js/241.9d3e8205.chunk.js": "/static/js/241.9d3e8205.chunk.js", - "static/js/331.70a60209.chunk.js": "/static/js/331.70a60209.chunk.js", + "static/js/313.dbf48c9c.chunk.js": "/static/js/313.dbf48c9c.chunk.js", + "static/js/914.e5a8b925.chunk.js": "/static/js/914.e5a8b925.chunk.js", + "static/js/288.9ab27c56.chunk.js": "/static/js/288.9ab27c56.chunk.js", + "static/js/995.5b72bd5d.chunk.js": "/static/js/995.5b72bd5d.chunk.js", + "static/js/328.ef1ad258.chunk.js": "/static/js/328.ef1ad258.chunk.js", + "static/js/563.799faf0f.chunk.js": "/static/js/563.799faf0f.chunk.js", + "static/js/993.57153c12.chunk.js": "/static/js/993.57153c12.chunk.js", + "static/js/241.6fc5765f.chunk.js": "/static/js/241.6fc5765f.chunk.js", + "static/js/331.bacb8bbb.chunk.js": "/static/js/331.bacb8bbb.chunk.js", "static/js/791.e00c70cb.chunk.js": "/static/js/791.e00c70cb.chunk.js", - "static/js/984.35aac447.chunk.js": "/static/js/984.35aac447.chunk.js", - "static/js/999.372d8c90.chunk.js": "/static/js/999.372d8c90.chunk.js", - "static/js/674.4256a8d0.chunk.js": "/static/js/674.4256a8d0.chunk.js", - "static/js/734.4937948a.chunk.js": "/static/js/734.4937948a.chunk.js", - "static/js/494.785fbe56.chunk.js": "/static/js/494.785fbe56.chunk.js", - "static/js/369.cac19222.chunk.js": "/static/js/369.cac19222.chunk.js", - "static/js/696.868ec7b2.chunk.js": "/static/js/696.868ec7b2.chunk.js", - "static/js/131.7ba6f900.chunk.js": "/static/js/131.7ba6f900.chunk.js", - "static/js/875.b5eef5f2.chunk.js": "/static/js/875.b5eef5f2.chunk.js", - "static/js/907.b674dc66.chunk.js": "/static/js/907.b674dc66.chunk.js", - "static/js/522.eb20bfc8.chunk.js": "/static/js/522.eb20bfc8.chunk.js", - "static/js/73.1cd15522.chunk.js": "/static/js/73.1cd15522.chunk.js", + "static/js/984.3ec44d21.chunk.js": "/static/js/984.3ec44d21.chunk.js", + "static/js/999.f2dea92d.chunk.js": "/static/js/999.f2dea92d.chunk.js", + "static/js/674.cf455a85.chunk.js": "/static/js/674.cf455a85.chunk.js", + "static/js/734.5c5fc93a.chunk.js": "/static/js/734.5c5fc93a.chunk.js", + "static/js/494.28dc922e.chunk.js": "/static/js/494.28dc922e.chunk.js", + "static/js/369.5c59c8c1.chunk.js": "/static/js/369.5c59c8c1.chunk.js", + "static/js/696.de31eaab.chunk.js": "/static/js/696.de31eaab.chunk.js", + "static/js/131.e5348000.chunk.js": "/static/js/131.e5348000.chunk.js", + "static/js/875.2adb8422.chunk.js": "/static/js/875.2adb8422.chunk.js", + "static/js/907.4d213e26.chunk.js": "/static/js/907.4d213e26.chunk.js", + "static/js/522.6353df0b.chunk.js": "/static/js/522.6353df0b.chunk.js", + "static/js/73.f14be78c.chunk.js": "/static/js/73.f14be78c.chunk.js", "static/js/950.35664049.chunk.js": "/static/js/950.35664049.chunk.js", "static/js/185.c21b3d1a.chunk.js": "/static/js/185.c21b3d1a.chunk.js", "static/js/199.84a53354.chunk.js": "/static/js/199.84a53354.chunk.js", @@ -49,36 +49,36 @@ "static/js/24.c97c8f80.chunk.js": "/static/js/24.c97c8f80.chunk.js", "refractor-vendor.js": "/static/js/refractor-vendor.c5f44634.chunk.js", "react-vendor.js": "/static/js/react-vendor.9874219f.js", - "static/css/920.f36a3507.chunk.css": "/static/css/920.f36a3507.chunk.css", - "static/js/920.b7d9b0fa.chunk.js": "/static/js/920.b7d9b0fa.chunk.js", - "static/js/571.fbf1c3f5.chunk.js": "/static/js/571.fbf1c3f5.chunk.js", + "static/css/692.48e590e3.chunk.css": "/static/css/692.48e590e3.chunk.css", + "static/js/692.584ca748.chunk.js": "/static/js/692.584ca748.chunk.js", + "static/js/571.b934f5eb.chunk.js": "/static/js/571.b934f5eb.chunk.js", "index.html": "/index.html", "static/media/home.svg": "/static/media/home.7d51f25c64fe597ec540c3e724748f4e.svg", "main.6ef0c5a4.css.map": "/static/css/main.6ef0c5a4.css.map", - "main.455e00d2.js.map": "/static/js/main.455e00d2.js.map", + "main.6ee7bf5e.js.map": "/static/js/main.6ee7bf5e.js.map", "313.b92d3464.chunk.css.map": "/static/css/313.b92d3464.chunk.css.map", - "313.f82cd4c3.chunk.js.map": "/static/js/313.f82cd4c3.chunk.js.map", - "914.ae19d238.chunk.js.map": "/static/js/914.ae19d238.chunk.js.map", - "288.b1130039.chunk.js.map": "/static/js/288.b1130039.chunk.js.map", - "995.c81a2394.chunk.js.map": "/static/js/995.c81a2394.chunk.js.map", - "328.862b6975.chunk.js.map": "/static/js/328.862b6975.chunk.js.map", - "563.06116de6.chunk.js.map": "/static/js/563.06116de6.chunk.js.map", - "993.e87071b2.chunk.js.map": "/static/js/993.e87071b2.chunk.js.map", - "241.9d3e8205.chunk.js.map": "/static/js/241.9d3e8205.chunk.js.map", - "331.70a60209.chunk.js.map": "/static/js/331.70a60209.chunk.js.map", + "313.dbf48c9c.chunk.js.map": "/static/js/313.dbf48c9c.chunk.js.map", + "914.e5a8b925.chunk.js.map": "/static/js/914.e5a8b925.chunk.js.map", + "288.9ab27c56.chunk.js.map": "/static/js/288.9ab27c56.chunk.js.map", + "995.5b72bd5d.chunk.js.map": "/static/js/995.5b72bd5d.chunk.js.map", + "328.ef1ad258.chunk.js.map": "/static/js/328.ef1ad258.chunk.js.map", + "563.799faf0f.chunk.js.map": "/static/js/563.799faf0f.chunk.js.map", + "993.57153c12.chunk.js.map": "/static/js/993.57153c12.chunk.js.map", + "241.6fc5765f.chunk.js.map": "/static/js/241.6fc5765f.chunk.js.map", + "331.bacb8bbb.chunk.js.map": "/static/js/331.bacb8bbb.chunk.js.map", "791.e00c70cb.chunk.js.map": "/static/js/791.e00c70cb.chunk.js.map", - "984.35aac447.chunk.js.map": "/static/js/984.35aac447.chunk.js.map", - "999.372d8c90.chunk.js.map": "/static/js/999.372d8c90.chunk.js.map", - "674.4256a8d0.chunk.js.map": "/static/js/674.4256a8d0.chunk.js.map", - "734.4937948a.chunk.js.map": "/static/js/734.4937948a.chunk.js.map", - "494.785fbe56.chunk.js.map": "/static/js/494.785fbe56.chunk.js.map", - "369.cac19222.chunk.js.map": "/static/js/369.cac19222.chunk.js.map", - "696.868ec7b2.chunk.js.map": "/static/js/696.868ec7b2.chunk.js.map", - "131.7ba6f900.chunk.js.map": "/static/js/131.7ba6f900.chunk.js.map", - "875.b5eef5f2.chunk.js.map": "/static/js/875.b5eef5f2.chunk.js.map", - "907.b674dc66.chunk.js.map": "/static/js/907.b674dc66.chunk.js.map", - "522.eb20bfc8.chunk.js.map": "/static/js/522.eb20bfc8.chunk.js.map", - "73.1cd15522.chunk.js.map": "/static/js/73.1cd15522.chunk.js.map", + "984.3ec44d21.chunk.js.map": "/static/js/984.3ec44d21.chunk.js.map", + "999.f2dea92d.chunk.js.map": "/static/js/999.f2dea92d.chunk.js.map", + "674.cf455a85.chunk.js.map": "/static/js/674.cf455a85.chunk.js.map", + "734.5c5fc93a.chunk.js.map": "/static/js/734.5c5fc93a.chunk.js.map", + "494.28dc922e.chunk.js.map": "/static/js/494.28dc922e.chunk.js.map", + "369.5c59c8c1.chunk.js.map": "/static/js/369.5c59c8c1.chunk.js.map", + "696.de31eaab.chunk.js.map": "/static/js/696.de31eaab.chunk.js.map", + "131.e5348000.chunk.js.map": "/static/js/131.e5348000.chunk.js.map", + "875.2adb8422.chunk.js.map": "/static/js/875.2adb8422.chunk.js.map", + "907.4d213e26.chunk.js.map": "/static/js/907.4d213e26.chunk.js.map", + "522.6353df0b.chunk.js.map": "/static/js/522.6353df0b.chunk.js.map", + "73.f14be78c.chunk.js.map": "/static/js/73.f14be78c.chunk.js.map", "950.35664049.chunk.js.map": "/static/js/950.35664049.chunk.js.map", "185.c21b3d1a.chunk.js.map": "/static/js/185.c21b3d1a.chunk.js.map", "199.84a53354.chunk.js.map": "/static/js/199.84a53354.chunk.js.map", @@ -103,13 +103,13 @@ "24.c97c8f80.chunk.js.map": "/static/js/24.c97c8f80.chunk.js.map", "refractor-vendor.c5f44634.chunk.js.map": "/static/js/refractor-vendor.c5f44634.chunk.js.map", "react-vendor.9874219f.js.map": "/static/js/react-vendor.9874219f.js.map", - "920.f36a3507.chunk.css.map": "/static/css/920.f36a3507.chunk.css.map", - "920.b7d9b0fa.chunk.js.map": "/static/js/920.b7d9b0fa.chunk.js.map", - "571.fbf1c3f5.chunk.js.map": "/static/js/571.fbf1c3f5.chunk.js.map" + "692.48e590e3.chunk.css.map": "/static/css/692.48e590e3.chunk.css.map", + "692.584ca748.chunk.js.map": "/static/js/692.584ca748.chunk.js.map", + "571.b934f5eb.chunk.js.map": "/static/js/571.b934f5eb.chunk.js.map" }, "entrypoints": [ "static/js/react-vendor.9874219f.js", "static/css/main.6ef0c5a4.css", - "static/js/main.455e00d2.js" + "static/js/main.6ee7bf5e.js" ] } \ No newline at end of file diff --git a/coverage/badges.svg b/coverage/badges.svg index 798d14b3c..187efe06e 100644 --- a/coverage/badges.svg +++ b/coverage/badges.svg @@ -1,14 +1,14 @@ coverage: 98.58% - + - - + + - +

All files / color-alpha/
\ No newline at end of file +Color picker component for React.
\ No newline at end of file diff --git a/static/css/920.f36a3507.chunk.css b/static/css/692.48e590e3.chunk.css similarity index 99% rename from static/css/920.f36a3507.chunk.css rename to static/css/692.48e590e3.chunk.css index 0e2916f50..02a464232 100644 --- a/static/css/920.f36a3507.chunk.css +++ b/static/css/692.48e590e3.chunk.css @@ -1,2 +1,2 @@ .code-preview-layout[data-color-mode*=light],[data-color-mode*=light],body[data-color-mode*=light]{--color-canvas-subtle:#f6f8fa;--color-border-muted:#d8dee4}.code-preview-layout[data-color-mode*=dark],[data-color-mode*=dark],body[data-color-mode*=dark]{--color-canvas-subtle:#161b22;--color-border-muted:#21262d}.w-rcpl.w-bordered{border:1px solid var(--color-border-muted)}.w-rcpl.w-bordered>.w-rcpl-toolbar{border-top:1px solid var(--color-border-muted)}.w-rcpl.w-bordered>.w-rcpl-code:not(.w-hidden){border-radius:0 0 6px 6px;border-top:1px dashed var(--color-border-muted)}.w-rcpl{background-color:var(--color-canvas-subtle);border-radius:5px}.w-rcpl-preview:not(:last-child){border-radius:5px 5px 0 0}.w-rcpl-code.w-hidden{height:0;overflow:hidden;padding:0}.w-rcpl-code{border-top-left-radius:0;border-top-right-radius:0;height:auto;margin-bottom:0!important;overflow:auto;transition:height cubic-bezier(.36,0,.66,-.56)}.w-rcpl-code>*{margin:0!important;padding:0!important}.w-disable-checkered>.w-rcpl-preview{background-image:none}.w-rcpl-preview{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cpattern id='a' width='16' height='16' patternUnits='userSpaceOnUse'%3E%3Cpath fill='rgba(0, 0, 0, 0.06)' d='M0 0h8v8H0zm8 8h8v8H8z'/%3E%3C/pattern%3E%3Crect fill='url(%23a)' width='100%25' height='100%25'/%3E%3C/svg%3E")}.w-rcpl-code,.w-rcpl-preview{padding:15px}.w-rcpl-extra,.w-rcpl-title{align-items:center;display:flex}.w-rcpl-toolbar button svg{display:block;height:18px;opacity:.37;transition:opacity .3s}.w-rcpl-toolbar button svg:hover{opacity:1}.w-rcpl-toolbar button{background-color:transparent;border:0;box-sizing:border-box;color:currentColor;cursor:pointer;display:inline-block;height:inherit;outline:none;padding:3px 4px;position:relative;transition:opacity .2s,background .2s}.w-rcpl-toolbar{display:flex;justify-content:space-between;padding:5px 5px 5px 8px}@media (prefers-color-scheme:dark){.wmde-markdown,.wmde-markdown-var{--color-prettylights-syntax-comment:#8b949e;--color-prettylights-syntax-constant:#79c0ff;--color-prettylights-syntax-entity:#d2a8ff;--color-prettylights-syntax-storage-modifier-import:#c9d1d9;--color-prettylights-syntax-entity-tag:#7ee787;--color-prettylights-syntax-keyword:#ff7b72;--color-prettylights-syntax-string:#a5d6ff;--color-prettylights-syntax-variable:#ffa657;--color-prettylights-syntax-brackethighlighter-unmatched:#f85149;--color-prettylights-syntax-invalid-illegal-text:#f0f6fc;--color-prettylights-syntax-invalid-illegal-bg:#8e1519;--color-prettylights-syntax-carriage-return-text:#f0f6fc;--color-prettylights-syntax-carriage-return-bg:#b62324;--color-prettylights-syntax-string-regexp:#7ee787;--color-prettylights-syntax-markup-list:#f2cc60;--color-prettylights-syntax-markup-heading:#1f6feb;--color-prettylights-syntax-markup-italic:#c9d1d9;--color-prettylights-syntax-markup-bold:#c9d1d9;--color-prettylights-syntax-markup-deleted-text:#ffdcd7;--color-prettylights-syntax-markup-deleted-bg:#67060c;--color-prettylights-syntax-markup-inserted-text:#aff5b4;--color-prettylights-syntax-markup-inserted-bg:#033a16;--color-prettylights-syntax-markup-changed-text:#ffdfb6;--color-prettylights-syntax-markup-changed-bg:#5a1e02;--color-prettylights-syntax-markup-ignored-text:#c9d1d9;--color-prettylights-syntax-markup-ignored-bg:#1158c7;--color-prettylights-syntax-meta-diff-range:#d2a8ff;--color-prettylights-syntax-brackethighlighter-angle:#8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark:#484f58;--color-prettylights-syntax-constant-other-reference-link:#a5d6ff;--color-fg-default:#c9d1d9;--color-fg-muted:#8b949e;--color-fg-subtle:#484f58;--color-canvas-default:#0d1117;--color-canvas-subtle:#161b22;--color-border-default:#30363d;--color-border-muted:#21262d;--color-neutral-muted:hsla(215,8%,47%,.4);--color-accent-fg:#58a6ff;--color-accent-emphasis:#1f6feb;--color-attention-subtle:rgba(187,128,9,.15);--color-danger-fg:#f85149;--color-danger-emphasis:#da3633;--color-attention-fg:#d29922;--color-attention-emphasis:#9e6a03;--color-done-fg:#a371f7;--color-done-emphasis:#8957e5;--color-success-fg:#3fb950;--color-success-emphasis:#238636;--color-copied-active-bg:#2e9b33;color-scheme:dark}}@media (prefers-color-scheme:light){.wmde-markdown,.wmde-markdown-var{--color-prettylights-syntax-comment:#6e7781;--color-prettylights-syntax-constant:#0550ae;--color-prettylights-syntax-entity:#8250df;--color-prettylights-syntax-storage-modifier-import:#24292f;--color-prettylights-syntax-entity-tag:#116329;--color-prettylights-syntax-keyword:#cf222e;--color-prettylights-syntax-string:#0a3069;--color-prettylights-syntax-variable:#953800;--color-prettylights-syntax-brackethighlighter-unmatched:#82071e;--color-prettylights-syntax-invalid-illegal-text:#f6f8fa;--color-prettylights-syntax-invalid-illegal-bg:#82071e;--color-prettylights-syntax-carriage-return-text:#f6f8fa;--color-prettylights-syntax-carriage-return-bg:#cf222e;--color-prettylights-syntax-string-regexp:#116329;--color-prettylights-syntax-markup-list:#3b2300;--color-prettylights-syntax-markup-heading:#0550ae;--color-prettylights-syntax-markup-italic:#24292f;--color-prettylights-syntax-markup-bold:#24292f;--color-prettylights-syntax-markup-deleted-text:#82071e;--color-prettylights-syntax-markup-deleted-bg:#ffebe9;--color-prettylights-syntax-markup-inserted-text:#116329;--color-prettylights-syntax-markup-inserted-bg:#dafbe1;--color-prettylights-syntax-markup-changed-text:#953800;--color-prettylights-syntax-markup-changed-bg:#ffd8b5;--color-prettylights-syntax-markup-ignored-text:#eaeef2;--color-prettylights-syntax-markup-ignored-bg:#0550ae;--color-prettylights-syntax-meta-diff-range:#8250df;--color-prettylights-syntax-brackethighlighter-angle:#57606a;--color-prettylights-syntax-sublimelinter-gutter-mark:#8c959f;--color-prettylights-syntax-constant-other-reference-link:#0a3069;--color-fg-default:#24292f;--color-fg-muted:#57606a;--color-fg-subtle:#6e7781;--color-canvas-default:#fff;--color-canvas-subtle:#f6f8fa;--color-border-default:#d0d7de;--color-border-muted:#d8dee4;--color-neutral-muted:rgba(175,184,193,.2);--color-accent-fg:#0969da;--color-accent-emphasis:#0969da;--color-attention-subtle:#fff8c5;--color-danger-fg:#d1242f;--color-danger-emphasis:#cf222e;--color-attention-fg:#9a6700;--color-attention-emphasis:#9a6700;--color-done-fg:#8250df;--color-done-emphasis:#8250df;--color-success-fg:#1a7f37;--color-success-emphasis:#1f883d;--color-copied-active-bg:#2e9b33;color-scheme:light}}.wmde-markdown-var[data-color-mode*=dark],.wmde-markdown[data-color-mode*=dark],[data-color-mode*=dark] .wmde-markdown,[data-color-mode*=dark] .wmde-markdown-var,body[data-color-mode*=dark]{--color-prettylights-syntax-comment:#8b949e;--color-prettylights-syntax-constant:#79c0ff;--color-prettylights-syntax-entity:#d2a8ff;--color-prettylights-syntax-storage-modifier-import:#c9d1d9;--color-prettylights-syntax-entity-tag:#7ee787;--color-prettylights-syntax-keyword:#ff7b72;--color-prettylights-syntax-string:#a5d6ff;--color-prettylights-syntax-variable:#ffa657;--color-prettylights-syntax-brackethighlighter-unmatched:#f85149;--color-prettylights-syntax-invalid-illegal-text:#f0f6fc;--color-prettylights-syntax-invalid-illegal-bg:#8e1519;--color-prettylights-syntax-carriage-return-text:#f0f6fc;--color-prettylights-syntax-carriage-return-bg:#b62324;--color-prettylights-syntax-string-regexp:#7ee787;--color-prettylights-syntax-markup-list:#f2cc60;--color-prettylights-syntax-markup-heading:#1f6feb;--color-prettylights-syntax-markup-italic:#c9d1d9;--color-prettylights-syntax-markup-bold:#c9d1d9;--color-prettylights-syntax-markup-deleted-text:#ffdcd7;--color-prettylights-syntax-markup-deleted-bg:#67060c;--color-prettylights-syntax-markup-inserted-text:#aff5b4;--color-prettylights-syntax-markup-inserted-bg:#033a16;--color-prettylights-syntax-markup-changed-text:#ffdfb6;--color-prettylights-syntax-markup-changed-bg:#5a1e02;--color-prettylights-syntax-markup-ignored-text:#c9d1d9;--color-prettylights-syntax-markup-ignored-bg:#1158c7;--color-prettylights-syntax-meta-diff-range:#d2a8ff;--color-prettylights-syntax-brackethighlighter-angle:#8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark:#484f58;--color-prettylights-syntax-constant-other-reference-link:#a5d6ff;--color-fg-default:#c9d1d9;--color-fg-muted:#8b949e;--color-fg-subtle:#484f58;--color-canvas-default:#0d1117;--color-canvas-subtle:#161b22;--color-border-default:#30363d;--color-border-muted:#21262d;--color-neutral-muted:hsla(215,8%,47%,.4);--color-accent-fg:#58a6ff;--color-accent-emphasis:#1f6feb;--color-attention-subtle:rgba(187,128,9,.15);--color-danger-fg:#f85149;color-scheme:dark}.wmde-markdown-var[data-color-mode*=light],.wmde-markdown[data-color-mode*=light],[data-color-mode*=light] .wmde-markdown,[data-color-mode*=light] .wmde-markdown-var,body[data-color-mode*=light]{--color-prettylights-syntax-comment:#6e7781;--color-prettylights-syntax-constant:#0550ae;--color-prettylights-syntax-entity:#8250df;--color-prettylights-syntax-storage-modifier-import:#24292f;--color-prettylights-syntax-entity-tag:#116329;--color-prettylights-syntax-keyword:#cf222e;--color-prettylights-syntax-string:#0a3069;--color-prettylights-syntax-variable:#953800;--color-prettylights-syntax-brackethighlighter-unmatched:#82071e;--color-prettylights-syntax-invalid-illegal-text:#f6f8fa;--color-prettylights-syntax-invalid-illegal-bg:#82071e;--color-prettylights-syntax-carriage-return-text:#f6f8fa;--color-prettylights-syntax-carriage-return-bg:#cf222e;--color-prettylights-syntax-string-regexp:#116329;--color-prettylights-syntax-markup-list:#3b2300;--color-prettylights-syntax-markup-heading:#0550ae;--color-prettylights-syntax-markup-italic:#24292f;--color-prettylights-syntax-markup-bold:#24292f;--color-prettylights-syntax-markup-deleted-text:#82071e;--color-prettylights-syntax-markup-deleted-bg:#ffebe9;--color-prettylights-syntax-markup-inserted-text:#116329;--color-prettylights-syntax-markup-inserted-bg:#dafbe1;--color-prettylights-syntax-markup-changed-text:#953800;--color-prettylights-syntax-markup-changed-bg:#ffd8b5;--color-prettylights-syntax-markup-ignored-text:#eaeef2;--color-prettylights-syntax-markup-ignored-bg:#0550ae;--color-prettylights-syntax-meta-diff-range:#8250df;--color-prettylights-syntax-brackethighlighter-angle:#57606a;--color-prettylights-syntax-sublimelinter-gutter-mark:#8c959f;--color-prettylights-syntax-constant-other-reference-link:#0a3069;--color-fg-default:#24292f;--color-fg-muted:#57606a;--color-fg-subtle:#6e7781;--color-canvas-default:#fff;--color-canvas-subtle:#f6f8fa;--color-border-default:#d0d7de;--color-border-muted:#d8dee4;--color-neutral-muted:rgba(175,184,193,.2);--color-accent-fg:#0969da;--color-accent-emphasis:#0969da;--color-attention-subtle:#fff8c5;--color-danger-fg:#cf222e;color-scheme:light}.wmde-markdown{-webkit-text-size-adjust:100%;word-wrap:break-word;background-color:var(--color-canvas-default);color:var(--color-fg-default);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;font-size:16px;line-height:1.5}.wmde-markdown details,.wmde-markdown figcaption,.wmde-markdown figure{display:block}.wmde-markdown summary{display:list-item}.wmde-markdown [hidden]{display:none!important}.wmde-markdown a{background-color:transparent;color:var(--color-accent-fg);text-decoration:none}.wmde-markdown a:active,.wmde-markdown a:hover{outline-width:0}.wmde-markdown abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.wmde-markdown b,.wmde-markdown strong{font-weight:600}.wmde-markdown dfn{font-style:italic}.wmde-markdown h1{border-bottom:1px solid var(--color-border-muted);font-size:2em;font-weight:600;margin:.67em 0;padding-bottom:.3em}.wmde-markdown mark{background-color:var(--color-attention-subtle);color:var(--color-text-primary)}.wmde-markdown small{font-size:90%}.wmde-markdown sub,.wmde-markdown sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.wmde-markdown sub{bottom:-.25em}.wmde-markdown sup{top:-.5em}.wmde-markdown img{background-color:var(--color-canvas-default);border-style:none;box-sizing:content-box;display:inline-block;max-width:100%}.wmde-markdown code,.wmde-markdown kbd,.wmde-markdown pre,.wmde-markdown samp{font-family:monospace,monospace;font-size:1em}.wmde-markdown figure{margin:1em 40px}.wmde-markdown hr{background:transparent;background-color:var(--color-border-default);border:0;border-bottom:1px solid var(--color-border-muted);box-sizing:content-box;height:.25em;margin:24px 0;overflow:hidden;padding:0}.wmde-markdown input{font:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible}.wmde-markdown [type=button],.wmde-markdown [type=reset],.wmde-markdown [type=submit]{-webkit-appearance:button}.wmde-markdown [type=button]::-moz-focus-inner,.wmde-markdown [type=reset]::-moz-focus-inner,.wmde-markdown [type=submit]::-moz-focus-inner{border-style:none;padding:0}.wmde-markdown [type=button]:-moz-focusring,.wmde-markdown [type=reset]:-moz-focusring,.wmde-markdown [type=submit]:-moz-focusring{outline:1px dotted ButtonText}.wmde-markdown [type=checkbox],.wmde-markdown [type=radio]{box-sizing:border-box;padding:0}.wmde-markdown [type=number]::-webkit-inner-spin-button,.wmde-markdown [type=number]::-webkit-outer-spin-button{height:auto}.wmde-markdown [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.wmde-markdown [type=search]::-webkit-search-cancel-button,.wmde-markdown [type=search]::-webkit-search-decoration{-webkit-appearance:none}.wmde-markdown ::-webkit-input-placeholder{color:inherit;opacity:.54}.wmde-markdown ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.wmde-markdown a:hover{text-decoration:underline}.wmde-markdown hr:after,.wmde-markdown hr:before{content:"";display:table}.wmde-markdown hr:after{clear:both}.wmde-markdown table{border-collapse:collapse;border-spacing:0;display:block;max-width:100%;width:-moz-max-content;width:max-content}.wmde-markdown td,.wmde-markdown th{padding:0}.wmde-markdown details summary{cursor:pointer}.wmde-markdown details:not([open])>:not(summary){display:none!important}.wmde-markdown kbd{background-color:var(--color-canvas-subtle);border-bottom-color:var(--color-neutral-muted);border:1px solid var(--color-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--color-neutral-muted);color:var(--color-fg-default);display:inline-block;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;padding:3px 5px;vertical-align:middle}.wmde-markdown h1,.wmde-markdown h2,.wmde-markdown h3,.wmde-markdown h4,.wmde-markdown h5,.wmde-markdown h6{font-weight:600;line-height:1.25;margin-bottom:16px;margin-top:24px}.wmde-markdown h2{border-bottom:1px solid var(--color-border-muted);font-size:1.5em;font-weight:600;padding-bottom:.3em}.wmde-markdown h3{font-size:1.25em;font-weight:600}.wmde-markdown h4{font-size:1em;font-weight:600}.wmde-markdown h5{font-size:.875em;font-weight:600}.wmde-markdown h6{color:var(--color-fg-muted);font-size:.85em;font-weight:600}.wmde-markdown p{margin-bottom:10px;margin-top:0}.wmde-markdown blockquote{border-left:.25em solid var(--color-border-default);color:var(--color-fg-muted);margin:0;padding:0 1em}.wmde-markdown ol,.wmde-markdown ul{margin-bottom:0;margin-top:0;padding-left:2em}.wmde-markdown ol ol,.wmde-markdown ul ol{list-style-type:lower-roman}.wmde-markdown ol ol ol,.wmde-markdown ol ul ol,.wmde-markdown ul ol ol,.wmde-markdown ul ul ol{list-style-type:lower-alpha}.wmde-markdown dd{margin-left:0}.wmde-markdown code,.wmde-markdown pre,.wmde-markdown tt{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px}.wmde-markdown pre{word-wrap:normal;margin-bottom:0;margin-top:0}.wmde-markdown .octicon{fill:currentColor;display:inline-block;overflow:visible!important;vertical-align:text-bottom}.wmde-markdown ::-moz-placeholder{color:var(--color-fg-subtle);opacity:1}.wmde-markdown ::placeholder{color:var(--color-fg-subtle);opacity:1}.wmde-markdown input::-webkit-inner-spin-button,.wmde-markdown input::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}.wmde-markdown [data-catalyst]{display:block}.wmde-markdown:after,.wmde-markdown:before{content:"";display:table}.wmde-markdown:after{clear:both}.wmde-markdown>:first-child{margin-top:0!important}.wmde-markdown>:last-child{margin-bottom:0!important}.wmde-markdown a:not([href]){color:inherit;text-decoration:none}.wmde-markdown .absent{color:var(--color-danger-fg)}.wmde-markdown a.anchor{float:left;line-height:1;margin-left:-20px;padding-right:4px}.wmde-markdown .anchor:focus{outline:none}.wmde-markdown blockquote,.wmde-markdown details,.wmde-markdown dl,.wmde-markdown ol,.wmde-markdown p,.wmde-markdown pre,.wmde-markdown table,.wmde-markdown ul{margin-bottom:16px;margin-top:0}.wmde-markdown blockquote>:first-child{margin-top:0}.wmde-markdown blockquote>:last-child{margin-bottom:0}.wmde-markdown sup>a:before{content:"["}.wmde-markdown sup>a:after{content:"]"}.wmde-markdown h1 .octicon-link,.wmde-markdown h2 .octicon-link,.wmde-markdown h3 .octicon-link,.wmde-markdown h4 .octicon-link,.wmde-markdown h5 .octicon-link,.wmde-markdown h6 .octicon-link{color:var(--color-fg-default);vertical-align:middle;visibility:hidden}.wmde-markdown h1:hover .anchor,.wmde-markdown h2:hover .anchor,.wmde-markdown h3:hover .anchor,.wmde-markdown h4:hover .anchor,.wmde-markdown h5:hover .anchor,.wmde-markdown h6:hover .anchor{text-decoration:none}.wmde-markdown h1:hover .anchor .octicon-link,.wmde-markdown h2:hover .anchor .octicon-link,.wmde-markdown h3:hover .anchor .octicon-link,.wmde-markdown h4:hover .anchor .octicon-link,.wmde-markdown h5:hover .anchor .octicon-link,.wmde-markdown h6:hover .anchor .octicon-link{visibility:visible}.wmde-markdown h1 code,.wmde-markdown h1 tt,.wmde-markdown h2 code,.wmde-markdown h2 tt,.wmde-markdown h3 code,.wmde-markdown h3 tt,.wmde-markdown h4 code,.wmde-markdown h4 tt,.wmde-markdown h5 code,.wmde-markdown h5 tt,.wmde-markdown h6 code,.wmde-markdown h6 tt{font-size:inherit;padding:0 .2em}.wmde-markdown ol.no-list,.wmde-markdown ul.no-list{list-style-type:none;padding:0}.wmde-markdown ol[type="1"]{list-style-type:decimal}.wmde-markdown ol[type=a]{list-style-type:lower-alpha}.wmde-markdown ol[type=i]{list-style-type:lower-roman}.wmde-markdown div>ol:not([type]){list-style-type:decimal}.wmde-markdown ol ol,.wmde-markdown ol ul,.wmde-markdown ul ol,.wmde-markdown ul ul{margin-bottom:0;margin-top:0}.wmde-markdown li>p{margin-top:16px}.wmde-markdown li+li{margin-top:.25em}.wmde-markdown dl{padding:0}.wmde-markdown dl dt{font-size:1em;font-style:italic;font-weight:600;margin-top:16px;padding:0}.wmde-markdown dl dd{margin-bottom:16px;padding:0 16px}.wmde-markdown table th{font-weight:600}.wmde-markdown table td,.wmde-markdown table th{border:1px solid var(--color-border-default);padding:6px 13px}.wmde-markdown table tr{background-color:var(--color-canvas-default);border-top:1px solid var(--color-border-muted)}.wmde-markdown table tr:nth-child(2n){background-color:var(--color-canvas-subtle)}.wmde-markdown table img{background-color:transparent}.wmde-markdown img[align=right]{padding-left:20px}.wmde-markdown img[align=left]{padding-right:20px}.wmde-markdown .emoji{background-color:transparent;max-width:none;vertical-align:text-top}.wmde-markdown span.frame{display:block;overflow:hidden}.wmde-markdown span.frame>span{border:1px solid var(--color-border-default);display:block;float:left;margin:13px 0 0;overflow:hidden;padding:7px;width:auto}.wmde-markdown span.frame span img{display:block;float:left}.wmde-markdown span.frame span span{clear:both;color:var(--color-fg-default);display:block;padding:5px 0 0}.wmde-markdown span.align-center{clear:both;display:block;overflow:hidden}.wmde-markdown span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}.wmde-markdown span.align-center span img{margin:0 auto;text-align:center}.wmde-markdown span.align-right{clear:both;display:block;overflow:hidden}.wmde-markdown span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}.wmde-markdown span.align-right span img{margin:0;text-align:right}.wmde-markdown span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}.wmde-markdown span.float-left span{margin:13px 0 0}.wmde-markdown span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}.wmde-markdown span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}.wmde-markdown code,.wmde-markdown tt{background-color:var(--color-neutral-muted);border-radius:6px;font-size:85%;margin:0;padding:.2em .4em}.wmde-markdown code br,.wmde-markdown tt br{display:none}.wmde-markdown del code{text-decoration:inherit}.wmde-markdown pre code{font-size:100%}.wmde-markdown pre>code{background:transparent;border:0;margin:0;padding:0;white-space:pre;word-break:normal}.wmde-markdown pre{background-color:var(--color-canvas-subtle);border-radius:6px;font-size:85%;line-height:1.45}.wmde-markdown pre code,.wmde-markdown pre tt{word-wrap:normal;background-color:transparent;border:0;display:inline;line-height:inherit;margin:0;max-width:auto;overflow:visible;padding:0}.wmde-markdown pre>code{display:block;overflow:auto;padding:16px}.wmde-markdown pre>code::-webkit-scrollbar{background:transparent;height:8px;width:8px}.wmde-markdown pre>code::-webkit-scrollbar-thumb{background:var(--color-fg-muted);border-radius:10px}.wmde-markdown .csv-data td,.wmde-markdown .csv-data th{font-size:12px;line-height:1;overflow:hidden;padding:5px;text-align:left;white-space:nowrap}.wmde-markdown .csv-data .blob-num{background:var(--color-canvas-default);border:0;padding:10px 8px 9px;text-align:right}.wmde-markdown .csv-data tr{border-top:0}.wmde-markdown .csv-data th{background:var(--color-canvas-subtle);border-top:0;font-weight:600}.wmde-markdown .footnotes{border-top:1px solid var(--color-border-default);color:var(--color-fg-muted);font-size:12px}.wmde-markdown .footnotes ol{padding-left:16px}.wmde-markdown .footnotes li{position:relative}.wmde-markdown .footnotes li:target:before{border:2px solid var(--color-accent-emphasis);border-radius:6px;bottom:-8px;content:"";left:-24px;pointer-events:none;position:absolute;right:-8px;top:-8px}.wmde-markdown .footnotes li:target{color:var(--color-fg-default)}.wmde-markdown .footnotes .data-footnote-backref g-emoji{font-family:monospace}.wmde-markdown .task-list-item{list-style-type:none}.wmde-markdown .task-list-item label{font-weight:400}.wmde-markdown .task-list-item.enabled label{cursor:pointer}.wmde-markdown .task-list-item+.wmde-markdown .task-list-item{margin-top:3px}.wmde-markdown .task-list-item .handle{display:none}.wmde-markdown .contains-task-list input[type=checkbox],.wmde-markdown .task-list-item-checkbox{margin:0 .2em .25em -1.6em;vertical-align:middle}.wmde-markdown .contains-task-list:dir(rtl) .task-list-item-checkbox,.wmde-markdown .contains-task-list:dir(rtl) input[type=checkbox]{margin:0 -1.6em .25em .2em}.wmde-markdown ::-webkit-calendar-picker-indicator{filter:invert(50%)}.wmde-markdown pre{position:relative}.wmde-markdown pre .copied{background:var(--color-border-default);border-radius:5px;color:var(--color-fg-default);cursor:pointer;display:flex;font-size:12px;padding:6px;position:absolute;right:6px;top:6px;transition:all .3s;visibility:hidden}.wmde-markdown pre .copied .octicon-copy{display:block}.wmde-markdown pre .copied .octicon-check{display:none}.wmde-markdown pre:hover .copied{visibility:visible}.wmde-markdown pre:hover .copied:hover{background:var(--color-prettylights-syntax-entity-tag);color:var(--color-canvas-default)}.wmde-markdown pre .copied.active,.wmde-markdown pre:hover .copied:active{background:var(--color-copied-active-bg);color:var(--color-canvas-default)}.wmde-markdown pre .active .octicon-copy{display:none}.wmde-markdown pre .active .octicon-check{display:block}.wmde-markdown .markdown-alert{border-left:.25em solid var(--borderColor-default,var(--color-border-default));color:inherit;margin-bottom:16px;padding:.5rem 1em}.wmde-markdown .markdown-alert>:last-child{margin-bottom:0!important}.wmde-markdown .markdown-alert .markdown-alert-title{align-items:center;display:flex;font-size:14px;font-weight:500;line-height:1}.wmde-markdown .markdown-alert .markdown-alert-title svg.octicon{margin-right:8px!important;margin-right:var(--base-size-8,8px)!important}.wmde-markdown .markdown-alert.markdown-alert-note{border-left-color:var(--borderColor-accent-emphasis,var(--color-accent-emphasis))}.wmde-markdown .markdown-alert.markdown-alert-note .markdown-alert-title{color:var(--color-accent-fg);color:var(--fgColor-accent,var(--color-accent-fg))}.wmde-markdown .markdown-alert.markdown-alert-tip{border-left-color:var(--borderColor-success-emphasis,var(--color-success-emphasis))}.wmde-markdown .markdown-alert.markdown-alert-tip .markdown-alert-title{color:var(--color-success-fg);color:var(--fgColor-success,var(--color-success-fg))}.wmde-markdown .markdown-alert.markdown-alert-important{border-left-color:var(--borderColor-done-emphasis,var(--color-done-emphasis))}.wmde-markdown .markdown-alert.markdown-alert-important .markdown-alert-title{color:var(--color-done-fg);color:var(--fgColor-done,var(--color-done-fg))}.wmde-markdown .markdown-alert.markdown-alert-warning{border-left-color:var(--borderColor-attention-emphasis,var(--color-attention-emphasis))}.wmde-markdown .markdown-alert.markdown-alert-warning .markdown-alert-title{color:var(--color-attention-fg);color:var(--fgColor-attention,var(--color-attention-fg))}.wmde-markdown .markdown-alert.markdown-alert-caution{border-left-color:var(--borderColor-danger-emphasis,var(--color-danger-emphasis))}.wmde-markdown .markdown-alert.markdown-alert-caution .markdown-alert-title{color:var(--color-danger-fg);color:var(--fgColor-danger,var(--color-danger-fg))}.wmde-markdown .highlight-line{background-color:var(--color-neutral-muted)}.wmde-markdown .code-line.line-number:before{color:var(--color-fg-subtle);content:attr(line);display:inline-block;margin-right:16px;text-align:right;white-space:nowrap;width:1rem}.wmde-markdown .token.cdata,.wmde-markdown .token.comment,.wmde-markdown .token.doctype,.wmde-markdown .token.prolog{color:var(--color-prettylights-syntax-comment)}.wmde-markdown .token.namespace{opacity:.7}.wmde-markdown .token.constant,.wmde-markdown .token.deleted,.wmde-markdown .token.property,.wmde-markdown .token.selector,.wmde-markdown .token.symbol,.wmde-markdown .token.tag{color:var(--color-prettylights-syntax-entity-tag)}.wmde-markdown .token.maybe-class-name{color:var(--color-prettylights-syntax-variable)}.wmde-markdown .token.attr-name,.wmde-markdown .token.boolean,.wmde-markdown .token.builtin,.wmde-markdown .token.char,.wmde-markdown .token.number,.wmde-markdown .token.operator,.wmde-markdown .token.property-access,.wmde-markdown .token.selector .token.class,.wmde-markdown .token.string{color:var(--color-prettylights-syntax-constant)}.wmde-markdown .token.deleted{color:var(--color-prettylights-syntax-markup-deleted-text)}.wmde-markdown .code-line .token.deleted{background-color:var(--color-prettylights-syntax-markup-deleted-bg)}.wmde-markdown .token.inserted{color:var(--color-prettylights-syntax-markup-inserted-text)}.wmde-markdown .code-line .token.inserted{background-color:var(--color-prettylights-syntax-markup-inserted-bg)}.wmde-markdown .token.variable{color:var(--color-prettylights-syntax-constant)}.wmde-markdown .language-css .token.string,.wmde-markdown .style .token.string,.wmde-markdown .token.atrule,.wmde-markdown .token.attr-value,.wmde-markdown .token.class-name,.wmde-markdown .token.color,.wmde-markdown .token.entity,.wmde-markdown .token.function,.wmde-markdown .token.url{color:var(--color-prettylights-syntax-string)}.wmde-markdown .token.important,.wmde-markdown .token.keyword,.wmde-markdown .token.regex,.wmde-markdown .token.rule{color:var(--color-prettylights-syntax-keyword)}.wmde-markdown .token.coord{color:var(--color-prettylights-syntax-meta-diff-range)}.wmde-markdown .token.bold,.wmde-markdown .token.important{font-weight:700}.wmde-markdown .token.italic{font-style:italic}.wmde-markdown .token.entity{cursor:help} -/*# sourceMappingURL=920.f36a3507.chunk.css.map*/ \ No newline at end of file +/*# sourceMappingURL=692.48e590e3.chunk.css.map*/ \ No newline at end of file diff --git a/static/css/920.f36a3507.chunk.css.map b/static/css/692.48e590e3.chunk.css.map similarity index 99% rename from static/css/920.f36a3507.chunk.css.map rename to static/css/692.48e590e3.chunk.css.map index 49e178f63..b7377d429 100644 --- a/static/css/920.f36a3507.chunk.css.map +++ b/static/css/692.48e590e3.chunk.css.map @@ -1 +1 @@ -{"version":3,"file":"static/css/920.f36a3507.chunk.css","mappings":"AAAA,mGACE,6BAA8B,CAC9B,4BACF,CACA,gGACE,6BAA8B,CAC9B,4BACF,CAEA,mBACE,0CACF,CACA,mCACE,8CACF,CACA,+CAEE,yBAA0B,CAD1B,+CAEF,CAEA,QAEE,2CAA4C,CAD5C,iBAEF,CACA,iCACE,yBACF,CACA,sBACE,QAAS,CAET,eAAgB,CADhB,SAEF,CACA,aAIE,wBAA2B,CAC3B,yBAA4B,CAH5B,WAAY,CAIZ,yBAA2B,CAH3B,aAAc,CAFd,8CAMF,CACA,eAEE,kBAAoB,CADpB,mBAEF,CACA,qCACE,qBACF,CACA,gBACE,4TACF,CACA,6BACE,YACF,CACA,4BAEE,kBAAmB,CADnB,YAEF,CACA,2BAEE,aAAc,CACd,WAAY,CAFZ,WAAa,CAGb,sBACF,CACA,iCACE,SACF,CACA,uBAGE,4BAA6B,CAI7B,QAAS,CACT,qBAAsB,CAPtB,kBAAmB,CAQnB,cAAe,CALf,oBAAqB,CACrB,cAAe,CAKf,YAAa,CAJb,eAAgB,CAJhB,iBAAkB,CASlB,qCACF,CACA,gBACE,YAAa,CACb,6BAA8B,CAE9B,uBACF,CCpFA,mCACE,kCAGE,2CAA4C,CAC5C,4CAA6C,CAC7C,0CA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uBAAwB,CACxB,eAAgB,CAFhB,QAGF,CACA,+BACE,aACF,CAKA,2CAFE,UAAW,CADX,aAOF,CAJA,qBAEE,UAEF,CACA,4BACE,sBACF,CACA,2BACE,yBACF,CACA,6BACE,aAAc,CACd,oBACF,CACA,uBACE,4BACF,CACA,wBACE,UAAW,CAGX,aAAc,CADd,iBAAkB,CADlB,iBAGF,CACA,6BACE,YACF,CACA,gKASE,kBAAmB,CADnB,YAEF,CACA,uCACE,YACF,CACA,sCACE,eACF,CACA,4BACE,WACF,CACA,2BACE,WACF,CACA,gMAME,6BAA8B,CAC9B,qBAAsB,CACtB,iBACF,CACA,gMAME,oBACF,CACA,oRAME,kBACF,CACA,wQAaE,iBAAkB,CADlB,cAEF,CACA,oDAGE,oBAAqB,CADrB,SAEF,CACA,4BACE,uBACF,CACA,0BACE,2BACF,CACA,0BACE,2BACF,CACA,kCACE,uBACF,CACA,oFAKE,eAAgB,CADhB,YAEF,CACA,oBACE,eACF,CACA,qBACE,gBACF,CACA,kBACE,SACF,CACA,qBAGE,aAAc,CACd,iBAAkB,CAClB,eAAgB,CAHhB,eAAgB,CADhB,SAKF,CACA,qBAEE,kBAAmB,CADnB,cAEF,CACA,wBACE,eACF,CACA,gDAGE,4CAA6C,CAD7C,gBAEF,CACA,wBACE,4CAA6C,CAC7C,8CACF,CACA,sCACE,2CACF,CACA,yBACE,4BACF,CACA,gCACE,iBACF,CACA,+BACE,kBACF,CACA,sBAGE,4BAA6B,CAF7B,cAAe,CACf,uBAEF,CACA,0BACE,aAAc,CACd,eACF,CACA,+BAOE,4CAA6C,CAN7C,aAAc,CACd,UAAW,CAGX,eAAgB,CAChB,eAAgB,CAFhB,WAAY,CADZ,UAKF,CACA,mCACE,aAAc,CACd,UACF,CACA,oCAGE,UAAW,CACX,6BAA8B,CAH9B,aAAc,CACd,eAGF,CACA,iCAGE,UAAW,CAFX,aAAc,CACd,eAEF,CACA,sCACE,aAAc,CACd,kBAAmB,CACnB,eAAgB,CAChB,iB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X,QAQF,CACA,oCACE,6BACF,CACA,yDACE,qBACF,CACA,+BACE,oBACF,CACA,qCACE,eACF,CACA,6CACE,cACF,CACA,8DACE,cACF,CACA,uCACE,YACF,CACA,gGAEE,0BAA6B,CAC7B,qBACF,CACA,sIAEE,0BACF,CACA,mDACE,kBACF,CACA,mBACE,iBACF,CACA,2BASE,sCAAuC,CADvC,iBAAkB,CAHlB,6BAA8B,CAD9B,cAAe,CAFf,YAAa,CASb,cAAe,CADf,WAAY,CAPZ,iBAAkB,CAIlB,SAAU,CADV,OAAQ,CAMR,kBAAoB,CAXpB,iBAYF,CACA,yCACE,aACF,CACA,0CACE,YACF,CACA,iCACE,kBACF,CACA,uCACE,sDAAuD,CACvD,iCACF,CACA,0EAEE,wCAAyC,CACzC,iCACF,CACA,yCACE,YACF,CACA,0CACE,aACF,CACA,+BAIE,8EAAiF,CAFjF,aAAc,CACd,kBAAmB,CAFnB,iBAIF,CACA,2CACE,yBACF,CACA,qDAEE,kBAAmB,CADnB,YAAa,CAIb,cAAe,CADf,eAAgB,CADhB,aAGF,CACA,iEACE,0BAAgD,CAAhD,6CACF,CACA,mDACE,iFACF,CACA,yEACE,4BAAoD,CAApD,kDACF,CACA,kDACE,mFACF,CACA,wEACE,6BAAsD,CAAtD,oDACF,CACA,wDACE,6EACF,CACA,8EACE,0BAAgD,CAAhD,8CACF,CACA,sDACE,uFACF,CACA,4EACE,+BAA0D,CAA1D,wDACF,CACA,sDACE,iFACF,CACA,4EACE,4BAAoD,CAApD,kDACF,CACA,+BACE,2CACF,CACA,6CAKE,4BAA6B,CAC7B,kBAAmB,CALnB,oBAAqB,CAGrB,iBAAkB,CADlB,gBAAiB,CAIjB,kBAAmB,CALnB,UAMF,CACA,qHAIE,8CACF,CACA,gCACE,UACF,CACA,kLAME,iDACF,CACA,uCACE,+CACF,CACA,kSASE,+CACF,CACA,8BACE,0DACF,CACA,yCACE,mEACF,CACA,+BACE,2DACF,CACA,0CACE,oEACF,CACA,+BACE,+CACF,CAOA,gSAKE,6CACF,CACA,qHAIE,8CACF,CACA,4BACE,sDACF,CACA,2DAEE,eACF,CACA,6BACE,iBACF,CACA,6BACE,WACF","sources":["../../node_modules/react-code-preview-layout/esm/styles.css","../../node_modules/@uiw/react-markdown-preview/esm/styles/markdown.css"],"sourcesContent":[".code-preview-layout[data-color-mode*='light'], [data-color-mode*='light'], body[data-color-mode*='light'] {\n --color-canvas-subtle: #f6f8fa;\n --color-border-muted: hsl(210, 18%, 87%);\n}\n.code-preview-layout[data-color-mode*='dark'], [data-color-mode*='dark'], body[data-color-mode*='dark'] {\n --color-canvas-subtle: #161b22;\n --color-border-muted: #21262d;\n}\n\n.w-rcpl.w-bordered {\n border: 1px solid var(--color-border-muted);\n}\n.w-rcpl.w-bordered > .w-rcpl-toolbar {\n border-top: 1px solid var(--color-border-muted);\n}\n.w-rcpl.w-bordered > .w-rcpl-code:not(.w-hidden) {\n border-top: 1px dashed var(--color-border-muted);\n border-radius: 0 0 6px 6px;\n}\n\n.w-rcpl {\n border-radius: 5px;\n background-color: var(--color-canvas-subtle);\n}\n.w-rcpl-preview:not(:last-child) {\n border-radius: 5px 5px 0 0;\n}\n.w-rcpl-code.w-hidden {\n height: 0;\n padding: 0;\n overflow: hidden;\n}\n.w-rcpl-code {\n transition: height cubic-bezier(0.360, 0.000, 0.660, -0.560);;\n height: auto;\n overflow: auto;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n margin-bottom: 0 !important;\n}\n.w-rcpl-code > * {\n padding: 0 !important;\n margin: 0 !important;\n}\n.w-disable-checkered > .w-rcpl-preview {\n background-image: none;\n}\n.w-rcpl-preview {\n background: url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cpattern id='a' width='16' height='16' patternUnits='userSpaceOnUse'%3E%3Cpath fill='rgba(0, 0, 0, 0.06)' d='M0 0h8v8H0zm8 8h8v8H8z'/%3E%3C/pattern%3E%3Crect fill='url(%23a)' width='100%25' height='100%25'/%3E%3C/svg%3E\")\n}\n.w-rcpl-preview, .w-rcpl-code {\n padding: 15px;\n}\n.w-rcpl-extra, .w-rcpl-title {\n display: flex;\n align-items: center;\n}\n.w-rcpl-toolbar button svg {\n opacity: 0.37;\n display: block;\n height: 18px;\n transition: opacity 0.3s;\n}\n.w-rcpl-toolbar button svg:hover {\n opacity: 1;\n}\n.w-rcpl-toolbar button {\n color: currentColor;\n position: relative;\n background-color: transparent;\n display: inline-block;\n height: inherit;\n padding: 3px 4px;\n border: 0;\n box-sizing: border-box;\n cursor: pointer;\n outline: none;\n transition: opacity .2s, background .2s;\n}\n.w-rcpl-toolbar {\n display: flex;\n justify-content: space-between;\n padding: 5px 5px;\n padding-left: 8px;\n}","@media (prefers-color-scheme: dark) {\n .wmde-markdown,\n .wmde-markdown-var {\n color-scheme: dark;\n --color-prettylights-syntax-comment: #8b949e;\n --color-prettylights-syntax-constant: #79c0ff;\n --color-prettylights-syntax-entity: #d2a8ff;\n --color-prettylights-syntax-storage-modifier-import: #c9d1d9;\n --color-prettylights-syntax-entity-tag: #7ee787;\n --color-prettylights-syntax-keyword: #ff7b72;\n --color-prettylights-syntax-string: #a5d6ff;\n --color-prettylights-syntax-variable: #ffa657;\n --color-prettylights-syntax-brackethighlighter-unmatched: #f85149;\n --color-prettylights-syntax-invalid-illegal-text: #f0f6fc;\n --color-prettylights-syntax-invalid-illegal-bg: #8e1519;\n --color-prettylights-syntax-carriage-return-text: #f0f6fc;\n --color-prettylights-syntax-carriage-return-bg: #b62324;\n --color-prettylights-syntax-string-regexp: #7ee787;\n --color-prettylights-syntax-markup-list: #f2cc60;\n --color-prettylights-syntax-markup-heading: #1f6feb;\n --color-prettylights-syntax-markup-italic: #c9d1d9;\n --color-prettylights-syntax-markup-bold: #c9d1d9;\n --color-prettylights-syntax-markup-deleted-text: #ffdcd7;\n --color-prettylights-syntax-markup-deleted-bg: #67060c;\n --color-prettylights-syntax-markup-inserted-text: #aff5b4;\n --color-prettylights-syntax-markup-inserted-bg: #033a16;\n --color-prettylights-syntax-markup-changed-text: #ffdfb6;\n --color-prettylights-syntax-markup-changed-bg: #5a1e02;\n --color-prettylights-syntax-markup-ignored-text: #c9d1d9;\n --color-prettylights-syntax-markup-ignored-bg: #1158c7;\n --color-prettylights-syntax-meta-diff-range: #d2a8ff;\n --color-prettylights-syntax-brackethighlighter-angle: #8b949e;\n --color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;\n --color-prettylights-syntax-constant-other-reference-link: #a5d6ff;\n --color-fg-default: #c9d1d9;\n --color-fg-muted: #8b949e;\n --color-fg-subtle: #484f58;\n --color-canvas-default: #0d1117;\n --color-canvas-subtle: #161b22;\n --color-border-default: #30363d;\n --color-border-muted: #21262d;\n --color-neutral-muted: rgba(110, 118, 129, 0.4);\n --color-accent-fg: #58a6ff;\n --color-accent-emphasis: #1f6feb;\n --color-attention-subtle: rgba(187, 128, 9, 0.15);\n --color-danger-fg: #f85149;\n --color-danger-emphasis: #da3633;\n --color-attention-fg: #d29922;\n --color-attention-emphasis: #9e6a03;\n --color-done-fg: #a371f7;\n --color-done-emphasis: #8957e5;\n --color-success-fg: #3fb950;\n --color-success-emphasis: #238636;\n --color-copied-active-bg: #2e9b33;\n }\n}\n@media (prefers-color-scheme: light) {\n .wmde-markdown,\n .wmde-markdown-var {\n color-scheme: light;\n --color-prettylights-syntax-comment: #6e7781;\n --color-prettylights-syntax-constant: #0550ae;\n --color-prettylights-syntax-entity: #8250df;\n --color-prettylights-syntax-storage-modifier-import: #24292f;\n --color-prettylights-syntax-entity-tag: #116329;\n --color-prettylights-syntax-keyword: #cf222e;\n --color-prettylights-syntax-string: #0a3069;\n --color-prettylights-syntax-variable: #953800;\n --color-prettylights-syntax-brackethighlighter-unmatched: #82071e;\n --color-prettylights-syntax-invalid-illegal-text: #f6f8fa;\n --color-prettylights-syntax-invalid-illegal-bg: #82071e;\n --color-prettylights-syntax-carriage-return-text: #f6f8fa;\n --color-prettylights-syntax-carriage-return-bg: #cf222e;\n --color-prettylights-syntax-string-regexp: #116329;\n --color-prettylights-syntax-markup-list: #3b2300;\n --color-prettylights-syntax-markup-heading: #0550ae;\n --color-prettylights-syntax-markup-italic: #24292f;\n --color-prettylights-syntax-markup-bold: #24292f;\n --color-prettylights-syntax-markup-deleted-text: #82071e;\n --color-prettylights-syntax-markup-deleted-bg: #ffebe9;\n --color-prettylights-syntax-markup-inserted-text: #116329;\n --color-prettylights-syntax-markup-inserted-bg: #dafbe1;\n --color-prettylights-syntax-markup-changed-text: #953800;\n --color-prettylights-syntax-markup-changed-bg: #ffd8b5;\n --color-prettylights-syntax-markup-ignored-text: #eaeef2;\n --color-prettylights-syntax-markup-ignored-bg: #0550ae;\n --color-prettylights-syntax-meta-diff-range: #8250df;\n --color-prettylights-syntax-brackethighlighter-angle: #57606a;\n --color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;\n --color-prettylights-syntax-constant-other-reference-link: #0a3069;\n --color-fg-default: #24292f;\n --color-fg-muted: #57606a;\n --color-fg-subtle: #6e7781;\n --color-canvas-default: #ffffff;\n --color-canvas-subtle: #f6f8fa;\n --color-border-default: #d0d7de;\n --color-border-muted: hsl(210, 18%, 87%);\n --color-neutral-muted: rgba(175, 184, 193, 0.2);\n --color-accent-fg: #0969da;\n --color-accent-emphasis: #0969da;\n --color-attention-subtle: #fff8c5;\n --color-danger-fg: #d1242f;\n --color-danger-emphasis: #cf222e;\n --color-attention-fg: #9a6700;\n --color-attention-emphasis: #9a6700;\n --color-done-fg: #8250df;\n --color-done-emphasis: #8250df;\n --color-success-fg: #1a7f37;\n --color-success-emphasis: #1f883d;\n --color-copied-active-bg: #2e9b33;\n }\n}\n[data-color-mode*='dark'] .wmde-markdown,\n[data-color-mode*='dark'] .wmde-markdown-var,\n.wmde-markdown-var[data-color-mode*='dark'],\n.wmde-markdown[data-color-mode*='dark'],\nbody[data-color-mode*='dark'] {\n color-scheme: dark;\n --color-prettylights-syntax-comment: #8b949e;\n --color-prettylights-syntax-constant: #79c0ff;\n --color-prettylights-syntax-entity: #d2a8ff;\n --color-prettylights-syntax-storage-modifier-import: #c9d1d9;\n --color-prettylights-syntax-entity-tag: #7ee787;\n --color-prettylights-syntax-keyword: #ff7b72;\n --color-prettylights-syntax-string: #a5d6ff;\n --color-prettylights-syntax-variable: #ffa657;\n --color-prettylights-syntax-brackethighlighter-unmatched: #f85149;\n --color-prettylights-syntax-invalid-illegal-text: #f0f6fc;\n --color-prettylights-syntax-invalid-illegal-bg: #8e1519;\n --color-prettylights-syntax-carriage-return-text: #f0f6fc;\n --color-prettylights-syntax-carriage-return-bg: #b62324;\n --color-prettylights-syntax-string-regexp: #7ee787;\n --color-prettylights-syntax-markup-list: #f2cc60;\n --color-prettylights-syntax-markup-heading: #1f6feb;\n --color-prettylights-syntax-markup-italic: #c9d1d9;\n --color-prettylights-syntax-markup-bold: #c9d1d9;\n --color-prettylights-syntax-markup-deleted-text: #ffdcd7;\n --color-prettylights-syntax-markup-deleted-bg: #67060c;\n --color-prettylights-syntax-markup-inserted-text: #aff5b4;\n --color-prettylights-syntax-markup-inserted-bg: #033a16;\n --color-prettylights-syntax-markup-changed-text: #ffdfb6;\n --color-prettylights-syntax-markup-changed-bg: #5a1e02;\n --color-prettylights-syntax-markup-ignored-text: #c9d1d9;\n --color-prettylights-syntax-markup-ignored-bg: #1158c7;\n --color-prettylights-syntax-meta-diff-range: #d2a8ff;\n --color-prettylights-syntax-brackethighlighter-angle: #8b949e;\n --color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;\n --color-prettylights-syntax-constant-other-reference-link: #a5d6ff;\n --color-fg-default: #c9d1d9;\n --color-fg-muted: #8b949e;\n --color-fg-subtle: #484f58;\n --color-canvas-default: #0d1117;\n --color-canvas-subtle: #161b22;\n --color-border-default: #30363d;\n --color-border-muted: #21262d;\n --color-neutral-muted: rgba(110, 118, 129, 0.4);\n --color-accent-fg: #58a6ff;\n --color-accent-emphasis: #1f6feb;\n --color-attention-subtle: rgba(187, 128, 9, 0.15);\n --color-danger-fg: #f85149;\n}\n[data-color-mode*='light'] .wmde-markdown,\n[data-color-mode*='light'] .wmde-markdown-var,\n.wmde-markdown-var[data-color-mode*='light'],\n.wmde-markdown[data-color-mode*='light'],\nbody[data-color-mode*='light'] {\n color-scheme: light;\n --color-prettylights-syntax-comment: #6e7781;\n --color-prettylights-syntax-constant: #0550ae;\n --color-prettylights-syntax-entity: #8250df;\n --color-prettylights-syntax-storage-modifier-import: #24292f;\n --color-prettylights-syntax-entity-tag: #116329;\n --color-prettylights-syntax-keyword: #cf222e;\n --color-prettylights-syntax-string: #0a3069;\n --color-prettylights-syntax-variable: #953800;\n --color-prettylights-syntax-brackethighlighter-unmatched: #82071e;\n --color-prettylights-syntax-invalid-illegal-text: #f6f8fa;\n --color-prettylights-syntax-invalid-illegal-bg: #82071e;\n --color-prettylights-syntax-carriage-return-text: #f6f8fa;\n --color-prettylights-syntax-carriage-return-bg: #cf222e;\n --color-prettylights-syntax-string-regexp: #116329;\n --color-prettylights-syntax-markup-list: #3b2300;\n --color-prettylights-syntax-markup-heading: #0550ae;\n --color-prettylights-syntax-markup-italic: #24292f;\n --color-prettylights-syntax-markup-bold: #24292f;\n --color-prettylights-syntax-markup-deleted-text: #82071e;\n --color-prettylights-syntax-markup-deleted-bg: #ffebe9;\n --color-prettylights-syntax-markup-inserted-text: #116329;\n --color-prettylights-syntax-markup-inserted-bg: #dafbe1;\n --color-prettylights-syntax-markup-changed-text: #953800;\n --color-prettylights-syntax-markup-changed-bg: #ffd8b5;\n --color-prettylights-syntax-markup-ignored-text: #eaeef2;\n --color-prettylights-syntax-markup-ignored-bg: #0550ae;\n --color-prettylights-syntax-meta-diff-range: #8250df;\n --color-prettylights-syntax-brackethighlighter-angle: #57606a;\n --color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;\n --color-prettylights-syntax-constant-other-reference-link: #0a3069;\n --color-fg-default: #24292f;\n --color-fg-muted: #57606a;\n --color-fg-subtle: #6e7781;\n --color-canvas-default: #ffffff;\n --color-canvas-subtle: #f6f8fa;\n --color-border-default: #d0d7de;\n --color-border-muted: hsl(210, 18%, 87%);\n --color-neutral-muted: rgba(175, 184, 193, 0.2);\n --color-accent-fg: #0969da;\n --color-accent-emphasis: #0969da;\n --color-attention-subtle: #fff8c5;\n --color-danger-fg: #cf222e;\n}\n.wmde-markdown {\n -webkit-text-size-adjust: 100%;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';\n font-size: 16px;\n line-height: 1.5;\n word-wrap: break-word;\n color: var(--color-fg-default);\n background-color: var(--color-canvas-default);\n}\n.wmde-markdown details,\n.wmde-markdown figcaption,\n.wmde-markdown figure {\n display: block;\n}\n.wmde-markdown summary {\n display: list-item;\n}\n.wmde-markdown [hidden] {\n display: none !important;\n}\n.wmde-markdown a {\n background-color: transparent;\n color: var(--color-accent-fg);\n text-decoration: none;\n}\n.wmde-markdown a:active,\n.wmde-markdown a:hover {\n outline-width: 0;\n}\n.wmde-markdown abbr[title] {\n border-bottom: none;\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n.wmde-markdown b,\n.wmde-markdown strong {\n font-weight: 600;\n}\n.wmde-markdown dfn {\n font-style: italic;\n}\n.wmde-markdown h1 {\n margin: 0.67em 0;\n font-weight: 600;\n padding-bottom: 0.3em;\n font-size: 2em;\n border-bottom: 1px solid var(--color-border-muted);\n}\n.wmde-markdown mark {\n background-color: var(--color-attention-subtle);\n color: var(--color-text-primary);\n}\n.wmde-markdown small {\n font-size: 90%;\n}\n.wmde-markdown sub,\n.wmde-markdown sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n.wmde-markdown sub {\n bottom: -0.25em;\n}\n.wmde-markdown sup {\n top: -0.5em;\n}\n.wmde-markdown img {\n display: inline-block;\n border-style: none;\n max-width: 100%;\n box-sizing: content-box;\n background-color: var(--color-canvas-default);\n}\n.wmde-markdown code,\n.wmde-markdown kbd,\n.wmde-markdown pre,\n.wmde-markdown samp {\n font-family: monospace, monospace;\n font-size: 1em;\n}\n.wmde-markdown figure {\n margin: 1em 40px;\n}\n.wmde-markdown hr {\n box-sizing: content-box;\n overflow: hidden;\n background: transparent;\n border: 0;\n border-bottom: 1px solid var(--color-border-muted);\n height: 0.25em;\n padding: 0;\n margin: 24px 0;\n background-color: var(--color-border-default);\n}\n.wmde-markdown input {\n font: inherit;\n margin: 0;\n overflow: visible;\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n}\n.wmde-markdown [type='button'],\n.wmde-markdown [type='reset'],\n.wmde-markdown [type='submit'] {\n -webkit-appearance: button;\n}\n.wmde-markdown [type='button']::-moz-focus-inner,\n.wmde-markdown [type='reset']::-moz-focus-inner,\n.wmde-markdown [type='submit']::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n.wmde-markdown [type='button']:-moz-focusring,\n.wmde-markdown [type='reset']:-moz-focusring,\n.wmde-markdown [type='submit']:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n.wmde-markdown [type='checkbox'],\n.wmde-markdown [type='radio'] {\n box-sizing: border-box;\n padding: 0;\n}\n.wmde-markdown [type='number']::-webkit-inner-spin-button,\n.wmde-markdown [type='number']::-webkit-outer-spin-button {\n height: auto;\n}\n.wmde-markdown [type='search'] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n}\n.wmde-markdown [type='search']::-webkit-search-cancel-button,\n.wmde-markdown [type='search']::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n.wmde-markdown ::-webkit-input-placeholder {\n color: inherit;\n opacity: 0.54;\n}\n.wmde-markdown ::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n}\n.wmde-markdown a:hover {\n text-decoration: underline;\n}\n.wmde-markdown hr::before {\n display: table;\n content: '';\n}\n.wmde-markdown hr::after {\n display: table;\n clear: both;\n content: '';\n}\n.wmde-markdown table {\n border-spacing: 0;\n border-collapse: collapse;\n display: block;\n width: max-content;\n max-width: 100%;\n}\n.wmde-markdown td,\n.wmde-markdown th {\n padding: 0;\n}\n.wmde-markdown details summary {\n cursor: pointer;\n}\n.wmde-markdown details:not([open]) > *:not(summary) {\n display: none !important;\n}\n.wmde-markdown kbd {\n display: inline-block;\n padding: 3px 5px;\n font: 11px ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;\n line-height: 10px;\n color: var(--color-fg-default);\n vertical-align: middle;\n background-color: var(--color-canvas-subtle);\n border: solid 1px var(--color-neutral-muted);\n border-bottom-color: var(--color-neutral-muted);\n border-radius: 6px;\n box-shadow: inset 0 -1px 0 var(--color-neutral-muted);\n}\n.wmde-markdown h1,\n.wmde-markdown h2,\n.wmde-markdown h3,\n.wmde-markdown h4,\n.wmde-markdown h5,\n.wmde-markdown h6 {\n margin-top: 24px;\n margin-bottom: 16px;\n font-weight: 600;\n line-height: 1.25;\n}\n.wmde-markdown td,\n.wmde-markdown th {\n padding: 0;\n}\n.wmde-markdown details summary {\n cursor: pointer;\n}\n.wmde-markdown details:not([open]) > *:not(summary) {\n display: none !important;\n}\n.wmde-markdown kbd {\n display: inline-block;\n padding: 3px 5px;\n font: 11px ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;\n line-height: 10px;\n color: var(--color-fg-default);\n vertical-align: middle;\n background-color: var(--color-canvas-subtle);\n border: solid 1px var(--color-neutral-muted);\n border-bottom-color: var(--color-neutral-muted);\n border-radius: 6px;\n box-shadow: inset 0 -1px 0 var(--color-neutral-muted);\n}\n.wmde-markdown h1,\n.wmde-markdown h2,\n.wmde-markdown h3,\n.wmde-markdown h4,\n.wmde-markdown h5,\n.wmde-markdown h6 {\n margin-top: 24px;\n margin-bottom: 16px;\n font-weight: 600;\n line-height: 1.25;\n}\n.wmde-markdown h2 {\n font-weight: 600;\n padding-bottom: 0.3em;\n font-size: 1.5em;\n border-bottom: 1px solid var(--color-border-muted);\n}\n.wmde-markdown h3 {\n font-weight: 600;\n font-size: 1.25em;\n}\n.wmde-markdown h4 {\n font-weight: 600;\n font-size: 1em;\n}\n.wmde-markdown h5 {\n font-weight: 600;\n font-size: 0.875em;\n}\n.wmde-markdown h6 {\n font-weight: 600;\n font-size: 0.85em;\n color: var(--color-fg-muted);\n}\n.wmde-markdown p {\n margin-top: 0;\n margin-bottom: 10px;\n}\n.wmde-markdown blockquote {\n margin: 0;\n padding: 0 1em;\n color: var(--color-fg-muted);\n border-left: 0.25em solid var(--color-border-default);\n}\n.wmde-markdown ul,\n.wmde-markdown ol {\n margin-top: 0;\n margin-bottom: 0;\n padding-left: 2em;\n}\n.wmde-markdown ol ol,\n.wmde-markdown ul ol {\n list-style-type: lower-roman;\n}\n.wmde-markdown ul ul ol,\n.wmde-markdown ul ol ol,\n.wmde-markdown ol ul ol,\n.wmde-markdown ol ol ol {\n list-style-type: lower-alpha;\n}\n.wmde-markdown dd {\n margin-left: 0;\n}\n.wmde-markdown tt,\n.wmde-markdown code {\n font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;\n font-size: 12px;\n}\n.wmde-markdown pre {\n margin-top: 0;\n margin-bottom: 0;\n font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;\n font-size: 12px;\n word-wrap: normal;\n}\n.wmde-markdown .octicon {\n display: inline-block;\n overflow: visible !important;\n vertical-align: text-bottom;\n fill: currentColor;\n}\n.wmde-markdown ::placeholder {\n color: var(--color-fg-subtle);\n opacity: 1;\n}\n.wmde-markdown input::-webkit-outer-spin-button,\n.wmde-markdown input::-webkit-inner-spin-button {\n margin: 0;\n -webkit-appearance: none;\n appearance: none;\n}\n.wmde-markdown [data-catalyst] {\n display: block;\n}\n.wmde-markdown::before {\n display: table;\n content: '';\n}\n.wmde-markdown::after {\n display: table;\n clear: both;\n content: '';\n}\n.wmde-markdown > *:first-child {\n margin-top: 0 !important;\n}\n.wmde-markdown > *:last-child {\n margin-bottom: 0 !important;\n}\n.wmde-markdown a:not([href]) {\n color: inherit;\n text-decoration: none;\n}\n.wmde-markdown .absent {\n color: var(--color-danger-fg);\n}\n.wmde-markdown a.anchor {\n float: left;\n padding-right: 4px;\n margin-left: -20px;\n line-height: 1;\n}\n.wmde-markdown .anchor:focus {\n outline: none;\n}\n.wmde-markdown p,\n.wmde-markdown blockquote,\n.wmde-markdown ul,\n.wmde-markdown ol,\n.wmde-markdown dl,\n.wmde-markdown table,\n.wmde-markdown pre,\n.wmde-markdown details {\n margin-top: 0;\n margin-bottom: 16px;\n}\n.wmde-markdown blockquote > :first-child {\n margin-top: 0;\n}\n.wmde-markdown blockquote > :last-child {\n margin-bottom: 0;\n}\n.wmde-markdown sup > a::before {\n content: '[';\n}\n.wmde-markdown sup > a::after {\n content: ']';\n}\n.wmde-markdown h1 .octicon-link,\n.wmde-markdown h2 .octicon-link,\n.wmde-markdown h3 .octicon-link,\n.wmde-markdown h4 .octicon-link,\n.wmde-markdown h5 .octicon-link,\n.wmde-markdown h6 .octicon-link {\n color: var(--color-fg-default);\n vertical-align: middle;\n visibility: hidden;\n}\n.wmde-markdown h1:hover .anchor,\n.wmde-markdown h2:hover .anchor,\n.wmde-markdown h3:hover .anchor,\n.wmde-markdown h4:hover .anchor,\n.wmde-markdown h5:hover .anchor,\n.wmde-markdown h6:hover .anchor {\n text-decoration: none;\n}\n.wmde-markdown h1:hover .anchor .octicon-link,\n.wmde-markdown h2:hover .anchor .octicon-link,\n.wmde-markdown h3:hover .anchor .octicon-link,\n.wmde-markdown h4:hover .anchor .octicon-link,\n.wmde-markdown h5:hover .anchor .octicon-link,\n.wmde-markdown h6:hover .anchor .octicon-link {\n visibility: visible;\n}\n.wmde-markdown h1 tt,\n.wmde-markdown h1 code,\n.wmde-markdown h2 tt,\n.wmde-markdown h2 code,\n.wmde-markdown h3 tt,\n.wmde-markdown h3 code,\n.wmde-markdown h4 tt,\n.wmde-markdown h4 code,\n.wmde-markdown h5 tt,\n.wmde-markdown h5 code,\n.wmde-markdown h6 tt,\n.wmde-markdown h6 code {\n padding: 0 0.2em;\n font-size: inherit;\n}\n.wmde-markdown ul.no-list,\n.wmde-markdown ol.no-list {\n padding: 0;\n list-style-type: none;\n}\n.wmde-markdown ol[type='1'] {\n list-style-type: decimal;\n}\n.wmde-markdown ol[type='a'] {\n list-style-type: lower-alpha;\n}\n.wmde-markdown ol[type='i'] {\n list-style-type: lower-roman;\n}\n.wmde-markdown div > ol:not([type]) {\n list-style-type: decimal;\n}\n.wmde-markdown ul ul,\n.wmde-markdown ul ol,\n.wmde-markdown ol ol,\n.wmde-markdown ol ul {\n margin-top: 0;\n margin-bottom: 0;\n}\n.wmde-markdown li > p {\n margin-top: 16px;\n}\n.wmde-markdown li + li {\n margin-top: 0.25em;\n}\n.wmde-markdown dl {\n padding: 0;\n}\n.wmde-markdown dl dt {\n padding: 0;\n margin-top: 16px;\n font-size: 1em;\n font-style: italic;\n font-weight: 600;\n}\n.wmde-markdown dl dd {\n padding: 0 16px;\n margin-bottom: 16px;\n}\n.wmde-markdown table th {\n font-weight: 600;\n}\n.wmde-markdown table th,\n.wmde-markdown table td {\n padding: 6px 13px;\n border: 1px solid var(--color-border-default);\n}\n.wmde-markdown table tr {\n background-color: var(--color-canvas-default);\n border-top: 1px solid var(--color-border-muted);\n}\n.wmde-markdown table tr:nth-child(2n) {\n background-color: var(--color-canvas-subtle);\n}\n.wmde-markdown table img {\n background-color: transparent;\n}\n.wmde-markdown img[align='right'] {\n padding-left: 20px;\n}\n.wmde-markdown img[align='left'] {\n padding-right: 20px;\n}\n.wmde-markdown .emoji {\n max-width: none;\n vertical-align: text-top;\n background-color: transparent;\n}\n.wmde-markdown span.frame {\n display: block;\n overflow: hidden;\n}\n.wmde-markdown span.frame > span {\n display: block;\n float: left;\n width: auto;\n padding: 7px;\n margin: 13px 0 0;\n overflow: hidden;\n border: 1px solid var(--color-border-default);\n}\n.wmde-markdown span.frame span img {\n display: block;\n float: left;\n}\n.wmde-markdown span.frame span span {\n display: block;\n padding: 5px 0 0;\n clear: both;\n color: var(--color-fg-default);\n}\n.wmde-markdown span.align-center {\n display: block;\n overflow: hidden;\n clear: both;\n}\n.wmde-markdown span.align-center > span {\n display: block;\n margin: 13px auto 0;\n overflow: hidden;\n text-align: center;\n}\n.wmde-markdown span.align-center span img {\n margin: 0 auto;\n text-align: center;\n}\n.wmde-markdown span.align-right {\n display: block;\n overflow: hidden;\n clear: both;\n}\n.wmde-markdown span.align-right > span {\n display: block;\n margin: 13px 0 0;\n overflow: hidden;\n text-align: right;\n}\n.wmde-markdown span.align-right span img {\n margin: 0;\n text-align: right;\n}\n.wmde-markdown span.float-left {\n display: block;\n float: left;\n margin-right: 13px;\n overflow: hidden;\n}\n.wmde-markdown span.float-left span {\n margin: 13px 0 0;\n}\n.wmde-markdown span.float-right {\n display: block;\n float: right;\n margin-left: 13px;\n overflow: hidden;\n}\n.wmde-markdown span.float-right > span {\n display: block;\n margin: 13px auto 0;\n overflow: hidden;\n text-align: right;\n}\n.wmde-markdown code,\n.wmde-markdown tt {\n padding: 0.2em 0.4em;\n margin: 0;\n font-size: 85%;\n background-color: var(--color-neutral-muted);\n border-radius: 6px;\n}\n.wmde-markdown code br,\n.wmde-markdown tt br {\n display: none;\n}\n.wmde-markdown del code {\n text-decoration: inherit;\n}\n.wmde-markdown pre code {\n font-size: 100%;\n}\n.wmde-markdown pre > code {\n padding: 0;\n margin: 0;\n word-break: normal;\n white-space: pre;\n background: transparent;\n border: 0;\n}\n.wmde-markdown pre {\n font-size: 85%;\n line-height: 1.45;\n background-color: var(--color-canvas-subtle);\n border-radius: 6px;\n}\n.wmde-markdown pre code,\n.wmde-markdown pre tt {\n display: inline;\n max-width: auto;\n padding: 0;\n margin: 0;\n overflow: visible;\n line-height: inherit;\n word-wrap: normal;\n background-color: transparent;\n border: 0;\n}\n.wmde-markdown pre > code {\n padding: 16px;\n overflow: auto;\n display: block;\n}\n.wmde-markdown pre > code::-webkit-scrollbar {\n background: transparent;\n width: 8px;\n height: 8px;\n}\n.wmde-markdown pre > code::-webkit-scrollbar-thumb {\n background: var(--color-fg-muted);\n border-radius: 10px;\n}\n.wmde-markdown .csv-data td,\n.wmde-markdown .csv-data th {\n padding: 5px;\n overflow: hidden;\n font-size: 12px;\n line-height: 1;\n text-align: left;\n white-space: nowrap;\n}\n.wmde-markdown .csv-data .blob-num {\n padding: 10px 8px 9px;\n text-align: right;\n background: var(--color-canvas-default);\n border: 0;\n}\n.wmde-markdown .csv-data tr {\n border-top: 0;\n}\n.wmde-markdown .csv-data th {\n font-weight: 600;\n background: var(--color-canvas-subtle);\n border-top: 0;\n}\n.wmde-markdown .footnotes {\n font-size: 12px;\n color: var(--color-fg-muted);\n border-top: 1px solid var(--color-border-default);\n}\n.wmde-markdown .footnotes ol {\n padding-left: 16px;\n}\n.wmde-markdown .footnotes li {\n position: relative;\n}\n.wmde-markdown .footnotes li:target::before {\n position: absolute;\n top: -8px;\n right: -8px;\n bottom: -8px;\n left: -24px;\n pointer-events: none;\n content: '';\n border: 2px solid var(--color-accent-emphasis);\n border-radius: 6px;\n}\n.wmde-markdown .footnotes li:target {\n color: var(--color-fg-default);\n}\n.wmde-markdown .footnotes .data-footnote-backref g-emoji {\n font-family: monospace;\n}\n.wmde-markdown .task-list-item {\n list-style-type: none;\n}\n.wmde-markdown .task-list-item label {\n font-weight: 400;\n}\n.wmde-markdown .task-list-item.enabled label {\n cursor: pointer;\n}\n.wmde-markdown .task-list-item + .wmde-markdown .task-list-item {\n margin-top: 3px;\n}\n.wmde-markdown .task-list-item .handle {\n display: none;\n}\n.wmde-markdown .task-list-item-checkbox,\n.wmde-markdown .contains-task-list input[type='checkbox'] {\n margin: 0 0.2em 0.25em -1.6em;\n vertical-align: middle;\n}\n.wmde-markdown .contains-task-list:dir(rtl) .task-list-item-checkbox,\n.wmde-markdown .contains-task-list:dir(rtl) input[type='checkbox'] {\n margin: 0 -1.6em 0.25em 0.2em;\n}\n.wmde-markdown ::-webkit-calendar-picker-indicator {\n filter: invert(50%);\n}\n.wmde-markdown pre {\n position: relative;\n}\n.wmde-markdown pre .copied {\n visibility: hidden;\n display: flex;\n position: absolute;\n cursor: pointer;\n color: var(--color-fg-default);\n top: 6px;\n right: 6px;\n border-radius: 5px;\n background: var(--color-border-default);\n padding: 6px;\n font-size: 12px;\n transition: all 0.3s;\n}\n.wmde-markdown pre .copied .octicon-copy {\n display: block;\n}\n.wmde-markdown pre .copied .octicon-check {\n display: none;\n}\n.wmde-markdown pre:hover .copied {\n visibility: visible;\n}\n.wmde-markdown pre:hover .copied:hover {\n background: var(--color-prettylights-syntax-entity-tag);\n color: var(--color-canvas-default);\n}\n.wmde-markdown pre:hover .copied:active,\n.wmde-markdown pre .copied.active {\n background: var(--color-copied-active-bg);\n color: var(--color-canvas-default);\n}\n.wmde-markdown pre .active .octicon-copy {\n display: none;\n}\n.wmde-markdown pre .active .octicon-check {\n display: block;\n}\n.wmde-markdown .markdown-alert {\n padding: 0.5rem 1em;\n color: inherit;\n margin-bottom: 16px;\n border-left: 0.25em solid var(--borderColor-default, var(--color-border-default));\n}\n.wmde-markdown .markdown-alert > :last-child {\n margin-bottom: 0 !important;\n}\n.wmde-markdown .markdown-alert .markdown-alert-title {\n display: flex;\n align-items: center;\n line-height: 1;\n font-weight: 500;\n font-size: 14px;\n}\n.wmde-markdown .markdown-alert .markdown-alert-title svg.octicon {\n margin-right: var(--base-size-8, 8px) !important;\n}\n.wmde-markdown .markdown-alert.markdown-alert-note {\n border-left-color: var(--borderColor-accent-emphasis, var(--color-accent-emphasis));\n}\n.wmde-markdown .markdown-alert.markdown-alert-note .markdown-alert-title {\n color: var(--fgColor-accent, var(--color-accent-fg));\n}\n.wmde-markdown .markdown-alert.markdown-alert-tip {\n border-left-color: var(--borderColor-success-emphasis, var(--color-success-emphasis));\n}\n.wmde-markdown .markdown-alert.markdown-alert-tip .markdown-alert-title {\n color: var(--fgColor-success, var(--color-success-fg));\n}\n.wmde-markdown .markdown-alert.markdown-alert-important {\n border-left-color: var(--borderColor-done-emphasis, var(--color-done-emphasis));\n}\n.wmde-markdown .markdown-alert.markdown-alert-important .markdown-alert-title {\n color: var(--fgColor-done, var(--color-done-fg));\n}\n.wmde-markdown .markdown-alert.markdown-alert-warning {\n border-left-color: var(--borderColor-attention-emphasis, var(--color-attention-emphasis));\n}\n.wmde-markdown .markdown-alert.markdown-alert-warning .markdown-alert-title {\n color: var(--fgColor-attention, var(--color-attention-fg));\n}\n.wmde-markdown .markdown-alert.markdown-alert-caution {\n border-left-color: var(--borderColor-danger-emphasis, var(--color-danger-emphasis));\n}\n.wmde-markdown .markdown-alert.markdown-alert-caution .markdown-alert-title {\n color: var(--fgColor-danger, var(--color-danger-fg));\n}\n.wmde-markdown .highlight-line {\n background-color: var(--color-neutral-muted);\n}\n.wmde-markdown .code-line.line-number::before {\n display: inline-block;\n width: 1rem;\n text-align: right;\n margin-right: 16px;\n color: var(--color-fg-subtle);\n content: attr(line);\n white-space: nowrap;\n}\n.wmde-markdown .token.comment,\n.wmde-markdown .token.prolog,\n.wmde-markdown .token.doctype,\n.wmde-markdown .token.cdata {\n color: var(--color-prettylights-syntax-comment);\n}\n.wmde-markdown .token.namespace {\n opacity: 0.7;\n}\n.wmde-markdown .token.property,\n.wmde-markdown .token.tag,\n.wmde-markdown .token.selector,\n.wmde-markdown .token.constant,\n.wmde-markdown .token.symbol,\n.wmde-markdown .token.deleted {\n color: var(--color-prettylights-syntax-entity-tag);\n}\n.wmde-markdown .token.maybe-class-name {\n color: var(--color-prettylights-syntax-variable);\n}\n.wmde-markdown .token.property-access,\n.wmde-markdown .token.operator,\n.wmde-markdown .token.boolean,\n.wmde-markdown .token.number,\n.wmde-markdown .token.selector .token.class,\n.wmde-markdown .token.attr-name,\n.wmde-markdown .token.string,\n.wmde-markdown .token.char,\n.wmde-markdown .token.builtin {\n color: var(--color-prettylights-syntax-constant);\n}\n.wmde-markdown .token.deleted {\n color: var(--color-prettylights-syntax-markup-deleted-text);\n}\n.wmde-markdown .code-line .token.deleted {\n background-color: var(--color-prettylights-syntax-markup-deleted-bg);\n}\n.wmde-markdown .token.inserted {\n color: var(--color-prettylights-syntax-markup-inserted-text);\n}\n.wmde-markdown .code-line .token.inserted {\n background-color: var(--color-prettylights-syntax-markup-inserted-bg);\n}\n.wmde-markdown .token.variable {\n color: var(--color-prettylights-syntax-constant);\n}\n.wmde-markdown .token.entity,\n.wmde-markdown .token.url,\n.wmde-markdown .language-css .token.string,\n.wmde-markdown .style .token.string {\n color: var(--color-prettylights-syntax-string);\n}\n.wmde-markdown .token.color,\n.wmde-markdown .token.atrule,\n.wmde-markdown .token.attr-value,\n.wmde-markdown .token.function,\n.wmde-markdown .token.class-name {\n color: var(--color-prettylights-syntax-string);\n}\n.wmde-markdown .token.rule,\n.wmde-markdown .token.regex,\n.wmde-markdown .token.important,\n.wmde-markdown .token.keyword {\n color: var(--color-prettylights-syntax-keyword);\n}\n.wmde-markdown .token.coord {\n color: var(--color-prettylights-syntax-meta-diff-range);\n}\n.wmde-markdown .token.important,\n.wmde-markdown .token.bold {\n font-weight: bold;\n}\n.wmde-markdown .token.italic {\n font-style: italic;\n}\n.wmde-markdown .token.entity {\n cursor: help;\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/css/692.48e590e3.chunk.css","mappings":"AAAA,mGACE,6BAA8B,CAC9B,4BACF,CACA,gGACE,6BAA8B,CAC9B,4BACF,CAEA,mBACE,0CACF,CACA,mCACE,8CACF,CACA,+CAEE,yBAA0B,CAD1B,+CAEF,CAEA,QAEE,2CAA4C,CAD5C,iBAEF,CACA,iCACE,yBACF,CACA,sBACE,QAAS,CAET,eAAgB,CADhB,SAEF,CACA,aAIE,wBAA2B,CAC3B,yBAA4B,CAH5B,WAAY,CAIZ,yBAA2B,CAH3B,aAAc,CAFd,8CAMF,CACA,eAEE,kBAAoB,CADpB,mBAEF,CACA,qCACE,qBACF,CACA,gBACE,4TACF,CACA,6BACE,YACF,CACA,4BAEE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B,CAF5B,QAAS,CACT,aAGF,CACA,oCAGE,eAAgB,CADhB,YAAa,CAEb,gBACF,CACA,0CAEE,2BACF,CACA,gGAIE,2BACF,CACA,kBACE,aACF,CAMA,yDAHE,wFAA+F,CAC/F,cAQF,CANA,mBAKE,gBAAiB,CAHjB,eAAgB,CADhB,YAKF,CACA,wBAIE,iBAAkB,CAHlB,oBAAqB,CACrB,0BAA4B,CAC5B,0BAEF,CACA,kCACE,4BAA6B,CAC7B,SACF,CAHA,6BACE,4BAA6B,CAC7B,SACF,CACA,gGAGE,uBAAwB,CACxB,eAAgB,CAFhB,QAGF,CACA,+BACE,aACF,CAKA,2CAFE,UAAW,CADX,aAOF,CAJA,qBAEE,UAEF,CACA,4BACE,sBACF,CACA,2BACE,yBACF,CACA,6BACE,aAAc,CACd,oBACF,CACA,uBACE,4BACF,CACA,wBACE,UAAW,CAGX,aAAc,CADd,iBAAkB,CADlB,iBAGF,CACA,6BACE,YACF,CACA,gKASE,kBAAmB,CADnB,YAEF,CACA,uCACE,YACF,CACA,sCACE,eACF,CACA,4BACE,WACF,CACA,2BACE,WACF,CACA,gMAME,6BAA8B,CAC9B,qBAAsB,CACtB,iBACF,CACA,gMAME,oBACF,CACA,oRAME,kBACF,CACA,wQAaE,iBAAkB,CADlB,cAEF,CACA,oDAGE,oBAAqB,CADrB,SAEF,CACA,4BACE,uBACF,CACA,0BACE,2BACF,CACA,0BACE,2BACF,CACA,kCACE,uBACF,CACA,oFAKE,eAAgB,CADhB,YAEF,CACA,oBACE,eACF,CACA,qBACE,gBACF,CACA,kBACE,SACF,CACA,qBAGE,aAAc,CACd,iBAAkB,CAClB,eAAgB,CAHhB,eAAgB,CADhB,SAKF,CACA,qBAEE,kBAAmB,CADnB,cAEF,CACA,wBACE,eACF,CACA,gDAGE,4CAA6C,CAD7C,gBAEF,CACA,wBACE,4CAA6C,CAC7C,8CACF,CACA,sCACE,2CACF,CACA,yBACE,4BACF,CACA,gCACE,iBACF,CACA,+BACE,kBACF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CAIZ,eAAgB,CAChB,kBACF,CACA,mCAGE,sCAAuC,CACvC,QAAS,CAHT,oBAAqB,CACrB,gBAGF,CACA,4BACE,YACF,CACA,4BAEE,qCAAsC,CACtC,YAAa,CAFb,eAGF,CACA,0BAGE,gDAAiD,CADjD,2BAA4B,CAD5B,cAGF,CACA,6BACE,iBACF,CACA,6BACE,iBACF,CACA,2CAQE,6CAA8C,CAC9C,iBAAkB,CALlB,WAAY,CAGZ,UAAW,CAFX,UAAW,CACX,mBAAoB,CALpB,iBAAkB,CAElB,UAAW,CADX,QAQF,CACA,oCACE,6BACF,CACA,yDACE,qBACF,CACA,+BACE,oBACF,CACA,qCACE,eACF,CACA,6CACE,cACF,CACA,8DACE,cACF,CACA,uCACE,YACF,CACA,gGAEE,0BAA6B,CAC7B,qBACF,CACA,sIAEE,0BACF,CACA,mDACE,kBACF,CACA,mBACE,iBACF,CACA,2BASE,sCAAuC,CADvC,iBAAkB,CAHlB,6BAA8B,CAD9B,cAAe,CAFf,YAAa,CASb,cAAe,CADf,WAAY,CAPZ,iBAAkB,CAIlB,SAAU,CADV,OAAQ,CAMR,kBAAoB,CAXpB,iBAYF,CACA,yCACE,aACF,CACA,0CACE,YACF,CACA,iCACE,kBACF,CACA,uCACE,sDAAuD,CACvD,iCACF,CACA,0EAEE,wCAAyC,CACzC,iCACF,CACA,yCACE,YACF,CACA,0CACE,aACF,CACA,+BAIE,8EAAiF,CAFjF,aAAc,CACd,kBAAmB,CAFnB,iBAIF,CACA,2CACE,yBACF,CACA,qDAEE,kBAAmB,CADnB,YAAa,CAIb,cAAe,CADf,eAAgB,CADhB,aAGF,CACA,iEACE,0BAAgD,CAAhD,6CACF,CACA,mDACE,iFACF,CACA,yEACE,4BAAoD,CAApD,kDACF,CACA,kDACE,mFACF,CACA,wEACE,6BAAsD,CAAtD,oDACF,CACA,wDACE,6EACF,CACA,8EACE,0BAAgD,CAAhD,8CACF,CACA,sDACE,uFACF,CACA,4EACE,+BAA0D,CAA1D,wDACF,CACA,sDACE,iFACF,CACA,4EACE,4BAAoD,CAApD,kDACF,CACA,+BACE,2CACF,CACA,6CAKE,4BAA6B,CAC7B,kBAAmB,CALnB,oBAAqB,CAGrB,iBAAkB,CADlB,gBAAiB,CAIjB,kBAAmB,CALnB,UAMF,CACA,qHAIE,8CACF,CACA,gCACE,UACF,CACA,kLAME,iDACF,CACA,uCACE,+CACF,CACA,kSASE,+CACF,CACA,8BACE,0DACF,CACA,yCACE,mEACF,CACA,+BACE,2DACF,CACA,0CACE,oEACF,CACA,+BACE,+CACF,CAOA,gSAKE,6CACF,CACA,qHAIE,8CACF,CACA,4BACE,sDACF,CACA,2DAEE,eACF,CACA,6BACE,iBACF,CACA,6BACE,WACF","sources":["../../node_modules/react-code-preview-layout/esm/styles.css","../../node_modules/@uiw/react-markdown-preview/esm/styles/markdown.css"],"sourcesContent":[".code-preview-layout[data-color-mode*='light'], [data-color-mode*='light'], body[data-color-mode*='light'] {\n --color-canvas-subtle: #f6f8fa;\n --color-border-muted: hsl(210, 18%, 87%);\n}\n.code-preview-layout[data-color-mode*='dark'], [data-color-mode*='dark'], body[data-color-mode*='dark'] {\n --color-canvas-subtle: #161b22;\n --color-border-muted: #21262d;\n}\n\n.w-rcpl.w-bordered {\n border: 1px solid var(--color-border-muted);\n}\n.w-rcpl.w-bordered > .w-rcpl-toolbar {\n border-top: 1px solid var(--color-border-muted);\n}\n.w-rcpl.w-bordered > .w-rcpl-code:not(.w-hidden) {\n border-top: 1px dashed var(--color-border-muted);\n border-radius: 0 0 6px 6px;\n}\n\n.w-rcpl {\n border-radius: 5px;\n background-color: var(--color-canvas-subtle);\n}\n.w-rcpl-preview:not(:last-child) {\n border-radius: 5px 5px 0 0;\n}\n.w-rcpl-code.w-hidden {\n height: 0;\n padding: 0;\n overflow: hidden;\n}\n.w-rcpl-code {\n transition: height cubic-bezier(0.360, 0.000, 0.660, -0.560);;\n height: auto;\n overflow: auto;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n margin-bottom: 0 !important;\n}\n.w-rcpl-code > * {\n padding: 0 !important;\n margin: 0 !important;\n}\n.w-disable-checkered > .w-rcpl-preview {\n background-image: none;\n}\n.w-rcpl-preview {\n background: url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cpattern id='a' width='16' height='16' patternUnits='userSpaceOnUse'%3E%3Cpath fill='rgba(0, 0, 0, 0.06)' d='M0 0h8v8H0zm8 8h8v8H8z'/%3E%3C/pattern%3E%3Crect fill='url(%23a)' width='100%25' height='100%25'/%3E%3C/svg%3E\")\n}\n.w-rcpl-preview, .w-rcpl-code {\n padding: 15px;\n}\n.w-rcpl-extra, .w-rcpl-title {\n display: flex;\n align-items: center;\n}\n.w-rcpl-toolbar button svg {\n opacity: 0.37;\n display: block;\n height: 18px;\n transition: opacity 0.3s;\n}\n.w-rcpl-toolbar button svg:hover {\n opacity: 1;\n}\n.w-rcpl-toolbar button {\n color: currentColor;\n position: relative;\n background-color: transparent;\n display: inline-block;\n height: inherit;\n padding: 3px 4px;\n border: 0;\n box-sizing: border-box;\n cursor: pointer;\n outline: none;\n transition: opacity .2s, background .2s;\n}\n.w-rcpl-toolbar {\n display: flex;\n justify-content: space-between;\n padding: 5px 5px;\n padding-left: 8px;\n}","@media (prefers-color-scheme: dark) {\n .wmde-markdown,\n .wmde-markdown-var {\n color-scheme: dark;\n --color-prettylights-syntax-comment: #8b949e;\n --color-prettylights-syntax-constant: #79c0ff;\n --color-prettylights-syntax-entity: #d2a8ff;\n --color-prettylights-syntax-storage-modifier-import: #c9d1d9;\n --color-prettylights-syntax-entity-tag: #7ee787;\n --color-prettylights-syntax-keyword: #ff7b72;\n --color-prettylights-syntax-string: #a5d6ff;\n --color-prettylights-syntax-variable: #ffa657;\n --color-prettylights-syntax-brackethighlighter-unmatched: #f85149;\n --color-prettylights-syntax-invalid-illegal-text: #f0f6fc;\n --color-prettylights-syntax-invalid-illegal-bg: #8e1519;\n --color-prettylights-syntax-carriage-return-text: #f0f6fc;\n --color-prettylights-syntax-carriage-return-bg: #b62324;\n --color-prettylights-syntax-string-regexp: #7ee787;\n --color-prettylights-syntax-markup-list: #f2cc60;\n --color-prettylights-syntax-markup-heading: #1f6feb;\n --color-prettylights-syntax-markup-italic: #c9d1d9;\n --color-prettylights-syntax-markup-bold: #c9d1d9;\n --color-prettylights-syntax-markup-deleted-text: #ffdcd7;\n --color-prettylights-syntax-markup-deleted-bg: #67060c;\n --color-prettylights-syntax-markup-inserted-text: #aff5b4;\n --color-prettylights-syntax-markup-inserted-bg: #033a16;\n --color-prettylights-syntax-markup-changed-text: #ffdfb6;\n --color-prettylights-syntax-markup-changed-bg: #5a1e02;\n --color-prettylights-syntax-markup-ignored-text: #c9d1d9;\n --color-prettylights-syntax-markup-ignored-bg: #1158c7;\n --color-prettylights-syntax-meta-diff-range: #d2a8ff;\n --color-prettylights-syntax-brackethighlighter-angle: #8b949e;\n --color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;\n --color-prettylights-syntax-constant-other-reference-link: #a5d6ff;\n --color-fg-default: #c9d1d9;\n --color-fg-muted: #8b949e;\n --color-fg-subtle: #484f58;\n --color-canvas-default: #0d1117;\n --color-canvas-subtle: #161b22;\n --color-border-default: #30363d;\n --color-border-muted: #21262d;\n --color-neutral-muted: rgba(110, 118, 129, 0.4);\n --color-accent-fg: #58a6ff;\n --color-accent-emphasis: #1f6feb;\n --color-attention-subtle: rgba(187, 128, 9, 0.15);\n --color-danger-fg: #f85149;\n --color-danger-emphasis: #da3633;\n --color-attention-fg: #d29922;\n --color-attention-emphasis: #9e6a03;\n --color-done-fg: #a371f7;\n --color-done-emphasis: #8957e5;\n --color-success-fg: #3fb950;\n --color-success-emphasis: #238636;\n --color-copied-active-bg: #2e9b33;\n }\n}\n@media (prefers-color-scheme: light) {\n .wmde-markdown,\n .wmde-markdown-var {\n color-scheme: light;\n --color-prettylights-syntax-comment: #6e7781;\n --color-prettylights-syntax-constant: #0550ae;\n --color-prettylights-syntax-entity: #8250df;\n --color-prettylights-syntax-storage-modifier-import: #24292f;\n --color-prettylights-syntax-entity-tag: #116329;\n --color-prettylights-syntax-keyword: #cf222e;\n --color-prettylights-syntax-string: #0a3069;\n --color-prettylights-syntax-variable: #953800;\n --color-prettylights-syntax-brackethighlighter-unmatched: #82071e;\n --color-prettylights-syntax-invalid-illegal-text: #f6f8fa;\n --color-prettylights-syntax-invalid-illegal-bg: #82071e;\n --color-prettylights-syntax-carriage-return-text: #f6f8fa;\n --color-prettylights-syntax-carriage-return-bg: #cf222e;\n --color-prettylights-syntax-string-regexp: #116329;\n --color-prettylights-syntax-markup-list: #3b2300;\n --color-prettylights-syntax-markup-heading: #0550ae;\n --color-prettylights-syntax-markup-italic: #24292f;\n --color-prettylights-syntax-markup-bold: #24292f;\n --color-prettylights-syntax-markup-deleted-text: #82071e;\n --color-prettylights-syntax-markup-deleted-bg: #ffebe9;\n --color-prettylights-syntax-markup-inserted-text: #116329;\n --color-prettylights-syntax-markup-inserted-bg: #dafbe1;\n --color-prettylights-syntax-markup-changed-text: #953800;\n --color-prettylights-syntax-markup-changed-bg: #ffd8b5;\n --color-prettylights-syntax-markup-ignored-text: #eaeef2;\n --color-prettylights-syntax-markup-ignored-bg: #0550ae;\n --color-prettylights-syntax-meta-diff-range: #8250df;\n --color-prettylights-syntax-brackethighlighter-angle: #57606a;\n --color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;\n --color-prettylights-syntax-constant-other-reference-link: #0a3069;\n --color-fg-default: #24292f;\n --color-fg-muted: #57606a;\n --color-fg-subtle: #6e7781;\n --color-canvas-default: #ffffff;\n --color-canvas-subtle: #f6f8fa;\n --color-border-default: #d0d7de;\n --color-border-muted: hsl(210, 18%, 87%);\n --color-neutral-muted: rgba(175, 184, 193, 0.2);\n --color-accent-fg: #0969da;\n --color-accent-emphasis: #0969da;\n --color-attention-subtle: #fff8c5;\n --color-danger-fg: #d1242f;\n --color-danger-emphasis: #cf222e;\n --color-attention-fg: #9a6700;\n --color-attention-emphasis: #9a6700;\n --color-done-fg: #8250df;\n --color-done-emphasis: #8250df;\n --color-success-fg: #1a7f37;\n --color-success-emphasis: #1f883d;\n --color-copied-active-bg: #2e9b33;\n }\n}\n[data-color-mode*='dark'] .wmde-markdown,\n[data-color-mode*='dark'] .wmde-markdown-var,\n.wmde-markdown-var[data-color-mode*='dark'],\n.wmde-markdown[data-color-mode*='dark'],\nbody[data-color-mode*='dark'] {\n color-scheme: dark;\n --color-prettylights-syntax-comment: #8b949e;\n --color-prettylights-syntax-constant: #79c0ff;\n --color-prettylights-syntax-entity: #d2a8ff;\n --color-prettylights-syntax-storage-modifier-import: #c9d1d9;\n --color-prettylights-syntax-entity-tag: #7ee787;\n --color-prettylights-syntax-keyword: #ff7b72;\n --color-prettylights-syntax-string: #a5d6ff;\n --color-prettylights-syntax-variable: #ffa657;\n --color-prettylights-syntax-brackethighlighter-unmatched: #f85149;\n --color-prettylights-syntax-invalid-illegal-text: #f0f6fc;\n --color-prettylights-syntax-invalid-illegal-bg: #8e1519;\n --color-prettylights-syntax-carriage-return-text: #f0f6fc;\n --color-prettylights-syntax-carriage-return-bg: #b62324;\n --color-prettylights-syntax-string-regexp: #7ee787;\n --color-prettylights-syntax-markup-list: #f2cc60;\n --color-prettylights-syntax-markup-heading: #1f6feb;\n --color-prettylights-syntax-markup-italic: #c9d1d9;\n --color-prettylights-syntax-markup-bold: #c9d1d9;\n --color-prettylights-syntax-markup-deleted-text: #ffdcd7;\n --color-prettylights-syntax-markup-deleted-bg: #67060c;\n --color-prettylights-syntax-markup-inserted-text: #aff5b4;\n --color-prettylights-syntax-markup-inserted-bg: #033a16;\n --color-prettylights-syntax-markup-changed-text: #ffdfb6;\n --color-prettylights-syntax-markup-changed-bg: #5a1e02;\n --color-prettylights-syntax-markup-ignored-text: #c9d1d9;\n --color-prettylights-syntax-markup-ignored-bg: #1158c7;\n --color-prettylights-syntax-meta-diff-range: #d2a8ff;\n --color-prettylights-syntax-brackethighlighter-angle: #8b949e;\n --color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;\n --color-prettylights-syntax-constant-other-reference-link: #a5d6ff;\n --color-fg-default: #c9d1d9;\n --color-fg-muted: #8b949e;\n --color-fg-subtle: #484f58;\n --color-canvas-default: #0d1117;\n --color-canvas-subtle: #161b22;\n --color-border-default: #30363d;\n --color-border-muted: #21262d;\n --color-neutral-muted: rgba(110, 118, 129, 0.4);\n --color-accent-fg: #58a6ff;\n --color-accent-emphasis: #1f6feb;\n --color-attention-subtle: rgba(187, 128, 9, 0.15);\n --color-danger-fg: #f85149;\n}\n[data-color-mode*='light'] .wmde-markdown,\n[data-color-mode*='light'] .wmde-markdown-var,\n.wmde-markdown-var[data-color-mode*='light'],\n.wmde-markdown[data-color-mode*='light'],\nbody[data-color-mode*='light'] {\n color-scheme: light;\n --color-prettylights-syntax-comment: #6e7781;\n --color-prettylights-syntax-constant: #0550ae;\n --color-prettylights-syntax-entity: #8250df;\n --color-prettylights-syntax-storage-modifier-import: #24292f;\n --color-prettylights-syntax-entity-tag: #116329;\n --color-prettylights-syntax-keyword: #cf222e;\n --color-prettylights-syntax-string: #0a3069;\n --color-prettylights-syntax-variable: #953800;\n --color-prettylights-syntax-brackethighlighter-unmatched: #82071e;\n --color-prettylights-syntax-invalid-illegal-text: #f6f8fa;\n --color-prettylights-syntax-invalid-illegal-bg: #82071e;\n --color-prettylights-syntax-carriage-return-text: #f6f8fa;\n --color-prettylights-syntax-carriage-return-bg: #cf222e;\n --color-prettylights-syntax-string-regexp: #116329;\n --color-prettylights-syntax-markup-list: #3b2300;\n --color-prettylights-syntax-markup-heading: #0550ae;\n --color-prettylights-syntax-markup-italic: #24292f;\n --color-prettylights-syntax-markup-bold: #24292f;\n --color-prettylights-syntax-markup-deleted-text: #82071e;\n --color-prettylights-syntax-markup-deleted-bg: #ffebe9;\n --color-prettylights-syntax-markup-inserted-text: #116329;\n --color-prettylights-syntax-markup-inserted-bg: #dafbe1;\n --color-prettylights-syntax-markup-changed-text: #953800;\n --color-prettylights-syntax-markup-changed-bg: #ffd8b5;\n --color-prettylights-syntax-markup-ignored-text: #eaeef2;\n --color-prettylights-syntax-markup-ignored-bg: #0550ae;\n --color-prettylights-syntax-meta-diff-range: #8250df;\n --color-prettylights-syntax-brackethighlighter-angle: #57606a;\n --color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;\n --color-prettylights-syntax-constant-other-reference-link: #0a3069;\n --color-fg-default: #24292f;\n --color-fg-muted: #57606a;\n --color-fg-subtle: #6e7781;\n --color-canvas-default: #ffffff;\n --color-canvas-subtle: #f6f8fa;\n --color-border-default: #d0d7de;\n --color-border-muted: hsl(210, 18%, 87%);\n --color-neutral-muted: rgba(175, 184, 193, 0.2);\n --color-accent-fg: #0969da;\n --color-accent-emphasis: #0969da;\n --color-attention-subtle: #fff8c5;\n --color-danger-fg: #cf222e;\n}\n.wmde-markdown {\n -webkit-text-size-adjust: 100%;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';\n font-size: 16px;\n line-height: 1.5;\n word-wrap: break-word;\n color: var(--color-fg-default);\n background-color: var(--color-canvas-default);\n}\n.wmde-markdown details,\n.wmde-markdown figcaption,\n.wmde-markdown figure {\n display: block;\n}\n.wmde-markdown summary {\n display: list-item;\n}\n.wmde-markdown [hidden] {\n display: none !important;\n}\n.wmde-markdown a {\n background-color: transparent;\n color: var(--color-accent-fg);\n text-decoration: none;\n}\n.wmde-markdown a:active,\n.wmde-markdown a:hover {\n outline-width: 0;\n}\n.wmde-markdown abbr[title] {\n border-bottom: none;\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n.wmde-markdown b,\n.wmde-markdown strong {\n font-weight: 600;\n}\n.wmde-markdown dfn {\n font-style: italic;\n}\n.wmde-markdown h1 {\n margin: 0.67em 0;\n font-weight: 600;\n padding-bottom: 0.3em;\n font-size: 2em;\n border-bottom: 1px solid var(--color-border-muted);\n}\n.wmde-markdown mark {\n background-color: var(--color-attention-subtle);\n color: var(--color-text-primary);\n}\n.wmde-markdown small {\n font-size: 90%;\n}\n.wmde-markdown sub,\n.wmde-markdown sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n.wmde-markdown sub {\n bottom: -0.25em;\n}\n.wmde-markdown sup {\n top: -0.5em;\n}\n.wmde-markdown img {\n display: inline-block;\n border-style: none;\n max-width: 100%;\n box-sizing: content-box;\n background-color: var(--color-canvas-default);\n}\n.wmde-markdown code,\n.wmde-markdown kbd,\n.wmde-markdown pre,\n.wmde-markdown samp {\n font-family: monospace, monospace;\n font-size: 1em;\n}\n.wmde-markdown figure {\n margin: 1em 40px;\n}\n.wmde-markdown hr {\n box-sizing: content-box;\n overflow: hidden;\n background: transparent;\n border: 0;\n border-bottom: 1px solid var(--color-border-muted);\n height: 0.25em;\n padding: 0;\n margin: 24px 0;\n background-color: var(--color-border-default);\n}\n.wmde-markdown input {\n font: inherit;\n margin: 0;\n overflow: visible;\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n}\n.wmde-markdown [type='button'],\n.wmde-markdown [type='reset'],\n.wmde-markdown [type='submit'] {\n -webkit-appearance: button;\n}\n.wmde-markdown [type='button']::-moz-focus-inner,\n.wmde-markdown [type='reset']::-moz-focus-inner,\n.wmde-markdown [type='submit']::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n.wmde-markdown [type='button']:-moz-focusring,\n.wmde-markdown [type='reset']:-moz-focusring,\n.wmde-markdown [type='submit']:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n.wmde-markdown [type='checkbox'],\n.wmde-markdown [type='radio'] {\n box-sizing: border-box;\n padding: 0;\n}\n.wmde-markdown [type='number']::-webkit-inner-spin-button,\n.wmde-markdown [type='number']::-webkit-outer-spin-button {\n height: auto;\n}\n.wmde-markdown [type='search'] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n}\n.wmde-markdown [type='search']::-webkit-search-cancel-button,\n.wmde-markdown [type='search']::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n.wmde-markdown ::-webkit-input-placeholder {\n color: inherit;\n opacity: 0.54;\n}\n.wmde-markdown ::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n}\n.wmde-markdown a:hover {\n text-decoration: underline;\n}\n.wmde-markdown hr::before {\n display: table;\n content: '';\n}\n.wmde-markdown hr::after {\n display: table;\n clear: both;\n content: '';\n}\n.wmde-markdown table {\n border-spacing: 0;\n border-collapse: collapse;\n display: block;\n width: max-content;\n max-width: 100%;\n}\n.wmde-markdown td,\n.wmde-markdown th {\n padding: 0;\n}\n.wmde-markdown details summary {\n cursor: pointer;\n}\n.wmde-markdown details:not([open]) > *:not(summary) {\n display: none !important;\n}\n.wmde-markdown kbd {\n display: inline-block;\n padding: 3px 5px;\n font: 11px ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;\n line-height: 10px;\n color: var(--color-fg-default);\n vertical-align: middle;\n background-color: var(--color-canvas-subtle);\n border: solid 1px var(--color-neutral-muted);\n border-bottom-color: var(--color-neutral-muted);\n border-radius: 6px;\n box-shadow: inset 0 -1px 0 var(--color-neutral-muted);\n}\n.wmde-markdown h1,\n.wmde-markdown h2,\n.wmde-markdown h3,\n.wmde-markdown h4,\n.wmde-markdown h5,\n.wmde-markdown h6 {\n margin-top: 24px;\n margin-bottom: 16px;\n font-weight: 600;\n line-height: 1.25;\n}\n.wmde-markdown td,\n.wmde-markdown th {\n padding: 0;\n}\n.wmde-markdown details summary {\n cursor: pointer;\n}\n.wmde-markdown details:not([open]) > *:not(summary) {\n display: none !important;\n}\n.wmde-markdown kbd {\n display: inline-block;\n padding: 3px 5px;\n font: 11px ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;\n line-height: 10px;\n color: var(--color-fg-default);\n vertical-align: middle;\n background-color: var(--color-canvas-subtle);\n border: solid 1px var(--color-neutral-muted);\n border-bottom-color: var(--color-neutral-muted);\n border-radius: 6px;\n box-shadow: inset 0 -1px 0 var(--color-neutral-muted);\n}\n.wmde-markdown h1,\n.wmde-markdown h2,\n.wmde-markdown h3,\n.wmde-markdown h4,\n.wmde-markdown h5,\n.wmde-markdown h6 {\n margin-top: 24px;\n margin-bottom: 16px;\n font-weight: 600;\n line-height: 1.25;\n}\n.wmde-markdown h2 {\n font-weight: 600;\n padding-bottom: 0.3em;\n font-size: 1.5em;\n border-bottom: 1px solid var(--color-border-muted);\n}\n.wmde-markdown h3 {\n font-weight: 600;\n font-size: 1.25em;\n}\n.wmde-markdown h4 {\n font-weight: 600;\n font-size: 1em;\n}\n.wmde-markdown h5 {\n font-weight: 600;\n font-size: 0.875em;\n}\n.wmde-markdown h6 {\n font-weight: 600;\n font-size: 0.85em;\n color: var(--color-fg-muted);\n}\n.wmde-markdown p {\n margin-top: 0;\n margin-bottom: 10px;\n}\n.wmde-markdown blockquote {\n margin: 0;\n padding: 0 1em;\n color: var(--color-fg-muted);\n border-left: 0.25em solid var(--color-border-default);\n}\n.wmde-markdown ul,\n.wmde-markdown ol {\n margin-top: 0;\n margin-bottom: 0;\n padding-left: 2em;\n}\n.wmde-markdown ol ol,\n.wmde-markdown ul ol {\n list-style-type: lower-roman;\n}\n.wmde-markdown ul ul ol,\n.wmde-markdown ul ol ol,\n.wmde-markdown ol ul ol,\n.wmde-markdown ol ol ol {\n list-style-type: lower-alpha;\n}\n.wmde-markdown dd {\n margin-left: 0;\n}\n.wmde-markdown tt,\n.wmde-markdown code {\n font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;\n font-size: 12px;\n}\n.wmde-markdown pre {\n margin-top: 0;\n margin-bottom: 0;\n font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;\n font-size: 12px;\n word-wrap: normal;\n}\n.wmde-markdown .octicon {\n display: inline-block;\n overflow: visible !important;\n vertical-align: text-bottom;\n fill: currentColor;\n}\n.wmde-markdown ::placeholder {\n color: var(--color-fg-subtle);\n opacity: 1;\n}\n.wmde-markdown input::-webkit-outer-spin-button,\n.wmde-markdown input::-webkit-inner-spin-button {\n margin: 0;\n -webkit-appearance: none;\n appearance: none;\n}\n.wmde-markdown [data-catalyst] {\n display: block;\n}\n.wmde-markdown::before {\n display: table;\n content: '';\n}\n.wmde-markdown::after {\n display: table;\n clear: both;\n content: '';\n}\n.wmde-markdown > *:first-child {\n margin-top: 0 !important;\n}\n.wmde-markdown > *:last-child {\n margin-bottom: 0 !important;\n}\n.wmde-markdown a:not([href]) {\n color: inherit;\n text-decoration: none;\n}\n.wmde-markdown .absent {\n color: var(--color-danger-fg);\n}\n.wmde-markdown a.anchor {\n float: left;\n padding-right: 4px;\n margin-left: -20px;\n line-height: 1;\n}\n.wmde-markdown .anchor:focus {\n outline: none;\n}\n.wmde-markdown p,\n.wmde-markdown blockquote,\n.wmde-markdown ul,\n.wmde-markdown ol,\n.wmde-markdown dl,\n.wmde-markdown table,\n.wmde-markdown pre,\n.wmde-markdown details {\n margin-top: 0;\n margin-bottom: 16px;\n}\n.wmde-markdown blockquote > :first-child {\n margin-top: 0;\n}\n.wmde-markdown blockquote > :last-child {\n margin-bottom: 0;\n}\n.wmde-markdown sup > a::before {\n content: '[';\n}\n.wmde-markdown sup > a::after {\n content: ']';\n}\n.wmde-markdown h1 .octicon-link,\n.wmde-markdown h2 .octicon-link,\n.wmde-markdown h3 .octicon-link,\n.wmde-markdown h4 .octicon-link,\n.wmde-markdown h5 .octicon-link,\n.wmde-markdown h6 .octicon-link {\n color: var(--color-fg-default);\n vertical-align: middle;\n visibility: hidden;\n}\n.wmde-markdown h1:hover .anchor,\n.wmde-markdown h2:hover .anchor,\n.wmde-markdown h3:hover .anchor,\n.wmde-markdown h4:hover .anchor,\n.wmde-markdown h5:hover .anchor,\n.wmde-markdown h6:hover .anchor {\n text-decoration: none;\n}\n.wmde-markdown h1:hover .anchor .octicon-link,\n.wmde-markdown h2:hover .anchor .octicon-link,\n.wmde-markdown h3:hover .anchor .octicon-link,\n.wmde-markdown h4:hover .anchor .octicon-link,\n.wmde-markdown h5:hover .anchor .octicon-link,\n.wmde-markdown h6:hover .anchor .octicon-link {\n visibility: visible;\n}\n.wmde-markdown h1 tt,\n.wmde-markdown h1 code,\n.wmde-markdown h2 tt,\n.wmde-markdown h2 code,\n.wmde-markdown h3 tt,\n.wmde-markdown h3 code,\n.wmde-markdown h4 tt,\n.wmde-markdown h4 code,\n.wmde-markdown h5 tt,\n.wmde-markdown h5 code,\n.wmde-markdown h6 tt,\n.wmde-markdown h6 code {\n padding: 0 0.2em;\n font-size: inherit;\n}\n.wmde-markdown ul.no-list,\n.wmde-markdown ol.no-list {\n padding: 0;\n list-style-type: none;\n}\n.wmde-markdown ol[type='1'] {\n list-style-type: decimal;\n}\n.wmde-markdown ol[type='a'] {\n list-style-type: lower-alpha;\n}\n.wmde-markdown ol[type='i'] {\n list-style-type: lower-roman;\n}\n.wmde-markdown div > ol:not([type]) {\n list-style-type: decimal;\n}\n.wmde-markdown ul ul,\n.wmde-markdown ul ol,\n.wmde-markdown ol ol,\n.wmde-markdown ol ul {\n margin-top: 0;\n margin-bottom: 0;\n}\n.wmde-markdown li > p {\n margin-top: 16px;\n}\n.wmde-markdown li + li {\n margin-top: 0.25em;\n}\n.wmde-markdown dl {\n padding: 0;\n}\n.wmde-markdown dl dt {\n padding: 0;\n margin-top: 16px;\n font-size: 1em;\n font-style: italic;\n font-weight: 600;\n}\n.wmde-markdown dl dd {\n padding: 0 16px;\n margin-bottom: 16px;\n}\n.wmde-markdown table th {\n font-weight: 600;\n}\n.wmde-markdown table th,\n.wmde-markdown table td {\n padding: 6px 13px;\n border: 1px solid var(--color-border-default);\n}\n.wmde-markdown table tr {\n background-color: var(--color-canvas-default);\n border-top: 1px solid var(--color-border-muted);\n}\n.wmde-markdown table tr:nth-child(2n) {\n background-color: var(--color-canvas-subtle);\n}\n.wmde-markdown table img {\n background-color: transparent;\n}\n.wmde-markdown img[align='right'] {\n padding-left: 20px;\n}\n.wmde-markdown img[align='left'] {\n padding-right: 20px;\n}\n.wmde-markdown .emoji {\n max-width: none;\n vertical-align: text-top;\n background-color: transparent;\n}\n.wmde-markdown span.frame {\n display: block;\n overflow: hidden;\n}\n.wmde-markdown span.frame > span {\n display: block;\n float: left;\n width: auto;\n padding: 7px;\n margin: 13px 0 0;\n overflow: hidden;\n border: 1px solid var(--color-border-default);\n}\n.wmde-markdown span.frame span img {\n display: block;\n float: left;\n}\n.wmde-markdown span.frame span span {\n display: block;\n padding: 5px 0 0;\n clear: both;\n color: var(--color-fg-default);\n}\n.wmde-markdown span.align-center {\n display: block;\n overflow: hidden;\n clear: both;\n}\n.wmde-markdown span.align-center > span {\n display: block;\n margin: 13px auto 0;\n overflow: hidden;\n text-align: center;\n}\n.wmde-markdown span.align-center span img {\n margin: 0 auto;\n text-align: center;\n}\n.wmde-markdown span.align-right {\n display: block;\n overflow: hidden;\n clear: both;\n}\n.wmde-markdown span.align-right > span {\n display: block;\n margin: 13px 0 0;\n overflow: hidden;\n text-align: right;\n}\n.wmde-markdown span.align-right span img {\n margin: 0;\n text-align: right;\n}\n.wmde-markdown span.float-left {\n display: block;\n float: left;\n margin-right: 13px;\n overflow: hidden;\n}\n.wmde-markdown span.float-left span {\n margin: 13px 0 0;\n}\n.wmde-markdown span.float-right {\n display: block;\n float: right;\n margin-left: 13px;\n overflow: hidden;\n}\n.wmde-markdown span.float-right > span {\n display: block;\n margin: 13px auto 0;\n overflow: hidden;\n text-align: right;\n}\n.wmde-markdown code,\n.wmde-markdown tt {\n padding: 0.2em 0.4em;\n margin: 0;\n font-size: 85%;\n background-color: var(--color-neutral-muted);\n border-radius: 6px;\n}\n.wmde-markdown code br,\n.wmde-markdown tt br {\n display: none;\n}\n.wmde-markdown del code {\n text-decoration: inherit;\n}\n.wmde-markdown pre code {\n font-size: 100%;\n}\n.wmde-markdown pre > code {\n padding: 0;\n margin: 0;\n word-break: normal;\n white-space: pre;\n background: transparent;\n border: 0;\n}\n.wmde-markdown pre {\n font-size: 85%;\n line-height: 1.45;\n background-color: var(--color-canvas-subtle);\n border-radius: 6px;\n}\n.wmde-markdown pre code,\n.wmde-markdown pre tt {\n display: inline;\n max-width: auto;\n padding: 0;\n margin: 0;\n overflow: visible;\n line-height: inherit;\n word-wrap: normal;\n background-color: transparent;\n border: 0;\n}\n.wmde-markdown pre > code {\n padding: 16px;\n overflow: auto;\n display: block;\n}\n.wmde-markdown pre > code::-webkit-scrollbar {\n background: transparent;\n width: 8px;\n height: 8px;\n}\n.wmde-markdown pre > code::-webkit-scrollbar-thumb {\n background: var(--color-fg-muted);\n border-radius: 10px;\n}\n.wmde-markdown .csv-data td,\n.wmde-markdown .csv-data th {\n padding: 5px;\n overflow: hidden;\n font-size: 12px;\n line-height: 1;\n text-align: left;\n white-space: nowrap;\n}\n.wmde-markdown .csv-data .blob-num {\n padding: 10px 8px 9px;\n text-align: right;\n background: var(--color-canvas-default);\n border: 0;\n}\n.wmde-markdown .csv-data tr {\n border-top: 0;\n}\n.wmde-markdown .csv-data th {\n font-weight: 600;\n background: var(--color-canvas-subtle);\n border-top: 0;\n}\n.wmde-markdown .footnotes {\n font-size: 12px;\n color: var(--color-fg-muted);\n border-top: 1px solid var(--color-border-default);\n}\n.wmde-markdown .footnotes ol {\n padding-left: 16px;\n}\n.wmde-markdown .footnotes li {\n position: relative;\n}\n.wmde-markdown .footnotes li:target::before {\n position: absolute;\n top: -8px;\n right: -8px;\n bottom: -8px;\n left: -24px;\n pointer-events: none;\n content: '';\n border: 2px solid var(--color-accent-emphasis);\n border-radius: 6px;\n}\n.wmde-markdown .footnotes li:target {\n color: var(--color-fg-default);\n}\n.wmde-markdown .footnotes .data-footnote-backref g-emoji {\n font-family: monospace;\n}\n.wmde-markdown .task-list-item {\n list-style-type: none;\n}\n.wmde-markdown .task-list-item label {\n font-weight: 400;\n}\n.wmde-markdown .task-list-item.enabled label {\n cursor: pointer;\n}\n.wmde-markdown .task-list-item + .wmde-markdown .task-list-item {\n margin-top: 3px;\n}\n.wmde-markdown .task-list-item .handle {\n display: none;\n}\n.wmde-markdown .task-list-item-checkbox,\n.wmde-markdown .contains-task-list input[type='checkbox'] {\n margin: 0 0.2em 0.25em -1.6em;\n vertical-align: middle;\n}\n.wmde-markdown .contains-task-list:dir(rtl) .task-list-item-checkbox,\n.wmde-markdown .contains-task-list:dir(rtl) input[type='checkbox'] {\n margin: 0 -1.6em 0.25em 0.2em;\n}\n.wmde-markdown ::-webkit-calendar-picker-indicator {\n filter: invert(50%);\n}\n.wmde-markdown pre {\n position: relative;\n}\n.wmde-markdown pre .copied {\n visibility: hidden;\n display: flex;\n position: absolute;\n cursor: pointer;\n color: var(--color-fg-default);\n top: 6px;\n right: 6px;\n border-radius: 5px;\n background: var(--color-border-default);\n padding: 6px;\n font-size: 12px;\n transition: all 0.3s;\n}\n.wmde-markdown pre .copied .octicon-copy {\n display: block;\n}\n.wmde-markdown pre .copied .octicon-check {\n display: none;\n}\n.wmde-markdown pre:hover .copied {\n visibility: visible;\n}\n.wmde-markdown pre:hover .copied:hover {\n background: var(--color-prettylights-syntax-entity-tag);\n color: var(--color-canvas-default);\n}\n.wmde-markdown pre:hover .copied:active,\n.wmde-markdown pre .copied.active {\n background: var(--color-copied-active-bg);\n color: var(--color-canvas-default);\n}\n.wmde-markdown pre .active .octicon-copy {\n display: none;\n}\n.wmde-markdown pre .active .octicon-check {\n display: block;\n}\n.wmde-markdown .markdown-alert {\n padding: 0.5rem 1em;\n color: inherit;\n margin-bottom: 16px;\n border-left: 0.25em solid var(--borderColor-default, var(--color-border-default));\n}\n.wmde-markdown .markdown-alert > :last-child {\n margin-bottom: 0 !important;\n}\n.wmde-markdown .markdown-alert .markdown-alert-title {\n display: flex;\n align-items: center;\n line-height: 1;\n font-weight: 500;\n font-size: 14px;\n}\n.wmde-markdown .markdown-alert .markdown-alert-title svg.octicon {\n margin-right: var(--base-size-8, 8px) !important;\n}\n.wmde-markdown .markdown-alert.markdown-alert-note {\n border-left-color: var(--borderColor-accent-emphasis, var(--color-accent-emphasis));\n}\n.wmde-markdown .markdown-alert.markdown-alert-note .markdown-alert-title {\n color: var(--fgColor-accent, var(--color-accent-fg));\n}\n.wmde-markdown .markdown-alert.markdown-alert-tip {\n border-left-color: var(--borderColor-success-emphasis, var(--color-success-emphasis));\n}\n.wmde-markdown .markdown-alert.markdown-alert-tip .markdown-alert-title {\n color: var(--fgColor-success, var(--color-success-fg));\n}\n.wmde-markdown .markdown-alert.markdown-alert-important {\n border-left-color: var(--borderColor-done-emphasis, var(--color-done-emphasis));\n}\n.wmde-markdown .markdown-alert.markdown-alert-important .markdown-alert-title {\n color: var(--fgColor-done, var(--color-done-fg));\n}\n.wmde-markdown .markdown-alert.markdown-alert-warning {\n border-left-color: var(--borderColor-attention-emphasis, var(--color-attention-emphasis));\n}\n.wmde-markdown .markdown-alert.markdown-alert-warning .markdown-alert-title {\n color: var(--fgColor-attention, var(--color-attention-fg));\n}\n.wmde-markdown .markdown-alert.markdown-alert-caution {\n border-left-color: var(--borderColor-danger-emphasis, var(--color-danger-emphasis));\n}\n.wmde-markdown .markdown-alert.markdown-alert-caution .markdown-alert-title {\n color: var(--fgColor-danger, var(--color-danger-fg));\n}\n.wmde-markdown .highlight-line {\n background-color: var(--color-neutral-muted);\n}\n.wmde-markdown .code-line.line-number::before {\n display: inline-block;\n width: 1rem;\n text-align: right;\n margin-right: 16px;\n color: var(--color-fg-subtle);\n content: attr(line);\n white-space: nowrap;\n}\n.wmde-markdown .token.comment,\n.wmde-markdown .token.prolog,\n.wmde-markdown .token.doctype,\n.wmde-markdown .token.cdata {\n color: var(--color-prettylights-syntax-comment);\n}\n.wmde-markdown .token.namespace {\n opacity: 0.7;\n}\n.wmde-markdown .token.property,\n.wmde-markdown .token.tag,\n.wmde-markdown .token.selector,\n.wmde-markdown .token.constant,\n.wmde-markdown .token.symbol,\n.wmde-markdown .token.deleted {\n color: var(--color-prettylights-syntax-entity-tag);\n}\n.wmde-markdown .token.maybe-class-name {\n color: var(--color-prettylights-syntax-variable);\n}\n.wmde-markdown .token.property-access,\n.wmde-markdown .token.operator,\n.wmde-markdown .token.boolean,\n.wmde-markdown .token.number,\n.wmde-markdown .token.selector .token.class,\n.wmde-markdown .token.attr-name,\n.wmde-markdown .token.string,\n.wmde-markdown .token.char,\n.wmde-markdown .token.builtin {\n color: var(--color-prettylights-syntax-constant);\n}\n.wmde-markdown .token.deleted {\n color: var(--color-prettylights-syntax-markup-deleted-text);\n}\n.wmde-markdown .code-line .token.deleted {\n background-color: var(--color-prettylights-syntax-markup-deleted-bg);\n}\n.wmde-markdown .token.inserted {\n color: var(--color-prettylights-syntax-markup-inserted-text);\n}\n.wmde-markdown .code-line .token.inserted {\n background-color: var(--color-prettylights-syntax-markup-inserted-bg);\n}\n.wmde-markdown .token.variable {\n color: var(--color-prettylights-syntax-constant);\n}\n.wmde-markdown .token.entity,\n.wmde-markdown .token.url,\n.wmde-markdown .language-css .token.string,\n.wmde-markdown .style .token.string {\n color: var(--color-prettylights-syntax-string);\n}\n.wmde-markdown .token.color,\n.wmde-markdown .token.atrule,\n.wmde-markdown .token.attr-value,\n.wmde-markdown .token.function,\n.wmde-markdown .token.class-name {\n color: var(--color-prettylights-syntax-string);\n}\n.wmde-markdown .token.rule,\n.wmde-markdown .token.regex,\n.wmde-markdown .token.important,\n.wmde-markdown .token.keyword {\n color: var(--color-prettylights-syntax-keyword);\n}\n.wmde-markdown .token.coord {\n color: var(--color-prettylights-syntax-meta-diff-range);\n}\n.wmde-markdown .token.important,\n.wmde-markdown .token.bold {\n font-weight: bold;\n}\n.wmde-markdown .token.italic {\n font-style: italic;\n}\n.wmde-markdown .token.entity {\n cursor: help;\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/131.7ba6f900.chunk.js b/static/js/131.e5348000.chunk.js similarity index 97% rename from static/js/131.7ba6f900.chunk.js rename to static/js/131.e5348000.chunk.js index 1595bc16c..d5b1e5055 100644 --- a/static/js/131.7ba6f900.chunk.js +++ b/static/js/131.e5348000.chunk.js @@ -1,4 +1,4 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[131],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,r)=>{"use strict";r.d(e,{A:()=>p});var s=r(7804),i=r(52),a=r(3235),o=r(9424);const n=a.Ay.div` +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[131],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,r)=>{"use strict";r.d(e,{A:()=>p});var s=r(7804),i=r(7584),a=r(3235),o=r(9424);const n=a.Ay.div` background-color: var(--color-theme-bg); box-shadow: 0 0 0 1px rgb(0 0 0 / 15%), @@ -42,4 +42,4 @@ padding-bottom: 12px; } `;class p extends s.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:r}=this.state.mdObj||{};return(0,o.jsxs)(h,{className:"wmde-markdown-var",children:[(0,o.jsxs)(n,{children:[this.editorUrl&&(0,o.jsx)(d,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"}),this.example&&(0,o.jsxs)(c,{children:[(0,o.jsx)("h3",{children:"Example"}),this.example]}),(0,o.jsx)(i.A,{data:{data:r,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,o.jsx)(d,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"})]}),(0,o.jsxs)(l,{children:[(0,o.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,o.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,o.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,o.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,o.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,o.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,o.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,o.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,o.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,o.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,o.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,o.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,o.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,o.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},7070:(t,e,r)=>{"use strict";r.r(e),r.d(e,{Component:()=>h});var s=r(7804),i=r(9571),a=r(3623),o=r(7980),n=r(9424);function d(){const{hsva:t,dispatch:e}=(0,s.useContext)(o.ob);return(0,n.jsx)("div",{style:{width:256},children:(0,n.jsx)(i.default,{hsva:t,onChange:r=>{e({hsva:{...t,...r}})}})})}class h extends a.A{constructor(){super(...arguments),this.editorUrl="/packages/color-shade-slider/README.md",this.getMdStr=()=>r.e(256).then(r.bind(r,6256)),this.example=(0,n.jsx)(d,{})}}},9571:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>c});var s=r(8102),i=r(9257),a=r(7804),o=r(2945),n=r(1636),d=r(9424),h=["prefixCls","className","onChange","direction","hsva"],l=a.forwardRef(((t,e)=>{var{prefixCls:r="w-color-saturation",className:a,onChange:l,direction:c="horizontal",hsva:p}=t,g=(0,i.A)(t,h),u=(0,o.hsvaToHslaString)((0,s.A)({},p,{a:1,v:100}));return(0,d.jsx)(n.default,(0,s.A)({ref:e},g,{className:r+" "+(a||""),hsva:{h:p.h,s:p.s,v:p.v,a:1-p.v/100},direction:c,background:"linear-gradient(to "+("horizontal"===c?"right":"bottom")+", "+u+", rgb(0, 0, 0))",onChange:(t,e)=>{l&&l({v:"horizontal"===c?100-100*e.left:100-100*e.top})}}))}));l.displayName="ShadeSlider";const c=l}}]); -//# sourceMappingURL=131.7ba6f900.chunk.js.map \ No newline at end of file +//# sourceMappingURL=131.e5348000.chunk.js.map \ No newline at end of file diff --git a/static/js/131.7ba6f900.chunk.js.map b/static/js/131.e5348000.chunk.js.map similarity index 98% rename from static/js/131.7ba6f900.chunk.js.map rename to static/js/131.e5348000.chunk.js.map index f392375f8..e9bee4280 100644 --- a/static/js/131.7ba6f900.chunk.js.map +++ b/static/js/131.e5348000.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/131.7ba6f900.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,yFCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,GAAG;;;;;;;;;;EAkB5BC,EAAYF,EAAAA,GAAOG,CAAC;;;;;;;;;;;;;EAepBC,EAAUJ,EAAAA,GAAOC,GAAG;;EAIpBI,EAASL,EAAAA,GAAOM,MAAM;;;;;;;;;;EAYtBC,EAAUP,EAAAA,GAAOC,GAAG;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AY,qBAAoB,UAChCxB,EACAkB,SAAUO,EAAS,UACnBC,EAAY,aAAY,KACxBd,GACE/B,EACJ8C,GAAQC,EAAAA,EAAAA,GAA8B/C,EAAOwC,GAC3CQ,GAAYC,EAAAA,EAAAA,mBAAiBC,EAAAA,EAAAA,GAAS,CAAC,EAAGnB,EAAM,CAClDvC,EAAG,EACH2D,EAAG,OAEL,OAAoB9B,EAAAA,EAAAA,KAAK+B,EAAAA,SAAOF,EAAAA,EAAAA,GAAS,CACvCR,IAAKA,GACJI,EAAO,CACR3B,UAAWwB,EAAY,KAAOxB,GAAa,IAC3CY,KAAM,CACJsB,EAAGtB,EAAKsB,EACRC,EAAGvB,EAAKuB,EACRH,EAAGpB,EAAKoB,EACR3D,EAAG,EAAIuC,EAAKoB,EAAI,KAElBN,UAAWA,EACXU,WAAY,uBAAuC,eAAdV,EAA6B,QAAU,UAAY,KAAOG,EAAY,kBAC3GX,SAAUA,CAACmB,EAAGC,KACZb,GAAaA,EAAU,CACrBO,EAAiB,eAAdN,EAA6B,IAAyB,IAAnBY,EAAYC,KAAa,IAAwB,IAAlBD,EAAYE,KACjF,IAEH,IAELvB,EAAYwB,YAAc,cAC1B,S","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/shade-slider/index.tsx","../../packages/color-shade-slider/esm/index.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport ShadeSlider from '@uiw/react-color-shade-slider';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...newShade } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-shade-slider/README.md';\n getMdStr = () => import('@uiw/react-color-shade-slider/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"onChange\", \"direction\", \"hsva\"];\nimport React from 'react';\nimport { hsvaToHslaString } from '@uiw/color-convert';\nimport Alpha from '@uiw/react-color-alpha';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar ShadeSlider = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-saturation',\n className,\n onChange: _onChange,\n direction = 'horizontal',\n hsva\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var colorFrom = hsvaToHslaString(_extends({}, hsva, {\n a: 1,\n v: 100\n }));\n return /*#__PURE__*/_jsx(Alpha, _extends({\n ref: ref\n }, other, {\n className: prefixCls + \" \" + (className || ''),\n hsva: {\n h: hsva.h,\n s: hsva.s,\n v: hsva.v,\n a: 1 - hsva.v / 100\n },\n direction: direction,\n background: \"linear-gradient(to \" + (direction === 'horizontal' ? 'right' : 'bottom') + \", \" + colorFrom + \", rgb(0, 0, 0))\",\n onChange: (_, interaction) => {\n _onChange && _onChange({\n v: direction === 'horizontal' ? 100 - interaction.left * 100 : 100 - interaction.top * 100\n });\n }\n }));\n});\nShadeSlider.displayName = 'ShadeSlider';\nexport default ShadeSlider;"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","ShadeSlider","onChange","newShade","arguments","_excluded","React","ref","prefixCls","_onChange","direction","other","_objectWithoutPropertiesLoose","colorFrom","hsvaToHslaString","_extends","v","Alpha","h","s","background","_","interaction","left","top","displayName"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/131.e5348000.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,2FCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,GAAG;;;;;;;;;;EAkB5BC,EAAYF,EAAAA,GAAOG,CAAC;;;;;;;;;;;;;EAepBC,EAAUJ,EAAAA,GAAOC,GAAG;;EAIpBI,EAASL,EAAAA,GAAOM,MAAM;;;;;;;;;;EAYtBC,EAAUP,EAAAA,GAAOC,GAAG;;;;;;;;EAUX,MAAMO,UAAiBC,EAAAA,UACpCC,WAAAA,CAAYC,GACVC,MAAMD,GAAO,KAKfE,eAAS,OACTC,cAAQ,OACRC,aAAO,EANLC,KAAKC,MAAQ,CACXC,MAAO,GAEX,CAIAC,iBAAAA,GACMH,KAAKF,UACPE,KAAKF,WAAWM,MAAMC,IACpBL,KAAKM,SAAS,CACZJ,MAAOG,EAAIE,QAAQC,OACnBC,MAAOJ,EAAIE,SACX,GAGR,CACAG,MAAAA,GACE,MAAM,OAAEF,EAAM,WAAEG,EAAU,KAAEC,GAAUZ,KAAKC,MAAMQ,OAAS,CAAC,EAC3D,OACEI,EAAAA,EAAAA,MAACzB,EAAO,CAAC0B,UAAU,oBAAmBC,SAAA,EACpCF,EAAAA,EAAAA,MAAC9B,EAAe,CAAAgC,SAAA,CACbf,KAAKH,YACJmB,EAAAA,EAAAA,KAAC9B,EAAS,CAAC+B,OAAO,SAASC,IAAI,aAAaC,KAAM,iDAAiDnB,KAAKH,YAAYkB,SAAC,mBAItHf,KAAKD,UACJc,EAAAA,EAAAA,MAACtB,EAAO,CAAAwB,SAAA,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ACjF,IAEH,IAELvB,EAAYwB,YAAc,cAC1B,S","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/shade-slider/index.tsx","../../packages/color-shade-slider/esm/index.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport ShadeSlider from '@uiw/react-color-shade-slider';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...newShade } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-shade-slider/README.md';\n getMdStr = () => import('@uiw/react-color-shade-slider/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"onChange\", \"direction\", \"hsva\"];\nimport React from 'react';\nimport { hsvaToHslaString } from '@uiw/color-convert';\nimport Alpha from '@uiw/react-color-alpha';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar ShadeSlider = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-saturation',\n className,\n onChange: _onChange,\n direction = 'horizontal',\n hsva\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var colorFrom = hsvaToHslaString(_extends({}, hsva, {\n a: 1,\n v: 100\n }));\n return /*#__PURE__*/_jsx(Alpha, _extends({\n ref: ref\n }, other, {\n className: prefixCls + \" \" + (className || ''),\n hsva: {\n h: hsva.h,\n s: hsva.s,\n v: hsva.v,\n a: 1 - hsva.v / 100\n },\n direction: direction,\n background: \"linear-gradient(to \" + (direction === 'horizontal' ? 'right' : 'bottom') + \", \" + colorFrom + \", rgb(0, 0, 0))\",\n onChange: (_, interaction) => {\n _onChange && _onChange({\n v: direction === 'horizontal' ? 100 - interaction.left * 100 : 100 - interaction.top * 100\n });\n }\n }));\n});\nShadeSlider.displayName = 'ShadeSlider';\nexport default ShadeSlider;"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","ShadeSlider","onChange","newShade","arguments","_excluded","React","ref","prefixCls","_onChange","direction","other","_objectWithoutPropertiesLoose","colorFrom","hsvaToHslaString","_extends","v","Alpha","h","s","background","_","interaction","left","top","displayName"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/241.9d3e8205.chunk.js b/static/js/241.6fc5765f.chunk.js similarity index 98% rename from static/js/241.9d3e8205.chunk.js rename to static/js/241.6fc5765f.chunk.js index 6444c2003..1b0dbbd3a 100644 --- a/static/js/241.9d3e8205.chunk.js +++ b/static/js/241.6fc5765f.chunk.js @@ -1,4 +1,4 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[241],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var o=r(7804),a=r(52),s=r(3235),i=r(9424);const n=s.Ay.div` +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[241],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var o=r(7804),a=r(7584),s=r(3235),i=r(9424);const n=s.Ay.div` background-color: var(--color-theme-bg); box-shadow: 0 0 0 1px rgb(0 0 0 / 15%), @@ -42,4 +42,4 @@ padding-bottom: 12px; } `;class c extends o.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:r}=this.state.mdObj||{};return(0,i.jsxs)(h,{className:"wmde-markdown-var",children:[(0,i.jsxs)(n,{children:[this.editorUrl&&(0,i.jsx)(l,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"}),this.example&&(0,i.jsxs)(p,{children:[(0,i.jsx)("h3",{children:"Example"}),this.example]}),(0,i.jsx)(a.A,{data:{data:r,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,i.jsx)(l,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"})]}),(0,i.jsxs)(d,{children:[(0,i.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,i.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,i.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,i.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,i.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,i.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,i.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,i.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,i.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,i.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,i.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,i.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,i.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,i.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},1232:(t,e,r)=>{"use strict";r.r(e),r.d(e,{Component:()=>h});var o=r(7804),a=r(2051),s=r(3623),i=r(7980),n=r(9424);function l(){const{hsva:t,dispatch:e}=(0,o.useContext)(i.ob);return(0,n.jsxs)(o.Fragment,{children:[(0,n.jsxs)("div",{style:{display:"flex",gap:"1rem"},children:[(0,n.jsx)(a.default,{color:t,onChange:r=>{e({hsva:{...t,...r.hsva}})}}),(0,n.jsx)(a.default,{color:t,placement:a.GithubPlacement.Top,onChange:r=>{e({hsva:{...t,...r.hsva}})}}),(0,n.jsx)(a.default,{color:t,placement:a.GithubPlacement.TopLeft,onChange:r=>{e({hsva:{...t,...r.hsva}})}})]}),(0,n.jsxs)("div",{style:{display:"flex",gap:"1rem",marginTop:20},children:[(0,n.jsx)(a.default,{placement:a.GithubPlacement.Left,color:t,onChange:r=>{e({hsva:{...t,...r.hsva}})}}),(0,n.jsx)(a.default,{color:t,placement:a.GithubPlacement.LeftTop,onChange:r=>{e({hsva:{...t,...r.hsva}})}}),(0,n.jsx)(a.default,{color:t,placement:a.GithubPlacement.LeftBottom,onChange:r=>{e({hsva:{...t,...r.hsva}})}})]}),(0,n.jsxs)("div",{style:{display:"flex",gap:"1rem",marginTop:20},children:[(0,n.jsx)(a.default,{placement:a.GithubPlacement.Right,color:t,onChange:r=>{e({hsva:{...t,...r.hsva}})}}),(0,n.jsx)(a.default,{color:t,placement:a.GithubPlacement.RightTop,onChange:r=>{e({hsva:{...t,...r.hsva}})}}),(0,n.jsx)(a.default,{color:t,placement:a.GithubPlacement.RightBottom,onChange:r=>{e({hsva:{...t,...r.hsva}})}})]}),(0,n.jsxs)("div",{style:{display:"flex",gap:"1rem",marginTop:20},children:[(0,n.jsx)(a.default,{placement:a.GithubPlacement.BottomLeft,color:t,onChange:r=>{e({hsva:{...t,...r.hsva}})}}),(0,n.jsx)(a.default,{color:t,placement:a.GithubPlacement.Bottom,onChange:r=>{e({hsva:{...t,...r.hsva}})}}),(0,n.jsx)(a.default,{color:t,placement:a.GithubPlacement.BottomRight,onChange:r=>{e({hsva:{...t,...r.hsva}})}})]})]})}class h extends s.A{constructor(){super(...arguments),this.editorUrl="/packages/color-github/README.md",this.getMdStr=()=>r.e(546).then(r.bind(r,2165)),this.example=(0,n.jsx)(l,{})}}},2051:(t,e,r)=>{"use strict";r.r(e),r.d(e,{GithubPlacement:()=>u,default:()=>x});var o=r(9520),a=r(8102),s=r(9257),i=r(7804),n=r(2945),l=r(6966),h=r(9424),d={marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25};function p(t){var{style:e,title:r,checked:o,color:s,onClick:n,rectProps:l}=t,p=(0,i.useRef)(null),c=(0,i.useCallback)((()=>{p.current.style.zIndex="2",p.current.style.outline="#fff solid 2px",p.current.style.boxShadow="rgb(0 0 0 / 25%) 0 0 5px 2px"}),[]),g=(0,i.useCallback)((()=>{o||(p.current.style.zIndex="0",p.current.style.outline="initial",p.current.style.boxShadow="initial")}),[o]),u=o?{zIndex:1,outline:"#fff solid 2px",boxShadow:"rgb(0 0 0 / 25%) 0 0 5px 2px"}:{zIndex:0};return(0,h.jsx)("div",(0,a.A)({ref:p,title:r},l,{onClick:n,onMouseEnter:c,onMouseLeave:g,style:(0,a.A)({},e,{marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25},d,u,null==l?void 0:l.style)}))}var c=["prefixCls","placement","className","style","color","colors","rectProps","onChange","rectRender"],g=["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],u=function(t){return t.Left="L",t.LeftTop="LT",t.LeftBottom="LB",t.Right="R",t.RightTop="RT",t.RightBottom="RB",t.Top="T",t.TopRight="TR",t.TopLeft="TL",t.Bottom="B",t.BottomLeft="BL",t.BottomRight="BR",t}({}),b=i.forwardRef(((t,e)=>{var{prefixCls:r="w-color-github",placement:d=u.TopRight,className:b,style:x,color:m,colors:f=g,rectProps:v={},onChange:j,rectRender:w}=t,C=(0,s.A)(t,c),B="string"===typeof m&&(0,n.validHex)(m)?(0,n.hexToHsva)(m):m,R=m?(0,n.hsvaToHex)(B):"",T=(0,a.A)({"--github-border":"1px solid rgba(0, 0, 0, 0.2)","--github-background-color":"#fff","--github-box-shadow":"rgb(0 0 0 / 15%) 0px 3px 12px","--github-arrow-border-color":"rgba(0, 0, 0, 0.15)",width:200,borderRadius:4,background:"var(--github-background-color)",boxShadow:"var(--github-box-shadow)",border:"var(--github-border)",position:"relative",padding:5},x),k={borderStyle:"solid",position:"absolute"},y=(0,a.A)({},k),L=(0,a.A)({},k);/^T/.test(d)&&(y.borderWidth="0 8px 8px",y.borderColor="transparent transparent var(--github-arrow-border-color)",L.borderWidth="0 7px 7px",L.borderColor="transparent transparent var(--github-background-color)"),d===u.TopRight&&(y.top=-8,L.top=-7),d===u.Top&&(y.top=-8,L.top=-7),d===u.TopLeft&&(y.top=-8,L.top=-7),/^B/.test(d)&&(y.borderWidth="8px 8px 0",y.borderColor="var(--github-arrow-border-color) transparent transparent",L.borderWidth="7px 7px 0",L.borderColor="var(--github-background-color) transparent transparent",d===u.BottomRight&&(y.top="100%",L.top="100%"),d===u.Bottom&&(y.top="100%",L.top="100%"),d===u.BottomLeft&&(y.top="100%",L.top="100%")),/^(B|T)/.test(d)&&(d!==u.Top&&d!==u.Bottom||(y.left="50%",y.marginLeft=-8,L.left="50%",L.marginLeft=-7),d!==u.TopRight&&d!==u.BottomRight||(y.right=10,L.right=11),d!==u.TopLeft&&d!==u.BottomLeft||(y.left=7,L.left=8)),/^L/.test(d)&&(y.borderWidth="8px 8px 8px 0",y.borderColor="transparent var(--github-arrow-border-color) transparent transparent",L.borderWidth="7px 7px 7px 0",L.borderColor="transparent var(--github-background-color) transparent transparent",y.left=-8,L.left=-7),/^R/.test(d)&&(y.borderWidth="8px 0 8px 8px",y.borderColor="transparent transparent transparent var(--github-arrow-border-color)",L.borderWidth="7px 0 7px 7px",L.borderColor="transparent transparent transparent var(--github-background-color)",y.right=-8,L.right=-7),/^(L|R)/.test(d)&&(d!==u.RightTop&&d!==u.LeftTop||(y.top=5,L.top=6),d!==u.Left&&d!==u.Right||(y.top="50%",L.top="50%",y.marginTop=-8,L.marginTop=-7),d!==u.LeftBottom&&d!==u.RightBottom||(y.top="100%",L.top="100%",y.marginTop=-21,L.marginTop=-20));return(0,h.jsx)(l.default,(0,a.A)({ref:e,className:[r,b].filter(Boolean).join(" "),colors:f,color:R,rectRender:t=>{var e=(0,a.A)({},((0,o.A)(t),t)),r=w&&w((0,a.A)({},e));return r||(0,h.jsx)(p,(0,a.A)({},e,{rectProps:v}))}},C,{onChange:t=>j&&j((0,n.color)(t)),style:T,rectProps:{style:{marginRight:0,marginBottom:0,borderRadius:0,height:25,width:25}},addonBefore:(0,h.jsxs)(i.Fragment,{children:[(0,h.jsx)("div",{style:y}),(0,h.jsx)("div",{style:L})]})}))}));b.displayName="Github";const x=b},9520:(t,e,r)=>{"use strict";function o(t){if(null==t)throw new TypeError("Cannot destructure "+t)}r.d(e,{A:()=>o})}}]); -//# sourceMappingURL=241.9d3e8205.chunk.js.map \ No newline at end of file +//# sourceMappingURL=241.6fc5765f.chunk.js.map \ No newline at end of file diff --git a/static/js/241.9d3e8205.chunk.js.map b/static/js/241.6fc5765f.chunk.js.map similarity index 99% rename from static/js/241.9d3e8205.chunk.js.map rename to static/js/241.6fc5765f.chunk.js.map index 7aeaccf36..623beaa7c 100644 --- a/static/js/241.9d3e8205.chunk.js.map +++ b/static/js/241.6fc5765f.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/241.9d3e8205.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,yFCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,GAAG;;;;;;;;;;EAkB5BC,EAAYF,EAAAA,GAAOG,CAAC;;;;;;;;;;;;;EAepBC,EAAUJ,EAAAA,GAAOC,GAAG;;EAIpBI,EAASL,EAAAA,GAAOM,MAAM;;;;;;;;;;EAYtBC,EAAUP,EAAAA,GAAOC,GAAG;;;;;;;;EAUX,MAAMO,UAAiBC,EAAAA,UACpCC,WAAAA,CAAYC,GACVC,MAAMD,GAAO,KAKfE,eAAS,OACTC,cAAQ,OACRC,aAAO,EANLC,KAAKC,MAAQ,CACXC,MAAO,GAEX,CAIAC,iBAAAA,GACMH,KAAKF,UACPE,KAAKF,WAAWM,MAAMC,IACpBL,KAAKM,SAAS,CACZJ,MAAOG,EAAIE,QAAQC,OACnBC,MAAOJ,EAAIE,SACX,GAGR,CACAG,MAAAA,GACE,MAAM,OAAEF,EAAM,WAAEG,EAAU,KAAEC,GAAUZ,KAAKC,MAAMQ,OAAS,CAAC,EAC3D,OACEI,EAAAA,EAAAA,MAACzB,EAAO,CAAC0B,UAAU,oBAAmBC,SAAA,EACpCF,EAAAA,EAAAA,MAAC9B,EAAe,CAAAgC,SAAA,CACbf,KAAKH,YACJmB,EAAAA,EAAAA,KAAC9B,EAAS,CAAC+B,OAAO,SAASC,IAAI,aAAaC,KAAM,iDAAiDnB,KAAKH,YAAYkB,SAAC,mBAItH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,C","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/github/index.tsx","../../packages/color-github/esm/Point.js","../../packages/color-github/esm/index.js","../../node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { Fragment, useContext } from 'react';\nimport Github, { GithubPlacement } from '@uiw/react-color-github';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n \n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-github/README.md';\n getMdStr = () => import('@uiw/react-color-github/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useCallback } from 'react';\nimport { useRef } from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar defalutStyle = {\n marginRight: 0,\n marginBottom: 0,\n borderRadius: 0,\n boxSizing: 'border-box',\n height: 25,\n width: 25\n};\nexport default function Point(_ref) {\n var {\n style,\n title,\n checked,\n color,\n onClick,\n rectProps\n } = _ref;\n var btn = useRef(null);\n var handleMouseEnter = useCallback(() => {\n btn.current.style['zIndex'] = '2';\n btn.current.style['outline'] = '#fff solid 2px';\n btn.current.style['boxShadow'] = 'rgb(0 0 0 / 25%) 0 0 5px 2px';\n }, []);\n var handleMouseLeave = useCallback(() => {\n if (!checked) {\n btn.current.style['zIndex'] = '0';\n btn.current.style['outline'] = 'initial';\n btn.current.style['boxShadow'] = 'initial';\n }\n }, [checked]);\n var rectStyle = checked ? {\n zIndex: 1,\n outline: '#fff solid 2px',\n boxShadow: 'rgb(0 0 0 / 25%) 0 0 5px 2px'\n } : {\n zIndex: 0\n };\n return /*#__PURE__*/_jsx(\"div\", _extends({\n ref: btn,\n title: title\n }, rectProps, {\n onClick: onClick,\n onMouseEnter: handleMouseEnter,\n onMouseLeave: handleMouseLeave,\n style: _extends({}, style, {\n marginRight: 0,\n marginBottom: 0,\n borderRadius: 0,\n boxSizing: 'border-box',\n height: 25,\n width: 25\n }, defalutStyle, rectStyle, rectProps == null ? void 0 : rectProps.style)\n }));\n}","import _objectDestructuringEmpty from \"@babel/runtime/helpers/objectDestructuringEmpty\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"placement\", \"className\", \"style\", \"color\", \"colors\", \"rectProps\", \"onChange\", \"rectRender\"];\nimport React, { Fragment } from 'react';\nimport { color as handleColor, validHex, hexToHsva, hsvaToHex } from '@uiw/color-convert';\nimport Swatch from '@uiw/react-color-swatch';\nimport Point from './Point';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar CORLER_HEX = ['#B80000', '#DB3E00', '#FCCB00', '#008B02', '#006B76', '#1273DE', '#004DCF', '#5300EB', '#EB9694', '#FAD0C3', '#FEF3BD', '#C1E1C5', '#BEDADC', '#C4DEF6', '#BED3F3', '#D4C4FB'];\nexport var GithubPlacement = /*#__PURE__*/function (GithubPlacement) {\n GithubPlacement[\"Left\"] = \"L\";\n GithubPlacement[\"LeftTop\"] = \"LT\";\n GithubPlacement[\"LeftBottom\"] = \"LB\";\n GithubPlacement[\"Right\"] = \"R\";\n GithubPlacement[\"RightTop\"] = \"RT\";\n GithubPlacement[\"RightBottom\"] = \"RB\";\n GithubPlacement[\"Top\"] = \"T\";\n GithubPlacement[\"TopRight\"] = \"TR\";\n GithubPlacement[\"TopLeft\"] = \"TL\";\n GithubPlacement[\"Bottom\"] = \"B\";\n GithubPlacement[\"BottomLeft\"] = \"BL\";\n GithubPlacement[\"BottomRight\"] = \"BR\";\n return GithubPlacement;\n}({});\nvar Github = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-github',\n placement = GithubPlacement.TopRight,\n className,\n style,\n color,\n colors = CORLER_HEX,\n rectProps = {},\n onChange,\n rectRender\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color;\n var hex = color ? hsvaToHex(hsva) : '';\n var handleChange = hsv => onChange && onChange(handleColor(hsv));\n var styleWrapper = _extends({\n '--github-border': '1px solid rgba(0, 0, 0, 0.2)',\n '--github-background-color': '#fff',\n '--github-box-shadow': 'rgb(0 0 0 / 15%) 0px 3px 12px',\n '--github-arrow-border-color': 'rgba(0, 0, 0, 0.15)',\n width: 200,\n borderRadius: 4,\n background: 'var(--github-background-color)',\n boxShadow: 'var(--github-box-shadow)',\n border: 'var(--github-border)',\n position: 'relative',\n padding: 5\n }, style);\n var rStyle = {\n borderStyle: 'solid',\n position: 'absolute'\n };\n var arrBrStyl = _extends({}, rStyle);\n var arrStyl = _extends({}, rStyle);\n if (/^T/.test(placement)) {\n arrBrStyl.borderWidth = '0 8px 8px';\n arrBrStyl.borderColor = 'transparent transparent var(--github-arrow-border-color)';\n arrStyl.borderWidth = '0 7px 7px';\n arrStyl.borderColor = 'transparent transparent var(--github-background-color)';\n }\n if (placement === GithubPlacement.TopRight) {\n arrBrStyl.top = -8;\n arrStyl.top = -7;\n }\n if (placement === GithubPlacement.Top) {\n arrBrStyl.top = -8;\n arrStyl.top = -7;\n }\n if (placement === GithubPlacement.TopLeft) {\n arrBrStyl.top = -8;\n arrStyl.top = -7;\n }\n if (/^B/.test(placement)) {\n arrBrStyl.borderWidth = '8px 8px 0';\n arrBrStyl.borderColor = 'var(--github-arrow-border-color) transparent transparent';\n arrStyl.borderWidth = '7px 7px 0';\n arrStyl.borderColor = 'var(--github-background-color) transparent transparent';\n if (placement === GithubPlacement.BottomRight) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n }\n if (placement === GithubPlacement.Bottom) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n }\n if (placement === GithubPlacement.BottomLeft) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n }\n }\n if (/^(B|T)/.test(placement)) {\n if (placement === GithubPlacement.Top || placement === GithubPlacement.Bottom) {\n arrBrStyl.left = '50%';\n arrBrStyl.marginLeft = -8;\n arrStyl.left = '50%';\n arrStyl.marginLeft = -7;\n }\n if (placement === GithubPlacement.TopRight || placement === GithubPlacement.BottomRight) {\n arrBrStyl.right = 10;\n arrStyl.right = 11;\n }\n if (placement === GithubPlacement.TopLeft || placement === GithubPlacement.BottomLeft) {\n arrBrStyl.left = 7;\n arrStyl.left = 8;\n }\n }\n if (/^L/.test(placement)) {\n arrBrStyl.borderWidth = '8px 8px 8px 0';\n arrBrStyl.borderColor = 'transparent var(--github-arrow-border-color) transparent transparent';\n arrStyl.borderWidth = '7px 7px 7px 0';\n arrStyl.borderColor = 'transparent var(--github-background-color) transparent transparent';\n arrBrStyl.left = -8;\n arrStyl.left = -7;\n }\n if (/^R/.test(placement)) {\n arrBrStyl.borderWidth = '8px 0 8px 8px';\n arrBrStyl.borderColor = 'transparent transparent transparent var(--github-arrow-border-color)';\n arrStyl.borderWidth = '7px 0 7px 7px';\n arrStyl.borderColor = 'transparent transparent transparent var(--github-background-color)';\n arrBrStyl.right = -8;\n arrStyl.right = -7;\n }\n if (/^(L|R)/.test(placement)) {\n if (placement === GithubPlacement.RightTop || placement === GithubPlacement.LeftTop) {\n arrBrStyl.top = 5;\n arrStyl.top = 6;\n }\n if (placement === GithubPlacement.Left || placement === GithubPlacement.Right) {\n arrBrStyl.top = '50%';\n arrStyl.top = '50%';\n arrBrStyl.marginTop = -8;\n arrStyl.marginTop = -7;\n }\n if (placement === GithubPlacement.LeftBottom || placement === GithubPlacement.RightBottom) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n arrBrStyl.marginTop = -21;\n arrStyl.marginTop = -20;\n }\n }\n var render = _ref => {\n var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));\n var handle = rectRender && rectRender(_extends({}, props));\n if (handle) return handle;\n return /*#__PURE__*/_jsx(Point, _extends({}, props, {\n rectProps: rectProps\n }));\n };\n return /*#__PURE__*/_jsx(Swatch, _extends({\n ref: ref,\n className: [prefixCls, className].filter(Boolean).join(' '),\n colors: colors,\n color: hex,\n rectRender: render\n }, other, {\n onChange: handleChange,\n style: styleWrapper,\n rectProps: {\n style: {\n marginRight: 0,\n marginBottom: 0,\n borderRadius: 0,\n height: 25,\n width: 25\n }\n },\n addonBefore: /*#__PURE__*/_jsxs(Fragment, {\n children: [/*#__PURE__*/_jsx(\"div\", {\n style: arrBrStyl\n }), /*#__PURE__*/_jsx(\"div\", {\n style: arrStyl\n })]\n })\n }));\n});\nGithub.displayName = 'Github';\nexport default Github;","function _objectDestructuringEmpty(t) {\n if (null == t) throw new TypeError(\"Cannot destructure \" + t);\n}\nexport { _objectDestructuringEmpty as default };"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","Fragment","display","gap","Github","color","onChange","placement","GithubPlacement","Top","TopLeft","marginTop","Left","LeftTop","LeftBottom","Right","RightTop","RightBottom","BottomLeft","Bottom","BottomRight","arguments","defalutStyle","marginRight","marginBottom","borderRadius","boxSizing","height","width","Point","_ref","title","checked","onClick","rectProps","btn","useRef","handleMouseEnter","useCallback","current","handleMouseLeave","rectStyle","zIndex","outline","_extends","ref","onMouseEnter","onMouseLeave","_excluded","CORLER_HEX","React","prefixCls","TopRight","colors","rectRender","other","_objectWithoutPropertiesLoose","validHex","hexToHsva","hex","hsvaToHex","styleWrapper","background","position","padding","rStyle","borderStyle","arrBrStyl","arrStyl","test","borderWidth","borderColor","top","left","marginLeft","right","Swatch","filter","Boolean","join","_objectDestructuringEmpty","handle","hsv","handleColor","addonBefore","displayName","t","TypeError"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/241.6fc5765f.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,2FCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,GAAG;;;;;;;;;;EAkB5BC,EAAYF,EAAAA,GAAOG,CAAC;;;;;;;;;;;;;EAepBC,EAAUJ,EAAAA,GAAOC,GAAG;;EAIpBI,EAASL,EAAAA,GAAOM,MAAM;;;;;;;;;;EAYtBC,EAAUP,EAAAA,GAAOC,GAAG;;;;;;;;EAUX,MAAMO,UAAiB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AA,GAAS,CAAC,EAAG9E,IACnD,OAAImH,IACgB9F,EAAAA,EAAAA,KAAK0C,GAAOe,EAAAA,EAAAA,GAAS,CAAC,EAAG9E,EAAO,CAClDoE,UAAWA,IACV,GAQFqB,EAAO,CACRjD,SAzHiB4E,GAAO5E,GAAYA,GAAS6E,EAAAA,EAAAA,OAAYD,IA0HzD1F,MAAOqE,EACP3B,UAAW,CACT1C,MAAO,CACL+B,YAAa,EACbC,aAAc,EACdC,aAAc,EACdE,OAAQ,GACRC,MAAO,KAGXwD,aAA0BpG,EAAAA,EAAAA,MAAMiB,EAAAA,SAAU,CACxCf,SAAU,EAAcC,EAAAA,EAAAA,KAAK,MAAO,CAClCK,MAAO2E,KACQhF,EAAAA,EAAAA,KAAK,MAAO,CAC3BK,MAAO4E,SAGV,IAELhE,EAAOiF,YAAc,SACrB,S,8BCtLA,SAASL,EAA0BM,GACjC,GAAI,MAAQA,EAAG,MAAM,IAAIC,UAAU,sBAAwBD,EAC7D,C","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/github/index.tsx","../../packages/color-github/esm/Point.js","../../packages/color-github/esm/index.js","../../node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { Fragment, useContext } from 'react';\nimport Github, { GithubPlacement } from '@uiw/react-color-github';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n \n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-github/README.md';\n getMdStr = () => import('@uiw/react-color-github/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useCallback } from 'react';\nimport { useRef } from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar defalutStyle = {\n marginRight: 0,\n marginBottom: 0,\n borderRadius: 0,\n boxSizing: 'border-box',\n height: 25,\n width: 25\n};\nexport default function Point(_ref) {\n var {\n style,\n title,\n checked,\n color,\n onClick,\n rectProps\n } = _ref;\n var btn = useRef(null);\n var handleMouseEnter = useCallback(() => {\n btn.current.style['zIndex'] = '2';\n btn.current.style['outline'] = '#fff solid 2px';\n btn.current.style['boxShadow'] = 'rgb(0 0 0 / 25%) 0 0 5px 2px';\n }, []);\n var handleMouseLeave = useCallback(() => {\n if (!checked) {\n btn.current.style['zIndex'] = '0';\n btn.current.style['outline'] = 'initial';\n btn.current.style['boxShadow'] = 'initial';\n }\n }, [checked]);\n var rectStyle = checked ? {\n zIndex: 1,\n outline: '#fff solid 2px',\n boxShadow: 'rgb(0 0 0 / 25%) 0 0 5px 2px'\n } : {\n zIndex: 0\n };\n return /*#__PURE__*/_jsx(\"div\", _extends({\n ref: btn,\n title: title\n }, rectProps, {\n onClick: onClick,\n onMouseEnter: handleMouseEnter,\n onMouseLeave: handleMouseLeave,\n style: _extends({}, style, {\n marginRight: 0,\n marginBottom: 0,\n borderRadius: 0,\n boxSizing: 'border-box',\n height: 25,\n width: 25\n }, defalutStyle, rectStyle, rectProps == null ? void 0 : rectProps.style)\n }));\n}","import _objectDestructuringEmpty from \"@babel/runtime/helpers/objectDestructuringEmpty\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"placement\", \"className\", \"style\", \"color\", \"colors\", \"rectProps\", \"onChange\", \"rectRender\"];\nimport React, { Fragment } from 'react';\nimport { color as handleColor, validHex, hexToHsva, hsvaToHex } from '@uiw/color-convert';\nimport Swatch from '@uiw/react-color-swatch';\nimport Point from './Point';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar CORLER_HEX = ['#B80000', '#DB3E00', '#FCCB00', '#008B02', '#006B76', '#1273DE', '#004DCF', '#5300EB', '#EB9694', '#FAD0C3', '#FEF3BD', '#C1E1C5', '#BEDADC', '#C4DEF6', '#BED3F3', '#D4C4FB'];\nexport var GithubPlacement = /*#__PURE__*/function (GithubPlacement) {\n GithubPlacement[\"Left\"] = \"L\";\n GithubPlacement[\"LeftTop\"] = \"LT\";\n GithubPlacement[\"LeftBottom\"] = \"LB\";\n GithubPlacement[\"Right\"] = \"R\";\n GithubPlacement[\"RightTop\"] = \"RT\";\n GithubPlacement[\"RightBottom\"] = \"RB\";\n GithubPlacement[\"Top\"] = \"T\";\n GithubPlacement[\"TopRight\"] = \"TR\";\n GithubPlacement[\"TopLeft\"] = \"TL\";\n GithubPlacement[\"Bottom\"] = \"B\";\n GithubPlacement[\"BottomLeft\"] = \"BL\";\n GithubPlacement[\"BottomRight\"] = \"BR\";\n return GithubPlacement;\n}({});\nvar Github = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-github',\n placement = GithubPlacement.TopRight,\n className,\n style,\n color,\n colors = CORLER_HEX,\n rectProps = {},\n onChange,\n rectRender\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color;\n var hex = color ? hsvaToHex(hsva) : '';\n var handleChange = hsv => onChange && onChange(handleColor(hsv));\n var styleWrapper = _extends({\n '--github-border': '1px solid rgba(0, 0, 0, 0.2)',\n '--github-background-color': '#fff',\n '--github-box-shadow': 'rgb(0 0 0 / 15%) 0px 3px 12px',\n '--github-arrow-border-color': 'rgba(0, 0, 0, 0.15)',\n width: 200,\n borderRadius: 4,\n background: 'var(--github-background-color)',\n boxShadow: 'var(--github-box-shadow)',\n border: 'var(--github-border)',\n position: 'relative',\n padding: 5\n }, style);\n var rStyle = {\n borderStyle: 'solid',\n position: 'absolute'\n };\n var arrBrStyl = _extends({}, rStyle);\n var arrStyl = _extends({}, rStyle);\n if (/^T/.test(placement)) {\n arrBrStyl.borderWidth = '0 8px 8px';\n arrBrStyl.borderColor = 'transparent transparent var(--github-arrow-border-color)';\n arrStyl.borderWidth = '0 7px 7px';\n arrStyl.borderColor = 'transparent transparent var(--github-background-color)';\n }\n if (placement === GithubPlacement.TopRight) {\n arrBrStyl.top = -8;\n arrStyl.top = -7;\n }\n if (placement === GithubPlacement.Top) {\n arrBrStyl.top = -8;\n arrStyl.top = -7;\n }\n if (placement === GithubPlacement.TopLeft) {\n arrBrStyl.top = -8;\n arrStyl.top = -7;\n }\n if (/^B/.test(placement)) {\n arrBrStyl.borderWidth = '8px 8px 0';\n arrBrStyl.borderColor = 'var(--github-arrow-border-color) transparent transparent';\n arrStyl.borderWidth = '7px 7px 0';\n arrStyl.borderColor = 'var(--github-background-color) transparent transparent';\n if (placement === GithubPlacement.BottomRight) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n }\n if (placement === GithubPlacement.Bottom) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n }\n if (placement === GithubPlacement.BottomLeft) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n }\n }\n if (/^(B|T)/.test(placement)) {\n if (placement === GithubPlacement.Top || placement === GithubPlacement.Bottom) {\n arrBrStyl.left = '50%';\n arrBrStyl.marginLeft = -8;\n arrStyl.left = '50%';\n arrStyl.marginLeft = -7;\n }\n if (placement === GithubPlacement.TopRight || placement === GithubPlacement.BottomRight) {\n arrBrStyl.right = 10;\n arrStyl.right = 11;\n }\n if (placement === GithubPlacement.TopLeft || placement === GithubPlacement.BottomLeft) {\n arrBrStyl.left = 7;\n arrStyl.left = 8;\n }\n }\n if (/^L/.test(placement)) {\n arrBrStyl.borderWidth = '8px 8px 8px 0';\n arrBrStyl.borderColor = 'transparent var(--github-arrow-border-color) transparent transparent';\n arrStyl.borderWidth = '7px 7px 7px 0';\n arrStyl.borderColor = 'transparent var(--github-background-color) transparent transparent';\n arrBrStyl.left = -8;\n arrStyl.left = -7;\n }\n if (/^R/.test(placement)) {\n arrBrStyl.borderWidth = '8px 0 8px 8px';\n arrBrStyl.borderColor = 'transparent transparent transparent var(--github-arrow-border-color)';\n arrStyl.borderWidth = '7px 0 7px 7px';\n arrStyl.borderColor = 'transparent transparent transparent var(--github-background-color)';\n arrBrStyl.right = -8;\n arrStyl.right = -7;\n }\n if (/^(L|R)/.test(placement)) {\n if (placement === GithubPlacement.RightTop || placement === GithubPlacement.LeftTop) {\n arrBrStyl.top = 5;\n arrStyl.top = 6;\n }\n if (placement === GithubPlacement.Left || placement === GithubPlacement.Right) {\n arrBrStyl.top = '50%';\n arrStyl.top = '50%';\n arrBrStyl.marginTop = -8;\n arrStyl.marginTop = -7;\n }\n if (placement === GithubPlacement.LeftBottom || placement === GithubPlacement.RightBottom) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n arrBrStyl.marginTop = -21;\n arrStyl.marginTop = -20;\n }\n }\n var render = _ref => {\n var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));\n var handle = rectRender && rectRender(_extends({}, props));\n if (handle) return handle;\n return /*#__PURE__*/_jsx(Point, _extends({}, props, {\n rectProps: rectProps\n }));\n };\n return /*#__PURE__*/_jsx(Swatch, _extends({\n ref: ref,\n className: [prefixCls, className].filter(Boolean).join(' '),\n colors: colors,\n color: hex,\n rectRender: render\n }, other, {\n onChange: handleChange,\n style: styleWrapper,\n rectProps: {\n style: {\n marginRight: 0,\n marginBottom: 0,\n borderRadius: 0,\n height: 25,\n width: 25\n }\n },\n addonBefore: /*#__PURE__*/_jsxs(Fragment, {\n children: [/*#__PURE__*/_jsx(\"div\", {\n style: arrBrStyl\n }), /*#__PURE__*/_jsx(\"div\", {\n style: arrStyl\n })]\n })\n }));\n});\nGithub.displayName = 'Github';\nexport default Github;","function _objectDestructuringEmpty(t) {\n if (null == t) throw new TypeError(\"Cannot destructure \" + t);\n}\nexport { _objectDestructuringEmpty as default };"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","Fragment","display","gap","Github","color","onChange","placement","GithubPlacement","Top","TopLeft","marginTop","Left","LeftTop","LeftBottom","Right","RightTop","RightBottom","BottomLeft","Bottom","BottomRight","arguments","defalutStyle","marginRight","marginBottom","borderRadius","boxSizing","height","width","Point","_ref","title","checked","onClick","rectProps","btn","useRef","handleMouseEnter","useCallback","current","handleMouseLeave","rectStyle","zIndex","outline","_extends","ref","onMouseEnter","onMouseLeave","_excluded","CORLER_HEX","React","prefixCls","TopRight","colors","rectRender","other","_objectWithoutPropertiesLoose","validHex","hexToHsva","hex","hsvaToHex","styleWrapper","background","position","padding","rStyle","borderStyle","arrBrStyl","arrStyl","test","borderWidth","borderColor","top","left","marginLeft","right","Swatch","filter","Boolean","join","_objectDestructuringEmpty","handle","hsv","handleColor","addonBefore","displayName","t","TypeError"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/288.b1130039.chunk.js b/static/js/288.9ab27c56.chunk.js similarity index 97% rename from static/js/288.b1130039.chunk.js rename to static/js/288.9ab27c56.chunk.js index 5d6088f02..7ff267fcb 100644 --- a/static/js/288.b1130039.chunk.js +++ b/static/js/288.9ab27c56.chunk.js @@ -1,4 +1,4 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[288],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,s)=>{"use strict";s.d(e,{A:()=>p});var r=s(7804),i=s(52),o=s(3235),a=s(9424);const n=o.Ay.div` +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[288],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,s)=>{"use strict";s.d(e,{A:()=>p});var r=s(7804),i=s(7584),o=s(3235),a=s(9424);const n=o.Ay.div` background-color: var(--color-theme-bg); box-shadow: 0 0 0 1px rgb(0 0 0 / 15%), @@ -42,4 +42,4 @@ padding-bottom: 12px; } `;class p extends r.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:s}=this.state.mdObj||{};return(0,a.jsxs)(h,{className:"wmde-markdown-var",children:[(0,a.jsxs)(n,{children:[this.editorUrl&&(0,a.jsx)(d,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"}),this.example&&(0,a.jsxs)(c,{children:[(0,a.jsx)("h3",{children:"Example"}),this.example]}),(0,a.jsx)(i.A,{data:{data:s,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,a.jsx)(d,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"})]}),(0,a.jsxs)(l,{children:[(0,a.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,a.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,a.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,a.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},2329:(t,e,s)=>{"use strict";s.r(e),s.d(e,{Component:()=>h});var r=s(7804),i=s(4342),o=s(3623),a=s(7980),n=s(9424);function d(){const{hsva:t,dispatch:e}=(0,r.useContext)(a.ob);return(0,n.jsx)("div",{style:{width:256},children:(0,n.jsx)(i.default,{color:t,onChange:s=>{e({hsva:{...t,...s.hsva}})}})})}class h extends o.A{constructor(){super(...arguments),this.editorUrl="/packages/color-sketch/README.md",this.getMdStr=()=>s.e(199).then(s.bind(s,8199)),this.example=(0,n.jsx)(d,{})}}}}]); -//# sourceMappingURL=288.b1130039.chunk.js.map \ No newline at end of file +//# sourceMappingURL=288.9ab27c56.chunk.js.map \ No newline at end of file diff --git a/static/js/288.b1130039.chunk.js.map b/static/js/288.9ab27c56.chunk.js.map similarity index 98% rename from static/js/288.b1130039.chunk.js.map rename to static/js/288.9ab27c56.chunk.js.map index e694d6a8e..d54400fa2 100644 --- a/static/js/288.b1130039.chunk.js.map +++ b/static/js/288.9ab27c56.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/288.b1130039.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,yFCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,GAAG;;;;;;;;;;EAkB5BC,EAAYF,EAAAA,GAAOG,CAAC;;;;;;;;;;;;;EAepBC,EAAUJ,EAAAA,GAAOC,GAAG;;EAIpBI,EAASL,EAAAA,GAAOM,MAAM;;;;;;;;;;EAYtBC,EAAUP,EAAAA,GAAOC,GAAG;;;;;;;;EAUX,MAAMO,UAAiBC,EAAAA,UACpCC,WAAAA,CAAYC,GACVC,MAAMD,GAAO,KAKfE,eAAS,OACTC,cAAQ,OACRC,aAAO,EANLC,KAAKC,MAAQ,CACXC,MAAO,GAEX,CAIAC,iBAAAA,GACMH,KAAKF,UACPE,KAAKF,WAAWM,MAAMC,IACpBL,KAAKM,SAAS,CACZJ,MAAOG,EAAIE,QAAQC,OACnBC,MAAOJ,EAAIE,SACX,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AAI,sBAE7ET,EAAAA,EAAAA,KAAA,KAAGG,KAAK,uCAAuCF,OAAO,UAASF,UAC7DC,EAAAA,EAAAA,KAAA,OAAKQ,IAAI,0CAA0CC,IAAI,mBAEzDT,EAAAA,EAAAA,KAAA,KAAGG,KAAK,iDAAiDF,OAAO,UAASF,UACvEC,EAAAA,EAAAA,KAAA,OAAKQ,IAAI,oDAAoDC,IAAI,WAEnEZ,EAAAA,EAAAA,MAAA,KAAAE,SAAA,CAAG,sBACgB,KACjBC,EAAAA,EAAAA,KAAA,KAAGG,KAAK,2BAA2BF,OAAO,UAASF,SAAC,UAEhD,iCAMd,E,oHCnIF,SAASxB,IACP,MAAM,KAAEmC,EAAI,SAAEC,IAAaC,EAAAA,EAAAA,YAAWC,EAAAA,IACtC,OACEb,EAAAA,EAAAA,KAAA,OAAKK,MAAO,CAAES,MAAO,KAAMf,UACzBC,EAAAA,EAAAA,KAACe,EAAAA,QAAM,CACLC,MAAON,EACPO,SAAWD,IACTL,EAAU,CAAED,KAAM,IAAKA,KAASM,EAAMN,OAAS,KAKzD,CAEO,MAAMjC,UAAkBD,EAAAA,EAASE,WAAAA,GAAA,SAAAwC,WAAA,KACtCrC,UAAY,mCAAmC,KAC/CC,SAAW,IAAM,8BAA4C,KAC7DC,SAAWiB,EAAAA,EAAAA,KAACzB,EAAO,GAAG,E","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/sketch/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport Sketch from '@uiw/react-color-sketch';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-sketch/README.md';\n getMdStr = () => import('@uiw/react-color-sketch/README.md');\n example = ();\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Sketch","color","onChange","arguments"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/288.9ab27c56.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,2FCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,GAAG;;;;;;;;;;EAkB5BC,EAAYF,EAAAA,GAAOG,CAAC;;;;;;;;;;;;;EAepBC,EAAUJ,EAAAA,GAAOC,GAAG;;EAIpBI,EAASL,EAAAA,GAAOM,MAAM;;;;;;;;;;EAYtBC,EAAUP,EAAAA,GAAOC,GAAG;;;;;;;;EAUX,MAAMO,UAAiBC,EAAAA,UACpCC,WAAAA,CAAYC,GACVC,MAAMD,GAAO,KAKfE,eAAS,OACTC,cAAQ,OACRC,aAAO,EANLC,KAAKC,MAAQ,CACXC,MAAO,GAEX,CAIAC,iBAAAA,GACMH,KAAKF,UACPE,KAAKF,WAAWM,MAAMC,IACpBL,KAAKM,SAAS,CACZJ,MAAOG,EAAIE,QAAQC,OACnBC,MAAOJ,EAAIE,SACX,GAGR,CACAG,MAAAA,GACE,MAAM,OAAEF,EAAM,WAAEG,EAA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CF,OAAO,UAASF,UAC7DC,EAAAA,EAAAA,KAAA,OAAKQ,IAAI,0CAA0CC,IAAI,mBAEzDT,EAAAA,EAAAA,KAAA,KAAGG,KAAK,iDAAiDF,OAAO,UAASF,UACvEC,EAAAA,EAAAA,KAAA,OAAKQ,IAAI,oDAAoDC,IAAI,WAEnEZ,EAAAA,EAAAA,MAAA,KAAAE,SAAA,CAAG,sBACgB,KACjBC,EAAAA,EAAAA,KAAA,KAAGG,KAAK,2BAA2BF,OAAO,UAASF,SAAC,UAEhD,iCAMd,E,oHCnIF,SAASxB,IACP,MAAM,KAAEmC,EAAI,SAAEC,IAAaC,EAAAA,EAAAA,YAAWC,EAAAA,IACtC,OACEb,EAAAA,EAAAA,KAAA,OAAKK,MAAO,CAAES,MAAO,KAAMf,UACzBC,EAAAA,EAAAA,KAACe,EAAAA,QAAM,CACLC,MAAON,EACPO,SAAWD,IACTL,EAAU,CAAED,KAAM,IAAKA,KAASM,EAAMN,OAAS,KAKzD,CAEO,MAAMjC,UAAkBD,EAAAA,EAASE,WAAAA,GAAA,SAAAwC,WAAA,KACtCrC,UAAY,mCAAmC,KAC/CC,SAAW,IAAM,8BAA4C,KAC7DC,SAAWiB,EAAAA,EAAAA,KAACzB,EAAO,GAAG,E","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/sketch/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport Sketch from '@uiw/react-color-sketch';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-sketch/README.md';\n getMdStr = () => import('@uiw/react-color-sketch/README.md');\n example = ();\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Sketch","color","onChange","arguments"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/313.dbf48c9c.chunk.js b/static/js/313.dbf48c9c.chunk.js new file mode 100644 index 000000000..9e2703150 --- /dev/null +++ b/static/js/313.dbf48c9c.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[313],{2313:(e,o,r)=>{r.r(o),r.d(o,{Component:()=>m});var a=r(7804),t=r(8024),l=r(4342),s=r(9262),i=r(4590),n=r(7355),d=r(6801),c=r(2051),h=r(11),x=r(411),p=r(2945),f=r(3623),u=r(7980),g=r(9424);function v(e){return(0,g.jsx)("div",{...e,style:{fontSize:12,padding:"5px 0",color:"#6b6b6b",...e.style},children:e.children})}const b="index_warpper__Ajp1G";function y(){const{hsva:e,dispatch:o}=(0,a.useContext)(u.ob);return(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{className:b,children:[(0,g.jsxs)("div",{children:[(0,g.jsx)(t.default,{color:e,onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:``})]}),(0,g.jsxs)("div",{style:{marginLeft:60,marginRight:60},children:[(0,g.jsx)(l.default,{color:e,onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:``})]}),(0,g.jsxs)("div",{children:[(0,g.jsx)(s.default,{color:e,onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:''})]})]}),(0,g.jsxs)("div",{className:b,children:[(0,g.jsxs)("div",{children:[(0,g.jsx)(i.default,{colors:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#607d8b"],style:{width:252},color:e,onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:``})]}),(0,g.jsxs)("div",{style:{paddingLeft:20},children:[(0,g.jsx)(n.default,{color:e,style:{boxShadow:"rgb(0 0 0 / 15%) 0px 0px 0px 1px, rgb(0 0 0 / 15%) 0px 8px 16px"},onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:``})]}),(0,g.jsxs)("div",{style:{marginLeft:25},children:[(0,g.jsx)(d.default,{color:e,width:140,height:140,onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:''})]})]}),(0,g.jsxs)("div",{className:b,children:[(0,g.jsxs)("div",{children:[(0,g.jsx)(c.default,{color:e,onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:``})]}),(0,g.jsxs)("div",{style:{marginRight:30,marginLeft:30},children:[(0,g.jsx)(h.default,{color:e,style:{boxShadow:"rgb(0 0 0 / 12%) 0px 2px 10px, rgb(0 0 0 / 16%) 0px 2px 5px"},onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:''})]}),(0,g.jsxs)("div",{children:[(0,g.jsx)(x.default,{color:e,onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:``})]})]})]})}class m extends f.A{constructor(){super(...arguments),this.displayName="HomePage",this.editorUrl="/packages/color/README.md",this.getMdStr=()=>r.e(950).then(r.bind(r,950)),this.example=(0,g.jsx)(y,{})}}},411:(e,o,r)=>{r.r(o),r.d(o,{default:()=>p});var a=r(8102),t=r(9257),l=r(7804),s=r(2945),i=r(5991),n=r(6966),d=r(9424),c=["prefixCls","className","style","color","colors","onChange"],h=["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],x=l.forwardRef(((e,o)=>{var{prefixCls:r="w-color-block",className:l,style:x,color:p,colors:f=h,onChange:u}=e,g=(0,t.A)(e,c),v="string"===typeof p&&(0,s.validHex)(p)?(0,s.hexToHsva)(p):p,b=p?(0,s.hsvaToHex)(v):"",y=(e,o)=>{"string"===typeof e&&(0,s.validHex)(e)&&/(3|6)/.test(String(e.replace(/^#/,"").length))&&u&&u((0,s.color)((0,s.hexToHsva)(e)))},m=(0,a.A)({"--block-background-color":"rgb(255, 255, 255)","--block-box-shadow":"rgb(0 0 0 / 10%) 0 1px",width:170,borderRadius:6,background:"var(--block-background-color)",boxShadow:"var(--block-box-shadow)",position:"relative"},x);return(0,d.jsxs)("div",(0,a.A)({ref:o,className:[r,l].filter(Boolean).join(" "),style:m},g,{children:[(0,d.jsx)("div",{style:{width:0,height:0,borderStyle:"solid",borderWidth:"0 10px 10px",borderColor:"transparent transparent "+b,position:"absolute",top:-10,left:"50%",marginLeft:-10}}),(0,d.jsx)("div",{title:b,style:{backgroundColor:""+b,color:(0,s.getContrastingColor)(b),height:110,fontSize:18,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center"},children:b.toLocaleUpperCase()}),(0,d.jsx)(n.default,{colors:f,color:b,style:{paddingLeft:10,paddingTop:10},rectProps:{style:{marginRight:10,marginBottom:10,borderRadius:4,height:22,width:22}},onChange:e=>{u&&u((0,s.color)(e))}}),(0,d.jsx)(i.default,{value:b.toLocaleUpperCase(),onChange:(e,o)=>y(o),onBlur:e=>{var o=e.target.value;e.target.value=o.slice(0,6),y(o.slice(0,6))},inputStyle:{height:22,outline:0,borderRadius:3,padding:"0 7px"},style:{padding:10,paddingTop:0,borderRadius:"0 0 6px 6px"}})]}))}));x.displayName="Block";const p=x},4590:(e,o,r)=>{r.r(o),r.d(o,{default:()=>p});var a=r(9520),t=r(8102),l=r(9257),s=r(7804),i=r(2945),n=r(6966),d=r(9424);function c(e){var{style:o,className:r,title:a,checked:l,color:i,onClick:n,rectProps:c}=e,h=(0,s.useRef)(null),x=(0,s.useCallback)((()=>{h.current.style.transform="scale(1.2)"}),[]),p=(0,s.useCallback)((()=>{h.current.style.transform="scale(1)"}),[]),f=(0,t.A)({"--circle-point-background-color":"#fff",height:l?"100%":0,width:l?"100%":0,borderRadius:"50%",backgroundColor:"var(--circle-point-background-color)",boxSizing:"border-box",transition:"height 100ms ease 0s, width 100ms ease 0s"},c.style);return(0,d.jsx)("div",{ref:h,onClick:n,onMouseEnter:x,onMouseLeave:p,title:a,className:r,style:(0,t.A)({padding:3,marginRight:12,marginBottom:12},o,{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,borderRadius:"50%",boxSizing:"border-box",transform:"scale(1)",boxShadow:i+" 0px 0px "+(l?5:0)+"px",transition:"transform 100ms ease 0s, box-shadow 100ms ease 0s"}),children:(0,d.jsx)("div",(0,t.A)({},c,{style:f}))})}var h=["prefixCls","className","color","colors","rectProps","pointProps","onChange"],x=s.forwardRef(((e,o)=>{var{prefixCls:r="w-color-circle",className:s,color:x,colors:p=[],rectProps:f={},pointProps:u={},onChange:g}=e,v=(0,l.A)(e,h),b="string"===typeof x&&(0,i.validHex)(x)?(0,i.hexToHsva)(x):x||{},y=x?(0,i.hsvaToHex)(b):"",m=[r,s].filter(Boolean).join(" "),C=[r+"-point",null==u?void 0:u.className].filter(Boolean).join(" ");return(0,d.jsx)(n.default,(0,t.A)({ref:o,colors:p,color:y},v,{className:m,rectRender:e=>{var o=(0,t.A)({},((0,a.A)(e),e));return(0,d.jsx)(c,(0,t.A)({},o,u,{style:(0,t.A)({},o.style,u.style),className:C,rectProps:f}))},onChange:e=>{g&&g((0,i.color)(e))}}))}));x.displayName="Circle";const p=x},8024:(e,o,r)=>{r.r(o),r.d(o,{default:()=>u});var a=r(8102),t=r(9257),l=r(7804),s=r(2945),i=r(1636),n=r(2084),d=r(1068),c=r(9424),h=["style","color"],x=["prefixCls","className","onChange","color","style","disableAlpha"],p=e=>{var{style:o,color:r}=e,l=(0,t.A)(e,h),s=(0,a.A)({"--colorful-pointer-background-color":"#fff","--colorful-pointer-border":"2px solid #fff",height:28,width:28,position:"absolute",transform:"translate(-14px, -4px)",boxShadow:"0 2px 4px rgb(0 0 0 / 20%)",borderRadius:"50%",background:"url("+i.BACKGROUND_IMG+")",backgroundColor:"var(--colorful-pointer-background-color)",border:"var(--colorful-pointer-border)",zIndex:1},o);return(0,c.jsx)("div",(0,a.A)({},l,{style:s,children:(0,c.jsx)("div",{style:{backgroundColor:r,borderRadius:"50%",height:" 100%",width:"100%"}})}))},f=l.forwardRef(((e,o)=>{var{prefixCls:r="w-color-colorful",className:l,onChange:h,color:f,style:u,disableAlpha:g}=e,v=(0,t.A)(e,x),b="string"===typeof f&&(0,s.validHex)(f)?(0,s.hexToHsva)(f):f||{},y=e=>h&&h((0,s.color)(e));return(0,c.jsxs)("div",(0,a.A)({ref:o,style:(0,a.A)({width:200,position:"relative"},u)},v,{className:r+" "+(l||""),children:[(0,c.jsx)(n.default,{hsva:b,className:r,radius:"8px 8px 0 0",style:{width:"auto",height:150,minWidth:120,borderBottom:"12px solid #000"},pointer:e=>{var{left:o,top:r,color:a}=e;return(0,c.jsx)(p,{style:{left:o,top:r,transform:"translate(-16px, -16px)"},color:(0,s.hsvaToHex)(b)})},onChange:e=>y((0,a.A)({},b,e))}),(0,c.jsx)(d.default,{hue:b.h,height:24,radius:g?"0 0 8px 8px":0,className:r,onChange:e=>y((0,a.A)({},b,e)),pointer:e=>{var{left:o}=e;return(0,c.jsx)(p,{style:{left:o},color:"hsl("+(b.h||0)+"deg 100% 50%)"})}}),!g&&(0,c.jsx)(i.default,{hsva:b,height:24,className:r,radius:"0 0 8px 8px",pointer:e=>{var{left:o}=e;return(0,c.jsx)(p,{style:{left:o},color:(0,s.hsvaToRgbaString)(b)})},onChange:e=>y((0,a.A)({},b,e))})]}))}));f.displayName="Colorful";const u=f},7355:(e,o,r)=>{r.r(o),r.d(o,{default:()=>u});var a=r(8102),t=r(9257),l=r(7804),s=r(2945),i=r(5991),n=r(6436),d=r(6966),c=r(9424),h=["prefixCls","className","style","onChange","color","colors","rectProps","rectRender"],x=["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"];function p(e){return e.checked?(0,c.jsx)("div",{style:{height:5,width:5,borderRadius:"50%",backgroundColor:(0,s.getContrastingColor)(e.color)}}):null}var f=l.forwardRef(((e,o)=>{var{prefixCls:r="w-color-compact",className:f,style:u,onChange:g,color:v,colors:b=x,rectProps:y,rectRender:m}=e,C=(0,t.A)(e,h),j="string"===typeof v&&(0,s.validHex)(v)?(0,s.hexToHsva)(v):v,w=v?(0,s.hsvaToHex)(j).replace(/^#/,""):"",k=(0,l.useCallback)((e=>g&&g((0,s.color)(e))),[]),A={style:{alignItems:"baseline"},inputStyle:{boxShadow:"none",backgroundColor:"transparent",outline:0}},N=(0,a.A)({"--compact-background-color":"#f6f6f6",background:"var(--compact-background-color)",borderRadius:3,display:"flex",width:240,flexWrap:"wrap",paddingTop:5,paddingLeft:5},u);return(0,c.jsxs)("div",(0,a.A)({ref:o,style:N,className:[r,f||""].filter(Boolean).join(" ")},C,{children:[(0,c.jsx)(d.default,{colors:b,color:v?(0,s.hsvaToHex)(j):void 0,rectRender:m,rectProps:(0,a.A)({children:(0,c.jsx)(p,{})},y,{style:(0,a.A)({display:"flex",alignItems:"center",justifyContent:"center"},null==y?void 0:y.style)}),onChange:e=>k(e)}),(0,c.jsxs)("div",{style:{display:"flex",margin:"0 4px 3px 0"},children:[(0,c.jsx)(i.default,{onChange:(e,o)=>{var r;"string"===typeof(r=o)&&(0,s.validHex)(r)&&/(3|6)/.test(String(r.length))&&k((0,s.hexToHsva)(r))},labelStyle:{paddingRight:5,marginTop:-1},value:w.toLocaleUpperCase(),label:(0,c.jsx)("div",{style:{width:8,height:8,backgroundColor:"#"+w}}),inputStyle:{outline:"none",boxShadow:"initial",background:"transparent"},style:{flexDirection:"row-reverse",flex:"1 1 0%",minWidth:80}}),(0,c.jsx)(n.default,{hsva:j,placement:"left",onChange:e=>k(e.hsva),aProps:!1,rProps:A,gProps:A,bProps:A})]})]}))}));f.displayName="Compact";const u=f},11:(e,o,r)=>{r.r(o),r.d(o,{default:()=>p});var a=r(8102),t=r(9257),l=r(7804),s=r(2945),i=r(5991),n=r(6436),d=r(9424),c=["prefixCls","className","style","color","onChange"],h={boxShadow:"initial",borderWidth:"0 0 1px 0",borderBottomColor:"var(--material-border-bottom-color)",borderBottomStyle:"solid",height:30,outline:0,fontSize:15,padding:0},x=l.forwardRef(((e,o)=>{var{prefixCls:r="w-color-material",className:l,style:x,color:p,onChange:f}=e,u=(0,t.A)(e,c),g="string"===typeof p&&(0,s.validHex)(p)?(0,s.hexToHsva)(p):p,v=p?(0,s.hsvaToHex)(g).replace(/^#/,""):"",b=(e,o)=>{"string"===typeof e&&(0,s.validHex)(e)&&/(3|6)/.test(String(e.length))&&f&&f((0,s.color)((0,s.hexToHsva)(e)))},y=(0,a.A)({"--material-border-bottom-color":"#eee","--material-background-color":"#fff",padding:16,width:98,fontFamily:"Roboto",backgroundColor:"var(--material-background-color)"},x);return(0,d.jsxs)("div",(0,a.A)({ref:o,className:[r,l||""].filter(Boolean).join(" "),style:y},u,{children:[(0,d.jsx)(i.default,{label:"Hex",value:v.toLocaleUpperCase(),onChange:(e,o)=>b(o),onBlur:e=>{var o=e.target.value;e.target.value=o.slice(0,6),b(o.slice(0,6))},inputStyle:{outline:0,border:0,height:30,fontSize:15,padding:0,boxShadow:"initial",borderWidth:"0 0 2px 0",borderBottomColor:v?"#"+v:"var(--material-border-bottom-color)",borderBottomStyle:"solid",background:"transparent"},style:{flexDirection:"column-reverse",alignItems:"flex-start"}}),(0,d.jsx)(n.default,{hsva:g,placement:"top",style:{marginTop:11},rProps:{style:{alignItems:"flex-start"},inputStyle:(0,a.A)({},h)},gProps:{style:{alignItems:"flex-start"},inputStyle:(0,a.A)({},h)},bProps:{style:{alignItems:"flex-start"},inputStyle:(0,a.A)({},h)},aProps:!1,onChange:e=>{return o=e.hsva,void(f&&f((0,s.color)(o)));var o}})]}))}));x.displayName="Material";const p=x},6801:(e,o,r)=>{r.r(o),r.d(o,{default:()=>v});var a=r(8102),t=r(9257),l=r(7804),s=r(2945),i=r(1346),n=r(9424),d=e=>{var{className:o,color:r,left:t,top:l,style:s,prefixCls:i}=e,d=(0,a.A)({},s,{position:"absolute",top:l,left:t}),c=i+"-pointer "+(o||"");return(0,n.jsx)("div",{className:c,style:d,children:(0,n.jsx)("div",{className:i+"-fill",style:{width:10,height:10,transform:"translate(-5px, -5px)",boxShadow:"rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px",borderRadius:"50%",backgroundColor:"#fff"},children:(0,n.jsx)("div",{style:{inset:0,borderRadius:"50%",position:"absolute",backgroundColor:r}})})})},c=2*Math.PI,h=(e,o)=>Math.sqrt(e*e+o*o);function x(e){var{width:o=0}=e,r=o/2;return{width:o,radius:r,cx:r,cy:r}}function p(e){var{width:o=0}=e;return o/2}function f(e,o,r){var a,t=e.angle||0,l=e.direction;return r&&"clockwise"===l?o=t+o:"clockwise"===l?o=360-t+o:r&&"anticlockwise"===l?o=t+180-o:"anticlockwise"===l&&(o=t-o),(o%(a=360)+a)%a}var u=["prefixCls","radius","pointer","className","style","width","height","oval","direction","angle","color","onChange"],g=l.forwardRef(((e,o)=>{var{prefixCls:r="w-color-wheel",radius:l=0,pointer:g,className:v,style:b,width:y=200,height:m=200,oval:C,direction:j="anticlockwise",angle:w=180,color:k,onChange:A}=e,N=(0,t.A)(e,u),R="string"===typeof k&&(0,s.validHex)(k)?(0,s.hexToHsva)(k):k||{},H=k?(0,s.hsvaToHex)(R):"",S=function(e,o){var{cx:r,cy:a}=x(e),t=p(e),l=(180+f(e,o.h,!0))*(c/360),s=o.s/100*t,i="clockwise"===e.direction?-1:1;return{x:r+s*Math.cos(l)*i,y:a+s*Math.sin(l)*i}}({width:y},R),B={top:"0",left:"0",color:H},F=(e,o)=>{var r=function(e,o,r){var{cx:a,cy:t}=x(e),l=p(e);o=a-o,r=t-r;var s=f(e,Math.atan2(-r,-o)*(360/c)),i=Math.min(h(o,r),l);return{h:Math.round(s),s:Math.round(100/l*i)}}({width:y},y-e.x,m-e.y),a={h:r.h,s:r.s,v:R.v,a:R.a};A&&A((0,s.color)(a))},T={zIndex:1,transform:"translate("+S.x+"px, "+S.y+"px) "+("x"===C||"X"===C?"scaleY(2)":"y"===C||"Y"===C?"scaleX(2)":"")},D=g&&"function"===typeof g?g((0,a.A)({prefixCls:r,style:T},B)):(0,n.jsx)(d,(0,a.A)({prefixCls:r,style:T},B));return(0,n.jsxs)(i.default,(0,a.A)({className:[r,v||""].filter(Boolean).join(" ")},N,{style:(0,a.A)({position:"relative",width:y,transform:"x"===C||"X"===C?"scaleY(0.5)":"y"===C||"Y"===C?"scaleX(0.5)":"",height:m},b),ref:o,onMove:F,onDown:F,children:[D,(0,n.jsx)("div",{style:{position:"absolute",borderRadius:"50%",background:"anticlockwise"===j?"conic-gradient(red, yellow, lime, aqua, blue, magenta, red)":"conic-gradient(red, magenta, blue, aqua, lime, yellow, red)",transform:"rotateZ("+(w+90)+"deg)",inset:0}}),(0,n.jsx)("div",{style:{position:"absolute",borderRadius:"50%",background:"radial-gradient(circle closest-side, #fff, transparent)",inset:0}}),(0,n.jsx)("div",{style:{backgroundColor:"#000",borderRadius:"50%",position:"absolute",inset:0,opacity:"number"===typeof R.v?1-R.v/100:0}})]}))}));g.displayName="Wheel";const v=g}}]); +//# sourceMappingURL=313.dbf48c9c.chunk.js.map \ No newline at end of file diff --git a/static/js/313.dbf48c9c.chunk.js.map b/static/js/313.dbf48c9c.chunk.js.map new file mode 100644 index 000000000..08b226abb --- /dev/null +++ b/static/js/313.dbf48c9c.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/313.dbf48c9c.chunk.js","mappings":"8QAEe,SAASA,EAAMC,GAC5B,OACEC,EAAAA,EAAAA,KAAA,UAASD,EAAOE,MAAO,CAAEC,SAAU,GAAIC,QAAS,QAASC,MAAO,aAAcL,EAAME,OAAQI,SACzFN,EAAMM,UAGb,CCPA,QAA0B,uBCO1B,SAASC,IACP,MAAM,KAAEC,EAAI,SAAEC,IAAaC,EAAAA,EAAAA,YAAWC,EAAAA,IACtC,OACEC,EAAAA,EAAAA,MAAA,OAAAN,SAAA,EACEM,EAAAA,EAAAA,MAAA,OAAKC,UAAWC,EAAeR,SAAA,EAC7BM,EAAAA,EAAAA,MAAA,OAAAN,SAAA,EACEL,EAAAA,EAAAA,KAACc,EAAAA,QAAQ,CACPV,MAAOG,EACPQ,SAAWX,IACTI,EAAU,CAAED,KAAM,IAAKA,KAASH,EAAMG,OAAS,KAGnDP,EAAAA,EAAAA,KAACF,EAAK,CAAAO,SAAE,qBAAoBW,EAAAA,EAAAA,WAAUT,eAExCI,EAAAA,EAAAA,MAAA,OAAKV,MAAO,CAAEgB,WAAY,GAAIC,YAAa,IAAKb,SAAA,EAC9CL,EAAAA,EAAAA,KAACmB,EAAAA,QAAM,CACLf,MAAOG,EACPQ,SAAWX,IACTI,EAAU,CAAED,KAAM,IAAKA,KAASH,EAAMG,OAAS,KAGnDP,EAAAA,EAAAA,KAACF,EAAK,CAAAO,SAAE,mBAAkBW,EAAAA,EAAAA,WAAUT,eAEtCI,EAAAA,EAAAA,MAAA,OAAAN,SAAA,EACEL,EAAAA,EAAAA,KAACoB,EAAAA,QAA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,aAAc,MACdC,WAA0B,kBAAdsH,EAnES,8DACI,8DAmEzB1E,UAAW,YAAcsE,EAAQ,IAAM,OACvCd,MAAO,MAEMjK,EAAAA,EAAAA,KAAK,MAAO,CAC3BC,MAAO,CACL6D,SAAU,WACVF,aAAc,MACdC,WAAY,0DACZoG,MAAO,MAEMjK,EAAAA,EAAAA,KAAK,MAAO,CAC3BC,MAAO,CACLuE,gBAAiB,OACjBZ,aAAc,MACdE,SAAU,WACVmG,MAAO,EACP2C,QAA2B,kBAAXrM,EAAK8L,EAAiB,EAAI9L,EAAK8L,EAAI,IAAM,QAG5D,IAEL1K,EAAMS,YAAc,QACpB,S","sources":["components/Title.tsx","webpack://website/./src/pages/home/index.module.less?e0b9","pages/home/index.tsx","../../packages/color-block/esm/index.js","../../packages/color-circle/esm/Point.js","../../packages/color-circle/esm/index.js","../../packages/color-colorful/esm/index.js","../../packages/color-compact/esm/index.js","../../packages/color-material/esm/index.js","../../packages/color-wheel/esm/Pointer.js","../../packages/color-wheel/esm/utils.js","../../packages/color-wheel/esm/index.js"],"sourcesContent":["interface TitleProps extends React.HTMLAttributes {}\n\nexport default function Title(props: TitleProps) {\n return (\n
\n {props.children}\n
\n );\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"warpper\":\"index_warpper__Ajp1G\"};","import { useContext } from 'react';\nimport { Colorful, Sketch, Block, Circle, Compact, Wheel, Github, Material, Chrome } from '@uiw/react-color';\nimport { hsvaToHex } from '@uiw/react-color';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\nimport Title from '../../components/Title';\nimport styles from './index.module.less';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Colorful color=\"${hsvaToHex(hsva)}\" />`}\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Sketch color=\"${hsvaToHex(hsva)}\" />`}\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Chrome color=\"...\" />`}\n
\n
\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Circle color=\"${hsvaToHex(hsva)}\" />`}\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Compact color=\"${hsvaToHex(hsva)}\" />`}\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Wheel color=\"...\" />`}\n
\n
\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Github color=\"${hsvaToHex(hsva)}\" />`}\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Material color=\"...\" />`}\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Block color=\"${hsvaToHex(hsva)}\" />`}\n
\n
\n
\n );\n}\n\nexport class Component extends Markdown {\n displayName = 'HomePage';\n editorUrl = '/packages/color/README.md';\n getMdStr = () => import('@uiw/react-color/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"color\", \"colors\", \"onChange\"];\nimport React from 'react';\nimport { color as handleColor, validHex, hexToHsva, hsvaToHex, getContrastingColor } from '@uiw/color-convert';\nimport EditableInput from '@uiw/react-color-editable-input';\nimport Swatch from '@uiw/react-color-swatch';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar CORLER_HEX = ['#D9E3F0', '#F47373', '#697689', '#37D67A', '#2CCCE4', '#555555', '#dce775', '#ff8a65', '#ba68c8'];\nvar Block = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-block',\n className,\n style,\n color,\n colors = CORLER_HEX,\n onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color;\n var hex = color ? hsvaToHex(hsva) : '';\n var handleChange = hsv => {\n onChange && onChange(handleColor(hsv));\n };\n var handleHex = (value, evn) => {\n if (typeof value === 'string' && validHex(value) && /(3|6)/.test(String(value.replace(/^#/, '').length))) {\n onChange && onChange(handleColor(hexToHsva(value)));\n }\n };\n var stylePointer = _extends({\n '--block-background-color': 'rgb(255, 255, 255)',\n '--block-box-shadow': 'rgb(0 0 0 / 10%) 0 1px',\n width: 170,\n borderRadius: 6,\n background: 'var(--block-background-color)',\n boxShadow: 'var(--block-box-shadow)',\n position: 'relative'\n }, style);\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n ref: ref,\n className: [prefixCls, className].filter(Boolean).join(' '),\n style: stylePointer\n }, other, {\n children: [/*#__PURE__*/_jsx(\"div\", {\n style: {\n width: 0,\n height: 0,\n borderStyle: 'solid',\n borderWidth: '0 10px 10px',\n borderColor: \"transparent transparent \" + hex,\n position: 'absolute',\n top: -10,\n left: '50%',\n marginLeft: -10\n }\n }), /*#__PURE__*/_jsx(\"div\", {\n title: hex,\n style: {\n backgroundColor: \"\" + hex,\n color: getContrastingColor(hex),\n height: 110,\n fontSize: 18,\n borderRadius: '6px 6px 0 0',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n },\n children: hex.toLocaleUpperCase()\n }), /*#__PURE__*/_jsx(Swatch, {\n colors: colors,\n color: hex,\n style: {\n paddingLeft: 10,\n paddingTop: 10\n },\n rectProps: {\n style: {\n marginRight: 10,\n marginBottom: 10,\n borderRadius: 4,\n height: 22,\n width: 22\n }\n },\n onChange: handleChange\n }), /*#__PURE__*/_jsx(EditableInput, {\n value: hex.toLocaleUpperCase(),\n onChange: (evn, val) => handleHex(val, evn),\n onBlur: evn => {\n var value = evn.target.value;\n evn.target.value = value.slice(0, 6);\n handleHex(value.slice(0, 6), evn);\n },\n inputStyle: {\n height: 22,\n outline: 0,\n borderRadius: 3,\n padding: '0 7px'\n },\n style: {\n padding: 10,\n paddingTop: 0,\n borderRadius: '0 0 6px 6px'\n }\n })]\n }));\n});\nBlock.displayName = 'Block';\nexport default Block;","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useCallback } from 'react';\nimport { useRef } from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function Point(_ref) {\n var {\n style,\n className,\n title,\n checked,\n color,\n onClick,\n rectProps\n } = _ref;\n var btn = useRef(null);\n var handleMouseEnter = useCallback(() => {\n btn.current.style['transform'] = 'scale(1.2)';\n }, []);\n var handleMouseLeave = useCallback(() => {\n btn.current.style['transform'] = 'scale(1)';\n }, []);\n var styleWrapper = _extends({\n '--circle-point-background-color': '#fff',\n height: checked ? '100%' : 0,\n width: checked ? '100%' : 0,\n borderRadius: '50%',\n backgroundColor: 'var(--circle-point-background-color)',\n boxSizing: 'border-box',\n transition: 'height 100ms ease 0s, width 100ms ease 0s'\n }, rectProps.style);\n return /*#__PURE__*/_jsx(\"div\", {\n ref: btn,\n onClick: onClick,\n onMouseEnter: handleMouseEnter,\n onMouseLeave: handleMouseLeave,\n title: title,\n className: className,\n style: _extends({\n padding: 3,\n marginRight: 12,\n marginBottom: 12\n }, style, {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: 28,\n height: 28,\n borderRadius: '50%',\n boxSizing: 'border-box',\n transform: 'scale(1)',\n boxShadow: color + \" 0px 0px \" + (checked ? 5 : 0) + \"px\",\n transition: 'transform 100ms ease 0s, box-shadow 100ms ease 0s'\n }),\n children: /*#__PURE__*/_jsx(\"div\", _extends({}, rectProps, {\n style: styleWrapper\n }))\n });\n}","import _objectDestructuringEmpty from \"@babel/runtime/helpers/objectDestructuringEmpty\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"color\", \"colors\", \"rectProps\", \"pointProps\", \"onChange\"];\nimport React from 'react';\nimport { validHex, hsvaToHex, hexToHsva, color as handleColor } from '@uiw/color-convert';\nimport Swatch from '@uiw/react-color-swatch';\nimport Point from './Point';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar Circle = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-circle',\n className,\n color,\n colors = [],\n rectProps = {},\n pointProps = {},\n onChange: _onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color || {};\n var hex = color ? hsvaToHex(hsva) : '';\n var cls = [prefixCls, className].filter(Boolean).join(' ');\n var clsPoint = [prefixCls + \"-point\", pointProps == null ? void 0 : pointProps.className].filter(Boolean).join(' ');\n return /*#__PURE__*/_jsx(Swatch, _extends({\n ref: ref,\n colors: colors,\n color: hex\n }, other, {\n className: cls,\n rectRender: _ref => {\n var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));\n return /*#__PURE__*/_jsx(Point, _extends({}, props, pointProps, {\n style: _extends({}, props.style, pointProps.style),\n className: clsPoint,\n rectProps: rectProps\n }));\n },\n onChange: hsvColor => {\n _onChange && _onChange(handleColor(hsvColor));\n }\n }));\n});\nCircle.displayName = 'Circle';\nexport default Circle;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"style\", \"color\"],\n _excluded2 = [\"prefixCls\", \"className\", \"onChange\", \"color\", \"style\", \"disableAlpha\"];\nimport React from 'react';\nimport { validHex, color as handleColor, hexToHsva, hsvaToHex, hsvaToRgbaString } from '@uiw/color-convert';\nimport Alpha, { BACKGROUND_IMG } from '@uiw/react-color-alpha';\nimport Saturation from '@uiw/react-color-saturation';\nimport Hue from '@uiw/react-color-hue';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar Pointer = _ref => {\n var {\n style,\n color\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n var stylePointer = _extends({\n '--colorful-pointer-background-color': '#fff',\n '--colorful-pointer-border': '2px solid #fff',\n height: 28,\n width: 28,\n position: 'absolute',\n transform: 'translate(-14px, -4px)',\n boxShadow: '0 2px 4px rgb(0 0 0 / 20%)',\n borderRadius: '50%',\n background: \"url(\" + BACKGROUND_IMG + \")\",\n backgroundColor: 'var(--colorful-pointer-background-color)',\n border: 'var(--colorful-pointer-border)',\n zIndex: 1\n }, style);\n return /*#__PURE__*/_jsx(\"div\", _extends({}, props, {\n style: stylePointer,\n children: /*#__PURE__*/_jsx(\"div\", {\n style: {\n backgroundColor: color,\n borderRadius: '50%',\n height: ' 100%',\n width: '100%'\n }\n })\n }));\n};\nvar Colorful = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-colorful',\n className,\n onChange,\n color,\n style,\n disableAlpha\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded2);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color || {};\n var handleChange = value => onChange && onChange(handleColor(value));\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n ref: ref,\n style: _extends({\n width: 200,\n position: 'relative'\n }, style)\n }, other, {\n className: prefixCls + \" \" + (className || ''),\n children: [/*#__PURE__*/_jsx(Saturation, {\n hsva: hsva,\n className: prefixCls,\n radius: \"8px 8px 0 0\",\n style: {\n width: 'auto',\n height: 150,\n minWidth: 120,\n borderBottom: '12px solid #000'\n },\n pointer: _ref2 => {\n var {\n left,\n top,\n color\n } = _ref2;\n return /*#__PURE__*/_jsx(Pointer, {\n style: {\n left,\n top,\n transform: 'translate(-16px, -16px)'\n },\n color: hsvaToHex(hsva)\n });\n },\n onChange: newColor => handleChange(_extends({}, hsva, newColor))\n }), /*#__PURE__*/_jsx(Hue, {\n hue: hsva.h,\n height: 24,\n radius: disableAlpha ? '0 0 8px 8px' : 0,\n className: prefixCls,\n onChange: newHue => handleChange(_extends({}, hsva, newHue)),\n pointer: _ref3 => {\n var {\n left\n } = _ref3;\n return /*#__PURE__*/_jsx(Pointer, {\n style: {\n left\n },\n color: \"hsl(\" + (hsva.h || 0) + \"deg 100% 50%)\"\n });\n }\n }), !disableAlpha && /*#__PURE__*/_jsx(Alpha, {\n hsva: hsva,\n height: 24,\n className: prefixCls,\n radius: \"0 0 8px 8px\",\n pointer: _ref4 => {\n var {\n left\n } = _ref4;\n return /*#__PURE__*/_jsx(Pointer, {\n style: {\n left\n },\n color: hsvaToRgbaString(hsva)\n });\n },\n onChange: newAlpha => handleChange(_extends({}, hsva, newAlpha))\n })]\n }));\n});\nColorful.displayName = 'Colorful';\nexport default Colorful;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"onChange\", \"color\", \"colors\", \"rectProps\", \"rectRender\"];\nimport React, { useCallback } from 'react';\nimport { color as handleColor, hexToHsva, validHex, hsvaToHex, getContrastingColor } from '@uiw/color-convert';\nimport EditableInput from '@uiw/react-color-editable-input';\nimport RGBA from '@uiw/react-color-editable-input-rgba';\nimport Swatch from '@uiw/react-color-swatch';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar COLORS = ['#4D4D4D', '#999999', '#FFFFFF', '#F44E3B', '#FE9200', '#FCDC00', '#DBDF00', '#A4DD00', '#68CCCA', '#73D8FF', '#AEA1FF', '#FDA1FF', '#333333', '#808080', '#cccccc', '#D33115', '#E27300', '#FCC400', '#B0BC00', '#68BC00', '#16A5A5', '#009CE0', '#7B64FF', '#FA28FF', '#000000', '#666666', '#B3B3B3', '#9F0500', '#C45100', '#FB9E00', '#808900', '#194D33', '#0C797D', '#0062B1', '#653294', '#AB149E'];\nfunction Point(props) {\n if (!props.checked) return null;\n return /*#__PURE__*/_jsx(\"div\", {\n style: {\n height: 5,\n width: 5,\n borderRadius: '50%',\n backgroundColor: getContrastingColor(props.color)\n }\n });\n}\nvar Compact = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-compact',\n className,\n style,\n onChange,\n color,\n colors = COLORS,\n rectProps,\n rectRender\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color;\n var hex = color ? hsvaToHex(hsva).replace(/^#/, '') : '';\n var handleChangeCallback = useCallback(hsv => onChange && onChange(handleColor(hsv)), []);\n var handleHex = (value, evn) => {\n if (typeof value === 'string' && validHex(value) && /(3|6)/.test(String(value.length))) {\n handleChangeCallback(hexToHsva(value));\n }\n };\n var rgbProps = {\n style: {\n alignItems: 'baseline'\n },\n inputStyle: {\n boxShadow: 'none',\n backgroundColor: 'transparent',\n outline: 0\n }\n };\n var wrapperStyle = _extends({\n '--compact-background-color': '#f6f6f6',\n background: 'var(--compact-background-color)',\n borderRadius: 3,\n display: 'flex',\n width: 240,\n flexWrap: 'wrap',\n paddingTop: 5,\n paddingLeft: 5\n }, style);\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n ref: ref,\n style: wrapperStyle,\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other, {\n children: [/*#__PURE__*/_jsx(Swatch, {\n colors: colors,\n color: color ? hsvaToHex(hsva) : undefined,\n rectRender: rectRender,\n rectProps: _extends({\n children: /*#__PURE__*/_jsx(Point, {})\n }, rectProps, {\n style: _extends({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n }, rectProps == null ? void 0 : rectProps.style)\n }),\n onChange: hsvColor => handleChangeCallback(hsvColor)\n }), /*#__PURE__*/_jsxs(\"div\", {\n style: {\n display: 'flex',\n margin: '0 4px 3px 0'\n },\n children: [/*#__PURE__*/_jsx(EditableInput, {\n onChange: (evn, val) => handleHex(val, evn),\n labelStyle: {\n paddingRight: 5,\n marginTop: -1\n },\n value: hex.toLocaleUpperCase(),\n label: /*#__PURE__*/_jsx(\"div\", {\n style: {\n width: 8,\n height: 8,\n backgroundColor: \"#\" + hex\n }\n }),\n inputStyle: {\n outline: 'none',\n boxShadow: 'initial',\n background: 'transparent'\n },\n style: {\n flexDirection: 'row-reverse',\n flex: '1 1 0%',\n minWidth: 80\n }\n }), /*#__PURE__*/_jsx(RGBA, {\n hsva: hsva,\n placement: \"left\",\n onChange: result => handleChangeCallback(result.hsva),\n aProps: false,\n rProps: rgbProps,\n gProps: rgbProps,\n bProps: rgbProps\n })]\n })]\n }));\n});\nCompact.displayName = 'Compact';\nexport default Compact;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"color\", \"onChange\"];\nimport React from 'react';\nimport { color as handleColor, validHex, hexToHsva, hsvaToHex } from '@uiw/color-convert';\nimport EditableInput from '@uiw/react-color-editable-input';\nimport RGBA from '@uiw/react-color-editable-input-rgba';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar styleRBG = {\n boxShadow: 'initial',\n borderWidth: '0 0 1px 0',\n borderBottomColor: 'var(--material-border-bottom-color)',\n borderBottomStyle: 'solid',\n height: 30,\n outline: 0,\n fontSize: 15,\n padding: 0\n};\nvar Material = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-material',\n className,\n style,\n color,\n onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color;\n var hex = color ? hsvaToHex(hsva).replace(/^#/, '') : '';\n var handleChange = hsv => {\n onChange && onChange(handleColor(hsv));\n };\n var handleHex = (value, evn) => {\n if (typeof value === 'string' && validHex(value) && /(3|6)/.test(String(value.length))) {\n onChange && onChange(handleColor(hexToHsva(value)));\n }\n };\n var styleWrapper = _extends({\n '--material-border-bottom-color': '#eee',\n '--material-background-color': '#fff',\n padding: 16,\n width: 98,\n fontFamily: 'Roboto',\n backgroundColor: 'var(--material-background-color)'\n }, style);\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n ref: ref,\n className: [prefixCls, className || ''].filter(Boolean).join(' '),\n style: styleWrapper\n }, other, {\n children: [/*#__PURE__*/_jsx(EditableInput, {\n label: \"Hex\",\n value: hex.toLocaleUpperCase(),\n onChange: (evn, val) => handleHex(val, evn),\n onBlur: evn => {\n var value = evn.target.value;\n evn.target.value = value.slice(0, 6);\n handleHex(value.slice(0, 6), evn);\n },\n inputStyle: {\n outline: 0,\n border: 0,\n height: 30,\n fontSize: 15,\n padding: 0,\n boxShadow: 'initial',\n borderWidth: '0 0 2px 0',\n borderBottomColor: hex ? \"#\" + hex : 'var(--material-border-bottom-color)',\n borderBottomStyle: 'solid',\n background: 'transparent'\n },\n style: {\n flexDirection: 'column-reverse',\n alignItems: 'flex-start'\n }\n }), /*#__PURE__*/_jsx(RGBA, {\n hsva: hsva,\n placement: \"top\",\n style: {\n marginTop: 11\n },\n rProps: {\n style: {\n alignItems: 'flex-start'\n },\n inputStyle: _extends({}, styleRBG)\n },\n gProps: {\n style: {\n alignItems: 'flex-start'\n },\n inputStyle: _extends({}, styleRBG)\n },\n bProps: {\n style: {\n alignItems: 'flex-start'\n },\n inputStyle: _extends({}, styleRBG)\n },\n aProps: false,\n onChange: result => handleChange(result.hsva)\n })]\n }));\n});\nMaterial.displayName = 'Material';\nexport default Material;","import _extends from \"@babel/runtime/helpers/extends\";\nimport React from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar BOXSHADOW = 'rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px';\nexport var Pointer = _ref => {\n var {\n className,\n color,\n left,\n top,\n style,\n prefixCls\n } = _ref;\n var styleWarp = _extends({}, style, {\n position: 'absolute',\n top,\n left\n });\n var cls = prefixCls + \"-pointer \" + (className || '');\n return /*#__PURE__*/_jsx(\"div\", {\n className: cls,\n style: styleWarp,\n children: /*#__PURE__*/_jsx(\"div\", {\n className: prefixCls + \"-fill\",\n style: {\n width: 10,\n height: 10,\n transform: 'translate(-5px, -5px)',\n boxShadow: BOXSHADOW,\n borderRadius: '50%',\n backgroundColor: '#fff'\n },\n children: /*#__PURE__*/_jsx(\"div\", {\n style: {\n inset: 0,\n borderRadius: '50%',\n position: 'absolute',\n backgroundColor: color\n }\n })\n })\n });\n};","var TAU = Math.PI * 2;\n\n/**\n * javascript's modulo operator doesn't produce positive numbers with negative input\n * https://www.geeksforgeeks.org/how-to-get-negative-result-using-modulo-operator-in-javascript/\n */\nexport var mod = (a, n) => (a % n + n) % n;\n\n/** distance between points (x, y) and (0, 0) */\nvar dist = (x, y) => Math.sqrt(x * x + y * y);\n\n/**\n * Get the point as the center of the wheel\n */\nexport function getWheelDimensions(_ref) {\n var {\n width = 0\n } = _ref;\n var r = width / 2;\n return {\n width,\n radius: r,\n cx: r,\n cy: r\n };\n}\n\n/**\n * Returns true if point (x, y) lands inside the wheel\n */\nexport function isInputInsideWheel(props, x, y) {\n var {\n cx,\n cy,\n width\n } = getWheelDimensions(props);\n var r = width / 2;\n return dist(cx - x, cy - y) < r;\n}\n\n/**\n * Get the current handle position for a given color\n */\nexport function getWheelHandlePosition(props, hsv) {\n var {\n cx,\n cy\n } = getWheelDimensions(props);\n var handleRange = getHandleRange(props);\n var handleAngle = (180 + translateWheelAngle(props, hsv.h, true)) * (TAU / 360);\n var handleDist = hsv.s / 100 * handleRange;\n var direction = props.direction === 'clockwise' ? -1 : 1;\n return {\n x: cx + handleDist * Math.cos(handleAngle) * direction,\n y: cy + handleDist * Math.sin(handleAngle) * direction\n };\n}\n\n/**\n * Get Range\n */\nexport function getHandleRange(_ref2) {\n var {\n width = 0\n } = _ref2;\n return width / 2;\n}\n\n/**\n * Translate an angle according to wheelAngle and wheelDirection\n */\nexport function translateWheelAngle(props, angle, invert) {\n var wheelAngle = props.angle || 0;\n var direction = props.direction;\n // inverted and clockwisee\n if (invert && direction === 'clockwise') angle = wheelAngle + angle;\n // clockwise (input handling)\n else if (direction === 'clockwise') angle = 360 - wheelAngle + angle;\n // inverted and anticlockwise\n else if (invert && direction === 'anticlockwise') angle = wheelAngle + 180 - angle;\n // anticlockwise (input handling)\n else if (direction === 'anticlockwise') angle = wheelAngle - angle;\n return mod(angle, 360);\n}\n\n/**\n * Get the current wheel value from user input\n * @param props - wheel props\n * @param x - global input x position\n * @param y - global input y position\n */\nexport function getWheelValueFromInput(props, x, y) {\n var {\n cx,\n cy\n } = getWheelDimensions(props);\n var handleRange = getHandleRange(props);\n x = cx - x;\n y = cy - y;\n // Calculate the hue by converting the angle to radians\n var hue = translateWheelAngle(props, Math.atan2(-y, -x) * (360 / TAU));\n // Find the point's distance from the center of the wheel\n // This is used to show the saturation level\n var handleDist = Math.min(dist(x, y), handleRange);\n return {\n h: Math.round(hue),\n s: Math.round(100 / handleRange * handleDist)\n };\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"radius\", \"pointer\", \"className\", \"style\", \"width\", \"height\", \"oval\", \"direction\", \"angle\", \"color\", \"onChange\"];\nimport React from 'react';\nimport { validHex, hexToHsva, hsvaToHex, color as handleColor } from '@uiw/color-convert';\nimport Interactive from '@uiw/react-drag-event-interactive';\nimport { Pointer } from './Pointer';\nimport { getWheelHandlePosition, getWheelValueFromInput } from './utils';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar HUE_GRADIENT_CLOCKWISE = 'conic-gradient(red, yellow, lime, aqua, blue, magenta, red)';\nvar HUE_GRADIENT_ANTICLOCKWISE = 'conic-gradient(red, magenta, blue, aqua, lime, yellow, red)';\nvar Wheel = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-wheel',\n radius = 0,\n pointer,\n className,\n style,\n width = 200,\n height = 200,\n oval,\n direction = 'anticlockwise',\n angle = 180,\n color,\n onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color || {};\n var hex = color ? hsvaToHex(hsva) : '';\n var positions = getWheelHandlePosition({\n width\n }, hsva);\n var comProps = {\n top: '0',\n left: '0',\n color: hex\n };\n var handleChange = (interaction, event) => {\n var result = getWheelValueFromInput({\n width\n }, width - interaction.x, height - interaction.y);\n var handleHsva = {\n h: result.h,\n s: result.s,\n v: hsva.v,\n a: hsva.a\n };\n onChange && onChange(handleColor(handleHsva));\n };\n var pointerStyle = {\n zIndex: 1,\n transform: \"translate(\" + positions.x + \"px, \" + positions.y + \"px) \" + (oval === 'x' || oval === 'X' ? 'scaleY(2)' : oval === 'y' || oval === 'Y' ? 'scaleX(2)' : '')\n };\n var pointerElement = pointer && typeof pointer === 'function' ? pointer(_extends({\n prefixCls,\n style: pointerStyle\n }, comProps)) : /*#__PURE__*/_jsx(Pointer, _extends({\n prefixCls: prefixCls,\n style: pointerStyle\n }, comProps));\n return /*#__PURE__*/_jsxs(Interactive, _extends({\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other, {\n style: _extends({\n position: 'relative',\n width,\n transform: oval === 'x' || oval === 'X' ? 'scaleY(0.5)' : oval === 'y' || oval === 'Y' ? 'scaleX(0.5)' : '',\n height\n }, style),\n ref: ref,\n onMove: handleChange,\n onDown: handleChange,\n children: [pointerElement, /*#__PURE__*/_jsx(\"div\", {\n style: {\n position: 'absolute',\n borderRadius: '50%',\n background: direction === 'anticlockwise' ? HUE_GRADIENT_CLOCKWISE : HUE_GRADIENT_ANTICLOCKWISE,\n transform: \"rotateZ(\" + (angle + 90) + \"deg)\",\n inset: 0\n }\n }), /*#__PURE__*/_jsx(\"div\", {\n style: {\n position: 'absolute',\n borderRadius: '50%',\n background: 'radial-gradient(circle closest-side, #fff, transparent)',\n inset: 0\n }\n }), /*#__PURE__*/_jsx(\"div\", {\n style: {\n backgroundColor: '#000',\n borderRadius: '50%',\n position: 'absolute',\n inset: 0,\n opacity: typeof hsva.v === 'number' ? 1 - hsva.v / 100 : 0\n }\n })]\n }));\n});\nWheel.displayName = 'Wheel';\nexport default Wheel;"],"names":["Title","props","_jsx","style","fontSize","padding","color","children","Example","hsva","dispatch","useContext","Context","_jsxs","className","styles","Colorful","onChange","hsvaToHex","marginLeft","marginRight","Sketch","Chrome","Circle","colors","width","paddingLeft","Compact","boxShadow","Wheel","height","Github","Material","Block","Component","Markdown","constructor","arguments","displayName","editorUrl","getMdStr","example","_excluded","CORLER_HEX","React","ref","prefixCls","other","_objectWithoutPropertiesLoose","validHex","hexToHsva","hex","handleHex","value","evn","test","String","replace","length","handleColor","stylePointer","_extends","borderRadius","background","position","filter","Boolean","join","borderStyle","borderWidth","borderColor","top","left","title","backgroundColor","getContrastingColor","display","alignItems","justifyContent","toLocaleUpperCase","Swatch","paddingTop","rectProps","marginBottom","hsv","EditableInput","val","onBlur","target","slice","inputStyle","outline","Point","_ref","checked","onClick","btn","useRef","handleMouseEnter","useCallback","current","handleMouseLeave","styleWrapper","boxSizing","transition","onMouseEnter","onMouseLeave","transform","pointProps","_onChange","cls","clsPoint","rectRender","_objectDestructuringEmpty","hsvColor","_excluded2","Pointer","BACKGROUND_IMG","border","zIndex","disableAlpha","handleChange","Saturation","radius","minWidth","borderBottom","pointer","_ref2","newColor","Hue","hue","h","newHue","_ref3","Alpha","_ref4","hsvaToRgbaString","newAlpha","COLORS","handleChangeCallback","rgbProps","wrapperStyle","flexWrap","undefined","margin","labelStyle","paddingRight","marginTop","label","flexDirection","flex","RGBA","placement","result","aProps","rProps","gProps","bProps","styleRBG","borderBottomColor","borderBottomStyle","fontFamily","styleWarp","inset","TAU","Math","PI","dist","x","y","sqrt","getWheelDimensions","r","cx","cy","getHandleRange","translateWheelAngle","angle","invert","n","wheelAngle","direction","oval","positions","handleRange","handleAngle","handleDist","s","cos","sin","getWheelHandlePosition","comProps","interaction","event","atan2","min","round","getWheelValueFromInput","handleHsva","v","a","pointerStyle","pointerElement","Interactive","onMove","onDown","opacity"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/313.f82cd4c3.chunk.js b/static/js/313.f82cd4c3.chunk.js deleted file mode 100644 index a30e6626a..000000000 --- a/static/js/313.f82cd4c3.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[313],{2313:(e,o,r)=>{r.r(o),r.d(o,{Component:()=>m});var a=r(7804),t=r(8024),l=r(4342),s=r(9262),i=r(4590),n=r(7355),d=r(6801),c=r(2051),h=r(11),x=r(411),p=r(2945),f=r(3623),u=r(7980),g=r(9424);function v(e){return(0,g.jsx)("div",{...e,style:{fontSize:12,padding:"5px 0",color:"#6b6b6b",...e.style},children:e.children})}const b="index_warpper__Ajp1G";function y(){const{hsva:e,dispatch:o}=(0,a.useContext)(u.ob);return(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{className:b,children:[(0,g.jsxs)("div",{children:[(0,g.jsx)(t.default,{color:e,onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:``})]}),(0,g.jsxs)("div",{style:{marginLeft:60,marginRight:60},children:[(0,g.jsx)(l.default,{color:e,onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:``})]}),(0,g.jsxs)("div",{children:[(0,g.jsx)(s.default,{color:e,onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:''})]})]}),(0,g.jsxs)("div",{className:b,children:[(0,g.jsxs)("div",{children:[(0,g.jsx)(i.default,{colors:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#607d8b"],style:{width:252},color:e,onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:``})]}),(0,g.jsxs)("div",{style:{paddingLeft:20},children:[(0,g.jsx)(n.default,{color:e,style:{boxShadow:"rgb(0 0 0 / 15%) 0px 0px 0px 1px, rgb(0 0 0 / 15%) 0px 8px 16px"},onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:``})]}),(0,g.jsxs)("div",{style:{marginLeft:25},children:[(0,g.jsx)(d.default,{color:e,width:140,height:140,onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:''})]})]}),(0,g.jsxs)("div",{className:b,children:[(0,g.jsxs)("div",{children:[(0,g.jsx)(c.default,{color:e,onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:``})]}),(0,g.jsxs)("div",{style:{marginRight:30,marginLeft:30},children:[(0,g.jsx)(h.default,{color:e,style:{boxShadow:"rgb(0 0 0 / 12%) 0px 2px 10px, rgb(0 0 0 / 16%) 0px 2px 5px"},onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:''})]}),(0,g.jsxs)("div",{children:[(0,g.jsx)(x.default,{color:e,onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:``})]})]})]})}class m extends f.A{constructor(){super(...arguments),this.displayName="HomePage",this.editorUrl="/packages/color/README.md",this.getMdStr=()=>r.e(950).then(r.bind(r,950)),this.example=(0,g.jsx)(y,{})}}},411:(e,o,r)=>{r.r(o),r.d(o,{default:()=>p});var a=r(8102),t=r(9257),l=r(7804),s=r(2945),i=r(5991),n=r(6966),d=r(9424),c=["prefixCls","className","style","color","colors","onChange"],h=["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],x=l.forwardRef(((e,o)=>{var{prefixCls:r="w-color-block",className:l,style:x,color:p,colors:f=h,onChange:u}=e,g=(0,t.A)(e,c),v="string"===typeof p&&(0,s.validHex)(p)?(0,s.hexToHsva)(p):p,b=p?(0,s.hsvaToHex)(v):"",y=(e,o)=>{"string"===typeof e&&(0,s.validHex)(e)&&/(3|6)/.test(String(e.replace(/^#/,"").length))&&u&&u((0,s.color)((0,s.hexToHsva)(e)))},m=(0,a.A)({"--block-background-color":"rgb(255, 255, 255)","--block-box-shadow":"rgb(0 0 0 / 10%) 0 1px",width:170,borderRadius:6,background:"var(--block-background-color)",boxShadow:"var(--block-box-shadow)",position:"relative"},x);return(0,d.jsxs)("div",(0,a.A)({ref:o,className:[r,l].filter(Boolean).join(" "),style:m},g,{children:[(0,d.jsx)("div",{style:{width:0,height:0,borderStyle:"solid",borderWidth:"0 10px 10px",borderColor:"transparent transparent "+b,position:"absolute",top:-10,left:"50%",marginLeft:-10}}),(0,d.jsx)("div",{title:b,style:{backgroundColor:""+b,color:(0,s.getContrastingColor)(b),height:110,fontSize:18,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center"},children:b.toLocaleUpperCase()}),(0,d.jsx)(n.default,{colors:f,color:b,style:{paddingLeft:10,paddingTop:10},rectProps:{style:{marginRight:10,marginBottom:10,borderRadius:4,height:22,width:22}},onChange:e=>{u&&u((0,s.color)(e))}}),(0,d.jsx)(i.default,{value:b.toLocaleUpperCase(),onChange:(e,o)=>y(o),onBlur:e=>{var o=e.target.value;e.target.value=o.slice(0,6),y(o.slice(0,6))},inputStyle:{height:22,outline:0,borderRadius:3,padding:"0 7px"},style:{padding:10,paddingTop:0,borderRadius:"0 0 6px 6px"}})]}))}));x.displayName="Block";const p=x},4590:(e,o,r)=>{r.r(o),r.d(o,{default:()=>p});var a=r(9520),t=r(8102),l=r(9257),s=r(7804),i=r(2945),n=r(6966),d=r(9424);function c(e){var{style:o,className:r,title:a,checked:l,color:i,onClick:n,rectProps:c}=e,h=(0,s.useRef)(null),x=(0,s.useCallback)((()=>{h.current.style.transform="scale(1.2)"}),[]),p=(0,s.useCallback)((()=>{h.current.style.transform="scale(1)"}),[]),f=(0,t.A)({"--circle-point-background-color":"#fff",height:l?"100%":0,width:l?"100%":0,borderRadius:"50%",backgroundColor:"var(--circle-point-background-color)",boxSizing:"border-box",transition:"height 100ms ease 0s, width 100ms ease 0s"},c.style);return(0,d.jsx)("div",{ref:h,onClick:n,onMouseEnter:x,onMouseLeave:p,title:a,className:r,style:(0,t.A)({display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,padding:3,borderRadius:"50%",marginRight:12,marginBottom:12,boxSizing:"border-box",transform:"scale(1)",boxShadow:i+" 0px 0px "+(l?5:0)+"px",transition:"transform 100ms ease 0s, box-shadow 100ms ease 0s"},o),children:(0,d.jsx)("div",(0,t.A)({},c,{style:f}))})}var h=["prefixCls","className","color","colors","rectProps","pointProps","onChange"],x=s.forwardRef(((e,o)=>{var{prefixCls:r="w-color-circle",className:s,color:x,colors:p=[],rectProps:f={},pointProps:u={},onChange:g}=e,v=(0,l.A)(e,h),b="string"===typeof x&&(0,i.validHex)(x)?(0,i.hexToHsva)(x):x||{},y=x?(0,i.hsvaToHex)(b):"",m=[r,s].filter(Boolean).join(" "),C=[r+"-point",null==u?void 0:u.className].filter(Boolean).join(" ");return(0,d.jsx)(n.default,(0,t.A)({ref:o,colors:p,color:y},v,{className:m,rectRender:e=>{var o=(0,t.A)({},((0,a.A)(e),e));return(0,d.jsx)(c,(0,t.A)({},o,u,{style:(0,t.A)({},o.style,u.style),className:C,rectProps:f}))},onChange:e=>{g&&g((0,i.color)(e))}}))}));x.displayName="Circle";const p=x},8024:(e,o,r)=>{r.r(o),r.d(o,{default:()=>u});var a=r(8102),t=r(9257),l=r(7804),s=r(2945),i=r(1636),n=r(2084),d=r(1068),c=r(9424),h=["style","color"],x=["prefixCls","className","onChange","color","style","disableAlpha"],p=e=>{var{style:o,color:r}=e,l=(0,t.A)(e,h),s=(0,a.A)({"--colorful-pointer-background-color":"#fff","--colorful-pointer-border":"2px solid #fff",height:28,width:28,position:"absolute",transform:"translate(-14px, -4px)",boxShadow:"0 2px 4px rgb(0 0 0 / 20%)",borderRadius:"50%",background:"url("+i.BACKGROUND_IMG+")",backgroundColor:"var(--colorful-pointer-background-color)",border:"var(--colorful-pointer-border)",zIndex:1},o);return(0,c.jsx)("div",(0,a.A)({},l,{style:s,children:(0,c.jsx)("div",{style:{backgroundColor:r,borderRadius:"50%",height:" 100%",width:"100%"}})}))},f=l.forwardRef(((e,o)=>{var{prefixCls:r="w-color-colorful",className:l,onChange:h,color:f,style:u,disableAlpha:g}=e,v=(0,t.A)(e,x),b="string"===typeof f&&(0,s.validHex)(f)?(0,s.hexToHsva)(f):f||{},y=e=>h&&h((0,s.color)(e));return(0,c.jsxs)("div",(0,a.A)({ref:o,style:(0,a.A)({width:200,position:"relative"},u)},v,{className:r+" "+(l||""),children:[(0,c.jsx)(n.default,{hsva:b,className:r,radius:"8px 8px 0 0",style:{width:"auto",height:150,minWidth:120,borderBottom:"12px solid #000"},pointer:e=>{var{left:o,top:r,color:a}=e;return(0,c.jsx)(p,{style:{left:o,top:r,transform:"translate(-16px, -16px)"},color:(0,s.hsvaToHex)(b)})},onChange:e=>y((0,a.A)({},b,e))}),(0,c.jsx)(d.default,{hue:b.h,height:24,radius:g?"0 0 8px 8px":0,className:r,onChange:e=>y((0,a.A)({},b,e)),pointer:e=>{var{left:o}=e;return(0,c.jsx)(p,{style:{left:o},color:"hsl("+(b.h||0)+"deg 100% 50%)"})}}),!g&&(0,c.jsx)(i.default,{hsva:b,height:24,className:r,radius:"0 0 8px 8px",pointer:e=>{var{left:o}=e;return(0,c.jsx)(p,{style:{left:o},color:(0,s.hsvaToRgbaString)(b)})},onChange:e=>y((0,a.A)({},b,e))})]}))}));f.displayName="Colorful";const u=f},7355:(e,o,r)=>{r.r(o),r.d(o,{default:()=>u});var a=r(8102),t=r(9257),l=r(7804),s=r(2945),i=r(5991),n=r(6436),d=r(6966),c=r(9424),h=["prefixCls","className","style","onChange","color","colors","rectProps","rectRender"],x=["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"];function p(e){return e.checked?(0,c.jsx)("div",{style:{height:5,width:5,borderRadius:"50%",backgroundColor:(0,s.getContrastingColor)(e.color)}}):null}var f=l.forwardRef(((e,o)=>{var{prefixCls:r="w-color-compact",className:f,style:u,onChange:g,color:v,colors:b=x,rectProps:y,rectRender:m}=e,C=(0,t.A)(e,h),j="string"===typeof v&&(0,s.validHex)(v)?(0,s.hexToHsva)(v):v,w=v?(0,s.hsvaToHex)(j).replace(/^#/,""):"",k=(0,l.useCallback)((e=>g&&g((0,s.color)(e))),[]),A={style:{alignItems:"baseline"},inputStyle:{boxShadow:"none",backgroundColor:"transparent",outline:0}},N=(0,a.A)({"--compact-background-color":"#f6f6f6",background:"var(--compact-background-color)",borderRadius:3,display:"flex",width:240,flexWrap:"wrap",paddingTop:5,paddingLeft:5},u);return(0,c.jsxs)("div",(0,a.A)({ref:o,style:N,className:[r,f||""].filter(Boolean).join(" ")},C,{children:[(0,c.jsx)(d.default,{colors:b,color:v?(0,s.hsvaToHex)(j):void 0,rectRender:m,rectProps:(0,a.A)({children:(0,c.jsx)(p,{})},y,{style:(0,a.A)({display:"flex",alignItems:"center",justifyContent:"center"},null==y?void 0:y.style)}),onChange:e=>k(e)}),(0,c.jsxs)("div",{style:{display:"flex",margin:"0 4px 3px 0"},children:[(0,c.jsx)(i.default,{onChange:(e,o)=>{var r;"string"===typeof(r=o)&&(0,s.validHex)(r)&&/(3|6)/.test(String(r.length))&&k((0,s.hexToHsva)(r))},labelStyle:{paddingRight:5,marginTop:-1},value:w.toLocaleUpperCase(),label:(0,c.jsx)("div",{style:{width:8,height:8,backgroundColor:"#"+w}}),inputStyle:{outline:"none",boxShadow:"initial",background:"transparent"},style:{flexDirection:"row-reverse",flex:"1 1 0%",minWidth:80}}),(0,c.jsx)(n.default,{hsva:j,placement:"left",onChange:e=>k(e.hsva),aProps:!1,rProps:A,gProps:A,bProps:A})]})]}))}));f.displayName="Compact";const u=f},11:(e,o,r)=>{r.r(o),r.d(o,{default:()=>p});var a=r(8102),t=r(9257),l=r(7804),s=r(2945),i=r(5991),n=r(6436),d=r(9424),c=["prefixCls","className","style","color","onChange"],h={boxShadow:"initial",borderWidth:"0 0 1px 0",borderBottomColor:"var(--material-border-bottom-color)",borderBottomStyle:"solid",height:30,outline:0,fontSize:15,padding:0},x=l.forwardRef(((e,o)=>{var{prefixCls:r="w-color-material",className:l,style:x,color:p,onChange:f}=e,u=(0,t.A)(e,c),g="string"===typeof p&&(0,s.validHex)(p)?(0,s.hexToHsva)(p):p,v=p?(0,s.hsvaToHex)(g).replace(/^#/,""):"",b=(e,o)=>{"string"===typeof e&&(0,s.validHex)(e)&&/(3|6)/.test(String(e.length))&&f&&f((0,s.color)((0,s.hexToHsva)(e)))},y=(0,a.A)({"--material-border-bottom-color":"#eee","--material-background-color":"#fff",padding:16,width:98,fontFamily:"Roboto",backgroundColor:"var(--material-background-color)"},x);return(0,d.jsxs)("div",(0,a.A)({ref:o,className:[r,l||""].filter(Boolean).join(" "),style:y},u,{children:[(0,d.jsx)(i.default,{label:"Hex",value:v.toLocaleUpperCase(),onChange:(e,o)=>b(o),onBlur:e=>{var o=e.target.value;e.target.value=o.slice(0,6),b(o.slice(0,6))},inputStyle:{outline:0,border:0,height:30,fontSize:15,padding:0,boxShadow:"initial",borderWidth:"0 0 2px 0",borderBottomColor:v?"#"+v:"var(--material-border-bottom-color)",borderBottomStyle:"solid",background:"transparent"},style:{flexDirection:"column-reverse",alignItems:"flex-start"}}),(0,d.jsx)(n.default,{hsva:g,placement:"top",style:{marginTop:11},rProps:{style:{alignItems:"flex-start"},inputStyle:(0,a.A)({},h)},gProps:{style:{alignItems:"flex-start"},inputStyle:(0,a.A)({},h)},bProps:{style:{alignItems:"flex-start"},inputStyle:(0,a.A)({},h)},aProps:!1,onChange:e=>{return o=e.hsva,void(f&&f((0,s.color)(o)));var o}})]}))}));x.displayName="Material";const p=x},6801:(e,o,r)=>{r.r(o),r.d(o,{default:()=>v});var a=r(8102),t=r(9257),l=r(7804),s=r(2945),i=r(1346),n=r(9424),d=e=>{var{className:o,color:r,left:t,top:l,style:s,prefixCls:i}=e,d=(0,a.A)({},s,{position:"absolute",top:l,left:t}),c=i+"-pointer "+(o||"");return(0,n.jsx)("div",{className:c,style:d,children:(0,n.jsx)("div",{className:i+"-fill",style:{width:10,height:10,transform:"translate(-5px, -5px)",boxShadow:"rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px",borderRadius:"50%",backgroundColor:"#fff"},children:(0,n.jsx)("div",{style:{inset:0,borderRadius:"50%",position:"absolute",backgroundColor:r}})})})},c=2*Math.PI,h=(e,o)=>Math.sqrt(e*e+o*o);function x(e){var{width:o=0}=e,r=o/2;return{width:o,radius:r,cx:r,cy:r}}function p(e){var{width:o=0}=e;return o/2}function f(e,o,r){var a,t=e.angle||0,l=e.direction;return r&&"clockwise"===l?o=t+o:"clockwise"===l?o=360-t+o:r&&"anticlockwise"===l?o=t+180-o:"anticlockwise"===l&&(o=t-o),(o%(a=360)+a)%a}var u=["prefixCls","radius","pointer","className","style","width","height","oval","direction","angle","color","onChange"],g=l.forwardRef(((e,o)=>{var{prefixCls:r="w-color-wheel",radius:l=0,pointer:g,className:v,style:b,width:y=200,height:m=200,oval:C,direction:j="anticlockwise",angle:w=180,color:k,onChange:A}=e,N=(0,t.A)(e,u),R="string"===typeof k&&(0,s.validHex)(k)?(0,s.hexToHsva)(k):k||{},H=k?(0,s.hsvaToHex)(R):"",S=function(e,o){var{cx:r,cy:a}=x(e),t=p(e),l=(180+f(e,o.h,!0))*(c/360),s=o.s/100*t,i="clockwise"===e.direction?-1:1;return{x:r+s*Math.cos(l)*i,y:a+s*Math.sin(l)*i}}({width:y},R),B={top:"0",left:"0",color:H},F=(e,o)=>{var r=function(e,o,r){var{cx:a,cy:t}=x(e),l=p(e);o=a-o,r=t-r;var s=f(e,Math.atan2(-r,-o)*(360/c)),i=Math.min(h(o,r),l);return{h:Math.round(s),s:Math.round(100/l*i)}}({width:y},y-e.x,m-e.y),a={h:r.h,s:r.s,v:R.v,a:R.a};A&&A((0,s.color)(a))},T={zIndex:1,transform:"translate("+S.x+"px, "+S.y+"px) "+("x"===C||"X"===C?"scaleY(2)":"y"===C||"Y"===C?"scaleX(2)":"")},D=g&&"function"===typeof g?g((0,a.A)({prefixCls:r,style:T},B)):(0,n.jsx)(d,(0,a.A)({prefixCls:r,style:T},B));return(0,n.jsxs)(i.default,(0,a.A)({className:[r,v||""].filter(Boolean).join(" ")},N,{style:(0,a.A)({position:"relative",width:y,transform:"x"===C||"X"===C?"scaleY(0.5)":"y"===C||"Y"===C?"scaleX(0.5)":"",height:m},b),ref:o,onMove:F,onDown:F,children:[D,(0,n.jsx)("div",{style:{position:"absolute",borderRadius:"50%",background:"anticlockwise"===j?"conic-gradient(red, yellow, lime, aqua, blue, magenta, red)":"conic-gradient(red, magenta, blue, aqua, lime, yellow, red)",transform:"rotateZ("+(w+90)+"deg)",inset:0}}),(0,n.jsx)("div",{style:{position:"absolute",borderRadius:"50%",background:"radial-gradient(circle closest-side, #fff, transparent)",inset:0}}),(0,n.jsx)("div",{style:{backgroundColor:"#000",borderRadius:"50%",position:"absolute",inset:0,opacity:"number"===typeof R.v?1-R.v/100:0}})]}))}));g.displayName="Wheel";const v=g}}]); -//# sourceMappingURL=313.f82cd4c3.chunk.js.map \ No newline at end of file diff --git a/static/js/313.f82cd4c3.chunk.js.map b/static/js/313.f82cd4c3.chunk.js.map deleted file mode 100644 index 7c406fc5b..000000000 --- a/static/js/313.f82cd4c3.chunk.js.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KAAK,MAAO,CAC3BC,MAAO,CACLuE,gBAAiB,OACjBZ,aAAc,MACdE,SAAU,WACVmG,MAAO,EACP2C,QAA2B,kBAAXrM,EAAK8L,EAAiB,EAAI9L,EAAK8L,EAAI,IAAM,QAG5D,IAEL1K,EAAMS,YAAc,QACpB,S","sources":["components/Title.tsx","webpack://website/./src/pages/home/index.module.less?e0b9","pages/home/index.tsx","../../packages/color-block/esm/index.js","../../packages/color-circle/esm/Point.js","../../packages/color-circle/esm/index.js","../../packages/color-colorful/esm/index.js","../../packages/color-compact/esm/index.js","../../packages/color-material/esm/index.js","../../packages/color-wheel/esm/Pointer.js","../../packages/color-wheel/esm/utils.js","../../packages/color-wheel/esm/index.js"],"sourcesContent":["interface TitleProps extends React.HTMLAttributes {}\n\nexport default function Title(props: TitleProps) {\n return (\n
\n {props.children}\n
\n );\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"warpper\":\"index_warpper__Ajp1G\"};","import { useContext } from 'react';\nimport { Colorful, Sketch, Block, Circle, Compact, Wheel, Github, Material, Chrome } from '@uiw/react-color';\nimport { hsvaToHex } from '@uiw/react-color';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\nimport Title from '../../components/Title';\nimport styles from './index.module.less';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Colorful color=\"${hsvaToHex(hsva)}\" />`}\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Sketch color=\"${hsvaToHex(hsva)}\" />`}\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Chrome color=\"...\" />`}\n
\n
\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Circle color=\"${hsvaToHex(hsva)}\" />`}\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Compact color=\"${hsvaToHex(hsva)}\" />`}\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Wheel color=\"...\" />`}\n
\n
\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Github color=\"${hsvaToHex(hsva)}\" />`}\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Material color=\"...\" />`}\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Block color=\"${hsvaToHex(hsva)}\" />`}\n
\n
\n
\n );\n}\n\nexport class Component extends Markdown {\n displayName = 'HomePage';\n editorUrl = '/packages/color/README.md';\n getMdStr = () => import('@uiw/react-color/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"color\", \"colors\", \"onChange\"];\nimport React from 'react';\nimport { color as handleColor, validHex, hexToHsva, hsvaToHex, getContrastingColor } from '@uiw/color-convert';\nimport EditableInput from '@uiw/react-color-editable-input';\nimport Swatch from '@uiw/react-color-swatch';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar CORLER_HEX = ['#D9E3F0', '#F47373', '#697689', '#37D67A', '#2CCCE4', '#555555', '#dce775', '#ff8a65', '#ba68c8'];\nvar Block = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-block',\n className,\n style,\n color,\n colors = CORLER_HEX,\n onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color;\n var hex = color ? hsvaToHex(hsva) : '';\n var handleChange = hsv => {\n onChange && onChange(handleColor(hsv));\n };\n var handleHex = (value, evn) => {\n if (typeof value === 'string' && validHex(value) && /(3|6)/.test(String(value.replace(/^#/, '').length))) {\n onChange && onChange(handleColor(hexToHsva(value)));\n }\n };\n var stylePointer = _extends({\n '--block-background-color': 'rgb(255, 255, 255)',\n '--block-box-shadow': 'rgb(0 0 0 / 10%) 0 1px',\n width: 170,\n borderRadius: 6,\n background: 'var(--block-background-color)',\n boxShadow: 'var(--block-box-shadow)',\n position: 'relative'\n }, style);\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n ref: ref,\n className: [prefixCls, className].filter(Boolean).join(' '),\n style: stylePointer\n }, other, {\n children: [/*#__PURE__*/_jsx(\"div\", {\n style: {\n width: 0,\n height: 0,\n borderStyle: 'solid',\n borderWidth: '0 10px 10px',\n borderColor: \"transparent transparent \" + hex,\n position: 'absolute',\n top: -10,\n left: '50%',\n marginLeft: -10\n }\n }), /*#__PURE__*/_jsx(\"div\", {\n title: hex,\n style: {\n backgroundColor: \"\" + hex,\n color: getContrastingColor(hex),\n height: 110,\n fontSize: 18,\n borderRadius: '6px 6px 0 0',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n },\n children: hex.toLocaleUpperCase()\n }), /*#__PURE__*/_jsx(Swatch, {\n colors: colors,\n color: hex,\n style: {\n paddingLeft: 10,\n paddingTop: 10\n },\n rectProps: {\n style: {\n marginRight: 10,\n marginBottom: 10,\n borderRadius: 4,\n height: 22,\n width: 22\n }\n },\n onChange: handleChange\n }), /*#__PURE__*/_jsx(EditableInput, {\n value: hex.toLocaleUpperCase(),\n onChange: (evn, val) => handleHex(val, evn),\n onBlur: evn => {\n var value = evn.target.value;\n evn.target.value = value.slice(0, 6);\n handleHex(value.slice(0, 6), evn);\n },\n inputStyle: {\n height: 22,\n outline: 0,\n borderRadius: 3,\n padding: '0 7px'\n },\n style: {\n padding: 10,\n paddingTop: 0,\n borderRadius: '0 0 6px 6px'\n }\n })]\n }));\n});\nBlock.displayName = 'Block';\nexport default Block;","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useCallback } from 'react';\nimport { useRef } from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function Point(_ref) {\n var {\n style,\n className,\n title,\n checked,\n color,\n onClick,\n rectProps\n } = _ref;\n var btn = useRef(null);\n var handleMouseEnter = useCallback(() => {\n btn.current.style['transform'] = 'scale(1.2)';\n }, []);\n var handleMouseLeave = useCallback(() => {\n btn.current.style['transform'] = 'scale(1)';\n }, []);\n var styleWrapper = _extends({\n '--circle-point-background-color': '#fff',\n height: checked ? '100%' : 0,\n width: checked ? '100%' : 0,\n borderRadius: '50%',\n backgroundColor: 'var(--circle-point-background-color)',\n boxSizing: 'border-box',\n transition: 'height 100ms ease 0s, width 100ms ease 0s'\n }, rectProps.style);\n return /*#__PURE__*/_jsx(\"div\", {\n ref: btn,\n onClick: onClick,\n onMouseEnter: handleMouseEnter,\n onMouseLeave: handleMouseLeave,\n title: title,\n className: className,\n style: _extends({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: 28,\n height: 28,\n padding: 3,\n borderRadius: '50%',\n marginRight: 12,\n marginBottom: 12,\n boxSizing: 'border-box',\n transform: 'scale(1)',\n boxShadow: color + \" 0px 0px \" + (checked ? 5 : 0) + \"px\",\n transition: 'transform 100ms ease 0s, box-shadow 100ms ease 0s'\n }, style),\n children: /*#__PURE__*/_jsx(\"div\", _extends({}, rectProps, {\n style: styleWrapper\n }))\n });\n}","import _objectDestructuringEmpty from \"@babel/runtime/helpers/objectDestructuringEmpty\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"color\", \"colors\", \"rectProps\", \"pointProps\", \"onChange\"];\nimport React from 'react';\nimport { validHex, hsvaToHex, hexToHsva, color as handleColor } from '@uiw/color-convert';\nimport Swatch from '@uiw/react-color-swatch';\nimport Point from './Point';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar Circle = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-circle',\n className,\n color,\n colors = [],\n rectProps = {},\n pointProps = {},\n onChange: _onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color || {};\n var hex = color ? hsvaToHex(hsva) : '';\n var cls = [prefixCls, className].filter(Boolean).join(' ');\n var clsPoint = [prefixCls + \"-point\", pointProps == null ? void 0 : pointProps.className].filter(Boolean).join(' ');\n return /*#__PURE__*/_jsx(Swatch, _extends({\n ref: ref,\n colors: colors,\n color: hex\n }, other, {\n className: cls,\n rectRender: _ref => {\n var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));\n return /*#__PURE__*/_jsx(Point, _extends({}, props, pointProps, {\n style: _extends({}, props.style, pointProps.style),\n className: clsPoint,\n rectProps: rectProps\n }));\n },\n onChange: hsvColor => {\n _onChange && _onChange(handleColor(hsvColor));\n }\n }));\n});\nCircle.displayName = 'Circle';\nexport default Circle;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"style\", \"color\"],\n _excluded2 = [\"prefixCls\", \"className\", \"onChange\", \"color\", \"style\", \"disableAlpha\"];\nimport React from 'react';\nimport { validHex, color as handleColor, hexToHsva, hsvaToHex, hsvaToRgbaString } from '@uiw/color-convert';\nimport Alpha, { BACKGROUND_IMG } from '@uiw/react-color-alpha';\nimport Saturation from '@uiw/react-color-saturation';\nimport Hue from '@uiw/react-color-hue';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar Pointer = _ref => {\n var {\n style,\n color\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n var stylePointer = _extends({\n '--colorful-pointer-background-color': '#fff',\n '--colorful-pointer-border': '2px solid #fff',\n height: 28,\n width: 28,\n position: 'absolute',\n transform: 'translate(-14px, -4px)',\n boxShadow: '0 2px 4px rgb(0 0 0 / 20%)',\n borderRadius: '50%',\n background: \"url(\" + BACKGROUND_IMG + \")\",\n backgroundColor: 'var(--colorful-pointer-background-color)',\n border: 'var(--colorful-pointer-border)',\n zIndex: 1\n }, style);\n return /*#__PURE__*/_jsx(\"div\", _extends({}, props, {\n style: stylePointer,\n children: /*#__PURE__*/_jsx(\"div\", {\n style: {\n backgroundColor: color,\n borderRadius: '50%',\n height: ' 100%',\n width: '100%'\n }\n })\n }));\n};\nvar Colorful = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-colorful',\n className,\n onChange,\n color,\n style,\n disableAlpha\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded2);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color || {};\n var handleChange = value => onChange && onChange(handleColor(value));\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n ref: ref,\n style: _extends({\n width: 200,\n position: 'relative'\n }, style)\n }, other, {\n className: prefixCls + \" \" + (className || ''),\n children: [/*#__PURE__*/_jsx(Saturation, {\n hsva: hsva,\n className: prefixCls,\n radius: \"8px 8px 0 0\",\n style: {\n width: 'auto',\n height: 150,\n minWidth: 120,\n borderBottom: '12px solid #000'\n },\n pointer: _ref2 => {\n var {\n left,\n top,\n color\n } = _ref2;\n return /*#__PURE__*/_jsx(Pointer, {\n style: {\n left,\n top,\n transform: 'translate(-16px, -16px)'\n },\n color: hsvaToHex(hsva)\n });\n },\n onChange: newColor => handleChange(_extends({}, hsva, newColor))\n }), /*#__PURE__*/_jsx(Hue, {\n hue: hsva.h,\n height: 24,\n radius: disableAlpha ? '0 0 8px 8px' : 0,\n className: prefixCls,\n onChange: newHue => handleChange(_extends({}, hsva, newHue)),\n pointer: _ref3 => {\n var {\n left\n } = _ref3;\n return /*#__PURE__*/_jsx(Pointer, {\n style: {\n left\n },\n color: \"hsl(\" + (hsva.h || 0) + \"deg 100% 50%)\"\n });\n }\n }), !disableAlpha && /*#__PURE__*/_jsx(Alpha, {\n hsva: hsva,\n height: 24,\n className: prefixCls,\n radius: \"0 0 8px 8px\",\n pointer: _ref4 => {\n var {\n left\n } = _ref4;\n return /*#__PURE__*/_jsx(Pointer, {\n style: {\n left\n },\n color: hsvaToRgbaString(hsva)\n });\n },\n onChange: newAlpha => handleChange(_extends({}, hsva, newAlpha))\n })]\n }));\n});\nColorful.displayName = 'Colorful';\nexport default Colorful;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"onChange\", \"color\", \"colors\", \"rectProps\", \"rectRender\"];\nimport React, { useCallback } from 'react';\nimport { color as handleColor, hexToHsva, validHex, hsvaToHex, getContrastingColor } from '@uiw/color-convert';\nimport EditableInput from '@uiw/react-color-editable-input';\nimport RGBA from '@uiw/react-color-editable-input-rgba';\nimport Swatch from '@uiw/react-color-swatch';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar COLORS = ['#4D4D4D', '#999999', '#FFFFFF', '#F44E3B', '#FE9200', '#FCDC00', '#DBDF00', '#A4DD00', '#68CCCA', '#73D8FF', '#AEA1FF', '#FDA1FF', '#333333', '#808080', '#cccccc', '#D33115', '#E27300', '#FCC400', '#B0BC00', '#68BC00', '#16A5A5', '#009CE0', '#7B64FF', '#FA28FF', '#000000', '#666666', '#B3B3B3', '#9F0500', '#C45100', '#FB9E00', '#808900', '#194D33', '#0C797D', '#0062B1', '#653294', '#AB149E'];\nfunction Point(props) {\n if (!props.checked) return null;\n return /*#__PURE__*/_jsx(\"div\", {\n style: {\n height: 5,\n width: 5,\n borderRadius: '50%',\n backgroundColor: getContrastingColor(props.color)\n }\n });\n}\nvar Compact = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-compact',\n className,\n style,\n onChange,\n color,\n colors = COLORS,\n rectProps,\n rectRender\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color;\n var hex = color ? hsvaToHex(hsva).replace(/^#/, '') : '';\n var handleChangeCallback = useCallback(hsv => onChange && onChange(handleColor(hsv)), []);\n var handleHex = (value, evn) => {\n if (typeof value === 'string' && validHex(value) && /(3|6)/.test(String(value.length))) {\n handleChangeCallback(hexToHsva(value));\n }\n };\n var rgbProps = {\n style: {\n alignItems: 'baseline'\n },\n inputStyle: {\n boxShadow: 'none',\n backgroundColor: 'transparent',\n outline: 0\n }\n };\n var wrapperStyle = _extends({\n '--compact-background-color': '#f6f6f6',\n background: 'var(--compact-background-color)',\n borderRadius: 3,\n display: 'flex',\n width: 240,\n flexWrap: 'wrap',\n paddingTop: 5,\n paddingLeft: 5\n }, style);\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n ref: ref,\n style: wrapperStyle,\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other, {\n children: [/*#__PURE__*/_jsx(Swatch, {\n colors: colors,\n color: color ? hsvaToHex(hsva) : undefined,\n rectRender: rectRender,\n rectProps: _extends({\n children: /*#__PURE__*/_jsx(Point, {})\n }, rectProps, {\n style: _extends({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n }, rectProps == null ? void 0 : rectProps.style)\n }),\n onChange: hsvColor => handleChangeCallback(hsvColor)\n }), /*#__PURE__*/_jsxs(\"div\", {\n style: {\n display: 'flex',\n margin: '0 4px 3px 0'\n },\n children: [/*#__PURE__*/_jsx(EditableInput, {\n onChange: (evn, val) => handleHex(val, evn),\n labelStyle: {\n paddingRight: 5,\n marginTop: -1\n },\n value: hex.toLocaleUpperCase(),\n label: /*#__PURE__*/_jsx(\"div\", {\n style: {\n width: 8,\n height: 8,\n backgroundColor: \"#\" + hex\n }\n }),\n inputStyle: {\n outline: 'none',\n boxShadow: 'initial',\n background: 'transparent'\n },\n style: {\n flexDirection: 'row-reverse',\n flex: '1 1 0%',\n minWidth: 80\n }\n }), /*#__PURE__*/_jsx(RGBA, {\n hsva: hsva,\n placement: \"left\",\n onChange: result => handleChangeCallback(result.hsva),\n aProps: false,\n rProps: rgbProps,\n gProps: rgbProps,\n bProps: rgbProps\n })]\n })]\n }));\n});\nCompact.displayName = 'Compact';\nexport default Compact;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"color\", \"onChange\"];\nimport React from 'react';\nimport { color as handleColor, validHex, hexToHsva, hsvaToHex } from '@uiw/color-convert';\nimport EditableInput from '@uiw/react-color-editable-input';\nimport RGBA from '@uiw/react-color-editable-input-rgba';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar styleRBG = {\n boxShadow: 'initial',\n borderWidth: '0 0 1px 0',\n borderBottomColor: 'var(--material-border-bottom-color)',\n borderBottomStyle: 'solid',\n height: 30,\n outline: 0,\n fontSize: 15,\n padding: 0\n};\nvar Material = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-material',\n className,\n style,\n color,\n onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color;\n var hex = color ? hsvaToHex(hsva).replace(/^#/, '') : '';\n var handleChange = hsv => {\n onChange && onChange(handleColor(hsv));\n };\n var handleHex = (value, evn) => {\n if (typeof value === 'string' && validHex(value) && /(3|6)/.test(String(value.length))) {\n onChange && onChange(handleColor(hexToHsva(value)));\n }\n };\n var styleWrapper = _extends({\n '--material-border-bottom-color': '#eee',\n '--material-background-color': '#fff',\n padding: 16,\n width: 98,\n fontFamily: 'Roboto',\n backgroundColor: 'var(--material-background-color)'\n }, style);\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n ref: ref,\n className: [prefixCls, className || ''].filter(Boolean).join(' '),\n style: styleWrapper\n }, other, {\n children: [/*#__PURE__*/_jsx(EditableInput, {\n label: \"Hex\",\n value: hex.toLocaleUpperCase(),\n onChange: (evn, val) => handleHex(val, evn),\n onBlur: evn => {\n var value = evn.target.value;\n evn.target.value = value.slice(0, 6);\n handleHex(value.slice(0, 6), evn);\n },\n inputStyle: {\n outline: 0,\n border: 0,\n height: 30,\n fontSize: 15,\n padding: 0,\n boxShadow: 'initial',\n borderWidth: '0 0 2px 0',\n borderBottomColor: hex ? \"#\" + hex : 'var(--material-border-bottom-color)',\n borderBottomStyle: 'solid',\n background: 'transparent'\n },\n style: {\n flexDirection: 'column-reverse',\n alignItems: 'flex-start'\n }\n }), /*#__PURE__*/_jsx(RGBA, {\n hsva: hsva,\n placement: \"top\",\n style: {\n marginTop: 11\n },\n rProps: {\n style: {\n alignItems: 'flex-start'\n },\n inputStyle: _extends({}, styleRBG)\n },\n gProps: {\n style: {\n alignItems: 'flex-start'\n },\n inputStyle: _extends({}, styleRBG)\n },\n bProps: {\n style: {\n alignItems: 'flex-start'\n },\n inputStyle: _extends({}, styleRBG)\n },\n aProps: false,\n onChange: result => handleChange(result.hsva)\n })]\n }));\n});\nMaterial.displayName = 'Material';\nexport default Material;","import _extends from \"@babel/runtime/helpers/extends\";\nimport React from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar BOXSHADOW = 'rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px';\nexport var Pointer = _ref => {\n var {\n className,\n color,\n left,\n top,\n style,\n prefixCls\n } = _ref;\n var styleWarp = _extends({}, style, {\n position: 'absolute',\n top,\n left\n });\n var cls = prefixCls + \"-pointer \" + (className || '');\n return /*#__PURE__*/_jsx(\"div\", {\n className: cls,\n style: styleWarp,\n children: /*#__PURE__*/_jsx(\"div\", {\n className: prefixCls + \"-fill\",\n style: {\n width: 10,\n height: 10,\n transform: 'translate(-5px, -5px)',\n boxShadow: BOXSHADOW,\n borderRadius: '50%',\n backgroundColor: '#fff'\n },\n children: /*#__PURE__*/_jsx(\"div\", {\n style: {\n inset: 0,\n borderRadius: '50%',\n position: 'absolute',\n backgroundColor: color\n }\n })\n })\n });\n};","var TAU = Math.PI * 2;\n\n/**\n * javascript's modulo operator doesn't produce positive numbers with negative input\n * https://www.geeksforgeeks.org/how-to-get-negative-result-using-modulo-operator-in-javascript/\n */\nexport var mod = (a, n) => (a % n + n) % n;\n\n/** distance between points (x, y) and (0, 0) */\nvar dist = (x, y) => Math.sqrt(x * x + y * y);\n\n/**\n * Get the point as the center of the wheel\n */\nexport function getWheelDimensions(_ref) {\n var {\n width = 0\n } = _ref;\n var r = width / 2;\n return {\n width,\n radius: r,\n cx: r,\n cy: r\n };\n}\n\n/**\n * Returns true if point (x, y) lands inside the wheel\n */\nexport function isInputInsideWheel(props, x, y) {\n var {\n cx,\n cy,\n width\n } = getWheelDimensions(props);\n var r = width / 2;\n return dist(cx - x, cy - y) < r;\n}\n\n/**\n * Get the current handle position for a given color\n */\nexport function getWheelHandlePosition(props, hsv) {\n var {\n cx,\n cy\n } = getWheelDimensions(props);\n var handleRange = getHandleRange(props);\n var handleAngle = (180 + translateWheelAngle(props, hsv.h, true)) * (TAU / 360);\n var handleDist = hsv.s / 100 * handleRange;\n var direction = props.direction === 'clockwise' ? -1 : 1;\n return {\n x: cx + handleDist * Math.cos(handleAngle) * direction,\n y: cy + handleDist * Math.sin(handleAngle) * direction\n };\n}\n\n/**\n * Get Range\n */\nexport function getHandleRange(_ref2) {\n var {\n width = 0\n } = _ref2;\n return width / 2;\n}\n\n/**\n * Translate an angle according to wheelAngle and wheelDirection\n */\nexport function translateWheelAngle(props, angle, invert) {\n var wheelAngle = props.angle || 0;\n var direction = props.direction;\n // inverted and clockwisee\n if (invert && direction === 'clockwise') angle = wheelAngle + angle;\n // clockwise (input handling)\n else if (direction === 'clockwise') angle = 360 - wheelAngle + angle;\n // inverted and anticlockwise\n else if (invert && direction === 'anticlockwise') angle = wheelAngle + 180 - angle;\n // anticlockwise (input handling)\n else if (direction === 'anticlockwise') angle = wheelAngle - angle;\n return mod(angle, 360);\n}\n\n/**\n * Get the current wheel value from user input\n * @param props - wheel props\n * @param x - global input x position\n * @param y - global input y position\n */\nexport function getWheelValueFromInput(props, x, y) {\n var {\n cx,\n cy\n } = getWheelDimensions(props);\n var handleRange = getHandleRange(props);\n x = cx - x;\n y = cy - y;\n // Calculate the hue by converting the angle to radians\n var hue = translateWheelAngle(props, Math.atan2(-y, -x) * (360 / TAU));\n // Find the point's distance from the center of the wheel\n // This is used to show the saturation level\n var handleDist = Math.min(dist(x, y), handleRange);\n return {\n h: Math.round(hue),\n s: Math.round(100 / handleRange * handleDist)\n };\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"radius\", \"pointer\", \"className\", \"style\", \"width\", \"height\", \"oval\", \"direction\", \"angle\", \"color\", \"onChange\"];\nimport React from 'react';\nimport { validHex, hexToHsva, hsvaToHex, color as handleColor } from '@uiw/color-convert';\nimport Interactive from '@uiw/react-drag-event-interactive';\nimport { Pointer } from './Pointer';\nimport { getWheelHandlePosition, getWheelValueFromInput } from './utils';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar HUE_GRADIENT_CLOCKWISE = 'conic-gradient(red, yellow, lime, aqua, blue, magenta, red)';\nvar HUE_GRADIENT_ANTICLOCKWISE = 'conic-gradient(red, magenta, blue, aqua, lime, yellow, red)';\nvar Wheel = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-wheel',\n radius = 0,\n pointer,\n className,\n style,\n width = 200,\n height = 200,\n oval,\n direction = 'anticlockwise',\n angle = 180,\n color,\n onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color || {};\n var hex = color ? hsvaToHex(hsva) : '';\n var positions = getWheelHandlePosition({\n width\n }, hsva);\n var comProps = {\n top: '0',\n left: '0',\n color: hex\n };\n var handleChange = (interaction, event) => {\n var result = getWheelValueFromInput({\n width\n }, width - interaction.x, height - interaction.y);\n var handleHsva = {\n h: result.h,\n s: result.s,\n v: hsva.v,\n a: hsva.a\n };\n onChange && onChange(handleColor(handleHsva));\n };\n var pointerStyle = {\n zIndex: 1,\n transform: \"translate(\" + positions.x + \"px, \" + positions.y + \"px) \" + (oval === 'x' || oval === 'X' ? 'scaleY(2)' : oval === 'y' || oval === 'Y' ? 'scaleX(2)' : '')\n };\n var pointerElement = pointer && typeof pointer === 'function' ? pointer(_extends({\n prefixCls,\n style: pointerStyle\n }, comProps)) : /*#__PURE__*/_jsx(Pointer, _extends({\n prefixCls: prefixCls,\n style: pointerStyle\n }, comProps));\n return /*#__PURE__*/_jsxs(Interactive, _extends({\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other, {\n style: _extends({\n position: 'relative',\n width,\n transform: oval === 'x' || oval === 'X' ? 'scaleY(0.5)' : oval === 'y' || oval === 'Y' ? 'scaleX(0.5)' : '',\n height\n }, style),\n ref: ref,\n onMove: handleChange,\n onDown: handleChange,\n children: [pointerElement, /*#__PURE__*/_jsx(\"div\", {\n style: {\n position: 'absolute',\n borderRadius: '50%',\n background: direction === 'anticlockwise' ? HUE_GRADIENT_CLOCKWISE : HUE_GRADIENT_ANTICLOCKWISE,\n transform: \"rotateZ(\" + (angle + 90) + \"deg)\",\n inset: 0\n }\n }), /*#__PURE__*/_jsx(\"div\", {\n style: {\n position: 'absolute',\n borderRadius: '50%',\n background: 'radial-gradient(circle closest-side, #fff, transparent)',\n inset: 0\n }\n }), /*#__PURE__*/_jsx(\"div\", {\n style: {\n backgroundColor: '#000',\n borderRadius: '50%',\n position: 'absolute',\n inset: 0,\n opacity: typeof hsva.v === 'number' ? 1 - hsva.v / 100 : 0\n }\n })]\n }));\n});\nWheel.displayName = 'Wheel';\nexport default Wheel;"],"names":["Title","props","_jsx","style","fontSize","padding","color","children","Example","hsva","dispatch","useContext","Context","_jsxs","className","styles","Colorful","onChange","hsvaToHex","marginLeft","marginRight","Sketch","Chrome","Circle","colors","width","paddingLeft","Compact","boxShadow","Wheel","height","Github","Material","Block","Component","Markdown","constructor","arguments","displayName","editorUrl","getMdStr","example","_excluded","CORLER_HEX","React","ref","prefixCls","other","_objectWithoutPropertiesLoose","validHex","hexToHsva","hex","handleHex","value","evn","test","String","replace","length","handleColor","stylePointer","_extends","borderRadius","background","position","filter","Boolean","join","borderStyle","borderWidth","borderColor","top","left","title","backgroundColor","getContrastingColor","display","alignItems","justifyContent","toLocaleUpperCase","Swatch","paddingTop","rectProps","marginBottom","hsv","EditableInput","val","onBlur","target","slice","inputStyle","outline","Point","_ref","checked","onClick","btn","useRef","handleMouseEnter","useCallback","current","handleMouseLeave","styleWrapper","boxSizing","transition","onMouseEnter","onMouseLeave","transform","pointProps","_onChange","cls","clsPoint","rectRender","_objectDestructuringEmpty","hsvColor","_excluded2","Pointer","BACKGROUND_IMG","border","zIndex","disableAlpha","handleChange","Saturation","radius","minWidth","borderBottom","pointer","_ref2","newColor","Hue","hue","h","newHue","_ref3","Alpha","_ref4","hsvaToRgbaString","newAlpha","COLORS","handleChangeCallback","rgbProps","wrapperStyle","flexWrap","undefined","margin","labelStyle","paddingRight","marginTop","label","flexDirection","flex","RGBA","placement","result","aProps","rProps","gProps","bProps","styleRBG","borderBottomColor","borderBottomStyle","fontFamily","styleWarp","inset","TAU","Math","PI","dist","x","y","sqrt","getWheelDimensions","r","cx","cy","getHandleRange","translateWheelAngle","angle","invert","n","wheelAngle","direction","oval","positions","handleRange","handleAngle","handleDist","s","cos","sin","getWheelHandlePosition","comProps","interaction","event","atan2","min","round","getWheelValueFromInput","handleHsva","v","a","pointerStyle","pointerElement","Interactive","onMove","onDown","opacity"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/328.862b6975.chunk.js.map b/static/js/328.862b6975.chunk.js.map deleted file mode 100644 index 7939dd1b6..000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,OAAO4B,EAAAA,EAAAA,GAAS,CAAC,EAAGtD,EAAM0B,MAAO+C,EAAW/C,OAC5CP,UAAWkE,EACXvC,UAAWA,IACV,EAELP,SAAUkD,IACRf,GAAaA,GAAUgB,EAAAA,EAAAA,OAAYD,GAAU,IAE9C,IAELrD,EAAOuD,YAAc,SACrB,S,8BC5CA,SAASH,EAA0BI,GACjC,GAAI,MAAQA,EAAG,MAAM,IAAIC,UAAU,sBAAwBD,EAC7D,C","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/circle/index.tsx","../../packages/color-circle/esm/Point.js","../../packages/color-circle/esm/index.js","../../node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport Circle from '@uiw/react-color-circle';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-circle/README.md';\n getMdStr = () => import('@uiw/react-color-circle/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useCallback } from 'react';\nimport { useRef } from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function Point(_ref) {\n var {\n style,\n className,\n title,\n checked,\n color,\n onClick,\n rectProps\n } = _ref;\n var btn = useRef(null);\n var handleMouseEnter = useCallback(() => {\n btn.current.style['transform'] = 'scale(1.2)';\n }, []);\n var handleMouseLeave = useCallback(() => {\n btn.current.style['transform'] = 'scale(1)';\n }, []);\n var styleWrapper = _extends({\n '--circle-point-background-color': '#fff',\n height: checked ? '100%' : 0,\n width: checked ? '100%' : 0,\n borderRadius: '50%',\n backgroundColor: 'var(--circle-point-background-color)',\n boxSizing: 'border-box',\n transition: 'height 100ms ease 0s, width 100ms ease 0s'\n }, rectProps.style);\n return /*#__PURE__*/_jsx(\"div\", {\n ref: btn,\n onClick: onClick,\n onMouseEnter: handleMouseEnter,\n onMouseLeave: handleMouseLeave,\n title: title,\n className: className,\n style: _extends({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: 28,\n height: 28,\n padding: 3,\n borderRadius: '50%',\n marginRight: 12,\n marginBottom: 12,\n boxSizing: 'border-box',\n transform: 'scale(1)',\n boxShadow: color + \" 0px 0px \" + (checked ? 5 : 0) + \"px\",\n transition: 'transform 100ms ease 0s, box-shadow 100ms ease 0s'\n }, style),\n children: /*#__PURE__*/_jsx(\"div\", _extends({}, rectProps, {\n style: styleWrapper\n }))\n });\n}","import _objectDestructuringEmpty from \"@babel/runtime/helpers/objectDestructuringEmpty\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"color\", \"colors\", \"rectProps\", \"pointProps\", \"onChange\"];\nimport React from 'react';\nimport { validHex, hsvaToHex, hexToHsva, color as handleColor } from '@uiw/color-convert';\nimport Swatch from '@uiw/react-color-swatch';\nimport Point from './Point';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar Circle = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-circle',\n className,\n color,\n colors = [],\n rectProps = {},\n pointProps = {},\n onChange: _onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color || {};\n var hex = color ? hsvaToHex(hsva) : '';\n var cls = [prefixCls, className].filter(Boolean).join(' ');\n var clsPoint = [prefixCls + \"-point\", pointProps == null ? void 0 : pointProps.className].filter(Boolean).join(' ');\n return /*#__PURE__*/_jsx(Swatch, _extends({\n ref: ref,\n colors: colors,\n color: hex\n }, other, {\n className: cls,\n rectRender: _ref => {\n var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));\n return /*#__PURE__*/_jsx(Point, _extends({}, props, pointProps, {\n style: _extends({}, props.style, pointProps.style),\n className: clsPoint,\n rectProps: rectProps\n }));\n },\n onChange: hsvColor => {\n _onChange && _onChange(handleColor(hsvColor));\n }\n }));\n});\nCircle.displayName = 'Circle';\nexport default Circle;","function _objectDestructuringEmpty(t) {\n if (null == t) throw new TypeError(\"Cannot destructure \" + t);\n}\nexport { _objectDestructuringEmpty as default };"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Circle","colors","color","onChange","arguments","Point","_ref","title","checked","onClick","rectProps","btn","useRef","handleMouseEnter","useCallback","current","handleMouseLeave","styleWrapper","_extends","height","borderRadius","backgroundColor","boxSizing","transition","ref","onMouseEnter","onMouseLeave","display","alignItems","justifyContent","padding","marginRight","marginBottom","transform","_excluded","React","prefixCls","pointProps","_onChange","other","_objectWithoutPropertiesLoose","validHex","hexToHsva","hex","hsvaToHex","cls","filter","Boolean","join","clsPoint","Swatch","rectRender","_objectDestructuringEmpty","hsvColor","handleColor","displayName","t","TypeError"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/328.862b6975.chunk.js b/static/js/328.ef1ad258.chunk.js similarity index 78% rename from static/js/328.862b6975.chunk.js rename to static/js/328.ef1ad258.chunk.js index 82e81c51d..35ea3d368 100644 --- a/static/js/328.862b6975.chunk.js +++ b/static/js/328.ef1ad258.chunk.js @@ -1,4 +1,4 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[328],{256:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=256,e.exports=t},3623:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var s=r(7804),o=r(52),i=r(3235),a=r(9424);const l=i.Ay.div` +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[328],{256:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=256,e.exports=t},3623:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var s=r(7804),o=r(7584),i=r(3235),a=r(9424);const l=i.Ay.div` background-color: var(--color-theme-bg); box-shadow: 0 0 0 1px rgb(0 0 0 / 15%), @@ -41,5 +41,5 @@ margin: 0; padding-bottom: 12px; } -`;class p extends s.Component{constructor(e){super(e),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((e=>{this.setState({mdStr:e.default.source,mdObj:e.default})}))}render(){const{source:e,components:t,data:r}=this.state.mdObj||{};return(0,a.jsxs)(c,{className:"wmde-markdown-var",children:[(0,a.jsxs)(l,{children:[this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"}),this.example&&(0,a.jsxs)(h,{children:[(0,a.jsx)("h3",{children:"Example"}),this.example]}),(0,a.jsx)(o.A,{data:{data:r,components:t,source:e},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"})]}),(0,a.jsxs)(d,{children:[(0,a.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,a.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,a.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,a.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},1369:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Component:()=>c});var s=r(7804),o=r(4590),i=r(3623),a=r(7980),l=r(9424);function n(){const{hsva:e,dispatch:t}=(0,s.useContext)(a.ob);return(0,l.jsx)("div",{style:{width:256},children:(0,l.jsx)(o.default,{colors:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#607d8b"],color:e,onChange:r=>{t({hsva:{...e,...r.hsva}})}})})}class c extends i.A{constructor(){super(...arguments),this.editorUrl="/packages/color-circle/README.md",this.getMdStr=()=>r.e(919).then(r.bind(r,2919)),this.example=(0,l.jsx)(n,{})}}},4590:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var s=r(9520),o=r(8102),i=r(9257),a=r(7804),l=r(2945),n=r(6966),c=r(9424);function d(e){var{style:t,className:r,title:s,checked:i,color:l,onClick:n,rectProps:d}=e,h=(0,a.useRef)(null),p=(0,a.useCallback)((()=>{h.current.style.transform="scale(1.2)"}),[]),u=(0,a.useCallback)((()=>{h.current.style.transform="scale(1)"}),[]),g=(0,o.A)({"--circle-point-background-color":"#fff",height:i?"100%":0,width:i?"100%":0,borderRadius:"50%",backgroundColor:"var(--circle-point-background-color)",boxSizing:"border-box",transition:"height 100ms ease 0s, width 100ms ease 0s"},d.style);return(0,c.jsx)("div",{ref:h,onClick:n,onMouseEnter:p,onMouseLeave:u,title:s,className:r,style:(0,o.A)({display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,padding:3,borderRadius:"50%",marginRight:12,marginBottom:12,boxSizing:"border-box",transform:"scale(1)",boxShadow:l+" 0px 0px "+(i?5:0)+"px",transition:"transform 100ms ease 0s, box-shadow 100ms ease 0s"},t),children:(0,c.jsx)("div",(0,o.A)({},d,{style:g}))})}var h=["prefixCls","className","color","colors","rectProps","pointProps","onChange"],p=a.forwardRef(((e,t)=>{var{prefixCls:r="w-color-circle",className:a,color:p,colors:u=[],rectProps:g={},pointProps:x={},onChange:b}=e,m=(0,i.A)(e,h),f="string"===typeof p&&(0,l.validHex)(p)?(0,l.hexToHsva)(p):p||{},j=p?(0,l.hsvaToHex)(f):"",v=[r,a].filter(Boolean).join(" "),w=[r+"-point",null==x?void 0:x.className].filter(Boolean).join(" ");return(0,c.jsx)(n.default,(0,o.A)({ref:t,colors:u,color:j},m,{className:v,rectRender:e=>{var t=(0,o.A)({},((0,s.A)(e),e));return(0,c.jsx)(d,(0,o.A)({},t,x,{style:(0,o.A)({},t.style,x.style),className:w,rectProps:g}))},onChange:e=>{b&&b((0,l.color)(e))}}))}));p.displayName="Circle";const u=p},9520:(e,t,r)=>{"use strict";function s(e){if(null==e)throw new TypeError("Cannot destructure "+e)}r.d(t,{A:()=>s})}}]); -//# sourceMappingURL=328.862b6975.chunk.js.map \ No newline at end of file +`;class p extends s.Component{constructor(e){super(e),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((e=>{this.setState({mdStr:e.default.source,mdObj:e.default})}))}render(){const{source:e,components:t,data:r}=this.state.mdObj||{};return(0,a.jsxs)(c,{className:"wmde-markdown-var",children:[(0,a.jsxs)(l,{children:[this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"}),this.example&&(0,a.jsxs)(h,{children:[(0,a.jsx)("h3",{children:"Example"}),this.example]}),(0,a.jsx)(o.A,{data:{data:r,components:t,source:e},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"})]}),(0,a.jsxs)(d,{children:[(0,a.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,a.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,a.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,a.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},1369:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Component:()=>c});var s=r(7804),o=r(4590),i=r(3623),a=r(7980),l=r(9424);function n(){const{hsva:e,dispatch:t}=(0,s.useContext)(a.ob);return(0,l.jsx)("div",{style:{width:256},children:(0,l.jsx)(o.default,{colors:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#607d8b"],color:e,onChange:r=>{t({hsva:{...e,...r.hsva}})}})})}class c extends i.A{constructor(){super(...arguments),this.editorUrl="/packages/color-circle/README.md",this.getMdStr=()=>r.e(919).then(r.bind(r,2919)),this.example=(0,l.jsx)(n,{})}}},4590:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var s=r(9520),o=r(8102),i=r(9257),a=r(7804),l=r(2945),n=r(6966),c=r(9424);function d(e){var{style:t,className:r,title:s,checked:i,color:l,onClick:n,rectProps:d}=e,h=(0,a.useRef)(null),p=(0,a.useCallback)((()=>{h.current.style.transform="scale(1.2)"}),[]),u=(0,a.useCallback)((()=>{h.current.style.transform="scale(1)"}),[]),g=(0,o.A)({"--circle-point-background-color":"#fff",height:i?"100%":0,width:i?"100%":0,borderRadius:"50%",backgroundColor:"var(--circle-point-background-color)",boxSizing:"border-box",transition:"height 100ms ease 0s, width 100ms ease 0s"},d.style);return(0,c.jsx)("div",{ref:h,onClick:n,onMouseEnter:p,onMouseLeave:u,title:s,className:r,style:(0,o.A)({padding:3,marginRight:12,marginBottom:12},t,{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,borderRadius:"50%",boxSizing:"border-box",transform:"scale(1)",boxShadow:l+" 0px 0px "+(i?5:0)+"px",transition:"transform 100ms ease 0s, box-shadow 100ms ease 0s"}),children:(0,c.jsx)("div",(0,o.A)({},d,{style:g}))})}var h=["prefixCls","className","color","colors","rectProps","pointProps","onChange"],p=a.forwardRef(((e,t)=>{var{prefixCls:r="w-color-circle",className:a,color:p,colors:u=[],rectProps:g={},pointProps:x={},onChange:b}=e,m=(0,i.A)(e,h),f="string"===typeof p&&(0,l.validHex)(p)?(0,l.hexToHsva)(p):p||{},j=p?(0,l.hsvaToHex)(f):"",v=[r,a].filter(Boolean).join(" "),w=[r+"-point",null==x?void 0:x.className].filter(Boolean).join(" ");return(0,c.jsx)(n.default,(0,o.A)({ref:t,colors:u,color:j},m,{className:v,rectRender:e=>{var t=(0,o.A)({},((0,s.A)(e),e));return(0,c.jsx)(d,(0,o.A)({},t,x,{style:(0,o.A)({},t.style,x.style),className:w,rectProps:g}))},onChange:e=>{b&&b((0,l.color)(e))}}))}));p.displayName="Circle";const u=p},9520:(e,t,r)=>{"use strict";function s(e){if(null==e)throw new TypeError("Cannot destructure "+e)}r.d(t,{A:()=>s})}}]); +//# sourceMappingURL=328.ef1ad258.chunk.js.map \ No newline at end of file diff --git a/static/js/328.ef1ad258.chunk.js.map b/static/js/328.ef1ad258.chunk.js.map new file mode 100644 index 000000000..17e8cd5dd --- /dev/null +++ b/static/js/328.ef1ad258.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/328.ef1ad258.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoB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,IAAIC,UAAU,sBAAwBD,EAC7D,C","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/circle/index.tsx","../../packages/color-circle/esm/Point.js","../../packages/color-circle/esm/index.js","../../node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport Circle from '@uiw/react-color-circle';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-circle/README.md';\n getMdStr = () => import('@uiw/react-color-circle/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useCallback } from 'react';\nimport { useRef } from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function Point(_ref) {\n var {\n style,\n className,\n title,\n checked,\n color,\n onClick,\n rectProps\n } = _ref;\n var btn = useRef(null);\n var handleMouseEnter = useCallback(() => {\n btn.current.style['transform'] = 'scale(1.2)';\n }, []);\n var handleMouseLeave = useCallback(() => {\n btn.current.style['transform'] = 'scale(1)';\n }, []);\n var styleWrapper = _extends({\n '--circle-point-background-color': '#fff',\n height: checked ? '100%' : 0,\n width: checked ? '100%' : 0,\n borderRadius: '50%',\n backgroundColor: 'var(--circle-point-background-color)',\n boxSizing: 'border-box',\n transition: 'height 100ms ease 0s, width 100ms ease 0s'\n }, rectProps.style);\n return /*#__PURE__*/_jsx(\"div\", {\n ref: btn,\n onClick: onClick,\n onMouseEnter: handleMouseEnter,\n onMouseLeave: handleMouseLeave,\n title: title,\n className: className,\n style: _extends({\n padding: 3,\n marginRight: 12,\n marginBottom: 12\n }, style, {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: 28,\n height: 28,\n borderRadius: '50%',\n boxSizing: 'border-box',\n transform: 'scale(1)',\n boxShadow: color + \" 0px 0px \" + (checked ? 5 : 0) + \"px\",\n transition: 'transform 100ms ease 0s, box-shadow 100ms ease 0s'\n }),\n children: /*#__PURE__*/_jsx(\"div\", _extends({}, rectProps, {\n style: styleWrapper\n }))\n });\n}","import _objectDestructuringEmpty from \"@babel/runtime/helpers/objectDestructuringEmpty\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"color\", \"colors\", \"rectProps\", \"pointProps\", \"onChange\"];\nimport React from 'react';\nimport { validHex, hsvaToHex, hexToHsva, color as handleColor } from '@uiw/color-convert';\nimport Swatch from '@uiw/react-color-swatch';\nimport Point from './Point';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar Circle = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-circle',\n className,\n color,\n colors = [],\n rectProps = {},\n pointProps = {},\n onChange: _onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color || {};\n var hex = color ? hsvaToHex(hsva) : '';\n var cls = [prefixCls, className].filter(Boolean).join(' ');\n var clsPoint = [prefixCls + \"-point\", pointProps == null ? void 0 : pointProps.className].filter(Boolean).join(' ');\n return /*#__PURE__*/_jsx(Swatch, _extends({\n ref: ref,\n colors: colors,\n color: hex\n }, other, {\n className: cls,\n rectRender: _ref => {\n var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));\n return /*#__PURE__*/_jsx(Point, _extends({}, props, pointProps, {\n style: _extends({}, props.style, pointProps.style),\n className: clsPoint,\n rectProps: rectProps\n }));\n },\n onChange: hsvColor => {\n _onChange && _onChange(handleColor(hsvColor));\n }\n }));\n});\nCircle.displayName = 'Circle';\nexport default Circle;","function _objectDestructuringEmpty(t) {\n if (null == t) throw new TypeError(\"Cannot destructure \" + t);\n}\nexport { _objectDestructuringEmpty as default };"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Circle","colors","color","onChange","arguments","Point","_ref","title","checked","onClick","rectProps","btn","useRef","handleMouseEnter","useCallback","current","handleMouseLeave","styleWrapper","_extends","height","borderRadius","backgroundColor","boxSizing","transition","ref","onMouseEnter","onMouseLeave","padding","marginRight","marginBottom","display","alignItems","justifyContent","transform","_excluded","React","prefixCls","pointProps","_onChange","other","_objectWithoutPropertiesLoose","validHex","hexToHsva","hex","hsvaToHex","cls","filter","Boolean","join","clsPoint","Swatch","rectRender","_objectDestructuringEmpty","hsvColor","handleColor","displayName","t","TypeError"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/331.70a60209.chunk.js b/static/js/331.bacb8bbb.chunk.js similarity index 97% rename from static/js/331.70a60209.chunk.js rename to static/js/331.bacb8bbb.chunk.js index 8862bdb8b..128f44bae 100644 --- a/static/js/331.70a60209.chunk.js +++ b/static/js/331.bacb8bbb.chunk.js @@ -1,4 +1,4 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[331],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,r)=>{"use strict";r.d(e,{A:()=>p});var o=r(7804),s=r(52),i=r(3235),a=r(9424);const l=i.Ay.div` +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[331],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,r)=>{"use strict";r.d(e,{A:()=>p});var o=r(7804),s=r(7584),i=r(3235),a=r(9424);const l=i.Ay.div` background-color: var(--color-theme-bg); box-shadow: 0 0 0 1px rgb(0 0 0 / 15%), @@ -42,4 +42,4 @@ padding-bottom: 12px; } `;class p extends o.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:r}=this.state.mdObj||{};return(0,a.jsxs)(d,{className:"wmde-markdown-var",children:[(0,a.jsxs)(l,{children:[this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"}),this.example&&(0,a.jsxs)(h,{children:[(0,a.jsx)("h3",{children:"Example"}),this.example]}),(0,a.jsx)(s.A,{data:{data:r,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"})]}),(0,a.jsxs)(c,{children:[(0,a.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,a.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,a.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,a.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},3434:(t,e,r)=>{"use strict";r.r(e),r.d(e,{Component:()=>d});var o=r(7804),s=r(11),i=r(3623),a=r(7980),l=r(9424);function n(){const{hsva:t,dispatch:e}=(0,o.useContext)(a.ob);return(0,l.jsx)("div",{style:{width:256},children:(0,l.jsx)(s.default,{color:t,onChange:r=>{e({hsva:{...t,...r.hsva}})}})})}class d extends i.A{constructor(){super(...arguments),this.editorUrl="/packages/color-material/README.md",this.getMdStr=()=>r.e(716).then(r.bind(r,716)),this.example=(0,l.jsx)(n,{})}}},11:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>g});var o=r(8102),s=r(9257),i=r(7804),a=r(2945),l=r(5991),n=r(6436),d=r(9424),c=["prefixCls","className","style","color","onChange"],h={boxShadow:"initial",borderWidth:"0 0 1px 0",borderBottomColor:"var(--material-border-bottom-color)",borderBottomStyle:"solid",height:30,outline:0,fontSize:15,padding:0},p=i.forwardRef(((t,e)=>{var{prefixCls:r="w-color-material",className:i,style:p,color:g,onChange:u}=t,x=(0,s.A)(t,c),m="string"===typeof g&&(0,a.validHex)(g)?(0,a.hexToHsva)(g):g,b=g?(0,a.hsvaToHex)(m).replace(/^#/,""):"",f=(t,e)=>{"string"===typeof t&&(0,a.validHex)(t)&&/(3|6)/.test(String(t.length))&&u&&u((0,a.color)((0,a.hexToHsva)(t)))},v=(0,o.A)({"--material-border-bottom-color":"#eee","--material-background-color":"#fff",padding:16,width:98,fontFamily:"Roboto",backgroundColor:"var(--material-background-color)"},p);return(0,d.jsxs)("div",(0,o.A)({ref:e,className:[r,i||""].filter(Boolean).join(" "),style:v},x,{children:[(0,d.jsx)(l.default,{label:"Hex",value:b.toLocaleUpperCase(),onChange:(t,e)=>f(e),onBlur:t=>{var e=t.target.value;t.target.value=e.slice(0,6),f(e.slice(0,6))},inputStyle:{outline:0,border:0,height:30,fontSize:15,padding:0,boxShadow:"initial",borderWidth:"0 0 2px 0",borderBottomColor:b?"#"+b:"var(--material-border-bottom-color)",borderBottomStyle:"solid",background:"transparent"},style:{flexDirection:"column-reverse",alignItems:"flex-start"}}),(0,d.jsx)(n.default,{hsva:m,placement:"top",style:{marginTop:11},rProps:{style:{alignItems:"flex-start"},inputStyle:(0,o.A)({},h)},gProps:{style:{alignItems:"flex-start"},inputStyle:(0,o.A)({},h)},bProps:{style:{alignItems:"flex-start"},inputStyle:(0,o.A)({},h)},aProps:!1,onChange:t=>{return e=t.hsva,void(u&&u((0,a.color)(e)));var e}})]}))}));p.displayName="Material";const g=p}}]); -//# sourceMappingURL=331.70a60209.chunk.js.map \ No newline at end of file +//# sourceMappingURL=331.bacb8bbb.chunk.js.map \ No newline at end of file diff --git a/static/js/331.70a60209.chunk.js.map b/static/js/331.bacb8bbb.chunk.js.map similarity index 99% rename from static/js/331.70a60209.chunk.js.map rename to static/js/331.bacb8bbb.chunk.js.map index d2a2ca0a9..f0f6721cc 100644 --- a/static/js/331.70a60209.chunk.js.map +++ b/static/js/331.bacb8bbb.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/331.70a60209.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF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C,MAAOwC,GACNd,EAAO,CACRhC,SAAU,EAAcC,EAAAA,EAAAA,KAAKoD,EAAAA,QAAe,CAC1CC,MAAO,MACPd,MAAOJ,EAAImB,oBACXrC,SAAUA,CAACuB,EAAKe,IAAQjB,EAAUiB,GAClCC,OAAQhB,IACN,IAAID,EAAQC,EAAIvC,OAAOsC,MACvBC,EAAIvC,OAAOsC,MAAQA,EAAMkB,MAAM,EAAG,GAClCnB,EAAUC,EAAMkB,MAAM,EAAG,GAAQ,EAEnCC,WAAY,CACVjC,QAAS,EACTnB,OAAQ,EACRkB,OAAQ,GACRE,SAAU,GACVC,QAAS,EACTpB,UAAW,UACXc,YAAa,YACbC,kBAAmBa,EAAM,IAAMA,EAAM,sCACrCZ,kBAAmB,QACnBoC,WAAY,eAEdtD,MAAO,CACLuD,cAAe,iBACfC,WAAY,iBAEC7D,EAAAA,EAAAA,KAAK8D,EAAAA,QAAM,CAC1BpD,KAAMA,EACNqD,UAAW,MACX1D,MAAO,CACL2D,UAAW,IAEbC,OAAQ,CACN5D,MAAO,CACLwD,WAAY,cAEdH,YAAYZ,EAAAA,EAAAA,GAAS,CAAC,EAAG1B,IAE3B8C,OAAQ,CACN7D,MAAO,CACLwD,WAAY,cAEdH,YAAYZ,EAAAA,EAAAA,GAAS,CAAC,EAAG1B,IAE3B+C,OAAQ,CACN9D,MAAO,CACLwD,WAAY,cAEdH,YAAYZ,EAAAA,EAAAA,GAAS,CAAC,EAAG1B,IAE3BgD,QAAQ,EACRnD,SAAUoD,IAAUC,OAvELC,EAuEkBF,EAAO3D,UAtE1CO,GAAYA,GAAS2B,EAAAA,EAAAA,OAAY2B,KADhBA,KAwEjB,OACC,IAELxD,EAASyD,YAAc,WACvB,S","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/material/index.tsx","../../packages/color-material/esm/index.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport Material from '@uiw/react-color-material';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-material/README.md';\n getMdStr = () => import('@uiw/react-color-material/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"color\", \"onChange\"];\nimport React from 'react';\nimport { color as handleColor, validHex, hexToHsva, hsvaToHex } from '@uiw/color-convert';\nimport EditableInput from '@uiw/react-color-editable-input';\nimport RGBA from '@uiw/react-color-editable-input-rgba';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar styleRBG = {\n boxShadow: 'initial',\n borderWidth: '0 0 1px 0',\n borderBottomColor: 'var(--material-border-bottom-color)',\n borderBottomStyle: 'solid',\n height: 30,\n outline: 0,\n fontSize: 15,\n padding: 0\n};\nvar Material = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-material',\n className,\n style,\n color,\n onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color;\n var hex = color ? hsvaToHex(hsva).replace(/^#/, '') : '';\n var handleChange = hsv => {\n onChange && onChange(handleColor(hsv));\n };\n var handleHex = (value, evn) => {\n if (typeof value === 'string' && validHex(value) && /(3|6)/.test(String(value.length))) {\n onChange && onChange(handleColor(hexToHsva(value)));\n }\n };\n var styleWrapper = _extends({\n '--material-border-bottom-color': '#eee',\n '--material-background-color': '#fff',\n padding: 16,\n width: 98,\n fontFamily: 'Roboto',\n backgroundColor: 'var(--material-background-color)'\n }, style);\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n ref: ref,\n className: [prefixCls, className || ''].filter(Boolean).join(' '),\n style: styleWrapper\n }, other, {\n children: [/*#__PURE__*/_jsx(EditableInput, {\n label: \"Hex\",\n value: hex.toLocaleUpperCase(),\n onChange: (evn, val) => handleHex(val, evn),\n onBlur: evn => {\n var value = evn.target.value;\n evn.target.value = value.slice(0, 6);\n handleHex(value.slice(0, 6), evn);\n },\n inputStyle: {\n outline: 0,\n border: 0,\n height: 30,\n fontSize: 15,\n padding: 0,\n boxShadow: 'initial',\n borderWidth: '0 0 2px 0',\n borderBottomColor: hex ? \"#\" + hex : 'var(--material-border-bottom-color)',\n borderBottomStyle: 'solid',\n background: 'transparent'\n },\n style: {\n flexDirection: 'column-reverse',\n alignItems: 'flex-start'\n }\n }), /*#__PURE__*/_jsx(RGBA, {\n hsva: hsva,\n placement: \"top\",\n style: {\n marginTop: 11\n },\n rProps: {\n style: {\n alignItems: 'flex-start'\n },\n inputStyle: _extends({}, styleRBG)\n },\n gProps: {\n style: {\n alignItems: 'flex-start'\n },\n inputStyle: _extends({}, styleRBG)\n },\n bProps: {\n style: {\n alignItems: 'flex-start'\n },\n inputStyle: _extends({}, styleRBG)\n },\n aProps: false,\n onChange: result => handleChange(result.hsva)\n })]\n }));\n});\nMaterial.displayName = 'Material';\nexport default Material;"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Material","color","onChange","arguments","_excluded","styleRBG","borderWidth","borderBottomColor","borderBottomStyle","height","outline","fontSize","padding","React","ref","prefixCls","other","_objectWithoutPropertiesLoose","validHex","hexToHsva","hex","hsvaToHex","replace","handleHex","value","evn","test","String","length","handleColor","styleWrapper","_extends","fontFamily","backgroundColor","filter","Boolean","join","EditableInput","label","toLocaleUpperCase","val","onBlur","slice","inputStyle","background","flexDirection","alignItems","RGBA","placement","marginTop","rProps","gProps","bProps","aProps","result","handleChange","hsv","displayName"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/331.bacb8bbb.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,2FCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,GAAG;;;;;;;;;;EAkB5BC,EAAYF,EAAAA,GAAOG,CAAC;;;;;;;;;;;;;EAepBC,EAAUJ,EAAAA,GAAOC,GAAG;;EAIpBI,EAASL,EAAAA,GAAOM,MAAM;;;;;;;;;;EAYtBC,EAAUP,EAAAA,GAAOC,GAAG;;;;;;;;EAUX,MAAMO,UAAiBC,EAAAA,UACpCC,WAAAA,CAAYC,GACVC,MAAMD,GAAO,KAKfE,eAAS,OACTC,cAAQ,OACRC,aAAO,EANLC,KAAKC,MAAQ,CACXC,MAAO,GAEX,CAIAC,iBAAAA,GACMH,KAAKF,UACPE,KAAKF,WAAWM,MAAMC,IACpBL,KAAKM,SAAS,CACZJ,MAAOG,EAAIE,QAAQC,OACnBC,MAAOJ,EAAIE,SACX,GAGR,CACAG,MAAAA,GACE,MAAM,OAAEF,EAAM,WAAEG,EAAU,KAAEC,GAAUZ,KAAKC,MAAMQ,OAAS,CAAC,EAC3D,OACEI,EAAAA,EAAAA,MAACzB,EAAO,CAAC0B,UAAU,oBAAmBC,SAAA,EACpCF,EAAAA,EAAAA,MAAC9B,EAAe,CAAA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EAAAA,EAAAA,GAAS,CAAC,EAAG1B,IAE3BgD,QAAQ,EACRnD,SAAUoD,IAAUC,OAvELC,EAuEkBF,EAAO3D,UAtE1CO,GAAYA,GAAS2B,EAAAA,EAAAA,OAAY2B,KADhBA,KAwEjB,OACC,IAELxD,EAASyD,YAAc,WACvB,S","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/material/index.tsx","../../packages/color-material/esm/index.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport Material from '@uiw/react-color-material';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-material/README.md';\n getMdStr = () => import('@uiw/react-color-material/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"color\", \"onChange\"];\nimport React from 'react';\nimport { color as handleColor, validHex, hexToHsva, hsvaToHex } from '@uiw/color-convert';\nimport EditableInput from '@uiw/react-color-editable-input';\nimport RGBA from '@uiw/react-color-editable-input-rgba';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar styleRBG = {\n boxShadow: 'initial',\n borderWidth: '0 0 1px 0',\n borderBottomColor: 'var(--material-border-bottom-color)',\n borderBottomStyle: 'solid',\n height: 30,\n outline: 0,\n fontSize: 15,\n padding: 0\n};\nvar Material = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-material',\n className,\n style,\n color,\n onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color;\n var hex = color ? hsvaToHex(hsva).replace(/^#/, '') : '';\n var handleChange = hsv => {\n onChange && onChange(handleColor(hsv));\n };\n var handleHex = (value, evn) => {\n if (typeof value === 'string' && validHex(value) && /(3|6)/.test(String(value.length))) {\n onChange && onChange(handleColor(hexToHsva(value)));\n }\n };\n var styleWrapper = _extends({\n '--material-border-bottom-color': '#eee',\n '--material-background-color': '#fff',\n padding: 16,\n width: 98,\n fontFamily: 'Roboto',\n backgroundColor: 'var(--material-background-color)'\n }, style);\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n ref: ref,\n className: [prefixCls, className || ''].filter(Boolean).join(' '),\n style: styleWrapper\n }, other, {\n children: [/*#__PURE__*/_jsx(EditableInput, {\n label: \"Hex\",\n value: hex.toLocaleUpperCase(),\n onChange: (evn, val) => handleHex(val, evn),\n onBlur: evn => {\n var value = evn.target.value;\n evn.target.value = value.slice(0, 6);\n handleHex(value.slice(0, 6), evn);\n },\n inputStyle: {\n outline: 0,\n border: 0,\n height: 30,\n fontSize: 15,\n padding: 0,\n boxShadow: 'initial',\n borderWidth: '0 0 2px 0',\n borderBottomColor: hex ? \"#\" + hex : 'var(--material-border-bottom-color)',\n borderBottomStyle: 'solid',\n background: 'transparent'\n },\n style: {\n flexDirection: 'column-reverse',\n alignItems: 'flex-start'\n }\n }), /*#__PURE__*/_jsx(RGBA, {\n hsva: hsva,\n placement: \"top\",\n style: {\n marginTop: 11\n },\n rProps: {\n style: {\n alignItems: 'flex-start'\n },\n inputStyle: _extends({}, styleRBG)\n },\n gProps: {\n style: {\n alignItems: 'flex-start'\n },\n inputStyle: _extends({}, styleRBG)\n },\n bProps: {\n style: {\n alignItems: 'flex-start'\n },\n inputStyle: _extends({}, styleRBG)\n },\n aProps: false,\n onChange: result => handleChange(result.hsva)\n })]\n }));\n});\nMaterial.displayName = 'Material';\nexport default Material;"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Material","color","onChange","arguments","_excluded","styleRBG","borderWidth","borderBottomColor","borderBottomStyle","height","outline","fontSize","padding","React","ref","prefixCls","other","_objectWithoutPropertiesLoose","validHex","hexToHsva","hex","hsvaToHex","replace","handleHex","value","evn","test","String","length","handleColor","styleWrapper","_extends","fontFamily","backgroundColor","filter","Boolean","join","EditableInput","label","toLocaleUpperCase","val","onBlur","slice","inputStyle","background","flexDirection","alignItems","RGBA","placement","marginTop","rProps","gProps","bProps","aProps","result","handleChange","hsv","displayName"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/369.cac19222.chunk.js b/static/js/369.5c59c8c1.chunk.js similarity index 96% rename from static/js/369.cac19222.chunk.js rename to static/js/369.5c59c8c1.chunk.js index 237642e79..2e45fd315 100644 --- a/static/js/369.cac19222.chunk.js +++ b/static/js/369.5c59c8c1.chunk.js @@ -1,4 +1,4 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[369],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,r)=>{"use strict";r.d(e,{A:()=>p});var s=r(7804),i=r(52),o=r(3235),a=r(9424);const d=o.Ay.div` +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[369],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,r)=>{"use strict";r.d(e,{A:()=>p});var s=r(7804),i=r(7584),o=r(3235),a=r(9424);const d=o.Ay.div` background-color: var(--color-theme-bg); box-shadow: 0 0 0 1px rgb(0 0 0 / 15%), @@ -42,4 +42,4 @@ padding-bottom: 12px; } `;class p extends s.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:r}=this.state.mdObj||{};return(0,a.jsxs)(h,{className:"wmde-markdown-var",children:[(0,a.jsxs)(d,{children:[this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"}),this.example&&(0,a.jsxs)(c,{children:[(0,a.jsx)("h3",{children:"Example"}),this.example]}),(0,a.jsx)(i.A,{data:{data:r,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"})]}),(0,a.jsxs)(l,{children:[(0,a.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,a.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,a.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,a.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},5724:(t,e,r)=>{"use strict";r.r(e),r.d(e,{Component:()=>i});var s=r(3623);class i extends s.A{constructor(){super(...arguments),this.editorUrl="/packages/color-name/README.md",this.getMdStr=()=>r.e(74).then(r.bind(r,9074))}}}}]); -//# sourceMappingURL=369.cac19222.chunk.js.map \ No newline at end of file +//# sourceMappingURL=369.5c59c8c1.chunk.js.map \ No newline at end of file diff --git a/static/js/369.cac19222.chunk.js.map b/static/js/369.5c59c8c1.chunk.js.map similarity index 98% rename from static/js/369.cac19222.chunk.js.map rename to static/js/369.5c59c8c1.chunk.js.map index 3bc394863..3a3860d19 100644 --- a/static/js/369.cac19222.chunk.js.map +++ b/static/js/369.5c59c8c1.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/369.cac19222.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,yFCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,GAAG;;;;;;;;;;EAkB5BC,EAAYF,EAAAA,GAAOG,CAAC;;;;;;;;;;;;;EAepBC,EAAUJ,EAAAA,GAAOC,GAAG;;EAIpBI,EAASL,EAAAA,GAAOM,MAAM;;;;;;;;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GG,KAAK,8CAA8CF,OAAO,UAASF,UACpEC,EAAAA,EAAAA,KAAA,OAAKQ,IAAI,yDAAyDC,IAAI,qBAExET,EAAAA,EAAAA,KAAA,KAAGG,KAAK,kDAAkDF,OAAO,UAASF,UACxEC,EAAAA,EAAAA,KAAA,OAAKQ,IAAI,4DAA4DC,IAAI,oBAE3ET,EAAAA,EAAAA,KAAA,KAAGG,KAAK,gDAAgDF,OAAO,UAASF,UACtEC,EAAAA,EAAAA,KAAA,OAAKQ,IAAI,8DAA8DC,IAAI,sBAE7ET,EAAAA,EAAAA,KAAA,KAAGG,KAAK,uCAAuCF,OAAO,UAASF,UAC7DC,EAAAA,EAAAA,KAAA,OAAKQ,IAAI,0CAA0CC,IAAI,mBAEzDT,EAAAA,EAAAA,KAAA,KAAGG,KAAK,iDAAiDF,OAAO,UAASF,UACvEC,EAAAA,EAAAA,KAAA,OAAKQ,IAAI,oDAAoDC,IAAI,WAEnEZ,EAAAA,EAAAA,MAAA,KAAAE,SAAA,CAAG,sBACgB,KACjBC,EAAAA,EAAAA,KAAA,KAAGG,KAAK,2BAA2BF,OAAO,UAASF,SAAC,UAEhD,iCAMd,E,4ECtIK,MAAMtB,UAAkBD,EAAAA,EAASE,WAAAA,GAAA,SAAAgC,WAAA,KACtC7B,UAAY,iCAAiC,KAC7CC,SAAW,IAAM,4BAA0C,E","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/name/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import Markdown from '../../components/Markdown';\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-name/README.md';\n getMdStr = () => import('@uiw/react-color-name/README.md');\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","arguments"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/369.5c59c8c1.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,2FCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,GAAG;;;;;;;;;;EAkB5BC,EAAYF,EAAAA,GAAOG,CAAC;;;;;;;;;;;;;EAepBC,EAAUJ,EAAAA,GAAOC,GAAG;;EAIpBI,EAASL,EAAAA,GAAOM,MAAM;;;;;;;;;;EAYtBC,EAAUP,EAAAA,GAAOC,GAAG;;;;;;;;EAUX,MAAMO,UAAiBC,EAAAA,UACpCC,WAAAA,CAAYC,GACVC,MAAMD,GAAO,KAKfE,eAAS,OACTC,cAAQ,OACRC,aAAO,EANLC,KAAKC,MAAQ,CACXC,MAAO,GAEX,CAIAC,iBAAAA,GACMH,KAAKF,UACPE,KAAKF,WAAWM,MAAMC,IACpBL,KAAKM,SAAS,CACZJ,MAAOG,EAAIE,QAAQC,OACnBC,MAAOJ,EAAIE,SACX,GAGR,CACAG,MAAAA,GACE,MAAM,OAAEF,EAAM,WAAEG,EAAU,KAAEC,GAAUZ,KAAKC,MAAMQ,OAAS,CAAC,EAC3D,OACEI,EAAAA,EAAAA,MAACzB,EAAO,CAAC0B,UAAU,oBAAmBC,SAAA,EACpCF,EAAAA,EAAAA,MAAC9B,EAAe,CAAAgC,SAAA,CACbf,KAAKH,YACJmB,EAAAA,EAAAA,KAAC9B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AAA,EAAAA,MAAA,KAAAE,SAAA,CAAG,sBACgB,KACjBC,EAAAA,EAAAA,KAAA,KAAGG,KAAK,2BAA2BF,OAAO,UAASF,SAAC,UAEhD,iCAMd,E,4ECtIK,MAAMtB,UAAkBD,EAAAA,EAASE,WAAAA,GAAA,SAAAgC,WAAA,KACtC7B,UAAY,iCAAiC,KAC7CC,SAAW,IAAM,4BAA0C,E","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/name/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import Markdown from '../../components/Markdown';\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-name/README.md';\n getMdStr = () => import('@uiw/react-color-name/README.md');\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","arguments"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/494.785fbe56.chunk.js b/static/js/494.28dc922e.chunk.js similarity index 97% rename from static/js/494.785fbe56.chunk.js rename to static/js/494.28dc922e.chunk.js index c49bfb33c..dc01ec4f6 100644 --- a/static/js/494.785fbe56.chunk.js +++ b/static/js/494.28dc922e.chunk.js @@ -1,4 +1,4 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[494],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,s)=>{"use strict";s.d(e,{A:()=>p});var r=s(7804),i=s(52),o=s(3235),a=s(9424);const h=o.Ay.div` +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[494],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,s)=>{"use strict";s.d(e,{A:()=>p});var r=s(7804),i=s(7584),o=s(3235),a=s(9424);const h=o.Ay.div` background-color: var(--color-theme-bg); box-shadow: 0 0 0 1px rgb(0 0 0 / 15%), @@ -42,4 +42,4 @@ padding-bottom: 12px; } `;class p extends r.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:s}=this.state.mdObj||{};return(0,a.jsxs)(d,{className:"wmde-markdown-var",children:[(0,a.jsxs)(h,{children:[this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"}),this.example&&(0,a.jsxs)(c,{children:[(0,a.jsx)("h3",{children:"Example"}),this.example]}),(0,a.jsx)(i.A,{data:{data:s,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"})]}),(0,a.jsxs)(l,{children:[(0,a.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,a.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,a.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,a.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},8593:(t,e,s)=>{"use strict";s.r(e),s.d(e,{Component:()=>d});var r=s(7804),i=s(1068),o=s(3623),a=s(7980),h=s(9424);function n(){const{hsva:t,dispatch:e}=(0,r.useContext)(a.ob);return(0,h.jsx)("div",{style:{width:256},children:(0,h.jsx)(i.default,{hue:t.h,onChange:s=>{e({hsva:{...t,...s}})}})})}class d extends o.A{constructor(){super(...arguments),this.editorUrl="/packages/color-hue/README.md",this.getMdStr=()=>s.e(655).then(s.bind(s,2655)),this.example=(0,h.jsx)(n,{})}}}}]); -//# sourceMappingURL=494.785fbe56.chunk.js.map \ No newline at end of file +//# sourceMappingURL=494.28dc922e.chunk.js.map \ No newline at end of file diff --git a/static/js/494.785fbe56.chunk.js.map b/static/js/494.28dc922e.chunk.js.map similarity index 98% rename from static/js/494.785fbe56.chunk.js.map rename to static/js/494.28dc922e.chunk.js.map index 8547b55d6..4345ed5bb 100644 --- a/static/js/494.785fbe56.chunk.js.map +++ b/static/js/494.28dc922e.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/494.785f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AA,EAAAA,KAAA,OAAKK,MAAO,CAAES,MAAO,KAAMf,UACzBC,EAAAA,EAAAA,KAACe,EAAAA,QAAG,CACFC,IAAKN,EAAKO,EACVC,SAAWC,IACTR,EAAU,CAAED,KAAM,IAAKA,KAASS,IAAW,KAKrD,CAEO,MAAM1C,UAAkBD,EAAAA,EAASE,WAAAA,GAAA,SAAA0C,WAAA,KACtCvC,UAAY,gCAAgC,KAC5CC,SAAW,IAAM,8BAAyC,KAC1DC,SAAWiB,EAAAA,EAAAA,KAACzB,EAAO,GAAG,E","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/hue/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport Hue from '@uiw/react-color-hue';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...newHue } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-hue/README.md';\n getMdStr = () => import('@uiw/react-color-hue/README.md');\n example = ();\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Hue","hue","h","onChange","newHue","arguments"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/494.28dc922e.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,E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,EAAAA,EAAAA,KAACe,EAAAA,QAAG,CACFC,IAAKN,EAAKO,EACVC,SAAWC,IACTR,EAAU,CAAED,KAAM,IAAKA,KAASS,IAAW,KAKrD,CAEO,MAAM1C,UAAkBD,EAAAA,EAASE,WAAAA,GAAA,SAAA0C,WAAA,KACtCvC,UAAY,gCAAgC,KAC5CC,SAAW,IAAM,8BAAyC,KAC1DC,SAAWiB,EAAAA,EAAAA,KAACzB,EAAO,GAAG,E","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/hue/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport Hue from '@uiw/react-color-hue';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...newHue } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-hue/README.md';\n getMdStr = () => import('@uiw/react-color-hue/README.md');\n example = ();\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Hue","hue","h","onChange","newHue","arguments"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/522.eb20bfc8.chunk.js b/static/js/522.6353df0b.chunk.js similarity index 96% rename from static/js/522.eb20bfc8.chunk.js rename to static/js/522.6353df0b.chunk.js index ff107bd67..8561ec0b5 100644 --- a/static/js/522.eb20bfc8.chunk.js +++ b/static/js/522.6353df0b.chunk.js @@ -1,4 +1,4 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[522],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,r)=>{"use strict";r.d(e,{A:()=>p});var s=r(7804),i=r(52),o=r(3235),a=r(9424);const d=o.Ay.div` +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[522],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,r)=>{"use strict";r.d(e,{A:()=>p});var s=r(7804),i=r(7584),o=r(3235),a=r(9424);const d=o.Ay.div` background-color: var(--color-theme-bg); box-shadow: 0 0 0 1px rgb(0 0 0 / 15%), @@ -42,4 +42,4 @@ padding-bottom: 12px; } `;class p extends s.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:r}=this.state.mdObj||{};return(0,a.jsxs)(h,{className:"wmde-markdown-var",children:[(0,a.jsxs)(d,{children:[this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"}),this.example&&(0,a.jsxs)(c,{children:[(0,a.jsx)("h3",{children:"Example"}),this.example]}),(0,a.jsx)(i.A,{data:{data:r,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"})]}),(0,a.jsxs)(l,{children:[(0,a.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,a.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,a.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,a.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},9739:(t,e,r)=>{"use strict";r.r(e),r.d(e,{Component:()=>i});var s=r(3623);class i extends s.A{constructor(){super(...arguments),this.editorUrl="/packages/drag-event-interactive/README.md",this.getMdStr=()=>r.e(583).then(r.bind(r,9583))}}}}]); -//# sourceMappingURL=522.eb20bfc8.chunk.js.map \ No newline at end of file +//# sourceMappingURL=522.6353df0b.chunk.js.map \ No newline at end of file diff --git a/static/js/522.eb20bfc8.chunk.js.map b/static/js/522.6353df0b.chunk.js.map similarity index 98% rename from static/js/522.eb20bfc8.chunk.js.map rename to static/js/522.6353df0b.chunk.js.map index 0f07196ae..1a5c793f1 100644 --- a/static/js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AAMtB,UAAkBD,EAAAA,EAASE,WAAAA,GAAA,SAAAgC,WAAA,KACtC7B,UAAY,6CAA6C,KACzDC,SAAW,IAAM,6BAAsD,E","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/drag-event-interactive/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import Markdown from '../../components/Markdown';\n\nexport class Component extends Markdown {\n editorUrl = '/packages/drag-event-interactive/README.md';\n getMdStr = () => import('@uiw/react-drag-event-interactive/README.md');\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","arguments"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/522.6353df0b.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,2FCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,GAAG;;;;;;;;;;EAkB5BC,EAAYF,EAAAA,GAAOG,CAAC;;;;;;;;;;;;;EAepBC,EAAUJ,EAAAA,GAAOC,GAAG;;EAIpBI,EAASL,EAAAA,GAAOM,MAAM;;;;;;;;;;EAYtBC,EAAUP,EAAAA,GAAOC,GAAG;;;;;;;;EAUX,MAAMO,UAAiBC,EAA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,yDAAyDC,IAAI,qBAExET,EAAAA,EAAAA,KAAA,KAAGG,KAAK,kDAAkDF,OAAO,UAASF,UACxEC,EAAAA,EAAAA,KAAA,OAAKQ,IAAI,4DAA4DC,IAAI,oBAE3ET,EAAAA,EAAAA,KAAA,KAAGG,KAAK,gDAAgDF,OAAO,UAASF,UACtEC,EAAAA,EAAAA,KAAA,OAAKQ,IAAI,8DAA8DC,IAAI,sBAE7ET,EAAAA,EAAAA,KAAA,KAAGG,KAAK,uCAAuCF,OAAO,UAASF,UAC7DC,EAAAA,EAAAA,KAAA,OAAKQ,IAAI,0CAA0CC,IAAI,mBAEzDT,EAAAA,EAAAA,KAAA,KAAGG,KAAK,iDAAiDF,OAAO,UAASF,UACvEC,EAAAA,EAAAA,KAAA,OAAKQ,IAAI,oDAAoDC,IAAI,WAEnEZ,EAAAA,EAAAA,MAAA,KAAAE,SAAA,CAAG,sBACgB,KACjBC,EAAAA,EAAAA,KAAA,KAAGG,KAAK,2BAA2BF,OAAO,UAASF,SAAC,UAEhD,iCAMd,E,4ECtIK,MAAMtB,UAAkBD,EAAAA,EAASE,WAAAA,GAAA,SAAAgC,WAAA,KACtC7B,UAAY,6CAA6C,KACzDC,SAAW,IAAM,6BAAsD,E","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/drag-event-interactive/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import Markdown from '../../components/Markdown';\n\nexport class Component extends Markdown {\n editorUrl = '/packages/drag-event-interactive/README.md';\n getMdStr = () => import('@uiw/react-drag-event-interactive/README.md');\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","arguments"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/563.06116de6.chunk.js b/static/js/563.799faf0f.chunk.js similarity index 98% rename from static/js/563.06116de6.chunk.js rename to static/js/563.799faf0f.chunk.js index 32ec77cb1..4bf3f72e7 100644 --- a/static/js/563.06116de6.chunk.js +++ b/static/js/563.799faf0f.chunk.js @@ -1,4 +1,4 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[563],{256:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=256,e.exports=t},3623:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var s=r(7804),o=r(52),i=r(3235),a=r(9424);const l=i.Ay.div` +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[563],{256:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=256,e.exports=t},3623:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var s=r(7804),o=r(7584),i=r(3235),a=r(9424);const l=i.Ay.div` background-color: var(--color-theme-bg); box-shadow: 0 0 0 1px rgb(0 0 0 / 15%), @@ -42,4 +42,4 @@ padding-bottom: 12px; } `;class p extends s.Component{constructor(e){super(e),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((e=>{this.setState({mdStr:e.default.source,mdObj:e.default})}))}render(){const{source:e,components:t,data:r}=this.state.mdObj||{};return(0,a.jsxs)(c,{className:"wmde-markdown-var",children:[(0,a.jsxs)(l,{children:[this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"}),this.example&&(0,a.jsxs)(h,{children:[(0,a.jsx)("h3",{children:"Example"}),this.example]}),(0,a.jsx)(o.A,{data:{data:r,components:t,source:e},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"})]}),(0,a.jsxs)(d,{children:[(0,a.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,a.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,a.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,a.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},7812:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Component:()=>c});var s=r(7804),o=r(7355),i=r(3623),a=r(7980),l=r(9424);function n(){const{hsva:e,dispatch:t}=(0,s.useContext)(a.ob);return(0,l.jsx)("div",{style:{width:256},children:(0,l.jsx)(o.default,{color:e,style:{boxShadow:"rgb(0 0 0 / 15%) 0px 0px 0px 1px, rgb(0 0 0 / 15%) 0px 8px 16px"},onChange:r=>{t({hsva:{...e,...r.hsva}})}})})}class c extends i.A{constructor(){super(...arguments),this.editorUrl="/packages/color-compact/README.md",this.getMdStr=()=>r.e(78).then(r.bind(r,7078)),this.example=(0,l.jsx)(n,{})}}},7355:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var s=r(8102),o=r(9257),i=r(7804),a=r(2945),l=r(5991),n=r(6436),c=r(6966),d=r(9424),h=["prefixCls","className","style","onChange","color","colors","rectProps","rectRender"],p=["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"];function g(e){return e.checked?(0,d.jsx)("div",{style:{height:5,width:5,borderRadius:"50%",backgroundColor:(0,a.getContrastingColor)(e.color)}}):null}var x=i.forwardRef(((e,t)=>{var{prefixCls:r="w-color-compact",className:x,style:u,onChange:b,color:m,colors:f=p,rectProps:j,rectRender:v}=e,w=(0,o.A)(e,h),C="string"===typeof m&&(0,a.validHex)(m)?(0,a.hexToHsva)(m):m,k=m?(0,a.hsvaToHex)(C).replace(/^#/,""):"",y=(0,i.useCallback)((e=>b&&b((0,a.color)(e))),[]),F={style:{alignItems:"baseline"},inputStyle:{boxShadow:"none",backgroundColor:"transparent",outline:0}},A=(0,s.A)({"--compact-background-color":"#f6f6f6",background:"var(--compact-background-color)",borderRadius:3,display:"flex",width:240,flexWrap:"wrap",paddingTop:5,paddingLeft:5},u);return(0,d.jsxs)("div",(0,s.A)({ref:t,style:A,className:[r,x||""].filter(Boolean).join(" ")},w,{children:[(0,d.jsx)(c.default,{colors:f,color:m?(0,a.hsvaToHex)(C):void 0,rectRender:v,rectProps:(0,s.A)({children:(0,d.jsx)(g,{})},j,{style:(0,s.A)({display:"flex",alignItems:"center",justifyContent:"center"},null==j?void 0:j.style)}),onChange:e=>y(e)}),(0,d.jsxs)("div",{style:{display:"flex",margin:"0 4px 3px 0"},children:[(0,d.jsx)(l.default,{onChange:(e,t)=>{var r;"string"===typeof(r=t)&&(0,a.validHex)(r)&&/(3|6)/.test(String(r.length))&&y((0,a.hexToHsva)(r))},labelStyle:{paddingRight:5,marginTop:-1},value:k.toLocaleUpperCase(),label:(0,d.jsx)("div",{style:{width:8,height:8,backgroundColor:"#"+k}}),inputStyle:{outline:"none",boxShadow:"initial",background:"transparent"},style:{flexDirection:"row-reverse",flex:"1 1 0%",minWidth:80}}),(0,d.jsx)(n.default,{hsva:C,placement:"left",onChange:e=>y(e.hsva),aProps:!1,rProps:F,gProps:F,bProps:F})]})]}))}));x.displayName="Compact";const u=x}}]); -//# sourceMappingURL=563.06116de6.chunk.js.map \ No newline at end of file +//# sourceMappingURL=563.799faf0f.chunk.js.map \ No newline at end of file diff --git a/static/js/563.06116de6.chunk.js.map b/static/js/563.799faf0f.chunk.js.map similarity index 99% rename from static/js/563.06116de6.chunk.js.map rename to static/js/563.799faf0f.chunk.js.map index e0ade8db5..e22a13ba9 100644 --- a/static/js/563.06116de6.chunk.js.map +++ b/static/js/563.799faf0f.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/563.06116de6.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,yFCHjB,MAAMU,EAAk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Ae,cACfC,KAAM,SACNC,SAAU,OAEG9E,EAAAA,EAAAA,KAAK+E,EAAAA,QAAM,CAC1BrE,KAAMA,EACNsE,UAAW,OACX/D,SAAUgE,GAAUzC,EAAqByC,EAAOvE,MAChDwE,QAAQ,EACRC,OAAQvC,EACRwC,OAAQxC,EACRyC,OAAQzC,UAGX,IAEL7B,EAAQuE,YAAc,UACtB,S","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/compact/index.tsx","../../packages/color-compact/esm/index.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport Compact from '@uiw/react-color-compact';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-compact/README.md';\n getMdStr = () => import('@uiw/react-color-compact/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"onChange\", \"color\", \"colors\", \"rectProps\", \"rectRender\"];\nimport React, { useCallback } from 'react';\nimport { color as handleColor, hexToHsva, validHex, hsvaToHex, getContrastingColor } from '@uiw/color-convert';\nimport EditableInput from '@uiw/react-color-editable-input';\nimport RGBA from '@uiw/react-color-editable-input-rgba';\nimport Swatch from '@uiw/react-color-swatch';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar COLORS = ['#4D4D4D', '#999999', '#FFFFFF', '#F44E3B', '#FE9200', '#FCDC00', '#DBDF00', '#A4DD00', '#68CCCA', '#73D8FF', '#AEA1FF', '#FDA1FF', '#333333', '#808080', '#cccccc', '#D33115', '#E27300', '#FCC400', '#B0BC00', '#68BC00', '#16A5A5', '#009CE0', '#7B64FF', '#FA28FF', '#000000', '#666666', '#B3B3B3', '#9F0500', '#C45100', '#FB9E00', '#808900', '#194D33', '#0C797D', '#0062B1', '#653294', '#AB149E'];\nfunction Point(props) {\n if (!props.checked) return null;\n return /*#__PURE__*/_jsx(\"div\", {\n style: {\n height: 5,\n width: 5,\n borderRadius: '50%',\n backgroundColor: getContrastingColor(props.color)\n }\n });\n}\nvar Compact = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-compact',\n className,\n style,\n onChange,\n color,\n colors = COLORS,\n rectProps,\n rectRender\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color;\n var hex = color ? hsvaToHex(hsva).replace(/^#/, '') : '';\n var handleChangeCallback = useCallback(hsv => onChange && onChange(handleColor(hsv)), []);\n var handleHex = (value, evn) => {\n if (typeof value === 'string' && validHex(value) && /(3|6)/.test(String(value.length))) {\n handleChangeCallback(hexToHsva(value));\n }\n };\n var rgbProps = {\n style: {\n alignItems: 'baseline'\n },\n inputStyle: {\n boxShadow: 'none',\n backgroundColor: 'transparent',\n outline: 0\n }\n };\n var wrapperStyle = _extends({\n '--compact-background-color': '#f6f6f6',\n background: 'var(--compact-background-color)',\n borderRadius: 3,\n display: 'flex',\n width: 240,\n flexWrap: 'wrap',\n paddingTop: 5,\n paddingLeft: 5\n }, style);\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n ref: ref,\n style: wrapperStyle,\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other, {\n children: [/*#__PURE__*/_jsx(Swatch, {\n colors: colors,\n color: color ? hsvaToHex(hsva) : undefined,\n rectRender: rectRender,\n rectProps: _extends({\n children: /*#__PURE__*/_jsx(Point, {})\n }, rectProps, {\n style: _extends({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n }, rectProps == null ? void 0 : rectProps.style)\n }),\n onChange: hsvColor => handleChangeCallback(hsvColor)\n }), /*#__PURE__*/_jsxs(\"div\", {\n style: {\n display: 'flex',\n margin: '0 4px 3px 0'\n },\n children: [/*#__PURE__*/_jsx(EditableInput, {\n onChange: (evn, val) => handleHex(val, evn),\n labelStyle: {\n paddingRight: 5,\n marginTop: -1\n },\n value: hex.toLocaleUpperCase(),\n label: /*#__PURE__*/_jsx(\"div\", {\n style: {\n width: 8,\n height: 8,\n backgroundColor: \"#\" + hex\n }\n }),\n inputStyle: {\n outline: 'none',\n boxShadow: 'initial',\n background: 'transparent'\n },\n style: {\n flexDirection: 'row-reverse',\n flex: '1 1 0%',\n minWidth: 80\n }\n }), /*#__PURE__*/_jsx(RGBA, {\n hsva: hsva,\n placement: \"left\",\n onChange: result => handleChangeCallback(result.hsva),\n aProps: false,\n rProps: rgbProps,\n gProps: rgbProps,\n bProps: rgbProps\n })]\n })]\n }));\n});\nCompact.displayName = 'Compact';\nexport default Compact;"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Compact","color","onChange","arguments","_excluded","COLORS","Point","checked","height","borderRadius","backgroundColor","getContrastingColor","React","ref","prefixCls","colors","rectProps","rectRender","other","_objectWithoutPropertiesLoose","validHex","hexToHsva","hex","hsvaToHex","replace","handleChangeCallback","useCallback","hsv","handleColor","rgbProps","alignItems","inputStyle","outline","wrapperStyle","_extends","background","display","flexWrap","paddingTop","paddingLeft","filter","Boolean","join","Swatch","undefined","justifyContent","hsvColor","margin","EditableInput","evn","val","handleHex","value","test","String","length","labelStyle","paddingRight","marginTop","toLocaleUpperCase","label","flexDirection","flex","minWidth","RGBA","placement","result","aProps","rProps","gProps","bProps","displayName"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/563.799faf0f.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,2FCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,GAAG;;;;;;;;;;EAkB5BC,EAAYF,EAAAA,GAAOG,CAAC;;;;;;;;;;;;;EAepBC,EAAUJ,EAAAA,GAAOC,GAAG;;EAIpBI,EAASL,EAAAA,GAAOM,MAAM;;;;;;;;;;EAYtBC,EAAUP,EAAAA,GAAOC,GAAG;;;;;;;;EAUX,MAAMO,UAAiBC,EAAAA,UACpCC,WAAAA,CAAYC,GACVC,MAAMD,GAAO,KAKfE,eAAS,OACTC,cAAQ,OACRC,aAAO,EANLC,KAAKC,MAAQ,CACXC,MAAO,GAEX,CAIAC,iBAAAA,GACMH,KAAKF,UACPE,KAAKF,WAAWM,MAAMC,IACpBL,KAAKM,SAAS,CACZJ,MAAOG,EAAIE,QAAQC,OACnBC,MAAOJ,EAAIE,SACX,GAGR,CACAG,MAAAA,GACE,MAAM,OAAEF,EAAM,WAAEG,EAAU,KAAEC,GAAUZ,KAAKC,MAAMQ,OAAS,CAAC,EAC3D,OACEI,EAAAA,EAAAA,MAACzB,EAAO,CAAC0B,UAAU,oBAAmBC,SAAA,EACpCF,EAAAA,EAAAA,MAAC9B,EAAe,CAAAgC,SAAA,CACbf,KAAKH,YACJmB,EAAAA,EAAAA,KAAC9B,EAAS,CAAC+B,OAAO,SAASC,IAAI,aAAaC,KAAM,iDAAiDnB,KAAKH,YAAYkB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AAKC,KAlDNC,IAACC,EACM,kBADNA,EAkDuBF,KAjDL9B,EAAAA,EAAAA,UAASgC,IAAU,QAAQC,KAAKC,OAAOF,EAAMG,UAC5E9B,GAAqBJ,EAAAA,EAAAA,WAAU+B,GAgDc,EAC3CI,WAAY,CACVC,aAAc,EACdC,WAAY,GAEdN,MAAO9B,EAAIqC,oBACXC,OAAoB3E,EAAAA,EAAAA,KAAK,MAAO,CAC9BK,MAAO,CACLS,MAAO,EACPS,OAAQ,EACRE,gBAAiB,IAAMY,KAG3BS,WAAY,CACVC,QAAS,OACTxC,UAAW,UACX2C,WAAY,eAEd7C,MAAO,CACLuE,cAAe,cACfC,KAAM,SACNC,SAAU,OAEG9E,EAAAA,EAAAA,KAAK+E,EAAAA,QAAM,CAC1BrE,KAAMA,EACNsE,UAAW,OACX/D,SAAUgE,GAAUzC,EAAqByC,EAAOvE,MAChDwE,QAAQ,EACRC,OAAQvC,EACRwC,OAAQxC,EACRyC,OAAQzC,UAGX,IAEL7B,EAAQuE,YAAc,UACtB,S","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/compact/index.tsx","../../packages/color-compact/esm/index.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport Compact from '@uiw/react-color-compact';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-compact/README.md';\n getMdStr = () => import('@uiw/react-color-compact/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"onChange\", \"color\", \"colors\", \"rectProps\", \"rectRender\"];\nimport React, { useCallback } from 'react';\nimport { color as handleColor, hexToHsva, validHex, hsvaToHex, getContrastingColor } from '@uiw/color-convert';\nimport EditableInput from '@uiw/react-color-editable-input';\nimport RGBA from '@uiw/react-color-editable-input-rgba';\nimport Swatch from '@uiw/react-color-swatch';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar COLORS = ['#4D4D4D', '#999999', '#FFFFFF', '#F44E3B', '#FE9200', '#FCDC00', '#DBDF00', '#A4DD00', '#68CCCA', '#73D8FF', '#AEA1FF', '#FDA1FF', '#333333', '#808080', '#cccccc', '#D33115', '#E27300', '#FCC400', '#B0BC00', '#68BC00', '#16A5A5', '#009CE0', '#7B64FF', '#FA28FF', '#000000', '#666666', '#B3B3B3', '#9F0500', '#C45100', '#FB9E00', '#808900', '#194D33', '#0C797D', '#0062B1', '#653294', '#AB149E'];\nfunction Point(props) {\n if (!props.checked) return null;\n return /*#__PURE__*/_jsx(\"div\", {\n style: {\n height: 5,\n width: 5,\n borderRadius: '50%',\n backgroundColor: getContrastingColor(props.color)\n }\n });\n}\nvar Compact = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-compact',\n className,\n style,\n onChange,\n color,\n colors = COLORS,\n rectProps,\n rectRender\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color;\n var hex = color ? hsvaToHex(hsva).replace(/^#/, '') : '';\n var handleChangeCallback = useCallback(hsv => onChange && onChange(handleColor(hsv)), []);\n var handleHex = (value, evn) => {\n if (typeof value === 'string' && validHex(value) && /(3|6)/.test(String(value.length))) {\n handleChangeCallback(hexToHsva(value));\n }\n };\n var rgbProps = {\n style: {\n alignItems: 'baseline'\n },\n inputStyle: {\n boxShadow: 'none',\n backgroundColor: 'transparent',\n outline: 0\n }\n };\n var wrapperStyle = _extends({\n '--compact-background-color': '#f6f6f6',\n background: 'var(--compact-background-color)',\n borderRadius: 3,\n display: 'flex',\n width: 240,\n flexWrap: 'wrap',\n paddingTop: 5,\n paddingLeft: 5\n }, style);\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n ref: ref,\n style: wrapperStyle,\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other, {\n children: [/*#__PURE__*/_jsx(Swatch, {\n colors: colors,\n color: color ? hsvaToHex(hsva) : undefined,\n rectRender: rectRender,\n rectProps: _extends({\n children: /*#__PURE__*/_jsx(Point, {})\n }, rectProps, {\n style: _extends({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n }, rectProps == null ? void 0 : rectProps.style)\n }),\n onChange: hsvColor => handleChangeCallback(hsvColor)\n }), /*#__PURE__*/_jsxs(\"div\", {\n style: {\n display: 'flex',\n margin: '0 4px 3px 0'\n },\n children: [/*#__PURE__*/_jsx(EditableInput, {\n onChange: (evn, val) => handleHex(val, evn),\n labelStyle: {\n paddingRight: 5,\n marginTop: -1\n },\n value: hex.toLocaleUpperCase(),\n label: /*#__PURE__*/_jsx(\"div\", {\n style: {\n width: 8,\n height: 8,\n backgroundColor: \"#\" + hex\n }\n }),\n inputStyle: {\n outline: 'none',\n boxShadow: 'initial',\n background: 'transparent'\n },\n style: {\n flexDirection: 'row-reverse',\n flex: '1 1 0%',\n minWidth: 80\n }\n }), /*#__PURE__*/_jsx(RGBA, {\n hsva: hsva,\n placement: \"left\",\n onChange: result => handleChangeCallback(result.hsva),\n aProps: false,\n rProps: rgbProps,\n gProps: rgbProps,\n bProps: rgbProps\n })]\n })]\n }));\n});\nCompact.displayName = 'Compact';\nexport default Compact;"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Compact","color","onChange","arguments","_excluded","COLORS","Point","checked","height","borderRadius","backgroundColor","getContrastingColor","React","ref","prefixCls","colors","rectProps","rectRender","other","_objectWithoutPropertiesLoose","validHex","hexToHsva","hex","hsvaToHex","replace","handleChangeCallback","useCallback","hsv","handleColor","rgbProps","alignItems","inputStyle","outline","wrapperStyle","_extends","background","display","flexWrap","paddingTop","paddingLeft","filter","Boolean","join","Swatch","undefined","justifyContent","hsvColor","margin","EditableInput","evn","val","handleHex","value","test","String","length","labelStyle","paddingRight","marginTop","toLocaleUpperCase","label","flexDirection","flex","minWidth","RGBA","placement","result","aProps","rProps","gProps","bProps","displayName"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/571.fbf1c3f5.chunk.js b/static/js/571.b934f5eb.chunk.js similarity index 99% rename from static/js/571.fbf1c3f5.chunk.js rename to static/js/571.b934f5eb.chunk.js index 5c09ccfe3..432176c60 100644 --- a/static/js/571.fbf1c3f5.chunk.js +++ b/static/js/571.b934f5eb.chunk.js @@ -1,4 +1,4 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[571],{256:e=>{function r(e){var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}r.keys=()=>[],r.resolve=r,r.id=256,e.exports=r},3623:(e,r,t)=>{"use strict";t.d(r,{A:()=>c});var o=t(7804),a=t(52),s=t(3235),l=t(9424);const i=s.Ay.div` +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[571],{256:e=>{function r(e){var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}r.keys=()=>[],r.resolve=r,r.id=256,e.exports=r},3623:(e,r,t)=>{"use strict";t.d(r,{A:()=>c});var o=t(7804),a=t(7584),s=t(3235),l=t(9424);const i=s.Ay.div` background-color: var(--color-theme-bg); box-shadow: 0 0 0 1px rgb(0 0 0 / 15%), @@ -42,4 +42,4 @@ padding-bottom: 12px; } `;class c extends o.Component{constructor(e){super(e),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((e=>{this.setState({mdStr:e.default.source,mdObj:e.default})}))}render(){const{source:e,components:r,data:t}=this.state.mdObj||{};return(0,l.jsxs)(p,{className:"wmde-markdown-var",children:[(0,l.jsxs)(i,{children:[this.editorUrl&&(0,l.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"}),this.example&&(0,l.jsxs)(h,{children:[(0,l.jsx)("h3",{children:"Example"}),this.example]}),(0,l.jsx)(a.A,{data:{data:t,components:r,source:e},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,l.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"})]}),(0,l.jsxs)(d,{children:[(0,l.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,l.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,l.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,l.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,l.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,l.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,l.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,l.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,l.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,l.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,l.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,l.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,l.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,l.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},9262:(e,r,t)=>{"use strict";t.r(r),t.d(r,{ChromeInputType:()=>w,default:()=>j});var o=t(8102),a=t(9257),s=t(7804),l=t(2945),i=t(2051),n=t(2084),p=t(1068),d=t(1636),h=t(5991),c=t(6436),u=t(8088),g=t(9424),b=["style"];function x(e){var{style:r}=e,t=(0,a.A)(e,b),l=(0,s.useRef)(null),i=(0,s.useCallback)((()=>{l.current.style.backgroundColor="var(--chrome-arrow-background-color)"}),[]),n=(0,s.useCallback)((()=>{l.current.style.backgroundColor="transparent"}),[]);return(0,g.jsx)("div",(0,o.A)({ref:l,style:(0,o.A)({marginLeft:5,cursor:"pointer",transition:"background-color .3s",borderRadius:2},r)},t,{onMouseEnter:i,onMouseLeave:n,children:(0,g.jsx)("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24",style:{display:"block"},children:(0,g.jsx)("path",{d:"M373.888 576h276.224c9.322667 0 14.293333 11.178667 9.173333 18.773333l-1.258666 1.557334-138.112 146.858666a10.709333 10.709333 0 0 1-14.293334 1.365334l-1.536-1.365334-138.112-146.858666c-6.592-6.997333-2.666667-18.645333 5.973334-20.16l1.941333-0.170667h276.224-276.224z m146.026667-295.189333l138.112 146.858666c7.04 7.509333 2.069333 20.330667-7.914667 20.330667H373.888c-9.984 0-14.976-12.821333-7.914667-20.330667l138.112-146.858666a10.730667 10.730667 0 0 1 15.829334 0z",fill:"var(--chrome-arrow-fill)"})})}))}var m="EyeDropper"in window;function f(e){return(0,g.jsx)("svg",{viewBox:"0 0 512 512",height:"1em",width:"1em",onClick:()=>{"EyeDropper"in window&&(new window.EyeDropper).open().then((r=>{console.log(r),null==e.onPickColor||e.onPickColor(r.sRGBHex)}))},children:(0,g.jsx)("path",{fill:"currentColor",d:"M482.8 29.23c38.9 38.98 38.9 102.17 0 141.17L381.2 271.9l9.4 9.5c12.5 12.5 12.5 32.7 0 45.2s-32.7 12.5-45.2 0l-160-160c-12.5-12.5-12.5-32.7 0-45.2s32.7-12.5 45.2 0l9.5 9.4L341.6 29.23c39-38.974 102.2-38.974 141.2 0zM55.43 323.3 176.1 202.6l45.3 45.3-120.7 120.7c-3.01 3-4.7 7-4.7 11.3V416h36.1c4.3 0 8.3-1.7 11.3-4.7l120.7-120.7 45.3 45.3-120.7 120.7c-15 15-35.4 23.4-56.6 23.4H89.69l-39.94 26.6c-12.69 8.5-29.59 6.8-40.377-4-10.786-10.8-12.459-27.7-3.998-40.4L32 422.3v-42.4c0-21.2 8.43-41.6 23.43-56.6z"})})}var v=["prefixCls","className","style","color","showEditableInput","showEyeDropper","showColorPreview","showHue","showAlpha","inputType","rectProps","onChange"],w=function(e){return e.HEXA="hexa",e.RGBA="rgba",e.HSLA="hsla",e}({}),y=s.forwardRef(((e,r)=>{var{prefixCls:t="w-color-chrome",className:b,style:y,color:j,showEditableInput:C=!0,showEyeDropper:A=!0,showColorPreview:R=!0,showHue:k=!0,showAlpha:T=!0,inputType:B=w.RGBA,rectProps:S={},onChange:P}=e,L=(0,a.A)(e,v),E="string"===typeof j&&(0,l.validHex)(j)?(0,l.hexToHsva)(j):j||{h:0,s:0,l:0,a:0},H=e=>P&&P((0,l.color)(e)),[D,M]=(0,s.useState)(B),_={paddingTop:6},N={textAlign:"center",paddingTop:4,paddingBottom:4},z=(0,o.A)({"--chrome-arrow-fill":"#333","--chrome-arrow-background-color":"#e8e8e8",borderRadius:0,flexDirection:"column",width:230,padding:0},y),F={"--chrome-alpha-box-shadow":"rgb(0 0 0 / 25%) 0px 0px 1px inset",borderRadius:"50%",background:(0,l.hsvaToRgbaString)(E),boxShadow:"var(--chrome-alpha-box-shadow)"},G={height:14,width:14},I={style:(0,o.A)({},G),fillProps:{style:G}};return(0,g.jsx)(i.default,(0,o.A)({ref:r,color:E,style:z,colors:void 0,className:[t,b].filter(Boolean).join(" "),placement:i.GithubPlacement.TopLeft},L,{addonAfter:(0,g.jsxs)(s.Fragment,{children:[(0,g.jsx)(n.default,{hsva:E,style:{width:"100%",height:130},onChange:e=>{H((0,o.A)({},E,e,{a:E.a}))}}),(0,g.jsxs)("div",{style:{padding:15,display:"flex",alignItems:"center",gap:10},children:[m&&A&&(0,g.jsx)(f,{onPickColor:e=>{var r=(0,l.hexToHsva)(e);H((0,o.A)({},r))}}),R&&(0,g.jsx)(d.default,{width:28,height:28,hsva:E,radius:2,style:{borderRadius:"50%"},bgProps:{style:{background:"transparent"}},innerProps:{style:F},pointer:()=>(0,g.jsx)(s.Fragment,{})}),(0,g.jsxs)("div",{style:{flex:1},children:[1==k&&(0,g.jsx)(p.default,{hue:E.h,style:{width:"100%",height:12,borderRadius:2},pointerProps:I,bgProps:{style:{borderRadius:2}},onChange:e=>{H((0,o.A)({},E,e))}}),1==T&&(0,g.jsx)(d.default,{hsva:E,style:{marginTop:6,height:12,borderRadius:2},pointerProps:I,bgProps:{style:{borderRadius:2}},onChange:e=>{H((0,o.A)({},E,e))}})]})]}),C&&(0,g.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",padding:"0 15px 15px 15px",userSelect:"none"},children:[(0,g.jsxs)("div",{style:{flex:1},children:[D==w.RGBA&&(0,g.jsx)(c.default,{hsva:E,rProps:{labelStyle:_,inputStyle:N},gProps:{labelStyle:_,inputStyle:N},bProps:{labelStyle:_,inputStyle:N},aProps:0!=T&&{labelStyle:_,inputStyle:N},onChange:e=>H(e.hsva)}),D===w.HEXA&&(0,g.jsx)(h.default,{label:"HEX",labelStyle:_,inputStyle:N,value:E.a>0&&E.a<1?(0,l.hsvaToHexa)(E).toLocaleUpperCase():(0,l.hsvaToHex)(E).toLocaleUpperCase(),onChange:(e,r)=>{"string"===typeof r&&H((0,l.hexToHsva)(/^#/.test(r)?r:"#"+r))}}),D===w.HSLA&&(0,g.jsx)(u.default,{hsva:E,hProps:{labelStyle:_,inputStyle:N},sProps:{labelStyle:_,inputStyle:N},lProps:{labelStyle:_,inputStyle:N},aProps:0!=T&&{labelStyle:_,inputStyle:N},onChange:e=>H(e.hsva)})]}),(0,g.jsx)(x,{onClick:()=>{D===w.RGBA&&M(w.HSLA),D===w.HSLA&&M(w.HEXA),D===w.HEXA&&M(w.RGBA)}})]})]}),rectRender:()=>(0,g.jsx)(s.Fragment,{})}))}));y.displayName="Chrome";const j=y},8088:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>h});var o=t(8102),a=t(9257),s=t(7804),l=t(6436),i=t(2945),n=t(9424),p=["prefixCls","hsva","hProps","sProps","lProps","aProps","className","onChange"],d=s.forwardRef(((e,r)=>{var{prefixCls:t="w-color-editable-input-hsla",hsva:s,hProps:d={},sProps:h={},lProps:c={},aProps:u={},className:g,onChange:b}=e,x=(0,a.A)(e,p),m=s?(0,i.hsvaToHsla)(s):{h:0,s:0,l:0,a:0},f=(e,r,t)=>{"number"===typeof e&&("h"===r&&(e<0&&(e=0),e>360&&(e=360),b&&b((0,i.color)((0,i.hslaToHsva)((0,o.A)({},m,{h:e}))))),"s"===r&&(e<0&&(e=0),e>100&&(e=100),b&&b((0,i.color)((0,i.hslaToHsva)((0,o.A)({},m,{s:e}))))),"l"===r&&(e<0&&(e=0),e>100&&(e=100),b&&b((0,i.color)((0,i.hslaToHsva)((0,o.A)({},m,{l:e}))))),"a"===r&&(e<0&&(e=0),e>1&&(e=1),b&&b((0,i.color)((0,i.hslaToHsva)((0,o.A)({},m,{a:e}))))))},v=0!=u&&(0,o.A)({label:"A",value:Math.round(100*m.a)/100},u,{onChange:(e,r)=>f(r,"a")});return(0,n.jsx)(l.default,(0,o.A)({ref:r,hsva:s,rProps:(0,o.A)({label:"H",value:Math.round(m.h)},d,{onChange:(e,r)=>f(r,"h")}),gProps:(0,o.A)({label:"S",value:Math.round(m.s)+"%"},h,{onChange:(e,r)=>f(r,"s")}),bProps:(0,o.A)({label:"L",value:Math.round(m.l)+"%"},c,{onChange:(e,r)=>f(r,"l")}),aProps:v,className:[t,g||""].filter(Boolean).join(" ")},x))}));d.displayName="EditableInputHSLA";const h=d},2051:(e,r,t)=>{"use strict";t.r(r),t.d(r,{GithubPlacement:()=>g,default:()=>x});var o=t(9520),a=t(8102),s=t(9257),l=t(7804),i=t(2945),n=t(6966),p=t(9424),d={marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25};function h(e){var{style:r,title:t,checked:o,color:s,onClick:i,rectProps:n}=e,h=(0,l.useRef)(null),c=(0,l.useCallback)((()=>{h.current.style.zIndex="2",h.current.style.outline="#fff solid 2px",h.current.style.boxShadow="rgb(0 0 0 / 25%) 0 0 5px 2px"}),[]),u=(0,l.useCallback)((()=>{o||(h.current.style.zIndex="0",h.current.style.outline="initial",h.current.style.boxShadow="initial")}),[o]),g=o?{zIndex:1,outline:"#fff solid 2px",boxShadow:"rgb(0 0 0 / 25%) 0 0 5px 2px"}:{zIndex:0};return(0,p.jsx)("div",(0,a.A)({ref:h,title:t},n,{onClick:i,onMouseEnter:c,onMouseLeave:u,style:(0,a.A)({},r,{marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25},d,g,null==n?void 0:n.style)}))}var c=["prefixCls","placement","className","style","color","colors","rectProps","onChange","rectRender"],u=["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],g=function(e){return e.Left="L",e.LeftTop="LT",e.LeftBottom="LB",e.Right="R",e.RightTop="RT",e.RightBottom="RB",e.Top="T",e.TopRight="TR",e.TopLeft="TL",e.Bottom="B",e.BottomLeft="BL",e.BottomRight="BR",e}({}),b=l.forwardRef(((e,r)=>{var{prefixCls:t="w-color-github",placement:d=g.TopRight,className:b,style:x,color:m,colors:f=u,rectProps:v={},onChange:w,rectRender:y}=e,j=(0,s.A)(e,c),C="string"===typeof m&&(0,i.validHex)(m)?(0,i.hexToHsva)(m):m,A=m?(0,i.hsvaToHex)(C):"",R=(0,a.A)({"--github-border":"1px solid rgba(0, 0, 0, 0.2)","--github-background-color":"#fff","--github-box-shadow":"rgb(0 0 0 / 15%) 0px 3px 12px","--github-arrow-border-color":"rgba(0, 0, 0, 0.15)",width:200,borderRadius:4,background:"var(--github-background-color)",boxShadow:"var(--github-box-shadow)",border:"var(--github-border)",position:"relative",padding:5},x),k={borderStyle:"solid",position:"absolute"},T=(0,a.A)({},k),B=(0,a.A)({},k);/^T/.test(d)&&(T.borderWidth="0 8px 8px",T.borderColor="transparent transparent var(--github-arrow-border-color)",B.borderWidth="0 7px 7px",B.borderColor="transparent transparent var(--github-background-color)"),d===g.TopRight&&(T.top=-8,B.top=-7),d===g.Top&&(T.top=-8,B.top=-7),d===g.TopLeft&&(T.top=-8,B.top=-7),/^B/.test(d)&&(T.borderWidth="8px 8px 0",T.borderColor="var(--github-arrow-border-color) transparent transparent",B.borderWidth="7px 7px 0",B.borderColor="var(--github-background-color) transparent transparent",d===g.BottomRight&&(T.top="100%",B.top="100%"),d===g.Bottom&&(T.top="100%",B.top="100%"),d===g.BottomLeft&&(T.top="100%",B.top="100%")),/^(B|T)/.test(d)&&(d!==g.Top&&d!==g.Bottom||(T.left="50%",T.marginLeft=-8,B.left="50%",B.marginLeft=-7),d!==g.TopRight&&d!==g.BottomRight||(T.right=10,B.right=11),d!==g.TopLeft&&d!==g.BottomLeft||(T.left=7,B.left=8)),/^L/.test(d)&&(T.borderWidth="8px 8px 8px 0",T.borderColor="transparent var(--github-arrow-border-color) transparent transparent",B.borderWidth="7px 7px 7px 0",B.borderColor="transparent var(--github-background-color) transparent transparent",T.left=-8,B.left=-7),/^R/.test(d)&&(T.borderWidth="8px 0 8px 8px",T.borderColor="transparent transparent transparent var(--github-arrow-border-color)",B.borderWidth="7px 0 7px 7px",B.borderColor="transparent transparent transparent var(--github-background-color)",T.right=-8,B.right=-7),/^(L|R)/.test(d)&&(d!==g.RightTop&&d!==g.LeftTop||(T.top=5,B.top=6),d!==g.Left&&d!==g.Right||(T.top="50%",B.top="50%",T.marginTop=-8,B.marginTop=-7),d!==g.LeftBottom&&d!==g.RightBottom||(T.top="100%",B.top="100%",T.marginTop=-21,B.marginTop=-20));return(0,p.jsx)(n.default,(0,a.A)({ref:r,className:[t,b].filter(Boolean).join(" "),colors:f,color:A,rectRender:e=>{var r=(0,a.A)({},((0,o.A)(e),e)),t=y&&y((0,a.A)({},r));return t||(0,p.jsx)(h,(0,a.A)({},r,{rectProps:v}))}},j,{onChange:e=>w&&w((0,i.color)(e)),style:R,rectProps:{style:{marginRight:0,marginBottom:0,borderRadius:0,height:25,width:25}},addonBefore:(0,p.jsxs)(l.Fragment,{children:[(0,p.jsx)("div",{style:T}),(0,p.jsx)("div",{style:B})]})}))}));b.displayName="Github";const x=b},9520:(e,r,t)=>{"use strict";function o(e){if(null==e)throw new TypeError("Cannot destructure "+e)}t.d(r,{A:()=>o})}}]); -//# sourceMappingURL=571.fbf1c3f5.chunk.js.map \ No newline at end of file +//# sourceMappingURL=571.b934f5eb.chunk.js.map \ No newline at end of file diff --git a/static/js/571.fbf1c3f5.chunk.js.map b/static/js/571.b934f5eb.chunk.js.map similarity index 99% rename from static/js/571.fbf1c3f5.chunk.js.map rename to static/js/571.b934f5eb.chunk.js.map index 0f633f615..f3f32778d 100644 --- a/static/js/571.fbf1c3f5.chunk.js.map +++ b/static/js/571.b934f5eb.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/571.fbf1c3f5.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAA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ome/esm/Arrow.js","../../packages/color-chrome/esm/EyeDropper.js","../../packages/color-chrome/esm/index.js","../../packages/color-editable-input-hsla/esm/index.js","../../packages/color-github/esm/Point.js","../../packages/color-github/esm/index.js","../../node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"style\"];\nimport React, { useRef, useCallback } from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function Arrow(props) {\n var {\n style\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var btn = useRef(null);\n var handleMouseEnter = useCallback(() => {\n btn.current.style['backgroundColor'] = 'var(--chrome-arrow-background-color)';\n }, []);\n var handleMouseLeave = useCallback(() => {\n btn.current.style['backgroundColor'] = 'transparent';\n }, []);\n return /*#__PURE__*/_jsx(\"div\", _extends({\n ref: btn,\n style: _extends({\n marginLeft: 5,\n cursor: 'pointer',\n transition: 'background-color .3s',\n borderRadius: 2\n }, style)\n }, other, {\n onMouseEnter: handleMouseEnter,\n onMouseLeave: handleMouseLeave,\n children: /*#__PURE__*/_jsx(\"svg\", {\n viewBox: \"0 0 1024 1024\",\n width: \"24\",\n height: \"24\",\n style: {\n display: 'block'\n },\n children: /*#__PURE__*/_jsx(\"path\", {\n d: \"M373.888 576h276.224c9.322667 0 14.293333 11.178667 9.173333 18.773333l-1.258666 1.557334-138.112 146.858666a10.709333 10.709333 0 0 1-14.293334 1.365334l-1.536-1.365334-138.112-146.858666c-6.592-6.997333-2.666667-18.645333 5.973334-20.16l1.941333-0.170667h276.224-276.224z m146.026667-295.189333l138.112 146.858666c7.04 7.509333 2.069333 20.330667-7.914667 20.330667H373.888c-9.984 0-14.976-12.821333-7.914667-20.330667l138.112-146.858666a10.730667 10.730667 0 0 1 15.829334 0z\",\n fill: \"var(--chrome-arrow-fill)\"\n })\n })\n }));\n}","import React from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport var isSupportEyeDropper = 'EyeDropper' in window;\nexport function EyeDropper(props) {\n var click = () => {\n if ('EyeDropper' in window) {\n var eyeDropper = new window.EyeDropper();\n eyeDropper.open().then(result => {\n console.log(result);\n props.onPickColor == null || props.onPickColor(result.sRGBHex);\n });\n }\n };\n return /*#__PURE__*/_jsx(\"svg\", {\n viewBox: \"0 0 512 512\",\n height: \"1em\",\n width: \"1em\",\n onClick: click,\n children: /*#__PURE__*/_jsx(\"path\", {\n fill: \"currentColor\",\n d: \"M482.8 29.23c38.9 38.98 38.9 102.17 0 141.17L381.2 271.9l9.4 9.5c12.5 12.5 12.5 32.7 0 45.2s-32.7 12.5-45.2 0l-160-160c-12.5-12.5-12.5-32.7 0-45.2s32.7-12.5 45.2 0l9.5 9.4L341.6 29.23c39-38.974 102.2-38.974 141.2 0zM55.43 323.3 176.1 202.6l45.3 45.3-120.7 120.7c-3.01 3-4.7 7-4.7 11.3V416h36.1c4.3 0 8.3-1.7 11.3-4.7l120.7-120.7 45.3 45.3-120.7 120.7c-15 15-35.4 23.4-56.6 23.4H89.69l-39.94 26.6c-12.69 8.5-29.59 6.8-40.377-4-10.786-10.8-12.459-27.7-3.998-40.4L32 422.3v-42.4c0-21.2 8.43-41.6 23.43-56.6z\"\n })\n });\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"color\", \"showEditableInput\", \"showEyeDropper\", \"showColorPreview\", \"showHue\", \"showAlpha\", \"inputType\", \"rectProps\", \"onChange\"];\nimport React, { Fragment } from 'react';\nimport { hsvaToRgbaString, color as handleColor, validHex, hexToHsva, hsvaToHex, hsvaToHexa } from '@uiw/color-convert';\nimport Github, { GithubPlacement } from '@uiw/react-color-github';\nimport Saturation from '@uiw/react-color-saturation';\nimport Hue from '@uiw/react-color-hue';\nimport Alpha from '@uiw/react-color-alpha';\nimport EditableInput from '@uiw/react-color-editable-input';\nimport EditableInputRGBA from '@uiw/react-color-editable-input-rgba';\nimport EditableInputHSLA from '@uiw/react-color-editable-input-hsla';\nimport { useState } from 'react';\nimport Arrow from './Arrow';\nimport { EyeDropper, isSupportEyeDropper } from './EyeDropper';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport var ChromeInputType = /*#__PURE__*/function (ChromeInputType) {\n ChromeInputType[\"HEXA\"] = \"hexa\";\n ChromeInputType[\"RGBA\"] = \"rgba\";\n ChromeInputType[\"HSLA\"] = \"hsla\";\n return ChromeInputType;\n}({});\nvar Chrome = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-chrome',\n className,\n style,\n color,\n showEditableInput = true,\n showEyeDropper = true,\n showColorPreview = true,\n showHue = true,\n showAlpha = true,\n inputType = ChromeInputType.RGBA,\n rectProps = {},\n onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color || {\n h: 0,\n s: 0,\n l: 0,\n a: 0\n };\n var handleChange = hsv => onChange && onChange(handleColor(hsv));\n var [type, setType] = useState(inputType);\n var handleClick = () => {\n if (type === ChromeInputType.RGBA) {\n setType(ChromeInputType.HSLA);\n }\n if (type === ChromeInputType.HSLA) {\n setType(ChromeInputType.HEXA);\n }\n if (type === ChromeInputType.HEXA) {\n setType(ChromeInputType.RGBA);\n }\n };\n var labelStyle = {\n paddingTop: 6\n };\n var inputStyle = {\n textAlign: 'center',\n paddingTop: 4,\n paddingBottom: 4\n };\n var wrapperStyle = _extends({\n '--chrome-arrow-fill': '#333',\n '--chrome-arrow-background-color': '#e8e8e8',\n borderRadius: 0,\n flexDirection: 'column',\n width: 230,\n padding: 0\n }, style);\n var alphaStyle = {\n '--chrome-alpha-box-shadow': 'rgb(0 0 0 / 25%) 0px 0px 1px inset',\n borderRadius: '50%',\n background: hsvaToRgbaString(hsva),\n boxShadow: 'var(--chrome-alpha-box-shadow)'\n };\n var handleClickColor = hex => {\n var result = hexToHsva(hex);\n handleChange(_extends({}, result));\n };\n var styleSize = {\n height: 14,\n width: 14\n };\n var pointerProps = {\n style: _extends({}, styleSize),\n fillProps: {\n style: styleSize\n }\n };\n return /*#__PURE__*/_jsx(Github, _extends({\n ref: ref,\n color: hsva,\n style: wrapperStyle,\n colors: undefined,\n className: [prefixCls, className].filter(Boolean).join(' '),\n placement: GithubPlacement.TopLeft\n }, other, {\n addonAfter: /*#__PURE__*/_jsxs(Fragment, {\n children: [/*#__PURE__*/_jsx(Saturation, {\n hsva: hsva,\n style: {\n width: '100%',\n height: 130\n },\n onChange: newColor => {\n handleChange(_extends({}, hsva, newColor, {\n a: hsva.a\n }));\n }\n }), /*#__PURE__*/_jsxs(\"div\", {\n style: {\n padding: 15,\n display: 'flex',\n alignItems: 'center',\n gap: 10\n },\n children: [isSupportEyeDropper && showEyeDropper && /*#__PURE__*/_jsx(EyeDropper, {\n onPickColor: handleClickColor\n }), showColorPreview && /*#__PURE__*/_jsx(Alpha, {\n width: 28,\n height: 28,\n hsva: hsva,\n radius: 2,\n style: {\n borderRadius: '50%'\n },\n bgProps: {\n style: {\n background: 'transparent'\n }\n },\n innerProps: {\n style: alphaStyle\n },\n pointer: () => /*#__PURE__*/_jsx(Fragment, {})\n }), /*#__PURE__*/_jsxs(\"div\", {\n style: {\n flex: 1\n },\n children: [showHue == true && /*#__PURE__*/_jsx(Hue, {\n hue: hsva.h,\n style: {\n width: '100%',\n height: 12,\n borderRadius: 2\n },\n pointerProps: pointerProps,\n bgProps: {\n style: {\n borderRadius: 2\n }\n },\n onChange: newHue => {\n handleChange(_extends({}, hsva, newHue));\n }\n }), showAlpha == true && /*#__PURE__*/_jsx(Alpha, {\n hsva: hsva,\n style: {\n marginTop: 6,\n height: 12,\n borderRadius: 2\n },\n pointerProps: pointerProps,\n bgProps: {\n style: {\n borderRadius: 2\n }\n },\n onChange: newAlpha => {\n handleChange(_extends({}, hsva, newAlpha));\n }\n })]\n })]\n }), showEditableInput && /*#__PURE__*/_jsxs(\"div\", {\n style: {\n display: 'flex',\n alignItems: 'flex-start',\n padding: '0 15px 15px 15px',\n userSelect: 'none'\n },\n children: [/*#__PURE__*/_jsxs(\"div\", {\n style: {\n flex: 1\n },\n children: [type == ChromeInputType.RGBA && /*#__PURE__*/_jsx(EditableInputRGBA, {\n hsva: hsva,\n rProps: {\n labelStyle,\n inputStyle\n },\n gProps: {\n labelStyle,\n inputStyle\n },\n bProps: {\n labelStyle,\n inputStyle\n },\n aProps: showAlpha == false ? false : {\n labelStyle,\n inputStyle\n },\n onChange: reColor => handleChange(reColor.hsva)\n }), type === ChromeInputType.HEXA && /*#__PURE__*/_jsx(EditableInput, {\n label: \"HEX\",\n labelStyle: labelStyle,\n inputStyle: inputStyle,\n value: hsva.a > 0 && hsva.a < 1 ? hsvaToHexa(hsva).toLocaleUpperCase() : hsvaToHex(hsva).toLocaleUpperCase(),\n onChange: (_, value) => {\n if (typeof value === 'string') {\n handleChange(hexToHsva(/^#/.test(value) ? value : \"#\" + value));\n }\n }\n }), type === ChromeInputType.HSLA && /*#__PURE__*/_jsx(EditableInputHSLA, {\n hsva: hsva,\n hProps: {\n labelStyle,\n inputStyle\n },\n sProps: {\n labelStyle,\n inputStyle\n },\n lProps: {\n labelStyle,\n inputStyle\n },\n aProps: showAlpha == false ? false : {\n labelStyle,\n inputStyle\n },\n onChange: reColor => handleChange(reColor.hsva)\n })]\n }), /*#__PURE__*/_jsx(Arrow, {\n onClick: handleClick\n })]\n })]\n }),\n rectRender: () => /*#__PURE__*/_jsx(Fragment, {})\n }));\n});\nChrome.displayName = 'Chrome';\nexport default Chrome;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"hsva\", \"hProps\", \"sProps\", \"lProps\", \"aProps\", \"className\", \"onChange\"];\nimport React from 'react';\nimport EditableInputRGBA from '@uiw/react-color-editable-input-rgba';\nimport { color as handleColor, hsvaToHsla, hslaToHsva } from '@uiw/color-convert';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar EditableInputHSLA = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-editable-input-hsla',\n hsva,\n hProps = {},\n sProps = {},\n lProps = {},\n aProps = {},\n className,\n onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsla = hsva ? hsvaToHsla(hsva) : {\n h: 0,\n s: 0,\n l: 0,\n a: 0\n };\n var handleChange = (value, type, evn) => {\n if (typeof value === 'number') {\n if (type === 'h') {\n if (value < 0) value = 0;\n if (value > 360) value = 360;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n h: value\n }))));\n }\n if (type === 's') {\n if (value < 0) value = 0;\n if (value > 100) value = 100;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n s: value\n }))));\n }\n if (type === 'l') {\n if (value < 0) value = 0;\n if (value > 100) value = 100;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n l: value\n }))));\n }\n if (type === 'a') {\n if (value < 0) value = 0;\n if (value > 1) value = 1;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n a: value\n }))));\n }\n }\n };\n var aPropsObj = aProps == false ? false : _extends({\n label: 'A',\n value: Math.round(hsla.a * 100) / 100\n }, aProps, {\n onChange: (evn, val) => handleChange(val, 'a', evn)\n });\n return /*#__PURE__*/_jsx(EditableInputRGBA, _extends({\n ref: ref,\n hsva: hsva,\n rProps: _extends({\n label: 'H',\n value: Math.round(hsla.h)\n }, hProps, {\n onChange: (evn, val) => handleChange(val, 'h', evn)\n }),\n gProps: _extends({\n label: 'S',\n value: Math.round(hsla.s) + \"%\"\n }, sProps, {\n onChange: (evn, val) => handleChange(val, 's', evn)\n }),\n bProps: _extends({\n label: 'L',\n value: Math.round(hsla.l) + \"%\"\n }, lProps, {\n onChange: (evn, val) => handleChange(val, 'l', evn)\n }),\n aProps: aPropsObj,\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other));\n});\nEditableInputHSLA.displayName = 'EditableInputHSLA';\nexport default EditableInputHSLA;","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useCallback } from 'react';\nimport { useRef } from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar defalutStyle = {\n marginRight: 0,\n marginBottom: 0,\n borderRadius: 0,\n boxSizing: 'border-box',\n height: 25,\n width: 25\n};\nexport default function Point(_ref) {\n var {\n style,\n title,\n checked,\n color,\n onClick,\n rectProps\n } = _ref;\n var btn = useRef(null);\n var handleMouseEnter = useCallback(() => {\n btn.current.style['zIndex'] = '2';\n btn.current.style['outline'] = '#fff solid 2px';\n btn.current.style['boxShadow'] = 'rgb(0 0 0 / 25%) 0 0 5px 2px';\n }, []);\n var handleMouseLeave = useCallback(() => {\n if (!checked) {\n btn.current.style['zIndex'] = '0';\n btn.current.style['outline'] = 'initial';\n btn.current.style['boxShadow'] = 'initial';\n }\n }, [checked]);\n var rectStyle = checked ? {\n zIndex: 1,\n outline: '#fff solid 2px',\n boxShadow: 'rgb(0 0 0 / 25%) 0 0 5px 2px'\n } : {\n zIndex: 0\n };\n return /*#__PURE__*/_jsx(\"div\", _extends({\n ref: btn,\n title: title\n }, rectProps, {\n onClick: onClick,\n onMouseEnter: handleMouseEnter,\n onMouseLeave: handleMouseLeave,\n style: _extends({}, style, {\n marginRight: 0,\n marginBottom: 0,\n borderRadius: 0,\n boxSizing: 'border-box',\n height: 25,\n width: 25\n }, defalutStyle, rectStyle, rectProps == null ? void 0 : rectProps.style)\n }));\n}","import _objectDestructuringEmpty from \"@babel/runtime/helpers/objectDestructuringEmpty\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"placement\", \"className\", \"style\", \"color\", \"colors\", \"rectProps\", \"onChange\", \"rectRender\"];\nimport React, { Fragment } from 'react';\nimport { color as handleColor, validHex, hexToHsva, hsvaToHex } from '@uiw/color-convert';\nimport Swatch from '@uiw/react-color-swatch';\nimport Point from './Point';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar CORLER_HEX = ['#B80000', '#DB3E00', '#FCCB00', '#008B02', '#006B76', '#1273DE', '#004DCF', '#5300EB', '#EB9694', '#FAD0C3', '#FEF3BD', '#C1E1C5', '#BEDADC', '#C4DEF6', '#BED3F3', '#D4C4FB'];\nexport var GithubPlacement = /*#__PURE__*/function (GithubPlacement) {\n GithubPlacement[\"Left\"] = \"L\";\n GithubPlacement[\"LeftTop\"] = \"LT\";\n GithubPlacement[\"LeftBottom\"] = \"LB\";\n GithubPlacement[\"Right\"] = \"R\";\n GithubPlacement[\"RightTop\"] = \"RT\";\n GithubPlacement[\"RightBottom\"] = \"RB\";\n GithubPlacement[\"Top\"] = \"T\";\n GithubPlacement[\"TopRight\"] = \"TR\";\n GithubPlacement[\"TopLeft\"] = \"TL\";\n GithubPlacement[\"Bottom\"] = \"B\";\n GithubPlacement[\"BottomLeft\"] = \"BL\";\n GithubPlacement[\"BottomRight\"] = \"BR\";\n return GithubPlacement;\n}({});\nvar Github = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-github',\n placement = GithubPlacement.TopRight,\n className,\n style,\n color,\n colors = CORLER_HEX,\n rectProps = {},\n onChange,\n rectRender\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color;\n var hex = color ? hsvaToHex(hsva) : '';\n var handleChange = hsv => onChange && onChange(handleColor(hsv));\n var styleWrapper = _extends({\n '--github-border': '1px solid rgba(0, 0, 0, 0.2)',\n '--github-background-color': '#fff',\n '--github-box-shadow': 'rgb(0 0 0 / 15%) 0px 3px 12px',\n '--github-arrow-border-color': 'rgba(0, 0, 0, 0.15)',\n width: 200,\n borderRadius: 4,\n background: 'var(--github-background-color)',\n boxShadow: 'var(--github-box-shadow)',\n border: 'var(--github-border)',\n position: 'relative',\n padding: 5\n }, style);\n var rStyle = {\n borderStyle: 'solid',\n position: 'absolute'\n };\n var arrBrStyl = _extends({}, rStyle);\n var arrStyl = _extends({}, rStyle);\n if (/^T/.test(placement)) {\n arrBrStyl.borderWidth = '0 8px 8px';\n arrBrStyl.borderColor = 'transparent transparent var(--github-arrow-border-color)';\n arrStyl.borderWidth = '0 7px 7px';\n arrStyl.borderColor = 'transparent transparent var(--github-background-color)';\n }\n if (placement === GithubPlacement.TopRight) {\n arrBrStyl.top = -8;\n arrStyl.top = -7;\n }\n if (placement === GithubPlacement.Top) {\n arrBrStyl.top = -8;\n arrStyl.top = -7;\n }\n if (placement === GithubPlacement.TopLeft) {\n arrBrStyl.top = -8;\n arrStyl.top = -7;\n }\n if (/^B/.test(placement)) {\n arrBrStyl.borderWidth = '8px 8px 0';\n arrBrStyl.borderColor = 'var(--github-arrow-border-color) transparent transparent';\n arrStyl.borderWidth = '7px 7px 0';\n arrStyl.borderColor = 'var(--github-background-color) transparent transparent';\n if (placement === GithubPlacement.BottomRight) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n }\n if (placement === GithubPlacement.Bottom) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n }\n if (placement === GithubPlacement.BottomLeft) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n }\n }\n if (/^(B|T)/.test(placement)) {\n if (placement === GithubPlacement.Top || placement === GithubPlacement.Bottom) {\n arrBrStyl.left = '50%';\n arrBrStyl.marginLeft = -8;\n arrStyl.left = '50%';\n arrStyl.marginLeft = -7;\n }\n if (placement === GithubPlacement.TopRight || placement === GithubPlacement.BottomRight) {\n arrBrStyl.right = 10;\n arrStyl.right = 11;\n }\n if (placement === GithubPlacement.TopLeft || placement === GithubPlacement.BottomLeft) {\n arrBrStyl.left = 7;\n arrStyl.left = 8;\n }\n }\n if (/^L/.test(placement)) {\n arrBrStyl.borderWidth = '8px 8px 8px 0';\n arrBrStyl.borderColor = 'transparent var(--github-arrow-border-color) transparent transparent';\n arrStyl.borderWidth = '7px 7px 7px 0';\n arrStyl.borderColor = 'transparent var(--github-background-color) transparent transparent';\n arrBrStyl.left = -8;\n arrStyl.left = -7;\n }\n if (/^R/.test(placement)) {\n arrBrStyl.borderWidth = '8px 0 8px 8px';\n arrBrStyl.borderColor = 'transparent transparent transparent var(--github-arrow-border-color)';\n arrStyl.borderWidth = '7px 0 7px 7px';\n arrStyl.borderColor = 'transparent transparent transparent var(--github-background-color)';\n arrBrStyl.right = -8;\n arrStyl.right = -7;\n }\n if (/^(L|R)/.test(placement)) {\n if (placement === GithubPlacement.RightTop || placement === GithubPlacement.LeftTop) {\n arrBrStyl.top = 5;\n arrStyl.top = 6;\n }\n if (placement === GithubPlacement.Left || placement === GithubPlacement.Right) {\n arrBrStyl.top = '50%';\n arrStyl.top = '50%';\n arrBrStyl.marginTop = -8;\n arrStyl.marginTop = -7;\n }\n if (placement === GithubPlacement.LeftBottom || placement === GithubPlacement.RightBottom) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n arrBrStyl.marginTop = -21;\n arrStyl.marginTop = -20;\n }\n }\n var render = _ref => {\n var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));\n var handle = rectRender && rectRender(_extends({}, props));\n if (handle) return handle;\n return /*#__PURE__*/_jsx(Point, _extends({}, props, {\n rectProps: rectProps\n }));\n };\n return /*#__PURE__*/_jsx(Swatch, _extends({\n ref: ref,\n className: [prefixCls, className].filter(Boolean).join(' '),\n colors: colors,\n color: hex,\n rectRender: render\n }, other, {\n onChange: handleChange,\n style: styleWrapper,\n rectProps: {\n style: {\n marginRight: 0,\n marginBottom: 0,\n borderRadius: 0,\n height: 25,\n width: 25\n }\n },\n addonBefore: /*#__PURE__*/_jsxs(Fragment, {\n children: [/*#__PURE__*/_jsx(\"div\", {\n style: arrBrStyl\n }), /*#__PURE__*/_jsx(\"div\", {\n style: arrStyl\n })]\n })\n }));\n});\nGithub.displayName = 'Github';\nexport default Github;","function _objectDestructuringEmpty(t) {\n if (null == t) throw new TypeError(\"Cannot destructure \" + t);\n}\nexport { _objectDestructuringEmpty as default };"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","_excluded","Arrow","other","_objectWithoutPropertiesLoose","btn","useRef","handleMouseEnter","useCallback","current","handleMouseLeave","_extends","ref","marginLeft","cursor","transition","borderRadius","onMouseEnter","onMouseLeave","viewBox","width","height","display","d","fill","isSupportEyeDropper","window","EyeDropper","onClick","click","open","result","console","log","onPickColor","sRGBHex","ChromeInputType","Chrome","React","prefixCls","color","showEditableInput","showEyeDropper","showColorPreview","showHue","showAlpha","inputType","RGBA","rectProps","onChange","hsva","validHex","hexToHsva","h","s","l","handleChange","hsv","handleColor","type","setType","useState","labelStyle","paddingTop","inputStyle","textAlign","paddingBottom","wrapperStyle","flexDirection","padding","alphaStyle","background","hsvaToRgbaString","styleSize","pointerProps","fillProps","Github","colors","undefined","filter","Boolean","join","placement","GithubPlacement","TopLeft","addonAfter","Fragment","Saturation","newColor","alignItems","gap","hex","Alpha","radius","bgProps","innerProps","pointer","flex","Hue","hue","newHue","marginTop","newAlpha","userSelect","EditableInputRGBA","rProps","gProps","bProps","aProps","reColor","HEXA","EditableInput","label","value","hsvaToHexa","toLocaleUpperCase","hsvaToHex","_","test","HSLA","EditableInputHSLA","hProps","sProps","lProps","handleClick","rectRender","displayName","hsla","hsvaToHsla","evn","hslaToHsva","aPropsObj","Math","round","val","defalutStyle","marginRight","marginBottom","boxSizing","Point","_ref","title","checked","rectStyle","zIndex","outline","CORLER_HEX","TopRight","styleWrapper","position","rStyle","borderStyle","arrBrStyl","arrStyl","borderWidth","borderColor","top","Top","BottomRight","Bottom","BottomLeft","left","right","RightTop","LeftTop","Left","Right","LeftBottom","RightBottom","Swatch","_objectDestructuringEmpty","handle","addonBefore","t","TypeError"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/571.b934f5eb.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,2FCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,GAAG;;;;;;;;;;EAkB5BC,EAAYF,EAAAA,GAAOG,CAAC;;;;;;;;;;;;;EAepBC,EAAUJ,EAAAA,GAAOC,GAAG;;EAIpBI,EAASL,EAAAA,GAAOM,MAAM;;;;;;;;;;EAYtBC,EAAUP,EAAAA,GAAOC,GAAG;;;;;;;;EAUX,MAAMO,UAAiBC,EAAAA,UACpCC,WAAAA,CAAYC,GACVC,MAAMD,GAAO,KAKfE,eAAS,OACTC,cAAQ,OACRC,aAAO,EANLC,KAAKC,MAAQ,CACXC,MAAO,GAEX,CAIAC,iBAAAA,GACMH,KAAKF,UACPE,KAAKF,WAAWM,MAAMC,IACpBL,KAAKM,SAAS,CACZJ,MAAOG,EAAIE,QAAQC,OACnBC,MAAOJ,EAAIE,SACX,GAGR,CACAG,MAAAA,GACE,MAAM,OAAEF,EAAM,WAAEG,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A,GAAS,CAAC,EAAGzC,EAAO,CAClD8E,UAAWA,IACV,GAQF7C,EAAO,CACR8C,SAzHiBQ,GAAOR,GAAYA,GAASS,EAAAA,EAAAA,OAAYD,IA0HzD7D,MAAOwJ,EACPpG,UAAW,CACTpD,MAAO,CACL4I,YAAa,EACbC,aAAc,EACdzH,aAAc,EACdK,OAAQ,GACRD,MAAO,KAGXwJ,aAA0BxL,EAAAA,EAAAA,MAAMkG,EAAAA,SAAU,CACxChG,SAAU,EAAcC,EAAAA,EAAAA,KAAK,MAAO,CAClCK,MAAO4J,KACQjK,EAAAA,EAAAA,KAAK,MAAO,CAC3BK,MAAO6J,SAGV,IAEL7E,EAAOkD,YAAc,SACrB,S,8BCtLA,SAAS4C,EAA0BG,GACjC,GAAI,MAAQA,EAAG,MAAM,IAAIC,UAAU,sBAAwBD,EAC7D,C","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","../../packages/color-chrome/esm/Arrow.js","../../packages/color-chrome/esm/EyeDropper.js","../../packages/color-chrome/esm/index.js","../../packages/color-editable-input-hsla/esm/index.js","../../packages/color-github/esm/Point.js","../../packages/color-github/esm/index.js","../../node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"style\"];\nimport React, { useRef, useCallback } from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function Arrow(props) {\n var {\n style\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var btn = useRef(null);\n var handleMouseEnter = useCallback(() => {\n btn.current.style['backgroundColor'] = 'var(--chrome-arrow-background-color)';\n }, []);\n var handleMouseLeave = useCallback(() => {\n btn.current.style['backgroundColor'] = 'transparent';\n }, []);\n return /*#__PURE__*/_jsx(\"div\", _extends({\n ref: btn,\n style: _extends({\n marginLeft: 5,\n cursor: 'pointer',\n transition: 'background-color .3s',\n borderRadius: 2\n }, style)\n }, other, {\n onMouseEnter: handleMouseEnter,\n onMouseLeave: handleMouseLeave,\n children: /*#__PURE__*/_jsx(\"svg\", {\n viewBox: \"0 0 1024 1024\",\n width: \"24\",\n height: \"24\",\n style: {\n display: 'block'\n },\n children: /*#__PURE__*/_jsx(\"path\", {\n d: \"M373.888 576h276.224c9.322667 0 14.293333 11.178667 9.173333 18.773333l-1.258666 1.557334-138.112 146.858666a10.709333 10.709333 0 0 1-14.293334 1.365334l-1.536-1.365334-138.112-146.858666c-6.592-6.997333-2.666667-18.645333 5.973334-20.16l1.941333-0.170667h276.224-276.224z m146.026667-295.189333l138.112 146.858666c7.04 7.509333 2.069333 20.330667-7.914667 20.330667H373.888c-9.984 0-14.976-12.821333-7.914667-20.330667l138.112-146.858666a10.730667 10.730667 0 0 1 15.829334 0z\",\n fill: \"var(--chrome-arrow-fill)\"\n })\n })\n }));\n}","import React from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport var isSupportEyeDropper = 'EyeDropper' in window;\nexport function EyeDropper(props) {\n var click = () => {\n if ('EyeDropper' in window) {\n var eyeDropper = new window.EyeDropper();\n eyeDropper.open().then(result => {\n console.log(result);\n props.onPickColor == null || props.onPickColor(result.sRGBHex);\n });\n }\n };\n return /*#__PURE__*/_jsx(\"svg\", {\n viewBox: \"0 0 512 512\",\n height: \"1em\",\n width: \"1em\",\n onClick: click,\n children: /*#__PURE__*/_jsx(\"path\", {\n fill: \"currentColor\",\n d: \"M482.8 29.23c38.9 38.98 38.9 102.17 0 141.17L381.2 271.9l9.4 9.5c12.5 12.5 12.5 32.7 0 45.2s-32.7 12.5-45.2 0l-160-160c-12.5-12.5-12.5-32.7 0-45.2s32.7-12.5 45.2 0l9.5 9.4L341.6 29.23c39-38.974 102.2-38.974 141.2 0zM55.43 323.3 176.1 202.6l45.3 45.3-120.7 120.7c-3.01 3-4.7 7-4.7 11.3V416h36.1c4.3 0 8.3-1.7 11.3-4.7l120.7-120.7 45.3 45.3-120.7 120.7c-15 15-35.4 23.4-56.6 23.4H89.69l-39.94 26.6c-12.69 8.5-29.59 6.8-40.377-4-10.786-10.8-12.459-27.7-3.998-40.4L32 422.3v-42.4c0-21.2 8.43-41.6 23.43-56.6z\"\n })\n });\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"color\", \"showEditableInput\", \"showEyeDropper\", \"showColorPreview\", \"showHue\", \"showAlpha\", \"inputType\", \"rectProps\", \"onChange\"];\nimport React, { Fragment } from 'react';\nimport { hsvaToRgbaString, color as handleColor, validHex, hexToHsva, hsvaToHex, hsvaToHexa } from '@uiw/color-convert';\nimport Github, { GithubPlacement } from '@uiw/react-color-github';\nimport Saturation from '@uiw/react-color-saturation';\nimport Hue from '@uiw/react-color-hue';\nimport Alpha from '@uiw/react-color-alpha';\nimport EditableInput from '@uiw/react-color-editable-input';\nimport EditableInputRGBA from '@uiw/react-color-editable-input-rgba';\nimport EditableInputHSLA from '@uiw/react-color-editable-input-hsla';\nimport { useState } from 'react';\nimport Arrow from './Arrow';\nimport { EyeDropper, isSupportEyeDropper } from './EyeDropper';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport var ChromeInputType = /*#__PURE__*/function (ChromeInputType) {\n ChromeInputType[\"HEXA\"] = \"hexa\";\n ChromeInputType[\"RGBA\"] = \"rgba\";\n ChromeInputType[\"HSLA\"] = \"hsla\";\n return ChromeInputType;\n}({});\nvar Chrome = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-chrome',\n className,\n style,\n color,\n showEditableInput = true,\n showEyeDropper = true,\n showColorPreview = true,\n showHue = true,\n showAlpha = true,\n inputType = ChromeInputType.RGBA,\n rectProps = {},\n onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color || {\n h: 0,\n s: 0,\n l: 0,\n a: 0\n };\n var handleChange = hsv => onChange && onChange(handleColor(hsv));\n var [type, setType] = useState(inputType);\n var handleClick = () => {\n if (type === ChromeInputType.RGBA) {\n setType(ChromeInputType.HSLA);\n }\n if (type === ChromeInputType.HSLA) {\n setType(ChromeInputType.HEXA);\n }\n if (type === ChromeInputType.HEXA) {\n setType(ChromeInputType.RGBA);\n }\n };\n var labelStyle = {\n paddingTop: 6\n };\n var inputStyle = {\n textAlign: 'center',\n paddingTop: 4,\n paddingBottom: 4\n };\n var wrapperStyle = _extends({\n '--chrome-arrow-fill': '#333',\n '--chrome-arrow-background-color': '#e8e8e8',\n borderRadius: 0,\n flexDirection: 'column',\n width: 230,\n padding: 0\n }, style);\n var alphaStyle = {\n '--chrome-alpha-box-shadow': 'rgb(0 0 0 / 25%) 0px 0px 1px inset',\n borderRadius: '50%',\n background: hsvaToRgbaString(hsva),\n boxShadow: 'var(--chrome-alpha-box-shadow)'\n };\n var handleClickColor = hex => {\n var result = hexToHsva(hex);\n handleChange(_extends({}, result));\n };\n var styleSize = {\n height: 14,\n width: 14\n };\n var pointerProps = {\n style: _extends({}, styleSize),\n fillProps: {\n style: styleSize\n }\n };\n return /*#__PURE__*/_jsx(Github, _extends({\n ref: ref,\n color: hsva,\n style: wrapperStyle,\n colors: undefined,\n className: [prefixCls, className].filter(Boolean).join(' '),\n placement: GithubPlacement.TopLeft\n }, other, {\n addonAfter: /*#__PURE__*/_jsxs(Fragment, {\n children: [/*#__PURE__*/_jsx(Saturation, {\n hsva: hsva,\n style: {\n width: '100%',\n height: 130\n },\n onChange: newColor => {\n handleChange(_extends({}, hsva, newColor, {\n a: hsva.a\n }));\n }\n }), /*#__PURE__*/_jsxs(\"div\", {\n style: {\n padding: 15,\n display: 'flex',\n alignItems: 'center',\n gap: 10\n },\n children: [isSupportEyeDropper && showEyeDropper && /*#__PURE__*/_jsx(EyeDropper, {\n onPickColor: handleClickColor\n }), showColorPreview && /*#__PURE__*/_jsx(Alpha, {\n width: 28,\n height: 28,\n hsva: hsva,\n radius: 2,\n style: {\n borderRadius: '50%'\n },\n bgProps: {\n style: {\n background: 'transparent'\n }\n },\n innerProps: {\n style: alphaStyle\n },\n pointer: () => /*#__PURE__*/_jsx(Fragment, {})\n }), /*#__PURE__*/_jsxs(\"div\", {\n style: {\n flex: 1\n },\n children: [showHue == true && /*#__PURE__*/_jsx(Hue, {\n hue: hsva.h,\n style: {\n width: '100%',\n height: 12,\n borderRadius: 2\n },\n pointerProps: pointerProps,\n bgProps: {\n style: {\n borderRadius: 2\n }\n },\n onChange: newHue => {\n handleChange(_extends({}, hsva, newHue));\n }\n }), showAlpha == true && /*#__PURE__*/_jsx(Alpha, {\n hsva: hsva,\n style: {\n marginTop: 6,\n height: 12,\n borderRadius: 2\n },\n pointerProps: pointerProps,\n bgProps: {\n style: {\n borderRadius: 2\n }\n },\n onChange: newAlpha => {\n handleChange(_extends({}, hsva, newAlpha));\n }\n })]\n })]\n }), showEditableInput && /*#__PURE__*/_jsxs(\"div\", {\n style: {\n display: 'flex',\n alignItems: 'flex-start',\n padding: '0 15px 15px 15px',\n userSelect: 'none'\n },\n children: [/*#__PURE__*/_jsxs(\"div\", {\n style: {\n flex: 1\n },\n children: [type == ChromeInputType.RGBA && /*#__PURE__*/_jsx(EditableInputRGBA, {\n hsva: hsva,\n rProps: {\n labelStyle,\n inputStyle\n },\n gProps: {\n labelStyle,\n inputStyle\n },\n bProps: {\n labelStyle,\n inputStyle\n },\n aProps: showAlpha == false ? false : {\n labelStyle,\n inputStyle\n },\n onChange: reColor => handleChange(reColor.hsva)\n }), type === ChromeInputType.HEXA && /*#__PURE__*/_jsx(EditableInput, {\n label: \"HEX\",\n labelStyle: labelStyle,\n inputStyle: inputStyle,\n value: hsva.a > 0 && hsva.a < 1 ? hsvaToHexa(hsva).toLocaleUpperCase() : hsvaToHex(hsva).toLocaleUpperCase(),\n onChange: (_, value) => {\n if (typeof value === 'string') {\n handleChange(hexToHsva(/^#/.test(value) ? value : \"#\" + value));\n }\n }\n }), type === ChromeInputType.HSLA && /*#__PURE__*/_jsx(EditableInputHSLA, {\n hsva: hsva,\n hProps: {\n labelStyle,\n inputStyle\n },\n sProps: {\n labelStyle,\n inputStyle\n },\n lProps: {\n labelStyle,\n inputStyle\n },\n aProps: showAlpha == false ? false : {\n labelStyle,\n inputStyle\n },\n onChange: reColor => handleChange(reColor.hsva)\n })]\n }), /*#__PURE__*/_jsx(Arrow, {\n onClick: handleClick\n })]\n })]\n }),\n rectRender: () => /*#__PURE__*/_jsx(Fragment, {})\n }));\n});\nChrome.displayName = 'Chrome';\nexport default Chrome;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"hsva\", \"hProps\", \"sProps\", \"lProps\", \"aProps\", \"className\", \"onChange\"];\nimport React from 'react';\nimport EditableInputRGBA from '@uiw/react-color-editable-input-rgba';\nimport { color as handleColor, hsvaToHsla, hslaToHsva } from '@uiw/color-convert';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar EditableInputHSLA = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-editable-input-hsla',\n hsva,\n hProps = {},\n sProps = {},\n lProps = {},\n aProps = {},\n className,\n onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsla = hsva ? hsvaToHsla(hsva) : {\n h: 0,\n s: 0,\n l: 0,\n a: 0\n };\n var handleChange = (value, type, evn) => {\n if (typeof value === 'number') {\n if (type === 'h') {\n if (value < 0) value = 0;\n if (value > 360) value = 360;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n h: value\n }))));\n }\n if (type === 's') {\n if (value < 0) value = 0;\n if (value > 100) value = 100;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n s: value\n }))));\n }\n if (type === 'l') {\n if (value < 0) value = 0;\n if (value > 100) value = 100;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n l: value\n }))));\n }\n if (type === 'a') {\n if (value < 0) value = 0;\n if (value > 1) value = 1;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n a: value\n }))));\n }\n }\n };\n var aPropsObj = aProps == false ? false : _extends({\n label: 'A',\n value: Math.round(hsla.a * 100) / 100\n }, aProps, {\n onChange: (evn, val) => handleChange(val, 'a', evn)\n });\n return /*#__PURE__*/_jsx(EditableInputRGBA, _extends({\n ref: ref,\n hsva: hsva,\n rProps: _extends({\n label: 'H',\n value: Math.round(hsla.h)\n }, hProps, {\n onChange: (evn, val) => handleChange(val, 'h', evn)\n }),\n gProps: _extends({\n label: 'S',\n value: Math.round(hsla.s) + \"%\"\n }, sProps, {\n onChange: (evn, val) => handleChange(val, 's', evn)\n }),\n bProps: _extends({\n label: 'L',\n value: Math.round(hsla.l) + \"%\"\n }, lProps, {\n onChange: (evn, val) => handleChange(val, 'l', evn)\n }),\n aProps: aPropsObj,\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other));\n});\nEditableInputHSLA.displayName = 'EditableInputHSLA';\nexport default EditableInputHSLA;","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useCallback } from 'react';\nimport { useRef } from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar defalutStyle = {\n marginRight: 0,\n marginBottom: 0,\n borderRadius: 0,\n boxSizing: 'border-box',\n height: 25,\n width: 25\n};\nexport default function Point(_ref) {\n var {\n style,\n title,\n checked,\n color,\n onClick,\n rectProps\n } = _ref;\n var btn = useRef(null);\n var handleMouseEnter = useCallback(() => {\n btn.current.style['zIndex'] = '2';\n btn.current.style['outline'] = '#fff solid 2px';\n btn.current.style['boxShadow'] = 'rgb(0 0 0 / 25%) 0 0 5px 2px';\n }, []);\n var handleMouseLeave = useCallback(() => {\n if (!checked) {\n btn.current.style['zIndex'] = '0';\n btn.current.style['outline'] = 'initial';\n btn.current.style['boxShadow'] = 'initial';\n }\n }, [checked]);\n var rectStyle = checked ? {\n zIndex: 1,\n outline: '#fff solid 2px',\n boxShadow: 'rgb(0 0 0 / 25%) 0 0 5px 2px'\n } : {\n zIndex: 0\n };\n return /*#__PURE__*/_jsx(\"div\", _extends({\n ref: btn,\n title: title\n }, rectProps, {\n onClick: onClick,\n onMouseEnter: handleMouseEnter,\n onMouseLeave: handleMouseLeave,\n style: _extends({}, style, {\n marginRight: 0,\n marginBottom: 0,\n borderRadius: 0,\n boxSizing: 'border-box',\n height: 25,\n width: 25\n }, defalutStyle, rectStyle, rectProps == null ? void 0 : rectProps.style)\n }));\n}","import _objectDestructuringEmpty from \"@babel/runtime/helpers/objectDestructuringEmpty\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"placement\", \"className\", \"style\", \"color\", \"colors\", \"rectProps\", \"onChange\", \"rectRender\"];\nimport React, { Fragment } from 'react';\nimport { color as handleColor, validHex, hexToHsva, hsvaToHex } from '@uiw/color-convert';\nimport Swatch from '@uiw/react-color-swatch';\nimport Point from './Point';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar CORLER_HEX = ['#B80000', '#DB3E00', '#FCCB00', '#008B02', '#006B76', '#1273DE', '#004DCF', '#5300EB', '#EB9694', '#FAD0C3', '#FEF3BD', '#C1E1C5', '#BEDADC', '#C4DEF6', '#BED3F3', '#D4C4FB'];\nexport var GithubPlacement = /*#__PURE__*/function (GithubPlacement) {\n GithubPlacement[\"Left\"] = \"L\";\n GithubPlacement[\"LeftTop\"] = \"LT\";\n GithubPlacement[\"LeftBottom\"] = \"LB\";\n GithubPlacement[\"Right\"] = \"R\";\n GithubPlacement[\"RightTop\"] = \"RT\";\n GithubPlacement[\"RightBottom\"] = \"RB\";\n GithubPlacement[\"Top\"] = \"T\";\n GithubPlacement[\"TopRight\"] = \"TR\";\n GithubPlacement[\"TopLeft\"] = \"TL\";\n GithubPlacement[\"Bottom\"] = \"B\";\n GithubPlacement[\"BottomLeft\"] = \"BL\";\n GithubPlacement[\"BottomRight\"] = \"BR\";\n return GithubPlacement;\n}({});\nvar Github = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-github',\n placement = GithubPlacement.TopRight,\n className,\n style,\n color,\n colors = CORLER_HEX,\n rectProps = {},\n onChange,\n rectRender\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color;\n var hex = color ? hsvaToHex(hsva) : '';\n var handleChange = hsv => onChange && onChange(handleColor(hsv));\n var styleWrapper = _extends({\n '--github-border': '1px solid rgba(0, 0, 0, 0.2)',\n '--github-background-color': '#fff',\n '--github-box-shadow': 'rgb(0 0 0 / 15%) 0px 3px 12px',\n '--github-arrow-border-color': 'rgba(0, 0, 0, 0.15)',\n width: 200,\n borderRadius: 4,\n background: 'var(--github-background-color)',\n boxShadow: 'var(--github-box-shadow)',\n border: 'var(--github-border)',\n position: 'relative',\n padding: 5\n }, style);\n var rStyle = {\n borderStyle: 'solid',\n position: 'absolute'\n };\n var arrBrStyl = _extends({}, rStyle);\n var arrStyl = _extends({}, rStyle);\n if (/^T/.test(placement)) {\n arrBrStyl.borderWidth = '0 8px 8px';\n arrBrStyl.borderColor = 'transparent transparent var(--github-arrow-border-color)';\n arrStyl.borderWidth = '0 7px 7px';\n arrStyl.borderColor = 'transparent transparent var(--github-background-color)';\n }\n if (placement === GithubPlacement.TopRight) {\n arrBrStyl.top = -8;\n arrStyl.top = -7;\n }\n if (placement === GithubPlacement.Top) {\n arrBrStyl.top = -8;\n arrStyl.top = -7;\n }\n if (placement === GithubPlacement.TopLeft) {\n arrBrStyl.top = -8;\n arrStyl.top = -7;\n }\n if (/^B/.test(placement)) {\n arrBrStyl.borderWidth = '8px 8px 0';\n arrBrStyl.borderColor = 'var(--github-arrow-border-color) transparent transparent';\n arrStyl.borderWidth = '7px 7px 0';\n arrStyl.borderColor = 'var(--github-background-color) transparent transparent';\n if (placement === GithubPlacement.BottomRight) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n }\n if (placement === GithubPlacement.Bottom) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n }\n if (placement === GithubPlacement.BottomLeft) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n }\n }\n if (/^(B|T)/.test(placement)) {\n if (placement === GithubPlacement.Top || placement === GithubPlacement.Bottom) {\n arrBrStyl.left = '50%';\n arrBrStyl.marginLeft = -8;\n arrStyl.left = '50%';\n arrStyl.marginLeft = -7;\n }\n if (placement === GithubPlacement.TopRight || placement === GithubPlacement.BottomRight) {\n arrBrStyl.right = 10;\n arrStyl.right = 11;\n }\n if (placement === GithubPlacement.TopLeft || placement === GithubPlacement.BottomLeft) {\n arrBrStyl.left = 7;\n arrStyl.left = 8;\n }\n }\n if (/^L/.test(placement)) {\n arrBrStyl.borderWidth = '8px 8px 8px 0';\n arrBrStyl.borderColor = 'transparent var(--github-arrow-border-color) transparent transparent';\n arrStyl.borderWidth = '7px 7px 7px 0';\n arrStyl.borderColor = 'transparent var(--github-background-color) transparent transparent';\n arrBrStyl.left = -8;\n arrStyl.left = -7;\n }\n if (/^R/.test(placement)) {\n arrBrStyl.borderWidth = '8px 0 8px 8px';\n arrBrStyl.borderColor = 'transparent transparent transparent var(--github-arrow-border-color)';\n arrStyl.borderWidth = '7px 0 7px 7px';\n arrStyl.borderColor = 'transparent transparent transparent var(--github-background-color)';\n arrBrStyl.right = -8;\n arrStyl.right = -7;\n }\n if (/^(L|R)/.test(placement)) {\n if (placement === GithubPlacement.RightTop || placement === GithubPlacement.LeftTop) {\n arrBrStyl.top = 5;\n arrStyl.top = 6;\n }\n if (placement === GithubPlacement.Left || placement === GithubPlacement.Right) {\n arrBrStyl.top = '50%';\n arrStyl.top = '50%';\n arrBrStyl.marginTop = -8;\n arrStyl.marginTop = -7;\n }\n if (placement === GithubPlacement.LeftBottom || placement === GithubPlacement.RightBottom) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n arrBrStyl.marginTop = -21;\n arrStyl.marginTop = -20;\n }\n }\n var render = _ref => {\n var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));\n var handle = rectRender && rectRender(_extends({}, props));\n if (handle) return handle;\n return /*#__PURE__*/_jsx(Point, _extends({}, props, {\n rectProps: rectProps\n }));\n };\n return /*#__PURE__*/_jsx(Swatch, _extends({\n ref: ref,\n className: [prefixCls, className].filter(Boolean).join(' '),\n colors: colors,\n color: hex,\n rectRender: render\n }, other, {\n onChange: handleChange,\n style: styleWrapper,\n rectProps: {\n style: {\n marginRight: 0,\n marginBottom: 0,\n borderRadius: 0,\n height: 25,\n width: 25\n }\n },\n addonBefore: /*#__PURE__*/_jsxs(Fragment, {\n children: [/*#__PURE__*/_jsx(\"div\", {\n style: arrBrStyl\n }), /*#__PURE__*/_jsx(\"div\", {\n style: arrStyl\n })]\n })\n }));\n});\nGithub.displayName = 'Github';\nexport default Github;","function _objectDestructuringEmpty(t) {\n if (null == t) throw new TypeError(\"Cannot destructure \" + t);\n}\nexport { _objectDestructuringEmpty as default };"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","_excluded","Arrow","other","_objectWithoutPropertiesLoose","btn","useRef","handleMouseEnter","useCallback","current","handleMouseLeave","_extends","ref","marginLeft","cursor","transition","borderRadius","onMouseEnter","onMouseLeave","viewBox","width","height","display","d","fill","isSupportEyeDropper","window","EyeDropper","onClick","click","open","result","console","log","onPickColor","sRGBHex","ChromeInputType","Chrome","React","prefixCls","color","showEditableInput","showEyeDropper","showColorPreview","showHue","showAlpha","inputType","RGBA","rectProps","onChange","hsva","validHex","hexToHsva","h","s","l","handleChange","hsv","handleColor","type","setType","useState","labelStyle","paddingTop","inputStyle","textAlign","paddingBottom","wrapperStyle","flexDirection","padding","alphaStyle","background","hsvaToRgbaString","styleSize","pointerProps","fillProps","Github","colors","undefined","filter","Boolean","join","placement","GithubPlacement","TopLeft","addonAfter","Fragment","Saturation","newColor","alignItems","gap","hex","Alpha","radius","bgProps","innerProps","pointer","flex","Hue","hue","newHue","marginTop","newAlpha","userSelect","EditableInputRGBA","rProps","gProps","bProps","aProps","reColor","HEXA","EditableInput","label","value","hsvaToHexa","toLocaleUpperCase","hsvaToHex","_","test","HSLA","EditableInputHSLA","hProps","sProps","lProps","handleClick","rectRender","displayName","hsla","hsvaToHsla","evn","hslaToHsva","aPropsObj","Math","round","val","defalutStyle","marginRight","marginBottom","boxSizing","Point","_ref","title","checked","rectStyle","zIndex","outline","CORLER_HEX","TopRight","styleWrapper","position","rStyle","borderStyle","arrBrStyl","arrStyl","borderWidth","borderColor","top","Top","BottomRight","Bottom","BottomLeft","left","right","RightTop","LeftTop","Left","Right","LeftBottom","RightBottom","Swatch","_objectDestructuringEmpty","handle","addonBefore","t","TypeError"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/674.4256a8d0.chunk.js b/static/js/674.cf455a85.chunk.js similarity index 97% rename from static/js/674.4256a8d0.chunk.js rename to static/js/674.cf455a85.chunk.js index 264f2c128..5dc7f97f6 100644 --- a/static/js/674.4256a8d0.chunk.js +++ b/static/js/674.cf455a85.chunk.js @@ -1,4 +1,4 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[674],{256:t=>{function s(t){var s=new Error("Cannot find module '"+t+"'");throw s.code="MODULE_NOT_FOUND",s}s.keys=()=>[],s.resolve=s,s.id=256,t.exports=s},3623:(t,s,e)=>{"use strict";e.d(s,{A:()=>p});var r=e(7804),a=e(52),o=e(3235),i=e(9424);const l=o.Ay.div` +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[674],{256:t=>{function s(t){var s=new Error("Cannot find module '"+t+"'");throw s.code="MODULE_NOT_FOUND",s}s.keys=()=>[],s.resolve=s,s.id=256,t.exports=s},3623:(t,s,e)=>{"use strict";e.d(s,{A:()=>p});var r=e(7804),a=e(7584),o=e(3235),i=e(9424);const l=o.Ay.div` background-color: var(--color-theme-bg); box-shadow: 0 0 0 1px rgb(0 0 0 / 15%), @@ -42,4 +42,4 @@ padding-bottom: 12px; } `;class p extends r.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:s,data:e}=this.state.mdObj||{};return(0,i.jsxs)(n,{className:"wmde-markdown-var",children:[(0,i.jsxs)(l,{children:[this.editorUrl&&(0,i.jsx)(h,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"}),this.example&&(0,i.jsxs)(c,{children:[(0,i.jsx)("h3",{children:"Example"}),this.example]}),(0,i.jsx)(a.A,{data:{data:e,components:s,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,i.jsx)(h,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"})]}),(0,i.jsxs)(d,{children:[(0,i.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,i.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,i.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,i.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,i.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,i.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,i.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,i.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,i.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,i.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,i.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,i.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,i.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,i.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},3425:(t,s,e)=>{"use strict";e.r(s),e.d(s,{Component:()=>n});var r=e(7804),a=e(8088),o=e(3623),i=e(7980),l=e(9424);function h(){const{hsva:t,dispatch:s}=(0,r.useContext)(i.ob);return(0,l.jsx)("div",{style:{width:256},children:(0,l.jsx)(a.default,{hsva:t,onChange:e=>{s({hsva:{...t,...e.hsva}})}})})}class n extends o.A{constructor(){super(...arguments),this.editorUrl="/packages/color-editable-input-hsla/README.md",this.getMdStr=()=>e.e(547).then(e.bind(e,5547)),this.example=(0,l.jsx)(h,{})}}},8088:(t,s,e)=>{"use strict";e.r(s),e.d(s,{default:()=>c});var r=e(8102),a=e(9257),o=e(7804),i=e(6436),l=e(2945),h=e(9424),n=["prefixCls","hsva","hProps","sProps","lProps","aProps","className","onChange"],d=o.forwardRef(((t,s)=>{var{prefixCls:e="w-color-editable-input-hsla",hsva:o,hProps:d={},sProps:c={},lProps:p={},aProps:u={},className:g,onChange:x}=t,b=(0,a.A)(t,n),m=o?(0,l.hsvaToHsla)(o):{h:0,s:0,l:0,a:0},j=(t,s,e)=>{"number"===typeof t&&("h"===s&&(t<0&&(t=0),t>360&&(t=360),x&&x((0,l.color)((0,l.hslaToHsva)((0,r.A)({},m,{h:t}))))),"s"===s&&(t<0&&(t=0),t>100&&(t=100),x&&x((0,l.color)((0,l.hslaToHsva)((0,r.A)({},m,{s:t}))))),"l"===s&&(t<0&&(t=0),t>100&&(t=100),x&&x((0,l.color)((0,l.hslaToHsva)((0,r.A)({},m,{l:t}))))),"a"===s&&(t<0&&(t=0),t>1&&(t=1),x&&x((0,l.color)((0,l.hslaToHsva)((0,r.A)({},m,{a:t}))))))},v=0!=u&&(0,r.A)({label:"A",value:Math.round(100*m.a)/100},u,{onChange:(t,s)=>j(s,"a")});return(0,h.jsx)(i.default,(0,r.A)({ref:s,hsva:o,rProps:(0,r.A)({label:"H",value:Math.round(m.h)},d,{onChange:(t,s)=>j(s,"h")}),gProps:(0,r.A)({label:"S",value:Math.round(m.s)+"%"},c,{onChange:(t,s)=>j(s,"s")}),bProps:(0,r.A)({label:"L",value:Math.round(m.l)+"%"},p,{onChange:(t,s)=>j(s,"l")}),aProps:v,className:[e,g||""].filter(Boolean).join(" ")},b))}));d.displayName="EditableInputHSLA";const c=d}}]); -//# sourceMappingURL=674.4256a8d0.chunk.js.map \ No newline at end of file +//# sourceMappingURL=674.cf455a85.chunk.js.map \ No newline at end of file diff --git a/static/js/674.4256a8d0.chunk.js.map b/static/js/674.cf455a85.chunk.js.map similarity index 99% rename from static/js/674.4256a8d0.chunk.js.map rename to static/js/674.cf455a85.chunk.js.map index 0813780aa..a8dc6b3dc 100644 --- a/static/js/674.4256a8d0.chunk.js.map +++ b/static/js/674.cf455a85.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/674.4256a8d0.ch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../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/editable-input-hsla/index.tsx","../../packages/color-editable-input-hsla/esm/index.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport EditableInputHSLA from '@uiw/react-color-editable-input-hsla';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-editable-input-hsla/README.md';\n getMdStr = () => import('@uiw/react-color-editable-input-hsla/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"hsva\", \"hProps\", \"sProps\", \"lProps\", \"aProps\", \"className\", \"onChange\"];\nimport React from 'react';\nimport EditableInputRGBA from '@uiw/react-color-editable-input-rgba';\nimport { color as handleColor, hsvaToHsla, hslaToHsva } from '@uiw/color-convert';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar EditableInputHSLA = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-editable-input-hsla',\n hsva,\n hProps = {},\n sProps = {},\n lProps = {},\n aProps = {},\n className,\n onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsla = hsva ? hsvaToHsla(hsva) : {\n h: 0,\n s: 0,\n l: 0,\n a: 0\n };\n var handleChange = (value, type, evn) => {\n if (typeof value === 'number') {\n if (type === 'h') {\n if (value < 0) value = 0;\n if (value > 360) value = 360;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n h: value\n }))));\n }\n if (type === 's') {\n if (value < 0) value = 0;\n if (value > 100) value = 100;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n s: value\n }))));\n }\n if (type === 'l') {\n if (value < 0) value = 0;\n if (value > 100) value = 100;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n l: value\n }))));\n }\n if (type === 'a') {\n if (value < 0) value = 0;\n if (value > 1) value = 1;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n a: value\n }))));\n }\n }\n };\n var aPropsObj = aProps == false ? false : _extends({\n label: 'A',\n value: Math.round(hsla.a * 100) / 100\n }, aProps, {\n onChange: (evn, val) => handleChange(val, 'a', evn)\n });\n return /*#__PURE__*/_jsx(EditableInputRGBA, _extends({\n ref: ref,\n hsva: hsva,\n rProps: _extends({\n label: 'H',\n value: Math.round(hsla.h)\n }, hProps, {\n onChange: (evn, val) => handleChange(val, 'h', evn)\n }),\n gProps: _extends({\n label: 'S',\n value: Math.round(hsla.s) + \"%\"\n }, sProps, {\n onChange: (evn, val) => handleChange(val, 's', evn)\n }),\n bProps: _extends({\n label: 'L',\n value: Math.round(hsla.l) + \"%\"\n }, lProps, {\n onChange: (evn, val) => handleChange(val, 'l', evn)\n }),\n aProps: aPropsObj,\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other));\n});\nEditableInputHSLA.displayName = 'EditableInputHSLA';\nexport default EditableInputHSLA;"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","EditableInputHSLA","onChange","color","arguments","_excluded","React","ref","prefixCls","hProps","sProps","lProps","aProps","other","_objectWithoutPropertiesLoose","hsla","hsvaToHsla","h","s","l","handleChange","value","type","evn","handleColor","hslaToHsva","_extends","aPropsObj","label","Math","round","val","EditableInputRGBA","rProps","gProps","bProps","filter","Boolean","join","displayName"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/674.cf455a85.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,2FCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,GAAG;;;;;;;;;;EAkB5BC,EAAYF,EAAAA,GAAOG,CAAC;;;;;;;;;;;;;EAepBC,EAAUJ,EAAAA,GAAOC,GAAG;;EAIpBI,EAASL,EAAAA,GAAOM,MAAM;;;;;;;;;;EAYtBC,EAAUP,EAAAA,GAAOC,GAAG;;;;;;;;EAUX,MAAMO,UAAiBC,EAAAA,UACpCC,WAAAA,CAAYC,GACVC,MAAMD,GAAO,KAKfE,eAAS,OACTC,cAAQ,OACRC,aAAO,EANLC,KAAKC,MAAQ,CACXC,MAAO,GAEX,CAIAC,iBAAAA,GACMH,KAAKF,UACPE,KAAKF,WAAWM,MAAMC,IACpBL,KAAKM,SAAS,CACZJ,MAAOG,EAAIE,QAAQC,OACnBC,MAAOJ,EAAIE,SACX,GAGR,CACAG,MAAAA,GACE,MAAM,OAAEF,EAAM,WAAEG,EAAU,KAAEC,GAAUZ,KAAKC,MAAMQ,OAAS,CAAC,EAC3D,OACEI,EAAAA,EAAAA,MAACzB,EAAO,CAAC0B,UAAU,oBAAmBC,SAAA,EACpCF,EAAAA,EAAAA,MAAC9B,EAAe,CAAAgC,SAAA,CACbf,KAAKH,YACJmB,EAAAA,EAAAA,KAAC9B,EAAS,CAAC+B,OAAO,SAASC,IAAI,aAAaC,KAAM,iDAAi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CACTT,SAAUA,CAACqB,EAAKQ,IAAQX,EAAaW,EAAK,OAE5CnB,OAAQe,EACR3C,UAAW,CAACwB,EAAWxB,GAAa,IAAIoD,OAAOC,SAASC,KAAK,MAC5DzB,GAAO,IAEZZ,EAAkBsC,YAAc,oBAChC,S","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/editable-input-hsla/index.tsx","../../packages/color-editable-input-hsla/esm/index.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport EditableInputHSLA from '@uiw/react-color-editable-input-hsla';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-editable-input-hsla/README.md';\n getMdStr = () => import('@uiw/react-color-editable-input-hsla/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"hsva\", \"hProps\", \"sProps\", \"lProps\", \"aProps\", \"className\", \"onChange\"];\nimport React from 'react';\nimport EditableInputRGBA from '@uiw/react-color-editable-input-rgba';\nimport { color as handleColor, hsvaToHsla, hslaToHsva } from '@uiw/color-convert';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar EditableInputHSLA = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-editable-input-hsla',\n hsva,\n hProps = {},\n sProps = {},\n lProps = {},\n aProps = {},\n className,\n onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsla = hsva ? hsvaToHsla(hsva) : {\n h: 0,\n s: 0,\n l: 0,\n a: 0\n };\n var handleChange = (value, type, evn) => {\n if (typeof value === 'number') {\n if (type === 'h') {\n if (value < 0) value = 0;\n if (value > 360) value = 360;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n h: value\n }))));\n }\n if (type === 's') {\n if (value < 0) value = 0;\n if (value > 100) value = 100;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n s: value\n }))));\n }\n if (type === 'l') {\n if (value < 0) value = 0;\n if (value > 100) value = 100;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n l: value\n }))));\n }\n if (type === 'a') {\n if (value < 0) value = 0;\n if (value > 1) value = 1;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n a: value\n }))));\n }\n }\n };\n var aPropsObj = aProps == false ? false : _extends({\n label: 'A',\n value: Math.round(hsla.a * 100) / 100\n }, aProps, {\n onChange: (evn, val) => handleChange(val, 'a', evn)\n });\n return /*#__PURE__*/_jsx(EditableInputRGBA, _extends({\n ref: ref,\n hsva: hsva,\n rProps: _extends({\n label: 'H',\n value: Math.round(hsla.h)\n }, hProps, {\n onChange: (evn, val) => handleChange(val, 'h', evn)\n }),\n gProps: _extends({\n label: 'S',\n value: Math.round(hsla.s) + \"%\"\n }, sProps, {\n onChange: (evn, val) => handleChange(val, 's', evn)\n }),\n bProps: _extends({\n label: 'L',\n value: Math.round(hsla.l) + \"%\"\n }, lProps, {\n onChange: (evn, val) => handleChange(val, 'l', evn)\n }),\n aProps: aPropsObj,\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other));\n});\nEditableInputHSLA.displayName = 'EditableInputHSLA';\nexport default EditableInputHSLA;"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","EditableInputHSLA","onChange","color","arguments","_excluded","React","ref","prefixCls","hProps","sProps","lProps","aProps","other","_objectWithoutPropertiesLoose","hsla","hsvaToHsla","h","s","l","handleChange","value","type","evn","handleColor","hslaToHsva","_extends","aPropsObj","label","Math","round","val","EditableInputRGBA","rProps","gProps","bProps","filter","Boolean","join","displayName"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/692.584ca748.chunk.js b/static/js/692.584ca748.chunk.js new file mode 100644 index 000000000..e688c9884 --- /dev/null +++ b/static/js/692.584ca748.chunk.js @@ -0,0 +1,3 @@ +/*! For license information please see 692.584ca748.chunk.js.LICENSE.txt */ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[692],{8474:function(e){e.exports=function(){"use strict";function e(e,t){if("undefined"===typeof document)return;const r=document.createElement("textarea");r.value=e,r.setAttribute("readonly",""),r.style={position:"absolute",left:"-9999px"},document.body.appendChild(r);const a=document.getSelection().rangeCount>0&&document.getSelection().getRangeAt(0);r.select();let n=!1;try{n=!!document.execCommand("copy")}catch(s){n=!1}document.body.removeChild(r),a&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(a)),t&&t(n)}return e}()},7584:(e,t,r)=>{"use strict";r.d(t,{A:()=>bu});var a={};r.r(a),r.d(a,{attentionMarkers:()=>ko,contentInitial:()=>wo,disable:()=>Po,document:()=>To,flow:()=>Ao,flowInitial:()=>So,insideSpan:()=>Co,string:()=>jo,text:()=>_o});var n=r(8102),s=r(9257);var i=r(7804),o=r(9424),d={},c=(0,i.createContext)({}),l=(e,t)=>(0,n.A)({},e,t),u=e=>{var{children:t,value:r}=e,[a,s]=(0,i.useReducer)(l,(0,n.A)({},d,r));return(0,o.jsx)(c.Provider,{value:(0,n.A)({},a,{dispatch:s}),children:t})},p=["tagName","className","children"],f=i.forwardRef(((e,t)=>{var{tagName:r="div",className:a,children:o}=e,d=(0,s.A)(e,p),l=[S+"-code",a].filter(Boolean).join(" ").trim();if((0,i.useContext)(c).collapse)return null;var u=e.href&&"string"===typeof r?"a":r,f=(0,n.A)({},d,{className:l,ref:t});return i.createElement(u,f,o)}));f.displayName="uiw.CodeLayoutCode";var g=["className","children"],m=i.forwardRef(((e,t)=>{var{className:r,children:a}=e,i=(0,s.A)(e,g),d=[S+"-preview",r].filter(Boolean).join(" ").trim();return(0,o.jsx)("div",(0,n.A)({},i,{className:d,ref:t,children:a}))}));m.displayName="uiw.Preview";var h=r(8474),y=r.n(h),b=e=>(0,o.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)("path",{d:"M8.64 5.23a1 1 0 0 0-1.41.13l-5 6a1 1 0 0 0 0 1.27l4.83 6a1 1 0 0 0 .78.37 1 1 0 0 0 .78-1.63L4.29 12l4.48-5.36a1 1 0 0 0-.13-1.41zm13.14 6.14-4.78-6a1 1 0 0 0-1.41-.15 1 1 0 0 0-.15 1.41L19.71 12l-4.48 5.37a1 1 0 0 0 .13 1.41A1 1 0 0 0 16 19a1 1 0 0 0 .77-.36l5-6a1 1 0 0 0 .01-1.27z","data-name":"code"})}),v=e=>(0,o.jsxs)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:[(0,o.jsx)("path",{d:"M18 21h-6a3 3 0 0 1-3-3v-6a3 3 0 0 1 3-3h6a3 3 0 0 1 3 3v6a3 3 0 0 1-3 3zm-6-10a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1z"}),(0,o.jsx)("path",{d:"M9.73 15H5.67A2.68 2.68 0 0 1 3 12.33V5.67A2.68 2.68 0 0 1 5.67 3h6.66A2.68 2.68 0 0 1 15 5.67V9.4h-2V5.67a.67.67 0 0 0-.67-.67H5.67a.67.67 0 0 0-.67.67v6.66a.67.67 0 0 0 .67.67h4.06z"})]}),x=e=>(0,o.jsxs)("svg",{viewBox:"0 0 24 24",fill:"green",children:[(0,o.jsx)("path",{d:"M9.71 11.29a1 1 0 0 0-1.42 1.42l3 3A1 1 0 0 0 12 16a1 1 0 0 0 .72-.34l7-8a1 1 0 0 0-1.5-1.32L12 13.54z"}),(0,o.jsx)("path",{d:"M21 11a1 1 0 0 0-1 1 8 8 0 0 1-8 8A8 8 0 0 1 6.33 6.36 7.93 7.93 0 0 1 12 4a8.79 8.79 0 0 1 1.9.22 1 1 0 1 0 .47-1.94A10.54 10.54 0 0 0 12 2a10 10 0 0 0-7 17.09A9.93 9.93 0 0 0 12 22a10 10 0 0 0 10-10 1 1 0 0 0-1-1z"})]}),R=e=>{var[t,r]=(0,i.useState)(!1);return(0,o.jsx)("button",{onClick:()=>{r(!0),y()(e.text||"",(()=>{var e=setTimeout((()=>{r(!1),clearTimeout(e)}),2e3)}))},children:t?(0,o.jsx)(x,{}):(0,o.jsx)(v,{})})},E=["className","children","extra","text","copied","collapse","visibleButton","visible"],T=i.forwardRef(((e,t)=>{var{className:r,children:a,extra:d,text:l="",copied:u=!0,collapse:p=!0,visibleButton:f=!0,visible:g=!0}=e,m=(0,s.A)(e,E),h=(0,i.useContext)(c),y=[S+"-toolbar",r].filter(Boolean).join(" ").trim();if((0,i.useEffect)((()=>h.dispatch({collapse:p})),[p]),!g)return null;return(0,o.jsxs)("div",(0,n.A)({className:y},m,{ref:t,children:[(0,o.jsx)("div",{className:S+"-title",children:a}),(0,o.jsxs)("div",{className:S+"-extra",children:[d,u&&(0,o.jsx)(R,{text:l}),f&&(0,o.jsx)("button",{onClick:()=>h.dispatch({collapse:!h.collapse}),children:(0,o.jsx)(b,{})})]})]}))}));T.displayName="uiw.Toolbar";var w=["children","prefixCls","className","bordered","disableCheckered"],S="w-rcpl",A=i.forwardRef(((e,t)=>{var{children:r,prefixCls:a=S,className:d,bordered:c=!0,disableCheckered:l}=e,u=(0,s.A)(e,w),p=[a,d,c?"w-bordered":null,l?"w-disable-checkered":null].filter(Boolean).join(" ").trim();return(0,o.jsx)("div",(0,n.A)({ref:t},u,{className:p,children:i.Children.map(r,((e,t)=>i.isValidElement(e)?i.cloneElement(e,(0,n.A)({},e.props,{key:t})):e))}))})),j=i.forwardRef(((e,t)=>(0,o.jsx)(u,{value:{collapse:!1},children:(0,o.jsx)(A,(0,n.A)({},e,{ref:t}))})));j.Preview=m,j.Toolbar=T,j.Code=f;const _=j;r(3521),r(3132),r(8108),r(9050);var C=e=>{for(var t,r=/([^?=&]+)=([^&]*)/g,a={};t=r.exec(e);)a[t[1]]=t[2];return a},k=function(e){void 0===e&&(e="");var[t=""]=/mdx:(.[\w|:]+)/i.exec(e)||[];return t.replace(/^mdx:preview:?/,"")},P=function(e){return void 0===e&&(e=""),e&&e.includes("mdx:preview")};const D=function(e){if(null===e||void 0===e)return N;if("function"===typeof e)return I(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let r=-1;for(;++r":"")+")"})}return l;function l(){let c,l,u,p=F;if((!t||s(n,o,d[d.length-1]||void 0))&&(p=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[B,e];return null===e||void 0===e?F:[e]}(r(n,d)),p[0]===L))return p;if("children"in n&&n.children){const t=n;if(t.children&&p[0]!==M)for(l=(a?t.children.length:-1)+i,u=d.concat(t);l>-1&&l0&&0===i.length)return}const o={};let d;for(d in t)z.call(t,d)&&(o[d]="children"===d?i:t[d]);return o}(e)}var K=r(9386),Y=r(1689),X=r(2564);function J(){J=function(e,t){return new r(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function r(e,a,n){var s=new RegExp(e,a);return t.set(s,n||t.get(e)),Q(s,r.prototype)}function a(e,r){var a=t.get(r);return Object.keys(a).reduce((function(t,r){var n=a[r];if("number"==typeof n)t[r]=e[n];else{for(var s=0;void 0===e[n[s]]&&s+1]+)>/g,(function(e,t){var r=s[t];return"$"+(Array.isArray(r)?r.join("$"):r)})))}if("function"==typeof n){var i=this;return e[Symbol.replace].call(this,r,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(a(e,i)),n.apply(this,e)}))}return e[Symbol.replace].call(this,r,n)},J.apply(this,arguments)}function Q(e,t){return Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Q(e,t)}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[a++]}}}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 ee=function(e){return function(t){return void 0===t&&(t={}),function(e,t){if(t&&!e.registered(t))throw new Error('The default language "'+t+'" is not registered with refractor.')}(e,t.defaultLanguage),function(e){H(e,"element",r)};function r(r,a,n){var s,i;if(n&&"pre"===n.tagName&&"code"===r.tagName){var o=(null==r||null==(s=r.data)?void 0:s.meta)||(null==r||null==(i=r.properties)?void 0:i.metastring)||"";r.properties.className?"boolean"==typeof r.properties.className?r.properties.className=[]:Array.isArray(r.properties.className)||(r.properties.className=[r.properties.className]):r.properties.className=[];var d,c,l=function(e){for(var t,r=Z(e.properties.className);!(t=r()).done;){var a=t.value;if("language-"===a.slice(0,9))return a.slice(9).toLowerCase()}return null}(r);if(!l&&t.defaultLanguage&&r.properties.className.push("language-"+(l=t.defaultLanguage)),r.properties.className.push("code-highlight"),l)try{var u,p;p=null!=(u=l)&&u.includes("diff-")?l.split("-")[1]:l,d=e.highlight(G(r),p),n.properties.className=(n.properties.className||[]).concat("language-"+p)}catch(x){if(!t.ignoreMissing||!/Unknown language/.test(x.message))throw x;d=r}else d=r;d.children=(c=1,function e(t){return t.reduce((function(t,r){if("text"===r.type){var a=r.value,n=(a.match(/\n/g)||"").length;if(0===n)r.position={start:{line:c,column:1},end:{line:c,column:1}},t.push(r);else for(var s,i=a.split("\n"),o=Z(i.entries());!(s=o()).done;){var d=s.value,l=d[0],u=d[1];t.push({type:"text",value:l===i.length-1?u:u+"\n",position:{start:{line:c+l,column:1},end:{line:c+l,column:1}}})}return c+=n,t}if(Object.prototype.hasOwnProperty.call(r,"children")){var p=c;return r.children=e(r.children),t.push(r),r.position={start:{line:p,column:1},end:{line:c,column:1}},t}return t.push(r),t}),[])})(d.children),d.position=d.children.length>0?{start:{line:d.children[0].position.start.line,column:0},end:{line:d.children[d.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var f,g=function(e){var t=/{([\d,-]+)}/,r=e.split(",").map((function(e){return e.trim()})).join();if(t.test(r)){var a=t.exec(r)[1],n=K(a);return function(e){return n.includes(e+1)}}return function(){return!1}}(o),m=function(e){var t=J(/showLineNumbers=(\d+)/i,{lines:1});if(t.test(e)){var r=t.exec(e);return Number(r.groups.lines)}return 1}(o),h=function(e){for(var t=new Array(e),r=0;r=n+1}));s.children=i.children,!o.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||y.some((function(e){return o.toLowerCase().includes(e)}))||(s.properties.line=[(n+m).toString()],s.properties.className.push("line-number")),g(n)&&s.properties.className.push("highlight-line"),("diff"===l||null!=(e=l)&&e.includes("diff-"))&&"-"===G(s).substring(0,1)?s.properties.className.push("deleted"):("diff"===l||null!=(r=l)&&r.includes("diff-"))&&"+"===G(s).substring(0,1)&&s.properties.className.push("inserted")},v=Z(h.entries());!(f=v()).done;)b();h.length>0&&""===G(h[h.length-1]).trim()&&h.pop(),r.children=h}}}},te=(ee(Y.L),ee(X.L)),re=r(5294),ae={},ne={};function se(e,t){for(var r=t,a=0;a","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),Se=Ee(we,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),Ae=Ee(Se,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has"]}}}),je={css1:Te,css2:we,css3:Se,"selectors-3":Se,"selectors-4":Ae,latest:Ae,progressive:Ee(Ae,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}})};function _e(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||"-"===e||"_"===e||"\\"===e||e>="\xa0"}function Ce(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"-"===e||"_"===e||e>="\xa0"}function ke(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var Pe={" ":!0,"\t":!0,"\n":!0,"\r":!0,"\f":!0},De={'"':!0,"'":!0},Ie={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0};var Ne="css-selector-parser parse error: ";var Oe=function(){return Oe=Object.assign||function(e){for(var t,r=1,a=arguments.length;r0,T=i.pseudoClasses?[!0,i.pseudoClasses.definitions?ue(i.pseudoClasses.definitions):de,"accept"===i.pseudoClasses.unknown]:[!1,de,!1],w=T[0],S=T[1],A=T[2],j=i.pseudoElements?[!0,"singleColon"===i.pseudoElements.notation||"both"===i.pseudoElements.notation,!i.pseudoElements.notation||"doubleColon"===i.pseudoElements.notation||"both"===i.pseudoElements.notation,i.pseudoElements.definitions?ue(Array.isArray(i.pseudoElements.definitions)?{NoArgument:i.pseudoElements.definitions}:i.pseudoElements.definitions):de,"accept"===i.pseudoElements.unknown]:[!1,!1,!1,de,!1],_=j[0],C=j[1],k=j[2],P=j[3],D=j[4],I="",N=I.length,O=0,F="",B=function(e){return F===e},L=function(){return B("*")||_e(F)},M=function(e){O=e,F=I.charAt(O)},U=function(){O++,F=I.charAt(O)},H=function(){var e=F;return O++,F=I.charAt(O),e};function G(e){var t=Math.min(N-1,O),r=new Error("".concat(Ne).concat(e," Pos: ").concat(t,"."));throw r.position=t,r.name="ParserError",r}function q(e,t){if(!e)return G(t)}var W=function(){q(O=N},V=function(e){q(O=2&&G("Identifiers cannot start with two hyphens with strict mode on."),Ie[F]&&G("Identifiers cannot start with hyphens followed by digits.");O0)return(t.commaSeparated?ze.A:Ke.A)(e)}}(t.properties[a.property],a);if(!e.value)return void 0!==n;e.value.type;let s=e.value.value;if("i"===e.caseSensitivityModifier&&(s=s.toLowerCase(),n&&(n=n.toLowerCase())),void 0!==n)switch(e.operator){case"=":return s===n;case"$=":return s===n.slice(-s.length);case"*=":return n.includes(s);case"^=":return s===n.slice(0,s.length);case"|=":return s===n||s===n.slice(0,s.length)&&"-"===n.charAt(s.length);case"~=":return s===n||Ke.q(n).includes(s)}return!1}const Xe=[];function Je(e,t){return(t.properties.className||Xe).includes(e.name)}function Qe(e,t){return t.properties.id===e.name}function $e(e,t){return e.name===t.tagName}function Ze(e,t){return function(r,a){let n=tt(r,"tag");const s=tt(null===a||void 0===a?"*":a,"range"),i=[];let o=-1;for(;++oe<=r;if(0===t)return e=>e===r;if(1===t)return r<0?lt.trueFunc:e=>e>=r;const a=Math.abs(t),n=(r%a+a)%a;return t>1?e=>e>=r&&e%a===n:e=>e<=r&&e%a===n}(function(e){if("even"===(e=e.trim().toLowerCase()))return[2,0];if("odd"===e)return[2,1];let t=0,r=0,a=s(),n=i();if(t=dt&&e.charCodeAt(t)<=ct;)a=10*a+(e.charCodeAt(t)-dt),t++;return t===r?null:a}function o(){for(;t1?s-1:0),o=1;o0},is:vt,lang:function(e,t,r,a,n){return e.argument,e.argument.type,""!==n.language&&void 0!==n.language&&et(n.language,(0,ze.q)(e.argument.value)).length>0},"last-child":function(e,t,r,a,n){return ht(n,e),Boolean(n.elementCount&&n.elementIndex===n.elementCount-1)},"last-of-type":function(e,t,r,a,n){return ht(n,e),"number"===typeof n.typeIndex&&"number"===typeof n.typeCount&&n.typeIndex===n.typeCount-1},not:function(e,t,r,a,n){return!vt(e,t,r,a,n)},"nth-child":function(e,t,r,a,n){const s=bt(e);return ht(n,e),"number"===typeof n.elementIndex&&s(n.elementIndex)},"nth-last-child":function(e,t,r,a,n){const s=bt(e);return ht(n,e),Boolean("number"===typeof n.elementCount&&"number"===typeof n.elementIndex&&s(n.elementCount-n.elementIndex-1))},"nth-last-of-type":function(e,t,r,a,n){const s=bt(e);return ht(n,e),"number"===typeof n.typeCount&&"number"===typeof n.typeIndex&&s(n.typeCount-1-n.typeIndex)},"nth-of-type":function(e,t,r,a,n){const s=bt(e);return ht(n,e),"number"===typeof n.typeIndex&&s(n.typeIndex)},"only-child":function(e,t,r,a,n){return ht(n,e),1===n.elementCount},"only-of-type":function(e,t,r,a,n){return ht(n,e),1===n.typeCount},optional:function(e,t){return!Rt(e,t)},"read-only":function(e,t,r,a,n){return!xt(e,t,r,a,n)},"read-write":xt,required:Rt,root:function(e,t,r,a,n){return Boolean((!a||"root"===a.type)&&n.schema&&("html"===n.schema.space||"svg"===n.schema.space)&&("html"===t.tagName||"svg"===t.tagName))},scope:function(e,t,r,a,n){return n.scopeElements.includes(t)}},invalid:function(){},unknown:function(e){throw new Error("Unknown pseudo-selector `"+e.name+"`")}});function ht(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function yt(e,t){return("button"===t.tagName||"input"===t.tagName||"select"===t.tagName||"textarea"===t.tagName||"optgroup"===t.tagName||"option"===t.tagName||"menuitem"===t.tagName||"fieldset"===t.tagName)&&at(t,"disabled")}function bt(e){let t=e._cachedFn;if(!t){const r=e.argument;if("Formula"!==r.type)throw new Error("Expected `nth` formula, such as `even` or `2n+1` (`of` is not yet supported)");t=gt(r.a+"n+"+r.b),e._cachedFn=t}return t}function vt(e,t,r,a,n){e.argument,e.argument.type;const s={...n,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return St(s,t),s.results[0]===t}function xt(e,t,r,a,n){return"input"===t.tagName||"textarea"===t.tagName?!at(t,"readOnly")&&!at(t,"disabled"):Boolean(n.editableOrEditingHost)}function Rt(e,t){return("input"===t.tagName||"textarea"===t.tagName||"select"===t.tagName)&&at(t,"required")}function Et(e,t){const r=e.children;let a=-1;for(;++a0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:wt}function _t(e,t){if("element"===t.type){const r=t.tagName.toUpperCase(),a=(e.types.get(r)||0)+1;e.count++,e.types.set(r,a)}}function Ct(e,t,r,a,n,s){let i={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const o=function(e,t){const r=e.schema,a=e.language,n=e.direction,s=e.editableOrEditingHost;let i;if("element"===t.type){const a=t.properties.xmlLang||t.properties.lang,n=t.properties.type||"text",s=We(t);null!==a&&void 0!==a&&(e.language=String(a)),r&&"html"===r.space?("true"===t.properties.contentEditable&&(e.editableOrEditingHost=!0),"svg"===t.tagName&&(e.schema=re.JW),"rtl"===s?i=s:"ltr"===s||"auto"!==s&&"html"===t.tagName||"auto"!==s&&"input"===t.tagName&&"tel"===n?i="ltr":"auto"!==s&&"bdi"!==t.tagName||("textarea"===t.tagName?i=qe(G(t)):"input"!==t.tagName||"email"!==n&&"search"!==n&&"tel"!==n&&"text"!==n?H(t,(function(e){return"text"===e.type?(i=qe(e.value),i?L:void 0):e===t||"element"!==e.type||"bdi"!==e.tagName&&"script"!==e.tagName&&"style"!==e.tagName&&"textare"!==e.tagName&&!We(e)?void 0:M})):i=t.properties.value?qe(String(t.properties.value)):"ltr"),i&&(e.direction=i)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return function(){e.schema=r,e.language=a,e.direction=n,e.editableOrEditingHost=s}}(e,r);if("element"===r.type){let o=e.rootQuery.rules;n&&n!==s&&(o=e.rootQuery.rules.filter((e=>void 0===e.combinator||">"===e.combinator&&n===s))),i=function(e,t,r,a,n){const s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};let i=-1;for(;++i"===t.combinator?"directChild":"descendant",t):(e.found=!0,e.results.includes(r)||e.results.push(r))}void 0===o.combinator?At(s,"descendant",o):"~"===o.combinator&&At(s,"generalSibling",o)}return s}(e,jt(t,o),r,a,n)}return!("children"in r)||e.shallow||e.one&&e.found||function(e,t,r,a){const n=jt(t.descendant,t.directChild);let s,i=-1;const o={count:0,types:new Map},d={count:0,types:new Map};for(;++i1&&void 0!==arguments[1]?arguments[1]:"";return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{"text"===t.type?e+=t.value:"element"===t.type&&t.children&&Array.isArray(t.children)&&(e+=Pt(t.children))})),e},Dt=e=>{const{selector:t,rewrite:r}=e||{};return e=>{if(r&&"function"===typeof r)if(t&&"string"===typeof t){const a=function(e,t,r){const a=kt(e,t,r);return St(a,t||void 0),a.results}(t,e);a&&a.length>0&&H(e,a,((e,t,a)=>{r(e,t,a)}))}else H(e,((e,t,a)=>{r(e,t,a)}))}},It=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,a=arguments.length>1?arguments[1]:void 0;for(;a/,"$2")||""))return;if(r){if(It(e,a,"pre",r))return;return t.value=(t.value||"").replace(/^(\n|\s)+/,""),t}return t.value=(t.value||"").replace(/^(\n|\s)+/,""),t}}},Nt=e=>{let{value:t=""}=e;const r=function(){return((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").match(/([^?=&]+)(=([^&]*))/g)||[]).reduce(((e,t)=>(e[t.slice(0,t.indexOf("="))]=t.slice(t.indexOf("=")+1),e)),{})}(t.replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(r).forEach((e=>{"true"===r[e]&&(r[e]=!0),"false"===r[e]&&(r[e]=!1),"string"!==typeof r[e]||/^0/.test(r[e])||isNaN(+r[e])||(r[e]=+r[e])})),r},Ot=(e,t,r)=>"string"===r?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:"attr"===r?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},Ft=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{properties:t="data",codeBlockParames:r=!0}=e;return e=>{H(e,"element",((e,a,n)=>{if(r&&"pre"===e.tagName&&e&&Array.isArray(e.children)&&n&&Array.isArray(n.children)&&n.children.length>1){const r=e.children[0];if(r&&"code"===r.tagName&&"number"===typeof a){const s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;for(;t>-1;){if(t--,!e[t])return;if(e[t]&&e[t].value&&""!==e[t].value.replace(/(\n|\s)/g,"")||"text"!==e[t].type){if(!/^rehype:/.test(e[t].value)||"comment"!==e[t].type)return;return e[t]}}}(n.children,a);if(s){const a=Nt(s);Object.keys(a).length>0&&(e.properties={...e.properties,"data-type":"rehyp"},r.properties=Ot(r.properties,a,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(e.tagName)&&n&&Array.isArray(n.children)&&"number"===typeof a){const s=It(n.children,a,"",r);if(s){const r=Nt(s);Object.keys(r).length>0&&(e.properties=Ot(e.properties,r,t))}}}))}},Bt="object"===typeof self?self:globalThis,Lt=e=>((e,t)=>{const r=(t,r)=>(e.set(r,t),t),a=n=>{if(e.has(n))return e.get(n);const[s,i]=t[n];switch(s){case 0:case-1:return r(i,n);case 1:{const e=r([],n);for(const t of i)e.push(a(t));return e}case 2:{const e=r({},n);for(const[t,r]of i)e[a(t)]=a(r);return e}case 3:return r(new Date(i),n);case 4:{const{source:e,flags:t}=i;return r(new RegExp(e,t),n)}case 5:{const e=r(new Map,n);for(const[t,r]of i)e.set(a(t),a(r));return e}case 6:{const e=r(new Set,n);for(const t of i)e.add(a(t));return e}case 7:{const{name:e,message:t}=i;return r(new Bt[e](t),n)}case 8:return r(BigInt(i),n);case"BigInt":return r(Object(BigInt(i)),n)}return r(new Bt[s](i),n)};return a})(new Map,e)(0),Mt="",{toString:Ut}={},{keys:Ht}=Object,Gt=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const r=Ut.call(e).slice(8,-1);switch(r){case"Array":return[1,Mt];case"Object":return[2,Mt];case"Date":return[3,Mt];case"RegExp":return[4,Mt];case"Map":return[5,Mt];case"Set":return[6,Mt]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},qt=e=>{let[t,r]=e;return 0===t&&("function"===r||"symbol"===r)},Wt=function(e){let{json:t,lossy:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=[];return((e,t,r,a)=>{const n=(e,t)=>{const n=a.push(e)-1;return r.set(t,n),n},s=a=>{if(r.has(a))return r.get(a);let[i,o]=Gt(a);switch(i){case 0:{let t=a;switch(o){case"bigint":i=8,t=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+o);t=null;break;case"undefined":return n([-1],a)}return n([i,t],a)}case 1:{if(o)return n([o,[...a]],a);const e=[],t=n([i,e],a);for(const r of a)e.push(s(r));return t}case 2:{if(o)switch(o){case"BigInt":return n([o,a.toString()],a);case"Boolean":case"Number":case"String":return n([o,a.valueOf()],a)}if(t&&"toJSON"in a)return s(a.toJSON());const r=[],d=n([i,r],a);for(const t of Ht(a))!e&&qt(Gt(a[t]))||r.push([s(t),s(a[t])]);return d}case 3:return n([i,a.toISOString()],a);case 4:{const{source:e,flags:t}=a;return n([i,{source:e,flags:t}],a)}case 5:{const t=[],r=n([i,t],a);for(const[n,i]of a)(e||!qt(Gt(n))&&!qt(Gt(i)))&&t.push([s(n),s(i)]);return r}case 6:{const t=[],r=n([i,t],a);for(const n of a)!e&&qt(Gt(n))||t.push(s(n));return r}}const{message:d}=a;return n([i,{name:o,message:d}],a)};return s})(!(t||r),!!t,new Map,a)(e),a},zt="function"===typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Lt(Wt(e,t)):structuredClone(e):(e,t)=>Lt(Wt(e,t)),Vt=/[#.]/g;var Kt=r(1141);const Yt={}.hasOwnProperty;function Xt(e,t,r){const a=r&&function(e){const t={};let r=-1;for(;++r2?o-2:0),c=2;c1?r[e.line-2]:0)+e.column-1;if(a-1&&e<=t.length){let a=0;for(;;){let n=r[a];if(void 0===n){const e=tr(t,r[a-1]);n=-1===e?t.length+1:e+1,r[a]=n}if(n>e)return{line:a+1,column:e-(a>0?r[a-1]:0)+1,offset:e};a++}}}}}(t),n=a.toPoint(0),s=a.toPoint(t.length);r.position={start:n,end:s}}return r}case"#documentType":return r={type:"doctype"},or(e,t,r),r;case"#text":{const a=t;return r={type:"text",value:a.value},or(e,a,r),r}default:return r=function(e,t){const r=e.schema;e.schema=t.namespaceURI===rr.svg?re.JW:re.qy;let a=-1;const n={};for(;++a=55296&&e<=57343}function _r(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function Cr(e){return e>=64976&&e<=65007||br.has(e)}var kr;!function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"}(kr||(kr={}));class Pr{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){const{line:r,col:a,offset:n}=this,s=a+t,i=n+t;return{code:e,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:i,endOffset:i}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(function(e){return e>=56320&&e<=57343}(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,xr.EOF;return this._err(kr.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let r=0;r=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,xr.EOF;const r=this.html.charCodeAt(t);return r===xr.CARRIAGE_RETURN?xr.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,xr.EOF;let e=this.html.charCodeAt(this.pos);if(e===xr.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,xr.LINE_FEED;if(e===xr.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine))return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance();this.skipNextNewLine=!1,jr(e)&&(e=this._processSurrogate(e));return null===this.handler.onParseError||e>31&&e<127||e===xr.LINE_FEED||e===xr.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){_r(e)?this._err(kr.controlCharacterInInputStream):Cr(e)&&this._err(kr.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}!function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"}(Dr||(Dr={}));const Nr=new Uint16Array('\u1d41<\xd5\u0131\u028a\u049d\u057b\u05d0\u0675\u06de\u07a2\u07d6\u080f\u0a4a\u0a91\u0da1\u0e6d\u0f09\u0f26\u10ca\u1228\u12e1\u1415\u149d\u14c3\u14df\u1525\0\0\0\0\0\0\u156b\u16cd\u198d\u1c12\u1ddd\u1f7e\u2060\u21b0\u228d\u23c0\u23fb\u2442\u2824\u2912\u2d08\u2e48\u2fce\u3016\u32ba\u3639\u37ac\u38fe\u3a28\u3a71\u3ae0\u3b2e\u0800EMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig\u803b\xc6\u40c6P\u803b&\u4026cute\u803b\xc1\u40c1reve;\u4102\u0100iyx}rc\u803b\xc2\u40c2;\u4410r;\uc000\ud835\udd04rave\u803b\xc0\u40c0pha;\u4391acr;\u4100d;\u6a53\u0100gp\x9d\xa1on;\u4104f;\uc000\ud835\udd38plyFunction;\u6061ing\u803b\xc5\u40c5\u0100cs\xbe\xc3r;\uc000\ud835\udc9cign;\u6254ilde\u803b\xc3\u40c3ml\u803b\xc4\u40c4\u0400aceforsu\xe5\xfb\xfe\u0117\u011c\u0122\u0127\u012a\u0100cr\xea\xf2kslash;\u6216\u0176\xf6\xf8;\u6ae7ed;\u6306y;\u4411\u0180crt\u0105\u010b\u0114ause;\u6235noullis;\u612ca;\u4392r;\uc000\ud835\udd05pf;\uc000\ud835\udd39eve;\u42d8c\xf2\u0113mpeq;\u624e\u0700HOacdefhilorsu\u014d\u0151\u0156\u0180\u019e\u01a2\u01b5\u01b7\u01ba\u01dc\u0215\u0273\u0278\u027ecy;\u4427PY\u803b\xa9\u40a9\u0180cpy\u015d\u0162\u017aute;\u4106\u0100;i\u0167\u0168\u62d2talDifferentialD;\u6145leys;\u612d\u0200aeio\u0189\u018e\u0194\u0198ron;\u410cdil\u803b\xc7\u40c7rc;\u4108nint;\u6230ot;\u410a\u0100dn\u01a7\u01adilla;\u40b8terDot;\u40b7\xf2\u017fi;\u43a7rcle\u0200DMPT\u01c7\u01cb\u01d1\u01d6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01e2\u01f8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020foubleQuote;\u601duote;\u6019\u0200lnpu\u021e\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6a74\u0180git\u022f\u0236\u023aruent;\u6261nt;\u622fourIntegral;\u622e\u0100fr\u024c\u024e;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6a2fcr;\uc000\ud835\udc9ep\u0100;C\u0284\u0285\u62d3ap;\u624d\u0580DJSZacefios\u02a0\u02ac\u02b0\u02b4\u02b8\u02cb\u02d7\u02e1\u02e6\u0333\u048d\u0100;o\u0179\u02a5trahd;\u6911cy;\u4402cy;\u4405cy;\u440f\u0180grs\u02bf\u02c4\u02c7ger;\u6021r;\u61a1hv;\u6ae4\u0100ay\u02d0\u02d5ron;\u410e;\u4414l\u0100;t\u02dd\u02de\u6207a;\u4394r;\uc000\ud835\udd07\u0100af\u02eb\u0327\u0100cm\u02f0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031ccute;\u40b4o\u0174\u030b\u030d;\u42d9bleAcute;\u42ddrave;\u4060ilde;\u42dcond;\u62c4ferentialD;\u6146\u0470\u033d\0\0\0\u0342\u0354\0\u0405f;\uc000\ud835\udd3b\u0180;DE\u0348\u0349\u034d\u40a8ot;\u60dcqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03cf\u03e2\u03f8ontourIntegra\xec\u0239o\u0274\u0379\0\0\u037b\xbb\u0349nArrow;\u61d3\u0100eo\u0387\u03a4ft\u0180ART\u0390\u0396\u03a1rrow;\u61d0ightArrow;\u61d4e\xe5\u02cang\u0100LR\u03ab\u03c4eft\u0100AR\u03b3\u03b9rrow;\u67f8ightArrow;\u67faightArrow;\u67f9ight\u0100AT\u03d8\u03derrow;\u61d2ee;\u62a8p\u0241\u03e9\0\0\u03efrrow;\u61d1ownArrow;\u61d5erticalBar;\u6225n\u0300ABLRTa\u0412\u042a\u0430\u045e\u047f\u037crrow\u0180;BU\u041d\u041e\u0422\u6193ar;\u6913pArrow;\u61f5reve;\u4311eft\u02d2\u043a\0\u0446\0\u0450ightVector;\u6950eeVector;\u695eector\u0100;B\u0459\u045a\u61bdar;\u6956ight\u01d4\u0467\0\u0471eeVector;\u695fector\u0100;B\u047a\u047b\u61c1ar;\u6957ee\u0100;A\u0486\u0487\u62a4rrow;\u61a7\u0100ct\u0492\u0497r;\uc000\ud835\udc9frok;\u4110\u0800NTacdfglmopqstux\u04bd\u04c0\u04c4\u04cb\u04de\u04e2\u04e7\u04ee\u04f5\u0521\u052f\u0536\u0552\u055d\u0560\u0565G;\u414aH\u803b\xd0\u40d0cute\u803b\xc9\u40c9\u0180aiy\u04d2\u04d7\u04dcron;\u411arc\u803b\xca\u40ca;\u442dot;\u4116r;\uc000\ud835\udd08rave\u803b\xc8\u40c8ement;\u6208\u0100ap\u04fa\u04fecr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65fberySmallSquare;\u65ab\u0100gp\u0526\u052aon;\u4118f;\uc000\ud835\udd3csilon;\u4395u\u0100ai\u053c\u0549l\u0100;T\u0542\u0543\u6a75ilde;\u6242librium;\u61cc\u0100ci\u0557\u055ar;\u6130m;\u6a73a;\u4397ml\u803b\xcb\u40cb\u0100ip\u056a\u056fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058d\u05b2\u05ccy;\u4424r;\uc000\ud835\udd09lled\u0253\u0597\0\0\u05a3mallSquare;\u65fcerySmallSquare;\u65aa\u0370\u05ba\0\u05bf\0\0\u05c4f;\uc000\ud835\udd3dAll;\u6200riertrf;\u6131c\xf2\u05cb\u0600JTabcdfgorst\u05e8\u05ec\u05ef\u05fa\u0600\u0612\u0616\u061b\u061d\u0623\u066c\u0672cy;\u4403\u803b>\u403emma\u0100;d\u05f7\u05f8\u4393;\u43dcreve;\u411e\u0180eiy\u0607\u060c\u0610dil;\u4122rc;\u411c;\u4413ot;\u4120r;\uc000\ud835\udd0a;\u62d9pf;\uc000\ud835\udd3eeater\u0300EFGLST\u0635\u0644\u064e\u0656\u065b\u0666qual\u0100;L\u063e\u063f\u6265ess;\u62dbullEqual;\u6267reater;\u6aa2ess;\u6277lantEqual;\u6a7eilde;\u6273cr;\uc000\ud835\udca2;\u626b\u0400Aacfiosu\u0685\u068b\u0696\u069b\u069e\u06aa\u06be\u06caRDcy;\u442a\u0100ct\u0690\u0694ek;\u42c7;\u405eirc;\u4124r;\u610clbertSpace;\u610b\u01f0\u06af\0\u06b2f;\u610dizontalLine;\u6500\u0100ct\u06c3\u06c5\xf2\u06a9rok;\u4126mp\u0144\u06d0\u06d8ownHum\xf0\u012fqual;\u624f\u0700EJOacdfgmnostu\u06fa\u06fe\u0703\u0707\u070e\u071a\u071e\u0721\u0728\u0744\u0778\u078b\u078f\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803b\xcd\u40cd\u0100iy\u0713\u0718rc\u803b\xce\u40ce;\u4418ot;\u4130r;\u6111rave\u803b\xcc\u40cc\u0180;ap\u0720\u072f\u073f\u0100cg\u0734\u0737r;\u412ainaryI;\u6148lie\xf3\u03dd\u01f4\u0749\0\u0762\u0100;e\u074d\u074e\u622c\u0100gr\u0753\u0758ral;\u622bsection;\u62c2isible\u0100CT\u076c\u0772omma;\u6063imes;\u6062\u0180gpt\u077f\u0783\u0788on;\u412ef;\uc000\ud835\udd40a;\u4399cr;\u6110ilde;\u4128\u01eb\u079a\0\u079ecy;\u4406l\u803b\xcf\u40cf\u0280cfosu\u07ac\u07b7\u07bc\u07c2\u07d0\u0100iy\u07b1\u07b5rc;\u4134;\u4419r;\uc000\ud835\udd0dpf;\uc000\ud835\udd41\u01e3\u07c7\0\u07ccr;\uc000\ud835\udca5rcy;\u4408kcy;\u4404\u0380HJacfos\u07e4\u07e8\u07ec\u07f1\u07fd\u0802\u0808cy;\u4425cy;\u440cppa;\u439a\u0100ey\u07f6\u07fbdil;\u4136;\u441ar;\uc000\ud835\udd0epf;\uc000\ud835\udd42cr;\uc000\ud835\udca6\u0580JTaceflmost\u0825\u0829\u082c\u0850\u0863\u09b3\u09b8\u09c7\u09cd\u0a37\u0a47cy;\u4409\u803b<\u403c\u0280cmnpr\u0837\u083c\u0841\u0844\u084dute;\u4139bda;\u439bg;\u67ealacetrf;\u6112r;\u619e\u0180aey\u0857\u085c\u0861ron;\u413ddil;\u413b;\u441b\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087e\u08a9\u08b1\u08e0\u08e6\u08fc\u092f\u095b\u0390\u096a\u0100nr\u0883\u088fgleBracket;\u67e8row\u0180;BR\u0899\u089a\u089e\u6190ar;\u61e4ightArrow;\u61c6eiling;\u6308o\u01f5\u08b7\0\u08c3bleBracket;\u67e6n\u01d4\u08c8\0\u08d2eeVector;\u6961ector\u0100;B\u08db\u08dc\u61c3ar;\u6959loor;\u630aight\u0100AV\u08ef\u08f5rrow;\u6194ector;\u694e\u0100er\u0901\u0917e\u0180;AV\u0909\u090a\u0910\u62a3rrow;\u61a4ector;\u695aiangle\u0180;BE\u0924\u0925\u0929\u62b2ar;\u69cfqual;\u62b4p\u0180DTV\u0937\u0942\u094cownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61bfar;\u6958ector\u0100;B\u0965\u0966\u61bcar;\u6952ight\xe1\u039cs\u0300EFGLST\u097e\u098b\u0995\u099d\u09a2\u09adqualGreater;\u62daullEqual;\u6266reater;\u6276ess;\u6aa1lantEqual;\u6a7dilde;\u6272r;\uc000\ud835\udd0f\u0100;e\u09bd\u09be\u62d8ftarrow;\u61daidot;\u413f\u0180npw\u09d4\u0a16\u0a1bg\u0200LRlr\u09de\u09f7\u0a02\u0a10eft\u0100AR\u09e6\u09ecrrow;\u67f5ightArrow;\u67f7ightArrow;\u67f6eft\u0100ar\u03b3\u0a0aight\xe1\u03bfight\xe1\u03caf;\uc000\ud835\udd43er\u0100LR\u0a22\u0a2ceftArrow;\u6199ightArrow;\u6198\u0180cht\u0a3e\u0a40\u0a42\xf2\u084c;\u61b0rok;\u4141;\u626a\u0400acefiosu\u0a5a\u0a5d\u0a60\u0a77\u0a7c\u0a85\u0a8b\u0a8ep;\u6905y;\u441c\u0100dl\u0a65\u0a6fiumSpace;\u605flintrf;\u6133r;\uc000\ud835\udd10nusPlus;\u6213pf;\uc000\ud835\udd44c\xf2\u0a76;\u439c\u0480Jacefostu\u0aa3\u0aa7\u0aad\u0ac0\u0b14\u0b19\u0d91\u0d97\u0d9ecy;\u440acute;\u4143\u0180aey\u0ab4\u0ab9\u0aberon;\u4147dil;\u4145;\u441d\u0180gsw\u0ac7\u0af0\u0b0eative\u0180MTV\u0ad3\u0adf\u0ae8ediumSpace;\u600bhi\u0100cn\u0ae6\u0ad8\xeb\u0ad9eryThi\xee\u0ad9ted\u0100GL\u0af8\u0b06reaterGreate\xf2\u0673essLes\xf3\u0a48Line;\u400ar;\uc000\ud835\udd11\u0200Bnpt\u0b22\u0b28\u0b37\u0b3areak;\u6060BreakingSpace;\u40a0f;\u6115\u0680;CDEGHLNPRSTV\u0b55\u0b56\u0b6a\u0b7c\u0ba1\u0beb\u0c04\u0c5e\u0c84\u0ca6\u0cd8\u0d61\u0d85\u6aec\u0100ou\u0b5b\u0b64ngruent;\u6262pCap;\u626doubleVerticalBar;\u6226\u0180lqx\u0b83\u0b8a\u0b9bement;\u6209ual\u0100;T\u0b92\u0b93\u6260ilde;\uc000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0bb6\u0bb7\u0bbd\u0bc9\u0bd3\u0bd8\u0be5\u626fqual;\u6271ullEqual;\uc000\u2267\u0338reater;\uc000\u226b\u0338ess;\u6279lantEqual;\uc000\u2a7e\u0338ilde;\u6275ump\u0144\u0bf2\u0bfdownHump;\uc000\u224e\u0338qual;\uc000\u224f\u0338e\u0100fs\u0c0a\u0c27tTriangle\u0180;BE\u0c1a\u0c1b\u0c21\u62eaar;\uc000\u29cf\u0338qual;\u62ecs\u0300;EGLST\u0c35\u0c36\u0c3c\u0c44\u0c4b\u0c58\u626equal;\u6270reater;\u6278ess;\uc000\u226a\u0338lantEqual;\uc000\u2a7d\u0338ilde;\u6274ested\u0100GL\u0c68\u0c79reaterGreater;\uc000\u2aa2\u0338essLess;\uc000\u2aa1\u0338recedes\u0180;ES\u0c92\u0c93\u0c9b\u6280qual;\uc000\u2aaf\u0338lantEqual;\u62e0\u0100ei\u0cab\u0cb9verseElement;\u620cghtTriangle\u0180;BE\u0ccb\u0ccc\u0cd2\u62ebar;\uc000\u29d0\u0338qual;\u62ed\u0100qu\u0cdd\u0d0cuareSu\u0100bp\u0ce8\u0cf9set\u0100;E\u0cf0\u0cf3\uc000\u228f\u0338qual;\u62e2erset\u0100;E\u0d03\u0d06\uc000\u2290\u0338qual;\u62e3\u0180bcp\u0d13\u0d24\u0d4eset\u0100;E\u0d1b\u0d1e\uc000\u2282\u20d2qual;\u6288ceeds\u0200;EST\u0d32\u0d33\u0d3b\u0d46\u6281qual;\uc000\u2ab0\u0338lantEqual;\u62e1ilde;\uc000\u227f\u0338erset\u0100;E\u0d58\u0d5b\uc000\u2283\u20d2qual;\u6289ilde\u0200;EFT\u0d6e\u0d6f\u0d75\u0d7f\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uc000\ud835\udca9ilde\u803b\xd1\u40d1;\u439d\u0700Eacdfgmoprstuv\u0dbd\u0dc2\u0dc9\u0dd5\u0ddb\u0de0\u0de7\u0dfc\u0e02\u0e20\u0e22\u0e32\u0e3f\u0e44lig;\u4152cute\u803b\xd3\u40d3\u0100iy\u0dce\u0dd3rc\u803b\xd4\u40d4;\u441eblac;\u4150r;\uc000\ud835\udd12rave\u803b\xd2\u40d2\u0180aei\u0dee\u0df2\u0df6cr;\u414cga;\u43a9cron;\u439fpf;\uc000\ud835\udd46enCurly\u0100DQ\u0e0e\u0e1aoubleQuote;\u601cuote;\u6018;\u6a54\u0100cl\u0e27\u0e2cr;\uc000\ud835\udcaaash\u803b\xd8\u40d8i\u016c\u0e37\u0e3cde\u803b\xd5\u40d5es;\u6a37ml\u803b\xd6\u40d6er\u0100BP\u0e4b\u0e60\u0100ar\u0e50\u0e53r;\u603eac\u0100ek\u0e5a\u0e5c;\u63deet;\u63b4arenthesis;\u63dc\u0480acfhilors\u0e7f\u0e87\u0e8a\u0e8f\u0e92\u0e94\u0e9d\u0eb0\u0efcrtialD;\u6202y;\u441fr;\uc000\ud835\udd13i;\u43a6;\u43a0usMinus;\u40b1\u0100ip\u0ea2\u0eadncareplan\xe5\u069df;\u6119\u0200;eio\u0eb9\u0eba\u0ee0\u0ee4\u6abbcedes\u0200;EST\u0ec8\u0ec9\u0ecf\u0eda\u627aqual;\u6aaflantEqual;\u627cilde;\u627eme;\u6033\u0100dp\u0ee9\u0eeeuct;\u620fortion\u0100;a\u0225\u0ef9l;\u621d\u0100ci\u0f01\u0f06r;\uc000\ud835\udcab;\u43a8\u0200Ufos\u0f11\u0f16\u0f1b\u0f1fOT\u803b"\u4022r;\uc000\ud835\udd14pf;\u611acr;\uc000\ud835\udcac\u0600BEacefhiorsu\u0f3e\u0f43\u0f47\u0f60\u0f73\u0fa7\u0faa\u0fad\u1096\u10a9\u10b4\u10bearr;\u6910G\u803b\xae\u40ae\u0180cnr\u0f4e\u0f53\u0f56ute;\u4154g;\u67ebr\u0100;t\u0f5c\u0f5d\u61a0l;\u6916\u0180aey\u0f67\u0f6c\u0f71ron;\u4158dil;\u4156;\u4420\u0100;v\u0f78\u0f79\u611cerse\u0100EU\u0f82\u0f99\u0100lq\u0f87\u0f8eement;\u620builibrium;\u61cbpEquilibrium;\u696fr\xbb\u0f79o;\u43a1ght\u0400ACDFTUVa\u0fc1\u0feb\u0ff3\u1022\u1028\u105b\u1087\u03d8\u0100nr\u0fc6\u0fd2gleBracket;\u67e9row\u0180;BL\u0fdc\u0fdd\u0fe1\u6192ar;\u61e5eftArrow;\u61c4eiling;\u6309o\u01f5\u0ff9\0\u1005bleBracket;\u67e7n\u01d4\u100a\0\u1014eeVector;\u695dector\u0100;B\u101d\u101e\u61c2ar;\u6955loor;\u630b\u0100er\u102d\u1043e\u0180;AV\u1035\u1036\u103c\u62a2rrow;\u61a6ector;\u695biangle\u0180;BE\u1050\u1051\u1055\u62b3ar;\u69d0qual;\u62b5p\u0180DTV\u1063\u106e\u1078ownVector;\u694feeVector;\u695cector\u0100;B\u1082\u1083\u61bear;\u6954ector\u0100;B\u1091\u1092\u61c0ar;\u6953\u0100pu\u109b\u109ef;\u611dndImplies;\u6970ightarrow;\u61db\u0100ch\u10b9\u10bcr;\u611b;\u61b1leDelayed;\u69f4\u0680HOacfhimoqstu\u10e4\u10f1\u10f7\u10fd\u1119\u111e\u1151\u1156\u1161\u1167\u11b5\u11bb\u11bf\u0100Cc\u10e9\u10eeHcy;\u4429y;\u4428FTcy;\u442ccute;\u415a\u0280;aeiy\u1108\u1109\u110e\u1113\u1117\u6abcron;\u4160dil;\u415erc;\u415c;\u4421r;\uc000\ud835\udd16ort\u0200DLRU\u112a\u1134\u113e\u1149ownArrow\xbb\u041eeftArrow\xbb\u089aightArrow\xbb\u0fddpArrow;\u6191gma;\u43a3allCircle;\u6218pf;\uc000\ud835\udd4a\u0272\u116d\0\0\u1170t;\u621aare\u0200;ISU\u117b\u117c\u1189\u11af\u65a1ntersection;\u6293u\u0100bp\u118f\u119eset\u0100;E\u1197\u1198\u628fqual;\u6291erset\u0100;E\u11a8\u11a9\u6290qual;\u6292nion;\u6294cr;\uc000\ud835\udcaear;\u62c6\u0200bcmp\u11c8\u11db\u1209\u120b\u0100;s\u11cd\u11ce\u62d0et\u0100;E\u11cd\u11d5qual;\u6286\u0100ch\u11e0\u1205eeds\u0200;EST\u11ed\u11ee\u11f4\u11ff\u627bqual;\u6ab0lantEqual;\u627dilde;\u627fTh\xe1\u0f8c;\u6211\u0180;es\u1212\u1213\u1223\u62d1rset\u0100;E\u121c\u121d\u6283qual;\u6287et\xbb\u1213\u0580HRSacfhiors\u123e\u1244\u1249\u1255\u125e\u1271\u1276\u129f\u12c2\u12c8\u12d1ORN\u803b\xde\u40deADE;\u6122\u0100Hc\u124e\u1252cy;\u440by;\u4426\u0100bu\u125a\u125c;\u4009;\u43a4\u0180aey\u1265\u126a\u126fron;\u4164dil;\u4162;\u4422r;\uc000\ud835\udd17\u0100ei\u127b\u1289\u01f2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128e\u1298kSpace;\uc000\u205f\u200aSpace;\u6009lde\u0200;EFT\u12ab\u12ac\u12b2\u12bc\u623cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uc000\ud835\udd4bipleDot;\u60db\u0100ct\u12d6\u12dbr;\uc000\ud835\udcafrok;\u4166\u0ae1\u12f7\u130e\u131a\u1326\0\u132c\u1331\0\0\0\0\0\u1338\u133d\u1377\u1385\0\u13ff\u1404\u140a\u1410\u0100cr\u12fb\u1301ute\u803b\xda\u40dar\u0100;o\u1307\u1308\u619fcir;\u6949r\u01e3\u1313\0\u1316y;\u440eve;\u416c\u0100iy\u131e\u1323rc\u803b\xdb\u40db;\u4423blac;\u4170r;\uc000\ud835\udd18rave\u803b\xd9\u40d9acr;\u416a\u0100di\u1341\u1369er\u0100BP\u1348\u135d\u0100ar\u134d\u1350r;\u405fac\u0100ek\u1357\u1359;\u63dfet;\u63b5arenthesis;\u63ddon\u0100;P\u1370\u1371\u62c3lus;\u628e\u0100gp\u137b\u137fon;\u4172f;\uc000\ud835\udd4c\u0400ADETadps\u1395\u13ae\u13b8\u13c4\u03e8\u13d2\u13d7\u13f3rrow\u0180;BD\u1150\u13a0\u13a4ar;\u6912ownArrow;\u61c5ownArrow;\u6195quilibrium;\u696eee\u0100;A\u13cb\u13cc\u62a5rrow;\u61a5own\xe1\u03f3er\u0100LR\u13de\u13e8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13f9\u13fa\u43d2on;\u43a5ing;\u416ecr;\uc000\ud835\udcb0ilde;\u4168ml\u803b\xdc\u40dc\u0480Dbcdefosv\u1427\u142c\u1430\u1433\u143e\u1485\u148a\u1490\u1496ash;\u62abar;\u6aeby;\u4412ash\u0100;l\u143b\u143c\u62a9;\u6ae6\u0100er\u1443\u1445;\u62c1\u0180bty\u144c\u1450\u147aar;\u6016\u0100;i\u144f\u1455cal\u0200BLST\u1461\u1465\u146a\u1474ar;\u6223ine;\u407ceparator;\u6758ilde;\u6240ThinSpace;\u600ar;\uc000\ud835\udd19pf;\uc000\ud835\udd4dcr;\uc000\ud835\udcb1dash;\u62aa\u0280cefos\u14a7\u14ac\u14b1\u14b6\u14bcirc;\u4174dge;\u62c0r;\uc000\ud835\udd1apf;\uc000\ud835\udd4ecr;\uc000\ud835\udcb2\u0200fios\u14cb\u14d0\u14d2\u14d8r;\uc000\ud835\udd1b;\u439epf;\uc000\ud835\udd4fcr;\uc000\ud835\udcb3\u0480AIUacfosu\u14f1\u14f5\u14f9\u14fd\u1504\u150f\u1514\u151a\u1520cy;\u442fcy;\u4407cy;\u442ecute\u803b\xdd\u40dd\u0100iy\u1509\u150drc;\u4176;\u442br;\uc000\ud835\udd1cpf;\uc000\ud835\udd50cr;\uc000\ud835\udcb4ml;\u4178\u0400Hacdefos\u1535\u1539\u153f\u154b\u154f\u155d\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417d;\u4417ot;\u417b\u01f2\u1554\0\u155boWidt\xe8\u0ad9a;\u4396r;\u6128pf;\u6124cr;\uc000\ud835\udcb5\u0be1\u1583\u158a\u1590\0\u15b0\u15b6\u15bf\0\0\0\0\u15c6\u15db\u15eb\u165f\u166d\0\u1695\u169b\u16b2\u16b9\0\u16becute\u803b\xe1\u40e1reve;\u4103\u0300;Ediuy\u159c\u159d\u15a1\u15a3\u15a8\u15ad\u623e;\uc000\u223e\u0333;\u623frc\u803b\xe2\u40e2te\u80bb\xb4\u0306;\u4430lig\u803b\xe6\u40e6\u0100;r\xb2\u15ba;\uc000\ud835\udd1erave\u803b\xe0\u40e0\u0100ep\u15ca\u15d6\u0100fp\u15cf\u15d4sym;\u6135\xe8\u15d3ha;\u43b1\u0100ap\u15dfc\u0100cl\u15e4\u15e7r;\u4101g;\u6a3f\u0264\u15f0\0\0\u160a\u0280;adsv\u15fa\u15fb\u15ff\u1601\u1607\u6227nd;\u6a55;\u6a5clope;\u6a58;\u6a5a\u0380;elmrsz\u1618\u1619\u161b\u161e\u163f\u164f\u1659\u6220;\u69a4e\xbb\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163a\u163c\u163e;\u69a8;\u69a9;\u69aa;\u69ab;\u69ac;\u69ad;\u69ae;\u69aft\u0100;v\u1645\u1646\u621fb\u0100;d\u164c\u164d\u62be;\u699d\u0100pt\u1654\u1657h;\u6222\xbb\xb9arr;\u637c\u0100gp\u1663\u1667on;\u4105f;\uc000\ud835\udd52\u0380;Eaeiop\u12c1\u167b\u167d\u1682\u1684\u1687\u168a;\u6a70cir;\u6a6f;\u624ad;\u624bs;\u4027rox\u0100;e\u12c1\u1692\xf1\u1683ing\u803b\xe5\u40e5\u0180cty\u16a1\u16a6\u16a8r;\uc000\ud835\udcb6;\u402amp\u0100;e\u12c1\u16af\xf1\u0288ilde\u803b\xe3\u40e3ml\u803b\xe4\u40e4\u0100ci\u16c2\u16c8onin\xf4\u0272nt;\u6a11\u0800Nabcdefiklnoprsu\u16ed\u16f1\u1730\u173c\u1743\u1748\u1778\u177d\u17e0\u17e6\u1839\u1850\u170d\u193d\u1948\u1970ot;\u6aed\u0100cr\u16f6\u171ek\u0200ceps\u1700\u1705\u170d\u1713ong;\u624cpsilon;\u43f6rime;\u6035im\u0100;e\u171a\u171b\u623dq;\u62cd\u0176\u1722\u1726ee;\u62bded\u0100;g\u172c\u172d\u6305e\xbb\u172drk\u0100;t\u135c\u1737brk;\u63b6\u0100oy\u1701\u1741;\u4431quo;\u601e\u0280cmprt\u1753\u175b\u1761\u1764\u1768aus\u0100;e\u010a\u0109ptyv;\u69b0s\xe9\u170cno\xf5\u0113\u0180ahw\u176f\u1771\u1773;\u43b2;\u6136een;\u626cr;\uc000\ud835\udd1fg\u0380costuvw\u178d\u179d\u17b3\u17c1\u17d5\u17db\u17de\u0180aiu\u1794\u1796\u179a\xf0\u0760rc;\u65efp\xbb\u1371\u0180dpt\u17a4\u17a8\u17adot;\u6a00lus;\u6a01imes;\u6a02\u0271\u17b9\0\0\u17becup;\u6a06ar;\u6605riangle\u0100du\u17cd\u17d2own;\u65bdp;\u65b3plus;\u6a04e\xe5\u1444\xe5\u14adarow;\u690d\u0180ako\u17ed\u1826\u1835\u0100cn\u17f2\u1823k\u0180lst\u17fa\u05ab\u1802ozenge;\u69ebriangle\u0200;dlr\u1812\u1813\u1818\u181d\u65b4own;\u65beeft;\u65c2ight;\u65b8k;\u6423\u01b1\u182b\0\u1833\u01b2\u182f\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183e\u184d\u0100;q\u1843\u1846\uc000=\u20e5uiv;\uc000\u2261\u20e5t;\u6310\u0200ptwx\u1859\u185e\u1867\u186cf;\uc000\ud835\udd53\u0100;t\u13cb\u1863om\xbb\u13cctie;\u62c8\u0600DHUVbdhmptuv\u1885\u1896\u18aa\u18bb\u18d7\u18db\u18ec\u18ff\u1905\u190a\u1910\u1921\u0200LRlr\u188e\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18a1\u18a2\u18a4\u18a6\u18a8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18b3\u18b5\u18b7\u18b9;\u655d;\u655a;\u655c;\u6559\u0380;HLRhlr\u18ca\u18cb\u18cd\u18cf\u18d1\u18d3\u18d5\u6551;\u656c;\u6563;\u6560;\u656b;\u6562;\u655fox;\u69c9\u0200LRlr\u18e4\u18e6\u18e8\u18ea;\u6555;\u6552;\u6510;\u650c\u0280;DUdu\u06bd\u18f7\u18f9\u18fb\u18fd;\u6565;\u6568;\u652c;\u6534inus;\u629flus;\u629eimes;\u62a0\u0200LRlr\u1919\u191b\u191d\u191f;\u655b;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193b\u6502;\u656a;\u6561;\u655e;\u653c;\u6524;\u651c\u0100ev\u0123\u1942bar\u803b\xa6\u40a6\u0200ceio\u1951\u1956\u195a\u1960r;\uc000\ud835\udcb7mi;\u604fm\u0100;e\u171a\u171cl\u0180;bh\u1968\u1969\u196b\u405c;\u69c5sub;\u67c8\u016c\u1974\u197el\u0100;e\u1979\u197a\u6022t\xbb\u197ap\u0180;Ee\u012f\u1985\u1987;\u6aae\u0100;q\u06dc\u06db\u0ce1\u19a7\0\u19e8\u1a11\u1a15\u1a32\0\u1a37\u1a50\0\0\u1ab4\0\0\u1ac1\0\0\u1b21\u1b2e\u1b4d\u1b52\0\u1bfd\0\u1c0c\u0180cpr\u19ad\u19b2\u19ddute;\u4107\u0300;abcds\u19bf\u19c0\u19c4\u19ca\u19d5\u19d9\u6229nd;\u6a44rcup;\u6a49\u0100au\u19cf\u19d2p;\u6a4bp;\u6a47ot;\u6a40;\uc000\u2229\ufe00\u0100eo\u19e2\u19e5t;\u6041\xee\u0693\u0200aeiu\u19f0\u19fb\u1a01\u1a05\u01f0\u19f5\0\u19f8s;\u6a4don;\u410ddil\u803b\xe7\u40e7rc;\u4109ps\u0100;s\u1a0c\u1a0d\u6a4cm;\u6a50ot;\u410b\u0180dmn\u1a1b\u1a20\u1a26il\u80bb\xb8\u01adptyv;\u69b2t\u8100\xa2;e\u1a2d\u1a2e\u40a2r\xe4\u01b2r;\uc000\ud835\udd20\u0180cei\u1a3d\u1a40\u1a4dy;\u4447ck\u0100;m\u1a47\u1a48\u6713ark\xbb\u1a48;\u43c7r\u0380;Ecefms\u1a5f\u1a60\u1a62\u1a6b\u1aa4\u1aaa\u1aae\u65cb;\u69c3\u0180;el\u1a69\u1a6a\u1a6d\u42c6q;\u6257e\u0261\u1a74\0\0\u1a88rrow\u0100lr\u1a7c\u1a81eft;\u61baight;\u61bb\u0280RSacd\u1a92\u1a94\u1a96\u1a9a\u1a9f\xbb\u0f47;\u64c8st;\u629birc;\u629aash;\u629dnint;\u6a10id;\u6aefcir;\u69c2ubs\u0100;u\u1abb\u1abc\u6663it\xbb\u1abc\u02ec\u1ac7\u1ad4\u1afa\0\u1b0aon\u0100;e\u1acd\u1ace\u403a\u0100;q\xc7\xc6\u026d\u1ad9\0\0\u1ae2a\u0100;t\u1ade\u1adf\u402c;\u4040\u0180;fl\u1ae8\u1ae9\u1aeb\u6201\xee\u1160e\u0100mx\u1af1\u1af6ent\xbb\u1ae9e\xf3\u024d\u01e7\u1afe\0\u1b07\u0100;d\u12bb\u1b02ot;\u6a6dn\xf4\u0246\u0180fry\u1b10\u1b14\u1b17;\uc000\ud835\udd54o\xe4\u0254\u8100\xa9;s\u0155\u1b1dr;\u6117\u0100ao\u1b25\u1b29rr;\u61b5ss;\u6717\u0100cu\u1b32\u1b37r;\uc000\ud835\udcb8\u0100bp\u1b3c\u1b44\u0100;e\u1b41\u1b42\u6acf;\u6ad1\u0100;e\u1b49\u1b4a\u6ad0;\u6ad2dot;\u62ef\u0380delprvw\u1b60\u1b6c\u1b77\u1b82\u1bac\u1bd4\u1bf9arr\u0100lr\u1b68\u1b6a;\u6938;\u6935\u0270\u1b72\0\0\u1b75r;\u62dec;\u62dfarr\u0100;p\u1b7f\u1b80\u61b6;\u693d\u0300;bcdos\u1b8f\u1b90\u1b96\u1ba1\u1ba5\u1ba8\u622arcap;\u6a48\u0100au\u1b9b\u1b9ep;\u6a46p;\u6a4aot;\u628dr;\u6a45;\uc000\u222a\ufe00\u0200alrv\u1bb5\u1bbf\u1bde\u1be3rr\u0100;m\u1bbc\u1bbd\u61b7;\u693cy\u0180evw\u1bc7\u1bd4\u1bd8q\u0270\u1bce\0\0\u1bd2re\xe3\u1b73u\xe3\u1b75ee;\u62ceedge;\u62cfen\u803b\xa4\u40a4earrow\u0100lr\u1bee\u1bf3eft\xbb\u1b80ight\xbb\u1bbde\xe4\u1bdd\u0100ci\u1c01\u1c07onin\xf4\u01f7nt;\u6231lcty;\u632d\u0980AHabcdefhijlorstuwz\u1c38\u1c3b\u1c3f\u1c5d\u1c69\u1c75\u1c8a\u1c9e\u1cac\u1cb7\u1cfb\u1cff\u1d0d\u1d7b\u1d91\u1dab\u1dbb\u1dc6\u1dcdr\xf2\u0381ar;\u6965\u0200glrs\u1c48\u1c4d\u1c52\u1c54ger;\u6020eth;\u6138\xf2\u1133h\u0100;v\u1c5a\u1c5b\u6010\xbb\u090a\u016b\u1c61\u1c67arow;\u690fa\xe3\u0315\u0100ay\u1c6e\u1c73ron;\u410f;\u4434\u0180;ao\u0332\u1c7c\u1c84\u0100gr\u02bf\u1c81r;\u61catseq;\u6a77\u0180glm\u1c91\u1c94\u1c98\u803b\xb0\u40b0ta;\u43b4ptyv;\u69b1\u0100ir\u1ca3\u1ca8sht;\u697f;\uc000\ud835\udd21ar\u0100lr\u1cb3\u1cb5\xbb\u08dc\xbb\u101e\u0280aegsv\u1cc2\u0378\u1cd6\u1cdc\u1ce0m\u0180;os\u0326\u1cca\u1cd4nd\u0100;s\u0326\u1cd1uit;\u6666amma;\u43ddin;\u62f2\u0180;io\u1ce7\u1ce8\u1cf8\u40f7de\u8100\xf7;o\u1ce7\u1cf0ntimes;\u62c7n\xf8\u1cf7cy;\u4452c\u026f\u1d06\0\0\u1d0arn;\u631eop;\u630d\u0280lptuw\u1d18\u1d1d\u1d22\u1d49\u1d55lar;\u4024f;\uc000\ud835\udd55\u0280;emps\u030b\u1d2d\u1d37\u1d3d\u1d42q\u0100;d\u0352\u1d33ot;\u6251inus;\u6238lus;\u6214quare;\u62a1blebarwedg\xe5\xfan\u0180adh\u112e\u1d5d\u1d67ownarrow\xf3\u1c83arpoon\u0100lr\u1d72\u1d76ef\xf4\u1cb4igh\xf4\u1cb6\u0162\u1d7f\u1d85karo\xf7\u0f42\u026f\u1d8a\0\0\u1d8ern;\u631fop;\u630c\u0180cot\u1d98\u1da3\u1da6\u0100ry\u1d9d\u1da1;\uc000\ud835\udcb9;\u4455l;\u69f6rok;\u4111\u0100dr\u1db0\u1db4ot;\u62f1i\u0100;f\u1dba\u1816\u65bf\u0100ah\u1dc0\u1dc3r\xf2\u0429a\xf2\u0fa6angle;\u69a6\u0100ci\u1dd2\u1dd5y;\u445fgrarr;\u67ff\u0900Dacdefglmnopqrstux\u1e01\u1e09\u1e19\u1e38\u0578\u1e3c\u1e49\u1e61\u1e7e\u1ea5\u1eaf\u1ebd\u1ee1\u1f2a\u1f37\u1f44\u1f4e\u1f5a\u0100Do\u1e06\u1d34o\xf4\u1c89\u0100cs\u1e0e\u1e14ute\u803b\xe9\u40e9ter;\u6a6e\u0200aioy\u1e22\u1e27\u1e31\u1e36ron;\u411br\u0100;c\u1e2d\u1e2e\u6256\u803b\xea\u40ealon;\u6255;\u444dot;\u4117\u0100Dr\u1e41\u1e45ot;\u6252;\uc000\ud835\udd22\u0180;rs\u1e50\u1e51\u1e57\u6a9aave\u803b\xe8\u40e8\u0100;d\u1e5c\u1e5d\u6a96ot;\u6a98\u0200;ils\u1e6a\u1e6b\u1e72\u1e74\u6a99nters;\u63e7;\u6113\u0100;d\u1e79\u1e7a\u6a95ot;\u6a97\u0180aps\u1e85\u1e89\u1e97cr;\u4113ty\u0180;sv\u1e92\u1e93\u1e95\u6205et\xbb\u1e93p\u01001;\u1e9d\u1ea4\u0133\u1ea1\u1ea3;\u6004;\u6005\u6003\u0100gs\u1eaa\u1eac;\u414bp;\u6002\u0100gp\u1eb4\u1eb8on;\u4119f;\uc000\ud835\udd56\u0180als\u1ec4\u1ece\u1ed2r\u0100;s\u1eca\u1ecb\u62d5l;\u69e3us;\u6a71i\u0180;lv\u1eda\u1edb\u1edf\u43b5on\xbb\u1edb;\u43f5\u0200csuv\u1eea\u1ef3\u1f0b\u1f23\u0100io\u1eef\u1e31rc\xbb\u1e2e\u0269\u1ef9\0\0\u1efb\xed\u0548ant\u0100gl\u1f02\u1f06tr\xbb\u1e5dess\xbb\u1e7a\u0180aei\u1f12\u1f16\u1f1als;\u403dst;\u625fv\u0100;D\u0235\u1f20D;\u6a78parsl;\u69e5\u0100Da\u1f2f\u1f33ot;\u6253rr;\u6971\u0180cdi\u1f3e\u1f41\u1ef8r;\u612fo\xf4\u0352\u0100ah\u1f49\u1f4b;\u43b7\u803b\xf0\u40f0\u0100mr\u1f53\u1f57l\u803b\xeb\u40ebo;\u60ac\u0180cip\u1f61\u1f64\u1f67l;\u4021s\xf4\u056e\u0100eo\u1f6c\u1f74ctatio\xee\u0559nential\xe5\u0579\u09e1\u1f92\0\u1f9e\0\u1fa1\u1fa7\0\0\u1fc6\u1fcc\0\u1fd3\0\u1fe6\u1fea\u2000\0\u2008\u205allingdotse\xf1\u1e44y;\u4444male;\u6640\u0180ilr\u1fad\u1fb3\u1fc1lig;\u8000\ufb03\u0269\u1fb9\0\0\u1fbdg;\u8000\ufb00ig;\u8000\ufb04;\uc000\ud835\udd23lig;\u8000\ufb01lig;\uc000fj\u0180alt\u1fd9\u1fdc\u1fe1t;\u666dig;\u8000\ufb02ns;\u65b1of;\u4192\u01f0\u1fee\0\u1ff3f;\uc000\ud835\udd57\u0100ak\u05bf\u1ff7\u0100;v\u1ffc\u1ffd\u62d4;\u6ad9artint;\u6a0d\u0100ao\u200c\u2055\u0100cs\u2011\u2052\u03b1\u201a\u2030\u2038\u2045\u2048\0\u2050\u03b2\u2022\u2025\u2027\u202a\u202c\0\u202e\u803b\xbd\u40bd;\u6153\u803b\xbc\u40bc;\u6155;\u6159;\u615b\u01b3\u2034\0\u2036;\u6154;\u6156\u02b4\u203e\u2041\0\0\u2043\u803b\xbe\u40be;\u6157;\u615c5;\u6158\u01b6\u204c\0\u204e;\u615a;\u615d8;\u615el;\u6044wn;\u6322cr;\uc000\ud835\udcbb\u0880Eabcdefgijlnorstv\u2082\u2089\u209f\u20a5\u20b0\u20b4\u20f0\u20f5\u20fa\u20ff\u2103\u2112\u2138\u0317\u213e\u2152\u219e\u0100;l\u064d\u2087;\u6a8c\u0180cmp\u2090\u2095\u209dute;\u41f5ma\u0100;d\u209c\u1cda\u43b3;\u6a86reve;\u411f\u0100iy\u20aa\u20aerc;\u411d;\u4433ot;\u4121\u0200;lqs\u063e\u0642\u20bd\u20c9\u0180;qs\u063e\u064c\u20c4lan\xf4\u0665\u0200;cdl\u0665\u20d2\u20d5\u20e5c;\u6aa9ot\u0100;o\u20dc\u20dd\u6a80\u0100;l\u20e2\u20e3\u6a82;\u6a84\u0100;e\u20ea\u20ed\uc000\u22db\ufe00s;\u6a94r;\uc000\ud835\udd24\u0100;g\u0673\u061bmel;\u6137cy;\u4453\u0200;Eaj\u065a\u210c\u210e\u2110;\u6a92;\u6aa5;\u6aa4\u0200Eaes\u211b\u211d\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6a8arox\xbb\u2124\u0100;q\u212e\u212f\u6a88\u0100;q\u212e\u211bim;\u62e7pf;\uc000\ud835\udd58\u0100ci\u2143\u2146r;\u610am\u0180;el\u066b\u214e\u2150;\u6a8e;\u6a90\u8300>;cdlqr\u05ee\u2160\u216a\u216e\u2173\u2179\u0100ci\u2165\u2167;\u6aa7r;\u6a7aot;\u62d7Par;\u6995uest;\u6a7c\u0280adels\u2184\u216a\u2190\u0656\u219b\u01f0\u2189\0\u218epro\xf8\u209er;\u6978q\u0100lq\u063f\u2196les\xf3\u2088i\xed\u066b\u0100en\u21a3\u21adrtneqq;\uc000\u2269\ufe00\xc5\u21aa\u0500Aabcefkosy\u21c4\u21c7\u21f1\u21f5\u21fa\u2218\u221d\u222f\u2268\u227dr\xf2\u03a0\u0200ilmr\u21d0\u21d4\u21d7\u21dbrs\xf0\u1484f\xbb\u2024il\xf4\u06a9\u0100dr\u21e0\u21e4cy;\u444a\u0180;cw\u08f4\u21eb\u21efir;\u6948;\u61adar;\u610firc;\u4125\u0180alr\u2201\u220e\u2213rts\u0100;u\u2209\u220a\u6665it\xbb\u220alip;\u6026con;\u62b9r;\uc000\ud835\udd25s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223a\u223e\u2243\u225e\u2263rr;\u61fftht;\u623bk\u0100lr\u2249\u2253eftarrow;\u61a9ightarrow;\u61aaf;\uc000\ud835\udd59bar;\u6015\u0180clt\u226f\u2274\u2278r;\uc000\ud835\udcbdas\xe8\u21f4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xbb\u1c5b\u0ae1\u22a3\0\u22aa\0\u22b8\u22c5\u22ce\0\u22d5\u22f3\0\0\u22f8\u2322\u2367\u2362\u237f\0\u2386\u23aa\u23b4cute\u803b\xed\u40ed\u0180;iy\u0771\u22b0\u22b5rc\u803b\xee\u40ee;\u4438\u0100cx\u22bc\u22bfy;\u4435cl\u803b\xa1\u40a1\u0100fr\u039f\u22c9;\uc000\ud835\udd26rave\u803b\xec\u40ec\u0200;ino\u073e\u22dd\u22e9\u22ee\u0100in\u22e2\u22e6nt;\u6a0ct;\u622dfin;\u69dcta;\u6129lig;\u4133\u0180aop\u22fe\u231a\u231d\u0180cgt\u2305\u2308\u2317r;\u412b\u0180elp\u071f\u230f\u2313in\xe5\u078ear\xf4\u0720h;\u4131f;\u62b7ed;\u41b5\u0280;cfot\u04f4\u232c\u2331\u233d\u2341are;\u6105in\u0100;t\u2338\u2339\u621eie;\u69dddo\xf4\u2319\u0280;celp\u0757\u234c\u2350\u235b\u2361al;\u62ba\u0100gr\u2355\u2359er\xf3\u1563\xe3\u234darhk;\u6a17rod;\u6a3c\u0200cgpt\u236f\u2372\u2376\u237by;\u4451on;\u412ff;\uc000\ud835\udd5aa;\u43b9uest\u803b\xbf\u40bf\u0100ci\u238a\u238fr;\uc000\ud835\udcben\u0280;Edsv\u04f4\u239b\u239d\u23a1\u04f3;\u62f9ot;\u62f5\u0100;v\u23a6\u23a7\u62f4;\u62f3\u0100;i\u0777\u23aelde;\u4129\u01eb\u23b8\0\u23bccy;\u4456l\u803b\xef\u40ef\u0300cfmosu\u23cc\u23d7\u23dc\u23e1\u23e7\u23f5\u0100iy\u23d1\u23d5rc;\u4135;\u4439r;\uc000\ud835\udd27ath;\u4237pf;\uc000\ud835\udd5b\u01e3\u23ec\0\u23f1r;\uc000\ud835\udcbfrcy;\u4458kcy;\u4454\u0400acfghjos\u240b\u2416\u2422\u2427\u242d\u2431\u2435\u243bppa\u0100;v\u2413\u2414\u43ba;\u43f0\u0100ey\u241b\u2420dil;\u4137;\u443ar;\uc000\ud835\udd28reen;\u4138cy;\u4445cy;\u445cpf;\uc000\ud835\udd5ccr;\uc000\ud835\udcc0\u0b80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248d\u2491\u250e\u253d\u255a\u2580\u264e\u265e\u2665\u2679\u267d\u269a\u26b2\u26d8\u275d\u2768\u278b\u27c0\u2801\u2812\u0180art\u2477\u247a\u247cr\xf2\u09c6\xf2\u0395ail;\u691barr;\u690e\u0100;g\u0994\u248b;\u6a8bar;\u6962\u0963\u24a5\0\u24aa\0\u24b1\0\0\0\0\0\u24b5\u24ba\0\u24c6\u24c8\u24cd\0\u24f9ute;\u413amptyv;\u69b4ra\xee\u084cbda;\u43bbg\u0180;dl\u088e\u24c1\u24c3;\u6991\xe5\u088e;\u6a85uo\u803b\xab\u40abr\u0400;bfhlpst\u0899\u24de\u24e6\u24e9\u24eb\u24ee\u24f1\u24f5\u0100;f\u089d\u24e3s;\u691fs;\u691d\xeb\u2252p;\u61abl;\u6939im;\u6973l;\u61a2\u0180;ae\u24ff\u2500\u2504\u6aabil;\u6919\u0100;s\u2509\u250a\u6aad;\uc000\u2aad\ufe00\u0180abr\u2515\u2519\u251drr;\u690crk;\u6772\u0100ak\u2522\u252cc\u0100ek\u2528\u252a;\u407b;\u405b\u0100es\u2531\u2533;\u698bl\u0100du\u2539\u253b;\u698f;\u698d\u0200aeuy\u2546\u254b\u2556\u2558ron;\u413e\u0100di\u2550\u2554il;\u413c\xec\u08b0\xe2\u2529;\u443b\u0200cqrs\u2563\u2566\u256d\u257da;\u6936uo\u0100;r\u0e19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694bh;\u61b2\u0280;fgqs\u258b\u258c\u0989\u25f3\u25ff\u6264t\u0280ahlrt\u2598\u25a4\u25b7\u25c2\u25e8rrow\u0100;t\u0899\u25a1a\xe9\u24f6arpoon\u0100du\u25af\u25b4own\xbb\u045ap\xbb\u0966eftarrows;\u61c7ight\u0180ahs\u25cd\u25d6\u25derrow\u0100;s\u08f4\u08a7arpoon\xf3\u0f98quigarro\xf7\u21f0hreetimes;\u62cb\u0180;qs\u258b\u0993\u25falan\xf4\u09ac\u0280;cdgs\u09ac\u260a\u260d\u261d\u2628c;\u6aa8ot\u0100;o\u2614\u2615\u6a7f\u0100;r\u261a\u261b\u6a81;\u6a83\u0100;e\u2622\u2625\uc000\u22da\ufe00s;\u6a93\u0280adegs\u2633\u2639\u263d\u2649\u264bppro\xf8\u24c6ot;\u62d6q\u0100gq\u2643\u2645\xf4\u0989gt\xf2\u248c\xf4\u099bi\xed\u09b2\u0180ilr\u2655\u08e1\u265asht;\u697c;\uc000\ud835\udd29\u0100;E\u099c\u2663;\u6a91\u0161\u2669\u2676r\u0100du\u25b2\u266e\u0100;l\u0965\u2673;\u696alk;\u6584cy;\u4459\u0280;acht\u0a48\u2688\u268b\u2691\u2696r\xf2\u25c1orne\xf2\u1d08ard;\u696bri;\u65fa\u0100io\u269f\u26a4dot;\u4140ust\u0100;a\u26ac\u26ad\u63b0che\xbb\u26ad\u0200Eaes\u26bb\u26bd\u26c9\u26d4;\u6268p\u0100;p\u26c3\u26c4\u6a89rox\xbb\u26c4\u0100;q\u26ce\u26cf\u6a87\u0100;q\u26ce\u26bbim;\u62e6\u0400abnoptwz\u26e9\u26f4\u26f7\u271a\u272f\u2741\u2747\u2750\u0100nr\u26ee\u26f1g;\u67ecr;\u61fdr\xeb\u08c1g\u0180lmr\u26ff\u270d\u2714eft\u0100ar\u09e6\u2707ight\xe1\u09f2apsto;\u67fcight\xe1\u09fdparrow\u0100lr\u2725\u2729ef\xf4\u24edight;\u61ac\u0180afl\u2736\u2739\u273dr;\u6985;\uc000\ud835\udd5dus;\u6a2dimes;\u6a34\u0161\u274b\u274fst;\u6217\xe1\u134e\u0180;ef\u2757\u2758\u1800\u65cange\xbb\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277c\u2785\u2787r\xf2\u08a8orne\xf2\u1d8car\u0100;d\u0f98\u2783;\u696d;\u600eri;\u62bf\u0300achiqt\u2798\u279d\u0a40\u27a2\u27ae\u27bbquo;\u6039r;\uc000\ud835\udcc1m\u0180;eg\u09b2\u27aa\u27ac;\u6a8d;\u6a8f\u0100bu\u252a\u27b3o\u0100;r\u0e1f\u27b9;\u601arok;\u4142\u8400<;cdhilqr\u082b\u27d2\u2639\u27dc\u27e0\u27e5\u27ea\u27f0\u0100ci\u27d7\u27d9;\u6aa6r;\u6a79re\xe5\u25f2mes;\u62c9arr;\u6976uest;\u6a7b\u0100Pi\u27f5\u27f9ar;\u6996\u0180;ef\u2800\u092d\u181b\u65c3r\u0100du\u2807\u280dshar;\u694ahar;\u6966\u0100en\u2817\u2821rtneqq;\uc000\u2268\ufe00\xc5\u281e\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288e\u2893\u28a0\u28a5\u28a8\u28da\u28e2\u28e4\u0a83\u28f3\u2902Dot;\u623a\u0200clpr\u284e\u2852\u2863\u287dr\u803b\xaf\u40af\u0100et\u2857\u2859;\u6642\u0100;e\u285e\u285f\u6720se\xbb\u285f\u0100;s\u103b\u2868to\u0200;dlu\u103b\u2873\u2877\u287bow\xee\u048cef\xf4\u090f\xf0\u13d1ker;\u65ae\u0100oy\u2887\u288cmma;\u6a29;\u443cash;\u6014asuredangle\xbb\u1626r;\uc000\ud835\udd2ao;\u6127\u0180cdn\u28af\u28b4\u28c9ro\u803b\xb5\u40b5\u0200;acd\u1464\u28bd\u28c0\u28c4s\xf4\u16a7ir;\u6af0ot\u80bb\xb7\u01b5us\u0180;bd\u28d2\u1903\u28d3\u6212\u0100;u\u1d3c\u28d8;\u6a2a\u0163\u28de\u28e1p;\u6adb\xf2\u2212\xf0\u0a81\u0100dp\u28e9\u28eeels;\u62a7f;\uc000\ud835\udd5e\u0100ct\u28f8\u28fdr;\uc000\ud835\udcc2pos\xbb\u159d\u0180;lm\u2909\u290a\u290d\u43bctimap;\u62b8\u0c00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297e\u2989\u2998\u29da\u29e9\u2a15\u2a1a\u2a58\u2a5d\u2a83\u2a95\u2aa4\u2aa8\u2b04\u2b07\u2b44\u2b7f\u2bae\u2c34\u2c67\u2c7c\u2ce9\u0100gt\u2947\u294b;\uc000\u22d9\u0338\u0100;v\u2950\u0bcf\uc000\u226b\u20d2\u0180elt\u295a\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61cdightarrow;\u61ce;\uc000\u22d8\u0338\u0100;v\u297b\u0c47\uc000\u226a\u20d2ightarrow;\u61cf\u0100Dd\u298e\u2993ash;\u62afash;\u62ae\u0280bcnpt\u29a3\u29a7\u29ac\u29b1\u29ccla\xbb\u02deute;\u4144g;\uc000\u2220\u20d2\u0280;Eiop\u0d84\u29bc\u29c0\u29c5\u29c8;\uc000\u2a70\u0338d;\uc000\u224b\u0338s;\u4149ro\xf8\u0d84ur\u0100;a\u29d3\u29d4\u666el\u0100;s\u29d3\u0b38\u01f3\u29df\0\u29e3p\u80bb\xa0\u0b37mp\u0100;e\u0bf9\u0c00\u0280aeouy\u29f4\u29fe\u2a03\u2a10\u2a13\u01f0\u29f9\0\u29fb;\u6a43on;\u4148dil;\u4146ng\u0100;d\u0d7e\u2a0aot;\uc000\u2a6d\u0338p;\u6a42;\u443dash;\u6013\u0380;Aadqsx\u0b92\u2a29\u2a2d\u2a3b\u2a41\u2a45\u2a50rr;\u61d7r\u0100hr\u2a33\u2a36k;\u6924\u0100;o\u13f2\u13f0ot;\uc000\u2250\u0338ui\xf6\u0b63\u0100ei\u2a4a\u2a4ear;\u6928\xed\u0b98ist\u0100;s\u0ba0\u0b9fr;\uc000\ud835\udd2b\u0200Eest\u0bc5\u2a66\u2a79\u2a7c\u0180;qs\u0bbc\u2a6d\u0be1\u0180;qs\u0bbc\u0bc5\u2a74lan\xf4\u0be2i\xed\u0bea\u0100;r\u0bb6\u2a81\xbb\u0bb7\u0180Aap\u2a8a\u2a8d\u2a91r\xf2\u2971rr;\u61aear;\u6af2\u0180;sv\u0f8d\u2a9c\u0f8c\u0100;d\u2aa1\u2aa2\u62fc;\u62facy;\u445a\u0380AEadest\u2ab7\u2aba\u2abe\u2ac2\u2ac5\u2af6\u2af9r\xf2\u2966;\uc000\u2266\u0338rr;\u619ar;\u6025\u0200;fqs\u0c3b\u2ace\u2ae3\u2aeft\u0100ar\u2ad4\u2ad9rro\xf7\u2ac1ightarro\xf7\u2a90\u0180;qs\u0c3b\u2aba\u2aealan\xf4\u0c55\u0100;s\u0c55\u2af4\xbb\u0c36i\xed\u0c5d\u0100;r\u0c35\u2afei\u0100;e\u0c1a\u0c25i\xe4\u0d90\u0100pt\u2b0c\u2b11f;\uc000\ud835\udd5f\u8180\xac;in\u2b19\u2b1a\u2b36\u40acn\u0200;Edv\u0b89\u2b24\u2b28\u2b2e;\uc000\u22f9\u0338ot;\uc000\u22f5\u0338\u01e1\u0b89\u2b33\u2b35;\u62f7;\u62f6i\u0100;v\u0cb8\u2b3c\u01e1\u0cb8\u2b41\u2b43;\u62fe;\u62fd\u0180aor\u2b4b\u2b63\u2b69r\u0200;ast\u0b7b\u2b55\u2b5a\u2b5flle\xec\u0b7bl;\uc000\u2afd\u20e5;\uc000\u2202\u0338lint;\u6a14\u0180;ce\u0c92\u2b70\u2b73u\xe5\u0ca5\u0100;c\u0c98\u2b78\u0100;e\u0c92\u2b7d\xf1\u0c98\u0200Aait\u2b88\u2b8b\u2b9d\u2ba7r\xf2\u2988rr\u0180;cw\u2b94\u2b95\u2b99\u619b;\uc000\u2933\u0338;\uc000\u219d\u0338ghtarrow\xbb\u2b95ri\u0100;e\u0ccb\u0cd6\u0380chimpqu\u2bbd\u2bcd\u2bd9\u2b04\u0b78\u2be4\u2bef\u0200;cer\u0d32\u2bc6\u0d37\u2bc9u\xe5\u0d45;\uc000\ud835\udcc3ort\u026d\u2b05\0\0\u2bd6ar\xe1\u2b56m\u0100;e\u0d6e\u2bdf\u0100;q\u0d74\u0d73su\u0100bp\u2beb\u2bed\xe5\u0cf8\xe5\u0d0b\u0180bcp\u2bf6\u2c11\u2c19\u0200;Ees\u2bff\u2c00\u0d22\u2c04\u6284;\uc000\u2ac5\u0338et\u0100;e\u0d1b\u2c0bq\u0100;q\u0d23\u2c00c\u0100;e\u0d32\u2c17\xf1\u0d38\u0200;Ees\u2c22\u2c23\u0d5f\u2c27\u6285;\uc000\u2ac6\u0338et\u0100;e\u0d58\u2c2eq\u0100;q\u0d60\u2c23\u0200gilr\u2c3d\u2c3f\u2c45\u2c47\xec\u0bd7lde\u803b\xf1\u40f1\xe7\u0c43iangle\u0100lr\u2c52\u2c5ceft\u0100;e\u0c1a\u2c5a\xf1\u0c26ight\u0100;e\u0ccb\u2c65\xf1\u0cd7\u0100;m\u2c6c\u2c6d\u43bd\u0180;es\u2c74\u2c75\u2c79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2c8f\u2c94\u2c99\u2c9e\u2ca3\u2cb0\u2cb6\u2cd3\u2ce3ash;\u62adarr;\u6904p;\uc000\u224d\u20d2ash;\u62ac\u0100et\u2ca8\u2cac;\uc000\u2265\u20d2;\uc000>\u20d2nfin;\u69de\u0180Aet\u2cbd\u2cc1\u2cc5rr;\u6902;\uc000\u2264\u20d2\u0100;r\u2cca\u2ccd\uc000<\u20d2ie;\uc000\u22b4\u20d2\u0100At\u2cd8\u2cdcrr;\u6903rie;\uc000\u22b5\u20d2im;\uc000\u223c\u20d2\u0180Aan\u2cf0\u2cf4\u2d02rr;\u61d6r\u0100hr\u2cfa\u2cfdk;\u6923\u0100;o\u13e7\u13e5ear;\u6927\u1253\u1a95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2d2d\0\u2d38\u2d48\u2d60\u2d65\u2d72\u2d84\u1b07\0\0\u2d8d\u2dab\0\u2dc8\u2dce\0\u2ddc\u2e19\u2e2b\u2e3e\u2e43\u0100cs\u2d31\u1a97ute\u803b\xf3\u40f3\u0100iy\u2d3c\u2d45r\u0100;c\u1a9e\u2d42\u803b\xf4\u40f4;\u443e\u0280abios\u1aa0\u2d52\u2d57\u01c8\u2d5alac;\u4151v;\u6a38old;\u69bclig;\u4153\u0100cr\u2d69\u2d6dir;\u69bf;\uc000\ud835\udd2c\u036f\u2d79\0\0\u2d7c\0\u2d82n;\u42dbave\u803b\xf2\u40f2;\u69c1\u0100bm\u2d88\u0df4ar;\u69b5\u0200acit\u2d95\u2d98\u2da5\u2da8r\xf2\u1a80\u0100ir\u2d9d\u2da0r;\u69beoss;\u69bbn\xe5\u0e52;\u69c0\u0180aei\u2db1\u2db5\u2db9cr;\u414dga;\u43c9\u0180cdn\u2dc0\u2dc5\u01cdron;\u43bf;\u69b6pf;\uc000\ud835\udd60\u0180ael\u2dd4\u2dd7\u01d2r;\u69b7rp;\u69b9\u0380;adiosv\u2dea\u2deb\u2dee\u2e08\u2e0d\u2e10\u2e16\u6228r\xf2\u1a86\u0200;efm\u2df7\u2df8\u2e02\u2e05\u6a5dr\u0100;o\u2dfe\u2dff\u6134f\xbb\u2dff\u803b\xaa\u40aa\u803b\xba\u40bagof;\u62b6r;\u6a56lope;\u6a57;\u6a5b\u0180clo\u2e1f\u2e21\u2e27\xf2\u2e01ash\u803b\xf8\u40f8l;\u6298i\u016c\u2e2f\u2e34de\u803b\xf5\u40f5es\u0100;a\u01db\u2e3as;\u6a36ml\u803b\xf6\u40f6bar;\u633d\u0ae1\u2e5e\0\u2e7d\0\u2e80\u2e9d\0\u2ea2\u2eb9\0\0\u2ecb\u0e9c\0\u2f13\0\0\u2f2b\u2fbc\0\u2fc8r\u0200;ast\u0403\u2e67\u2e72\u0e85\u8100\xb6;l\u2e6d\u2e6e\u40b6le\xec\u0403\u0269\u2e78\0\0\u2e7bm;\u6af3;\u6afdy;\u443fr\u0280cimpt\u2e8b\u2e8f\u2e93\u1865\u2e97nt;\u4025od;\u402eil;\u6030enk;\u6031r;\uc000\ud835\udd2d\u0180imo\u2ea8\u2eb0\u2eb4\u0100;v\u2ead\u2eae\u43c6;\u43d5ma\xf4\u0a76ne;\u660e\u0180;tv\u2ebf\u2ec0\u2ec8\u43c0chfork\xbb\u1ffd;\u43d6\u0100au\u2ecf\u2edfn\u0100ck\u2ed5\u2eddk\u0100;h\u21f4\u2edb;\u610e\xf6\u21f4s\u0480;abcdemst\u2ef3\u2ef4\u1908\u2ef9\u2efd\u2f04\u2f06\u2f0a\u2f0e\u402bcir;\u6a23ir;\u6a22\u0100ou\u1d40\u2f02;\u6a25;\u6a72n\u80bb\xb1\u0e9dim;\u6a26wo;\u6a27\u0180ipu\u2f19\u2f20\u2f25ntint;\u6a15f;\uc000\ud835\udd61nd\u803b\xa3\u40a3\u0500;Eaceinosu\u0ec8\u2f3f\u2f41\u2f44\u2f47\u2f81\u2f89\u2f92\u2f7e\u2fb6;\u6ab3p;\u6ab7u\xe5\u0ed9\u0100;c\u0ece\u2f4c\u0300;acens\u0ec8\u2f59\u2f5f\u2f66\u2f68\u2f7eppro\xf8\u2f43urlye\xf1\u0ed9\xf1\u0ece\u0180aes\u2f6f\u2f76\u2f7approx;\u6ab9qq;\u6ab5im;\u62e8i\xed\u0edfme\u0100;s\u2f88\u0eae\u6032\u0180Eas\u2f78\u2f90\u2f7a\xf0\u2f75\u0180dfp\u0eec\u2f99\u2faf\u0180als\u2fa0\u2fa5\u2faalar;\u632eine;\u6312urf;\u6313\u0100;t\u0efb\u2fb4\xef\u0efbrel;\u62b0\u0100ci\u2fc0\u2fc5r;\uc000\ud835\udcc5;\u43c8ncsp;\u6008\u0300fiopsu\u2fda\u22e2\u2fdf\u2fe5\u2feb\u2ff1r;\uc000\ud835\udd2epf;\uc000\ud835\udd62rime;\u6057cr;\uc000\ud835\udcc6\u0180aeo\u2ff8\u3009\u3013t\u0100ei\u2ffe\u3005rnion\xf3\u06b0nt;\u6a16st\u0100;e\u3010\u3011\u403f\xf1\u1f19\xf4\u0f14\u0a80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30e0\u310e\u312b\u3147\u3162\u3172\u318e\u3206\u3215\u3224\u3229\u3258\u326e\u3272\u3290\u32b0\u32b7\u0180art\u3047\u304a\u304cr\xf2\u10b3\xf2\u03ddail;\u691car\xf2\u1c65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307f\u308f\u3094\u30cc\u0100eu\u306d\u3071;\uc000\u223d\u0331te;\u4155i\xe3\u116emptyv;\u69b3g\u0200;del\u0fd1\u3089\u308b\u308d;\u6992;\u69a5\xe5\u0fd1uo\u803b\xbb\u40bbr\u0580;abcfhlpstw\u0fdc\u30ac\u30af\u30b7\u30b9\u30bc\u30be\u30c0\u30c3\u30c7\u30cap;\u6975\u0100;f\u0fe0\u30b4s;\u6920;\u6933s;\u691e\xeb\u225d\xf0\u272el;\u6945im;\u6974l;\u61a3;\u619d\u0100ai\u30d1\u30d5il;\u691ao\u0100;n\u30db\u30dc\u6236al\xf3\u0f1e\u0180abr\u30e7\u30ea\u30eer\xf2\u17e5rk;\u6773\u0100ak\u30f3\u30fdc\u0100ek\u30f9\u30fb;\u407d;\u405d\u0100es\u3102\u3104;\u698cl\u0100du\u310a\u310c;\u698e;\u6990\u0200aeuy\u3117\u311c\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xec\u0ff2\xe2\u30fa;\u4440\u0200clqs\u3134\u3137\u313d\u3144a;\u6937dhar;\u6969uo\u0100;r\u020e\u020dh;\u61b3\u0180acg\u314e\u315f\u0f44l\u0200;ips\u0f78\u3158\u315b\u109cn\xe5\u10bbar\xf4\u0fa9t;\u65ad\u0180ilr\u3169\u1023\u316esht;\u697d;\uc000\ud835\udd2f\u0100ao\u3177\u3186r\u0100du\u317d\u317f\xbb\u047b\u0100;l\u1091\u3184;\u696c\u0100;v\u318b\u318c\u43c1;\u43f1\u0180gns\u3195\u31f9\u31fcht\u0300ahlrst\u31a4\u31b0\u31c2\u31d8\u31e4\u31eerrow\u0100;t\u0fdc\u31ada\xe9\u30c8arpoon\u0100du\u31bb\u31bfow\xee\u317ep\xbb\u1092eft\u0100ah\u31ca\u31d0rrow\xf3\u0feaarpoon\xf3\u0551ightarrows;\u61c9quigarro\xf7\u30cbhreetimes;\u62ccg;\u42daingdotse\xf1\u1f32\u0180ahm\u320d\u3210\u3213r\xf2\u0feaa\xf2\u0551;\u600foust\u0100;a\u321e\u321f\u63b1che\xbb\u321fmid;\u6aee\u0200abpt\u3232\u323d\u3240\u3252\u0100nr\u3237\u323ag;\u67edr;\u61fer\xeb\u1003\u0180afl\u3247\u324a\u324er;\u6986;\uc000\ud835\udd63us;\u6a2eimes;\u6a35\u0100ap\u325d\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6a12ar\xf2\u31e3\u0200achq\u327b\u3280\u10bc\u3285quo;\u603ar;\uc000\ud835\udcc7\u0100bu\u30fb\u328ao\u0100;r\u0214\u0213\u0180hir\u3297\u329b\u32a0re\xe5\u31f8mes;\u62cai\u0200;efl\u32aa\u1059\u1821\u32ab\u65b9tri;\u69celuhar;\u6968;\u611e\u0d61\u32d5\u32db\u32df\u332c\u3338\u3371\0\u337a\u33a4\0\0\u33ec\u33f0\0\u3428\u3448\u345a\u34ad\u34b1\u34ca\u34f1\0\u3616\0\0\u3633cute;\u415bqu\xef\u27ba\u0500;Eaceinpsy\u11ed\u32f3\u32f5\u32ff\u3302\u330b\u330f\u331f\u3326\u3329;\u6ab4\u01f0\u32fa\0\u32fc;\u6ab8on;\u4161u\xe5\u11fe\u0100;d\u11f3\u3307il;\u415frc;\u415d\u0180Eas\u3316\u3318\u331b;\u6ab6p;\u6abaim;\u62e9olint;\u6a13i\xed\u1204;\u4441ot\u0180;be\u3334\u1d47\u3335\u62c5;\u6a66\u0380Aacmstx\u3346\u334a\u3357\u335b\u335e\u3363\u336drr;\u61d8r\u0100hr\u3350\u3352\xeb\u2228\u0100;o\u0a36\u0a34t\u803b\xa7\u40a7i;\u403bwar;\u6929m\u0100in\u3369\xf0nu\xf3\xf1t;\u6736r\u0100;o\u3376\u2055\uc000\ud835\udd30\u0200acoy\u3382\u3386\u3391\u33a0rp;\u666f\u0100hy\u338b\u338fcy;\u4449;\u4448rt\u026d\u3399\0\0\u339ci\xe4\u1464ara\xec\u2e6f\u803b\xad\u40ad\u0100gm\u33a8\u33b4ma\u0180;fv\u33b1\u33b2\u33b2\u43c3;\u43c2\u0400;deglnpr\u12ab\u33c5\u33c9\u33ce\u33d6\u33de\u33e1\u33e6ot;\u6a6a\u0100;q\u12b1\u12b0\u0100;E\u33d3\u33d4\u6a9e;\u6aa0\u0100;E\u33db\u33dc\u6a9d;\u6a9fe;\u6246lus;\u6a24arr;\u6972ar\xf2\u113d\u0200aeit\u33f8\u3408\u340f\u3417\u0100ls\u33fd\u3404lsetm\xe9\u336ahp;\u6a33parsl;\u69e4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341c\u341d\u6aaa\u0100;s\u3422\u3423\u6aac;\uc000\u2aac\ufe00\u0180flp\u342e\u3433\u3442tcy;\u444c\u0100;b\u3438\u3439\u402f\u0100;a\u343e\u343f\u69c4r;\u633ff;\uc000\ud835\udd64a\u0100dr\u344d\u0402es\u0100;u\u3454\u3455\u6660it\xbb\u3455\u0180csu\u3460\u3479\u349f\u0100au\u3465\u346fp\u0100;s\u1188\u346b;\uc000\u2293\ufe00p\u0100;s\u11b4\u3475;\uc000\u2294\ufe00u\u0100bp\u347f\u348f\u0180;es\u1197\u119c\u3486et\u0100;e\u1197\u348d\xf1\u119d\u0180;es\u11a8\u11ad\u3496et\u0100;e\u11a8\u349d\xf1\u11ae\u0180;af\u117b\u34a6\u05b0r\u0165\u34ab\u05b1\xbb\u117car\xf2\u1148\u0200cemt\u34b9\u34be\u34c2\u34c5r;\uc000\ud835\udcc8tm\xee\xf1i\xec\u3415ar\xe6\u11be\u0100ar\u34ce\u34d5r\u0100;f\u34d4\u17bf\u6606\u0100an\u34da\u34edight\u0100ep\u34e3\u34eapsilo\xee\u1ee0h\xe9\u2eafs\xbb\u2852\u0280bcmnp\u34fb\u355e\u1209\u358b\u358e\u0480;Edemnprs\u350e\u350f\u3511\u3515\u351e\u3523\u352c\u3531\u3536\u6282;\u6ac5ot;\u6abd\u0100;d\u11da\u351aot;\u6ac3ult;\u6ac1\u0100Ee\u3528\u352a;\u6acb;\u628alus;\u6abfarr;\u6979\u0180eiu\u353d\u3552\u3555t\u0180;en\u350e\u3545\u354bq\u0100;q\u11da\u350feq\u0100;q\u352b\u3528m;\u6ac7\u0100bp\u355a\u355c;\u6ad5;\u6ad3c\u0300;acens\u11ed\u356c\u3572\u3579\u357b\u3326ppro\xf8\u32faurlye\xf1\u11fe\xf1\u11f3\u0180aes\u3582\u3588\u331bppro\xf8\u331aq\xf1\u3317g;\u666a\u0680123;Edehlmnps\u35a9\u35ac\u35af\u121c\u35b2\u35b4\u35c0\u35c9\u35d5\u35da\u35df\u35e8\u35ed\u803b\xb9\u40b9\u803b\xb2\u40b2\u803b\xb3\u40b3;\u6ac6\u0100os\u35b9\u35bct;\u6abeub;\u6ad8\u0100;d\u1222\u35c5ot;\u6ac4s\u0100ou\u35cf\u35d2l;\u67c9b;\u6ad7arr;\u697bult;\u6ac2\u0100Ee\u35e4\u35e6;\u6acc;\u628blus;\u6ac0\u0180eiu\u35f4\u3609\u360ct\u0180;en\u121c\u35fc\u3602q\u0100;q\u1222\u35b2eq\u0100;q\u35e7\u35e4m;\u6ac8\u0100bp\u3611\u3613;\u6ad4;\u6ad6\u0180Aan\u361c\u3620\u362drr;\u61d9r\u0100hr\u3626\u3628\xeb\u222e\u0100;o\u0a2b\u0a29war;\u692alig\u803b\xdf\u40df\u0be1\u3651\u365d\u3660\u12ce\u3673\u3679\0\u367e\u36c2\0\0\0\0\0\u36db\u3703\0\u3709\u376c\0\0\0\u3787\u0272\u3656\0\0\u365bget;\u6316;\u43c4r\xeb\u0e5f\u0180aey\u3666\u366b\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uc000\ud835\udd31\u0200eiko\u3686\u369d\u36b5\u36bc\u01f2\u368b\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369b\u43b8ym;\u43d1\u0100cn\u36a2\u36b2k\u0100as\u36a8\u36aeppro\xf8\u12c1im\xbb\u12acs\xf0\u129e\u0100as\u36ba\u36ae\xf0\u12c1rn\u803b\xfe\u40fe\u01ec\u031f\u36c6\u22e7es\u8180\xd7;bd\u36cf\u36d0\u36d8\u40d7\u0100;a\u190f\u36d5r;\u6a31;\u6a30\u0180eps\u36e1\u36e3\u3700\xe1\u2a4d\u0200;bcf\u0486\u36ec\u36f0\u36f4ot;\u6336ir;\u6af1\u0100;o\u36f9\u36fc\uc000\ud835\udd65rk;\u6ada\xe1\u3362rime;\u6034\u0180aip\u370f\u3712\u3764d\xe5\u1248\u0380adempst\u3721\u374d\u3740\u3751\u3757\u375c\u375fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65b5own\xbb\u1dbbeft\u0100;e\u2800\u373e\xf1\u092e;\u625cight\u0100;e\u32aa\u374b\xf1\u105aot;\u65ecinus;\u6a3alus;\u6a39b;\u69cdime;\u6a3bezium;\u63e2\u0180cht\u3772\u377d\u3781\u0100ry\u3777\u377b;\uc000\ud835\udcc9;\u4446cy;\u445brok;\u4167\u0100io\u378b\u378ex\xf4\u1777head\u0100lr\u3797\u37a0eftarro\xf7\u084fightarrow\xbb\u0f5d\u0900AHabcdfghlmoprstuw\u37d0\u37d3\u37d7\u37e4\u37f0\u37fc\u380e\u381c\u3823\u3834\u3851\u385d\u386b\u38a9\u38cc\u38d2\u38ea\u38f6r\xf2\u03edar;\u6963\u0100cr\u37dc\u37e2ute\u803b\xfa\u40fa\xf2\u1150r\u01e3\u37ea\0\u37edy;\u445eve;\u416d\u0100iy\u37f5\u37farc\u803b\xfb\u40fb;\u4443\u0180abh\u3803\u3806\u380br\xf2\u13adlac;\u4171a\xf2\u13c3\u0100ir\u3813\u3818sht;\u697e;\uc000\ud835\udd32rave\u803b\xf9\u40f9\u0161\u3827\u3831r\u0100lr\u382c\u382e\xbb\u0957\xbb\u1083lk;\u6580\u0100ct\u3839\u384d\u026f\u383f\0\0\u384arn\u0100;e\u3845\u3846\u631cr\xbb\u3846op;\u630fri;\u65f8\u0100al\u3856\u385acr;\u416b\u80bb\xa8\u0349\u0100gp\u3862\u3866on;\u4173f;\uc000\ud835\udd66\u0300adhlsu\u114b\u3878\u387d\u1372\u3891\u38a0own\xe1\u13b3arpoon\u0100lr\u3888\u388cef\xf4\u382digh\xf4\u382fi\u0180;hl\u3899\u389a\u389c\u43c5\xbb\u13faon\xbb\u389aparrows;\u61c8\u0180cit\u38b0\u38c4\u38c8\u026f\u38b6\0\0\u38c1rn\u0100;e\u38bc\u38bd\u631dr\xbb\u38bdop;\u630eng;\u416fri;\u65f9cr;\uc000\ud835\udcca\u0180dir\u38d9\u38dd\u38e2ot;\u62f0lde;\u4169i\u0100;f\u3730\u38e8\xbb\u1813\u0100am\u38ef\u38f2r\xf2\u38a8l\u803b\xfc\u40fcangle;\u69a7\u0780ABDacdeflnoprsz\u391c\u391f\u3929\u392d\u39b5\u39b8\u39bd\u39df\u39e4\u39e8\u39f3\u39f9\u39fd\u3a01\u3a20r\xf2\u03f7ar\u0100;v\u3926\u3927\u6ae8;\u6ae9as\xe8\u03e1\u0100nr\u3932\u3937grt;\u699c\u0380eknprst\u34e3\u3946\u394b\u3952\u395d\u3964\u3996app\xe1\u2415othin\xe7\u1e96\u0180hir\u34eb\u2ec8\u3959op\xf4\u2fb5\u0100;h\u13b7\u3962\xef\u318d\u0100iu\u3969\u396dgm\xe1\u33b3\u0100bp\u3972\u3984setneq\u0100;q\u397d\u3980\uc000\u228a\ufe00;\uc000\u2acb\ufe00setneq\u0100;q\u398f\u3992\uc000\u228b\ufe00;\uc000\u2acc\ufe00\u0100hr\u399b\u399fet\xe1\u369ciangle\u0100lr\u39aa\u39afeft\xbb\u0925ight\xbb\u1051y;\u4432ash\xbb\u1036\u0180elr\u39c4\u39d2\u39d7\u0180;be\u2dea\u39cb\u39cfar;\u62bbq;\u625alip;\u62ee\u0100bt\u39dc\u1468a\xf2\u1469r;\uc000\ud835\udd33tr\xe9\u39aesu\u0100bp\u39ef\u39f1\xbb\u0d1c\xbb\u0d59pf;\uc000\ud835\udd67ro\xf0\u0efbtr\xe9\u39b4\u0100cu\u3a06\u3a0br;\uc000\ud835\udccb\u0100bp\u3a10\u3a18n\u0100Ee\u3980\u3a16\xbb\u397en\u0100Ee\u3992\u3a1e\xbb\u3990igzag;\u699a\u0380cefoprs\u3a36\u3a3b\u3a56\u3a5b\u3a54\u3a61\u3a6airc;\u4175\u0100di\u3a40\u3a51\u0100bg\u3a45\u3a49ar;\u6a5fe\u0100;q\u15fa\u3a4f;\u6259erp;\u6118r;\uc000\ud835\udd34pf;\uc000\ud835\udd68\u0100;e\u1479\u3a66at\xe8\u1479cr;\uc000\ud835\udccc\u0ae3\u178e\u3a87\0\u3a8b\0\u3a90\u3a9b\0\0\u3a9d\u3aa8\u3aab\u3aaf\0\0\u3ac3\u3ace\0\u3ad8\u17dc\u17dftr\xe9\u17d1r;\uc000\ud835\udd35\u0100Aa\u3a94\u3a97r\xf2\u03c3r\xf2\u09f6;\u43be\u0100Aa\u3aa1\u3aa4r\xf2\u03b8r\xf2\u09eba\xf0\u2713is;\u62fb\u0180dpt\u17a4\u3ab5\u3abe\u0100fl\u3aba\u17a9;\uc000\ud835\udd69im\xe5\u17b2\u0100Aa\u3ac7\u3acar\xf2\u03cer\xf2\u0a01\u0100cq\u3ad2\u17b8r;\uc000\ud835\udccd\u0100pt\u17d6\u3adcr\xe9\u17d4\u0400acefiosu\u3af0\u3afd\u3b08\u3b0c\u3b11\u3b15\u3b1b\u3b21c\u0100uy\u3af6\u3afbte\u803b\xfd\u40fd;\u444f\u0100iy\u3b02\u3b06rc;\u4177;\u444bn\u803b\xa5\u40a5r;\uc000\ud835\udd36cy;\u4457pf;\uc000\ud835\udd6acr;\uc000\ud835\udcce\u0100cm\u3b26\u3b29y;\u444el\u803b\xff\u40ff\u0500acdefhiosw\u3b42\u3b48\u3b54\u3b58\u3b64\u3b69\u3b6d\u3b74\u3b7a\u3b80cute;\u417a\u0100ay\u3b4d\u3b52ron;\u417e;\u4437ot;\u417c\u0100et\u3b5d\u3b61tr\xe6\u155fa;\u43b6r;\uc000\ud835\udd37cy;\u4436grarr;\u61ddpf;\uc000\ud835\udd6bcr;\uc000\ud835\udccf\u0100jn\u3b85\u3b87;\u600dj;\u600c'.split("").map((e=>e.charCodeAt(0)))),Or=new Uint16Array("\u0200aglq\t\x15\x18\x1b\u026d\x0f\0\0\x12p;\u4026os;\u4027t;\u403et;\u403cuot;\u4022".split("").map((e=>e.charCodeAt(0))));var Fr;const Br=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Lr=null!==(Fr=String.fromCodePoint)&&void 0!==Fr?Fr:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};function Mr(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=Br.get(e))&&void 0!==t?t:e}var Ur;!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(Ur||(Ur={}));var Hr,Gr,qr;function Wr(e){return e>=Ur.ZERO&&e<=Ur.NINE}function zr(e){return e>=Ur.UPPER_A&&e<=Ur.UPPER_F||e>=Ur.LOWER_A&&e<=Ur.LOWER_F}function Vr(e){return e===Ur.EQUALS||function(e){return e>=Ur.UPPER_A&&e<=Ur.UPPER_Z||e>=Ur.LOWER_A&&e<=Ur.LOWER_Z||Wr(e)}(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(Hr||(Hr={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(Gr||(Gr={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(qr||(qr={}));class Kr{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=Gr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=qr.Strict}startEntity(e){this.decodeMode=e,this.state=Gr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case Gr.EntityStart:return e.charCodeAt(t)===Ur.NUM?(this.state=Gr.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Gr.NamedEntity,this.stateNamedEntity(e,t));case Gr.NumericStart:return this.stateNumericStart(e,t);case Gr.NumericDecimal:return this.stateNumericDecimal(e,t);case Gr.NumericHex:return this.stateNumericHex(e,t);case Gr.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===Ur.LOWER_X?(this.state=Gr.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=Gr.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,r,a){if(t!==r){const n=r-t;this.result=this.result*Math.pow(a,n)+parseInt(e.substr(t,n),a),this.consumed+=n}}stateNumericHex(e,t){const r=t;for(;t>14;for(;t>14,0!==n){if(s===Ur.SEMI)return this.emitNamedEntityData(this.treeIndex,n,this.consumed+this.excess);this.decodeMode!==qr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:r}=this,a=(r[t]&Hr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,a,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){const{decodeTree:a}=this;return this.emitCodePoint(1===t?a[e]&~Hr.VALUE_LENGTH:a[e+1],r),3===t&&this.emitCodePoint(a[e+2],r),r}end(){var e;switch(this.state){case Gr.NamedEntity:return 0===this.result||this.decodeMode===qr.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case Gr.NumericDecimal:return this.emitNumericEntity(0,2);case Gr.NumericHex:return this.emitNumericEntity(0,3);case Gr.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Gr.EntityStart:return 0}}}function Yr(e){let t="";const r=new Kr(e,(e=>t+=Lr(e)));return function(e,a){let n=0,s=0;for(;(s=e.indexOf("&",s))>=0;){t+=e.slice(n,s),r.startEntity(a);const i=r.write(e,s+1);if(i<0){n=s+r.end();break}n=s+i,s=0===i?n+1:n}const i=t+e.slice(n);return t="",i}}function Xr(e,t,r,a){const n=(t&Hr.BRANCH_LENGTH)>>7,s=t&Hr.JUMP_TABLE;if(0===n)return 0!==s&&a===s?r:-1;if(s){const t=a-s;return t<0||t>=n?-1:e[r+t]-1}let i=r,o=i+n-1;for(;i<=o;){const t=i+o>>>1,r=e[t];if(ra))return e[t+n];o=t-1}}return-1}Yr(Nr),Yr(Or);var Jr,Qr,$r,Zr,ea;!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"}(Jr||(Jr={})),function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"}(Qr||(Qr={})),function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"}($r||($r={})),function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"}(Zr||(Zr={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"}(ea||(ea={}));const ta=new Map([[Zr.A,ea.A],[Zr.ADDRESS,ea.ADDRESS],[Zr.ANNOTATION_XML,ea.ANNOTATION_XML],[Zr.APPLET,ea.APPLET],[Zr.AREA,ea.AREA],[Zr.ARTICLE,ea.ARTICLE],[Zr.ASIDE,ea.ASIDE],[Zr.B,ea.B],[Zr.BASE,ea.BASE],[Zr.BASEFONT,ea.BASEFONT],[Zr.BGSOUND,ea.BGSOUND],[Zr.BIG,ea.BIG],[Zr.BLOCKQUOTE,ea.BLOCKQUOTE],[Zr.BODY,ea.BODY],[Zr.BR,ea.BR],[Zr.BUT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V],[Zr.NOBR,ea.NOBR],[Zr.NOFRAMES,ea.NOFRAMES],[Zr.NOEMBED,ea.NOEMBED],[Zr.NOSCRIPT,ea.NOSCRIPT],[Zr.OBJECT,ea.OBJECT],[Zr.OL,ea.OL],[Zr.OPTGROUP,ea.OPTGROUP],[Zr.OPTION,ea.OPTION],[Zr.P,ea.P],[Zr.PARAM,ea.PARAM],[Zr.PLAINTEXT,ea.PLAINTEXT],[Zr.PRE,ea.PRE],[Zr.RB,ea.RB],[Zr.RP,ea.RP],[Zr.RT,ea.RT],[Zr.RTC,ea.RTC],[Zr.RUBY,ea.RUBY],[Zr.S,ea.S],[Zr.SCRIPT,ea.SCRIPT],[Zr.SEARCH,ea.SEARCH],[Zr.SECTION,ea.SECTION],[Zr.SELECT,ea.SELECT],[Zr.SOURCE,ea.SOURCE],[Zr.SMALL,ea.SMALL],[Zr.SPAN,ea.SPAN],[Zr.STRIKE,ea.STRIKE],[Zr.STRONG,ea.STRONG],[Zr.STYLE,ea.STYLE],[Zr.SUB,ea.SUB],[Zr.SUMMARY,ea.SUMMARY],[Zr.SUP,ea.SUP],[Zr.TABLE,ea.TABLE],[Zr.TBODY,ea.TBODY],[Zr.TEMPLATE,ea.TEMPLATE],[Zr.TEXTAREA,ea.TEXTAREA],[Zr.TFOOT,ea.TFOOT],[Zr.TD,ea.TD],[Zr.TH,ea.TH],[Zr.THEAD,ea.THEAD],[Zr.TITLE,ea.TITLE],[Zr.TR,ea.TR],[Zr.TRACK,ea.TRACK],[Zr.TT,ea.TT],[Zr.U,ea.U],[Zr.UL,ea.UL],[Zr.SVG,ea.SVG],[Zr.VAR,ea.VAR],[Zr.WBR,ea.WBR],[Zr.XMP,ea.XMP]]);function ra(e){var t;return null!==(t=ta.get(e))&&void 0!==t?t:ea.UNKNOWN}const aa=ea,na={[Jr.HTML]:new Set([aa.ADDRESS,aa.APPLET,aa.AREA,aa.ARTICLE,aa.ASIDE,aa.BASE,aa.BASEFONT,aa.BGSOUND,aa.BLOCKQUOTE,aa.BODY,aa.BR,aa.BUTTON,aa.CAPTION,aa.CENTER,aa.COL,aa.COLGROUP,aa.DD,aa.DETAILS,aa.DIR,aa.DIV,aa.DL,aa.DT,aa.EMBED,aa.FIELDSET,aa.FIGCAPTION,aa.FIGURE,aa.FOOTER,aa.FORM,aa.FRAME,aa.FRAMESET,aa.H1,aa.H2,aa.H3,aa.H4,aa.H5,aa.H6,aa.HEAD,aa.HEADER,aa.HGROUP,aa.HR,aa.HTML,aa.IFRAME,aa.IMG,aa.INPUT,aa.LI,aa.LINK,aa.LISTING,aa.MAIN,aa.MARQUEE,aa.MENU,aa.META,aa.NAV,aa.NOEMBED,aa.NOFRAMES,aa.NOSCRIPT,aa.OBJECT,aa.OL,aa.P,aa.PARAM,aa.PLAINTEXT,aa.PRE,aa.SCRIPT,aa.SECTION,aa.SELECT,aa.SOURCE,aa.STYLE,aa.SUMMARY,aa.TABLE,aa.TBODY,aa.TD,aa.TEMPLATE,aa.TEXTAREA,aa.TFOOT,aa.TH,aa.THEAD,aa.TITLE,aa.TR,aa.TRACK,aa.UL,aa.WBR,aa.XMP]),[Jr.MATHML]:new Set([aa.MI,aa.MO,aa.MN,aa.MS,aa.MTEXT,aa.ANNOTATION_XML]),[Jr.SVG]:new Set([aa.TITLE,aa.FOREIGN_OBJECT,aa.DESC]),[Jr.XLINK]:new Set,[Jr.XML]:new Set,[Jr.XMLNS]:new Set},sa=new Set([aa.H1,aa.H2,aa.H3,aa.H4,aa.H5,aa.H6]);new Set([Zr.STYLE,Zr.SCRIPT,Zr.XMP,Zr.IFRAME,Zr.NOEMBED,Zr.NOFRAMES,Zr.PLAINTEXT]);var ia;!function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"}(ia||(ia={}));const oa={DATA:ia.DATA,RCDATA:ia.RCDATA,RAWTEXT:ia.RAWTEXT,SCRIPT_DATA:ia.SCRIPT_DATA,PLAINTEXT:ia.PLAINTEXT,CDATA_SECTION:ia.CDATA_SECTION};function da(e){return e>=xr.LATIN_CAPITAL_A&&e<=xr.LATIN_CAPITAL_Z}function ca(e){return function(e){return e>=xr.LATIN_SMALL_A&&e<=xr.LATIN_SMALL_Z}(e)||da(e)}function la(e){return ca(e)||function(e){return e>=xr.DIGIT_0&&e<=xr.DIGIT_9}(e)}function ua(e){return e+32}function pa(e){return e===xr.SPACE||e===xr.LINE_FEED||e===xr.TABULATION||e===xr.FORM_FEED}function fa(e){return pa(e)||e===xr.SOLIDUS||e===xr.GREATER_THAN_SIGN}class ga{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=ia.DATA,this.returnState=ia.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Pr(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Kr(Nr,((e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)}),t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(kr.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(kr.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{const t=function(e){return e===xr.NULL?kr.nullCharacterReference:e>1114111?kr.characterReferenceOutsideUnicodeRange:jr(e)?kr.surrogateCharacterReference:Cr(e)?kr.noncharacterCharacterReference:_r(e)||e===xr.CARRIAGE_RETURN?kr.controlCharacterReference:null}(e);t&&this._err(t,1)}}:void 0)}_err(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;var r,a;null===(a=(r=this.handler).onParseError)||void 0===a||a.call(r,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null===e||void 0===e||e())}write(e,t,r){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null===r||void 0===r||r()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t0&&this._err(kr.endTagWithAttributes),e.selfClosing&&this._err(kr.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case Dr.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case Dr.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case Dr.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:Dr.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=pa(e)?Dr.WHITESPACE_CHARACTER:e===xr.NULL?Dr.NULL_CHARACTER:Dr.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(Dr.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=ia.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?qr.Attribute:qr.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===ia.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===ia.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===ia.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case ia.DATA:this._stateData(e);break;case ia.RCDATA:this._stateRcdata(e);break;case ia.RAWTEXT:this._stateRawtext(e);break;case ia.SCRIPT_DATA:this._stateScriptData(e);break;case ia.PLAINTEXT:this._statePlaintext(e);break;case ia.TAG_OPEN:this._stateTagOpen(e);break;case ia.END_TAG_OPEN:this._stateEndTagOpen(e);break;case ia.TAG_NAME:this._stateTagName(e);break;case ia.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case ia.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case ia.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case ia.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case ia.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case ia.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case ia.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case ia.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case ia.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case ia.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case ia.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case ia.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case ia.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case ia.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case ia.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case ia.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case ia.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case ia.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case ia.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case ia.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case ia.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case ia.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case ia.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case ia.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case ia.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case ia.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case ia.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case ia.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case ia.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case ia.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case ia.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case ia.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case ia.BOGUS_COMMENT:this._stateBogusComment(e);break;case ia.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case ia.COMMENT_START:this._stateCommentStart(e);break;case ia.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case ia.COMMENT:this._stateComment(e);break;case ia.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case ia.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case ia.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case ia.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case ia.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case ia.COMMENT_END:this._stateCommentEnd(e);break;case ia.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case ia.DOCTYPE:this._stateDoctype(e);break;case ia.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case ia.DOCTYPE_NAME:this._stateDoctypeName(e);break;case ia.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case ia.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case ia.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case ia.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case ia.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case ia.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case ia.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case ia.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case ia.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case ia.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case ia.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case ia.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case ia.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case ia.CDATA_SECTION:this._stateCdataSection(e);break;case ia.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case ia.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case ia.CHARACTER_REFERENCE:this._stateCharacterReference();break;case ia.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case xr.LESS_THAN_SIGN:this.state=ia.TAG_OPEN;break;case xr.AMPERSAND:this._startCharacterReference();break;case xr.NULL:this._err(kr.unexpectedNullCharacter),this._emitCodePoint(e);break;case xr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case xr.AMPERSAND:this._startCharacterReference();break;case xr.LESS_THAN_SIGN:this.state=ia.RCDATA_LESS_THAN_SIGN;break;case xr.NULL:this._err(kr.unexpectedNullCharacter),this._emitChars(vr);break;case xr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case xr.LESS_THAN_SIGN:this.state=ia.RAWTEXT_LESS_THAN_SIGN;break;case xr.NULL:this._err(kr.unexpectedNullCharacter),this._emitChars(vr);break;case xr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case xr.LESS_THAN_SIGN:this.state=ia.SCRIPT_DATA_LESS_THAN_SIGN;break;case xr.NULL:this._err(kr.unexpectedNullCharacter),this._emitChars(vr);break;case xr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case xr.NULL:this._err(kr.unexpectedNullCharacter),this._emitChars(vr);break;case xr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(ca(e))this._createStartTagToken(),this.state=ia.TAG_NAME,this._stateTagName(e);else switch(e){case xr.EXCLAMATION_MARK:this.state=ia.MARKUP_DECLARATION_OPEN;break;case xr.SOLIDUS:this.state=ia.END_TAG_OPEN;break;case xr.QUESTION_MARK:this._err(kr.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=ia.BOGUS_COMMENT,this._stateBogusComment(e);break;case xr.EOF:this._err(kr.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(kr.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=ia.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(ca(e))this._createEndTagToken(),this.state=ia.TAG_NAME,this._stateTagName(e);else switch(e){case xr.GREATER_THAN_SIGN:this._err(kr.missingEndTagName),this.state=ia.DATA;break;case xr.EOF:this._err(kr.eofBeforeTagName),this._emitChars("");break;case xr.NULL:this._err(kr.unexpectedNullCharacter),this.state=ia.SCRIPT_DATA_ESCAPED,this._emitChars(vr);break;case xr.EOF:this._err(kr.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=ia.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===xr.SOLIDUS?this.state=ia.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:ca(e)?(this._emitChars("<"),this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=ia.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){ca(e)?(this.state=ia.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("");break;case xr.NULL:this._err(kr.unexpectedNullCharacter),this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(vr);break;case xr.EOF:this._err(kr.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===xr.SOLIDUS?(this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(wr,!1)&&fa(this.preprocessor.peek(wr.length))){this._emitCodePoint(e);for(let e=0;e0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const r=this._indexOf(e);this.items[r]=t,r===this.stackTop&&(this.current=t)}insertAfter(e,t,r){const a=this._indexOf(e)+1;this.items.splice(a,0,t),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==Jr.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop=0;r--)if(e.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===t)return r;return-1}clearBackTo(e,t){const r=this._indexOfTagNames(e,t);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(wa,Jr.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Ta,Jr.HTML)}clearBackToTableRowContext(){this.clearBackTo(Ea,Jr.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===ea.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===ea.HTML}hasInDynamicScope(e,t){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case Jr.HTML:if(a===e)return!0;if(t.has(a))return!1;break;case Jr.SVG:if(Ra.has(a))return!1;break;case Jr.MATHML:if(xa.has(a))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,ya)}hasInListItemScope(e){return this.hasInDynamicScope(e,ba)}hasInButtonScope(e){return this.hasInDynamicScope(e,va)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case Jr.HTML:if(sa.has(t))return!0;if(ya.has(t))return!1;break;case Jr.SVG:if(Ra.has(t))return!1;break;case Jr.MATHML:if(xa.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Jr.HTML)switch(this.tagIDs[t]){case e:return!0;case ea.TABLE:case ea.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===Jr.HTML)switch(this.tagIDs[e]){case ea.TBODY:case ea.THEAD:case ea.TFOOT:return!0;case ea.TABLE:case ea.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Jr.HTML)switch(this.tagIDs[t]){case e:return!0;case ea.OPTION:case ea.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;ma.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;ha.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&ha.has(this.currentTagId);)this.pop()}}var ja;!function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(ja||(ja={}));const _a={type:ja.Marker};class Ca{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const r=[],a=t.length,n=this.treeAdapter.getTagName(e),s=this.treeAdapter.getNamespaceURI(e);for(let i=0;i[e.name,e.value])));let n=0;for(let s=0;sa.get(e.name)===e.value))&&(n+=1,n>=3&&this.entries.splice(e.idx,1))}}insertMarker(){this.entries.unshift(_a)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:ja.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:ja.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(_a);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){const t=this.entries.find((t=>t.type===ja.Marker||this.treeAdapter.getTagName(t.element)===e));return t&&t.type===ja.Element?t:null}getElementEntry(e){return this.entries.find((t=>t.type===ja.Element&&t.element===e))}}const ka={createDocument:()=>({nodeName:"#document",mode:$r.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,r)=>({nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){const a=e.childNodes.indexOf(r);e.childNodes.splice(a,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,r,a){const n=e.childNodes.find((e=>"#documentType"===e.nodeName));if(n)n.name=t,n.publicId=r,n.systemId=a;else{const n={nodeName:"#documentType",name:t,publicId:r,systemId:a,parentNode:null};ka.appendChild(e,n)}},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const r=e.childNodes[e.childNodes.length-1];if(ka.isTextNode(r))return void(r.value+=t)}ka.appendChild(e,ka.createTextNode(t))},insertTextBefore(e,t,r){const a=e.childNodes[e.childNodes.indexOf(r)-1];a&&ka.isTextNode(a)?a.value+=t:ka.insertBefore(e,ka.createTextNode(t),r)},adoptAttributes(e,t){const r=new Set(e.attrs.map((e=>e.name)));for(let a=0;ae.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Pa="html",Da=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Ia=[...Da,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Na=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Oa=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Fa=[...Oa,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Ba(e,t){return t.some((t=>e.startsWith(t)))}const La="text/html",Ma="application/xhtml+xml",Ua=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((e=>[e.toLowerCase(),e]))),Ha=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Jr.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Jr.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Jr.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Jr.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Jr.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Jr.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Jr.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Jr.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Jr.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Jr.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Jr.XMLNS}]]),Ga=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((e=>[e.toLowerCase(),e]))),qa=new Set([ea.B,ea.BIG,ea.BLOCKQUOTE,ea.BODY,ea.BR,ea.CENTER,ea.CODE,ea.DD,ea.DIV,ea.DL,ea.DT,ea.EM,ea.EMBED,ea.H1,ea.H2,ea.H3,ea.H4,ea.H5,ea.H6,ea.HEAD,ea.HR,ea.I,ea.IMG,ea.LI,ea.LISTING,ea.MENU,ea.META,ea.NOBR,ea.OL,ea.P,ea.PRE,ea.RUBY,ea.S,ea.SMALL,ea.SPAN,ea.STRONG,ea.STRIKE,ea.SUB,ea.SUP,ea.TABLE,ea.TT,ea.U,ea.UL,ea.VAR]);function Wa(e){for(let t=0;t2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=Ya.INITIAL,this.originalInsertionMode=Ya.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Qa,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!==t&&void 0!==t?t:this.treeAdapter.createDocument(),this.tokenizer=new ga(this.options,this),this.activeFormattingElements=new Ca(this.treeAdapter),this.fragmentContextID=r?ra(this.treeAdapter.getTagName(r)):ea.UNKNOWN,this._setContextModes(null!==r&&void 0!==r?r:this.document,this.fragmentContextID),this.openElements=new Aa(this.document,this.treeAdapter,this)}static parse(e,t){const r=new this(t);return r.tokenizer.write(e,!0),r.document}static getFragmentParser(e,t){const r={...Qa,...t};null!==e&&void 0!==e||(e=r.treeAdapter.createElement(Zr.TEMPLATE,Jr.HTML,[]));const a=r.treeAdapter.createElement("documentmock",Jr.HTML,[]),n=new this(r,a,e);return n.fragmentContextID===ea.TEMPLATE&&n.tmplInsertionModeStack.unshift(Ya.IN_TEMPLATE),n._initTokenizerForFragmentParsing(),n._insertFakeRootElement(),n._resetInsertionMode(),n._findFormInFragmentContext(),n}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,r){var a;if(!this.onParseError)return;const n=null!==(a=e.location)&&void 0!==a?a:Xa,s={code:t,startLine:n.startLine,startCol:n.startCol,startOffset:n.startOffset,endLine:r?n.startLine:n.endLine,endCol:r?n.startCol:n.endCol,endOffset:r?n.startOffset:n.endOffset};this.onParseError(s)}onItemPush(e,t,r){var a,n;null===(n=(a=this.treeAdapter).onItemPush)||void 0===n||n.call(a,e),r&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(a=(r=this.treeAdapter).onItemPop)||void 0===a||a.call(r,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):({current:e,currentTagId:t}=this.openElements),this._setContextModes(e,t)}}_setContextModes(e,t){const r=e===this.document||this.treeAdapter.getNamespaceURI(e)===Jr.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,Jr.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=Ya.TEXT}switchToPlaintextParsing(){this.insertionMode=Ya.TEXT,this.originalInsertionMode=Ya.IN_BODY,this.tokenizer.state=oa.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===Zr.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===Jr.HTML)switch(this.fragmentContextID){case ea.TITLE:case ea.TEXTAREA:this.tokenizer.state=oa.RCDATA;break;case ea.STYLE:case ea.XMP:case ea.IFRAME:case ea.NOEMBED:case ea.NOFRAMES:case ea.NOSCRIPT:this.tokenizer.state=oa.RAWTEXT;break;case ea.SCRIPT:this.tokenizer.state=oa.SCRIPT_DATA;break;case ea.PLAINTEXT:this.tokenizer.state=oa.PLAINTEXT}}_setDocumentType(e){const t=e.name||"",r=e.publicId||"",a=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,r,a),e.location){const t=this.treeAdapter.getChildNodes(this.document).find((e=>this.treeAdapter.isDocumentTypeNode(e)));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const r=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r,e.location)}_insertElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r,e.location),this.openElements.push(r,e.tagID)}_insertFakeElement(e,t){const r=this.treeAdapter.createElement(e,Jr.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,Jr.HTML,e.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,r),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(Zr.HTML,Jr.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,ea.HTML)}_appendCommentNode(e,t){const r=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,e.location)}_insertCharacters(e){let t,r;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:r}=this._findFosterParentingLocation()),r?this.treeAdapter.insertTextBefore(t,e.chars,r):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const a=this.treeAdapter.getChildNodes(t),n=r?a.lastIndexOf(r):a.length,s=a[n-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:t,endCol:r,endOffset:a}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:t,endCol:r,endOffset:a})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}_adoptNodes(e,t){for(let r=this.treeAdapter.getFirstChild(e);r;r=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(t,r)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const r=t.location,a=this.treeAdapter.getTagName(e),n=t.type===Dr.END_TAG&&a===t.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,n)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,r;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,r=this.fragmentContextID):({current:t,currentTagId:r}=this.openElements),(e.tagID!==ea.SVG||this.treeAdapter.getTagName(t)!==Zr.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==Jr.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===ea.MGLYPH||e.tagID===ea.MALIGNMARK)&&!this._isIntegrationPoint(r,t,Jr.HTML))}_processToken(e){switch(e.type){case Dr.CHARACTER:this.onCharacter(e);break;case Dr.NULL_CHARACTER:this.onNullCharacter(e);break;case Dr.COMMENT:this.onComment(e);break;case Dr.DOCTYPE:this.onDoctype(e);break;case Dr.START_TAG:this._processStartTag(e);break;case Dr.END_TAG:this.onEndTag(e);break;case Dr.EOF:this.onEof(e);break;case Dr.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,r){return Ka(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),r)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex((e=>e.type===ja.Marker||this.openElements.contains(e.element)));for(let r=t<0?e-1:t-1;r>=0;r--){const e=this.activeFormattingElements.entries[r];this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)),e.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Ya.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(ea.P),this.openElements.popUntilTagNamePopped(ea.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case ea.TR:return void(this.insertionMode=Ya.IN_ROW);case ea.TBODY:case ea.THEAD:case ea.TFOOT:return void(this.insertionMode=Ya.IN_TABLE_BODY);case ea.CAPTION:return void(this.insertionMode=Ya.IN_CAPTION);case ea.COLGROUP:return void(this.insertionMode=Ya.IN_COLUMN_GROUP);case ea.TABLE:return void(this.insertionMode=Ya.IN_TABLE);case ea.BODY:return void(this.insertionMode=Ya.IN_BODY);case ea.FRAMESET:return void(this.insertionMode=Ya.IN_FRAMESET);case ea.SELECT:return void this._resetInsertionModeForSelect(e);case ea.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case ea.HTML:return void(this.insertionMode=this.headElement?Ya.AFTER_HEAD:Ya.BEFORE_HEAD);case ea.TD:case ea.TH:if(e>0)return void(this.insertionMode=Ya.IN_CELL);break;case ea.HEAD:if(e>0)return void(this.insertionMode=Ya.IN_HEAD)}this.insertionMode=Ya.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===ea.TEMPLATE)break;if(e===ea.TABLE)return void(this.insertionMode=Ya.IN_SELECT_IN_TABLE)}this.insertionMode=Ya.IN_SELECT}_isElementCausesFosterParenting(e){return Ja.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case ea.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===Jr.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case ea.TABLE:{const r=this.treeAdapter.getParentNode(t);return r?{parent:r,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const r=this.treeAdapter.getNamespaceURI(e);return na[r].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e);else switch(this.insertionMode){case Ya.INITIAL:cn(this,e);break;case Ya.BEFORE_HTML:ln(this,e);break;case Ya.BEFORE_HEAD:un(this,e);break;case Ya.IN_HEAD:gn(this,e);break;case Ya.IN_HEAD_NO_SCRIPT:mn(this,e);break;case Ya.AFTER_HEAD:hn(this,e);break;case Ya.IN_BODY:case Ya.IN_CAPTION:case Ya.IN_CELL:case Ya.IN_TEMPLATE:vn(this,e);break;case Ya.TEXT:case Ya.IN_SELECT:case Ya.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case Ya.IN_TABLE:case Ya.IN_TABLE_BODY:case Ya.IN_ROW:_n(this,e);break;case Ya.IN_TABLE_TEXT:In(this,e);break;case Ya.IN_COLUMN_GROUP:Bn(this,e);break;case Ya.AFTER_BODY:Vn(this,e);break;case Ya.AFTER_AFTER_BODY:Kn(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=vr,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case Ya.INITIAL:cn(this,e);break;case Ya.BEFORE_HTML:ln(this,e);break;case Ya.BEFORE_HEAD:un(this,e);break;case Ya.IN_HEAD:gn(this,e);break;case Ya.IN_HEAD_NO_SCRIPT:mn(this,e);break;case Ya.AFTER_HEAD:hn(this,e);break;case Ya.TEXT:this._insertCharacters(e);break;case Ya.IN_TABLE:case Ya.IN_TABLE_BODY:case Ya.IN_ROW:_n(this,e);break;case Ya.IN_COLUMN_GROUP:Bn(this,e);break;case Ya.AFTER_BODY:Vn(this,e);break;case Ya.AFTER_AFTER_BODY:Kn(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)on(this,e);else switch(this.insertionMode){case Ya.INITIAL:case Ya.BEFORE_HTML:case Ya.BEFORE_HEAD:case Ya.IN_HEAD:case Ya.IN_HEAD_NO_SCRIPT:case Ya.AFTER_HEAD:case Ya.IN_BODY:case Ya.IN_TABLE:case Ya.IN_CAPTION:case Ya.IN_COLUMN_GROUP:case Ya.IN_TABLE_BODY:case Ya.IN_ROW:case Ya.IN_CELL:case Ya.IN_SELECT:case Ya.IN_SELECT_IN_TABLE:case Ya.IN_TEMPLATE:case Ya.IN_FRAMESET:case Ya.AFTER_FRAMESET:on(this,e);break;case Ya.IN_TABLE_TEXT:Nn(this,e);break;case Ya.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case Ya.AFTER_AFTER_BODY:case Ya.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case Ya.INITIAL:!function(e,t){e._setDocumentType(t);const r=t.forceQuirks?$r.QUIRKS:function(e){if(e.name!==Pa)return $r.QUIRKS;const{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return $r.QUIRKS;let{publicId:r}=e;if(null!==r){if(r=r.toLowerCase(),Na.has(r))return $r.QUIRKS;let e=null===t?Ia:Da;if(Ba(r,e))return $r.QUIRKS;if(e=null===t?Oa:Fa,Ba(r,e))return $r.LIMITED_QUIRKS}return $r.NO_QUIRKS}(t);(function(e){return e.name===Pa&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)})(t)||e._err(t,kr.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=Ya.BEFORE_HTML}(this,e);break;case Ya.BEFORE_HEAD:case Ya.IN_HEAD:case Ya.IN_HEAD_NO_SCRIPT:case Ya.AFTER_HEAD:this._err(e,kr.misplacedDoctype);break;case Ya.IN_TABLE_TEXT:Nn(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,kr.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===ea.FONT&&e.attrs.some((e=>{let{name:t}=e;return t===Qr.COLOR||t===Qr.SIZE||t===Qr.FACE}))||qa.has(t)}(t))Yn(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),a=e.treeAdapter.getNamespaceURI(r);a===Jr.MATHML?Wa(t):a===Jr.SVG&&(!function(e){const t=Ga.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=ra(e.tagName))}(t),za(t)),Va(t),t.selfClosing?e._appendElement(t,a):e._insertElement(t,a),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case Ya.INITIAL:cn(this,e);break;case Ya.BEFORE_HTML:!function(e,t){t.tagID===ea.HTML?(e._insertElement(t,Jr.HTML),e.insertionMode=Ya.BEFORE_HEAD):ln(e,t)}(this,e);break;case Ya.BEFORE_HEAD:!function(e,t){switch(t.tagID){case ea.HTML:wn(e,t);break;case ea.HEAD:e._insertElement(t,Jr.HTML),e.headElement=e.openElements.current,e.insertionMode=Ya.IN_HEAD;break;default:un(e,t)}}(this,e);break;case Ya.IN_HEAD:pn(this,e);break;case Ya.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case ea.HTML:wn(e,t);break;case ea.BASEFONT:case ea.BGSOUND:case ea.HEAD:case ea.LINK:case ea.META:case ea.NOFRAMES:case ea.STYLE:pn(e,t);break;case ea.NOSCRIPT:e._err(t,kr.nestedNoscriptInHead);break;default:mn(e,t)}}(this,e);break;case Ya.AFTER_HEAD:!function(e,t){switch(t.tagID){case ea.HTML:wn(e,t);break;case ea.BODY:e._insertElement(t,Jr.HTML),e.framesetOk=!1,e.insertionMode=Ya.IN_BODY;break;case ea.FRAMESET:e._insertElement(t,Jr.HTML),e.insertionMode=Ya.IN_FRAMESET;break;case ea.BASE:case ea.BASEFONT:case ea.BGSOUND:case ea.LINK:case ea.META:case ea.NOFRAMES:case ea.SCRIPT:case ea.STYLE:case ea.TEMPLATE:case ea.TITLE:e._err(t,kr.abandonedHeadElementChild),e.openElements.push(e.headElement,ea.HEAD),pn(e,t),e.openElements.remove(e.headElement);break;case ea.HEAD:e._err(t,kr.misplacedStartTagForHeadElement);break;default:hn(e,t)}}(this,e);break;case Ya.IN_BODY:wn(this,e);break;case Ya.IN_TABLE:Cn(this,e);break;case Ya.IN_TABLE_TEXT:Nn(this,e);break;case Ya.IN_CAPTION:!function(e,t){const r=t.tagID;On.has(r)?e.openElements.hasInTableScope(ea.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(ea.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Ya.IN_TABLE,Cn(e,t)):wn(e,t)}(this,e);break;case Ya.IN_COLUMN_GROUP:Fn(this,e);break;case Ya.IN_TABLE_BODY:Ln(this,e);break;case Ya.IN_ROW:Un(this,e);break;case Ya.IN_CELL:!function(e,t){const r=t.tagID;On.has(r)?(e.openElements.hasInTableScope(ea.TD)||e.openElements.hasInTableScope(ea.TH))&&(e._closeTableCell(),Un(e,t)):wn(e,t)}(this,e);break;case Ya.IN_SELECT:Gn(this,e);break;case Ya.IN_SELECT_IN_TABLE:!function(e,t){const r=t.tagID;r===ea.CAPTION||r===ea.TABLE||r===ea.TBODY||r===ea.TFOOT||r===ea.THEAD||r===ea.TR||r===ea.TD||r===ea.TH?(e.openElements.popUntilTagNamePopped(ea.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Gn(e,t)}(this,e);break;case Ya.IN_TEMPLATE:!function(e,t){switch(t.tagID){case ea.BASE:case ea.BASEFONT:case ea.BGSOUND:case ea.LINK:case ea.META:case ea.NOFRAMES:case ea.SCRIPT:case ea.STYLE:case ea.TEMPLATE:case ea.TITLE:pn(e,t);break;case ea.CAPTION:case ea.COLGROUP:case ea.TBODY:case ea.TFOOT:case ea.THEAD:e.tmplInsertionModeStack[0]=Ya.IN_TABLE,e.insertionMode=Ya.IN_TABLE,Cn(e,t);break;case ea.COL:e.tmplInsertionModeStack[0]=Ya.IN_COLUMN_GROUP,e.insertionMode=Ya.IN_COLUMN_GROUP,Fn(e,t);break;case ea.TR:e.tmplInsertionModeStack[0]=Ya.IN_TABLE_BODY,e.insertionMode=Ya.IN_TABLE_BODY,Ln(e,t);break;case ea.TD:case ea.TH:e.tmplInsertionModeStack[0]=Ya.IN_ROW,e.insertionMode=Ya.IN_ROW,Un(e,t);break;default:e.tmplInsertionModeStack[0]=Ya.IN_BODY,e.insertionMode=Ya.IN_BODY,wn(e,t)}}(this,e);break;case Ya.AFTER_BODY:!function(e,t){t.tagID===ea.HTML?wn(e,t):Vn(e,t)}(this,e);break;case Ya.IN_FRAMESET:!function(e,t){switch(t.tagID){case ea.HTML:wn(e,t);break;case ea.FRAMESET:e._insertElement(t,Jr.HTML);break;case ea.FRAME:e._appendElement(t,Jr.HTML),t.ackSelfClosing=!0;break;case ea.NOFRAMES:pn(e,t)}}(this,e);break;case Ya.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case ea.HTML:wn(e,t);break;case ea.NOFRAMES:pn(e,t)}}(this,e);break;case Ya.AFTER_AFTER_BODY:!function(e,t){t.tagID===ea.HTML?wn(e,t):Kn(e,t)}(this,e);break;case Ya.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case ea.HTML:wn(e,t);break;case ea.NOFRAMES:pn(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===ea.P||t.tagID===ea.BR)return Yn(e),void e._endTagOutsideForeignContent(t);for(let r=e.openElements.stackTop;r>0;r--){const a=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(a)===Jr.HTML){e._endTagOutsideForeignContent(t);break}const n=e.treeAdapter.getTagName(a);if(n.toLowerCase()===t.tagName){t.tagName=n,e.openElements.shortenToLength(r);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case Ya.INITIAL:cn(this,e);break;case Ya.BEFORE_HTML:!function(e,t){const r=t.tagID;r!==ea.HTML&&r!==ea.HEAD&&r!==ea.BODY&&r!==ea.BR||ln(e,t)}(this,e);break;case Ya.BEFORE_HEAD:!function(e,t){const r=t.tagID;r===ea.HEAD||r===ea.BODY||r===ea.HTML||r===ea.BR?un(e,t):e._err(t,kr.endTagWithoutMatchingOpenElement)}(this,e);break;case Ya.IN_HEAD:!function(e,t){switch(t.tagID){case ea.HEAD:e.openElements.pop(),e.insertionMode=Ya.AFTER_HEAD;break;case ea.BODY:case ea.BR:case ea.HTML:gn(e,t);break;case ea.TEMPLATE:fn(e,t);break;default:e._err(t,kr.endTagWithoutMatchingOpenElement)}}(this,e);break;case Ya.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case ea.NOSCRIPT:e.openElements.pop(),e.insertionMode=Ya.IN_HEAD;break;case ea.BR:mn(e,t);break;default:e._err(t,kr.endTagWithoutMatchingOpenElement)}}(this,e);break;case Ya.AFTER_HEAD:!function(e,t){switch(t.tagID){case ea.BODY:case ea.HTML:case ea.BR:hn(e,t);break;case ea.TEMPLATE:fn(e,t);break;default:e._err(t,kr.endTagWithoutMatchingOpenElement)}}(this,e);break;case Ya.IN_BODY:An(this,e);break;case Ya.TEXT:!function(e,t){var r;t.tagID===ea.SCRIPT&&(null===(r=e.scriptHandler)||void 0===r||r.call(e,e.openElements.current));e.openElements.pop(),e.insertionMode=e.originalInsertionMode}(this,e);break;case Ya.IN_TABLE:kn(this,e);break;case Ya.IN_TABLE_TEXT:Nn(this,e);break;case Ya.IN_CAPTION:!function(e,t){const r=t.tagID;switch(r){case ea.CAPTION:case ea.TABLE:e.openElements.hasInTableScope(ea.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(ea.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Ya.IN_TABLE,r===ea.TABLE&&kn(e,t));break;case ea.BODY:case ea.COL:case ea.COLGROUP:case ea.HTML:case ea.TBODY:case ea.TD:case ea.TFOOT:case ea.TH:case ea.THEAD:case ea.TR:break;default:An(e,t)}}(this,e);break;case Ya.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case ea.COLGROUP:e.openElements.currentTagId===ea.COLGROUP&&(e.openElements.pop(),e.insertionMode=Ya.IN_TABLE);break;case ea.TEMPLATE:fn(e,t);break;case ea.COL:break;default:Bn(e,t)}}(this,e);break;case Ya.IN_TABLE_BODY:Mn(this,e);break;case Ya.IN_ROW:Hn(this,e);break;case Ya.IN_CELL:!function(e,t){const r=t.tagID;switch(r){case ea.TD:case ea.TH:e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Ya.IN_ROW);break;case ea.TABLE:case ea.TBODY:case ea.TFOOT:case ea.THEAD:case ea.TR:e.openElements.hasInTableScope(r)&&(e._closeTableCell(),Hn(e,t));break;case ea.BODY:case ea.CAPTION:case ea.COL:case ea.COLGROUP:case ea.HTML:break;default:An(e,t)}}(this,e);break;case Ya.IN_SELECT:qn(this,e);break;case Ya.IN_SELECT_IN_TABLE:!function(e,t){const r=t.tagID;r===ea.CAPTION||r===ea.TABLE||r===ea.TBODY||r===ea.TFOOT||r===ea.THEAD||r===ea.TR||r===ea.TD||r===ea.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(ea.SELECT),e._resetInsertionMode(),e.onEndTag(t)):qn(e,t)}(this,e);break;case Ya.IN_TEMPLATE:!function(e,t){t.tagID===ea.TEMPLATE&&fn(e,t)}(this,e);break;case Ya.AFTER_BODY:zn(this,e);break;case Ya.IN_FRAMESET:!function(e,t){t.tagID!==ea.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===ea.FRAMESET||(e.insertionMode=Ya.AFTER_FRAMESET))}(this,e);break;case Ya.AFTER_FRAMESET:!function(e,t){t.tagID===ea.HTML&&(e.insertionMode=Ya.AFTER_AFTER_FRAMESET)}(this,e);break;case Ya.AFTER_AFTER_BODY:Kn(this,e)}}onEof(e){switch(this.insertionMode){case Ya.INITIAL:cn(this,e);break;case Ya.BEFORE_HTML:ln(this,e);break;case Ya.BEFORE_HEAD:un(this,e);break;case Ya.IN_HEAD:gn(this,e);break;case Ya.IN_HEAD_NO_SCRIPT:mn(this,e);break;case Ya.AFTER_HEAD:hn(this,e);break;case Ya.IN_BODY:case Ya.IN_TABLE:case Ya.IN_CAPTION:case Ya.IN_COLUMN_GROUP:case Ya.IN_TABLE_BODY:case Ya.IN_ROW:case Ya.IN_CELL:case Ya.IN_SELECT:case Ya.IN_SELECT_IN_TABLE:jn(this,e);break;case Ya.TEXT:!function(e,t){e._err(t,kr.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case Ya.IN_TABLE_TEXT:Nn(this,e);break;case Ya.IN_TEMPLATE:Wn(this,e);break;case Ya.AFTER_BODY:case Ya.IN_FRAMESET:case Ya.AFTER_FRAMESET:case Ya.AFTER_AFTER_BODY:case Ya.AFTER_AFTER_FRAMESET:dn(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===xr.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case Ya.IN_HEAD:case Ya.IN_HEAD_NO_SCRIPT:case Ya.AFTER_HEAD:case Ya.TEXT:case Ya.IN_COLUMN_GROUP:case Ya.IN_SELECT:case Ya.IN_SELECT_IN_TABLE:case Ya.IN_FRAMESET:case Ya.AFTER_FRAMESET:this._insertCharacters(e);break;case Ya.IN_BODY:case Ya.IN_CAPTION:case Ya.IN_CELL:case Ya.IN_TEMPLATE:case Ya.AFTER_BODY:case Ya.AFTER_AFTER_BODY:case Ya.AFTER_AFTER_FRAMESET:bn(this,e);break;case Ya.IN_TABLE:case Ya.IN_TABLE_BODY:case Ya.IN_ROW:_n(this,e);break;case Ya.IN_TABLE_TEXT:Dn(this,e)}}}function Za(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):Sn(e,t),r}function en(e,t){let r=null,a=e.openElements.stackTop;for(;a>=0;a--){const n=e.openElements.items[a];if(n===t.element)break;e._isSpecialElement(n,e.openElements.tagIDs[a])&&(r=n)}return r||(e.openElements.shortenToLength(a<0?0:a),e.activeFormattingElements.removeEntry(t)),r}function tn(e,t,r){let a=t,n=e.openElements.getCommonAncestor(t);for(let s=0,i=n;i!==r;s++,i=n){n=e.openElements.getCommonAncestor(i);const r=e.activeFormattingElements.getElementEntry(i),o=r&&s>=3;!r||o?(o&&e.activeFormattingElements.removeEntry(r),e.openElements.remove(i)):(i=rn(e,r),a===t&&(e.activeFormattingElements.bookmark=r),e.treeAdapter.detachNode(a),e.treeAdapter.appendChild(i,a),a=i)}return a}function rn(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),a=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,a),t.element=a,a}function an(e,t,r){const a=ra(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(a))e._fosterParentElement(r);else{const n=e.treeAdapter.getNamespaceURI(t);a===ea.TEMPLATE&&n===Jr.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function nn(e,t,r){const a=e.treeAdapter.getNamespaceURI(r.element),{token:n}=r,s=e.treeAdapter.createElement(n.tagName,a,n.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,n),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,s,n.tagID)}function sn(e,t){for(let r=0;r<8;r++){const r=Za(e,t);if(!r)break;const a=en(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const n=tn(e,a,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(n),s&&an(e,s,n),nn(e,a,r)}}function on(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function dn(e,t){if(e.stopped=!0,t.location){const r=e.fragmentContext?0:2;for(let a=e.openElements.stackTop;a>=r;a--)e._setEndLocation(e.openElements.items[a],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const r=e.openElements.items[1],a=e.treeAdapter.getNodeSourceCodeLocation(r);a&&!a.endTag&&e._setEndLocation(r,t)}}}}function cn(e,t){e._err(t,kr.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,$r.QUIRKS),e.insertionMode=Ya.BEFORE_HTML,e._processToken(t)}function ln(e,t){e._insertFakeRootElement(),e.insertionMode=Ya.BEFORE_HEAD,e._processToken(t)}function un(e,t){e._insertFakeElement(Zr.HEAD,ea.HEAD),e.headElement=e.openElements.current,e.insertionMode=Ya.IN_HEAD,e._processToken(t)}function pn(e,t){switch(t.tagID){case ea.HTML:wn(e,t);break;case ea.BASE:case ea.BASEFONT:case ea.BGSOUND:case ea.LINK:case ea.META:e._appendElement(t,Jr.HTML),t.ackSelfClosing=!0;break;case ea.TITLE:e._switchToTextParsing(t,oa.RCDATA);break;case ea.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,oa.RAWTEXT):(e._insertElement(t,Jr.HTML),e.insertionMode=Ya.IN_HEAD_NO_SCRIPT);break;case ea.NOFRAMES:case ea.STYLE:e._switchToTextParsing(t,oa.RAWTEXT);break;case ea.SCRIPT:e._switchToTextParsing(t,oa.SCRIPT_DATA);break;case ea.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Ya.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Ya.IN_TEMPLATE);break;case ea.HEAD:e._err(t,kr.misplacedStartTagForHeadElement);break;default:gn(e,t)}}function fn(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==ea.TEMPLATE&&e._err(t,kr.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(ea.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,kr.endTagWithoutMatchingOpenElement)}function gn(e,t){e.openElements.pop(),e.insertionMode=Ya.AFTER_HEAD,e._processToken(t)}function mn(e,t){const r=t.type===Dr.EOF?kr.openElementsLeftAfterEof:kr.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=Ya.IN_HEAD,e._processToken(t)}function hn(e,t){e._insertFakeElement(Zr.BODY,ea.BODY),e.insertionMode=Ya.IN_BODY,yn(e,t)}function yn(e,t){switch(t.type){case Dr.CHARACTER:vn(e,t);break;case Dr.WHITESPACE_CHARACTER:bn(e,t);break;case Dr.COMMENT:on(e,t);break;case Dr.START_TAG:wn(e,t);break;case Dr.END_TAG:An(e,t);break;case Dr.EOF:jn(e,t)}}function bn(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function vn(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function xn(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Jr.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Rn(e){const t=Ir(e,Qr.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function En(e,t){e._switchToTextParsing(t,oa.RAWTEXT)}function Tn(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Jr.HTML)}function wn(e,t){switch(t.tagID){case ea.I:case ea.S:case ea.B:case ea.U:case ea.EM:case ea.TT:case ea.BIG:case ea.CODE:case ea.FONT:case ea.SMALL:case ea.STRIKE:case ea.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Jr.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case ea.A:!function(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(Zr.A);r&&(sn(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,Jr.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case ea.H1:case ea.H2:case ea.H3:case ea.H4:case ea.H5:case ea.H6:!function(e,t){e.openElements.hasInButtonScope(ea.P)&&e._closePElement(),sa.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Jr.HTML)}(e,t);break;case ea.P:case ea.DL:case ea.OL:case ea.UL:case ea.DIV:case ea.DIR:case ea.NAV:case ea.MAIN:case ea.MENU:case ea.ASIDE:case ea.CENTER:case ea.FIGURE:case ea.FOOTER:case ea.HEADER:case ea.HGROUP:case ea.DIALOG:case ea.DETAILS:case ea.ADDRESS:case ea.ARTICLE:case ea.SEARCH:case ea.SECTION:case ea.SUMMARY:case ea.FIELDSET:case ea.BLOCKQUOTE:case ea.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(ea.P)&&e._closePElement(),e._insertElement(t,Jr.HTML)}(e,t);break;case ea.LI:case ea.DD:case ea.DT:!function(e,t){e.framesetOk=!1;const r=t.tagID;for(let a=e.openElements.stackTop;a>=0;a--){const t=e.openElements.tagIDs[a];if(r===ea.LI&&t===ea.LI||(r===ea.DD||r===ea.DT)&&(t===ea.DD||t===ea.DT)){e.openElements.generateImpliedEndTagsWithExclusion(t),e.openElements.popUntilTagNamePopped(t);break}if(t!==ea.ADDRESS&&t!==ea.DIV&&t!==ea.P&&e._isSpecialElement(e.openElements.items[a],t))break}e.openElements.hasInButtonScope(ea.P)&&e._closePElement(),e._insertElement(t,Jr.HTML)}(e,t);break;case ea.BR:case ea.IMG:case ea.WBR:case ea.AREA:case ea.EMBED:case ea.KEYGEN:xn(e,t);break;case ea.HR:!function(e,t){e.openElements.hasInButtonScope(ea.P)&&e._closePElement(),e._appendElement(t,Jr.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case ea.RB:case ea.RTC:!function(e,t){e.openElements.hasInScope(ea.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Jr.HTML)}(e,t);break;case ea.RT:case ea.RP:!function(e,t){e.openElements.hasInScope(ea.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(ea.RTC),e._insertElement(t,Jr.HTML)}(e,t);break;case ea.PRE:case ea.LISTING:!function(e,t){e.openElements.hasInButtonScope(ea.P)&&e._closePElement(),e._insertElement(t,Jr.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case ea.XMP:!function(e,t){e.openElements.hasInButtonScope(ea.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,oa.RAWTEXT)}(e,t);break;case ea.SVG:!function(e,t){e._reconstructActiveFormattingElements(),za(t),Va(t),t.selfClosing?e._appendElement(t,Jr.SVG):e._insertElement(t,Jr.SVG),t.ackSelfClosing=!0}(e,t);break;case ea.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case ea.BASE:case ea.LINK:case ea.META:case ea.STYLE:case ea.TITLE:case ea.SCRIPT:case ea.BGSOUND:case ea.BASEFONT:case ea.TEMPLATE:pn(e,t);break;case ea.BODY:!function(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}(e,t);break;case ea.FORM:!function(e,t){const r=e.openElements.tmplCount>0;e.formElement&&!r||(e.openElements.hasInButtonScope(ea.P)&&e._closePElement(),e._insertElement(t,Jr.HTML),r||(e.formElement=e.openElements.current))}(e,t);break;case ea.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(ea.NOBR)&&(sn(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Jr.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case ea.MATH:!function(e,t){e._reconstructActiveFormattingElements(),Wa(t),Va(t),t.selfClosing?e._appendElement(t,Jr.MATHML):e._insertElement(t,Jr.MATHML),t.ackSelfClosing=!0}(e,t);break;case ea.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==$r.QUIRKS&&e.openElements.hasInButtonScope(ea.P)&&e._closePElement(),e._insertElement(t,Jr.HTML),e.framesetOk=!1,e.insertionMode=Ya.IN_TABLE}(e,t);break;case ea.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Jr.HTML),Rn(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case ea.PARAM:case ea.TRACK:case ea.SOURCE:!function(e,t){e._appendElement(t,Jr.HTML),t.ackSelfClosing=!0}(e,t);break;case ea.IMAGE:!function(e,t){t.tagName=Zr.IMG,t.tagID=ea.IMG,xn(e,t)}(e,t);break;case ea.BUTTON:!function(e,t){e.openElements.hasInScope(ea.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(ea.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Jr.HTML),e.framesetOk=!1}(e,t);break;case ea.APPLET:case ea.OBJECT:case ea.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Jr.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case ea.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,oa.RAWTEXT)}(e,t);break;case ea.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Jr.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Ya.IN_TABLE||e.insertionMode===Ya.IN_CAPTION||e.insertionMode===Ya.IN_TABLE_BODY||e.insertionMode===Ya.IN_ROW||e.insertionMode===Ya.IN_CELL?Ya.IN_SELECT_IN_TABLE:Ya.IN_SELECT}(e,t);break;case ea.OPTION:case ea.OPTGROUP:!function(e,t){e.openElements.currentTagId===ea.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Jr.HTML)}(e,t);break;case ea.NOEMBED:case ea.NOFRAMES:En(e,t);break;case ea.FRAMESET:!function(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Jr.HTML),e.insertionMode=Ya.IN_FRAMESET)}(e,t);break;case ea.TEXTAREA:!function(e,t){e._insertElement(t,Jr.HTML),e.skipNextNewLine=!0,e.tokenizer.state=oa.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Ya.TEXT}(e,t);break;case ea.NOSCRIPT:e.options.scriptingEnabled?En(e,t):Tn(e,t);break;case ea.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(ea.P)&&e._closePElement(),e._insertElement(t,Jr.HTML),e.tokenizer.state=oa.PLAINTEXT}(e,t);break;case ea.COL:case ea.TH:case ea.TD:case ea.TR:case ea.HEAD:case ea.FRAME:case ea.TBODY:case ea.TFOOT:case ea.THEAD:case ea.CAPTION:case ea.COLGROUP:break;default:Tn(e,t)}}function Sn(e,t){const r=t.tagName,a=t.tagID;for(let n=e.openElements.stackTop;n>0;n--){const t=e.openElements.items[n],s=e.openElements.tagIDs[n];if(a===s&&(a!==ea.UNKNOWN||e.treeAdapter.getTagName(t)===r)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.stackTop>=n&&e.openElements.shortenToLength(n);break}if(e._isSpecialElement(t,s))break}}function An(e,t){switch(t.tagID){case ea.A:case ea.B:case ea.I:case ea.S:case ea.U:case ea.EM:case ea.TT:case ea.BIG:case ea.CODE:case ea.FONT:case ea.NOBR:case ea.SMALL:case ea.STRIKE:case ea.STRONG:sn(e,t);break;case ea.P:!function(e){e.openElements.hasInButtonScope(ea.P)||e._insertFakeElement(Zr.P,ea.P),e._closePElement()}(e);break;case ea.DL:case ea.UL:case ea.OL:case ea.DIR:case ea.DIV:case ea.NAV:case ea.PRE:case ea.MAIN:case ea.MENU:case ea.ASIDE:case ea.BUTTON:case ea.CENTER:case ea.FIGURE:case ea.FOOTER:case ea.HEADER:case ea.HGROUP:case ea.DIALOG:case ea.ADDRESS:case ea.ARTICLE:case ea.DETAILS:case ea.SEARCH:case ea.SECTION:case ea.SUMMARY:case ea.LISTING:case ea.FIELDSET:case ea.BLOCKQUOTE:case ea.FIGCAPTION:!function(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}(e,t);break;case ea.LI:!function(e){e.openElements.hasInListItemScope(ea.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(ea.LI),e.openElements.popUntilTagNamePopped(ea.LI))}(e);break;case ea.DD:case ea.DT:!function(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}(e,t);break;case ea.H1:case ea.H2:case ea.H3:case ea.H4:case ea.H5:case ea.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case ea.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Zr.BR,ea.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case ea.BODY:!function(e,t){if(e.openElements.hasInScope(ea.BODY)&&(e.insertionMode=Ya.AFTER_BODY,e.options.sourceCodeLocationInfo)){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}(e,t);break;case ea.HTML:!function(e,t){e.openElements.hasInScope(ea.BODY)&&(e.insertionMode=Ya.AFTER_BODY,zn(e,t))}(e,t);break;case ea.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(ea.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(ea.FORM):r&&e.openElements.remove(r))}(e);break;case ea.APPLET:case ea.OBJECT:case ea.MARQUEE:!function(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case ea.TEMPLATE:fn(e,t);break;default:Sn(e,t)}}function jn(e,t){e.tmplInsertionModeStack.length>0?Wn(e,t):dn(e,t)}function _n(e,t){if(Ja.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Ya.IN_TABLE_TEXT,t.type){case Dr.CHARACTER:In(e,t);break;case Dr.WHITESPACE_CHARACTER:Dn(e,t)}else Pn(e,t)}function Cn(e,t){switch(t.tagID){case ea.TD:case ea.TH:case ea.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Zr.TBODY,ea.TBODY),e.insertionMode=Ya.IN_TABLE_BODY,Ln(e,t)}(e,t);break;case ea.STYLE:case ea.SCRIPT:case ea.TEMPLATE:pn(e,t);break;case ea.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Zr.COLGROUP,ea.COLGROUP),e.insertionMode=Ya.IN_COLUMN_GROUP,Fn(e,t)}(e,t);break;case ea.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,Jr.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case ea.TABLE:!function(e,t){e.openElements.hasInTableScope(ea.TABLE)&&(e.openElements.popUntilTagNamePopped(ea.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case ea.TBODY:case ea.TFOOT:case ea.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Jr.HTML),e.insertionMode=Ya.IN_TABLE_BODY}(e,t);break;case ea.INPUT:!function(e,t){Rn(t)?e._appendElement(t,Jr.HTML):Pn(e,t),t.ackSelfClosing=!0}(e,t);break;case ea.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Jr.HTML),e.insertionMode=Ya.IN_CAPTION}(e,t);break;case ea.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Jr.HTML),e.insertionMode=Ya.IN_COLUMN_GROUP}(e,t);break;default:Pn(e,t)}}function kn(e,t){switch(t.tagID){case ea.TABLE:e.openElements.hasInTableScope(ea.TABLE)&&(e.openElements.popUntilTagNamePopped(ea.TABLE),e._resetInsertionMode());break;case ea.TEMPLATE:fn(e,t);break;case ea.BODY:case ea.CAPTION:case ea.COL:case ea.COLGROUP:case ea.HTML:case ea.TBODY:case ea.TD:case ea.TFOOT:case ea.TH:case ea.THEAD:case ea.TR:break;default:Pn(e,t)}}function Pn(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,yn(e,t),e.fosterParentingEnabled=r}function Dn(e,t){e.pendingCharacterTokens.push(t)}function In(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Nn(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r0&&e.openElements.currentTagId===ea.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===ea.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===ea.OPTGROUP&&e.openElements.pop();break;case ea.OPTION:e.openElements.currentTagId===ea.OPTION&&e.openElements.pop();break;case ea.SELECT:e.openElements.hasInSelectScope(ea.SELECT)&&(e.openElements.popUntilTagNamePopped(ea.SELECT),e._resetInsertionMode());break;case ea.TEMPLATE:fn(e,t)}}function Wn(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(ea.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):dn(e,t)}function zn(e,t){var r;if(t.tagID===ea.HTML){if(e.fragmentContext||(e.insertionMode=Ya.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===ea.HTML){e._setEndLocation(e.openElements.items[0],t);const a=e.openElements.items[1];a&&!(null===(r=e.treeAdapter.getNodeSourceCodeLocation(a))||void 0===r?void 0:r.endTag)&&e._setEndLocation(a,t)}}else Vn(e,t)}function Vn(e,t){e.insertionMode=Ya.IN_BODY,yn(e,t)}function Kn(e,t){e.insertionMode=Ya.IN_BODY,yn(e,t)}function Yn(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Jr.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}const Xn=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);String.prototype.codePointAt;function Jn(e,t){return function(r){let a,n=0,s="";for(;a=e.exec(r);)n!==a.index&&(s+=r.substring(n,a.index)),s+=t.get(a[0].charCodeAt(0)),n=a.index+1;return s+r.substring(n)}}Jn(/[&<>'"]/g,Xn),Jn(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),Jn(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),new Set([Zr.AREA,Zr.BASE,Zr.BASEFONT,Zr.BGSOUND,Zr.BR,Zr.COL,Zr.EMBED,Zr.FRAME,Zr.HR,Zr.IMG,Zr.INPUT,Zr.KEYGEN,Zr.LINK,Zr.META,Zr.PARAM,Zr.SOURCE,Zr.TRACK,Zr.WBR]);const Qn=Zn("end"),$n=Zn("start");function Zn(e){return function(t){const r=t&&t.position&&t.position[e]||{};if("number"===typeof r.line&&r.line>0&&"number"===typeof r.column&&r.column>0)return{line:r.line,column:r.column,offset:"number"===typeof r.offset&&r.offset>-1?r.offset:void 0}}}const es=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,ts=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),rs={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function as(e,t){const r=function(e){const t="root"===e.type?e.children[0]:e;return Boolean(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),a=ft("type",{handlers:{root:ss,element:is,text:os,comment:ls,doctype:ds,raw:us},unknown:ps}),n={parser:r?new $a(rs):$a.getFragmentParser(void 0,rs),handle(e){a(e,n)},stitches:!1,options:t||{}};a(e,n),fs(n,$n());const s=function(e,t){const r=t||{};return sr({file:r.file||void 0,location:!1,schema:"svg"===r.space?re.JW:re.qy,verbose:r.verbose||!1},e)}(r?n.parser.document:n.parser.getFragment(),{file:n.options.file});return n.stitches&&H(s,"comment",(function(e,t,r){const a=e;if(a.value.stitch&&r&&void 0!==t){return r.children[t]=a.value.stitch,t}})),"root"===s.type&&1===s.children.length&&s.children[0].type===e.type?s.children[0]:s}function ns(e,t){let r=-1;if(e)for(;++r4&&(t.parser.tokenizer.state=0);const r={type:Dr.CHARACTER,chars:e.value,location:ms(e)};fs(t,$n(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function ds(e,t){const r={type:Dr.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:ms(e)};fs(t,$n(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function cs(e,t){t.stitches=!0;const r=function(e){return zt("children"in e?{...e,children:[]}:e)}(e);if("children"in e&&"children"in r){const a=as({type:"root",children:e.children},t.options);r.children=a.children}ls({type:"comment",value:{stitch:r}},t)}function ls(e,t){const r=e.value,a={type:Dr.COMMENT,data:r,location:ms(e)};fs(t,$n(e)),t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken)}function us(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,gs(t,$n(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(es,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function ps(e,t){const r=e;if(!t.options.passThrough||!t.options.passThrough.includes(r.type)){let e="";throw ts.has(r.type)&&(e=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+r.type+"` node"+e)}cs(r,t)}function fs(e,t){gs(e,t);const r=e.parser.tokenizer.currentCharacterToken;r&&r.location&&(r.location.endLine=e.parser.tokenizer.preprocessor.line,r.location.endCol=e.parser.tokenizer.preprocessor.col+1,r.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=oa.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function gs(e,t){if(t&&void 0!==t.offset){const r={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=1-t.column,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=r}}function ms(e){const t=$n(e)||{line:void 0,column:void 0,offset:void 0},r=Qn(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:r.line,endCol:r.column,endOffset:r.offset}}function hs(e){return function(t,r){return as(t,{...e,file:r})}}const ys=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bs=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vs={};function xs(e,t){return((t||vs).jsx?bs:ys).test(e)}const Rs={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 Es=r(1581);const Ts=Es.default||Es;function ws(e){return e&&"object"===typeof e?"position"in e||"type"in e?As(e.position):"start"in e||"end"in e?As(e):"line"in e||"column"in e?Ss(e):"":""}function Ss(e){return js(e&&e.line)+":"+js(e&&e.column)}function As(e){return Ss(e&&e.start)+"-"+Ss(e&&e.end)}function js(e){return e&&"number"===typeof e?e:1}class _s extends Error{constructor(e,t,r){super(),"string"===typeof t&&(r=t,t=void 0);let a="",n={},s=!1;if(t&&(n="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"===typeof e?a=e:!n.cause&&e&&(s=!0,a=e.message,n.cause=e),!n.ruleId&&!n.source&&"string"===typeof r){const e=r.indexOf(":");-1===e?n.ruleId=r:(n.source=r.slice(0,e),n.ruleId=r.slice(e+1))}if(!n.place&&n.ancestors&&n.ancestors){const e=n.ancestors[n.ancestors.length-1];e&&(n.place=e.position)}const i=n.place&&"start"in n.place?n.place.start:n.place;this.ancestors=n.ancestors||void 0,this.cause=n.cause||void 0,this.column=i?i.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=i?i.line:void 0,this.name=ws(n.place)||"1:1",this.place=n.place||void 0,this.reason=this.message,this.ruleId=n.ruleId||void 0,this.source=n.source||void 0,this.stack=s&&n.cause&&"string"===typeof n.cause.stack?n.cause.stack:"",this.actual,this.expected,this.note,this.url}}_s.prototype.file="",_s.prototype.name="",_s.prototype.reason="",_s.prototype.message="",_s.prototype.stack="",_s.prototype.column=void 0,_s.prototype.line=void 0,_s.prototype.ancestors=void 0,_s.prototype.cause=void 0,_s.prototype.fatal=void 0,_s.prototype.place=void 0,_s.prototype.ruleId=void 0,_s.prototype.source=void 0;const Cs={}.hasOwnProperty,ks=new Map,Ps=/[A-Z]/g,Ds=/-([a-z])/g,Is=new Set(["table","tbody","thead","tfoot","tr"]),Ns=new Set(["td","th"]),Os="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Fs(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let a;if(t.development){if("function"!==typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=function(e,t){return r;function r(r,a,n,s){const i=Array.isArray(n.children),o=$n(r);return t(a,n,s,i,{columnNumber:o?o.column-1:void 0,fileName:e,lineNumber:o?o.line:void 0},void 0)}}(r,t.jsxDEV)}else{if("function"!==typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!==typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");a=function(e,t,r){return a;function a(e,a,n,s){const i=Array.isArray(n.children)?r:t;return s?i(a,n,s):i(a,n)}}(0,t.jsx,t.jsxs)}const n={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?re.JW:re.qy,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=Bs(n,e,void 0);return s&&"string"!==typeof s?s:n.create(e,n.Fragment,{children:s||void 0},void 0)}function Bs(e,t,r){return"element"===t.type?function(e,t,r){const a=e.schema;let n=a;"svg"===t.tagName.toLowerCase()&&"html"===a.space&&(n=re.JW,e.schema=n);e.ancestors.push(t);const s=Gs(e,t.tagName,!1),i=function(e,t){const r={};let a,n;for(n in t.properties)if("children"!==n&&Cs.call(t.properties,n)){const s=Hs(e,n,t.properties[n]);if(s){const[n,i]=s;e.tableCellAlignToStyle&&"align"===n&&"string"===typeof i&&Ns.has(t.tagName)?a=i:r[n]=i}}if(a){(r.style||(r.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=a}return r}(e,t);let o=Us(e,t);Is.has(t.tagName)&&(o=o.filter((function(e){return"string"!==typeof e||!st(e)})));return Ls(e,i,s,t),Ms(i,o),e.ancestors.pop(),e.schema=a,e.create(t,s,i,r)}(e,t,r):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}qs(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,r){const a=e.schema;let n=a;"svg"===t.name&&"html"===a.space&&(n=re.JW,e.schema=n);e.ancestors.push(t);const s=null===t.name?e.Fragment:Gs(e,t.name,!0),i=function(e,t){const r={};for(const a of t.attributes)if("mdxJsxExpressionAttribute"===a.type)if(a.data&&a.data.estree&&e.evaluater){const t=a.data.estree.body[0];t.type;const n=t.expression;n.type;const s=n.properties[0];s.type,Object.assign(r,e.evaluater.evaluateExpression(s.argument))}else qs(e,t.position);else{const n=a.name;let s;if(a.value&&"object"===typeof a.value)if(a.value.data&&a.value.data.estree&&e.evaluater){const t=a.value.data.estree.body[0];t.type,s=e.evaluater.evaluateExpression(t.expression)}else qs(e,t.position);else s=null===a.value||a.value;r[n]=s}return r}(e,t),o=Us(e,t);return Ls(e,i,s,t),Ms(i,o),e.ancestors.pop(),e.schema=a,e.create(t,s,i,r)}(e,t,r):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);qs(e,t.position)}(e,t):"root"===t.type?function(e,t,r){const a={};return Ms(a,Us(e,t)),e.create(t,e.Fragment,a,r)}(e,t,r):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function Ls(e,t,r,a){"string"!==typeof r&&r!==e.Fragment&&e.passNode&&(t.node=a)}function Ms(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function Us(e,t){const r=[];let a=-1;const n=e.passKeys?new Map:ks;for(;++an?0:n+t:t>n?n:t,r=r>0?r:0,a.length<1e4)s=Array.from(a),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);i0?($s(e,e.length,0,t),e):t}class ei{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,t,r){const a=t||0;this.setCursor(Math.trunc(e));const n=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&ti(this.left,r),n.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),ti(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ti(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e-1&&e.test(String.fromCharCode(t))}}function Ri(e,t,r,a){const n=a?a-1:Number.POSITIVE_INFINITY;let s=0;return function(a){if(yi(a))return e.enter(r),i(a);return t(a)};function i(a){return yi(a)&&s++s))return;const r=t.events.length;let n,o,d=r;for(;d--;)if("exit"===t.events[d][0]&&"chunkFlow"===t.events[d][1].type){if(n){o=t.events[d][1].end;break}n=!0}for(y(i),e=r;ea;){const a=r[n];t.containerState=a[1],a[0].exit.call(t,e)}r.length=a}function b(){a.write([null]),n=void 0,a=void 0,t.containerState._closeFlow=void 0}}},wi={tokenize:function(e,t,r){return Ri(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const Si={partial:!0,tokenize:function(e,t,r){return function(t){return yi(t)?Ri(e,a,"linePrefix")(t):a(t)};function a(e){return null===e||mi(e)?t(e):r(e)}}};const Ai={resolve:function(e){return ri(e),e},tokenize:function(e,t){let r;return function(t){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),a(t)};function a(t){return null===t?n(t):mi(t)?e.check(ji,s,n)(t):(e.consume(t),a)}function n(r){return e.exit("chunkContent"),e.exit("content"),t(r)}function s(t){return e.consume(t),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,a}}},ji={partial:!0,tokenize:function(e,t,r){const a=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Ri(e,n,"linePrefix")};function n(n){if(null===n||mi(n))return r(n);const s=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&s&&"linePrefix"===s[1].type&&s[2].sliceSerialize(s[1],!0).length>=4?t(n):e.interrupt(a.parser.constructs.flow,r,t)(n)}}};const _i={tokenize:function(e){const t=this,r=e.attempt(Si,(function(a){if(null===a)return void e.consume(a);return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}),e.attempt(this.parser.constructs.flowInitial,a,Ri(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Ai,a)),"linePrefix")));return r;function a(a){if(null!==a)return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r;e.consume(a)}}};const Ci={resolveAll:Ii()},ki=Di("string"),Pi=Di("text");function Di(e){return{resolveAll:Ii("text"===e?Ni:void 0),tokenize:function(t){const r=this,a=this.parser.constructs[e],n=t.attempt(a,s,i);return s;function s(e){return d(e)?n(e):i(e)}function i(e){if(null!==e)return t.enter("data"),t.consume(e),o;t.consume(e)}function o(e){return d(e)?(t.exit("data"),n(e)):(t.consume(e),o)}function d(e){if(null===e)return!0;const t=a[e];let n=-1;if(t)for(;++n=3&&(null===s||mi(s))?(e.exit("thematicBreak"),t(s)):r(s)}function i(t){return t===a?(e.consume(t),n++,i):(e.exit("thematicBreakSequence"),yi(t)?Ri(e,s,"whitespace")(t):s(t))}}};const Fi={continuation:{tokenize:function(e,t,r){const a=this;return a.containerState._closeFlow=void 0,e.check(Si,n,s);function n(r){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,Ri(e,t,"listItemIndent",a.containerState.size+1)(r)}function s(r){return a.containerState.furtherBlankLines||!yi(r)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,i(r)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(Li,t,i)(r))}function i(n){return a.containerState._closeFlow=!0,a.interrupt=void 0,Ri(e,e.attempt(Fi,t,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(n)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,r){const a=this,n=a.events[a.events.length-1];let s=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=0;return function(t){const n=a.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===n?!a.containerState.marker||t===a.containerState.marker:pi(t)){if(a.containerState.type||(a.containerState.type=n,e.enter(n,{_container:!0})),"listUnordered"===n)return e.enter("listItemPrefix"),42===t||45===t?e.check(Oi,r,d)(t):d(t);if(!a.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),o(t)}return r(t)};function o(t){return pi(t)&&++i<10?(e.consume(t),o):(!a.interrupt||i<2)&&(a.containerState.marker?t===a.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),d(t)):r(t)}function d(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||t,e.check(Si,a.interrupt?r:c,e.attempt(Bi,u,l))}function c(e){return a.containerState.initialBlankLine=!0,s++,u(e)}function l(t){return yi(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):r(t)}function u(r){return a.containerState.size=s+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(r)}}},Bi={partial:!0,tokenize:function(e,t,r){const a=this;return Ri(e,(function(e){const n=a.events[a.events.length-1];return!yi(e)&&n&&"listItemPrefixWhitespace"===n[1].type?t(e):r(e)}),"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Li={partial:!0,tokenize:function(e,t,r){const a=this;return Ri(e,(function(e){const n=a.events[a.events.length-1];return n&&"listItemIndent"===n[1].type&&n[2].sliceSerialize(n[1],!0).length===a.containerState.size?t(e):r(e)}),"listItemIndent",a.containerState.size+1)}};const Mi={continuation:{tokenize:function(e,t,r){const a=this;return function(t){if(yi(t))return Ri(e,n,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return n(t)};function n(a){return e.attempt(Mi,t,r)(a)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,r){const a=this;return function(t){if(62===t){const r=a.containerState;return r.open||(e.enter("blockQuote",{_container:!0}),r.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),n}return r(t)};function n(r){return yi(r)?(e.enter("blockQuotePrefixWhitespace"),e.consume(r),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(r))}}};function Ui(e,t,r,a,n,s,i,o,d){const c=d||Number.POSITIVE_INFINITY;let l=0;return function(t){if(60===t)return e.enter(a),e.enter(n),e.enter(s),e.consume(t),e.exit(s),u;if(null===t||32===t||41===t||ui(t))return r(t);return e.enter(a),e.enter(i),e.enter(o),e.enter("chunkString",{contentType:"string"}),g(t)};function u(r){return 62===r?(e.enter(s),e.consume(r),e.exit(s),e.exit(n),e.exit(a),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(r))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(o),u(t)):null===t||60===t||mi(t)?r(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function g(n){return l||null!==n&&41!==n&&!hi(n)?l999||null===u||91===u||93===u&&!o||94===u&&!d&&"_hiddenFootnoteSupport"in i.parser.constructs?r(u):93===u?(e.exit(s),e.enter(n),e.consume(u),e.exit(n),e.exit(a),t):mi(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),l(u))}function l(t){return null===t||91===t||93===t||mi(t)||d++>999?(e.exit("chunkString"),c(t)):(e.consume(t),o||(o=!yi(t)),92===t?u:l)}function u(t){return 91===t||92===t||93===t?(e.consume(t),d++,l):l(t)}}function Gi(e,t,r,a,n,s){let i;return function(t){if(34===t||39===t||40===t)return e.enter(a),e.enter(n),e.consume(t),e.exit(n),i=40===t?41:t,o;return r(t)};function o(r){return r===i?(e.enter(n),e.consume(r),e.exit(n),e.exit(a),t):(e.enter(s),d(r))}function d(t){return t===i?(e.exit(s),o(i)):null===t?r(t):mi(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Ri(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===i||null===t||mi(t)?(e.exit("chunkString"),d(t)):(e.consume(t),92===t?l:c)}function l(t){return t===i||92===t?(e.consume(t),c):c(t)}}function qi(e,t){let r;return function a(n){if(mi(n))return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),r=!0,a;if(yi(n))return Ri(e,a,r?"linePrefix":"lineSuffix")(n);return t(n)}}function Wi(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const zi={name:"definition",tokenize:function(e,t,r){const a=this;let n;return function(t){return e.enter("definition"),function(t){return Hi.call(a,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function s(t){return n=Wi(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i):r(t)}function i(t){return hi(t)?qi(e,o)(t):o(t)}function o(t){return Ui(e,d,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function d(t){return e.attempt(Vi,c,c)(t)}function c(t){return yi(t)?Ri(e,l,"whitespace")(t):l(t)}function l(s){return null===s||mi(s)?(e.exit("definition"),a.parser.defined.push(n),t(s)):r(s)}}},Vi={partial:!0,tokenize:function(e,t,r){return function(t){return hi(t)?qi(e,a)(t):r(t)};function a(t){return Gi(e,n,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function n(t){return yi(t)?Ri(e,s,"whitespace")(t):s(t)}function s(e){return null===e||mi(e)?t(e):r(e)}}};const Ki={name:"codeIndented",tokenize:function(e,t,r){const a=this;return function(t){return e.enter("codeIndented"),Ri(e,n,"linePrefix",5)(t)};function n(e){const t=a.events[a.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?s(e):r(e)}function s(t){return null===t?o(t):mi(t)?e.attempt(Yi,s,o)(t):(e.enter("codeFlowValue"),i(t))}function i(t){return null===t||mi(t)?(e.exit("codeFlowValue"),s(t)):(e.consume(t),i)}function o(r){return e.exit("codeIndented"),t(r)}}},Yi={partial:!0,tokenize:function(e,t,r){const a=this;return n;function n(t){return a.parser.lazy[a.now().line]?r(t):mi(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),n):Ri(e,s,"linePrefix",5)(t)}function s(e){const s=a.events[a.events.length-1];return s&&"linePrefix"===s[1].type&&s[2].sliceSerialize(s[1],!0).length>=4?t(e):mi(e)?n(e):r(e)}}};const Xi={name:"headingAtx",resolve:function(e,t){let r,a,n=e.length-2,s=3;"whitespace"===e[s][1].type&&(s+=2);n-2>s&&"whitespace"===e[n][1].type&&(n-=2);"atxHeadingSequence"===e[n][1].type&&(s===n-1||n-4>s&&"whitespace"===e[n-2][1].type)&&(n-=s+1===n?2:4);n>s&&(r={type:"atxHeadingText",start:e[s][1].start,end:e[n][1].end},a={type:"chunkText",start:e[s][1].start,end:e[n][1].end,contentType:"text"},$s(e,s,n-s+1,[["enter",r,t],["enter",a,t],["exit",a,t],["exit",r,t]]));return e},tokenize:function(e,t,r){let a=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),n(t)}(t)};function n(t){return 35===t&&a++<6?(e.consume(t),n):null===t||hi(t)?(e.exit("atxHeadingSequence"),s(t)):r(t)}function s(r){return 35===r?(e.enter("atxHeadingSequence"),i(r)):null===r||mi(r)?(e.exit("atxHeading"),t(r)):yi(r)?Ri(e,s,"whitespace")(r):(e.enter("atxHeadingText"),o(r))}function i(t){return 35===t?(e.consume(t),i):(e.exit("atxHeadingSequence"),s(t))}function o(t){return null===t||35===t||hi(t)?(e.exit("atxHeadingText"),s(t)):(e.consume(t),o)}}};const Ji={name:"setextUnderline",resolveTo:function(e,t){let r,a,n,s=e.length;for(;s--;)if("enter"===e[s][0]){if("content"===e[s][1].type){r=s;break}"paragraph"===e[s][1].type&&(a=s)}else"content"===e[s][1].type&&e.splice(s,1),n||"definition"!==e[s][1].type||(n=s);const i={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};e[a][1].type="setextHeadingText",n?(e.splice(a,0,["enter",i,t]),e.splice(n+1,0,["exit",e[r][1],t]),e[r][1].end={...e[n][1].end}):e[r][1]=i;return e.push(["exit",i,t]),e},tokenize:function(e,t,r){const a=this;let n;return function(t){let i,o=a.events.length;for(;o--;)if("lineEnding"!==a.events[o][1].type&&"linePrefix"!==a.events[o][1].type&&"content"!==a.events[o][1].type){i="paragraph"===a.events[o][1].type;break}if(!a.parser.lazy[a.now().line]&&(a.interrupt||i))return e.enter("setextHeadingLine"),n=t,function(t){return e.enter("setextHeadingLineSequence"),s(t)}(t);return r(t)};function s(t){return t===n?(e.consume(t),s):(e.exit("setextHeadingLineSequence"),yi(t)?Ri(e,i,"lineSuffix")(t):i(t))}function i(a){return null===a||mi(a)?(e.exit("setextHeadingLine"),t(a)):r(a)}}};const Qi=["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","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],$i=["pre","script","style","textarea"],Zi={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,r){const a=this;let n,s,i,o,d;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(o){return 33===o?(e.consume(o),l):47===o?(e.consume(o),s=!0,f):63===o?(e.consume(o),n=3,a.interrupt?t:N):di(o)?(e.consume(o),i=String.fromCharCode(o),g):r(o)}function l(s){return 45===s?(e.consume(s),n=2,u):91===s?(e.consume(s),n=5,o=0,p):di(s)?(e.consume(s),n=4,a.interrupt?t:N):r(s)}function u(n){return 45===n?(e.consume(n),a.interrupt?t:N):r(n)}function p(n){const s="CDATA[";return n===s.charCodeAt(o++)?(e.consume(n),6===o?a.interrupt?t:A:p):r(n)}function f(t){return di(t)?(e.consume(t),i=String.fromCharCode(t),g):r(t)}function g(o){if(null===o||47===o||62===o||hi(o)){const d=47===o,c=i.toLowerCase();return d||s||!$i.includes(c)?Qi.includes(i.toLowerCase())?(n=6,d?(e.consume(o),m):a.interrupt?t(o):A(o)):(n=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(o):s?h(o):y(o)):(n=1,a.interrupt?t(o):A(o))}return 45===o||ci(o)?(e.consume(o),i+=String.fromCharCode(o),g):r(o)}function m(n){return 62===n?(e.consume(n),a.interrupt?t:A):r(n)}function h(t){return yi(t)?(e.consume(t),h):w(t)}function y(t){return 47===t?(e.consume(t),w):58===t||95===t||di(t)?(e.consume(t),b):yi(t)?(e.consume(t),y):w(t)}function b(t){return 45===t||46===t||58===t||95===t||ci(t)?(e.consume(t),b):v(t)}function v(t){return 61===t?(e.consume(t),x):yi(t)?(e.consume(t),v):y(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),d=t,R):yi(t)?(e.consume(t),x):E(t)}function R(t){return t===d?(e.consume(t),d=null,T):null===t||mi(t)?r(t):(e.consume(t),R)}function E(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||hi(t)?v(t):(e.consume(t),E)}function T(e){return 47===e||62===e||yi(e)?y(e):r(e)}function w(t){return 62===t?(e.consume(t),S):r(t)}function S(t){return null===t||mi(t)?A(t):yi(t)?(e.consume(t),S):r(t)}function A(t){return 45===t&&2===n?(e.consume(t),k):60===t&&1===n?(e.consume(t),P):62===t&&4===n?(e.consume(t),O):63===t&&3===n?(e.consume(t),N):93===t&&5===n?(e.consume(t),I):!mi(t)||6!==n&&7!==n?null===t||mi(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),A):(e.exit("htmlFlowData"),e.check(eo,F,j)(t))}function j(t){return e.check(to,_,F)(t)}function _(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),C}function C(t){return null===t||mi(t)?j(t):(e.enter("htmlFlowData"),A(t))}function k(t){return 45===t?(e.consume(t),N):A(t)}function P(t){return 47===t?(e.consume(t),i="",D):A(t)}function D(t){if(62===t){const r=i.toLowerCase();return $i.includes(r)?(e.consume(t),O):A(t)}return di(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),D):A(t)}function I(t){return 93===t?(e.consume(t),N):A(t)}function N(t){return 62===t?(e.consume(t),O):45===t&&2===n?(e.consume(t),N):A(t)}function O(t){return null===t||mi(t)?(e.exit("htmlFlowData"),F(t)):(e.consume(t),O)}function F(r){return e.exit("htmlFlow"),t(r)}}},eo={partial:!0,tokenize:function(e,t,r){return function(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Si,t,r)}}},to={partial:!0,tokenize:function(e,t,r){const a=this;return function(t){if(mi(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),n;return r(t)};function n(e){return a.parser.lazy[a.now().line]?r(e):t(e)}}};const ro={partial:!0,tokenize:function(e,t,r){const a=this;return function(t){if(null===t)return r(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),n};function n(e){return a.parser.lazy[a.now().line]?r(e):t(e)}}},ao={concrete:!0,name:"codeFenced",tokenize:function(e,t,r){const a=this,n={partial:!0,tokenize:function(e,t,r){let n=0;return i;function i(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d}function d(t){return e.enter("codeFencedFence"),yi(t)?Ri(e,c,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===s?(e.enter("codeFencedFenceSequence"),l(t)):r(t)}function l(t){return t===s?(n++,e.consume(t),l):n>=o?(e.exit("codeFencedFenceSequence"),yi(t)?Ri(e,u,"whitespace")(t):u(t)):r(t)}function u(a){return null===a||mi(a)?(e.exit("codeFencedFence"),t(a)):r(a)}}};let s,i=0,o=0;return function(t){return function(t){const r=a.events[a.events.length-1];return i=r&&"linePrefix"===r[1].type?r[2].sliceSerialize(r[1],!0).length:0,s=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(t)}(t)};function d(t){return t===s?(o++,e.consume(t),d):o<3?r(t):(e.exit("codeFencedFenceSequence"),yi(t)?Ri(e,c,"whitespace")(t):c(t))}function c(r){return null===r||mi(r)?(e.exit("codeFencedFence"),a.interrupt?t(r):e.check(ro,f,b)(r)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),l(r))}function l(t){return null===t||mi(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):yi(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ri(e,u,"whitespace")(t)):96===t&&t===s?r(t):(e.consume(t),l)}function u(t){return null===t||mi(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||mi(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===s?r(t):(e.consume(t),p)}function f(t){return e.attempt(n,b,g)(t)}function g(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return i>0&&yi(t)?Ri(e,h,"linePrefix",i+1)(t):h(t)}function h(t){return null===t||mi(t)?e.check(ro,f,b)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||mi(t)?(e.exit("codeFlowValue"),h(t)):(e.consume(t),y)}function b(r){return e.exit("codeFenced"),t(r)}}};var no=r(7018);const so={name:"characterReference",tokenize:function(e,t,r){const a=this;let n,s,i=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),o};function o(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),n=31,s=ci,c(t))}function d(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),n=6,s=fi,c):(e.enter("characterReferenceValue"),n=7,s=pi,c(t))}function c(o){if(59===o&&i){const n=e.exit("characterReferenceValue");return s!==ci||(0,no.s)(a.sliceSerialize(n))?(e.enter("characterReferenceMarker"),e.consume(o),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(o)}return s(o)&&i++1&&e[l][1].end.offset-e[l][1].start.offset>1?2:1;const u={...e[r][1].end},p={...e[l][1].start};yo(u,-o),yo(p,o),s={type:o>1?"strongSequence":"emphasisSequence",start:u,end:{...e[r][1].end}},i={type:o>1?"strongSequence":"emphasisSequence",start:{...e[l][1].start},end:p},n={type:o>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[l][1].start}},a={type:o>1?"strong":"emphasis",start:{...s.start},end:{...i.end}},e[r][1].end={...s.start},e[l][1].start={...i.end},d=[],e[r][1].end.offset-e[r][1].start.offset&&(d=Zs(d,[["enter",e[r][1],t],["exit",e[r][1],t]])),d=Zs(d,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",n,t]]),d=Zs(d,co(t.parser.constructs.insideSpan.null,e.slice(r+1,l),t)),d=Zs(d,[["exit",n,t],["enter",i,t],["exit",i,t],["exit",a,t]]),e[l][1].end.offset-e[l][1].start.offset?(c=2,d=Zs(d,[["enter",e[l][1],t],["exit",e[l][1],t]])):c=0,$s(e,r-1,l-r+3,d),l=r+d.length-c-2;break}l=-1;for(;++l-1){const e=i[0];"string"===typeof e?i[0]=e.slice(a):i.shift()}s>0&&i.push(e[n].slice(0,s))}return i}(i,e)}function g(){const{_bufferIndex:e,_index:t,line:r,column:n,offset:s}=a;return{_bufferIndex:e,_index:t,line:r,column:n,offset:s}}function m(){let e;for(;a._index13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||65535===(65535&r)||65534===(65535&r)||r>1114111?"\ufffd":String.fromCodePoint(r)}const Oo=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Fo(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){const e=r.charCodeAt(1),t=120===e||88===e;return No(r.slice(t?2:1),t?16:10)}return(0,no.s)(r)||e}const Bo={}.hasOwnProperty;function Lo(e,t,r){return"string"!==typeof t&&(r=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(te),autolinkProtocol:S,autolinkEmail:S,atxHeading:s(Q),blockQuote:s(V),characterEscape:S,characterReference:S,codeFenced:s(K),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:s(K,i),codeText:s(Y,i),codeTextData:S,data:S,codeFlowValue:S,definition:s(X),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:s(J),hardBreakEscape:s($),hardBreakTrailing:s($),htmlFlow:s(Z,i),htmlFlowData:S,htmlText:s(Z,i),htmlTextData:S,image:s(ee),label:i,link:s(te),listItem:s(ae),listItemValue:p,listOrdered:s(re,u),listUnordered:s(re),paragraph:s(ne),reference:M,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:s(Q),strong:s(se),thematicBreak:s(oe)},exit:{atxHeading:d(),atxHeadingSequence:R,autolink:d(),autolinkEmail:z,autolinkProtocol:W,blockQuote:d(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:H,characterReferenceMarkerNumeric:H,characterReferenceValue:G,characterReference:q,codeFenced:d(h),codeFencedFence:m,codeFencedFenceInfo:f,codeFencedFenceMeta:g,codeFlowValue:A,codeIndented:d(y),codeText:d(P),codeTextData:A,data:A,definition:d(),definitionDestinationString:x,definitionLabelString:b,definitionTitleString:v,emphasis:d(),hardBreakEscape:d(_),hardBreakTrailing:d(_),htmlFlow:d(C),htmlFlowData:A,htmlText:d(k),htmlTextData:A,image:d(I),label:O,labelText:N,lineEnding:j,link:d(D),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:U,resourceDestinationString:F,resourceTitleString:B,resource:L,setextHeading:d(w),setextHeadingLineSequence:T,setextHeadingText:E,strong:d(),thematicBreak:d()}};Uo(t,(e||{}).mdastExtensions||[]);const r={};return a;function a(e){let a={type:"root",children:[]};const s={stack:[a],tokenStack:[],config:t,enter:o,exit:c,buffer:i,resume:l,data:r},d=[];let u=-1;for(;++u0){const e=s.tokenStack[s.tokenStack.length-1];(e[1]||Go).call(s,void 0,e[0])}for(a.position={start:Mo(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Mo(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u55295&&s<57344){const t=e.charCodeAt(r+1);s<56320&&t>56319&&t<57344?(i=String.fromCharCode(s,t),n=1):i="\ufffd"}else i=String.fromCharCode(s);i&&(t.push(e.slice(a,r),encodeURIComponent(i)),a=r+n+1,i=""),n&&(r+=n,n=0)}return t.join("")+e.slice(a)}function zo(e,t){const r=[{type:"text",value:"\u21a9"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function Vo(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Ko(e,t){const r=t.referenceType;let a="]";if("collapsed"===r?a+="[]":"full"===r&&(a+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+a}];const n=e.all(t),s=n[0];s&&"text"===s.type?s.value="["+s.value:n.unshift({type:"text",value:"["});const i=n[n.length-1];return i&&"text"===i.type?i.value+=a:n.push({type:"text",value:a}),n}function Yo(e){const t=e.spread;return null===t||void 0===t?e.children.length>1:t}function Xo(e){const t=String(e),r=/\r?\n|\r/g;let a=r.exec(t),n=0;const s=[];for(;a;)s.push(Jo(t.slice(n,a.index),n>0,!0),a[0]),n=a.index+a[0].length,a=r.exec(t);return s.push(Jo(t.slice(n),n>0,!1)),s.join("")}function Jo(e,t,r){let a=0,n=e.length;if(t){let t=e.codePointAt(a);for(;9===t||32===t;)a++,t=e.codePointAt(a)}if(r){let t=e.codePointAt(n-1);for(;9===t||32===t;)n--,t=e.codePointAt(n-1)}return n>a?e.slice(a,n):""}const Qo={blockquote:function(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)},break:function(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:"\n"}]},code:function(e,t){const r=t.value?t.value+"\n":"",a={};t.lang&&(a.className=["language-"+t.lang]);let n={type:"element",tagName:"code",properties:a,children:[{type:"text",value:r}]};return t.meta&&(n.data={meta:t.meta}),e.patch(t,n),n=e.applyData(t,n),n={type:"element",tagName:"pre",properties:{},children:[n]},e.patch(t,n),n},delete:function(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},emphasis:function(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},footnoteReference:function(e,t){const r="string"===typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),n=Wo(a.toLowerCase()),s=e.footnoteOrder.indexOf(a);let i,o=e.footnoteCounts.get(a);void 0===o?(o=0,e.footnoteOrder.push(a),i=e.footnoteOrder.length):i=s+1,o+=1,e.footnoteCounts.set(a,o);const d={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+n,id:r+"fnref-"+n+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,d);const c={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},html:function(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}},imageReference:function(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return Ko(e,t);const n={src:Wo(a.url||""),alt:t.alt};null!==a.title&&void 0!==a.title&&(n.title=a.title);const s={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,s),e.applyData(t,s)},image:function(e,t){const r={src:Wo(t.url)};null!==t.alt&&void 0!==t.alt&&(r.alt=t.alt),null!==t.title&&void 0!==t.title&&(r.title=t.title);const a={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,a),e.applyData(t,a)},inlineCode:function(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const a={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,a),e.applyData(t,a)},linkReference:function(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return Ko(e,t);const n={href:Wo(a.url||"")};null!==a.title&&void 0!==a.title&&(n.title=a.title);const s={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)},link:function(e,t){const r={href:Wo(t.url)};null!==t.title&&void 0!==t.title&&(r.title=t.title);const a={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},listItem:function(e,t,r){const a=e.all(t),n=r?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const r=e.children;let a=-1;for(;!t&&++a0&&r.children.unshift({type:"text",value:" "}),r.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let o=-1;for(;++o0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},s=$n(t.children[1]),i=Qn(t.children[t.children.length-1]);s&&i&&(a.position={start:s,end:i}),n.push(a)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(n,!0)};return e.patch(t,s),e.applyData(t,s)},tableCell:function(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},tableRow:function(e,t,r){const a=r?r.children:void 0,n=0===(a?a.indexOf(t):1)?"th":"td",s=r&&"table"===r.type?r.align:void 0,i=s?s.length:t.children.length;let o=-1;const d=[];for(;++o0&&r.push({type:"text",value:"\n"}),r}function sd(e){let t=0,r=e.charCodeAt(t);for(;9===r||32===r;)t++,r=e.charCodeAt(t);return e.slice(t)}function id(e,t){const r=function(e,t){const r=t||ed,a=new Map,n=new Map,s=new Map,i={...Qo,...r.handlers},o={all:function(e){const t=[];if("children"in e){const r=e.children;let a=-1;for(;++a0&&u.push({type:"text",value:" "});let e="string"===typeof r?r:r(d,l);"string"===typeof e&&(e={type:"text",value:e}),u.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(l>1?"-"+l:""),dataFootnoteBackref:"",ariaLabel:"string"===typeof a?a:a(d,l),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const f=s[s.length-1];if(f&&"element"===f.type&&"p"===f.tagName){const e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...u)}else s.push(...u);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(s,!0)};e.patch(n,g),o.push(g)}if(0!==o.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...zt(i),id:"footnote-label"},children:[{type:"text",value:n}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:"\n"}]}}(r),s=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return n&&s.children.push({type:"text",value:"\n"},n),s}function od(e,t){return e&&"run"in e?async function(r,a){const n=id(r,{file:a,...t});await e.run(n,a)}:function(r,a){return id(r,{file:a,...e||t})}}function dd(e){if(e)throw e}var cd=r(1761);function ld(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ud(){const e=[],t={run:function(){for(var t=arguments.length,r=new Array(t),a=0;a1?d-1:0),l=1;ln.length;let c;d&&n.push(s);try{c=e.apply(this,n)}catch(a){if(d&&r)throw a;return s(a)}d||(c&&c.then&&"function"===typeof c.then?c.then(i,s):c instanceof Error?s(c):i(c))}function s(e){if(!r){r=!0;for(var a=arguments.length,n=new Array(a>1?a-1:0),s=1;se.length){for(;s--;)if(47===e.codePointAt(s)){if(r){a=s+1;break}}else n<0&&(r=!0,n=s+1);return n<0?"":e.slice(a,n)}if(t===e)return"";let i=-1,o=t.length-1;for(;s--;)if(47===e.codePointAt(s)){if(r){a=s+1;break}}else i<0&&(r=!0,i=s+1),o>-1&&(e.codePointAt(s)===t.codePointAt(o--)?o<0&&(n=s):(o=-1,n=i));a===n?n=i:n<0&&(n=e.length);return e.slice(a,n)},dirname:function(e){if(fd(e),0===e.length)return".";let t,r=-1,a=e.length;for(;--a;)if(47===e.codePointAt(a)){if(t){r=a;break}}else t||(t=!0);return r<0?47===e.codePointAt(0)?"/":".":1===r&&47===e.codePointAt(0)?"//":e.slice(0,r)},extname:function(e){fd(e);let t,r=e.length,a=-1,n=0,s=-1,i=0;for(;r--;){const o=e.codePointAt(r);if(47!==o)a<0&&(t=!0,a=r+1),46===o?s<0?s=r:1!==i&&(i=1):s>-1&&(i=-1);else if(t){n=r+1;break}}if(s<0||a<0||0===i||1===i&&s===a-1&&s===n+1)return"";return e.slice(s,a)},join:function(){let e,t=-1;for(var r=arguments.length,a=new Array(r),n=0;n2){if(a=n.lastIndexOf("/"),a!==n.length-1){a<0?(n="",s=0):(n=n.slice(0,a),s=n.length-1-n.lastIndexOf("/")),i=d,o=0;continue}}else if(n.length>0){n="",s=0,i=d,o=0;continue}t&&(n=n.length>0?n+"/..":"..",s=2)}else n.length>0?n+="/"+e.slice(i+1,d):n=e.slice(i+1,d),s=d-i-1;i=d,o=0}else 46===r&&o>-1?o++:o=-1}return n}(e,!t);0!==r.length||t||(r=".");r.length>0&&47===e.codePointAt(e.length-1)&&(r+="/");return t?"/"+r:r}(e)},sep:"/"};function fd(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const gd={cwd:function(){return"/"}};function md(e){return Boolean(null!==e&&"object"===typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function hd(e){if("string"===typeof e)e=new URL(e);else if(!md(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}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 t=e.pathname;let r=-1;for(;++r1?a-1:0),s=1;s0){let[a,...s]=r;const i=t[n][1];ld(i)&&ld(a)&&(a=cd(!0,i,a)),t[n]=[e,a,...s]}}}}const Sd=(new wd).freeze();function Ad(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function jd(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function _d(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Cd(e){if(!ld(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function kd(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Pd(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new bd(e)}const Dd=[],Id={allowDangerousHtml:!0},Nd=/^(https?|ircs?|mailto|xmpp)$/i,Od=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Fd(e){const t=e.allowedElements,r=e.allowElement,a=e.children||"",n=e.className,s=e.components,i=e.disallowedElements,d=e.rehypePlugins||Dd,c=e.remarkPlugins||Dd,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Id}:Id,u=e.skipHtml,p=e.unwrapDisallowed,f=e.urlTransform||Bd,g=Sd().use(qo).use(c).use(od,l).use(d),m=new bd;"string"===typeof a&&(m.value=a);for(const o of Od)Object.hasOwn(e,o.from)&&(o.from,o.to&&o.to,o.id);const h=g.parse(m);let y=g.runSync(h,m);return n&&(y={type:"element",tagName:"div",properties:{className:n},children:"root"===y.type?y.children:[y]}),H(y,(function(e,a,n){if("raw"===e.type&&n&&"number"===typeof a)return u?n.children.splice(a,1):n.children[a]={type:"text",value:e.value},a;if("element"===e.type){let t;for(t in Ks)if(Object.hasOwn(Ks,t)&&Object.hasOwn(e.properties,t)){const r=e.properties[t],a=Ks[t];(null===a||a.includes(e.tagName))&&(e.properties[t]=f(String(r||""),t,e))}}if("element"===e.type){let s=t?!t.includes(e.tagName):!!i&&i.includes(e.tagName);if(!s&&r&&"number"===typeof a&&(s=!r(e,a,n)),s&&n&&"number"===typeof a)return p&&e.children?n.children.splice(a,1,...e.children):n.children.splice(a,1),a}})),Fs(y,{Fragment:o.Fragment,components:s,ignoreInvalidStyle:!0,jsx:o.jsx,jsxs:o.jsxs,passKeys:!0,passNode:!0})}function Bd(e){const t=e.indexOf(":"),r=e.indexOf("?"),a=e.indexOf("#"),n=e.indexOf("/");return t<0||n>-1&&t>n||r>-1&&t>r||a>-1&&t>a||Nd.test(e.slice(0,t))?e:""}function Ld(e,t){const r=String(e);if("string"!==typeof t)throw new TypeError("Expected character");let a=0,n=r.indexOf(t);for(;-1!==n;)a++,n=r.indexOf(t,n+t.length);return a}function Md(e,t,r){const a=D((r||{}).ignore||[]),n=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let a=-1;for(;++a0?{type:"text",value:s}:void 0),!1===s?a.lastIndex=r+1:(o!==r&&l.push({type:"text",value:e.value.slice(o,r)}),Array.isArray(s)?l.push(...s):s&&l.push(s),o=r+u[0].length,c=!0),!a.global)break;u=a.exec(e.value)}c?(o?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],a=r.indexOf(")");const n=Ld(e,"(");let s=Ld(e,")");for(;-1!==a&&n>s;)e+=r.slice(0,a+1),r=r.slice(a+1),a=r.indexOf(")"),s++;return[e,r]}(r+a);if(!i[0])return!1;const o={type:"link",title:null,url:s+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[o,{type:"text",value:i[1]}]:o}function $d(e,t,r,a){return!(!Zd(a,!0)||/[-\d_]$/.test(r))&&{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function Zd(e,t){const r=e.input.charCodeAt(e.index-1);return(0===e.index||vi(r)||bi(r))&&(!t||47!==r)}function ec(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function tc(){this.buffer()}function rc(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=Wi(this.sliceSerialize(e)).toLowerCase()}function ac(e){this.exit(e)}function nc(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function sc(){this.buffer()}function ic(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=Wi(this.sliceSerialize(e)).toLowerCase()}function oc(e){this.exit(e)}function dc(e,t,r,a){const n=r.createTracker(a);let s=n.move("[^");const i=r.enter("footnoteReference"),o=r.enter("reference");return s+=n.move(r.safe(r.associationId(e),{...n.current(),before:s,after:"]"})),o(),i(),s+=n.move("]"),s}function cc(e,t,r,a){const n=r.createTracker(a);let s=n.move("[^");const i=r.enter("footnoteDefinition"),o=r.enter("label");return s+=n.move(r.safe(r.associationId(e),{...n.current(),before:s,after:"]"})),o(),s+=n.move("]:"+(e.children&&e.children.length>0?" ":"")),n.shift(4),s+=n.move(r.indentLines(r.containerFlow(e,n.current()),lc)),i(),s}function lc(e,t,r){return 0===t?e:(r?"":" ")+e}dc.peek=function(){return"["};const uc=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function pc(e){this.enter({type:"delete",children:[]},e)}function fc(e){this.exit(e)}function gc(e,t,r,a){const n=r.createTracker(a),s=r.enter("strikethrough");let i=n.move("~~");return i+=r.containerPhrasing(e,{...n.current(),before:i,after:"~"}),i+=n.move("~~"),s(),i}function mc(e){return e.length}function hc(e){return null===e||void 0===e?"":String(e)}function yc(e){const t="string"===typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function bc(e,t,r){return">"+(r?"":" ")+e}function vc(e,t,r){if("string"===typeof t&&(t=[t]),!t||0===t.length)return r;let a=-1;for(;++a",...d.current()})),c+=d.move(">")):(o=r.enter("destinationRaw"),c+=d.move(r.safe(e.url,{before:c,after:e.title?" ":")",...d.current()}))),o(),e.title&&(o=r.enter(`title${s}`),c+=d.move(" "+n),c+=d.move(r.safe(e.title,{before:c,after:n,...d.current()})),c+=d.move(n),o()),c+=d.move(")"),i(),c}function _c(e,t,r,a){const n=e.referenceType,s=r.enter("imageReference");let i=r.enter("label");const o=r.createTracker(a);let d=o.move("![");const c=r.safe(e.alt,{before:d,after:"]",...o.current()});d+=o.move(c+"]["),i();const l=r.stack;r.stack=[],i=r.enter("reference");const u=r.safe(r.associationId(e),{before:d,after:"]",...o.current()});return i(),r.stack=l,s(),"full"!==n&&c&&c===u?"shortcut"===n?d=d.slice(0,-1):d+=o.move("]"):d+=o.move(u+"]"),d}function Cc(e,t,r){let a=e.value||"",n="`",s=-1;for(;new RegExp("(^|[^`])"+n+"([^`]|$)").test(a);)n+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++s\u007F]/.test(e.url))}function Pc(e,t,r,a){const n=Ec(r),s='"'===n?"Quote":"Apostrophe",i=r.createTracker(a);let o,d;if(kc(e,r)){const t=r.stack;r.stack=[],o=r.enter("autolink");let a=i.move("<");return a+=i.move(r.containerPhrasing(e,{before:a,after:">",...i.current()})),a+=i.move(">"),o(),r.stack=t,a}o=r.enter("link"),d=r.enter("label");let c=i.move("[");return c+=i.move(r.containerPhrasing(e,{before:c,after:"](",...i.current()})),c+=i.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),c+=i.move("<"),c+=i.move(r.safe(e.url,{before:c,after:">",...i.current()})),c+=i.move(">")):(d=r.enter("destinationRaw"),c+=i.move(r.safe(e.url,{before:c,after:e.title?" ":")",...i.current()}))),d(),e.title&&(d=r.enter(`title${s}`),c+=i.move(" "+n),c+=i.move(r.safe(e.title,{before:c,after:n,...i.current()})),c+=i.move(n),d()),c+=i.move(")"),o(),c}function Dc(e,t,r,a){const n=e.referenceType,s=r.enter("linkReference");let i=r.enter("label");const o=r.createTracker(a);let d=o.move("[");const c=r.containerPhrasing(e,{before:d,after:"]",...o.current()});d+=o.move(c+"]["),i();const l=r.stack;r.stack=[],i=r.enter("reference");const u=r.safe(r.associationId(e),{before:d,after:"]",...o.current()});return i(),r.stack=l,s(),"full"!==n&&c&&c===u?"shortcut"===n?d=d.slice(0,-1):d+=o.move("]"):d+=o.move(u+"]"),d}function Ic(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Nc(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}gc.peek=function(){return"~"},Sc.peek=function(e,t,r){return r.options.emphasis||"*"},Ac.peek=function(){return"<"},jc.peek=function(){return"!"},_c.peek=function(){return"!"},Cc.peek=function(){return"`"},Pc.peek=function(e,t,r){return kc(e,r)?"<":"["},Dc.peek=function(){return"["};const Oc=D(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Fc(e,t,r,a){const n=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(r),s=r.enter("strong"),i=r.createTracker(a),o=i.move(n+n);let d=i.move(r.containerPhrasing(e,{after:n,before:o,...i.current()}));const c=d.charCodeAt(0),l=wc(a.before.charCodeAt(a.before.length-1),c,n);l.inside&&(d=Tc(c)+d.slice(1));const u=d.charCodeAt(d.length-1),p=wc(a.after.charCodeAt(0),u,n);p.inside&&(d=d.slice(0,-1)+Tc(u));const f=i.move(n+n);return s(),r.attentionEncodeSurroundingInfo={after:p.outside,before:l.outside},o+d+f}Fc.peek=function(e,t,r){return r.options.strong||"*"};const Bc={blockquote:function(e,t,r,a){const n=r.enter("blockquote"),s=r.createTracker(a);s.move("> "),s.shift(2);const i=r.indentLines(r.containerFlow(e,s.current()),bc);return n(),i},break:xc,code:function(e,t,r,a){const n=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(r),s=e.value||"",i="`"===n?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,r)){const e=r.enter("codeIndented"),t=r.indentLines(s,Rc);return e(),t}const o=r.createTracker(a),d=n.repeat(Math.max(function(e,t){const r=String(e);let a=r.indexOf(t),n=a,s=0,i=0;if("string"!==typeof t)throw new TypeError("Expected substring");for(;-1!==a;)a===n?++s>i&&(i=s):s=1,n=a+t.length,a=r.indexOf(t,n);return i}(s,n)+1,3)),c=r.enter("codeFenced");let l=o.move(d);if(e.lang){const t=r.enter(`codeFencedLang${i}`);l+=o.move(r.safe(e.lang,{before:l,after:" ",encode:["`"],...o.current()})),t()}if(e.lang&&e.meta){const t=r.enter(`codeFencedMeta${i}`);l+=o.move(" "),l+=o.move(r.safe(e.meta,{before:l,after:"\n",encode:["`"],...o.current()})),t()}return l+=o.move("\n"),s&&(l+=o.move(s+"\n")),l+=o.move(d),c(),l},definition:function(e,t,r,a){const n=Ec(r),s='"'===n?"Quote":"Apostrophe",i=r.enter("definition");let o=r.enter("label");const d=r.createTracker(a);let c=d.move("[");return c+=d.move(r.safe(r.associationId(e),{before:c,after:"]",...d.current()})),c+=d.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),c+=d.move("<"),c+=d.move(r.safe(e.url,{before:c,after:">",...d.current()})),c+=d.move(">")):(o=r.enter("destinationRaw"),c+=d.move(r.safe(e.url,{before:c,after:e.title?" ":"\n",...d.current()}))),o(),e.title&&(o=r.enter(`title${s}`),c+=d.move(" "+n),c+=d.move(r.safe(e.title,{before:c,after:n,...d.current()})),c+=d.move(n),o()),i(),c},emphasis:Sc,hardBreak:xc,heading:function(e,t,r,a){const n=Math.max(Math.min(6,e.depth||1),1),s=r.createTracker(a);if(function(e,t){let r=!1;return H(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,L})),Boolean((!e.depth||e.depth<3)&&Xs(e)&&(t.options.setext||r))}(e,r)){const t=r.enter("headingSetext"),a=r.enter("phrasing"),i=r.containerPhrasing(e,{...s.current(),before:"\n",after:"\n"});return a(),t(),i+"\n"+(1===n?"=":"-").repeat(i.length-(Math.max(i.lastIndexOf("\r"),i.lastIndexOf("\n"))+1))}const i="#".repeat(n),o=r.enter("headingAtx"),d=r.enter("phrasing");s.move(i+" ");let c=r.containerPhrasing(e,{before:"# ",after:"\n",...s.current()});return/^[\t ]/.test(c)&&(c=Tc(c.charCodeAt(0))+c.slice(1)),c=c?i+" "+c:i,r.options.closeAtx&&(c+=" "+i),d(),o(),c},html:Ac,image:jc,imageReference:_c,inlineCode:Cc,link:Pc,linkReference:Dc,list:function(e,t,r,a){const n=r.enter("list"),s=r.bulletCurrent;let i=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(r):Ic(r);const o=e.ordered?"."===i?")":".":function(e){const t=Ic(e),r=e.options.bulletOther;if(!r)return"*"===t?"-":"*";if("*"!==r&&"+"!==r&&"-"!==r)throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}(r);let d=!(!t||!r.bulletLastUsed)&&i===r.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==i&&"-"!==i||!t||t.children&&t.children[0]||"list"!==r.stack[r.stack.length-1]||"listItem"!==r.stack[r.stack.length-2]||"list"!==r.stack[r.stack.length-3]||"listItem"!==r.stack[r.stack.length-4]||0!==r.indexStack[r.indexStack.length-1]||0!==r.indexStack[r.indexStack.length-2]||0!==r.indexStack[r.indexStack.length-3]||(d=!0),Nc(r)===i&&t){let t=-1;for(;++t-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+s);let i=s.length+1;("tab"===n||"mixed"===n&&(t&&"list"===t.type&&t.spread||e.spread))&&(i=4*Math.ceil(i/4));const o=r.createTracker(a);o.move(s+" ".repeat(i-s.length)),o.shift(i);const d=r.enter("listItem"),c=r.indentLines(r.containerFlow(e,o.current()),(function(e,t,r){if(t)return(r?"":" ".repeat(i))+e;return(r?s:s+" ".repeat(i-s.length))+e}));return d(),c},paragraph:function(e,t,r,a){const n=r.enter("paragraph"),s=r.enter("phrasing"),i=r.containerPhrasing(e,a);return s(),n(),i},root:function(e,t,r,a){return(e.children.some((function(e){return Oc(e)}))?r.containerPhrasing:r.containerFlow).call(r,e,a)},strong:Fc,text:function(e,t,r,a){return r.safe(e.value,a)},thematicBreak:function(e,t,r){const a=(Nc(r)+(r.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(r));return r.options.ruleSpaces?a.slice(0,-1):a}};function Lc(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function Mc(e){this.exit(e),this.data.inTable=void 0}function Uc(e){this.enter({type:"tableRow",children:[]},e)}function Hc(e){this.exit(e)}function Gc(e){this.enter({type:"tableCell",children:[]},e)}function qc(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Wc));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function Wc(e,t){return"|"===t?t:e}function zc(e){const t=e||{},r=t.tableCellPadding,a=t.tablePipeAlign,n=t.stringLength,s=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,r){let a=Bc.inlineCode(e,t,r);r.stack.includes("tableCell")&&(a=a.replace(/\|/g,"\\$&"));return a},table:function(e,t,r,a){return o(function(e,t,r){const a=e.children;let n=-1;const s=[],i=t.enter("table");for(;++nc&&(c=e[l].length);++sd[s])&&(d[s]=e)}t.push(i)}i[l]=t,o[l]=a}let u=-1;if("object"===typeof a&&"length"in a)for(;++ud[u]&&(d[u]=n),f[u]=n),p[u]=i}i.splice(1,0,p),o.splice(1,0,f),l=-1;const g=[];for(;++l0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}al[43]=rl,al[45]=rl,al[46]=rl,al[95]=rl,al[72]=[rl,tl],al[104]=[rl,tl],al[87]=[rl,el],al[119]=[rl,el];const ll={tokenize:function(e,t,r){const a=this;return Ri(e,(function(e){const n=a.events[a.events.length-1];return n&&"gfmFootnoteDefinitionIndent"===n[1].type&&4===n[2].sliceSerialize(n[1],!0).length?t(e):r(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function ul(e,t,r){const a=this;let n=a.events.length;const s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let i;for(;n--;){const e=a.events[n][1];if("labelImage"===e.type){i=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(n){if(!i||!i._balanced)return r(n);const o=Wi(a.sliceSerialize({start:i.end,end:a.now()}));if(94!==o.codePointAt(0)||!s.includes(o.slice(1)))return r(n);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(n),e.exit("gfmFootnoteCallLabelMarker"),t(n)}}function pl(e,t){let r,a=e.length;for(;a--;)if("labelImage"===e[a][1].type&&"enter"===e[a][0]){r=e[a][1];break}e[a+1][1].type="data",e[a+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[a+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[a+3][1].end),end:Object.assign({},e[a+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},d=[e[a+1],e[a+2],["enter",n,t],e[a+3],e[a+4],["enter",s,t],["exit",s,t],["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(a,e.length-a+1,...d),e}function fl(e,t,r){const a=this,n=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s,i=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),o};function o(t){return 94!==t?r(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(o){if(i>999||93===o&&!s||null===o||91===o||hi(o))return r(o);if(93===o){e.exit("chunkString");const s=e.exit("gfmFootnoteCallString");return n.includes(Wi(a.sliceSerialize(s)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(o)}return hi(o)||(s=!0),i++,e.consume(o),92===o?c:d}function c(t){return 91===t||92===t||93===t?(e.consume(t),i++,d):d(t)}}function gl(e,t,r){const a=this,n=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s,i,o=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),d};function d(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):r(t)}function c(t){if(o>999||93===t&&!i||null===t||91===t||hi(t))return r(t);if(93===t){e.exit("chunkString");const r=e.exit("gfmFootnoteDefinitionLabelString");return s=Wi(a.sliceSerialize(r)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),u}return hi(t)||(i=!0),o++,e.consume(t),92===t?l:c}function l(t){return 91===t||92===t||93===t?(e.consume(t),o++,c):c(t)}function u(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),n.includes(s)||n.push(s),Ri(e,p,"gfmFootnoteDefinitionWhitespace")):r(t)}function p(e){return t(e)}}function ml(e,t,r){return e.check(Si,t,e.attempt(ll,t,r))}function hl(e){e.exit("gfmFootnoteDefinition")}function yl(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:function(e,r,a){const n=this.previous,s=this.events;let i=0;return function(t){if(126===n&&"characterEscape"!==s[s.length-1][1].type)return a(t);return e.enter("strikethroughSequenceTemporary"),o(t)};function o(s){const d=mo(n);if(126===s)return i>1?a(s):(e.consume(s),i++,o);if(i<2&&!t)return a(s);const c=e.exit("strikethroughSequenceTemporary"),l=mo(s);return c._open=!l||2===l&&Boolean(d),c._close=!d||2===d&&Boolean(l),r(s)}},resolveAll:function(e,t){let r=-1;for(;++r0;)t-=1,r.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];r.push([...e]),e.length=0;let a=r.pop();for(;a;)e.push(...a),a=r.pop();this.map.length=0}}function vl(e,t){let r=!1;const a=[];for(;t-1;){const e=a.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const n=t>-1?a.events[t][1].type:null,s="tableHead"===n||"tableRow"===n?x:o;if(s===x&&a.parser.lazy[a.now().line])return r(e);return s(e)};function o(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return d(e);return n=!0,i+=1,d(e)}(t)}function d(t){return null===t?r(t):mi(t)?i>1?(i=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u):r(t):yi(t)?Ri(e,d,"whitespace")(t):(i+=1,n&&(n=!1,s+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),n=!0,d):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||hi(t)?(e.exit("data"),d(t)):(e.consume(t),92===t?l:c)}function l(t){return 92===t||124===t?(e.consume(t),c):c(t)}function u(t){return a.interrupt=!1,a.parser.lazy[a.now().line]?r(t):(e.enter("tableDelimiterRow"),n=!1,yi(t)?Ri(e,p,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?g(t):124===t?(n=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):v(t)}function f(t){return yi(t)?Ri(e,g,"whitespace")(t):g(t)}function g(t){return 58===t?(i+=1,n=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(i+=1,m(t)):null===t||mi(t)?b(t):v(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),h(t)):v(t)}function h(t){return 45===t?(e.consume(t),h):58===t?(n=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return yi(t)?Ri(e,b,"whitespace")(t):b(t)}function b(r){return 124===r?p(r):(null===r||mi(r))&&n&&s===i?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(r)):v(r)}function v(e){return r(e)}function x(t){return e.enter("tableRow"),R(t)}function R(r){return 124===r?(e.enter("tableCellDivider"),e.consume(r),e.exit("tableCellDivider"),R):null===r||mi(r)?(e.exit("tableRow"),t(r)):yi(r)?Ri(e,R,"whitespace")(r):(e.enter("data"),E(r))}function E(t){return null===t||124===t||hi(t)?(e.exit("data"),R(t)):(e.consume(t),92===t?T:E)}function T(t){return 92===t||124===t?(e.consume(t),E):E(t)}}function Rl(e,t){let r,a,n,s=-1,i=!0,o=0,d=[0,0,0,0],c=[0,0,0,0],l=!1,u=0;const p=new bl;for(;++sr[2]+1){const t=r[2]+1,a=r[3]-r[2]-1;e.add(t,a,[])}}e.add(r[3]+1,0,[["exit",i,t]])}return void 0!==n&&(s.end=Object.assign({},wl(t.events,n)),e.add(n,0,[["exit",s,t]]),s=void 0),s}function Tl(e,t,r,a,n){const s=[],i=wl(t.events,r);n&&(n.end=Object.assign({},i),s.push(["exit",n,t])),a.end=Object.assign({},i),s.push(["exit",a,t]),e.add(r+1,0,s)}function wl(e,t){const r=e[t],a="enter"===r[0]?"start":"end";return r[1][a]}const Sl={name:"tasklistCheck",tokenize:function(e,t,r){const a=this;return function(t){if(null!==a.previous||!a._gfmTasklistFirstContentOfListItem)return r(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),n};function n(t){return hi(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),s):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),s):r(t)}function s(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),i):r(t)}function i(a){return mi(a)?t(a):yi(a)?e.check({tokenize:Al},t,r)(a):r(a)}}};function Al(e,t,r){return Ri(e,(function(e){return null===e?r(e):t(e)}),"whitespace")}const jl={};function _l(e){const t=e||jl,r=this.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),n=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(function(e){return si([{text:al},{document:{91:{name:"gfmFootnoteDefinition",tokenize:gl,continuation:{tokenize:ml},exit:hl}},text:{91:{name:"gfmFootnoteCall",tokenize:fl},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:ul,resolveTo:pl}}},yl(e),{flow:{null:{name:"table",tokenize:xl,resolveAll:Rl}}},{text:{91:Sl}}])}(t)),n.push([{transforms:[Jd],enter:{literalAutolink:Wd,literalAutolinkEmail:zd,literalAutolinkHttp:zd,literalAutolinkWww:zd},exit:{literalAutolink:Xd,literalAutolinkEmail:Yd,literalAutolinkHttp:Vd,literalAutolinkWww:Kd}},{enter:{gfmFootnoteDefinition:ec,gfmFootnoteDefinitionLabelString:tc,gfmFootnoteCall:nc,gfmFootnoteCallString:sc},exit:{gfmFootnoteDefinition:ac,gfmFootnoteDefinitionLabelString:rc,gfmFootnoteCall:oc,gfmFootnoteCallString:ic}},{canContainEols:["delete"],enter:{strikethrough:pc},exit:{strikethrough:fc}},{enter:{table:Lc,tableData:Gc,tableHeader:Gc,tableRow:Uc},exit:{codeText:qc,table:Mc,tableData:Hc,tableHeader:Hc,tableRow:Hc}},{exit:{taskListCheckValueChecked:Vc,taskListCheckValueUnchecked:Vc,paragraph:Kc}}]),s.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Gd,notInConstruct:qd},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Gd,notInConstruct:qd},{character:":",before:"[ps]",after:"\\/",inConstruct:Gd,notInConstruct:qd}]},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:cc,footnoteReference:dc}},{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:uc}],handlers:{delete:gc}},zc(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Yc}}]}}(t))}const Cl=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,kl=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,Pl=function(){let{legacyTitle:e=!1,tagName:t="div"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r=>{H(r,"blockquote",((r,a,n)=>{let s="",i="",o=!0,d=r.children.map((t=>{if(o&&"paragraph"===t.type){const r=t.children[0],a="text"===r.type?r.value:"",n=e?kl:Cl,d=a.match(n);if(d&&(o=!1,s=d[1].toLocaleLowerCase(),i=e&&d[2]||s.toLocaleUpperCase(),a.includes("\n")&&(t.children[0]={type:"text",value:a.replace(n,"").replace(/^\n+/,"")}),!a.includes("\n"))){const e=[];t.children.forEach(((t,r)=>{0!=r&&(1==r&&"break"===t.type||e.push(t))})),t.children=[...e]}}return t}));s&&(r.data={hName:t,hProperties:{class:`markdown-alert markdown-alert-${s}`,dir:"auto"}},d.unshift({type:"paragraph",children:[Dl(s),{type:"text",value:i.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),r.children=[...d]}))}};function Dl(e){return{type:"emphasis",data:{hName:"svg",hProperties:{class:"octicon",viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:Il[e]??""}},children:[]}]}}const Il={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"};function Nl(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?Nl(t.parentElement):null}function Ol(e){var t=e=>{var t=Nl(e.target);t&&(t.classList.add("active"),y()(t.dataset.code,(function(){setTimeout((()=>{t.classList.remove("active")}),2e3)})))};(0,i.useEffect)((()=>{var r,a;return null==(r=e.current)||r.removeEventListener("click",t,!1),null==(a=e.current)||a.addEventListener("click",t,!1),()=>{var r;null==(r=e.current)||r.removeEventListener("click",t,!1)}}),[e])}var Fl=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],Bl=e=>e;const Ll=i.forwardRef(((e,t)=>{var{prefixCls:r="wmde-markdown wmde-markdown-color",className:a,source:d,style:c,disableCopy:l=!1,skipHtml:u=!0,onScroll:p,onMouseOver:f,pluginsFilter:g,wrapperElement:m={},warpperElement:h={},urlTransform:y}=e,b=(0,s.A)(e,Fl),v=i.useRef(null);(0,i.useImperativeHandle)(t,(()=>(0,n.A)({},e,{mdp:v})),[v,e]);var x=(r||"")+" "+(a||"");Ol(v);var R=[...b.rehypePlugins||[]],E={allowElement:(e,t,r)=>b.allowElement?b.allowElement(e,t,r):/^[A-Za-z0-9]+$/.test(e.tagName)};u&&R.push(hs);var T=[Pl,...b.remarkPlugins||[],_l],w=(0,n.A)({},h,m);return(0,o.jsx)("div",(0,n.A)({ref:v,onScroll:p,onMouseOver:f},w,{className:x,style:c,children:(0,o.jsx)(Fd,(0,n.A)({},E,b,{skipHtml:u,urlTransform:y||Bl,rehypePlugins:g?g("rehype",R):R,remarkPlugins:g?g("remark",T):T,children:d||""}))}))}));var Ml=function(e){return void 0===e&&(e={}),e=>{H(e,(e=>{"element"===e.type&&"code"===e.tagName&&e.data&&e.data.meta&&(e.properties=(0,n.A)({},e.properties,{"data-meta":String(e.data.meta)}))}))}},Ul=function(e){return void 0===e&&(e={}),e=>{H(e,(e=>{if("element"===e.type&&"code"===e.tagName&&e.properties&&e.properties.dataMeta){e.data||(e.data={});var t=e.properties.dataMeta;"string"===typeof t&&(e.data.meta=t),delete e.properties.dataMeta}}))}};const Hl=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0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10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC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FF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,Gl=Object.hasOwnProperty;function ql(e){const t="element"===e.type?e.tagName.toLowerCase():"",r=2===t.length&&104===t.charCodeAt(0)?t.charCodeAt(1):0;return r>48&&r<55?r-48:void 0}const Wl={},zl=new class{constructor(){this.occurrences,this.reset()}slug(e,t){const r=this;let a=function(e,t){if("string"!==typeof e)return"";t||(e=e.toLowerCase());return e.replace(Hl,"").replace(/ /g,"-")}(e,!0===t);const n=a;for(;Gl.call(r.occurrences,a);)r.occurrences[n]++,a=n+"-"+r.occurrences[n];return r.occurrences[a]=0,a}reset(){this.occurrences=Object.create(null)}};const Vl=function(e){if(null===e||void 0===e)return Yl;if("string"===typeof e)return function(e){return Kl(t);function t(t){return t.tagName===e}}(e);if("object"===typeof e)return function(e){const t=[];let r=-1;for(;++r0&&void 0!==arguments[0]?arguments[0]:{};const{openDelimiter:t="rehype:ignore:start",closeDelimiter:r="rehype:ignore:end"}=e;return e=>{H(e,((e,a,n)=>{if("element"===e.type||"root"===e.type){let a=!1;e.children=e.children.filter((e=>{if("raw"===e.type||"comment"===e.type){let n=(e.value||"").trim();if(n=n.replace(/^/,"$1"),n===t)return a=!0,!1;if(n===r)return a=!1,!1}return!a}))}}))}};var nu={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};var su=[function(e){const t=(e||Wl).prefix||"";return function(e){zl.reset(),H(e,"element",(function(e){ql(e)&&!e.properties.id&&(e.properties.id=t+zl.slug(G(e)))}))}},function(e){const t=e||Ql;let r=t.properties;const a=t.headingProperties,n=t.behavior||"prepend",s=t.content,i=t.group,o=Vl(t.test);let d;return"after"===n||"before"===n?d=function(e,t,a){if("number"!==typeof t||!a)return;const o=eu(s||Jl,e),d=Zl(e,ru(r,e),o);let c="before"===n?[d,e]:[e,d];if(i){const t=tu(i,e);t&&!Array.isArray(t)&&"element"===t.type&&(t.children=c,c=[t])}return a.children.splice(t,1,...c),[M,t+c.length]}:"wrap"===n?d=function(e){let t=e.children,a=[];"function"===typeof s?(t=[],a=s(e)):s&&(a=$l(s));return e.children=[Zl(e,ru(r,e),Array.isArray(a)?[...t,...a]:[...t,a])],[M]}:(d=function(e){const t=eu(s||Jl,e);return e.children["prepend"===n?"unshift":"push"](Zl(e,ru(r,e),t)),[M]},r||(r={ariaHidden:"true",tabIndex:-1})),function(e){H(e,"element",(function(e,t,r){if(ql(e)&&e.properties.id&&o(e,t,r))return Object.assign(e.properties,ru(a,e)),d(e,t,r)}))}},au];const iu=i.forwardRef(((e,t)=>{var r,a,s,i=[Ml,hs,Ul,...su,[Dt,{rewrite:(a=null!=(r=e.disableCopy)&&r,s=e.rehypeRewrite,(e,t,r)=>{if("element"===e.type&&r&&"root"===r.type&&/h(1|2|3|4|5|6)/.test(e.tagName)){var i=e.children&&e.children[0];i&&i.properties&&"true"===i.properties.ariaHidden&&(i.properties=(0,n.A)({class:"anchor"},i.properties),i.children=[nu])}if("element"===e.type&&"pre"===e.tagName&&!a){var o=Pt(e.children);e.children.push((void 0===(d=o)&&(d=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":d},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}))}var d;s&&s(e,null===t?void 0:t,null===r?void 0:r)})}],[Ft,{properties:"attr"}],...e.rehypePlugins||[],[te,{ignoreMissing:!0}]];return(0,o.jsx)(Ll,(0,n.A)({},e,{rehypePlugins:i,ref:t}))}));var ou,du,cu,lu=r(3235),uu=["components","data","node"],pu=["source","components","data","rehypeRewrite"],fu=_.Preview,gu=_.Code,mu=_.Toolbar,hu=(0,lu.Ay)(iu)(ou||(du=["\n margin: 0 auto;\n box-shadow:\n rgb(8 15 41 / 8%) 0.5rem 0.5rem 2rem 0px,\n rgb(8 15 41 / 8%) 0px 0px 1px 0px;\n border: 1px solid var(--color-border-default, #30363d);\n text-align: left;\n max-width: 56rem;\n overflow: auto;\n padding: 2rem;\n border-radius: 0.55rem;\n"],cu||(cu=du.slice(0)),du.raw=cu,ou=du)),yu=e=>{var{components:t,data:r,node:a}=e,i=(0,s.A)(e,uu);if(a&&"element"===a.type&&"pre"===a.tagName){var d,c,l,u=a.children[0];if(!u)return(0,o.jsx)("pre",(0,n.A)({},i));var p=(null==(d=u.data)?void 0:d.meta)||(null==(c=u.properties)?void 0:c.dataMeta);if(!P(p))return(0,o.jsx)("pre",(0,n.A)({},i));var f=null==a||null==(l=a.position)?void 0:l.start.line,g=k(p)||String(f),m=t[""+g];if(g&&"function"===typeof m){var h=r[g].value||"",{title:y,boreder:b=1,checkered:v=1,code:x=1,toolbar:R=1}=C(p||"");return(0,o.jsxs)(_,{bordered:!!Number(b),disableCheckered:!Number(v),style:{marginBottom:16},children:[(0,o.jsx)(fu,{children:(0,o.jsx)(m,{})}),!!Number(R)&&(0,o.jsx)(mu,{text:h,visibleButton:!!Number(x),children:y||"Code Example"}),!!Number(x)&&(0,o.jsx)(gu,{tagName:"pre",style:{marginBottom:0},className:i.className,children:i.children})]})}}return(0,o.jsx)("code",(0,n.A)({},i))};function bu(e){var{components:t,data:r}=e,a=(0,s.A)(e,pu);return(0,o.jsx)(hu,(0,n.A)({disableCopy:!0,rehypePlugins:[au,...a.rehypePlugins||[]]},a,{source:r.source,components:(0,n.A)({},t,{pre:e=>(0,o.jsx)(yu,(0,n.A)({},e,{components:r.components,data:r.data}))})}))}},8108:(e,t)=>{"use strict";function r(e,t){return(Array.isArray(t)?t:[t]).some((function(t){return"string"===typeof t&&(t=new RegExp(t)),t.test(e||"")}))}},9050:(e,t)=>{"use strict"},144:e=>{e.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}},1761:e=>{"use strict";var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,a=Object.defineProperty,n=Object.getOwnPropertyDescriptor,s=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},i=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var a,n=t.call(e,"constructor"),s=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!s)return!1;for(a in e);return"undefined"===typeof a||t.call(e,a)},o=function(e,t){a&&"__proto__"===t.name?a(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},d=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(n)return n(e,r).value}return e[r]};e.exports=function e(){var t,r,a,n,c,l,u=arguments[0],p=1,f=arguments.length,g=!1;for("boolean"===typeof u&&(g=u,u=arguments[1]||{},p=2),(null==u||"object"!==typeof u&&"function"!==typeof u)&&(u={});p{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,a=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,d=/^\s+|\s+$/g,c="";function l(e){return e?e.replace(d,c):c}e.exports=function(e,d){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(!e)return[];d=d||{};var u=1,p=1;function f(e){var t=e.match(r);t&&(u+=t.length);var a=e.lastIndexOf("\n");p=~a?e.length-a:p+e.length}function g(){var e={line:u,column:p};return function(t){return t.position=new m(e),v(),t}}function m(e){this.start=e,this.end={line:u,column:p},this.source=d.source}m.prototype.content=e;var h=[];function y(t){var r=new Error(d.source+":"+u+":"+p+": "+t);if(r.reason=t,r.filename=d.source,r.line=u,r.column=p,r.source=e,!d.silent)throw r;h.push(r)}function b(t){var r=t.exec(e);if(r){var a=r[0];return f(a),e=e.slice(a.length),r}}function v(){b(a)}function x(e){var t;for(e=e||[];t=R();)!1!==t&&e.push(t);return e}function R(){var t=g();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;c!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,c===e.charAt(r-1))return y("End of comment missing");var a=e.slice(2,r-2);return p+=2,f(a),e=e.slice(r),p+=2,t({type:"comment",comment:a})}}function E(){var e=g(),r=b(n);if(r){if(R(),!b(s))return y("property missing ':'");var a=b(i),d=e({type:"declaration",property:l(r[0].replace(t,c)),value:a?l(a[0].replace(t,c)):c});return b(o),d}}return v(),function(){var e,t=[];for(x(t);e=E();)!1!==e&&(t.push(e),x(t));return t}()}},3670:e=>{e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},9386:(e,t)=>{function r(e){let t,r=[];for(let a of e.split(",").map((e=>e.trim())))if(/^-?\d+$/.test(a))r.push(parseInt(a,10));else if(t=a.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,a,n,s]=t;if(a&&s){a=parseInt(a),s=parseInt(s);const e=a{"use strict";e.exports=function(e){var t=this;this.Compiler=function(r){return a(r,Object.assign({},t.data("settings"),e,{extensions:t.data("toMarkdownExtensions")||[]}))}};var a=r(7503)},4014:e=>{"use strict";e.exports=function(e,t){var r,a,n=0,s=0;if("string"!==typeof t||1!==t.length)throw new Error("Expected character");e=String(e),a=e.indexOf(t),r=a;for(;-1!==a;)n++,a===r?n>s&&(s=n):n=1,r=a+1,a=e.indexOf(t,r);return s}},7503:(e,t,r)=>{e.exports=r(4127)},3927:e=>{e.exports=function e(t,r){var a,n=-1;if(r.extensions)for(;++n{e.exports=function(e,t,r){var i=r.enter("blockquote"),o=n(a(e,r),s);return i(),o};var a=r(9960),n=r(6242);function s(e,t,r){return">"+(r?"":" ")+e}},5301:(e,t,r)=>{e.exports=function(e,t,r,n){var s=-1;for(;++s{e.exports=function(e,t,r){var l,u,p,f,g=i(r),m=e.value||"",h="`"===g?"GraveAccent":"Tilde";s(e,r)?(p=r.enter("codeIndented"),l=o(m,c)):(u=a(g,Math.max(n(m,g)+1,3)),p=r.enter("codeFenced"),l=u,e.lang&&(f=r.enter("codeFencedLang"+h),l+=d(r,e.lang,{before:"`",after:" ",encode:["`"]}),f()),e.lang&&e.meta&&(f=r.enter("codeFencedMeta"+h),l+=" "+d(r,e.meta,{before:" ",after:"\n",encode:["`"]}),f()),l+="\n",m&&(l+=m+"\n"),l+=u);return p(),l};var a=r(6040),n=r(4014),s=r(3342),i=r(7156),o=r(6242),d=r(8671);function c(e,t,r){return(r?"":" ")+e}},6141:(e,t,r)=>{e.exports=function(e,t,r){var i=n(r),o='"'===i?"Quote":"Apostrophe",d=r.enter("definition"),c=r.enter("label"),l="["+s(r,a(e),{before:"[",after:"]"})+"]: ";c(),!e.url||/[ \t\r\n]/.test(e.url)?(c=r.enter("destinationLiteral"),l+="<"+s(r,e.url,{before:"<",after:">"})+">"):(c=r.enter("destinationRaw"),l+=s(r,e.url,{before:" ",after:" "}));c(),e.title&&(c=r.enter("title"+o),l+=" "+i+s(r,e.title,{before:i,after:i})+i,c());return d(),l};var a=r(6755),n=r(1989),s=r(8671)},6490:(e,t,r)=>{e.exports=s,s.peek=function(e,t,r){return r.options.emphasis||"*"};var a=r(6451),n=r(4046);function s(e,t,r){var s=a(r),i=r.enter("emphasis"),o=n(e,r,{before:s,after:s});return i(),s+o+s}},1384:(e,t,r)=>{e.exports=function(e,t,r){var i,o,d,c,l=Math.max(Math.min(6,e.depth||1),1);if(n(e,r))return i=r.enter("headingSetext"),o=r.enter("phrasing"),d=s(e,r,{before:"\n",after:"\n"}),o(),i(),d+"\n"+a(1===l?"=":"-",d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf("\n"))+1));c=a("#",l),i=r.enter("headingAtx"),o=r.enter("phrasing"),d=(d=s(e,r,{before:"# ",after:"\n"}))?c+" "+d:c,r.options.closeAtx&&(d+=" "+c);return o(),i(),d};var a=r(6040),n=r(723),s=r(4046)},3437:e=>{function t(e){return e.value||""}e.exports=t,t.peek=function(){return"<"}},6951:(e,t,r)=>{e.exports=s,s.peek=function(){return"!"};var a=r(6755),n=r(8671);function s(e,t,r){var s,i,o=e.referenceType,d=r.enter("imageReference"),c=r.enter("label"),l=n(r,e.alt,{before:"[",after:"]"}),u="!["+l+"]";return c(),i=r.stack,r.stack=[],c=r.enter("reference"),s=n(r,a(e),{before:"[",after:"]"}),c(),r.stack=i,d(),"full"!==o&&l&&l===s?"shortcut"!==o&&(u+="[]"):u+="["+s+"]",u}},3179:(e,t,r)=>{e.exports=s,s.peek=function(){return"!"};var a=r(1989),n=r(8671);function s(e,t,r){var s=a(r),i='"'===s?"Quote":"Apostrophe",o=r.enter("image"),d=r.enter("label"),c="!["+n(r,e.alt,{before:"[",after:"]"})+"](";return d(),!e.url&&e.title||/[ \t\r\n]/.test(e.url)?(d=r.enter("destinationLiteral"),c+="<"+n(r,e.url,{before:"<",after:">"})+">"):(d=r.enter("destinationRaw"),c+=n(r,e.url,{before:"(",after:e.title?" ":")"})),d(),e.title&&(d=r.enter("title"+i),c+=" "+s+n(r,e.title,{before:s,after:s})+s,d()),c+=")",o(),c}},6438:(e,t,r)=>{t.blockquote=r(2939),t.break=r(5301),t.code=r(1873),t.definition=r(6141),t.emphasis=r(6490),t.hardBreak=r(5301),t.heading=r(1384),t.html=r(3437),t.image=r(3179),t.imageReference=r(6951),t.inlineCode=r(1951),t.link=r(6296),t.linkReference=r(1220),t.list=r(8948),t.listItem=r(4246),t.paragraph=r(8336),t.root=r(4368),t.strong=r(2855),t.text=r(6847),t.thematicBreak=r(6749)},1951:(e,t,r)=>{e.exports=n,n.peek=function(){return"`"};var a=r(4186);function n(e,t,r){for(var n,s,i,o,d=e.value||"",c="`",l=-1;new RegExp("(^|[^`])"+c+"([^`]|$)").test(d);)c+="`";for(/[^ \r\n]/.test(d)&&(/[ \r\n`]/.test(d.charAt(0))||/[ \r\n`]/.test(d.charAt(d.length-1)))&&(d=" "+d+" ");++l{e.exports=i,i.peek=function(){return"["};var a=r(6755),n=r(4046),s=r(8671);function i(e,t,r){var i,o,d=e.referenceType,c=r.enter("linkReference"),l=r.enter("label"),u=n(e,r,{before:"[",after:"]"}),p="["+u+"]";return l(),o=r.stack,r.stack=[],l=r.enter("reference"),i=s(r,a(e),{before:"[",after:"]"}),l(),r.stack=o,c(),"full"!==d&&u&&u===i?"shortcut"!==d&&(p+="[]"):p+="["+i+"]",p}},6296:(e,t,r)=>{e.exports=o,o.peek=function(e,t,r){return n(e,r)?"<":"["};var a=r(1989),n=r(1455),s=r(4046),i=r(8671);function o(e,t,r){var o,d,c,l,u=a(r),p='"'===u?"Quote":"Apostrophe";return n(e,r)?(l=r.stack,r.stack=[],o=r.enter("autolink"),c="<"+s(e,r,{before:"<",after:">"})+">",o(),r.stack=l,c):(o=r.enter("link"),d=r.enter("label"),c="["+s(e,r,{before:"[",after:"]"})+"](",d(),!e.url&&e.title||/[ \t\r\n]/.test(e.url)?(d=r.enter("destinationLiteral"),c+="<"+i(r,e.url,{before:"<",after:">"})+">"):(d=r.enter("destinationRaw"),c+=i(r,e.url,{before:"(",after:e.title?" ":")"})),d(),e.title&&(d=r.enter("title"+p),c+=" "+u+i(r,e.title,{before:u,after:u})+u,d()),c+=")",o(),c)}},4246:(e,t,r)=>{e.exports=function(e,t,r){var d,c,l,u=n(r),p=s(r);t&&t.ordered&&(u=(t.start>-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+".");d=u.length+1,("tab"===p||"mixed"===p&&(t&&t.spread||e.spread))&&(d=4*Math.ceil(d/4));return l=r.enter("listItem"),c=o(i(e,r),(function(e,t,r){if(t)return(r?"":a(" ",d))+e;return(r?u:u+a(" ",d-u.length))+e})),l(),c};var a=r(6040),n=r(6261),s=r(9972),i=r(9960),o=r(6242)},8948:(e,t,r)=>{e.exports=function(e,t,r){var n=r.enter("list"),s=a(e,r);return n(),s};var a=r(9960)},8336:(e,t,r)=>{e.exports=function(e,t,r){var n=r.enter("paragraph"),s=r.enter("phrasing"),i=a(e,r,{before:"\n",after:"\n"});return s(),n(),i};var a=r(4046)},4368:(e,t,r)=>{e.exports=function(e,t,r){return a(e,r)};var a=r(9960)},2855:(e,t,r)=>{e.exports=s,s.peek=function(e,t,r){return r.options.strong||"*"};var a=r(3298),n=r(4046);function s(e,t,r){var s=a(r),i=r.enter("strong"),o=n(e,r,{before:s,after:s});return i(),s+s+o+s+s}},6847:(e,t,r)=>{e.exports=function(e,t,r,n){return a(r,e.value,n)};var a=r(8671)},6749:(e,t,r)=>{e.exports=function(e,t,r){var i=a(s(r)+(r.options.ruleSpaces?" ":""),n(r));return r.options.ruleSpaces?i.slice(0,-1):i};var a=r(6040),n=r(3516),s=r(2647)},4127:(e,t,r)=>{e.exports=function(e,t){var r,u=t||{},p={enter:function(e){return p.stack.push(e),t;function t(){p.stack.pop()}},stack:[],unsafe:[],join:[],handlers:{},options:{}};n(p,{unsafe:o,join:i,handlers:s}),n(p,u),p.options.tightDefinitions&&(p.join=[l].concat(p.join));p.handle=a("type",{invalid:d,unknown:c,handlers:p.handlers}),(r=p.handle(e,null,p,{before:"\n",after:"\n"}))&&10!==r.charCodeAt(r.length-1)&&13!==r.charCodeAt(r.length-1)&&(r+="\n");return r};var a=r(5040),n=r(3927),s=r(6438),i=r(1131),o=r(341);function d(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function c(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function l(e,t){if("definition"===e.type&&e.type===t.type)return 0}},1131:(e,t,r)=>{e.exports=[function(e,t,r,s){if("list"===t.type&&t.type===e.type&&Boolean(e.ordered)===Boolean(t.ordered)||"code"===t.type&&a(t,s)&&("list"===e.type||e.type===t.type&&a(e,s)))return!1;if("boolean"===typeof r.spread){if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&n(t,s)))return;return r.spread?1:0}}];var a=r(3342),n=r(723)},341:e=>{e.exports=[{character:"\t",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:"\n",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing"},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:"(?:[\r\n]|$)"},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing"},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*"},{character:"*",inConstruct:"phrasing"},{atBreak:!0,character:"+"},{atBreak:!0,character:"-"},{atBreak:!0,before:"\\d+",character:".",after:"(?:[ \t\r\n]|$)"},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing"},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:["phrasing","label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{before:"[^A-Za-z]",character:"_",inConstruct:"phrasing"},{character:"_",after:"[^A-Za-z]",inConstruct:"phrasing"},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent","phrasing"]},{atBreak:!0,character:"~"}]},6755:(e,t,r)=>{e.exports=function(e){if(e.label||!e.identifier)return e.label||"";return e.identifier.replace(n,"$1").replace(s,i)};var a=r(8976),n=/\\([!-/:-@[-`{-~])/g,s=/&(#(\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function i(e,t){return a(t)||e}},6261:e=>{e.exports=function(e){var t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}},6451:e=>{e.exports=function(e){var t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}},7156:e=>{e.exports=function(e){var t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}},9972:e=>{e.exports=function(e){var t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}},1989:e=>{e.exports=function(e){var t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}},3516:e=>{e.exports=function(e){var t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}},2647:e=>{e.exports=function(e){var t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}},3298:e=>{e.exports=function(e){var t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}},9960:(e,t,r)=>{e.exports=function(e,t){var r,n=e.children||[],s=[],i=-1;for(;++i{e.exports=function(e,t,r){var a,n,s,i=e.children||[],o=[],d=-1,c=r.before;for(;++d0&&("\r"===c||"\n"===c)&&"html"===s.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),c=" "),o.push(t.handle(s,e,t,{before:c,after:a})),c=o[o.length-1].slice(-1);return o.join("")}},3342:e=>{e.exports=function(e,t){return!t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value)}},723:(e,t,r)=>{e.exports=function(e,t){return t.options.setext&&(!e.depth||e.depth<3)&&a(e)};var a=r(6619)},1455:(e,t,r)=>{e.exports=function(e,t){var r=a(e);return!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url)};var a=r(6619)},6242:e=>{e.exports=function(e,r){var a,n=[],s=0,i=0;for(;a=t.exec(e);)o(e.slice(s,a.index)),n.push(a[0]),s=a.index+a[0].length,i++;return o(e.slice(s)),n.join("");function o(e){n.push(r(e,i,!e))}};var t=/\r?\n|\r/g},4186:e=>{e.exports=function(e){var t,r;e._compiled||(t=e.before?"(?:"+e.before+")":"",r=e.after?"(?:"+e.after+")":"",e.atBreak&&(t="[\\r\\n][\\t ]*"+t),e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(r||""),"g"));return e._compiled}},9753:e=>{function t(e,t,r){var a;if(!t)return r;for("string"===typeof t&&(t=[t]),a=-1;++a{e.exports=function(e,t,r){var o,d,c,l,u,p,f,g,m=(r.before||"")+(t||"")+(r.after||""),h=[],y=[],b={},v=-1;for(;++v=g||c+1{"use strict";function t(e){return e&&(e.value||e.alt||e.title||"children"in e&&r(e.children)||"length"in e&&r(e))||""}function r(e){for(var r=[],a=-1;++a{"use strict";var t;e.exports=function(e){var r,a="&"+e+";";if((t=t||document.createElement("i")).innerHTML=a,59===(r=t.textContent).charCodeAt(r.length-1)&&"semi"!==e)return!1;return r!==a&&r}},5040:e=>{"use strict";e.exports=function(e,a){var n=a||{};function s(a){var n=s.invalid,i=s.handlers;return a&&r.call(a,e)&&(n=r.call(i,a[e])?i[a[e]]:s.unknown),(n||t).apply(this,arguments)}return s.handlers=n.handlers||{},s.invalid=n.invalid,s.unknown=n.unknown,s};var t=Function.prototype,r={}.hasOwnProperty},3521:(e,t,r)=>{"use strict";var a=r(8617),n=r(2155),s=r(4957);e.exports=a().use(n).use(s).freeze()},6157:e=>{"use strict";e.exports=function(e){if(e)throw e}},9580:e=>{"use strict";e.exports=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},5117:(e,t,r)=>{"use strict";e.exports=function(e,t,r){"string"!==typeof t&&(r=t,t=void 0);return function(e){var t=e||{},r=function(e,t){var r=-1;for(;++r-1&&(B.call(this,e),L.call(this,e))}function U(){g("atHardBreak",!0)}function H(){var e=this.resume();this.stack[this.stack.length-1].value=e}function G(){var e=this.resume();this.stack[this.stack.length-1].value=e}function q(){var e=this.resume();this.stack[this.stack.length-1].value=e}function W(){var e=this.stack[this.stack.length-1];m("inReference")?(e.type+="Reference",e.referenceType=m("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),g("referenceType")}function z(){var e=this.stack[this.stack.length-1];m("inReference")?(e.type+="Reference",e.referenceType=m("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),g("referenceType")}function V(e){this.stack[this.stack.length-2].identifier=i(this.sliceSerialize(e)).toLowerCase()}function K(){var e=this.stack[this.stack.length-1],t=this.resume();this.stack[this.stack.length-1].label=t,g("inReference",!0),"link"===this.stack[this.stack.length-1].type?this.stack[this.stack.length-1].children=e.children:this.stack[this.stack.length-1].alt=t}function Y(){var e=this.resume();this.stack[this.stack.length-1].url=e}function X(){var e=this.resume();this.stack[this.stack.length-1].title=e}function J(){g("inReference")}function Q(){g("referenceType","collapsed")}function $(e){var t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=i(this.sliceSerialize(e)).toLowerCase(),g("referenceType","full")}function Z(e){g("characterReferenceType",e.type)}function ee(e){var t,r,a=this.sliceSerialize(e),n=m("characterReferenceType");n?(t=o(a,"characterReferenceMarkerNumeric"===n?10:16),g("characterReferenceType")):t=u(a),(r=this.stack.pop()).value+=t,r.position.end=h(e.end)}function te(e){L.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function re(e){L.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function ae(){return{type:"blockquote",children:[]}}function ne(){return{type:"code",lang:null,meta:null,value:""}}function se(){return{type:"inlineCode",value:""}}function ie(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function oe(){return{type:"emphasis",children:[]}}function de(){return{type:"heading",depth:void 0,children:[]}}function ce(){return{type:"break"}}function le(){return{type:"html",value:""}}function ue(){return{type:"image",title:null,url:"",alt:null}}function pe(){return{type:"link",title:null,url:"",children:[]}}function fe(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function ge(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function me(){return{type:"paragraph",children:[]}}function he(){return{type:"strong",children:[]}}function ye(){return{type:"text",value:""}}function be(){return{type:"thematicBreak"}}}(r)(l(d(r).document().write(c()(e,t,!0))))};var a=r(439),n=r(3175),s=r(4915),i=r(8419),o=r(7012),d=r(1140),c=r(2961),l=r(1188),u=r(1580),p=r(3215);function f(e,t){var r,a;for(r in t)a=s.call(e,r)?e[r]:e[r]={},"canContainEols"===r||"transforms"===r?e[r]=[].concat(a,t[r]):Object.assign(a,t[r])}},1900:(e,t,r)=>{"use strict";e.exports=r(5117)},439:e=>{"use strict";function t(e){return e&&(e.value||e.alt||e.title||"children"in e&&r(e.children)||"length"in e&&r(e))||""}function r(e){for(var r=[],a=-1;++a{"use strict";var a=r(2726)(/[A-Za-z]/);e.exports=a},9510:(e,t,r)=>{"use strict";var a=r(2726)(/[\dA-Za-z]/);e.exports=a},5205:(e,t,r)=>{"use strict";var a=r(2726)(/[#-'*+\--9=?A-Z^-~]/);e.exports=a},9116:e=>{"use strict";e.exports=function(e){return e<32||127===e}},9236:(e,t,r)=>{"use strict";var a=r(2726)(/\d/);e.exports=a},9252:(e,t,r)=>{"use strict";var a=r(2726)(/[\dA-Fa-f]/);e.exports=a},8401:(e,t,r)=>{"use strict";var a=r(2726)(/[!-/:-@[-`{-~]/);e.exports=a},7748:e=>{"use strict";e.exports=function(e){return e<0||32===e}},8581:e=>{"use strict";e.exports=function(e){return e<-2}},773:e=>{"use strict";e.exports=function(e){return-2===e||-1===e||32===e}},5297:(e,t,r)=>{"use strict";var a=r(4008),n=r(2726)(a);e.exports=n},1976:(e,t,r)=>{"use strict";var a=r(2726)(/\s/);e.exports=a},3175:e=>{"use strict";var t=Object.assign;e.exports=t},9097:e=>{"use strict";var t=String.fromCharCode;e.exports=t},4915:e=>{"use strict";var t={}.hasOwnProperty;e.exports=t},4546: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"]},9569:e=>{"use strict";e.exports=["pre","script","style","textarea"]},7322:e=>{"use strict";var t=[].splice;e.exports=t},4008:e=>{"use strict";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\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\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-\u2E4F\u2E52\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]/},6853:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(4435),n=r(7803),s=r(6086),i=r(1825),o=r(7100),d=r(9410),c=r(1446),l=r(2770),u=r(2994),p=r(708),f=r(5256),g=r(841),m=r(5473),h=r(5074),y=r(1135),b=r(2818),v=r(6387),x=r(1847),R=r(6677),E=r(355),T=r(1492),w={42:R,43:R,45:R,48:R,49:R,50:R,51:R,52:R,53:R,54:R,55:R,56:R,57:R,62:i},S={91:p},A={"-2":l,"-1":l,32:l},j={35:g,42:T,45:[E,T],60:m,61:E,95:T,96:c,126:c},_={38:d,92:o},C={"-5":x,"-4":x,"-3":x,33:b,38:d,42:n,60:[s,h],91:v,92:[f,o],93:y,95:n,96:u},k={null:[n,a.resolver]};t.contentInitial=S,t.disable={null:[]},t.document=w,t.flow=j,t.flowInitial=A,t.insideSpan=k,t.string=_,t.text=C},9635:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(8581),n=r(7376),s=function(e){var t,r=e.attempt(this.parser.constructs.contentInitial,(function(t){if(null===t)return void e.consume(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),n(e,r,"linePrefix")}),(function(t){return e.enter("paragraph"),s(t)}));return r;function s(r){var a=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=a),t=a,i(r)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):a(t)?(e.consume(t),e.exit("chunkText"),s):(e.consume(t),i)}};t.tokenize=s},393:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(8581),n=r(7376),s=r(1666),i=function(e){var t,r,n,i=this,c=[],l=0,u={tokenize:function(e,a){var n=0;return t={},l;function l(a){return nt;)i.containerState=c[s][1],c[s][0].exit.call(i,e);c.length=t}},o={tokenize:function(e,t,r){return n(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}},d={tokenize:function(e,t,r){return n(e,e.lazy(this.parser.constructs.flow,t,r),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}};t.tokenize=i},7756:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(1372),n=r(7376),s=r(1666),i=function(e){var t=this,r=e.attempt(s,(function(a){if(null===a)return void e.consume(a);return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}),e.attempt(this.parser.constructs.flowInitial,i,n(e,e.attempt(this.parser.constructs.flow,i,e.attempt(a,i)),"linePrefix")));return r;function i(a){if(null!==a)return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r;e.consume(a)}};t.tokenize=i},4435:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(3175),n=r(9380),s=d("text"),i=d("string"),o={resolveAll:c()};function d(e){return{tokenize:function(t){var r=this,a=this.parser.constructs[e],n=t.attempt(a,s,i);return s;function s(e){return d(e)?n(e):i(e)}function i(e){if(null!==e)return t.enter("data"),t.consume(e),o;t.consume(e)}function o(e){return d(e)?(t.exit("data"),n(e)):(t.consume(e),o)}function d(e){var t=a[e],n=-1;if(null===e)return!0;if(t)for(;++n{"use strict";var a=r(9635),n=r(393),s=r(7756),i=r(4435),o=r(620),d=r(3674),c=r(1306),l=r(6853);e.exports=function(e){var t={defined:[],constructs:o([l].concat(c((e||{}).extensions))),content:r(a),document:r(n),flow:r(s),string:r(i.string),text:r(i.text)};return t;function r(e){return function(r){return d(t,e,r)}}}},1188:(e,t,r)=>{"use strict";var a=r(6015);e.exports=function(e){for(;!a(e););return e}},2961:e=>{"use strict";var t=/[\0\t\n\r]/g;e.exports=function(){var e,r=!0,a=1,n="";return function(s,i,o){var d,c,l,u,p,f=[];s=n+s.toString(i),l=0,n="",r&&(65279===s.charCodeAt(0)&&l++,r=void 0);for(;l{"use strict";var a=r(9977),n=r(8857),s=r(6454),i=r(8196),o=r(2870),d=r(9380),c={name:"attention",tokenize:function(e,t){var r,a=s(this.previous);return function(t){return e.enter("attentionSequence"),r=t,n(t)};function n(i){var o,d,c,l;return i===r?(e.consume(i),n):(o=e.exit("attentionSequence"),c=!(d=s(i))||2===d&&a,l=!a||2===a&&d,o._open=42===r?c:c&&(a||!l),o._close=42===r?l:l&&(d||!c),t(i))}},resolveAll:function(e,t){var r,s,c,l,u,p,f,g,m=-1;for(;++m1&&e[m][1].end.offset-e[m][1].start.offset>1?2:1)>1?"strongSequence":"emphasisSequence",start:i(d(e[r][1].end),-p),end:d(e[r][1].end)},u={type:p>1?"strongSequence":"emphasisSequence",start:d(e[m][1].start),end:i(d(e[m][1].start),p)},c={type:p>1?"strongText":"emphasisText",start:d(e[r][1].end),end:d(e[m][1].start)},s={type:p>1?"strong":"emphasis",start:d(l.start),end:d(u.end)},e[r][1].end=d(l.start),e[m][1].start=d(u.end),f=[],e[r][1].end.offset-e[r][1].start.offset&&(f=a(f,[["enter",e[r][1],t],["exit",e[r][1],t]])),f=a(f,[["enter",s,t],["enter",l,t],["exit",l,t],["enter",c,t]]),f=a(f,o(t.parser.constructs.insideSpan.null,e.slice(r+1,m),t)),f=a(f,[["exit",c,t],["enter",u,t],["exit",u,t],["exit",s,t]]),e[m][1].end.offset-e[m][1].start.offset?(g=2,f=a(f,[["enter",e[m][1],t],["exit",e[m][1],t]])):g=0,n(e,r-1,m-r+3,f),m=r+f.length-g-2;break}m=-1;for(;++m{"use strict";var a=r(5573),n=r(9510),s=r(5205),i=r(9116),o={name:"autolink",tokenize:function(e,t,r){var o=1;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),d};function d(t){return a(t)?(e.consume(t),c):s(t)?p(t):r(t)}function c(e){return 43===e||45===e||46===e||n(e)?l(e):p(e)}function l(t){return 58===t?(e.consume(t),u):(43===t||45===t||46===t||n(t))&&o++<32?(e.consume(t),l):p(t)}function u(t){return 62===t?(e.exit("autolinkProtocol"),h(t)):32===t||60===t||i(t)?r(t):(e.consume(t),u)}function p(t){return 64===t?(e.consume(t),o=0,f):s(t)?(e.consume(t),p):r(t)}function f(e){return n(e)?g(e):r(e)}function g(t){return 46===t?(e.consume(t),o=0,f):62===t?(e.exit("autolinkProtocol").type="autolinkEmail",h(t)):m(t)}function m(t){return(45===t||n(t))&&o++<63?(e.consume(t),45===t?m:g):r(t)}function h(r){return e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t}}};e.exports=o},1825:(e,t,r)=>{"use strict";var a=r(773),n=r(7376),s={name:"blockQuote",tokenize:function(e,t,r){var n=this;return function(t){if(62===t)return n.containerState.open||(e.enter("blockQuote",{_container:!0}),n.containerState.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),s;return r(t)};function s(r){return a(r)?(e.enter("blockQuotePrefixWhitespace"),e.consume(r),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(r))}},continuation:{tokenize:function(e,t,r){return n(e,e.attempt(s,t,r),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}},exit:function(e){e.exit("blockQuote")}};e.exports=s},7100:(e,t,r)=>{"use strict";var a=r(8401),n={name:"characterEscape",tokenize:function(e,t,r){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),n};function n(n){return a(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}};e.exports=n},9410:(e,t,r)=>{"use strict";var a=r(1580),n=r(9510),s=r(9236),i=r(9252);function o(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var d=o(a),c={name:"characterReference",tokenize:function(e,t,r){var a,o,c=this,l=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),u};function u(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),a=31,o=n,f(t))}function p(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=i,f):(e.enter("characterReferenceValue"),a=7,o=s,f(t))}function f(s){var i;return 59===s&&l?(i=e.exit("characterReferenceValue"),o!==n||d.default(c.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(s)):o(s)&&l++{"use strict";var a=r(8581),n=r(7748),s=r(3970),i=r(7376),o={name:"codeFenced",tokenize:function(e,t,r){var o,d=this,c={tokenize:function(e,t,r){var n=0;return i(e,s,"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4);function s(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(t)}function d(t){return t===o?(e.consume(t),n++,d):n{"use strict";var a=r(8581),n=r(8857),s=r(3970),i=r(7376),o={name:"codeIndented",tokenize:function(e,t,r){return e.attempt(d,n,r);function n(r){return null===r?t(r):a(r)?e.attempt(d,n,t)(r):(e.enter("codeFlowValue"),s(r))}function s(t){return null===t||a(t)?(e.exit("codeFlowValue"),n(t)):(e.consume(t),s)}},resolve:function(e,t){var r={type:"codeIndented",start:e[0][1].start,end:e[e.length-1][1].end};return n(e,0,0,[["enter",r,t]]),n(e,e.length,0,[["exit",r,t]]),e}},d={tokenize:function(e,t,r){var n=this;return i(e,(function o(d){if(a(d))return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),i(e,o,"linePrefix",5);return s(n.events,"linePrefix")<4?r(d):t(d)}),"linePrefix",5)},partial:!0};e.exports=o},2994:(e,t,r)=>{"use strict";var a=r(8581),n={name:"codeText",tokenize:function(e,t,r){var n,s,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),o(t)};function o(t){return 96===t?(e.consume(t),i++,o):(e.exit("codeTextSequence"),d(t))}function d(t){return null===t?r(t):96===t?(s=e.enter("codeTextSequence"),n=0,l(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),d):a(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):(e.enter("codeTextData"),c(t))}function c(t){return null===t||32===t||96===t||a(t)?(e.exit("codeTextData"),d(t)):(e.consume(t),c)}function l(r){return 96===r?(e.consume(r),n++,l):n===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(r)):(s.type="codeTextData",c(r))}},resolve:function(e){var t,r,a=e.length-4,n=3;if(("lineEnding"===e[n][1].type||"space"===e[n][1].type)&&("lineEnding"===e[a][1].type||"space"===e[a][1].type))for(t=n;++t{"use strict";var a=r(8581),n=r(3970),s=r(6015),i=r(7376),o={tokenize:function(e,t){var r;return function(t){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(t)};function n(t){return null===t?s(t):a(t)?e.check(d,i,s)(t):(e.consume(t),n)}function s(r){return e.exit("chunkContent"),e.exit("content"),t(r)}function i(t){return e.consume(t),e.exit("chunkContent"),r=r.next=e.enter("chunkContent",{contentType:"content",previous:r}),n}},resolve:function(e){return s(e),e},interruptible:!0,lazy:!0},d={tokenize:function(e,t,r){var s=this;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i(e,o,"linePrefix")};function o(i){return null===i||a(i)?r(i):s.parser.constructs.disable.null.indexOf("codeIndented")>-1||n(s.events,"linePrefix")<4?e.interrupt(s.parser.constructs.flow,r,t)(i):t(i)}},partial:!0};e.exports=o},708:(e,t,r)=>{"use strict";var a=r(8581),n=r(7748),s=r(8419),i=r(4006),o=r(8340),d=r(7376),c=r(6185),l=r(4668),u={name:"definition",tokenize:function(e,t,r){var n,l=this;return function(t){return e.enter("definition"),o.call(l,e,u,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function u(t){return n=s(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),c(e,i(e,e.attempt(p,d(e,f,"whitespace"),d(e,f,"whitespace")),r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):r(t)}function f(s){return null===s||a(s)?(e.exit("definition"),l.parser.defined.indexOf(n)<0&&l.parser.defined.push(n),t(s)):r(s)}}},p={tokenize:function(e,t,r){return function(t){return n(t)?c(e,s)(t):r(t)};function s(t){return 34===t||39===t||40===t?l(e,d(e,i,"whitespace"),r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):r(t)}function i(e){return null===e||a(e)?t(e):r(e)}},partial:!0};e.exports=u},4006:(e,t,r)=>{"use strict";var a=r(9116),n=r(7748),s=r(8581);e.exports=function(e,t,r,i,o,d,c,l,u){var p=u||1/0,f=0;return function(t){if(60===t)return e.enter(i),e.enter(o),e.enter(d),e.consume(t),e.exit(d),g;if(a(t)||41===t)return r(t);return e.enter(i),e.enter(c),e.enter(l),e.enter("chunkString",{contentType:"string"}),y(t)};function g(r){return 62===r?(e.enter(d),e.consume(r),e.exit(d),e.exit(o),e.exit(i),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),m(r))}function m(t){return 62===t?(e.exit("chunkString"),e.exit(l),g(t)):null===t||60===t||s(t)?r(t):(e.consume(t),92===t?h:m)}function h(t){return 60===t||62===t||92===t?(e.consume(t),m):m(t)}function y(s){return 40===s?++f>p?r(s):(e.consume(s),y):41===s?f--?(e.consume(s),y):(e.exit("chunkString"),e.exit(l),e.exit(c),e.exit(i),t(s)):null===s||n(s)?f?r(s):(e.exit("chunkString"),e.exit(l),e.exit(c),e.exit(i),t(s)):a(s)?r(s):(e.consume(s),92===s?b:y)}function b(t){return 40===t||41===t||92===t?(e.consume(t),y):y(t)}}},8340:(e,t,r)=>{"use strict";var a=r(8581),n=r(773);e.exports=function(e,t,r,s,i,o){var d,c=this,l=0;return function(t){return e.enter(s),e.enter(i),e.consume(t),e.exit(i),e.enter(o),u};function u(n){return null===n||91===n||93===n&&!d||94===n&&!l&&"_hiddenFootnoteSupport"in c.parser.constructs||l>999?r(n):93===n?(e.exit(o),e.enter(i),e.consume(n),e.exit(i),e.exit(s),t):a(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return null===t||91===t||93===t||a(t)||l++>999?(e.exit("chunkString"),u(t)):(e.consume(t),d=d||!n(t),92===t?f:p)}function f(t){return 91===t||92===t||93===t?(e.consume(t),l++,p):p(t)}}},7376:(e,t,r)=>{"use strict";var a=r(773);e.exports=function(e,t,r,n){var s=n?n-1:1/0,i=0;return function(n){if(a(n))return e.enter(r),o(n);return t(n)};function o(n){return a(n)&&i++{"use strict";var a=r(8581),n=r(7376);e.exports=function(e,t,r,s,i,o){var d;return function(t){return e.enter(s),e.enter(i),e.consume(t),e.exit(i),d=40===t?41:t,c};function c(r){return r===d?(e.enter(i),e.consume(r),e.exit(i),e.exit(s),t):(e.enter(o),l(r))}function l(t){return t===d?(e.exit(o),c(d)):null===t?r(t):a(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),n(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===d||null===t||a(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?p:u)}function p(t){return t===d||92===t?(e.consume(t),u):u(t)}}},6185:(e,t,r)=>{"use strict";var a=r(8581),n=r(773),s=r(7376);e.exports=function(e,t){var r;return function i(o){if(a(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,i;if(n(o))return s(e,i,r?"linePrefix":"lineSuffix")(o);return t(o)}}},5256:(e,t,r)=>{"use strict";var a=r(8581),n={name:"hardBreakEscape",tokenize:function(e,t,r){return function(t){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(t),n};function n(n){return a(n)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(n)):r(n)}}};e.exports=n},841:(e,t,r)=>{"use strict";var a=r(8581),n=r(7748),s=r(773),i=r(8857),o=r(7376),d={name:"headingAtx",tokenize:function(e,t,r){var i=this,d=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),c(t)};function c(a){return 35===a&&d++<6?(e.consume(a),c):null===a||n(a)?(e.exit("atxHeadingSequence"),i.interrupt?t(a):l(a)):r(a)}function l(r){return 35===r?(e.enter("atxHeadingSequence"),u(r)):null===r||a(r)?(e.exit("atxHeading"),t(r)):s(r)?o(e,l,"whitespace")(r):(e.enter("atxHeadingText"),p(r))}function u(t){return 35===t?(e.consume(t),u):(e.exit("atxHeadingSequence"),l(t))}function p(t){return null===t||35===t||n(t)?(e.exit("atxHeadingText"),l(t)):(e.consume(t),p)}},resolve:function(e,t){var r,a,n=e.length-2,s=3;"whitespace"===e[s][1].type&&(s+=2);n-2>s&&"whitespace"===e[n][1].type&&(n-=2);"atxHeadingSequence"===e[n][1].type&&(s===n-1||n-4>s&&"whitespace"===e[n-2][1].type)&&(n-=s+1===n?2:4);n>s&&(r={type:"atxHeadingText",start:e[s][1].start,end:e[n][1].end},a={type:"chunkText",start:e[s][1].start,end:e[n][1].end,contentType:"text"},i(e,s,n-s+1,[["enter",r,t],["enter",a,t],["exit",a,t],["exit",r,t]]));return e}};e.exports=d},5473:(e,t,r)=>{"use strict";var a=r(5573),n=r(9510),s=r(8581),i=r(7748),o=r(773),d=r(9097),c=r(4546),l=r(9569),u=r(1666),p={name:"htmlFlow",tokenize:function(e,t,r){var u,p,g,m,h,y=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),b};function b(n){return 33===n?(e.consume(n),v):47===n?(e.consume(n),E):63===n?(e.consume(n),u=3,y.interrupt?t:G):a(n)?(e.consume(n),g=d(n),p=!0,T):r(n)}function v(n){return 45===n?(e.consume(n),u=2,x):91===n?(e.consume(n),u=5,g="CDATA[",m=0,R):a(n)?(e.consume(n),u=4,y.interrupt?t:G):r(n)}function x(a){return 45===a?(e.consume(a),y.interrupt?t:G):r(a)}function R(a){return a===g.charCodeAt(m++)?(e.consume(a),m===g.length?y.interrupt?t:O:R):r(a)}function E(t){return a(t)?(e.consume(t),g=d(t),T):r(t)}function T(a){return null===a||47===a||62===a||i(a)?47!==a&&p&&l.indexOf(g.toLowerCase())>-1?(u=1,y.interrupt?t(a):O(a)):c.indexOf(g.toLowerCase())>-1?(u=6,47===a?(e.consume(a),w):y.interrupt?t(a):O(a)):(u=7,y.interrupt?r(a):p?A(a):S(a)):45===a||n(a)?(e.consume(a),g+=d(a),T):r(a)}function w(a){return 62===a?(e.consume(a),y.interrupt?t:O):r(a)}function S(t){return o(t)?(e.consume(t),S):I(t)}function A(t){return 47===t?(e.consume(t),I):58===t||95===t||a(t)?(e.consume(t),j):o(t)?(e.consume(t),A):I(t)}function j(t){return 45===t||46===t||58===t||95===t||n(t)?(e.consume(t),j):_(t)}function _(t){return 61===t?(e.consume(t),C):o(t)?(e.consume(t),_):A(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),h=t,k):o(t)?(e.consume(t),C):(h=void 0,P(t))}function k(t){return t===h?(e.consume(t),D):null===t||s(t)?r(t):(e.consume(t),k)}function P(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||i(t)?_(t):(e.consume(t),P)}function D(e){return 47===e||62===e||o(e)?A(e):r(e)}function I(t){return 62===t?(e.consume(t),N):r(t)}function N(t){return o(t)?(e.consume(t),N):null===t||s(t)?O(t):r(t)}function O(t){return 45===t&&2===u?(e.consume(t),L):60===t&&1===u?(e.consume(t),M):62===t&&4===u?(e.consume(t),q):63===t&&3===u?(e.consume(t),G):93===t&&5===u?(e.consume(t),H):!s(t)||6!==u&&7!==u?null===t||s(t)?F(t):(e.consume(t),O):e.check(f,q,F)(t)}function F(t){return e.exit("htmlFlowData"),B(t)}function B(t){return null===t?W(t):s(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),B):(e.enter("htmlFlowData"),O(t))}function L(t){return 45===t?(e.consume(t),G):O(t)}function M(t){return 47===t?(e.consume(t),g="",U):O(t)}function U(t){return 62===t&&l.indexOf(g.toLowerCase())>-1?(e.consume(t),q):a(t)&&g.length<8?(e.consume(t),g+=d(t),U):O(t)}function H(t){return 93===t?(e.consume(t),G):O(t)}function G(t){return 62===t?(e.consume(t),q):O(t)}function q(t){return null===t||s(t)?(e.exit("htmlFlowData"),W(t)):(e.consume(t),q)}function W(r){return e.exit("htmlFlow"),t(r)}},resolveTo:function(e){var t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},f={tokenize:function(e,t,r){return function(a){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),e.attempt(u,t,r)}},partial:!0};e.exports=p},5074:(e,t,r)=>{"use strict";var a=r(5573),n=r(9510),s=r(8581),i=r(7748),o=r(773),d=r(7376),c={name:"htmlText",tokenize:function(e,t,r){var c,l,u,p,f=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),g};function g(t){return 33===t?(e.consume(t),m):47===t?(e.consume(t),_):63===t?(e.consume(t),A):a(t)?(e.consume(t),P):r(t)}function m(t){return 45===t?(e.consume(t),h):91===t?(e.consume(t),l="CDATA[",u=0,R):a(t)?(e.consume(t),S):r(t)}function h(t){return 45===t?(e.consume(t),y):r(t)}function y(t){return null===t||62===t?r(t):45===t?(e.consume(t),b):v(t)}function b(e){return null===e||62===e?r(e):v(e)}function v(t){return null===t?r(t):45===t?(e.consume(t),x):s(t)?(p=v,M(t)):(e.consume(t),v)}function x(t){return 45===t?(e.consume(t),H):v(t)}function R(t){return t===l.charCodeAt(u++)?(e.consume(t),u===l.length?E:R):r(t)}function E(t){return null===t?r(t):93===t?(e.consume(t),T):s(t)?(p=E,M(t)):(e.consume(t),E)}function T(t){return 93===t?(e.consume(t),w):E(t)}function w(t){return 62===t?H(t):93===t?(e.consume(t),w):E(t)}function S(t){return null===t||62===t?H(t):s(t)?(p=S,M(t)):(e.consume(t),S)}function A(t){return null===t?r(t):63===t?(e.consume(t),j):s(t)?(p=A,M(t)):(e.consume(t),A)}function j(e){return 62===e?H(e):A(e)}function _(t){return a(t)?(e.consume(t),C):r(t)}function C(t){return 45===t||n(t)?(e.consume(t),C):k(t)}function k(t){return s(t)?(p=k,M(t)):o(t)?(e.consume(t),k):H(t)}function P(t){return 45===t||n(t)?(e.consume(t),P):47===t||62===t||i(t)?D(t):r(t)}function D(t){return 47===t?(e.consume(t),H):58===t||95===t||a(t)?(e.consume(t),I):s(t)?(p=D,M(t)):o(t)?(e.consume(t),D):H(t)}function I(t){return 45===t||46===t||58===t||95===t||n(t)?(e.consume(t),I):N(t)}function N(t){return 61===t?(e.consume(t),O):s(t)?(p=N,M(t)):o(t)?(e.consume(t),N):D(t)}function O(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),c=t,F):s(t)?(p=O,M(t)):o(t)?(e.consume(t),O):(e.consume(t),c=void 0,L)}function F(t){return t===c?(e.consume(t),B):null===t?r(t):s(t)?(p=F,M(t)):(e.consume(t),F)}function B(e){return 62===e||47===e||i(e)?D(e):r(e)}function L(t){return null===t||34===t||39===t||60===t||61===t||96===t?r(t):62===t||i(t)?D(t):(e.consume(t),L)}function M(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d(e,U,"linePrefix",f.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}function U(t){return e.enter("htmlTextData"),p(t)}function H(a){return 62===a?(e.consume(a),e.exit("htmlTextData"),e.exit("htmlText"),t):r(a)}}};e.exports=c},1135:(e,t,r)=>{"use strict";var a=r(7748),n=r(9977),s=r(8857),i=r(8419),o=r(2870),d=r(9380),c=r(4006),l=r(8340),u=r(4668),p=r(6185),f={name:"labelEnd",tokenize:function(e,t,r){var a,n,s=this,o=s.events.length;for(;o--;)if(("labelImage"===s.events[o][1].type||"labelLink"===s.events[o][1].type)&&!s.events[o][1]._balanced){a=s.events[o][1];break}return function(t){if(!a)return r(t);return a._inactive?c(t):(n=s.parser.defined.indexOf(i(s.sliceSerialize({start:a.end,end:s.now()})))>-1,e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),d)};function d(r){return 40===r?e.attempt(g,t,n?t:c)(r):91===r?e.attempt(m,t,n?e.attempt(h,t,c):c)(r):n?t(r):c(r)}function c(e){return a._balanced=!0,r(e)}},resolveTo:function(e,t){var r,a,i,c,l,u,p,f=e.length,g=0;for(;f--;)if(c=e[f][1],l){if("link"===c.type||"labelLink"===c.type&&c._inactive)break;"enter"===e[f][0]&&"labelLink"===c.type&&(c._inactive=!0)}else if(u){if("enter"===e[f][0]&&("labelImage"===c.type||"labelLink"===c.type)&&!c._balanced&&(l=f,"labelLink"!==c.type)){g=2;break}}else"labelEnd"===c.type&&(u=f);return r={type:"labelLink"===e[l][1].type?"link":"image",start:d(e[l][1].start),end:d(e[e.length-1][1].end)},a={type:"label",start:d(e[l][1].start),end:d(e[u][1].end)},i={type:"labelText",start:d(e[l+g+2][1].end),end:d(e[u-2][1].start)},p=n(p=[["enter",r,t],["enter",a,t]],e.slice(l+1,l+g+3)),p=n(p,[["enter",i,t]]),p=n(p,o(t.parser.constructs.insideSpan.null,e.slice(l+g+4,u-3),t)),p=n(p,[["exit",i,t],e[u-2],e[u-1],["exit",a,t]]),p=n(p,e.slice(u+1)),p=n(p,[["exit",r,t]]),s(e,l,e.length,p),e},resolveAll:function(e){var t,r=-1;for(;++r{"use strict";var a={name:"labelStartImage",tokenize:function(e,t,r){var a=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),n};function n(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),s):r(t)}function s(e){return 94===e&&"_hiddenFootnoteSupport"in a.parser.constructs?r(e):t(e)}},resolveAll:r(1135).resolveAll};e.exports=a},6387:(e,t,r)=>{"use strict";var a={name:"labelStartLink",tokenize:function(e,t,r){var a=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),n};function n(e){return 94===e&&"_hiddenFootnoteSupport"in a.parser.constructs?r(e):t(e)}},resolveAll:r(1135).resolveAll};e.exports=a},1847:(e,t,r)=>{"use strict";var a=r(7376),n={name:"lineEnding",tokenize:function(e,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),a(e,t,"linePrefix")}}};e.exports=n},6677:(e,t,r)=>{"use strict";var a=r(9236),n=r(773),s=r(3970),i=r(2078),o=r(7376),d=r(1666),c=r(1492),l={name:"list",tokenize:function(e,t,r){var o=this,l=s(o.events,"linePrefix"),p=0;return function(t){var n=o.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===n?!o.containerState.marker||t===o.containerState.marker:a(t)){if(o.containerState.type||(o.containerState.type=n,e.enter(n,{_container:!0})),"listUnordered"===n)return e.enter("listItemPrefix"),42===t||45===t?e.check(c,r,g)(t):g(t);if(!o.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(t)}return r(t)};function f(t){return a(t)&&++p<10?(e.consume(t),f):(!o.interrupt||p<2)&&(o.containerState.marker?t===o.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),g(t)):r(t)}function g(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||t,e.check(d,o.interrupt?r:m,e.attempt(u,y,h))}function m(e){return o.containerState.initialBlankLine=!0,l++,y(e)}function h(t){return n(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),y):r(t)}function y(r){return o.containerState.size=l+i(o.sliceStream(e.exit("listItemPrefix"))),t(r)}},continuation:{tokenize:function(e,t,r){var a=this;return a.containerState._closeFlow=void 0,e.check(d,(function(r){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,o(e,t,"listItemIndent",a.containerState.size+1)(r)}),(function(r){if(a.containerState.furtherBlankLines||!n(r))return a.containerState.furtherBlankLines=a.containerState.initialBlankLine=void 0,s(r);return a.containerState.furtherBlankLines=a.containerState.initialBlankLine=void 0,e.attempt(p,t,s)(r)}));function s(n){return a.containerState._closeFlow=!0,a.interrupt=void 0,o(e,e.attempt(l,t,r),"linePrefix",a.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)(n)}}},exit:function(e){e.exit(this.containerState.type)}},u={tokenize:function(e,t,r){var a=this;return o(e,(function(e){return n(e)||!s(a.events,"listItemPrefixWhitespace")?r(e):t(e)}),"listItemPrefixWhitespace",a.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:5)},partial:!0},p={tokenize:function(e,t,r){var a=this;return o(e,(function(e){return s(a.events,"listItemIndent")===a.containerState.size?t(e):r(e)}),"listItemIndent",a.containerState.size+1)},partial:!0};e.exports=l},1666:(e,t,r)=>{"use strict";var a=r(8581),n=r(7376),s={tokenize:function(e,t,r){return n(e,(function(e){return null===e||a(e)?t(e):r(e)}),"linePrefix")},partial:!0};e.exports=s},355:(e,t,r)=>{"use strict";var a=r(8581),n=r(9380),s=r(7376),i={name:"setextUnderline",tokenize:function(e,t,r){var n,i,o=this,d=o.events.length;for(;d--;)if("lineEnding"!==o.events[d][1].type&&"linePrefix"!==o.events[d][1].type&&"content"!==o.events[d][1].type){i="paragraph"===o.events[d][1].type;break}return function(t){if(!o.lazy&&(o.interrupt||i))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),n=t,c(t);return r(t)};function c(t){return t===n?(e.consume(t),c):(e.exit("setextHeadingLineSequence"),s(e,l,"lineSuffix")(t))}function l(n){return null===n||a(n)?(e.exit("setextHeadingLine"),t(n)):r(n)}},resolveTo:function(e,t){var r,a,s,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){r=o;break}"paragraph"===e[o][1].type&&(a=o)}else"content"===e[o][1].type&&e.splice(o,1),s||"definition"!==e[o][1].type||(s=o);i={type:"setextHeading",start:n(e[a][1].start),end:n(e[e.length-1][1].end)},e[a][1].type="setextHeadingText",s?(e.splice(a,0,["enter",i,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end=n(e[s][1].end)):e[r][1]=i;return e.push(["exit",i,t]),e}};e.exports=i},1492:(e,t,r)=>{"use strict";var a=r(8581),n=r(773),s=r(7376),i={name:"thematicBreak",tokenize:function(e,t,r){var i,o=0;return function(t){return e.enter("thematicBreak"),i=t,d(t)};function d(l){return l===i?(e.enter("thematicBreakSequence"),c(l)):n(l)?s(e,d,"whitespace")(l):o<3||null!==l&&!a(l)?r(l):(e.exit("thematicBreak"),t(l))}function c(t){return t===i?(e.consume(t),o++,c):(e.exit("thematicBreakSequence"),d(t))}}};e.exports=i},9977:(e,t,r)=>{"use strict";var a=r(8857);e.exports=function(e,t){return e.length?(a(e,e.length,0,t),e):t}},8857:(e,t,r)=>{"use strict";var a=r(7322);e.exports=function(e,t,r,n){var s,i=e.length,o=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,r=r>0?r:0,n.length<1e4)(s=Array.from(n)).unshift(t,r),a.apply(e,s);else for(r&&a.apply(e,[t,r]);o{"use strict";var a=r(7748),n=r(5297),s=r(1976);e.exports=function(e){return null===e||a(e)||s(e)?1:n(e)?2:void 0}},620:(e,t,r)=>{"use strict";var a=r(4915),n=r(8857),s=r(1306);function i(e,t){var r,n,i,d;for(r in t)for(d in n=a.call(e,r)?e[r]:e[r]={},i=t[r])n[d]=o(s(i[d]),a.call(n,d)?n[d]:[])}function o(e,t){for(var r=-1,a=[];++r{"use strict";var a=r(3175),n=r(8581),s=r(9977),i=r(8857),o=r(1306),d=r(2870),c=r(2773),l=r(9380),u=r(8645);e.exports=function(e,t,r){var p=r?l(r):{line:1,column:1,offset:0},f={},g=[],m=[],h=[],y={consume:function(e){n(e)?(p.line++,p.column=1,p.offset+=-3===e?2:1,j()):-1!==e&&(p.column++,p.offset++);p._bufferIndex<0?p._index++:(p._bufferIndex++,p._bufferIndex===m[p._index].length&&(p._bufferIndex=-1,p._index++));b.previous=e},enter:function(e,t){var r=t||{};return r.type=e,r.start=R(),b.events.push(["enter",r,b]),h.push(r),r},exit:function(e){var t=h.pop();return t.end=R(),b.events.push(["exit",t,b]),t},attempt:S((function(e,t){A(e,t.from)})),check:S(w),interrupt:S(w,{interrupt:!0}),lazy:S(w,{lazy:!0})},b={previous:null,events:[],parser:e,sliceStream:x,sliceSerialize:function(e){return c(x(e))},now:R,defineSkip:function(e){f[e.line]=e.column,j()},write:function(e){if(m=s(m,e),E(),null!==m[m.length-1])return[];return A(t,0),b.events=d(g,b.events,b),b.events}},v=t.tokenize.call(b,y);return t.resolveAll&&g.push(t),p._index=0,p._bufferIndex=-1,b;function x(e){return u(m,e)}function R(){return l(p)}function E(){for(var e,t;p._index-1)return m();return e.tokenize.call(t?a({},b,t):b,y,g,m)(r)}}function g(t){return e(c,l),n}function m(e){return l.restore(),++d{"use strict";e.exports=function(e){return null===e||void 0===e?[]:"length"in e?e:[e]}},8196:e=>{"use strict";e.exports=function(e,t){return e.column+=t,e.offset+=t,e._bufferIndex+=t,e}},8419:e=>{"use strict";e.exports=function(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}},3970:(e,t,r)=>{"use strict";var a=r(2078);e.exports=function(e,t){var r=e[e.length-1];return r&&r[1].type===t?a(r[2].sliceStream(r[1])):0}},2726:(e,t,r)=>{"use strict";var a=r(9097);e.exports=function(e){return function(t){return e.test(a(t))}}},2870:e=>{"use strict";e.exports=function(e,t,r){for(var a,n=[],s=-1;++s{"use strict";var a=r(9097);e.exports=function(e,t){var r=parseInt(e,t);return r<9||11===r||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||65535===(65535&r)||65534===(65535&r)||r>1114111?"\ufffd":a(r)}},2773:(e,t,r)=>{"use strict";var a=r(9097);e.exports=function(e){for(var t,r,n,s=-1,i=[];++s{"use strict";var a=r(3175);e.exports=function(e){return a({},e)}},2078:e=>{"use strict";e.exports=function(e){for(var t=-1,r=0;++t{"use strict";e.exports=function(e,t){var r,a=t.start._index,n=t.start._bufferIndex,s=t.end._index,i=t.end._bufferIndex;return a===s?r=[e[a].slice(n,i)]:(r=e.slice(a,s),n>-1&&(r[0]=r[0].slice(n)),i>0&&r.push(e[s].slice(0,i))),r}},6015:(e,t,r)=>{"use strict";var a=r(3175),n=r(8857),s=r(9380);function i(e,t){for(var r,a,s,i,o,d,c=e[t][1],l=e[t][2],u=t-1,p=[],f=c._tokenizer||l.parser[c.contentType](c.start),g=f.events,m=[],h={};c;){for(;e[++u][1]!==c;);p.push(u),c._tokenizer||(r=l.sliceStream(c),c.next||r.push(null),a&&f.defineSkip(c.start),c.isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(r),c.isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),a=c,c=c.next}for(c=a,s=g.length;s--;)"enter"===g[s][0]?i=!0:i&&g[s][1].type===g[s-1][1].type&&g[s][1].start.line!==g[s][1].end.line&&(y(g.slice(s+1,o)),c._tokenizer=c.next=void 0,c=c.previous,o=s+1);for(f.events=c._tokenizer=c.next=void 0,y(g.slice(0,o)),s=-1,d=0;++s{"use strict";var t;e.exports=function(e){var r,a="&"+e+";";if((t=t||document.createElement("i")).innerHTML=a,59===(r=t.textContent).charCodeAt(r.length-1)&&"semi"!==e)return!1;return r!==a&&r}},2155:(e,t,r)=>{"use strict";e.exports=function(e){var t=this;this.Parser=function(r){return a(r,Object.assign({},t.data("settings"),e,{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}};var a=r(1900)},8952:(e,t,r)=>{"use strict";var a=r(7222);e.exports=s,s.wrap=a;var n=[].slice;function s(){var e=[],t={run:function(){var t=-1,r=n.call(arguments,0,-1),s=arguments[arguments.length-1];if("function"!==typeof s)throw new Error("Expected function as last argument, not "+s);(function i(o){var d=e[++t],c=n.call(arguments,0).slice(1),l=r.length,u=-1;if(o)s(o);else{for(;++u{"use strict";var t=[].slice;e.exports=function(e,r){var a;return function(){var r,i=t.call(arguments,0),o=e.length>i.length;o&&i.push(n);try{r=e.apply(null,i)}catch(d){if(o&&a)throw d;return n(d)}o||(r&&"function"===typeof r.then?r.then(s,n):r instanceof Error?n(r):s(r))};function n(){a||(a=!0,r.apply(null,arguments))}function s(e){n(null,e)}}},8617:(e,t,r)=>{"use strict";var a=r(6157),n=r(3670),s=r(1761),i=r(9580),o=r(8952),d=r(2063);e.exports=function e(){var t,r=[],n=o(),b={},v=-1;return x.data=function(e,r){if("string"===typeof e)return 2===arguments.length?(m("data",t),b[e]=r,x):l.call(b,e)&&b[e]||null;if(e)return m("data",t),b=e,x;return b},x.freeze=R,x.attachers=r,x.use=function(e){var a;if(m("use",t),null===e||void 0===e);else if("function"===typeof e)l.apply(null,arguments);else{if("object"!==typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?d(e):n(e)}a&&(b.settings=s(b.settings||{},a));return x;function n(e){d(e.plugins),e.settings&&(a=s(a||{},e.settings))}function o(e){if("function"===typeof e)l(e);else{if("object"!==typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?l.apply(null,e):n(e)}}function d(e){var t=-1;if(null===e||void 0===e);else{if("object"!==typeof e||!("length"in e))throw new Error("Expected a list of plugins, not `"+e+"`");for(;++t{"use strict";var t={}.hasOwnProperty;function r(e){return e&&"object"===typeof e||(e={}),n(e.line)+":"+n(e.column)}function a(e){return e&&"object"===typeof e||(e={}),r(e.start)+"-"+r(e.end)}function n(e){return e&&"number"===typeof e?e:1}e.exports=function(e){if(!e||"object"!==typeof e)return"";if(t.call(e,"position")||t.call(e,"type"))return a(e.position);if(t.call(e,"start")||t.call(e,"end"))return a(e);if(t.call(e,"line")||t.call(e,"column"))return r(e);return""}},4449:(e,t,r)=>{"use strict";var a=r(3215);function n(){}e.exports=i,n.prototype=Error.prototype,i.prototype=new n;var s=i.prototype;function i(e,t,r){var n,s,i;"string"===typeof t&&(r=t,t=null),n=function(e){var t,r=[null,null];"string"===typeof e&&(-1===(t=e.indexOf(":"))?r[1]=e:(r[0]=e.slice(0,t),r[1]=e.slice(t+1)));return r}(r),s=a(t)||"1:1",i={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(i=t,t=t.start):i.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=s,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=i,this.source=n[0],this.ruleId=n[1]}s.file="",s.name="",s.reason="",s.message="",s.stack="",s.fatal=null,s.column=null,s.line=null},2063:(e,t,r)=>{"use strict";e.exports=r(207)},2088:(e,t,r)=>{"use strict";var a=r(7986),n=r(5657),s=r(3670);e.exports=d;var i={}.hasOwnProperty,o=["history","path","basename","stem","extname","dirname"];function d(e){var t,r;if(e){if("string"===typeof e||s(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof d))return new d(e);for(this.data={},this.messages=[],this.history=[],this.cwd=n.cwd(),r=-1;++r-1)throw new Error("`"+t+"` cannot be a path: did not expect `"+a.sep+"`")}function l(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function u(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}d.prototype.toString=function(e){return(this.contents||"").toString(e)},Object.defineProperty(d.prototype,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){l(e,"path"),this.path!==e&&this.history.push(e)}}),Object.defineProperty(d.prototype,"dirname",{get:function(){return"string"===typeof this.path?a.dirname(this.path):void 0},set:function(e){u(this.path,"dirname"),this.path=a.join(e||"",this.basename)}}),Object.defineProperty(d.prototype,"basename",{get:function(){return"string"===typeof this.path?a.basename(this.path):void 0},set:function(e){l(e,"basename"),c(e,"basename"),this.path=a.join(this.dirname||"",e)}}),Object.defineProperty(d.prototype,"extname",{get:function(){return"string"===typeof this.path?a.extname(this.path):void 0},set:function(e){if(c(e,"extname"),u(this.path,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=a.join(this.dirname,this.stem+(e||""))}}),Object.defineProperty(d.prototype,"stem",{get:function(){return"string"===typeof this.path?a.basename(this.path,this.extname):void 0},set:function(e){l(e,"stem"),c(e,"stem"),this.path=a.join(this.dirname||"",e+(this.extname||""))}})},207:(e,t,r)=>{"use strict";var a=r(4449),n=r(2088);e.exports=n,n.prototype.message=function(e,t,r){var n=new a(e,t,r);this.path&&(n.name=this.path+":"+n.name,n.file=this.path);return n.fatal=!1,this.messages.push(n),n},n.prototype.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},n.prototype.fail=function(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}},7986:(e,t)=>{"use strict";function r(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}t.basename=function(e,t){var a,n,s,i,o=0,d=-1;if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');if(r(e),a=e.length,void 0===t||!t.length||t.length>e.length){for(;a--;)if(47===e.charCodeAt(a)){if(s){o=a+1;break}}else d<0&&(s=!0,d=a+1);return d<0?"":e.slice(o,d)}if(t===e)return"";n=-1,i=t.length-1;for(;a--;)if(47===e.charCodeAt(a)){if(s){o=a+1;break}}else n<0&&(s=!0,n=a+1),i>-1&&(e.charCodeAt(a)===t.charCodeAt(i--)?i<0&&(d=a):(i=-1,d=n));o===d?d=n:d<0&&(d=e.length);return e.slice(o,d)},t.dirname=function(e){var t,a,n;if(r(e),!e.length)return".";t=-1,n=e.length;for(;--n;)if(47===e.charCodeAt(n)){if(a){t=n;break}}else a||(a=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},t.extname=function(e){var t,a,n,s=-1,i=0,o=-1,d=0;r(e),n=e.length;for(;n--;)if(47!==(a=e.charCodeAt(n)))o<0&&(t=!0,o=n+1),46===a?s<0?s=n:1!==d&&(d=1):s>-1&&(d=-1);else if(t){i=n+1;break}if(s<0||o<0||0===d||1===d&&s===o-1&&s===i+1)return"";return e.slice(s,o)},t.join=function(){var e,t=-1;for(;++t2){if((a=n.lastIndexOf("/"))!==n.length-1){a<0?(n="",s=0):s=(n=n.slice(0,a)).length-1-n.lastIndexOf("/"),i=d,o=0;continue}}else if(n.length){n="",s=0,i=d,o=0;continue}t&&(n=n.length?n+"/..":"..",s=2)}else n.length?n+="/"+e.slice(i+1,d):n=e.slice(i+1,d),s=d-i-1;i=d,o=0}else 46===r&&o>-1?o++:o=-1}return n}(e,!t),a.length||t||(a=".");a.length&&47===e.charCodeAt(e.length-1)&&(a+="/");return t?"/"+a:a}(e)},t.sep="/"},5657:(e,t)=>{"use strict";t.cwd=function(){return"/"}},6040:e=>{"use strict";var t,r="";e.exports=function(e,a){if("string"!==typeof e)throw new TypeError("expected a string");if(1===a)return e;if(2===a)return e+e;var n=e.length*a;if(t!==e||"undefined"===typeof t)t=e,r="";else if(r.length>=n)return r.substr(0,n);for(;n>r.length&&a>1;)1&a&&(r+=e),a>>=1,e+=e;return r=(r+=e).substr(0,n)}},1581:function(e,t,r){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=null;if(!e||"string"!==typeof e)return r;var a=(0,n.default)(e),s="function"===typeof t;return a.forEach((function(e){if("declaration"===e.type){var a=e.property,n=e.value;s?t(a,n,e):n&&((r=r||{})[a]=n)}})),r};var n=a(r(2524))},3132:function(e,t,r){!function(e){"use strict";var t=Object.freeze({__proto__:null,get _call(){return bW},get _getQueueContexts(){return LW},get _resyncKey(){return CW},get _resyncList(){return kW},get _resyncParent(){return _W},get _resyncRemoved(){return PW},get call(){return yW},get isDenylisted(){return vW},get popContext(){return DW},get pushContext(){return IW},get requeue(){return FW},get requeueComputedKeyAndDecorators(){return BW},get resync(){return jW},get setContext(){return AW},get setKey(){return OW},get setScope(){return SW},get setup(){return NW},get skip(){return EW},get skipKey(){return TW},get stop(){return wW},get visit(){return RW}}),a=Object.freeze({__proto__:null,get DEFAULT_EXTENSIONS(){return s6},get File(){return RY},get buildExternalHelpers(){return KY},get createConfigItem(){return Y0},get createConfigItemAsync(){return V0},get createConfigItemSync(){return K0},get getEnv(){return lX},get loadOptions(){return W0},get loadOptionsAsync(){return G0},get loadOptionsSync(){return q0},get loadPartialConfig(){return M0},get loadPartialConfigAsync(){return B0},get loadPartialConfigSync(){return L0},get parse(){return Z2},get parseAsync(){return t6},get parseSync(){return e6},get resolvePlugin(){return a6},get resolvePreset(){return n6},get template(){return OS},get tokTypes(){return yw},get transform(){return G2},get transformAsync(){return W2},get transformFile(){return z2},get transformFileAsync(){return K2},get transformFileSync(){return V2},get transformFromAst(){return X2},get transformFromAstAsync(){return Q2},get transformFromAstSync(){return J2},get transformSync(){return q2},get traverse(){return qW},get types(){return Zx},get version(){return r6}});function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r=e.length?{done:!0}:{done:!1,value:e[a++]}}}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 f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}function m(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function y(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function b(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,s,i,o=[],d=!0,c=!1;try{if(s=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;d=!1}else for(;!(d=(a=s.call(r)).done)&&(o.push(a.value),o.length!==t);d=!0);}catch(e){c=!0,n=e}finally{try{if(!d&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return o}}function v(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function R(e,t){if(null==e)return{};var r,a,n=E(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a=0;--s){var i=this.tryEntries[s],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var d=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(d&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if("throw"===a.type){var n=a.arg;k(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,a){return this.delegate={iterator:D(t),resultName:r,nextLoc:a},"next"===this.method&&(this.arg=e),h}},t}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}function S(e,t){return s(e)||b(e,t)||k(e,t)||v()}function A(e,t){return t||(t=e.slice(0)),e.raw=t,e}function j(e){return i(e)||y(e)||k(e)||x()}function _(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t);if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function C(e){var t=_(e,"string");return"symbol"==typeof t?t:t+""}function k(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}function P(e){var t="function"==typeof Map?new Map:void 0;return P=function(e){if(null===e||!m(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return c(e,arguments,f(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),w(r,e)},P(e)}var D="undefined"!==typeof r.g?r.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{};function I(){throw new Error("setTimeout has not been defined")}function N(){throw new Error("clearTimeout has not been defined")}var O=I,F=N;function B(e){if(O===setTimeout)return setTimeout(e,0);if((O===I||!O)&&setTimeout)return O=setTimeout,setTimeout(e,0);try{return O(e,0)}catch(t){try{return O.call(null,e,0)}catch(t){return O.call(this,e,0)}}}function L(e){if(F===clearTimeout)return clearTimeout(e);if((F===N||!F)&&clearTimeout)return F=clearTimeout,clearTimeout(e);try{return F(e)}catch(t){try{return F.call(null,e)}catch(t){return F.call(this,e)}}}"function"===typeof D.setTimeout&&(O=setTimeout),"function"===typeof D.clearTimeout&&(F=clearTimeout);var M,U=[],H=!1,G=-1;function q(){H&&M&&(H=!1,M.length?U=M.concat(U):G=-1,U.length&&W())}function W(){if(!H){var e=B(q);H=!0;for(var t=U.length;t;){for(M=U,U=[];++G1)for(var r=1;rn.length)return!1;for(var i=0,o=s.length-1;ie)return!1;if((r+=t[a+1])>=e)return!0}return!1}function bi(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&fi.test(String.fromCharCode(e)):yi(e,mi)))}function vi(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&gi.test(String.fromCharCode(e)):yi(e,mi)||yi(e,hi))))}function xi(e){for(var t=!0,r=0;r=48&&e<=57},Di={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Ii={bin:function(e){return 48===e||49===e},oct:function(e){return e>=48&&e<=55},dec:function(e){return e>=48&&e<=57},hex:function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}};function Ni(e,t,r,a,n,s){for(var i=r,o=a,d=n,c="",l=null,u=r,p=t.length;;){if(r>=p){s.unterminated(i,o,d),c+=t.slice(u,r);break}var f=t.charCodeAt(r);if(Oi(e,f,t,r)){c+=t.slice(u,r);break}if(92===f){c+=t.slice(u,r);var g=Fi(t,r,a,n,"template"===e,s);null!==g.ch||l?c+=g.ch:l={pos:r,lineStart:a,curLine:n},r=g.pos,a=g.lineStart,n=g.curLine,u=r}else 8232===f||8233===f?(++n,a=++r):10===f||13===f?"template"===e?(c+=t.slice(u,r)+"\n",++r,13===f&&10===t.charCodeAt(r)&&++r,++n,u=a=r):s.unterminated(i,o,d):++r}return{pos:r,str:c,firstInvalidLoc:l,lineStart:a,curLine:n,containsInvalid:!!l}}function Oi(e,t,r,a){return"template"===e?96===t||36===t&&123===r.charCodeAt(a+1):t===("double"===e?34:39)}function Fi(e,t,r,a,n,s){var i=!n;t++;var o=function(e){return{pos:t,ch:e,lineStart:r,curLine:a}},d=e.charCodeAt(t++);switch(d){case 110:return o("\n");case 114:return o("\r");case 120:var c,l=Bi(e,t,r,a,2,!1,i,s);return c=l.code,t=l.pos,o(null===c?null:String.fromCharCode(c));case 117:var u,p=Mi(e,t,r,a,i,s);return u=p.code,t=p.pos,o(null===u?null:String.fromCodePoint(u));case 116:return o("\t");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:r=t,++a;case 8232:case 8233:return o("");case 56:case 57:if(n)return o(null);s.strictNumericEscape(t-1,r,a);default:if(d>=48&&d<=55){var f=t-1,g=/^[0-7]+/.exec(e.slice(f,t+2))[0],m=parseInt(g,8);m>255&&(g=g.slice(0,-1),m=parseInt(g,8)),t+=g.length-1;var h=e.charCodeAt(t);if("0"!==g||56===h||57===h){if(n)return o(null);s.strictNumericEscape(f,r,a)}return o(String.fromCharCode(m))}return o(String.fromCharCode(d))}}function Bi(e,t,r,a,n,s,i,o){var d,c=t,l=Li(e,t,r,a,16,n,s,!1,o,!i);return d=l.n,t=l.pos,null===d&&(i?o.invalidEscapeSequence(c,r,a):t=c-1),{code:d,pos:t}}function Li(e,t,r,a,n,s,i,o,d,c){for(var l=t,u=16===n?Di.hex:Di.decBinOct,p=16===n?Ii.hex:10===n?Ii.dec:8===n?Ii.oct:Ii.bin,f=!1,g=0,m=0,h=null==s?1/0:s;m=97?y-97+10:y>=65?y-65+10:Pi(y)?y-48:1/0)>=n){if(b<=9&&c)return{n:null,pos:t};if(b<=9&&d.invalidDigit(t,r,a,n))b=0;else{if(!i)break;b=0,f=!0}}++t,g=g*n+b}else{var v=e.charCodeAt(t-1),x=e.charCodeAt(t+1);if(o){if(Number.isNaN(x)||!p(x)||u.has(v)||u.has(x)){if(c)return{n:null,pos:t};d.unexpectedNumericSeparator(t,r,a)}}else{if(c)return{n:null,pos:t};d.numericSeparatorInEscapeSequence(t,r,a)}++t}}return t===l||null!=s&&t-l!==s||f?{n:null,pos:t}:{n:g,pos:t}}function Mi(e,t,r,a,n,s){var i;if(123===e.charCodeAt(t)){var o=Bi(e,++t,r,a,e.indexOf("}",t)-t,!0,n,s);if(i=o.code,t=o.pos,++t,null!==i&&i>1114111){if(!n)return{code:null,pos:t};s.invalidCodePoint(t,r,a)}}else{var d=Bi(e,t,r,a,4,!1,n,s);i=d.code,t=d.pos}return{code:i,pos:t}}var Ui=["consequent","body","alternate"],Hi=["body","expressions"],Gi=["left","init"],qi=["leadingComments","trailingComments","innerComments"],Wi=["||","&&","??"],zi=["++","--"],Vi=[">","<",">=","<="],Ki=["==","===","!=","!=="],Yi=[].concat(Ki,["in","instanceof"]),Xi=[].concat(j(Yi),Vi),Ji=["-","/","%","*","**","&","|",">>",">>>","<<","^"],Qi=["+"].concat(Ji,j(Xi),["|>"]),$i=["=","+="].concat(j(Ji.map((function(e){return e+"="}))),j(Wi.map((function(e){return e+"="})))),Zi=["delete","!"],eo=["+","-","~"],to=["typeof"],ro=["void","throw"].concat(Zi,eo,to),ao={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},no=Symbol.for("var used to be block scoped"),so=Symbol.for("should not be considered a local binding"),io={},oo={},co={},lo={},uo={},po={},fo={};function go(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function mo(e){return{validate:e}}function ho(){return mo(wo.apply(void 0,arguments))}function yo(e){return{validate:e,optional:!0}}function bo(){return{validate:wo.apply(void 0,arguments),optional:!0}}function vo(e){return Co(Ao("array"),Eo(e))}function xo(){return vo(wo.apply(void 0,arguments))}function Ro(){return mo(xo.apply(void 0,arguments))}function Eo(e){var t=ve.env.BABEL_TYPES_8_BREAKING?yd:function(){};function r(r,a,n){if(Array.isArray(n))for(var s=0;s=2&&"type"in t[0]&&"array"===t[0].type&&!("each"in t[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return a}var ko=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"]),Po=new Set(["default","optional","deprecated","validate"]),Do={};function Io(){for(var e=arguments.length,t=new Array(e),r=0;r0:d&&"object"===typeof d)throw new Error("field defaults can only be primitives or empty arrays currently");a[i]={default:Array.isArray(d)?[]:d,optional:o.optional,deprecated:o.deprecated,validate:o.validate}}for(var c=t.visitor||r.visitor||[],l=t.aliases||r.aliases||[],u=t.builder||r.builder||t.visitor||[],f=0,g=Object.keys(t);f+s+1)throw new TypeError("RestElement must be last element of "+n)}:void 0}),Oo("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:wo("Expression"),optional:!0}}}),Oo("SequenceExpression",{visitor:["expressions"],fields:{expressions:Ro("Expression")},aliases:["Expression"]}),Oo("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:wo("Expression")}}}),Oo("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:wo("Expression"),optional:!0},consequent:Ro("Statement")}}),Oo("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:wo("Expression")},cases:Ro("SwitchCase")}}),Oo("ThisExpression",{aliases:["Expression"]}),Oo("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:wo("Expression")}}}),Oo("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:ve.env.BABEL_TYPES_8_BREAKING?Co(wo("BlockStatement"),Object.assign((function(e){if(!e.handler&&!e.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")}),{oneOfNodeTypes:["BlockStatement"]})):wo("BlockStatement")},handler:{optional:!0,validate:wo("CatchClause")},finalizer:{optional:!0,validate:wo("BlockStatement")}}}),Oo("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:wo("Expression")},operator:{validate:To.apply(void 0,j(ro))}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),Oo("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:ve.env.BABEL_TYPES_8_BREAKING?wo("Identifier","MemberExpression"):wo("Expression")},operator:{validate:To.apply(void 0,j(zi))}},visitor:["argument"],aliases:["Expression"]}),Oo("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:Ao("boolean"),optional:!0},kind:{validate:To("var","let","const","using","await using")},declarations:Ro("VariableDeclarator")},validate:ve.env.BABEL_TYPES_8_BREAKING?function(){var e=wo("Identifier");return function(t,r,a){if(li("ForXStatement",t,{left:a})){if(1!==a.declarations.length)throw new TypeError("Exactly one VariableDeclarator is required in the VariableDeclaration of a "+t.type)}else a.declarations.forEach((function(t){t.init||e(t,"id",t.id)}))}}():void 0}),Oo("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:ve.env.BABEL_TYPES_8_BREAKING?wo("Identifier","ArrayPattern","ObjectPattern"):wo("LVal")},definite:{optional:!0,validate:Ao("boolean")},init:{optional:!0,validate:wo("Expression")}}}),Oo("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:wo("Expression")},body:{validate:wo("Statement")}}}),Oo("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:wo("Expression")},body:{validate:wo("Statement")}}}),Oo("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},Mo(),{left:{validate:wo("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:wo("Expression")},decorators:{validate:xo("Decorator"),optional:!0}})}),Oo("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},Mo(),{elements:{validate:Co(Ao("array"),Eo(So("null","PatternLike","LVal")))}})}),Oo("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},Fo(),Bo(),{expression:{validate:Ao("boolean")},body:{validate:wo("BlockStatement","Expression")},predicate:{validate:wo("DeclaredPredicate","InferredPredicate"),optional:!0}})}),Oo("ClassBody",{visitor:["body"],fields:{body:Ro("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}}),Oo("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:wo("Identifier"),optional:!0},typeParameters:{validate:wo("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:wo("ClassBody")},superClass:{optional:!0,validate:wo("Expression")},superTypeParameters:{validate:wo("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:xo("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:xo("Decorator"),optional:!0},mixins:{validate:wo("InterfaceExtends"),optional:!0}}}),Oo("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:wo("Identifier"),optional:!0},typeParameters:{validate:wo("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:wo("ClassBody")},superClass:{optional:!0,validate:wo("Expression")},superTypeParameters:{validate:wo("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:xo("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:xo("Decorator"),optional:!0},mixins:{validate:wo("InterfaceExtends"),optional:!0},declare:{validate:Ao("boolean"),optional:!0},abstract:{validate:Ao("boolean"),optional:!0}},validate:ve.env.BABEL_TYPES_8_BREAKING?function(){var e=wo("Identifier");return function(t,r,a){li("ExportDefaultDeclaration",t)||e(a,"id",a.id)}}():void 0});var Uo={attributes:{optional:!0,validate:xo("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:xo("ImportAttribute")}};Oo("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:wo("StringLiteral")},exportKind:yo(To("type","value"))},Uo)}),Oo("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:ho("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:yo(To("value"))}}),Oo("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:ve.env?["declaration","specifiers","source","attributes"]:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:!0,validate:ve.env.BABEL_TYPES_8_BREAKING?Co(wo("Declaration"),Object.assign((function(e,t,r){if(r&&e.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(r&&e.source)throw new TypeError("Cannot export a declaration from a source")}),{oneOfNodeTypes:["Declaration"]})):wo("Declaration")}},Uo,{specifiers:{default:[],validate:vo(function(){var e=wo("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=wo("ExportSpecifier");return ve.env.BABEL_TYPES_8_BREAKING?Object.assign((function(r,a,n){(r.source?e:t)(r,a,n)}),{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):e}())},source:{validate:wo("StringLiteral"),optional:!0},exportKind:yo(To("type","value"))})}),Oo("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:wo("Identifier")},exported:{validate:wo("Identifier","StringLiteral")},exportKind:{validate:To("type","value"),optional:!0}}}),Oo("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!ve.env.BABEL_TYPES_8_BREAKING)return wo("VariableDeclaration","LVal");var e=wo("VariableDeclaration"),t=wo("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign((function(r,a,n){li("VariableDeclaration",n)?e(r,a,n):t(r,a,n)}),{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:wo("Expression")},body:{validate:wo("Statement")},await:{default:!1}}}),Oo("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},Uo,{module:{optional:!0,validate:Ao("boolean")},phase:{default:null,validate:To("source","defer")},specifiers:Ro("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:wo("StringLiteral")},importKind:{validate:To("type","typeof","value"),optional:!0}})}),Oo("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:wo("Identifier")}}}),Oo("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:wo("Identifier")}}}),Oo("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:wo("Identifier")},imported:{validate:wo("Identifier","StringLiteral")},importKind:{validate:To("type","typeof","value"),optional:!0}}}),Oo("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:To("source","defer")},source:{validate:wo("Expression")},options:{validate:wo("Expression"),optional:!0}}}),Oo("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:ve.env.BABEL_TYPES_8_BREAKING?Co(wo("Identifier"),Object.assign((function(e,t,r){var a;switch(r.name){case"function":a="sent";break;case"new":a="target";break;case"import":a="meta"}if(!li("Identifier",e.property,{name:a}))throw new TypeError("Unrecognised MetaProperty")}),{oneOfNodeTypes:["Identifier"]})):wo("Identifier")},property:{validate:wo("Identifier")}}});var Ho=function(){return{abstract:{validate:Ao("boolean"),optional:!0},accessibility:{validate:To("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:Ao("boolean"),optional:!0},key:{validate:Co(function(){var e=wo("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=wo("Expression");return function(r,a,n){(r.computed?t:e)(r,a,n)}}(),wo("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}}},Go=function(){return Object.assign({},Fo(),Ho(),{params:Ro("Identifier","Pattern","RestElement","TSParameterProperty"),kind:{validate:To("get","set","method","constructor"),default:"method"},access:{validate:Co(Ao("string"),To("public","private","protected")),optional:!0},decorators:{validate:xo("Decorator"),optional:!0}})};Oo("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},Go(),Bo(),{body:{validate:wo("BlockStatement")}})}),Oo("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},Mo(),{properties:Ro("RestElement","ObjectProperty")})}),Oo("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:wo("Expression")}}}),Oo("Super",{aliases:["Expression"]}),Oo("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:wo("Expression")},quasi:{validate:wo("TemplateLiteral")},typeParameters:{validate:wo("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),Oo("TemplateElement",{builder:["value","tail"],fields:{value:{validate:Co(jo({raw:{validate:Ao("string")},cooked:{validate:Ao("string"),optional:!0}}),(function(e){var t=e.value.raw,r=!1,a=function(){throw new Error("Internal @babel/types error.")},n=Ni("template",t,0,0,0,{unterminated:function(){r=!0},strictNumericEscape:a,invalidEscapeSequence:a,numericSeparatorInEscapeSequence:a,unexpectedNumericSeparator:a,invalidDigit:a,invalidCodePoint:a}),s=n.str,i=n.firstInvalidLoc;if(!r)throw new Error("Invalid raw");e.value.cooked=i?null:s}))},tail:{default:!1}}}),Oo("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:Ro("TemplateElement"),expressions:{validate:Co(Ao("array"),Eo(wo("Expression","TSType")),(function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError("Number of "+e.type+" quasis should be exactly one more than the number of expressions.\nExpected "+(r.length+1)+" quasis but got "+e.quasis.length)}))}}}),Oo("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:ve.env.BABEL_TYPES_8_BREAKING?Co(Ao("boolean"),Object.assign((function(e,t,r){if(r&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")}),{type:"boolean"})):Ao("boolean"),default:!1},argument:{optional:!0,validate:wo("Expression")}}}),Oo("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:wo("Expression")}}}),Oo("Import",{aliases:["Expression"]}),Oo("BigIntLiteral",{builder:["value"],fields:{value:{validate:Ao("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),Oo("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:wo("Identifier")}}}),Oo("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:wo("Expression")},property:{validate:function(){var e=wo("Identifier"),t=wo("Expression"),r=Object.assign((function(r,a,n){(r.computed?t:e)(r,a,n)}),{oneOfNodeTypes:["Expression","Identifier"]});return r}()},computed:{default:!1},optional:{validate:ve.env.BABEL_TYPES_8_BREAKING?Co(Ao("boolean"),_o()):Ao("boolean")}}}),Oo("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:wo("Expression")},arguments:Ro("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:ve.env.BABEL_TYPES_8_BREAKING?Co(Ao("boolean"),_o()):Ao("boolean")},typeArguments:{validate:wo("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:wo("TSTypeParameterInstantiation"),optional:!0}}}),Oo("ClassProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},Ho(),{value:{validate:wo("Expression"),optional:!0},definite:{validate:Ao("boolean"),optional:!0},typeAnnotation:{validate:wo("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:xo("Decorator"),optional:!0},readonly:{validate:Ao("boolean"),optional:!0},declare:{validate:Ao("boolean"),optional:!0},variance:{validate:wo("Variance"),optional:!0}})}),Oo("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},Ho(),{key:{validate:Co(function(){var e=wo("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=wo("Expression");return function(r,a,n){(r.computed?t:e)(r,a,n)}}(),wo("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:wo("Expression"),optional:!0},definite:{validate:Ao("boolean"),optional:!0},typeAnnotation:{validate:wo("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:xo("Decorator"),optional:!0},readonly:{validate:Ao("boolean"),optional:!0},declare:{validate:Ao("boolean"),optional:!0},variance:{validate:wo("Variance"),optional:!0}})}),Oo("ClassPrivateProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:wo("PrivateName")},value:{validate:wo("Expression"),optional:!0},typeAnnotation:{validate:wo("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:xo("Decorator"),optional:!0},static:{validate:Ao("boolean"),default:!1},readonly:{validate:Ao("boolean"),optional:!0},definite:{validate:Ao("boolean"),optional:!0},variance:{validate:wo("Variance"),optional:!0}}}),Oo("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},Go(),Bo(),{kind:{validate:To("get","set","method"),default:"method"},key:{validate:wo("PrivateName")},body:{validate:wo("BlockStatement")}})}),Oo("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:wo("Identifier")}}}),Oo("StaticBlock",{visitor:["body"],fields:{body:Ro("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]});var qo=Io("Flow"),Wo=function(e){var t="DeclareClass"===e;qo(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends"].concat(j(t?["mixins","implements"]:[]),["body"]),aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:ho("Identifier"),typeParameters:bo("TypeParameterDeclaration"),extends:yo(xo("InterfaceExtends"))},t?{mixins:yo(xo("InterfaceExtends")),implements:yo(xo("ClassImplements"))}:{},{body:ho("ObjectTypeAnnotation")})})};qo("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),qo("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:ho("FlowType")}}),qo("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),qo("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:mo(Ao("boolean"))}}),qo("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),qo("ClassImplements",{visitor:["id","typeParameters"],fields:{id:ho("Identifier"),typeParameters:bo("TypeParameterInstantiation")}}),Wo("DeclareClass"),qo("DeclareFunction",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:ho("Identifier"),predicate:bo("DeclaredPredicate")}}),Wo("DeclareInterface"),qo("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:ho("Identifier","StringLiteral"),body:ho("BlockStatement"),kind:yo(To("CommonJS","ES"))}}),qo("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:ho("TypeAnnotation")}}),qo("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:ho("Identifier"),typeParameters:bo("TypeParameterDeclaration"),right:ho("FlowType")}}),qo("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:ho("Identifier"),typeParameters:bo("TypeParameterDeclaration"),supertype:bo("FlowType"),impltype:bo("FlowType")}}),qo("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:ho("Identifier")}}),qo("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:bo("Flow"),specifiers:yo(xo("ExportSpecifier","ExportNamespaceSpecifier")),source:bo("StringLiteral"),default:yo(Ao("boolean"))},Uo)}),qo("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:ho("StringLiteral"),exportKind:yo(To("type","value"))},Uo)}),qo("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:ho("Flow")}}),qo("ExistsTypeAnnotation",{aliases:["FlowType"]}),qo("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:bo("TypeParameterDeclaration"),params:Ro("FunctionTypeParam"),rest:bo("FunctionTypeParam"),this:bo("FunctionTypeParam"),returnType:ho("FlowType")}}),qo("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:bo("Identifier"),typeAnnotation:ho("FlowType"),optional:yo(Ao("boolean"))}}),qo("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:ho("Identifier","QualifiedTypeIdentifier"),typeParameters:bo("TypeParameterInstantiation")}}),qo("InferredPredicate",{aliases:["FlowPredicate"]}),qo("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:ho("Identifier","QualifiedTypeIdentifier"),typeParameters:bo("TypeParameterInstantiation")}}),Wo("InterfaceDeclaration"),qo("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:yo(xo("InterfaceExtends")),body:ho("ObjectTypeAnnotation")}}),qo("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:mo(xo("FlowType"))}}),qo("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),qo("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),qo("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:ho("FlowType")}}),qo("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:mo(Ao("number"))}}),qo("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),qo("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:mo(xo("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:xo("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:xo("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:xo("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:Ao("boolean"),default:!1},inexact:yo(Ao("boolean"))}}),qo("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:ho("Identifier"),value:ho("FlowType"),optional:mo(Ao("boolean")),static:mo(Ao("boolean")),method:mo(Ao("boolean"))}}),qo("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:ho("FlowType"),static:mo(Ao("boolean"))}}),qo("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:bo("Identifier"),key:ho("FlowType"),value:ho("FlowType"),static:mo(Ao("boolean")),variance:bo("Variance")}}),qo("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:ho("Identifier","StringLiteral"),value:ho("FlowType"),kind:mo(To("init","get","set")),static:mo(Ao("boolean")),proto:mo(Ao("boolean")),optional:mo(Ao("boolean")),variance:bo("Variance"),method:mo(Ao("boolean"))}}),qo("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:ho("FlowType")}}),qo("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:ho("Identifier"),typeParameters:bo("TypeParameterDeclaration"),supertype:bo("FlowType"),impltype:ho("FlowType")}}),qo("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:ho("Identifier"),qualification:ho("Identifier","QualifiedTypeIdentifier")}}),qo("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:mo(Ao("string"))}}),qo("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),qo("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),qo("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),qo("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:mo(xo("FlowType"))}}),qo("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:ho("FlowType")}}),qo("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:ho("Identifier"),typeParameters:bo("TypeParameterDeclaration"),right:ho("FlowType")}}),qo("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:ho("FlowType")}}),qo("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:ho("Expression"),typeAnnotation:ho("TypeAnnotation")}}),qo("TypeParameter",{visitor:["bound","default","variance"],fields:{name:mo(Ao("string")),bound:bo("TypeAnnotation"),default:bo("FlowType"),variance:bo("Variance")}}),qo("TypeParameterDeclaration",{visitor:["params"],fields:{params:mo(xo("TypeParameter"))}}),qo("TypeParameterInstantiation",{visitor:["params"],fields:{params:mo(xo("FlowType"))}}),qo("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:mo(xo("FlowType"))}}),qo("Variance",{builder:["kind"],fields:{kind:mo(To("minus","plus"))}}),qo("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),qo("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:ho("Identifier"),body:ho("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}}),qo("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:mo(Ao("boolean")),members:Ro("EnumBooleanMember"),hasUnknownMembers:mo(Ao("boolean"))}}),qo("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:mo(Ao("boolean")),members:Ro("EnumNumberMember"),hasUnknownMembers:mo(Ao("boolean"))}}),qo("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:mo(Ao("boolean")),members:Ro("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:mo(Ao("boolean"))}}),qo("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:Ro("EnumDefaultedMember"),hasUnknownMembers:mo(Ao("boolean"))}}),qo("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:ho("Identifier"),init:ho("BooleanLiteral")}}),qo("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:ho("Identifier"),init:ho("NumericLiteral")}}),qo("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:ho("Identifier"),init:ho("StringLiteral")}}),qo("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:ho("Identifier")}}),qo("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:ho("FlowType"),indexType:ho("FlowType")}}),qo("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:ho("FlowType"),indexType:ho("FlowType"),optional:mo(Ao("boolean"))}});var zo=Io("JSX");zo("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:wo("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:wo("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),zo("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:wo("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),zo("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:wo("JSXOpeningElement")},closingElement:{optional:!0,validate:wo("JSXClosingElement")},children:Ro("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:Ao("boolean"),optional:!0}})}),zo("JSXEmptyExpression",{}),zo("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:wo("Expression","JSXEmptyExpression")}}}),zo("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:wo("Expression")}}}),zo("JSXIdentifier",{builder:["name"],fields:{name:{validate:Ao("string")}}}),zo("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:wo("JSXMemberExpression","JSXIdentifier")},property:{validate:wo("JSXIdentifier")}}}),zo("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:wo("JSXIdentifier")},name:{validate:wo("JSXIdentifier")}}}),zo("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["Immutable"],fields:{name:{validate:wo("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:Ro("JSXAttribute","JSXSpreadAttribute"),typeParameters:{validate:wo("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),zo("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:wo("Expression")}}}),zo("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:Ao("string")}}}),zo("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:wo("JSXOpeningFragment")},closingFragment:{validate:wo("JSXClosingFragment")},children:Ro("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}}),zo("JSXOpeningFragment",{aliases:["Immutable"]}),zo("JSXClosingFragment",{aliases:["Immutable"]});for(var Vo=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],Ko={Declaration:["Statement"],Pattern:["PatternLike","LVal"]},Yo=0,Xo=Vo;Yo=Number.MAX_SAFE_INTEGER?Tx.uid=0:Tx.uid++};var Sx=Function.call.bind(Object.prototype.toString);function Ax(e){return"[object RegExp]"===Sx(e)}function jx(e){if("object"!==typeof e||null===e||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}function _x(e){if(void 0===e)return Hd("undefined");if(!0===e||!1===e)return Kd(e);if(null===e)return Vd();if("string"===typeof e)return Wd(e);var t;if("number"===typeof e)return t=Number.isFinite(e)?zd(Math.abs(e)):Ed("/",Number.isNaN(e)?zd(0):zd(1),zd(0)),(e<0||Object.is(e,-0))&&(t=uc("-",t)),t;if(Ax(e))return Yd(e.source,/\/([a-z]*)$/.exec(e.toString())[1]);if(Array.isArray(e))return xd(e.map(_x));if(jx(e)){for(var r=[],a=0,n=Object.keys(e);a1?e:e[0]})),aR=tR((function(e){return e})),nR=tR((function(e){if(0===e.length)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]})),sR={code:function(e){return"(\n"+e+"\n)"},validate:function(e){if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(0===sR.unwrap(e).start)throw new Error("Parse result included parens.")},unwrap:function(e){var t=S(e.program.body,1)[0];return eR(t),t.expression}},iR={code:function(e){return e},validate:function(){},unwrap:function(e){return e.program}},oR=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function dR(e,t){var r=t.placeholderWhitelist,a=void 0===r?e.placeholderWhitelist:r,n=t.placeholderPattern,s=void 0===n?e.placeholderPattern:n,i=t.preserveComments,o=void 0===i?e.preserveComments:i,d=t.syntacticPlaceholders,c=void 0===d?e.syntacticPlaceholders:d;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:a,placeholderPattern:s,preserveComments:o,syntacticPlaceholders:c}}function cR(e){if(null!=e&&"object"!==typeof e)throw new Error("Unknown template options.");var t=e||{},r=t.placeholderWhitelist,a=t.placeholderPattern,n=t.preserveComments,s=t.syntacticPlaceholders,i=E(t,oR);if(null!=r&&!(r instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(null!=a&&!(a instanceof RegExp)&&!1!==a)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(null!=n&&"boolean"!==typeof n)throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(null!=s&&"boolean"!==typeof s)throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(!0===s&&(null!=r||null!=a))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:i,placeholderWhitelist:r||void 0,placeholderPattern:null==a?void 0:a,preserveComments:null==n?void 0:n,syntacticPlaceholders:null==s?void 0:s}}function lR(e){if(Array.isArray(e))return e.reduce((function(e,t,r){return e["$"+r]=t,e}),{});if("object"===typeof e||null==e)return e||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}var uR=u((function(e,t,r){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=r})),pR=u((function(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}));function fR(e,t){var r=e.line,a=e.column,n=e.index;return new uR(r,a+t,n+t)}var gR,mR="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",hR={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:mR},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:mR}},yR={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},bR=function(e){return"UpdateExpression"===e.type?yR.UpdateExpression[""+e.prefix]:yR[e.type]},vR={AccessorIsGenerator:function(e){return"A "+e.kind+"ter cannot be a generator."},ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:function(e){return"Missing initializer in "+e.kind+" declaration."},DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:function(e){return"`"+e.exportName+"` has already been exported. Exported identifiers must be unique."},DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:function(e){return"'import."+e.phase+"(...)' can only be parsed when using the 'createImportExpressions' option."},ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:function(e){return"A string literal cannot be used as an exported binding without `from`.\n- Did you mean `export { '"+e.localName+"' as '"+e.exportName+"' } from 'some-module'`?"},ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:function(e){return"'"+("ForInStatement"===e.type?"for-in":"for-of")+"' loop variable declaration may not have an initializer."},ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:function(e){return"Unsyntactic "+("BreakStatement"===e.type?"break":"continue")+"."},IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:function(e){return'A string literal cannot be used as an imported binding.\n- Did you mean `import { "'+e.importName+'" as foo }`?'},ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:function(e){return"Expected number in radix "+e.radix+"."},InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:function(e){return"Escape sequence in keyword "+e.reservedWord+"."},InvalidIdentifier:function(e){return"Invalid identifier "+e.identifierName+"."},InvalidLhs:function(e){var t=e.ancestor;return"Invalid left-hand side in "+bR(t)+"."},InvalidLhsBinding:function(e){var t=e.ancestor;return"Binding invalid left-hand side in "+bR(t)+"."},InvalidLhsOptionalChaining:function(e){var t=e.ancestor;return"Invalid optional chaining in the left-hand side of "+bR(t)+"."},InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:function(e){return"Unexpected character '"+e.unexpected+"'."},InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:function(e){return"Private name #"+e.identifierName+" is not defined."},InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:function(e){return"Label '"+e.labelName+"' is already declared."},LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:function(e){return"This experimental syntax requires enabling the parser plugin: "+e.missingPlugin.map((function(e){return JSON.stringify(e)})).join(", ")+"."},MissingOneOfPlugins:function(e){return"This experimental syntax requires enabling one of the following parser plugin(s): "+e.missingPlugin.map((function(e){return JSON.stringify(e)})).join(", ")+"."},MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:function(e){return'Duplicate key "'+e.key+'" is not allowed in module attributes.'},ModuleExportNameHasLoneSurrogate:function(e){return"An export name cannot include a lone surrogate, found '\\u"+e.surrogateCharCode.toString(16)+"'."},ModuleExportUndefined:function(e){return"Export '"+e.localName+"' is not defined."},MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:function(e){var t=e.identifierName;return"Private names are only allowed in property accesses (`obj.#"+t+"`) or in `in` expressions (`#"+t+" in obj`)."},PrivateNameRedeclaration:function(e){return"Duplicate private name #"+e.identifierName+"."},RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:function(e){return"Unexpected keyword '"+e.keyword+"'."},UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:function(e){return"Unexpected reserved word '"+e.reservedWord+"'."},UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:function(e){var t=e.expected,r=e.unexpected;return"Unexpected token"+(r?" '"+r+"'.":"")+(t?', expected "'+t+'"':"")},UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:function(e){var t=e.target;return"The only valid meta property for "+t+" is "+t+"."+e.onlyValidPropertyName+"."},UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:function(e){return"Identifier '"+e.identifierName+"' has already been declared."},YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},xR={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:function(e){return"Assigning to '"+e.referenceName+"' in strict mode."},StrictEvalArgumentsBinding:function(e){return"Binding '"+e.bindingName+"' in strict mode."},StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},RR=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),ER={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:function(e){var t=e.token;return"Invalid topic token "+t+". In order to use "+t+' as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "'+t+'" }.'},PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:function(e){var t=e.type;return"Hack-style pipe body cannot be an unparenthesized "+bR({type:t})+"; please wrap it in parentheses."},PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},TR=["message"];function wR(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function SR(e){var t=e.toMessage,r=e.code,a=e.reasonCode,n=e.syntaxPlugin,s="MissingPlugin"===a||"MissingOneOfPlugins"===a,i={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};return i[a]&&(a=i[a]),function e(i,o){var d=new SyntaxError;return d.code=r,d.reasonCode=a,d.loc=i,d.pos=i.index,d.syntaxPlugin=n,s&&(d.missingPlugin=o.missingPlugin),wR(d,"clone",(function(t){var r;void 0===t&&(t={});var a=null!=(r=t.loc)?r:i,n=a.line,s=a.column,d=a.index;return e(new uR(n,s,d),Object.assign({},o,t.details))})),wR(d,"details",o),Object.defineProperty(d,"message",{configurable:!0,get:function(){var e=t(o)+" ("+i.line+":"+i.column+")";return this.message=e,e},set:function(e){Object.defineProperty(this,"message",{value:e,writable:!0})}}),d}}function AR(e,t){if(Array.isArray(e))return function(t){return AR(t,e[0])};for(var r={},a=function(){var a=s[n],i=e[a],o="string"===typeof i?{message:function(){return i}}:"function"===typeof i?{message:i}:i,d=o.message,c=E(o,TR),l="string"===typeof d?function(){return d}:d;r[a]=SR(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:a,toMessage:l},t?{syntaxPlugin:t}:{},c))},n=0,s=Object.keys(e);n0&&i.start===n.start&&this.resetStartLocation(n,a)}return n},r.parseSubscript=function(t,r,a,n){var s=e.prototype.parseSubscript.call(this,t,r,a,n);if(n.optionalChainMember){if("OptionalMemberExpression"!==s.type&&"OptionalCallExpression"!==s.type||(s.type=s.type.substring(8)),n.stop){var i=this.startNodeAtNode(s);return i.expression=s,this.finishNode(i,"ChainExpression")}}else"MemberExpression"!==s.type&&"CallExpression"!==s.type||(s.optional=!1);return s},r.isOptionalMemberExpression=function(t){return"ChainExpression"===t.type?"MemberExpression"===t.expression.type:e.prototype.isOptionalMemberExpression.call(this,t)},r.hasPropertyAsPrivateName=function(t){return"ChainExpression"===t.type&&(t=t.expression),e.prototype.hasPropertyAsPrivateName.call(this,t)},r.isObjectProperty=function(e){return"Property"===e.type&&"init"===e.kind&&!e.method},r.isObjectMethod=function(e){return"Property"===e.type&&(e.method||"get"===e.kind||"set"===e.kind)},r.finishNodeAt=function(t,r,a){return kR(e.prototype.finishNodeAt.call(this,t,r,a))},r.resetStartLocation=function(t,r){e.prototype.resetStartLocation.call(this,t,r),kR(t)},r.resetEndLocation=function(t,r){void 0===r&&(r=this.state.lastTokEndLoc),e.prototype.resetEndLocation.call(this,t,r),kR(t)},u(t)}(e)},DR=u((function(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t})),IR={brace:new DR("{"),j_oTag:new DR("...",!0)};IR.template=new DR("`",!0);var NR=!0,OR=!0,FR=!0,BR=!0,LR=!0,MR=!0,UR=u((function(e,t){void 0===t&&(t={}),this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=null!=t.binop?t.binop:null,this.updateContext=null})),HR=new Map;function GR(e,t){void 0===t&&(t={}),t.keyword=e;var r=QR(e,t);return HR.set(e,r),r}function qR(e,t){return QR(e,{beforeExpr:NR,binop:t})}var WR=-1,zR=[],VR=[],KR=[],YR=[],XR=[],JR=[];function QR(e,t){var r,a,n,s;return void 0===t&&(t={}),++WR,VR.push(e),KR.push(null!=(r=t.binop)?r:-1),YR.push(null!=(a=t.beforeExpr)&&a),XR.push(null!=(n=t.startsExpr)&&n),JR.push(null!=(s=t.prefix)&&s),zR.push(new UR(e,t)),WR}function $R(e,t){var r,a,n,s;return void 0===t&&(t={}),++WR,HR.set(e,WR),VR.push(e),KR.push(null!=(r=t.binop)?r:-1),YR.push(null!=(a=t.beforeExpr)&&a),XR.push(null!=(n=t.startsExpr)&&n),JR.push(null!=(s=t.prefix)&&s),zR.push(new UR("name",t)),WR}var ZR={bracketL:QR("[",{beforeExpr:NR,startsExpr:OR}),bracketHashL:QR("#[",{beforeExpr:NR,startsExpr:OR}),bracketBarL:QR("[|",{beforeExpr:NR,startsExpr:OR}),bracketR:QR("]"),bracketBarR:QR("|]"),braceL:QR("{",{beforeExpr:NR,startsExpr:OR}),braceBarL:QR("{|",{beforeExpr:NR,startsExpr:OR}),braceHashL:QR("#{",{beforeExpr:NR,startsExpr:OR}),braceR:QR("}"),braceBarR:QR("|}"),parenL:QR("(",{beforeExpr:NR,startsExpr:OR}),parenR:QR(")"),comma:QR(",",{beforeExpr:NR}),semi:QR(";",{beforeExpr:NR}),colon:QR(":",{beforeExpr:NR}),doubleColon:QR("::",{beforeExpr:NR}),dot:QR("."),question:QR("?",{beforeExpr:NR}),questionDot:QR("?."),arrow:QR("=>",{beforeExpr:NR}),template:QR("template"),ellipsis:QR("...",{beforeExpr:NR}),backQuote:QR("`",{startsExpr:OR}),dollarBraceL:QR("${",{beforeExpr:NR,startsExpr:OR}),templateTail:QR("...`",{startsExpr:OR}),templateNonTail:QR("...${",{beforeExpr:NR,startsExpr:OR}),at:QR("@"),hash:QR("#",{startsExpr:OR}),interpreterDirective:QR("#!..."),eq:QR("=",{beforeExpr:NR,isAssign:BR}),assign:QR("_=",{beforeExpr:NR,isAssign:BR}),slashAssign:QR("_=",{beforeExpr:NR,isAssign:BR}),xorAssign:QR("_=",{beforeExpr:NR,isAssign:BR}),moduloAssign:QR("_=",{beforeExpr:NR,isAssign:BR}),incDec:QR("++/--",{prefix:LR,postfix:MR,startsExpr:OR}),bang:QR("!",{beforeExpr:NR,prefix:LR,startsExpr:OR}),tilde:QR("~",{beforeExpr:NR,prefix:LR,startsExpr:OR}),doubleCaret:QR("^^",{startsExpr:OR}),doubleAt:QR("@@",{startsExpr:OR}),pipeline:qR("|>",0),nullishCoalescing:qR("??",1),logicalOR:qR("||",1),logicalAND:qR("&&",2),bitwiseOR:qR("|",3),bitwiseXOR:qR("^",4),bitwiseAND:qR("&",5),equality:qR("==/!=/===/!==",6),lt:qR("/<=/>=",7),gt:qR("/<=/>=",7),relational:qR("/<=/>=",7),bitShift:qR("<>/>>>",8),bitShiftL:qR("<>/>>>",8),bitShiftR:qR("<>/>>>",8),plusMin:QR("+/-",{beforeExpr:NR,binop:9,prefix:LR,startsExpr:OR}),modulo:QR("%",{binop:10,startsExpr:OR}),star:QR("*",{binop:10}),slash:qR("/",10),exponent:QR("**",{beforeExpr:NR,binop:11,rightAssociative:!0}),_in:GR("in",{beforeExpr:NR,binop:7}),_instanceof:GR("instanceof",{beforeExpr:NR,binop:7}),_break:GR("break"),_case:GR("case",{beforeExpr:NR}),_catch:GR("catch"),_continue:GR("continue"),_debugger:GR("debugger"),_default:GR("default",{beforeExpr:NR}),_else:GR("else",{beforeExpr:NR}),_finally:GR("finally"),_function:GR("function",{startsExpr:OR}),_if:GR("if"),_return:GR("return",{beforeExpr:NR}),_switch:GR("switch"),_throw:GR("throw",{beforeExpr:NR,prefix:LR,startsExpr:OR}),_try:GR("try"),_var:GR("var"),_const:GR("const"),_with:GR("with"),_new:GR("new",{beforeExpr:NR,startsExpr:OR}),_this:GR("this",{startsExpr:OR}),_super:GR("super",{startsExpr:OR}),_class:GR("class",{startsExpr:OR}),_extends:GR("extends",{beforeExpr:NR}),_export:GR("export"),_import:GR("import",{startsExpr:OR}),_null:GR("null",{startsExpr:OR}),_true:GR("true",{startsExpr:OR}),_false:GR("false",{startsExpr:OR}),_typeof:GR("typeof",{beforeExpr:NR,prefix:LR,startsExpr:OR}),_void:GR("void",{beforeExpr:NR,prefix:LR,startsExpr:OR}),_delete:GR("delete",{beforeExpr:NR,prefix:LR,startsExpr:OR}),_do:GR("do",{isLoop:FR,beforeExpr:NR}),_for:GR("for",{isLoop:FR}),_while:GR("while",{isLoop:FR}),_as:$R("as",{startsExpr:OR}),_assert:$R("assert",{startsExpr:OR}),_async:$R("async",{startsExpr:OR}),_await:$R("await",{startsExpr:OR}),_defer:$R("defer",{startsExpr:OR}),_from:$R("from",{startsExpr:OR}),_get:$R("get",{startsExpr:OR}),_let:$R("let",{startsExpr:OR}),_meta:$R("meta",{startsExpr:OR}),_of:$R("of",{startsExpr:OR}),_sent:$R("sent",{startsExpr:OR}),_set:$R("set",{startsExpr:OR}),_source:$R("source",{startsExpr:OR}),_static:$R("static",{startsExpr:OR}),_using:$R("using",{startsExpr:OR}),_yield:$R("yield",{startsExpr:OR}),_asserts:$R("asserts",{startsExpr:OR}),_checks:$R("checks",{startsExpr:OR}),_exports:$R("exports",{startsExpr:OR}),_global:$R("global",{startsExpr:OR}),_implements:$R("implements",{startsExpr:OR}),_intrinsic:$R("intrinsic",{startsExpr:OR}),_infer:$R("infer",{startsExpr:OR}),_is:$R("is",{startsExpr:OR}),_mixins:$R("mixins",{startsExpr:OR}),_proto:$R("proto",{startsExpr:OR}),_require:$R("require",{startsExpr:OR}),_satisfies:$R("satisfies",{startsExpr:OR}),_keyof:$R("keyof",{startsExpr:OR}),_readonly:$R("readonly",{startsExpr:OR}),_unique:$R("unique",{startsExpr:OR}),_abstract:$R("abstract",{startsExpr:OR}),_declare:$R("declare",{startsExpr:OR}),_enum:$R("enum",{startsExpr:OR}),_module:$R("module",{startsExpr:OR}),_namespace:$R("namespace",{startsExpr:OR}),_interface:$R("interface",{startsExpr:OR}),_type:$R("type",{startsExpr:OR}),_opaque:$R("opaque",{startsExpr:OR}),name:QR("name",{startsExpr:OR}),placeholder:QR("%%",{startsExpr:!0}),string:QR("string",{startsExpr:OR}),num:QR("num",{startsExpr:OR}),bigint:QR("bigint",{startsExpr:OR}),decimal:QR("decimal",{startsExpr:OR}),regexp:QR("regexp",{startsExpr:OR}),privateName:QR("#name",{startsExpr:OR}),eof:QR("eof"),jsxName:QR("jsxName"),jsxText:QR("jsxText",{beforeExpr:!0}),jsxTagStart:QR("jsxTagStart",{startsExpr:!0}),jsxTagEnd:QR("jsxTagEnd")};function eE(e){return e>=93&&e<=133}function tE(e){return e<=92}function rE(e){return e>=58&&e<=133}function aE(e){return e>=58&&e<=137}function nE(e){return YR[e]}function sE(e){return XR[e]}function iE(e){return e>=29&&e<=33}function oE(e){return e>=129&&e<=131}function dE(e){return e>=90&&e<=92}function cE(e){return e>=58&&e<=92}function lE(e){return e>=39&&e<=59}function uE(e){return 34===e}function pE(e){return JR[e]}function fE(e){return e>=121&&e<=123}function gE(e){return e>=124&&e<=130}function mE(e){return VR[e]}function hE(e){return KR[e]}function yE(e){return 57===e}function bE(e){return e>=24&&e<=25}function vE(e){return zR[e]}function xE(e,t,r){return 64===e&&64===t&&bi(r)}zR[8].updateContext=function(e){e.pop()},zR[5].updateContext=zR[7].updateContext=zR[23].updateContext=function(e){e.push(IR.brace)},zR[22].updateContext=function(e){e[e.length-1]===IR.template?e.pop():e.push(IR.template)},zR[143].updateContext=function(e){e.push(IR.j_expr,IR.j_oTag)};var RE=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function EE(e){return RE.has(e)}var TE={OTHER:0,PROGRAM:1,FUNCTION:2,ARROW:4,SIMPLE_CATCH:8,SUPER:16,DIRECT_SUPER:32,CLASS:64,STATIC_BLOCK:128,TS_MODULE:256,VAR:387},wE={KIND_VALUE:1,KIND_TYPE:2,SCOPE_VAR:4,SCOPE_LEXICAL:8,SCOPE_FUNCTION:16,SCOPE_OUTSIDE:32,FLAG_NONE:64,FLAG_CLASS:128,FLAG_TS_ENUM:256,FLAG_TS_CONST_ENUM:512,FLAG_TS_EXPORT_ONLY:1024,FLAG_FLOW_DECLARE_FN:2048,FLAG_TS_IMPORT:4096,FLAG_NO_LET_IN_LEXICAL:8192,TYPE_CLASS:8331,TYPE_LEXICAL:8201,TYPE_CATCH_PARAM:9,TYPE_VAR:5,TYPE_FUNCTION:17,TYPE_TS_INTERFACE:130,TYPE_TS_TYPE:2,TYPE_TS_ENUM:8459,TYPE_TS_AMBIENT:1024,TYPE_NONE:64,TYPE_OUTSIDE:65,TYPE_TS_CONST_ENUM:8971,TYPE_TS_NAMESPACE:1024,TYPE_TS_TYPE_IMPORT:4098,TYPE_TS_VALUE_IMPORT:4096,TYPE_FLOW_DECLARE_FN:2048},SE={OTHER:0,FLAG_STATIC:4,KIND_GETTER:2,KIND_SETTER:1,KIND_ACCESSOR:3,STATIC_GETTER:6,STATIC_SETTER:5,INSTANCE_GETTER:2,INSTANCE_SETTER:1},AE={Var:1,Lexical:2,Function:4},jE=u((function(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e})),_E=function(){function e(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}var t=e.prototype;return t.createScope=function(e){return new jE(e)},t.enter=function(e){this.scopeStack.push(this.createScope(e))},t.exit=function(){return this.scopeStack.pop().flags},t.treatFunctionsAsVarInScope=function(e){return!!(e.flags&(TE.FUNCTION|TE.STATIC_BLOCK)||!this.parser.inModule&&e.flags&TE.PROGRAM)},t.declareName=function(e,t,r){var a=this.currentScope();if(t&wE.SCOPE_LEXICAL||t&wE.SCOPE_FUNCTION){this.checkRedeclarationInScope(a,e,t,r);var n=a.names.get(e)||0;t&wE.SCOPE_FUNCTION?n|=AE.Function:(a.firstLexicalName||(a.firstLexicalName=e),n|=AE.Lexical),a.names.set(e,n),t&wE.SCOPE_LEXICAL&&this.maybeExportDefined(a,e)}else if(t&wE.SCOPE_VAR)for(var s=this.scopeStack.length-1;s>=0&&(a=this.scopeStack[s],this.checkRedeclarationInScope(a,e,t,r),a.names.set(e,(a.names.get(e)||0)|AE.Var),this.maybeExportDefined(a,e),!(a.flags&TE.VAR));--s);this.parser.inModule&&a.flags&TE.PROGRAM&&this.undefinedExports.delete(e)},t.maybeExportDefined=function(e,t){this.parser.inModule&&e.flags&TE.PROGRAM&&this.undefinedExports.delete(t)},t.checkRedeclarationInScope=function(e,t,r,a){this.isRedeclaredInScope(e,t,r)&&this.parser.raise(jR.VarRedeclaration,a,{identifierName:t})},t.isRedeclaredInScope=function(e,t,r){if(!(r&wE.KIND_VALUE))return!1;if(r&wE.SCOPE_LEXICAL)return e.names.has(t);var a=e.names.get(t);return r&wE.SCOPE_FUNCTION?(a&AE.Lexical)>0||!this.treatFunctionsAsVarInScope(e)&&(a&AE.Var)>0:(a&AE.Lexical)>0&&!(e.flags&TE.SIMPLE_CATCH&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(a&AE.Function)>0},t.checkLocalExport=function(e){var t=e.name;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.loc.start)},t.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},t.currentVarScopeFlags=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e].flags;if(t&TE.VAR)return t}},t.currentThisScopeFlags=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e].flags;if(t&(TE.VAR|TE.CLASS)&&!(t&TE.ARROW))return t}},u(e,[{key:"inTopLevel",get:function(){return(this.currentScope().flags&TE.PROGRAM)>0}},{key:"inFunction",get:function(){return(this.currentVarScopeFlags()&TE.FUNCTION)>0}},{key:"allowSuper",get:function(){return(this.currentThisScopeFlags()&TE.SUPER)>0}},{key:"allowDirectSuper",get:function(){return(this.currentThisScopeFlags()&TE.DIRECT_SUPER)>0}},{key:"inClass",get:function(){return(this.currentThisScopeFlags()&TE.CLASS)>0}},{key:"inClassAndNotInNonArrowFunction",get:function(){var e=this.currentThisScopeFlags();return(e&TE.CLASS)>0&&0===(e&TE.FUNCTION)}},{key:"inStaticBlock",get:function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e].flags;if(t&TE.STATIC_BLOCK)return!0;if(t&(TE.VAR|TE.CLASS))return!1}}},{key:"inNonArrowFunction",get:function(){return(this.currentThisScopeFlags()&TE.FUNCTION)>0}},{key:"treatFunctionsAsVar",get:function(){return this.treatFunctionsAsVarInScope(this.currentScope())}}])}(),CE=function(e){function t(){for(var t,r=arguments.length,a=new Array(r),n=0;n0||(n&AE.Lexical)>0}return!1},r.checkLocalExport=function(t){this.scopeStack[0].declareFunctions.has(t.name)||e.prototype.checkLocalExport.call(this,t)},u(t)}(_E);function PE(e,t){var r;void 0===e.trailingComments?e.trailingComments=t:(r=e.trailingComments).unshift.apply(r,t)}function DE(e,t){var r;void 0===e.leadingComments?e.leadingComments=t:(r=e.leadingComments).unshift.apply(r,t)}function IE(e,t){var r;void 0===e.innerComments?e.innerComments=t:(r=e.innerComments).unshift.apply(r,t)}function NE(e,t,r){for(var a=null,n=t.length;null===a&&n>0;)a=t[--n];null===a||a.start>r.start?IE(e,r.comments):PE(a,r.comments)}var OE=function(e){function t(){return e.apply(this,arguments)||this}g(t,e);var r=t.prototype;return r.addComment=function(e){this.filename&&(e.loc.filename=this.filename);var t=this.state.commentsLen;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++},r.processComment=function(e){var t=this.state.commentStack,r=t.length;if(0!==r){var a=r-1,n=t[a];n.start===e.end&&(n.leadingNode=e,a--);for(var s=e.start;a>=0;a--){var i=t[a],o=i.end;if(!(o>s)){o===s&&(i.trailingNode=e);break}i.containingNode=e,this.finalizeComment(i),t.splice(a,1)}}},r.finalizeComment=function(e){var t=e.comments;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&PE(e.leadingNode,t),null!==e.trailingNode&&DE(e.trailingNode,t);else{var r=e.containingNode,a=e.start;if(44===this.input.charCodeAt(this.offsetToSourcePos(a)-1))switch(r.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":NE(r,r.properties,e);break;case"CallExpression":case"OptionalCallExpression":NE(r,r.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":NE(r,r.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":NE(r,r.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":NE(r,r.specifiers,e);break;default:IE(r,t)}else IE(r,t)}},r.finalizeRemainingComments=function(){for(var e=this.state.commentStack,t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]},r.resetPreviousNodeTrailingComments=function(e){var t=this.state.commentStack,r=t.length;if(0!==r){var a=t[r-1];a.leadingNode===e&&(a.leadingNode=null)}},r.resetPreviousIdentifierLeadingComments=function(e){var t=this.state.commentStack,r=t.length;0!==r&&(t[r-1].trailingNode===e?t[r-1].trailingNode=null:r>=2&&t[r-2].trailingNode===e&&(t[r-2].trailingNode=null))},r.takeSurroundingComments=function(e,t,r){var a=this.state.commentStack,n=a.length;if(0!==n)for(var s=n-1;s>=0;s--){var i=a[s],o=i.end;if(i.start===r)i.leadingNode=e;else if(o===t)i.trailingNode=e;else if(o0},set:function(e){e?this.flags|=1:this.flags&=-2}},{key:"maybeInArrowParameters",get:function(){return(2&this.flags)>0},set:function(e){e?this.flags|=2:this.flags&=-3}},{key:"inType",get:function(){return(4&this.flags)>0},set:function(e){e?this.flags|=4:this.flags&=-5}},{key:"noAnonFunctionType",get:function(){return(8&this.flags)>0},set:function(e){e?this.flags|=8:this.flags&=-9}},{key:"hasFlowComment",get:function(){return(16&this.flags)>0},set:function(e){e?this.flags|=16:this.flags&=-17}},{key:"isAmbientContext",get:function(){return(32&this.flags)>0},set:function(e){e?this.flags|=32:this.flags&=-33}},{key:"inAbstractClass",get:function(){return(64&this.flags)>0},set:function(e){e?this.flags|=64:this.flags&=-65}},{key:"inDisallowConditionalTypesContext",get:function(){return(128&this.flags)>0},set:function(e){e?this.flags|=128:this.flags&=-129}},{key:"soloAwait",get:function(){return(256&this.flags)>0},set:function(e){e?this.flags|=256:this.flags&=-257}},{key:"inFSharpPipelineDirectBody",get:function(){return(512&this.flags)>0},set:function(e){e?this.flags|=512:this.flags&=-513}},{key:"canStartJSXElement",get:function(){return(1024&this.flags)>0},set:function(e){e?this.flags|=1024:this.flags&=-1025}},{key:"containsEsc",get:function(){return(2048&this.flags)>0},set:function(e){e?this.flags|=2048:this.flags&=-2049}},{key:"hasTopLevelAwait",get:function(){return(4096&this.flags)>0},set:function(e){e?this.flags|=4096:this.flags&=-4097}}])}();function WE(e,t,r){return new uR(r,e-t,e)}var zE=new Set([103,109,115,105,121,117,100,118]),VE=u((function(e){var t=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=t+e.start,this.end=t+e.end,this.loc=new pR(e.startLoc,e.endLoc)})),KE=function(e){function t(t,r){var a;return(a=e.call(this)||this).isLookahead=void 0,a.tokens=[],a.errorHandlers_readInt={invalidDigit:function(e,t,r,n){return!!a.options.errorRecovery&&(a.raise(jR.InvalidDigit,WE(e,t,r),{radix:n}),!0)},numericSeparatorInEscapeSequence:a.errorBuilder(jR.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:a.errorBuilder(jR.UnexpectedNumericSeparator)},a.errorHandlers_readCodePoint=Object.assign({},a.errorHandlers_readInt,{invalidEscapeSequence:a.errorBuilder(jR.InvalidEscapeSequence),invalidCodePoint:a.errorBuilder(jR.InvalidCodePoint)}),a.errorHandlers_readStringContents_string=Object.assign({},a.errorHandlers_readCodePoint,{strictNumericEscape:function(e,t,r){a.recordStrictModeErrors(jR.StrictNumericEscape,WE(e,t,r))},unterminated:function(e,t,r){throw a.raise(jR.UnterminatedString,WE(e-1,t,r))}}),a.errorHandlers_readStringContents_template=Object.assign({},a.errorHandlers_readCodePoint,{strictNumericEscape:a.errorBuilder(jR.StrictNumericEscape),unterminated:function(e,t,r){throw a.raise(jR.UnterminatedTemplate,WE(e,t,r))}}),a.state=new qE,a.state.init(t),a.input=r,a.length=r.length,a.comments=[],a.isLookahead=!1,a}g(t,e);var r=t.prototype;return r.pushToken=function(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength},r.next=function(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new VE(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()},r.eat=function(e){return!!this.match(e)&&(this.next(),!0)},r.match=function(e){return this.state.type===e},r.createLookaheadState=function(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}},r.lookahead=function(){var e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;var t=this.state;return this.state=e,t},r.nextTokenStart=function(){return this.nextTokenStartSince(this.state.pos)},r.nextTokenStartSince=function(e){return ME.lastIndex=e,ME.test(this.input)?ME.lastIndex:e},r.lookaheadCharCode=function(){return this.input.charCodeAt(this.nextTokenStart())},r.nextTokenInLineStart=function(){return this.nextTokenInLineStartSince(this.state.pos)},r.nextTokenInLineStartSince=function(e){return UE.lastIndex=e,UE.test(this.input)?UE.lastIndex:e},r.lookaheadInLineCharCode=function(){return this.input.charCodeAt(this.nextTokenInLineStart())},r.codePointAtPos=function(e){var t=this.input.charCodeAt(e);if(55296===(64512&t)&&++e=this.length?this.finishToken(140):this.getTokenFromCode(this.codePointAtPos(this.state.pos))},r.skipBlockComment=function(e){var t;this.isLookahead||(t=this.state.curPosition());var r=this.state.pos,a=this.input.indexOf(e,r+2);if(-1===a)throw this.raise(jR.UnterminatedComment,this.state.curPosition());for(this.state.pos=a+e.length,FE.lastIndex=r+2;FE.test(this.input)&&FE.lastIndex<=a;)++this.state.curLine,this.state.lineStart=FE.lastIndex;if(!this.isLookahead){var n={type:"CommentBlock",value:this.input.slice(r+2,a),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(a+e.length),loc:new pR(t,this.state.curPosition())};return this.options.tokens&&this.pushToken(n),n}},r.skipLineComment=function(e){var t,r=this.state.pos;this.isLookahead||(t=this.state.curPosition());var a=this.input.charCodeAt(this.state.pos+=e);if(this.state.pose))break e;var i=this.skipLineComment(3);void 0!==i&&(this.addComment(i),this.options.attachComment&&t.push(i))}else{if(60!==r||this.inModule||!this.options.annexB)break e;var o=this.state.pos;if(33!==this.input.charCodeAt(o+1)||45!==this.input.charCodeAt(o+2)||45!==this.input.charCodeAt(o+3))break e;var d=this.skipLineComment(4);void 0!==d&&(this.addComment(d),this.options.attachComment&&t.push(d))}}}if(t.length>0){var c=this.state.pos,l={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(c),comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(l)}},r.finishToken=function(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();var r=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(r)},r.replaceToken=function(e){this.state.type=e,this.updateContext()},r.readToken_numberSign=function(){if(0!==this.state.pos||!this.readToken_interpreter()){var e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(jR.UnexpectedDigitAfterHash,this.state.curPosition());if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===t?jR.RecordExpressionHashIncorrectStartSyntaxType:jR.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===t?this.finishToken(7):this.finishToken(1)}else bi(t)?(++this.state.pos,this.finishToken(139,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}},r.readToken_dot=function(){var e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))},r.readToken_slash=function(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)},r.readToken_interpreter=function(){if(0!==this.state.pos||this.length<2)return!1;var e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;var t=this.state.pos;for(this.state.pos+=1;!BE(e)&&++this.state.pos=48&&t<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))},r.getTokenFromCode=function(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(jR.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(jR.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:var t=this.input.charCodeAt(this.state.pos+1);if(120===t||88===t)return void this.readRadixNumber(16);if(111===t||79===t)return void this.readRadixNumber(8);if(98===t||66===t)return void this.readRadixNumber(2);case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(e);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(e);case 124:case 38:return void this.readToken_pipe_amp(e);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(e);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(bi(e))return void this.readWord(e)}throw this.raise(jR.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})},r.finishOp=function(e,t){var r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,r)},r.readRegexp=function(){for(var e,t,r=this.state.startLoc,a=this.state.start+1,n=this.state.pos;;++n){if(n>=this.length)throw this.raise(jR.UnterminatedRegExp,fR(r,1));var s=this.input.charCodeAt(n);if(BE(s))throw this.raise(jR.UnterminatedRegExp,fR(r,1));if(e)e=!1;else{if(91===s)t=!0;else if(93===s&&t)t=!1;else if(47===s&&!t)break;e=92===s}}var i=this.input.slice(a,n);++n;for(var o="",d=function(){return fR(r,n+2-a)};n=2&&48===this.input.charCodeAt(t);if(o){var d=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(jR.StrictOctalLiteral,r),!this.state.strict){var c=d.indexOf("_");c>0&&this.raise(jR.ZeroDigitNumericSeparator,fR(r,c))}i=o&&!/[89]/.test(d)}var l=this.input.charCodeAt(this.state.pos);if(46!==l||i||(++this.state.pos,this.readInt(10),a=!0,l=this.input.charCodeAt(this.state.pos)),69!==l&&101!==l||i||(43!==(l=this.input.charCodeAt(++this.state.pos))&&45!==l||++this.state.pos,null===this.readInt(10)&&this.raise(jR.InvalidOrMissingExponent,r),a=!0,s=!0,l=this.input.charCodeAt(this.state.pos)),110===l&&((a||o)&&this.raise(jR.InvalidBigIntLiteral,r),++this.state.pos,n=!0),109===l){this.expectPlugin("decimal",this.state.curPosition()),(s||o)&&this.raise(jR.InvalidDecimal,r),++this.state.pos;var u=!0}if(bi(this.codePointAtPos(this.state.pos)))throw this.raise(jR.NumberIdentifier,this.state.curPosition());var p=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(n)this.finishToken(136,p);else if(u)this.finishToken(137,p);else{var f=i?parseInt(p,8):parseFloat(p);this.finishToken(135,f)}},r.readCodePoint=function(e){var t=Mi(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint),r=t.code,a=t.pos;return this.state.pos=a,r},r.readString=function(e){var t=Ni(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string),r=t.str,a=t.pos,n=t.curLine,s=t.lineStart;this.state.pos=a+1,this.state.lineStart=s,this.state.curLine=n,this.finishToken(134,r)},r.readTemplateContinuation=function(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()},r.readTemplateToken=function(){var e=this.input[this.state.pos],t=Ni("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template),r=t.str,a=t.firstInvalidLoc,n=t.pos,s=t.curLine,i=t.lineStart;this.state.pos=n+1,this.state.lineStart=i,this.state.curLine=s,a&&(this.state.firstInvalidTemplateEscapePos=new uR(a.curLine,a.pos-a.lineStart,this.sourceToOffsetPos(a.pos))),96===this.input.codePointAt(n)?this.finishToken(24,a?null:e+r+"`"):(this.state.pos++,this.finishToken(25,a?null:e+r+"${"))},r.recordStrictModeErrors=function(e,t){var r=t.index;this.state.strict&&!this.state.strictErrors.has(r)?this.raise(e,t):this.state.strictErrors.set(r,[e,t])},r.readWord1=function(e){this.state.containsEsc=!1;var t="",r=this.state.pos,a=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos=0;i--){var o=s[i];if(o.loc.index===n)return s[i]=e(a,r);if(o.loc.index0}},{key:"hasYield",get:function(){return(this.currentFlags()&aT.PARAM_YIELD)>0}},{key:"hasReturn",get:function(){return(this.currentFlags()&aT.PARAM_RETURN)>0}},{key:"hasIn",get:function(){return(this.currentFlags()&aT.PARAM_IN)>0}}])}();function sT(e,t){return(e?aT.PARAM_AWAIT:0)|(t?aT.PARAM_YIELD:0)}var iT=function(e){function t(){return e.apply(this,arguments)||this}g(t,e);var r=t.prototype;return r.addExtra=function(e,t,r,a){if(void 0===a&&(a=!0),e){var n=e.extra;null==n&&(n={},e.extra=n),a?n[t]=r:Object.defineProperty(n,t,{enumerable:a,value:r})}},r.isContextual=function(e){return this.state.type===e&&!this.state.containsEsc},r.isUnparsedContextual=function(e,t){var r=e+t.length;if(this.input.slice(e,r)===t){var a=this.input.charCodeAt(r);return!(vi(a)||55296===(64512&a))}return!1},r.isLookaheadContextual=function(e){var t=this.nextTokenStart();return this.isUnparsedContextual(t,e)},r.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},r.expectContextual=function(e,t){if(!this.eatContextual(e)){if(null!=t)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}},r.canInsertSemicolon=function(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()},r.hasPrecedingLineBreak=function(){return LE(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)},r.hasFollowingLineBreak=function(){return LE(this.input,this.state.end,this.nextTokenStart())},r.isLineTerminator=function(){return this.eat(13)||this.canInsertSemicolon()},r.semicolon=function(e){void 0===e&&(e=!0),(e?this.isLineTerminator():this.eat(13))||this.raise(jR.MissingSemicolon,this.state.lastTokEndLoc)},r.expect=function(e,t){this.eat(e)||this.unexpected(t,e)},r.tryParse=function(e,t){void 0===t&&(t=this.state.clone());var r={node:null};try{var a=e((function(e){throw void 0===e&&(e=null),r.node=e,r}));if(this.state.errors.length>t.errors.length){var n=this.state;return this.state=t,this.state.tokensLength=n.tokensLength,{node:a,error:n.errors[t.errors.length],thrown:!1,aborted:!1,failState:n}}return{node:a,error:null,thrown:!1,aborted:!1,failState:null}}catch(SJ){var s=this.state;if(this.state=t,SJ instanceof SyntaxError)return{node:null,error:SJ,thrown:!0,aborted:!1,failState:s};if(SJ===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:s};throw SJ}},r.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssignLoc,a=e.doubleProtoLoc,n=e.privateKeyLoc,s=e.optionalParametersLoc;if(!t)return!!r||!!a||!!s||!!n;null!=r&&this.raise(jR.InvalidCoverInitializedName,r),null!=a&&this.raise(jR.DuplicateProto,a),null!=n&&this.raise(jR.UnexpectedPrivateField,n),null!=s&&this.unexpected(s)},r.isLiteralPropertyName=function(){return aE(this.state.type)},r.isPrivateName=function(e){return"PrivateName"===e.type},r.getPrivateNameSV=function(e){return e.id.name},r.hasPropertyAsPrivateName=function(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)},r.isObjectProperty=function(e){return"ObjectProperty"===e.type},r.isObjectMethod=function(e){return"ObjectMethod"===e.type},r.initializeScopes=function(e){var t=this;void 0===e&&(e="module"===this.options.sourceType);var r=this.state.labels;this.state.labels=[];var a=this.exportedIdentifiers;this.exportedIdentifiers=new Set;var n=this.inModule;this.inModule=e;var s=this.scope,i=this.getScopeHandler();this.scope=new i(this,e);var o=this.prodParam;this.prodParam=new nT;var d=this.classScope;this.classScope=new XE(this);var c=this.expressionScope;return this.expressionScope=new $E(this),function(){t.state.labels=r,t.exportedIdentifiers=a,t.inModule=n,t.scope=s,t.prodParam=o,t.classScope=d,t.expressionScope=c}},r.enterInitialScopes=function(){var e=aT.PARAM;this.inModule&&(e|=aT.PARAM_AWAIT),this.scope.enter(TE.PROGRAM),this.prodParam.enter(e)},r.checkDestructuringPrivate=function(e){var t=e.privateKeyLoc;null!==t&&this.expectPlugin("destructuringPrivate",t)},u(t)}(KE),oT=u((function(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null})),dT=u((function(e,t,r){this.type="",this.start=t,this.end=0,this.loc=new pR(r),null!=e&&e.options.ranges&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)})),cT=dT.prototype;function lT(e){return uT(e)}function uT(e){var t=e.type,r=e.start,a=e.end,n=e.loc,s=e.range,i=e.extra,o=e.name,d=Object.create(cT);return d.type=t,d.start=r,d.end=a,d.loc=n,d.range=s,d.extra=i,d.name=o,"Placeholder"===t&&(d.expectedNode=e.expectedNode),d}function pT(e){var t=e.type,r=e.start,a=e.end,n=e.loc,s=e.range,i=e.extra;if("Placeholder"===t)return lT(e);var o=Object.create(cT);return o.type=t,o.start=r,o.end=a,o.loc=n,o.range=s,void 0!==e.raw?o.raw=e.raw:o.extra=i,o.value=e.value,o}cT.__clone=function(){for(var e=new dT(void 0,this.start,this.loc.start),t=Object.keys(this),r=0,a=t.length;r async () => {}`, use `async () => {}`.",UnsupportedDeclareExportKind:function(e){return"`declare export "+e.unsupportedExportKind+"` is not supported. Use `"+e.suggestion+"` instead."},UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function yT(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}function bT(e){return"type"===e.importKind||"typeof"===e.importKind}var vT={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function xT(e,t){for(var r=[],a=[],n=0;nr.index+1&&this.raise(hT.UnexpectedSpaceBetweenModuloChecks,r),this.eat(10)?(t.value=e.prototype.parseExpression.call(this),this.expect(11),this.finishNode(t,"DeclaredPredicate")):this.finishNode(t,"InferredPredicate")},r.flowParseTypeAndPredicateInitialiser=function(){var e=this.state.inType;this.state.inType=!0,this.expect(14);var t=null,r=null;return this.match(54)?(this.state.inType=e,r=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(r=this.flowParsePredicate())),[t,r]},r.flowParseDeclareClass=function(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")},r.flowParseDeclareFunction=function(e){this.next();var t=e.id=this.parseIdentifier(),r=this.startNode(),a=this.startNode();this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(10);var n=this.flowParseFunctionTypeParams();r.params=n.params,r.rest=n.rest,r.this=n._this,this.expect(11);var s=this.flowParseTypeAndPredicateInitialiser();return r.returnType=s[0],e.predicate=s[1],a.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(a,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,wE.TYPE_FLOW_DECLARE_FN,e.id.loc.start),this.finishNode(e,"DeclareFunction")},r.flowParseDeclare=function(e,t){return this.match(80)?this.flowParseDeclareClass(e):this.match(68)?this.flowParseDeclareFunction(e):this.match(74)?this.flowParseDeclareVariable(e):this.eatContextual(127)?this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(hT.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e)):this.isContextual(130)?this.flowParseDeclareTypeAlias(e):this.isContextual(131)?this.flowParseDeclareOpaqueType(e):this.isContextual(129)?this.flowParseDeclareInterface(e):this.match(82)?this.flowParseDeclareExportDeclaration(e,t):void this.unexpected()},r.flowParseDeclareVariable=function(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,wE.TYPE_VAR,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")},r.flowParseDeclareModule=function(t){var r=this;this.scope.enter(TE.OTHER),this.match(134)?t.id=e.prototype.parseExprAtom.call(this):t.id=this.parseIdentifier();var a=t.body=this.startNode(),n=a.body=[];for(this.expect(5);!this.match(8);){var s=this.startNode();this.match(83)?(this.next(),this.isContextual(130)||this.match(87)||this.raise(hT.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),e.prototype.parseImport.call(this,s)):(this.expectContextual(125,hT.UnsupportedStatementInDeclareModule),s=this.flowParseDeclare(s,!0)),n.push(s)}this.scope.exit(),this.expect(8),this.finishNode(a,"BlockStatement");var i=null,o=!1;return n.forEach((function(e){yT(e)?("CommonJS"===i&&r.raise(hT.AmbiguousDeclareModuleKind,e),i="ES"):"DeclareModuleExports"===e.type&&(o&&r.raise(hT.DuplicateDeclareModuleExports,e),"ES"===i&&r.raise(hT.AmbiguousDeclareModuleKind,e),i="CommonJS",o=!0)})),t.kind=i||"CommonJS",this.finishNode(t,"DeclareModule")},r.flowParseDeclareExportDeclaration=function(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){var r=this.state.value;throw this.raise(hT.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:r,suggestion:vT[r]})}return this.match(74)||this.match(68)||this.match(80)||this.isContextual(131)?(e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration")):this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)?("ExportNamedDeclaration"===(e=this.parseExport(e,null)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e):void this.unexpected()},r.flowParseDeclareModuleExports=function(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")},r.flowParseDeclareTypeAlias=function(e){this.next();var t=this.flowParseTypeAlias(e);return t.type="DeclareTypeAlias",t},r.flowParseDeclareOpaqueType=function(e){this.next();var t=this.flowParseOpaqueType(e,!0);return t.type="DeclareOpaqueType",t},r.flowParseDeclareInterface=function(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")},r.flowParseInterfaceish=function(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?wE.TYPE_FUNCTION:wE.TYPE_LEXICAL,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(12));if(t){if(e.implements=[],e.mixins=[],this.eatContextual(117))do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12));if(this.eatContextual(113))do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})},r.flowParseInterfaceExtends=function(){var e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")},r.flowParseInterface=function(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")},r.checkNotUnderscore=function(e){"_"===e&&this.raise(hT.UnexpectedReservedUnderscore,this.state.startLoc)},r.checkReservedType=function(e,t,r){mT.has(e)&&this.raise(r?hT.AssignReservedType:hT.UnexpectedReservedType,t,{reservedType:e})},r.flowParseRestrictedIdentifier=function(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifier(e)},r.flowParseTypeAlias=function(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,wE.TYPE_LEXICAL,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")},r.flowParseOpaqueType=function(e,t){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,wE.TYPE_LEXICAL,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")},r.flowParseTypeParameter=function(e){void 0===e&&(e=!1);var t=this.state.startLoc,r=this.startNode(),a=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return r.name=n.name,r.variance=a,r.bound=n.typeAnnotation,this.match(29)?(this.eat(29),r.default=this.flowParseType()):e&&this.raise(hT.MissingTypeParamDefault,t),this.finishNode(r,"TypeParameter")},r.flowParseTypeParameterDeclaration=function(){var e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();var r=!1;do{var a=this.flowParseTypeParameter(r);t.params.push(a),a.default&&(r=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")},r.flowParseTypeParameterInstantiation=function(){var e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);var r=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=r,this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")},r.flowParseTypeParameterInstantiationCallOrNew=function(){var e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")},r.flowParseInterfaceType=function(){var e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")},r.flowParseObjectPropertyKey=function(){return this.match(135)||this.match(134)?e.prototype.parseExprAtom.call(this):this.parseIdentifier(!0)},r.flowParseObjectTypeIndexer=function(e,t,r){return e.static=t,14===this.lookahead().type?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=r,this.finishNode(e,"ObjectTypeIndexer")},r.flowParseObjectTypeInternalSlot=function(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")},r.flowParseObjectTypeMethodish=function(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")},r.flowParseObjectTypeCallProperty=function(e,t){var r=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(r),this.finishNode(e,"ObjectTypeCallProperty")},r.flowParseObjectType=function(e){var t=e.allowStatic,r=e.allowExact,a=e.allowSpread,n=e.allowProto,s=e.allowInexact,i=this.state.inType;this.state.inType=!0;var o,d,c=this.startNode();c.callProperties=[],c.properties=[],c.indexers=[],c.internalSlots=[];var l=!1;for(r&&this.match(6)?(this.expect(6),o=9,d=!0):(this.expect(5),o=8,d=!1),c.exact=d;!this.match(o);){var u=!1,p=null,f=null,g=this.startNode();if(n&&this.isContextual(118)){var m=this.lookahead();14!==m.type&&17!==m.type&&(this.next(),p=this.state.startLoc,t=!1)}if(t&&this.isContextual(106)){var h=this.lookahead();14!==h.type&&17!==h.type&&(this.next(),u=!0)}var y=this.flowParseVariance();if(this.eat(0))null!=p&&this.unexpected(p),this.eat(0)?(y&&this.unexpected(y.loc.start),c.internalSlots.push(this.flowParseObjectTypeInternalSlot(g,u))):c.indexers.push(this.flowParseObjectTypeIndexer(g,u,y));else if(this.match(10)||this.match(47))null!=p&&this.unexpected(p),y&&this.unexpected(y.loc.start),c.callProperties.push(this.flowParseObjectTypeCallProperty(g,u));else{var b="init";(this.isContextual(99)||this.isContextual(104))&&aE(this.lookahead().type)&&(b=this.state.value,this.next());var v=this.flowParseObjectTypeProperty(g,u,p,y,b,a,null!=s?s:!d);null===v?(l=!0,f=this.state.lastTokStartLoc):c.properties.push(v)}this.flowObjectTypeSemicolon(),!f||this.match(8)||this.match(9)||this.raise(hT.UnexpectedExplicitInexactInObject,f)}this.expect(o),a&&(c.inexact=l);var x=this.finishNode(c,"ObjectTypeAnnotation");return this.state.inType=i,x},r.flowParseObjectTypeProperty=function(e,t,r,a,n,s,i){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(s?i||this.raise(hT.InexactInsideExact,this.state.lastTokStartLoc):this.raise(hT.InexactInsideNonObject,this.state.lastTokStartLoc),a&&this.raise(hT.InexactVariance,a),null):(s||this.raise(hT.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=r&&this.unexpected(r),a&&this.raise(hT.SpreadVariance,a),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=r,e.kind=n;var o=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=r&&this.unexpected(r),a&&this.unexpected(a.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),"get"!==n&&"set"!==n||this.flowCheckGetterSetterParams(e),!s&&"constructor"===e.key.name&&e.value.this&&this.raise(hT.ThisParamBannedInConstructor,e.value.this)):("init"!==n&&this.unexpected(),e.method=!1,this.eat(17)&&(o=!0),e.value=this.flowParseTypeInitialiser(),e.variance=a),e.optional=o,this.finishNode(e,"ObjectTypeProperty")},r.flowCheckGetterSetterParams=function(e){var t="get"===e.kind?0:1,r=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?hT.GetterMayNotHaveThisParam:hT.SetterMayNotHaveThisParam,e.value.this),r!==t&&this.raise("get"===e.kind?jR.BadGetterArity:jR.BadSetterArity,e),"set"===e.kind&&e.value.rest&&this.raise(jR.BadSetterRestParameter,e)},r.flowObjectTypeSemicolon=function(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()},r.flowParseQualifiedTypeIdentifier=function(e,t){null!=e||(e=this.state.startLoc);for(var r=t||this.flowParseRestrictedIdentifier(!0);this.eat(16);){var a=this.startNodeAt(e);a.qualification=r,a.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(a,"QualifiedTypeIdentifier")}return r},r.flowParseGenericType=function(e,t){var r=this.startNodeAt(e);return r.typeParameters=null,r.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(r,"GenericTypeAnnotation")},r.flowParseTypeofType=function(){var e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")},r.flowParseTupleType=function(){var e=this.startNode();for(e.types=[],this.expect(0);this.state.pos0){var g=[].concat(i);if(f.length>0){this.state=s,this.state.noArrowAt=g;for(var m=0;m1&&this.raise(hT.AmbiguousConditionalArrow,s.startLoc),l&&1===p.length){this.state=s,g.push(p[0].start),this.state.noArrowAt=g;var b=this.tryParseConditionalConsequent();c=b.consequent,l=b.failed}}return this.getArrowLikeExpressions(c,!0),this.state.noArrowAt=i,this.expect(14),o.test=e,o.consequent=c,o.alternate=this.forwardNoArrowParamsConversionAt(o,(function(){return a.parseMaybeAssign(void 0,void 0)})),this.finishNode(o,"ConditionalExpression")},r.tryParseConditionalConsequent=function(){this.state.noArrowParamsConversionAt.push(this.state.start);var e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}},r.getArrowLikeExpressions=function(e,t){for(var r=this,a=[e],n=[];0!==a.length;){var s=a.pop();"ArrowFunctionExpression"===s.type&&"BlockStatement"!==s.body.type?(s.typeParameters||!s.returnType?this.finishArrowValidation(s):n.push(s),a.push(s.body)):"ConditionalExpression"===s.type&&(a.push(s.consequent),a.push(s.alternate))}return t?(n.forEach((function(e){return r.finishArrowValidation(e)})),[n,[]]):xT(n,(function(e){return e.params.every((function(e){return r.isAssignable(e,!0)}))}))},r.finishArrowValidation=function(t){var r;this.toAssignableList(t.params,null==(r=t.extra)?void 0:r.trailingCommaLoc,!1),this.scope.enter(TE.FUNCTION|TE.ARROW),e.prototype.checkParams.call(this,t,!1,!0),this.scope.exit()},r.forwardNoArrowParamsConversionAt=function(e,t){var r;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),r=t(),this.state.noArrowParamsConversionAt.pop()):r=t(),r},r.parseParenItem=function(t,r){var a=e.prototype.parseParenItem.call(this,t,r);if(this.eat(17)&&(a.optional=!0,this.resetEndLocation(t)),this.match(14)){var n=this.startNodeAt(r);return n.expression=a,n.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(n,"TypeCastExpression")}return a},r.assertModuleNodeAllowed=function(t){"ImportDeclaration"===t.type&&("type"===t.importKind||"typeof"===t.importKind)||"ExportNamedDeclaration"===t.type&&"type"===t.exportKind||"ExportAllDeclaration"===t.type&&"type"===t.exportKind||e.prototype.assertModuleNodeAllowed.call(this,t)},r.parseExportDeclaration=function(t){if(this.isContextual(130)){t.exportKind="type";var r=this.startNode();return this.next(),this.match(5)?(t.specifiers=this.parseExportSpecifiers(!0),e.prototype.parseExportFrom.call(this,t),null):this.flowParseTypeAlias(r)}if(this.isContextual(131)){t.exportKind="type";var a=this.startNode();return this.next(),this.flowParseOpaqueType(a,!1)}if(this.isContextual(129)){t.exportKind="type";var n=this.startNode();return this.next(),this.flowParseInterface(n)}if(this.isContextual(126)){t.exportKind="value";var s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}return e.prototype.parseExportDeclaration.call(this,t)},r.eatExportStar=function(t){return!!e.prototype.eatExportStar.call(this,t)||!(!this.isContextual(130)||55!==this.lookahead().type)&&(t.exportKind="type",this.next(),this.next(),!0)},r.maybeParseExportNamespaceSpecifier=function(t){var r=this.state.startLoc,a=e.prototype.maybeParseExportNamespaceSpecifier.call(this,t);return a&&"type"===t.exportKind&&this.unexpected(r),a},r.parseClassId=function(t,r,a){e.prototype.parseClassId.call(this,t,r,a),this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration())},r.parseClassMember=function(t,r,a){var n=this.state.startLoc;if(this.isContextual(125)){if(e.prototype.parseClassMemberFromModifier.call(this,t,r))return;r.declare=!0}e.prototype.parseClassMember.call(this,t,r,a),r.declare&&("ClassProperty"!==r.type&&"ClassPrivateProperty"!==r.type&&"PropertyDefinition"!==r.type?this.raise(hT.DeclareClassElement,n):r.value&&this.raise(hT.DeclareClassFieldInitializer,r.value))},r.isIterator=function(e){return"iterator"===e||"asyncIterator"===e},r.readIterator=function(){var t=e.prototype.readWord1.call(this),r="@@"+t;this.isIterator(t)&&this.state.inType||this.raise(jR.InvalidIdentifier,this.state.curPosition(),{identifierName:r}),this.finishToken(132,r)},r.getTokenFromCode=function(t){var r=this.input.charCodeAt(this.state.pos+1);123===t&&124===r?this.finishOp(6,2):!this.state.inType||62!==t&&60!==t?this.state.inType&&63===t?46===r?this.finishOp(18,2):this.finishOp(17,1):xE(t,r,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):e.prototype.getTokenFromCode.call(this,t):this.finishOp(62===t?48:47,1)},r.isAssignable=function(t,r){return"TypeCastExpression"===t.type?this.isAssignable(t.expression,r):e.prototype.isAssignable.call(this,t,r)},r.toAssignable=function(t,r){void 0===r&&(r=!1),r||"AssignmentExpression"!==t.type||"TypeCastExpression"!==t.left.type||(t.left=this.typeCastToParameter(t.left)),e.prototype.toAssignable.call(this,t,r)},r.toAssignableList=function(t,r,a){for(var n=0;n1)&&t||this.raise(hT.TypeCastInPattern,n.typeAnnotation)}return e},r.parseArrayLike=function(t,r,a,n){var s=e.prototype.parseArrayLike.call(this,t,r,a,n);return r&&!this.state.maybeInArrowParameters&&this.toReferencedList(s.elements),s},r.isValidLVal=function(t,r,a){return"TypeCastExpression"===t||e.prototype.isValidLVal.call(this,t,r,a)},r.parseClassProperty=function(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),e.prototype.parseClassProperty.call(this,t)},r.parseClassPrivateProperty=function(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),e.prototype.parseClassPrivateProperty.call(this,t)},r.isClassMethod=function(){return this.match(47)||e.prototype.isClassMethod.call(this)},r.isClassProperty=function(){return this.match(14)||e.prototype.isClassProperty.call(this)},r.isNonstaticConstructor=function(t){return!this.match(14)&&e.prototype.isNonstaticConstructor.call(this,t)},r.pushClassMethod=function(t,r,a,n,s,i){if(r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),e.prototype.pushClassMethod.call(this,t,r,a,n,s,i),r.params&&s){var o=r.params;o.length>0&&this.isThisParam(o[0])&&this.raise(hT.ThisParamBannedInConstructor,r)}else if("MethodDefinition"===r.type&&s&&r.value.params){var d=r.value.params;d.length>0&&this.isThisParam(d[0])&&this.raise(hT.ThisParamBannedInConstructor,r)}},r.pushClassPrivateMethod=function(t,r,a,n){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),e.prototype.pushClassPrivateMethod.call(this,t,r,a,n)},r.parseClassSuper=function(t){if(e.prototype.parseClassSuper.call(this,t),t.superClass&&this.match(47)&&(t.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();var r=t.implements=[];do{var a=this.startNode();a.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?a.typeParameters=this.flowParseTypeParameterInstantiation():a.typeParameters=null,r.push(this.finishNode(a,"ClassImplements"))}while(this.eat(12))}},r.checkGetterSetterParams=function(t){e.prototype.checkGetterSetterParams.call(this,t);var r=this.getObjectOrClassMethodParams(t);if(r.length>0){var a=r[0];this.isThisParam(a)&&"get"===t.kind?this.raise(hT.GetterMayNotHaveThisParam,a):this.isThisParam(a)&&this.raise(hT.SetterMayNotHaveThisParam,a)}},r.parsePropertyNamePrefixOperator=function(e){e.variance=this.flowParseVariance()},r.parseObjPropValue=function(t,r,a,n,s,i,o){var d;t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&!i&&(d=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());var c=e.prototype.parseObjPropValue.call(this,t,r,a,n,s,i,o);return d&&((c.value||c).typeParameters=d),c},r.parseFunctionParamType=function(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(hT.PatternIsOptional,e),this.isThisParam(e)&&this.raise(hT.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(hT.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(hT.ThisParamNoDefault,e),this.resetEndLocation(e),e},r.parseMaybeDefault=function(t,r){var a=e.prototype.parseMaybeDefault.call(this,t,r);return"AssignmentPattern"===a.type&&a.typeAnnotation&&a.right.start0&&this.raise(hT.ThisParamMustBeFirst,t.params[s]);e.prototype.checkParams.call(this,t,r,a,n)}},r.parseParenAndDistinguishExpression=function(t){return e.prototype.parseParenAndDistinguishExpression.call(this,t&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))},r.parseSubscripts=function(t,r,a){var n=this;if("Identifier"===t.type&&"async"===t.name&&this.state.noArrowAt.includes(r.index)){this.next();var s=this.startNodeAt(r);s.callee=t,s.arguments=e.prototype.parseCallExpressionArguments.call(this,11),t=this.finishNode(s,"CallExpression")}else if("Identifier"===t.type&&"async"===t.name&&this.match(47)){var i=this.state.clone(),o=this.tryParse((function(e){return n.parseAsyncArrowWithTypeParameters(r)||e()}),i);if(!o.error&&!o.aborted)return o.node;var d=this.tryParse((function(){return e.prototype.parseSubscripts.call(n,t,r,a)}),i);if(d.node&&!d.error)return d.node;if(o.node)return this.state=o.failState,o.node;if(d.node)return this.state=d.failState,d.node;throw o.error||d.error}return e.prototype.parseSubscripts.call(this,t,r,a)},r.parseSubscript=function(t,r,a,n){var s=this;if(this.match(18)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,a)return n.stop=!0,t;this.next();var i=this.startNodeAt(r);return i.callee=t,i.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),i.arguments=this.parseCallExpressionArguments(11),i.optional=!0,this.finishCallExpression(i,!0)}if(!a&&this.shouldParseTypes()&&this.match(47)){var o=this.startNodeAt(r);o.callee=t;var d=this.tryParse((function(){return o.typeArguments=s.flowParseTypeParameterInstantiationCallOrNew(),s.expect(10),o.arguments=e.prototype.parseCallExpressionArguments.call(s,11),n.optionalChainMember&&(o.optional=!1),s.finishCallExpression(o,n.optionalChainMember)}));if(d.node)return d.error&&(this.state=d.failState),d.node}return e.prototype.parseSubscript.call(this,t,r,a,n)},r.parseNewCallee=function(t){var r=this;e.prototype.parseNewCallee.call(this,t);var a=null;this.shouldParseTypes()&&this.match(47)&&(a=this.tryParse((function(){return r.flowParseTypeParameterInstantiationCallOrNew()})).node),t.typeArguments=a},r.parseAsyncArrowWithTypeParameters=function(t){var r=this.startNodeAt(t);if(this.parseFunctionParams(r,!1),this.parseArrow(r))return e.prototype.parseArrowExpression.call(this,r,void 0,!0)},r.readToken_mult_modulo=function(t){var r=this.input.charCodeAt(this.state.pos+1);if(42===t&&47===r&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();e.prototype.readToken_mult_modulo.call(this,t)},r.readToken_pipe_amp=function(t){var r=this.input.charCodeAt(this.state.pos+1);124!==t||125!==r?e.prototype.readToken_pipe_amp.call(this,t):this.finishOp(9,2)},r.parseTopLevel=function(t,r){var a=e.prototype.parseTopLevel.call(this,t,r);return this.state.hasFlowComment&&this.raise(hT.UnterminatedFlowComment,this.state.curPosition()),a},r.skipBlockComment=function(){if(!this.hasPlugin("flowComments")||!this.skipFlowComment())return e.prototype.skipBlockComment.call(this,this.state.hasFlowComment?"*-/":"*/");if(this.state.hasFlowComment)throw this.raise(hT.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();var t=this.skipFlowComment();t&&(this.state.pos+=t,this.state.hasFlowComment=!0)},r.skipFlowComment=function(){for(var e=this.state.pos,t=2;[32,9].includes(this.input.charCodeAt(e+t));)t++;var r=this.input.charCodeAt(t+e),a=this.input.charCodeAt(t+e+1);return 58===r&&58===a?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===r&&58!==a&&t},r.hasFlowCommentCompletion=function(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(jR.UnterminatedComment,this.state.curPosition())},r.flowEnumErrorBooleanMemberNotInitialized=function(e,t){var r=t.enumName,a=t.memberName;this.raise(hT.EnumBooleanMemberNotInitialized,e,{memberName:a,enumName:r})},r.flowEnumErrorInvalidMemberInitializer=function(e,t){return this.raise(t.explicitType?"symbol"===t.explicitType?hT.EnumInvalidMemberInitializerSymbolType:hT.EnumInvalidMemberInitializerPrimaryType:hT.EnumInvalidMemberInitializerUnknownType,e,t)},r.flowEnumErrorNumberMemberNotInitialized=function(e,t){this.raise(hT.EnumNumberMemberNotInitialized,e,t)},r.flowEnumErrorStringMemberInconsistentlyInitialized=function(e,t){this.raise(hT.EnumStringMemberInconsistentlyInitialized,e,t)},r.flowEnumMemberInit=function(){var e=this,t=this.state.startLoc,r=function(){return e.match(12)||e.match(8)};switch(this.state.type){case 135:var a=this.parseNumericLiteral(this.state.value);return r()?{type:"number",loc:a.loc.start,value:a}:{type:"invalid",loc:t};case 134:var n=this.parseStringLiteral(this.state.value);return r()?{type:"string",loc:n.loc.start,value:n}:{type:"invalid",loc:t};case 85:case 86:var s=this.parseBooleanLiteral(this.match(85));return r()?{type:"boolean",loc:s.loc.start,value:s}:{type:"invalid",loc:t};default:return{type:"invalid",loc:t}}},r.flowEnumMemberRaw=function(){var e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}},r.flowEnumCheckExplicitTypeMismatch=function(e,t,r){var a=t.explicitType;null!==a&&a!==r&&this.flowEnumErrorInvalidMemberInitializer(e,t)},r.flowEnumMembers=function(e){for(var t=e.enumName,r=e.explicitType,a=new Set,n={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},s=!1;!this.match(8);){if(this.eat(21)){s=!0;break}var i=this.startNode(),o=this.flowEnumMemberRaw(),d=o.id,c=o.init,l=d.name;if(""!==l){/^[a-z]/.test(l)&&this.raise(hT.EnumInvalidMemberName,d,{memberName:l,suggestion:l[0].toUpperCase()+l.slice(1),enumName:t}),a.has(l)&&this.raise(hT.EnumDuplicateMemberName,d,{memberName:l,enumName:t}),a.add(l);var u={enumName:t,explicitType:r,memberName:l};switch(i.id=d,c.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(c.loc,u,"boolean"),i.init=c.value,n.booleanMembers.push(this.finishNode(i,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(c.loc,u,"number"),i.init=c.value,n.numberMembers.push(this.finishNode(i,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(c.loc,u,"string"),i.init=c.value,n.stringMembers.push(this.finishNode(i,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(c.loc,u);case"none":switch(r){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(c.loc,u);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(c.loc,u);break;default:n.defaultedMembers.push(this.finishNode(i,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}}return{members:n,hasUnknownMembers:s}},r.flowEnumStringMembers=function(e,t,r){var a=r.enumName;if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(var n=0;n=f){for(var g=0,m=o.defaultedMembers;g=f){for(var y=0,b=o.defaultedMembers;y",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",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",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",times:"\xd7",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",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",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",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",frasl:"\u2044",euro:"\u20ac",image:"\u2111",weierp:"\u2118",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",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",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",lang:"\u2329",rang:"\u232a",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},ST=AR(RT||(RT=A(["jsx"])))({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:function(e){return"Expected corresponding JSX closing tag for <"+e.openingTagName+">."},MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:function(e){var t=e.unexpected;return"Unexpected token `"+t+"`. Did you mean `"+e.HTMLEntity+"` or `{'"+t+"'}`?"},UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"});function AT(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function jT(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return jT(e.object)+"."+jT(e.property);throw new Error("Node had unexpected type: "+e.type)}var _T,CT=function(e){return function(e){function t(){return e.apply(this,arguments)||this}g(t,e);var r=t.prototype;return r.jsxReadToken=function(){for(var t="",r=this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(ST.UnterminatedJsxContent,this.state.startLoc);var a=this.input.charCodeAt(this.state.pos);switch(a){case 60:case 123:return this.state.pos===this.state.start?void(60===a&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):e.prototype.getTokenFromCode.call(this,a)):(t+=this.input.slice(r,this.state.pos),void this.finishToken(142,t));case 38:t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos;break;default:BE(a)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!0),r=this.state.pos):++this.state.pos}}},r.jsxReadNewLine=function(e){var t,r=this.input.charCodeAt(this.state.pos);return++this.state.pos,13===r&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(r),++this.state.curLine,this.state.lineStart=this.state.pos,t},r.jsxReadString=function(e){for(var t="",r=++this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(jR.UnterminatedString,this.state.startLoc);var a=this.input.charCodeAt(this.state.pos);if(a===e)break;38===a?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos):BE(a)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}t+=this.input.slice(r,this.state.pos++),this.finishToken(134,t)},r.jsxReadEntity=function(){var e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;var t=10;120===this.codePointAtPos(this.state.pos)&&(t=16,++this.state.pos);var r=this.readInt(t,void 0,!1,"bail");if(null!==r&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(r)}else{for(var a=0,n=!1;a++<10&&this.state.pos1)for(var a=0;a0?!(a&wE.FLAG_TS_ENUM)||!!(a&wE.FLAG_TS_CONST_ENUM)!==(4&n)>0:a&wE.FLAG_CLASS&&(8&n)>0?!!(t.names.get(r)&AE.Lexical)&&!!(a&wE.KIND_VALUE):!!(a&wE.KIND_TYPE&&(1&n)>0)||e.prototype.isRedeclaredInScope.call(this,t,r,a)},r.checkLocalExport=function(t){var r=t.name;if(!this.hasImport(r)){for(var a=this.scopeStack.length-1;a>=0;a--){var n=this.scopeStack[a].tsNames.get(r);if((1&n)>0||(16&n)>0)return}e.prototype.checkLocalExport.call(this,t)}},u(t)}(_E),DT=function(e){return"ParenthesizedExpression"===e.type?DT(e.expression):e},IT={ALLOW_EMPTY:1,IS_FUNCTION_PARAMS:2,IS_CONSTRUCTOR_PARAMS:4},NT=function(e){function t(){return e.apply(this,arguments)||this}g(t,e);var r=t.prototype;return r.toAssignable=function(e,t){var r,a;void 0===t&&(t=!1);var n=void 0;switch(("ParenthesizedExpression"===e.type||null!=(r=e.extra)&&r.parenthesized)&&(n=DT(e),t?"Identifier"===n.type?this.expressionScope.recordArrowParameterBindingError(jR.InvalidParenthesizedAssignment,e):"MemberExpression"===n.type||this.isOptionalMemberExpression(n)||this.raise(jR.InvalidParenthesizedAssignment,e):this.raise(jR.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";for(var s=0,i=e.properties.length,o=i-1;s() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:function(e){var t=e.typeParameterName;return"Single type parameter "+t+" should have a trailing comma. Example usage: <"+t+",>."},StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:function(e){return"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got "+e.type+"."}});function LT(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function MT(e){return"private"===e||"public"===e||"protected"===e}function UT(e){return"in"===e||"out"===e}var HT,GT=function(e){return function(e){function t(){for(var t,r=arguments.length,a=new Array(r),n=0;n0&&(this.raise(jR.BadGetterArity,this.state.curPosition()),this.isThisParam(a[n][0])&&this.raise(BT.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===a.kind){if(1!==a[n].length)this.raise(jR.BadSetterArity,this.state.curPosition());else{var i=a[n][0];this.isThisParam(i)&&this.raise(BT.AccessorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===i.type&&i.optional&&this.raise(BT.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===i.type&&this.raise(BT.SetAccessorCannotHaveRestParameter,this.state.curPosition())}a[s]&&this.raise(BT.SetAccessorCannotHaveReturnType,a[s])}else a.kind="method";return this.finishNode(a,"TSMethodSignature")}var o=r;t&&(o.readonly=!0);var d=this.tsTryParseTypeAnnotation();return d&&(o.typeAnnotation=d),this.tsParseTypeMemberSemicolon(),this.finishNode(o,"TSPropertySignature")},r.tsParseTypeMember=function(){var t=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",t);if(this.match(77)){var r=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",t):(t.key=this.createIdentifier(r,"new"),this.tsParsePropertyOrMethodSignature(t,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},t);var a=this.tsTryParseIndexSignature(t);return a||(e.prototype.parsePropertyName.call(this,t),t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||!this.tsTokenCanFollowModifier()||(t.kind=t.key.name,e.prototype.parsePropertyName.call(this,t)),this.tsParsePropertyOrMethodSignature(t,!!t.readonly))},r.tsParseTypeLiteral=function(){var e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")},r.tsParseObjectTypeMembers=function(){this.expect(5);var e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e},r.tsIsStartOfMappedType=function(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))},r.tsParseMappedType=function(){var e=this.startNode();this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0);var t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsExpectThenParseType(58),e.typeParameter=this.finishNode(t,"TSTypeParameter"),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")},r.tsParseTupleType=function(){var e=this,t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);var r=!1;return t.elementTypes.forEach((function(t){var a=t.type;!r||"TSRestType"===a||"TSOptionalType"===a||"TSNamedTupleMember"===a&&t.optional||e.raise(BT.OptionalTypeBeforeRequired,t),r||(r="TSNamedTupleMember"===a&&t.optional||"TSOptionalType"===a)})),this.finishNode(t,"TSTupleType")},r.tsParseTupleElementType=function(){var e,t,r,a,n,s=this.state.startLoc,i=this.eat(21),o=rE(this.state.type)?this.lookaheadCharCode():null;if(58===o)e=!0,r=!1,t=this.parseIdentifier(!0),this.expect(14),a=this.tsParseType();else if(63===o){r=!0;var d=this.state.startLoc,c=this.state.value,l=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(e=!0,t=this.createIdentifier(this.startNodeAt(d),c),this.expect(17),this.expect(14),a=this.tsParseType()):(e=!1,a=l,this.expect(17))}else a=this.tsParseType(),r=this.eat(17),e=this.eat(14);if(e)t?((n=this.startNodeAtNode(t)).optional=r,n.label=t,n.elementType=a,this.eat(17)&&(n.optional=!0,this.raise(BT.TupleOptionalAfterType,this.state.lastTokStartLoc))):((n=this.startNodeAtNode(a)).optional=r,this.raise(BT.InvalidTupleMemberLabel,a),n.label=a,n.elementType=this.tsParseType()),a=this.finishNode(n,"TSNamedTupleMember");else if(r){var u=this.startNodeAtNode(a);u.typeAnnotation=a,a=this.finishNode(u,"TSOptionalType")}if(i){var p=this.startNodeAt(s);p.typeAnnotation=a,a=this.finishNode(p,"TSRestType")}return a},r.tsParseParenthesizedType=function(){var e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")},r.tsParseFunctionOrConstructorType=function(e,t){var r=this,a=this.startNode();return"TSConstructorType"===e&&(a.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((function(){return r.tsFillSignature(19,a)})),this.finishNode(a,e)},r.tsParseLiteralTypeNode=function(){var t=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:t.literal=e.prototype.parseExprAtom.call(this);break;default:this.unexpected()}return this.finishNode(t,"TSLiteralType")},r.tsParseTemplateLiteralType=function(){var t=this.startNode();return t.literal=e.prototype.parseTemplate.call(this,!1),this.finishNode(t,"TSLiteralType")},r.parseTemplateSubstitution=function(){return this.state.inType?this.tsParseType():e.prototype.parseTemplateSubstitution.call(this)},r.tsParseThisTypeOrThisTypePredicate=function(){var e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e},r.tsParseNonArrayType=function(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){var e=this.startNode(),t=this.lookahead();return 135!==t.type&&136!==t.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:var r=this.state.type;if(eE(r)||88===r||84===r){var a=88===r?"TSVoidKeyword":84===r?"TSNullKeyword":LT(this.state.value);if(void 0!==a&&46!==this.lookaheadCharCode()){var n=this.startNode();return this.next(),this.finishNode(n,a)}return this.tsParseTypeReference()}}this.unexpected()},r.tsParseArrayTypeOrHigher=function(){for(var e=this.tsParseNonArrayType();!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){var t=this.startNodeAtNode(e);t.elementType=e,this.expect(3),e=this.finishNode(t,"TSArrayType")}else{var r=this.startNodeAtNode(e);r.objectType=e,r.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(r,"TSIndexedAccessType")}return e},r.tsParseTypeOperator=function(){var e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")},r.tsCheckTypeAnnotationForReadOnly=function(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(BT.UnexpectedReadonly,e)}},r.tsParseInferType=function(){var e=this,t=this.startNode();this.expectContextual(115);var r=this.startNode();return r.name=this.tsParseTypeParameterName(),r.constraint=this.tsTryParse((function(){return e.tsParseConstraintForInferType()})),t.typeParameter=this.finishNode(r,"TSTypeParameter"),this.finishNode(t,"TSInferType")},r.tsParseConstraintForInferType=function(){var e=this;if(this.eat(81)){var t=this.tsInDisallowConditionalTypesContext((function(){return e.tsParseType()}));if(this.state.inDisallowConditionalTypesContext||!this.match(17))return t}},r.tsParseTypeOperatorOrHigher=function(){var e=this;return fE(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext((function(){return e.tsParseArrayTypeOrHigher()}))},r.tsParseUnionOrIntersectionType=function(e,t,r){var a=this.startNode(),n=this.eat(r),s=[];do{s.push(t())}while(this.eat(r));return 1!==s.length||n?(a.types=s,this.finishNode(a,e)):s[0]},r.tsParseIntersectionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)},r.tsParseUnionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)},r.tsIsStartOfFunctionType=function(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))},r.tsSkipParameterStart=function(){if(eE(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){var t=this.state.errors,r=t.length;try{return this.parseObjectLike(8,!0),t.length===r}catch(s){return!1}}if(this.match(0)){this.next();var a=this.state.errors,n=a.length;try{return e.prototype.parseBindingList.call(this,3,93,IT.ALLOW_EMPTY),a.length===n}catch(i){return!1}}return!1},r.tsIsUnambiguouslyStartOfFunctionType=function(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)&&(this.next(),this.match(19)))return!0}return!1},r.tsParseTypeOrTypePredicateAnnotation=function(e){var t=this;return this.tsInType((function(){var r=t.startNode();t.expect(e);var a=t.startNode(),n=!!t.tsTryParse(t.tsParseTypePredicateAsserts.bind(t));if(n&&t.match(78)){var s=t.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===s.type?(a.parameterName=s,a.asserts=!0,a.typeAnnotation=null,s=t.finishNode(a,"TSTypePredicate")):(t.resetStartLocationFromNode(s,a),s.asserts=!0),r.typeAnnotation=s,t.finishNode(r,"TSTypeAnnotation")}var i=t.tsIsIdentifier()&&t.tsTryParse(t.tsParseTypePredicatePrefix.bind(t));if(!i)return n?(a.parameterName=t.parseIdentifier(),a.asserts=n,a.typeAnnotation=null,r.typeAnnotation=t.finishNode(a,"TSTypePredicate"),t.finishNode(r,"TSTypeAnnotation")):t.tsParseTypeAnnotation(!1,r);var o=t.tsParseTypeAnnotation(!1);return a.parameterName=i,a.typeAnnotation=o,a.asserts=n,r.typeAnnotation=t.finishNode(a,"TSTypePredicate"),t.finishNode(r,"TSTypeAnnotation")}))},r.tsTryParseTypeOrTypePredicateAnnotation=function(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)},r.tsTryParseTypeAnnotation=function(){if(this.match(14))return this.tsParseTypeAnnotation()},r.tsTryParseType=function(){return this.tsEatThenParseType(14)},r.tsParseTypePredicatePrefix=function(){var e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e},r.tsParseTypePredicateAsserts=function(){if(109!==this.state.type)return!1;var e=this.state.containsEsc;return this.next(),!(!eE(this.state.type)&&!this.match(78))&&(e&&this.raise(jR.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)},r.tsParseTypeAnnotation=function(e,t){var r=this;return void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),this.tsInType((function(){e&&r.expect(14),t.typeAnnotation=r.tsParseType()})),this.finishNode(t,"TSTypeAnnotation")},r.tsParseType=function(){var e=this;FT(this.state.inType);var t=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return t;var r=this.startNodeAtNode(t);return r.checkType=t,r.extendsType=this.tsInDisallowConditionalTypesContext((function(){return e.tsParseNonConditionalType()})),this.expect(17),r.trueType=this.tsInAllowConditionalTypesContext((function(){return e.tsParseType()})),this.expect(14),r.falseType=this.tsInAllowConditionalTypesContext((function(){return e.tsParseType()})),this.finishNode(r,"TSConditionalType")},r.isAbstractConstructorSignature=function(){return this.isContextual(124)&&77===this.lookahead().type},r.tsParseNonConditionalType=function(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()},r.tsParseTypeAssertion=function(){var e=this;this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(BT.ReservedTypeAssertion,this.state.startLoc);var t=this.startNode();return t.typeAnnotation=this.tsInType((function(){return e.next(),e.match(75)?e.tsParseTypeReference():e.tsParseType()})),this.expect(48),t.expression=this.parseMaybeUnary(),this.finishNode(t,"TSTypeAssertion")},r.tsParseHeritageClause=function(e){var t=this,r=this.state.startLoc,a=this.tsParseDelimitedList("HeritageClauseElement",(function(){var e=t.startNode();return e.expression=t.tsParseEntityName(),t.match(47)&&(e.typeParameters=t.tsParseTypeArguments()),t.finishNode(e,"TSExpressionWithTypeArguments")}));return a.length||this.raise(BT.EmptyHeritageClauseType,r,{token:e}),a},r.tsParseInterfaceDeclaration=function(e,t){if(void 0===t&&(t={}),this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),eE(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,wE.TYPE_TS_INTERFACE)):(e.id=null,this.raise(BT.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));var r=this.startNode();return r.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(r,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")},r.tsParseTypeAliasDeclaration=function(e){var t=this;return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,wE.TYPE_TS_TYPE),e.typeAnnotation=this.tsInType((function(){if(e.typeParameters=t.tsTryParseTypeParameters(t.tsParseInOutModifiers),t.expect(29),t.isContextual(114)&&16!==t.lookahead().type){var r=t.startNode();return t.next(),t.finishNode(r,"TSIntrinsicKeyword")}return t.tsParseType()})),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")},r.tsInNoContext=function(e){var t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}},r.tsInType=function(e){var t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}},r.tsInDisallowConditionalTypesContext=function(e){var t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}},r.tsInAllowConditionalTypesContext=function(e){var t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}},r.tsEatThenParseType=function(e){if(this.match(e))return this.tsNextThenParseType()},r.tsExpectThenParseType=function(e){var t=this;return this.tsInType((function(){return t.expect(e),t.tsParseType()}))},r.tsNextThenParseType=function(){var e=this;return this.tsInType((function(){return e.next(),e.tsParseType()}))},r.tsParseEnumMember=function(){var t=this.startNode();return t.id=this.match(134)?e.prototype.parseStringLiteral.call(this,this.state.value):this.parseIdentifier(!0),this.eat(29)&&(t.initializer=e.prototype.parseMaybeAssignAllowIn.call(this)),this.finishNode(t,"TSEnumMember")},r.tsParseEnumDeclaration=function(e,t){return void 0===t&&(t={}),t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?wE.TYPE_TS_CONST_ENUM:wE.TYPE_TS_ENUM),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")},r.tsParseModuleBlock=function(){var t=this.startNode();return this.scope.enter(TE.OTHER),this.expect(5),e.prototype.parseBlockOrModuleBlockBody.call(this,t.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(t,"TSModuleBlock")},r.tsParseModuleOrNamespaceDeclaration=function(e,t){if(void 0===t&&(t=!1),e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,wE.TYPE_TS_NAMESPACE),this.eat(16)){var r=this.startNode();this.tsParseModuleOrNamespaceDeclaration(r,!0),e.body=r}else this.scope.enter(TE.TS_MODULE),this.prodParam.enter(aT.PARAM),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")},r.tsParseAmbientExternalModuleDeclaration=function(t){return this.isContextual(112)?(t.kind="global",t.global=!0,t.id=this.parseIdentifier()):this.match(134)?(t.kind="module",t.id=e.prototype.parseStringLiteral.call(this,this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(TE.TS_MODULE),this.prodParam.enter(aT.PARAM),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(t,"TSModuleDeclaration")},r.tsParseImportEqualsDeclaration=function(e,t,r){e.isExport=r||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,wE.TYPE_TS_VALUE_IMPORT),this.expect(29);var a=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==a.type&&this.raise(BT.ImportAliasHasImportType,a),e.moduleReference=a,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")},r.tsIsExternalModuleReference=function(){return this.isContextual(119)&&40===this.lookaheadCharCode()},r.tsParseModuleReference=function(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)},r.tsParseExternalModuleReference=function(){var t=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),t.expression=e.prototype.parseExprAtom.call(this),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(t,"TSExternalModuleReference")},r.tsLookAhead=function(e){var t=this.state.clone(),r=e();return this.state=t,r},r.tsTryParseAndCatch=function(e){var t=this.tryParse((function(t){return e()||t()}));if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node},r.tsTryParse=function(e){var t=this.state.clone(),r=e();if(void 0!==r&&!1!==r)return r;this.state=t},r.tsTryParseDeclare=function(t){var r=this;if(!this.isLineTerminator()){var a,n=this.state.type;return this.isContextual(100)&&(n=74,a="let"),this.tsInAmbientContext((function(){switch(n){case 68:return t.declare=!0,e.prototype.parseFunctionStatement.call(r,t,!1,!1);case 80:return t.declare=!0,r.parseClass(t,!0,!1);case 126:return r.tsParseEnumDeclaration(t,{declare:!0});case 112:return r.tsParseAmbientExternalModuleDeclaration(t);case 75:case 74:return r.match(75)&&r.isLookaheadContextual("enum")?(r.expect(75),r.tsParseEnumDeclaration(t,{const:!0,declare:!0})):(t.declare=!0,r.parseVarStatement(t,a||r.state.value,!0));case 129:var s=r.tsParseInterfaceDeclaration(t,{declare:!0});if(s)return s;default:if(eE(n))return r.tsParseDeclaration(t,r.state.value,!0,null)}}))}},r.tsTryParseExportDeclaration=function(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)},r.tsParseExpressionStatement=function(e,t,r){switch(t.name){case"declare":var a=this.tsTryParseDeclare(e);return a&&(a.declare=!0),a;case"global":if(this.match(5)){this.scope.enter(TE.TS_MODULE),this.prodParam.enter(aT.PARAM);var n=e;return n.kind="global",n.global=!0,n.id=t,n.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(n,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1,r)}},r.tsParseDeclaration=function(e,t,r,a){switch(t){case"abstract":if(this.tsCheckLineTerminator(r)&&(this.match(80)||eE(this.state.type)))return this.tsParseAbstractDeclaration(e,a);break;case"module":if(this.tsCheckLineTerminator(r)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);if(eE(this.state.type))return e.kind="module",this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(r)&&eE(this.state.type))return e.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(r)&&eE(this.state.type))return this.tsParseTypeAliasDeclaration(e)}},r.tsCheckLineTerminator=function(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()},r.tsTryParseGenericAsyncArrowFunction=function(t){var r=this;if(this.match(47)){var a=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;var n=this.tsTryParseAndCatch((function(){var a=r.startNodeAt(t);return a.typeParameters=r.tsParseTypeParameters(r.tsParseConstModifier),e.prototype.parseFunctionParams.call(r,a),a.returnType=r.tsTryParseTypeOrTypePredicateAnnotation(),r.expect(19),a}));if(this.state.maybeInArrowParameters=a,n)return e.prototype.parseArrowExpression.call(this,n,null,!0)}},r.tsParseTypeArgumentsInExpression=function(){if(47===this.reScan_lt())return this.tsParseTypeArguments()},r.tsParseTypeArguments=function(){var e=this,t=this.startNode();return t.params=this.tsInType((function(){return e.tsInNoContext((function(){return e.expect(47),e.tsParseDelimitedList("TypeParametersOrArguments",e.tsParseType.bind(e))}))})),0===t.params.length?this.raise(BT.EmptyTypeArguments,t):this.state.inType||this.curContext()!==IR.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(t,"TSTypeParameterInstantiation")},r.tsIsDeclarationStart=function(){return gE(this.state.type)},r.isExportDefaultSpecifier=function(){return!this.tsIsDeclarationStart()&&e.prototype.isExportDefaultSpecifier.call(this)},r.parseAssignableListItem=function(e,t){var r=this.state.startLoc,a={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},a);var n=a.accessibility,s=a.override,i=a.readonly;e&IT.IS_CONSTRUCTOR_PARAMS||!(n||i||s)||this.raise(BT.UnexpectedParameterModifier,r);var o=this.parseMaybeDefault();e&IT.IS_FUNCTION_PARAMS&&this.parseFunctionParamType(o);var d=this.parseMaybeDefault(o.loc.start,o);if(n||i||s){var c=this.startNodeAt(r);return t.length&&(c.decorators=t),n&&(c.accessibility=n),i&&(c.readonly=i),s&&(c.override=s),"Identifier"!==d.type&&"AssignmentPattern"!==d.type&&this.raise(BT.UnsupportedParameterPropertyKind,c),c.parameter=d,this.finishNode(c,"TSParameterProperty")}return t.length&&(o.decorators=t),d},r.isSimpleParameter=function(t){return"TSParameterProperty"===t.type&&e.prototype.isSimpleParameter.call(this,t.parameter)||e.prototype.isSimpleParameter.call(this,t)},r.tsDisallowOptionalPattern=function(e){for(var t=0,r=e.params;ta&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(n=this.isContextual(120)))){var i=this.startNodeAt(r);return i.expression=t,i.typeAnnotation=this.tsInType((function(){return s.next(),s.match(75)?(n&&s.raise(jR.UnexpectedKeyword,s.state.startLoc,{keyword:"const"}),s.tsParseTypeReference()):s.tsParseType()})),this.finishNode(i,n?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(i,r,a)}return e.prototype.parseExprOp.call(this,t,r,a)},r.checkReservedWord=function(t,r,a,n){this.state.isAmbientContext||e.prototype.checkReservedWord.call(this,t,r,a,n)},r.checkImportReflection=function(t){e.prototype.checkImportReflection.call(this,t),t.module&&"value"!==t.importKind&&this.raise(BT.ImportReflectionHasImportType,t.specifiers[0].loc.start)},r.checkDuplicateExports=function(){},r.isPotentialImportPhase=function(t){if(e.prototype.isPotentialImportPhase.call(this,t))return!0;if(this.isContextual(130)){var r=this.lookaheadCharCode();return t?123===r||42===r:61!==r}return!t&&this.isContextual(87)},r.applyImportPhase=function(t,r,a,n){e.prototype.applyImportPhase.call(this,t,r,a,n),r?t.exportKind="type"===a?"type":"value":t.importKind="type"===a||"typeof"===a?a:"value"},r.parseImport=function(t){if(this.match(134))return t.importKind="value",e.prototype.parseImport.call(this,t);var r;if(eE(this.state.type)&&61===this.lookaheadCharCode())return t.importKind="value",this.tsParseImportEqualsDeclaration(t);if(this.isContextual(130)){var a=this.parseMaybeImportPhase(t,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(t,a);r=e.prototype.parseImportSpecifiersAndAfter.call(this,t,a)}else r=e.prototype.parseImport.call(this,t);return"type"===r.importKind&&r.specifiers.length>1&&"ImportDefaultSpecifier"===r.specifiers[0].type&&this.raise(BT.TypeImportCannotSpecifyDefaultAndNamed,r),r},r.parseExport=function(t,r){if(this.match(83)){this.next();var a=t,n=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(a,!1):a.importKind="value",this.tsParseImportEqualsDeclaration(a,n,!0)}if(this.eat(29)){var s=t;return s.expression=e.prototype.parseExpression.call(this),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(s,"TSExportAssignment")}if(this.eatContextual(93)){var i=t;return this.expectContextual(128),i.id=this.parseIdentifier(),this.semicolon(),this.finishNode(i,"TSNamespaceExportDeclaration")}return e.prototype.parseExport.call(this,t,r)},r.isAbstractClass=function(){return this.isContextual(124)&&80===this.lookahead().type},r.parseExportDefaultExpression=function(){if(this.isAbstractClass()){var t=this.startNode();return this.next(),t.abstract=!0,this.parseClass(t,!0,!0)}if(this.match(129)){var r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return e.prototype.parseExportDefaultExpression.call(this)},r.parseVarStatement=function(t,r,a){void 0===a&&(a=!1);var n=this.state.isAmbientContext,s=e.prototype.parseVarStatement.call(this,t,r,a||n);if(!n)return s;for(var i=0,o=s.declarations;i0))&&KT(e.object)}function WT(e,t){var r,a=e.type;if(null!=(r=e.extra)&&r.parenthesized)return!1;if(t){if("Literal"===a){var n=e.value;if("string"===typeof n||"boolean"===typeof n)return!0}}else if("StringLiteral"===a||"BooleanLiteral"===a)return!0;return!(!zT(e,t)&&!VT(e,t))||"TemplateLiteral"===a&&0===e.expressions.length||!!qT(e)}function zT(e,t){return t?"Literal"===e.type&&("number"===typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}function VT(e,t){if("UnaryExpression"===e.type){var r=e.operator,a=e.argument;if("-"===r&&zT(a,t))return!0}return!1}function KT(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&KT(e.object)}var YT=AR(HT||(HT=A(["placeholders"])))({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),XT=function(e){return function(e){function t(){return e.apply(this,arguments)||this}g(t,e);var r=t.prototype;return r.parsePlaceholder=function(t){if(this.match(133)){var r=this.startNode();return this.next(),this.assertNoSpace(),r.name=e.prototype.parseIdentifier.call(this,!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(r,t)}},r.finishPlaceholder=function(e,t){var r=e;return r.expectedNode&&r.type||(r=this.finishNode(r,"Placeholder")),r.expectedNode=t,r},r.getTokenFromCode=function(t){37===t&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(133,2):e.prototype.getTokenFromCode.call(this,t)},r.parseExprAtom=function(t){return this.parsePlaceholder("Expression")||e.prototype.parseExprAtom.call(this,t)},r.parseIdentifier=function(t){return this.parsePlaceholder("Identifier")||e.prototype.parseIdentifier.call(this,t)},r.checkReservedWord=function(t,r,a,n){void 0!==t&&e.prototype.checkReservedWord.call(this,t,r,a,n)},r.parseBindingAtom=function(){return this.parsePlaceholder("Pattern")||e.prototype.parseBindingAtom.call(this)},r.isValidLVal=function(t,r,a){return"Placeholder"===t||e.prototype.isValidLVal.call(this,t,r,a)},r.toAssignable=function(t,r){t&&"Placeholder"===t.type&&"Expression"===t.expectedNode?t.expectedNode="Pattern":e.prototype.toAssignable.call(this,t,r)},r.chStartsBindingIdentifier=function(t,r){return!!e.prototype.chStartsBindingIdentifier.call(this,t,r)||133===this.lookahead().type},r.verifyBreakContinue=function(t,r){t.label&&"Placeholder"===t.label.type||e.prototype.verifyBreakContinue.call(this,t,r)},r.parseExpressionStatement=function(t,r){var a;if("Placeholder"!==r.type||null!=(a=r.extra)&&a.parenthesized)return e.prototype.parseExpressionStatement.call(this,t,r);if(this.match(14)){var n=t;return n.label=this.finishPlaceholder(r,"Identifier"),this.next(),n.body=e.prototype.parseStatementOrSloppyAnnexBFunctionDeclaration.call(this),this.finishNode(n,"LabeledStatement")}this.semicolon();var s=t;return s.name=r.name,this.finishPlaceholder(s,"Statement")},r.parseBlock=function(t,r,a){return this.parsePlaceholder("BlockStatement")||e.prototype.parseBlock.call(this,t,r,a)},r.parseFunctionId=function(t){return this.parsePlaceholder("Identifier")||e.prototype.parseFunctionId.call(this,t)},r.parseClass=function(t,r,a){var n=r?"ClassDeclaration":"ClassExpression";this.next();var s=this.state.strict,i=this.parsePlaceholder("Identifier");if(i){if(!(this.match(81)||this.match(133)||this.match(5))){if(a||!r)return t.id=null,t.body=this.finishPlaceholder(i,"ClassBody"),this.finishNode(t,n);throw this.raise(YT.ClassNameIsRequired,this.state.startLoc)}t.id=i}else this.parseClassId(t,r,a);return e.prototype.parseClassSuper.call(this,t),t.body=this.parsePlaceholder("ClassBody")||e.prototype.parseClassBody.call(this,!!t.superClass,s),this.finishNode(t,n)},r.parseExport=function(t,r){var a=this.parsePlaceholder("Identifier");if(!a)return e.prototype.parseExport.call(this,t,r);var n=t;if(!this.isContextual(98)&&!this.match(12))return n.specifiers=[],n.source=null,n.declaration=this.finishPlaceholder(a,"Declaration"),this.finishNode(n,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");var s=this.startNode();return s.exported=a,n.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],e.prototype.parseExport.call(this,n,r)},r.isExportDefaultSpecifier=function(){if(this.match(65)){var t=this.nextTokenStart();if(this.isUnparsedContextual(t,"from")&&this.input.startsWith(mE(133),this.nextTokenStartSince(t+4)))return!0}return e.prototype.isExportDefaultSpecifier.call(this)},r.maybeParseExportDefaultSpecifier=function(t,r){var a;return!(null==(a=t.specifiers)||!a.length)||e.prototype.maybeParseExportDefaultSpecifier.call(this,t,r)},r.checkExport=function(t){var r=t.specifiers;null!=r&&r.length&&(t.specifiers=r.filter((function(e){return"Placeholder"===e.exported.type}))),e.prototype.checkExport.call(this,t),t.specifiers=r},r.parseImport=function(t){var r=this.parsePlaceholder("Identifier");if(!r)return e.prototype.parseImport.call(this,t);if(t.specifiers=[],!this.isContextual(98)&&!this.match(12))return t.source=this.finishPlaceholder(r,"StringLiteral"),this.semicolon(),this.finishNode(t,"ImportDeclaration");var a=this.startNodeAtNode(r);return a.local=r,t.specifiers.push(this.finishNode(a,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(t)||this.parseNamedImportSpecifiers(t)),this.expectContextual(98),t.source=this.parseImportSource(),this.semicolon(),this.finishNode(t,"ImportDeclaration")},r.parseImportSource=function(){return this.parsePlaceholder("StringLiteral")||e.prototype.parseImportSource.call(this)},r.assertNoSpace=function(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(YT.UnexpectedSpace,this.state.lastTokEndLoc)},u(t)}(e)},JT=function(e){return function(e){function t(){return e.apply(this,arguments)||this}g(t,e);var r=t.prototype;return r.parseV8Intrinsic=function(){if(this.match(54)){var e=this.state.startLoc,t=this.startNode();if(this.next(),eE(this.state.type)){var r=this.parseIdentifierName(),a=this.createIdentifier(t,r);if(a.type="V8IntrinsicIdentifier",this.match(10))return a}this.unexpected(e)}},r.parseExprAtom=function(t){return this.parseV8Intrinsic()||e.prototype.parseExprAtom.call(this,t)},u(t)}(e)},QT=["minimal","fsharp","hack","smart"],$T=["^^","@@","^","%","#"];function ZT(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");var t=e.get("decorators").decoratorsBeforeExport;if(null!=t&&"boolean"!==typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");var r=e.get("decorators").allowCallParenthesized;if(null!=r&&"boolean"!==typeof r)throw new Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){var a,n=e.get("pipelineOperator").proposal;if(!QT.includes(n)){var s=QT.map((function(e){return'"'+e+'"'})).join(", ");throw new Error('"pipelineOperator" requires "proposal" option whose value must be one of: '+s+".")}var i="hash"===(null==(a=e.get("recordAndTuple"))?void 0:a.syntaxType);if("hack"===n){if(e.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");var o=e.get("pipelineOperator").topicToken;if(!$T.includes(o)){var d=$T.map((function(e){return'"'+e+'"'})).join(", ");throw new Error('"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: '+d+".")}if("#"===o&&i)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `'+JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])+"`.")}else if("smart"===n&&i)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `'+JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])+"`.")}if(e.has("moduleAttributes")){if(e.has("deprecatedImportAssert")||e.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if("may-2020"!==e.get("moduleAttributes").version)throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(e.has("importAssertions")&&e.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(!e.has("deprecatedImportAssert")&&e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax&&e.set("deprecatedImportAssert",{}),e.has("recordAndTuple")){var c=e.get("recordAndTuple").syntaxType;if(null!=c){var l=["hash","bar"];if(!l.includes(c))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+l.map((function(e){return"'"+e+"'"})).join(", "))}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){var u=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw u.missingPlugins="doExpressions",u}if(e.has("optionalChainingAssign")&&"2023-07"!==e.get("optionalChainingAssign").version)throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}var ew={estree:PR,jsx:CT,flow:TT,typescript:GT,v8intrinsic:JT,placeholders:XT},tw=Object.keys(ew);function rw(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function aw(e){var t=rw();if(null==e)return t;if(null!=e.annexB&&!1!==e.annexB)throw new Error("The `annexB` option can only be set to `false`.");for(var r=0,a=Object.keys(t);r0?t.startIndex=t.startColumn:null==e.startColumn&&t.startIndex>0&&(t.startColumn=t.startIndex);else if((null==e.startColumn||null==e.startIndex)&&null!=e.startIndex)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");return t}var nw=function(e){function t(){return e.apply(this,arguments)||this}g(t,e);var r=t.prototype;return r.checkProto=function(e,t,r,a){if(!("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)){var n=e.key;if("__proto__"===("Identifier"===n.type?n.name:n.value)){if(t)return void this.raise(jR.RecordNoProto,n);r.used&&(a?null===a.doubleProtoLoc&&(a.doubleProtoLoc=n.loc.start):this.raise(jR.DuplicateProto,n)),r.used=!0}}},r.shouldExitDescending=function(e,t){return"ArrowFunctionExpression"===e.type&&this.offsetToSourcePos(e.start)===t},r.getExpression=function(){this.enterInitialScopes(),this.nextToken();var e=this.parseExpression();return this.match(140)||this.unexpected(),this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.options.tokens&&(e.tokens=this.tokens),e},r.parseExpression=function(e,t){var r=this;return e?this.disallowInAnd((function(){return r.parseExpressionBase(t)})):this.allowInAnd((function(){return r.parseExpressionBase(t)}))},r.parseExpressionBase=function(e){var t=this.state.startLoc,r=this.parseMaybeAssign(e);if(this.match(12)){var a=this.startNodeAt(t);for(a.expressions=[r];this.eat(12);)a.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(a.expressions),this.finishNode(a,"SequenceExpression")}return r},r.parseMaybeAssignDisallowIn=function(e,t){var r=this;return this.disallowInAnd((function(){return r.parseMaybeAssign(e,t)}))},r.parseMaybeAssignAllowIn=function(e,t){var r=this;return this.allowInAnd((function(){return r.parseMaybeAssign(e,t)}))},r.setOptionalParametersError=function(e,t){var r;e.optionalParametersLoc=null!=(r=null==t?void 0:t.loc)?r:this.state.startLoc},r.parseMaybeAssign=function(e,t){var r,a=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){var n=this.parseYield();return t&&(n=t.call(this,n,a)),n}e?r=!1:(e=new oT,r=!0);var s=this.state.type;(10===s||eE(s))&&(this.state.potentialArrowAt=this.state.start);var i=this.parseMaybeConditional(e);if(t&&(i=t.call(this,i,a)),iE(this.state.type)){var o=this.startNodeAt(a),d=this.state.value;if(o.operator=d,this.match(29)){this.toAssignable(i,!0),o.left=i;var c=a.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=c&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=c&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=c&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null)}else o.left=i;return this.next(),o.right=this.parseMaybeAssign(),this.checkLVal(i,this.finishNode(o,"AssignmentExpression")),o}return r&&this.checkExpressionErrors(e,!0),i},r.parseMaybeConditional=function(e){var t=this.state.startLoc,r=this.state.potentialArrowAt,a=this.parseExprOps(e);return this.shouldExitDescending(a,r)?a:this.parseConditional(a,t,e)},r.parseConditional=function(e,t,r){if(this.eat(17)){var a=this.startNodeAt(t);return a.test=e,a.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),a.alternate=this.parseMaybeAssign(),this.finishNode(a,"ConditionalExpression")}return e},r.parseMaybeUnaryOrPrivate=function(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)},r.parseExprOps=function(e){var t=this.state.startLoc,r=this.state.potentialArrowAt,a=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(a,r)?a:this.parseExprOp(a,t,-1)},r.parseExprOp=function(e,t,r){if(this.isPrivateName(e)){var a=this.getPrivateNameSV(e);(r>=hE(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(jR.PrivateInExpectedIn,e,{identifierName:a}),this.classScope.usePrivateName(a,e.loc.start)}var n=this.state.type;if(lE(n)&&(this.prodParam.hasIn||!this.match(58))){var s=hE(n);if(s>r){if(39===n){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}var i=this.startNodeAt(t);i.left=e,i.operator=this.state.value;var o=41===n||42===n,d=40===n;if(d&&(s=hE(42)),this.next(),39===n&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(jR.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);i.right=this.parseExprOpRightExpr(n,s);var c=this.finishNode(i,o||d?"LogicalExpression":"BinaryExpression"),l=this.state.type;if(d&&(41===l||42===l)||o&&40===l)throw this.raise(jR.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(c,t,r)}}return e},r.parseExprOpRightExpr=function(e,t){var r=this,a=this.state.startLoc;if(39===e)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((function(){return r.parseHackPipeBody()}));case"smart":return this.withTopicBindingContext((function(){if(r.prodParam.hasYield&&r.isContextual(108))throw r.raise(jR.PipeBodyIsTighter,r.state.startLoc);return r.parseSmartPipelineBodyInStyle(r.parseExprOpBaseRightExpr(e,t),a)}));case"fsharp":return this.withSoloAwaitPermittingContext((function(){return r.parseFSharpPipelineBody(t)}))}return this.parseExprOpBaseRightExpr(e,t)},r.parseExprOpBaseRightExpr=function(e,t){var r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,yE(e)?t-1:t)},r.parseHackPipeBody=function(){var e,t=this.state.startLoc,r=this.parseMaybeAssign();return!RR.has(r.type)||null!=(e=r.extra)&&e.parenthesized||this.raise(jR.PipeUnparenthesizedBody,t,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(jR.PipeTopicUnused,t),r},r.checkExponentialAfterUnary=function(e){this.match(57)&&this.raise(jR.UnexpectedTokenUnaryExponentiation,e.argument)},r.parseMaybeUnary=function(e,t){var r=this.state.startLoc,a=this.isContextual(96);if(a&&this.recordAwaitIfAllowed()){this.next();var n=this.parseAwait(r);return t||this.checkExponentialAfterUnary(n),n}var s=this.match(34),i=this.startNode();if(pE(this.state.type)){i.operator=this.state.value,i.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");var o=this.match(89);if(this.next(),i.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&o){var d=i.argument;"Identifier"===d.type?this.raise(jR.StrictDelete,i):this.hasPropertyAsPrivateName(d)&&this.raise(jR.DeletePrivateField,i)}if(!s)return t||this.checkExponentialAfterUnary(i),this.finishNode(i,"UnaryExpression")}var c=this.parseUpdate(i,s,e);if(a){var l=this.state.type;if((this.hasPlugin("v8intrinsic")?sE(l):sE(l)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(jR.AwaitNotInAsyncContext,r),this.parseAwait(r)}return c},r.parseUpdate=function(e,t,r){if(t){var a=e;return this.checkLVal(a.argument,this.finishNode(a,"UpdateExpression")),e}var n=this.state.startLoc,s=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return s;for(;uE(this.state.type)&&!this.canInsertSemicolon();){var i=this.startNodeAt(n);i.operator=this.state.value,i.prefix=!1,i.argument=s,this.next(),this.checkLVal(s,s=this.finishNode(i,"UpdateExpression"))}return s},r.parseExprSubscripts=function(e){var t=this.state.startLoc,r=this.state.potentialArrowAt,a=this.parseExprAtom(e);return this.shouldExitDescending(a,r)?a:this.parseSubscripts(a,t)},r.parseSubscripts=function(e,t,r){var a={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,r,a),a.maybeAsyncArrow=!1}while(!a.stop);return e},r.parseSubscript=function(e,t,r,a){var n=this.state.type;if(!r&&15===n)return this.parseBind(e,t,r,a);if(bE(n))return this.parseTaggedTemplateExpression(e,t,a);var s=!1;if(18===n){if(r&&(this.raise(jR.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return a.stop=!0,e;a.optionalChainMember=s=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,a,s);var i=this.eat(0);return i||s||this.eat(16)?this.parseMember(e,t,a,i,s):(a.stop=!0,e)},r.parseMember=function(e,t,r,a,n){var s=this.startNodeAt(t);return s.object=e,s.computed=a,a?(s.property=this.parseExpression(),this.expect(3)):this.match(139)?("Super"===e.type&&this.raise(jR.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),r.optionalChainMember?(s.optional=n,this.finishNode(s,"OptionalMemberExpression")):this.finishNode(s,"MemberExpression")},r.parseBind=function(e,t,r,a){var n=this.startNodeAt(t);return n.object=e,this.next(),n.callee=this.parseNoCallExpr(),a.stop=!0,this.parseSubscripts(this.finishNode(n,"BindExpression"),t,r)},r.parseCoverCallAndAsyncArrowHead=function(e,t,r,a){var n=this.state.maybeInArrowParameters,s=null;this.state.maybeInArrowParameters=!0,this.next();var i=this.startNodeAt(t);i.callee=e;var o=r.maybeAsyncArrow,d=r.optionalChainMember;o&&(this.expressionScope.enter(tT()),s=new oT),d&&(i.optional=a),i.arguments=a?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Super"!==e.type,i,s);var c=this.finishCallExpression(i,d);return o&&this.shouldParseAsyncArrow()&&!a?(r.stop=!0,this.checkDestructuringPrivate(s),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),c)):(o&&(this.checkExpressionErrors(s,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=n,c},r.toReferencedArguments=function(e,t){this.toReferencedListDeep(e.arguments,t)},r.parseTaggedTemplateExpression=function(e,t,r){var a=this.startNodeAt(t);return a.tag=e,a.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(jR.OptionalChainingNoTemplate,t),this.finishNode(a,"TaggedTemplateExpression")},r.atPossibleAsyncArrow=function(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt},r.finishCallExpression=function(e,t){if("Import"===e.callee.type)if(0===e.arguments.length||e.arguments.length>2)this.raise(jR.ImportCallArity,e);else for(var r=0,a=e.arguments;r1?((t=this.startNodeAt(o)).expressions=d,this.finishNode(t,"SequenceExpression"),this.resetEndLocation(t,p)):t=d[0],this.wrapParenthesis(r,t))},r.wrapParenthesis=function(e,t){if(!this.options.createParenthesizedExpressions)return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;var r=this.startNodeAt(e);return r.expression=t,this.finishNode(r,"ParenthesizedExpression")},r.shouldParseArrow=function(e){return!this.canInsertSemicolon()},r.parseArrow=function(e){if(this.eat(19))return e},r.parseParenItem=function(e,t){return e},r.parseNewOrNewTarget=function(){var e=this.startNode();if(this.next(),this.match(16)){var t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();var r=this.parseMetaProperty(e,t,"target");return this.scope.inNonArrowFunction||this.scope.inClass||this.options.allowNewTargetOutsideFunction||this.raise(jR.UnexpectedNewTarget,r),r}return this.parseNew(e)},r.parseNew=function(e){if(this.parseNewCallee(e),this.eat(10)){var t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")},r.parseNewCallee=function(e){var t=this.match(83),r=this.parseNoCallExpr();e.callee=r,!t||"Import"!==r.type&&"ImportExpression"!==r.type||this.raise(jR.ImportCallNotNewExpression,r)},r.parseTemplateElement=function(e){var t=this.state,r=t.start,a=t.startLoc,n=t.end,s=t.value,i=r+1,o=this.startNodeAt(fR(a,1));null===s&&(e||this.raise(jR.InvalidEscapeSequenceTemplate,fR(this.state.firstInvalidTemplateEscapePos,1)));var d=this.match(24),c=d?-1:-2,l=n+c;o.value={raw:this.input.slice(i,l).replace(/\r\n?/g,"\n"),cooked:null===s?null:s.slice(1,c)},o.tail=d,this.next();var u=this.finishNode(o,"TemplateElement");return this.resetEndLocation(u,fR(this.state.lastTokEndLoc,c)),u},r.parseTemplate=function(e){for(var t=this.startNode(),r=this.parseTemplateElement(e),a=[r],n=[];!r.tail;)n.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),a.push(r=this.parseTemplateElement(e));return t.expressions=n,t.quasis=a,this.finishNode(t,"TemplateLiteral")},r.parseTemplateSubstitution=function(){return this.parseExpression()},r.parseObjectLike=function(e,t,r,a){r&&this.expectPlugin("recordAndTuple");var n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;var s=Object.create(null),i=!0,o=this.startNode();for(o.properties=[],this.next();!this.match(e);){if(i)i=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(o);break}var d=void 0;t?d=this.parseBindingProperty():(d=this.parsePropertyDefinition(a),this.checkProto(d,r,s,a)),r&&!this.isObjectProperty(d)&&"SpreadElement"!==d.type&&this.raise(jR.InvalidRecordProperty,d),d.shorthand&&this.addExtra(d,"shorthand",!0),o.properties.push(d)}this.next(),this.state.inFSharpPipelineDirectBody=n;var c="ObjectExpression";return t?c="ObjectPattern":r&&(c="RecordExpression"),this.finishNode(o,c)},r.addTrailingCommaExtraToNode=function(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)},r.maybeAsyncOrAccessorProp=function(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))},r.parsePropertyDefinition=function(e){var t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(jR.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());var r,a=this.startNode(),n=!1,s=!1;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(a.decorators=t,t=[]),a.method=!1,e&&(r=this.state.startLoc);var i=this.eat(55);this.parsePropertyNamePrefixOperator(a);var o=this.state.containsEsc;if(this.parsePropertyName(a,e),!i&&!o&&this.maybeAsyncOrAccessorProp(a)){var d=a.key,c=d.name;"async"!==c||this.hasPrecedingLineBreak()||(n=!0,this.resetPreviousNodeTrailingComments(d),i=this.eat(55),this.parsePropertyName(a)),"get"!==c&&"set"!==c||(s=!0,this.resetPreviousNodeTrailingComments(d),a.kind=c,this.match(55)&&(i=!0,this.raise(jR.AccessorIsGenerator,this.state.curPosition(),{kind:c}),this.next()),this.parsePropertyName(a))}return this.parseObjPropValue(a,r,i,n,!1,s,e)},r.getGetterSetterExpectedParamCount=function(e){return"get"===e.kind?0:1},r.getObjectOrClassMethodParams=function(e){return e.params},r.checkGetterSetterParams=function(e){var t,r=this.getGetterSetterExpectedParamCount(e),a=this.getObjectOrClassMethodParams(e);a.length!==r&&this.raise("get"===e.kind?jR.BadGetterArity:jR.BadSetterArity,e),"set"===e.kind&&"RestElement"===(null==(t=a[a.length-1])?void 0:t.type)&&this.raise(jR.BadSetterRestParameter,e)},r.parseObjectMethod=function(e,t,r,a,n){if(n){var s=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(s),s}if(r||t||this.match(10))return a&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")},r.parseObjectProperty=function(e,t,r,a){if(e.shorthand=!1,this.eat(14))return e.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(a),this.finishNode(e,"ObjectProperty");if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),r)e.value=this.parseMaybeDefault(t,uT(e.key));else if(this.match(29)){var n=this.state.startLoc;null!=a?null===a.shorthandAssignLoc&&(a.shorthandAssignLoc=n):this.raise(jR.InvalidCoverInitializedName,n),e.value=this.parseMaybeDefault(t,uT(e.key))}else e.value=uT(e.key);return e.shorthand=!0,this.finishNode(e,"ObjectProperty")}},r.parseObjPropValue=function(e,t,r,a,n,s,i){var o=this.parseObjectMethod(e,r,a,n,s)||this.parseObjectProperty(e,t,n,i);return o||this.unexpected(),o},r.parsePropertyName=function(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{var r,a=this.state,n=a.type,s=a.value;if(rE(n))r=this.parseIdentifier(!0);else switch(n){case 135:r=this.parseNumericLiteral(s);break;case 134:r=this.parseStringLiteral(s);break;case 136:r=this.parseBigIntLiteral(s);break;case 139:var i=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=i):this.raise(jR.UnexpectedPrivateField,i),r=this.parsePrivateName();break;default:if(137===n){r=this.parseDecimalLiteral(s);break}this.unexpected()}e.key=r,139!==n&&(e.computed=!1)}},r.initFunction=function(e,t){e.id=null,e.generator=!1,e.async=t},r.parseMethod=function(e,t,r,a,n,s,i){void 0===i&&(i=!1),this.initFunction(e,r),e.generator=t,this.scope.enter(TE.FUNCTION|TE.SUPER|(i?TE.CLASS:0)|(n?TE.DIRECT_SUPER:0)),this.prodParam.enter(sT(r,e.generator)),this.parseFunctionParams(e,a);var o=this.parseFunctionBodyAndFinish(e,s,!0);return this.prodParam.exit(),this.scope.exit(),o},r.parseArrayLike=function(e,t,r,a){r&&this.expectPlugin("recordAndTuple");var n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;var s=this.startNode();return this.next(),s.elements=this.parseExprList(e,!r,a,s),this.state.inFSharpPipelineDirectBody=n,this.finishNode(s,r?"TupleExpression":"ArrayExpression")},r.parseArrowExpression=function(e,t,r,a){this.scope.enter(TE.FUNCTION|TE.ARROW);var n=sT(r,!1);!this.match(5)&&this.prodParam.hasIn&&(n|=aT.PARAM_IN),this.prodParam.enter(n),this.initFunction(e,r);var s=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,a)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=s,this.finishNode(e,"ArrowFunctionExpression")},r.setArrowFunctionParameters=function(e,t,r){this.toAssignableList(t,r,!1),e.params=t},r.parseFunctionBodyAndFinish=function(e,t,r){return void 0===r&&(r=!1),this.parseFunctionBody(e,!1,r),this.finishNode(e,t)},r.parseFunctionBody=function(e,t,r){var a=this;void 0===r&&(r=!1);var n=t&&!this.match(5);if(this.expressionScope.enter(rT()),n)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{var s=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|aT.PARAM_RETURN),e.body=this.parseBlock(!0,!1,(function(n){var i=!a.isSimpleParamList(e.params);n&&i&&a.raise(jR.IllegalLanguageModeDirective,"method"!==e.kind&&"constructor"!==e.kind||!e.key?e:e.key.loc.end);var o=!s&&a.state.strict;a.checkParams(e,!a.state.strict&&!t&&!r&&!i,t,o),a.state.strict&&e.id&&a.checkIdentifier(e.id,wE.TYPE_OUTSIDE,o)})),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()},r.isSimpleParameter=function(e){return"Identifier"===e.type},r.isSimpleParamList=function(e){for(var t=0,r=e.length;t10)&&EE(e))if(r&&Ci(e))this.raise(jR.UnexpectedKeyword,t,{keyword:e});else if((this.state.strict?a?_i:Ai:Si)(e,this.inModule))this.raise(jR.UnexpectedReservedWord,t,{reservedWord:e});else if("yield"===e){if(this.prodParam.hasYield)return void this.raise(jR.YieldBindingIdentifier,t)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(jR.AwaitBindingIdentifier,t);if(this.scope.inStaticBlock)return void this.raise(jR.AwaitBindingIdentifierInStaticBlock,t);this.expressionScope.recordAsyncArrowParametersError(t)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(jR.ArgumentsInClass,t)},r.recordAwaitIfAllowed=function(){var e=this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e},r.parseAwait=function(e){var t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(jR.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(jR.ObsoleteAwaitStar,t),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,"AwaitExpression")},r.isAmbiguousAwait=function(){if(this.hasPrecedingLineBreak())return!0;var e=this.state.type;return 53===e||10===e||0===e||bE(e)||102===e&&!this.state.containsEsc||138===e||56===e||this.hasPlugin("v8intrinsic")&&54===e},r.parseYield=function(){var e=this.startNode();this.expressionScope.recordParameterInitializerError(jR.YieldInParameter,e),this.next();var t=!1,r=null;if(!this.hasPrecedingLineBreak())switch(t=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!t)break;default:r=this.parseMaybeAssign()}return e.delegate=t,e.argument=r,this.finishNode(e,"YieldExpression")},r.parseImportCall=function(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12)&&!this.match(11)&&(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&!this.match(11))){do{this.parseMaybeAssignAllowIn()}while(this.eat(12)&&!this.match(11));this.raise(jR.ImportCallArity,e)}return this.expect(11),this.finishNode(e,"ImportExpression")},r.checkPipelineAtInfixOperator=function(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(jR.PipelineHeadSequenceExpression,t)},r.parseSmartPipelineBodyInStyle=function(e,t){if(this.isSimpleReference(e)){var r=this.startNodeAt(t);return r.callee=e,this.finishNode(r,"PipelineBareFunction")}var a=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),a.expression=e,this.finishNode(a,"PipelineTopicExpression")},r.isSimpleReference=function(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}},r.checkSmartPipeTopicBodyEarlyErrors=function(e){if(this.match(19))throw this.raise(jR.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(jR.PipelineTopicUnused,e)},r.withTopicBindingContext=function(e){var t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}},r.withSmartMixTopicForbiddingContext=function(e){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return e();var t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}},r.withSoloAwaitPermittingContext=function(e){var t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}},r.allowInAnd=function(e){var t=this.prodParam.currentFlags();if(aT.PARAM_IN&~t){this.prodParam.enter(t|aT.PARAM_IN);try{return e()}finally{this.prodParam.exit()}}return e()},r.disallowInAnd=function(e){var t=this.prodParam.currentFlags();if(aT.PARAM_IN&t){this.prodParam.enter(t&~aT.PARAM_IN);try{return e()}finally{this.prodParam.exit()}}return e()},r.registerTopicReference=function(){this.state.topicContext.maxTopicIndex=0},r.topicReferenceIsAllowedInCurrentContext=function(){return this.state.topicContext.maxNumOfResolvableTopics>=1},r.topicReferenceWasUsedInCurrentContext=function(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0},r.parseFSharpPipelineBody=function(e){var t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;var r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;var a=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=r,a},r.parseModuleExpression=function(){this.expectPlugin("moduleBlocks");var e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);var t=this.startNodeAt(this.state.endLoc);this.next();var r=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{r()}return this.finishNode(e,"ModuleExpression")},r.parsePropertyNamePrefixOperator=function(e){},u(t)}(NT),sw={kind:GE.Loop},iw={kind:GE.Switch},ow={Expression:0,Declaration:1,HangingDeclaration:2,NullableId:4,Async:8},dw={StatementOnly:0,AllowImportExport:1,AllowDeclaration:2,AllowFunctionDeclaration:4,AllowLabeledFunction:8},cw=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,lw=new RegExp("in(?:stanceof)?","y");function uw(e,t,r){for(var a=0;a0)for(var a=0,n=Array.from(this.scope.undefinedExports);a0?("boolean"!==typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(jR.DecoratorsBeforeAfterExport,t.decorators[0]),(a=t.decorators).unshift.apply(a,e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),r&&this.resetStartLocationFromNode(r,t));return t},r.canHaveLeadingDecorator=function(){return this.match(80)},r.parseDecorators=function(e){var t=[];do{t.push(this.parseDecorator())}while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(jR.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(jR.UnexpectedLeadingDecorator,this.state.startLoc);return t},r.parseDecorator=function(){this.expectOnePlugin(["decorators","decorators-legacy"]);var e=this.startNode();if(this.next(),this.hasPlugin("decorators")){var t,r=this.state.startLoc;if(this.match(10)){var a=this.state.startLoc;this.next(),t=this.parseExpression(),this.expect(11),t=this.wrapParenthesis(a,t);var n=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(t),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==t&&this.raise(jR.DecoratorArgumentsOutsideParentheses,n)}else{for(t=this.parseIdentifier(!1);this.eat(16);){var s=this.startNodeAt(r);s.object=t,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),s.computed=!1,t=this.finishNode(s,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")},r.parseMaybeDecoratorArguments=function(e){if(this.eat(10)){var t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseCallExpressionArguments(11),this.toReferencedList(t.arguments),this.finishNode(t,"CallExpression")}return e},r.parseBreakContinueStatement=function(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")},r.verifyBreakContinue=function(e,t){var r;for(r=0;r=0;o--){var d=this.state.labels[o];if(d.statementStart!==e.start)break;d.statementStart=this.sourceToOffsetPos(this.state.start),d.kind=i}return this.state.labels.push({name:t,kind:i,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=a&dw.AllowLabeledFunction?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")},r.parseExpressionStatement=function(e,t,r){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},r.parseBlock=function(e,t,r){void 0===e&&(e=!1),void 0===t&&(t=!0);var a=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(TE.OTHER),this.parseBlockBody(a,e,!1,8,r),t&&this.scope.exit(),this.finishNode(a,"BlockStatement")},r.isValidDirective=function(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized},r.parseBlockBody=function(e,t,r,a,n){var s=e.body=[],i=e.directives=[];this.parseBlockOrModuleBlockBody(s,t?i:void 0,r,a,n)},r.parseBlockOrModuleBlockBody=function(e,t,r,a,n){for(var s=this.state.strict,i=!1,o=!1;!this.match(a);){var d=r?this.parseModuleItem():this.parseStatementListItem();if(t&&!o){if(this.isValidDirective(d)){var c=this.stmtToDirective(d);t.push(c),i||"use strict"!==c.value.value||(i=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear()}e.push(d)}null==n||n.call(this,i),s||this.setStrict(!1),this.next()},r.parseFor=function(e,t){var r=this;return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((function(){return r.parseStatement()})),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")},r.parseForIn=function(e,t,r){var a=this,n=this.match(58);return this.next(),n?null!==r&&this.unexpected(r):e.await=null!==r,"VariableDeclaration"!==t.type||null==t.declarations[0].init||n&&this.options.annexB&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type||this.raise(jR.ForInOfLoopInitializer,t,{type:n?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(jR.InvalidLhs,t,{ancestor:{type:"ForStatement"}}),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((function(){return a.parseStatement()})),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},r.parseVar=function(e,t,r,a){void 0===a&&(a=!1);var n=e.declarations=[];for(e.kind=r;;){var s=this.startNode();if(this.parseVarId(s,r),s.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==s.init||a||("Identifier"===s.id.type||t&&(this.match(58)||this.isContextual(102))?"const"!==r&&"using"!==r&&"await using"!==r||this.match(58)||this.isContextual(102)||this.raise(jR.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:r}):this.raise(jR.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),n.push(this.finishNode(s,"VariableDeclarator")),!this.eat(12))break}return e},r.parseVarId=function(e,t){var r=this.parseBindingAtom();"using"!==t&&"await using"!==t||"ArrayPattern"!==r.type&&"ObjectPattern"!==r.type||this.raise(jR.UsingDeclarationHasBindingPattern,r.loc.start),this.checkLVal(r,{type:"VariableDeclarator"},"var"===t?wE.TYPE_VAR:wE.TYPE_LEXICAL),e.id=r},r.parseAsyncFunctionExpression=function(e){return this.parseFunction(e,ow.Async)},r.parseFunction=function(e,t){var r=this;void 0===t&&(t=ow.Expression);var a=t&ow.HangingDeclaration,n=!!(t&ow.Declaration),s=n&&!(t&ow.NullableId),i=!!(t&ow.Async);this.initFunction(e,i),this.match(55)&&(a&&this.raise(jR.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),n&&(e.id=this.parseFunctionId(s));var o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(TE.FUNCTION),this.prodParam.enter(sT(i,e.generator)),n||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext((function(){r.parseFunctionBodyAndFinish(e,n?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),n&&!a&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=o,e},r.parseFunctionId=function(e){return e||eE(this.state.type)?this.parseIdentifier():null},r.parseFunctionParams=function(e,t){this.expect(10),this.expressionScope.enter(ZE()),e.params=this.parseBindingList(11,41,IT.IS_FUNCTION_PARAMS|(t?IT.IS_CONSTRUCTOR_PARAMS:0)),this.expressionScope.exit()},r.registerFunctionStatementId=function(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?wE.TYPE_VAR:wE.TYPE_LEXICAL:wE.TYPE_FUNCTION,e.id.loc.start)},r.parseClass=function(e,t,r){this.next();var a=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,a),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},r.isClassProperty=function(){return this.match(29)||this.match(13)||this.match(8)},r.isClassMethod=function(){return this.match(10)},r.nameIsConstructor=function(e){return"Identifier"===e.type&&"constructor"===e.name||"StringLiteral"===e.type&&"constructor"===e.value},r.isNonstaticConstructor=function(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)},r.parseClassBody=function(e,t){var r=this;this.classScope.enter();var a={hadConstructor:!1,hadSuperClass:e},n=[],s=this.startNode();if(s.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((function(){for(;!r.match(8);)if(r.eat(13)){if(n.length>0)throw r.raise(jR.DecoratorSemicolon,r.state.lastTokEndLoc)}else if(r.match(26))n.push(r.parseDecorator());else{var e=r.startNode();n.length&&(e.decorators=n,r.resetStartLocationFromNode(e,n[0]),n=[]),r.parseClassMember(s,e,a),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&r.raise(jR.DecoratorConstructor,e)}})),this.state.strict=t,this.next(),n.length)throw this.raise(jR.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(s,"ClassBody")},r.parseClassMemberFromModifier=function(e,t){var r=this.parseIdentifier(!0);if(this.isClassMethod()){var a=t;return a.kind="method",a.computed=!1,a.key=r,a.static=!1,this.pushClassMethod(e,a,!1,!1,!1,!1),!0}if(this.isClassProperty()){var n=t;return n.computed=!1,n.key=r,n.static=!1,e.body.push(this.parseClassProperty(n)),!0}return this.resetPreviousNodeTrailingComments(r),!1},r.parseClassMember=function(e,t,r){var a=this.isContextual(106);if(a){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,r,a)},r.parseClassMemberWithIsStatic=function(e,t,r,a){var n=t,s=t,i=t,o=t,d=t,c=n,l=n;if(t.static=a,this.parsePropertyNamePrefixOperator(t),this.eat(55)){c.kind="method";var u=this.match(139);return this.parseClassElementName(c),u?void this.pushClassPrivateMethod(e,s,!0,!1):(this.isNonstaticConstructor(n)&&this.raise(jR.ConstructorIsGenerator,n.key),void this.pushClassMethod(e,n,!0,!1,!1,!1))}var p=!this.state.containsEsc&&eE(this.state.type),f=this.parseClassElementName(t),g=p?f.name:null,m=this.isPrivateName(f),h=this.state.startLoc;if(this.parsePostMemberNameModifiers(l),this.isClassMethod()){if(c.kind="method",m)return void this.pushClassPrivateMethod(e,s,!1,!1);var y=this.isNonstaticConstructor(n),b=!1;y&&(n.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(jR.DuplicateConstructor,f),y&&this.hasPlugin("typescript")&&t.override&&this.raise(jR.OverrideOnConstructor,f),r.hadConstructor=!0,b=r.hadSuperClass),this.pushClassMethod(e,n,!1,!1,y,b)}else if(this.isClassProperty())m?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,i);else if("async"!==g||this.isLineTerminator())if("get"!==g&&"set"!==g||this.match(55)&&this.isLineTerminator())if("accessor"!==g||this.isLineTerminator())this.isLineTerminator()?m?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,i):this.unexpected();else{this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(f);var v=this.match(139);this.parseClassElementName(i),this.pushClassAccessorProperty(e,d,v)}else{this.resetPreviousNodeTrailingComments(f),c.kind=g;var x=this.match(139);this.parseClassElementName(n),x?this.pushClassPrivateMethod(e,s,!1,!1):(this.isNonstaticConstructor(n)&&this.raise(jR.ConstructorIsAccessor,n.key),this.pushClassMethod(e,n,!1,!1,!1,!1)),this.checkGetterSetterParams(n)}else{this.resetPreviousNodeTrailingComments(f);var R=this.eat(55);l.optional&&this.unexpected(h),c.kind="method";var E=this.match(139);this.parseClassElementName(c),this.parsePostMemberNameModifiers(l),E?this.pushClassPrivateMethod(e,s,R,!0):(this.isNonstaticConstructor(n)&&this.raise(jR.ConstructorIsAsync,n.key),this.pushClassMethod(e,n,R,!0,!1,!1))}},r.parseClassElementName=function(e){var t=this.state,r=t.type,a=t.value;if(132!==r&&134!==r||!e.static||"prototype"!==a||this.raise(jR.StaticPrototype,this.state.startLoc),139===r){"constructor"===a&&this.raise(jR.ConstructorClassPrivateField,this.state.startLoc);var n=this.parsePrivateName();return e.key=n,n}return this.parsePropertyName(e),e.key},r.parseClassStaticBlock=function(e,t){var r;this.scope.enter(TE.CLASS|TE.STATIC_BLOCK|TE.SUPER);var a=this.state.labels;this.state.labels=[],this.prodParam.enter(aT.PARAM);var n=t.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=a,e.body.push(this.finishNode(t,"StaticBlock")),null!=(r=t.decorators)&&r.length&&this.raise(jR.DecoratorStaticBlock,t)},r.pushClassProperty=function(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(jR.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))},r.pushClassPrivateProperty=function(e,t){var r=this.parseClassPrivateProperty(t);e.body.push(r),this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),SE.OTHER,r.key.loc.start)},r.pushClassAccessorProperty=function(e,t,r){r||t.computed||!this.nameIsConstructor(t.key)||this.raise(jR.ConstructorClassField,t.key);var a=this.parseClassAccessorProperty(t);e.body.push(a),r&&this.classScope.declarePrivateName(this.getPrivateNameSV(a.key),SE.OTHER,a.key.loc.start)},r.pushClassMethod=function(e,t,r,a,n,s){e.body.push(this.parseMethod(t,r,a,n,s,"ClassMethod",!0))},r.pushClassPrivateMethod=function(e,t,r,a){var n=this.parseMethod(t,r,a,!1,!1,"ClassPrivateMethod",!0);e.body.push(n);var s="get"===n.kind?n.static?SE.STATIC_GETTER:SE.INSTANCE_GETTER:"set"===n.kind?n.static?SE.STATIC_SETTER:SE.INSTANCE_SETTER:SE.OTHER;this.declareClassPrivateMethodInScope(n,s)},r.declareClassPrivateMethodInScope=function(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)},r.parsePostMemberNameModifiers=function(e){},r.parseClassPrivateProperty=function(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")},r.parseClassProperty=function(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")},r.parseClassAccessorProperty=function(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")},r.parseInitializer=function(e){this.scope.enter(TE.CLASS|TE.SUPER),this.expressionScope.enter(rT()),this.prodParam.enter(aT.PARAM),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()},r.parseClassId=function(e,t,r,a){if(void 0===a&&(a=wE.TYPE_CLASS),eE(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,a);else{if(!r&&t)throw this.raise(jR.MissingClassName,this.state.startLoc);e.id=null}},r.parseClassSuper=function(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null},r.parseExport=function(e,t){var r=this.parseMaybeImportPhase(e,!0),a=this.maybeParseExportDefaultSpecifier(e,r),n=!a||this.eat(12),s=n&&this.eatExportStar(e),i=s&&this.maybeParseExportNamespaceSpecifier(e),o=n&&(!i||this.eat(12)),d=a||s;if(s&&!i){if(a&&this.unexpected(),t)throw this.raise(jR.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration")}var c,l=this.maybeParseExportNamedSpecifiers(e);if(a&&n&&!s&&!l&&this.unexpected(null,5),i&&o&&this.unexpected(null,98),d||l){if(c=!1,t)throw this.raise(jR.UnsupportedDecoratorExport,e);this.parseExportFrom(e,d)}else c=this.maybeParseExportDeclaration(e);if(d||l||c){var u,p=e;if(this.checkExport(p,!0,!1,!!p.source),"ClassDeclaration"===(null==(u=p.declaration)?void 0:u.type))this.maybeTakeDecorators(t,p.declaration,p);else if(t)throw this.raise(jR.UnsupportedDecoratorExport,e);return this.finishNode(p,"ExportNamedDeclaration")}if(this.eat(65)){var f=e,g=this.parseExportDefaultExpression();if(f.declaration=g,"ClassDeclaration"===g.type)this.maybeTakeDecorators(t,g,f);else if(t)throw this.raise(jR.UnsupportedDecoratorExport,e);return this.checkExport(f,!0,!0),this.finishNode(f,"ExportDefaultDeclaration")}this.unexpected(null,5)},r.eatExportStar=function(e){return this.eat(55)},r.maybeParseExportDefaultSpecifier=function(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==t?void 0:t.loc.start);var r=t||this.parseIdentifier(!0),a=this.startNodeAtNode(r);return a.exported=r,e.specifiers=[this.finishNode(a,"ExportDefaultSpecifier")],!0}return!1},r.maybeParseExportNamespaceSpecifier=function(e){if(this.isContextual(93)){var t;null!=(t=e).specifiers||(t.specifiers=[]);var r=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),r.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(r,"ExportNamespaceSpecifier")),!0}return!1},r.maybeParseExportNamedSpecifiers=function(e){if(this.match(5)){var t,r=e;r.specifiers||(r.specifiers=[]);var a="type"===r.exportKind;return(t=r.specifiers).push.apply(t,this.parseExportSpecifiers(a)),r.source=null,r.declaration=null,this.hasPlugin("importAssertions")&&(r.assertions=[]),!0}return!1},r.maybeParseExportDeclaration=function(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),e.declaration=this.parseExportDeclaration(e),!0)},r.isAsyncFunction=function(){if(!this.isContextual(95))return!1;var e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")},r.parseExportDefaultExpression=function(){var e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,ow.Declaration|ow.NullableId);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,ow.Declaration|ow.NullableId|ow.Async);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(jR.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(jR.UnsupportedDefaultExport,this.state.startLoc);var t=this.parseMaybeAssignAllowIn();return this.semicolon(),t},r.parseExportDeclaration=function(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()},r.isExportDefaultSpecifier=function(){var e=this.state.type;if(eE(e)){if(95===e&&!this.state.containsEsc||100===e)return!1;if((130===e||129===e)&&!this.state.containsEsc){var t=this.lookahead().type;if(eE(t)&&98!==t||5===t)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;var r=this.nextTokenStart(),a=this.isUnparsedContextual(r,"from");if(44===this.input.charCodeAt(r)||eE(this.state.type)&&a)return!0;if(this.match(65)&&a){var n=this.input.charCodeAt(this.nextTokenStartSince(r+4));return 34===n||39===n}return!1},r.parseExportFrom=function(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()},r.shouldParseExportDeclaration=function(){var e=this.state.type;return 26===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(jR.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)||this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(jR.UsingDeclarationExport,this.state.startLoc),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()},r.checkExport=function(e,t,r,a){var n;if(t)if(r){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var s,i=e.declaration;"Identifier"!==i.type||"from"!==i.name||i.end-i.start!==4||null!=(s=i.extra)&&s.parenthesized||this.raise(jR.ExportDefaultFromAsIdentifier,i)}}else if(null!=(n=e.specifiers)&&n.length)for(var o=0,d=e.specifiers;o0&&this.raise(jR.ImportReflectionHasAssertion,t[0].loc.start)}},r.checkJSONModuleImport=function(e){if(this.isJSONModuleImport(e)&&"ExportAllDeclaration"!==e.type){var t=e.specifiers;if(null!=t){var r=t.find((function(e){var t;if("ExportSpecifier"===e.type?t=e.local:"ImportSpecifier"===e.type&&(t=e.imported),void 0!==t)return"Identifier"===t.type?"default"!==t.name:"default"!==t.value}));void 0!==r&&this.raise(jR.ImportJSONBindingNotDefault,r.loc.start)}}},r.isPotentialImportPhase=function(e){return!e&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))},r.applyImportPhase=function(e,t,r,a){t||("module"===r?(this.expectPlugin("importReflection",a),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),"source"===r?(this.expectPlugin("sourcePhaseImports",a),e.phase="source"):"defer"===r?(this.expectPlugin("deferredImportEvaluation",a),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))},r.parseMaybeImportPhase=function(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;var r=this.parseIdentifier(!0),a=this.state.type;return(rE(a)?98!==a||102===this.lookaheadCharCode():12!==a)?(this.resetPreviousIdentifierLeadingComments(r),this.applyImportPhase(e,t,r.name,r.loc.start),null):(this.applyImportPhase(e,t,null),r)},r.isPrecedingIdImportPhase=function(e){var t=this.state.type;return eE(t)?98!==t||102===this.lookaheadCharCode():12!==t},r.parseImport=function(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))},r.parseImportSpecifiersAndAfter=function(e,t){e.specifiers=[];var r=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),a=r&&this.maybeParseStarImportSpecifier(e);return r&&!a&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)},r.parseImportSourceAndAttributes=function(e){return null!=e.specifiers||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.finishNode(e,"ImportDeclaration")},r.parseImportSource=function(){return this.match(134)||this.unexpected(),this.parseExprAtom()},r.parseImportSpecifierLocal=function(e,t,r){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))},r.finishImportSpecifier=function(e,t,r){return void 0===r&&(r=wE.TYPE_LEXICAL),this.checkLVal(e.local,{type:t},r),this.finishNode(e,t)},r.parseImportAttributes=function(){this.expect(5);var e=[],t=new Set;do{if(this.match(8))break;var r=this.startNode(),a=this.state.value;if(t.has(a)&&this.raise(jR.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:a}),t.add(a),this.match(134)?r.key=this.parseStringLiteral(a):r.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(jR.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e},r.parseModuleAttributes=function(){var e=[],t=new Set;do{var r=this.startNode();if(r.key=this.parseIdentifier(!0),"type"!==r.key.name&&this.raise(jR.ModuleAttributeDifferentFromType,r.key),t.has(r.key.name)&&this.raise(jR.ModuleAttributesWithDuplicateKeys,r.key,{key:r.key.name}),t.add(r.key.name),this.expect(14),!this.match(134))throw this.raise(jR.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return e},r.maybeParseImportAttributes=function(e){var t,r=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),t=this.hasPlugin("moduleAttributes")?this.parseModuleAttributes():this.parseImportAttributes(),r=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.hasPlugin("importAssertions")||this.raise(jR.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(e,"deprecatedAssertSyntax",!0),this.next(),t=this.parseImportAttributes()):t=[];!r&&this.hasPlugin("importAssertions")?e.assertions=t:e.attributes=t},r.maybeParseDefaultImportSpecifier=function(e,t){if(t){var r=this.startNodeAtNode(t);return r.local=t,e.specifiers.push(this.finishImportSpecifier(r,"ImportDefaultSpecifier")),!0}return!!rE(this.state.type)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)},r.maybeParseStarImportSpecifier=function(e){if(this.match(55)){var t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1},r.parseNamedImportSpecifiers=function(e){var t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(jR.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}var r=this.startNode(),a=this.match(134),n=this.isContextual(130);r.imported=this.parseModuleExportName();var s=this.parseImportSpecifier(r,a,"type"===e.importKind||"typeof"===e.importKind,n,void 0);e.specifiers.push(s)}},r.parseImportSpecifier=function(e,t,r,a,n){if(this.eatContextual(93))e.local=this.parseIdentifier();else{var s=e.imported;if(t)throw this.raise(jR.ImportBindingIsString,e,{importName:s.value});this.checkReservedWord(s.name,e.loc.start,!0,!0),e.local||(e.local=uT(s))}return this.finishImportSpecifier(e,"ImportSpecifier",n)},r.isThisParam=function(e){return"Identifier"===e.type&&"this"===e.name},u(t)}(nw),fw=function(e){function t(t,r,a){var n;return t=aw(t),(n=e.call(this,t,r)||this).options=t,n.initializeScopes(),n.plugins=a,n.filename=t.sourceFilename,n.startIndex=t.startIndex,n}g(t,e);var r=t.prototype;return r.getScopeHandler=function(){return _E},r.parse=function(){this.enterInitialScopes();var e=this.startNode(),t=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,t),e.errors=this.state.errors,e.comments.length=this.state.commentsLen,e},u(t)}(pw);function gw(e,t){var r;if("unambiguous"!==(null==(r=t)?void 0:r.sourceType))return bw(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";var a=bw(t,e),n=a.parse();if(a.sawUnambiguousESM)return n;if(a.ambiguousScriptDifferentAst)try{return t.sourceType="script",bw(t,e).parse()}catch(s){}else n.program.sourceType="script";return n}catch(i){try{return t.sourceType="script",bw(t,e).parse()}catch(o){}throw i}}function mw(e,t){var r=bw(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function hw(e){for(var t={},r=0,a=Object.keys(e);r!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,Fw.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}),Fw}function Lw(e){return null!=e&&e&&"false"!==e&&"0"!==e}var Mw,Uw=(Lw(ve.env.BABEL_8_BREAKING),Bw()),Hw=new Set(["as","async","from","get","of","set"]),Gw=/\r\n|[\n\r\u2028\u2029]/,qw=/^[()[\]{}]$/,Ww=/^[a-z][\w-]*$/i,zw=function(e,t,r){if("name"===e.type){if(Ci(e.value)||Ai(e.value,!0)||Hw.has(e.value))return"keyword";if(Ww.test(e.value)&&("<"===r[t-1]||""),n.gutter(s),e.length>0?" "+e:"",u].join("")}return" "+n.gutter(s)+(e.length>0?" "+e:"")})).join("\n");return r.message&&!c&&(u=""+" ".repeat(l+1)+r.message+"\n"+u),a?n.reset(u):u}var Jw=De,Qw=Me,$w=xs,Zw=ze,eS=Ra,tS=tt,rS=Pa,aS=us,nS=Ye,sS=Ex,iS=Mx,oS=/^[_$A-Z0-9]+$/;function dS(e,t,r){var a=r.placeholderWhitelist,n=r.placeholderPattern,s=r.preserveComments,i=r.syntacticPlaceholders,o=uS(t,r.parser,i);sS(o,{preserveComments:s}),e.validate(o);var d={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:a,placeholderPattern:n,syntacticPlaceholders:i};return iS(o,cS,d),Object.assign({ast:o},d.syntactic.placeholders.length?d.syntactic:d.legacy)}function cS(e,t,r){var a,n,s=r.syntactic.placeholders.length>0;if(rS(e)){if(!1===r.syntacticPlaceholders)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");n=e.name.name,s=!0}else{if(s||r.syntacticPlaceholders)return;if(Zw(e)||eS(e))n=e.name;else{if(!nS(e))return;n=e.value}}if(s&&(null!=r.placeholderPattern||null!=r.placeholderWhitelist))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(s||!1!==r.placeholderPattern&&(r.placeholderPattern||oS).test(n)||null!=(a=r.placeholderWhitelist)&&a.has(n)){var i,o=(t=t.slice())[t.length-1],d=o.node,c=o.key;nS(e)||rS(e,{expectedNode:"StringLiteral"})?i="string":tS(d)&&"arguments"===c||Jw(d)&&"arguments"===c||$w(d)&&"params"===c?i="param":Qw(d)&&!rS(e)?(i="statement",t=t.slice(0,-1)):i=aS(e)&&rS(e)?"statement":"other";var l=s?r.syntactic:r.legacy,u=l.placeholders,p=l.placeholderNames;u.push({name:n,type:i,resolve:function(e){return lS(e,t)},isDuplicate:p.has(n)}),p.add(n)}}function lS(e,t){for(var r=e,a=0;a1?a-1:0),i=1;i1)throw new Error("Unexpected extra params.");return CS(TS(e,t,dR(n,cR(s[0]))))}if(Array.isArray(t)){var o=r.get(t);return o||(o=wS(e,t,n),r.set(t,o)),CS(o(s))}if("object"===typeof t&&t){if(s.length>0)throw new Error("Unexpected extra params.");return _S(e,dR(n,cR(t)))}throw new Error("Unexpected template param "+typeof t)}),{ast:function(t){for(var r=arguments.length,s=new Array(r>1?r-1:0),i=1;i1)throw new Error("Unexpected extra params.");return TS(e,t,dR(dR(n,cR(s[0])),jS))()}if(Array.isArray(t)){var o=a.get(t);return o||(o=wS(e,t,dR(n,jS)),a.set(t,o)),o(s)()}throw new Error("Unexpected template param "+typeof t)}})}function CS(e){var t="";try{throw new Error}catch(SJ){SJ.stack&&(t=SJ.stack.split("\n").slice(3).join("\n"))}return function(r){try{return e(r)}catch(a){throw a.stack+="\n =============\n"+t,a}}}var kS=_S(rR),PS=_S(nR),DS=_S(aR),IS=_S(sR),NS=_S(iR),OS=Object.assign(kS.bind(void 0),{smart:kS,statement:PS,statements:DS,expression:IS,program:NS,ast:kS.ast}),FS=Object.freeze({__proto__:null,default:OS,expression:IS,program:NS,smart:kS,statement:PS,statements:DS});function BS(e,t,r){return Object.freeze({minVersion:e,ast:function(){return OS.program.ast(t,{preserveComments:!0})},metadata:r})}var LS={__proto__:null,OverloadYield:BS("7.18.14","function _OverloadYield(e,d){this.v=e,this.k=d}",{globals:[],locals:{_OverloadYield:["body.0.id"]},exportBindingAssignments:[],exportName:"_OverloadYield",dependencies:{}}),applyDecoratedDescriptor:BS("7.0.0-beta.0",'function _applyDecoratedDescriptor(i,e,r,n,l){var a={};return Object.keys(n).forEach((function(i){a[i]=n[i]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=r.slice().reverse().reduce((function(r,n){return n(i,e,r)||r}),a),l&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(l):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(i,e,a),null):a}',{globals:["Object"],locals:{_applyDecoratedDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_applyDecoratedDescriptor",dependencies:{}}),applyDecs2311:BS("7.24.0",'function applyDecs2311(e,t,n,r,o,i){var a,c,u,s,f,l,p,d=Symbol.metadata||Symbol.for("Symbol.metadata"),m=Object.defineProperty,h=Object.create,y=[h(null),h(null)],v=t.length;function g(t,n,r){return function(o,i){n&&(i=o,o=e);for(var a=0;a=0;O-=n?2:1){var T=b(h[O],"A decorator","be",!0),z=n?h[O-1]:void 0,A={},H={kind:["field","accessor","method","getter","setter","class"][o],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw new TypeError("attempted to call addInitializer after decoration was finished");b(t,"An initializer","be",!0),i.push(t)}.bind(null,A)};if(w)c=T.call(z,N,H),A.v=1,b(c,"class decorators","return")&&(N=c);else if(H.static=s,H.private=f,c=H.access={has:f?p.bind():function(e){return r in e}},j||(c.get=f?E?function(e){return d(e),P.value}:I("get",0,d):function(e){return e[r]}),E||S||(c.set=f?I("set",0,d):function(e,t){e[r]=t}),N=T.call(z,D?{get:P.get,set:P.set}:P[F],H),A.v=1,D){if("object"==typeof N&&N)(c=b(N.get,"accessor.get"))&&(P.get=c),(c=b(N.set,"accessor.set"))&&(P.set=c),(c=b(N.init,"accessor.init"))&&k.unshift(c);else if(void 0!==N)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else b(N,(l?"field":"method")+" decorators","return")&&(l?k.unshift(N):P[F]=N)}return o<2&&u.push(g(k,s,1),g(i,s,0)),l||w||(f?D?u.splice(-1,0,I("get",s),I("set",s)):u.push(E?P[F]:b.call.bind(P[F])):m(e,r,P)),N}function w(e){return m(e,d,{configurable:!0,enumerable:!0,value:a})}return void 0!==i&&(a=i[d]),a=h(null==a?null:a),f=[],l=function(e){e&&f.push(g(e))},p=function(t,r){for(var i=0;ir.length)&&(a=r.length);for(var e=0,n=Array(a);e=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(r){throw r},f:F}}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 o,a=!0,u=!1;return{s:function(){t=t.call(r)},n:function(){var r=t.next();return a=r.done,r},e:function(r){u=!0,o=r},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}',{globals:["Symbol","Array","TypeError"],locals:{_createForOfIteratorHelper:["body.0.id"]},exportBindingAssignments:[],exportName:"_createForOfIteratorHelper",dependencies:{unsupportedIterableToArray:["body.0.body.body.1.consequent.body.0.test.left.right.right.callee"]}}),createForOfIteratorHelperLoose:BS("7.9.0",'function _createForOfIteratorHelperLoose(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(t)return(t=t.call(r)).next.bind(t);if(Array.isArray(r)||(t=unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var o=0;return function(){return o>=r.length?{done:!0}:{done:!1,value:r[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.")}',{globals:["Symbol","Array","TypeError"],locals:{_createForOfIteratorHelperLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_createForOfIteratorHelperLoose",dependencies:{unsupportedIterableToArray:["body.0.body.body.2.test.left.right.right.callee"]}}),createSuper:BS("7.9.0","function _createSuper(t){var r=isNativeReflectConstruct();return function(){var e,o=getPrototypeOf(t);if(r){var s=getPrototypeOf(this).constructor;e=Reflect.construct(o,arguments,s)}else e=o.apply(this,arguments);return possibleConstructorReturn(this,e)}}",{globals:["Reflect"],locals:{_createSuper:["body.0.id"]},exportBindingAssignments:[],exportName:"_createSuper",dependencies:{getPrototypeOf:["body.0.body.body.1.argument.body.body.0.declarations.1.init.callee","body.0.body.body.1.argument.body.body.1.consequent.body.0.declarations.0.init.object.callee"],isNativeReflectConstruct:["body.0.body.body.0.declarations.0.init.callee"],possibleConstructorReturn:["body.0.body.body.1.argument.body.body.2.argument.callee"]}}),decorate:BS("7.1.5",'function _decorate(e,r,t,i){var o=_getDecoratorsApi();if(i)for(var n=0;n=0;n--){var s=r[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,o[n])(a)||a);e=l.element,this.addElementPlacement(e,r),l.finisher&&i.push(l.finisher);var c=l.extras;if(c){for(var p=0;p=0;i--){var o=this.fromClassDescriptor(e),n=this.toClassDescriptor((0,r[i])(o)||o);if(void 0!==n.finisher&&t.push(n.finisher),void 0!==n.elements){e=n.elements;for(var s=0;s1){for(var t=Array(n),f=0;f=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}',{globals:["Object","Symbol","Error","TypeError","isNaN","Promise"],locals:{_regeneratorRuntime:["body.0.id","body.0.body.body.0.expression.left"]},exportBindingAssignments:["body.0.body.body.0.expression"],exportName:"_regeneratorRuntime",dependencies:{}}),set:BS("7.0.0-beta.0",'function set(e,r,t,o){return set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,r,t,o){var f,i=superPropBase(e,r);if(i){if((f=Object.getOwnPropertyDescriptor(i,r)).set)return f.set.call(o,t),!0;if(!f.writable)return!1}if(f=Object.getOwnPropertyDescriptor(o,r)){if(!f.writable)return!1;f.value=t,Object.defineProperty(o,r,f)}else defineProperty(o,r,t);return!0},set(e,r,t,o)}function _set(e,r,t,o,f){if(!set(e,r,t,o||e)&&f)throw new TypeError("failed to set property");return t}',{globals:["Reflect","Object","TypeError"],locals:{set:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.1.body.body.0.test.left.argument.callee","body.0.body.body.0.argument.expressions.0.left"],_set:["body.1.id"]},exportBindingAssignments:[],exportName:"_set",dependencies:{superPropBase:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.0.declarations.1.init.callee"],defineProperty:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.2.alternate.expression.callee"]}}),setFunctionName:BS("7.23.6",'function setFunctionName(e,t,n){"symbol"==typeof t&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}',{globals:["Object"],locals:{setFunctionName:["body.0.id"]},exportBindingAssignments:[],exportName:"setFunctionName",dependencies:{}}),setPrototypeOf:BS("7.0.0-beta.0","function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}",{globals:["Object"],locals:{_setPrototypeOf:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_setPrototypeOf",dependencies:{}}),skipFirstGeneratorNext:BS("7.0.0-beta.0","function _skipFirstGeneratorNext(t){return function(){var r=t.apply(this,arguments);return r.next(),r}}",{globals:[],locals:{_skipFirstGeneratorNext:["body.0.id"]},exportBindingAssignments:[],exportName:"_skipFirstGeneratorNext",dependencies:{}}),slicedToArray:BS("7.0.0-beta.0","function _slicedToArray(r,e){return arrayWithHoles(r)||iterableToArrayLimit(r,e)||unsupportedIterableToArray(r,e)||nonIterableRest()}",{globals:[],locals:{_slicedToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_slicedToArray",dependencies:{arrayWithHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArrayLimit:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableRest:["body.0.body.body.0.argument.right.callee"]}}),superPropBase:BS("7.0.0-beta.0","function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=getPrototypeOf(t)););return t}",{globals:[],locals:{_superPropBase:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropBase",dependencies:{getPrototypeOf:["body.0.body.body.0.test.right.right.right.callee"]}}),superPropGet:BS("7.25.0",'function _superPropGet(t,o,e,r){var p=get(getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t)}:p}',{globals:[],locals:{_superPropGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropGet",dependencies:{get:["body.0.body.body.0.declarations.0.init.callee"],getPrototypeOf:["body.0.body.body.0.declarations.0.init.arguments.0.callee"]}}),superPropSet:BS("7.25.0","function _superPropSet(t,e,o,r,p,f){return set(getPrototypeOf(f?t.prototype:t),e,o,r,p)}",{globals:[],locals:{_superPropSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropSet",dependencies:{set:["body.0.body.body.0.argument.callee"],getPrototypeOf:["body.0.body.body.0.argument.arguments.0.callee"]}}),taggedTemplateLiteral:BS("7.0.0-beta.0","function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}",{globals:["Object"],locals:{_taggedTemplateLiteral:["body.0.id"]},exportBindingAssignments:[],exportName:"_taggedTemplateLiteral",dependencies:{}}),taggedTemplateLiteralLoose:BS("7.0.0-beta.0","function _taggedTemplateLiteralLoose(e,t){return t||(t=e.slice(0)),e.raw=t,e}",{globals:[],locals:{_taggedTemplateLiteralLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_taggedTemplateLiteralLoose",dependencies:{}}),tdz:BS("7.5.5",'function _tdzError(e){throw new ReferenceError(e+" is not defined - temporal dead zone")}',{globals:["ReferenceError"],locals:{_tdzError:["body.0.id"]},exportBindingAssignments:[],exportName:"_tdzError",dependencies:{}}),temporalRef:BS("7.0.0-beta.0","function _temporalRef(r,e){return r===undef?err(e):r}",{globals:[],locals:{_temporalRef:["body.0.id"]},exportBindingAssignments:[],exportName:"_temporalRef",dependencies:{temporalUndefined:["body.0.body.body.0.argument.test.right"],tdz:["body.0.body.body.0.argument.consequent.callee"]}}),temporalUndefined:BS("7.0.0-beta.0","function _temporalUndefined(){}",{globals:[],locals:{_temporalUndefined:["body.0.id"]},exportBindingAssignments:[],exportName:"_temporalUndefined",dependencies:{}}),toArray:BS("7.0.0-beta.0","function _toArray(r){return arrayWithHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterableRest()}",{globals:[],locals:{_toArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_toArray",dependencies:{arrayWithHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArray:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableRest:["body.0.body.body.0.argument.right.callee"]}}),toConsumableArray:BS("7.0.0-beta.0","function _toConsumableArray(r){return arrayWithoutHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterableSpread()}",{globals:[],locals:{_toConsumableArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_toConsumableArray",dependencies:{arrayWithoutHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArray:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableSpread:["body.0.body.body.0.argument.right.callee"]}}),toPrimitive:BS("7.1.5",'function toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}',{globals:["Symbol","TypeError","String","Number"],locals:{toPrimitive:["body.0.id"]},exportBindingAssignments:[],exportName:"toPrimitive",dependencies:{}}),toPropertyKey:BS("7.1.5",'function toPropertyKey(t){var i=toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}',{globals:[],locals:{toPropertyKey:["body.0.id"]},exportBindingAssignments:[],exportName:"toPropertyKey",dependencies:{toPrimitive:["body.0.body.body.0.declarations.0.init.callee"]}}),toSetter:BS("7.24.0",'function _toSetter(t,e,n){e||(e=[]);var r=e.length++;return Object.defineProperty({},"_",{set:function(o){e[r]=o,t.apply(n,e)}})}',{globals:["Object"],locals:{_toSetter:["body.0.id"]},exportBindingAssignments:[],exportName:"_toSetter",dependencies:{}}),typeof:BS("7.0.0-beta.0",'function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}',{globals:["Symbol"],locals:{_typeof:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_typeof",dependencies:{}}),unsupportedIterableToArray:BS("7.9.0",'function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?arrayLikeToArray(r,a):void 0}}',{globals:["Array"],locals:{_unsupportedIterableToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_unsupportedIterableToArray",dependencies:{arrayLikeToArray:["body.0.body.body.0.consequent.body.0.consequent.argument.callee","body.0.body.body.0.consequent.body.2.argument.expressions.1.alternate.consequent.callee"]}}),usingCtx:BS("7.23.9",'function _usingCtx(){var r="function"==typeof SuppressedError?SuppressedError:function(r,e){var n=Error();return n.name="SuppressedError",n.error=r,n.suppressed=e,n},e={},n=[];function using(r,e){if(null!=e){if(Object(e)!==e)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(r)var o=e[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(void 0===o&&(o=e[Symbol.dispose||Symbol.for("Symbol.dispose")],r))var t=o;if("function"!=typeof o)throw new TypeError("Object is not disposable.");t&&(o=function(){try{t.call(e)}catch(r){return Promise.reject(r)}}),n.push({v:e,d:o,a:r})}else r&&n.push({d:e,a:r});return e}return{e:e,u:using.bind(null,!1),a:using.bind(null,!0),d:function(){var o,t=this.e,s=0;function next(){for(;o=n.pop();)try{if(!o.a&&1===s)return s=0,n.push(o),Promise.resolve().then(next);if(o.d){var r=o.d.call(o.v);if(o.a)return s|=2,Promise.resolve(r).then(next,err)}else s|=1}catch(r){return err(r)}if(1===s)return t!==e?Promise.reject(t):Promise.resolve();if(t!==e)throw t}function err(n){return t=t!==e?new r(n,t):n,next()}return next()}}}',{globals:["SuppressedError","Error","Object","TypeError","Symbol","Promise"],locals:{_usingCtx:["body.0.id"]},exportBindingAssignments:[],exportName:"_usingCtx",dependencies:{}}),wrapAsyncGenerator:BS("7.0.0-beta.0",'function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,arguments))}}function AsyncGenerator(e){var r,t;function resume(r,t){try{var n=e[r](t),o=n.value,u=o instanceof OverloadYield;Promise.resolve(u?o.v:o).then((function(t){if(u){var i="return"===r?"return":"next";if(!o.k||t.done)return resume(i,t);t=e[i](t).value}settle(n.done?"return":"normal",t)}),(function(e){resume("throw",e)}))}catch(e){settle("throw",e)}}function settle(e,n){switch(e){case"return":r.resolve({value:n,done:!0});break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1})}(r=r.next)?resume(r.key,r.arg):t=null}this._invoke=function(e,n){return new Promise((function(o,u){var i={key:e,arg:n,resolve:o,reject:u,next:null};t?t=t.next=i:(r=t=i,resume(e,n))}))},"function"!=typeof e.return&&(this.return=void 0)}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e)},AsyncGenerator.prototype.throw=function(e){return this._invoke("throw",e)},AsyncGenerator.prototype.return=function(e){return this._invoke("return",e)};',{globals:["Promise","Symbol"],locals:{_wrapAsyncGenerator:["body.0.id"],AsyncGenerator:["body.1.id","body.0.body.body.0.argument.body.body.0.argument.callee","body.2.expression.expressions.0.left.object.object","body.2.expression.expressions.1.left.object.object","body.2.expression.expressions.2.left.object.object","body.2.expression.expressions.3.left.object.object"]},exportBindingAssignments:[],exportName:"_wrapAsyncGenerator",dependencies:{OverloadYield:["body.1.body.body.1.body.body.0.block.body.0.declarations.2.init.right"]}}),wrapNativeSuper:BS("7.0.0-beta.0",'function _wrapNativeSuper(t){var r="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(t){if(null===t||!isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper)}function Wrapper(){return construct(t,arguments,getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),setPrototypeOf(Wrapper,t)},_wrapNativeSuper(t)}',{globals:["Map","TypeError","Object"],locals:{_wrapNativeSuper:["body.0.id","body.0.body.body.1.argument.expressions.1.callee","body.0.body.body.1.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.1.argument.expressions.0"],exportName:"_wrapNativeSuper",dependencies:{getPrototypeOf:["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.arguments.2.object.callee"],setPrototypeOf:["body.0.body.body.1.argument.expressions.0.right.body.body.4.argument.expressions.1.callee"],isNativeFunction:["body.0.body.body.1.argument.expressions.0.right.body.body.0.test.right.argument.callee"],construct:["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.callee"]}}),wrapRegExp:BS("7.19.0",'function _wrapRegExp(){_wrapRegExp=function(e,r){return new BabelRegExp(e,void 0,r)};var e=RegExp.prototype,r=new WeakMap;function BabelRegExp(e,t,p){var o=RegExp(e,t);return r.set(o,p||r.get(e)),setPrototypeOf(o,BabelRegExp.prototype)}function buildGroups(e,t){var p=r.get(t);return Object.keys(p).reduce((function(r,t){var o=p[t];if("number"==typeof o)r[t]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1]+)>/g,(function(e,r){var t=o[r];return"$"+(Array.isArray(t)?t.join("$"):t)})))}if("function"==typeof p){var i=this;return e[Symbol.replace].call(this,t,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(buildGroups(e,i)),p.apply(this,e)}))}return e[Symbol.replace].call(this,t,p)},_wrapRegExp.apply(this,arguments)}',{globals:["RegExp","WeakMap","Object","Symbol","Array"],locals:{_wrapRegExp:["body.0.id","body.0.body.body.4.argument.expressions.3.callee.object","body.0.body.body.0.expression.left"]},exportBindingAssignments:["body.0.body.body.0.expression"],exportName:"_wrapRegExp",dependencies:{setPrototypeOf:["body.0.body.body.2.body.body.1.argument.expressions.1.callee"],inherits:["body.0.body.body.4.argument.expressions.0.callee"]}}),writeOnlyError:BS("7.12.13","function _writeOnlyError(r){throw new TypeError('\"'+r+'\" is write-only')}",{globals:["TypeError"],locals:{_writeOnlyError:["body.0.id"]},exportBindingAssignments:[],exportName:"_writeOnlyError",dependencies:{}})};Object.assign(LS,{AwaitValue:BS("7.0.0-beta.0","function _AwaitValue(t){this.wrapped=t}",{globals:[],locals:{_AwaitValue:["body.0.id"]},exportBindingAssignments:[],exportName:"_AwaitValue",dependencies:{}}),applyDecs:BS("7.17.8",'function old_createMetadataMethodsForProperty(e,t,a,r){return{getMetadata:function(o){old_assertNotFinished(r,"getMetadata"),old_assertMetadataKey(o);var i=e[o];if(void 0!==i)if(1===t){var n=i.public;if(void 0!==n)return n[a]}else if(2===t){var l=i.private;if(void 0!==l)return l.get(a)}else if(Object.hasOwnProperty.call(i,"constructor"))return i.constructor},setMetadata:function(o,i){old_assertNotFinished(r,"setMetadata"),old_assertMetadataKey(o);var n=e[o];if(void 0===n&&(n=e[o]={}),1===t){var l=n.public;void 0===l&&(l=n.public={}),l[a]=i}else if(2===t){var s=n.priv;void 0===s&&(s=n.private=new Map),s.set(a,i)}else n.constructor=i}}}function old_convertMetadataMapToFinal(e,t){var a=e[Symbol.metadata||Symbol.for("Symbol.metadata")],r=Object.getOwnPropertySymbols(t);if(0!==r.length){for(var o=0;o=0;m--){var b;void 0!==(p=old_memberDec(h[m],r,c,l,s,o,i,n,f))&&(old_assertValidReturnValue(o,p),0===o?b=p:1===o?(b=old_getInit(p),v=p.get||f.get,y=p.set||f.set,f={get:v,set:y}):f=p,void 0!==b&&(void 0===d?d=b:"function"==typeof d?d=[d,b]:d.push(b)))}if(0===o||1===o){if(void 0===d)d=function(e,t){return t};else if("function"!=typeof d){var g=d;d=function(e,t){for(var a=t,r=0;r3,m=v>=5;if(m?(u=t,f=r,0!=(v-=5)&&(p=n=n||[])):(u=t.prototype,f=a,0!==v&&(p=i=i||[])),0!==v&&!h){var b=m?s:l,g=b.get(y)||0;if(!0===g||3===g&&4!==v||4===g&&3!==v)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+y);!g&&v>2?b.set(y,v):b.set(y,!0)}old_applyMemberDec(e,u,d,y,v,m,h,f,p)}}old_pushInitializers(e,i),old_pushInitializers(e,n)}function old_pushInitializers(e,t){t&&e.push((function(e){for(var a=0;a0){for(var o=[],i=t,n=t.name,l=r.length-1;l>=0;l--){var s={v:!1};try{var c=Object.assign({kind:"class",name:n,addInitializer:old_createAddInitializerMethod(o,s)},old_createMetadataMethodsForProperty(a,0,n,s)),d=r[l](i,c)}finally{s.v=!0}void 0!==d&&(old_assertValidReturnValue(10,d),i=d)}e.push(i,(function(){for(var e=0;e=0;v--){var g;void 0!==(f=memberDec(h[v],a,c,o,n,i,s,u))&&(assertValidReturnValue(n,f),0===n?g=f:1===n?(g=f.init,p=f.get||u.get,d=f.set||u.set,u={get:p,set:d}):u=f,void 0!==g&&(void 0===l?l=g:"function"==typeof l?l=[l,g]:l.push(g)))}if(0===n||1===n){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var y=l;l=function(e,t){for(var r=t,a=0;a3,h=f>=5;if(h?(l=t,0!=(f-=5)&&(u=n=n||[])):(l=t.prototype,0!==f&&(u=a=a||[])),0!==f&&!d){var v=h?s:i,g=v.get(p)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDec(e,l,c,p,f,h,d,u)}}pushInitializers(e,a),pushInitializers(e,n)}(a,e,t),function(e,t,r){if(r.length>0){for(var a=[],n=t,i=t.name,s=r.length-1;s>=0;s--){var o={v:!1};try{var c=r[s](n,{kind:"class",name:i,addInitializer:createAddInitializerMethod(a,o)})}finally{o.v=!0}void 0!==c&&(assertValidReturnValue(10,c),n=c)}e.push(n,(function(){for(var e=0;e=0;g--){var y;void 0!==(p=memberDec(v[g],n,c,s,a,i,o,f))&&(assertValidReturnValue(a,p),0===a?y=p:1===a?(y=p.init,d=p.get||f.get,h=p.set||f.set,f={get:d,set:h}):f=p,void 0!==y&&(void 0===l?l=y:"function"==typeof l?l=[l,y]:l.push(y)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var m=l;l=function(e,t){for(var r=t,n=0;n3,h=f>=5;if(h?(l=e,0!=(f-=5)&&(u=n=n||[])):(l=e.prototype,0!==f&&(u=r=r||[])),0!==f&&!d){var v=h?o:i,g=v.get(p)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDec(a,l,c,p,f,h,d,u)}}return pushInitializers(a,r),pushInitializers(a,n),a}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var o={v:!1};try{var s=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,o)})}finally{o.v=!0}void 0!==s&&(assertValidReturnValue(10,s),n=s)}return[n,function(){for(var e=0;e=0;m--){var b;void 0!==(h=memberDec(g[m],n,u,o,a,i,s,p,c))&&(assertValidReturnValue(a,h),0===a?b=h:1===a?(b=h.init,v=h.get||p.get,y=h.set||p.set,p={get:v,set:y}):p=h,void 0!==b&&(void 0===l?l=b:"function"==typeof l?l=[l,b]:l.push(b)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var I=l;l=function(e,t){for(var r=t,n=0;n3,y=d>=5,g=r;if(y?(f=e,0!=(d-=5)&&(p=a=a||[]),v&&!i&&(i=function(t){return checkInRHS(t)===e}),g=i):(f=e.prototype,0!==d&&(p=n=n||[])),0!==d&&!v){var m=y?c:o,b=m.get(h)||0;if(!0===b||3===b&&4!==d||4===b&&3!==d)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);!b&&d>2?m.set(h,d):m.set(h,!0)}applyMemberDec(s,f,l,h,d,y,v,p,g)}}return pushInitializers(s,n),pushInitializers(s,a),s}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var s={v:!1};try{var o=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,s)})}finally{s.v=!0}void 0!==o&&(assertValidReturnValue(10,o),n=o)}return[n,function(){for(var e=0;e=0;j-=r?2:1){var D=v[j],E=r?v[j-1]:void 0,I={},O={kind:["field","accessor","method","getter","setter","class"][o],name:n,metadata:a,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");s(t,"An initializer","be",!0),c.push(t)}.bind(null,I)};try{if(b)(y=s(D.call(E,P,O),"class decorators","return"))&&(P=y);else{var k,F;O.static=l,O.private=f,f?2===o?k=function(e){return m(e),w.value}:(o<4&&(k=i(w,"get",m)),3!==o&&(F=i(w,"set",m))):(k=function(e){return e[n]},(o<2||4===o)&&(F=function(e,t){e[n]=t}));var N=O.access={has:f?h.bind():function(e){return n in e}};if(k&&(N.get=k),F&&(N.set=F),P=D.call(E,d?{get:w.get,set:w.set}:w[A],O),d){if("object"==typeof P&&P)(y=s(P.get,"accessor.get"))&&(w.get=y),(y=s(P.set,"accessor.set"))&&(w.set=y),(y=s(P.init,"accessor.init"))&&S.push(y);else if(void 0!==P)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0")}else s(P,(p?"field":"method")+" decorators","return")&&(p?S.push(P):w[A]=P)}}finally{I.v=!0}}return(p||d)&&u.push((function(e,t){for(var r=S.length-1;r>=0;r--)t=S[r].call(e,t);return t})),p||b||(f?d?u.push(i(w,"get"),i(w,"set")):u.push(2===o?w[A]:i.call.bind(w[A])):Object.defineProperty(e,n,w)),P}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var l=a[Symbol.metadata||Symbol.for("Symbol.metadata")];var f=Object.create(null==l?null:l),p=function(e,t,r,n){var o,a,i=[],s=function(t){return checkInRHS(t)===e},u=new Map;function l(e){e&&i.push(c.bind(null,e))}for(var f=0;f3,y=16&d,v=!!(8&d),g=0==(d&=7),b=h+"/"+v;if(!g&&!m){var w=u.get(b);if(!0===w||3===w&&4!==d||4===w&&3!==d)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);u.set(b,!(d>2)||d)}applyDec(v?e:e.prototype,p,y,m?"#"+h:toPropertyKey(h),d,n,v?a=a||[]:o=o||[],i,v,m,g,1===d,v&&m?s:r)}}return l(o),l(a),i}(e,t,o,f);return r.length||u(e,f),{e:p,get c(){var t=[];return r.length&&[u(applyDec(e,[r],n,e.name,5,f,t),f),c.bind(null,t,e)]}}}',{globals:["TypeError","Array","Object","Error","Symbol","Map"],locals:{applyDecs2305:["body.0.id"]},exportBindingAssignments:[],exportName:"applyDecs2305",dependencies:{checkInRHS:["body.0.body.body.6.declarations.1.init.callee.body.body.0.declarations.3.init.body.body.0.argument.left.callee"],setFunctionName:["body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.0.consequent.right.properties.0.value.callee","body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.1.right.callee"],toPropertyKey:["body.0.body.body.6.declarations.1.init.callee.body.body.2.body.body.1.consequent.body.2.expression.arguments.3.alternate.callee"]}}),classApplyDescriptorDestructureSet:BS("7.13.10",'function _classApplyDescriptorDestructureSet(e,t){if(t.set)return"__destrObj"in t||(t.__destrObj={set value(r){t.set.call(e,r)}}),t.__destrObj;if(!t.writable)throw new TypeError("attempted to set read only private field");return t}',{globals:["TypeError"],locals:{_classApplyDescriptorDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorDestructureSet",dependencies:{}}),classApplyDescriptorGet:BS("7.13.10","function _classApplyDescriptorGet(e,t){return t.get?t.get.call(e):t.value}",{globals:[],locals:{_classApplyDescriptorGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorGet",dependencies:{}}),classApplyDescriptorSet:BS("7.13.10",'function _classApplyDescriptorSet(e,t,l){if(t.set)t.set.call(e,l);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=l}}',{globals:["TypeError"],locals:{_classApplyDescriptorSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorSet",dependencies:{}}),classCheckPrivateStaticAccess:BS("7.13.10","function _classCheckPrivateStaticAccess(s,a,r){return assertClassBrand(a,s,r)}",{globals:[],locals:{_classCheckPrivateStaticAccess:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCheckPrivateStaticAccess",dependencies:{assertClassBrand:["body.0.body.body.0.argument.callee"]}}),classCheckPrivateStaticFieldDescriptor:BS("7.13.10",'function _classCheckPrivateStaticFieldDescriptor(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}',{globals:["TypeError"],locals:{_classCheckPrivateStaticFieldDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCheckPrivateStaticFieldDescriptor",dependencies:{}}),classExtractFieldDescriptor:BS("7.13.10","function _classExtractFieldDescriptor(e,t){return classPrivateFieldGet2(t,e)}",{globals:[],locals:{_classExtractFieldDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_classExtractFieldDescriptor",dependencies:{classPrivateFieldGet2:["body.0.body.body.0.argument.callee"]}}),classPrivateFieldDestructureSet:BS("7.4.4","function _classPrivateFieldDestructureSet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescriptorDestructureSet(e,r)}",{globals:[],locals:{_classPrivateFieldDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldDestructureSet",dependencies:{classApplyDescriptorDestructureSet:["body.0.body.body.1.argument.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]}}),classPrivateFieldGet:BS("7.0.0-beta.0","function _classPrivateFieldGet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescriptorGet(e,r)}",{globals:[],locals:{_classPrivateFieldGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldGet",dependencies:{classApplyDescriptorGet:["body.0.body.body.1.argument.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]}}),classPrivateFieldSet:BS("7.0.0-beta.0","function _classPrivateFieldSet(e,t,r){var s=classPrivateFieldGet2(t,e);return classApplyDescriptorSet(e,s,r),r}",{globals:[],locals:{_classPrivateFieldSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldSet",dependencies:{classApplyDescriptorSet:["body.0.body.body.1.argument.expressions.0.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]}}),classPrivateMethodGet:BS("7.1.6","function _classPrivateMethodGet(s,a,r){return assertClassBrand(a,s),r}",{globals:[],locals:{_classPrivateMethodGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodGet",dependencies:{assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"]}}),classPrivateMethodSet:BS("7.1.6",'function _classPrivateMethodSet(){throw new TypeError("attempted to reassign private method")}',{globals:["TypeError"],locals:{_classPrivateMethodSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodSet",dependencies:{}}),classStaticPrivateFieldDestructureSet:BS("7.13.10",'function _classStaticPrivateFieldDestructureSet(t,r,s){return assertClassBrand(r,t),classCheckPrivateStaticFieldDescriptor(s,"set"),classApplyDescriptorDestructureSet(t,s)}',{globals:[],locals:{_classStaticPrivateFieldDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldDestructureSet",dependencies:{classApplyDescriptorDestructureSet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]}}),classStaticPrivateFieldSpecGet:BS("7.0.2",'function _classStaticPrivateFieldSpecGet(t,s,r){return assertClassBrand(s,t),classCheckPrivateStaticFieldDescriptor(r,"get"),classApplyDescriptorGet(t,r)}',{globals:[],locals:{_classStaticPrivateFieldSpecGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldSpecGet",dependencies:{classApplyDescriptorGet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]}}),classStaticPrivateFieldSpecSet:BS("7.0.2",'function _classStaticPrivateFieldSpecSet(s,t,r,e){return assertClassBrand(t,s),classCheckPrivateStaticFieldDescriptor(r,"set"),classApplyDescriptorSet(s,r,e),e}',{globals:[],locals:{_classStaticPrivateFieldSpecSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldSpecSet",dependencies:{classApplyDescriptorSet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]}}),classStaticPrivateMethodSet:BS("7.3.2",'function _classStaticPrivateMethodSet(){throw new TypeError("attempted to set read only static private field")}',{globals:["TypeError"],locals:{_classStaticPrivateMethodSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateMethodSet",dependencies:{}}),defineEnumerableProperties:BS("7.0.0-beta.0",'function _defineEnumerableProperties(e,r){for(var t in r){var n=r[t];n.configurable=n.enumerable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,t,n)}if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(r),b=0;b0;)try{var o=r.pop(),p=o.d.call(o.v);if(o.a)return Promise.resolve(p).then(next,err)}catch(r){return err(r)}if(s)throw e}function err(r){return e=s?new dispose_SuppressedError(e,r):r,s=!0,next()}return next()}',{globals:["SuppressedError","Error","Object","Promise"],locals:{dispose_SuppressedError:["body.0.id","body.0.body.body.0.argument.expressions.0.alternate.expressions.1.left.object","body.0.body.body.0.argument.expressions.0.alternate.expressions.1.right.arguments.1.properties.0.value.properties.0.value","body.0.body.body.0.argument.expressions.1.callee","body.1.body.body.1.body.body.0.argument.expressions.0.right.consequent.callee","body.0.body.body.0.argument.expressions.0.consequent.left","body.0.body.body.0.argument.expressions.0.alternate.expressions.0.left"],_dispose:["body.1.id"]},exportBindingAssignments:[],exportName:"_dispose",dependencies:{}}),objectSpread:BS("7.0.0-beta.0",'function _objectSpread(e){for(var r=1;r0;)e=e[n],n=a.shift();if(!(arguments.length>2))return e[n];e[n]=r}catch(s){throw s.message+=" (when accessing "+t+")",s}}function GS(e,t,r,a,n,s){var i=t.locals,o=t.dependencies,d=t.exportBindingAssignments,c=t.exportName,l=new Set(a||[]);r&&l.add(r);for(var u=0,f=(Object.entries||function(e){return Object.keys(e).map((function(t){return[t,e[t]]}))})(i);u100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(o){var d=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return d*s;case"weeks":case"week":case"w":return d*n;case"days":case"day":case"d":return d*a;case"hours":case"hour":case"hrs":case"hr":case"h":return d*r;case"minutes":case"minute":case"mins":case"min":case"m":return d*t;case"seconds":case"second":case"secs":case"sec":case"s":return d*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function o(n){var s=Math.abs(n);return s>=a?Math.round(n/a)+"d":s>=r?Math.round(n/r)+"h":s>=t?Math.round(n/t)+"m":s>=e?Math.round(n/e)+"s":n+"ms"}function d(n){var s=Math.abs(n);return s>=a?c(n,s,a,"day"):s>=r?c(n,s,r,"hour"):s>=t?c(n,s,t,"minute"):s>=e?c(n,s,e,"second"):n+" ms"}function c(e,t,r,a){var n=t>=1.5*r;return Math.round(e/r)+" "+a+(n?"s":"")}return YS=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return i(e);if("number"===r&&isFinite(e))return t.long?d(e):o(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))},YS}function bA(e){function t(e){for(var t=0,a=0;a=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));var e}function a(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),this.useColors){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var a=0,n=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(a++,"%c"===e&&(n=a))})),t.splice(n,0,r)}}function n(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(SJ){}}function s(){var e;try{e=t.storage.getItem("debug")}catch(SJ){}return!e&&"undefined"!==typeof ve&&"env"in ve&&(e=ve.env.DEBUG),e}function i(){try{return localStorage}catch(SJ){}}t.formatArgs=a,t.save=n,t.load=s,t.useColors=r,t.storage=i(),t.destroy=function(){var e=!1;return function(){e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=vA(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(SJ){return"[UnexpectedJSONParseError]: "+SJ.message}}}(hA,hA.exports);var xA=hA.exports,RA=Hx,EA=qx,TA=Fs,wA=is,SA=Us,AA=Ge,jA=vs,_A=ze,CA=Dt,kA=Ot,PA=Ra,DA=Ea,IA=et,NA=it,OA=Vx,FA=Kx,BA=us,LA=Qx,MA=yt,UA=Pt,HA=$x.isCompatTag;function GA(e){var t=this.node,r=this.parent;if(!_A(t,e)&&!DA(r,e)){if(!PA(t,e))return!1;if(HA(t.name))return!1}return OA(t,r,this.parentPath.parent)}function qA(){var e=this.node,t=this.parent;return IA(e)&&OA(e,t)}function WA(){var e=this.node,t=this.parent,r=this.parentPath.parent;return _A(e)&&RA(e,t,r)}function zA(){var e=this.node,t=this.parent;if(BA(e)){if(MA(e)){if(jA(t,{left:e}))return!1;if(AA(t,{init:e}))return!1}return!0}return!1}function VA(){return this.isIdentifier()?this.isReferencedIdentifier():wA(this.node)}function KA(){return FA(this.node,this.parent)}function YA(){return OA(this.node,this.parent)}function XA(){return EA(this.node)}function JA(){return LA(this.node)}function QA(){return this.node&&!!this.node.loc}function $A(){return!this.isUser()}function ZA(e){return this.scope.isPure(this.node,e)}function ej(){var e=this.node;return!!SA(e)||(CA(e)?"type"===e.importKind||"typeof"===e.importKind:TA(e)?"type"===e.exportKind:!!kA(e)&&("type"===e.importKind||"typeof"===e.importKind))}function tj(){var e;return NA(this.node)&&(null==(e=this.parentPath)?void 0:e.isObjectPattern())}function rj(){var e;return NA(this.node)&&(null==(e=this.parentPath)?void 0:e.isObjectExpression())}function aj(){return UA(this.node,{await:!0})}e.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},e.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")};var nj=Object.freeze({__proto__:null,isBindingIdentifier:WA,isBlockScoped:XA,isExpression:VA,isFlow:ej,isForAwaitStatement:aj,isGenerated:$A,isPure:ZA,isReferenced:YA,isReferencedIdentifier:GA,isReferencedMemberExpression:qA,isRestProperty:tj,isScope:KA,isSpreadProperty:rj,isStatement:zA,isUser:QA,isVar:JA}),sj=po,ij=pd,oj=co,dj=fd,cj=Ee;function lj(e){return e in mA}function uj(e){return null==e?void 0:e._exploded}function pj(e){if(uj(e))return e;e._exploded=!0;for(var t=0,r=Object.keys(e);t1&&(t+=r),r++}while(this.hasLabel(t)||this.hasBinding(t)||this.hasGlobal(t)||this.hasReference(t));var a=this.getProgramParent();return a.references[t]=!0,a.uids[t]=!0,t},t.generateUidBasedOnNode=function(e,t){var r=[];U_(e,r);var a=r.join("$");return a=a.replace(/^_/,"")||t||"ref",this.generateUid(a.slice(0,20))},t.generateUidIdentifierBasedOnNode=function(e,t){return Jj(this.generateUidBasedOnNode(e,t))},t.isStatic=function(e){if(R_(e)||b_(e)||N_(e))return!0;if(o_(e)){var t=this.getBinding(e.name);return t?t.constant:this.hasBinding(e.name)}return!1},t.maybeGenerateMemoised=function(e,t){if(this.isStatic(e))return null;var r=this.generateUidIdentifierBasedOnNode(e);return t?r:(this.push({id:r}),Yj(r))},t.checkBlockScopedCollisions=function(e,t,r,a){if("param"!==t&&"local"!==e.kind&&("let"===t||"let"===e.kind||"const"===e.kind||"module"===e.kind||"param"===e.kind&&"const"===t))throw this.path.hub.buildError(a,'Duplicate declaration "'+r+'"',TypeError)},t.rename=function(e,t){var r=this.getBinding(e);r&&(t||(t=this.generateUidIdentifier(e).name),new jj(r,e,t).rename(arguments[2]))},t.dump=function(){var e="-".repeat(60);console.log(e);var t=this;do{console.log("#",t.block.type);for(var r=0,a=Object.keys(t.bindings);r0)&&this.isPure(e.body,t);if(t_(e)){for(var i,o=p(e.body);!(i=o()).done;){var d=i.value;if(!this.isPure(d,t))return!1}return!0}if($j(e))return this.isPure(e.left,t)&&this.isPure(e.right,t);if(Qj(e)||D_(e)){for(var c,l=p(e.elements);!(c=l()).done;){var u=c.value;if(null!==u&&!this.isPure(u,t))return!1}return!0}if(g_(e)||P_(e)){for(var f,g=p(e.properties);!(f=g()).done;){var m=f.value;if(!this.isPure(m,t))return!1}return!0}if(u_(e))return!(e.computed&&!this.isPure(e.key,t))&&!((null==(n=e.decorators)?void 0:n.length)>0);if(m_(e))return!(e.computed&&!this.isPure(e.key,t))&&!((null==(s=e.decorators)?void 0:s.length)>0)&&!((I_(e)||e.static)&&null!==e.value&&!this.isPure(e.value,t));if(E_(e))return this.isPure(e.argument,t);if(x_(e)){for(var h,y=p(e.expressions);!(h=y()).done;){var b=h.value;if(!this.isPure(b,t))return!1}return!0}return v_(e)?S_(e.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(e.quasi,t):l_(e)?!e.computed&&o_(e.object)&&"Symbol"===e.object.name&&o_(e.property)&&"for"!==e.property.name&&!this.hasBinding("Symbol",{noGlobals:!0}):Zj(e)?S_(e.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&1===e.arguments.length&&Ye(e.arguments[0]):h_(e)},t.setData=function(e,t){return this.data[e]=t},t.getData=function(e){var t=this;do{var r=t.data[e];if(null!=r)return r}while(t=t.parent)},t.removeData=function(e){var t=this;do{null!=t.data[e]&&(t.data[e]=null)}while(t=t.parent)},t.init=function(){this.inited||(this.inited=!0,this.crawl())},t.crawl=function(){var e=this.path;this.references=Object.create(null),this.bindings=Object.create(null),this.globals=Object.create(null),this.uids=Object.create(null),this.data=Object.create(null);var t=this.getProgramParent();if(!t.crawling){var r={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,"Program"!==e.type&&uj(H_)){for(var a,n=p(H_.enter);!(a=n()).done;)a.value.call(r,e,r);var s=H_[e.type];if(s)for(var i,o=p(s.enter);!(i=o()).done;)i.value.call(r,e,r)}e.traverse(H_,r),this.crawling=!1;for(var d,c=p(r.assignments);!(d=c()).done;){for(var l=d.value,u=l.getAssignmentIdentifiers(),f=0,g=Object.keys(u);f1&&(r+=t),"_"+r},q_.prototype.toArray=function(e,t,r){if(o_(e)){var a=this.getBinding(e.name);if(null!=a&&a.constant&&a.path.isGenericType("Array"))return e}if(Qj(e))return e;if(o_(e,{name:"arguments"}))return Kj(A_(A_(A_(Jj("Array"),Jj("prototype")),Jj("slice")),Jj("call")),[e]);var n,s=[e];return!0===t?n="toConsumableArray":"number"===typeof t?(s.push(j_(t)),n="slicedToArray"):n="toArray",r&&(s.unshift(this.path.hub.addHelper(n)),n="maybeArrayLike"),Kj(this.path.hub.addHelper(n),s)},q_.prototype.getAllBindingsOfKind=function(){for(var e=Object.create(null),t=arguments.length,r=new Array(t),a=0;a0)throw new Error("Invalid string. Length must be a multiple of 4");s="="===e[o-2]?2:"="===e[o-1]?1:0,i=new J_(3*o/4-s),a=s>0?o-4:o;var d=0;for(t=0,r=0;t>16&255,i[d++]=n>>8&255,i[d++]=255&n;return 2===s?(n=X_[e.charCodeAt(t)]<<2|X_[e.charCodeAt(t+1)]>>4,i[d++]=255&n):1===s&&(n=X_[e.charCodeAt(t)]<<10|X_[e.charCodeAt(t+1)]<<4|X_[e.charCodeAt(t+2)]>>2,i[d++]=n>>8&255,i[d++]=255&n),i}function eC(e){return Y_[e>>18&63]+Y_[e>>12&63]+Y_[e>>6&63]+Y_[63&e]}function tC(e,t,r){for(var a,n=[],s=t;sd?d:o+i));return 1===a?(t=e[r-1],n+=Y_[t>>2],n+=Y_[t<<4&63],n+="=="):2===a&&(t=(e[r-2]<<8)+e[r-1],n+=Y_[t>>10],n+=Y_[t>>4&63],n+=Y_[t<<2&63],n+="="),s.push(n),s.join("")}function aC(e,t,r,a,n){var s,i,o=8*n-a-1,d=(1<>1,l=-7,u=r?n-1:0,p=r?-1:1,f=e[t+u];for(u+=p,s=f&(1<<-l)-1,f>>=-l,l+=o;l>0;s=256*s+e[t+u],u+=p,l-=8);for(i=s&(1<<-l)-1,s>>=-l,l+=a;l>0;i=256*i+e[t+u],u+=p,l-=8);if(0===s)s=1-c;else{if(s===d)return i?NaN:1/0*(f?-1:1);i+=Math.pow(2,a),s-=c}return(f?-1:1)*i*Math.pow(2,s-a)}function nC(e,t,r,a,n,s){var i,o,d,c=8*s-n-1,l=(1<>1,p=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,f=a?0:s-1,g=a?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,i=l):(i=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-i))<1&&(i--,d*=2),(t+=i+u>=1?p/d:p*Math.pow(2,1-u))*d>=2&&(i++,d/=2),i+u>=l?(o=0,i=l):i+u>=1?(o=(t*d-1)*Math.pow(2,n),i+=u):(o=t*Math.pow(2,u-1)*Math.pow(2,n),i=0));n>=8;e[r+f]=255&o,f+=g,o/=256,n-=8);for(i=i<0;e[r+f]=255&i,f+=g,i/=256,c-=8);e[r+f-g]|=128*m}var sC={}.toString,iC=Array.isArray||function(e){return"[object Array]"==sC.call(e)},oC=50;function dC(){return lC.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function cC(e,t){if(dC()=dC())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+dC().toString(16)+" bytes");return 0|e}function xC(e){return!(null==e||!e._isBuffer)}function RC(e,t){if(xC(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return QC(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return ek(e).length;default:if(a)return QC(e).length;t=(""+t).toLowerCase(),a=!0}}function EC(e,t,r){var a=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return LC(this,t,r);case"utf8":case"utf-8":return IC(this,t,r);case"ascii":return FC(this,t,r);case"latin1":case"binary":return BC(this,t,r);case"base64":return DC(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return MC(this,t,r);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function TC(e,t,r){var a=e[t];e[t]=e[r],e[r]=a}function wC(e,t,r,a,n){if(0===e.length)return-1;if("string"===typeof r?(a=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"===typeof t&&(t=lC.from(t,a)),xC(t))return 0===t.length?-1:SC(e,t,r,a,n);if("number"===typeof t)return t&=255,lC.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):SC(e,[t],r,a,n);throw new TypeError("val must be string, number or Buffer")}function SC(e,t,r,a,n){var s,i=1,o=e.length,d=t.length;if(void 0!==a&&("ucs2"===(a=String(a).toLowerCase())||"ucs-2"===a||"utf16le"===a||"utf-16le"===a)){if(e.length<2||t.length<2)return-1;i=2,o/=2,d/=2,r/=2}function c(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(n){var l=-1;for(s=r;so&&(r=o-d),s=r;s>=0;s--){for(var u=!0,p=0;pn&&(a=n):a=n;var s=t.length;if(s%2!==0)throw new TypeError("Invalid hex string");a>s/2&&(a=s/2);for(var i=0;i239?4:c>223?3:c>191?2:1;if(n+u<=r)switch(u){case 1:c<128&&(l=c);break;case 2:128===(192&(s=e[n+1]))&&(d=(31&c)<<6|63&s)>127&&(l=d);break;case 3:s=e[n+1],i=e[n+2],128===(192&s)&&128===(192&i)&&(d=(15&c)<<12|(63&s)<<6|63&i)>2047&&(d<55296||d>57343)&&(l=d);break;case 4:s=e[n+1],i=e[n+2],o=e[n+3],128===(192&s)&&128===(192&i)&&128===(192&o)&&(d=(15&c)<<18|(63&s)<<12|(63&i)<<6|63&o)>65535&&d<1114112&&(l=d)}null===l?(l=65533,u=1):l>65535&&(l-=65536,a.push(l>>>10&1023|55296),l=56320|1023&l),a.push(l),n+=u}return OC(a)}lC.TYPED_ARRAY_SUPPORT=void 0===D.TYPED_ARRAY_SUPPORT||D.TYPED_ARRAY_SUPPORT,dC(),lC.poolSize=8192,lC._augment=function(e){return e.__proto__=lC.prototype,e},lC.from=function(e,t,r){return uC(null,e,t,r)},lC.TYPED_ARRAY_SUPPORT&&(lC.prototype.__proto__=Uint8Array.prototype,lC.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&lC[Symbol.species]),lC.alloc=function(e,t,r){return fC(null,e,t,r)},lC.allocUnsafe=function(e){return gC(null,e)},lC.allocUnsafeSlow=function(e){return gC(null,e)},lC.isBuffer=ak,lC.compare=function(e,t){if(!xC(e)||!xC(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,a=t.length,n=0,s=Math.min(r,a);n0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},lC.prototype.compare=function(e,t,r,a,n){if(!xC(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===a&&(a=0),void 0===n&&(n=this.length),t<0||r>e.length||a<0||n>this.length)throw new RangeError("out of range index");if(a>=n&&t>=r)return 0;if(a>=n)return-1;if(t>=r)return 1;if(this===e)return 0;for(var s=(n>>>=0)-(a>>>=0),i=(r>>>=0)-(t>>>=0),o=Math.min(s,i),d=this.slice(a,n),c=e.slice(t,r),l=0;ln)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var s=!1;;)switch(a){case"hex":return AC(this,e,t,r);case"utf8":case"utf-8":return jC(this,e,t,r);case"ascii":return _C(this,e,t,r);case"latin1":case"binary":return CC(this,e,t,r);case"base64":return kC(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return PC(this,e,t,r);default:if(s)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),s=!0}},lC.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var NC=4096;function OC(e){var t=e.length;if(t<=NC)return String.fromCharCode.apply(String,e);for(var r="",a=0;aa)&&(r=a);for(var n="",s=t;sr)throw new RangeError("Trying to access beyond buffer length")}function HC(e,t,r,a,n,s){if(!xC(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function GC(e,t,r,a){t<0&&(t=65535+t+1);for(var n=0,s=Math.min(e.length-r,2);n>>8*(a?n:1-n)}function qC(e,t,r,a){t<0&&(t=4294967295+t+1);for(var n=0,s=Math.min(e.length-r,4);n>>8*(a?n:3-n)&255}function WC(e,t,r,a,n,s){if(r+a>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function zC(e,t,r,a,n){return n||WC(e,t,r,4),nC(e,t,r,a,23,4),r+4}function VC(e,t,r,a,n){return n||WC(e,t,r,8),nC(e,t,r,a,52,8),r+8}lC.prototype.slice=function(e,t){var r,a=this.length;if((e=~~e)<0?(e+=a)<0&&(e=0):e>a&&(e=a),(t=void 0===t?a:~~t)<0?(t+=a)<0&&(t=0):t>a&&(t=a),t0&&(n*=256);)a+=this[e+--t]*n;return a},lC.prototype.readUInt8=function(e,t){return t||UC(e,1,this.length),this[e]},lC.prototype.readUInt16LE=function(e,t){return t||UC(e,2,this.length),this[e]|this[e+1]<<8},lC.prototype.readUInt16BE=function(e,t){return t||UC(e,2,this.length),this[e]<<8|this[e+1]},lC.prototype.readUInt32LE=function(e,t){return t||UC(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},lC.prototype.readUInt32BE=function(e,t){return t||UC(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},lC.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||UC(e,t,this.length);for(var a=this[e],n=1,s=0;++s=(n*=128)&&(a-=Math.pow(2,8*t)),a},lC.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||UC(e,t,this.length);for(var a=t,n=1,s=this[e+--a];a>0&&(n*=256);)s+=this[e+--a]*n;return s>=(n*=128)&&(s-=Math.pow(2,8*t)),s},lC.prototype.readInt8=function(e,t){return t||UC(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},lC.prototype.readInt16LE=function(e,t){t||UC(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},lC.prototype.readInt16BE=function(e,t){t||UC(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},lC.prototype.readInt32LE=function(e,t){return t||UC(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},lC.prototype.readInt32BE=function(e,t){return t||UC(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},lC.prototype.readFloatLE=function(e,t){return t||UC(e,4,this.length),aC(this,e,!0,23,4)},lC.prototype.readFloatBE=function(e,t){return t||UC(e,4,this.length),aC(this,e,!1,23,4)},lC.prototype.readDoubleLE=function(e,t){return t||UC(e,8,this.length),aC(this,e,!0,52,8)},lC.prototype.readDoubleBE=function(e,t){return t||UC(e,8,this.length),aC(this,e,!1,52,8)},lC.prototype.writeUIntLE=function(e,t,r,a){e=+e,t|=0,r|=0,a||HC(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,s=0;for(this[t]=255&e;++s=0&&(s*=256);)this[t+n]=e/s&255;return t+r},lC.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||HC(this,e,t,1,255,0),lC.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},lC.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||HC(this,e,t,2,65535,0),lC.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):GC(this,e,t,!0),t+2},lC.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||HC(this,e,t,2,65535,0),lC.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):GC(this,e,t,!1),t+2},lC.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||HC(this,e,t,4,4294967295,0),lC.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):qC(this,e,t,!0),t+4},lC.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||HC(this,e,t,4,4294967295,0),lC.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):qC(this,e,t,!1),t+4},lC.prototype.writeIntLE=function(e,t,r,a){if(e=+e,t|=0,!a){var n=Math.pow(2,8*r-1);HC(this,e,t,r,n-1,-n)}var s=0,i=1,o=0;for(this[t]=255&e;++s=0&&(i*=256);)e<0&&0===o&&0!==this[t+s+1]&&(o=1),this[t+s]=(e/i|0)-o&255;return t+r},lC.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||HC(this,e,t,1,127,-128),lC.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},lC.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||HC(this,e,t,2,32767,-32768),lC.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):GC(this,e,t,!0),t+2},lC.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||HC(this,e,t,2,32767,-32768),lC.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):GC(this,e,t,!1),t+2},lC.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||HC(this,e,t,4,2147483647,-2147483648),lC.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):qC(this,e,t,!0),t+4},lC.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||HC(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),lC.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):qC(this,e,t,!1),t+4},lC.prototype.writeFloatLE=function(e,t,r){return zC(this,e,t,!0,r)},lC.prototype.writeFloatBE=function(e,t,r){return zC(this,e,t,!1,r)},lC.prototype.writeDoubleLE=function(e,t,r){return VC(this,e,t,!0,r)},lC.prototype.writeDoubleBE=function(e,t,r){return VC(this,e,t,!1,r)},lC.prototype.copy=function(e,t,r,a){if(r||(r=0),a||0===a||(a=this.length),t>=e.length&&(t=e.length),t||(t=0),a>0&&a=this.length)throw new RangeError("sourceStart out of bounds");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-t=0;--n)e[n+t]=this[n+r];else if(s<1e3||!lC.TYPED_ARRAY_SUPPORT)for(n=0;n>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(s=t;s55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(i+1===a){(t-=3)>-1&&s.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(t-=3)>-1&&s.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function $C(e){for(var t=[],r=0;r>8,n=r%256,s.push(n),s.push(a);return s}function ek(e){return Z_(YC(e))}function tk(e,t,r,a){for(var n=0;n=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function rk(e){return e!==e}function ak(e){return null!=e&&(!!e._isBuffer||nk(e)||sk(e))}function nk(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function sk(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&nk(e.slice(0,0))}var ik,ok={exports:{}};function dk(){return ik||(ik=1,function(e,t){!function(e,r){r(t)}(0,(function(e){for(var t=",".charCodeAt(0),r=";".charCodeAt(0),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(64),s=new Uint8Array(128),i=0;i>>=1,c&&(n=-2147483648|-n),r[a]+=n,t}function p(e,r,a){return!(r>=a)&&e.charCodeAt(r)!==t}function f(e){e.sort(g)}function g(e,t){return e[0]-t[0]}function m(e){for(var a=new Int32Array(5),n=16384,s=n-36,i=new Uint8Array(n),o=i.subarray(0,s),c=0,l="",u=0;u0&&(c===n&&(l+=d.decode(i),c=0),i[c++]=r),0!==p.length){a[0]=0;for(var f=0;fs&&(l+=d.decode(o),i.copyWithin(0,s,c),c-=s),f>0&&(i[c++]=t),c=h(i,c,a,g,0),1!==g.length&&(c=h(i,c,a,g,1),c=h(i,c,a,g,2),c=h(i,c,a,g,3),4!==g.length&&(c=h(i,c,a,g,4)))}}}return l+d.decode(i.subarray(0,c))}function h(e,t,r,a,s){var i=a[s],o=i-r[s];r[s]=i,o=o<0?-o<<1|1:o<<1;do{var d=31&o;(o>>>=5)>0&&(d|=32),e[t++]=n[d]}while(o>0);return t}e.decode=c,e.encode=m,Object.defineProperty(e,"__esModule",{value:!0})}))}(0,ok.exports)),ok.exports}var ck,lk={exports:{}},uk={exports:{}};function pk(){return ck||(ck=1,e=uk,function(t,r){e.exports=r()}(0,(function(){var e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function a(t){return e.test(t)}function n(e){return e.startsWith("//")}function s(e){return e.startsWith("/")}function i(e){return e.startsWith("file:")}function o(e){return/^[.?#]/.test(e)}function d(e){var r=t.exec(e);return l(r[1],r[2]||"",r[3],r[4]||"",r[5]||"/",r[6]||"",r[7]||"")}function c(e){var t=r.exec(e),a=t[2];return l("file:","",t[1]||"","",s(a)?a:"/"+a,t[3]||"",t[4]||"")}function l(e,t,r,a,n,s,i){return{scheme:e,user:t,host:r,port:a,path:n,query:s,hash:i,type:7}}function u(e){if(n(e)){var t=d("http:"+e);return t.scheme="",t.type=6,t}if(s(e)){var r=d("http://foo.com"+e);return r.scheme="",r.host="",r.type=5,r}if(i(e))return c(e);if(a(e))return d(e);var o=d("http://foo.com/"+e);return o.scheme="",o.host="",o.type=e?e.startsWith("?")?3:e.startsWith("#")?2:4:1,o}function p(e){if(e.endsWith("/.."))return e;var t=e.lastIndexOf("/");return e.slice(0,t+1)}function f(e,t){g(t,t.type),"/"===e.path?e.path=t.path:e.path=p(t.path)+e.path}function g(e,t){for(var r=t<=4,a=e.path.split("/"),n=1,s=0,i=!1,o=1;oa&&(a=s)}g(r,a);var i=r.query+r.hash;switch(a){case 2:case 3:return i;case 4:var d=r.path.slice(1);return d?o(t||e)&&!o(d)?"./"+d+i:d+i:i||".";case 5:return r.path+i;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+i}}return m}))),uk.exports;var e}!function(e,t){!function(e,r){r(t,dk(),pk())}(0,(function(e,t,r){function a(e,t){return t&&!t.endsWith("/")&&(t+="/"),r(e,t)}function n(e){if(!e)return"";var t=e.lastIndexOf("/");return e.slice(0,t+1)}var s=0,i=1,o=2,d=3,c=4,l=1,p=2;function f(e,t){var r=g(e,0);if(r===e.length)return e;t||(e=e.slice());for(var a=r;a>1),i=e[n][s]-t;if(0===i)return b=!0,n;i<0?r=n+1:a=n-1}return b=!1,r-1}function x(e,t,r){for(var a=r+1;a=0&&e[a][s]===t;r=a--);return r}function E(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function T(e,t,r,a){var n=r.lastKey,i=r.lastNeedle,o=r.lastIndex,d=0,c=e.length-1;if(a===n){if(t===i)return b=-1!==o&&e[o][s]===t,o;t>=i?d=-1===o?0:o:c=o}return r.lastKey=a,r.lastNeedle=t,r.lastIndex=v(e,t,d,c)}function w(e,t){for(var r=t.map(A),a=0;at;a--)e[a]=e[a-1];e[t]=r}function A(){return{__proto__:null}}var j=function(e,t){var r=_(e);if(!("sections"in r))return new B(r,t);var a=[],n=[],s=[],i=[],o=[];return C(r,t,a,n,s,i,o,0,0,1/0,1/0),X({version:3,file:r.file,names:i,sources:n,sourcesContent:s,mappings:a,ignoreList:o})};function _(e){return"string"===typeof e?JSON.parse(e):e}function C(e,t,r,a,n,s,i,o,d,c,l){for(var u=e.sections,p=0;pg)return;for(var k=D(r,j),I=0===A?f:0,N=x[A],O=0;O=m)return;if(1!==F.length){var M=b+F[i],H=F[o],G=F[d];k.push(4===F.length?[L,M,H,G]:[L,M,H,G,v+F[c]])}else k.push([L])}}}function P(e,t){for(var r=0;r=a.length)return null;var n=a[t],s=te(n,L(e)._decodedMemo,t,r,F);return-1===s?null:n[s]}function G(e,t){var r=t.line,a=t.column,n=t.bias;if(--r<0)throw new Error(I);if(a<0)throw new Error(N);var s=U(e);if(r>=s.length)return Z(null,null,null,null);var l=s[r],u=te(l,L(e)._decodedMemo,r,a,n||F);if(-1===u)return Z(null,null,null,null);var p=l[u];if(1===p.length)return Z(null,null,null,null);var f=e.names;return Z(e.resolvedSources[p[i]],p[o]+1,p[d],5===p.length?f[p[c]]:null)}function q(e,t){return ae(e,t.source,t.line,t.column,t.bias||F,!1)}function W(e,t){return ae(e,t.source,t.line,t.column,t.bias||O,!0)}function z(e,t){for(var r=U(e),a=e.names,n=e.resolvedSources,s=0;s=0&&!(t>=e[a][n]);r=a--);return r}function A(e,t,r){for(var a=e.length;a>t;a--)e[a]=e[a-1];e[t]=r}function j(e){for(var t=e.length,r=t,a=r-1;a>=0&&!(e[a].length>0);r=a,a--);r1?this._indentChar.repeat(t):this._indentChar}else this._str+=t>1?String.fromCharCode(e).repeat(t):String.fromCharCode(e);10!==e?(this._mark(r.line,r.column,r.identifierName,r.identifierNamePos,r.filename),this._position.column+=t):(this._position.line++,this._position.column=0),this._canMarkIdName&&(r.identifierName=void 0,r.identifierNamePos=void 0)},t._append=function(e,t,r){var a=e.length,n=this._position;if(this._last=e.charCodeAt(a-1),++this._appendCount>4096?(this._str,this._buf+=this._str,this._str=e,this._appendCount=0):this._str+=e,r||this._map){var s=t.column,i=t.identifierName,o=t.identifierNamePos,d=t.filename,c=t.line;null==i&&null==o||!this._canMarkIdName||(t.identifierName=void 0,t.identifierNamePos=void 0);var l=e.indexOf("\n"),u=0;for(0!==l&&this._mark(c,s,i,o,d);-1!==l;)n.line++,n.column=0,(u=l+1)=0&&10===this._queue[r].char;r--)t++;return t===e&&10===this._last?t+1:t},t.endsWithCharAndNewline=function(){var e=this._queue,t=this._queueCursor;if(0!==t){if(10!==e[t-1].char)return;return t>1?e[t-2].char:this._last}},t.hasContent=function(){return 0!==this._queueCursor||!!this._last},t.exactSource=function(e,t){if(this._map){this.source("start",e);var r=e.identifierName,a=this._sourcePosition;r&&(this._canMarkIdName=!1,a.identifierName=r),t(),r&&(this._canMarkIdName=!0,a.identifierName=void 0,a.identifierNamePos=void 0),this.source("end",e)}else t()},t.source=function(e,t){this._map&&this._normalizePosition(e,t,0)},t.sourceWithOffset=function(e,t,r){this._map&&this._normalizePosition(e,t,r)},t._normalizePosition=function(e,t,r){var a=t[e],n=this._sourcePosition;a&&(n.line=a.line,n.column=Math.max(a.column+r,0),n.filename=t.filename)},t.getCurrentColumn=function(){for(var e=this._queue,t=this._queueCursor,r=-1,a=0,n=0;n",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function Kk(e,t){return"BinaryExpression"===t||"LogicalExpression"===t?Vk.get(e.operator):"TSAsExpression"===t||"TSSatisfiesExpression"===t?Vk.get("in"):void 0}function Yk(e){return"TSAsExpression"===e||"TSSatisfiesExpression"===e||"TSTypeAssertion"===e}var Xk=function(e,t){var r=t.type;return("ClassDeclaration"===r||"ClassExpression"===r)&&t.superClass===e},Jk=function(e,t){var r=t.type;return("MemberExpression"===r||"OptionalMemberExpression"===r)&&t.object===e||("CallExpression"===r||"OptionalCallExpression"===r||"NewExpression"===r)&&t.callee===e||"TaggedTemplateExpression"===r&&t.tag===e||"TSNonNullExpression"===r};function Qk(e,t){return Fk(t)}function $k(e,t,r){var a=t.type;return"UnionTypeAnnotation"===a||"IntersectionTypeAnnotation"===a||"ArrayTypeAnnotation"===a||Boolean(r&_P.arrowFlowReturnType)}function Zk(e,t){return Jk(e,t)||Xk(e,t)}function eP(e){return Boolean(e&(_P.expressionStatement|_P.arrowBody))}function tP(e,t,r){return eP(r)}function rP(e,t,r){return!e.async&&Boolean(r&_P.expressionStatement)}function aP(e,t){var r=t.type;if("BinaryExpression"===e.type&&"**"===e.operator&&"BinaryExpression"===r&&"**"===t.operator)return t.left===e;if(Xk(e,t))return!0;if(Jk(e,t)||"UnaryExpression"===r||"SpreadElement"===r||"AwaitExpression"===r)return!0;var a=Kk(t,r);if(null!=a){var n=Kk(e,e.type);if(a===n&&"BinaryExpression"===r&&t.right===e||a>n)return!0}}function nP(e,t){var r=t.type;return"ArrayTypeAnnotation"===r||"NullableTypeAnnotation"===r||"IntersectionTypeAnnotation"===r||"UnionTypeAnnotation"===r}function sP(e,t){return Uk(t)&&t.objectType===e}function iP(e,t){return("AssignmentExpression"===t.type||"AssignmentPattern"===t.type)&&t.left===e||"BinaryExpression"===t.type&&("|"===t.operator||"&"===t.operator)&&e===t.left||aP(e,t)}function oP(e,t){var r=t.type;return"TSArrayType"===r||"TSOptionalType"===r||"TSIntersectionType"===r||"TSRestType"===r}function dP(e,t){var r=t.type;return"TSArrayType"===r||"TSOptionalType"===r}function cP(e,t){var r=t.type;return("CallExpression"===r||"OptionalCallExpression"===r||"NewExpression"===r||"TSInstantiationExpression"===r)&&!!t.typeParameters}function lP(e,t,r,a){return"in"===e.operator&&a}function uP(e,t){var r=t.type;return!("SequenceExpression"===r||"ParenthesizedExpression"===r||"MemberExpression"===r&&t.property===e||"OptionalMemberExpression"===r&&t.property===e||"TemplateLiteral"===r)&&("ClassDeclaration"===r||("ForOfStatement"===r?t.right===e:"ExportDefaultDeclaration"===r||!zk(t)))}function pP(e,t){var r=t.type;return"BinaryExpression"===r||"LogicalExpression"===r||"UnaryExpression"===r||"SpreadElement"===r||Jk(e,t)||"AwaitExpression"===r&&Wk(e)||"ConditionalExpression"===r&&e===t.test||Xk(e,t)||Yk(r)}function fP(e,t,r){return Boolean(r&(_P.expressionStatement|_P.exportDefault))}function gP(e,t){return Jk(e,t)||Bk(t)&&"**"===t.operator&&t.left===e||Xk(e,t)}function mP(e,t,r){return Boolean(r&(_P.expressionStatement|_P.exportDefault))}function hP(e,t){var r=t.type;return!!("UnaryExpression"===r||"SpreadElement"===r||"BinaryExpression"===r||"LogicalExpression"===r||"ConditionalExpression"===r&&t.test===e||"AwaitExpression"===r||Yk(r))||gP(e,t)}function yP(e,t){return Lk(t)&&t.callee===e||Hk(t)&&t.object===e}function bP(e,t,r){return!(!eP(r)||!Gk(e.left))||hP(e,t)}function vP(e,t){var r=t.type;if(Yk(r))return!0;if("LogicalExpression"!==r)return!1;switch(e.operator){case"||":return"??"===t.operator||"&&"===t.operator;case"&&":return"??"===t.operator;case"??":return"??"!==t.operator}}function xP(e,t,r,a,n){var s,i=t.type;if(null!=(s=e.extra)&&s.parenthesized&&"AssignmentExpression"===i&&t.left===e){var o=t.right.type;if(("FunctionExpression"===o||"ClassExpression"===o)&&null==t.right.id)return!0}return(!n||n(e)===e.name)&&("let"===e.name?!!((Hk(t,{object:e,computed:!0})||qk(t,{object:e,computed:!0,optional:!1}))&&r&(_P.expressionStatement|_P.forHead|_P.forInHead))||Boolean(r&_P.forOfHead):"async"===e.name&&Mk(t,{left:e,await:!1}))}var RP=co,EP=io,TP=De,wP=Fa,SP=et,AP=tt,jP=ct,_P={expressionStatement:1,arrowBody:2,exportDefault:4,forHead:8,forInHead:16,forOfHead:32,arrowFlowReturnType:64};function CP(e){var t=new Map;function r(e,r){var a=t.get(e);t.set(e,a?function(e,t,n,s,i){var o;return null!=(o=a(e,t,n,s,i))?o:r(e,t,n,s,i)}:r)}for(var a=0,n=Object.keys(e);a=0;a--){var n=e[r[a]];if(n===t)return!0;if(Array.isArray(n)){for(var s=n.length-1;s>=0&&null===n[s];)s--;return s>=0&&n[s]===t}if(n)return!1}return!1}CP(Ok);var OP=T().mark(MP),FP=bx,BP=io,LP=function(){function e(e,t,r){var a=this;this._tokens=void 0,this._source=void 0,this._nodesToTokenIndexes=new Map,this._nodesOccurrencesCountCache=new Map,this._tokensCache=new Map,this._tokens=t,this._source=r,FP(e,(function(e){var t=a._getTokensIndexesOfNode(e);t.length>0&&a._nodesToTokenIndexes.set(e,t)})),this._tokensCache=null}var t=e.prototype;return t.has=function(e){return this._nodesToTokenIndexes.has(e)},t.getIndexes=function(e){return this._nodesToTokenIndexes.get(e)},t.find=function(e,t){var r=this._nodesToTokenIndexes.get(e);if(r)for(var a=0;a=0;a--){var n=r[a];if(t(this._tokens[n],n))return n}return-1},t.findMatching=function(e,t,r){void 0===r&&(r=0);var a=this._nodesToTokenIndexes.get(e);if(a){var n=0,s=r;if(s>1){var i=this._nodesOccurrencesCountCache.get(e);i&&i.test===t&&i.count0&&this._nodesOccurrencesCountCache.set(e,{test:t,count:s,i:n}),o;r--}}}return null},t.matchesOriginal=function(e,t){return e.end-e.start===t.length&&(null!=e.value?e.value===t:this._source.startsWith(t,e.start))},t.startMatches=function(e,t){var r=this._nodesToTokenIndexes.get(e);if(!r)return!1;var a=this._tokens[r[0]];return a.start===e.start&&this.matchesOriginal(a,t)},t.endMatches=function(e,t){var r=this._nodesToTokenIndexes.get(e);if(!r)return!1;var a=this._tokens[r[r.length-1]];return a.end===e.end&&this.matchesOriginal(a,t)},t._getTokensIndexesOfNode=function(e){if(null==e.start||null==e.end)return[];var t=this._findTokensOfNode(e,0,this._tokens.length-1),r=t.first,a=t.last,n=r,s=MP(e);"ExportNamedDeclaration"!==e.type&&"ExportDefaultDeclaration"!==e.type||!e.declaration||"ClassDeclaration"!==e.declaration.type||s.next();for(var i,o=[],d=p(s);!(i=d()).done;){var c=i.value;if(null!=c&&null!=c.start&&null!=c.end){for(var l=this._findTokensOfNode(c,n,a),u=l.first,f=n;f>1;if(ethis._tokens[a].start))return a;t=a+1}}return t},t._findLastTokenOfNode=function(e,t,r){for(;t<=r;){var a=r+t>>1;if(ethis._tokens[a].end))return a;t=a+1}}return r},u(e)}();function MP(e){var t,r,a,n,s,i;return T().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if("TemplateLiteral"!==e.type){o.next=13;break}return o.next=3,e.quasis[0];case 3:t=1;case 4:if(!(t1}),RD(t))if(ED(t)){if(t.init===e)return}else if(t.left===e)return;this.semicolon()}function VD(e){this.print(e.id),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init))}var KD=_t,YD=Ct;function XD(e,t){(KD(t)||YD(t))&&this._shouldPrintDecoratorsBeforeExport(t)||this.printJoin(e.decorators),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id)),this.print(e.typeParameters),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeParameters)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements)),this.space(),this.print(e.body)}function JD(e){if(this.tokenChar(123),0===e.body.length)this.tokenChar(125);else{this.newline();var t=QD(this,e);null==t||t(-1);var r=this.enterDelimited();this.printJoin(e.body,{statement:!0,indent:!0,separator:t,printTrailingSeparator:!0}),r(),this.endsWith(10)||this.newline(),this.rightBrace(e)}}function QD(e,t){if(!e.tokenMap||null==t.start||null==t.end)return null;var r=e.tokenMap.getIndexes(t);if(!r)return null;var a=1,n=0,s=0,i=function(){for(;s"),this.space(),this.tokenContext|=_P.arrowBody,this.print(e.body)}function gI(e){var t,r;if(1!==e.params.length)return!0;if(e.typeParameters||e.returnType||e.predicate)return!0;var a=e.params[0];if(!sI(a)||a.typeAnnotation||a.optional||null!=(t=a.leadingComments)&&t.length||null!=(r=a.trailingComments)&&r.length)return!0;if(this.tokenMap){if(null==e.loc)return!0;if(null!==this.tokenMap.findMatching(e,"("))return!0;var n=this.tokenMap.findMatching(e,"=>");return null==(null==n?void 0:n.loc)||n.loc.start.line!==e.loc.start.line}return!!this.format.retainLines}function mI(e,t){var r=e;if(!r&&t){var a=t.type;"VariableDeclarator"===a?r=t.id:"AssignmentExpression"===a||"AssignmentPattern"===a?r=t.left:"ObjectProperty"===a||"ClassProperty"===a?t.computed&&"StringLiteral"!==t.key.type||(r=t.key):"ClassPrivateProperty"!==a&&"ClassAccessorProperty"!==a||(r=t.key)}if(r){var n,s,i;if("Identifier"===r.type)n={pos:null==(s=r.loc)?void 0:s.start,name:(null==(i=r.loc)?void 0:i.identifierName)||r.name};else if("PrivateName"===r.type){var o;n={pos:null==(o=r.loc)?void 0:o.start,name:"#"+r.id.name}}else if("StringLiteral"===r.type){var d;n={pos:null==(d=r.loc)?void 0:d.start,name:r.value}}return n}}var hI=At,yI=La,bI=Xt,vI=It,xI=Nt,RI=us;function EI(e){"type"!==e.importKind&&"typeof"!==e.importKind||(this.word(e.importKind),this.space()),this.print(e.imported),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local))}function TI(e){this.print(e.local)}function wI(e){this.print(e.exported)}function SI(e){"type"===e.exportKind&&(this.word("type"),this.space()),this.print(e.local),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported))}function AI(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)}var jI=!1;function _I(e,t){var r=this.format.importAttributesKeyword,a=e.attributes,n=e.assertions;!a||r||jI||(jI=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));var s="assert"===r||!r&&n;if(this.word(s?"assert":"with"),this.space(),s||"with"===r){var i=t?1:0;this.token("{",null,i),this.space(),this.printList(a||n,{printTrailingSeparator:this.shouldPrintTrailingComma("}")}),this.space(),this.token("}",null,i)}else this.printList(a||n)}function CI(e){var t,r;this.word("export"),this.space(),"type"===e.exportKind&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),null!=(t=e.attributes)&&t.length||null!=(r=e.assertions)&&r.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,!1)):this.print(e.source),this.semicolon()}function kI(e,t){hI(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)&&e.printJoin(t.declaration.decorators)}function PI(e){if(kI(this,e),this.word("export"),this.space(),e.declaration){var t=e.declaration;this.print(t),RI(t)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());for(var r=e.specifiers.slice(0),a=!1;;){var n=r[0];if(!yI(n)&&!bI(n))break;a=!0,this.print(r.shift()),r.length&&(this.tokenChar(44),this.space())}var s,i,o=!1;(r.length||!r.length&&!a)&&(o=!0,this.tokenChar(123),r.length&&(this.space(),this.printList(r,{printTrailingSeparator:this.shouldPrintTrailingComma("}")}),this.space()),this.tokenChar(125)),e.source&&(this.space(),this.word("from"),this.space(),null!=(s=e.attributes)&&s.length||null!=(i=e.assertions)&&i.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,o)):this.print(e.source)),this.semicolon()}}function DI(e){kI(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=_P.exportDefault;var t=e.declaration;this.print(t),RI(t)||this.semicolon()}function II(e){var t,r;this.word("import"),this.space();var a="type"===e.importKind||"typeof"===e.importKind;a?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());for(var n=e.specifiers.slice(0),s=!!n.length;s;){var i=n[0];if(!vI(i)&&!xI(i))break;this.print(n.shift()),n.length&&(this.tokenChar(44),this.space())}var o=!1;n.length?(o=!0,this.tokenChar(123),this.space(),this.printList(n,{printTrailingSeparator:this.shouldPrintTrailingComma("}")}),this.space(),this.tokenChar(125)):a&&!s&&(o=!0,this.tokenChar(123),this.tokenChar(125)),(s||a)&&(this.space(),this.word("from"),this.space()),null!=(t=e.attributes)&&t.length||null!=(r=e.assertions)&&r.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,o)):this.print(e.source),this.semicolon()}function NI(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)}function OI(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)}function FI(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40),this.print(e.source),null!=e.options&&(this.tokenChar(44),this.space(),this.print(e.options)),this.tokenChar(41)}var BI={},LI=BI.hasOwnProperty,MI=function(e,t){for(var r in e)LI.call(e,r)&&t(r,e[r])},UI=function(e,t){return t?(MI(t,(function(t,r){e[t]=r})),e):e},HI=function(e,t){for(var r=e.length,a=-1;++a2?GI(p):"\\x"+("00"+p).slice(-2)})),"`"==i&&(s=s.replace(/\$\{/g,"\\${")),t.isScriptContext&&(s=s.replace(/<\/(script|style)/gi,"<\\/$1").replace(//, '$2') || '')) {\n return\n };\n if (codeBlockParames) {\n const nextNode = nextChild(data, i, 'pre', codeBlockParames)\n if (nextNode) return;\n element.value = (element.value || '').replace(/^(\\n|\\s)+/, '')\n return element;\n } else {\n element.value = (element.value || '').replace(/^(\\n|\\s)+/, '')\n return element;\n }\n }\n }\n }\n return\n}\n\n/**\n * 获取代码注视的位置\n * @param data 数据\n * @param index 当前数据所在的位置\n * @returns 返回 当前参数数据 Object,`{}`\n */\nexport const getCommentObject = ({ value = '' }: Comment): Properties => {\n const param = getURLParameters(value.replace(/^/, '$1').replace(/^rehype:/, ''));\n Object.keys(param).forEach((keyName: string) => {\n if (param[keyName] === 'true') {\n param[keyName] = true;\n }\n if (param[keyName] === 'false') {\n param[keyName] = false;\n }\n if (typeof param[keyName] === 'string' && !/^0/.test(param[keyName] as string) && !isNaN(+param[keyName])) {\n param[keyName] = +param[keyName];\n }\n })\n return param;\n}\n\nexport type DataConfig = {\n 'data-config': Properties\n}\n\nexport const propertiesHandle = (defaultAttrs?: Properties | null, attrs?: Properties, type?: RehypeAttrsOptions['properties']): Properties | DataConfig => {\n if (type === 'string') {\n return { ...defaultAttrs, 'data-config': JSON.stringify({ ...attrs, rehyp: true })}\n } else if (type === 'attr') {\n return { ...defaultAttrs, ...attrs}\n }\n return { ...defaultAttrs, 'data-config': { ...attrs, rehyp: true }}\n}","import type { Plugin } from 'unified';\nimport type { Root, Element, Comment, Properties, Literal } from 'hast';\nimport { visit } from 'unist-util-visit';\nimport { propertiesHandle, nextChild, prevChild, getCommentObject } from './utils.js';\n\nexport type RehypeAttrsOptions = {\n /**\n * ## `data`\n * \n * ```markdown\n * text\n * \n * ```\n * 👇👇👇👇👇\n * ```html\n *

text

\n * ```\n * \n * ## `string`\n * \n * ```markdown\n * text\n * \n * ```\n * \n * 👇👇👇👇👇\n * \n * ```html\n *

text

\n * ```\n * \n * ## attr\n * \n * ```markdown\n * text\n * \n * ```\n * 👇👇👇👇👇\n * ```html\n *

text

\n * ```\n * @default `data`\n */\n properties?: 'data' | 'string' | 'attr';\n /**\n * Code block passing parameters\n */\n codeBlockParames?: boolean;\n}\n\nconst rehypeAttrs: Plugin<[RehypeAttrsOptions?], Root> = (options = {}) => {\n const { properties = 'data', codeBlockParames = true } = options;\n return (tree) => {\n visit(tree, 'element', (node, index, parent) => {\n if (codeBlockParames && node.tagName === 'pre' && node && Array.isArray(node.children) && parent && Array.isArray(parent.children) && parent.children.length > 1) {\n const firstChild = node.children[0] as Element;\n if (firstChild && firstChild.tagName === 'code' && typeof index === 'number') {\n const child = prevChild(parent.children as Literal[], index);\n if (child) {\n const attr = getCommentObject(child);\n if (Object.keys(attr).length > 0) {\n node.properties = { ...node.properties, ...{ 'data-type': 'rehyp' } }\n firstChild.properties = propertiesHandle(firstChild.properties, attr, properties) as Properties\n }\n }\n }\n }\n\n if (/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(node.tagName) && parent && Array.isArray(parent.children) && typeof index === 'number') {\n const child = nextChild(parent.children, index, '', codeBlockParames)\n if (child) {\n const attr = getCommentObject(child as Comment)\n if (Object.keys(attr).length > 0) {\n node.properties = propertiesHandle(node.properties, attr, properties) as Properties\n }\n }\n }\n });\n }\n}\n\n\nexport default rehypeAttrs\n","import {\n VOID, PRIMITIVE,\n ARRAY, OBJECT,\n DATE, REGEXP, MAP, SET,\n ERROR, BIGINT\n} from './types.js';\n\nconst env = typeof self === 'object' ? self : globalThis;\n\nconst deserializer = ($, _) => {\n const as = (out, index) => {\n $.set(index, out);\n return out;\n };\n\n const unpair = index => {\n if ($.has(index))\n return $.get(index);\n\n const [type, value] = _[index];\n switch (type) {\n case PRIMITIVE:\n case VOID:\n return as(value, index);\n case ARRAY: {\n const arr = as([], index);\n for (const index of value)\n arr.push(unpair(index));\n return arr;\n }\n case OBJECT: {\n const object = as({}, index);\n for (const [key, index] of value)\n object[unpair(key)] = unpair(index);\n return object;\n }\n case DATE:\n return as(new Date(value), index);\n case REGEXP: {\n const {source, flags} = value;\n return as(new RegExp(source, flags), index);\n }\n case MAP: {\n const map = as(new Map, index);\n for (const [key, index] of value)\n map.set(unpair(key), unpair(index));\n return map;\n }\n case SET: {\n const set = as(new Set, index);\n for (const index of value)\n set.add(unpair(index));\n return set;\n }\n case ERROR: {\n const {name, message} = value;\n return as(new env[name](message), index);\n }\n case BIGINT:\n return as(BigInt(value), index);\n case 'BigInt':\n return as(Object(BigInt(value)), index);\n }\n return as(new env[type](value), index);\n };\n\n return unpair;\n};\n\n/**\n * @typedef {Array} Record a type representation\n */\n\n/**\n * Returns a deserialized value from a serialized array of Records.\n * @param {Record[]} serialized a previously serialized value.\n * @returns {any}\n */\nexport const deserialize = serialized => deserializer(new Map, serialized)(0);\n","export const VOID = -1;\nexport const PRIMITIVE = 0;\nexport const ARRAY = 1;\nexport const OBJECT = 2;\nexport const DATE = 3;\nexport const REGEXP = 4;\nexport const MAP = 5;\nexport const SET = 6;\nexport const ERROR = 7;\nexport const BIGINT = 8;\n// export const SYMBOL = 9;\n","import {\n VOID, PRIMITIVE,\n ARRAY, OBJECT,\n DATE, REGEXP, MAP, SET,\n ERROR, BIGINT\n} from './types.js';\n\nconst EMPTY = '';\n\nconst {toString} = {};\nconst {keys} = Object;\n\nconst typeOf = value => {\n const type = typeof value;\n if (type !== 'object' || !value)\n return [PRIMITIVE, type];\n\n const asString = toString.call(value).slice(8, -1);\n switch (asString) {\n case 'Array':\n return [ARRAY, EMPTY];\n case 'Object':\n return [OBJECT, EMPTY];\n case 'Date':\n return [DATE, EMPTY];\n case 'RegExp':\n return [REGEXP, EMPTY];\n case 'Map':\n return [MAP, EMPTY];\n case 'Set':\n return [SET, EMPTY];\n }\n\n if (asString.includes('Array'))\n return [ARRAY, asString];\n\n if (asString.includes('Error'))\n return [ERROR, asString];\n\n return [OBJECT, asString];\n};\n\nconst shouldSkip = ([TYPE, type]) => (\n TYPE === PRIMITIVE &&\n (type === 'function' || type === 'symbol')\n);\n\nconst serializer = (strict, json, $, _) => {\n\n const as = (out, value) => {\n const index = _.push(out) - 1;\n $.set(value, index);\n return index;\n };\n\n const pair = value => {\n if ($.has(value))\n return $.get(value);\n\n let [TYPE, type] = typeOf(value);\n switch (TYPE) {\n case PRIMITIVE: {\n let entry = value;\n switch (type) {\n case 'bigint':\n TYPE = BIGINT;\n entry = value.toString();\n break;\n case 'function':\n case 'symbol':\n if (strict)\n throw new TypeError('unable to serialize ' + type);\n entry = null;\n break;\n case 'undefined':\n return as([VOID], value);\n }\n return as([TYPE, entry], value);\n }\n case ARRAY: {\n if (type)\n return as([type, [...value]], value);\n \n const arr = [];\n const index = as([TYPE, arr], value);\n for (const entry of value)\n arr.push(pair(entry));\n return index;\n }\n case OBJECT: {\n if (type) {\n switch (type) {\n case 'BigInt':\n return as([type, value.toString()], value);\n case 'Boolean':\n case 'Number':\n case 'String':\n return as([type, value.valueOf()], value);\n }\n }\n\n if (json && ('toJSON' in value))\n return pair(value.toJSON());\n\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const key of keys(value)) {\n if (strict || !shouldSkip(typeOf(value[key])))\n entries.push([pair(key), pair(value[key])]);\n }\n return index;\n }\n case DATE:\n return as([TYPE, value.toISOString()], value);\n case REGEXP: {\n const {source, flags} = value;\n return as([TYPE, {source, flags}], value);\n }\n case MAP: {\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const [key, entry] of value) {\n if (strict || !(shouldSkip(typeOf(key)) || shouldSkip(typeOf(entry))))\n entries.push([pair(key), pair(entry)]);\n }\n return index;\n }\n case SET: {\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const entry of value) {\n if (strict || !shouldSkip(typeOf(entry)))\n entries.push(pair(entry));\n }\n return index;\n }\n }\n\n const {message} = value;\n return as([TYPE, {name: type, message}], value);\n };\n\n return pair;\n};\n\n/**\n * @typedef {Array} Record a type representation\n */\n\n/**\n * Returns an array of serialized Records.\n * @param {any} value a serializable value.\n * @param {{json?: boolean, lossy?: boolean}?} options an object with a `lossy` or `json` property that,\n * if `true`, will not throw errors on incompatible types, and behave more\n * like JSON stringify would behave. Symbol and Function will be discarded.\n * @returns {Record[]}\n */\n export const serialize = (value, {json, lossy} = {}) => {\n const _ = [];\n return serializer(!(json || lossy), !!json, new Map, _)(value), _;\n};\n","import {deserialize} from './deserialize.js';\nimport {serialize} from './serialize.js';\n\n/**\n * @typedef {Array} Record a type representation\n */\n\n/**\n * Returns an array of serialized Records.\n * @param {any} any a serializable value.\n * @param {{transfer?: any[], json?: boolean, lossy?: boolean}?} options an object with\n * a transfer option (ignored when polyfilled) and/or non standard fields that\n * fallback to the polyfill if present.\n * @returns {Record[]}\n */\nexport default typeof structuredClone === \"function\" ?\n /* c8 ignore start */\n (any, options) => (\n options && ('json' in options || 'lossy' in options) ?\n deserialize(serialize(any, options)) : structuredClone(any)\n ) :\n (any, options) => deserialize(serialize(any, options));\n /* c8 ignore stop */\n\nexport {deserialize, serialize};\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n */\n\n/**\n * @template {string} SimpleSelector\n * Selector type.\n * @template {string} DefaultTagName\n * Default tag name.\n * @typedef {(\n * SimpleSelector extends ''\n * ? DefaultTagName\n * : SimpleSelector extends `${infer TagName}.${infer Rest}`\n * ? ExtractTagName\n * : SimpleSelector extends `${infer TagName}#${infer Rest}`\n * ? ExtractTagName\n * : SimpleSelector extends string\n * ? SimpleSelector\n * : DefaultTagName\n * )} ExtractTagName\n * Extract tag name from a simple selector.\n */\n\nconst search = /[#.]/g\n\n/**\n * Create a hast element from a simple CSS selector.\n *\n * @template {string} Selector\n * Type of selector.\n * @template {string} [DefaultTagName='div']\n * Type of default tag name (default: `'div'`).\n * @param {Selector | null | undefined} [selector]\n * Simple CSS selector (optional).\n *\n * Can contain a tag name (`foo`), classes (`.bar`), and an ID (`#baz`).\n * Multiple classes are allowed.\n * Uses the last ID if multiple IDs are found.\n * @param {DefaultTagName | null | undefined} [defaultTagName='div']\n * Tag name to use if `selector` does not specify one (default: `'div'`).\n * @returns {Element & {tagName: ExtractTagName}}\n * Built element.\n */\nexport function parseSelector(selector, defaultTagName) {\n const value = selector || ''\n /** @type {Properties} */\n const props = {}\n let start = 0\n /** @type {string | undefined} */\n let previous\n /** @type {string | undefined} */\n let tagName\n\n while (start < value.length) {\n search.lastIndex = start\n const match = search.exec(value)\n const subvalue = value.slice(start, match ? match.index : value.length)\n\n if (subvalue) {\n if (!previous) {\n tagName = subvalue\n } else if (previous === '#') {\n props.id = subvalue\n } else if (Array.isArray(props.className)) {\n props.className.push(subvalue)\n } else {\n props.className = [subvalue]\n }\n\n start += subvalue.length\n }\n\n if (match) {\n previous = match[0]\n start++\n }\n }\n\n return {\n type: 'element',\n // @ts-expect-error: tag name is parsed.\n tagName: tagName || defaultTagName || 'div',\n properties: props,\n children: []\n }\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Nodes} Nodes\n * @typedef {import('hast').Root} Root\n * @typedef {import('hast').RootContent} RootContent\n *\n * @typedef {import('property-information').Info} Info\n * @typedef {import('property-information').Schema} Schema\n */\n\n/**\n * @typedef {Element | Root} Result\n * Result from a `h` (or `s`) call.\n *\n * @typedef {number | string} StyleValue\n * Value for a CSS style field.\n * @typedef {Record} Style\n * Supported value of a `style` prop.\n * @typedef {boolean | number | string | null | undefined} PrimitiveValue\n * Primitive property value.\n * @typedef {Array} ArrayValue\n * List of property values for space- or comma separated values (such as `className`).\n * @typedef {ArrayValue | PrimitiveValue} PropertyValue\n * Primitive value or list value.\n * @typedef {{[property: string]: PropertyValue | Style}} Properties\n * Acceptable value for element properties.\n *\n * @typedef {number | string | null | undefined} PrimitiveChild\n * Primitive children, either ignored (nullish), or turned into text nodes.\n * @typedef {Array} ArrayChild\n * List of children.\n * @typedef {Array} ArrayChildNested\n * List of children (deep).\n * @typedef {ArrayChild | Nodes | PrimitiveChild} Child\n * Acceptable child value.\n */\n\nimport {parse as commas} from 'comma-separated-tokens'\nimport {parseSelector} from 'hast-util-parse-selector'\nimport {find, normalize} from 'property-information'\nimport {parse as spaces} from 'space-separated-tokens'\n\nconst buttonTypes = new Set(['button', 'menu', 'reset', 'submit'])\n\nconst own = {}.hasOwnProperty\n\n/**\n * @param {Schema} schema\n * Schema to use.\n * @param {string} defaultTagName\n * Default tag name.\n * @param {Array | undefined} [caseSensitive]\n * Case-sensitive tag names (default: `undefined`).\n * @returns\n * `h`.\n */\nexport function createH(schema, defaultTagName, caseSensitive) {\n const adjust = caseSensitive && createAdjustMap(caseSensitive)\n\n /**\n * Hyperscript compatible DSL for creating virtual hast trees.\n *\n * @overload\n * @param {null | undefined} [selector]\n * @param {...Child} children\n * @returns {Root}\n *\n * @overload\n * @param {string} selector\n * @param {Properties} properties\n * @param {...Child} children\n * @returns {Element}\n *\n * @overload\n * @param {string} selector\n * @param {...Child} children\n * @returns {Element}\n *\n * @param {string | null | undefined} [selector]\n * Selector.\n * @param {Child | Properties | null | undefined} [properties]\n * Properties (or first child) (default: `undefined`).\n * @param {...Child} children\n * Children.\n * @returns {Result}\n * Result.\n */\n function h(selector, properties, ...children) {\n let index = -1\n /** @type {Result} */\n let node\n\n if (selector === undefined || selector === null) {\n node = {type: 'root', children: []}\n // Properties are not supported for roots.\n const child = /** @type {Child} */ (properties)\n children.unshift(child)\n } else {\n node = parseSelector(selector, defaultTagName)\n // Normalize the name.\n node.tagName = node.tagName.toLowerCase()\n if (adjust && own.call(adjust, node.tagName)) {\n node.tagName = adjust[node.tagName]\n }\n\n // Handle props.\n if (isProperties(properties, node.tagName)) {\n /** @type {string} */\n let key\n\n for (key in properties) {\n if (own.call(properties, key)) {\n addProperty(schema, node.properties, key, properties[key])\n }\n }\n } else {\n children.unshift(properties)\n }\n }\n\n // Handle children.\n while (++index < children.length) {\n addChild(node.children, children[index])\n }\n\n if (node.type === 'element' && node.tagName === 'template') {\n node.content = {type: 'root', children: node.children}\n node.children = []\n }\n\n return node\n }\n\n return h\n}\n\n/**\n * Check if something is properties or a child.\n *\n * @param {Child | Properties} value\n * Value to check.\n * @param {string} name\n * Tag name.\n * @returns {value is Properties}\n * Whether `value` is a properties object.\n */\nfunction isProperties(value, name) {\n if (\n value === null ||\n value === undefined ||\n typeof value !== 'object' ||\n Array.isArray(value)\n ) {\n return false\n }\n\n if (name === 'input' || !value.type || typeof value.type !== 'string') {\n return true\n }\n\n if ('children' in value && Array.isArray(value.children)) {\n return false\n }\n\n if (name === 'button') {\n return buttonTypes.has(value.type.toLowerCase())\n }\n\n return !('value' in value)\n}\n\n/**\n * @param {Schema} schema\n * Schema.\n * @param {Properties} properties\n * Properties object.\n * @param {string} key\n * Property name.\n * @param {PropertyValue | Style} value\n * Property value.\n * @returns {undefined}\n * Nothing.\n */\nfunction addProperty(schema, properties, key, value) {\n const info = find(schema, key)\n let index = -1\n /** @type {PropertyValue} */\n let result\n\n // Ignore nullish and NaN values.\n if (value === undefined || value === null) return\n\n if (typeof value === 'number') {\n // Ignore NaN.\n if (Number.isNaN(value)) return\n\n result = value\n }\n // Booleans.\n else if (typeof value === 'boolean') {\n result = value\n }\n // Handle list values.\n else if (typeof value === 'string') {\n if (info.spaceSeparated) {\n result = spaces(value)\n } else if (info.commaSeparated) {\n result = commas(value)\n } else if (info.commaOrSpaceSeparated) {\n result = spaces(commas(value).join(' '))\n } else {\n result = parsePrimitive(info, info.property, value)\n }\n } else if (Array.isArray(value)) {\n result = value.concat()\n } else {\n result = info.property === 'style' ? style(value) : String(value)\n }\n\n if (Array.isArray(result)) {\n /** @type {Array} */\n const finalResult = []\n\n while (++index < result.length) {\n // Assume no booleans in array.\n const value = /** @type {number | string} */ (\n parsePrimitive(info, info.property, result[index])\n )\n finalResult[index] = value\n }\n\n result = finalResult\n }\n\n // Class names (which can be added both on the `selector` and here).\n if (info.property === 'className' && Array.isArray(properties.className)) {\n // Assume no booleans in `className`.\n const value = /** @type {number | string} */ (result)\n result = properties.className.concat(value)\n }\n\n properties[info.property] = result\n}\n\n/**\n * @param {Array} nodes\n * Children.\n * @param {Child} value\n * Child.\n * @returns {undefined}\n * Nothing.\n */\nfunction addChild(nodes, value) {\n let index = -1\n\n if (value === undefined || value === null) {\n // Empty.\n } else if (typeof value === 'string' || typeof value === 'number') {\n nodes.push({type: 'text', value: String(value)})\n } else if (Array.isArray(value)) {\n while (++index < value.length) {\n addChild(nodes, value[index])\n }\n } else if (typeof value === 'object' && 'type' in value) {\n if (value.type === 'root') {\n addChild(nodes, value.children)\n } else {\n nodes.push(value)\n }\n } else {\n throw new Error('Expected node, nodes, or string, got `' + value + '`')\n }\n}\n\n/**\n * Parse a single primitives.\n *\n * @param {Info} info\n * Property information.\n * @param {string} name\n * Property name.\n * @param {PrimitiveValue} value\n * Property value.\n * @returns {PrimitiveValue}\n * Property value.\n */\nfunction parsePrimitive(info, name, value) {\n if (typeof value === 'string') {\n if (info.number && value && !Number.isNaN(Number(value))) {\n return Number(value)\n }\n\n if (\n (info.boolean || info.overloadedBoolean) &&\n (value === '' || normalize(value) === normalize(name))\n ) {\n return true\n }\n }\n\n return value\n}\n\n/**\n * Serialize a `style` object as a string.\n *\n * @param {Style} value\n * Style object.\n * @returns {string}\n * CSS string.\n */\nfunction style(value) {\n /** @type {Array} */\n const result = []\n /** @type {string} */\n let key\n\n for (key in value) {\n if (own.call(value, key)) {\n result.push([key, value[key]].join(': '))\n }\n }\n\n return result.join('; ')\n}\n\n/**\n * Create a map to adjust casing.\n *\n * @param {Array} values\n * List of properly cased keys.\n * @returns {Record}\n * Map of lowercase keys to uppercase keys.\n */\nfunction createAdjustMap(values) {\n /** @type {Record} */\n const result = {}\n let index = -1\n\n while (++index < values.length) {\n result[values[index].toLowerCase()] = values[index]\n }\n\n return result\n}\n","export const svgCaseSensitiveTagNames = [\n 'altGlyph',\n 'altGlyphDef',\n 'altGlyphItem',\n 'animateColor',\n 'animateMotion',\n 'animateTransform',\n 'clipPath',\n 'feBlend',\n 'feColorMatrix',\n 'feComponentTransfer',\n 'feComposite',\n 'feConvolveMatrix',\n 'feDiffuseLighting',\n 'feDisplacementMap',\n 'feDistantLight',\n 'feDropShadow',\n 'feFlood',\n 'feFuncA',\n 'feFuncB',\n 'feFuncG',\n 'feFuncR',\n 'feGaussianBlur',\n 'feImage',\n 'feMerge',\n 'feMergeNode',\n 'feMorphology',\n 'feOffset',\n 'fePointLight',\n 'feSpecularLighting',\n 'feSpotLight',\n 'feTile',\n 'feTurbulence',\n 'foreignObject',\n 'glyphRef',\n 'linearGradient',\n 'radialGradient',\n 'solidColor',\n 'textArea',\n 'textPath'\n]\n","/**\n * @typedef {import('./create-h.js').Child} Child\n * Acceptable child value.\n * @typedef {import('./create-h.js').Properties} Properties\n * Acceptable value for element properties.\n * @typedef {import('./create-h.js').Result} Result\n * Result from a `h` (or `s`) call.\n */\n\n// Register the JSX namespace on `h`.\n/**\n * @typedef {import('./jsx-classic.js').Element} h.JSX.Element\n * @typedef {import('./jsx-classic.js').ElementChildrenAttribute} h.JSX.ElementChildrenAttribute\n * @typedef {import('./jsx-classic.js').IntrinsicAttributes} h.JSX.IntrinsicAttributes\n * @typedef {import('./jsx-classic.js').IntrinsicElements} h.JSX.IntrinsicElements\n */\n\n// Register the JSX namespace on `s`.\n/**\n * @typedef {import('./jsx-classic.js').Element} s.JSX.Element\n * @typedef {import('./jsx-classic.js').ElementChildrenAttribute} s.JSX.ElementChildrenAttribute\n * @typedef {import('./jsx-classic.js').IntrinsicAttributes} s.JSX.IntrinsicAttributes\n * @typedef {import('./jsx-classic.js').IntrinsicElements} s.JSX.IntrinsicElements\n */\n\nimport {html, svg} from 'property-information'\nimport {createH} from './create-h.js'\nimport {svgCaseSensitiveTagNames} from './svg-case-sensitive-tag-names.js'\n\n// Note: this explicit type is needed, otherwise TS creates broken types.\n/** @type {ReturnType} */\nexport const h = createH(html, 'div')\n\n// Note: this explicit type is needed, otherwise TS creates broken types.\n/** @type {ReturnType} */\nexport const s = createH(svg, 'g', svgCaseSensitiveTagNames)\n","/**\n * @import {VFile, Value} from 'vfile'\n * @import {Location} from 'vfile-location'\n */\n\n/**\n * Create an index of the given document to translate between line/column and\n * offset based positional info.\n *\n * Also implemented in Rust in [`wooorm/markdown-rs`][markdown-rs].\n *\n * [markdown-rs]: https://github.com/wooorm/markdown-rs/blob/main/src/util/location.rs\n *\n * @param {VFile | Value} file\n * File to index.\n * @returns {Location}\n * Accessors for index.\n */\nexport function location(file) {\n const value = String(file)\n /**\n * List, where each index is a line number (0-based), and each value is the\n * byte index *after* where the line ends.\n *\n * @type {Array}\n */\n const indices = []\n\n return {toOffset, toPoint}\n\n /** @type {Location['toPoint']} */\n function toPoint(offset) {\n if (typeof offset === 'number' && offset > -1 && offset <= value.length) {\n let index = 0\n\n while (true) {\n let end = indices[index]\n\n if (end === undefined) {\n const eol = next(value, indices[index - 1])\n end = eol === -1 ? value.length + 1 : eol + 1\n indices[index] = end\n }\n\n if (end > offset) {\n return {\n line: index + 1,\n column: offset - (index > 0 ? indices[index - 1] : 0) + 1,\n offset\n }\n }\n\n index++\n }\n }\n }\n\n /** @type {Location['toOffset']} */\n function toOffset(point) {\n if (\n point &&\n typeof point.line === 'number' &&\n typeof point.column === 'number' &&\n !Number.isNaN(point.line) &&\n !Number.isNaN(point.column)\n ) {\n while (indices.length < point.line) {\n const from = indices[indices.length - 1]\n const eol = next(value, from)\n const end = eol === -1 ? value.length + 1 : eol + 1\n if (from === end) break\n indices.push(end)\n }\n\n const offset =\n (point.line > 1 ? indices[point.line - 2] : 0) + point.column - 1\n // The given `column` could not exist on this line.\n if (offset < indices[point.line - 1]) return offset\n }\n }\n}\n\n/**\n * @param {string} value\n * @param {number} from\n */\nfunction next(value, from) {\n const cr = value.indexOf('\\r', from)\n const lf = value.indexOf('\\n', from)\n if (lf === -1) return cr\n if (cr === -1 || cr + 1 === lf) return lf\n return cr < lf ? cr : lf\n}\n","/**\n * Map of web namespaces.\n *\n * @type {Record}\n */\nexport const webNamespaces = {\n html: 'http://www.w3.org/1999/xhtml',\n mathml: 'http://www.w3.org/1998/Math/MathML',\n svg: 'http://www.w3.org/2000/svg',\n xlink: 'http://www.w3.org/1999/xlink',\n xml: 'http://www.w3.org/XML/1998/namespace',\n xmlns: 'http://www.w3.org/2000/xmlns/'\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').ElementData} ElementData\n * @typedef {import('hast').Nodes} Nodes\n * @typedef {import('hast').Root} Root\n * @typedef {import('hast').RootContent} RootContent\n *\n * @typedef {import('parse5').DefaultTreeAdapterMap} DefaultTreeAdapterMap\n * @typedef {import('parse5').Token.ElementLocation} P5ElementLocation\n * @typedef {import('parse5').Token.Location} P5Location\n *\n * @typedef {import('property-information').Schema} Schema\n *\n * @typedef {import('unist').Point} Point\n * @typedef {import('unist').Position} Position\n *\n * @typedef {import('vfile').VFile} VFile\n */\n\n/**\n * @typedef {DefaultTreeAdapterMap['document']} P5Document\n * @typedef {DefaultTreeAdapterMap['documentFragment']} P5DocumentFragment\n * @typedef {DefaultTreeAdapterMap['documentType']} P5DocumentType\n * @typedef {DefaultTreeAdapterMap['commentNode']} P5Comment\n * @typedef {DefaultTreeAdapterMap['textNode']} P5Text\n * @typedef {DefaultTreeAdapterMap['element']} P5Element\n * @typedef {DefaultTreeAdapterMap['node']} P5Node\n * @typedef {DefaultTreeAdapterMap['template']} P5Template\n */\n\n/**\n * @typedef Options\n * Configuration.\n * @property {Space | null | undefined} [space='html']\n * Which space the document is in (default: `'html'`).\n *\n * When an `` element is found in the HTML space, this package already\n * automatically switches to and from the SVG space when entering and exiting\n * it.\n * @property {VFile | null | undefined} [file]\n * File used to add positional info to nodes (optional).\n *\n * If given, the file should represent the original HTML source.\n * @property {boolean | null | undefined} [verbose=false]\n * Whether to add extra positional info about starting tags, closing tags,\n * and attributes to elements (default: `false`).\n *\n * > 👉 **Note**: only used when `file` is given.\n *\n * @typedef {'html' | 'svg'} Space\n * Namespace.\n *\n * @typedef State\n * Info passed around about the current state.\n * @property {VFile | undefined} file\n * Corresponding file.\n * @property {boolean} location\n * Whether location info was found.\n * @property {Schema} schema\n * Current schema.\n * @property {boolean | undefined} verbose\n * Add extra positional info.\n */\n\nimport {ok as assert} from 'devlop'\nimport {h, s} from 'hastscript'\nimport {find, html, svg} from 'property-information'\nimport {location} from 'vfile-location'\nimport {webNamespaces} from 'web-namespaces'\n\nconst own = {}.hasOwnProperty\n/** @type {unknown} */\n// type-coverage:ignore-next-line\nconst proto = Object.prototype\n\n/**\n * Transform a `parse5` AST to hast.\n *\n * @param {P5Node} tree\n * `parse5` tree to transform.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {Nodes}\n * hast tree.\n */\nexport function fromParse5(tree, options) {\n const settings = options || {}\n\n return one(\n {\n file: settings.file || undefined,\n location: false,\n schema: settings.space === 'svg' ? svg : html,\n verbose: settings.verbose || false\n },\n tree\n )\n}\n\n/**\n * Transform a node.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {P5Node} node\n * p5 node.\n * @returns {Nodes}\n * hast node.\n */\nfunction one(state, node) {\n /** @type {Nodes} */\n let result\n\n switch (node.nodeName) {\n case '#comment': {\n const reference = /** @type {P5Comment} */ (node)\n result = {type: 'comment', value: reference.data}\n patch(state, reference, result)\n return result\n }\n\n case '#document':\n case '#document-fragment': {\n const reference = /** @type {P5Document | P5DocumentFragment} */ (node)\n const quirksMode =\n 'mode' in reference\n ? reference.mode === 'quirks' || reference.mode === 'limited-quirks'\n : false\n\n result = {\n type: 'root',\n children: all(state, node.childNodes),\n data: {quirksMode}\n }\n\n if (state.file && state.location) {\n const doc = String(state.file)\n const loc = location(doc)\n const start = loc.toPoint(0)\n const end = loc.toPoint(doc.length)\n // Always defined as we give valid input.\n assert(start, 'expected `start`')\n assert(end, 'expected `end`')\n result.position = {start, end}\n }\n\n return result\n }\n\n case '#documentType': {\n const reference = /** @type {P5DocumentType} */ (node)\n result = {type: 'doctype'}\n patch(state, reference, result)\n return result\n }\n\n case '#text': {\n const reference = /** @type {P5Text} */ (node)\n result = {type: 'text', value: reference.value}\n patch(state, reference, result)\n return result\n }\n\n // Element.\n default: {\n const reference = /** @type {P5Element} */ (node)\n result = element(state, reference)\n return result\n }\n }\n}\n\n/**\n * Transform children.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {Array} nodes\n * Nodes.\n * @returns {Array}\n * hast nodes.\n */\nfunction all(state, nodes) {\n let index = -1\n /** @type {Array} */\n const results = []\n\n while (++index < nodes.length) {\n // Assume no roots in `nodes`.\n const result = /** @type {RootContent} */ (one(state, nodes[index]))\n results.push(result)\n }\n\n return results\n}\n\n/**\n * Transform an element.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {P5Element} node\n * `parse5` node to transform.\n * @returns {Element}\n * hast node.\n */\nfunction element(state, node) {\n const schema = state.schema\n\n state.schema = node.namespaceURI === webNamespaces.svg ? svg : html\n\n // Props.\n let index = -1\n /** @type {Record} */\n const props = {}\n\n while (++index < node.attrs.length) {\n const attribute = node.attrs[index]\n const name =\n (attribute.prefix ? attribute.prefix + ':' : '') + attribute.name\n if (!own.call(proto, name)) {\n props[name] = attribute.value\n }\n }\n\n // Build.\n const fn = state.schema.space === 'svg' ? s : h\n const result = fn(node.tagName, props, all(state, node.childNodes))\n patch(state, node, result)\n\n // Switch content.\n if (result.tagName === 'template') {\n const reference = /** @type {P5Template} */ (node)\n const pos = reference.sourceCodeLocation\n const startTag = pos && pos.startTag && position(pos.startTag)\n const endTag = pos && pos.endTag && position(pos.endTag)\n\n // Root in, root out.\n const content = /** @type {Root} */ (one(state, reference.content))\n\n if (startTag && endTag && state.file) {\n content.position = {start: startTag.end, end: endTag.start}\n }\n\n result.content = content\n }\n\n state.schema = schema\n\n return result\n}\n\n/**\n * Patch positional info from `from` onto `to`.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {P5Node} from\n * p5 node.\n * @param {Nodes} to\n * hast node.\n * @returns {undefined}\n * Nothing.\n */\nfunction patch(state, from, to) {\n if ('sourceCodeLocation' in from && from.sourceCodeLocation && state.file) {\n const position = createLocation(state, to, from.sourceCodeLocation)\n\n if (position) {\n state.location = true\n to.position = position\n }\n }\n}\n\n/**\n * Create clean positional information.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {Nodes} node\n * hast node.\n * @param {P5ElementLocation} location\n * p5 location info.\n * @returns {Position | undefined}\n * Position, or nothing.\n */\nfunction createLocation(state, node, location) {\n const result = position(location)\n\n if (node.type === 'element') {\n const tail = node.children[node.children.length - 1]\n\n // Bug for unclosed with children.\n // See: .\n if (\n result &&\n !location.endTag &&\n tail &&\n tail.position &&\n tail.position.end\n ) {\n result.end = Object.assign({}, tail.position.end)\n }\n\n if (state.verbose) {\n /** @type {Record} */\n const props = {}\n /** @type {string} */\n let key\n\n if (location.attrs) {\n for (key in location.attrs) {\n if (own.call(location.attrs, key)) {\n props[find(state.schema, key).property] = position(\n location.attrs[key]\n )\n }\n }\n }\n\n assert(location.startTag, 'a start tag should exist')\n const opening = position(location.startTag)\n const closing = location.endTag ? position(location.endTag) : undefined\n /** @type {ElementData['position']} */\n const data = {opening}\n if (closing) data.closing = closing\n data.properties = props\n\n node.data = {position: data}\n }\n }\n\n return result\n}\n\n/**\n * Turn a p5 location into a position.\n *\n * @param {P5Location} loc\n * Location.\n * @returns {Position | undefined}\n * Position or nothing.\n */\nfunction position(loc) {\n const start = point({\n line: loc.startLine,\n column: loc.startCol,\n offset: loc.startOffset\n })\n const end = point({\n line: loc.endLine,\n column: loc.endCol,\n offset: loc.endOffset\n })\n\n // @ts-expect-error: we do use `undefined` for points if one or the other\n // exists.\n return start || end ? {start, end} : undefined\n}\n\n/**\n * Filter out invalid points.\n *\n * @param {Point} point\n * Point with potentially `undefined` values.\n * @returns {Point | undefined}\n * Point or nothing.\n */\nfunction point(point) {\n return point.line && point.column ? point : undefined\n}\n","/**\n * @typedef {import('hast').Comment} Comment\n * @typedef {import('hast').Doctype} Doctype\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Nodes} Nodes\n * @typedef {import('hast').Root} Root\n * @typedef {import('hast').RootContent} RootContent\n * @typedef {import('hast').Text} Text\n *\n * @typedef {import('parse5').DefaultTreeAdapterMap['document']} Parse5Document\n * @typedef {import('parse5').DefaultTreeAdapterMap['documentFragment']} Parse5Fragment\n * @typedef {import('parse5').DefaultTreeAdapterMap['element']} Parse5Element\n * @typedef {import('parse5').DefaultTreeAdapterMap['node']} Parse5Nodes\n * @typedef {import('parse5').DefaultTreeAdapterMap['documentType']} Parse5Doctype\n * @typedef {import('parse5').DefaultTreeAdapterMap['commentNode']} Parse5Comment\n * @typedef {import('parse5').DefaultTreeAdapterMap['textNode']} Parse5Text\n * @typedef {import('parse5').DefaultTreeAdapterMap['parentNode']} Parse5Parent\n * @typedef {import('parse5').Token.Attribute} Parse5Attribute\n *\n * @typedef {import('property-information').Schema} Schema\n */\n\n/**\n * @typedef Options\n * Configuration.\n * @property {Space | null | undefined} [space='html']\n * Which space the document is in (default: `'html'`).\n *\n * When an `` element is found in the HTML space, this package already\n * automatically switches to and from the SVG space when entering and exiting\n * it.\n *\n * @typedef {Exclude} Parse5Content\n *\n * @typedef {'html' | 'svg'} Space\n */\n\nimport {stringify as commas} from 'comma-separated-tokens'\nimport {ok as assert} from 'devlop'\nimport {find, html, svg} from 'property-information'\nimport {stringify as spaces} from 'space-separated-tokens'\nimport {webNamespaces} from 'web-namespaces'\nimport {zwitch} from 'zwitch'\n\n/** @type {Options} */\nconst emptyOptions = {}\n\nconst own = {}.hasOwnProperty\n\nconst one = zwitch('type', {handlers: {root, element, text, comment, doctype}})\n\n/**\n * Transform a hast tree to a `parse5` AST.\n *\n * @param {Nodes} tree\n * Tree to transform.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {Parse5Nodes}\n * `parse5` node.\n */\nexport function toParse5(tree, options) {\n const settings = options || emptyOptions\n const space = settings.space\n return one(tree, space === 'svg' ? svg : html)\n}\n\n/**\n * @param {Root} node\n * Node (hast) to transform.\n * @param {Schema} schema\n * Current schema.\n * @returns {Parse5Document}\n * Parse5 node.\n */\nfunction root(node, schema) {\n /** @type {Parse5Document} */\n const result = {\n nodeName: '#document',\n // @ts-expect-error: `parse5` uses enums, which are actually strings.\n mode: (node.data || {}).quirksMode ? 'quirks' : 'no-quirks',\n childNodes: []\n }\n result.childNodes = all(node.children, result, schema)\n patch(node, result)\n return result\n}\n\n/**\n * @param {Root} node\n * Node (hast) to transform.\n * @param {Schema} schema\n * Current schema.\n * @returns {Parse5Fragment}\n * Parse5 node.\n */\nfunction fragment(node, schema) {\n /** @type {Parse5Fragment} */\n const result = {nodeName: '#document-fragment', childNodes: []}\n result.childNodes = all(node.children, result, schema)\n patch(node, result)\n return result\n}\n\n/**\n * @param {Doctype} node\n * Node (hast) to transform.\n * @returns {Parse5Doctype}\n * Parse5 node.\n */\nfunction doctype(node) {\n /** @type {Parse5Doctype} */\n const result = {\n nodeName: '#documentType',\n name: 'html',\n publicId: '',\n systemId: '',\n parentNode: null\n }\n\n patch(node, result)\n return result\n}\n\n/**\n * @param {Text} node\n * Node (hast) to transform.\n * @returns {Parse5Text}\n * Parse5 node.\n */\nfunction text(node) {\n /** @type {Parse5Text} */\n const result = {\n nodeName: '#text',\n value: node.value,\n parentNode: null\n }\n patch(node, result)\n return result\n}\n\n/**\n * @param {Comment} node\n * Node (hast) to transform.\n * @returns {Parse5Comment}\n * Parse5 node.\n */\nfunction comment(node) {\n /** @type {Parse5Comment} */\n const result = {\n nodeName: '#comment',\n data: node.value,\n parentNode: null\n }\n\n patch(node, result)\n\n return result\n}\n\n/**\n * @param {Element} node\n * Node (hast) to transform.\n * @param {Schema} schema\n * Current schema.\n * @returns {Parse5Element}\n * Parse5 node.\n */\nfunction element(node, schema) {\n const parentSchema = schema\n let currentSchema = parentSchema\n\n if (\n node.type === 'element' &&\n node.tagName.toLowerCase() === 'svg' &&\n parentSchema.space === 'html'\n ) {\n currentSchema = svg\n }\n\n /** @type {Array} */\n const attrs = []\n /** @type {string} */\n let prop\n\n if (node.properties) {\n for (prop in node.properties) {\n if (prop !== 'children' && own.call(node.properties, prop)) {\n const result = createProperty(\n currentSchema,\n prop,\n node.properties[prop]\n )\n\n if (result) {\n attrs.push(result)\n }\n }\n }\n }\n\n const space = currentSchema.space\n // `html` and `svg` both have a space.\n assert(space)\n\n /** @type {Parse5Element} */\n const result = {\n nodeName: node.tagName,\n tagName: node.tagName,\n attrs,\n // @ts-expect-error: `parse5` types are wrong.\n namespaceURI: webNamespaces[space],\n childNodes: [],\n parentNode: null\n }\n result.childNodes = all(node.children, result, currentSchema)\n patch(node, result)\n\n if (node.tagName === 'template' && node.content) {\n // @ts-expect-error: `parse5` types are wrong.\n result.content = fragment(node.content, currentSchema)\n }\n\n return result\n}\n\n/**\n * Handle a property.\n *\n * @param {Schema} schema\n * Current schema.\n * @param {string} prop\n * Key.\n * @param {Array | boolean | number | string | null | undefined} value\n * hast property value.\n * @returns {Parse5Attribute | undefined}\n * Field for runtime, optional.\n */\nfunction createProperty(schema, prop, value) {\n const info = find(schema, prop)\n\n // Ignore nullish and `NaN` values.\n if (\n value === false ||\n value === null ||\n value === undefined ||\n (typeof value === 'number' && Number.isNaN(value)) ||\n (!value && info.boolean)\n ) {\n return\n }\n\n if (Array.isArray(value)) {\n // Accept `array`.\n // Most props are space-separated.\n value = info.commaSeparated ? commas(value) : spaces(value)\n }\n\n /** @type {Parse5Attribute} */\n const attribute = {\n name: info.attribute,\n value: value === true ? '' : String(value)\n }\n\n if (info.space && info.space !== 'html' && info.space !== 'svg') {\n const index = attribute.name.indexOf(':')\n\n if (index < 0) {\n attribute.prefix = ''\n } else {\n attribute.name = attribute.name.slice(index + 1)\n attribute.prefix = info.attribute.slice(0, index)\n }\n\n attribute.namespace = webNamespaces[info.space]\n }\n\n return attribute\n}\n\n/**\n * Transform all hast nodes.\n *\n * @param {Array} children\n * List of children.\n * @param {Parse5Parent} parentNode\n * `parse5` parent node.\n * @param {Schema} schema\n * Current schema.\n * @returns {Array}\n * Transformed children.\n */\nfunction all(children, parentNode, schema) {\n let index = -1\n /** @type {Array} */\n const results = []\n\n if (children) {\n while (++index < children.length) {\n /** @type {Parse5Content} */\n const child = one(children[index], schema)\n\n child.parentNode = parentNode\n\n results.push(child)\n }\n }\n\n return results\n}\n\n/**\n * Add position info from `from` to `to`.\n *\n * @param {Nodes} from\n * hast node.\n * @param {Parse5Nodes} to\n * `parse5` node.\n * @returns {undefined}\n * Nothing.\n */\nfunction patch(from, to) {\n const position = from.position\n\n if (position && position.start && position.end) {\n assert(typeof position.start.offset === 'number')\n assert(typeof position.end.offset === 'number')\n\n to.sourceCodeLocation = {\n startLine: position.start.line,\n startCol: position.start.column,\n startOffset: position.start.offset,\n endLine: position.end.line,\n endCol: position.end.column,\n endOffset: position.end.offset\n }\n }\n}\n","/**\n * List of HTML void tag names.\n *\n * @type {Array}\n */\nexport const htmlVoidElements = [\n 'area',\n 'base',\n 'basefont',\n 'bgsound',\n 'br',\n 'col',\n 'command',\n 'embed',\n 'frame',\n 'hr',\n 'image',\n 'img',\n 'input',\n 'keygen',\n 'link',\n 'meta',\n 'param',\n 'source',\n 'track',\n 'wbr'\n]\n","const UNDEFINED_CODE_POINTS = new Set([\n 65534, 65535, 131070, 131071, 196606, 196607, 262142, 262143, 327678, 327679, 393214,\n 393215, 458750, 458751, 524286, 524287, 589822, 589823, 655358, 655359, 720894,\n 720895, 786430, 786431, 851966, 851967, 917502, 917503, 983038, 983039, 1048574,\n 1048575, 1114110, 1114111,\n]);\nexport const REPLACEMENT_CHARACTER = '\\uFFFD';\nexport var CODE_POINTS;\n(function (CODE_POINTS) {\n CODE_POINTS[CODE_POINTS[\"EOF\"] = -1] = \"EOF\";\n CODE_POINTS[CODE_POINTS[\"NULL\"] = 0] = \"NULL\";\n CODE_POINTS[CODE_POINTS[\"TABULATION\"] = 9] = \"TABULATION\";\n CODE_POINTS[CODE_POINTS[\"CARRIAGE_RETURN\"] = 13] = \"CARRIAGE_RETURN\";\n CODE_POINTS[CODE_POINTS[\"LINE_FEED\"] = 10] = \"LINE_FEED\";\n CODE_POINTS[CODE_POINTS[\"FORM_FEED\"] = 12] = \"FORM_FEED\";\n CODE_POINTS[CODE_POINTS[\"SPACE\"] = 32] = \"SPACE\";\n CODE_POINTS[CODE_POINTS[\"EXCLAMATION_MARK\"] = 33] = \"EXCLAMATION_MARK\";\n CODE_POINTS[CODE_POINTS[\"QUOTATION_MARK\"] = 34] = \"QUOTATION_MARK\";\n CODE_POINTS[CODE_POINTS[\"NUMBER_SIGN\"] = 35] = \"NUMBER_SIGN\";\n CODE_POINTS[CODE_POINTS[\"AMPERSAND\"] = 38] = \"AMPERSAND\";\n CODE_POINTS[CODE_POINTS[\"APOSTROPHE\"] = 39] = \"APOSTROPHE\";\n CODE_POINTS[CODE_POINTS[\"HYPHEN_MINUS\"] = 45] = \"HYPHEN_MINUS\";\n CODE_POINTS[CODE_POINTS[\"SOLIDUS\"] = 47] = \"SOLIDUS\";\n CODE_POINTS[CODE_POINTS[\"DIGIT_0\"] = 48] = \"DIGIT_0\";\n CODE_POINTS[CODE_POINTS[\"DIGIT_9\"] = 57] = \"DIGIT_9\";\n CODE_POINTS[CODE_POINTS[\"SEMICOLON\"] = 59] = \"SEMICOLON\";\n CODE_POINTS[CODE_POINTS[\"LESS_THAN_SIGN\"] = 60] = \"LESS_THAN_SIGN\";\n CODE_POINTS[CODE_POINTS[\"EQUALS_SIGN\"] = 61] = \"EQUALS_SIGN\";\n CODE_POINTS[CODE_POINTS[\"GREATER_THAN_SIGN\"] = 62] = \"GREATER_THAN_SIGN\";\n CODE_POINTS[CODE_POINTS[\"QUESTION_MARK\"] = 63] = \"QUESTION_MARK\";\n CODE_POINTS[CODE_POINTS[\"LATIN_CAPITAL_A\"] = 65] = \"LATIN_CAPITAL_A\";\n CODE_POINTS[CODE_POINTS[\"LATIN_CAPITAL_F\"] = 70] = \"LATIN_CAPITAL_F\";\n CODE_POINTS[CODE_POINTS[\"LATIN_CAPITAL_X\"] = 88] = \"LATIN_CAPITAL_X\";\n CODE_POINTS[CODE_POINTS[\"LATIN_CAPITAL_Z\"] = 90] = \"LATIN_CAPITAL_Z\";\n CODE_POINTS[CODE_POINTS[\"RIGHT_SQUARE_BRACKET\"] = 93] = \"RIGHT_SQUARE_BRACKET\";\n CODE_POINTS[CODE_POINTS[\"GRAVE_ACCENT\"] = 96] = \"GRAVE_ACCENT\";\n CODE_POINTS[CODE_POINTS[\"LATIN_SMALL_A\"] = 97] = \"LATIN_SMALL_A\";\n CODE_POINTS[CODE_POINTS[\"LATIN_SMALL_F\"] = 102] = \"LATIN_SMALL_F\";\n CODE_POINTS[CODE_POINTS[\"LATIN_SMALL_X\"] = 120] = \"LATIN_SMALL_X\";\n CODE_POINTS[CODE_POINTS[\"LATIN_SMALL_Z\"] = 122] = \"LATIN_SMALL_Z\";\n CODE_POINTS[CODE_POINTS[\"REPLACEMENT_CHARACTER\"] = 65533] = \"REPLACEMENT_CHARACTER\";\n})(CODE_POINTS = CODE_POINTS || (CODE_POINTS = {}));\nexport const SEQUENCES = {\n DASH_DASH: '--',\n CDATA_START: '[CDATA[',\n DOCTYPE: 'doctype',\n SCRIPT: 'script',\n PUBLIC: 'public',\n SYSTEM: 'system',\n};\n//Surrogates\nexport function isSurrogate(cp) {\n return cp >= 55296 && cp <= 57343;\n}\nexport function isSurrogatePair(cp) {\n return cp >= 56320 && cp <= 57343;\n}\nexport function getSurrogatePairCodePoint(cp1, cp2) {\n return (cp1 - 55296) * 1024 + 9216 + cp2;\n}\n//NOTE: excluding NULL and ASCII whitespace\nexport function isControlCodePoint(cp) {\n return ((cp !== 0x20 && cp !== 0x0a && cp !== 0x0d && cp !== 0x09 && cp !== 0x0c && cp >= 0x01 && cp <= 0x1f) ||\n (cp >= 0x7f && cp <= 0x9f));\n}\nexport function isUndefinedCodePoint(cp) {\n return (cp >= 64976 && cp <= 65007) || UNDEFINED_CODE_POINTS.has(cp);\n}\n//# sourceMappingURL=unicode.js.map","export var ERR;\n(function (ERR) {\n ERR[\"controlCharacterInInputStream\"] = \"control-character-in-input-stream\";\n ERR[\"noncharacterInInputStream\"] = \"noncharacter-in-input-stream\";\n ERR[\"surrogateInInputStream\"] = \"surrogate-in-input-stream\";\n ERR[\"nonVoidHtmlElementStartTagWithTrailingSolidus\"] = \"non-void-html-element-start-tag-with-trailing-solidus\";\n ERR[\"endTagWithAttributes\"] = \"end-tag-with-attributes\";\n ERR[\"endTagWithTrailingSolidus\"] = \"end-tag-with-trailing-solidus\";\n ERR[\"unexpectedSolidusInTag\"] = \"unexpected-solidus-in-tag\";\n ERR[\"unexpectedNullCharacter\"] = \"unexpected-null-character\";\n ERR[\"unexpectedQuestionMarkInsteadOfTagName\"] = \"unexpected-question-mark-instead-of-tag-name\";\n ERR[\"invalidFirstCharacterOfTagName\"] = \"invalid-first-character-of-tag-name\";\n ERR[\"unexpectedEqualsSignBeforeAttributeName\"] = \"unexpected-equals-sign-before-attribute-name\";\n ERR[\"missingEndTagName\"] = \"missing-end-tag-name\";\n ERR[\"unexpectedCharacterInAttributeName\"] = \"unexpected-character-in-attribute-name\";\n ERR[\"unknownNamedCharacterReference\"] = \"unknown-named-character-reference\";\n ERR[\"missingSemicolonAfterCharacterReference\"] = \"missing-semicolon-after-character-reference\";\n ERR[\"unexpectedCharacterAfterDoctypeSystemIdentifier\"] = \"unexpected-character-after-doctype-system-identifier\";\n ERR[\"unexpectedCharacterInUnquotedAttributeValue\"] = \"unexpected-character-in-unquoted-attribute-value\";\n ERR[\"eofBeforeTagName\"] = \"eof-before-tag-name\";\n ERR[\"eofInTag\"] = \"eof-in-tag\";\n ERR[\"missingAttributeValue\"] = \"missing-attribute-value\";\n ERR[\"missingWhitespaceBetweenAttributes\"] = \"missing-whitespace-between-attributes\";\n ERR[\"missingWhitespaceAfterDoctypePublicKeyword\"] = \"missing-whitespace-after-doctype-public-keyword\";\n ERR[\"missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers\"] = \"missing-whitespace-between-doctype-public-and-system-identifiers\";\n ERR[\"missingWhitespaceAfterDoctypeSystemKeyword\"] = \"missing-whitespace-after-doctype-system-keyword\";\n ERR[\"missingQuoteBeforeDoctypePublicIdentifier\"] = \"missing-quote-before-doctype-public-identifier\";\n ERR[\"missingQuoteBeforeDoctypeSystemIdentifier\"] = \"missing-quote-before-doctype-system-identifier\";\n ERR[\"missingDoctypePublicIdentifier\"] = \"missing-doctype-public-identifier\";\n ERR[\"missingDoctypeSystemIdentifier\"] = \"missing-doctype-system-identifier\";\n ERR[\"abruptDoctypePublicIdentifier\"] = \"abrupt-doctype-public-identifier\";\n ERR[\"abruptDoctypeSystemIdentifier\"] = \"abrupt-doctype-system-identifier\";\n ERR[\"cdataInHtmlContent\"] = \"cdata-in-html-content\";\n ERR[\"incorrectlyOpenedComment\"] = \"incorrectly-opened-comment\";\n ERR[\"eofInScriptHtmlCommentLikeText\"] = \"eof-in-script-html-comment-like-text\";\n ERR[\"eofInDoctype\"] = \"eof-in-doctype\";\n ERR[\"nestedComment\"] = \"nested-comment\";\n ERR[\"abruptClosingOfEmptyComment\"] = \"abrupt-closing-of-empty-comment\";\n ERR[\"eofInComment\"] = \"eof-in-comment\";\n ERR[\"incorrectlyClosedComment\"] = \"incorrectly-closed-comment\";\n ERR[\"eofInCdata\"] = \"eof-in-cdata\";\n ERR[\"absenceOfDigitsInNumericCharacterReference\"] = \"absence-of-digits-in-numeric-character-reference\";\n ERR[\"nullCharacterReference\"] = \"null-character-reference\";\n ERR[\"surrogateCharacterReference\"] = \"surrogate-character-reference\";\n ERR[\"characterReferenceOutsideUnicodeRange\"] = \"character-reference-outside-unicode-range\";\n ERR[\"controlCharacterReference\"] = \"control-character-reference\";\n ERR[\"noncharacterCharacterReference\"] = \"noncharacter-character-reference\";\n ERR[\"missingWhitespaceBeforeDoctypeName\"] = \"missing-whitespace-before-doctype-name\";\n ERR[\"missingDoctypeName\"] = \"missing-doctype-name\";\n ERR[\"invalidCharacterSequenceAfterDoctypeName\"] = \"invalid-character-sequence-after-doctype-name\";\n ERR[\"duplicateAttribute\"] = \"duplicate-attribute\";\n ERR[\"nonConformingDoctype\"] = \"non-conforming-doctype\";\n ERR[\"missingDoctype\"] = \"missing-doctype\";\n ERR[\"misplacedDoctype\"] = \"misplaced-doctype\";\n ERR[\"endTagWithoutMatchingOpenElement\"] = \"end-tag-without-matching-open-element\";\n ERR[\"closingOfElementWithOpenChildElements\"] = \"closing-of-element-with-open-child-elements\";\n ERR[\"disallowedContentInNoscriptInHead\"] = \"disallowed-content-in-noscript-in-head\";\n ERR[\"openElementsLeftAfterEof\"] = \"open-elements-left-after-eof\";\n ERR[\"abandonedHeadElementChild\"] = \"abandoned-head-element-child\";\n ERR[\"misplacedStartTagForHeadElement\"] = \"misplaced-start-tag-for-head-element\";\n ERR[\"nestedNoscriptInHead\"] = \"nested-noscript-in-head\";\n ERR[\"eofInElementThatCanContainOnlyText\"] = \"eof-in-element-that-can-contain-only-text\";\n})(ERR = ERR || (ERR = {}));\n//# sourceMappingURL=error-codes.js.map","import { CODE_POINTS as $, getSurrogatePairCodePoint, isControlCodePoint, isSurrogate, isSurrogatePair, isUndefinedCodePoint, } from '../common/unicode.js';\nimport { ERR } from '../common/error-codes.js';\n//Const\nconst DEFAULT_BUFFER_WATERLINE = 1 << 16;\n//Preprocessor\n//NOTE: HTML input preprocessing\n//(see: http://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html#preprocessing-the-input-stream)\nexport class Preprocessor {\n constructor(handler) {\n this.handler = handler;\n this.html = '';\n this.pos = -1;\n // NOTE: Initial `lastGapPos` is -2, to ensure `col` on initialisation is 0\n this.lastGapPos = -2;\n this.gapStack = [];\n this.skipNextNewLine = false;\n this.lastChunkWritten = false;\n this.endOfChunkHit = false;\n this.bufferWaterline = DEFAULT_BUFFER_WATERLINE;\n this.isEol = false;\n this.lineStartPos = 0;\n this.droppedBufferSize = 0;\n this.line = 1;\n //NOTE: avoid reporting errors twice on advance/retreat\n this.lastErrOffset = -1;\n }\n /** The column on the current line. If we just saw a gap (eg. a surrogate pair), return the index before. */\n get col() {\n return this.pos - this.lineStartPos + Number(this.lastGapPos !== this.pos);\n }\n get offset() {\n return this.droppedBufferSize + this.pos;\n }\n getError(code) {\n const { line, col, offset } = this;\n return {\n code,\n startLine: line,\n endLine: line,\n startCol: col,\n endCol: col,\n startOffset: offset,\n endOffset: offset,\n };\n }\n _err(code) {\n if (this.handler.onParseError && this.lastErrOffset !== this.offset) {\n this.lastErrOffset = this.offset;\n this.handler.onParseError(this.getError(code));\n }\n }\n _addGap() {\n this.gapStack.push(this.lastGapPos);\n this.lastGapPos = this.pos;\n }\n _processSurrogate(cp) {\n //NOTE: try to peek a surrogate pair\n if (this.pos !== this.html.length - 1) {\n const nextCp = this.html.charCodeAt(this.pos + 1);\n if (isSurrogatePair(nextCp)) {\n //NOTE: we have a surrogate pair. Peek pair character and recalculate code point.\n this.pos++;\n //NOTE: add a gap that should be avoided during retreat\n this._addGap();\n return getSurrogatePairCodePoint(cp, nextCp);\n }\n }\n //NOTE: we are at the end of a chunk, therefore we can't infer the surrogate pair yet.\n else if (!this.lastChunkWritten) {\n this.endOfChunkHit = true;\n return $.EOF;\n }\n //NOTE: isolated surrogate\n this._err(ERR.surrogateInInputStream);\n return cp;\n }\n willDropParsedChunk() {\n return this.pos > this.bufferWaterline;\n }\n dropParsedChunk() {\n if (this.willDropParsedChunk()) {\n this.html = this.html.substring(this.pos);\n this.lineStartPos -= this.pos;\n this.droppedBufferSize += this.pos;\n this.pos = 0;\n this.lastGapPos = -2;\n this.gapStack.length = 0;\n }\n }\n write(chunk, isLastChunk) {\n if (this.html.length > 0) {\n this.html += chunk;\n }\n else {\n this.html = chunk;\n }\n this.endOfChunkHit = false;\n this.lastChunkWritten = isLastChunk;\n }\n insertHtmlAtCurrentPos(chunk) {\n this.html = this.html.substring(0, this.pos + 1) + chunk + this.html.substring(this.pos + 1);\n this.endOfChunkHit = false;\n }\n startsWith(pattern, caseSensitive) {\n // Check if our buffer has enough characters\n if (this.pos + pattern.length > this.html.length) {\n this.endOfChunkHit = !this.lastChunkWritten;\n return false;\n }\n if (caseSensitive) {\n return this.html.startsWith(pattern, this.pos);\n }\n for (let i = 0; i < pattern.length; i++) {\n const cp = this.html.charCodeAt(this.pos + i) | 0x20;\n if (cp !== pattern.charCodeAt(i)) {\n return false;\n }\n }\n return true;\n }\n peek(offset) {\n const pos = this.pos + offset;\n if (pos >= this.html.length) {\n this.endOfChunkHit = !this.lastChunkWritten;\n return $.EOF;\n }\n const code = this.html.charCodeAt(pos);\n return code === $.CARRIAGE_RETURN ? $.LINE_FEED : code;\n }\n advance() {\n this.pos++;\n //NOTE: LF should be in the last column of the line\n if (this.isEol) {\n this.isEol = false;\n this.line++;\n this.lineStartPos = this.pos;\n }\n if (this.pos >= this.html.length) {\n this.endOfChunkHit = !this.lastChunkWritten;\n return $.EOF;\n }\n let cp = this.html.charCodeAt(this.pos);\n //NOTE: all U+000D CARRIAGE RETURN (CR) characters must be converted to U+000A LINE FEED (LF) characters\n if (cp === $.CARRIAGE_RETURN) {\n this.isEol = true;\n this.skipNextNewLine = true;\n return $.LINE_FEED;\n }\n //NOTE: any U+000A LINE FEED (LF) characters that immediately follow a U+000D CARRIAGE RETURN (CR) character\n //must be ignored.\n if (cp === $.LINE_FEED) {\n this.isEol = true;\n if (this.skipNextNewLine) {\n // `line` will be bumped again in the recursive call.\n this.line--;\n this.skipNextNewLine = false;\n this._addGap();\n return this.advance();\n }\n }\n this.skipNextNewLine = false;\n if (isSurrogate(cp)) {\n cp = this._processSurrogate(cp);\n }\n //OPTIMIZATION: first check if code point is in the common allowed\n //range (ASCII alphanumeric, whitespaces, big chunk of BMP)\n //before going into detailed performance cost validation.\n const isCommonValidRange = this.handler.onParseError === null ||\n (cp > 0x1f && cp < 0x7f) ||\n cp === $.LINE_FEED ||\n cp === $.CARRIAGE_RETURN ||\n (cp > 0x9f && cp < 64976);\n if (!isCommonValidRange) {\n this._checkForProblematicCharacters(cp);\n }\n return cp;\n }\n _checkForProblematicCharacters(cp) {\n if (isControlCodePoint(cp)) {\n this._err(ERR.controlCharacterInInputStream);\n }\n else if (isUndefinedCodePoint(cp)) {\n this._err(ERR.noncharacterInInputStream);\n }\n }\n retreat(count) {\n this.pos -= count;\n while (this.pos < this.lastGapPos) {\n this.lastGapPos = this.gapStack.pop();\n this.pos--;\n }\n this.isEol = false;\n }\n}\n//# sourceMappingURL=preprocessor.js.map","export var TokenType;\n(function (TokenType) {\n TokenType[TokenType[\"CHARACTER\"] = 0] = \"CHARACTER\";\n TokenType[TokenType[\"NULL_CHARACTER\"] = 1] = \"NULL_CHARACTER\";\n TokenType[TokenType[\"WHITESPACE_CHARACTER\"] = 2] = \"WHITESPACE_CHARACTER\";\n TokenType[TokenType[\"START_TAG\"] = 3] = \"START_TAG\";\n TokenType[TokenType[\"END_TAG\"] = 4] = \"END_TAG\";\n TokenType[TokenType[\"COMMENT\"] = 5] = \"COMMENT\";\n TokenType[TokenType[\"DOCTYPE\"] = 6] = \"DOCTYPE\";\n TokenType[TokenType[\"EOF\"] = 7] = \"EOF\";\n TokenType[TokenType[\"HIBERNATION\"] = 8] = \"HIBERNATION\";\n})(TokenType = TokenType || (TokenType = {}));\nexport function getTokenAttr(token, attrName) {\n for (let i = token.attrs.length - 1; i >= 0; i--) {\n if (token.attrs[i].name === attrName) {\n return token.attrs[i].value;\n }\n }\n return null;\n}\n//# sourceMappingURL=token.js.map",null,null,null,null,"/** All valid namespaces in HTML. */\nexport var NS;\n(function (NS) {\n NS[\"HTML\"] = \"http://www.w3.org/1999/xhtml\";\n NS[\"MATHML\"] = \"http://www.w3.org/1998/Math/MathML\";\n NS[\"SVG\"] = \"http://www.w3.org/2000/svg\";\n NS[\"XLINK\"] = \"http://www.w3.org/1999/xlink\";\n NS[\"XML\"] = \"http://www.w3.org/XML/1998/namespace\";\n NS[\"XMLNS\"] = \"http://www.w3.org/2000/xmlns/\";\n})(NS = NS || (NS = {}));\nexport var ATTRS;\n(function (ATTRS) {\n ATTRS[\"TYPE\"] = \"type\";\n ATTRS[\"ACTION\"] = \"action\";\n ATTRS[\"ENCODING\"] = \"encoding\";\n ATTRS[\"PROMPT\"] = \"prompt\";\n ATTRS[\"NAME\"] = \"name\";\n ATTRS[\"COLOR\"] = \"color\";\n ATTRS[\"FACE\"] = \"face\";\n ATTRS[\"SIZE\"] = \"size\";\n})(ATTRS = ATTRS || (ATTRS = {}));\n/**\n * The mode of the document.\n *\n * @see {@link https://dom.spec.whatwg.org/#concept-document-limited-quirks}\n */\nexport var DOCUMENT_MODE;\n(function (DOCUMENT_MODE) {\n DOCUMENT_MODE[\"NO_QUIRKS\"] = \"no-quirks\";\n DOCUMENT_MODE[\"QUIRKS\"] = \"quirks\";\n DOCUMENT_MODE[\"LIMITED_QUIRKS\"] = \"limited-quirks\";\n})(DOCUMENT_MODE = DOCUMENT_MODE || (DOCUMENT_MODE = {}));\nexport var TAG_NAMES;\n(function (TAG_NAMES) {\n TAG_NAMES[\"A\"] = \"a\";\n TAG_NAMES[\"ADDRESS\"] = \"address\";\n TAG_NAMES[\"ANNOTATION_XML\"] = \"annotation-xml\";\n TAG_NAMES[\"APPLET\"] = \"applet\";\n TAG_NAMES[\"AREA\"] = \"area\";\n TAG_NAMES[\"ARTICLE\"] = \"article\";\n TAG_NAMES[\"ASIDE\"] = \"aside\";\n TAG_NAMES[\"B\"] = \"b\";\n TAG_NAMES[\"BASE\"] = \"base\";\n TAG_NAMES[\"BASEFONT\"] = \"basefont\";\n TAG_NAMES[\"BGSOUND\"] = \"bgsound\";\n TAG_NAMES[\"BIG\"] = \"big\";\n TAG_NAMES[\"BLOCKQUOTE\"] = \"blockquote\";\n TAG_NAMES[\"BODY\"] = \"body\";\n TAG_NAMES[\"BR\"] = \"br\";\n TAG_NAMES[\"BUTTON\"] = \"button\";\n TAG_NAMES[\"CAPTION\"] = \"caption\";\n TAG_NAMES[\"CENTER\"] = \"center\";\n TAG_NAMES[\"CODE\"] = \"code\";\n TAG_NAMES[\"COL\"] = \"col\";\n TAG_NAMES[\"COLGROUP\"] = \"colgroup\";\n TAG_NAMES[\"DD\"] = \"dd\";\n TAG_NAMES[\"DESC\"] = \"desc\";\n TAG_NAMES[\"DETAILS\"] = \"details\";\n TAG_NAMES[\"DIALOG\"] = \"dialog\";\n TAG_NAMES[\"DIR\"] = \"dir\";\n TAG_NAMES[\"DIV\"] = \"div\";\n TAG_NAMES[\"DL\"] = \"dl\";\n TAG_NAMES[\"DT\"] = \"dt\";\n TAG_NAMES[\"EM\"] = \"em\";\n TAG_NAMES[\"EMBED\"] = \"embed\";\n TAG_NAMES[\"FIELDSET\"] = \"fieldset\";\n TAG_NAMES[\"FIGCAPTION\"] = \"figcaption\";\n TAG_NAMES[\"FIGURE\"] = \"figure\";\n TAG_NAMES[\"FONT\"] = \"font\";\n TAG_NAMES[\"FOOTER\"] = \"footer\";\n TAG_NAMES[\"FOREIGN_OBJECT\"] = \"foreignObject\";\n TAG_NAMES[\"FORM\"] = \"form\";\n TAG_NAMES[\"FRAME\"] = \"frame\";\n TAG_NAMES[\"FRAMESET\"] = \"frameset\";\n TAG_NAMES[\"H1\"] = \"h1\";\n TAG_NAMES[\"H2\"] = \"h2\";\n TAG_NAMES[\"H3\"] = \"h3\";\n TAG_NAMES[\"H4\"] = \"h4\";\n TAG_NAMES[\"H5\"] = \"h5\";\n TAG_NAMES[\"H6\"] = \"h6\";\n TAG_NAMES[\"HEAD\"] = \"head\";\n TAG_NAMES[\"HEADER\"] = \"header\";\n TAG_NAMES[\"HGROUP\"] = \"hgroup\";\n TAG_NAMES[\"HR\"] = \"hr\";\n TAG_NAMES[\"HTML\"] = \"html\";\n TAG_NAMES[\"I\"] = \"i\";\n TAG_NAMES[\"IMG\"] = \"img\";\n TAG_NAMES[\"IMAGE\"] = \"image\";\n TAG_NAMES[\"INPUT\"] = \"input\";\n TAG_NAMES[\"IFRAME\"] = \"iframe\";\n TAG_NAMES[\"KEYGEN\"] = \"keygen\";\n TAG_NAMES[\"LABEL\"] = \"label\";\n TAG_NAMES[\"LI\"] = \"li\";\n TAG_NAMES[\"LINK\"] = \"link\";\n TAG_NAMES[\"LISTING\"] = \"listing\";\n TAG_NAMES[\"MAIN\"] = \"main\";\n TAG_NAMES[\"MALIGNMARK\"] = \"malignmark\";\n TAG_NAMES[\"MARQUEE\"] = \"marquee\";\n TAG_NAMES[\"MATH\"] = \"math\";\n TAG_NAMES[\"MENU\"] = \"menu\";\n TAG_NAMES[\"META\"] = \"meta\";\n TAG_NAMES[\"MGLYPH\"] = \"mglyph\";\n TAG_NAMES[\"MI\"] = \"mi\";\n TAG_NAMES[\"MO\"] = \"mo\";\n TAG_NAMES[\"MN\"] = \"mn\";\n TAG_NAMES[\"MS\"] = \"ms\";\n TAG_NAMES[\"MTEXT\"] = \"mtext\";\n TAG_NAMES[\"NAV\"] = \"nav\";\n TAG_NAMES[\"NOBR\"] = \"nobr\";\n TAG_NAMES[\"NOFRAMES\"] = \"noframes\";\n TAG_NAMES[\"NOEMBED\"] = \"noembed\";\n TAG_NAMES[\"NOSCRIPT\"] = \"noscript\";\n TAG_NAMES[\"OBJECT\"] = \"object\";\n TAG_NAMES[\"OL\"] = \"ol\";\n TAG_NAMES[\"OPTGROUP\"] = \"optgroup\";\n TAG_NAMES[\"OPTION\"] = \"option\";\n TAG_NAMES[\"P\"] = \"p\";\n TAG_NAMES[\"PARAM\"] = \"param\";\n TAG_NAMES[\"PLAINTEXT\"] = \"plaintext\";\n TAG_NAMES[\"PRE\"] = \"pre\";\n TAG_NAMES[\"RB\"] = \"rb\";\n TAG_NAMES[\"RP\"] = \"rp\";\n TAG_NAMES[\"RT\"] = \"rt\";\n TAG_NAMES[\"RTC\"] = \"rtc\";\n TAG_NAMES[\"RUBY\"] = \"ruby\";\n TAG_NAMES[\"S\"] = \"s\";\n TAG_NAMES[\"SCRIPT\"] = \"script\";\n TAG_NAMES[\"SECTION\"] = \"section\";\n TAG_NAMES[\"SELECT\"] = \"select\";\n TAG_NAMES[\"SOURCE\"] = \"source\";\n TAG_NAMES[\"SMALL\"] = \"small\";\n TAG_NAMES[\"SPAN\"] = \"span\";\n TAG_NAMES[\"STRIKE\"] = \"strike\";\n TAG_NAMES[\"STRONG\"] = \"strong\";\n TAG_NAMES[\"STYLE\"] = \"style\";\n TAG_NAMES[\"SUB\"] = \"sub\";\n TAG_NAMES[\"SUMMARY\"] = \"summary\";\n TAG_NAMES[\"SUP\"] = \"sup\";\n TAG_NAMES[\"TABLE\"] = \"table\";\n TAG_NAMES[\"TBODY\"] = \"tbody\";\n TAG_NAMES[\"TEMPLATE\"] = \"template\";\n TAG_NAMES[\"TEXTAREA\"] = \"textarea\";\n TAG_NAMES[\"TFOOT\"] = \"tfoot\";\n TAG_NAMES[\"TD\"] = \"td\";\n TAG_NAMES[\"TH\"] = \"th\";\n TAG_NAMES[\"THEAD\"] = \"thead\";\n TAG_NAMES[\"TITLE\"] = \"title\";\n TAG_NAMES[\"TR\"] = \"tr\";\n TAG_NAMES[\"TRACK\"] = \"track\";\n TAG_NAMES[\"TT\"] = \"tt\";\n TAG_NAMES[\"U\"] = \"u\";\n TAG_NAMES[\"UL\"] = \"ul\";\n TAG_NAMES[\"SVG\"] = \"svg\";\n TAG_NAMES[\"VAR\"] = \"var\";\n TAG_NAMES[\"WBR\"] = \"wbr\";\n TAG_NAMES[\"XMP\"] = \"xmp\";\n})(TAG_NAMES = TAG_NAMES || (TAG_NAMES = {}));\n/**\n * Tag IDs are numeric IDs for known tag names.\n *\n * We use tag IDs to improve the performance of tag name comparisons.\n */\nexport var TAG_ID;\n(function (TAG_ID) {\n TAG_ID[TAG_ID[\"UNKNOWN\"] = 0] = \"UNKNOWN\";\n TAG_ID[TAG_ID[\"A\"] = 1] = \"A\";\n TAG_ID[TAG_ID[\"ADDRESS\"] = 2] = \"ADDRESS\";\n TAG_ID[TAG_ID[\"ANNOTATION_XML\"] = 3] = \"ANNOTATION_XML\";\n TAG_ID[TAG_ID[\"APPLET\"] = 4] = \"APPLET\";\n TAG_ID[TAG_ID[\"AREA\"] = 5] = \"AREA\";\n TAG_ID[TAG_ID[\"ARTICLE\"] = 6] = \"ARTICLE\";\n TAG_ID[TAG_ID[\"ASIDE\"] = 7] = \"ASIDE\";\n TAG_ID[TAG_ID[\"B\"] = 8] = \"B\";\n TAG_ID[TAG_ID[\"BASE\"] = 9] = \"BASE\";\n TAG_ID[TAG_ID[\"BASEFONT\"] = 10] = \"BASEFONT\";\n TAG_ID[TAG_ID[\"BGSOUND\"] = 11] = \"BGSOUND\";\n TAG_ID[TAG_ID[\"BIG\"] = 12] = \"BIG\";\n TAG_ID[TAG_ID[\"BLOCKQUOTE\"] = 13] = \"BLOCKQUOTE\";\n TAG_ID[TAG_ID[\"BODY\"] = 14] = \"BODY\";\n TAG_ID[TAG_ID[\"BR\"] = 15] = \"BR\";\n TAG_ID[TAG_ID[\"BUTTON\"] = 16] = \"BUTTON\";\n TAG_ID[TAG_ID[\"CAPTION\"] = 17] = \"CAPTION\";\n TAG_ID[TAG_ID[\"CENTER\"] = 18] = \"CENTER\";\n TAG_ID[TAG_ID[\"CODE\"] = 19] = \"CODE\";\n TAG_ID[TAG_ID[\"COL\"] = 20] = \"COL\";\n TAG_ID[TAG_ID[\"COLGROUP\"] = 21] = \"COLGROUP\";\n TAG_ID[TAG_ID[\"DD\"] = 22] = \"DD\";\n TAG_ID[TAG_ID[\"DESC\"] = 23] = \"DESC\";\n TAG_ID[TAG_ID[\"DETAILS\"] = 24] = \"DETAILS\";\n TAG_ID[TAG_ID[\"DIALOG\"] = 25] = \"DIALOG\";\n TAG_ID[TAG_ID[\"DIR\"] = 26] = \"DIR\";\n TAG_ID[TAG_ID[\"DIV\"] = 27] = \"DIV\";\n TAG_ID[TAG_ID[\"DL\"] = 28] = \"DL\";\n TAG_ID[TAG_ID[\"DT\"] = 29] = \"DT\";\n TAG_ID[TAG_ID[\"EM\"] = 30] = \"EM\";\n TAG_ID[TAG_ID[\"EMBED\"] = 31] = \"EMBED\";\n TAG_ID[TAG_ID[\"FIELDSET\"] = 32] = \"FIELDSET\";\n TAG_ID[TAG_ID[\"FIGCAPTION\"] = 33] = \"FIGCAPTION\";\n TAG_ID[TAG_ID[\"FIGURE\"] = 34] = \"FIGURE\";\n TAG_ID[TAG_ID[\"FONT\"] = 35] = \"FONT\";\n TAG_ID[TAG_ID[\"FOOTER\"] = 36] = \"FOOTER\";\n TAG_ID[TAG_ID[\"FOREIGN_OBJECT\"] = 37] = \"FOREIGN_OBJECT\";\n TAG_ID[TAG_ID[\"FORM\"] = 38] = \"FORM\";\n TAG_ID[TAG_ID[\"FRAME\"] = 39] = \"FRAME\";\n TAG_ID[TAG_ID[\"FRAMESET\"] = 40] = \"FRAMESET\";\n TAG_ID[TAG_ID[\"H1\"] = 41] = \"H1\";\n TAG_ID[TAG_ID[\"H2\"] = 42] = \"H2\";\n TAG_ID[TAG_ID[\"H3\"] = 43] = \"H3\";\n TAG_ID[TAG_ID[\"H4\"] = 44] = \"H4\";\n TAG_ID[TAG_ID[\"H5\"] = 45] = \"H5\";\n TAG_ID[TAG_ID[\"H6\"] = 46] = \"H6\";\n TAG_ID[TAG_ID[\"HEAD\"] = 47] = \"HEAD\";\n TAG_ID[TAG_ID[\"HEADER\"] = 48] = \"HEADER\";\n TAG_ID[TAG_ID[\"HGROUP\"] = 49] = \"HGROUP\";\n TAG_ID[TAG_ID[\"HR\"] = 50] = \"HR\";\n TAG_ID[TAG_ID[\"HTML\"] = 51] = \"HTML\";\n TAG_ID[TAG_ID[\"I\"] = 52] = \"I\";\n TAG_ID[TAG_ID[\"IMG\"] = 53] = \"IMG\";\n TAG_ID[TAG_ID[\"IMAGE\"] = 54] = \"IMAGE\";\n TAG_ID[TAG_ID[\"INPUT\"] = 55] = \"INPUT\";\n TAG_ID[TAG_ID[\"IFRAME\"] = 56] = \"IFRAME\";\n TAG_ID[TAG_ID[\"KEYGEN\"] = 57] = \"KEYGEN\";\n TAG_ID[TAG_ID[\"LABEL\"] = 58] = \"LABEL\";\n TAG_ID[TAG_ID[\"LI\"] = 59] = \"LI\";\n TAG_ID[TAG_ID[\"LINK\"] = 60] = \"LINK\";\n TAG_ID[TAG_ID[\"LISTING\"] = 61] = \"LISTING\";\n TAG_ID[TAG_ID[\"MAIN\"] = 62] = \"MAIN\";\n TAG_ID[TAG_ID[\"MALIGNMARK\"] = 63] = \"MALIGNMARK\";\n TAG_ID[TAG_ID[\"MARQUEE\"] = 64] = \"MARQUEE\";\n TAG_ID[TAG_ID[\"MATH\"] = 65] = \"MATH\";\n TAG_ID[TAG_ID[\"MENU\"] = 66] = \"MENU\";\n TAG_ID[TAG_ID[\"META\"] = 67] = \"META\";\n TAG_ID[TAG_ID[\"MGLYPH\"] = 68] = \"MGLYPH\";\n TAG_ID[TAG_ID[\"MI\"] = 69] = \"MI\";\n TAG_ID[TAG_ID[\"MO\"] = 70] = \"MO\";\n TAG_ID[TAG_ID[\"MN\"] = 71] = \"MN\";\n TAG_ID[TAG_ID[\"MS\"] = 72] = \"MS\";\n TAG_ID[TAG_ID[\"MTEXT\"] = 73] = \"MTEXT\";\n TAG_ID[TAG_ID[\"NAV\"] = 74] = \"NAV\";\n TAG_ID[TAG_ID[\"NOBR\"] = 75] = \"NOBR\";\n TAG_ID[TAG_ID[\"NOFRAMES\"] = 76] = \"NOFRAMES\";\n TAG_ID[TAG_ID[\"NOEMBED\"] = 77] = \"NOEMBED\";\n TAG_ID[TAG_ID[\"NOSCRIPT\"] = 78] = \"NOSCRIPT\";\n TAG_ID[TAG_ID[\"OBJECT\"] = 79] = \"OBJECT\";\n TAG_ID[TAG_ID[\"OL\"] = 80] = \"OL\";\n TAG_ID[TAG_ID[\"OPTGROUP\"] = 81] = \"OPTGROUP\";\n TAG_ID[TAG_ID[\"OPTION\"] = 82] = \"OPTION\";\n TAG_ID[TAG_ID[\"P\"] = 83] = \"P\";\n TAG_ID[TAG_ID[\"PARAM\"] = 84] = \"PARAM\";\n TAG_ID[TAG_ID[\"PLAINTEXT\"] = 85] = \"PLAINTEXT\";\n TAG_ID[TAG_ID[\"PRE\"] = 86] = \"PRE\";\n TAG_ID[TAG_ID[\"RB\"] = 87] = \"RB\";\n TAG_ID[TAG_ID[\"RP\"] = 88] = \"RP\";\n TAG_ID[TAG_ID[\"RT\"] = 89] = \"RT\";\n TAG_ID[TAG_ID[\"RTC\"] = 90] = \"RTC\";\n TAG_ID[TAG_ID[\"RUBY\"] = 91] = \"RUBY\";\n TAG_ID[TAG_ID[\"S\"] = 92] = \"S\";\n TAG_ID[TAG_ID[\"SCRIPT\"] = 93] = \"SCRIPT\";\n TAG_ID[TAG_ID[\"SECTION\"] = 94] = \"SECTION\";\n TAG_ID[TAG_ID[\"SELECT\"] = 95] = \"SELECT\";\n TAG_ID[TAG_ID[\"SOURCE\"] = 96] = \"SOURCE\";\n TAG_ID[TAG_ID[\"SMALL\"] = 97] = \"SMALL\";\n TAG_ID[TAG_ID[\"SPAN\"] = 98] = \"SPAN\";\n TAG_ID[TAG_ID[\"STRIKE\"] = 99] = \"STRIKE\";\n TAG_ID[TAG_ID[\"STRONG\"] = 100] = \"STRONG\";\n TAG_ID[TAG_ID[\"STYLE\"] = 101] = \"STYLE\";\n TAG_ID[TAG_ID[\"SUB\"] = 102] = \"SUB\";\n TAG_ID[TAG_ID[\"SUMMARY\"] = 103] = \"SUMMARY\";\n TAG_ID[TAG_ID[\"SUP\"] = 104] = \"SUP\";\n TAG_ID[TAG_ID[\"TABLE\"] = 105] = \"TABLE\";\n TAG_ID[TAG_ID[\"TBODY\"] = 106] = \"TBODY\";\n TAG_ID[TAG_ID[\"TEMPLATE\"] = 107] = \"TEMPLATE\";\n TAG_ID[TAG_ID[\"TEXTAREA\"] = 108] = \"TEXTAREA\";\n TAG_ID[TAG_ID[\"TFOOT\"] = 109] = \"TFOOT\";\n TAG_ID[TAG_ID[\"TD\"] = 110] = \"TD\";\n TAG_ID[TAG_ID[\"TH\"] = 111] = \"TH\";\n TAG_ID[TAG_ID[\"THEAD\"] = 112] = \"THEAD\";\n TAG_ID[TAG_ID[\"TITLE\"] = 113] = \"TITLE\";\n TAG_ID[TAG_ID[\"TR\"] = 114] = \"TR\";\n TAG_ID[TAG_ID[\"TRACK\"] = 115] = \"TRACK\";\n TAG_ID[TAG_ID[\"TT\"] = 116] = \"TT\";\n TAG_ID[TAG_ID[\"U\"] = 117] = \"U\";\n TAG_ID[TAG_ID[\"UL\"] = 118] = \"UL\";\n TAG_ID[TAG_ID[\"SVG\"] = 119] = \"SVG\";\n TAG_ID[TAG_ID[\"VAR\"] = 120] = \"VAR\";\n TAG_ID[TAG_ID[\"WBR\"] = 121] = \"WBR\";\n TAG_ID[TAG_ID[\"XMP\"] = 122] = \"XMP\";\n})(TAG_ID = TAG_ID || (TAG_ID = {}));\nconst TAG_NAME_TO_ID = new Map([\n [TAG_NAMES.A, TAG_ID.A],\n [TAG_NAMES.ADDRESS, TAG_ID.ADDRESS],\n [TAG_NAMES.ANNOTATION_XML, TAG_ID.ANNOTATION_XML],\n [TAG_NAMES.APPLET, TAG_ID.APPLET],\n [TAG_NAMES.AREA, TAG_ID.AREA],\n [TAG_NAMES.ARTICLE, TAG_ID.ARTICLE],\n [TAG_NAMES.ASIDE, TAG_ID.ASIDE],\n [TAG_NAMES.B, TAG_ID.B],\n [TAG_NAMES.BASE, TAG_ID.BASE],\n [TAG_NAMES.BASEFONT, TAG_ID.BASEFONT],\n [TAG_NAMES.BGSOUND, TAG_ID.BGSOUND],\n [TAG_NAMES.BIG, TAG_ID.BIG],\n [TAG_NAMES.BLOCKQUOTE, TAG_ID.BLOCKQUOTE],\n [TAG_NAMES.BODY, TAG_ID.BODY],\n [TAG_NAMES.BR, TAG_ID.BR],\n [TAG_NAMES.BUTTON, TAG_ID.BUTTON],\n [TAG_NAMES.CAPTION, TAG_ID.CAPTION],\n [TAG_NAMES.CENTER, TAG_ID.CENTER],\n [TAG_NAMES.CODE, TAG_ID.CODE],\n [TAG_NAMES.COL, TAG_ID.COL],\n [TAG_NAMES.COLGROUP, TAG_ID.COLGROUP],\n [TAG_NAMES.DD, TAG_ID.DD],\n [TAG_NAMES.DESC, TAG_ID.DESC],\n [TAG_NAMES.DETAILS, TAG_ID.DETAILS],\n [TAG_NAMES.DIALOG, TAG_ID.DIALOG],\n [TAG_NAMES.DIR, TAG_ID.DIR],\n [TAG_NAMES.DIV, TAG_ID.DIV],\n [TAG_NAMES.DL, TAG_ID.DL],\n [TAG_NAMES.DT, TAG_ID.DT],\n [TAG_NAMES.EM, TAG_ID.EM],\n [TAG_NAMES.EMBED, TAG_ID.EMBED],\n [TAG_NAMES.FIELDSET, TAG_ID.FIELDSET],\n [TAG_NAMES.FIGCAPTION, TAG_ID.FIGCAPTION],\n [TAG_NAMES.FIGURE, TAG_ID.FIGURE],\n [TAG_NAMES.FONT, TAG_ID.FONT],\n [TAG_NAMES.FOOTER, TAG_ID.FOOTER],\n [TAG_NAMES.FOREIGN_OBJECT, TAG_ID.FOREIGN_OBJECT],\n [TAG_NAMES.FORM, TAG_ID.FORM],\n [TAG_NAMES.FRAME, TAG_ID.FRAME],\n [TAG_NAMES.FRAMESET, TAG_ID.FRAMESET],\n [TAG_NAMES.H1, TAG_ID.H1],\n [TAG_NAMES.H2, TAG_ID.H2],\n [TAG_NAMES.H3, TAG_ID.H3],\n [TAG_NAMES.H4, TAG_ID.H4],\n [TAG_NAMES.H5, TAG_ID.H5],\n [TAG_NAMES.H6, TAG_ID.H6],\n [TAG_NAMES.HEAD, TAG_ID.HEAD],\n [TAG_NAMES.HEADER, TAG_ID.HEADER],\n [TAG_NAMES.HGROUP, TAG_ID.HGROUP],\n [TAG_NAMES.HR, TAG_ID.HR],\n [TAG_NAMES.HTML, TAG_ID.HTML],\n [TAG_NAMES.I, TAG_ID.I],\n [TAG_NAMES.IMG, TAG_ID.IMG],\n [TAG_NAMES.IMAGE, TAG_ID.IMAGE],\n [TAG_NAMES.INPUT, TAG_ID.INPUT],\n [TAG_NAMES.IFRAME, TAG_ID.IFRAME],\n [TAG_NAMES.KEYGEN, TAG_ID.KEYGEN],\n [TAG_NAMES.LABEL, TAG_ID.LABEL],\n [TAG_NAMES.LI, TAG_ID.LI],\n [TAG_NAMES.LINK, TAG_ID.LINK],\n [TAG_NAMES.LISTING, TAG_ID.LISTING],\n [TAG_NAMES.MAIN, TAG_ID.MAIN],\n [TAG_NAMES.MALIGNMARK, TAG_ID.MALIGNMARK],\n [TAG_NAMES.MARQUEE, TAG_ID.MARQUEE],\n [TAG_NAMES.MATH, TAG_ID.MATH],\n [TAG_NAMES.MENU, TAG_ID.MENU],\n [TAG_NAMES.META, TAG_ID.META],\n [TAG_NAMES.MGLYPH, TAG_ID.MGLYPH],\n [TAG_NAMES.MI, TAG_ID.MI],\n [TAG_NAMES.MO, TAG_ID.MO],\n [TAG_NAMES.MN, TAG_ID.MN],\n [TAG_NAMES.MS, TAG_ID.MS],\n [TAG_NAMES.MTEXT, TAG_ID.MTEXT],\n [TAG_NAMES.NAV, TAG_ID.NAV],\n [TAG_NAMES.NOBR, TAG_ID.NOBR],\n [TAG_NAMES.NOFRAMES, TAG_ID.NOFRAMES],\n [TAG_NAMES.NOEMBED, TAG_ID.NOEMBED],\n [TAG_NAMES.NOSCRIPT, TAG_ID.NOSCRIPT],\n [TAG_NAMES.OBJECT, TAG_ID.OBJECT],\n [TAG_NAMES.OL, TAG_ID.OL],\n [TAG_NAMES.OPTGROUP, TAG_ID.OPTGROUP],\n [TAG_NAMES.OPTION, TAG_ID.OPTION],\n [TAG_NAMES.P, TAG_ID.P],\n [TAG_NAMES.PARAM, TAG_ID.PARAM],\n [TAG_NAMES.PLAINTEXT, TAG_ID.PLAINTEXT],\n [TAG_NAMES.PRE, TAG_ID.PRE],\n [TAG_NAMES.RB, TAG_ID.RB],\n [TAG_NAMES.RP, TAG_ID.RP],\n [TAG_NAMES.RT, TAG_ID.RT],\n [TAG_NAMES.RTC, TAG_ID.RTC],\n [TAG_NAMES.RUBY, TAG_ID.RUBY],\n [TAG_NAMES.S, TAG_ID.S],\n [TAG_NAMES.SCRIPT, TAG_ID.SCRIPT],\n [TAG_NAMES.SECTION, TAG_ID.SECTION],\n [TAG_NAMES.SELECT, TAG_ID.SELECT],\n [TAG_NAMES.SOURCE, TAG_ID.SOURCE],\n [TAG_NAMES.SMALL, TAG_ID.SMALL],\n [TAG_NAMES.SPAN, TAG_ID.SPAN],\n [TAG_NAMES.STRIKE, TAG_ID.STRIKE],\n [TAG_NAMES.STRONG, TAG_ID.STRONG],\n [TAG_NAMES.STYLE, TAG_ID.STYLE],\n [TAG_NAMES.SUB, TAG_ID.SUB],\n [TAG_NAMES.SUMMARY, TAG_ID.SUMMARY],\n [TAG_NAMES.SUP, TAG_ID.SUP],\n [TAG_NAMES.TABLE, TAG_ID.TABLE],\n [TAG_NAMES.TBODY, TAG_ID.TBODY],\n [TAG_NAMES.TEMPLATE, TAG_ID.TEMPLATE],\n [TAG_NAMES.TEXTAREA, TAG_ID.TEXTAREA],\n [TAG_NAMES.TFOOT, TAG_ID.TFOOT],\n [TAG_NAMES.TD, TAG_ID.TD],\n [TAG_NAMES.TH, TAG_ID.TH],\n [TAG_NAMES.THEAD, TAG_ID.THEAD],\n [TAG_NAMES.TITLE, TAG_ID.TITLE],\n [TAG_NAMES.TR, TAG_ID.TR],\n [TAG_NAMES.TRACK, TAG_ID.TRACK],\n [TAG_NAMES.TT, TAG_ID.TT],\n [TAG_NAMES.U, TAG_ID.U],\n [TAG_NAMES.UL, TAG_ID.UL],\n [TAG_NAMES.SVG, TAG_ID.SVG],\n [TAG_NAMES.VAR, TAG_ID.VAR],\n [TAG_NAMES.WBR, TAG_ID.WBR],\n [TAG_NAMES.XMP, TAG_ID.XMP],\n]);\nexport function getTagID(tagName) {\n var _a;\n return (_a = TAG_NAME_TO_ID.get(tagName)) !== null && _a !== void 0 ? _a : TAG_ID.UNKNOWN;\n}\nconst $ = TAG_ID;\nexport const SPECIAL_ELEMENTS = {\n [NS.HTML]: new Set([\n $.ADDRESS,\n $.APPLET,\n $.AREA,\n $.ARTICLE,\n $.ASIDE,\n $.BASE,\n $.BASEFONT,\n $.BGSOUND,\n $.BLOCKQUOTE,\n $.BODY,\n $.BR,\n $.BUTTON,\n $.CAPTION,\n $.CENTER,\n $.COL,\n $.COLGROUP,\n $.DD,\n $.DETAILS,\n $.DIR,\n $.DIV,\n $.DL,\n $.DT,\n $.EMBED,\n $.FIELDSET,\n $.FIGCAPTION,\n $.FIGURE,\n $.FOOTER,\n $.FORM,\n $.FRAME,\n $.FRAMESET,\n $.H1,\n $.H2,\n $.H3,\n $.H4,\n $.H5,\n $.H6,\n $.HEAD,\n $.HEADER,\n $.HGROUP,\n $.HR,\n $.HTML,\n $.IFRAME,\n $.IMG,\n $.INPUT,\n $.LI,\n $.LINK,\n $.LISTING,\n $.MAIN,\n $.MARQUEE,\n $.MENU,\n $.META,\n $.NAV,\n $.NOEMBED,\n $.NOFRAMES,\n $.NOSCRIPT,\n $.OBJECT,\n $.OL,\n $.P,\n $.PARAM,\n $.PLAINTEXT,\n $.PRE,\n $.SCRIPT,\n $.SECTION,\n $.SELECT,\n $.SOURCE,\n $.STYLE,\n $.SUMMARY,\n $.TABLE,\n $.TBODY,\n $.TD,\n $.TEMPLATE,\n $.TEXTAREA,\n $.TFOOT,\n $.TH,\n $.THEAD,\n $.TITLE,\n $.TR,\n $.TRACK,\n $.UL,\n $.WBR,\n $.XMP,\n ]),\n [NS.MATHML]: new Set([$.MI, $.MO, $.MN, $.MS, $.MTEXT, $.ANNOTATION_XML]),\n [NS.SVG]: new Set([$.TITLE, $.FOREIGN_OBJECT, $.DESC]),\n [NS.XLINK]: new Set(),\n [NS.XML]: new Set(),\n [NS.XMLNS]: new Set(),\n};\nexport function isNumberedHeader(tn) {\n return tn === $.H1 || tn === $.H2 || tn === $.H3 || tn === $.H4 || tn === $.H5 || tn === $.H6;\n}\nconst UNESCAPED_TEXT = new Set([\n TAG_NAMES.STYLE,\n TAG_NAMES.SCRIPT,\n TAG_NAMES.XMP,\n TAG_NAMES.IFRAME,\n TAG_NAMES.NOEMBED,\n TAG_NAMES.NOFRAMES,\n TAG_NAMES.PLAINTEXT,\n]);\nexport function hasUnescapedText(tn, scriptingEnabled) {\n return UNESCAPED_TEXT.has(tn) || (scriptingEnabled && tn === TAG_NAMES.NOSCRIPT);\n}\n//# sourceMappingURL=html.js.map","import { Preprocessor } from './preprocessor.js';\nimport { CODE_POINTS as $, SEQUENCES as $$, REPLACEMENT_CHARACTER, isSurrogate, isUndefinedCodePoint, isControlCodePoint, } from '../common/unicode.js';\nimport { TokenType, getTokenAttr, } from '../common/token.js';\nimport { htmlDecodeTree, BinTrieFlags, determineBranch } from 'entities/lib/decode.js';\nimport { ERR } from '../common/error-codes.js';\nimport { TAG_ID, getTagID } from '../common/html.js';\n//C1 Unicode control character reference replacements\nconst C1_CONTROLS_REFERENCE_REPLACEMENTS = new Map([\n [0x80, 8364],\n [0x82, 8218],\n [0x83, 402],\n [0x84, 8222],\n [0x85, 8230],\n [0x86, 8224],\n [0x87, 8225],\n [0x88, 710],\n [0x89, 8240],\n [0x8a, 352],\n [0x8b, 8249],\n [0x8c, 338],\n [0x8e, 381],\n [0x91, 8216],\n [0x92, 8217],\n [0x93, 8220],\n [0x94, 8221],\n [0x95, 8226],\n [0x96, 8211],\n [0x97, 8212],\n [0x98, 732],\n [0x99, 8482],\n [0x9a, 353],\n [0x9b, 8250],\n [0x9c, 339],\n [0x9e, 382],\n [0x9f, 376],\n]);\n//States\nvar State;\n(function (State) {\n State[State[\"DATA\"] = 0] = \"DATA\";\n State[State[\"RCDATA\"] = 1] = \"RCDATA\";\n State[State[\"RAWTEXT\"] = 2] = \"RAWTEXT\";\n State[State[\"SCRIPT_DATA\"] = 3] = \"SCRIPT_DATA\";\n State[State[\"PLAINTEXT\"] = 4] = \"PLAINTEXT\";\n State[State[\"TAG_OPEN\"] = 5] = \"TAG_OPEN\";\n State[State[\"END_TAG_OPEN\"] = 6] = \"END_TAG_OPEN\";\n State[State[\"TAG_NAME\"] = 7] = \"TAG_NAME\";\n State[State[\"RCDATA_LESS_THAN_SIGN\"] = 8] = \"RCDATA_LESS_THAN_SIGN\";\n State[State[\"RCDATA_END_TAG_OPEN\"] = 9] = \"RCDATA_END_TAG_OPEN\";\n State[State[\"RCDATA_END_TAG_NAME\"] = 10] = \"RCDATA_END_TAG_NAME\";\n State[State[\"RAWTEXT_LESS_THAN_SIGN\"] = 11] = \"RAWTEXT_LESS_THAN_SIGN\";\n State[State[\"RAWTEXT_END_TAG_OPEN\"] = 12] = \"RAWTEXT_END_TAG_OPEN\";\n State[State[\"RAWTEXT_END_TAG_NAME\"] = 13] = \"RAWTEXT_END_TAG_NAME\";\n State[State[\"SCRIPT_DATA_LESS_THAN_SIGN\"] = 14] = \"SCRIPT_DATA_LESS_THAN_SIGN\";\n State[State[\"SCRIPT_DATA_END_TAG_OPEN\"] = 15] = \"SCRIPT_DATA_END_TAG_OPEN\";\n State[State[\"SCRIPT_DATA_END_TAG_NAME\"] = 16] = \"SCRIPT_DATA_END_TAG_NAME\";\n State[State[\"SCRIPT_DATA_ESCAPE_START\"] = 17] = \"SCRIPT_DATA_ESCAPE_START\";\n State[State[\"SCRIPT_DATA_ESCAPE_START_DASH\"] = 18] = \"SCRIPT_DATA_ESCAPE_START_DASH\";\n State[State[\"SCRIPT_DATA_ESCAPED\"] = 19] = \"SCRIPT_DATA_ESCAPED\";\n State[State[\"SCRIPT_DATA_ESCAPED_DASH\"] = 20] = \"SCRIPT_DATA_ESCAPED_DASH\";\n State[State[\"SCRIPT_DATA_ESCAPED_DASH_DASH\"] = 21] = \"SCRIPT_DATA_ESCAPED_DASH_DASH\";\n State[State[\"SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN\"] = 22] = \"SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN\";\n State[State[\"SCRIPT_DATA_ESCAPED_END_TAG_OPEN\"] = 23] = \"SCRIPT_DATA_ESCAPED_END_TAG_OPEN\";\n State[State[\"SCRIPT_DATA_ESCAPED_END_TAG_NAME\"] = 24] = \"SCRIPT_DATA_ESCAPED_END_TAG_NAME\";\n State[State[\"SCRIPT_DATA_DOUBLE_ESCAPE_START\"] = 25] = \"SCRIPT_DATA_DOUBLE_ESCAPE_START\";\n State[State[\"SCRIPT_DATA_DOUBLE_ESCAPED\"] = 26] = \"SCRIPT_DATA_DOUBLE_ESCAPED\";\n State[State[\"SCRIPT_DATA_DOUBLE_ESCAPED_DASH\"] = 27] = \"SCRIPT_DATA_DOUBLE_ESCAPED_DASH\";\n State[State[\"SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH\"] = 28] = \"SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH\";\n State[State[\"SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN\"] = 29] = \"SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN\";\n State[State[\"SCRIPT_DATA_DOUBLE_ESCAPE_END\"] = 30] = \"SCRIPT_DATA_DOUBLE_ESCAPE_END\";\n State[State[\"BEFORE_ATTRIBUTE_NAME\"] = 31] = \"BEFORE_ATTRIBUTE_NAME\";\n State[State[\"ATTRIBUTE_NAME\"] = 32] = \"ATTRIBUTE_NAME\";\n State[State[\"AFTER_ATTRIBUTE_NAME\"] = 33] = \"AFTER_ATTRIBUTE_NAME\";\n State[State[\"BEFORE_ATTRIBUTE_VALUE\"] = 34] = \"BEFORE_ATTRIBUTE_VALUE\";\n State[State[\"ATTRIBUTE_VALUE_DOUBLE_QUOTED\"] = 35] = \"ATTRIBUTE_VALUE_DOUBLE_QUOTED\";\n State[State[\"ATTRIBUTE_VALUE_SINGLE_QUOTED\"] = 36] = \"ATTRIBUTE_VALUE_SINGLE_QUOTED\";\n State[State[\"ATTRIBUTE_VALUE_UNQUOTED\"] = 37] = \"ATTRIBUTE_VALUE_UNQUOTED\";\n State[State[\"AFTER_ATTRIBUTE_VALUE_QUOTED\"] = 38] = \"AFTER_ATTRIBUTE_VALUE_QUOTED\";\n State[State[\"SELF_CLOSING_START_TAG\"] = 39] = \"SELF_CLOSING_START_TAG\";\n State[State[\"BOGUS_COMMENT\"] = 40] = \"BOGUS_COMMENT\";\n State[State[\"MARKUP_DECLARATION_OPEN\"] = 41] = \"MARKUP_DECLARATION_OPEN\";\n State[State[\"COMMENT_START\"] = 42] = \"COMMENT_START\";\n State[State[\"COMMENT_START_DASH\"] = 43] = \"COMMENT_START_DASH\";\n State[State[\"COMMENT\"] = 44] = \"COMMENT\";\n State[State[\"COMMENT_LESS_THAN_SIGN\"] = 45] = \"COMMENT_LESS_THAN_SIGN\";\n State[State[\"COMMENT_LESS_THAN_SIGN_BANG\"] = 46] = \"COMMENT_LESS_THAN_SIGN_BANG\";\n State[State[\"COMMENT_LESS_THAN_SIGN_BANG_DASH\"] = 47] = \"COMMENT_LESS_THAN_SIGN_BANG_DASH\";\n State[State[\"COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH\"] = 48] = \"COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH\";\n State[State[\"COMMENT_END_DASH\"] = 49] = \"COMMENT_END_DASH\";\n State[State[\"COMMENT_END\"] = 50] = \"COMMENT_END\";\n State[State[\"COMMENT_END_BANG\"] = 51] = \"COMMENT_END_BANG\";\n State[State[\"DOCTYPE\"] = 52] = \"DOCTYPE\";\n State[State[\"BEFORE_DOCTYPE_NAME\"] = 53] = \"BEFORE_DOCTYPE_NAME\";\n State[State[\"DOCTYPE_NAME\"] = 54] = \"DOCTYPE_NAME\";\n State[State[\"AFTER_DOCTYPE_NAME\"] = 55] = \"AFTER_DOCTYPE_NAME\";\n State[State[\"AFTER_DOCTYPE_PUBLIC_KEYWORD\"] = 56] = \"AFTER_DOCTYPE_PUBLIC_KEYWORD\";\n State[State[\"BEFORE_DOCTYPE_PUBLIC_IDENTIFIER\"] = 57] = \"BEFORE_DOCTYPE_PUBLIC_IDENTIFIER\";\n State[State[\"DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED\"] = 58] = \"DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED\";\n State[State[\"DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED\"] = 59] = \"DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED\";\n State[State[\"AFTER_DOCTYPE_PUBLIC_IDENTIFIER\"] = 60] = \"AFTER_DOCTYPE_PUBLIC_IDENTIFIER\";\n State[State[\"BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS\"] = 61] = \"BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS\";\n State[State[\"AFTER_DOCTYPE_SYSTEM_KEYWORD\"] = 62] = \"AFTER_DOCTYPE_SYSTEM_KEYWORD\";\n State[State[\"BEFORE_DOCTYPE_SYSTEM_IDENTIFIER\"] = 63] = \"BEFORE_DOCTYPE_SYSTEM_IDENTIFIER\";\n State[State[\"DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED\"] = 64] = \"DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED\";\n State[State[\"DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED\"] = 65] = \"DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED\";\n State[State[\"AFTER_DOCTYPE_SYSTEM_IDENTIFIER\"] = 66] = \"AFTER_DOCTYPE_SYSTEM_IDENTIFIER\";\n State[State[\"BOGUS_DOCTYPE\"] = 67] = \"BOGUS_DOCTYPE\";\n State[State[\"CDATA_SECTION\"] = 68] = \"CDATA_SECTION\";\n State[State[\"CDATA_SECTION_BRACKET\"] = 69] = \"CDATA_SECTION_BRACKET\";\n State[State[\"CDATA_SECTION_END\"] = 70] = \"CDATA_SECTION_END\";\n State[State[\"CHARACTER_REFERENCE\"] = 71] = \"CHARACTER_REFERENCE\";\n State[State[\"NAMED_CHARACTER_REFERENCE\"] = 72] = \"NAMED_CHARACTER_REFERENCE\";\n State[State[\"AMBIGUOUS_AMPERSAND\"] = 73] = \"AMBIGUOUS_AMPERSAND\";\n State[State[\"NUMERIC_CHARACTER_REFERENCE\"] = 74] = \"NUMERIC_CHARACTER_REFERENCE\";\n State[State[\"HEXADEMICAL_CHARACTER_REFERENCE_START\"] = 75] = \"HEXADEMICAL_CHARACTER_REFERENCE_START\";\n State[State[\"HEXADEMICAL_CHARACTER_REFERENCE\"] = 76] = \"HEXADEMICAL_CHARACTER_REFERENCE\";\n State[State[\"DECIMAL_CHARACTER_REFERENCE\"] = 77] = \"DECIMAL_CHARACTER_REFERENCE\";\n State[State[\"NUMERIC_CHARACTER_REFERENCE_END\"] = 78] = \"NUMERIC_CHARACTER_REFERENCE_END\";\n})(State || (State = {}));\n//Tokenizer initial states for different modes\nexport const TokenizerMode = {\n DATA: State.DATA,\n RCDATA: State.RCDATA,\n RAWTEXT: State.RAWTEXT,\n SCRIPT_DATA: State.SCRIPT_DATA,\n PLAINTEXT: State.PLAINTEXT,\n CDATA_SECTION: State.CDATA_SECTION,\n};\n//Utils\n//OPTIMIZATION: these utility functions should not be moved out of this module. V8 Crankshaft will not inline\n//this functions if they will be situated in another module due to context switch.\n//Always perform inlining check before modifying this functions ('node --trace-inlining').\nfunction isAsciiDigit(cp) {\n return cp >= $.DIGIT_0 && cp <= $.DIGIT_9;\n}\nfunction isAsciiUpper(cp) {\n return cp >= $.LATIN_CAPITAL_A && cp <= $.LATIN_CAPITAL_Z;\n}\nfunction isAsciiLower(cp) {\n return cp >= $.LATIN_SMALL_A && cp <= $.LATIN_SMALL_Z;\n}\nfunction isAsciiLetter(cp) {\n return isAsciiLower(cp) || isAsciiUpper(cp);\n}\nfunction isAsciiAlphaNumeric(cp) {\n return isAsciiLetter(cp) || isAsciiDigit(cp);\n}\nfunction isAsciiUpperHexDigit(cp) {\n return cp >= $.LATIN_CAPITAL_A && cp <= $.LATIN_CAPITAL_F;\n}\nfunction isAsciiLowerHexDigit(cp) {\n return cp >= $.LATIN_SMALL_A && cp <= $.LATIN_SMALL_F;\n}\nfunction isAsciiHexDigit(cp) {\n return isAsciiDigit(cp) || isAsciiUpperHexDigit(cp) || isAsciiLowerHexDigit(cp);\n}\nfunction toAsciiLower(cp) {\n return cp + 32;\n}\nfunction isWhitespace(cp) {\n return cp === $.SPACE || cp === $.LINE_FEED || cp === $.TABULATION || cp === $.FORM_FEED;\n}\nfunction isEntityInAttributeInvalidEnd(nextCp) {\n return nextCp === $.EQUALS_SIGN || isAsciiAlphaNumeric(nextCp);\n}\nfunction isScriptDataDoubleEscapeSequenceEnd(cp) {\n return isWhitespace(cp) || cp === $.SOLIDUS || cp === $.GREATER_THAN_SIGN;\n}\n//Tokenizer\nexport class Tokenizer {\n constructor(options, handler) {\n this.options = options;\n this.handler = handler;\n this.paused = false;\n /** Ensures that the parsing loop isn't run multiple times at once. */\n this.inLoop = false;\n /**\n * Indicates that the current adjusted node exists, is not an element in the HTML namespace,\n * and that it is not an integration point for either MathML or HTML.\n *\n * @see {@link https://html.spec.whatwg.org/multipage/parsing.html#tree-construction}\n */\n this.inForeignNode = false;\n this.lastStartTagName = '';\n this.active = false;\n this.state = State.DATA;\n this.returnState = State.DATA;\n this.charRefCode = -1;\n this.consumedAfterSnapshot = -1;\n this.currentCharacterToken = null;\n this.currentToken = null;\n this.currentAttr = { name: '', value: '' };\n this.preprocessor = new Preprocessor(handler);\n this.currentLocation = this.getCurrentLocation(-1);\n }\n //Errors\n _err(code) {\n var _a, _b;\n (_b = (_a = this.handler).onParseError) === null || _b === void 0 ? void 0 : _b.call(_a, this.preprocessor.getError(code));\n }\n // NOTE: `offset` may never run across line boundaries.\n getCurrentLocation(offset) {\n if (!this.options.sourceCodeLocationInfo) {\n return null;\n }\n return {\n startLine: this.preprocessor.line,\n startCol: this.preprocessor.col - offset,\n startOffset: this.preprocessor.offset - offset,\n endLine: -1,\n endCol: -1,\n endOffset: -1,\n };\n }\n _runParsingLoop() {\n if (this.inLoop)\n return;\n this.inLoop = true;\n while (this.active && !this.paused) {\n this.consumedAfterSnapshot = 0;\n const cp = this._consume();\n if (!this._ensureHibernation()) {\n this._callState(cp);\n }\n }\n this.inLoop = false;\n }\n //API\n pause() {\n this.paused = true;\n }\n resume(writeCallback) {\n if (!this.paused) {\n throw new Error('Parser was already resumed');\n }\n this.paused = false;\n // Necessary for synchronous resume.\n if (this.inLoop)\n return;\n this._runParsingLoop();\n if (!this.paused) {\n writeCallback === null || writeCallback === void 0 ? void 0 : writeCallback();\n }\n }\n write(chunk, isLastChunk, writeCallback) {\n this.active = true;\n this.preprocessor.write(chunk, isLastChunk);\n this._runParsingLoop();\n if (!this.paused) {\n writeCallback === null || writeCallback === void 0 ? void 0 : writeCallback();\n }\n }\n insertHtmlAtCurrentPos(chunk) {\n this.active = true;\n this.preprocessor.insertHtmlAtCurrentPos(chunk);\n this._runParsingLoop();\n }\n //Hibernation\n _ensureHibernation() {\n if (this.preprocessor.endOfChunkHit) {\n this._unconsume(this.consumedAfterSnapshot);\n this.active = false;\n return true;\n }\n return false;\n }\n //Consumption\n _consume() {\n this.consumedAfterSnapshot++;\n return this.preprocessor.advance();\n }\n _unconsume(count) {\n this.consumedAfterSnapshot -= count;\n this.preprocessor.retreat(count);\n }\n _reconsumeInState(state, cp) {\n this.state = state;\n this._callState(cp);\n }\n _advanceBy(count) {\n this.consumedAfterSnapshot += count;\n for (let i = 0; i < count; i++) {\n this.preprocessor.advance();\n }\n }\n _consumeSequenceIfMatch(pattern, caseSensitive) {\n if (this.preprocessor.startsWith(pattern, caseSensitive)) {\n // We will already have consumed one character before calling this method.\n this._advanceBy(pattern.length - 1);\n return true;\n }\n return false;\n }\n //Token creation\n _createStartTagToken() {\n this.currentToken = {\n type: TokenType.START_TAG,\n tagName: '',\n tagID: TAG_ID.UNKNOWN,\n selfClosing: false,\n ackSelfClosing: false,\n attrs: [],\n location: this.getCurrentLocation(1),\n };\n }\n _createEndTagToken() {\n this.currentToken = {\n type: TokenType.END_TAG,\n tagName: '',\n tagID: TAG_ID.UNKNOWN,\n selfClosing: false,\n ackSelfClosing: false,\n attrs: [],\n location: this.getCurrentLocation(2),\n };\n }\n _createCommentToken(offset) {\n this.currentToken = {\n type: TokenType.COMMENT,\n data: '',\n location: this.getCurrentLocation(offset),\n };\n }\n _createDoctypeToken(initialName) {\n this.currentToken = {\n type: TokenType.DOCTYPE,\n name: initialName,\n forceQuirks: false,\n publicId: null,\n systemId: null,\n location: this.currentLocation,\n };\n }\n _createCharacterToken(type, chars) {\n this.currentCharacterToken = {\n type,\n chars,\n location: this.currentLocation,\n };\n }\n //Tag attributes\n _createAttr(attrNameFirstCh) {\n this.currentAttr = {\n name: attrNameFirstCh,\n value: '',\n };\n this.currentLocation = this.getCurrentLocation(0);\n }\n _leaveAttrName() {\n var _a;\n var _b;\n const token = this.currentToken;\n if (getTokenAttr(token, this.currentAttr.name) === null) {\n token.attrs.push(this.currentAttr);\n if (token.location && this.currentLocation) {\n const attrLocations = ((_a = (_b = token.location).attrs) !== null && _a !== void 0 ? _a : (_b.attrs = Object.create(null)));\n attrLocations[this.currentAttr.name] = this.currentLocation;\n // Set end location\n this._leaveAttrValue();\n }\n }\n else {\n this._err(ERR.duplicateAttribute);\n }\n }\n _leaveAttrValue() {\n if (this.currentLocation) {\n this.currentLocation.endLine = this.preprocessor.line;\n this.currentLocation.endCol = this.preprocessor.col;\n this.currentLocation.endOffset = this.preprocessor.offset;\n }\n }\n //Token emission\n prepareToken(ct) {\n this._emitCurrentCharacterToken(ct.location);\n this.currentToken = null;\n if (ct.location) {\n ct.location.endLine = this.preprocessor.line;\n ct.location.endCol = this.preprocessor.col + 1;\n ct.location.endOffset = this.preprocessor.offset + 1;\n }\n this.currentLocation = this.getCurrentLocation(-1);\n }\n emitCurrentTagToken() {\n const ct = this.currentToken;\n this.prepareToken(ct);\n ct.tagID = getTagID(ct.tagName);\n if (ct.type === TokenType.START_TAG) {\n this.lastStartTagName = ct.tagName;\n this.handler.onStartTag(ct);\n }\n else {\n if (ct.attrs.length > 0) {\n this._err(ERR.endTagWithAttributes);\n }\n if (ct.selfClosing) {\n this._err(ERR.endTagWithTrailingSolidus);\n }\n this.handler.onEndTag(ct);\n }\n this.preprocessor.dropParsedChunk();\n }\n emitCurrentComment(ct) {\n this.prepareToken(ct);\n this.handler.onComment(ct);\n this.preprocessor.dropParsedChunk();\n }\n emitCurrentDoctype(ct) {\n this.prepareToken(ct);\n this.handler.onDoctype(ct);\n this.preprocessor.dropParsedChunk();\n }\n _emitCurrentCharacterToken(nextLocation) {\n if (this.currentCharacterToken) {\n //NOTE: if we have a pending character token, make it's end location equal to the\n //current token's start location.\n if (nextLocation && this.currentCharacterToken.location) {\n this.currentCharacterToken.location.endLine = nextLocation.startLine;\n this.currentCharacterToken.location.endCol = nextLocation.startCol;\n this.currentCharacterToken.location.endOffset = nextLocation.startOffset;\n }\n switch (this.currentCharacterToken.type) {\n case TokenType.CHARACTER: {\n this.handler.onCharacter(this.currentCharacterToken);\n break;\n }\n case TokenType.NULL_CHARACTER: {\n this.handler.onNullCharacter(this.currentCharacterToken);\n break;\n }\n case TokenType.WHITESPACE_CHARACTER: {\n this.handler.onWhitespaceCharacter(this.currentCharacterToken);\n break;\n }\n }\n this.currentCharacterToken = null;\n }\n }\n _emitEOFToken() {\n const location = this.getCurrentLocation(0);\n if (location) {\n location.endLine = location.startLine;\n location.endCol = location.startCol;\n location.endOffset = location.startOffset;\n }\n this._emitCurrentCharacterToken(location);\n this.handler.onEof({ type: TokenType.EOF, location });\n this.active = false;\n }\n //Characters emission\n //OPTIMIZATION: specification uses only one type of character tokens (one token per character).\n //This causes a huge memory overhead and a lot of unnecessary parser loops. parse5 uses 3 groups of characters.\n //If we have a sequence of characters that belong to the same group, the parser can process it\n //as a single solid character token.\n //So, there are 3 types of character tokens in parse5:\n //1)TokenType.NULL_CHARACTER - \\u0000-character sequences (e.g. '\\u0000\\u0000\\u0000')\n //2)TokenType.WHITESPACE_CHARACTER - any whitespace/new-line character sequences (e.g. '\\n \\r\\t \\f')\n //3)TokenType.CHARACTER - any character sequence which don't belong to groups 1 and 2 (e.g. 'abcdef1234@@#$%^')\n _appendCharToCurrentCharacterToken(type, ch) {\n if (this.currentCharacterToken) {\n if (this.currentCharacterToken.type !== type) {\n this.currentLocation = this.getCurrentLocation(0);\n this._emitCurrentCharacterToken(this.currentLocation);\n this.preprocessor.dropParsedChunk();\n }\n else {\n this.currentCharacterToken.chars += ch;\n return;\n }\n }\n this._createCharacterToken(type, ch);\n }\n _emitCodePoint(cp) {\n const type = isWhitespace(cp)\n ? TokenType.WHITESPACE_CHARACTER\n : cp === $.NULL\n ? TokenType.NULL_CHARACTER\n : TokenType.CHARACTER;\n this._appendCharToCurrentCharacterToken(type, String.fromCodePoint(cp));\n }\n //NOTE: used when we emit characters explicitly.\n //This is always for non-whitespace and non-null characters, which allows us to avoid additional checks.\n _emitChars(ch) {\n this._appendCharToCurrentCharacterToken(TokenType.CHARACTER, ch);\n }\n // Character reference helpers\n _matchNamedCharacterReference(cp) {\n let result = null;\n let excess = 0;\n let withoutSemicolon = false;\n for (let i = 0, current = htmlDecodeTree[0]; i >= 0; cp = this._consume()) {\n i = determineBranch(htmlDecodeTree, current, i + 1, cp);\n if (i < 0)\n break;\n excess += 1;\n current = htmlDecodeTree[i];\n const masked = current & BinTrieFlags.VALUE_LENGTH;\n // If the branch is a value, store it and continue\n if (masked) {\n // The mask is the number of bytes of the value, including the current byte.\n const valueLength = (masked >> 14) - 1;\n // Attribute values that aren't terminated properly aren't parsed, and shouldn't lead to a parser error.\n // See the example in https://html.spec.whatwg.org/multipage/parsing.html#named-character-reference-state\n if (cp !== $.SEMICOLON &&\n this._isCharacterReferenceInAttribute() &&\n isEntityInAttributeInvalidEnd(this.preprocessor.peek(1))) {\n //NOTE: we don't flush all consumed code points here, and instead switch back to the original state after\n //emitting an ampersand. This is fine, as alphanumeric characters won't be parsed differently in attributes.\n result = [$.AMPERSAND];\n // Skip over the value.\n i += valueLength;\n }\n else {\n // If this is a surrogate pair, consume the next two bytes.\n result =\n valueLength === 0\n ? [htmlDecodeTree[i] & ~BinTrieFlags.VALUE_LENGTH]\n : valueLength === 1\n ? [htmlDecodeTree[++i]]\n : [htmlDecodeTree[++i], htmlDecodeTree[++i]];\n excess = 0;\n withoutSemicolon = cp !== $.SEMICOLON;\n }\n if (valueLength === 0) {\n // If the value is zero-length, we're done.\n this._consume();\n break;\n }\n }\n }\n this._unconsume(excess);\n if (withoutSemicolon && !this.preprocessor.endOfChunkHit) {\n this._err(ERR.missingSemicolonAfterCharacterReference);\n }\n // We want to emit the error above on the code point after the entity.\n // We always consume one code point too many in the loop, and we wait to\n // unconsume it until after the error is emitted.\n this._unconsume(1);\n return result;\n }\n _isCharacterReferenceInAttribute() {\n return (this.returnState === State.ATTRIBUTE_VALUE_DOUBLE_QUOTED ||\n this.returnState === State.ATTRIBUTE_VALUE_SINGLE_QUOTED ||\n this.returnState === State.ATTRIBUTE_VALUE_UNQUOTED);\n }\n _flushCodePointConsumedAsCharacterReference(cp) {\n if (this._isCharacterReferenceInAttribute()) {\n this.currentAttr.value += String.fromCodePoint(cp);\n }\n else {\n this._emitCodePoint(cp);\n }\n }\n // Calling states this way turns out to be much faster than any other approach.\n _callState(cp) {\n switch (this.state) {\n case State.DATA: {\n this._stateData(cp);\n break;\n }\n case State.RCDATA: {\n this._stateRcdata(cp);\n break;\n }\n case State.RAWTEXT: {\n this._stateRawtext(cp);\n break;\n }\n case State.SCRIPT_DATA: {\n this._stateScriptData(cp);\n break;\n }\n case State.PLAINTEXT: {\n this._statePlaintext(cp);\n break;\n }\n case State.TAG_OPEN: {\n this._stateTagOpen(cp);\n break;\n }\n case State.END_TAG_OPEN: {\n this._stateEndTagOpen(cp);\n break;\n }\n case State.TAG_NAME: {\n this._stateTagName(cp);\n break;\n }\n case State.RCDATA_LESS_THAN_SIGN: {\n this._stateRcdataLessThanSign(cp);\n break;\n }\n case State.RCDATA_END_TAG_OPEN: {\n this._stateRcdataEndTagOpen(cp);\n break;\n }\n case State.RCDATA_END_TAG_NAME: {\n this._stateRcdataEndTagName(cp);\n break;\n }\n case State.RAWTEXT_LESS_THAN_SIGN: {\n this._stateRawtextLessThanSign(cp);\n break;\n }\n case State.RAWTEXT_END_TAG_OPEN: {\n this._stateRawtextEndTagOpen(cp);\n break;\n }\n case State.RAWTEXT_END_TAG_NAME: {\n this._stateRawtextEndTagName(cp);\n break;\n }\n case State.SCRIPT_DATA_LESS_THAN_SIGN: {\n this._stateScriptDataLessThanSign(cp);\n break;\n }\n case State.SCRIPT_DATA_END_TAG_OPEN: {\n this._stateScriptDataEndTagOpen(cp);\n break;\n }\n case State.SCRIPT_DATA_END_TAG_NAME: {\n this._stateScriptDataEndTagName(cp);\n break;\n }\n case State.SCRIPT_DATA_ESCAPE_START: {\n this._stateScriptDataEscapeStart(cp);\n break;\n }\n case State.SCRIPT_DATA_ESCAPE_START_DASH: {\n this._stateScriptDataEscapeStartDash(cp);\n break;\n }\n case State.SCRIPT_DATA_ESCAPED: {\n this._stateScriptDataEscaped(cp);\n break;\n }\n case State.SCRIPT_DATA_ESCAPED_DASH: {\n this._stateScriptDataEscapedDash(cp);\n break;\n }\n case State.SCRIPT_DATA_ESCAPED_DASH_DASH: {\n this._stateScriptDataEscapedDashDash(cp);\n break;\n }\n case State.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN: {\n this._stateScriptDataEscapedLessThanSign(cp);\n break;\n }\n case State.SCRIPT_DATA_ESCAPED_END_TAG_OPEN: {\n this._stateScriptDataEscapedEndTagOpen(cp);\n break;\n }\n case State.SCRIPT_DATA_ESCAPED_END_TAG_NAME: {\n this._stateScriptDataEscapedEndTagName(cp);\n break;\n }\n case State.SCRIPT_DATA_DOUBLE_ESCAPE_START: {\n this._stateScriptDataDoubleEscapeStart(cp);\n break;\n }\n case State.SCRIPT_DATA_DOUBLE_ESCAPED: {\n this._stateScriptDataDoubleEscaped(cp);\n break;\n }\n case State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH: {\n this._stateScriptDataDoubleEscapedDash(cp);\n break;\n }\n case State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH: {\n this._stateScriptDataDoubleEscapedDashDash(cp);\n break;\n }\n case State.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN: {\n this._stateScriptDataDoubleEscapedLessThanSign(cp);\n break;\n }\n case State.SCRIPT_DATA_DOUBLE_ESCAPE_END: {\n this._stateScriptDataDoubleEscapeEnd(cp);\n break;\n }\n case State.BEFORE_ATTRIBUTE_NAME: {\n this._stateBeforeAttributeName(cp);\n break;\n }\n case State.ATTRIBUTE_NAME: {\n this._stateAttributeName(cp);\n break;\n }\n case State.AFTER_ATTRIBUTE_NAME: {\n this._stateAfterAttributeName(cp);\n break;\n }\n case State.BEFORE_ATTRIBUTE_VALUE: {\n this._stateBeforeAttributeValue(cp);\n break;\n }\n case State.ATTRIBUTE_VALUE_DOUBLE_QUOTED: {\n this._stateAttributeValueDoubleQuoted(cp);\n break;\n }\n case State.ATTRIBUTE_VALUE_SINGLE_QUOTED: {\n this._stateAttributeValueSingleQuoted(cp);\n break;\n }\n case State.ATTRIBUTE_VALUE_UNQUOTED: {\n this._stateAttributeValueUnquoted(cp);\n break;\n }\n case State.AFTER_ATTRIBUTE_VALUE_QUOTED: {\n this._stateAfterAttributeValueQuoted(cp);\n break;\n }\n case State.SELF_CLOSING_START_TAG: {\n this._stateSelfClosingStartTag(cp);\n break;\n }\n case State.BOGUS_COMMENT: {\n this._stateBogusComment(cp);\n break;\n }\n case State.MARKUP_DECLARATION_OPEN: {\n this._stateMarkupDeclarationOpen(cp);\n break;\n }\n case State.COMMENT_START: {\n this._stateCommentStart(cp);\n break;\n }\n case State.COMMENT_START_DASH: {\n this._stateCommentStartDash(cp);\n break;\n }\n case State.COMMENT: {\n this._stateComment(cp);\n break;\n }\n case State.COMMENT_LESS_THAN_SIGN: {\n this._stateCommentLessThanSign(cp);\n break;\n }\n case State.COMMENT_LESS_THAN_SIGN_BANG: {\n this._stateCommentLessThanSignBang(cp);\n break;\n }\n case State.COMMENT_LESS_THAN_SIGN_BANG_DASH: {\n this._stateCommentLessThanSignBangDash(cp);\n break;\n }\n case State.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH: {\n this._stateCommentLessThanSignBangDashDash(cp);\n break;\n }\n case State.COMMENT_END_DASH: {\n this._stateCommentEndDash(cp);\n break;\n }\n case State.COMMENT_END: {\n this._stateCommentEnd(cp);\n break;\n }\n case State.COMMENT_END_BANG: {\n this._stateCommentEndBang(cp);\n break;\n }\n case State.DOCTYPE: {\n this._stateDoctype(cp);\n break;\n }\n case State.BEFORE_DOCTYPE_NAME: {\n this._stateBeforeDoctypeName(cp);\n break;\n }\n case State.DOCTYPE_NAME: {\n this._stateDoctypeName(cp);\n break;\n }\n case State.AFTER_DOCTYPE_NAME: {\n this._stateAfterDoctypeName(cp);\n break;\n }\n case State.AFTER_DOCTYPE_PUBLIC_KEYWORD: {\n this._stateAfterDoctypePublicKeyword(cp);\n break;\n }\n case State.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER: {\n this._stateBeforeDoctypePublicIdentifier(cp);\n break;\n }\n case State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED: {\n this._stateDoctypePublicIdentifierDoubleQuoted(cp);\n break;\n }\n case State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED: {\n this._stateDoctypePublicIdentifierSingleQuoted(cp);\n break;\n }\n case State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER: {\n this._stateAfterDoctypePublicIdentifier(cp);\n break;\n }\n case State.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS: {\n this._stateBetweenDoctypePublicAndSystemIdentifiers(cp);\n break;\n }\n case State.AFTER_DOCTYPE_SYSTEM_KEYWORD: {\n this._stateAfterDoctypeSystemKeyword(cp);\n break;\n }\n case State.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER: {\n this._stateBeforeDoctypeSystemIdentifier(cp);\n break;\n }\n case State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED: {\n this._stateDoctypeSystemIdentifierDoubleQuoted(cp);\n break;\n }\n case State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED: {\n this._stateDoctypeSystemIdentifierSingleQuoted(cp);\n break;\n }\n case State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER: {\n this._stateAfterDoctypeSystemIdentifier(cp);\n break;\n }\n case State.BOGUS_DOCTYPE: {\n this._stateBogusDoctype(cp);\n break;\n }\n case State.CDATA_SECTION: {\n this._stateCdataSection(cp);\n break;\n }\n case State.CDATA_SECTION_BRACKET: {\n this._stateCdataSectionBracket(cp);\n break;\n }\n case State.CDATA_SECTION_END: {\n this._stateCdataSectionEnd(cp);\n break;\n }\n case State.CHARACTER_REFERENCE: {\n this._stateCharacterReference(cp);\n break;\n }\n case State.NAMED_CHARACTER_REFERENCE: {\n this._stateNamedCharacterReference(cp);\n break;\n }\n case State.AMBIGUOUS_AMPERSAND: {\n this._stateAmbiguousAmpersand(cp);\n break;\n }\n case State.NUMERIC_CHARACTER_REFERENCE: {\n this._stateNumericCharacterReference(cp);\n break;\n }\n case State.HEXADEMICAL_CHARACTER_REFERENCE_START: {\n this._stateHexademicalCharacterReferenceStart(cp);\n break;\n }\n case State.HEXADEMICAL_CHARACTER_REFERENCE: {\n this._stateHexademicalCharacterReference(cp);\n break;\n }\n case State.DECIMAL_CHARACTER_REFERENCE: {\n this._stateDecimalCharacterReference(cp);\n break;\n }\n case State.NUMERIC_CHARACTER_REFERENCE_END: {\n this._stateNumericCharacterReferenceEnd(cp);\n break;\n }\n default: {\n throw new Error('Unknown state');\n }\n }\n }\n // State machine\n // Data state\n //------------------------------------------------------------------\n _stateData(cp) {\n switch (cp) {\n case $.LESS_THAN_SIGN: {\n this.state = State.TAG_OPEN;\n break;\n }\n case $.AMPERSAND: {\n this.returnState = State.DATA;\n this.state = State.CHARACTER_REFERENCE;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this._emitCodePoint(cp);\n break;\n }\n case $.EOF: {\n this._emitEOFToken();\n break;\n }\n default: {\n this._emitCodePoint(cp);\n }\n }\n }\n // RCDATA state\n //------------------------------------------------------------------\n _stateRcdata(cp) {\n switch (cp) {\n case $.AMPERSAND: {\n this.returnState = State.RCDATA;\n this.state = State.CHARACTER_REFERENCE;\n break;\n }\n case $.LESS_THAN_SIGN: {\n this.state = State.RCDATA_LESS_THAN_SIGN;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this._emitChars(REPLACEMENT_CHARACTER);\n break;\n }\n case $.EOF: {\n this._emitEOFToken();\n break;\n }\n default: {\n this._emitCodePoint(cp);\n }\n }\n }\n // RAWTEXT state\n //------------------------------------------------------------------\n _stateRawtext(cp) {\n switch (cp) {\n case $.LESS_THAN_SIGN: {\n this.state = State.RAWTEXT_LESS_THAN_SIGN;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this._emitChars(REPLACEMENT_CHARACTER);\n break;\n }\n case $.EOF: {\n this._emitEOFToken();\n break;\n }\n default: {\n this._emitCodePoint(cp);\n }\n }\n }\n // Script data state\n //------------------------------------------------------------------\n _stateScriptData(cp) {\n switch (cp) {\n case $.LESS_THAN_SIGN: {\n this.state = State.SCRIPT_DATA_LESS_THAN_SIGN;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this._emitChars(REPLACEMENT_CHARACTER);\n break;\n }\n case $.EOF: {\n this._emitEOFToken();\n break;\n }\n default: {\n this._emitCodePoint(cp);\n }\n }\n }\n // PLAINTEXT state\n //------------------------------------------------------------------\n _statePlaintext(cp) {\n switch (cp) {\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this._emitChars(REPLACEMENT_CHARACTER);\n break;\n }\n case $.EOF: {\n this._emitEOFToken();\n break;\n }\n default: {\n this._emitCodePoint(cp);\n }\n }\n }\n // Tag open state\n //------------------------------------------------------------------\n _stateTagOpen(cp) {\n if (isAsciiLetter(cp)) {\n this._createStartTagToken();\n this.state = State.TAG_NAME;\n this._stateTagName(cp);\n }\n else\n switch (cp) {\n case $.EXCLAMATION_MARK: {\n this.state = State.MARKUP_DECLARATION_OPEN;\n break;\n }\n case $.SOLIDUS: {\n this.state = State.END_TAG_OPEN;\n break;\n }\n case $.QUESTION_MARK: {\n this._err(ERR.unexpectedQuestionMarkInsteadOfTagName);\n this._createCommentToken(1);\n this.state = State.BOGUS_COMMENT;\n this._stateBogusComment(cp);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofBeforeTagName);\n this._emitChars('<');\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.invalidFirstCharacterOfTagName);\n this._emitChars('<');\n this.state = State.DATA;\n this._stateData(cp);\n }\n }\n }\n // End tag open state\n //------------------------------------------------------------------\n _stateEndTagOpen(cp) {\n if (isAsciiLetter(cp)) {\n this._createEndTagToken();\n this.state = State.TAG_NAME;\n this._stateTagName(cp);\n }\n else\n switch (cp) {\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.missingEndTagName);\n this.state = State.DATA;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofBeforeTagName);\n this._emitChars('');\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this.state = State.SCRIPT_DATA_ESCAPED;\n this._emitChars(REPLACEMENT_CHARACTER);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInScriptHtmlCommentLikeText);\n this._emitEOFToken();\n break;\n }\n default: {\n this.state = State.SCRIPT_DATA_ESCAPED;\n this._emitCodePoint(cp);\n }\n }\n }\n // Script data escaped less-than sign state\n //------------------------------------------------------------------\n _stateScriptDataEscapedLessThanSign(cp) {\n if (cp === $.SOLIDUS) {\n this.state = State.SCRIPT_DATA_ESCAPED_END_TAG_OPEN;\n }\n else if (isAsciiLetter(cp)) {\n this._emitChars('<');\n this.state = State.SCRIPT_DATA_DOUBLE_ESCAPE_START;\n this._stateScriptDataDoubleEscapeStart(cp);\n }\n else {\n this._emitChars('<');\n this.state = State.SCRIPT_DATA_ESCAPED;\n this._stateScriptDataEscaped(cp);\n }\n }\n // Script data escaped end tag open state\n //------------------------------------------------------------------\n _stateScriptDataEscapedEndTagOpen(cp) {\n if (isAsciiLetter(cp)) {\n this.state = State.SCRIPT_DATA_ESCAPED_END_TAG_NAME;\n this._stateScriptDataEscapedEndTagName(cp);\n }\n else {\n this._emitChars('');\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;\n this._emitChars(REPLACEMENT_CHARACTER);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInScriptHtmlCommentLikeText);\n this._emitEOFToken();\n break;\n }\n default: {\n this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;\n this._emitCodePoint(cp);\n }\n }\n }\n // Script data double escaped less-than sign state\n //------------------------------------------------------------------\n _stateScriptDataDoubleEscapedLessThanSign(cp) {\n if (cp === $.SOLIDUS) {\n this.state = State.SCRIPT_DATA_DOUBLE_ESCAPE_END;\n this._emitChars('/');\n }\n else {\n this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;\n this._stateScriptDataDoubleEscaped(cp);\n }\n }\n // Script data double escape end state\n //------------------------------------------------------------------\n _stateScriptDataDoubleEscapeEnd(cp) {\n if (this.preprocessor.startsWith($$.SCRIPT, false) &&\n isScriptDataDoubleEscapeSequenceEnd(this.preprocessor.peek($$.SCRIPT.length))) {\n this._emitCodePoint(cp);\n for (let i = 0; i < $$.SCRIPT.length; i++) {\n this._emitCodePoint(this._consume());\n }\n this.state = State.SCRIPT_DATA_ESCAPED;\n }\n else if (!this._ensureHibernation()) {\n this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;\n this._stateScriptDataDoubleEscaped(cp);\n }\n }\n // Before attribute name state\n //------------------------------------------------------------------\n _stateBeforeAttributeName(cp) {\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n // Ignore whitespace\n break;\n }\n case $.SOLIDUS:\n case $.GREATER_THAN_SIGN:\n case $.EOF: {\n this.state = State.AFTER_ATTRIBUTE_NAME;\n this._stateAfterAttributeName(cp);\n break;\n }\n case $.EQUALS_SIGN: {\n this._err(ERR.unexpectedEqualsSignBeforeAttributeName);\n this._createAttr('=');\n this.state = State.ATTRIBUTE_NAME;\n break;\n }\n default: {\n this._createAttr('');\n this.state = State.ATTRIBUTE_NAME;\n this._stateAttributeName(cp);\n }\n }\n }\n // Attribute name state\n //------------------------------------------------------------------\n _stateAttributeName(cp) {\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED:\n case $.SOLIDUS:\n case $.GREATER_THAN_SIGN:\n case $.EOF: {\n this._leaveAttrName();\n this.state = State.AFTER_ATTRIBUTE_NAME;\n this._stateAfterAttributeName(cp);\n break;\n }\n case $.EQUALS_SIGN: {\n this._leaveAttrName();\n this.state = State.BEFORE_ATTRIBUTE_VALUE;\n break;\n }\n case $.QUOTATION_MARK:\n case $.APOSTROPHE:\n case $.LESS_THAN_SIGN: {\n this._err(ERR.unexpectedCharacterInAttributeName);\n this.currentAttr.name += String.fromCodePoint(cp);\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this.currentAttr.name += REPLACEMENT_CHARACTER;\n break;\n }\n default: {\n this.currentAttr.name += String.fromCodePoint(isAsciiUpper(cp) ? toAsciiLower(cp) : cp);\n }\n }\n }\n // After attribute name state\n //------------------------------------------------------------------\n _stateAfterAttributeName(cp) {\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n // Ignore whitespace\n break;\n }\n case $.SOLIDUS: {\n this.state = State.SELF_CLOSING_START_TAG;\n break;\n }\n case $.EQUALS_SIGN: {\n this.state = State.BEFORE_ATTRIBUTE_VALUE;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this.state = State.DATA;\n this.emitCurrentTagToken();\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInTag);\n this._emitEOFToken();\n break;\n }\n default: {\n this._createAttr('');\n this.state = State.ATTRIBUTE_NAME;\n this._stateAttributeName(cp);\n }\n }\n }\n // Before attribute value state\n //------------------------------------------------------------------\n _stateBeforeAttributeValue(cp) {\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n // Ignore whitespace\n break;\n }\n case $.QUOTATION_MARK: {\n this.state = State.ATTRIBUTE_VALUE_DOUBLE_QUOTED;\n break;\n }\n case $.APOSTROPHE: {\n this.state = State.ATTRIBUTE_VALUE_SINGLE_QUOTED;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.missingAttributeValue);\n this.state = State.DATA;\n this.emitCurrentTagToken();\n break;\n }\n default: {\n this.state = State.ATTRIBUTE_VALUE_UNQUOTED;\n this._stateAttributeValueUnquoted(cp);\n }\n }\n }\n // Attribute value (double-quoted) state\n //------------------------------------------------------------------\n _stateAttributeValueDoubleQuoted(cp) {\n switch (cp) {\n case $.QUOTATION_MARK: {\n this.state = State.AFTER_ATTRIBUTE_VALUE_QUOTED;\n break;\n }\n case $.AMPERSAND: {\n this.returnState = State.ATTRIBUTE_VALUE_DOUBLE_QUOTED;\n this.state = State.CHARACTER_REFERENCE;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this.currentAttr.value += REPLACEMENT_CHARACTER;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInTag);\n this._emitEOFToken();\n break;\n }\n default: {\n this.currentAttr.value += String.fromCodePoint(cp);\n }\n }\n }\n // Attribute value (single-quoted) state\n //------------------------------------------------------------------\n _stateAttributeValueSingleQuoted(cp) {\n switch (cp) {\n case $.APOSTROPHE: {\n this.state = State.AFTER_ATTRIBUTE_VALUE_QUOTED;\n break;\n }\n case $.AMPERSAND: {\n this.returnState = State.ATTRIBUTE_VALUE_SINGLE_QUOTED;\n this.state = State.CHARACTER_REFERENCE;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this.currentAttr.value += REPLACEMENT_CHARACTER;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInTag);\n this._emitEOFToken();\n break;\n }\n default: {\n this.currentAttr.value += String.fromCodePoint(cp);\n }\n }\n }\n // Attribute value (unquoted) state\n //------------------------------------------------------------------\n _stateAttributeValueUnquoted(cp) {\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n this._leaveAttrValue();\n this.state = State.BEFORE_ATTRIBUTE_NAME;\n break;\n }\n case $.AMPERSAND: {\n this.returnState = State.ATTRIBUTE_VALUE_UNQUOTED;\n this.state = State.CHARACTER_REFERENCE;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._leaveAttrValue();\n this.state = State.DATA;\n this.emitCurrentTagToken();\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this.currentAttr.value += REPLACEMENT_CHARACTER;\n break;\n }\n case $.QUOTATION_MARK:\n case $.APOSTROPHE:\n case $.LESS_THAN_SIGN:\n case $.EQUALS_SIGN:\n case $.GRAVE_ACCENT: {\n this._err(ERR.unexpectedCharacterInUnquotedAttributeValue);\n this.currentAttr.value += String.fromCodePoint(cp);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInTag);\n this._emitEOFToken();\n break;\n }\n default: {\n this.currentAttr.value += String.fromCodePoint(cp);\n }\n }\n }\n // After attribute value (quoted) state\n //------------------------------------------------------------------\n _stateAfterAttributeValueQuoted(cp) {\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n this._leaveAttrValue();\n this.state = State.BEFORE_ATTRIBUTE_NAME;\n break;\n }\n case $.SOLIDUS: {\n this._leaveAttrValue();\n this.state = State.SELF_CLOSING_START_TAG;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._leaveAttrValue();\n this.state = State.DATA;\n this.emitCurrentTagToken();\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInTag);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.missingWhitespaceBetweenAttributes);\n this.state = State.BEFORE_ATTRIBUTE_NAME;\n this._stateBeforeAttributeName(cp);\n }\n }\n }\n // Self-closing start tag state\n //------------------------------------------------------------------\n _stateSelfClosingStartTag(cp) {\n switch (cp) {\n case $.GREATER_THAN_SIGN: {\n const token = this.currentToken;\n token.selfClosing = true;\n this.state = State.DATA;\n this.emitCurrentTagToken();\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInTag);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.unexpectedSolidusInTag);\n this.state = State.BEFORE_ATTRIBUTE_NAME;\n this._stateBeforeAttributeName(cp);\n }\n }\n }\n // Bogus comment state\n //------------------------------------------------------------------\n _stateBogusComment(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.GREATER_THAN_SIGN: {\n this.state = State.DATA;\n this.emitCurrentComment(token);\n break;\n }\n case $.EOF: {\n this.emitCurrentComment(token);\n this._emitEOFToken();\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n token.data += REPLACEMENT_CHARACTER;\n break;\n }\n default: {\n token.data += String.fromCodePoint(cp);\n }\n }\n }\n // Markup declaration open state\n //------------------------------------------------------------------\n _stateMarkupDeclarationOpen(cp) {\n if (this._consumeSequenceIfMatch($$.DASH_DASH, true)) {\n this._createCommentToken($$.DASH_DASH.length + 1);\n this.state = State.COMMENT_START;\n }\n else if (this._consumeSequenceIfMatch($$.DOCTYPE, false)) {\n // NOTE: Doctypes tokens are created without fixed offsets. We keep track of the moment a doctype *might* start here.\n this.currentLocation = this.getCurrentLocation($$.DOCTYPE.length + 1);\n this.state = State.DOCTYPE;\n }\n else if (this._consumeSequenceIfMatch($$.CDATA_START, true)) {\n if (this.inForeignNode) {\n this.state = State.CDATA_SECTION;\n }\n else {\n this._err(ERR.cdataInHtmlContent);\n this._createCommentToken($$.CDATA_START.length + 1);\n this.currentToken.data = '[CDATA[';\n this.state = State.BOGUS_COMMENT;\n }\n }\n //NOTE: Sequence lookups can be abrupted by hibernation. In that case, lookup\n //results are no longer valid and we will need to start over.\n else if (!this._ensureHibernation()) {\n this._err(ERR.incorrectlyOpenedComment);\n this._createCommentToken(2);\n this.state = State.BOGUS_COMMENT;\n this._stateBogusComment(cp);\n }\n }\n // Comment start state\n //------------------------------------------------------------------\n _stateCommentStart(cp) {\n switch (cp) {\n case $.HYPHEN_MINUS: {\n this.state = State.COMMENT_START_DASH;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.abruptClosingOfEmptyComment);\n this.state = State.DATA;\n const token = this.currentToken;\n this.emitCurrentComment(token);\n break;\n }\n default: {\n this.state = State.COMMENT;\n this._stateComment(cp);\n }\n }\n }\n // Comment start dash state\n //------------------------------------------------------------------\n _stateCommentStartDash(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.HYPHEN_MINUS: {\n this.state = State.COMMENT_END;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.abruptClosingOfEmptyComment);\n this.state = State.DATA;\n this.emitCurrentComment(token);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInComment);\n this.emitCurrentComment(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.data += '-';\n this.state = State.COMMENT;\n this._stateComment(cp);\n }\n }\n }\n // Comment state\n //------------------------------------------------------------------\n _stateComment(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.HYPHEN_MINUS: {\n this.state = State.COMMENT_END_DASH;\n break;\n }\n case $.LESS_THAN_SIGN: {\n token.data += '<';\n this.state = State.COMMENT_LESS_THAN_SIGN;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n token.data += REPLACEMENT_CHARACTER;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInComment);\n this.emitCurrentComment(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.data += String.fromCodePoint(cp);\n }\n }\n }\n // Comment less-than sign state\n //------------------------------------------------------------------\n _stateCommentLessThanSign(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.EXCLAMATION_MARK: {\n token.data += '!';\n this.state = State.COMMENT_LESS_THAN_SIGN_BANG;\n break;\n }\n case $.LESS_THAN_SIGN: {\n token.data += '<';\n break;\n }\n default: {\n this.state = State.COMMENT;\n this._stateComment(cp);\n }\n }\n }\n // Comment less-than sign bang state\n //------------------------------------------------------------------\n _stateCommentLessThanSignBang(cp) {\n if (cp === $.HYPHEN_MINUS) {\n this.state = State.COMMENT_LESS_THAN_SIGN_BANG_DASH;\n }\n else {\n this.state = State.COMMENT;\n this._stateComment(cp);\n }\n }\n // Comment less-than sign bang dash state\n //------------------------------------------------------------------\n _stateCommentLessThanSignBangDash(cp) {\n if (cp === $.HYPHEN_MINUS) {\n this.state = State.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH;\n }\n else {\n this.state = State.COMMENT_END_DASH;\n this._stateCommentEndDash(cp);\n }\n }\n // Comment less-than sign bang dash dash state\n //------------------------------------------------------------------\n _stateCommentLessThanSignBangDashDash(cp) {\n if (cp !== $.GREATER_THAN_SIGN && cp !== $.EOF) {\n this._err(ERR.nestedComment);\n }\n this.state = State.COMMENT_END;\n this._stateCommentEnd(cp);\n }\n // Comment end dash state\n //------------------------------------------------------------------\n _stateCommentEndDash(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.HYPHEN_MINUS: {\n this.state = State.COMMENT_END;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInComment);\n this.emitCurrentComment(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.data += '-';\n this.state = State.COMMENT;\n this._stateComment(cp);\n }\n }\n }\n // Comment end state\n //------------------------------------------------------------------\n _stateCommentEnd(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.GREATER_THAN_SIGN: {\n this.state = State.DATA;\n this.emitCurrentComment(token);\n break;\n }\n case $.EXCLAMATION_MARK: {\n this.state = State.COMMENT_END_BANG;\n break;\n }\n case $.HYPHEN_MINUS: {\n token.data += '-';\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInComment);\n this.emitCurrentComment(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.data += '--';\n this.state = State.COMMENT;\n this._stateComment(cp);\n }\n }\n }\n // Comment end bang state\n //------------------------------------------------------------------\n _stateCommentEndBang(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.HYPHEN_MINUS: {\n token.data += '--!';\n this.state = State.COMMENT_END_DASH;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.incorrectlyClosedComment);\n this.state = State.DATA;\n this.emitCurrentComment(token);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInComment);\n this.emitCurrentComment(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.data += '--!';\n this.state = State.COMMENT;\n this._stateComment(cp);\n }\n }\n }\n // DOCTYPE state\n //------------------------------------------------------------------\n _stateDoctype(cp) {\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n this.state = State.BEFORE_DOCTYPE_NAME;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this.state = State.BEFORE_DOCTYPE_NAME;\n this._stateBeforeDoctypeName(cp);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n this._createDoctypeToken(null);\n const token = this.currentToken;\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.missingWhitespaceBeforeDoctypeName);\n this.state = State.BEFORE_DOCTYPE_NAME;\n this._stateBeforeDoctypeName(cp);\n }\n }\n }\n // Before DOCTYPE name state\n //------------------------------------------------------------------\n _stateBeforeDoctypeName(cp) {\n if (isAsciiUpper(cp)) {\n this._createDoctypeToken(String.fromCharCode(toAsciiLower(cp)));\n this.state = State.DOCTYPE_NAME;\n }\n else\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n // Ignore whitespace\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this._createDoctypeToken(REPLACEMENT_CHARACTER);\n this.state = State.DOCTYPE_NAME;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.missingDoctypeName);\n this._createDoctypeToken(null);\n const token = this.currentToken;\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this.state = State.DATA;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n this._createDoctypeToken(null);\n const token = this.currentToken;\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n this._createDoctypeToken(String.fromCodePoint(cp));\n this.state = State.DOCTYPE_NAME;\n }\n }\n }\n // DOCTYPE name state\n //------------------------------------------------------------------\n _stateDoctypeName(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n this.state = State.AFTER_DOCTYPE_NAME;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this.state = State.DATA;\n this.emitCurrentDoctype(token);\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n token.name += REPLACEMENT_CHARACTER;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.name += String.fromCodePoint(isAsciiUpper(cp) ? toAsciiLower(cp) : cp);\n }\n }\n }\n // After DOCTYPE name state\n //------------------------------------------------------------------\n _stateAfterDoctypeName(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n // Ignore whitespace\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this.state = State.DATA;\n this.emitCurrentDoctype(token);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n if (this._consumeSequenceIfMatch($$.PUBLIC, false)) {\n this.state = State.AFTER_DOCTYPE_PUBLIC_KEYWORD;\n }\n else if (this._consumeSequenceIfMatch($$.SYSTEM, false)) {\n this.state = State.AFTER_DOCTYPE_SYSTEM_KEYWORD;\n }\n //NOTE: sequence lookup can be abrupted by hibernation. In that case lookup\n //results are no longer valid and we will need to start over.\n else if (!this._ensureHibernation()) {\n this._err(ERR.invalidCharacterSequenceAfterDoctypeName);\n token.forceQuirks = true;\n this.state = State.BOGUS_DOCTYPE;\n this._stateBogusDoctype(cp);\n }\n }\n }\n }\n // After DOCTYPE public keyword state\n //------------------------------------------------------------------\n _stateAfterDoctypePublicKeyword(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n this.state = State.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;\n break;\n }\n case $.QUOTATION_MARK: {\n this._err(ERR.missingWhitespaceAfterDoctypePublicKeyword);\n token.publicId = '';\n this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;\n break;\n }\n case $.APOSTROPHE: {\n this._err(ERR.missingWhitespaceAfterDoctypePublicKeyword);\n token.publicId = '';\n this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.missingDoctypePublicIdentifier);\n token.forceQuirks = true;\n this.state = State.DATA;\n this.emitCurrentDoctype(token);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.missingQuoteBeforeDoctypePublicIdentifier);\n token.forceQuirks = true;\n this.state = State.BOGUS_DOCTYPE;\n this._stateBogusDoctype(cp);\n }\n }\n }\n // Before DOCTYPE public identifier state\n //------------------------------------------------------------------\n _stateBeforeDoctypePublicIdentifier(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n // Ignore whitespace\n break;\n }\n case $.QUOTATION_MARK: {\n token.publicId = '';\n this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;\n break;\n }\n case $.APOSTROPHE: {\n token.publicId = '';\n this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.missingDoctypePublicIdentifier);\n token.forceQuirks = true;\n this.state = State.DATA;\n this.emitCurrentDoctype(token);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.missingQuoteBeforeDoctypePublicIdentifier);\n token.forceQuirks = true;\n this.state = State.BOGUS_DOCTYPE;\n this._stateBogusDoctype(cp);\n }\n }\n }\n // DOCTYPE public identifier (double-quoted) state\n //------------------------------------------------------------------\n _stateDoctypePublicIdentifierDoubleQuoted(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.QUOTATION_MARK: {\n this.state = State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n token.publicId += REPLACEMENT_CHARACTER;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.abruptDoctypePublicIdentifier);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this.state = State.DATA;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.publicId += String.fromCodePoint(cp);\n }\n }\n }\n // DOCTYPE public identifier (single-quoted) state\n //------------------------------------------------------------------\n _stateDoctypePublicIdentifierSingleQuoted(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.APOSTROPHE: {\n this.state = State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n token.publicId += REPLACEMENT_CHARACTER;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.abruptDoctypePublicIdentifier);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this.state = State.DATA;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.publicId += String.fromCodePoint(cp);\n }\n }\n }\n // After DOCTYPE public identifier state\n //------------------------------------------------------------------\n _stateAfterDoctypePublicIdentifier(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n this.state = State.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this.state = State.DATA;\n this.emitCurrentDoctype(token);\n break;\n }\n case $.QUOTATION_MARK: {\n this._err(ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers);\n token.systemId = '';\n this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;\n break;\n }\n case $.APOSTROPHE: {\n this._err(ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers);\n token.systemId = '';\n this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier);\n token.forceQuirks = true;\n this.state = State.BOGUS_DOCTYPE;\n this._stateBogusDoctype(cp);\n }\n }\n }\n // Between DOCTYPE public and system identifiers state\n //------------------------------------------------------------------\n _stateBetweenDoctypePublicAndSystemIdentifiers(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n // Ignore whitespace\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this.emitCurrentDoctype(token);\n this.state = State.DATA;\n break;\n }\n case $.QUOTATION_MARK: {\n token.systemId = '';\n this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;\n break;\n }\n case $.APOSTROPHE: {\n token.systemId = '';\n this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier);\n token.forceQuirks = true;\n this.state = State.BOGUS_DOCTYPE;\n this._stateBogusDoctype(cp);\n }\n }\n }\n // After DOCTYPE system keyword state\n //------------------------------------------------------------------\n _stateAfterDoctypeSystemKeyword(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n this.state = State.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;\n break;\n }\n case $.QUOTATION_MARK: {\n this._err(ERR.missingWhitespaceAfterDoctypeSystemKeyword);\n token.systemId = '';\n this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;\n break;\n }\n case $.APOSTROPHE: {\n this._err(ERR.missingWhitespaceAfterDoctypeSystemKeyword);\n token.systemId = '';\n this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.missingDoctypeSystemIdentifier);\n token.forceQuirks = true;\n this.state = State.DATA;\n this.emitCurrentDoctype(token);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier);\n token.forceQuirks = true;\n this.state = State.BOGUS_DOCTYPE;\n this._stateBogusDoctype(cp);\n }\n }\n }\n // Before DOCTYPE system identifier state\n //------------------------------------------------------------------\n _stateBeforeDoctypeSystemIdentifier(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n // Ignore whitespace\n break;\n }\n case $.QUOTATION_MARK: {\n token.systemId = '';\n this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;\n break;\n }\n case $.APOSTROPHE: {\n token.systemId = '';\n this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.missingDoctypeSystemIdentifier);\n token.forceQuirks = true;\n this.state = State.DATA;\n this.emitCurrentDoctype(token);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier);\n token.forceQuirks = true;\n this.state = State.BOGUS_DOCTYPE;\n this._stateBogusDoctype(cp);\n }\n }\n }\n // DOCTYPE system identifier (double-quoted) state\n //------------------------------------------------------------------\n _stateDoctypeSystemIdentifierDoubleQuoted(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.QUOTATION_MARK: {\n this.state = State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n token.systemId += REPLACEMENT_CHARACTER;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.abruptDoctypeSystemIdentifier);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this.state = State.DATA;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.systemId += String.fromCodePoint(cp);\n }\n }\n }\n // DOCTYPE system identifier (single-quoted) state\n //------------------------------------------------------------------\n _stateDoctypeSystemIdentifierSingleQuoted(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.APOSTROPHE: {\n this.state = State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n token.systemId += REPLACEMENT_CHARACTER;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.abruptDoctypeSystemIdentifier);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this.state = State.DATA;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.systemId += String.fromCodePoint(cp);\n }\n }\n }\n // After DOCTYPE system identifier state\n //------------------------------------------------------------------\n _stateAfterDoctypeSystemIdentifier(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n // Ignore whitespace\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this.emitCurrentDoctype(token);\n this.state = State.DATA;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.unexpectedCharacterAfterDoctypeSystemIdentifier);\n this.state = State.BOGUS_DOCTYPE;\n this._stateBogusDoctype(cp);\n }\n }\n }\n // Bogus DOCTYPE state\n //------------------------------------------------------------------\n _stateBogusDoctype(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.GREATER_THAN_SIGN: {\n this.emitCurrentDoctype(token);\n this.state = State.DATA;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n break;\n }\n case $.EOF: {\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default:\n // Do nothing\n }\n }\n // CDATA section state\n //------------------------------------------------------------------\n _stateCdataSection(cp) {\n switch (cp) {\n case $.RIGHT_SQUARE_BRACKET: {\n this.state = State.CDATA_SECTION_BRACKET;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInCdata);\n this._emitEOFToken();\n break;\n }\n default: {\n this._emitCodePoint(cp);\n }\n }\n }\n // CDATA section bracket state\n //------------------------------------------------------------------\n _stateCdataSectionBracket(cp) {\n if (cp === $.RIGHT_SQUARE_BRACKET) {\n this.state = State.CDATA_SECTION_END;\n }\n else {\n this._emitChars(']');\n this.state = State.CDATA_SECTION;\n this._stateCdataSection(cp);\n }\n }\n // CDATA section end state\n //------------------------------------------------------------------\n _stateCdataSectionEnd(cp) {\n switch (cp) {\n case $.GREATER_THAN_SIGN: {\n this.state = State.DATA;\n break;\n }\n case $.RIGHT_SQUARE_BRACKET: {\n this._emitChars(']');\n break;\n }\n default: {\n this._emitChars(']]');\n this.state = State.CDATA_SECTION;\n this._stateCdataSection(cp);\n }\n }\n }\n // Character reference state\n //------------------------------------------------------------------\n _stateCharacterReference(cp) {\n if (cp === $.NUMBER_SIGN) {\n this.state = State.NUMERIC_CHARACTER_REFERENCE;\n }\n else if (isAsciiAlphaNumeric(cp)) {\n this.state = State.NAMED_CHARACTER_REFERENCE;\n this._stateNamedCharacterReference(cp);\n }\n else {\n this._flushCodePointConsumedAsCharacterReference($.AMPERSAND);\n this._reconsumeInState(this.returnState, cp);\n }\n }\n // Named character reference state\n //------------------------------------------------------------------\n _stateNamedCharacterReference(cp) {\n const matchResult = this._matchNamedCharacterReference(cp);\n //NOTE: Matching can be abrupted by hibernation. In that case, match\n //results are no longer valid and we will need to start over.\n if (this._ensureHibernation()) {\n // Stay in the state, try again.\n }\n else if (matchResult) {\n for (let i = 0; i < matchResult.length; i++) {\n this._flushCodePointConsumedAsCharacterReference(matchResult[i]);\n }\n this.state = this.returnState;\n }\n else {\n this._flushCodePointConsumedAsCharacterReference($.AMPERSAND);\n this.state = State.AMBIGUOUS_AMPERSAND;\n }\n }\n // Ambiguos ampersand state\n //------------------------------------------------------------------\n _stateAmbiguousAmpersand(cp) {\n if (isAsciiAlphaNumeric(cp)) {\n this._flushCodePointConsumedAsCharacterReference(cp);\n }\n else {\n if (cp === $.SEMICOLON) {\n this._err(ERR.unknownNamedCharacterReference);\n }\n this._reconsumeInState(this.returnState, cp);\n }\n }\n // Numeric character reference state\n //------------------------------------------------------------------\n _stateNumericCharacterReference(cp) {\n this.charRefCode = 0;\n if (cp === $.LATIN_SMALL_X || cp === $.LATIN_CAPITAL_X) {\n this.state = State.HEXADEMICAL_CHARACTER_REFERENCE_START;\n }\n // Inlined decimal character reference start state\n else if (isAsciiDigit(cp)) {\n this.state = State.DECIMAL_CHARACTER_REFERENCE;\n this._stateDecimalCharacterReference(cp);\n }\n else {\n this._err(ERR.absenceOfDigitsInNumericCharacterReference);\n this._flushCodePointConsumedAsCharacterReference($.AMPERSAND);\n this._flushCodePointConsumedAsCharacterReference($.NUMBER_SIGN);\n this._reconsumeInState(this.returnState, cp);\n }\n }\n // Hexademical character reference start state\n //------------------------------------------------------------------\n _stateHexademicalCharacterReferenceStart(cp) {\n if (isAsciiHexDigit(cp)) {\n this.state = State.HEXADEMICAL_CHARACTER_REFERENCE;\n this._stateHexademicalCharacterReference(cp);\n }\n else {\n this._err(ERR.absenceOfDigitsInNumericCharacterReference);\n this._flushCodePointConsumedAsCharacterReference($.AMPERSAND);\n this._flushCodePointConsumedAsCharacterReference($.NUMBER_SIGN);\n this._unconsume(2);\n this.state = this.returnState;\n }\n }\n // Hexademical character reference state\n //------------------------------------------------------------------\n _stateHexademicalCharacterReference(cp) {\n if (isAsciiUpperHexDigit(cp)) {\n this.charRefCode = this.charRefCode * 16 + cp - 0x37;\n }\n else if (isAsciiLowerHexDigit(cp)) {\n this.charRefCode = this.charRefCode * 16 + cp - 0x57;\n }\n else if (isAsciiDigit(cp)) {\n this.charRefCode = this.charRefCode * 16 + cp - 0x30;\n }\n else if (cp === $.SEMICOLON) {\n this.state = State.NUMERIC_CHARACTER_REFERENCE_END;\n }\n else {\n this._err(ERR.missingSemicolonAfterCharacterReference);\n this.state = State.NUMERIC_CHARACTER_REFERENCE_END;\n this._stateNumericCharacterReferenceEnd(cp);\n }\n }\n // Decimal character reference state\n //------------------------------------------------------------------\n _stateDecimalCharacterReference(cp) {\n if (isAsciiDigit(cp)) {\n this.charRefCode = this.charRefCode * 10 + cp - 0x30;\n }\n else if (cp === $.SEMICOLON) {\n this.state = State.NUMERIC_CHARACTER_REFERENCE_END;\n }\n else {\n this._err(ERR.missingSemicolonAfterCharacterReference);\n this.state = State.NUMERIC_CHARACTER_REFERENCE_END;\n this._stateNumericCharacterReferenceEnd(cp);\n }\n }\n // Numeric character reference end state\n //------------------------------------------------------------------\n _stateNumericCharacterReferenceEnd(cp) {\n if (this.charRefCode === $.NULL) {\n this._err(ERR.nullCharacterReference);\n this.charRefCode = $.REPLACEMENT_CHARACTER;\n }\n else if (this.charRefCode > 1114111) {\n this._err(ERR.characterReferenceOutsideUnicodeRange);\n this.charRefCode = $.REPLACEMENT_CHARACTER;\n }\n else if (isSurrogate(this.charRefCode)) {\n this._err(ERR.surrogateCharacterReference);\n this.charRefCode = $.REPLACEMENT_CHARACTER;\n }\n else if (isUndefinedCodePoint(this.charRefCode)) {\n this._err(ERR.noncharacterCharacterReference);\n }\n else if (isControlCodePoint(this.charRefCode) || this.charRefCode === $.CARRIAGE_RETURN) {\n this._err(ERR.controlCharacterReference);\n const replacement = C1_CONTROLS_REFERENCE_REPLACEMENTS.get(this.charRefCode);\n if (replacement !== undefined) {\n this.charRefCode = replacement;\n }\n }\n this._flushCodePointConsumedAsCharacterReference(this.charRefCode);\n this._reconsumeInState(this.returnState, cp);\n }\n}\n//# sourceMappingURL=index.js.map","import { TAG_ID as $, NS, isNumberedHeader } from '../common/html.js';\n//Element utils\nconst IMPLICIT_END_TAG_REQUIRED = new Set([$.DD, $.DT, $.LI, $.OPTGROUP, $.OPTION, $.P, $.RB, $.RP, $.RT, $.RTC]);\nconst IMPLICIT_END_TAG_REQUIRED_THOROUGHLY = new Set([\n ...IMPLICIT_END_TAG_REQUIRED,\n $.CAPTION,\n $.COLGROUP,\n $.TBODY,\n $.TD,\n $.TFOOT,\n $.TH,\n $.THEAD,\n $.TR,\n]);\nconst SCOPING_ELEMENT_NS = new Map([\n [$.APPLET, NS.HTML],\n [$.CAPTION, NS.HTML],\n [$.HTML, NS.HTML],\n [$.MARQUEE, NS.HTML],\n [$.OBJECT, NS.HTML],\n [$.TABLE, NS.HTML],\n [$.TD, NS.HTML],\n [$.TEMPLATE, NS.HTML],\n [$.TH, NS.HTML],\n [$.ANNOTATION_XML, NS.MATHML],\n [$.MI, NS.MATHML],\n [$.MN, NS.MATHML],\n [$.MO, NS.MATHML],\n [$.MS, NS.MATHML],\n [$.MTEXT, NS.MATHML],\n [$.DESC, NS.SVG],\n [$.FOREIGN_OBJECT, NS.SVG],\n [$.TITLE, NS.SVG],\n]);\nconst NAMED_HEADERS = [$.H1, $.H2, $.H3, $.H4, $.H5, $.H6];\nconst TABLE_ROW_CONTEXT = [$.TR, $.TEMPLATE, $.HTML];\nconst TABLE_BODY_CONTEXT = [$.TBODY, $.TFOOT, $.THEAD, $.TEMPLATE, $.HTML];\nconst TABLE_CONTEXT = [$.TABLE, $.TEMPLATE, $.HTML];\nconst TABLE_CELLS = [$.TD, $.TH];\n//Stack of open elements\nexport class OpenElementStack {\n get currentTmplContentOrNode() {\n return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;\n }\n constructor(document, treeAdapter, handler) {\n this.treeAdapter = treeAdapter;\n this.handler = handler;\n this.items = [];\n this.tagIDs = [];\n this.stackTop = -1;\n this.tmplCount = 0;\n this.currentTagId = $.UNKNOWN;\n this.current = document;\n }\n //Index of element\n _indexOf(element) {\n return this.items.lastIndexOf(element, this.stackTop);\n }\n //Update current element\n _isInTemplate() {\n return this.currentTagId === $.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) === NS.HTML;\n }\n _updateCurrentElement() {\n this.current = this.items[this.stackTop];\n this.currentTagId = this.tagIDs[this.stackTop];\n }\n //Mutations\n push(element, tagID) {\n this.stackTop++;\n this.items[this.stackTop] = element;\n this.current = element;\n this.tagIDs[this.stackTop] = tagID;\n this.currentTagId = tagID;\n if (this._isInTemplate()) {\n this.tmplCount++;\n }\n this.handler.onItemPush(element, tagID, true);\n }\n pop() {\n const popped = this.current;\n if (this.tmplCount > 0 && this._isInTemplate()) {\n this.tmplCount--;\n }\n this.stackTop--;\n this._updateCurrentElement();\n this.handler.onItemPop(popped, true);\n }\n replace(oldElement, newElement) {\n const idx = this._indexOf(oldElement);\n this.items[idx] = newElement;\n if (idx === this.stackTop) {\n this.current = newElement;\n }\n }\n insertAfter(referenceElement, newElement, newElementID) {\n const insertionIdx = this._indexOf(referenceElement) + 1;\n this.items.splice(insertionIdx, 0, newElement);\n this.tagIDs.splice(insertionIdx, 0, newElementID);\n this.stackTop++;\n if (insertionIdx === this.stackTop) {\n this._updateCurrentElement();\n }\n this.handler.onItemPush(this.current, this.currentTagId, insertionIdx === this.stackTop);\n }\n popUntilTagNamePopped(tagName) {\n let targetIdx = this.stackTop + 1;\n do {\n targetIdx = this.tagIDs.lastIndexOf(tagName, targetIdx - 1);\n } while (targetIdx > 0 && this.treeAdapter.getNamespaceURI(this.items[targetIdx]) !== NS.HTML);\n this.shortenToLength(targetIdx < 0 ? 0 : targetIdx);\n }\n shortenToLength(idx) {\n while (this.stackTop >= idx) {\n const popped = this.current;\n if (this.tmplCount > 0 && this._isInTemplate()) {\n this.tmplCount -= 1;\n }\n this.stackTop--;\n this._updateCurrentElement();\n this.handler.onItemPop(popped, this.stackTop < idx);\n }\n }\n popUntilElementPopped(element) {\n const idx = this._indexOf(element);\n this.shortenToLength(idx < 0 ? 0 : idx);\n }\n popUntilPopped(tagNames, targetNS) {\n const idx = this._indexOfTagNames(tagNames, targetNS);\n this.shortenToLength(idx < 0 ? 0 : idx);\n }\n popUntilNumberedHeaderPopped() {\n this.popUntilPopped(NAMED_HEADERS, NS.HTML);\n }\n popUntilTableCellPopped() {\n this.popUntilPopped(TABLE_CELLS, NS.HTML);\n }\n popAllUpToHtmlElement() {\n //NOTE: here we assume that the root element is always first in the open element stack, so\n //we perform this fast stack clean up.\n this.tmplCount = 0;\n this.shortenToLength(1);\n }\n _indexOfTagNames(tagNames, namespace) {\n for (let i = this.stackTop; i >= 0; i--) {\n if (tagNames.includes(this.tagIDs[i]) && this.treeAdapter.getNamespaceURI(this.items[i]) === namespace) {\n return i;\n }\n }\n return -1;\n }\n clearBackTo(tagNames, targetNS) {\n const idx = this._indexOfTagNames(tagNames, targetNS);\n this.shortenToLength(idx + 1);\n }\n clearBackToTableContext() {\n this.clearBackTo(TABLE_CONTEXT, NS.HTML);\n }\n clearBackToTableBodyContext() {\n this.clearBackTo(TABLE_BODY_CONTEXT, NS.HTML);\n }\n clearBackToTableRowContext() {\n this.clearBackTo(TABLE_ROW_CONTEXT, NS.HTML);\n }\n remove(element) {\n const idx = this._indexOf(element);\n if (idx >= 0) {\n if (idx === this.stackTop) {\n this.pop();\n }\n else {\n this.items.splice(idx, 1);\n this.tagIDs.splice(idx, 1);\n this.stackTop--;\n this._updateCurrentElement();\n this.handler.onItemPop(element, false);\n }\n }\n }\n //Search\n tryPeekProperlyNestedBodyElement() {\n //Properly nested element (should be second element in stack).\n return this.stackTop >= 1 && this.tagIDs[1] === $.BODY ? this.items[1] : null;\n }\n contains(element) {\n return this._indexOf(element) > -1;\n }\n getCommonAncestor(element) {\n const elementIdx = this._indexOf(element) - 1;\n return elementIdx >= 0 ? this.items[elementIdx] : null;\n }\n isRootHtmlElementCurrent() {\n return this.stackTop === 0 && this.tagIDs[0] === $.HTML;\n }\n //Element in scope\n hasInScope(tagName) {\n for (let i = this.stackTop; i >= 0; i--) {\n const tn = this.tagIDs[i];\n const ns = this.treeAdapter.getNamespaceURI(this.items[i]);\n if (tn === tagName && ns === NS.HTML) {\n return true;\n }\n if (SCOPING_ELEMENT_NS.get(tn) === ns) {\n return false;\n }\n }\n return true;\n }\n hasNumberedHeaderInScope() {\n for (let i = this.stackTop; i >= 0; i--) {\n const tn = this.tagIDs[i];\n const ns = this.treeAdapter.getNamespaceURI(this.items[i]);\n if (isNumberedHeader(tn) && ns === NS.HTML) {\n return true;\n }\n if (SCOPING_ELEMENT_NS.get(tn) === ns) {\n return false;\n }\n }\n return true;\n }\n hasInListItemScope(tagName) {\n for (let i = this.stackTop; i >= 0; i--) {\n const tn = this.tagIDs[i];\n const ns = this.treeAdapter.getNamespaceURI(this.items[i]);\n if (tn === tagName && ns === NS.HTML) {\n return true;\n }\n if (((tn === $.UL || tn === $.OL) && ns === NS.HTML) || SCOPING_ELEMENT_NS.get(tn) === ns) {\n return false;\n }\n }\n return true;\n }\n hasInButtonScope(tagName) {\n for (let i = this.stackTop; i >= 0; i--) {\n const tn = this.tagIDs[i];\n const ns = this.treeAdapter.getNamespaceURI(this.items[i]);\n if (tn === tagName && ns === NS.HTML) {\n return true;\n }\n if ((tn === $.BUTTON && ns === NS.HTML) || SCOPING_ELEMENT_NS.get(tn) === ns) {\n return false;\n }\n }\n return true;\n }\n hasInTableScope(tagName) {\n for (let i = this.stackTop; i >= 0; i--) {\n const tn = this.tagIDs[i];\n const ns = this.treeAdapter.getNamespaceURI(this.items[i]);\n if (ns !== NS.HTML) {\n continue;\n }\n if (tn === tagName) {\n return true;\n }\n if (tn === $.TABLE || tn === $.TEMPLATE || tn === $.HTML) {\n return false;\n }\n }\n return true;\n }\n hasTableBodyContextInTableScope() {\n for (let i = this.stackTop; i >= 0; i--) {\n const tn = this.tagIDs[i];\n const ns = this.treeAdapter.getNamespaceURI(this.items[i]);\n if (ns !== NS.HTML) {\n continue;\n }\n if (tn === $.TBODY || tn === $.THEAD || tn === $.TFOOT) {\n return true;\n }\n if (tn === $.TABLE || tn === $.HTML) {\n return false;\n }\n }\n return true;\n }\n hasInSelectScope(tagName) {\n for (let i = this.stackTop; i >= 0; i--) {\n const tn = this.tagIDs[i];\n const ns = this.treeAdapter.getNamespaceURI(this.items[i]);\n if (ns !== NS.HTML) {\n continue;\n }\n if (tn === tagName) {\n return true;\n }\n if (tn !== $.OPTION && tn !== $.OPTGROUP) {\n return false;\n }\n }\n return true;\n }\n //Implied end tags\n generateImpliedEndTags() {\n while (IMPLICIT_END_TAG_REQUIRED.has(this.currentTagId)) {\n this.pop();\n }\n }\n generateImpliedEndTagsThoroughly() {\n while (IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId)) {\n this.pop();\n }\n }\n generateImpliedEndTagsWithExclusion(exclusionId) {\n while (this.currentTagId !== exclusionId && IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId)) {\n this.pop();\n }\n }\n}\n//# sourceMappingURL=open-element-stack.js.map","//Const\nconst NOAH_ARK_CAPACITY = 3;\nexport var EntryType;\n(function (EntryType) {\n EntryType[EntryType[\"Marker\"] = 0] = \"Marker\";\n EntryType[EntryType[\"Element\"] = 1] = \"Element\";\n})(EntryType = EntryType || (EntryType = {}));\nconst MARKER = { type: EntryType.Marker };\n//List of formatting elements\nexport class FormattingElementList {\n constructor(treeAdapter) {\n this.treeAdapter = treeAdapter;\n this.entries = [];\n this.bookmark = null;\n }\n //Noah Ark's condition\n //OPTIMIZATION: at first we try to find possible candidates for exclusion using\n //lightweight heuristics without thorough attributes check.\n _getNoahArkConditionCandidates(newElement, neAttrs) {\n const candidates = [];\n const neAttrsLength = neAttrs.length;\n const neTagName = this.treeAdapter.getTagName(newElement);\n const neNamespaceURI = this.treeAdapter.getNamespaceURI(newElement);\n for (let i = 0; i < this.entries.length; i++) {\n const entry = this.entries[i];\n if (entry.type === EntryType.Marker) {\n break;\n }\n const { element } = entry;\n if (this.treeAdapter.getTagName(element) === neTagName &&\n this.treeAdapter.getNamespaceURI(element) === neNamespaceURI) {\n const elementAttrs = this.treeAdapter.getAttrList(element);\n if (elementAttrs.length === neAttrsLength) {\n candidates.push({ idx: i, attrs: elementAttrs });\n }\n }\n }\n return candidates;\n }\n _ensureNoahArkCondition(newElement) {\n if (this.entries.length < NOAH_ARK_CAPACITY)\n return;\n const neAttrs = this.treeAdapter.getAttrList(newElement);\n const candidates = this._getNoahArkConditionCandidates(newElement, neAttrs);\n if (candidates.length < NOAH_ARK_CAPACITY)\n return;\n //NOTE: build attrs map for the new element, so we can perform fast lookups\n const neAttrsMap = new Map(neAttrs.map((neAttr) => [neAttr.name, neAttr.value]));\n let validCandidates = 0;\n //NOTE: remove bottommost candidates, until Noah's Ark condition will not be met\n for (let i = 0; i < candidates.length; i++) {\n const candidate = candidates[i];\n // We know that `candidate.attrs.length === neAttrs.length`\n if (candidate.attrs.every((cAttr) => neAttrsMap.get(cAttr.name) === cAttr.value)) {\n validCandidates += 1;\n if (validCandidates >= NOAH_ARK_CAPACITY) {\n this.entries.splice(candidate.idx, 1);\n }\n }\n }\n }\n //Mutations\n insertMarker() {\n this.entries.unshift(MARKER);\n }\n pushElement(element, token) {\n this._ensureNoahArkCondition(element);\n this.entries.unshift({\n type: EntryType.Element,\n element,\n token,\n });\n }\n insertElementAfterBookmark(element, token) {\n const bookmarkIdx = this.entries.indexOf(this.bookmark);\n this.entries.splice(bookmarkIdx, 0, {\n type: EntryType.Element,\n element,\n token,\n });\n }\n removeEntry(entry) {\n const entryIndex = this.entries.indexOf(entry);\n if (entryIndex >= 0) {\n this.entries.splice(entryIndex, 1);\n }\n }\n /**\n * Clears the list of formatting elements up to the last marker.\n *\n * @see https://html.spec.whatwg.org/multipage/parsing.html#clear-the-list-of-active-formatting-elements-up-to-the-last-marker\n */\n clearToLastMarker() {\n const markerIdx = this.entries.indexOf(MARKER);\n if (markerIdx >= 0) {\n this.entries.splice(0, markerIdx + 1);\n }\n else {\n this.entries.length = 0;\n }\n }\n //Search\n getElementEntryInScopeWithTagName(tagName) {\n const entry = this.entries.find((entry) => entry.type === EntryType.Marker || this.treeAdapter.getTagName(entry.element) === tagName);\n return entry && entry.type === EntryType.Element ? entry : null;\n }\n getElementEntry(element) {\n return this.entries.find((entry) => entry.type === EntryType.Element && entry.element === element);\n }\n}\n//# sourceMappingURL=formatting-element-list.js.map","import { DOCUMENT_MODE } from '../common/html.js';\nfunction createTextNode(value) {\n return {\n nodeName: '#text',\n value,\n parentNode: null,\n };\n}\nexport const defaultTreeAdapter = {\n //Node construction\n createDocument() {\n return {\n nodeName: '#document',\n mode: DOCUMENT_MODE.NO_QUIRKS,\n childNodes: [],\n };\n },\n createDocumentFragment() {\n return {\n nodeName: '#document-fragment',\n childNodes: [],\n };\n },\n createElement(tagName, namespaceURI, attrs) {\n return {\n nodeName: tagName,\n tagName,\n attrs,\n namespaceURI,\n childNodes: [],\n parentNode: null,\n };\n },\n createCommentNode(data) {\n return {\n nodeName: '#comment',\n data,\n parentNode: null,\n };\n },\n //Tree mutation\n appendChild(parentNode, newNode) {\n parentNode.childNodes.push(newNode);\n newNode.parentNode = parentNode;\n },\n insertBefore(parentNode, newNode, referenceNode) {\n const insertionIdx = parentNode.childNodes.indexOf(referenceNode);\n parentNode.childNodes.splice(insertionIdx, 0, newNode);\n newNode.parentNode = parentNode;\n },\n setTemplateContent(templateElement, contentElement) {\n templateElement.content = contentElement;\n },\n getTemplateContent(templateElement) {\n return templateElement.content;\n },\n setDocumentType(document, name, publicId, systemId) {\n const doctypeNode = document.childNodes.find((node) => node.nodeName === '#documentType');\n if (doctypeNode) {\n doctypeNode.name = name;\n doctypeNode.publicId = publicId;\n doctypeNode.systemId = systemId;\n }\n else {\n const node = {\n nodeName: '#documentType',\n name,\n publicId,\n systemId,\n parentNode: null,\n };\n defaultTreeAdapter.appendChild(document, node);\n }\n },\n setDocumentMode(document, mode) {\n document.mode = mode;\n },\n getDocumentMode(document) {\n return document.mode;\n },\n detachNode(node) {\n if (node.parentNode) {\n const idx = node.parentNode.childNodes.indexOf(node);\n node.parentNode.childNodes.splice(idx, 1);\n node.parentNode = null;\n }\n },\n insertText(parentNode, text) {\n if (parentNode.childNodes.length > 0) {\n const prevNode = parentNode.childNodes[parentNode.childNodes.length - 1];\n if (defaultTreeAdapter.isTextNode(prevNode)) {\n prevNode.value += text;\n return;\n }\n }\n defaultTreeAdapter.appendChild(parentNode, createTextNode(text));\n },\n insertTextBefore(parentNode, text, referenceNode) {\n const prevNode = parentNode.childNodes[parentNode.childNodes.indexOf(referenceNode) - 1];\n if (prevNode && defaultTreeAdapter.isTextNode(prevNode)) {\n prevNode.value += text;\n }\n else {\n defaultTreeAdapter.insertBefore(parentNode, createTextNode(text), referenceNode);\n }\n },\n adoptAttributes(recipient, attrs) {\n const recipientAttrsMap = new Set(recipient.attrs.map((attr) => attr.name));\n for (let j = 0; j < attrs.length; j++) {\n if (!recipientAttrsMap.has(attrs[j].name)) {\n recipient.attrs.push(attrs[j]);\n }\n }\n },\n //Tree traversing\n getFirstChild(node) {\n return node.childNodes[0];\n },\n getChildNodes(node) {\n return node.childNodes;\n },\n getParentNode(node) {\n return node.parentNode;\n },\n getAttrList(element) {\n return element.attrs;\n },\n //Node data\n getTagName(element) {\n return element.tagName;\n },\n getNamespaceURI(element) {\n return element.namespaceURI;\n },\n getTextNodeContent(textNode) {\n return textNode.value;\n },\n getCommentNodeContent(commentNode) {\n return commentNode.data;\n },\n getDocumentTypeNodeName(doctypeNode) {\n return doctypeNode.name;\n },\n getDocumentTypeNodePublicId(doctypeNode) {\n return doctypeNode.publicId;\n },\n getDocumentTypeNodeSystemId(doctypeNode) {\n return doctypeNode.systemId;\n },\n //Node types\n isTextNode(node) {\n return node.nodeName === '#text';\n },\n isCommentNode(node) {\n return node.nodeName === '#comment';\n },\n isDocumentTypeNode(node) {\n return node.nodeName === '#documentType';\n },\n isElementNode(node) {\n return Object.prototype.hasOwnProperty.call(node, 'tagName');\n },\n // Source code location\n setNodeSourceCodeLocation(node, location) {\n node.sourceCodeLocation = location;\n },\n getNodeSourceCodeLocation(node) {\n return node.sourceCodeLocation;\n },\n updateNodeSourceCodeLocation(node, endLocation) {\n node.sourceCodeLocation = { ...node.sourceCodeLocation, ...endLocation };\n },\n};\n//# sourceMappingURL=default.js.map","import { DOCUMENT_MODE } from './html.js';\n//Const\nconst VALID_DOCTYPE_NAME = 'html';\nconst VALID_SYSTEM_ID = 'about:legacy-compat';\nconst QUIRKS_MODE_SYSTEM_ID = 'http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd';\nconst QUIRKS_MODE_PUBLIC_ID_PREFIXES = [\n '+//silmaril//dtd html pro v0r11 19970101//',\n '-//as//dtd html 3.0 aswedit + extensions//',\n '-//advasoft ltd//dtd html 3.0 aswedit + extensions//',\n '-//ietf//dtd html 2.0 level 1//',\n '-//ietf//dtd html 2.0 level 2//',\n '-//ietf//dtd html 2.0 strict level 1//',\n '-//ietf//dtd html 2.0 strict level 2//',\n '-//ietf//dtd html 2.0 strict//',\n '-//ietf//dtd html 2.0//',\n '-//ietf//dtd html 2.1e//',\n '-//ietf//dtd html 3.0//',\n '-//ietf//dtd html 3.2 final//',\n '-//ietf//dtd html 3.2//',\n '-//ietf//dtd html 3//',\n '-//ietf//dtd html level 0//',\n '-//ietf//dtd html level 1//',\n '-//ietf//dtd html level 2//',\n '-//ietf//dtd html level 3//',\n '-//ietf//dtd html strict level 0//',\n '-//ietf//dtd html strict level 1//',\n '-//ietf//dtd html strict level 2//',\n '-//ietf//dtd html strict level 3//',\n '-//ietf//dtd html strict//',\n '-//ietf//dtd html//',\n '-//metrius//dtd metrius presentational//',\n '-//microsoft//dtd internet explorer 2.0 html strict//',\n '-//microsoft//dtd internet explorer 2.0 html//',\n '-//microsoft//dtd internet explorer 2.0 tables//',\n '-//microsoft//dtd internet explorer 3.0 html strict//',\n '-//microsoft//dtd internet explorer 3.0 html//',\n '-//microsoft//dtd internet explorer 3.0 tables//',\n '-//netscape comm. corp.//dtd html//',\n '-//netscape comm. corp.//dtd strict html//',\n \"-//o'reilly and associates//dtd html 2.0//\",\n \"-//o'reilly and associates//dtd html extended 1.0//\",\n \"-//o'reilly and associates//dtd html extended relaxed 1.0//\",\n '-//sq//dtd html 2.0 hotmetal + extensions//',\n '-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//',\n '-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//',\n '-//spyglass//dtd html 2.0 extended//',\n '-//sun microsystems corp.//dtd hotjava html//',\n '-//sun microsystems corp.//dtd hotjava strict html//',\n '-//w3c//dtd html 3 1995-03-24//',\n '-//w3c//dtd html 3.2 draft//',\n '-//w3c//dtd html 3.2 final//',\n '-//w3c//dtd html 3.2//',\n '-//w3c//dtd html 3.2s draft//',\n '-//w3c//dtd html 4.0 frameset//',\n '-//w3c//dtd html 4.0 transitional//',\n '-//w3c//dtd html experimental 19960712//',\n '-//w3c//dtd html experimental 970421//',\n '-//w3c//dtd w3 html//',\n '-//w3o//dtd w3 html 3.0//',\n '-//webtechs//dtd mozilla html 2.0//',\n '-//webtechs//dtd mozilla html//',\n];\nconst QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES = [\n ...QUIRKS_MODE_PUBLIC_ID_PREFIXES,\n '-//w3c//dtd html 4.01 frameset//',\n '-//w3c//dtd html 4.01 transitional//',\n];\nconst QUIRKS_MODE_PUBLIC_IDS = new Set([\n '-//w3o//dtd w3 html strict 3.0//en//',\n '-/w3c/dtd html 4.0 transitional/en',\n 'html',\n]);\nconst LIMITED_QUIRKS_PUBLIC_ID_PREFIXES = ['-//w3c//dtd xhtml 1.0 frameset//', '-//w3c//dtd xhtml 1.0 transitional//'];\nconst LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES = [\n ...LIMITED_QUIRKS_PUBLIC_ID_PREFIXES,\n '-//w3c//dtd html 4.01 frameset//',\n '-//w3c//dtd html 4.01 transitional//',\n];\n//Utils\nfunction hasPrefix(publicId, prefixes) {\n return prefixes.some((prefix) => publicId.startsWith(prefix));\n}\n//API\nexport function isConforming(token) {\n return (token.name === VALID_DOCTYPE_NAME &&\n token.publicId === null &&\n (token.systemId === null || token.systemId === VALID_SYSTEM_ID));\n}\nexport function getDocumentMode(token) {\n if (token.name !== VALID_DOCTYPE_NAME) {\n return DOCUMENT_MODE.QUIRKS;\n }\n const { systemId } = token;\n if (systemId && systemId.toLowerCase() === QUIRKS_MODE_SYSTEM_ID) {\n return DOCUMENT_MODE.QUIRKS;\n }\n let { publicId } = token;\n if (publicId !== null) {\n publicId = publicId.toLowerCase();\n if (QUIRKS_MODE_PUBLIC_IDS.has(publicId)) {\n return DOCUMENT_MODE.QUIRKS;\n }\n let prefixes = systemId === null ? QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES : QUIRKS_MODE_PUBLIC_ID_PREFIXES;\n if (hasPrefix(publicId, prefixes)) {\n return DOCUMENT_MODE.QUIRKS;\n }\n prefixes =\n systemId === null ? LIMITED_QUIRKS_PUBLIC_ID_PREFIXES : LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES;\n if (hasPrefix(publicId, prefixes)) {\n return DOCUMENT_MODE.LIMITED_QUIRKS;\n }\n }\n return DOCUMENT_MODE.NO_QUIRKS;\n}\n//# sourceMappingURL=doctype.js.map","import { TAG_ID as $, NS, ATTRS, getTagID } from './html.js';\n//MIME types\nconst MIME_TYPES = {\n TEXT_HTML: 'text/html',\n APPLICATION_XML: 'application/xhtml+xml',\n};\n//Attributes\nconst DEFINITION_URL_ATTR = 'definitionurl';\nconst ADJUSTED_DEFINITION_URL_ATTR = 'definitionURL';\nconst SVG_ATTRS_ADJUSTMENT_MAP = new Map([\n 'attributeName',\n 'attributeType',\n 'baseFrequency',\n 'baseProfile',\n 'calcMode',\n 'clipPathUnits',\n 'diffuseConstant',\n 'edgeMode',\n 'filterUnits',\n 'glyphRef',\n 'gradientTransform',\n 'gradientUnits',\n 'kernelMatrix',\n 'kernelUnitLength',\n 'keyPoints',\n 'keySplines',\n 'keyTimes',\n 'lengthAdjust',\n 'limitingConeAngle',\n 'markerHeight',\n 'markerUnits',\n 'markerWidth',\n 'maskContentUnits',\n 'maskUnits',\n 'numOctaves',\n 'pathLength',\n 'patternContentUnits',\n 'patternTransform',\n 'patternUnits',\n 'pointsAtX',\n 'pointsAtY',\n 'pointsAtZ',\n 'preserveAlpha',\n 'preserveAspectRatio',\n 'primitiveUnits',\n 'refX',\n 'refY',\n 'repeatCount',\n 'repeatDur',\n 'requiredExtensions',\n 'requiredFeatures',\n 'specularConstant',\n 'specularExponent',\n 'spreadMethod',\n 'startOffset',\n 'stdDeviation',\n 'stitchTiles',\n 'surfaceScale',\n 'systemLanguage',\n 'tableValues',\n 'targetX',\n 'targetY',\n 'textLength',\n 'viewBox',\n 'viewTarget',\n 'xChannelSelector',\n 'yChannelSelector',\n 'zoomAndPan',\n].map((attr) => [attr.toLowerCase(), attr]));\nconst XML_ATTRS_ADJUSTMENT_MAP = new Map([\n ['xlink:actuate', { prefix: 'xlink', name: 'actuate', namespace: NS.XLINK }],\n ['xlink:arcrole', { prefix: 'xlink', name: 'arcrole', namespace: NS.XLINK }],\n ['xlink:href', { prefix: 'xlink', name: 'href', namespace: NS.XLINK }],\n ['xlink:role', { prefix: 'xlink', name: 'role', namespace: NS.XLINK }],\n ['xlink:show', { prefix: 'xlink', name: 'show', namespace: NS.XLINK }],\n ['xlink:title', { prefix: 'xlink', name: 'title', namespace: NS.XLINK }],\n ['xlink:type', { prefix: 'xlink', name: 'type', namespace: NS.XLINK }],\n ['xml:base', { prefix: 'xml', name: 'base', namespace: NS.XML }],\n ['xml:lang', { prefix: 'xml', name: 'lang', namespace: NS.XML }],\n ['xml:space', { prefix: 'xml', name: 'space', namespace: NS.XML }],\n ['xmlns', { prefix: '', name: 'xmlns', namespace: NS.XMLNS }],\n ['xmlns:xlink', { prefix: 'xmlns', name: 'xlink', namespace: NS.XMLNS }],\n]);\n//SVG tag names adjustment map\nexport const SVG_TAG_NAMES_ADJUSTMENT_MAP = new Map([\n 'altGlyph',\n 'altGlyphDef',\n 'altGlyphItem',\n 'animateColor',\n 'animateMotion',\n 'animateTransform',\n 'clipPath',\n 'feBlend',\n 'feColorMatrix',\n 'feComponentTransfer',\n 'feComposite',\n 'feConvolveMatrix',\n 'feDiffuseLighting',\n 'feDisplacementMap',\n 'feDistantLight',\n 'feFlood',\n 'feFuncA',\n 'feFuncB',\n 'feFuncG',\n 'feFuncR',\n 'feGaussianBlur',\n 'feImage',\n 'feMerge',\n 'feMergeNode',\n 'feMorphology',\n 'feOffset',\n 'fePointLight',\n 'feSpecularLighting',\n 'feSpotLight',\n 'feTile',\n 'feTurbulence',\n 'foreignObject',\n 'glyphRef',\n 'linearGradient',\n 'radialGradient',\n 'textPath',\n].map((tn) => [tn.toLowerCase(), tn]));\n//Tags that causes exit from foreign content\nconst EXITS_FOREIGN_CONTENT = new Set([\n $.B,\n $.BIG,\n $.BLOCKQUOTE,\n $.BODY,\n $.BR,\n $.CENTER,\n $.CODE,\n $.DD,\n $.DIV,\n $.DL,\n $.DT,\n $.EM,\n $.EMBED,\n $.H1,\n $.H2,\n $.H3,\n $.H4,\n $.H5,\n $.H6,\n $.HEAD,\n $.HR,\n $.I,\n $.IMG,\n $.LI,\n $.LISTING,\n $.MENU,\n $.META,\n $.NOBR,\n $.OL,\n $.P,\n $.PRE,\n $.RUBY,\n $.S,\n $.SMALL,\n $.SPAN,\n $.STRONG,\n $.STRIKE,\n $.SUB,\n $.SUP,\n $.TABLE,\n $.TT,\n $.U,\n $.UL,\n $.VAR,\n]);\n//Check exit from foreign content\nexport function causesExit(startTagToken) {\n const tn = startTagToken.tagID;\n const isFontWithAttrs = tn === $.FONT &&\n startTagToken.attrs.some(({ name }) => name === ATTRS.COLOR || name === ATTRS.SIZE || name === ATTRS.FACE);\n return isFontWithAttrs || EXITS_FOREIGN_CONTENT.has(tn);\n}\n//Token adjustments\nexport function adjustTokenMathMLAttrs(token) {\n for (let i = 0; i < token.attrs.length; i++) {\n if (token.attrs[i].name === DEFINITION_URL_ATTR) {\n token.attrs[i].name = ADJUSTED_DEFINITION_URL_ATTR;\n break;\n }\n }\n}\nexport function adjustTokenSVGAttrs(token) {\n for (let i = 0; i < token.attrs.length; i++) {\n const adjustedAttrName = SVG_ATTRS_ADJUSTMENT_MAP.get(token.attrs[i].name);\n if (adjustedAttrName != null) {\n token.attrs[i].name = adjustedAttrName;\n }\n }\n}\nexport function adjustTokenXMLAttrs(token) {\n for (let i = 0; i < token.attrs.length; i++) {\n const adjustedAttrEntry = XML_ATTRS_ADJUSTMENT_MAP.get(token.attrs[i].name);\n if (adjustedAttrEntry) {\n token.attrs[i].prefix = adjustedAttrEntry.prefix;\n token.attrs[i].name = adjustedAttrEntry.name;\n token.attrs[i].namespace = adjustedAttrEntry.namespace;\n }\n }\n}\nexport function adjustTokenSVGTagName(token) {\n const adjustedTagName = SVG_TAG_NAMES_ADJUSTMENT_MAP.get(token.tagName);\n if (adjustedTagName != null) {\n token.tagName = adjustedTagName;\n token.tagID = getTagID(token.tagName);\n }\n}\n//Integration points\nfunction isMathMLTextIntegrationPoint(tn, ns) {\n return ns === NS.MATHML && (tn === $.MI || tn === $.MO || tn === $.MN || tn === $.MS || tn === $.MTEXT);\n}\nfunction isHtmlIntegrationPoint(tn, ns, attrs) {\n if (ns === NS.MATHML && tn === $.ANNOTATION_XML) {\n for (let i = 0; i < attrs.length; i++) {\n if (attrs[i].name === ATTRS.ENCODING) {\n const value = attrs[i].value.toLowerCase();\n return value === MIME_TYPES.TEXT_HTML || value === MIME_TYPES.APPLICATION_XML;\n }\n }\n }\n return ns === NS.SVG && (tn === $.FOREIGN_OBJECT || tn === $.DESC || tn === $.TITLE);\n}\nexport function isIntegrationPoint(tn, ns, attrs, foreignNS) {\n return (((!foreignNS || foreignNS === NS.HTML) && isHtmlIntegrationPoint(tn, ns, attrs)) ||\n ((!foreignNS || foreignNS === NS.MATHML) && isMathMLTextIntegrationPoint(tn, ns)));\n}\n//# sourceMappingURL=foreign-content.js.map","import { Tokenizer, TokenizerMode } from '../tokenizer/index.js';\nimport { OpenElementStack } from './open-element-stack.js';\nimport { FormattingElementList, EntryType } from './formatting-element-list.js';\nimport { defaultTreeAdapter } from '../tree-adapters/default.js';\nimport * as doctype from '../common/doctype.js';\nimport * as foreignContent from '../common/foreign-content.js';\nimport { ERR } from '../common/error-codes.js';\nimport * as unicode from '../common/unicode.js';\nimport { TAG_ID as $, TAG_NAMES as TN, NS, ATTRS, SPECIAL_ELEMENTS, DOCUMENT_MODE, isNumberedHeader, getTagID, } from '../common/html.js';\nimport { TokenType, getTokenAttr, } from '../common/token.js';\n//Misc constants\nconst HIDDEN_INPUT_TYPE = 'hidden';\n//Adoption agency loops iteration count\nconst AA_OUTER_LOOP_ITER = 8;\nconst AA_INNER_LOOP_ITER = 3;\n//Insertion modes\nvar InsertionMode;\n(function (InsertionMode) {\n InsertionMode[InsertionMode[\"INITIAL\"] = 0] = \"INITIAL\";\n InsertionMode[InsertionMode[\"BEFORE_HTML\"] = 1] = \"BEFORE_HTML\";\n InsertionMode[InsertionMode[\"BEFORE_HEAD\"] = 2] = \"BEFORE_HEAD\";\n InsertionMode[InsertionMode[\"IN_HEAD\"] = 3] = \"IN_HEAD\";\n InsertionMode[InsertionMode[\"IN_HEAD_NO_SCRIPT\"] = 4] = \"IN_HEAD_NO_SCRIPT\";\n InsertionMode[InsertionMode[\"AFTER_HEAD\"] = 5] = \"AFTER_HEAD\";\n InsertionMode[InsertionMode[\"IN_BODY\"] = 6] = \"IN_BODY\";\n InsertionMode[InsertionMode[\"TEXT\"] = 7] = \"TEXT\";\n InsertionMode[InsertionMode[\"IN_TABLE\"] = 8] = \"IN_TABLE\";\n InsertionMode[InsertionMode[\"IN_TABLE_TEXT\"] = 9] = \"IN_TABLE_TEXT\";\n InsertionMode[InsertionMode[\"IN_CAPTION\"] = 10] = \"IN_CAPTION\";\n InsertionMode[InsertionMode[\"IN_COLUMN_GROUP\"] = 11] = \"IN_COLUMN_GROUP\";\n InsertionMode[InsertionMode[\"IN_TABLE_BODY\"] = 12] = \"IN_TABLE_BODY\";\n InsertionMode[InsertionMode[\"IN_ROW\"] = 13] = \"IN_ROW\";\n InsertionMode[InsertionMode[\"IN_CELL\"] = 14] = \"IN_CELL\";\n InsertionMode[InsertionMode[\"IN_SELECT\"] = 15] = \"IN_SELECT\";\n InsertionMode[InsertionMode[\"IN_SELECT_IN_TABLE\"] = 16] = \"IN_SELECT_IN_TABLE\";\n InsertionMode[InsertionMode[\"IN_TEMPLATE\"] = 17] = \"IN_TEMPLATE\";\n InsertionMode[InsertionMode[\"AFTER_BODY\"] = 18] = \"AFTER_BODY\";\n InsertionMode[InsertionMode[\"IN_FRAMESET\"] = 19] = \"IN_FRAMESET\";\n InsertionMode[InsertionMode[\"AFTER_FRAMESET\"] = 20] = \"AFTER_FRAMESET\";\n InsertionMode[InsertionMode[\"AFTER_AFTER_BODY\"] = 21] = \"AFTER_AFTER_BODY\";\n InsertionMode[InsertionMode[\"AFTER_AFTER_FRAMESET\"] = 22] = \"AFTER_AFTER_FRAMESET\";\n})(InsertionMode || (InsertionMode = {}));\nconst BASE_LOC = {\n startLine: -1,\n startCol: -1,\n startOffset: -1,\n endLine: -1,\n endCol: -1,\n endOffset: -1,\n};\nconst TABLE_STRUCTURE_TAGS = new Set([$.TABLE, $.TBODY, $.TFOOT, $.THEAD, $.TR]);\nconst defaultParserOptions = {\n scriptingEnabled: true,\n sourceCodeLocationInfo: false,\n treeAdapter: defaultTreeAdapter,\n onParseError: null,\n};\n//Parser\nexport class Parser {\n constructor(options, document, fragmentContext = null, scriptHandler = null) {\n this.fragmentContext = fragmentContext;\n this.scriptHandler = scriptHandler;\n this.currentToken = null;\n this.stopped = false;\n this.insertionMode = InsertionMode.INITIAL;\n this.originalInsertionMode = InsertionMode.INITIAL;\n this.headElement = null;\n this.formElement = null;\n /** Indicates that the current node is not an element in the HTML namespace */\n this.currentNotInHTML = false;\n /**\n * The template insertion mode stack is maintained from the left.\n * Ie. the topmost element will always have index 0.\n */\n this.tmplInsertionModeStack = [];\n this.pendingCharacterTokens = [];\n this.hasNonWhitespacePendingCharacterToken = false;\n this.framesetOk = true;\n this.skipNextNewLine = false;\n this.fosterParentingEnabled = false;\n this.options = {\n ...defaultParserOptions,\n ...options,\n };\n this.treeAdapter = this.options.treeAdapter;\n this.onParseError = this.options.onParseError;\n // Always enable location info if we report parse errors.\n if (this.onParseError) {\n this.options.sourceCodeLocationInfo = true;\n }\n this.document = document !== null && document !== void 0 ? document : this.treeAdapter.createDocument();\n this.tokenizer = new Tokenizer(this.options, this);\n this.activeFormattingElements = new FormattingElementList(this.treeAdapter);\n this.fragmentContextID = fragmentContext ? getTagID(this.treeAdapter.getTagName(fragmentContext)) : $.UNKNOWN;\n this._setContextModes(fragmentContext !== null && fragmentContext !== void 0 ? fragmentContext : this.document, this.fragmentContextID);\n this.openElements = new OpenElementStack(this.document, this.treeAdapter, this);\n }\n // API\n static parse(html, options) {\n const parser = new this(options);\n parser.tokenizer.write(html, true);\n return parser.document;\n }\n static getFragmentParser(fragmentContext, options) {\n const opts = {\n ...defaultParserOptions,\n ...options,\n };\n //NOTE: use a