diff --git a/asset-manifest.json b/asset-manifest.json index 26dc8b6ab..3b118392e 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,115 +1,117 @@ { "files": { "main.css": "/static/css/main.6ef0c5a4.css", - "main.js": "/static/js/main.0bfcf1e2.js", + "main.js": "/static/js/main.87256015.js", "static/css/313.b92d3464.chunk.css": "/static/css/313.b92d3464.chunk.css", - "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.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/313.679402f4.chunk.js": "/static/js/313.679402f4.chunk.js", + "static/js/914.15ddc451.chunk.js": "/static/js/914.15ddc451.chunk.js", + "static/js/288.e4395c56.chunk.js": "/static/js/288.e4395c56.chunk.js", + "static/js/995.0883c958.chunk.js": "/static/js/995.0883c958.chunk.js", + "static/js/328.60d34335.chunk.js": "/static/js/328.60d34335.chunk.js", + "static/js/563.042094b3.chunk.js": "/static/js/563.042094b3.chunk.js", + "static/js/993.e2e30864.chunk.js": "/static/js/993.e2e30864.chunk.js", + "static/js/241.7fcf8d78.chunk.js": "/static/js/241.7fcf8d78.chunk.js", + "static/js/331.e4120db1.chunk.js": "/static/js/331.e4120db1.chunk.js", + "static/js/791.d7244e8e.chunk.js": "/static/js/791.d7244e8e.chunk.js", + "static/js/984.7993cee6.chunk.js": "/static/js/984.7993cee6.chunk.js", + "static/js/999.6d026755.chunk.js": "/static/js/999.6d026755.chunk.js", + "static/js/674.3ade4d88.chunk.js": "/static/js/674.3ade4d88.chunk.js", + "static/js/734.84fe2a53.chunk.js": "/static/js/734.84fe2a53.chunk.js", + "static/js/494.09a0b430.chunk.js": "/static/js/494.09a0b430.chunk.js", + "static/js/369.f08708ec.chunk.js": "/static/js/369.f08708ec.chunk.js", + "static/js/696.374df31a.chunk.js": "/static/js/696.374df31a.chunk.js", + "static/js/404.c460be11.chunk.js": "/static/js/404.c460be11.chunk.js", + "static/js/698.6b82990f.chunk.js": "/static/js/698.6b82990f.chunk.js", + "static/js/907.c37bbb9f.chunk.js": "/static/js/907.c37bbb9f.chunk.js", + "static/js/522.27a81087.chunk.js": "/static/js/522.27a81087.chunk.js", + "static/js/73.ca78844b.chunk.js": "/static/js/73.ca78844b.chunk.js", "static/js/950.e2bd31d3.chunk.js": "/static/js/950.e2bd31d3.chunk.js", - "static/js/185.d382b48b.chunk.js": "/static/js/185.d382b48b.chunk.js", - "static/js/199.11daa03a.chunk.js": "/static/js/199.11daa03a.chunk.js", - "static/js/158.615a301a.chunk.js": "/static/js/158.615a301a.chunk.js", - "static/js/919.9f2bbdc8.chunk.js": "/static/js/919.9f2bbdc8.chunk.js", - "static/js/78.eac542ef.chunk.js": "/static/js/78.eac542ef.chunk.js", - "static/js/108.a602ebc8.chunk.js": "/static/js/108.a602ebc8.chunk.js", - "static/js/546.a25343e9.chunk.js": "/static/js/546.a25343e9.chunk.js", - "static/js/716.d6ec852b.chunk.js": "/static/js/716.d6ec852b.chunk.js", - "static/js/137.a974f160.chunk.js": "/static/js/137.a974f160.chunk.js", - "static/js/785.b01e40db.chunk.js": "/static/js/785.b01e40db.chunk.js", - "static/js/315.cde22620.chunk.js": "/static/js/315.cde22620.chunk.js", - "static/js/547.ef097f35.chunk.js": "/static/js/547.ef097f35.chunk.js", - "static/js/215.eb859fa3.chunk.js": "/static/js/215.eb859fa3.chunk.js", - "static/js/655.62b2a2d5.chunk.js": "/static/js/655.62b2a2d5.chunk.js", + "static/js/185.e096f7e8.chunk.js": "/static/js/185.e096f7e8.chunk.js", + "static/js/199.678b96fe.chunk.js": "/static/js/199.678b96fe.chunk.js", + "static/js/158.cc4edd73.chunk.js": "/static/js/158.cc4edd73.chunk.js", + "static/js/919.8343cc99.chunk.js": "/static/js/919.8343cc99.chunk.js", + "static/js/78.1bf68904.chunk.js": "/static/js/78.1bf68904.chunk.js", + "static/js/108.141581b3.chunk.js": "/static/js/108.141581b3.chunk.js", + "static/js/546.7ac36bcc.chunk.js": "/static/js/546.7ac36bcc.chunk.js", + "static/js/716.45ca985d.chunk.js": "/static/js/716.45ca985d.chunk.js", + "static/js/137.fbf5bb24.chunk.js": "/static/js/137.fbf5bb24.chunk.js", + "static/js/785.b9ca0289.chunk.js": "/static/js/785.b9ca0289.chunk.js", + "static/js/315.993a2a3e.chunk.js": "/static/js/315.993a2a3e.chunk.js", + "static/js/547.030ccfcd.chunk.js": "/static/js/547.030ccfcd.chunk.js", + "static/js/215.dee7729f.chunk.js": "/static/js/215.dee7729f.chunk.js", + "static/js/655.e72e2772.chunk.js": "/static/js/655.e72e2772.chunk.js", "static/js/74.54f664d0.chunk.js": "/static/js/74.54f664d0.chunk.js", - "static/js/939.1c9aba6d.chunk.js": "/static/js/939.1c9aba6d.chunk.js", - "static/js/256.feddbf7f.chunk.js": "/static/js/256.feddbf7f.chunk.js", - "static/js/428.aec41b73.chunk.js": "/static/js/428.aec41b73.chunk.js", - "static/js/135.da7aa470.chunk.js": "/static/js/135.da7aa470.chunk.js", - "static/js/583.0a606499.chunk.js": "/static/js/583.0a606499.chunk.js", + "static/js/939.f9b9b855.chunk.js": "/static/js/939.f9b9b855.chunk.js", + "static/js/256.4aaa220d.chunk.js": "/static/js/256.4aaa220d.chunk.js", + "static/js/428.266fc200.chunk.js": "/static/js/428.266fc200.chunk.js", + "static/js/135.0f28c8e2.chunk.js": "/static/js/135.0f28c8e2.chunk.js", + "static/js/583.8ad9ec0b.chunk.js": "/static/js/583.8ad9ec0b.chunk.js", "static/js/24.6d70a2cd.chunk.js": "/static/js/24.6d70a2cd.chunk.js", "refractor-vendor.js": "/static/js/refractor-vendor.c5f44634.chunk.js", "react-vendor.js": "/static/js/react-vendor.9874219f.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", + "static/js/692.c8c2fe0c.chunk.js": "/static/js/692.c8c2fe0c.chunk.js", + "static/js/968.a7eb455a.chunk.js": "/static/js/968.a7eb455a.chunk.js", + "static/js/571.42bfa623.chunk.js": "/static/js/571.42bfa623.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.0bfcf1e2.js.map": "/static/js/main.0bfcf1e2.js.map", + "main.87256015.js.map": "/static/js/main.87256015.js.map", "313.b92d3464.chunk.css.map": "/static/css/313.b92d3464.chunk.css.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.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", + "313.679402f4.chunk.js.map": "/static/js/313.679402f4.chunk.js.map", + "914.15ddc451.chunk.js.map": "/static/js/914.15ddc451.chunk.js.map", + "288.e4395c56.chunk.js.map": "/static/js/288.e4395c56.chunk.js.map", + "995.0883c958.chunk.js.map": "/static/js/995.0883c958.chunk.js.map", + "328.60d34335.chunk.js.map": "/static/js/328.60d34335.chunk.js.map", + "563.042094b3.chunk.js.map": "/static/js/563.042094b3.chunk.js.map", + "993.e2e30864.chunk.js.map": "/static/js/993.e2e30864.chunk.js.map", + "241.7fcf8d78.chunk.js.map": "/static/js/241.7fcf8d78.chunk.js.map", + "331.e4120db1.chunk.js.map": "/static/js/331.e4120db1.chunk.js.map", + "791.d7244e8e.chunk.js.map": "/static/js/791.d7244e8e.chunk.js.map", + "984.7993cee6.chunk.js.map": "/static/js/984.7993cee6.chunk.js.map", + "999.6d026755.chunk.js.map": "/static/js/999.6d026755.chunk.js.map", + "674.3ade4d88.chunk.js.map": "/static/js/674.3ade4d88.chunk.js.map", + "734.84fe2a53.chunk.js.map": "/static/js/734.84fe2a53.chunk.js.map", + "494.09a0b430.chunk.js.map": "/static/js/494.09a0b430.chunk.js.map", + "369.f08708ec.chunk.js.map": "/static/js/369.f08708ec.chunk.js.map", + "696.374df31a.chunk.js.map": "/static/js/696.374df31a.chunk.js.map", + "404.c460be11.chunk.js.map": "/static/js/404.c460be11.chunk.js.map", + "698.6b82990f.chunk.js.map": "/static/js/698.6b82990f.chunk.js.map", + "907.c37bbb9f.chunk.js.map": "/static/js/907.c37bbb9f.chunk.js.map", + "522.27a81087.chunk.js.map": "/static/js/522.27a81087.chunk.js.map", + "73.ca78844b.chunk.js.map": "/static/js/73.ca78844b.chunk.js.map", "950.e2bd31d3.chunk.js.map": "/static/js/950.e2bd31d3.chunk.js.map", - "185.d382b48b.chunk.js.map": "/static/js/185.d382b48b.chunk.js.map", - "199.11daa03a.chunk.js.map": "/static/js/199.11daa03a.chunk.js.map", - "158.615a301a.chunk.js.map": "/static/js/158.615a301a.chunk.js.map", - "919.9f2bbdc8.chunk.js.map": "/static/js/919.9f2bbdc8.chunk.js.map", - "78.eac542ef.chunk.js.map": "/static/js/78.eac542ef.chunk.js.map", - "108.a602ebc8.chunk.js.map": "/static/js/108.a602ebc8.chunk.js.map", - "546.a25343e9.chunk.js.map": "/static/js/546.a25343e9.chunk.js.map", - "716.d6ec852b.chunk.js.map": "/static/js/716.d6ec852b.chunk.js.map", - "137.a974f160.chunk.js.map": "/static/js/137.a974f160.chunk.js.map", - "785.b01e40db.chunk.js.map": "/static/js/785.b01e40db.chunk.js.map", - "315.cde22620.chunk.js.map": "/static/js/315.cde22620.chunk.js.map", - "547.ef097f35.chunk.js.map": "/static/js/547.ef097f35.chunk.js.map", - "215.eb859fa3.chunk.js.map": "/static/js/215.eb859fa3.chunk.js.map", - "655.62b2a2d5.chunk.js.map": "/static/js/655.62b2a2d5.chunk.js.map", + "185.e096f7e8.chunk.js.map": "/static/js/185.e096f7e8.chunk.js.map", + "199.678b96fe.chunk.js.map": "/static/js/199.678b96fe.chunk.js.map", + "158.cc4edd73.chunk.js.map": "/static/js/158.cc4edd73.chunk.js.map", + "919.8343cc99.chunk.js.map": "/static/js/919.8343cc99.chunk.js.map", + "78.1bf68904.chunk.js.map": "/static/js/78.1bf68904.chunk.js.map", + "108.141581b3.chunk.js.map": "/static/js/108.141581b3.chunk.js.map", + "546.7ac36bcc.chunk.js.map": "/static/js/546.7ac36bcc.chunk.js.map", + "716.45ca985d.chunk.js.map": "/static/js/716.45ca985d.chunk.js.map", + "137.fbf5bb24.chunk.js.map": "/static/js/137.fbf5bb24.chunk.js.map", + "785.b9ca0289.chunk.js.map": "/static/js/785.b9ca0289.chunk.js.map", + "315.993a2a3e.chunk.js.map": "/static/js/315.993a2a3e.chunk.js.map", + "547.030ccfcd.chunk.js.map": "/static/js/547.030ccfcd.chunk.js.map", + "215.dee7729f.chunk.js.map": "/static/js/215.dee7729f.chunk.js.map", + "655.e72e2772.chunk.js.map": "/static/js/655.e72e2772.chunk.js.map", "74.54f664d0.chunk.js.map": "/static/js/74.54f664d0.chunk.js.map", - "939.1c9aba6d.chunk.js.map": "/static/js/939.1c9aba6d.chunk.js.map", - "256.feddbf7f.chunk.js.map": "/static/js/256.feddbf7f.chunk.js.map", - "428.aec41b73.chunk.js.map": "/static/js/428.aec41b73.chunk.js.map", - "135.da7aa470.chunk.js.map": "/static/js/135.da7aa470.chunk.js.map", - "583.0a606499.chunk.js.map": "/static/js/583.0a606499.chunk.js.map", + "939.f9b9b855.chunk.js.map": "/static/js/939.f9b9b855.chunk.js.map", + "256.4aaa220d.chunk.js.map": "/static/js/256.4aaa220d.chunk.js.map", + "428.266fc200.chunk.js.map": "/static/js/428.266fc200.chunk.js.map", + "135.0f28c8e2.chunk.js.map": "/static/js/135.0f28c8e2.chunk.js.map", + "583.8ad9ec0b.chunk.js.map": "/static/js/583.8ad9ec0b.chunk.js.map", "24.6d70a2cd.chunk.js.map": "/static/js/24.6d70a2cd.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", "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" + "692.c8c2fe0c.chunk.js.map": "/static/js/692.c8c2fe0c.chunk.js.map", + "968.a7eb455a.chunk.js.map": "/static/js/968.a7eb455a.chunk.js.map", + "571.42bfa623.chunk.js.map": "/static/js/571.42bfa623.chunk.js.map" }, "entrypoints": [ "static/js/react-vendor.9874219f.js", "static/css/main.6ef0c5a4.css", - "static/js/main.0bfcf1e2.js" + "static/js/main.87256015.js" ] } \ No newline at end of file diff --git a/coverage/CONTRIBUTORS.svg b/coverage/CONTRIBUTORS.svg index 401f0fc83..79fe8c4e8 100644 --- a/coverage/CONTRIBUTORS.svg +++ b/coverage/CONTRIBUTORS.svg @@ -20,13 +20,15 @@ + + - + - + - + - + \ No newline at end of file diff --git a/coverage/badges.svg b/coverage/badges.svg index 6989990e1..1ec739f18 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/js/108.141581b3.chunk.js b/static/js/108.141581b3.chunk.js new file mode 100644 index 000000000..87c60674a --- /dev/null +++ b/static/js/108.141581b3.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[108],{5602:(e,t,r)=>{var n=r(6784).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Pointer=void 0;var o=n(r(6651)),a=n(r(453)),i=(n(r(7804)),r(9424)),l=["className","prefixCls","left","top","style","fillProps"];t.Pointer=function(e){var t=e.className,r=e.prefixCls,n=e.left,u=e.top,c=e.style,s=e.fillProps,f=(0,a.default)(e,l),d=(0,o.default)((0,o.default)({},c),{},{position:"absolute",left:n,top:u}),h=(0,o.default)((0,o.default)({width:18,height:18,boxShadow:"var(--alpha-pointer-box-shadow)",borderRadius:"50%",backgroundColor:"var(--alpha-pointer-background-color)"},null===s||void 0===s?void 0:s.style),{},{transform:n?"translate(-9px, -1px)":"translate(-1px, -9px)"});return(0,i.jsx)("div",(0,o.default)((0,o.default)({className:"".concat(r,"-pointer ").concat(t||""),style:d},f),{},{children:(0,i.jsx)("div",(0,o.default)((0,o.default)({className:"".concat(r,"-fill")},s),{},{style:h}))}))}},4707:(e,t,r)=>{var n=r(6784).default;Object.defineProperty(t,"__esModule",{value:!0});var o={BACKGROUND_IMG:!0};t.default=t.BACKGROUND_IMG=void 0;var a=n(r(6651)),i=n(r(453)),l=n(r(7804)),u=r(7604),c=n(r(7611)),s=r(5602);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var f=r(9424),d=["prefixCls","className","hsva","background","bgProps","innerProps","pointerProps","radius","width","height","direction","style","onChange","pointer"],h=t.BACKGROUND_IMG="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==",p=l.default.forwardRef((function(e,t){var r=e.prefixCls,n=void 0===r?"w-color-alpha":r,o=e.className,l=e.hsva,p=e.background,v=e.bgProps,y=void 0===v?{}:v,m=e.innerProps,b=void 0===m?{}:m,g=e.pointerProps,_=void 0===g?{}:g,w=e.radius,j=void 0===w?0:w,O=e.width,S=e.height,P=void 0===S?16:S,x=e.direction,C=void 0===x?"horizontal":x,A=e.style,W=e.onChange,R=e.pointer,E=(0,i.default)(e,d),k=function(e){W&&W((0,a.default)((0,a.default)({},l),{},{a:"horizontal"===C?e.left:e.top}),e)},T=(0,u.hsvaToHslaString)(Object.assign({},l,{a:1})),D="linear-gradient(to ".concat("horizontal"===C?"right":"bottom",", rgba(244, 67, 54, 0) 0%, ").concat(T," 100%)"),M={};"horizontal"===C?M.left="".concat(100*l.a,"%"):M.top="".concat(100*l.a,"%");var H=(0,a.default)((0,a.default)((0,a.default)({"--alpha-background-color":"#fff","--alpha-pointer-background-color":"rgb(248, 248, 248)","--alpha-pointer-box-shadow":"rgb(0 0 0 / 37%) 0px 1px 4px 0px",borderRadius:j,background:"url(".concat(h,") left center"),backgroundColor:"var(--alpha-background-color)"},{width:O,height:P}),A),{},{position:"relative"}),I=R&&"function"===typeof R?R((0,a.default)((0,a.default)({prefixCls:n},_),M)):(0,f.jsx)(s.Pointer,(0,a.default)((0,a.default)({},_),{},{prefixCls:n},M));return(0,f.jsxs)("div",(0,a.default)((0,a.default)({},E),{},{className:[n,"".concat(n,"-").concat(C),o||""].filter(Boolean).join(" "),style:H,ref:t,children:[(0,f.jsx)("div",(0,a.default)((0,a.default)({},y),{},{style:(0,a.default)({inset:0,position:"absolute",background:p||D,borderRadius:j},y.style)})),(0,f.jsx)(c.default,(0,a.default)((0,a.default)({},b),{},{style:(0,a.default)((0,a.default)({},b.style),{},{inset:0,zIndex:1,position:"absolute"}),onMove:k,onDown:k,children:I}))]}))}));p.displayName="Alpha";t.default=p},2974:(e,t,r)=>{var n=r(6784).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(6651)),a=n(r(453)),i=n(r(7804)),l=r(7604),u=n(r(4707)),c=r(9424),s=["prefixCls","className","onChange","direction","hsva"],f=i.default.forwardRef((function(e,t){var r=e.prefixCls,n=void 0===r?"w-color-saturation":r,i=e.className,f=e.onChange,d=e.direction,h=void 0===d?"horizontal":d,p=e.hsva,v=(0,a.default)(e,s),y=(0,l.hsvaToHslaString)((0,o.default)((0,o.default)({},p),{},{a:1,v:100}));return(0,c.jsx)(u.default,(0,o.default)((0,o.default)({ref:t},v),{},{className:"".concat(n," ").concat(i||""),hsva:{h:p.h,s:p.s,v:p.v,a:1-p.v/100},direction:h,background:"linear-gradient(to ".concat("horizontal"===h?"right":"bottom",", ").concat(y,", rgb(0, 0, 0))"),onChange:function(e,t){f&&f({v:"horizontal"===h?100-100*t.left:100-100*t.top})}}))}));f.displayName="ShadeSlider";t.default=f;e.exports=t.default},7193:(e,t,r)=>{var n=r(6784).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Pointer=void 0;var o=n(r(6651)),a=(n(r(7804)),r(9424));t.Pointer=function(e){var t=e.className,r=e.color,n=e.left,i=e.top,l=e.style,u=e.prefixCls,c=(0,o.default)((0,o.default)({},l),{},{position:"absolute",top:i,left:n}),s="".concat(u,"-pointer ").concat(t||"");return(0,a.jsx)("div",{className:s,style:c,children:(0,a.jsx)("div",{className:"".concat(u,"-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,a.jsx)("div",{style:{inset:0,borderRadius:"50%",position:"absolute",backgroundColor:r}})})})}},7468:(e,t,r)=>{var n=r(6784).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(6651)),a=n(r(453)),i=n(r(7804)),l=r(7604),u=n(r(7611)),c=r(7193),s=r(8213),f=r(9424),d=["prefixCls","radius","pointer","className","style","width","height","oval","direction","angle","color","onChange"],h=i.default.forwardRef((function(e,t){var r=e.prefixCls,n=void 0===r?"w-color-wheel":r,i=(e.radius,e.pointer),h=e.className,p=e.style,v=e.width,y=void 0===v?200:v,m=e.height,b=void 0===m?200:m,g=e.oval,_=e.direction,w=void 0===_?"anticlockwise":_,j=e.angle,O=void 0===j?180:j,S=e.color,P=e.onChange,x=(0,a.default)(e,d),C="string"===typeof S&&(0,l.validHex)(S)?(0,l.hexToHsva)(S):S||{},A=S?(0,l.hsvaToHex)(C):"",W=(0,s.getWheelHandlePosition)({width:y},C),R={top:"0",left:"0",color:A},E=function(e,t){var r=(0,s.getWheelValueFromInput)({width:y},y-e.x,b-e.y),n={h:r.h,s:r.s,v:C.v,a:C.a};P&&P((0,l.color)(n))},k={zIndex:1,transform:"translate(".concat(W.x,"px, ").concat(W.y,"px) ").concat("x"===g||"X"===g?"scaleY(2)":"y"===g||"Y"===g?"scaleX(2)":"")},T=i&&"function"===typeof i?i((0,o.default)({prefixCls:n,style:k},R)):(0,f.jsx)(c.Pointer,(0,o.default)({prefixCls:n,style:k},R));return(0,f.jsxs)(u.default,(0,o.default)((0,o.default)({className:[n,h||""].filter(Boolean).join(" ")},x),{},{style:(0,o.default)({position:"relative",width:y,transform:"x"===g||"X"===g?"scaleY(0.5)":"y"===g||"Y"===g?"scaleX(0.5)":"",height:b},p),ref:t,onMove:E,onDown:E,children:[T,(0,f.jsx)("div",{style:{position:"absolute",borderRadius:"50%",background:"anticlockwise"===w?"conic-gradient(red, yellow, lime, aqua, blue, magenta, red)":"conic-gradient(red, magenta, blue, aqua, lime, yellow, red)",transform:"rotateZ(".concat(O+90,"deg)"),inset:0}}),(0,f.jsx)("div",{style:{position:"absolute",borderRadius:"50%",background:"radial-gradient(circle closest-side, #fff, transparent)",inset:0}}),(0,f.jsx)("div",{style:{backgroundColor:"#000",borderRadius:"50%",position:"absolute",inset:0,opacity:"number"===typeof C.v?1-C.v/100:0}})]}))}));h.displayName="Wheel";t.default=h;e.exports=t.default},8213:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getHandleRange=i,t.getWheelDimensions=a,t.getWheelHandlePosition=function(e,t){var n=a(e),o=n.cx,u=n.cy,c=i(e),s=(180+l(e,t.h,!0))*(r/360),f=t.s/100*c,d="clockwise"===e.direction?-1:1;return{x:o+f*Math.cos(s)*d,y:u+f*Math.sin(s)*d}},t.getWheelValueFromInput=function(e,t,n){var u=a(e),c=u.cx,s=u.cy,f=i(e);t=c-t,n=s-n;var d=l(e,Math.atan2(-n,-t)*(360/r)),h=Math.min(o(t,n),f);return{h:Math.round(d),s:Math.round(100/f*h)}},t.isInputInsideWheel=function(e,t,r){var n=a(e),i=n.cx,l=n.cy,u=n.width/2;return o(i-t,l-r){var n=r(6784).default,o=r(147).default;Object.defineProperty(t,"__esModule",{value:!0});var a={};t.default=void 0;var i=n(r(6651)),l=n(r(8821)),u=n(r(453)),c=o(r(7804)),s=r(1974);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(a,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var f=r(9424),d=["prefixCls","className","onMove","onDown"],h=c.default.forwardRef((function(e,t){var r=e.prefixCls,n=void 0===r?"w-color-interactive":r,o=e.className,a=e.onMove,h=e.onDown,p=(0,u.default)(e,d),v=(0,c.useRef)(null),y=(0,c.useRef)(!1),m=(0,c.useState)(!1),b=(0,l.default)(m,2),g=b[0],_=b[1],w=(0,s.useEventCallback)(a),j=(0,s.useEventCallback)(h),O=(0,c.useCallback)((function(e){(0,s.preventDefaultMove)(e),((0,s.isTouch)(e)?e.touches.length>0:e.buttons>0)&&v.current?w&&w((0,s.getRelativePosition)(v.current,e),e):_(!1)}),[w]),S=(0,c.useCallback)((function(){return _(!1)}),[]),P=(0,c.useCallback)((function(e){var t=e?window.addEventListener:window.removeEventListener;t(y.current?"touchmove":"mousemove",O),t(y.current?"touchend":"mouseup",S)}),[]);(0,c.useEffect)((function(){return P(g),function(){g&&P(!1)}}),[g,P]);var x=(0,c.useCallback)((function(e){(0,s.preventDefaultMove)(e.nativeEvent),function(e){return!(y.current&&!(0,s.isTouch)(e))&&(y.current=(0,s.isTouch)(e),!0)}(e.nativeEvent)&&(j&&j((0,s.getRelativePosition)(v.current,e.nativeEvent),e.nativeEvent),_(!0))}),[j]);return(0,f.jsx)("div",(0,i.default)((0,i.default)({},p),{},{className:[n,o||""].filter(Boolean).join(" "),style:(0,i.default)((0,i.default)({},p.style),{},{touchAction:"none"}),ref:v,tabIndex:0,onMouseDown:x,onTouchStart:x}))}));h.displayName="Interactive";t.default=h},1974:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.preventDefaultMove=t.isTouch=t.getRelativePosition=t.clamp=void 0,t.useEventCallback=function(e){var t=(0,n.useRef)(e);return(0,n.useEffect)((function(){t.current=e})),(0,n.useCallback)((function(e,r){return t.current&&t.current(e,r)}),[])};var n=r(7804);var o=t.isTouch=function(e){return"touches"in e},a=(t.preventDefaultMove=function(e){!o(e)&&e.preventDefault&&e.preventDefault()},t.clamp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e>r?r:e{r.r(t),r.d(t,{default:()=>n});const n={components:{21:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,n=function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=e(t)&&"function"!=typeof t)return{default:t};var n=i(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&{}.hasOwnProperty.call(t,l)){var u=a?Object.getOwnPropertyDescriptor(t,l):null;u&&(u.get||u.set)?Object.defineProperty(o,l,u):o[l]=t[l]}return o.default=t,n&&n.set(t,o),o}(r(7804)),o=(t=r(7468))&&t.__esModule?t:{default:t},a=r(7604);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction Demo() {\n var _useState = (0, _react.useState)({\n h: 214,\n s: 43,\n v: 90,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement(_reactColorWheel["default"], {\n color: hsva,\n onChange: function onChange(color) {\n return setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\n }\n }), /*#__PURE__*/_react["default"].createElement("div", {\n style: {\n width: \'100%\',\n height: 34,\n marginTop: 20,\n background: (0, _colorConvert.hsvaToHex)(hsva)\n }\n }));\n}\nreturn Demo;',language:"tsx",value:"import React, { useState, Fragment } from 'react';\nimport Wheel from '@uiw/react-color-wheel';\nimport { hsvaToHex } from '@uiw/color-convert';\n\nfunction Demo() {\n const [hsva, setHsva] = useState({ h: 214, s: 43, v: 90, a: 1 });\n return (\n \n setHsva({ ...hsva, ...color.hsva })} />\n
\n
\n );\n}\n\nexport default Demo;"},39:{name:39,meta:{},code:'"use strict";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require("react"));\nvar _reactColorWheel = _interopRequireDefault(require("@uiw/react-color-wheel"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }\nfunction _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction Demo() {\n var _useState = (0, _react.useState)({\n h: 214,\n s: 43,\n v: 90,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement("div", {\n style: {\n display: \'grid\',\n gap: 20,\n gridTemplateColumns: \'repeat(auto-fill, minmax(200px, 1fr))\'\n }\n }, /*#__PURE__*/_react["default"].createElement(_reactColorWheel["default"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 100\n }\n }), /*#__PURE__*/_react["default"].createElement(_reactColorWheel["default"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 90\n }\n }), /*#__PURE__*/_react["default"].createElement(_reactColorWheel["default"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 80\n }\n }), /*#__PURE__*/_react["default"].createElement(_reactColorWheel["default"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 70\n }\n }), /*#__PURE__*/_react["default"].createElement(_reactColorWheel["default"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 50\n }\n }), /*#__PURE__*/_react["default"].createElement(_reactColorWheel["default"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 40\n }\n }), /*#__PURE__*/_react["default"].createElement(_reactColorWheel["default"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 40\n },\n width: 100,\n height: 100\n }), /*#__PURE__*/_react["default"].createElement(_reactColorWheel["default"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 30\n },\n width: 100,\n height: 100\n }), /*#__PURE__*/_react["default"].createElement(_reactColorWheel["default"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 20\n },\n width: 100,\n height: 100\n }), /*#__PURE__*/_react["default"].createElement(_reactColorWheel["default"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 10\n },\n width: 100,\n height: 100\n }));\n}\nreturn Demo;',language:"tsx",value:"import React, { useState } from 'react';\nimport Wheel from '@uiw/react-color-wheel';\nimport { hsvaToHex } from '@uiw/color-convert';\n\nfunction Demo() {\n const [hsva, setHsva] = useState({ h: 214, s: 43, v: 90, a: 1 });\n return (\n
\n \n \n \n \n \n \n \n \n \n \n
\n );\n}\n\nexport default Demo;"},65:{name:65,meta:{},code:'"use strict";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require("react"));\nvar _reactColorWheel = _interopRequireDefault(require("@uiw/react-color-wheel"));\nvar _reactColorShadeSlider = _interopRequireDefault(require("@uiw/react-color-shade-slider"));\nvar _colorConvert = require("@uiw/color-convert");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }\nfunction _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }\nfunction _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); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction Demo() {\n var _useState = (0, _react.useState)({\n h: 214,\n s: 43,\n v: 90,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement(_reactColorWheel["default"], {\n color: hsva,\n onChange: function onChange(color) {\n return setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\n }\n }), /*#__PURE__*/_react["default"].createElement(_reactColorShadeSlider["default"], {\n hsva: hsva,\n style: {\n width: 210,\n marginTop: 20\n },\n onChange: function onChange(newShade) {\n setHsva(_objectSpread(_objectSpread({}, hsva), newShade));\n }\n }), /*#__PURE__*/_react["default"].createElement("div", {\n style: {\n width: \'100%\',\n height: 34,\n marginTop: 20,\n background: (0, _colorConvert.hsvaToHex)(hsva)\n }\n }));\n}\nreturn Demo;',language:"tsx",value:"import React, { useState, Fragment } from 'react';\nimport Wheel from '@uiw/react-color-wheel';\nimport ShadeSlider from '@uiw/react-color-shade-slider';\nimport { hsvaToHex } from '@uiw/color-convert';\n\nfunction Demo() {\n const [hsva, setHsva] = useState({ h: 214, s: 43, v: 90, a: 1 });\n return (\n \n setHsva({ ...hsva, ...color.hsva })} />\n {\n setHsva({ ...hsva, ...newShade });\n }}\n />\n
\n
\n );\n}\n\nexport default Demo;"}},source:"React Color Wheel\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-wheel)](https://bundlephobia.com/package/@uiw/react-color-wheel) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-wheel.svg)](https://www.npmjs.com/package/@uiw/react-color-wheel) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-wheel/file/README.md)\n\nWheel Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\n\n\x3c!--rehype:ignore:start--\x3e\n[![react-color-wheel](https://user-images.githubusercontent.com/1680273/125949147-ab96c3d8-1490-4418-b2cf-3f347993bdcb.png)](https://uiwjs.github.io/react-color/#/wheel)\n\x3c!--rehype:ignore:end--\x3e\n\n## Install\n\n```bash\nnpm i @uiw/react-color-wheel\n```\n\n## Usage\n\n```tsx mdx:preview\nimport React, { useState, Fragment } from 'react';\nimport Wheel from '@uiw/react-color-wheel';\nimport { hsvaToHex } from '@uiw/color-convert';\n\nfunction Demo() {\n const [hsva, setHsva] = useState({ h: 214, s: 43, v: 90, a: 1 });\n return (\n \n setHsva({ ...hsva, ...color.hsva })} />\n
\n
\n );\n}\n\nexport default Demo;\n```\n\n```tsx mdx:preview\nimport React, { useState } from 'react';\nimport Wheel from '@uiw/react-color-wheel';\nimport { hsvaToHex } from '@uiw/color-convert';\n\nfunction Demo() {\n const [hsva, setHsva] = useState({ h: 214, s: 43, v: 90, a: 1 });\n return (\n
\n \n \n \n \n \n \n \n \n \n \n
\n );\n}\n\nexport default Demo;\n```\n\n```tsx mdx:preview\nimport React, { useState, Fragment } from 'react';\nimport Wheel from '@uiw/react-color-wheel';\nimport ShadeSlider from '@uiw/react-color-shade-slider';\nimport { hsvaToHex } from '@uiw/color-convert';\n\nfunction Demo() {\n const [hsva, setHsva] = useState({ h: 214, s: 43, v: 90, a: 1 });\n return (\n \n setHsva({ ...hsva, ...color.hsva })} />\n {\n setHsva({ ...hsva, ...newShade });\n }}\n />\n
\n
\n );\n}\n\nexport default Demo;\n```\n\n\n## Props\n\n```ts\nimport React from 'react';\nimport { HsvaColor, ColorResult } from '@uiw/color-convert';\nimport { PointerProps } from './Pointer';\nexport interface WheelProps extends Omit, 'onChange' | 'color'> {\n prefixCls?: string;\n color?: string | HsvaColor;\n width?: number;\n height?: number;\n radius?: React.CSSProperties['borderRadius'];\n /** Direction of the oval: 'x' or 'y'. */ \n oval?: string;\n /** Starting angle of the color wheel's hue gradient, measured in degrees. */\n angle?: number;\n /** Direction of the color wheel's hue gradient; either clockwise or anticlockwise. Default: `anticlockwise` */\n direction?: 'clockwise' | 'anticlockwise';\n pointer?: ({ prefixCls, left, top, color }: PointerProps) => JSX.Element;\n onChange?: (color: ColorResult) => void;\n}\ndeclare const Wheel: React.ForwardRefExoticComponent>;\nexport default Wheel;\n```\n\n\x3c!--footer-dividing--\x3e\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=108.141581b3.chunk.js.map \ No newline at end of file diff --git a/static/js/108.141581b3.chunk.js.map b/static/js/108.141581b3.chunk.js.map new file mode 100644 index 000000000..352700622 --- /dev/null +++ b/static/js/108.141581b3.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/108.141581b3.chunk.js","mappings":"iGAEA,IAAIA,EAAyBC,EAAAA,MAAAA,QAC7BC,OAAOC,eAAeC,EAAS,aAAc,CAC3CC,OAAO,IAETD,EAAQE,aAAU,EAClB,IAAIC,EAAiBP,EAAuBC,EAAQ,OAChDO,EAA4BR,EAAuBC,EAAQ,MAE3DQ,GADST,EAAuBC,EAAQ,OAC1BA,EAAQ,OACtBS,EAAY,CAAC,YAAa,YAAa,OAAQ,MAAO,QAAS,aACrDN,EAAQE,QAAU,SAAiBK,GAC/C,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKE,UACjBC,EAAOH,EAAKG,KACZC,EAAMJ,EAAKI,IACXC,EAAQL,EAAKK,MACbC,EAAYN,EAAKM,UACjBC,GAAQ,EAAIV,EAAmC,SAAGG,EAAMD,GACtDS,GAAe,EAAIZ,EAAwB,UAAG,EAAIA,EAAwB,SAAG,CAAC,EAAGS,GAAQ,CAAC,EAAG,CAC/FI,SAAU,WACVN,KAAMA,EACNC,IAAKA,IAEHM,GAAe,EAAId,EAAwB,UAAG,EAAIA,EAAwB,SAAG,CAC/Ee,MAAO,GACPC,OAAQ,GACRC,UAAW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soJACRC,SAAS,GACTC,aAAa,G","sources":["../../packages/color-alpha/cjs/Pointer.js","../../packages/color-alpha/cjs/index.js","../../packages/color-shade-slider/cjs/index.js","../../packages/color-wheel/cjs/Pointer.js","../../packages/color-wheel/cjs/index.js","../../packages/color-wheel/cjs/utils.js","../../packages/drag-event-interactive/cjs/index.js","../../packages/drag-event-interactive/cjs/utils.js","../../packages/color-wheel/README.md"],"sourcesContent":["\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Pointer = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"className\", \"prefixCls\", \"left\", \"top\", \"style\", \"fillProps\"];\nvar Pointer = exports.Pointer = function Pointer(_ref) {\n var className = _ref.className,\n prefixCls = _ref.prefixCls,\n left = _ref.left,\n top = _ref.top,\n style = _ref.style,\n fillProps = _ref.fillProps,\n reset = (0, _objectWithoutProperties2[\"default\"])(_ref, _excluded);\n var styleWrapper = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, style), {}, {\n position: 'absolute',\n left: left,\n top: top\n });\n var stylePointer = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n width: 18,\n height: 18,\n boxShadow: 'var(--alpha-pointer-box-shadow)',\n borderRadius: '50%',\n backgroundColor: 'var(--alpha-pointer-background-color)'\n }, fillProps === null || fillProps === void 0 ? void 0 : fillProps.style), {}, {\n transform: left ? 'translate(-9px, -1px)' : 'translate(-1px, -9px)'\n });\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n className: \"\".concat(prefixCls, \"-pointer \").concat(className || ''),\n style: styleWrapper\n }, reset), {}, {\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n className: \"\".concat(prefixCls, \"-fill\")\n }, fillProps), {}, {\n style: stylePointer\n }))\n }));\n};","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _exportNames = {\n BACKGROUND_IMG: true\n};\nexports[\"default\"] = exports.BACKGROUND_IMG = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactDragEventInteractive = _interopRequireDefault(require(\"@uiw/react-drag-event-interactive\"));\nvar _Pointer = require(\"./Pointer\");\nObject.keys(_Pointer).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _Pointer[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _Pointer[key];\n }\n });\n});\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"className\", \"hsva\", \"background\", \"bgProps\", \"innerProps\", \"pointerProps\", \"radius\", \"width\", \"height\", \"direction\", \"style\", \"onChange\", \"pointer\"];\nvar BACKGROUND_IMG = exports.BACKGROUND_IMG = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==';\nvar Alpha = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-alpha' : _props$prefixCls,\n className = props.className,\n hsva = props.hsva,\n background = props.background,\n _props$bgProps = props.bgProps,\n bgProps = _props$bgProps === void 0 ? {} : _props$bgProps,\n _props$innerProps = props.innerProps,\n innerProps = _props$innerProps === void 0 ? {} : _props$innerProps,\n _props$pointerProps = props.pointerProps,\n pointerProps = _props$pointerProps === void 0 ? {} : _props$pointerProps,\n _props$radius = props.radius,\n radius = _props$radius === void 0 ? 0 : _props$radius,\n width = props.width,\n _props$height = props.height,\n height = _props$height === void 0 ? 16 : _props$height,\n _props$direction = props.direction,\n direction = _props$direction === void 0 ? 'horizontal' : _props$direction,\n style = props.style,\n onChange = props.onChange,\n pointer = props.pointer,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var handleChange = function handleChange(offset) {\n onChange && onChange((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, hsva), {}, {\n a: direction === 'horizontal' ? offset.left : offset.top\n }), offset);\n };\n var colorTo = (0, _colorConvert.hsvaToHslaString)(Object.assign({}, hsva, {\n a: 1\n }));\n var innerBackground = \"linear-gradient(to \".concat(direction === 'horizontal' ? 'right' : 'bottom', \", rgba(244, 67, 54, 0) 0%, \").concat(colorTo, \" 100%)\");\n var comProps = {};\n if (direction === 'horizontal') {\n comProps.left = \"\".concat(hsva.a * 100, \"%\");\n } else {\n comProps.top = \"\".concat(hsva.a * 100, \"%\");\n }\n var styleWrapper = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n '--alpha-background-color': '#fff',\n '--alpha-pointer-background-color': 'rgb(248, 248, 248)',\n '--alpha-pointer-box-shadow': 'rgb(0 0 0 / 37%) 0px 1px 4px 0px',\n borderRadius: radius,\n background: \"url(\".concat(BACKGROUND_IMG, \") left center\"),\n backgroundColor: 'var(--alpha-background-color)'\n }, {\n width: width,\n height: height\n }), style), {}, {\n position: 'relative'\n });\n var pointerElement = pointer && typeof pointer === 'function' ? pointer((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n prefixCls: prefixCls\n }, pointerProps), comProps)) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Pointer.Pointer, (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, pointerProps), {}, {\n prefixCls: prefixCls\n }, comProps));\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, other), {}, {\n className: [prefixCls, \"\".concat(prefixCls, \"-\").concat(direction), className || ''].filter(Boolean).join(' '),\n style: styleWrapper,\n ref: ref,\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, bgProps), {}, {\n style: (0, _objectSpread2[\"default\"])({\n inset: 0,\n position: 'absolute',\n background: background || innerBackground,\n borderRadius: radius\n }, bgProps.style)\n })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactDragEventInteractive[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, innerProps), {}, {\n style: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, innerProps.style), {}, {\n inset: 0,\n zIndex: 1,\n position: 'absolute'\n }),\n onMove: handleChange,\n onDown: handleChange,\n children: pointerElement\n }))]\n }));\n});\nAlpha.displayName = 'Alpha';\nvar _default = exports[\"default\"] = Alpha;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactColorAlpha = _interopRequireDefault(require(\"@uiw/react-color-alpha\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"className\", \"onChange\", \"direction\", \"hsva\"];\nvar ShadeSlider = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-saturation' : _props$prefixCls,\n className = props.className,\n _onChange = props.onChange,\n _props$direction = props.direction,\n direction = _props$direction === void 0 ? 'horizontal' : _props$direction,\n hsva = props.hsva,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var colorFrom = (0, _colorConvert.hsvaToHslaString)((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, hsva), {}, {\n a: 1,\n v: 100\n }));\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorAlpha[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n ref: ref\n }, other), {}, {\n className: \"\".concat(prefixCls, \" \").concat(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 \".concat(direction === 'horizontal' ? 'right' : 'bottom', \", \").concat(colorFrom, \", rgb(0, 0, 0))\"),\n onChange: function onChange(_, interaction) {\n _onChange && _onChange({\n v: direction === 'horizontal' ? 100 - interaction.left * 100 : 100 - interaction.top * 100\n });\n }\n }));\n});\nShadeSlider.displayName = 'ShadeSlider';\nvar _default = exports[\"default\"] = ShadeSlider;\nmodule.exports = exports.default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Pointer = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _jsxRuntime = require(\"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';\nvar Pointer = exports.Pointer = function Pointer(_ref) {\n var className = _ref.className,\n color = _ref.color,\n left = _ref.left,\n top = _ref.top,\n style = _ref.style,\n prefixCls = _ref.prefixCls;\n var styleWarp = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, style), {}, {\n position: 'absolute',\n top: top,\n left: left\n });\n var cls = \"\".concat(prefixCls, \"-pointer \").concat(className || '');\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", {\n className: cls,\n style: styleWarp,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", {\n className: \"\".concat(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__*/(0, _jsxRuntime.jsx)(\"div\", {\n style: {\n inset: 0,\n borderRadius: '50%',\n position: 'absolute',\n backgroundColor: color\n }\n })\n })\n });\n};","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactDragEventInteractive = _interopRequireDefault(require(\"@uiw/react-drag-event-interactive\"));\nvar _Pointer = require(\"./Pointer\");\nvar _utils = require(\"./utils\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"radius\", \"pointer\", \"className\", \"style\", \"width\", \"height\", \"oval\", \"direction\", \"angle\", \"color\", \"onChange\"];\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[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-wheel' : _props$prefixCls,\n _props$radius = props.radius,\n radius = _props$radius === void 0 ? 0 : _props$radius,\n pointer = props.pointer,\n className = props.className,\n style = props.style,\n _props$width = props.width,\n width = _props$width === void 0 ? 200 : _props$width,\n _props$height = props.height,\n height = _props$height === void 0 ? 200 : _props$height,\n oval = props.oval,\n _props$direction = props.direction,\n direction = _props$direction === void 0 ? 'anticlockwise' : _props$direction,\n _props$angle = props.angle,\n angle = _props$angle === void 0 ? 180 : _props$angle,\n color = props.color,\n onChange = props.onChange,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var hsva = typeof color === 'string' && (0, _colorConvert.validHex)(color) ? (0, _colorConvert.hexToHsva)(color) : color || {};\n var hex = color ? (0, _colorConvert.hsvaToHex)(hsva) : '';\n var positions = (0, _utils.getWheelHandlePosition)({\n width: width\n }, hsva);\n var comProps = {\n top: '0',\n left: '0',\n color: hex\n };\n var handleChange = function handleChange(interaction, event) {\n var result = (0, _utils.getWheelValueFromInput)({\n width: 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((0, _colorConvert.color)(handleHsva));\n };\n var pointerStyle = {\n zIndex: 1,\n transform: \"translate(\".concat(positions.x, \"px, \").concat(positions.y, \"px) \").concat(oval === 'x' || oval === 'X' ? 'scaleY(2)' : oval === 'y' || oval === 'Y' ? 'scaleX(2)' : '')\n };\n var pointerElement = pointer && typeof pointer === 'function' ? pointer((0, _objectSpread2[\"default\"])({\n prefixCls: prefixCls,\n style: pointerStyle\n }, comProps)) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Pointer.Pointer, (0, _objectSpread2[\"default\"])({\n prefixCls: prefixCls,\n style: pointerStyle\n }, comProps));\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactDragEventInteractive[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other), {}, {\n style: (0, _objectSpread2[\"default\"])({\n position: 'relative',\n width: width,\n transform: oval === 'x' || oval === 'X' ? 'scaleY(0.5)' : oval === 'y' || oval === 'Y' ? 'scaleX(0.5)' : '',\n height: height\n }, style),\n ref: ref,\n onMove: handleChange,\n onDown: handleChange,\n children: [pointerElement, /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", {\n style: {\n position: 'absolute',\n borderRadius: '50%',\n background: direction === 'anticlockwise' ? HUE_GRADIENT_CLOCKWISE : HUE_GRADIENT_ANTICLOCKWISE,\n transform: \"rotateZ(\".concat(angle + 90, \"deg)\"),\n inset: 0\n }\n }), /*#__PURE__*/(0, _jsxRuntime.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__*/(0, _jsxRuntime.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';\nvar _default = exports[\"default\"] = Wheel;\nmodule.exports = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getHandleRange = getHandleRange;\nexports.getWheelDimensions = getWheelDimensions;\nexports.getWheelHandlePosition = getWheelHandlePosition;\nexports.getWheelValueFromInput = getWheelValueFromInput;\nexports.isInputInsideWheel = isInputInsideWheel;\nexports.mod = void 0;\nexports.translateWheelAngle = translateWheelAngle;\nvar 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 */\nvar mod = exports.mod = function mod(a, n) {\n return (a % n + n) % n;\n};\n\n/** distance between points (x, y) and (0, 0) */\nvar dist = function dist(x, y) {\n return Math.sqrt(x * x + y * y);\n};\n\n/**\n * Get the point as the center of the wheel\n */\nfunction getWheelDimensions(_ref) {\n var _ref$width = _ref.width,\n width = _ref$width === void 0 ? 0 : _ref$width;\n var r = width / 2;\n return {\n width: 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 */\nfunction isInputInsideWheel(props, x, y) {\n var _getWheelDimensions = getWheelDimensions(props),\n cx = _getWheelDimensions.cx,\n cy = _getWheelDimensions.cy,\n width = _getWheelDimensions.width;\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 */\nfunction getWheelHandlePosition(props, hsv) {\n var _getWheelDimensions2 = getWheelDimensions(props),\n cx = _getWheelDimensions2.cx,\n cy = _getWheelDimensions2.cy;\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 */\nfunction getHandleRange(_ref2) {\n var _ref2$width = _ref2.width,\n width = _ref2$width === void 0 ? 0 : _ref2$width;\n return width / 2;\n}\n\n/**\n * Translate an angle according to wheelAngle and wheelDirection\n */\nfunction 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 */\nfunction getWheelValueFromInput(props, x, y) {\n var _getWheelDimensions3 = getWheelDimensions(props),\n cx = _getWheelDimensions3.cx,\n cy = _getWheelDimensions3.cy;\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}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _exportNames = {};\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _slicedToArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/slicedToArray\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _utils = require(\"./utils\");\nObject.keys(_utils).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _utils[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _utils[key];\n }\n });\n});\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"className\", \"onMove\", \"onDown\"];\nvar Interactive = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-interactive' : _props$prefixCls,\n className = props.className,\n onMove = props.onMove,\n onDown = props.onDown,\n reset = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var container = (0, _react.useRef)(null);\n var hasTouched = (0, _react.useRef)(false);\n var _useState = (0, _react.useState)(false),\n _useState2 = (0, _slicedToArray2[\"default\"])(_useState, 2),\n isDragging = _useState2[0],\n setDragging = _useState2[1];\n var onMoveCallback = (0, _utils.useEventCallback)(onMove);\n var onKeyCallback = (0, _utils.useEventCallback)(onDown);\n\n // Prevent mobile browsers from handling mouse events (conflicting with touch ones).\n // If we detected a touch interaction before, we prefer reacting to touch events only.\n var isValid = function isValid(event) {\n if (hasTouched.current && !(0, _utils.isTouch)(event)) return false;\n hasTouched.current = (0, _utils.isTouch)(event);\n return true;\n };\n var handleMove = (0, _react.useCallback)(function (event) {\n (0, _utils.preventDefaultMove)(event);\n // If user moves the pointer outside of the window or iframe bounds and release it there,\n // `mouseup`/`touchend` won't be fired. In order to stop the picker from following the cursor\n // after the user has moved the mouse/finger back to the document, we check `event.buttons`\n // and `event.touches`. It allows us to detect that the user is just moving his pointer\n // without pressing it down\n var isDown = (0, _utils.isTouch)(event) ? event.touches.length > 0 : event.buttons > 0;\n if (isDown && container.current) {\n onMoveCallback && onMoveCallback((0, _utils.getRelativePosition)(container.current, event), event);\n } else {\n setDragging(false);\n }\n }, [onMoveCallback]);\n var handleMoveEnd = (0, _react.useCallback)(function () {\n return setDragging(false);\n }, []);\n var toggleDocumentEvents = (0, _react.useCallback)(function (state) {\n var toggleEvent = state ? window.addEventListener : window.removeEventListener;\n toggleEvent(hasTouched.current ? 'touchmove' : 'mousemove', handleMove);\n toggleEvent(hasTouched.current ? 'touchend' : 'mouseup', handleMoveEnd);\n }, []);\n (0, _react.useEffect)(function () {\n toggleDocumentEvents(isDragging);\n return function () {\n isDragging && toggleDocumentEvents(false);\n };\n }, [isDragging, toggleDocumentEvents]);\n var handleMoveStart = (0, _react.useCallback)(function (event) {\n (0, _utils.preventDefaultMove)(event.nativeEvent);\n if (!isValid(event.nativeEvent)) return;\n onKeyCallback && onKeyCallback((0, _utils.getRelativePosition)(container.current, event.nativeEvent), event.nativeEvent);\n setDragging(true);\n }, [onKeyCallback]);\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, reset), {}, {\n className: [prefixCls, className || ''].filter(Boolean).join(' '),\n style: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, reset.style), {}, {\n touchAction: 'none'\n }),\n ref: container,\n tabIndex: 0,\n onMouseDown: handleMoveStart,\n onTouchStart: handleMoveStart\n }));\n});\nInteractive.displayName = 'Interactive';\nvar _default = exports[\"default\"] = Interactive;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.preventDefaultMove = exports.isTouch = exports.getRelativePosition = exports.clamp = void 0;\nexports.useEventCallback = useEventCallback;\nvar _react = require(\"react\");\n// Saves incoming handler to the ref in order to avoid \"useCallback hell\"\nfunction useEventCallback(handler) {\n var callbackRef = (0, _react.useRef)(handler);\n (0, _react.useEffect)(function () {\n callbackRef.current = handler;\n });\n return (0, _react.useCallback)(function (value, event) {\n return callbackRef.current && callbackRef.current(value, event);\n }, []);\n}\n\n// Check if an event was triggered by touch\nvar isTouch = exports.isTouch = function isTouch(event) {\n return 'touches' in event;\n};\n\n// Browsers introduced an intervention, making touch events passive by default.\n// This workaround removes `preventDefault` call from the touch handlers.\n// https://github.com/facebook/react/issues/19651\nvar preventDefaultMove = exports.preventDefaultMove = function preventDefaultMove(event) {\n !isTouch(event) && event.preventDefault && event.preventDefault();\n};\n// Clamps a value between an upper and lower bound.\n// We use ternary operators because it makes the minified code\n// 2 times shorter then `Math.min(Math.max(a,b),c)`\nvar clamp = exports.clamp = function clamp(number) {\n var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n return number > max ? max : number < min ? min : number;\n};\n// Returns a relative position of the pointer inside the node's bounding box\nvar getRelativePosition = exports.getRelativePosition = function getRelativePosition(node, event) {\n var rect = node.getBoundingClientRect();\n\n // Get user's pointer position from `touches` array if it's a `TouchEvent`\n var pointer = isTouch(event) ? event.touches[0] : event;\n return {\n left: clamp((pointer.pageX - (rect.left + window.pageXOffset)) / rect.width),\n top: clamp((pointer.pageY - (rect.top + window.pageYOffset)) / rect.height),\n width: rect.width,\n height: rect.height,\n x: pointer.pageX - (rect.left + window.pageXOffset),\n y: pointer.pageY - (rect.top + window.pageYOffset)\n };\n};","\nexport default {\n components: { 21: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactColorWheel = _interopRequireDefault(require(\"@uiw/react-color-wheel\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _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); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction Demo() {\n var _useState = (0, _react.useState)({\n h: 214,\n s: 43,\n v: 90,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(_react.Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(_reactColorWheel[\"default\"], {\n color: hsva,\n onChange: function onChange(color) {\n return setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n width: '100%',\n height: 34,\n marginTop: 20,\n background: (0, _colorConvert.hsvaToHex)(hsva)\n }\n }));\n}\nreturn Demo; })(),39: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactColorWheel = _interopRequireDefault(require(\"@uiw/react-color-wheel\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction Demo() {\n var _useState = (0, _react.useState)({\n h: 214,\n s: 43,\n v: 90,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n display: 'grid',\n gap: 20,\n gridTemplateColumns: 'repeat(auto-fill, minmax(200px, 1fr))'\n }\n }, /*#__PURE__*/_react[\"default\"].createElement(_reactColorWheel[\"default\"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 100\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactColorWheel[\"default\"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 90\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactColorWheel[\"default\"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 80\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactColorWheel[\"default\"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 70\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactColorWheel[\"default\"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 50\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactColorWheel[\"default\"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 40\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactColorWheel[\"default\"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 40\n },\n width: 100,\n height: 100\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactColorWheel[\"default\"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 30\n },\n width: 100,\n height: 100\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactColorWheel[\"default\"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 20\n },\n width: 100,\n height: 100\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactColorWheel[\"default\"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 10\n },\n width: 100,\n height: 100\n }));\n}\nreturn Demo; })(),65: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactColorWheel = _interopRequireDefault(require(\"@uiw/react-color-wheel\"));\nvar _reactColorShadeSlider = _interopRequireDefault(require(\"@uiw/react-color-shade-slider\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _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); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction Demo() {\n var _useState = (0, _react.useState)({\n h: 214,\n s: 43,\n v: 90,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(_react.Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(_reactColorWheel[\"default\"], {\n color: hsva,\n onChange: function onChange(color) {\n return setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactColorShadeSlider[\"default\"], {\n hsva: hsva,\n style: {\n width: 210,\n marginTop: 20\n },\n onChange: function onChange(newShade) {\n setHsva(_objectSpread(_objectSpread({}, hsva), newShade));\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n width: '100%',\n height: 34,\n marginTop: 20,\n background: (0, _colorConvert.hsvaToHex)(hsva)\n }\n }));\n}\nreturn Demo; })(), },\n data: {\n \"21\": {\n \"name\": 21,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactColorWheel = _interopRequireDefault(require(\\\"@uiw/react-color-wheel\\\"));\\nvar _colorConvert = require(\\\"@uiw/color-convert\\\");\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \\\"string\\\"); return \\\"symbol\\\" == _typeof(i) ? i : i + \\\"\\\"; }\\nfunction _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); }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nfunction Demo() {\\n var _useState = (0, _react.useState)({\\n h: 214,\\n s: 43,\\n v: 90,\\n a: 1\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n hsva = _useState2[0],\\n setHsva = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_react.Fragment, null, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorWheel[\\\"default\\\"], {\\n color: hsva,\\n onChange: function onChange(color) {\\n return setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: {\\n width: '100%',\\n height: 34,\\n marginTop: 20,\\n background: (0, _colorConvert.hsvaToHex)(hsva)\\n }\\n }));\\n}\\nreturn Demo;\",\n \"language\": \"tsx\",\n \"value\": \"import React, { useState, Fragment } from 'react';\\nimport Wheel from '@uiw/react-color-wheel';\\nimport { hsvaToHex } from '@uiw/color-convert';\\n\\nfunction Demo() {\\n const [hsva, setHsva] = useState({ h: 214, s: 43, v: 90, a: 1 });\\n return (\\n \\n setHsva({ ...hsva, ...color.hsva })} />\\n
\\n
\\n );\\n}\\n\\nexport default Demo;\"\n },\n \"39\": {\n \"name\": 39,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactColorWheel = _interopRequireDefault(require(\\\"@uiw/react-color-wheel\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nfunction Demo() {\\n var _useState = (0, _react.useState)({\\n h: 214,\\n s: 43,\\n v: 90,\\n a: 1\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n hsva = _useState2[0],\\n setHsva = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: {\\n display: 'grid',\\n gap: 20,\\n gridTemplateColumns: 'repeat(auto-fill, minmax(200px, 1fr))'\\n }\\n }, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorWheel[\\\"default\\\"], {\\n color: {\\n a: 1,\\n h: 214,\\n s: 0,\\n v: 100\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorWheel[\\\"default\\\"], {\\n color: {\\n a: 1,\\n h: 214,\\n s: 0,\\n v: 90\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorWheel[\\\"default\\\"], {\\n color: {\\n a: 1,\\n h: 214,\\n s: 0,\\n v: 80\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorWheel[\\\"default\\\"], {\\n color: {\\n a: 1,\\n h: 214,\\n s: 0,\\n v: 70\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorWheel[\\\"default\\\"], {\\n color: {\\n a: 1,\\n h: 214,\\n s: 0,\\n v: 50\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorWheel[\\\"default\\\"], {\\n color: {\\n a: 1,\\n h: 214,\\n s: 0,\\n v: 40\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorWheel[\\\"default\\\"], {\\n color: {\\n a: 1,\\n h: 214,\\n s: 0,\\n v: 40\\n },\\n width: 100,\\n height: 100\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorWheel[\\\"default\\\"], {\\n color: {\\n a: 1,\\n h: 214,\\n s: 0,\\n v: 30\\n },\\n width: 100,\\n height: 100\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorWheel[\\\"default\\\"], {\\n color: {\\n a: 1,\\n h: 214,\\n s: 0,\\n v: 20\\n },\\n width: 100,\\n height: 100\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorWheel[\\\"default\\\"], {\\n color: {\\n a: 1,\\n h: 214,\\n s: 0,\\n v: 10\\n },\\n width: 100,\\n height: 100\\n }));\\n}\\nreturn Demo;\",\n \"language\": \"tsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport Wheel from '@uiw/react-color-wheel';\\nimport { hsvaToHex } from '@uiw/color-convert';\\n\\nfunction Demo() {\\n const [hsva, setHsva] = useState({ h: 214, s: 43, v: 90, a: 1 });\\n return (\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n );\\n}\\n\\nexport default Demo;\"\n },\n \"65\": {\n \"name\": 65,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactColorWheel = _interopRequireDefault(require(\\\"@uiw/react-color-wheel\\\"));\\nvar _reactColorShadeSlider = _interopRequireDefault(require(\\\"@uiw/react-color-shade-slider\\\"));\\nvar _colorConvert = require(\\\"@uiw/color-convert\\\");\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \\\"string\\\"); return \\\"symbol\\\" == _typeof(i) ? i : i + \\\"\\\"; }\\nfunction _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); }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nfunction Demo() {\\n var _useState = (0, _react.useState)({\\n h: 214,\\n s: 43,\\n v: 90,\\n a: 1\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n hsva = _useState2[0],\\n setHsva = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_react.Fragment, null, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorWheel[\\\"default\\\"], {\\n color: hsva,\\n onChange: function onChange(color) {\\n return setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorShadeSlider[\\\"default\\\"], {\\n hsva: hsva,\\n style: {\\n width: 210,\\n marginTop: 20\\n },\\n onChange: function onChange(newShade) {\\n setHsva(_objectSpread(_objectSpread({}, hsva), newShade));\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: {\\n width: '100%',\\n height: 34,\\n marginTop: 20,\\n background: (0, _colorConvert.hsvaToHex)(hsva)\\n }\\n }));\\n}\\nreturn Demo;\",\n \"language\": \"tsx\",\n \"value\": \"import React, { useState, Fragment } from 'react';\\nimport Wheel from '@uiw/react-color-wheel';\\nimport ShadeSlider from '@uiw/react-color-shade-slider';\\nimport { hsvaToHex } from '@uiw/color-convert';\\n\\nfunction Demo() {\\n const [hsva, setHsva] = useState({ h: 214, s: 43, v: 90, a: 1 });\\n return (\\n \\n setHsva({ ...hsva, ...color.hsva })} />\\n {\\n setHsva({ ...hsva, ...newShade });\\n }}\\n />\\n
\\n
\\n );\\n}\\n\\nexport default Demo;\"\n }\n},\n source: \"React Color Wheel\\n===\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-wheel)](https://bundlephobia.com/package/@uiw/react-color-wheel) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-wheel.svg)](https://www.npmjs.com/package/@uiw/react-color-wheel) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-wheel/file/README.md)\\n\\nWheel Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\\n\\n\\n[![react-color-wheel](https://user-images.githubusercontent.com/1680273/125949147-ab96c3d8-1490-4418-b2cf-3f347993bdcb.png)](https://uiwjs.github.io/react-color/#/wheel)\\n\\n\\n## Install\\n\\n```bash\\nnpm i @uiw/react-color-wheel\\n```\\n\\n## Usage\\n\\n```tsx mdx:preview\\nimport React, { useState, Fragment } from 'react';\\nimport Wheel from '@uiw/react-color-wheel';\\nimport { hsvaToHex } from '@uiw/color-convert';\\n\\nfunction Demo() {\\n const [hsva, setHsva] = useState({ h: 214, s: 43, v: 90, a: 1 });\\n return (\\n \\n setHsva({ ...hsva, ...color.hsva })} />\\n
\\n
\\n );\\n}\\n\\nexport default Demo;\\n```\\n\\n```tsx mdx:preview\\nimport React, { useState } from 'react';\\nimport Wheel from '@uiw/react-color-wheel';\\nimport { hsvaToHex } from '@uiw/color-convert';\\n\\nfunction Demo() {\\n const [hsva, setHsva] = useState({ h: 214, s: 43, v: 90, a: 1 });\\n return (\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n );\\n}\\n\\nexport default Demo;\\n```\\n\\n```tsx mdx:preview\\nimport React, { useState, Fragment } from 'react';\\nimport Wheel from '@uiw/react-color-wheel';\\nimport ShadeSlider from '@uiw/react-color-shade-slider';\\nimport { hsvaToHex } from '@uiw/color-convert';\\n\\nfunction Demo() {\\n const [hsva, setHsva] = useState({ h: 214, s: 43, v: 90, a: 1 });\\n return (\\n \\n setHsva({ ...hsva, ...color.hsva })} />\\n {\\n setHsva({ ...hsva, ...newShade });\\n }}\\n />\\n
\\n
\\n );\\n}\\n\\nexport default Demo;\\n```\\n\\n\\n## Props\\n\\n```ts\\nimport React from 'react';\\nimport { HsvaColor, ColorResult } from '@uiw/color-convert';\\nimport { PointerProps } from './Pointer';\\nexport interface WheelProps extends Omit, 'onChange' | 'color'> {\\n prefixCls?: string;\\n color?: string | HsvaColor;\\n width?: number;\\n height?: number;\\n radius?: React.CSSProperties['borderRadius'];\\n /** Direction of the oval: 'x' or 'y'. */ \\n oval?: string;\\n /** Starting angle of the color wheel's hue gradient, measured in degrees. */\\n angle?: number;\\n /** Direction of the color wheel's hue gradient; either clockwise or anticlockwise. Default: `anticlockwise` */\\n direction?: 'clockwise' | 'anticlockwise';\\n pointer?: ({ prefixCls, left, top, color }: PointerProps) => JSX.Element;\\n onChange?: (color: ColorResult) => void;\\n}\\ndeclare const Wheel: React.ForwardRefExoticComponent>;\\nexport default Wheel;\\n```\\n\\n\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["_interopRequireDefault","require","Object","defineProperty","exports","value","Pointer","_objectSpread2","_objectWithoutProperties2","_jsxRuntime","_excluded","_ref","className","prefixCls","left","top","style","fillProps","reset","styleWrapper","position","stylePointer","width","height","boxShadow","borderRadius","backgroundColor","transform","jsx","concat","children","_exportNames","BACKGROUND_IMG","_react","_colorConvert","_reactDragEventInteractive","_Pointer","keys","forEach","key","prototype","hasOwnProperty","call","enumerable","get","Alpha","forwardRef","props","ref","_props$prefixCls","hsva","background","_props$bgProps","bgProps","_props$innerProps","innerProps","_props$pointerProps","pointerProps","_props$radius","radius","_props$height","_props$direction","direction","onChange","pointer","other","handleChange","offset","a","colorTo","hsvaToHslaString","assign","innerBackground","comProps","pointerElement","jsxs","filter","Boolean","join","inset","zIndex","onMove","onDown","displayName","_reactColorAlpha","ShadeSlider","_onChange","colorFrom","v","h","s","_","interaction","module","default","color","styleWarp","cls","_utils","Wheel","_props$width","oval","_props$angle","angle","validHex","hexToHsva","hex","hsvaToHex","positions","getWheelHandlePosition","event","result","getWheelValueFromInput","x","y","handleHsva","pointerStyle","opacity","getHandleRange","getWheelDimensions","hsv","_getWheelDimensions2","cx","cy","handleRange","handleAngle","translateWheelAngle","TAU","handleDist","Math","cos","sin","_getWheelDimensions3","hue","atan2","min","dist","round","isInputInsideWheel","_getWheelDimensions","r","mod","PI","n","sqrt","_ref$width","_ref2","_ref2$width","invert","wheelAngle","_interopRequireWildcard","_slicedToArray2","Interactive","container","useRef","hasTouched","_useState","useState","_useState2","isDragging","setDragging","onMoveCallback","useEventCallback","onKeyCallback","handleMove","useCallback","preventDefaultMove","isTouch","touches","length","buttons","current","getRelativePosition","handleMoveEnd","toggleDocumentEvents","state","toggleEvent","window","addEventListener","removeEventListener","useEffect","handleMoveStart","nativeEvent","isValid","touchAction","tabIndex","onMouseDown","onTouchStart","clamp","handler","callbackRef","preventDefault","number","arguments","undefined","max","node","rect","getBoundingClientRect","pageX","pageXOffset","pageY","pageYOffset","components","_typeof","o","Symbol","iterator","constructor","e","__esModule","t","_getRequireWildcardCache","has","__proto__","getOwnPropertyDescriptor","u","i","set","_reactColorWheel","WeakMap","ownKeys","getOwnPropertySymbols","push","apply","_objectSpread","_defineProperty","getOwnPropertyDescriptors","defineProperties","toPrimitive","TypeError","String","Number","_toPrimitive","_toPropertyKey","configurable","writable","_slicedToArray","Array","isArray","_arrayWithHoles","l","f","next","done","_iterableToArrayLimit","_arrayLikeToArray","toString","slice","name","from","test","_unsupportedIterableToArray","_nonIterableRest","setHsva","createElement","Fragment","marginTop","display","gap","gridTemplateColumns","_reactColorShadeSlider","newShade","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/108.a602ebc8.chunk.js b/static/js/108.a602ebc8.chunk.js deleted file mode 100644 index 759653965..000000000 --- a/static/js/108.a602ebc8.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[108],{9571:(e,t,r)=>{r.r(t),r.d(t,{default:()=>s});var n=r(8102),o=r(9257),a=r(7804),i=r(2945),l=r(1636),u=r(9424),c=["prefixCls","className","onChange","direction","hsva"],f=a.forwardRef(((e,t)=>{var{prefixCls:r="w-color-saturation",className:a,onChange:f,direction:s="horizontal",hsva:h}=e,p=(0,o.A)(e,c),d=(0,i.hsvaToHslaString)((0,n.A)({},h,{a:1,v:100}));return(0,u.jsx)(l.default,(0,n.A)({ref:t},p,{className:r+" "+(a||""),hsva:{h:h.h,s:h.s,v:h.v,a:1-h.v/100},direction:s,background:"linear-gradient(to "+("horizontal"===s?"right":"bottom")+", "+d+", rgb(0, 0, 0))",onChange:(e,t)=>{f&&f({v:"horizontal"===s?100-100*t.left:100-100*t.top})}}))}));f.displayName="ShadeSlider";const s=f},9727:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={components:{21:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,n=function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=e(t)&&"function"!=typeof t)return{default:t};var n=i(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&{}.hasOwnProperty.call(t,l)){var u=a?Object.getOwnPropertyDescriptor(t,l):null;u&&(u.get||u.set)?Object.defineProperty(o,l,u):o[l]=t[l]}return o.default=t,n&&n.set(t,o),o}(r(7804)),o=(t=r(6801))&&t.__esModule?t:{default:t},a=r(2945);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction Demo() {\n var _useState = (0, _react.useState)({\n h: 214,\n s: 43,\n v: 90,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement(_reactColorWheel["default"], {\n color: hsva,\n onChange: function onChange(color) {\n return setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\n }\n }), /*#__PURE__*/_react["default"].createElement("div", {\n style: {\n width: \'100%\',\n height: 34,\n marginTop: 20,\n background: (0, _colorConvert.hsvaToHex)(hsva)\n }\n }));\n}\nreturn Demo;',language:"tsx",value:"import React, { useState, Fragment } from 'react';\nimport Wheel from '@uiw/react-color-wheel';\nimport { hsvaToHex } from '@uiw/color-convert';\n\nfunction Demo() {\n const [hsva, setHsva] = useState({ h: 214, s: 43, v: 90, a: 1 });\n return (\n \n setHsva({ ...hsva, ...color.hsva })} />\n
\n
\n );\n}\n\nexport default Demo;"},39:{name:39,meta:{},code:'"use strict";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require("react"));\nvar _reactColorWheel = _interopRequireDefault(require("@uiw/react-color-wheel"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }\nfunction _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction Demo() {\n var _useState = (0, _react.useState)({\n h: 214,\n s: 43,\n v: 90,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement("div", {\n style: {\n display: \'grid\',\n gap: 20,\n gridTemplateColumns: \'repeat(auto-fill, minmax(200px, 1fr))\'\n }\n }, /*#__PURE__*/_react["default"].createElement(_reactColorWheel["default"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 100\n }\n }), /*#__PURE__*/_react["default"].createElement(_reactColorWheel["default"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 90\n }\n }), /*#__PURE__*/_react["default"].createElement(_reactColorWheel["default"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 80\n }\n }), /*#__PURE__*/_react["default"].createElement(_reactColorWheel["default"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 70\n }\n }), /*#__PURE__*/_react["default"].createElement(_reactColorWheel["default"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 50\n }\n }), /*#__PURE__*/_react["default"].createElement(_reactColorWheel["default"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 40\n }\n }), /*#__PURE__*/_react["default"].createElement(_reactColorWheel["default"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 40\n },\n width: 100,\n height: 100\n }), /*#__PURE__*/_react["default"].createElement(_reactColorWheel["default"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 30\n },\n width: 100,\n height: 100\n }), /*#__PURE__*/_react["default"].createElement(_reactColorWheel["default"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 20\n },\n width: 100,\n height: 100\n }), /*#__PURE__*/_react["default"].createElement(_reactColorWheel["default"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 10\n },\n width: 100,\n height: 100\n }));\n}\nreturn Demo;',language:"tsx",value:"import React, { useState } from 'react';\nimport Wheel from '@uiw/react-color-wheel';\nimport { hsvaToHex } from '@uiw/color-convert';\n\nfunction Demo() {\n const [hsva, setHsva] = useState({ h: 214, s: 43, v: 90, a: 1 });\n return (\n
\n \n \n \n \n \n \n \n \n \n \n
\n );\n}\n\nexport default Demo;"},65:{name:65,meta:{},code:'"use strict";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require("react"));\nvar _reactColorWheel = _interopRequireDefault(require("@uiw/react-color-wheel"));\nvar _reactColorShadeSlider = _interopRequireDefault(require("@uiw/react-color-shade-slider"));\nvar _colorConvert = require("@uiw/color-convert");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }\nfunction _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }\nfunction _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); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction Demo() {\n var _useState = (0, _react.useState)({\n h: 214,\n s: 43,\n v: 90,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement(_reactColorWheel["default"], {\n color: hsva,\n onChange: function onChange(color) {\n return setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\n }\n }), /*#__PURE__*/_react["default"].createElement(_reactColorShadeSlider["default"], {\n hsva: hsva,\n style: {\n width: 210,\n marginTop: 20\n },\n onChange: function onChange(newShade) {\n setHsva(_objectSpread(_objectSpread({}, hsva), newShade));\n }\n }), /*#__PURE__*/_react["default"].createElement("div", {\n style: {\n width: \'100%\',\n height: 34,\n marginTop: 20,\n background: (0, _colorConvert.hsvaToHex)(hsva)\n }\n }));\n}\nreturn Demo;',language:"tsx",value:"import React, { useState, Fragment } from 'react';\nimport Wheel from '@uiw/react-color-wheel';\nimport ShadeSlider from '@uiw/react-color-shade-slider';\nimport { hsvaToHex } from '@uiw/color-convert';\n\nfunction Demo() {\n const [hsva, setHsva] = useState({ h: 214, s: 43, v: 90, a: 1 });\n return (\n \n setHsva({ ...hsva, ...color.hsva })} />\n {\n setHsva({ ...hsva, ...newShade });\n }}\n />\n
\n
\n );\n}\n\nexport default Demo;"}},source:"React Color Wheel\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-wheel)](https://bundlephobia.com/package/@uiw/react-color-wheel) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-wheel.svg)](https://www.npmjs.com/package/@uiw/react-color-wheel) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-wheel/file/README.md)\n\nWheel Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\n\n\x3c!--rehype:ignore:start--\x3e\n[![react-color-wheel](https://user-images.githubusercontent.com/1680273/125949147-ab96c3d8-1490-4418-b2cf-3f347993bdcb.png)](https://uiwjs.github.io/react-color/#/wheel)\n\x3c!--rehype:ignore:end--\x3e\n\n## Install\n\n```bash\nnpm i @uiw/react-color-wheel\n```\n\n## Usage\n\n```tsx mdx:preview\nimport React, { useState, Fragment } from 'react';\nimport Wheel from '@uiw/react-color-wheel';\nimport { hsvaToHex } from '@uiw/color-convert';\n\nfunction Demo() {\n const [hsva, setHsva] = useState({ h: 214, s: 43, v: 90, a: 1 });\n return (\n \n setHsva({ ...hsva, ...color.hsva })} />\n
\n
\n );\n}\n\nexport default Demo;\n```\n\n```tsx mdx:preview\nimport React, { useState } from 'react';\nimport Wheel from '@uiw/react-color-wheel';\nimport { hsvaToHex } from '@uiw/color-convert';\n\nfunction Demo() {\n const [hsva, setHsva] = useState({ h: 214, s: 43, v: 90, a: 1 });\n return (\n
\n \n \n \n \n \n \n \n \n \n \n
\n );\n}\n\nexport default Demo;\n```\n\n```tsx mdx:preview\nimport React, { useState, Fragment } from 'react';\nimport Wheel from '@uiw/react-color-wheel';\nimport ShadeSlider from '@uiw/react-color-shade-slider';\nimport { hsvaToHex } from '@uiw/color-convert';\n\nfunction Demo() {\n const [hsva, setHsva] = useState({ h: 214, s: 43, v: 90, a: 1 });\n return (\n \n setHsva({ ...hsva, ...color.hsva })} />\n {\n setHsva({ ...hsva, ...newShade });\n }}\n />\n
\n
\n );\n}\n\nexport default Demo;\n```\n\n\n## Props\n\n```ts\nimport React from 'react';\nimport { HsvaColor, ColorResult } from '@uiw/color-convert';\nimport { PointerProps } from './Pointer';\nexport interface WheelProps extends Omit, 'onChange' | 'color'> {\n prefixCls?: string;\n color?: string | HsvaColor;\n width?: number;\n height?: number;\n radius?: React.CSSProperties['borderRadius'];\n /** Direction of the oval: 'x' or 'y'. */ \n oval?: string;\n /** Starting angle of the color wheel's hue gradient, measured in degrees. */\n angle?: number;\n /** Direction of the color wheel's hue gradient; either clockwise or anticlockwise. Default: `anticlockwise` */\n direction?: 'clockwise' | 'anticlockwise';\n pointer?: ({ prefixCls, left, top, color }: PointerProps) => JSX.Element;\n onChange?: (color: ColorResult) => void;\n}\ndeclare const Wheel: React.ForwardRefExoticComponent>;\nexport default Wheel;\n```\n\n\x3c!--footer-dividing--\x3e\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); -//# sourceMappingURL=108.a602ebc8.chunk.js.map \ No newline at end of file diff --git a/static/js/108.a602ebc8.chunk.js.map b/static/js/108.a602ebc8.chunk.js.map deleted file mode 100644 index 32c7743c6..000000000 --- a/static/js/108.a602ebc8.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/108.a602ebc8.chunk.js","mappings":"+LAEIA,EAAY,CAAC,YAAa,YAAa,WAAY,YAAa,QAKhEC,EAA2BC,EAAAA,YAAiB,CAACC,EAAOC,KACtD,IAAI,UACAC,EAAY,qBAAoB,UAChCC,EACAC,SAAUC,EAAS,UACnBC,EAAY,aAAY,KACxBC,GACEP,EACJQ,GAAQC,EAAAA,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/esm/index.js","../../packages/color-wheel/README.md"],"sourcesContent":["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;","\nexport default {\n components: { 21: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactColorWheel = _interopRequireDefault(require(\"@uiw/react-color-wheel\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _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); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction Demo() {\n var _useState = (0, _react.useState)({\n h: 214,\n s: 43,\n v: 90,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(_react.Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(_reactColorWheel[\"default\"], {\n color: hsva,\n onChange: function onChange(color) {\n return setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n width: '100%',\n height: 34,\n marginTop: 20,\n background: (0, _colorConvert.hsvaToHex)(hsva)\n }\n }));\n}\nreturn Demo; })(),39: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactColorWheel = _interopRequireDefault(require(\"@uiw/react-color-wheel\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction Demo() {\n var _useState = (0, _react.useState)({\n h: 214,\n s: 43,\n v: 90,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n display: 'grid',\n gap: 20,\n gridTemplateColumns: 'repeat(auto-fill, minmax(200px, 1fr))'\n }\n }, /*#__PURE__*/_react[\"default\"].createElement(_reactColorWheel[\"default\"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 100\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactColorWheel[\"default\"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 90\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactColorWheel[\"default\"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 80\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactColorWheel[\"default\"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 70\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactColorWheel[\"default\"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 50\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactColorWheel[\"default\"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 40\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactColorWheel[\"default\"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 40\n },\n width: 100,\n height: 100\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactColorWheel[\"default\"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 30\n },\n width: 100,\n height: 100\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactColorWheel[\"default\"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 20\n },\n width: 100,\n height: 100\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactColorWheel[\"default\"], {\n color: {\n a: 1,\n h: 214,\n s: 0,\n v: 10\n },\n width: 100,\n height: 100\n }));\n}\nreturn Demo; })(),65: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactColorWheel = _interopRequireDefault(require(\"@uiw/react-color-wheel\"));\nvar _reactColorShadeSlider = _interopRequireDefault(require(\"@uiw/react-color-shade-slider\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _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); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction Demo() {\n var _useState = (0, _react.useState)({\n h: 214,\n s: 43,\n v: 90,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(_react.Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(_reactColorWheel[\"default\"], {\n color: hsva,\n onChange: function onChange(color) {\n return setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactColorShadeSlider[\"default\"], {\n hsva: hsva,\n style: {\n width: 210,\n marginTop: 20\n },\n onChange: function onChange(newShade) {\n setHsva(_objectSpread(_objectSpread({}, hsva), newShade));\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n width: '100%',\n height: 34,\n marginTop: 20,\n background: (0, _colorConvert.hsvaToHex)(hsva)\n }\n }));\n}\nreturn Demo; })(), },\n data: {\n \"21\": {\n \"name\": 21,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactColorWheel = _interopRequireDefault(require(\\\"@uiw/react-color-wheel\\\"));\\nvar _colorConvert = require(\\\"@uiw/color-convert\\\");\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \\\"string\\\"); return \\\"symbol\\\" == _typeof(i) ? i : i + \\\"\\\"; }\\nfunction _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); }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nfunction Demo() {\\n var _useState = (0, _react.useState)({\\n h: 214,\\n s: 43,\\n v: 90,\\n a: 1\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n hsva = _useState2[0],\\n setHsva = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_react.Fragment, null, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorWheel[\\\"default\\\"], {\\n color: hsva,\\n onChange: function onChange(color) {\\n return setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: {\\n width: '100%',\\n height: 34,\\n marginTop: 20,\\n background: (0, _colorConvert.hsvaToHex)(hsva)\\n }\\n }));\\n}\\nreturn Demo;\",\n \"language\": \"tsx\",\n \"value\": \"import React, { useState, Fragment } from 'react';\\nimport Wheel from '@uiw/react-color-wheel';\\nimport { hsvaToHex } from '@uiw/color-convert';\\n\\nfunction Demo() {\\n const [hsva, setHsva] = useState({ h: 214, s: 43, v: 90, a: 1 });\\n return (\\n \\n setHsva({ ...hsva, ...color.hsva })} />\\n
\\n
\\n );\\n}\\n\\nexport default Demo;\"\n },\n \"39\": {\n \"name\": 39,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactColorWheel = _interopRequireDefault(require(\\\"@uiw/react-color-wheel\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nfunction Demo() {\\n var _useState = (0, _react.useState)({\\n h: 214,\\n s: 43,\\n v: 90,\\n a: 1\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n hsva = _useState2[0],\\n setHsva = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: {\\n display: 'grid',\\n gap: 20,\\n gridTemplateColumns: 'repeat(auto-fill, minmax(200px, 1fr))'\\n }\\n }, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorWheel[\\\"default\\\"], {\\n color: {\\n a: 1,\\n h: 214,\\n s: 0,\\n v: 100\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorWheel[\\\"default\\\"], {\\n color: {\\n a: 1,\\n h: 214,\\n s: 0,\\n v: 90\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorWheel[\\\"default\\\"], {\\n color: {\\n a: 1,\\n h: 214,\\n s: 0,\\n v: 80\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorWheel[\\\"default\\\"], {\\n color: {\\n a: 1,\\n h: 214,\\n s: 0,\\n v: 70\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorWheel[\\\"default\\\"], {\\n color: {\\n a: 1,\\n h: 214,\\n s: 0,\\n v: 50\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorWheel[\\\"default\\\"], {\\n color: {\\n a: 1,\\n h: 214,\\n s: 0,\\n v: 40\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorWheel[\\\"default\\\"], {\\n color: {\\n a: 1,\\n h: 214,\\n s: 0,\\n v: 40\\n },\\n width: 100,\\n height: 100\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorWheel[\\\"default\\\"], {\\n color: {\\n a: 1,\\n h: 214,\\n s: 0,\\n v: 30\\n },\\n width: 100,\\n height: 100\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorWheel[\\\"default\\\"], {\\n color: {\\n a: 1,\\n h: 214,\\n s: 0,\\n v: 20\\n },\\n width: 100,\\n height: 100\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorWheel[\\\"default\\\"], {\\n color: {\\n a: 1,\\n h: 214,\\n s: 0,\\n v: 10\\n },\\n width: 100,\\n height: 100\\n }));\\n}\\nreturn Demo;\",\n \"language\": \"tsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport Wheel from '@uiw/react-color-wheel';\\nimport { hsvaToHex } from '@uiw/color-convert';\\n\\nfunction Demo() {\\n const [hsva, setHsva] = useState({ h: 214, s: 43, v: 90, a: 1 });\\n return (\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n );\\n}\\n\\nexport default Demo;\"\n },\n \"65\": {\n \"name\": 65,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactColorWheel = _interopRequireDefault(require(\\\"@uiw/react-color-wheel\\\"));\\nvar _reactColorShadeSlider = _interopRequireDefault(require(\\\"@uiw/react-color-shade-slider\\\"));\\nvar _colorConvert = require(\\\"@uiw/color-convert\\\");\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \\\"string\\\"); return \\\"symbol\\\" == _typeof(i) ? i : i + \\\"\\\"; }\\nfunction _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); }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nfunction Demo() {\\n var _useState = (0, _react.useState)({\\n h: 214,\\n s: 43,\\n v: 90,\\n a: 1\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n hsva = _useState2[0],\\n setHsva = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_react.Fragment, null, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorWheel[\\\"default\\\"], {\\n color: hsva,\\n onChange: function onChange(color) {\\n return setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorShadeSlider[\\\"default\\\"], {\\n hsva: hsva,\\n style: {\\n width: 210,\\n marginTop: 20\\n },\\n onChange: function onChange(newShade) {\\n setHsva(_objectSpread(_objectSpread({}, hsva), newShade));\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: {\\n width: '100%',\\n height: 34,\\n marginTop: 20,\\n background: (0, _colorConvert.hsvaToHex)(hsva)\\n }\\n }));\\n}\\nreturn Demo;\",\n \"language\": \"tsx\",\n \"value\": \"import React, { useState, Fragment } from 'react';\\nimport Wheel from '@uiw/react-color-wheel';\\nimport ShadeSlider from '@uiw/react-color-shade-slider';\\nimport { hsvaToHex } from '@uiw/color-convert';\\n\\nfunction Demo() {\\n const [hsva, setHsva] = useState({ h: 214, s: 43, v: 90, a: 1 });\\n return (\\n \\n setHsva({ ...hsva, ...color.hsva })} />\\n {\\n setHsva({ ...hsva, ...newShade });\\n }}\\n />\\n
\\n
\\n );\\n}\\n\\nexport default Demo;\"\n }\n},\n source: \"React Color Wheel\\n===\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-wheel)](https://bundlephobia.com/package/@uiw/react-color-wheel) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-wheel.svg)](https://www.npmjs.com/package/@uiw/react-color-wheel) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-wheel/file/README.md)\\n\\nWheel Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\\n\\n\\n[![react-color-wheel](https://user-images.githubusercontent.com/1680273/125949147-ab96c3d8-1490-4418-b2cf-3f347993bdcb.png)](https://uiwjs.github.io/react-color/#/wheel)\\n\\n\\n## Install\\n\\n```bash\\nnpm i @uiw/react-color-wheel\\n```\\n\\n## Usage\\n\\n```tsx mdx:preview\\nimport React, { useState, Fragment } from 'react';\\nimport Wheel from '@uiw/react-color-wheel';\\nimport { hsvaToHex } from '@uiw/color-convert';\\n\\nfunction Demo() {\\n const [hsva, setHsva] = useState({ h: 214, s: 43, v: 90, a: 1 });\\n return (\\n \\n setHsva({ ...hsva, ...color.hsva })} />\\n
\\n
\\n );\\n}\\n\\nexport default Demo;\\n```\\n\\n```tsx mdx:preview\\nimport React, { useState } from 'react';\\nimport Wheel from '@uiw/react-color-wheel';\\nimport { hsvaToHex } from '@uiw/color-convert';\\n\\nfunction Demo() {\\n const [hsva, setHsva] = useState({ h: 214, s: 43, v: 90, a: 1 });\\n return (\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n );\\n}\\n\\nexport default Demo;\\n```\\n\\n```tsx mdx:preview\\nimport React, { useState, Fragment } from 'react';\\nimport Wheel from '@uiw/react-color-wheel';\\nimport ShadeSlider from '@uiw/react-color-shade-slider';\\nimport { hsvaToHex } from '@uiw/color-convert';\\n\\nfunction Demo() {\\n const [hsva, setHsva] = useState({ h: 214, s: 43, v: 90, a: 1 });\\n return (\\n \\n setHsva({ ...hsva, ...color.hsva })} />\\n {\\n setHsva({ ...hsva, ...newShade });\\n }}\\n />\\n
\\n
\\n );\\n}\\n\\nexport default Demo;\\n```\\n\\n\\n## Props\\n\\n```ts\\nimport React from 'react';\\nimport { HsvaColor, ColorResult } from '@uiw/color-convert';\\nimport { PointerProps } from './Pointer';\\nexport interface WheelProps extends Omit, 'onChange' | 'color'> {\\n prefixCls?: string;\\n color?: string | HsvaColor;\\n width?: number;\\n height?: number;\\n radius?: React.CSSProperties['borderRadius'];\\n /** Direction of the oval: 'x' or 'y'. */ \\n oval?: string;\\n /** Starting angle of the color wheel's hue gradient, measured in degrees. */\\n angle?: number;\\n /** Direction of the color wheel's hue gradient; either clockwise or anticlockwise. Default: `anticlockwise` */\\n direction?: 'clockwise' | 'anticlockwise';\\n pointer?: ({ prefixCls, left, top, color }: PointerProps) => JSX.Element;\\n onChange?: (color: ColorResult) => void;\\n}\\ndeclare const Wheel: React.ForwardRefExoticComponent>;\\nexport default Wheel;\\n```\\n\\n\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["_excluded","ShadeSlider","React","props","ref","prefixCls","className","onChange","_onChange","direction","hsva","other","_objectWithoutPropertiesLoose","colorFrom","hsvaToHslaString","_extends","a","v","_jsx","Alpha","h","s","background","_","interaction","left","top","displayName","components","_typeof","o","Symbol","iterator","constructor","prototype","e","_react","r","__esModule","t","_getRequireWildcardCache","has","get","n","__proto__","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_interopRequireWildcard","_reactColorWheel","_colorConvert","WeakMap","ownKeys","keys","getOwnPropertySymbols","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","toPrimitive","TypeError","String","Number","_toPrimitive","_toPropertyKey","value","configurable","writable","_slicedToArray","Array","isArray","_arrayWithHoles","l","f","next","done","_iterableToArrayLimit","_arrayLikeToArray","toString","slice","name","from","test","_unsupportedIterableToArray","_nonIterableRest","_useState2","useState","setHsva","createElement","Fragment","color","style","width","height","marginTop","hsvaToHex","display","gap","gridTemplateColumns","_interopRequireDefault","_reactColorShadeSlider","newShade","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/131.e5348000.chunk.js b/static/js/131.e5348000.chunk.js deleted file mode 100644 index d5b1e5055..000000000 --- a/static/js/131.e5348000.chunk.js +++ /dev/null @@ -1,45 +0,0 @@ -(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%), - 0 8px 16px rgb(0 0 0 / 15%); - border-radius: 16px; - max-width: 860px; - margin: 0 auto; - padding-bottom: 20px; - position: relative; -`,d=a.Ay.a` - position: absolute; - right: 20px; - padding: 3px 8px 4px 8px; - background: #333333; - border-radius: 0 0 6px 6px; - text-decoration: initial; - color: #fff; - transition: all 0.3s; - font-size: 14px; - &:hover { - background-color: #3f51b4; - } -`,h=a.Ay.div` - padding-bottom: 120px; -`,l=a.Ay.footer` - text-align: center; - margin-top: 40px; - a { - margin: 0 5px; - } - p { - font-size: 12px; - text-align: center; - } -`,c=a.Ay.div` - border-bottom: 1px solid var(--color-border-default); - border-radius: 16px 16px 0 0; - padding: 28px; - > h3 { - margin: 0; - 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.e5348000.chunk.js.map \ No newline at end of file diff --git a/static/js/131.e5348000.chunk.js.map b/static/js/131.e5348000.chunk.js.map deleted file mode 100644 index e9bee4280..000000000 --- a/static/js/131.e5348000.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/131.e5348000.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,K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CACVL,KAAMA,EACNM,SAAWC,IACTN,EAAU,CAAED,KAAM,IAAKA,KAASO,IAAa,KAKvD,CAEO,MAAMxC,UAAkBD,EAAAA,EAASE,WAAAA,GAAA,SAAAwC,WAAA,KACtCrC,UAAY,yCAAyC,KACrDC,SAAW,IAAM,8BAAkD,KACnEC,SAAWiB,EAAAA,EAAAA,KAACzB,EAAO,GAAG,E,4HCpBpB4C,EAAY,CAAC,YAAa,YAAa,WAAY,YAAa,QAKhEJ,EAA2BK,EAAAA,YAAiB,CAACzC,EAAO0C,KACtD,IAAI,UACAC,EAAY,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 diff --git a/static/js/135.0f28c8e2.chunk.js b/static/js/135.0f28c8e2.chunk.js new file mode 100644 index 000000000..e7788ddb9 --- /dev/null +++ b/static/js/135.0f28c8e2.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[135],{5560:(e,t,n)=>{var r=n(6784).default,o=n(147).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(564)),i=r(n(6651)),l=r(n(453)),c=o(n(7804)),u=n(7604),s=n(9424),f=["prefixCls","className","color","colors","style","rectProps","onChange","addonAfter","addonBefore","rectRender"],d=c.default.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"w-color-swatch":n,o=e.className,d=e.color,p=e.colors,h=void 0===p?[]:p,y=e.style,m=e.rectProps,g=void 0===m?{}:m,b=e.onChange,v=e.addonAfter,w=e.addonBefore,C=e.rectRender,_=(0,l.default)(e,f),x=(0,i.default)({"--swatch-background-color":"rgb(144, 19, 254)",background:"var(--swatch-background-color)",height:15,width:15,marginRight:5,marginBottom:5,cursor:"pointer",position:"relative",outline:"none",borderRadius:2},g.style),S=function(e,t){b&&b((0,u.hexToHsva)(e),(0,u.color)((0,u.hexToHsva)(e)),t)};return(0,s.jsxs)("div",(0,i.default)((0,i.default)({ref:t},_),{},{className:[r,o||""].filter(Boolean).join(" "),style:(0,i.default)({display:"flex",flexWrap:"wrap",position:"relative"},y),children:[w&&c.default.isValidElement(w)&&w,h&&Array.isArray(h)&&h.map((function(e,t){var n="",r="";"string"===typeof e&&(n=e,r=e),"object"===(0,a.default)(e)&&e.color&&(n=e.title||e.color,r=e.color);var o=d&&d.toLocaleLowerCase()===r.toLocaleLowerCase(),l=C&&C({title:n,color:r,checked:!!o,style:(0,i.default)((0,i.default)({},x),{},{background:r}),onClick:function(e){return S(r,e)}});if(l)return(0,s.jsx)(c.Fragment,{children:l},t);var u=g.children&&c.default.isValidElement(g.children)?c.default.cloneElement(g.children,{color:r,checked:o}):null;return(0,s.jsx)("div",(0,i.default)((0,i.default)({tabIndex:0,title:n,onClick:function(e){return S(r,e)}},g),{},{children:u,style:(0,i.default)((0,i.default)({},x),{},{background:r})}),t)})),v&&c.default.isValidElement(v)&&v]}))}));d.displayName="Swatch";t.default=d;e.exports=t.default},2135:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});const r={components:{21:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,r=function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=e(t)&&"function"!=typeof t)return{default:t};var r=i(n);if(r&&r.has(t))return r.get(t);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&{}.hasOwnProperty.call(t,l)){var c=a?Object.getOwnPropertyDescriptor(t,l):null;c&&(c.get||c.set)?Object.defineProperty(o,l,c):o[l]=t[l]}return o.default=t,r&&r.set(t,o),o}(n(7804)),o=n(7604),a=(t=n(5560))&&t.__esModule?t:{default:t};function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction Point(props) {\n if (!props.checked) return null;\n return /*#__PURE__*/_react["default"].createElement("div", {\n style: {\n height: 5,\n width: 5,\n borderRadius: \'50%\',\n backgroundColor: (0, _colorConvert.getContrastingColor)(props.color)\n }\n });\n}\nfunction Demo() {\n var _useState = (0, _react.useState)("#fff"),\n _useState2 = _slicedToArray(_useState, 2),\n hex = _useState2[0],\n setHex = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement(_reactColorSwatch["default"], {\n colors: [\'#F44E3B\', \'#FE9200\', \'#FCDC00\', \'#DBDF00\'],\n color: hex,\n rectProps: {\n children: /*#__PURE__*/_react["default"].createElement(Point, null),\n style: {\n display: \'flex\',\n alignItems: \'center\',\n justifyContent: \'center\'\n }\n },\n onChange: function onChange(hsvColor) {\n setHex((0, _colorConvert.hsvaToHex)(hsvColor));\n }\n });\n}\nreturn Demo;',language:"tsx",value:"import React, { useState } from 'react';\nimport { hsvaToHex, getContrastingColor, } from '@uiw/color-convert';\nimport Swatch from '@uiw/react-color-swatch';\n\nfunction Point(props: { color?: string; checked?: boolean }) {\n if (!props.checked) return null;\n return (\n \n );\n}\n\nfunction Demo() {\n const [hex, setHex] = useState(\"#fff\");\n return (\n ,\n style: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n },\n }}\n onChange={(hsvColor) => {\n setHex(hsvaToHex(hsvColor))\n }}\n />\n );\n}\n\nexport default Demo;"}},source:"React Color Swatch\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-swatch)](https://bundlephobia.com/package/@uiw/react-color-swatch) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-swatch.svg)](https://www.npmjs.com/package/@uiw/react-color-swatch) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-swatch/file/README.md)\n\nSwatch Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\n\n\x3c!--rehype:ignore:start--\x3e\n[![react-color-swatch](https://user-images.githubusercontent.com/1680273/125950289-f965e6c2-c21f-4b5c-a05c-a27aa07e738f.png)](https://uiwjs.github.io/react-color/#/swatch)\n\x3c!--rehype:ignore:end--\x3e\n\n## Install\n\n```bash\nnpm i @uiw/react-color-swatch\n```\n\n## Usage\n\n```tsx mdx:preview\nimport React, { useState } from 'react';\nimport { hsvaToHex, getContrastingColor, } from '@uiw/color-convert';\nimport Swatch from '@uiw/react-color-swatch';\n\nfunction Point(props: { color?: string; checked?: boolean }) {\n if (!props.checked) return null;\n return (\n \n );\n}\n\nfunction Demo() {\n const [hex, setHex] = useState(\"#fff\");\n return (\n ,\n style: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n },\n }}\n onChange={(hsvColor) => {\n setHex(hsvaToHex(hsvColor))\n }}\n />\n );\n}\n\nexport default Demo;\n```\n\n## Props\n\n```ts\nimport React from 'react';\nimport { HsvaColor, ColorResult } from '@uiw/color-convert';\nexport type SwatchPresetColor = {\n color: string;\n title?: string;\n} | string;\nexport interface SwatchRectRenderProps extends React.HTMLAttributes {\n title: string;\n color: string;\n checked: boolean;\n style: React.CSSProperties;\n onClick: (evn: React.MouseEvent) => void;\n};\nexport interface SwatchProps extends Omit, 'onChange' | 'color'> {\n prefixCls?: string;\n color?: string;\n colors?: SwatchPresetColor[];\n rectProps?: React.HTMLAttributes;\n rectRender?: (props: SwatchRectRenderProps) => JSX.Element;\n onChange?: (hsva: HsvaColor, color: ColorResult, evn: React.MouseEvent) => void;\n addonAfter?: React.ReactNode;\n addonBefore?: React.ReactNode;\n}\ndeclare const Swatch: React.ForwardRefExoticComponent>;\nexport default Swatch;\n```\n\n\x3c!--footer-dividing--\x3e\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=135.0f28c8e2.chunk.js.map \ No newline at end of file diff --git a/static/js/135.0f28c8e2.chunk.js.map b/static/js/135.0f28c8e2.chunk.js.map new file mode 100644 index 000000000..92d7c1f4a --- /dev/null +++ b/static/js/135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c,CA/CQ,IAgDlBE,KAAM,CACR,GAAM,CACJ,KAAQ,GACR,KAAQ,CAAC,EACT,KAAQ,40HACR,SAAY,MACZ,MAAS,86BAGTC,OAAQ,42GACRC,SAAS,GACTC,aAAa,G","sources":["../../packages/color-swatch/cjs/index.js","../../packages/color-swatch/README.md"],"sourcesContent":["\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"className\", \"color\", \"colors\", \"style\", \"rectProps\", \"onChange\", \"addonAfter\", \"addonBefore\", \"rectRender\"];\nvar Swatch = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-swatch' : _props$prefixCls,\n className = props.className,\n color = props.color,\n _props$colors = props.colors,\n colors = _props$colors === void 0 ? [] : _props$colors,\n style = props.style,\n _props$rectProps = props.rectProps,\n rectProps = _props$rectProps === void 0 ? {} : _props$rectProps,\n onChange = props.onChange,\n addonAfter = props.addonAfter,\n addonBefore = props.addonBefore,\n rectRender = props.rectRender,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var rectStyle = (0, _objectSpread2[\"default\"])({\n '--swatch-background-color': 'rgb(144, 19, 254)',\n background: 'var(--swatch-background-color)',\n height: 15,\n width: 15,\n marginRight: 5,\n marginBottom: 5,\n cursor: 'pointer',\n position: 'relative',\n outline: 'none',\n borderRadius: 2\n }, rectProps.style);\n var handleClick = function handleClick(hex, evn) {\n onChange && onChange((0, _colorConvert.hexToHsva)(hex), (0, _colorConvert.color)((0, _colorConvert.hexToHsva)(hex)), evn);\n };\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n ref: ref\n }, other), {}, {\n className: [prefixCls, className || ''].filter(Boolean).join(' '),\n style: (0, _objectSpread2[\"default\"])({\n display: 'flex',\n flexWrap: 'wrap',\n position: 'relative'\n }, style),\n children: [addonBefore && /*#__PURE__*/_react[\"default\"].isValidElement(addonBefore) && addonBefore, colors && Array.isArray(colors) && colors.map(function (item, idx) {\n var title = '';\n var background = '';\n if (typeof item === 'string') {\n title = item;\n background = item;\n }\n if ((0, _typeof2[\"default\"])(item) === 'object' && item.color) {\n title = item.title || item.color;\n background = item.color;\n }\n var checked = color && color.toLocaleLowerCase() === background.toLocaleLowerCase();\n var render = rectRender && rectRender({\n title: title,\n color: background,\n checked: !!checked,\n style: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, rectStyle), {}, {\n background: background\n }),\n onClick: function onClick(evn) {\n return handleClick(background, evn);\n }\n });\n if (render) {\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Fragment, {\n children: render\n }, idx);\n }\n var child = rectProps.children && /*#__PURE__*/_react[\"default\"].isValidElement(rectProps.children) ? /*#__PURE__*/_react[\"default\"].cloneElement(rectProps.children, {\n color: background,\n checked: checked\n }) : null;\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n tabIndex: 0,\n title: title,\n onClick: function onClick(evn) {\n return handleClick(background, evn);\n }\n }, rectProps), {}, {\n children: child,\n style: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, rectStyle), {}, {\n background: background\n })\n }), idx);\n }), addonAfter && /*#__PURE__*/_react[\"default\"].isValidElement(addonAfter) && addonAfter]\n }));\n});\nSwatch.displayName = 'Swatch';\nvar _default = exports[\"default\"] = Swatch;\nmodule.exports = exports.default;","\nexport default {\n components: { 21: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactColorSwatch = _interopRequireDefault(require(\"@uiw/react-color-swatch\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction Point(props) {\n if (!props.checked) return null;\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n height: 5,\n width: 5,\n borderRadius: '50%',\n backgroundColor: (0, _colorConvert.getContrastingColor)(props.color)\n }\n });\n}\nfunction Demo() {\n var _useState = (0, _react.useState)(\"#fff\"),\n _useState2 = _slicedToArray(_useState, 2),\n hex = _useState2[0],\n setHex = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(_reactColorSwatch[\"default\"], {\n colors: ['#F44E3B', '#FE9200', '#FCDC00', '#DBDF00'],\n color: hex,\n rectProps: {\n children: /*#__PURE__*/_react[\"default\"].createElement(Point, null),\n style: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n }\n },\n onChange: function onChange(hsvColor) {\n setHex((0, _colorConvert.hsvaToHex)(hsvColor));\n }\n });\n}\nreturn Demo; })(), },\n data: {\n \"21\": {\n \"name\": 21,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _colorConvert = require(\\\"@uiw/color-convert\\\");\\nvar _reactColorSwatch = _interopRequireDefault(require(\\\"@uiw/react-color-swatch\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nfunction Point(props) {\\n if (!props.checked) return null;\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: {\\n height: 5,\\n width: 5,\\n borderRadius: '50%',\\n backgroundColor: (0, _colorConvert.getContrastingColor)(props.color)\\n }\\n });\\n}\\nfunction Demo() {\\n var _useState = (0, _react.useState)(\\\"#fff\\\"),\\n _useState2 = _slicedToArray(_useState, 2),\\n hex = _useState2[0],\\n setHex = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorSwatch[\\\"default\\\"], {\\n colors: ['#F44E3B', '#FE9200', '#FCDC00', '#DBDF00'],\\n color: hex,\\n rectProps: {\\n children: /*#__PURE__*/_react[\\\"default\\\"].createElement(Point, null),\\n style: {\\n display: 'flex',\\n alignItems: 'center',\\n justifyContent: 'center'\\n }\\n },\\n onChange: function onChange(hsvColor) {\\n setHex((0, _colorConvert.hsvaToHex)(hsvColor));\\n }\\n });\\n}\\nreturn Demo;\",\n \"language\": \"tsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport { hsvaToHex, getContrastingColor, } from '@uiw/color-convert';\\nimport Swatch from '@uiw/react-color-swatch';\\n\\nfunction Point(props: { color?: string; checked?: boolean }) {\\n if (!props.checked) return null;\\n return (\\n \\n );\\n}\\n\\nfunction Demo() {\\n const [hex, setHex] = useState(\\\"#fff\\\");\\n return (\\n ,\\n style: {\\n display: 'flex',\\n alignItems: 'center',\\n justifyContent: 'center',\\n },\\n }}\\n onChange={(hsvColor) => {\\n setHex(hsvaToHex(hsvColor))\\n }}\\n />\\n );\\n}\\n\\nexport default Demo;\"\n }\n},\n source: \"React Color Swatch\\n===\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-swatch)](https://bundlephobia.com/package/@uiw/react-color-swatch) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-swatch.svg)](https://www.npmjs.com/package/@uiw/react-color-swatch) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-swatch/file/README.md)\\n\\nSwatch Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\\n\\n\\n[![react-color-swatch](https://user-images.githubusercontent.com/1680273/125950289-f965e6c2-c21f-4b5c-a05c-a27aa07e738f.png)](https://uiwjs.github.io/react-color/#/swatch)\\n\\n\\n## Install\\n\\n```bash\\nnpm i @uiw/react-color-swatch\\n```\\n\\n## Usage\\n\\n```tsx mdx:preview\\nimport React, { useState } from 'react';\\nimport { hsvaToHex, getContrastingColor, } from '@uiw/color-convert';\\nimport Swatch from '@uiw/react-color-swatch';\\n\\nfunction Point(props: { color?: string; checked?: boolean }) {\\n if (!props.checked) return null;\\n return (\\n \\n );\\n}\\n\\nfunction Demo() {\\n const [hex, setHex] = useState(\\\"#fff\\\");\\n return (\\n ,\\n style: {\\n display: 'flex',\\n alignItems: 'center',\\n justifyContent: 'center',\\n },\\n }}\\n onChange={(hsvColor) => {\\n setHex(hsvaToHex(hsvColor))\\n }}\\n />\\n );\\n}\\n\\nexport default Demo;\\n```\\n\\n## Props\\n\\n```ts\\nimport React from 'react';\\nimport { HsvaColor, ColorResult } from '@uiw/color-convert';\\nexport type SwatchPresetColor = {\\n color: string;\\n title?: string;\\n} | string;\\nexport interface SwatchRectRenderProps extends React.HTMLAttributes {\\n title: string;\\n color: string;\\n checked: boolean;\\n style: React.CSSProperties;\\n onClick: (evn: React.MouseEvent) => void;\\n};\\nexport interface SwatchProps extends Omit, 'onChange' | 'color'> {\\n prefixCls?: string;\\n color?: string;\\n colors?: SwatchPresetColor[];\\n rectProps?: React.HTMLAttributes;\\n rectRender?: (props: SwatchRectRenderProps) => JSX.Element;\\n onChange?: (hsva: HsvaColor, color: ColorResult, evn: React.MouseEvent) => void;\\n addonAfter?: React.ReactNode;\\n addonBefore?: React.ReactNode;\\n}\\ndeclare const Swatch: React.ForwardRefExoticComponent>;\\nexport default Swatch;\\n```\\n\\n\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["_interopRequireDefault","require","_interopRequireWildcard","Object","defineProperty","exports","value","_typeof2","_objectSpread2","_objectWithoutProperties2","_react","_colorConvert","_jsxRuntime","_excluded","Swatch","forwardRef","props","ref","_props$prefixCls","prefixCls","className","color","_props$colors","colors","style","_props$rectProps","rectProps","onChange","addonAfter","addonBefore","rectRender","other","rectStyle","background","height","width","marginRight","marginBottom","cursor","position","outline","borderRadius","handleClick","hex","evn","hexToHsva","jsxs","filter","Boolean","join","display","flexWrap","children","isValidElement","Array","isArray","map","item","idx","title","checked","toLocaleLowerCase","render","onClick","jsx","Fragment","child","cloneElement","tabIndex","displayName","module","default","components","_typeof","o","Symbol","iterator","constructor","prototype","e","r","__esModule","t","_getRequireWildcardCache","has","get","n","__proto__","a","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_reactColorSwatch","WeakMap","_slicedToArray","_arrayWithHoles","l","f","next","done","push","length","_iterableToArrayLimit","_arrayLikeToArray","toString","slice","name","from","test","_unsupportedIterableToArray","TypeError","_nonIterableRest","Point","createElement","backgroundColor","getContrastingColor","_useState2","useState","setHex","alignItems","justifyContent","hsvColor","hsvaToHex","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/135.da7aa470.chunk.js b/static/js/135.da7aa470.chunk.js deleted file mode 100644 index f3e97dadf..000000000 --- a/static/js/135.da7aa470.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[135],{2135:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});const r={components:{21:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,r=function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=e(t)&&"function"!=typeof t)return{default:t};var r=i(n);if(r&&r.has(t))return r.get(t);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&{}.hasOwnProperty.call(t,c)){var l=a?Object.getOwnPropertyDescriptor(t,c):null;l&&(l.get||l.set)?Object.defineProperty(o,c,l):o[c]=t[c]}return o.default=t,r&&r.set(t,o),o}(n(7804)),o=n(2945),a=(t=n(6966))&&t.__esModule?t:{default:t};function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction Point(props) {\n if (!props.checked) return null;\n return /*#__PURE__*/_react["default"].createElement("div", {\n style: {\n height: 5,\n width: 5,\n borderRadius: \'50%\',\n backgroundColor: (0, _colorConvert.getContrastingColor)(props.color)\n }\n });\n}\nfunction Demo() {\n var _useState = (0, _react.useState)("#fff"),\n _useState2 = _slicedToArray(_useState, 2),\n hex = _useState2[0],\n setHex = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement(_reactColorSwatch["default"], {\n colors: [\'#F44E3B\', \'#FE9200\', \'#FCDC00\', \'#DBDF00\'],\n color: hex,\n rectProps: {\n children: /*#__PURE__*/_react["default"].createElement(Point, null),\n style: {\n display: \'flex\',\n alignItems: \'center\',\n justifyContent: \'center\'\n }\n },\n onChange: function onChange(hsvColor) {\n setHex((0, _colorConvert.hsvaToHex)(hsvColor));\n }\n });\n}\nreturn Demo;',language:"tsx",value:"import React, { useState } from 'react';\nimport { hsvaToHex, getContrastingColor, } from '@uiw/color-convert';\nimport Swatch from '@uiw/react-color-swatch';\n\nfunction Point(props: { color?: string; checked?: boolean }) {\n if (!props.checked) return null;\n return (\n \n );\n}\n\nfunction Demo() {\n const [hex, setHex] = useState(\"#fff\");\n return (\n ,\n style: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n },\n }}\n onChange={(hsvColor) => {\n setHex(hsvaToHex(hsvColor))\n }}\n />\n );\n}\n\nexport default Demo;"}},source:"React Color Swatch\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-swatch)](https://bundlephobia.com/package/@uiw/react-color-swatch) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-swatch.svg)](https://www.npmjs.com/package/@uiw/react-color-swatch) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-swatch/file/README.md)\n\nSwatch Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\n\n\x3c!--rehype:ignore:start--\x3e\n[![react-color-swatch](https://user-images.githubusercontent.com/1680273/125950289-f965e6c2-c21f-4b5c-a05c-a27aa07e738f.png)](https://uiwjs.github.io/react-color/#/swatch)\n\x3c!--rehype:ignore:end--\x3e\n\n## Install\n\n```bash\nnpm i @uiw/react-color-swatch\n```\n\n## Usage\n\n```tsx mdx:preview\nimport React, { useState } from 'react';\nimport { hsvaToHex, getContrastingColor, } from '@uiw/color-convert';\nimport Swatch from '@uiw/react-color-swatch';\n\nfunction Point(props: { color?: string; checked?: boolean }) {\n if (!props.checked) return null;\n return (\n \n );\n}\n\nfunction Demo() {\n const [hex, setHex] = useState(\"#fff\");\n return (\n ,\n style: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n },\n }}\n onChange={(hsvColor) => {\n setHex(hsvaToHex(hsvColor))\n }}\n />\n );\n}\n\nexport default Demo;\n```\n\n## Props\n\n```ts\nimport React from 'react';\nimport { HsvaColor, ColorResult } from '@uiw/color-convert';\nexport type SwatchPresetColor = {\n color: string;\n title?: string;\n} | string;\nexport interface SwatchRectRenderProps extends React.HTMLAttributes {\n title: string;\n color: string;\n checked: boolean;\n style: React.CSSProperties;\n onClick: (evn: React.MouseEvent) => void;\n};\nexport interface SwatchProps extends Omit, 'onChange' | 'color'> {\n prefixCls?: string;\n color?: string;\n colors?: SwatchPresetColor[];\n rectProps?: React.HTMLAttributes;\n rectRender?: (props: SwatchRectRenderProps) => JSX.Element;\n onChange?: (hsva: HsvaColor, color: ColorResult, evn: React.MouseEvent) => void;\n addonAfter?: React.ReactNode;\n addonBefore?: React.ReactNode;\n}\ndeclare const Swatch: React.ForwardRefExoticComponent>;\nexport default Swatch;\n```\n\n\x3c!--footer-dividing--\x3e\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); -//# sourceMappingURL=135.da7aa470.chunk.js.map \ No newline at end of file diff --git a/static/js/135.da7aa470.chunk.js.map b/static/js/135.da7aa470.chunk.js.map deleted file mode 100644 index c02a0c173..000000000 --- a/static/js/135.da7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K,2CAA2CoC,KAAKpC,GAAK+B,EAAkBjC,EAAGQ,QAAK,CAAQ,CAAE,CAF7R+B,CAA4BvC,EAAGF,IAC3H,WAA8B,MAAM,IAAI0C,UAAU,4IAA8I,CAD/DC,EAAoB,CAGrJ,SAASR,EAAkBjC,EAAGQ,IAAM,MAAQA,GAAKA,EAAIR,EAAE+B,UAAYvB,EAAIR,EAAE+B,QAAS,IAAK,IAAIjC,EAAI,EAAGQ,EAAIgB,MAAMd,GAAIV,EAAIU,EAAGV,IAAKQ,EAAER,GAAKE,EAAEF,GAAI,OAAOQ,CAAG,CAGnJ,SAASoC,EAAMC,GACb,OAAKA,EAAMC,QACS7C,EAAgB,QAAE8C,cAAc,MAAO,CACzDC,MAAO,CACLC,OAAQ,EACRC,MAAO,EACPC,aAAc,MACdC,iBAAiB,EAAIhC,EAAciC,qBAAqBR,EAAMS,UANvC,IAS7B,CAsBA,OArBA,WACE,IACEC,EAAahC,GADC,EAAItB,EAAOuD,UAAU,QACI,GACvCC,EAAMF,EAAW,GACjBG,EAASH,EAAW,GACtB,OAAoBtD,EAAgB,QAAE8C,cAAc1B,EAA2B,QAAG,CAChFsC,OAAQ,CAAC,UAAW,UAAW,UAAW,WAC1CL,MAAOG,EACPG,UAAW,CACTC,SAAuB5D,EAAgB,QAAE8C,cAAcH,EAAO,MAC9DI,MAAO,CACLc,QAAS,OACTC,WAAY,SACZC,eAAgB,WAGpBC,SAAU,SAAkBC,GAC1BR,GAAO,EAAItC,EAAc+C,WAAWD,GACtC,GAEJ,CACc,CA/CQ,IAgDlBE,KAAM,CACR,GAAM,CACJ,KAAQ,GACR,KAAQ,CAAC,EACT,KAAQ,40HACR,SAAY,MACZ,MAAS,86BAGTC,OAAQ,42GACRC,SAAS,GACTC,aAAa,G","sources":["../../packages/color-swatch/README.md"],"sourcesContent":["\nexport default {\n components: { 21: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactColorSwatch = _interopRequireDefault(require(\"@uiw/react-color-swatch\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction Point(props) {\n if (!props.checked) return null;\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n height: 5,\n width: 5,\n borderRadius: '50%',\n backgroundColor: (0, _colorConvert.getContrastingColor)(props.color)\n }\n });\n}\nfunction Demo() {\n var _useState = (0, _react.useState)(\"#fff\"),\n _useState2 = _slicedToArray(_useState, 2),\n hex = _useState2[0],\n setHex = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(_reactColorSwatch[\"default\"], {\n colors: ['#F44E3B', '#FE9200', '#FCDC00', '#DBDF00'],\n color: hex,\n rectProps: {\n children: /*#__PURE__*/_react[\"default\"].createElement(Point, null),\n style: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n }\n },\n onChange: function onChange(hsvColor) {\n setHex((0, _colorConvert.hsvaToHex)(hsvColor));\n }\n });\n}\nreturn Demo; })(), },\n data: {\n \"21\": {\n \"name\": 21,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _colorConvert = require(\\\"@uiw/color-convert\\\");\\nvar _reactColorSwatch = _interopRequireDefault(require(\\\"@uiw/react-color-swatch\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nfunction Point(props) {\\n if (!props.checked) return null;\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: {\\n height: 5,\\n width: 5,\\n borderRadius: '50%',\\n backgroundColor: (0, _colorConvert.getContrastingColor)(props.color)\\n }\\n });\\n}\\nfunction Demo() {\\n var _useState = (0, _react.useState)(\\\"#fff\\\"),\\n _useState2 = _slicedToArray(_useState, 2),\\n hex = _useState2[0],\\n setHex = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorSwatch[\\\"default\\\"], {\\n colors: ['#F44E3B', '#FE9200', '#FCDC00', '#DBDF00'],\\n color: hex,\\n rectProps: {\\n children: /*#__PURE__*/_react[\\\"default\\\"].createElement(Point, null),\\n style: {\\n display: 'flex',\\n alignItems: 'center',\\n justifyContent: 'center'\\n }\\n },\\n onChange: function onChange(hsvColor) {\\n setHex((0, _colorConvert.hsvaToHex)(hsvColor));\\n }\\n });\\n}\\nreturn Demo;\",\n \"language\": \"tsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport { hsvaToHex, getContrastingColor, } from '@uiw/color-convert';\\nimport Swatch from '@uiw/react-color-swatch';\\n\\nfunction Point(props: { color?: string; checked?: boolean }) {\\n if (!props.checked) return null;\\n return (\\n \\n );\\n}\\n\\nfunction Demo() {\\n const [hex, setHex] = useState(\\\"#fff\\\");\\n return (\\n ,\\n style: {\\n display: 'flex',\\n alignItems: 'center',\\n justifyContent: 'center',\\n },\\n }}\\n onChange={(hsvColor) => {\\n setHex(hsvaToHex(hsvColor))\\n }}\\n />\\n );\\n}\\n\\nexport default Demo;\"\n }\n},\n source: \"React Color Swatch\\n===\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-swatch)](https://bundlephobia.com/package/@uiw/react-color-swatch) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-swatch.svg)](https://www.npmjs.com/package/@uiw/react-color-swatch) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-swatch/file/README.md)\\n\\nSwatch Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\\n\\n\\n[![react-color-swatch](https://user-images.githubusercontent.com/1680273/125950289-f965e6c2-c21f-4b5c-a05c-a27aa07e738f.png)](https://uiwjs.github.io/react-color/#/swatch)\\n\\n\\n## Install\\n\\n```bash\\nnpm i @uiw/react-color-swatch\\n```\\n\\n## Usage\\n\\n```tsx mdx:preview\\nimport React, { useState } from 'react';\\nimport { hsvaToHex, getContrastingColor, } from '@uiw/color-convert';\\nimport Swatch from '@uiw/react-color-swatch';\\n\\nfunction Point(props: { color?: string; checked?: boolean }) {\\n if (!props.checked) return null;\\n return (\\n \\n );\\n}\\n\\nfunction Demo() {\\n const [hex, setHex] = useState(\\\"#fff\\\");\\n return (\\n ,\\n style: {\\n display: 'flex',\\n alignItems: 'center',\\n justifyContent: 'center',\\n },\\n }}\\n onChange={(hsvColor) => {\\n setHex(hsvaToHex(hsvColor))\\n }}\\n />\\n );\\n}\\n\\nexport default Demo;\\n```\\n\\n## Props\\n\\n```ts\\nimport React from 'react';\\nimport { HsvaColor, ColorResult } from '@uiw/color-convert';\\nexport type SwatchPresetColor = {\\n color: string;\\n title?: string;\\n} | string;\\nexport interface SwatchRectRenderProps extends React.HTMLAttributes {\\n title: string;\\n color: string;\\n checked: boolean;\\n style: React.CSSProperties;\\n onClick: (evn: React.MouseEvent) => void;\\n};\\nexport interface SwatchProps extends Omit, 'onChange' | 'color'> {\\n prefixCls?: string;\\n color?: string;\\n colors?: SwatchPresetColor[];\\n rectProps?: React.HTMLAttributes;\\n rectRender?: (props: SwatchRectRenderProps) => JSX.Element;\\n onChange?: (hsva: HsvaColor, color: ColorResult, evn: React.MouseEvent) => void;\\n addonAfter?: React.ReactNode;\\n addonBefore?: React.ReactNode;\\n}\\ndeclare const Swatch: React.ForwardRefExoticComponent>;\\nexport default Swatch;\\n```\\n\\n\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","_typeof","o","Symbol","iterator","constructor","prototype","e","_react","r","__esModule","t","_getRequireWildcardCache","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_interopRequireWildcard","_colorConvert","_reactColorSwatch","WeakMap","_slicedToArray","Array","isArray","_arrayWithHoles","l","f","next","done","push","value","length","_iterableToArrayLimit","_arrayLikeToArray","toString","slice","name","from","test","_unsupportedIterableToArray","TypeError","_nonIterableRest","Point","props","checked","createElement","style","height","width","borderRadius","backgroundColor","getContrastingColor","color","_useState2","useState","hex","setHex","colors","rectProps","children","display","alignItems","justifyContent","onChange","hsvColor","hsvaToHex","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/137.a974f160.chunk.js b/static/js/137.a974f160.chunk.js deleted file mode 100644 index 0f171d179..000000000 --- a/static/js/137.a974f160.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[137],{7137:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});const r={components:{24:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,r=function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=e(t)&&"function"!=typeof t)return{default:t};var r=i(n);if(r&&r.has(t))return r.get(t);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&{}.hasOwnProperty.call(t,l)){var u=a?Object.getOwnPropertyDescriptor(t,l):null;u&&(u.get||u.set)?Object.defineProperty(o,l,u):o[l]=t[l]}return o.default=t,r&&r.set(t,o),o}(n(7804)),o=n(2945),a=(t=n(9262))&&t.__esModule?t:{default:t},l=n(2051);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,l,i=[],u=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 25.71,\n v: 82.35,\n a: 0.32\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n var hex = (0, _colorConvert.hsvaToHex)(hsva);\n return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_reactColorChrome["default"], {\n color: hsva,\n style: {\n "float": \'left\'\n },\n placement: _reactColorGithub.GithubPlacement.Right,\n onChange: function onChange(color) {\n setHsva(color.hsva);\n }\n }), /*#__PURE__*/_react["default"].createElement(_reactColorChrome["default"], {\n color: hsva,\n placement: _reactColorGithub.GithubPlacement.TopRight,\n onChange: function onChange(color) {\n setHsva(color.hsva);\n }\n }), /*#__PURE__*/_react["default"].createElement(_reactColorChrome["default"], {\n color: hsva,\n style: {\n marginTop: 10,\n width: 140\n },\n placement: _reactColorGithub.GithubPlacement.TopRight,\n showEyeDropper: false,\n showColorPreview: false,\n showEditableInput: false,\n onChange: function onChange(color) {\n setHsva(color.hsva);\n }\n }), /*#__PURE__*/_react["default"].createElement("div", {\n style: {\n background: hex,\n marginTop: 30,\n padding: 10\n }\n }, hex));\n}\nreturn Demo;',language:"jsx",value:"import React, { useState } from 'react';\n\nimport {\n HsvaColor,\n hsvaToRgbaString,\n color as handleColor,\n validHex,\n hexToHsva,\n hsvaToHex,\n hsvaToHexa,\n} from '@uiw/color-convert';\n\nimport Chrome from '@uiw/react-color-chrome';\nimport { GithubPlacement } from '@uiw/react-color-github';\n\nfunction Demo() {\n const [hsva, setHsva] = useState({ h:0, s:25.71, v:82.35, a:0.32});\n const hex = hsvaToHex(hsva)\n return (\n <>\n {\n setHsva(color.hsva);\n }}\n />\n {\n setHsva(color.hsva);\n }}\n />\n {\n setHsva(color.hsva);\n }}\n />\n
\n {hex}\n
\n \n );\n}\nexport default Demo;"},82:{name:82,meta:{},code:'"use strict";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require("react"));\nvar _colorConvert = require("@uiw/color-convert");\nvar _reactColorChrome = _interopRequireDefault(require("@uiw/react-color-chrome"));\nvar _reactColorGithub = require("@uiw/react-color-github");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }\nfunction _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 25.71,\n v: 82.35,\n a: 0.32\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n var hex = (0, _colorConvert.hsvaToHex)(hsva);\n return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_reactColorChrome["default"], {\n color: hsva,\n style: {\n marginTop: 10\n },\n placement: _reactColorGithub.GithubPlacement.TopRight,\n showAlpha: false,\n onChange: function onChange(color) {\n setHsva(color.hsva);\n }\n }), /*#__PURE__*/_react["default"].createElement("div", {\n style: {\n background: hex,\n marginTop: 30,\n padding: 10\n }\n }, hex));\n}\nreturn Demo;',language:"jsx",value:"import React, { useState } from 'react';\n\nimport {\n HsvaColor,\n hsvaToRgbaString,\n color as handleColor,\n validHex,\n hexToHsva,\n hsvaToHex,\n hsvaToHexa,\n} from '@uiw/color-convert';\n\nimport Chrome from '@uiw/react-color-chrome';\nimport { GithubPlacement } from '@uiw/react-color-github';\n\nfunction Demo() {\n const [hsva, setHsva] = useState({ h:0, s:25.71, v:82.35, a:0.32});\n const hex = hsvaToHex(hsva)\n return (\n <>\n {\n setHsva(color.hsva);\n }}\n />\n
\n {hex}\n
\n \n );\n}\nexport default Demo;"}},source:"React Color Chrome\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-chrome)](https://bundlephobia.com/package/@uiw/react-color-chrome) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-chrome.svg)](https://www.npmjs.com/package/@uiw/react-color-chrome) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-chrome/file/README.md)\n\nChrome Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\n\n\x3c!--rehype:ignore:start--\x3e\n\n \"react-color-chrome\"\n\n\n\x3c!--rehype:ignore:end--\x3e\n\n## Install\n\n```bash\nnpm i @uiw/react-color-chrome\n```\n\n## Usage\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\n\nimport {\n HsvaColor,\n hsvaToRgbaString,\n color as handleColor,\n validHex,\n hexToHsva,\n hsvaToHex,\n hsvaToHexa,\n} from '@uiw/color-convert';\n\nimport Chrome from '@uiw/react-color-chrome';\nimport { GithubPlacement } from '@uiw/react-color-github';\n\nfunction Demo() {\n const [hsva, setHsva] = useState({ h:0, s:25.71, v:82.35, a:0.32});\n const hex = hsvaToHex(hsva)\n return (\n <>\n {\n setHsva(color.hsva);\n }}\n />\n {\n setHsva(color.hsva);\n }}\n />\n {\n setHsva(color.hsva);\n }}\n />\n
\n {hex}\n
\n \n );\n}\nexport default Demo;\n```\n\nDisable the opacity setting by setting `showAlpha` to `false`.\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\n\nimport {\n HsvaColor,\n hsvaToRgbaString,\n color as handleColor,\n validHex,\n hexToHsva,\n hsvaToHex,\n hsvaToHexa,\n} from '@uiw/color-convert';\n\nimport Chrome from '@uiw/react-color-chrome';\nimport { GithubPlacement } from '@uiw/react-color-github';\n\nfunction Demo() {\n const [hsva, setHsva] = useState({ h:0, s:25.71, v:82.35, a:0.32});\n const hex = hsvaToHex(hsva)\n return (\n <>\n {\n setHsva(color.hsva);\n }}\n />\n
\n {hex}\n
\n \n );\n}\nexport default Demo;\n```\n\n\n## Props\n\n```ts\nimport React from 'react';\nimport { GithubProps } from '@uiw/react-color-github';\nexport declare enum ChromeInputType {\n HEXA = \"hexa\",\n RGBA = \"rgba\",\n HSLA = \"hsla\"\n}\nexport interface ChromeProps extends Omit {\n inputType?: ChromeInputType;\n showEditableInput?: boolean;\n showEyeDropper?: boolean;\n showColorPreview?: boolean;\n showHue?: boolean;\n showAlpha?: boolean;\n}\ndeclare const Chrome: React.ForwardRefExoticComponent>;\nexport default Chrome;\n```\n\n\x3c!--footer-dividing--\x3e\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); -//# sourceMappingURL=137.a974f160.chunk.js.map \ No newline at end of file diff --git a/static/js/137.a974f160.chunk.js.map b/static/js/137.a974f160.chunk.js.map deleted file mode 100644 index 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\n components: { 24: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactColorChrome = _interopRequireDefault(require(\"@uiw/react-color-chrome\"));\nvar _reactColorGithub = require(\"@uiw/react-color-github\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 25.71,\n v: 82.35,\n a: 0.32\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n var hex = (0, _colorConvert.hsvaToHex)(hsva);\n return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(_reactColorChrome[\"default\"], {\n color: hsva,\n style: {\n \"float\": 'left'\n },\n placement: _reactColorGithub.GithubPlacement.Right,\n onChange: function onChange(color) {\n setHsva(color.hsva);\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactColorChrome[\"default\"], {\n color: hsva,\n placement: _reactColorGithub.GithubPlacement.TopRight,\n onChange: function onChange(color) {\n setHsva(color.hsva);\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactColorChrome[\"default\"], {\n color: hsva,\n style: {\n marginTop: 10,\n width: 140\n },\n placement: _reactColorGithub.GithubPlacement.TopRight,\n showEyeDropper: false,\n showColorPreview: false,\n showEditableInput: false,\n onChange: function onChange(color) {\n setHsva(color.hsva);\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n background: hex,\n marginTop: 30,\n padding: 10\n }\n }, hex));\n}\nreturn Demo; })(),82: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactColorChrome = _interopRequireDefault(require(\"@uiw/react-color-chrome\"));\nvar _reactColorGithub = require(\"@uiw/react-color-github\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 25.71,\n v: 82.35,\n a: 0.32\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n var hex = (0, _colorConvert.hsvaToHex)(hsva);\n return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(_reactColorChrome[\"default\"], {\n color: hsva,\n style: {\n marginTop: 10\n },\n placement: _reactColorGithub.GithubPlacement.TopRight,\n showAlpha: false,\n onChange: function onChange(color) {\n setHsva(color.hsva);\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n background: hex,\n marginTop: 30,\n padding: 10\n }\n }, hex));\n}\nreturn Demo; })(), },\n data: {\n \"24\": {\n \"name\": 24,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _colorConvert = require(\\\"@uiw/color-convert\\\");\\nvar _reactColorChrome = _interopRequireDefault(require(\\\"@uiw/react-color-chrome\\\"));\\nvar _reactColorGithub = require(\\\"@uiw/react-color-github\\\");\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nfunction Demo() {\\n var _useState = (0, _react.useState)({\\n h: 0,\\n s: 25.71,\\n v: 82.35,\\n a: 0.32\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n hsva = _useState2[0],\\n setHsva = _useState2[1];\\n var hex = (0, _colorConvert.hsvaToHex)(hsva);\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_react[\\\"default\\\"].Fragment, null, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorChrome[\\\"default\\\"], {\\n color: hsva,\\n style: {\\n \\\"float\\\": 'left'\\n },\\n placement: _reactColorGithub.GithubPlacement.Right,\\n onChange: function onChange(color) {\\n setHsva(color.hsva);\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorChrome[\\\"default\\\"], {\\n color: hsva,\\n placement: _reactColorGithub.GithubPlacement.TopRight,\\n onChange: function onChange(color) {\\n setHsva(color.hsva);\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorChrome[\\\"default\\\"], {\\n color: hsva,\\n style: {\\n marginTop: 10,\\n width: 140\\n },\\n placement: _reactColorGithub.GithubPlacement.TopRight,\\n showEyeDropper: false,\\n showColorPreview: false,\\n showEditableInput: false,\\n onChange: function onChange(color) {\\n setHsva(color.hsva);\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: {\\n background: hex,\\n marginTop: 30,\\n padding: 10\\n }\\n }, hex));\\n}\\nreturn Demo;\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\n\\nimport {\\n HsvaColor,\\n hsvaToRgbaString,\\n color as handleColor,\\n validHex,\\n hexToHsva,\\n hsvaToHex,\\n hsvaToHexa,\\n} from '@uiw/color-convert';\\n\\nimport Chrome from '@uiw/react-color-chrome';\\nimport { GithubPlacement } from '@uiw/react-color-github';\\n\\nfunction Demo() {\\n const [hsva, setHsva] = useState({ h:0, s:25.71, v:82.35, a:0.32});\\n const hex = hsvaToHex(hsva)\\n return (\\n <>\\n {\\n setHsva(color.hsva);\\n }}\\n />\\n {\\n setHsva(color.hsva);\\n }}\\n />\\n {\\n setHsva(color.hsva);\\n }}\\n />\\n
\\n {hex}\\n
\\n \\n );\\n}\\nexport default Demo;\"\n },\n \"82\": {\n \"name\": 82,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _colorConvert = require(\\\"@uiw/color-convert\\\");\\nvar _reactColorChrome = _interopRequireDefault(require(\\\"@uiw/react-color-chrome\\\"));\\nvar _reactColorGithub = require(\\\"@uiw/react-color-github\\\");\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nfunction Demo() {\\n var _useState = (0, _react.useState)({\\n h: 0,\\n s: 25.71,\\n v: 82.35,\\n a: 0.32\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n hsva = _useState2[0],\\n setHsva = _useState2[1];\\n var hex = (0, _colorConvert.hsvaToHex)(hsva);\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_react[\\\"default\\\"].Fragment, null, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorChrome[\\\"default\\\"], {\\n color: hsva,\\n style: {\\n marginTop: 10\\n },\\n placement: _reactColorGithub.GithubPlacement.TopRight,\\n showAlpha: false,\\n onChange: function onChange(color) {\\n setHsva(color.hsva);\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: {\\n background: hex,\\n marginTop: 30,\\n padding: 10\\n }\\n }, hex));\\n}\\nreturn Demo;\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\n\\nimport {\\n HsvaColor,\\n hsvaToRgbaString,\\n color as handleColor,\\n validHex,\\n hexToHsva,\\n hsvaToHex,\\n hsvaToHexa,\\n} from '@uiw/color-convert';\\n\\nimport Chrome from '@uiw/react-color-chrome';\\nimport { GithubPlacement } from '@uiw/react-color-github';\\n\\nfunction Demo() {\\n const [hsva, setHsva] = useState({ h:0, s:25.71, v:82.35, a:0.32});\\n const hex = hsvaToHex(hsva)\\n return (\\n <>\\n {\\n setHsva(color.hsva);\\n }}\\n />\\n
\\n {hex}\\n
\\n \\n );\\n}\\nexport default Demo;\"\n }\n},\n source: \"React Color Chrome\\n===\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-chrome)](https://bundlephobia.com/package/@uiw/react-color-chrome) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-chrome.svg)](https://www.npmjs.com/package/@uiw/react-color-chrome) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-chrome/file/README.md)\\n\\nChrome Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\\n\\n\\n\\n \\\"react-color-chrome\\\"\\n\\n\\n\\n\\n## Install\\n\\n```bash\\nnpm i @uiw/react-color-chrome\\n```\\n\\n## Usage\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\n\\nimport {\\n HsvaColor,\\n hsvaToRgbaString,\\n color as handleColor,\\n validHex,\\n hexToHsva,\\n hsvaToHex,\\n hsvaToHexa,\\n} from '@uiw/color-convert';\\n\\nimport Chrome from '@uiw/react-color-chrome';\\nimport { GithubPlacement } from '@uiw/react-color-github';\\n\\nfunction Demo() {\\n const [hsva, setHsva] = useState({ h:0, s:25.71, v:82.35, a:0.32});\\n const hex = hsvaToHex(hsva)\\n return (\\n <>\\n {\\n setHsva(color.hsva);\\n }}\\n />\\n {\\n setHsva(color.hsva);\\n }}\\n />\\n {\\n setHsva(color.hsva);\\n }}\\n />\\n
\\n {hex}\\n
\\n \\n );\\n}\\nexport default Demo;\\n```\\n\\nDisable the opacity setting by setting `showAlpha` to `false`.\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\n\\nimport {\\n HsvaColor,\\n hsvaToRgbaString,\\n color as handleColor,\\n validHex,\\n hexToHsva,\\n hsvaToHex,\\n hsvaToHexa,\\n} from '@uiw/color-convert';\\n\\nimport Chrome from '@uiw/react-color-chrome';\\nimport { GithubPlacement } from '@uiw/react-color-github';\\n\\nfunction Demo() {\\n const [hsva, setHsva] = useState({ h:0, s:25.71, v:82.35, a:0.32});\\n const hex = hsvaToHex(hsva)\\n return (\\n <>\\n {\\n setHsva(color.hsva);\\n }}\\n />\\n
\\n {hex}\\n
\\n \\n );\\n}\\nexport default Demo;\\n```\\n\\n\\n## Props\\n\\n```ts\\nimport React from 'react';\\nimport { GithubProps } from '@uiw/react-color-github';\\nexport declare enum ChromeInputType {\\n HEXA = \\\"hexa\\\",\\n RGBA = \\\"rgba\\\",\\n HSLA = \\\"hsla\\\"\\n}\\nexport interface ChromeProps extends Omit {\\n inputType?: ChromeInputType;\\n showEditableInput?: boolean;\\n showEyeDropper?: boolean;\\n showColorPreview?: boolean;\\n showHue?: boolean;\\n showAlpha?: boolean;\\n}\\ndeclare const Chrome: React.ForwardRefExoticComponent>;\\nexport default Chrome;\\n```\\n\\n\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","_typeof","o","Symbol","iterator","constructor","prototype","e","_react","r","__esModule","t","_getRequireWildcardCache","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_interopRequireWildcard","_colorConvert","_reactColorChrome","_reactColorGithub","WeakMap","_slicedToArray","Array","isArray","_arrayWithHoles","l","f","next","done","push","value","length","_iterableToArrayLimit","_arrayLikeToArray","toString","slice","name","from","test","_unsupportedIterableToArray","TypeError","_nonIterableRest","_useState2","useState","h","s","v","hsva","setHsva","hex","hsvaToHex","createElement","Fragment","color","style","placement","GithubPlacement","Right","onChange","TopRight","marginTop","width","showEyeDropper","showColorPreview","showEditableInput","background","padding","showAlpha","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/137.fbf5bb24.chunk.js b/static/js/137.fbf5bb24.chunk.js new file mode 100644 index 000000000..84760d3cb --- /dev/null +++ b/static/js/137.fbf5bb24.chunk.js @@ -0,0 +1,2 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[137],{5602:(e,t,r)=>{"use strict";var o=r(6784).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Pointer=void 0;var n=o(r(6651)),a=o(r(453)),l=(o(r(7804)),r(9424)),i=["className","prefixCls","left","top","style","fillProps"];t.Pointer=function(e){var t=e.className,r=e.prefixCls,o=e.left,u=e.top,s=e.style,c=e.fillProps,d=(0,a.default)(e,i),f=(0,n.default)((0,n.default)({},s),{},{position:"absolute",left:o,top:u}),p=(0,n.default)((0,n.default)({width:18,height:18,boxShadow:"var(--alpha-pointer-box-shadow)",borderRadius:"50%",backgroundColor:"var(--alpha-pointer-background-color)"},null===c||void 0===c?void 0:c.style),{},{transform:o?"translate(-9px, -1px)":"translate(-1px, -9px)"});return(0,l.jsx)("div",(0,n.default)((0,n.default)({className:"".concat(r,"-pointer ").concat(t||""),style:f},d),{},{children:(0,l.jsx)("div",(0,n.default)((0,n.default)({className:"".concat(r,"-fill")},c),{},{style:p}))}))}},4707:(e,t,r)=>{"use strict";var o=r(6784).default;Object.defineProperty(t,"__esModule",{value:!0});var n={BACKGROUND_IMG:!0};t.default=t.BACKGROUND_IMG=void 0;var a=o(r(6651)),l=o(r(453)),i=o(r(7804)),u=r(7604),s=o(r(7611)),c=r(5602);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var d=r(9424),f=["prefixCls","className","hsva","background","bgProps","innerProps","pointerProps","radius","width","height","direction","style","onChange","pointer"],p=t.BACKGROUND_IMG="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==",h=i.default.forwardRef((function(e,t){var r=e.prefixCls,o=void 0===r?"w-color-alpha":r,n=e.className,i=e.hsva,h=e.background,v=e.bgProps,b=void 0===v?{}:v,g=e.innerProps,m=void 0===g?{}:g,y=e.pointerProps,x=void 0===y?{}:y,w=e.radius,C=void 0===w?0:w,_=e.width,P=e.height,R=void 0===P?16:P,T=e.direction,j=void 0===T?"horizontal":T,S=e.style,A=e.onChange,k=e.pointer,E=(0,l.default)(e,f),H=function(e){A&&A((0,a.default)((0,a.default)({},i),{},{a:"horizontal"===j?e.left:e.top}),e)},B=(0,u.hsvaToHslaString)(Object.assign({},i,{a:1})),O="linear-gradient(to ".concat("horizontal"===j?"right":"bottom",", rgba(244, 67, 54, 0) 0%, ").concat(B," 100%)"),M={};"horizontal"===j?M.left="".concat(100*i.a,"%"):M.top="".concat(100*i.a,"%");var D=(0,a.default)((0,a.default)((0,a.default)({"--alpha-background-color":"#fff","--alpha-pointer-background-color":"rgb(248, 248, 248)","--alpha-pointer-box-shadow":"rgb(0 0 0 / 37%) 0px 1px 4px 0px",borderRadius:C,background:"url(".concat(p,") left center"),backgroundColor:"var(--alpha-background-color)"},{width:_,height:R}),S),{},{position:"relative"}),L=k&&"function"===typeof k?k((0,a.default)((0,a.default)({prefixCls:o},x),M)):(0,d.jsx)(c.Pointer,(0,a.default)((0,a.default)({},x),{},{prefixCls:o},M));return(0,d.jsxs)("div",(0,a.default)((0,a.default)({},E),{},{className:[o,"".concat(o,"-").concat(j),n||""].filter(Boolean).join(" "),style:D,ref:t,children:[(0,d.jsx)("div",(0,a.default)((0,a.default)({},b),{},{style:(0,a.default)({inset:0,position:"absolute",background:h||O,borderRadius:C},b.style)})),(0,d.jsx)(s.default,(0,a.default)((0,a.default)({},m),{},{style:(0,a.default)((0,a.default)({},m.style),{},{inset:0,zIndex:1,position:"absolute"}),onMove:H,onDown:H,children:L}))]}))}));h.displayName="Alpha";t.default=h},4352:(e,t,r)=>{"use strict";var o=r(6784).default,n=r(147).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.style,r=(0,l.default)(e,s),o=(0,i.useRef)(null),n=(0,i.useCallback)((function(){o.current.style.backgroundColor="var(--chrome-arrow-background-color)"}),[]),c=(0,i.useCallback)((function(){o.current.style.backgroundColor="transparent"}),[]);return(0,u.jsx)("div",(0,a.default)((0,a.default)({ref:o,style:(0,a.default)({marginLeft:5,cursor:"pointer",transition:"background-color .3s",borderRadius:2},t)},r),{},{onMouseEnter:n,onMouseLeave:c,children:(0,u.jsx)("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24",style:{display:"block"},children:(0,u.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 a=o(r(6651)),l=o(r(453)),i=n(r(7804)),u=r(9424),s=["style"];e.exports=t.default},7046:(e,t,r)=>{"use strict";var o=r(6784).default;Object.defineProperty(t,"__esModule",{value:!0}),t.EyeDropper=function(e){return(0,n.jsx)("svg",{viewBox:"0 0 512 512",height:"1em",width:"1em",onClick:function(){"EyeDropper"in window&&(new window.EyeDropper).open().then((function(t){var r;console.log(t),null===(r=e.onPickColor)||void 0===r||r.call(e,t.sRGBHex)}))},children:(0,n.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"})})},t.isSupportEyeDropper=void 0;o(r(7804));var n=r(9424);t.isSupportEyeDropper="EyeDropper"in window},2021:(e,t,r)=>{"use strict";var o=r(6784).default,n=r(147).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ChromeInputType=void 0;var a=o(r(6651)),l=o(r(8821)),i=o(r(453)),u=n(r(7804)),s=r(7604),c=n(r(5964)),d=o(r(3955)),f=o(r(345)),p=o(r(4707)),h=o(r(4226)),v=o(r(974)),b=o(r(5125)),g=o(r(4352)),m=r(7046),y=r(9424),x=["prefixCls","className","style","color","showEditableInput","showEyeDropper","showColorPreview","showHue","showAlpha","inputType","rectProps","onChange"],w=t.ChromeInputType=function(e){return e.HEXA="hexa",e.RGBA="rgba",e.HSLA="hsla",e}({}),C=u.default.forwardRef((function(e,t){var r=e.prefixCls,o=void 0===r?"w-color-chrome":r,n=e.className,C=e.style,_=e.color,P=e.showEditableInput,R=void 0===P||P,T=e.showEyeDropper,j=void 0===T||T,S=e.showColorPreview,A=void 0===S||S,k=e.showHue,E=void 0===k||k,H=e.showAlpha,B=void 0===H||H,O=e.inputType,M=void 0===O?w.RGBA:O,D=(e.rectProps,e.onChange),L=(0,i.default)(e,x),N="string"===typeof _&&(0,s.validHex)(_)?(0,s.hexToHsva)(_):_||{h:0,s:0,l:0,a:0},I=function(e){return D&&D((0,s.color)(e))},G=(0,u.useState)(M),W=(0,l.default)(G,2),z=W[0],q=W[1],U={paddingTop:6},F={textAlign:"center",paddingTop:4,paddingBottom:4},X=(0,a.default)({"--chrome-arrow-fill":"#333","--chrome-arrow-background-color":"#e8e8e8",borderRadius:0,flexDirection:"column",width:230,padding:0},C),Y={"--chrome-alpha-box-shadow":"rgb(0 0 0 / 25%) 0px 0px 1px inset",borderRadius:"50%",background:(0,s.hsvaToRgbaString)(N),boxShadow:"var(--chrome-alpha-box-shadow)"},V={height:14,width:14},$={style:(0,a.default)({},V),fillProps:{style:V}};return(0,y.jsx)(c.default,(0,a.default)((0,a.default)({ref:t,color:N,style:X,colors:void 0,className:[o,n].filter(Boolean).join(" "),placement:c.GithubPlacement.TopLeft},L),{},{addonAfter:(0,y.jsxs)(u.Fragment,{children:[(0,y.jsx)(d.default,{hsva:N,style:{width:"100%",height:130},onChange:function(e){I((0,a.default)((0,a.default)((0,a.default)({},N),e),{},{a:N.a}))}}),(0,y.jsxs)("div",{style:{padding:15,display:"flex",alignItems:"center",gap:10},children:[m.isSupportEyeDropper&&j&&(0,y.jsx)(m.EyeDropper,{onPickColor:function(e){var t=(0,s.hexToHsva)(e);I((0,a.default)({},t))}}),A&&(0,y.jsx)(p.default,{width:28,height:28,hsva:N,radius:2,style:{borderRadius:"50%"},bgProps:{style:{background:"transparent"}},innerProps:{style:Y},pointer:function(){return(0,y.jsx)(u.Fragment,{})}}),(0,y.jsxs)("div",{style:{flex:1},children:[1==E&&(0,y.jsx)(f.default,{hue:N.h,style:{width:"100%",height:12,borderRadius:2},pointerProps:$,bgProps:{style:{borderRadius:2}},onChange:function(e){I((0,a.default)((0,a.default)({},N),e))}}),1==B&&(0,y.jsx)(p.default,{hsva:N,style:{marginTop:6,height:12,borderRadius:2},pointerProps:$,bgProps:{style:{borderRadius:2}},onChange:function(e){I((0,a.default)((0,a.default)({},N),e))}})]})]}),R&&(0,y.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",padding:"0 15px 15px 15px",userSelect:"none"},children:[(0,y.jsxs)("div",{style:{flex:1},children:[z==w.RGBA&&(0,y.jsx)(v.default,{hsva:N,rProps:{labelStyle:U,inputStyle:F},gProps:{labelStyle:U,inputStyle:F},bProps:{labelStyle:U,inputStyle:F},aProps:0!=B&&{labelStyle:U,inputStyle:F},onChange:function(e){return I(e.hsva)}}),z===w.HEXA&&(0,y.jsx)(h.default,{label:"HEX",labelStyle:U,inputStyle:F,value:N.a>0&&N.a<1?(0,s.hsvaToHexa)(N).toLocaleUpperCase():(0,s.hsvaToHex)(N).toLocaleUpperCase(),onChange:function(e,t){"string"===typeof t&&I((0,s.hexToHsva)(/^#/.test(t)?t:"#".concat(t)))}}),z===w.HSLA&&(0,y.jsx)(b.default,{hsva:N,hProps:{labelStyle:U,inputStyle:F},sProps:{labelStyle:U,inputStyle:F},lProps:{labelStyle:U,inputStyle:F},aProps:0!=B&&{labelStyle:U,inputStyle:F},onChange:function(e){return I(e.hsva)}})]}),(0,y.jsx)(g.default,{onClick:function(){z===w.RGBA&&q(w.HSLA),z===w.HSLA&&q(w.HEXA),z===w.HEXA&&q(w.RGBA)}})]})]}),rectRender:function(){return(0,y.jsx)(u.Fragment,{})}}))}));C.displayName="Chrome";t.default=C},5125:(e,t,r)=>{"use strict";var o=r(6784).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(6651)),a=o(r(453)),l=o(r(7804)),i=o(r(974)),u=r(7604),s=r(9424),c=["prefixCls","hsva","hProps","sProps","lProps","aProps","className","onChange"],d=l.default.forwardRef((function(e,t){var r=e.prefixCls,o=void 0===r?"w-color-editable-input-hsla":r,l=e.hsva,d=e.hProps,f=void 0===d?{}:d,p=e.sProps,h=void 0===p?{}:p,v=e.lProps,b=void 0===v?{}:v,g=e.aProps,m=void 0===g?{}:g,y=e.className,x=e.onChange,w=(0,a.default)(e,c),C=l?(0,u.hsvaToHsla)(l):{h:0,s:0,l:0,a:0},_=function(e,t,r){"number"===typeof e&&("h"===t&&(e<0&&(e=0),e>360&&(e=360),x&&x((0,u.color)((0,u.hslaToHsva)((0,n.default)((0,n.default)({},C),{},{h:e}))))),"s"===t&&(e<0&&(e=0),e>100&&(e=100),x&&x((0,u.color)((0,u.hslaToHsva)((0,n.default)((0,n.default)({},C),{},{s:e}))))),"l"===t&&(e<0&&(e=0),e>100&&(e=100),x&&x((0,u.color)((0,u.hslaToHsva)((0,n.default)((0,n.default)({},C),{},{l:e}))))),"a"===t&&(e<0&&(e=0),e>1&&(e=1),x&&x((0,u.color)((0,u.hslaToHsva)((0,n.default)((0,n.default)({},C),{},{a:e}))))))},P=0!=m&&(0,n.default)((0,n.default)({label:"A",value:Math.round(100*C.a)/100},m),{},{onChange:function(e,t){return _(t,"a")}});return(0,s.jsx)(i.default,(0,n.default)({ref:t,hsva:l,rProps:(0,n.default)((0,n.default)({label:"H",value:Math.round(C.h)},f),{},{onChange:function(e,t){return _(t,"h")}}),gProps:(0,n.default)((0,n.default)({label:"S",value:"".concat(Math.round(C.s),"%")},h),{},{onChange:function(e,t){return _(t,"s")}}),bProps:(0,n.default)((0,n.default)({label:"L",value:"".concat(Math.round(C.l),"%")},b),{},{onChange:function(e,t){return _(t,"l")}}),aProps:P,className:[o,y||""].filter(Boolean).join(" ")},w))}));d.displayName="EditableInputHSLA";t.default=d;e.exports=t.default},974:(e,t,r)=>{"use strict";var o=r(6784).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(6651)),a=o(r(453)),l=o(r(7804)),i=o(r(4226)),u=r(7604),s=r(9424),c=["prefixCls","hsva","placement","rProps","gProps","bProps","aProps","className","style","onChange"],d=l.default.forwardRef((function(e,t){var r=e.prefixCls,o=void 0===r?"w-color-editable-input-rgba":r,l=e.hsva,d=e.placement,f=void 0===d?"bottom":d,p=e.rProps,h=void 0===p?{}:p,v=e.gProps,b=void 0===v?{}:v,g=e.bProps,m=void 0===g?{}:g,y=e.aProps,x=void 0===y?{}:y,w=e.className,C=e.style,_=e.onChange,P=(0,a.default)(e,c),R=l?(0,u.hsvaToRgba)(l):{};function T(e){var t=Number(e.target.value);t&&t>255&&(e.target.value="255"),t&&t<0&&(e.target.value="0")}var j=function(e,t,r){"number"===typeof e&&("a"===t&&(e<0&&(e=0),e>100&&(e=100),_&&_((0,u.color)((0,u.rgbaToHsva)((0,n.default)((0,n.default)({},R),{},{a:e/100}))))),e>255&&(e=255,r.target.value="255"),e<0&&(e=0,r.target.value="0"),"r"===t&&_&&_((0,u.color)((0,u.rgbaToHsva)((0,n.default)((0,n.default)({},R),{},{r:e})))),"g"===t&&_&&_((0,u.color)((0,u.rgbaToHsva)((0,n.default)((0,n.default)({},R),{},{g:e})))),"b"===t&&_&&_((0,u.color)((0,u.rgbaToHsva)((0,n.default)((0,n.default)({},R),{},{b:e})))))};return(0,s.jsxs)("div",(0,n.default)((0,n.default)({ref:t,className:[o,w||""].filter(Boolean).join(" ")},P),{},{style:(0,n.default)({fontSize:11,display:"flex"},C),children:[(0,s.jsx)(i.default,(0,n.default)((0,n.default)({label:"R",value:R.r||0,onBlur:T,placement:f,onChange:function(e,t){return j(t,"r",e)}},h),{},{style:(0,n.default)({},h.style)})),(0,s.jsx)(i.default,(0,n.default)((0,n.default)({label:"G",value:R.g||0,onBlur:T,placement:f,onChange:function(e,t){return j(t,"g",e)}},b),{},{style:(0,n.default)({marginLeft:5},h.style)})),(0,s.jsx)(i.default,(0,n.default)((0,n.default)({label:"B",value:R.b||0,onBlur:T,placement:f,onChange:function(e,t){return j(t,"b",e)}},m),{},{style:(0,n.default)({marginLeft:5},m.style)})),x&&(0,s.jsx)(i.default,(0,n.default)((0,n.default)({label:"A",value:R.a?parseInt(String(100*R.a),10):0,onBlur:T,placement:f,onChange:function(e,t){return j(t,"a",e)}},x),{},{style:(0,n.default)({marginLeft:5},x.style)}))]}))}));d.displayName="EditableInputRGBA";t.default=d;e.exports=t.default},4226:(e,t,r)=>{"use strict";var o=r(6784).default,n=r(147).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(r(6651)),l=o(r(8821)),i=o(r(453)),u=n(r(7804)),s=r(9424),c=["prefixCls","placement","label","value","className","style","labelStyle","inputStyle","onChange","onBlur"],d=u.default.forwardRef((function(e,t){var r=e.prefixCls,o=void 0===r?"w-color-editable-input":r,n=e.placement,d=void 0===n?"bottom":n,f=e.label,p=e.value,h=e.className,v=e.style,b=e.labelStyle,g=e.inputStyle,m=e.onChange,y=e.onBlur,x=(0,i.default)(e,c),w=(0,u.useState)(p),C=(0,l.default)(w,2),_=C[0],P=C[1],R=(0,u.useRef)(!1);(0,u.useEffect)((function(){e.value!==_&&(R.current||P(e.value))}),[e.value]);var T={};"bottom"===d&&(T.flexDirection="column"),"top"===d&&(T.flexDirection="column-reverse"),"left"===d&&(T.flexDirection="row-reverse");var j=(0,a.default)((0,a.default)({"--editable-input-label-color":"rgb(153, 153, 153)","--editable-input-box-shadow":"rgb(204 204 204) 0px 0px 0px 1px inset","--editable-input-color":"#666",position:"relative",alignItems:"center",display:"flex",fontSize:11},T),v),S=(0,a.default)({width:"100%",paddingTop:2,paddingBottom:2,paddingLeft:3,paddingRight:3,fontSize:11,background:"transparent",boxSizing:"border-box",border:"none",color:"var(--editable-input-color)",boxShadow:"var(--editable-input-box-shadow)"},g);return(0,s.jsxs)("div",{className:[o,h||""].filter(Boolean).join(" "),style:j,children:[(0,s.jsx)("input",(0,a.default)((0,a.default)({ref:t,value:_,onChange:function(e,t){var r=(t||e.target.value).trim().replace(/^#/,"");/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(r)&&m&&m(e,r);var o=function(e){return Number(String(e).replace(/%/g,""))}(r);isNaN(o)||m&&m(e,o),P(r)},onBlur:function(t){R.current=!1,P(e.value),y&&y(t)},autoComplete:"off",onFocus:function(){return R.current=!0}},x),{},{style:S})),f&&(0,s.jsx)("span",{style:(0,a.default)({color:"var(--editable-input-label-color)",textTransform:"capitalize"},b),children:f})]})}));d.displayName="EditableInput";t.default=d;e.exports=t.default},5638:(e,t,r)=>{"use strict";var o=r(147).default,n=r(6784).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.style,r=e.title,o=e.checked,n=(e.color,e.onClick),s=e.rectProps,c=(0,l.useRef)(null),d=(0,l.useCallback)((function(){c.current.style.zIndex="2",c.current.style.outline="#fff solid 2px",c.current.style.boxShadow="rgb(0 0 0 / 25%) 0 0 5px 2px"}),[]),f=(0,l.useCallback)((function(){o||(c.current.style.zIndex="0",c.current.style.outline="initial",c.current.style.boxShadow="initial")}),[o]),p=o?{zIndex:1,outline:"#fff solid 2px",boxShadow:"rgb(0 0 0 / 25%) 0 0 5px 2px"}:{zIndex:0};return(0,i.jsx)("div",(0,a.default)((0,a.default)({ref:c,title:r},s),{},{onClick:n,onMouseEnter:d,onMouseLeave:f,style:(0,a.default)((0,a.default)((0,a.default)((0,a.default)({},t),{},{marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25},u),p),null===s||void 0===s?void 0:s.style)}))};var a=n(r(6651)),l=o(r(7804)),i=r(9424),u={marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25};e.exports=t.default},5964:(e,t,r)=>{"use strict";var o=r(6784).default,n=r(147).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.GithubPlacement=void 0;var a=o(r(4126)),l=o(r(8304)),i=o(r(6651)),u=o(r(453)),s=n(r(7804)),c=r(7604),d=o(r(5560)),f=o(r(5638)),p=r(9424),h=["prefixCls","placement","className","style","color","colors","rectProps","onChange","rectRender"],v=["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],b=t.GithubPlacement=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}({}),g=s.default.forwardRef((function(e,t){var r=e.prefixCls,o=void 0===r?"w-color-github":r,n=e.placement,g=void 0===n?b.TopRight:n,m=e.className,y=e.style,x=e.color,w=e.colors,C=void 0===w?v:w,_=e.rectProps,P=void 0===_?{}:_,R=e.onChange,T=e.rectRender,j=(0,u.default)(e,h),S="string"===typeof x&&(0,c.validHex)(x)?(0,c.hexToHsva)(x):x,A=x?(0,c.hsvaToHex)(S):"",k=(0,i.default)({"--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},y),E={borderStyle:"solid",position:"absolute"},H=(0,i.default)({},E),B=(0,i.default)({},E);/^T/.test(g)&&(H.borderWidth="0 8px 8px",H.borderColor="transparent transparent var(--github-arrow-border-color)",B.borderWidth="0 7px 7px",B.borderColor="transparent transparent var(--github-background-color)"),g===b.TopRight&&(H.top=-8,B.top=-7),g===b.Top&&(H.top=-8,B.top=-7),g===b.TopLeft&&(H.top=-8,B.top=-7),/^B/.test(g)&&(H.borderWidth="8px 8px 0",H.borderColor="var(--github-arrow-border-color) transparent transparent",B.borderWidth="7px 7px 0",B.borderColor="var(--github-background-color) transparent transparent",g===b.BottomRight&&(H.top="100%",B.top="100%"),g===b.Bottom&&(H.top="100%",B.top="100%"),g===b.BottomLeft&&(H.top="100%",B.top="100%")),/^(B|T)/.test(g)&&(g!==b.Top&&g!==b.Bottom||(H.left="50%",H.marginLeft=-8,B.left="50%",B.marginLeft=-7),g!==b.TopRight&&g!==b.BottomRight||(H.right=10,B.right=11),g!==b.TopLeft&&g!==b.BottomLeft||(H.left=7,B.left=8)),/^L/.test(g)&&(H.borderWidth="8px 8px 8px 0",H.borderColor="transparent var(--github-arrow-border-color) transparent transparent",B.borderWidth="7px 7px 7px 0",B.borderColor="transparent var(--github-background-color) transparent transparent",H.left=-8,B.left=-7),/^R/.test(g)&&(H.borderWidth="8px 0 8px 8px",H.borderColor="transparent transparent transparent var(--github-arrow-border-color)",B.borderWidth="7px 0 7px 7px",B.borderColor="transparent transparent transparent var(--github-background-color)",H.right=-8,B.right=-7),/^(L|R)/.test(g)&&(g!==b.RightTop&&g!==b.LeftTop||(H.top=5,B.top=6),g!==b.Left&&g!==b.Right||(H.top="50%",B.top="50%",H.marginTop=-8,B.marginTop=-7),g!==b.LeftBottom&&g!==b.RightBottom||(H.top="100%",B.top="100%",H.marginTop=-21,B.marginTop=-20));return(0,p.jsx)(d.default,(0,i.default)((0,i.default)({ref:t,className:[o,m].filter(Boolean).join(" "),colors:C,color:A,rectRender:function(e){var t=(0,l.default)({},((0,a.default)(e),e)),r=T&&T((0,i.default)({},t));return r||(0,p.jsx)(f.default,(0,i.default)((0,i.default)({},t),{},{rectProps:P}))}},j),{},{onChange:function(e){return R&&R((0,c.color)(e))},style:k,rectProps:{style:{marginRight:0,marginBottom:0,borderRadius:0,height:25,width:25}},addonBefore:(0,p.jsxs)(s.Fragment,{children:[(0,p.jsx)("div",{style:H}),(0,p.jsx)("div",{style:B})]})}))}));g.displayName="Github";t.default=g},345:(e,t,r)=>{"use strict";var o=r(6784).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(6651)),a=o(r(453)),l=o(r(7804)),i=o(r(4707)),u=r(9424),s=["prefixCls","className","hue","onChange","direction"],c=l.default.forwardRef((function(e,t){var r=e.prefixCls,o=void 0===r?"w-color-hue":r,l=e.className,c=e.hue,d=void 0===c?0:c,f=e.onChange,p=e.direction,h=void 0===p?"horizontal":p,v=(0,a.default)(e,s);return(0,u.jsx)(i.default,(0,n.default)((0,n.default)({ref:t,className:"".concat(o," ").concat(l||"")},v),{},{direction:h,background:"linear-gradient(to ".concat("horizontal"===h?"right":"bottom",", rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)"),hsva:{h:d,s:100,v:100,a:d/360},onChange:function(e,t){f&&f({h:"horizontal"===h?360*t.left:360*t.top})}}))}));c.displayName="Hue";t.default=c;e.exports=t.default},5106:(e,t,r)=>{"use strict";var o=r(147).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Pointer=void 0;var n=o(r(7804)),a=r(9424);t.Pointer=function(e){var t=e.className,r=e.color,o=e.left,l=e.top,i=e.prefixCls,u={position:"absolute",top:l,left:o},s={"--saturation-pointer-box-shadow":"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",width:6,height:6,transform:"translate(-3px, -3px)",boxShadow:"var(--saturation-pointer-box-shadow)",borderRadius:"50%",backgroundColor:r};return(0,n.useMemo)((function(){return(0,a.jsx)("div",{className:"".concat(i,"-pointer ").concat(t||""),style:u,children:(0,a.jsx)("div",{className:"".concat(i,"-fill"),style:s})})}),[l,o,r,t,i])}},3955:(e,t,r)=>{"use strict";var o=r(6784).default,n=r(147).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(r(6651)),l=o(r(453)),i=n(r(7804)),u=r(7604),s=o(r(7611)),c=r(5106),d=r(9424),f=["prefixCls","radius","pointer","className","hue","style","hsva","onChange"],p=i.default.forwardRef((function(e,t){var r,o=e.prefixCls,n=void 0===o?"w-color-saturation":o,p=e.radius,h=void 0===p?0:p,v=e.pointer,b=e.className,g=e.hue,m=void 0===g?0:g,y=e.style,x=e.hsva,w=e.onChange,C=(0,l.default)(e,f),_=(0,a.default)((0,a.default)({width:200,height:200,borderRadius:h},y),{},{position:"relative"}),P=function(e,t){w&&x&&w({h:x.h,s:100*e.left,v:100*(1-e.top),a:x.a})},R=(0,i.useMemo)((function(){if(!x)return null;var e={top:"".concat(100-x.v,"%"),left:"".concat(x.s,"%"),color:(0,u.hsvaToHslaString)(x)};return v&&"function"===typeof v?v((0,a.default)({prefixCls:n},e)):(0,d.jsx)(c.Pointer,(0,a.default)({prefixCls:n},e))}),[x,v,n]);return(0,d.jsx)(s.default,(0,a.default)((0,a.default)({className:[n,b||""].filter(Boolean).join(" ")},C),{},{style:(0,a.default)({position:"absolute",inset:0,cursor:"crosshair",backgroundImage:"linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, hsl(".concat(null!==(r=null===x||void 0===x?void 0:x.h)&&void 0!==r?r:m,", 100%, 50%))")},_),ref:t,onMove:P,onDown:P,children:R}))}));p.displayName="Saturation";t.default=p;e.exports=t.default},5560:(e,t,r)=>{"use strict";var o=r(6784).default,n=r(147).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(r(564)),l=o(r(6651)),i=o(r(453)),u=n(r(7804)),s=r(7604),c=r(9424),d=["prefixCls","className","color","colors","style","rectProps","onChange","addonAfter","addonBefore","rectRender"],f=u.default.forwardRef((function(e,t){var r=e.prefixCls,o=void 0===r?"w-color-swatch":r,n=e.className,f=e.color,p=e.colors,h=void 0===p?[]:p,v=e.style,b=e.rectProps,g=void 0===b?{}:b,m=e.onChange,y=e.addonAfter,x=e.addonBefore,w=e.rectRender,C=(0,i.default)(e,d),_=(0,l.default)({"--swatch-background-color":"rgb(144, 19, 254)",background:"var(--swatch-background-color)",height:15,width:15,marginRight:5,marginBottom:5,cursor:"pointer",position:"relative",outline:"none",borderRadius:2},g.style),P=function(e,t){m&&m((0,s.hexToHsva)(e),(0,s.color)((0,s.hexToHsva)(e)),t)};return(0,c.jsxs)("div",(0,l.default)((0,l.default)({ref:t},C),{},{className:[o,n||""].filter(Boolean).join(" "),style:(0,l.default)({display:"flex",flexWrap:"wrap",position:"relative"},v),children:[x&&u.default.isValidElement(x)&&x,h&&Array.isArray(h)&&h.map((function(e,t){var r="",o="";"string"===typeof e&&(r=e,o=e),"object"===(0,a.default)(e)&&e.color&&(r=e.title||e.color,o=e.color);var n=f&&f.toLocaleLowerCase()===o.toLocaleLowerCase(),i=w&&w({title:r,color:o,checked:!!n,style:(0,l.default)((0,l.default)({},_),{},{background:o}),onClick:function(e){return P(o,e)}});if(i)return(0,c.jsx)(u.Fragment,{children:i},t);var s=g.children&&u.default.isValidElement(g.children)?u.default.cloneElement(g.children,{color:o,checked:n}):null;return(0,c.jsx)("div",(0,l.default)((0,l.default)({tabIndex:0,title:r,onClick:function(e){return P(o,e)}},g),{},{children:s,style:(0,l.default)((0,l.default)({},_),{},{background:o})}),t)})),y&&u.default.isValidElement(y)&&y]}))}));f.displayName="Swatch";t.default=f;e.exports=t.default},7611:(e,t,r)=>{"use strict";var o=r(6784).default,n=r(147).default;Object.defineProperty(t,"__esModule",{value:!0});var a={};t.default=void 0;var l=o(r(6651)),i=o(r(8821)),u=o(r(453)),s=n(r(7804)),c=r(1974);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(a,e)||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var d=r(9424),f=["prefixCls","className","onMove","onDown"],p=s.default.forwardRef((function(e,t){var r=e.prefixCls,o=void 0===r?"w-color-interactive":r,n=e.className,a=e.onMove,p=e.onDown,h=(0,u.default)(e,f),v=(0,s.useRef)(null),b=(0,s.useRef)(!1),g=(0,s.useState)(!1),m=(0,i.default)(g,2),y=m[0],x=m[1],w=(0,c.useEventCallback)(a),C=(0,c.useEventCallback)(p),_=(0,s.useCallback)((function(e){(0,c.preventDefaultMove)(e),((0,c.isTouch)(e)?e.touches.length>0:e.buttons>0)&&v.current?w&&w((0,c.getRelativePosition)(v.current,e),e):x(!1)}),[w]),P=(0,s.useCallback)((function(){return x(!1)}),[]),R=(0,s.useCallback)((function(e){var t=e?window.addEventListener:window.removeEventListener;t(b.current?"touchmove":"mousemove",_),t(b.current?"touchend":"mouseup",P)}),[]);(0,s.useEffect)((function(){return R(y),function(){y&&R(!1)}}),[y,R]);var T=(0,s.useCallback)((function(e){(0,c.preventDefaultMove)(e.nativeEvent),function(e){return!(b.current&&!(0,c.isTouch)(e))&&(b.current=(0,c.isTouch)(e),!0)}(e.nativeEvent)&&(C&&C((0,c.getRelativePosition)(v.current,e.nativeEvent),e.nativeEvent),x(!0))}),[C]);return(0,d.jsx)("div",(0,l.default)((0,l.default)({},h),{},{className:[o,n||""].filter(Boolean).join(" "),style:(0,l.default)((0,l.default)({},h.style),{},{touchAction:"none"}),ref:v,tabIndex:0,onMouseDown:T,onTouchStart:T}))}));p.displayName="Interactive";t.default=p},1974:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.preventDefaultMove=t.isTouch=t.getRelativePosition=t.clamp=void 0,t.useEventCallback=function(e){var t=(0,o.useRef)(e);return(0,o.useEffect)((function(){t.current=e})),(0,o.useCallback)((function(e,r){return t.current&&t.current(e,r)}),[])};var o=r(7804);var n=t.isTouch=function(e){return"touches"in e},a=(t.preventDefaultMove=function(e){!n(e)&&e.preventDefault&&e.preventDefault()},t.clamp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e>r?r:e{"use strict";r.r(t),r.d(t,{default:()=>o});const o={components:{24:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,o=function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=e(t)&&"function"!=typeof t)return{default:t};var o=i(r);if(o&&o.has(t))return o.get(t);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&{}.hasOwnProperty.call(t,l)){var u=a?Object.getOwnPropertyDescriptor(t,l):null;u&&(u.get||u.set)?Object.defineProperty(n,l,u):n[l]=t[l]}return n.default=t,o&&o.set(t,n),n}(r(7804)),n=r(7604),a=(t=r(2021))&&t.__esModule?t:{default:t},l=r(5964);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,a,l,i=[],u=!0,s=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(o=a.call(r)).done)&&(i.push(o.value),i.length!==t);u=!0);}catch(e){s=!0,n=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(s)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);re.length)&&(t=e.length);for(var r=0,o=Array(t);r r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 25.71,\n v: 82.35,\n a: 0.32\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n var hex = (0, _colorConvert.hsvaToHex)(hsva);\n return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_reactColorChrome["default"], {\n color: hsva,\n style: {\n "float": \'left\'\n },\n placement: _reactColorGithub.GithubPlacement.Right,\n onChange: function onChange(color) {\n setHsva(color.hsva);\n }\n }), /*#__PURE__*/_react["default"].createElement(_reactColorChrome["default"], {\n color: hsva,\n placement: _reactColorGithub.GithubPlacement.TopRight,\n onChange: function onChange(color) {\n setHsva(color.hsva);\n }\n }), /*#__PURE__*/_react["default"].createElement(_reactColorChrome["default"], {\n color: hsva,\n style: {\n marginTop: 10,\n width: 140\n },\n placement: _reactColorGithub.GithubPlacement.TopRight,\n showEyeDropper: false,\n showColorPreview: false,\n showEditableInput: false,\n onChange: function onChange(color) {\n setHsva(color.hsva);\n }\n }), /*#__PURE__*/_react["default"].createElement("div", {\n style: {\n background: hex,\n marginTop: 30,\n padding: 10\n }\n }, hex));\n}\nreturn Demo;',language:"jsx",value:"import React, { useState } from 'react';\n\nimport {\n HsvaColor,\n hsvaToRgbaString,\n color as handleColor,\n validHex,\n hexToHsva,\n hsvaToHex,\n hsvaToHexa,\n} from '@uiw/color-convert';\n\nimport Chrome from '@uiw/react-color-chrome';\nimport { GithubPlacement } from '@uiw/react-color-github';\n\nfunction Demo() {\n const [hsva, setHsva] = useState({ h:0, s:25.71, v:82.35, a:0.32});\n const hex = hsvaToHex(hsva)\n return (\n <>\n {\n setHsva(color.hsva);\n }}\n />\n {\n setHsva(color.hsva);\n }}\n />\n {\n setHsva(color.hsva);\n }}\n />\n
\n {hex}\n
\n \n );\n}\nexport default Demo;"},82:{name:82,meta:{},code:'"use strict";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require("react"));\nvar _colorConvert = require("@uiw/color-convert");\nvar _reactColorChrome = _interopRequireDefault(require("@uiw/react-color-chrome"));\nvar _reactColorGithub = require("@uiw/react-color-github");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }\nfunction _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 25.71,\n v: 82.35,\n a: 0.32\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n var hex = (0, _colorConvert.hsvaToHex)(hsva);\n return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_reactColorChrome["default"], {\n color: hsva,\n style: {\n marginTop: 10\n },\n placement: _reactColorGithub.GithubPlacement.TopRight,\n showAlpha: false,\n onChange: function onChange(color) {\n setHsva(color.hsva);\n }\n }), /*#__PURE__*/_react["default"].createElement("div", {\n style: {\n background: hex,\n marginTop: 30,\n padding: 10\n }\n }, hex));\n}\nreturn Demo;',language:"jsx",value:"import React, { useState } from 'react';\n\nimport {\n HsvaColor,\n hsvaToRgbaString,\n color as handleColor,\n validHex,\n hexToHsva,\n hsvaToHex,\n hsvaToHexa,\n} from '@uiw/color-convert';\n\nimport Chrome from '@uiw/react-color-chrome';\nimport { GithubPlacement } from '@uiw/react-color-github';\n\nfunction Demo() {\n const [hsva, setHsva] = useState({ h:0, s:25.71, v:82.35, a:0.32});\n const hex = hsvaToHex(hsva)\n return (\n <>\n {\n setHsva(color.hsva);\n }}\n />\n
\n {hex}\n
\n \n );\n}\nexport default Demo;"}},source:"React Color Chrome\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-chrome)](https://bundlephobia.com/package/@uiw/react-color-chrome) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-chrome.svg)](https://www.npmjs.com/package/@uiw/react-color-chrome) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-chrome/file/README.md)\n\nChrome Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\n\n\x3c!--rehype:ignore:start--\x3e\n\n \"react-color-chrome\"\n\n\n\x3c!--rehype:ignore:end--\x3e\n\n## Install\n\n```bash\nnpm i @uiw/react-color-chrome\n```\n\n## Usage\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\n\nimport {\n HsvaColor,\n hsvaToRgbaString,\n color as handleColor,\n validHex,\n hexToHsva,\n hsvaToHex,\n hsvaToHexa,\n} from '@uiw/color-convert';\n\nimport Chrome from '@uiw/react-color-chrome';\nimport { GithubPlacement } from '@uiw/react-color-github';\n\nfunction Demo() {\n const [hsva, setHsva] = useState({ h:0, s:25.71, v:82.35, a:0.32});\n const hex = hsvaToHex(hsva)\n return (\n <>\n {\n setHsva(color.hsva);\n }}\n />\n {\n setHsva(color.hsva);\n }}\n />\n {\n setHsva(color.hsva);\n }}\n />\n
\n {hex}\n
\n \n );\n}\nexport default Demo;\n```\n\nDisable the opacity setting by setting `showAlpha` to `false`.\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\n\nimport {\n HsvaColor,\n hsvaToRgbaString,\n color as handleColor,\n validHex,\n hexToHsva,\n hsvaToHex,\n hsvaToHexa,\n} from '@uiw/color-convert';\n\nimport Chrome from '@uiw/react-color-chrome';\nimport { GithubPlacement } from '@uiw/react-color-github';\n\nfunction Demo() {\n const [hsva, setHsva] = useState({ h:0, s:25.71, v:82.35, a:0.32});\n const hex = hsvaToHex(hsva)\n return (\n <>\n {\n setHsva(color.hsva);\n }}\n />\n
\n {hex}\n
\n \n );\n}\nexport default Demo;\n```\n\n\n## Props\n\n```ts\nimport React from 'react';\nimport { GithubProps } from '@uiw/react-color-github';\nexport declare enum ChromeInputType {\n HEXA = \"hexa\",\n RGBA = \"rgba\",\n HSLA = \"hsla\"\n}\nexport interface ChromeProps extends Omit {\n inputType?: ChromeInputType;\n showEditableInput?: boolean;\n showEyeDropper?: boolean;\n showColorPreview?: boolean;\n showHue?: boolean;\n showAlpha?: boolean;\n}\ndeclare const Chrome: React.ForwardRefExoticComponent>;\nexport default Chrome;\n```\n\n\x3c!--footer-dividing--\x3e\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}},8304:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{e.exports=function(e){if(null==e)throw new TypeError("Cannot destructure "+e)},e.exports.__esModule=!0,e.exports.default=e.exports}}]); +//# sourceMappingURL=137.fbf5bb24.chunk.js.map \ No newline at end of file diff --git a/static/js/137.fbf5bb24.chunk.js.map b/static/js/137.fbf5bb24.chunk.js.map new file mode 100644 index 000000000..146deaf83 --- /dev/null +++ b/static/js/137.fbf5bb24.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/137.fbf5bb24.chunk.js","mappings":"iGAEA,IAAIA,EAAyBC,EAAAA,MAAAA,QAC7BC,OAAOC,eAAeC,EAAS,aAAc,CAC3CC,OAAO,IAETD,EAAQE,aAAU,EAClB,IAAIC,EAAiBP,EAAuBC,EAAQ,OAChDO,EAA4BR,EAAuBC,EAAQ,MAE3DQ,GADST,EAAuBC,EAAQ,OAC1BA,EAAQ,OACtBS,EAAY,CAAC,YAAa,YAAa,OAAQ,MAAO,QAAS,a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AAU,SAAkB+D,GAC1BqQ,EAAQrQ,EAAM5E,KAChB,IACejB,EAAgB,QAAEmW,cAAc,MAAO,CACtDpX,MAAO,CACLmC,WAAY0H,EACZI,UAAW,GACXlB,QAAS,KAEVc,GACL,CACc,CA7CQ,IA8ClBwN,KAAM,CACR,GAAM,CACJ,KAAQ,GACR,KAAQ,CAAC,EACT,KAAQ,w1IACR,SAAY,MACZ,MAAS,+vCAEX,GAAM,CACJ,KAAQ,GACR,KAAQ,CAAC,EACT,KAAQ,yvHACR,SAAY,MACZ,MAAS,wzBAGTC,OAAQ,0qIACRC,SAAS,GACTC,aAAa,G,WCjIjB,SAASC,IACP,OAAOrS,EAAOhG,QAAUqY,EAAWvY,OAAOqE,OAASrE,OAAOqE,OAAOmU,OAAS,SAAU9B,GAClF,IAAK,IAAIL,EAAI,EAAGA,EAAIjB,UAAUrB,OAAQsC,IAAK,CACzC,IAAIE,EAAInB,UAAUiB,GAClB,IAAK,IAAI1I,KAAK4I,GAAG,CAAG,GAAEhU,eAAeC,KAAK+T,EAAG5I,KAAO+I,EAAE/I,GAAK4I,EAAE5I,GAC/D,CACA,OAAO+I,CACT,EAAGxQ,EAAOhG,QAAQoW,YAAa,EAAMpQ,EAAOhG,QAAiB,QAAIgG,EAAOhG,QAASqY,EAASE,MAAM,KAAMrD,UACxG,CACAlP,EAAOhG,QAAUqY,EAAUrS,EAAOhG,QAAQoW,YAAa,EAAMpQ,EAAOhG,QAAiB,QAAIgG,EAAOhG,O,WCNhGgG,EAAOhG,QAHP,SAAmCqW,GACjC,GAAI,MAAQA,EAAG,MAAM,IAAIwB,UAAU,sBAAwBxB,EAC7D,EAC4CrQ,EAAOhG,QAAQoW,YAAa,EAAMpQ,EAAOhG,QAAiB,QAAIgG,EAAOhG,O","sources":["../../packages/color-alpha/cjs/Pointer.js","../../packages/color-alpha/cjs/index.js","../../packages/color-chrome/cjs/Arrow.js","../../packages/color-chrome/cjs/EyeDropper.js","../../packages/color-chrome/cjs/index.js","../../packages/color-editable-input-hsla/cjs/index.js","../../packages/color-editable-input-rgba/cjs/index.js","../../packages/color-editable-input/cjs/index.js","../../packages/color-github/cjs/Point.js","../../packages/color-github/cjs/index.js","../../packages/color-hue/cjs/index.js","../../packages/color-saturation/cjs/Pointer.js","../../packages/color-saturation/cjs/index.js","../../packages/color-swatch/cjs/index.js","../../packages/drag-event-interactive/cjs/index.js","../../packages/drag-event-interactive/cjs/utils.js","../../packages/color-chrome/README.md","../../node_modules/@babel/runtime/helpers/extends.js","../../node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js"],"sourcesContent":["\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Pointer = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"className\", \"prefixCls\", \"left\", \"top\", \"style\", \"fillProps\"];\nvar Pointer = exports.Pointer = function Pointer(_ref) {\n var className = _ref.className,\n prefixCls = _ref.prefixCls,\n left = _ref.left,\n top = _ref.top,\n style = _ref.style,\n fillProps = _ref.fillProps,\n reset = (0, _objectWithoutProperties2[\"default\"])(_ref, _excluded);\n var styleWrapper = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, style), {}, {\n position: 'absolute',\n left: left,\n top: top\n });\n var stylePointer = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n width: 18,\n height: 18,\n boxShadow: 'var(--alpha-pointer-box-shadow)',\n borderRadius: '50%',\n backgroundColor: 'var(--alpha-pointer-background-color)'\n }, fillProps === null || fillProps === void 0 ? void 0 : fillProps.style), {}, {\n transform: left ? 'translate(-9px, -1px)' : 'translate(-1px, -9px)'\n });\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n className: \"\".concat(prefixCls, \"-pointer \").concat(className || ''),\n style: styleWrapper\n }, reset), {}, {\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n className: \"\".concat(prefixCls, \"-fill\")\n }, fillProps), {}, {\n style: stylePointer\n }))\n }));\n};","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _exportNames = {\n BACKGROUND_IMG: true\n};\nexports[\"default\"] = exports.BACKGROUND_IMG = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactDragEventInteractive = _interopRequireDefault(require(\"@uiw/react-drag-event-interactive\"));\nvar _Pointer = require(\"./Pointer\");\nObject.keys(_Pointer).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _Pointer[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _Pointer[key];\n }\n });\n});\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"className\", \"hsva\", \"background\", \"bgProps\", \"innerProps\", \"pointerProps\", \"radius\", \"width\", \"height\", \"direction\", \"style\", \"onChange\", \"pointer\"];\nvar BACKGROUND_IMG = exports.BACKGROUND_IMG = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==';\nvar Alpha = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-alpha' : _props$prefixCls,\n className = props.className,\n hsva = props.hsva,\n background = props.background,\n _props$bgProps = props.bgProps,\n bgProps = _props$bgProps === void 0 ? {} : _props$bgProps,\n _props$innerProps = props.innerProps,\n innerProps = _props$innerProps === void 0 ? {} : _props$innerProps,\n _props$pointerProps = props.pointerProps,\n pointerProps = _props$pointerProps === void 0 ? {} : _props$pointerProps,\n _props$radius = props.radius,\n radius = _props$radius === void 0 ? 0 : _props$radius,\n width = props.width,\n _props$height = props.height,\n height = _props$height === void 0 ? 16 : _props$height,\n _props$direction = props.direction,\n direction = _props$direction === void 0 ? 'horizontal' : _props$direction,\n style = props.style,\n onChange = props.onChange,\n pointer = props.pointer,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var handleChange = function handleChange(offset) {\n onChange && onChange((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, hsva), {}, {\n a: direction === 'horizontal' ? offset.left : offset.top\n }), offset);\n };\n var colorTo = (0, _colorConvert.hsvaToHslaString)(Object.assign({}, hsva, {\n a: 1\n }));\n var innerBackground = \"linear-gradient(to \".concat(direction === 'horizontal' ? 'right' : 'bottom', \", rgba(244, 67, 54, 0) 0%, \").concat(colorTo, \" 100%)\");\n var comProps = {};\n if (direction === 'horizontal') {\n comProps.left = \"\".concat(hsva.a * 100, \"%\");\n } else {\n comProps.top = \"\".concat(hsva.a * 100, \"%\");\n }\n var styleWrapper = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n '--alpha-background-color': '#fff',\n '--alpha-pointer-background-color': 'rgb(248, 248, 248)',\n '--alpha-pointer-box-shadow': 'rgb(0 0 0 / 37%) 0px 1px 4px 0px',\n borderRadius: radius,\n background: \"url(\".concat(BACKGROUND_IMG, \") left center\"),\n backgroundColor: 'var(--alpha-background-color)'\n }, {\n width: width,\n height: height\n }), style), {}, {\n position: 'relative'\n });\n var pointerElement = pointer && typeof pointer === 'function' ? pointer((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n prefixCls: prefixCls\n }, pointerProps), comProps)) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Pointer.Pointer, (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, pointerProps), {}, {\n prefixCls: prefixCls\n }, comProps));\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, other), {}, {\n className: [prefixCls, \"\".concat(prefixCls, \"-\").concat(direction), className || ''].filter(Boolean).join(' '),\n style: styleWrapper,\n ref: ref,\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, bgProps), {}, {\n style: (0, _objectSpread2[\"default\"])({\n inset: 0,\n position: 'absolute',\n background: background || innerBackground,\n borderRadius: radius\n }, bgProps.style)\n })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactDragEventInteractive[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, innerProps), {}, {\n style: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, innerProps.style), {}, {\n inset: 0,\n zIndex: 1,\n position: 'absolute'\n }),\n onMove: handleChange,\n onDown: handleChange,\n children: pointerElement\n }))]\n }));\n});\nAlpha.displayName = 'Alpha';\nvar _default = exports[\"default\"] = Alpha;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = Arrow;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"style\"];\nfunction Arrow(props) {\n var style = props.style,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var btn = (0, _react.useRef)(null);\n var handleMouseEnter = (0, _react.useCallback)(function () {\n btn.current.style['backgroundColor'] = 'var(--chrome-arrow-background-color)';\n }, []);\n var handleMouseLeave = (0, _react.useCallback)(function () {\n btn.current.style['backgroundColor'] = 'transparent';\n }, []);\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n ref: btn,\n style: (0, _objectSpread2[\"default\"])({\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__*/(0, _jsxRuntime.jsx)(\"svg\", {\n viewBox: \"0 0 1024 1024\",\n width: \"24\",\n height: \"24\",\n style: {\n display: 'block'\n },\n children: /*#__PURE__*/(0, _jsxRuntime.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}\nmodule.exports = exports.default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.EyeDropper = EyeDropper;\nexports.isSupportEyeDropper = void 0;\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar isSupportEyeDropper = exports.isSupportEyeDropper = 'EyeDropper' in window;\nfunction EyeDropper(props) {\n var click = function click() {\n if ('EyeDropper' in window) {\n var eyeDropper = new window.EyeDropper();\n eyeDropper.open().then(function (result) {\n var _props$onPickColor;\n console.log(result);\n (_props$onPickColor = props.onPickColor) === null || _props$onPickColor === void 0 || _props$onPickColor.call(props, result.sRGBHex);\n });\n }\n };\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"svg\", {\n viewBox: \"0 0 512 512\",\n height: \"1em\",\n width: \"1em\",\n onClick: click,\n children: /*#__PURE__*/(0, _jsxRuntime.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}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = exports.ChromeInputType = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _slicedToArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/slicedToArray\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactColorGithub = _interopRequireWildcard(require(\"@uiw/react-color-github\"));\nvar _reactColorSaturation = _interopRequireDefault(require(\"@uiw/react-color-saturation\"));\nvar _reactColorHue = _interopRequireDefault(require(\"@uiw/react-color-hue\"));\nvar _reactColorAlpha = _interopRequireDefault(require(\"@uiw/react-color-alpha\"));\nvar _reactColorEditableInput = _interopRequireDefault(require(\"@uiw/react-color-editable-input\"));\nvar _reactColorEditableInputRgba = _interopRequireDefault(require(\"@uiw/react-color-editable-input-rgba\"));\nvar _reactColorEditableInputHsla = _interopRequireDefault(require(\"@uiw/react-color-editable-input-hsla\"));\nvar _Arrow = _interopRequireDefault(require(\"./Arrow\"));\nvar _EyeDropper = require(\"./EyeDropper\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"color\", \"showEditableInput\", \"showEyeDropper\", \"showColorPreview\", \"showHue\", \"showAlpha\", \"inputType\", \"rectProps\", \"onChange\"];\nvar ChromeInputType = exports.ChromeInputType = /*#__PURE__*/function (ChromeInputType) {\n ChromeInputType[\"HEXA\"] = \"hexa\";\n ChromeInputType[\"RGBA\"] = \"rgba\";\n ChromeInputType[\"HSLA\"] = \"hsla\";\n return ChromeInputType;\n}({});\nvar Chrome = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-chrome' : _props$prefixCls,\n className = props.className,\n style = props.style,\n color = props.color,\n _props$showEditableIn = props.showEditableInput,\n showEditableInput = _props$showEditableIn === void 0 ? true : _props$showEditableIn,\n _props$showEyeDropper = props.showEyeDropper,\n showEyeDropper = _props$showEyeDropper === void 0 ? true : _props$showEyeDropper,\n _props$showColorPrevi = props.showColorPreview,\n showColorPreview = _props$showColorPrevi === void 0 ? true : _props$showColorPrevi,\n _props$showHue = props.showHue,\n showHue = _props$showHue === void 0 ? true : _props$showHue,\n _props$showAlpha = props.showAlpha,\n showAlpha = _props$showAlpha === void 0 ? true : _props$showAlpha,\n _props$inputType = props.inputType,\n inputType = _props$inputType === void 0 ? ChromeInputType.RGBA : _props$inputType,\n _props$rectProps = props.rectProps,\n rectProps = _props$rectProps === void 0 ? {} : _props$rectProps,\n onChange = props.onChange,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var hsva = typeof color === 'string' && (0, _colorConvert.validHex)(color) ? (0, _colorConvert.hexToHsva)(color) : color || {\n h: 0,\n s: 0,\n l: 0,\n a: 0\n };\n var handleChange = function handleChange(hsv) {\n return onChange && onChange((0, _colorConvert.color)(hsv));\n };\n var _useState = (0, _react.useState)(inputType),\n _useState2 = (0, _slicedToArray2[\"default\"])(_useState, 2),\n type = _useState2[0],\n setType = _useState2[1];\n var handleClick = function 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 = (0, _objectSpread2[\"default\"])({\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: (0, _colorConvert.hsvaToRgbaString)(hsva),\n boxShadow: 'var(--chrome-alpha-box-shadow)'\n };\n var handleClickColor = function handleClickColor(hex) {\n var result = (0, _colorConvert.hexToHsva)(hex);\n handleChange((0, _objectSpread2[\"default\"])({}, result));\n };\n var styleSize = {\n height: 14,\n width: 14\n };\n var pointerProps = {\n style: (0, _objectSpread2[\"default\"])({}, styleSize),\n fillProps: {\n style: styleSize\n }\n };\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorGithub[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n ref: ref,\n color: hsva,\n style: wrapperStyle,\n colors: undefined,\n className: [prefixCls, className].filter(Boolean).join(' '),\n placement: _reactColorGithub.GithubPlacement.TopLeft\n }, other), {}, {\n addonAfter: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorSaturation[\"default\"], {\n hsva: hsva,\n style: {\n width: '100%',\n height: 130\n },\n onChange: function onChange(newColor) {\n handleChange((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, hsva), newColor), {}, {\n a: hsva.a\n }));\n }\n }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", {\n style: {\n padding: 15,\n display: 'flex',\n alignItems: 'center',\n gap: 10\n },\n children: [_EyeDropper.isSupportEyeDropper && showEyeDropper && /*#__PURE__*/(0, _jsxRuntime.jsx)(_EyeDropper.EyeDropper, {\n onPickColor: handleClickColor\n }), showColorPreview && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorAlpha[\"default\"], {\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: function pointer() {\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Fragment, {});\n }\n }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", {\n style: {\n flex: 1\n },\n children: [showHue == true && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorHue[\"default\"], {\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: function onChange(newHue) {\n handleChange((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, hsva), newHue));\n }\n }), showAlpha == true && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorAlpha[\"default\"], {\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: function onChange(newAlpha) {\n handleChange((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, hsva), newAlpha));\n }\n })]\n })]\n }), showEditableInput && /*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", {\n style: {\n display: 'flex',\n alignItems: 'flex-start',\n padding: '0 15px 15px 15px',\n userSelect: 'none'\n },\n children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", {\n style: {\n flex: 1\n },\n children: [type == ChromeInputType.RGBA && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorEditableInputRgba[\"default\"], {\n hsva: hsva,\n rProps: {\n labelStyle: labelStyle,\n inputStyle: inputStyle\n },\n gProps: {\n labelStyle: labelStyle,\n inputStyle: inputStyle\n },\n bProps: {\n labelStyle: labelStyle,\n inputStyle: inputStyle\n },\n aProps: showAlpha == false ? false : {\n labelStyle: labelStyle,\n inputStyle: inputStyle\n },\n onChange: function onChange(reColor) {\n return handleChange(reColor.hsva);\n }\n }), type === ChromeInputType.HEXA && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorEditableInput[\"default\"], {\n label: \"HEX\",\n labelStyle: labelStyle,\n inputStyle: inputStyle,\n value: hsva.a > 0 && hsva.a < 1 ? (0, _colorConvert.hsvaToHexa)(hsva).toLocaleUpperCase() : (0, _colorConvert.hsvaToHex)(hsva).toLocaleUpperCase(),\n onChange: function onChange(_, value) {\n if (typeof value === 'string') {\n handleChange((0, _colorConvert.hexToHsva)(/^#/.test(value) ? value : \"#\".concat(value)));\n }\n }\n }), type === ChromeInputType.HSLA && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorEditableInputHsla[\"default\"], {\n hsva: hsva,\n hProps: {\n labelStyle: labelStyle,\n inputStyle: inputStyle\n },\n sProps: {\n labelStyle: labelStyle,\n inputStyle: inputStyle\n },\n lProps: {\n labelStyle: labelStyle,\n inputStyle: inputStyle\n },\n aProps: showAlpha == false ? false : {\n labelStyle: labelStyle,\n inputStyle: inputStyle\n },\n onChange: function onChange(reColor) {\n return handleChange(reColor.hsva);\n }\n })]\n }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Arrow[\"default\"], {\n onClick: handleClick\n })]\n })]\n }),\n rectRender: function rectRender() {\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Fragment, {});\n }\n }));\n});\nChrome.displayName = 'Chrome';\nvar _default = exports[\"default\"] = Chrome;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _reactColorEditableInputRgba = _interopRequireDefault(require(\"@uiw/react-color-editable-input-rgba\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"hsva\", \"hProps\", \"sProps\", \"lProps\", \"aProps\", \"className\", \"onChange\"];\nvar EditableInputHSLA = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-editable-input-hsla' : _props$prefixCls,\n hsva = props.hsva,\n _props$hProps = props.hProps,\n hProps = _props$hProps === void 0 ? {} : _props$hProps,\n _props$sProps = props.sProps,\n sProps = _props$sProps === void 0 ? {} : _props$sProps,\n _props$lProps = props.lProps,\n lProps = _props$lProps === void 0 ? {} : _props$lProps,\n _props$aProps = props.aProps,\n aProps = _props$aProps === void 0 ? {} : _props$aProps,\n className = props.className,\n onChange = props.onChange,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var hsla = hsva ? (0, _colorConvert.hsvaToHsla)(hsva) : {\n h: 0,\n s: 0,\n l: 0,\n a: 0\n };\n var handleChange = function 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((0, _colorConvert.color)((0, _colorConvert.hslaToHsva)((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, 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((0, _colorConvert.color)((0, _colorConvert.hslaToHsva)((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, 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((0, _colorConvert.color)((0, _colorConvert.hslaToHsva)((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, 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((0, _colorConvert.color)((0, _colorConvert.hslaToHsva)((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, hsla), {}, {\n a: value\n }))));\n }\n }\n };\n var aPropsObj = aProps == false ? false : (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n label: 'A',\n value: Math.round(hsla.a * 100) / 100\n }, aProps), {}, {\n onChange: function onChange(evn, val) {\n return handleChange(val, 'a', evn);\n }\n });\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorEditableInputRgba[\"default\"], (0, _objectSpread2[\"default\"])({\n ref: ref,\n hsva: hsva,\n rProps: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n label: 'H',\n value: Math.round(hsla.h)\n }, hProps), {}, {\n onChange: function onChange(evn, val) {\n return handleChange(val, 'h', evn);\n }\n }),\n gProps: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n label: 'S',\n value: \"\".concat(Math.round(hsla.s), \"%\")\n }, sProps), {}, {\n onChange: function onChange(evn, val) {\n return handleChange(val, 's', evn);\n }\n }),\n bProps: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n label: 'L',\n value: \"\".concat(Math.round(hsla.l), \"%\")\n }, lProps), {}, {\n onChange: function onChange(evn, val) {\n return handleChange(val, 'l', evn);\n }\n }),\n aProps: aPropsObj,\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other));\n});\nEditableInputHSLA.displayName = 'EditableInputHSLA';\nvar _default = exports[\"default\"] = EditableInputHSLA;\nmodule.exports = exports.default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _reactColorEditableInput = _interopRequireDefault(require(\"@uiw/react-color-editable-input\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"hsva\", \"placement\", \"rProps\", \"gProps\", \"bProps\", \"aProps\", \"className\", \"style\", \"onChange\"];\nvar EditableInputRGBA = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-editable-input-rgba' : _props$prefixCls,\n hsva = props.hsva,\n _props$placement = props.placement,\n placement = _props$placement === void 0 ? 'bottom' : _props$placement,\n _props$rProps = props.rProps,\n rProps = _props$rProps === void 0 ? {} : _props$rProps,\n _props$gProps = props.gProps,\n gProps = _props$gProps === void 0 ? {} : _props$gProps,\n _props$bProps = props.bProps,\n bProps = _props$bProps === void 0 ? {} : _props$bProps,\n _props$aProps = props.aProps,\n aProps = _props$aProps === void 0 ? {} : _props$aProps,\n className = props.className,\n style = props.style,\n onChange = props.onChange,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var rgba = hsva ? (0, _colorConvert.hsvaToRgba)(hsva) : {};\n function handleBlur(evn) {\n var value = Number(evn.target.value);\n if (value && value > 255) {\n evn.target.value = '255';\n }\n if (value && value < 0) {\n evn.target.value = '0';\n }\n }\n var handleChange = function handleChange(value, type, evn) {\n if (typeof value === 'number') {\n if (type === 'a') {\n if (value < 0) value = 0;\n if (value > 100) value = 100;\n onChange && onChange((0, _colorConvert.color)((0, _colorConvert.rgbaToHsva)((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, rgba), {}, {\n a: value / 100\n }))));\n }\n if (value > 255) {\n value = 255;\n evn.target.value = '255';\n }\n if (value < 0) {\n value = 0;\n evn.target.value = '0';\n }\n if (type === 'r') {\n onChange && onChange((0, _colorConvert.color)((0, _colorConvert.rgbaToHsva)((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, rgba), {}, {\n r: value\n }))));\n }\n if (type === 'g') {\n onChange && onChange((0, _colorConvert.color)((0, _colorConvert.rgbaToHsva)((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, rgba), {}, {\n g: value\n }))));\n }\n if (type === 'b') {\n onChange && onChange((0, _colorConvert.color)((0, _colorConvert.rgbaToHsva)((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, rgba), {}, {\n b: value\n }))));\n }\n }\n };\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n ref: ref,\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other), {}, {\n style: (0, _objectSpread2[\"default\"])({\n fontSize: 11,\n display: 'flex'\n }, style),\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorEditableInput[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n label: \"R\",\n value: rgba.r || 0,\n onBlur: handleBlur,\n placement: placement,\n onChange: function onChange(evn, val) {\n return handleChange(val, 'r', evn);\n }\n }, rProps), {}, {\n style: (0, _objectSpread2[\"default\"])({}, rProps.style)\n })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorEditableInput[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n label: \"G\",\n value: rgba.g || 0,\n onBlur: handleBlur,\n placement: placement,\n onChange: function onChange(evn, val) {\n return handleChange(val, 'g', evn);\n }\n }, gProps), {}, {\n style: (0, _objectSpread2[\"default\"])({\n marginLeft: 5\n }, rProps.style)\n })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorEditableInput[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n label: \"B\",\n value: rgba.b || 0,\n onBlur: handleBlur,\n placement: placement,\n onChange: function onChange(evn, val) {\n return handleChange(val, 'b', evn);\n }\n }, bProps), {}, {\n style: (0, _objectSpread2[\"default\"])({\n marginLeft: 5\n }, bProps.style)\n })), aProps && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorEditableInput[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n label: \"A\",\n value: rgba.a ? parseInt(String(rgba.a * 100), 10) : 0,\n onBlur: handleBlur,\n placement: placement,\n onChange: function onChange(evn, val) {\n return handleChange(val, 'a', evn);\n }\n }, aProps), {}, {\n style: (0, _objectSpread2[\"default\"])({\n marginLeft: 5\n }, aProps.style)\n }))]\n }));\n});\nEditableInputRGBA.displayName = 'EditableInputRGBA';\nvar _default = exports[\"default\"] = EditableInputRGBA;\nmodule.exports = exports.default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _slicedToArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/slicedToArray\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"placement\", \"label\", \"value\", \"className\", \"style\", \"labelStyle\", \"inputStyle\", \"onChange\", \"onBlur\"];\nvar validHex = function validHex(hex) {\n return /^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(hex);\n};\nvar getNumberValue = function getNumberValue(value) {\n return Number(String(value).replace(/%/g, ''));\n};\nvar EditableInput = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-editable-input' : _props$prefixCls,\n _props$placement = props.placement,\n placement = _props$placement === void 0 ? 'bottom' : _props$placement,\n label = props.label,\n initValue = props.value,\n className = props.className,\n style = props.style,\n labelStyle = props.labelStyle,\n inputStyle = props.inputStyle,\n onChange = props.onChange,\n onBlur = props.onBlur,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var _useState = (0, _react.useState)(initValue),\n _useState2 = (0, _slicedToArray2[\"default\"])(_useState, 2),\n value = _useState2[0],\n setValue = _useState2[1];\n var isFocus = (0, _react.useRef)(false);\n (0, _react.useEffect)(function () {\n if (props.value !== value) {\n if (!isFocus.current) {\n setValue(props.value);\n }\n }\n }, [props.value]);\n function handleChange(evn, valInit) {\n var value = (valInit || evn.target.value).trim().replace(/^#/, '');\n if (validHex(value)) {\n onChange && onChange(evn, value);\n }\n var val = getNumberValue(value);\n if (!isNaN(val)) {\n onChange && onChange(evn, val);\n }\n setValue(value);\n }\n function handleBlur(evn) {\n isFocus.current = false;\n setValue(props.value);\n onBlur && onBlur(evn);\n }\n var placementStyle = {};\n if (placement === 'bottom') {\n placementStyle['flexDirection'] = 'column';\n }\n if (placement === 'top') {\n placementStyle['flexDirection'] = 'column-reverse';\n }\n if (placement === 'left') {\n placementStyle['flexDirection'] = 'row-reverse';\n }\n var wrapperStyle = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n '--editable-input-label-color': 'rgb(153, 153, 153)',\n '--editable-input-box-shadow': 'rgb(204 204 204) 0px 0px 0px 1px inset',\n '--editable-input-color': '#666',\n position: 'relative',\n alignItems: 'center',\n display: 'flex',\n fontSize: 11\n }, placementStyle), style);\n var editableStyle = (0, _objectSpread2[\"default\"])({\n width: '100%',\n paddingTop: 2,\n paddingBottom: 2,\n paddingLeft: 3,\n paddingRight: 3,\n fontSize: 11,\n background: 'transparent',\n boxSizing: 'border-box',\n border: 'none',\n color: 'var(--editable-input-color)',\n boxShadow: 'var(--editable-input-box-shadow)'\n }, inputStyle);\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", {\n className: [prefixCls, className || ''].filter(Boolean).join(' '),\n style: wrapperStyle,\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(\"input\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n ref: ref,\n value: value,\n onChange: handleChange,\n onBlur: handleBlur,\n autoComplete: \"off\",\n onFocus: function onFocus() {\n return isFocus.current = true;\n }\n }, other), {}, {\n style: editableStyle\n })), label && /*#__PURE__*/(0, _jsxRuntime.jsx)(\"span\", {\n style: (0, _objectSpread2[\"default\"])({\n color: 'var(--editable-input-label-color)',\n textTransform: 'capitalize'\n }, labelStyle),\n children: label\n })]\n });\n});\nEditableInput.displayName = 'EditableInput';\nvar _default = exports[\"default\"] = EditableInput;\nmodule.exports = exports.default;","\"use strict\";\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = Point;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _jsxRuntime = require(\"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};\nfunction Point(_ref) {\n var style = _ref.style,\n title = _ref.title,\n checked = _ref.checked,\n color = _ref.color,\n onClick = _ref.onClick,\n rectProps = _ref.rectProps;\n var btn = (0, _react.useRef)(null);\n var handleMouseEnter = (0, _react.useCallback)(function () {\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 = (0, _react.useCallback)(function () {\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__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n ref: btn,\n title: title\n }, rectProps), {}, {\n onClick: onClick,\n onMouseEnter: handleMouseEnter,\n onMouseLeave: handleMouseLeave,\n style: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, 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 || rectProps === void 0 ? void 0 : rectProps.style)\n }));\n}\nmodule.exports = exports.default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = exports.GithubPlacement = void 0;\nvar _objectDestructuringEmpty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectDestructuringEmpty\"));\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactColorSwatch = _interopRequireDefault(require(\"@uiw/react-color-swatch\"));\nvar _Point = _interopRequireDefault(require(\"./Point\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"placement\", \"className\", \"style\", \"color\", \"colors\", \"rectProps\", \"onChange\", \"rectRender\"];\nvar CORLER_HEX = ['#B80000', '#DB3E00', '#FCCB00', '#008B02', '#006B76', '#1273DE', '#004DCF', '#5300EB', '#EB9694', '#FAD0C3', '#FEF3BD', '#C1E1C5', '#BEDADC', '#C4DEF6', '#BED3F3', '#D4C4FB'];\nvar GithubPlacement = exports.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[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-github' : _props$prefixCls,\n _props$placement = props.placement,\n placement = _props$placement === void 0 ? GithubPlacement.TopRight : _props$placement,\n className = props.className,\n style = props.style,\n color = props.color,\n _props$colors = props.colors,\n colors = _props$colors === void 0 ? CORLER_HEX : _props$colors,\n _props$rectProps = props.rectProps,\n rectProps = _props$rectProps === void 0 ? {} : _props$rectProps,\n onChange = props.onChange,\n rectRender = props.rectRender,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var hsva = typeof color === 'string' && (0, _colorConvert.validHex)(color) ? (0, _colorConvert.hexToHsva)(color) : color;\n var hex = color ? (0, _colorConvert.hsvaToHex)(hsva) : '';\n var handleChange = function handleChange(hsv) {\n return onChange && onChange((0, _colorConvert.color)(hsv));\n };\n var styleWrapper = (0, _objectSpread2[\"default\"])({\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 = (0, _objectSpread2[\"default\"])({}, rStyle);\n var arrStyl = (0, _objectSpread2[\"default\"])({}, 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 = function render(_ref) {\n var props = (0, _extends2[\"default\"])({}, ((0, _objectDestructuringEmpty2[\"default\"])(_ref), _ref));\n var handle = rectRender && rectRender((0, _objectSpread2[\"default\"])({}, props));\n if (handle) return handle;\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Point[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, props), {}, {\n rectProps: rectProps\n }));\n };\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorSwatch[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\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__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", {\n style: arrBrStyl\n }), /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", {\n style: arrStyl\n })]\n })\n }));\n});\nGithub.displayName = 'Github';\nvar _default = exports[\"default\"] = Github;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _reactColorAlpha = _interopRequireDefault(require(\"@uiw/react-color-alpha\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"className\", \"hue\", \"onChange\", \"direction\"];\nvar Hue = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-hue' : _props$prefixCls,\n className = props.className,\n _props$hue = props.hue,\n hue = _props$hue === void 0 ? 0 : _props$hue,\n _onChange = props.onChange,\n _props$direction = props.direction,\n direction = _props$direction === void 0 ? 'horizontal' : _props$direction,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorAlpha[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n ref: ref,\n className: \"\".concat(prefixCls, \" \").concat(className || '')\n }, other), {}, {\n direction: direction,\n background: \"linear-gradient(to \".concat(direction === 'horizontal' ? 'right' : 'bottom', \", rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)\"),\n hsva: {\n h: hue,\n s: 100,\n v: 100,\n a: hue / 360\n },\n onChange: function onChange(_, interaction) {\n _onChange && _onChange({\n h: direction === 'horizontal' ? 360 * interaction.left : 360 * interaction.top\n });\n }\n }));\n});\nHue.displayName = 'Hue';\nvar _default = exports[\"default\"] = Hue;\nmodule.exports = exports.default;","\"use strict\";\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Pointer = void 0;\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar Pointer = exports.Pointer = function Pointer(_ref) {\n var className = _ref.className,\n color = _ref.color,\n left = _ref.left,\n top = _ref.top,\n prefixCls = _ref.prefixCls;\n var style = {\n position: 'absolute',\n top: top,\n left: left\n };\n var stylePointer = {\n '--saturation-pointer-box-shadow': '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',\n width: 6,\n height: 6,\n transform: 'translate(-3px, -3px)',\n boxShadow: 'var(--saturation-pointer-box-shadow)',\n borderRadius: '50%',\n backgroundColor: color\n };\n return (0, _react.useMemo)(function () {\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", {\n className: \"\".concat(prefixCls, \"-pointer \").concat(className || ''),\n style: style,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", {\n className: \"\".concat(prefixCls, \"-fill\"),\n style: stylePointer\n })\n });\n }, [top, left, color, className, prefixCls]);\n};","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactDragEventInteractive = _interopRequireDefault(require(\"@uiw/react-drag-event-interactive\"));\nvar _Pointer = require(\"./Pointer\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"radius\", \"pointer\", \"className\", \"hue\", \"style\", \"hsva\", \"onChange\"];\nvar Saturation = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _hsva$h;\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-saturation' : _props$prefixCls,\n _props$radius = props.radius,\n radius = _props$radius === void 0 ? 0 : _props$radius,\n pointer = props.pointer,\n className = props.className,\n _props$hue = props.hue,\n hue = _props$hue === void 0 ? 0 : _props$hue,\n style = props.style,\n hsva = props.hsva,\n onChange = props.onChange,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var containerStyle = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n width: 200,\n height: 200,\n borderRadius: radius\n }, style), {}, {\n position: 'relative'\n });\n var handleChange = function handleChange(interaction, event) {\n onChange && hsva && onChange({\n h: hsva.h,\n s: interaction.left * 100,\n v: (1 - interaction.top) * 100,\n a: hsva.a\n // source: 'hsv',\n });\n };\n var pointerElement = (0, _react.useMemo)(function () {\n if (!hsva) return null;\n var comProps = {\n top: \"\".concat(100 - hsva.v, \"%\"),\n left: \"\".concat(hsva.s, \"%\"),\n color: (0, _colorConvert.hsvaToHslaString)(hsva)\n };\n if (pointer && typeof pointer === 'function') {\n return pointer((0, _objectSpread2[\"default\"])({\n prefixCls: prefixCls\n }, comProps));\n }\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Pointer.Pointer, (0, _objectSpread2[\"default\"])({\n prefixCls: prefixCls\n }, comProps));\n }, [hsva, pointer, prefixCls]);\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactDragEventInteractive[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other), {}, {\n style: (0, _objectSpread2[\"default\"])({\n position: 'absolute',\n inset: 0,\n cursor: 'crosshair',\n backgroundImage: \"linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, hsl(\".concat((_hsva$h = hsva === null || hsva === void 0 ? void 0 : hsva.h) !== null && _hsva$h !== void 0 ? _hsva$h : hue, \", 100%, 50%))\")\n }, containerStyle),\n ref: ref,\n onMove: handleChange,\n onDown: handleChange,\n children: pointerElement\n }));\n});\nSaturation.displayName = 'Saturation';\nvar _default = exports[\"default\"] = Saturation;\nmodule.exports = exports.default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"className\", \"color\", \"colors\", \"style\", \"rectProps\", \"onChange\", \"addonAfter\", \"addonBefore\", \"rectRender\"];\nvar Swatch = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-swatch' : _props$prefixCls,\n className = props.className,\n color = props.color,\n _props$colors = props.colors,\n colors = _props$colors === void 0 ? [] : _props$colors,\n style = props.style,\n _props$rectProps = props.rectProps,\n rectProps = _props$rectProps === void 0 ? {} : _props$rectProps,\n onChange = props.onChange,\n addonAfter = props.addonAfter,\n addonBefore = props.addonBefore,\n rectRender = props.rectRender,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var rectStyle = (0, _objectSpread2[\"default\"])({\n '--swatch-background-color': 'rgb(144, 19, 254)',\n background: 'var(--swatch-background-color)',\n height: 15,\n width: 15,\n marginRight: 5,\n marginBottom: 5,\n cursor: 'pointer',\n position: 'relative',\n outline: 'none',\n borderRadius: 2\n }, rectProps.style);\n var handleClick = function handleClick(hex, evn) {\n onChange && onChange((0, _colorConvert.hexToHsva)(hex), (0, _colorConvert.color)((0, _colorConvert.hexToHsva)(hex)), evn);\n };\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n ref: ref\n }, other), {}, {\n className: [prefixCls, className || ''].filter(Boolean).join(' '),\n style: (0, _objectSpread2[\"default\"])({\n display: 'flex',\n flexWrap: 'wrap',\n position: 'relative'\n }, style),\n children: [addonBefore && /*#__PURE__*/_react[\"default\"].isValidElement(addonBefore) && addonBefore, colors && Array.isArray(colors) && colors.map(function (item, idx) {\n var title = '';\n var background = '';\n if (typeof item === 'string') {\n title = item;\n background = item;\n }\n if ((0, _typeof2[\"default\"])(item) === 'object' && item.color) {\n title = item.title || item.color;\n background = item.color;\n }\n var checked = color && color.toLocaleLowerCase() === background.toLocaleLowerCase();\n var render = rectRender && rectRender({\n title: title,\n color: background,\n checked: !!checked,\n style: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, rectStyle), {}, {\n background: background\n }),\n onClick: function onClick(evn) {\n return handleClick(background, evn);\n }\n });\n if (render) {\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Fragment, {\n children: render\n }, idx);\n }\n var child = rectProps.children && /*#__PURE__*/_react[\"default\"].isValidElement(rectProps.children) ? /*#__PURE__*/_react[\"default\"].cloneElement(rectProps.children, {\n color: background,\n checked: checked\n }) : null;\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n tabIndex: 0,\n title: title,\n onClick: function onClick(evn) {\n return handleClick(background, evn);\n }\n }, rectProps), {}, {\n children: child,\n style: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, rectStyle), {}, {\n background: background\n })\n }), idx);\n }), addonAfter && /*#__PURE__*/_react[\"default\"].isValidElement(addonAfter) && addonAfter]\n }));\n});\nSwatch.displayName = 'Swatch';\nvar _default = exports[\"default\"] = Swatch;\nmodule.exports = exports.default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _exportNames = {};\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _slicedToArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/slicedToArray\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _utils = require(\"./utils\");\nObject.keys(_utils).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _utils[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _utils[key];\n }\n });\n});\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"className\", \"onMove\", \"onDown\"];\nvar Interactive = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-interactive' : _props$prefixCls,\n className = props.className,\n onMove = props.onMove,\n onDown = props.onDown,\n reset = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var container = (0, _react.useRef)(null);\n var hasTouched = (0, _react.useRef)(false);\n var _useState = (0, _react.useState)(false),\n _useState2 = (0, _slicedToArray2[\"default\"])(_useState, 2),\n isDragging = _useState2[0],\n setDragging = _useState2[1];\n var onMoveCallback = (0, _utils.useEventCallback)(onMove);\n var onKeyCallback = (0, _utils.useEventCallback)(onDown);\n\n // Prevent mobile browsers from handling mouse events (conflicting with touch ones).\n // If we detected a touch interaction before, we prefer reacting to touch events only.\n var isValid = function isValid(event) {\n if (hasTouched.current && !(0, _utils.isTouch)(event)) return false;\n hasTouched.current = (0, _utils.isTouch)(event);\n return true;\n };\n var handleMove = (0, _react.useCallback)(function (event) {\n (0, _utils.preventDefaultMove)(event);\n // If user moves the pointer outside of the window or iframe bounds and release it there,\n // `mouseup`/`touchend` won't be fired. In order to stop the picker from following the cursor\n // after the user has moved the mouse/finger back to the document, we check `event.buttons`\n // and `event.touches`. It allows us to detect that the user is just moving his pointer\n // without pressing it down\n var isDown = (0, _utils.isTouch)(event) ? event.touches.length > 0 : event.buttons > 0;\n if (isDown && container.current) {\n onMoveCallback && onMoveCallback((0, _utils.getRelativePosition)(container.current, event), event);\n } else {\n setDragging(false);\n }\n }, [onMoveCallback]);\n var handleMoveEnd = (0, _react.useCallback)(function () {\n return setDragging(false);\n }, []);\n var toggleDocumentEvents = (0, _react.useCallback)(function (state) {\n var toggleEvent = state ? window.addEventListener : window.removeEventListener;\n toggleEvent(hasTouched.current ? 'touchmove' : 'mousemove', handleMove);\n toggleEvent(hasTouched.current ? 'touchend' : 'mouseup', handleMoveEnd);\n }, []);\n (0, _react.useEffect)(function () {\n toggleDocumentEvents(isDragging);\n return function () {\n isDragging && toggleDocumentEvents(false);\n };\n }, [isDragging, toggleDocumentEvents]);\n var handleMoveStart = (0, _react.useCallback)(function (event) {\n (0, _utils.preventDefaultMove)(event.nativeEvent);\n if (!isValid(event.nativeEvent)) return;\n onKeyCallback && onKeyCallback((0, _utils.getRelativePosition)(container.current, event.nativeEvent), event.nativeEvent);\n setDragging(true);\n }, [onKeyCallback]);\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, reset), {}, {\n className: [prefixCls, className || ''].filter(Boolean).join(' '),\n style: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, reset.style), {}, {\n touchAction: 'none'\n }),\n ref: container,\n tabIndex: 0,\n onMouseDown: handleMoveStart,\n onTouchStart: handleMoveStart\n }));\n});\nInteractive.displayName = 'Interactive';\nvar _default = exports[\"default\"] = Interactive;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.preventDefaultMove = exports.isTouch = exports.getRelativePosition = exports.clamp = void 0;\nexports.useEventCallback = useEventCallback;\nvar _react = require(\"react\");\n// Saves incoming handler to the ref in order to avoid \"useCallback hell\"\nfunction useEventCallback(handler) {\n var callbackRef = (0, _react.useRef)(handler);\n (0, _react.useEffect)(function () {\n callbackRef.current = handler;\n });\n return (0, _react.useCallback)(function (value, event) {\n return callbackRef.current && callbackRef.current(value, event);\n }, []);\n}\n\n// Check if an event was triggered by touch\nvar isTouch = exports.isTouch = function isTouch(event) {\n return 'touches' in event;\n};\n\n// Browsers introduced an intervention, making touch events passive by default.\n// This workaround removes `preventDefault` call from the touch handlers.\n// https://github.com/facebook/react/issues/19651\nvar preventDefaultMove = exports.preventDefaultMove = function preventDefaultMove(event) {\n !isTouch(event) && event.preventDefault && event.preventDefault();\n};\n// Clamps a value between an upper and lower bound.\n// We use ternary operators because it makes the minified code\n// 2 times shorter then `Math.min(Math.max(a,b),c)`\nvar clamp = exports.clamp = function clamp(number) {\n var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n return number > max ? max : number < min ? min : number;\n};\n// Returns a relative position of the pointer inside the node's bounding box\nvar getRelativePosition = exports.getRelativePosition = function getRelativePosition(node, event) {\n var rect = node.getBoundingClientRect();\n\n // Get user's pointer position from `touches` array if it's a `TouchEvent`\n var pointer = isTouch(event) ? event.touches[0] : event;\n return {\n left: clamp((pointer.pageX - (rect.left + window.pageXOffset)) / rect.width),\n top: clamp((pointer.pageY - (rect.top + window.pageYOffset)) / rect.height),\n width: rect.width,\n height: rect.height,\n x: pointer.pageX - (rect.left + window.pageXOffset),\n y: pointer.pageY - (rect.top + window.pageYOffset)\n };\n};","\nexport default {\n components: { 24: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactColorChrome = _interopRequireDefault(require(\"@uiw/react-color-chrome\"));\nvar _reactColorGithub = require(\"@uiw/react-color-github\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 25.71,\n v: 82.35,\n a: 0.32\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n var hex = (0, _colorConvert.hsvaToHex)(hsva);\n return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(_reactColorChrome[\"default\"], {\n color: hsva,\n style: {\n \"float\": 'left'\n },\n placement: _reactColorGithub.GithubPlacement.Right,\n onChange: function onChange(color) {\n setHsva(color.hsva);\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactColorChrome[\"default\"], {\n color: hsva,\n placement: _reactColorGithub.GithubPlacement.TopRight,\n onChange: function onChange(color) {\n setHsva(color.hsva);\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactColorChrome[\"default\"], {\n color: hsva,\n style: {\n marginTop: 10,\n width: 140\n },\n placement: _reactColorGithub.GithubPlacement.TopRight,\n showEyeDropper: false,\n showColorPreview: false,\n showEditableInput: false,\n onChange: function onChange(color) {\n setHsva(color.hsva);\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n background: hex,\n marginTop: 30,\n padding: 10\n }\n }, hex));\n}\nreturn Demo; })(),82: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactColorChrome = _interopRequireDefault(require(\"@uiw/react-color-chrome\"));\nvar _reactColorGithub = require(\"@uiw/react-color-github\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 25.71,\n v: 82.35,\n a: 0.32\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n var hex = (0, _colorConvert.hsvaToHex)(hsva);\n return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(_reactColorChrome[\"default\"], {\n color: hsva,\n style: {\n marginTop: 10\n },\n placement: _reactColorGithub.GithubPlacement.TopRight,\n showAlpha: false,\n onChange: function onChange(color) {\n setHsva(color.hsva);\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n background: hex,\n marginTop: 30,\n padding: 10\n }\n }, hex));\n}\nreturn Demo; })(), },\n data: {\n \"24\": {\n \"name\": 24,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _colorConvert = require(\\\"@uiw/color-convert\\\");\\nvar _reactColorChrome = _interopRequireDefault(require(\\\"@uiw/react-color-chrome\\\"));\\nvar _reactColorGithub = require(\\\"@uiw/react-color-github\\\");\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nfunction Demo() {\\n var _useState = (0, _react.useState)({\\n h: 0,\\n s: 25.71,\\n v: 82.35,\\n a: 0.32\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n hsva = _useState2[0],\\n setHsva = _useState2[1];\\n var hex = (0, _colorConvert.hsvaToHex)(hsva);\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_react[\\\"default\\\"].Fragment, null, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorChrome[\\\"default\\\"], {\\n color: hsva,\\n style: {\\n \\\"float\\\": 'left'\\n },\\n placement: _reactColorGithub.GithubPlacement.Right,\\n onChange: function onChange(color) {\\n setHsva(color.hsva);\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorChrome[\\\"default\\\"], {\\n color: hsva,\\n placement: _reactColorGithub.GithubPlacement.TopRight,\\n onChange: function onChange(color) {\\n setHsva(color.hsva);\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorChrome[\\\"default\\\"], {\\n color: hsva,\\n style: {\\n marginTop: 10,\\n width: 140\\n },\\n placement: _reactColorGithub.GithubPlacement.TopRight,\\n showEyeDropper: false,\\n showColorPreview: false,\\n showEditableInput: false,\\n onChange: function onChange(color) {\\n setHsva(color.hsva);\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: {\\n background: hex,\\n marginTop: 30,\\n padding: 10\\n }\\n }, hex));\\n}\\nreturn Demo;\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\n\\nimport {\\n HsvaColor,\\n hsvaToRgbaString,\\n color as handleColor,\\n validHex,\\n hexToHsva,\\n hsvaToHex,\\n hsvaToHexa,\\n} from '@uiw/color-convert';\\n\\nimport Chrome from '@uiw/react-color-chrome';\\nimport { GithubPlacement } from '@uiw/react-color-github';\\n\\nfunction Demo() {\\n const [hsva, setHsva] = useState({ h:0, s:25.71, v:82.35, a:0.32});\\n const hex = hsvaToHex(hsva)\\n return (\\n <>\\n {\\n setHsva(color.hsva);\\n }}\\n />\\n {\\n setHsva(color.hsva);\\n }}\\n />\\n {\\n setHsva(color.hsva);\\n }}\\n />\\n
\\n {hex}\\n
\\n \\n );\\n}\\nexport default Demo;\"\n },\n \"82\": {\n \"name\": 82,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _colorConvert = require(\\\"@uiw/color-convert\\\");\\nvar _reactColorChrome = _interopRequireDefault(require(\\\"@uiw/react-color-chrome\\\"));\\nvar _reactColorGithub = require(\\\"@uiw/react-color-github\\\");\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nfunction Demo() {\\n var _useState = (0, _react.useState)({\\n h: 0,\\n s: 25.71,\\n v: 82.35,\\n a: 0.32\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n hsva = _useState2[0],\\n setHsva = _useState2[1];\\n var hex = (0, _colorConvert.hsvaToHex)(hsva);\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_react[\\\"default\\\"].Fragment, null, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorChrome[\\\"default\\\"], {\\n color: hsva,\\n style: {\\n marginTop: 10\\n },\\n placement: _reactColorGithub.GithubPlacement.TopRight,\\n showAlpha: false,\\n onChange: function onChange(color) {\\n setHsva(color.hsva);\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: {\\n background: hex,\\n marginTop: 30,\\n padding: 10\\n }\\n }, hex));\\n}\\nreturn Demo;\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\n\\nimport {\\n HsvaColor,\\n hsvaToRgbaString,\\n color as handleColor,\\n validHex,\\n hexToHsva,\\n hsvaToHex,\\n hsvaToHexa,\\n} from '@uiw/color-convert';\\n\\nimport Chrome from '@uiw/react-color-chrome';\\nimport { GithubPlacement } from '@uiw/react-color-github';\\n\\nfunction Demo() {\\n const [hsva, setHsva] = useState({ h:0, s:25.71, v:82.35, a:0.32});\\n const hex = hsvaToHex(hsva)\\n return (\\n <>\\n {\\n setHsva(color.hsva);\\n }}\\n />\\n
\\n {hex}\\n
\\n \\n );\\n}\\nexport default Demo;\"\n }\n},\n source: \"React Color Chrome\\n===\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-chrome)](https://bundlephobia.com/package/@uiw/react-color-chrome) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-chrome.svg)](https://www.npmjs.com/package/@uiw/react-color-chrome) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-chrome/file/README.md)\\n\\nChrome Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\\n\\n\\n\\n \\\"react-color-chrome\\\"\\n\\n\\n\\n\\n## Install\\n\\n```bash\\nnpm i @uiw/react-color-chrome\\n```\\n\\n## Usage\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\n\\nimport {\\n HsvaColor,\\n hsvaToRgbaString,\\n color as handleColor,\\n validHex,\\n hexToHsva,\\n hsvaToHex,\\n hsvaToHexa,\\n} from '@uiw/color-convert';\\n\\nimport Chrome from '@uiw/react-color-chrome';\\nimport { GithubPlacement } from '@uiw/react-color-github';\\n\\nfunction Demo() {\\n const [hsva, setHsva] = useState({ h:0, s:25.71, v:82.35, a:0.32});\\n const hex = hsvaToHex(hsva)\\n return (\\n <>\\n {\\n setHsva(color.hsva);\\n }}\\n />\\n {\\n setHsva(color.hsva);\\n }}\\n />\\n {\\n setHsva(color.hsva);\\n }}\\n />\\n
\\n {hex}\\n
\\n \\n );\\n}\\nexport default Demo;\\n```\\n\\nDisable the opacity setting by setting `showAlpha` to `false`.\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\n\\nimport {\\n HsvaColor,\\n hsvaToRgbaString,\\n color as handleColor,\\n validHex,\\n hexToHsva,\\n hsvaToHex,\\n hsvaToHexa,\\n} from '@uiw/color-convert';\\n\\nimport Chrome from '@uiw/react-color-chrome';\\nimport { GithubPlacement } from '@uiw/react-color-github';\\n\\nfunction Demo() {\\n const [hsva, setHsva] = useState({ h:0, s:25.71, v:82.35, a:0.32});\\n const hex = hsvaToHex(hsva)\\n return (\\n <>\\n {\\n setHsva(color.hsva);\\n }}\\n />\\n
\\n {hex}\\n
\\n \\n );\\n}\\nexport default Demo;\\n```\\n\\n\\n## Props\\n\\n```ts\\nimport React from 'react';\\nimport { GithubProps } from '@uiw/react-color-github';\\nexport declare enum ChromeInputType {\\n HEXA = \\\"hexa\\\",\\n RGBA = \\\"rgba\\\",\\n HSLA = \\\"hsla\\\"\\n}\\nexport interface ChromeProps extends Omit {\\n inputType?: ChromeInputType;\\n showEditableInput?: boolean;\\n showEyeDropper?: boolean;\\n showColorPreview?: boolean;\\n showHue?: boolean;\\n showAlpha?: boolean;\\n}\\ndeclare const Chrome: React.ForwardRefExoticComponent>;\\nexport default Chrome;\\n```\\n\\n\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }","function _extends() {\n return module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) {\n for (var e = 1; e < arguments.length; e++) {\n var t = arguments[e];\n for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n }\n return n;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports, _extends.apply(null, arguments);\n}\nmodule.exports = _extends, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _objectDestructuringEmpty(t) {\n if (null == t) throw new TypeError(\"Cannot destructure \" + t);\n}\nmodule.exports = _objectDestructuringEmpty, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;"],"names":["_interopRequireDefault","require","Object","defineProperty","exports","value","Pointer","_objectSpread2","_objectWithoutProperties2","_jsxRuntime","_excluded","_ref","className","prefixCls","left","top","style","fillProps","reset","styleWrapper","position","stylePointer","width","height","boxShadow","borderRadius","backgroundColor","transform","jsx","concat","children","_exportNames","BACKGROUND_IMG","_react","_colorConvert","_reactDragEventInteractive","_Pointer","keys","forEach","key","prototype","hasOwnProperty","call","enumerable","get","Alpha","forwardRef","props","ref","_props$prefixCls","hsva","background","_props$bgProps","bgProps","_props$innerProps","innerProps","_props$pointerProps","pointerProps","_props$radius","radius","_props$height","_props$direction","direction","onChange","pointer","other","handleChange","offset","a","colorTo","hsvaToHslaString","assign","innerBackground","comProps","pointerElement","jsxs","filter","Boolean","join","inset","zIndex","onMove","onDown","displayName","_interopRequireWildcard","btn","useRef","handleMouseEnter","useCallback","current","handleMouseLeave","marginLeft","cursor","transition","onMouseEnter","onMouseLeave","viewBox","display","d","fill","module","default","EyeDropper","onClick","window","open","then","result","_props$onPickColor","console","log","onPickColor","sRGBHex","isSupportEyeDropper","ChromeInputType","_slicedToArray2","_reactColorGithub","_reactColorSaturation","_reactColorHue","_reactColorAlpha","_reactColorEditableInput","_reactColorEditableInputRgba","_reactColorEditableInputHsla","_Arrow","_EyeDropper","Chrome","color","_props$showEditableIn","showEditableInput","_props$showEyeDropper","showEyeDropper","_props$showColorPrevi","showColorPreview","_props$showHue","showHue","_props$showAlpha","showAlpha","_props$inputType","inputType","RGBA","rectProps","validHex","hexToHsva","h","s","l","hsv","_useState","useState","_useState2","type","setType","labelStyle","paddingTop","inputStyle","textAlign","paddingBottom","wrapperStyle","flexDirection","padding","alphaStyle","hsvaToRgbaString","styleSize","colors","undefined","placement","GithubPlacement","TopLeft","addonAfter","Fragment","newColor","alignItems","gap","hex","flex","hue","newHue","marginTop","newAlpha","userSelect","rProps","gProps","bProps","aProps","reColor","HEXA","label","hsvaToHexa","toLocaleUpperCase","hsvaToHex","_","test","HSLA","hProps","sProps","lProps","rectRender","EditableInputHSLA","_props$hProps","_props$sProps","_props$lProps","_props$aProps","hsla","hsvaToHsla","evn","hslaToHsva","aPropsObj","Math","round","val","EditableInputRGBA","_props$placement","_props$rProps","_props$gProps","_props$bProps","rgba","hsvaToRgba","handleBlur","Number","target","rgbaToHsva","r","g","b","fontSize","onBlur","parseInt","String","EditableInput","initValue","setValue","isFocus","useEffect","placementStyle","editableStyle","paddingLeft","paddingRight","boxSizing","border","valInit","trim","replace","getNumberValue","isNaN","autoComplete","onFocus","textTransform","title","checked","rectStyle","outline","marginRight","marginBottom","defalutStyle","_objectDestructuringEmpty2","_extends2","_reactColorSwatch","_Point","CORLER_HEX","Github","TopRight","_props$colors","_props$rectProps","rStyle","borderStyle","arrBrStyl","arrStyl","borderWidth","borderColor","Top","BottomRight","Bottom","BottomLeft","right","RightTop","LeftTop","Left","Right","LeftBottom","RightBottom","handle","addonBefore","Hue","_props$hue","_onChange","v","interaction","useMemo","Saturation","_hsva$h","containerStyle","event","backgroundImage","_typeof2","Swatch","handleClick","flexWrap","isValidElement","Array","isArray","map","item","idx","toLocaleLowerCase","render","child","cloneElement","tabIndex","_utils","Interactive","container","hasTouched","isDragging","setDragging","onMoveCallback","useEventCallback","onKeyCallback","handleMove","preventDefaultMove","isTouch","touches","length","buttons","getRelativePosition","handleMoveEnd","toggleDocumentEvents","state","toggleEvent","addEventListener","removeEventListener","handleMoveStart","nativeEvent","isValid","touchAction","onMouseDown","onTouchStart","clamp","handler","callbackRef","preventDefault","number","min","arguments","max","node","rect","getBoundingClientRect","pageX","pageXOffset","pageY","pageYOffset","x","y","components","_typeof","o","Symbol","iterator","constructor","e","__esModule","t","_getRequireWildcardCache","has","n","__proto__","getOwnPropertyDescriptor","u","i","set","_reactColorChrome","WeakMap","_slicedToArray","_arrayWithHoles","f","next","done","push","_iterableToArrayLimit","_arrayLikeToArray","toString","slice","name","from","_unsupportedIterableToArray","TypeError","_nonIterableRest","setHsva","createElement","data","source","headings","headingsList","_extends","bind","apply"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/158.615a301a.chunk.js b/static/js/158.615a301a.chunk.js deleted file mode 100644 index cea733c35..000000000 --- a/static/js/158.615a301a.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[158],{2158:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={components:{21:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,n=function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=e(t)&&"function"!=typeof t)return{default:t};var n=a(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&{}.hasOwnProperty.call(t,u)){var l=i?Object.getOwnPropertyDescriptor(t,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=t[u]}return o.default=t,n&&n.set(t,o),o}(r(7804)),o=(t=r(411))&&t.__esModule?t:{default:t};function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,u=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(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)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)("#fff"),\n _useState2 = _slicedToArray(_useState, 2),\n hex = _useState2[0],\n setHex = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_reactColorBlock["default"], {\n color: hex,\n onChange: function onChange(color) {\n return setHex(color.hex);\n }\n }), /*#__PURE__*/_react["default"].createElement("div", {\n style: {\n background: hex,\n marginTop: 30,\n padding: 10\n }\n }, hex));\n};',language:"jsx",value:"import React, { useState } from 'react';\nimport Block from '@uiw/react-color-block';\n\nexport default function Demo() {\n const [hex, setHex] = useState(\"#fff\");\n return (\n <>\n setHex(color.hex)}\n />\n
\n {hex}\n
\n \n );\n}"}},source:"React Color Block\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-block)](https://bundlephobia.com/package/@uiw/react-color-block) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-block.svg)](https://www.npmjs.com/package/@uiw/react-color-block) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-block/file/README.md)\n\nBlock is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\n\n\x3c!--rehype:ignore:start--\x3e\n[![react-color-block](https://user-images.githubusercontent.com/1680273/125902022-0b18f481-2931-441e-b854-79b924b6c190.png)](https://uiwjs.github.io/react-color/#/block)\n\x3c!--rehype:ignore:end--\x3e\n\n## Install\n\n```bash\nnpm i @uiw/react-color-block\n```\n\n## Usage\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\nimport Block from '@uiw/react-color-block';\n\nexport default function Demo() {\n const [hex, setHex] = useState(\"#fff\");\n return (\n <>\n setHex(color.hex)}\n />\n
\n {hex}\n
\n \n );\n}\n```\n\n## Props\n\n```ts\nimport React from 'react';\nimport { HsvaColor, ColorResult } from '@uiw/color-convert';\nexport interface BlockProps extends Omit, 'onChange' | 'color'> {\n prefixCls?: string;\n color?: string | HsvaColor;\n colors?: string[];\n onChange?: (color: ColorResult) => void;\n}\ndeclare const Block: React.ForwardRefExoticComponent>;\nexport default Block;\n```\n\n\x3c!--footer-dividing--\x3e\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); -//# sourceMappingURL=158.615a301a.chunk.js.map \ No newline at end of file diff --git a/static/js/158.615a301a.chunk.js.map b/static/js/158.615a301a.chunk.js.map deleted file mode 100644 index dfdf0d98a..000000000 --- a/static/js/158.615a301a.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/158.615a301a.chunk.js","mappings":"+HACA,SACIA,WAAY,CAAE,GAAI,WAEtB,SAASC,EAAQC,GAAgC,OAAOD,EAAU,mBAAqBE,QAAU,iBAAmBA,OAAOC,SAAW,SAAUF,GAAK,cAAcA,CAAG,EAAI,SAAUA,GAAK,OAAOA,GAAK,mBAAqBC,QAAUD,EAAEG,cAAgBF,QAAUD,IAAMC,OAAOG,UAAY,gBAAkBJ,CAAG,EAAGD,EAAQC,EAAI,CAC7T,IAEgCK,EAF5BC,EAIJ,SAAiCD,EAAGE,GAAK,IAAKA,GAAKF,GAAKA,EAAEG,WAAY,OAAOH,EAAG,GAAI,OAASA,GAAK,UAAYN,EAAQM,IAAM,mBAAqBA,EAAG,MAAO,CAAE,QAAWA,GAAK,IAAII,EAAIC,EAAyBH,GAAI,GAAIE,GAAKA,EAAEE,IAAIN,GAAI,OAAOI,EAAEG,IAAIP,GAAI,IAAIQ,EAAI,CAAEC,UAAW,MAAQC,EAAIC,OAAOC,gBAAkBD,OAAOE,yBAA0B,IAAK,IAAIC,KAAKd,EAAG,GAAI,YAAcc,GAAK,CAA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AgClBU,KAAM,CACR,GAAM,CACJ,KAAQ,GACR,KAAQ,CAAC,EACT,KAAQ,k5GACR,SAAY,MACZ,MAAS,iZAGTC,OAAQ,4uEACRC,SAAS,GACTC,aAAa,G","sources":["../../packages/color-block/README.md"],"sourcesContent":["\nexport default {\n components: { 21: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactColorBlock = _interopRequireDefault(require(\"@uiw/react-color-block\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)(\"#fff\"),\n _useState2 = _slicedToArray(_useState, 2),\n hex = _useState2[0],\n setHex = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(_reactColorBlock[\"default\"], {\n color: hex,\n onChange: function onChange(color) {\n return setHex(color.hex);\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n background: hex,\n marginTop: 30,\n padding: 10\n }\n }, hex));\n}; })(), },\n data: {\n \"21\": {\n \"name\": 21,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactColorBlock = _interopRequireDefault(require(\\\"@uiw/react-color-block\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nreturn function Demo() {\\n var _useState = (0, _react.useState)(\\\"#fff\\\"),\\n _useState2 = _slicedToArray(_useState, 2),\\n hex = _useState2[0],\\n setHex = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_react[\\\"default\\\"].Fragment, null, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorBlock[\\\"default\\\"], {\\n color: hex,\\n onChange: function onChange(color) {\\n return setHex(color.hex);\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: {\\n background: hex,\\n marginTop: 30,\\n padding: 10\\n }\\n }, hex));\\n};\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport Block from '@uiw/react-color-block';\\n\\nexport default function Demo() {\\n const [hex, setHex] = useState(\\\"#fff\\\");\\n return (\\n <>\\n setHex(color.hex)}\\n />\\n
\\n {hex}\\n
\\n \\n );\\n}\"\n }\n},\n source: \"React Color Block\\n===\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-block)](https://bundlephobia.com/package/@uiw/react-color-block) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-block.svg)](https://www.npmjs.com/package/@uiw/react-color-block) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-block/file/README.md)\\n\\nBlock is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\\n\\n\\n[![react-color-block](https://user-images.githubusercontent.com/1680273/125902022-0b18f481-2931-441e-b854-79b924b6c190.png)](https://uiwjs.github.io/react-color/#/block)\\n\\n\\n## Install\\n\\n```bash\\nnpm i @uiw/react-color-block\\n```\\n\\n## Usage\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\nimport Block from '@uiw/react-color-block';\\n\\nexport default function Demo() {\\n const [hex, setHex] = useState(\\\"#fff\\\");\\n return (\\n <>\\n setHex(color.hex)}\\n />\\n
\\n {hex}\\n
\\n \\n );\\n}\\n```\\n\\n## Props\\n\\n```ts\\nimport React from 'react';\\nimport { HsvaColor, ColorResult } from '@uiw/color-convert';\\nexport interface BlockProps extends Omit, 'onChange' | 'color'> {\\n prefixCls?: string;\\n color?: string | HsvaColor;\\n colors?: string[];\\n onChange?: (color: ColorResult) => void;\\n}\\ndeclare const Block: React.ForwardRefExoticComponent>;\\nexport default Block;\\n```\\n\\n\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","_typeof","o","Symbol","iterator","constructor","prototype","e","_react","r","__esModule","t","_getRequireWildcardCache","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_interopRequireWildcard","_reactColorBlock","WeakMap","_slicedToArray","Array","isArray","_arrayWithHoles","l","f","next","done","push","value","length","_iterableToArrayLimit","_arrayLikeToArray","toString","slice","name","from","test","_unsupportedIterableToArray","TypeError","_nonIterableRest","_useState2","useState","hex","setHex","createElement","Fragment","color","onChange","style","background","marginTop","padding","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/158.cc4edd73.chunk.js b/static/js/158.cc4edd73.chunk.js new file mode 100644 index 000000000..d33b4eb0c --- /dev/null +++ b/static/js/158.cc4edd73.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[158],{1318:(e,t,r)=>{var o=r(6784).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(6651)),a=o(r(453)),l=o(r(7804)),i=r(7604),u=o(r(4226)),c=o(r(5560)),s=r(9424),f=["prefixCls","className","style","color","colors","onChange"],d=["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],p=l.default.forwardRef((function(e,t){var r=e.prefixCls,o=void 0===r?"w-color-block":r,l=e.className,p=e.style,b=e.color,h=e.colors,g=void 0===h?d:h,y=e.onChange,m=(0,a.default)(e,f),v="string"===typeof b&&(0,i.validHex)(b)?(0,i.hexToHsva)(b):b,x=b?(0,i.hsvaToHex)(v):"",_=function(e,t){"string"===typeof e&&(0,i.validHex)(e)&&/(3|6)/.test(String(e.replace(/^#/,"").length))&&y&&y((0,i.color)((0,i.hexToHsva)(e)))},w=(0,n.default)({"--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"},p);return(0,s.jsxs)("div",(0,n.default)((0,n.default)({ref:t,className:[o,l].filter(Boolean).join(" "),style:w},m),{},{children:[(0,s.jsx)("div",{style:{width:0,height:0,borderStyle:"solid",borderWidth:"0 10px 10px",borderColor:"transparent transparent ".concat(x),position:"absolute",top:-10,left:"50%",marginLeft:-10}}),(0,s.jsx)("div",{title:x,style:{backgroundColor:"".concat(x),color:(0,i.getContrastingColor)(x),height:110,fontSize:18,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center"},children:x.toLocaleUpperCase()}),(0,s.jsx)(c.default,{colors:g,color:x,style:{paddingLeft:10,paddingTop:10},rectProps:{style:{marginRight:10,marginBottom:10,borderRadius:4,height:22,width:22}},onChange:function(e){y&&y((0,i.color)(e))}}),(0,s.jsx)(u.default,{value:x.toLocaleUpperCase(),onChange:function(e,t){return _(t)},onBlur:function(e){var t=e.target.value;e.target.value=t.slice(0,6),_(t.slice(0,6))},inputStyle:{height:22,outline:0,borderRadius:3,padding:"0 7px"},style:{padding:10,paddingTop:0,borderRadius:"0 0 6px 6px"}})]}))}));p.displayName="Block";t.default=p;e.exports=t.default},4226:(e,t,r)=>{var o=r(6784).default,n=r(147).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(r(6651)),l=o(r(8821)),i=o(r(453)),u=n(r(7804)),c=r(9424),s=["prefixCls","placement","label","value","className","style","labelStyle","inputStyle","onChange","onBlur"],f=u.default.forwardRef((function(e,t){var r=e.prefixCls,o=void 0===r?"w-color-editable-input":r,n=e.placement,f=void 0===n?"bottom":n,d=e.label,p=e.value,b=e.className,h=e.style,g=e.labelStyle,y=e.inputStyle,m=e.onChange,v=e.onBlur,x=(0,i.default)(e,s),_=(0,u.useState)(p),w=(0,l.default)(_,2),k=w[0],C=w[1],j=(0,u.useRef)(!1);(0,u.useEffect)((function(){e.value!==k&&(j.current||C(e.value))}),[e.value]);var S={};"bottom"===f&&(S.flexDirection="column"),"top"===f&&(S.flexDirection="column-reverse"),"left"===f&&(S.flexDirection="row-reverse");var R=(0,a.default)((0,a.default)({"--editable-input-label-color":"rgb(153, 153, 153)","--editable-input-box-shadow":"rgb(204 204 204) 0px 0px 0px 1px inset","--editable-input-color":"#666",position:"relative",alignItems:"center",display:"flex",fontSize:11},S),h),A=(0,a.default)({width:"100%",paddingTop:2,paddingBottom:2,paddingLeft:3,paddingRight:3,fontSize:11,background:"transparent",boxSizing:"border-box",border:"none",color:"var(--editable-input-color)",boxShadow:"var(--editable-input-box-shadow)"},y);return(0,c.jsxs)("div",{className:[o,b||""].filter(Boolean).join(" "),style:R,children:[(0,c.jsx)("input",(0,a.default)((0,a.default)({ref:t,value:k,onChange:function(e,t){var r=(t||e.target.value).trim().replace(/^#/,"");/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(r)&&m&&m(e,r);var o=function(e){return Number(String(e).replace(/%/g,""))}(r);isNaN(o)||m&&m(e,o),C(r)},onBlur:function(t){j.current=!1,C(e.value),v&&v(t)},autoComplete:"off",onFocus:function(){return j.current=!0}},x),{},{style:A})),d&&(0,c.jsx)("span",{style:(0,a.default)({color:"var(--editable-input-label-color)",textTransform:"capitalize"},g),children:d})]})}));f.displayName="EditableInput";t.default=f;e.exports=t.default},5560:(e,t,r)=>{var o=r(6784).default,n=r(147).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(r(564)),l=o(r(6651)),i=o(r(453)),u=n(r(7804)),c=r(7604),s=r(9424),f=["prefixCls","className","color","colors","style","rectProps","onChange","addonAfter","addonBefore","rectRender"],d=u.default.forwardRef((function(e,t){var r=e.prefixCls,o=void 0===r?"w-color-swatch":r,n=e.className,d=e.color,p=e.colors,b=void 0===p?[]:p,h=e.style,g=e.rectProps,y=void 0===g?{}:g,m=e.onChange,v=e.addonAfter,x=e.addonBefore,_=e.rectRender,w=(0,i.default)(e,f),k=(0,l.default)({"--swatch-background-color":"rgb(144, 19, 254)",background:"var(--swatch-background-color)",height:15,width:15,marginRight:5,marginBottom:5,cursor:"pointer",position:"relative",outline:"none",borderRadius:2},y.style),C=function(e,t){m&&m((0,c.hexToHsva)(e),(0,c.color)((0,c.hexToHsva)(e)),t)};return(0,s.jsxs)("div",(0,l.default)((0,l.default)({ref:t},w),{},{className:[o,n||""].filter(Boolean).join(" "),style:(0,l.default)({display:"flex",flexWrap:"wrap",position:"relative"},h),children:[x&&u.default.isValidElement(x)&&x,b&&Array.isArray(b)&&b.map((function(e,t){var r="",o="";"string"===typeof e&&(r=e,o=e),"object"===(0,a.default)(e)&&e.color&&(r=e.title||e.color,o=e.color);var n=d&&d.toLocaleLowerCase()===o.toLocaleLowerCase(),i=_&&_({title:r,color:o,checked:!!n,style:(0,l.default)((0,l.default)({},k),{},{background:o}),onClick:function(e){return C(o,e)}});if(i)return(0,s.jsx)(u.Fragment,{children:i},t);var c=y.children&&u.default.isValidElement(y.children)?u.default.cloneElement(y.children,{color:o,checked:n}):null;return(0,s.jsx)("div",(0,l.default)((0,l.default)({tabIndex:0,title:r,onClick:function(e){return C(o,e)}},y),{},{children:c,style:(0,l.default)((0,l.default)({},k),{},{background:o})}),t)})),v&&u.default.isValidElement(v)&&v]}))}));d.displayName="Swatch";t.default=d;e.exports=t.default},2158:(e,t,r)=>{r.r(t),r.d(t,{default:()=>o});const o={components:{21:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,o=function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=e(t)&&"function"!=typeof t)return{default:t};var o=a(r);if(o&&o.has(t))return o.get(t);var n={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&{}.hasOwnProperty.call(t,i)){var u=l?Object.getOwnPropertyDescriptor(t,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=t[i]}return n.default=t,o&&o.set(t,n),n}(r(7804)),n=(t=r(1318))&&t.__esModule?t:{default:t};function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,a,l,i=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(o=a.call(r)).done)&&(i.push(o.value),i.length!==t);u=!0);}catch(e){c=!0,n=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(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)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)("#fff"),\n _useState2 = _slicedToArray(_useState, 2),\n hex = _useState2[0],\n setHex = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_reactColorBlock["default"], {\n color: hex,\n onChange: function onChange(color) {\n return setHex(color.hex);\n }\n }), /*#__PURE__*/_react["default"].createElement("div", {\n style: {\n background: hex,\n marginTop: 30,\n padding: 10\n }\n }, hex));\n};',language:"jsx",value:"import React, { useState } from 'react';\nimport Block from '@uiw/react-color-block';\n\nexport default function Demo() {\n const [hex, setHex] = useState(\"#fff\");\n return (\n <>\n setHex(color.hex)}\n />\n
\n {hex}\n
\n \n );\n}"}},source:"React Color Block\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-block)](https://bundlephobia.com/package/@uiw/react-color-block) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-block.svg)](https://www.npmjs.com/package/@uiw/react-color-block) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-block/file/README.md)\n\nBlock is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\n\n\x3c!--rehype:ignore:start--\x3e\n[![react-color-block](https://user-images.githubusercontent.com/1680273/125902022-0b18f481-2931-441e-b854-79b924b6c190.png)](https://uiwjs.github.io/react-color/#/block)\n\x3c!--rehype:ignore:end--\x3e\n\n## Install\n\n```bash\nnpm i @uiw/react-color-block\n```\n\n## Usage\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\nimport Block from '@uiw/react-color-block';\n\nexport default function Demo() {\n const [hex, setHex] = useState(\"#fff\");\n return (\n <>\n setHex(color.hex)}\n />\n
\n {hex}\n
\n \n );\n}\n```\n\n## Props\n\n```ts\nimport React from 'react';\nimport { HsvaColor, ColorResult } from '@uiw/color-convert';\nexport interface BlockProps extends Omit, 'onChange' | 'color'> {\n prefixCls?: string;\n color?: string | HsvaColor;\n colors?: string[];\n onChange?: (color: ColorResult) => void;\n}\ndeclare const Block: React.ForwardRefExoticComponent>;\nexport default Block;\n```\n\n\x3c!--footer-dividing--\x3e\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=158.cc4edd73.chunk.js.map \ No newline at end of file diff --git a/static/js/158.cc4edd73.chunk.js.map b/static/js/158.cc4edd73.chunk.js.map new file mode 100644 index 000000000..31b1e0809 --- /dev/null +++ b/static/js/158.cc4edd73.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/158.cc4edd73.chunk.js","mappings":"iGAEA,IAAIA,EAAyBC,EAAAA,MAAAA,QAC7BC,OAAOC,eAAeC,EAAS,aAAc,CAC3CC,OAAO,IAETD,EAAiB,aAAI,EACrB,IAAIE,EAAiBN,EAAuBC,EAAQ,OAChDM,EAA4BP,EAAuBC,EAAQ,MAC3DO,EAASR,EAAuBC,EAAQ,OACxCQ,EAAgBR,EAAQ,MACxBS,EAA2BV,EAAuBC,EAAQ,OAC1DU,EAAoBX,EAAuBC,EAAQ,OACnDW,EAAcX,EAAQ,MACtBY,EAAY,CAAC,YAAa,YAAa,QAAS,QAAS,SAAU,YACnEC,EAAa,CAAC,UAAW,UAAW,UAAW,UAAW,UAAW,UAAW,UAAW,UAAW,WACtGC,EAAqBP,EAAgB,QAAEQ,YAAW,SAAUC,EAAOC,GACrE,IAAIC,EAAmBF,EAAMG,UAC3BA,OAAiC,IAArBD,EAA8B,gBAAkBA,EAC5DE,EAAYJ,EAAMI,UAClBC,EAAQL,EAAMK,MACdC,EAAQN,EAAMM,MACdC,EAAgBP,EAAMQ,OACtBA,OAA2B,IAAlBD,EAA2BV,EAAaU,EACjDE,EAAWT,EAAMS,SACjBC,GAAQ,EAAIpB,EAAmC,SAAGU,EAAOJ,GACvDe,EAAwB,kBAAVL,IAAsB,EAAId,EAAcoB,UAAUN,IAAS,EAAId,EAAcqB,WAAWP,GAASA,EAC/GQ,EAAMR,GAAQ,EAAId,EAAcuB,WAAWJ,GAAQ,GAInDK,EAAY,SAAmB5B,EAAO6B,GACnB,kBAAV7B,IAAsB,EAAII,EAAcoB,UAAUxB,IAAU,QAAQ8B,KAAKC,OAAO/B,EAAMgC,QAAQ,KAAM,IAA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EAAgB,QAAE2K,cAAc3K,EAAgB,QAAE8H,SAAU,KAAmB9H,EAAgB,QAAE2K,cAAclB,EAA0B,QAAG,CAC9J1I,MAAOQ,EACPL,SAAU,SAAkBH,GAC1B,OAAO2J,EAAO3J,EAAMQ,IACtB,IACevB,EAAgB,QAAE2K,cAAc,MAAO,CACtD7J,MAAO,CACLoB,WAAYX,EACZqJ,UAAW,GACXrG,QAAS,KAEVhD,GACL,CAAI,CA/BkB,IAgClBsJ,KAAM,CACR,GAAM,CACJ,KAAQ,GACR,KAAQ,CAAC,EACT,KAAQ,k5GACR,SAAY,MACZ,MAAS,iZAGTC,OAAQ,4uEACRC,SAAS,GACTC,aAAa,G","sources":["../../packages/color-block/cjs/index.js","../../packages/color-editable-input/cjs/index.js","../../packages/color-swatch/cjs/index.js","../../packages/color-block/README.md"],"sourcesContent":["\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactColorEditableInput = _interopRequireDefault(require(\"@uiw/react-color-editable-input\"));\nvar _reactColorSwatch = _interopRequireDefault(require(\"@uiw/react-color-swatch\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"color\", \"colors\", \"onChange\"];\nvar CORLER_HEX = ['#D9E3F0', '#F47373', '#697689', '#37D67A', '#2CCCE4', '#555555', '#dce775', '#ff8a65', '#ba68c8'];\nvar Block = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-block' : _props$prefixCls,\n className = props.className,\n style = props.style,\n color = props.color,\n _props$colors = props.colors,\n colors = _props$colors === void 0 ? CORLER_HEX : _props$colors,\n onChange = props.onChange,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var hsva = typeof color === 'string' && (0, _colorConvert.validHex)(color) ? (0, _colorConvert.hexToHsva)(color) : color;\n var hex = color ? (0, _colorConvert.hsvaToHex)(hsva) : '';\n var handleChange = function handleChange(hsv) {\n onChange && onChange((0, _colorConvert.color)(hsv));\n };\n var handleHex = function handleHex(value, evn) {\n if (typeof value === 'string' && (0, _colorConvert.validHex)(value) && /(3|6)/.test(String(value.replace(/^#/, '').length))) {\n onChange && onChange((0, _colorConvert.color)((0, _colorConvert.hexToHsva)(value)));\n }\n };\n var stylePointer = (0, _objectSpread2[\"default\"])({\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__*/(0, _jsxRuntime.jsxs)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n ref: ref,\n className: [prefixCls, className].filter(Boolean).join(' '),\n style: stylePointer\n }, other), {}, {\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", {\n style: {\n width: 0,\n height: 0,\n borderStyle: 'solid',\n borderWidth: '0 10px 10px',\n borderColor: \"transparent transparent \".concat(hex),\n position: 'absolute',\n top: -10,\n left: '50%',\n marginLeft: -10\n }\n }), /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", {\n title: hex,\n style: {\n backgroundColor: \"\".concat(hex),\n color: (0, _colorConvert.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__*/(0, _jsxRuntime.jsx)(_reactColorSwatch[\"default\"], {\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__*/(0, _jsxRuntime.jsx)(_reactColorEditableInput[\"default\"], {\n value: hex.toLocaleUpperCase(),\n onChange: function onChange(evn, val) {\n return handleHex(val, evn);\n },\n onBlur: function 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';\nvar _default = exports[\"default\"] = Block;\nmodule.exports = exports.default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _slicedToArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/slicedToArray\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"placement\", \"label\", \"value\", \"className\", \"style\", \"labelStyle\", \"inputStyle\", \"onChange\", \"onBlur\"];\nvar validHex = function validHex(hex) {\n return /^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(hex);\n};\nvar getNumberValue = function getNumberValue(value) {\n return Number(String(value).replace(/%/g, ''));\n};\nvar EditableInput = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-editable-input' : _props$prefixCls,\n _props$placement = props.placement,\n placement = _props$placement === void 0 ? 'bottom' : _props$placement,\n label = props.label,\n initValue = props.value,\n className = props.className,\n style = props.style,\n labelStyle = props.labelStyle,\n inputStyle = props.inputStyle,\n onChange = props.onChange,\n onBlur = props.onBlur,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var _useState = (0, _react.useState)(initValue),\n _useState2 = (0, _slicedToArray2[\"default\"])(_useState, 2),\n value = _useState2[0],\n setValue = _useState2[1];\n var isFocus = (0, _react.useRef)(false);\n (0, _react.useEffect)(function () {\n if (props.value !== value) {\n if (!isFocus.current) {\n setValue(props.value);\n }\n }\n }, [props.value]);\n function handleChange(evn, valInit) {\n var value = (valInit || evn.target.value).trim().replace(/^#/, '');\n if (validHex(value)) {\n onChange && onChange(evn, value);\n }\n var val = getNumberValue(value);\n if (!isNaN(val)) {\n onChange && onChange(evn, val);\n }\n setValue(value);\n }\n function handleBlur(evn) {\n isFocus.current = false;\n setValue(props.value);\n onBlur && onBlur(evn);\n }\n var placementStyle = {};\n if (placement === 'bottom') {\n placementStyle['flexDirection'] = 'column';\n }\n if (placement === 'top') {\n placementStyle['flexDirection'] = 'column-reverse';\n }\n if (placement === 'left') {\n placementStyle['flexDirection'] = 'row-reverse';\n }\n var wrapperStyle = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n '--editable-input-label-color': 'rgb(153, 153, 153)',\n '--editable-input-box-shadow': 'rgb(204 204 204) 0px 0px 0px 1px inset',\n '--editable-input-color': '#666',\n position: 'relative',\n alignItems: 'center',\n display: 'flex',\n fontSize: 11\n }, placementStyle), style);\n var editableStyle = (0, _objectSpread2[\"default\"])({\n width: '100%',\n paddingTop: 2,\n paddingBottom: 2,\n paddingLeft: 3,\n paddingRight: 3,\n fontSize: 11,\n background: 'transparent',\n boxSizing: 'border-box',\n border: 'none',\n color: 'var(--editable-input-color)',\n boxShadow: 'var(--editable-input-box-shadow)'\n }, inputStyle);\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", {\n className: [prefixCls, className || ''].filter(Boolean).join(' '),\n style: wrapperStyle,\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(\"input\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n ref: ref,\n value: value,\n onChange: handleChange,\n onBlur: handleBlur,\n autoComplete: \"off\",\n onFocus: function onFocus() {\n return isFocus.current = true;\n }\n }, other), {}, {\n style: editableStyle\n })), label && /*#__PURE__*/(0, _jsxRuntime.jsx)(\"span\", {\n style: (0, _objectSpread2[\"default\"])({\n color: 'var(--editable-input-label-color)',\n textTransform: 'capitalize'\n }, labelStyle),\n children: label\n })]\n });\n});\nEditableInput.displayName = 'EditableInput';\nvar _default = exports[\"default\"] = EditableInput;\nmodule.exports = exports.default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"className\", \"color\", \"colors\", \"style\", \"rectProps\", \"onChange\", \"addonAfter\", \"addonBefore\", \"rectRender\"];\nvar Swatch = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-swatch' : _props$prefixCls,\n className = props.className,\n color = props.color,\n _props$colors = props.colors,\n colors = _props$colors === void 0 ? [] : _props$colors,\n style = props.style,\n _props$rectProps = props.rectProps,\n rectProps = _props$rectProps === void 0 ? {} : _props$rectProps,\n onChange = props.onChange,\n addonAfter = props.addonAfter,\n addonBefore = props.addonBefore,\n rectRender = props.rectRender,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var rectStyle = (0, _objectSpread2[\"default\"])({\n '--swatch-background-color': 'rgb(144, 19, 254)',\n background: 'var(--swatch-background-color)',\n height: 15,\n width: 15,\n marginRight: 5,\n marginBottom: 5,\n cursor: 'pointer',\n position: 'relative',\n outline: 'none',\n borderRadius: 2\n }, rectProps.style);\n var handleClick = function handleClick(hex, evn) {\n onChange && onChange((0, _colorConvert.hexToHsva)(hex), (0, _colorConvert.color)((0, _colorConvert.hexToHsva)(hex)), evn);\n };\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n ref: ref\n }, other), {}, {\n className: [prefixCls, className || ''].filter(Boolean).join(' '),\n style: (0, _objectSpread2[\"default\"])({\n display: 'flex',\n flexWrap: 'wrap',\n position: 'relative'\n }, style),\n children: [addonBefore && /*#__PURE__*/_react[\"default\"].isValidElement(addonBefore) && addonBefore, colors && Array.isArray(colors) && colors.map(function (item, idx) {\n var title = '';\n var background = '';\n if (typeof item === 'string') {\n title = item;\n background = item;\n }\n if ((0, _typeof2[\"default\"])(item) === 'object' && item.color) {\n title = item.title || item.color;\n background = item.color;\n }\n var checked = color && color.toLocaleLowerCase() === background.toLocaleLowerCase();\n var render = rectRender && rectRender({\n title: title,\n color: background,\n checked: !!checked,\n style: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, rectStyle), {}, {\n background: background\n }),\n onClick: function onClick(evn) {\n return handleClick(background, evn);\n }\n });\n if (render) {\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Fragment, {\n children: render\n }, idx);\n }\n var child = rectProps.children && /*#__PURE__*/_react[\"default\"].isValidElement(rectProps.children) ? /*#__PURE__*/_react[\"default\"].cloneElement(rectProps.children, {\n color: background,\n checked: checked\n }) : null;\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n tabIndex: 0,\n title: title,\n onClick: function onClick(evn) {\n return handleClick(background, evn);\n }\n }, rectProps), {}, {\n children: child,\n style: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, rectStyle), {}, {\n background: background\n })\n }), idx);\n }), addonAfter && /*#__PURE__*/_react[\"default\"].isValidElement(addonAfter) && addonAfter]\n }));\n});\nSwatch.displayName = 'Swatch';\nvar _default = exports[\"default\"] = Swatch;\nmodule.exports = exports.default;","\nexport default {\n components: { 21: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactColorBlock = _interopRequireDefault(require(\"@uiw/react-color-block\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)(\"#fff\"),\n _useState2 = _slicedToArray(_useState, 2),\n hex = _useState2[0],\n setHex = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(_reactColorBlock[\"default\"], {\n color: hex,\n onChange: function onChange(color) {\n return setHex(color.hex);\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n background: hex,\n marginTop: 30,\n padding: 10\n }\n }, hex));\n}; })(), },\n data: {\n \"21\": {\n \"name\": 21,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactColorBlock = _interopRequireDefault(require(\\\"@uiw/react-color-block\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nreturn function Demo() {\\n var _useState = (0, _react.useState)(\\\"#fff\\\"),\\n _useState2 = _slicedToArray(_useState, 2),\\n hex = _useState2[0],\\n setHex = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_react[\\\"default\\\"].Fragment, null, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorBlock[\\\"default\\\"], {\\n color: hex,\\n onChange: function onChange(color) {\\n return setHex(color.hex);\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: {\\n background: hex,\\n marginTop: 30,\\n padding: 10\\n }\\n }, hex));\\n};\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport Block from '@uiw/react-color-block';\\n\\nexport default function Demo() {\\n const [hex, setHex] = useState(\\\"#fff\\\");\\n return (\\n <>\\n setHex(color.hex)}\\n />\\n
\\n {hex}\\n
\\n \\n );\\n}\"\n }\n},\n source: \"React Color Block\\n===\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-block)](https://bundlephobia.com/package/@uiw/react-color-block) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-block.svg)](https://www.npmjs.com/package/@uiw/react-color-block) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-block/file/README.md)\\n\\nBlock is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\\n\\n\\n[![react-color-block](https://user-images.githubusercontent.com/1680273/125902022-0b18f481-2931-441e-b854-79b924b6c190.png)](https://uiwjs.github.io/react-color/#/block)\\n\\n\\n## Install\\n\\n```bash\\nnpm i @uiw/react-color-block\\n```\\n\\n## Usage\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\nimport Block from '@uiw/react-color-block';\\n\\nexport default function Demo() {\\n const [hex, setHex] = useState(\\\"#fff\\\");\\n return (\\n <>\\n setHex(color.hex)}\\n />\\n
\\n {hex}\\n
\\n \\n );\\n}\\n```\\n\\n## Props\\n\\n```ts\\nimport React from 'react';\\nimport { HsvaColor, ColorResult } from '@uiw/color-convert';\\nexport interface BlockProps extends Omit, 'onChange' | 'color'> {\\n prefixCls?: string;\\n color?: string | HsvaColor;\\n colors?: string[];\\n onChange?: (color: ColorResult) => void;\\n}\\ndeclare const Block: React.ForwardRefExoticComponent>;\\nexport default Block;\\n```\\n\\n\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["_interopRequireDefault","require","Object","defineProperty","exports","value","_objectSpread2","_objectWithoutProperties2","_react","_colorConvert","_reactColorEditableInput","_reactColorSwatch","_jsxRuntime","_excluded","CORLER_HEX","Block","forwardRef","props","ref","_props$prefixCls","prefixCls","className","style","color","_props$colors","colors","onChange","other","hsva","validHex","hexToHsva","hex","hsvaToHex","handleHex","evn","test","String","replace","length","stylePointer","width","borderRadius","background","boxShadow","position","jsxs","filter","Boolean","join","children","jsx","height","borderStyle","borderWidth","borderColor","concat","top","left","marginLeft","title","backgroundColor","getContrastingColor","fontSize","display","alignItems","justifyContent","toLocaleUpperCase","paddingLeft","paddingTop","rectProps","marginRight","marginBottom","hsv","val","onBlur","target","slice","inputStyle","outline","padding","displayName","module","default","_interopRequireWildcard","_slicedToArray2","EditableInput","_props$placement","placement","label","initValue","labelStyle","_useState","useState","_useState2","setValue","isFocus","useRef","useEffect","current","placementStyle","wrapperStyle","editableStyle","paddingBottom","paddingRight","boxSizing","border","valInit","trim","Number","getNumberValue","isNaN","autoComplete","onFocus","textTransform","_typeof2","Swatch","_props$rectProps","addonAfter","addonBefore","rectRender","rectStyle","cursor","handleClick","flexWrap","isValidElement","Array","isArray","map","item","idx","checked","toLocaleLowerCase","render","onClick","Fragment","child","cloneElement","tabIndex","components","_typeof","o","Symbol","iterator","constructor","prototype","e","r","__esModule","t","_getRequireWildcardCache","has","get","n","__proto__","a","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_reactColorBlock","WeakMap","_slicedToArray","_arrayWithHoles","l","f","next","done","push","_iterableToArrayLimit","_arrayLikeToArray","toString","name","from","_unsupportedIterableToArray","TypeError","_nonIterableRest","setHex","createElement","marginTop","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/185.d382b48b.chunk.js b/static/js/185.d382b48b.chunk.js deleted file mode 100644 index 8f3165b64..000000000 --- a/static/js/185.d382b48b.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[185],{5185:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={components:{21:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,n=function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=e(t)&&"function"!=typeof t)return{default:t};var n=l(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&{}.hasOwnProperty.call(t,u)){var i=a?Object.getOwnPropertyDescriptor(t,u):null;i&&(i.get||i.set)?Object.defineProperty(o,u,i):o[u]=t[u]}return o.default=t,n&&n.set(t,o),o}(r(7804)),o=(t=r(8024))&&t.__esModule?t:{default:t},a=r(2945);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,l,u=[],i=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;i=!1}else for(;!(i=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{if(!i&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(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)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 0,\n v: 68,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_reactColorColorful["default"], {\n color: hsva,\n onChange: function onChange(color) {\n setHsva(color.hsva);\n }\n }), /*#__PURE__*/_react["default"].createElement("div", {\n style: {\n background: (0, _colorConvert.hsvaToHex)(hsva),\n marginTop: 30,\n padding: 10\n }\n }, JSON.stringify(hsva)));\n};',language:"jsx",value:"import React, { useState } from 'react';\nimport Colorful from '@uiw/react-color-colorful';\nimport { hsvaToHex } from '@uiw/color-convert';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\n return (\n <>\n {\n setHsva(color.hsva);\n }}\n />\n
\n {JSON.stringify(hsva)}\n
\n \n );\n}"},44:{name:44,meta:{},code:'"use strict";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require("react"));\nvar _reactColorColorful = _interopRequireDefault(require("@uiw/react-color-colorful"));\nvar _colorConvert = require("@uiw/color-convert");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }\nfunction _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 0,\n v: 68,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n var _useState3 = (0, _react.useState)(false),\n _useState4 = _slicedToArray(_useState3, 2),\n disableAlpha = _useState4[0],\n setDisableAlpha = _useState4[1];\n return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("label", null, /*#__PURE__*/_react["default"].createElement("input", {\n type: "checkbox",\n checked: disableAlpha,\n onChange: function onChange(evn) {\n return setDisableAlpha(evn.target.checked);\n }\n }), disableAlpha ? "Hide" : "Show", " Alpha"), /*#__PURE__*/_react["default"].createElement(_reactColorColorful["default"], {\n color: hsva,\n disableAlpha: disableAlpha,\n onChange: function onChange(color) {\n setHsva(color.hsva);\n }\n }), /*#__PURE__*/_react["default"].createElement("div", {\n style: {\n background: (0, _colorConvert.hsvaToHex)(hsva),\n marginTop: 30,\n padding: 10\n }\n }, JSON.stringify(hsva)));\n};',language:"jsx",value:"import React, { useState } from 'react';\nimport Colorful from '@uiw/react-color-colorful';\nimport { hsvaToHex } from '@uiw/color-convert';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\n const [disableAlpha, setDisableAlpha] = useState(false);\n return (\n <>\n \n {\n setHsva(color.hsva);\n }}\n />\n
\n {JSON.stringify(hsva)}\n
\n \n );\n}"}},source:"React Color Colorful\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-colorful)](https://bundlephobia.com/package/@uiw/react-color-colorful) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-colorful.svg)](https://www.npmjs.com/package/@uiw/react-color-colorful) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-colorful/file/README.md)\n\nColorful Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\n\n\x3c!--rehype:ignore:start--\x3e\n[![react-color-colorful](https://user-images.githubusercontent.com/1680273/125949419-cdcac5cb-f5a9-47af-956f-4056630503c9.png)](https://uiwjs.github.io/react-color/#/colorful)\n\x3c!--rehype:ignore:end--\x3e\n\n## Install\n\n```bash\nnpm i @uiw/react-color-colorful\n```\n\n## Usage\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\nimport Colorful from '@uiw/react-color-colorful';\nimport { hsvaToHex } from '@uiw/color-convert';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\n return (\n <>\n {\n setHsva(color.hsva);\n }}\n />\n
\n {JSON.stringify(hsva)}\n
\n \n );\n}\n```\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\nimport Colorful from '@uiw/react-color-colorful';\nimport { hsvaToHex } from '@uiw/color-convert';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\n const [disableAlpha, setDisableAlpha] = useState(false);\n return (\n <>\n \n {\n setHsva(color.hsva);\n }}\n />\n
\n {JSON.stringify(hsva)}\n
\n \n );\n}\n```\n\n\n## Props\n\n```ts\nimport React from 'react';\nimport { HsvaColor, ColorResult } from '@uiw/color-convert';\nexport interface ColorfulProps extends Omit, 'onChange' | 'color'> {\n prefixCls?: string;\n onChange?: (color: ColorResult) => void;\n color?: string | HsvaColor;\n disableAlpha?: boolean;\n}\ndeclare const Colorful: React.ForwardRefExoticComponent>;\nexport default Colorful;\n```\n\n\x3c!--footer-dividing--\x3e\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); -//# sourceMappingURL=185.d382b48b.chunk.js.map \ No newline at end of file diff --git a/static/js/185.d382b48b.chunk.js.map b/static/js/185.d382b48b.chunk.js.map deleted file mode 100644 index 926d1f5c4..000000000 --- a/static/js/185.d382b48b.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/185.d382b48b.chunk.js","mappings":"+HACA,SACIA,WAAY,CAAE,GAAI,WAEtB,SAASC,EAAQC,GAAgC,OAAOD,EAAU,mBAAqBE,QAAU,iBAAmBA,OAAOC,SAAW,SAAUF,GAAK,cAAcA,CAAG,EAAI,SAAUA,GAAK,OAAOA,GAAK,mBAAqBC,QAAUD,EAAEG,cAAgBF,QAAUD,IAAMC,OAAOG,UAAY,gBAAkBJ,CAAG,EAAGD,EAAQC,EAAI,CAC7T,IAGgCK,EAH5BC,EAKJ,SAAiCD,EAAGE,GAAK,IAAKA,GAAKF,GAAKA,EAAEG,WAAY,OAAOH,EAAG,GAAI,OAASA,GAAK,UAAYN,EAAQM,IAAM,mBAAqBA,EAAG,MAAO,CAAE,QAAWA,GAAK,IAAII,EAAIC,EAAyBH,GAAI,GAAIE,GAAKA,EAAEE,IAAIN,GAAI,OAAOI,EAAEG,IAAIP,GAAI,IAAIQ,EAAI,CAAEC,UAAW,MAAQC,EAAIC,OAAOC,gBAAkBD,OAAOE,yBAA0B,IAAK,IAAIC,KAAKd,EAAG,GAAI,YAAcc,GAAK,CAAC,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,EACT,KAAQ,mjHACR,SAAY,MACZ,MAAS,whBAEX,GAAM,CACJ,KAAQ,GACR,KAAQ,CAAC,EACT,KAAQ,0jIACR,SAAY,MACZ,MAAS,22BAGTC,OAAQ,kzGACRC,SAAS,GACTC,aAAa,G","sources":["../../packages/color-colorful/README.md"],"sourcesContent":["\nexport default {\n components: { 21: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactColorColorful = _interopRequireDefault(require(\"@uiw/react-color-colorful\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 0,\n v: 68,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(_reactColorColorful[\"default\"], {\n color: hsva,\n onChange: function onChange(color) {\n setHsva(color.hsva);\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n background: (0, _colorConvert.hsvaToHex)(hsva),\n marginTop: 30,\n padding: 10\n }\n }, JSON.stringify(hsva)));\n}; })(),44: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactColorColorful = _interopRequireDefault(require(\"@uiw/react-color-colorful\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 0,\n v: 68,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n var _useState3 = (0, _react.useState)(false),\n _useState4 = _slicedToArray(_useState3, 2),\n disableAlpha = _useState4[0],\n setDisableAlpha = _useState4[1];\n return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(\"label\", null, /*#__PURE__*/_react[\"default\"].createElement(\"input\", {\n type: \"checkbox\",\n checked: disableAlpha,\n onChange: function onChange(evn) {\n return setDisableAlpha(evn.target.checked);\n }\n }), disableAlpha ? \"Hide\" : \"Show\", \" Alpha\"), /*#__PURE__*/_react[\"default\"].createElement(_reactColorColorful[\"default\"], {\n color: hsva,\n disableAlpha: disableAlpha,\n onChange: function onChange(color) {\n setHsva(color.hsva);\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n background: (0, _colorConvert.hsvaToHex)(hsva),\n marginTop: 30,\n padding: 10\n }\n }, JSON.stringify(hsva)));\n}; })(), },\n data: {\n \"21\": {\n \"name\": 21,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactColorColorful = _interopRequireDefault(require(\\\"@uiw/react-color-colorful\\\"));\\nvar _colorConvert = require(\\\"@uiw/color-convert\\\");\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nreturn function Demo() {\\n var _useState = (0, _react.useState)({\\n h: 0,\\n s: 0,\\n v: 68,\\n a: 1\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n hsva = _useState2[0],\\n setHsva = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_react[\\\"default\\\"].Fragment, null, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorColorful[\\\"default\\\"], {\\n color: hsva,\\n onChange: function onChange(color) {\\n setHsva(color.hsva);\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: {\\n background: (0, _colorConvert.hsvaToHex)(hsva),\\n marginTop: 30,\\n padding: 10\\n }\\n }, JSON.stringify(hsva)));\\n};\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport Colorful from '@uiw/react-color-colorful';\\nimport { hsvaToHex } from '@uiw/color-convert';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\\n return (\\n <>\\n {\\n setHsva(color.hsva);\\n }}\\n />\\n
\\n {JSON.stringify(hsva)}\\n
\\n \\n );\\n}\"\n },\n \"44\": {\n \"name\": 44,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactColorColorful = _interopRequireDefault(require(\\\"@uiw/react-color-colorful\\\"));\\nvar _colorConvert = require(\\\"@uiw/color-convert\\\");\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nreturn function Demo() {\\n var _useState = (0, _react.useState)({\\n h: 0,\\n s: 0,\\n v: 68,\\n a: 1\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n hsva = _useState2[0],\\n setHsva = _useState2[1];\\n var _useState3 = (0, _react.useState)(false),\\n _useState4 = _slicedToArray(_useState3, 2),\\n disableAlpha = _useState4[0],\\n setDisableAlpha = _useState4[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_react[\\\"default\\\"].Fragment, null, /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"label\\\", null, /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"input\\\", {\\n type: \\\"checkbox\\\",\\n checked: disableAlpha,\\n onChange: function onChange(evn) {\\n return setDisableAlpha(evn.target.checked);\\n }\\n }), disableAlpha ? \\\"Hide\\\" : \\\"Show\\\", \\\" Alpha\\\"), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorColorful[\\\"default\\\"], {\\n color: hsva,\\n disableAlpha: disableAlpha,\\n onChange: function onChange(color) {\\n setHsva(color.hsva);\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: {\\n background: (0, _colorConvert.hsvaToHex)(hsva),\\n marginTop: 30,\\n padding: 10\\n }\\n }, JSON.stringify(hsva)));\\n};\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport Colorful from '@uiw/react-color-colorful';\\nimport { hsvaToHex } from '@uiw/color-convert';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\\n const [disableAlpha, setDisableAlpha] = useState(false);\\n return (\\n <>\\n \\n {\\n setHsva(color.hsva);\\n }}\\n />\\n
\\n {JSON.stringify(hsva)}\\n
\\n \\n );\\n}\"\n }\n},\n source: \"React Color Colorful\\n===\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-colorful)](https://bundlephobia.com/package/@uiw/react-color-colorful) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-colorful.svg)](https://www.npmjs.com/package/@uiw/react-color-colorful) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-colorful/file/README.md)\\n\\nColorful Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\\n\\n\\n[![react-color-colorful](https://user-images.githubusercontent.com/1680273/125949419-cdcac5cb-f5a9-47af-956f-4056630503c9.png)](https://uiwjs.github.io/react-color/#/colorful)\\n\\n\\n## Install\\n\\n```bash\\nnpm i @uiw/react-color-colorful\\n```\\n\\n## Usage\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\nimport Colorful from '@uiw/react-color-colorful';\\nimport { hsvaToHex } from '@uiw/color-convert';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\\n return (\\n <>\\n {\\n setHsva(color.hsva);\\n }}\\n />\\n
\\n {JSON.stringify(hsva)}\\n
\\n \\n );\\n}\\n```\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\nimport Colorful from '@uiw/react-color-colorful';\\nimport { hsvaToHex } from '@uiw/color-convert';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\\n const [disableAlpha, setDisableAlpha] = useState(false);\\n return (\\n <>\\n \\n {\\n setHsva(color.hsva);\\n }}\\n />\\n
\\n {JSON.stringify(hsva)}\\n
\\n \\n );\\n}\\n```\\n\\n\\n## Props\\n\\n```ts\\nimport React from 'react';\\nimport { HsvaColor, ColorResult } from '@uiw/color-convert';\\nexport interface ColorfulProps extends Omit, 'onChange' | 'color'> {\\n prefixCls?: string;\\n onChange?: (color: ColorResult) => void;\\n color?: string | HsvaColor;\\n disableAlpha?: boolean;\\n}\\ndeclare const Colorful: React.ForwardRefExoticComponent>;\\nexport default Colorful;\\n```\\n\\n\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","_typeof","o","Symbol","iterator","constructor","prototype","e","_react","r","__esModule","t","_getRequireWildcardCache","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_interopRequireWildcard","_reactColorColorful","_colorConvert","WeakMap","_slicedToArray","Array","isArray","_arrayWithHoles","l","f","next","done","push","value","length","_iterableToArrayLimit","_arrayLikeToArray","toString","slice","name","from","test","_unsupportedIterableToArray","TypeError","_nonIterableRest","_useState2","useState","h","s","v","hsva","setHsva","createElement","Fragment","color","onChange","style","background","hsvaToHex","marginTop","padding","JSON","stringify","_useState4","disableAlpha","setDisableAlpha","type","checked","evn","target","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/185.e096f7e8.chunk.js b/static/js/185.e096f7e8.chunk.js new file mode 100644 index 000000000..d54c87f30 --- /dev/null +++ b/static/js/185.e096f7e8.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[185],{5602:(e,t,r)=>{var n=r(6784).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Pointer=void 0;var o=n(r(6651)),a=n(r(453)),l=(n(r(7804)),r(9424)),u=["className","prefixCls","left","top","style","fillProps"];t.Pointer=function(e){var t=e.className,r=e.prefixCls,n=e.left,i=e.top,c=e.style,s=e.fillProps,f=(0,a.default)(e,u),d=(0,o.default)((0,o.default)({},c),{},{position:"absolute",left:n,top:i}),p=(0,o.default)((0,o.default)({width:18,height:18,boxShadow:"var(--alpha-pointer-box-shadow)",borderRadius:"50%",backgroundColor:"var(--alpha-pointer-background-color)"},null===s||void 0===s?void 0:s.style),{},{transform:n?"translate(-9px, -1px)":"translate(-1px, -9px)"});return(0,l.jsx)("div",(0,o.default)((0,o.default)({className:"".concat(r,"-pointer ").concat(t||""),style:d},f),{},{children:(0,l.jsx)("div",(0,o.default)((0,o.default)({className:"".concat(r,"-fill")},s),{},{style:p}))}))}},4707:(e,t,r)=>{var n=r(6784).default;Object.defineProperty(t,"__esModule",{value:!0});var o={BACKGROUND_IMG:!0};t.default=t.BACKGROUND_IMG=void 0;var a=n(r(6651)),l=n(r(453)),u=n(r(7804)),i=r(7604),c=n(r(7611)),s=r(5602);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var f=r(9424),d=["prefixCls","className","hsva","background","bgProps","innerProps","pointerProps","radius","width","height","direction","style","onChange","pointer"],p=t.BACKGROUND_IMG="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==",h=u.default.forwardRef((function(e,t){var r=e.prefixCls,n=void 0===r?"w-color-alpha":r,o=e.className,u=e.hsva,h=e.background,v=e.bgProps,b=void 0===v?{}:v,y=e.innerProps,g=void 0===y?{}:y,m=e.pointerProps,_=void 0===m?{}:m,x=e.radius,w=void 0===x?0:x,C=e.width,A=e.height,S=void 0===A?16:A,j=e.direction,k=void 0===j?"horizontal":j,O=e.style,R=e.onChange,P=e.pointer,T=(0,l.default)(e,d),M=function(e){R&&R((0,a.default)((0,a.default)({},u),{},{a:"horizontal"===k?e.left:e.top}),e)},E=(0,i.hsvaToHslaString)(Object.assign({},u,{a:1})),D="linear-gradient(to ".concat("horizontal"===k?"right":"bottom",", rgba(244, 67, 54, 0) 0%, ").concat(E," 100%)"),N={};"horizontal"===k?N.left="".concat(100*u.a,"%"):N.top="".concat(100*u.a,"%");var H=(0,a.default)((0,a.default)((0,a.default)({"--alpha-background-color":"#fff","--alpha-pointer-background-color":"rgb(248, 248, 248)","--alpha-pointer-box-shadow":"rgb(0 0 0 / 37%) 0px 1px 4px 0px",borderRadius:w,background:"url(".concat(p,") left center"),backgroundColor:"var(--alpha-background-color)"},{width:C,height:S}),O),{},{position:"relative"}),I=P&&"function"===typeof P?P((0,a.default)((0,a.default)({prefixCls:n},_),N)):(0,f.jsx)(s.Pointer,(0,a.default)((0,a.default)({},_),{},{prefixCls:n},N));return(0,f.jsxs)("div",(0,a.default)((0,a.default)({},T),{},{className:[n,"".concat(n,"-").concat(k),o||""].filter(Boolean).join(" "),style:H,ref:t,children:[(0,f.jsx)("div",(0,a.default)((0,a.default)({},b),{},{style:(0,a.default)({inset:0,position:"absolute",background:h||D,borderRadius:w},b.style)})),(0,f.jsx)(c.default,(0,a.default)((0,a.default)({},g),{},{style:(0,a.default)((0,a.default)({},g.style),{},{inset:0,zIndex:1,position:"absolute"}),onMove:M,onDown:M,children:I}))]}))}));h.displayName="Alpha";t.default=h},1077:(e,t,r)=>{var n=r(6784).default,o=r(147).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(6651)),l=n(r(453)),u=n(r(7804)),i=r(7604),c=o(r(4707)),s=n(r(3955)),f=n(r(345)),d=r(9424),p=["style","color"],h=["prefixCls","className","onChange","color","style","disableAlpha"],v=function(e){var t=e.style,r=e.color,n=(0,l.default)(e,p),o=(0,a.default)({"--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(".concat(c.BACKGROUND_IMG,")"),backgroundColor:"var(--colorful-pointer-background-color)",border:"var(--colorful-pointer-border)",zIndex:1},t);return(0,d.jsx)("div",(0,a.default)((0,a.default)({},n),{},{style:o,children:(0,d.jsx)("div",{style:{backgroundColor:r,borderRadius:"50%",height:" 100%",width:"100%"}})}))},b=u.default.forwardRef((function(e,t){var r=e.prefixCls,n=void 0===r?"w-color-colorful":r,o=e.className,u=e.onChange,p=e.color,b=e.style,y=e.disableAlpha,g=(0,l.default)(e,h),m="string"===typeof p&&(0,i.validHex)(p)?(0,i.hexToHsva)(p):p||{},_=function(e){return u&&u((0,i.color)(e))};return(0,d.jsxs)("div",(0,a.default)((0,a.default)({ref:t,style:(0,a.default)({width:200,position:"relative"},b)},g),{},{className:"".concat(n," ").concat(o||""),children:[(0,d.jsx)(s.default,{hsva:m,className:n,radius:"8px 8px 0 0",style:{width:"auto",height:150,minWidth:120,borderBottom:"12px solid #000"},pointer:function(e){var t=e.left,r=e.top;e.color;return(0,d.jsx)(v,{style:{left:t,top:r,transform:"translate(-16px, -16px)"},color:(0,i.hsvaToHex)(m)})},onChange:function(e){return _((0,a.default)((0,a.default)({},m),e))}}),(0,d.jsx)(f.default,{hue:m.h,height:24,radius:y?"0 0 8px 8px":0,className:n,onChange:function(e){return _((0,a.default)((0,a.default)({},m),e))},pointer:function(e){var t=e.left;return(0,d.jsx)(v,{style:{left:t},color:"hsl(".concat(m.h||0,"deg 100% 50%)")})}}),!y&&(0,d.jsx)(c.default,{hsva:m,height:24,className:n,radius:"0 0 8px 8px",pointer:function(e){var t=e.left;return(0,d.jsx)(v,{style:{left:t},color:(0,i.hsvaToRgbaString)(m)})},onChange:function(e){return _((0,a.default)((0,a.default)({},m),e))}})]}))}));b.displayName="Colorful";t.default=b;e.exports=t.default},345:(e,t,r)=>{var n=r(6784).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(6651)),a=n(r(453)),l=n(r(7804)),u=n(r(4707)),i=r(9424),c=["prefixCls","className","hue","onChange","direction"],s=l.default.forwardRef((function(e,t){var r=e.prefixCls,n=void 0===r?"w-color-hue":r,l=e.className,s=e.hue,f=void 0===s?0:s,d=e.onChange,p=e.direction,h=void 0===p?"horizontal":p,v=(0,a.default)(e,c);return(0,i.jsx)(u.default,(0,o.default)((0,o.default)({ref:t,className:"".concat(n," ").concat(l||"")},v),{},{direction:h,background:"linear-gradient(to ".concat("horizontal"===h?"right":"bottom",", rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)"),hsva:{h:f,s:100,v:100,a:f/360},onChange:function(e,t){d&&d({h:"horizontal"===h?360*t.left:360*t.top})}}))}));s.displayName="Hue";t.default=s;e.exports=t.default},5106:(e,t,r)=>{var n=r(147).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Pointer=void 0;var o=n(r(7804)),a=r(9424);t.Pointer=function(e){var t=e.className,r=e.color,n=e.left,l=e.top,u=e.prefixCls,i={position:"absolute",top:l,left:n},c={"--saturation-pointer-box-shadow":"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",width:6,height:6,transform:"translate(-3px, -3px)",boxShadow:"var(--saturation-pointer-box-shadow)",borderRadius:"50%",backgroundColor:r};return(0,o.useMemo)((function(){return(0,a.jsx)("div",{className:"".concat(u,"-pointer ").concat(t||""),style:i,children:(0,a.jsx)("div",{className:"".concat(u,"-fill"),style:c})})}),[l,n,r,t,u])}},3955:(e,t,r)=>{var n=r(6784).default,o=r(147).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(6651)),l=n(r(453)),u=o(r(7804)),i=r(7604),c=n(r(7611)),s=r(5106),f=r(9424),d=["prefixCls","radius","pointer","className","hue","style","hsva","onChange"],p=u.default.forwardRef((function(e,t){var r,n=e.prefixCls,o=void 0===n?"w-color-saturation":n,p=e.radius,h=void 0===p?0:p,v=e.pointer,b=e.className,y=e.hue,g=void 0===y?0:y,m=e.style,_=e.hsva,x=e.onChange,w=(0,l.default)(e,d),C=(0,a.default)((0,a.default)({width:200,height:200,borderRadius:h},m),{},{position:"relative"}),A=function(e,t){x&&_&&x({h:_.h,s:100*e.left,v:100*(1-e.top),a:_.a})},S=(0,u.useMemo)((function(){if(!_)return null;var e={top:"".concat(100-_.v,"%"),left:"".concat(_.s,"%"),color:(0,i.hsvaToHslaString)(_)};return v&&"function"===typeof v?v((0,a.default)({prefixCls:o},e)):(0,f.jsx)(s.Pointer,(0,a.default)({prefixCls:o},e))}),[_,v,o]);return(0,f.jsx)(c.default,(0,a.default)((0,a.default)({className:[o,b||""].filter(Boolean).join(" ")},w),{},{style:(0,a.default)({position:"absolute",inset:0,cursor:"crosshair",backgroundImage:"linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, hsl(".concat(null!==(r=null===_||void 0===_?void 0:_.h)&&void 0!==r?r:g,", 100%, 50%))")},C),ref:t,onMove:A,onDown:A,children:S}))}));p.displayName="Saturation";t.default=p;e.exports=t.default},7611:(e,t,r)=>{var n=r(6784).default,o=r(147).default;Object.defineProperty(t,"__esModule",{value:!0});var a={};t.default=void 0;var l=n(r(6651)),u=n(r(8821)),i=n(r(453)),c=o(r(7804)),s=r(1974);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(a,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var f=r(9424),d=["prefixCls","className","onMove","onDown"],p=c.default.forwardRef((function(e,t){var r=e.prefixCls,n=void 0===r?"w-color-interactive":r,o=e.className,a=e.onMove,p=e.onDown,h=(0,i.default)(e,d),v=(0,c.useRef)(null),b=(0,c.useRef)(!1),y=(0,c.useState)(!1),g=(0,u.default)(y,2),m=g[0],_=g[1],x=(0,s.useEventCallback)(a),w=(0,s.useEventCallback)(p),C=(0,c.useCallback)((function(e){(0,s.preventDefaultMove)(e),((0,s.isTouch)(e)?e.touches.length>0:e.buttons>0)&&v.current?x&&x((0,s.getRelativePosition)(v.current,e),e):_(!1)}),[x]),A=(0,c.useCallback)((function(){return _(!1)}),[]),S=(0,c.useCallback)((function(e){var t=e?window.addEventListener:window.removeEventListener;t(b.current?"touchmove":"mousemove",C),t(b.current?"touchend":"mouseup",A)}),[]);(0,c.useEffect)((function(){return S(m),function(){m&&S(!1)}}),[m,S]);var j=(0,c.useCallback)((function(e){(0,s.preventDefaultMove)(e.nativeEvent),function(e){return!(b.current&&!(0,s.isTouch)(e))&&(b.current=(0,s.isTouch)(e),!0)}(e.nativeEvent)&&(w&&w((0,s.getRelativePosition)(v.current,e.nativeEvent),e.nativeEvent),_(!0))}),[w]);return(0,f.jsx)("div",(0,l.default)((0,l.default)({},h),{},{className:[n,o||""].filter(Boolean).join(" "),style:(0,l.default)((0,l.default)({},h.style),{},{touchAction:"none"}),ref:v,tabIndex:0,onMouseDown:j,onTouchStart:j}))}));p.displayName="Interactive";t.default=p},1974:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.preventDefaultMove=t.isTouch=t.getRelativePosition=t.clamp=void 0,t.useEventCallback=function(e){var t=(0,n.useRef)(e);return(0,n.useEffect)((function(){t.current=e})),(0,n.useCallback)((function(e,r){return t.current&&t.current(e,r)}),[])};var n=r(7804);var o=t.isTouch=function(e){return"touches"in e},a=(t.preventDefaultMove=function(e){!o(e)&&e.preventDefault&&e.preventDefault()},t.clamp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e>r?r:e{r.r(t),r.d(t,{default:()=>n});const n={components:{21:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,n=function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=e(t)&&"function"!=typeof t)return{default:t};var n=l(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&{}.hasOwnProperty.call(t,u)){var i=a?Object.getOwnPropertyDescriptor(t,u):null;i&&(i.get||i.set)?Object.defineProperty(o,u,i):o[u]=t[u]}return o.default=t,n&&n.set(t,o),o}(r(7804)),o=(t=r(1077))&&t.__esModule?t:{default:t},a=r(7604);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,l,u=[],i=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;i=!1}else for(;!(i=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{if(!i&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(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)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 0,\n v: 68,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_reactColorColorful["default"], {\n color: hsva,\n onChange: function onChange(color) {\n setHsva(color.hsva);\n }\n }), /*#__PURE__*/_react["default"].createElement("div", {\n style: {\n background: (0, _colorConvert.hsvaToHex)(hsva),\n marginTop: 30,\n padding: 10\n }\n }, JSON.stringify(hsva)));\n};',language:"jsx",value:"import React, { useState } from 'react';\nimport Colorful from '@uiw/react-color-colorful';\nimport { hsvaToHex } from '@uiw/color-convert';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\n return (\n <>\n {\n setHsva(color.hsva);\n }}\n />\n
\n {JSON.stringify(hsva)}\n
\n \n );\n}"},44:{name:44,meta:{},code:'"use strict";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require("react"));\nvar _reactColorColorful = _interopRequireDefault(require("@uiw/react-color-colorful"));\nvar _colorConvert = require("@uiw/color-convert");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }\nfunction _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 0,\n v: 68,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n var _useState3 = (0, _react.useState)(false),\n _useState4 = _slicedToArray(_useState3, 2),\n disableAlpha = _useState4[0],\n setDisableAlpha = _useState4[1];\n return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("label", null, /*#__PURE__*/_react["default"].createElement("input", {\n type: "checkbox",\n checked: disableAlpha,\n onChange: function onChange(evn) {\n return setDisableAlpha(evn.target.checked);\n }\n }), disableAlpha ? "Hide" : "Show", " Alpha"), /*#__PURE__*/_react["default"].createElement(_reactColorColorful["default"], {\n color: hsva,\n disableAlpha: disableAlpha,\n onChange: function onChange(color) {\n setHsva(color.hsva);\n }\n }), /*#__PURE__*/_react["default"].createElement("div", {\n style: {\n background: (0, _colorConvert.hsvaToHex)(hsva),\n marginTop: 30,\n padding: 10\n }\n }, JSON.stringify(hsva)));\n};',language:"jsx",value:"import React, { useState } from 'react';\nimport Colorful from '@uiw/react-color-colorful';\nimport { hsvaToHex } from '@uiw/color-convert';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\n const [disableAlpha, setDisableAlpha] = useState(false);\n return (\n <>\n \n {\n setHsva(color.hsva);\n }}\n />\n
\n {JSON.stringify(hsva)}\n
\n \n );\n}"}},source:"React Color Colorful\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-colorful)](https://bundlephobia.com/package/@uiw/react-color-colorful) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-colorful.svg)](https://www.npmjs.com/package/@uiw/react-color-colorful) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-colorful/file/README.md)\n\nColorful Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\n\n\x3c!--rehype:ignore:start--\x3e\n[![react-color-colorful](https://user-images.githubusercontent.com/1680273/125949419-cdcac5cb-f5a9-47af-956f-4056630503c9.png)](https://uiwjs.github.io/react-color/#/colorful)\n\x3c!--rehype:ignore:end--\x3e\n\n## Install\n\n```bash\nnpm i @uiw/react-color-colorful\n```\n\n## Usage\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\nimport Colorful from '@uiw/react-color-colorful';\nimport { hsvaToHex } from '@uiw/color-convert';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\n return (\n <>\n {\n setHsva(color.hsva);\n }}\n />\n
\n {JSON.stringify(hsva)}\n
\n \n );\n}\n```\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\nimport Colorful from '@uiw/react-color-colorful';\nimport { hsvaToHex } from '@uiw/color-convert';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\n const [disableAlpha, setDisableAlpha] = useState(false);\n return (\n <>\n \n {\n setHsva(color.hsva);\n }}\n />\n
\n {JSON.stringify(hsva)}\n
\n \n );\n}\n```\n\n\n## Props\n\n```ts\nimport React from 'react';\nimport { HsvaColor, ColorResult } from '@uiw/color-convert';\nexport interface ColorfulProps extends Omit, 'onChange' | 'color'> {\n prefixCls?: string;\n onChange?: (color: ColorResult) => void;\n color?: string | HsvaColor;\n disableAlpha?: boolean;\n}\ndeclare const Colorful: React.ForwardRefExoticComponent>;\nexport default Colorful;\n```\n\n\x3c!--footer-dividing--\x3e\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=185.e096f7e8.chunk.js.map \ No newline at end of file diff --git a/static/js/185.e096f7e8.chunk.js.map b/static/js/185.e096f7e8.chunk.js.map new file mode 100644 index 000000000..69ca19a4a --- /dev/null +++ b/static/js/185.e096f7e8.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/185.e096f7e8.chunk.js","mappings":"iGAEA,IAAIA,EAAyBC,EAAAA,MAAAA,QAC7BC,OAAOC,eAAeC,EAAS,aAAc,CAC3CC,OAAO,IAETD,EAAQE,aAAU,EAClB,IAAIC,EAAiBP,EAAuBC,EAAQ,OAChDO,EAA4BR,EAAuBC,EAAQ,MAE3DQ,GADST,EAAuBC,EAAQ,OAC1BA,EAAQ,OACtBS,EAAY,CAAC,YAAa,YAAa,OAAQ,MAAO,QAAS,aACrDN,EAAQE,QAAU,SAAiBK,GAC/C,IAAI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QAAE0L,cAActB,EAA6B,QAAG,CAC1H5G,MAAOvC,EACP0C,aAAcA,EACd7B,SAAU,SAAkB0B,GAC1BiI,EAAQjI,EAAMvC,KAChB,IACejB,EAAgB,QAAE0L,cAAc,MAAO,CACtD3M,MAAO,CACLmC,YAAY,EAAIjB,EAAcgE,WAAWhD,GACzC2K,UAAW,GACXC,QAAS,KAEVC,KAAKC,UAAU9K,IACpB,CAAI,CAhDQ,IAiDRqL,KAAM,CACR,GAAM,CACJ,KAAQ,GACR,KAAQ,CAAC,EACT,KAAQ,mjHACR,SAAY,MACZ,MAAS,whBAEX,GAAM,CACJ,KAAQ,GACR,KAAQ,CAAC,EACT,KAAQ,0jIACR,SAAY,MACZ,MAAS,22BAGTC,OAAQ,kzGACRC,SAAS,GACTC,aAAa,G","sources":["../../packages/color-alpha/cjs/Pointer.js","../../packages/color-alpha/cjs/index.js","../../packages/color-colorful/cjs/index.js","../../packages/color-hue/cjs/index.js","../../packages/color-saturation/cjs/Pointer.js","../../packages/color-saturation/cjs/index.js","../../packages/drag-event-interactive/cjs/index.js","../../packages/drag-event-interactive/cjs/utils.js","../../packages/color-colorful/README.md"],"sourcesContent":["\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Pointer = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"className\", \"prefixCls\", \"left\", \"top\", \"style\", \"fillProps\"];\nvar Pointer = exports.Pointer = function Pointer(_ref) {\n var className = _ref.className,\n prefixCls = _ref.prefixCls,\n left = _ref.left,\n top = _ref.top,\n style = _ref.style,\n fillProps = _ref.fillProps,\n reset = (0, _objectWithoutProperties2[\"default\"])(_ref, _excluded);\n var styleWrapper = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, style), {}, {\n position: 'absolute',\n left: left,\n top: top\n });\n var stylePointer = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n width: 18,\n height: 18,\n boxShadow: 'var(--alpha-pointer-box-shadow)',\n borderRadius: '50%',\n backgroundColor: 'var(--alpha-pointer-background-color)'\n }, fillProps === null || fillProps === void 0 ? void 0 : fillProps.style), {}, {\n transform: left ? 'translate(-9px, -1px)' : 'translate(-1px, -9px)'\n });\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n className: \"\".concat(prefixCls, \"-pointer \").concat(className || ''),\n style: styleWrapper\n }, reset), {}, {\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n className: \"\".concat(prefixCls, \"-fill\")\n }, fillProps), {}, {\n style: stylePointer\n }))\n }));\n};","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _exportNames = {\n BACKGROUND_IMG: true\n};\nexports[\"default\"] = exports.BACKGROUND_IMG = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactDragEventInteractive = _interopRequireDefault(require(\"@uiw/react-drag-event-interactive\"));\nvar _Pointer = require(\"./Pointer\");\nObject.keys(_Pointer).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _Pointer[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _Pointer[key];\n }\n });\n});\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"className\", \"hsva\", \"background\", \"bgProps\", \"innerProps\", \"pointerProps\", \"radius\", \"width\", \"height\", \"direction\", \"style\", \"onChange\", \"pointer\"];\nvar BACKGROUND_IMG = exports.BACKGROUND_IMG = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==';\nvar Alpha = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-alpha' : _props$prefixCls,\n className = props.className,\n hsva = props.hsva,\n background = props.background,\n _props$bgProps = props.bgProps,\n bgProps = _props$bgProps === void 0 ? {} : _props$bgProps,\n _props$innerProps = props.innerProps,\n innerProps = _props$innerProps === void 0 ? {} : _props$innerProps,\n _props$pointerProps = props.pointerProps,\n pointerProps = _props$pointerProps === void 0 ? {} : _props$pointerProps,\n _props$radius = props.radius,\n radius = _props$radius === void 0 ? 0 : _props$radius,\n width = props.width,\n _props$height = props.height,\n height = _props$height === void 0 ? 16 : _props$height,\n _props$direction = props.direction,\n direction = _props$direction === void 0 ? 'horizontal' : _props$direction,\n style = props.style,\n onChange = props.onChange,\n pointer = props.pointer,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var handleChange = function handleChange(offset) {\n onChange && onChange((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, hsva), {}, {\n a: direction === 'horizontal' ? offset.left : offset.top\n }), offset);\n };\n var colorTo = (0, _colorConvert.hsvaToHslaString)(Object.assign({}, hsva, {\n a: 1\n }));\n var innerBackground = \"linear-gradient(to \".concat(direction === 'horizontal' ? 'right' : 'bottom', \", rgba(244, 67, 54, 0) 0%, \").concat(colorTo, \" 100%)\");\n var comProps = {};\n if (direction === 'horizontal') {\n comProps.left = \"\".concat(hsva.a * 100, \"%\");\n } else {\n comProps.top = \"\".concat(hsva.a * 100, \"%\");\n }\n var styleWrapper = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n '--alpha-background-color': '#fff',\n '--alpha-pointer-background-color': 'rgb(248, 248, 248)',\n '--alpha-pointer-box-shadow': 'rgb(0 0 0 / 37%) 0px 1px 4px 0px',\n borderRadius: radius,\n background: \"url(\".concat(BACKGROUND_IMG, \") left center\"),\n backgroundColor: 'var(--alpha-background-color)'\n }, {\n width: width,\n height: height\n }), style), {}, {\n position: 'relative'\n });\n var pointerElement = pointer && typeof pointer === 'function' ? pointer((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n prefixCls: prefixCls\n }, pointerProps), comProps)) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Pointer.Pointer, (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, pointerProps), {}, {\n prefixCls: prefixCls\n }, comProps));\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, other), {}, {\n className: [prefixCls, \"\".concat(prefixCls, \"-\").concat(direction), className || ''].filter(Boolean).join(' '),\n style: styleWrapper,\n ref: ref,\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, bgProps), {}, {\n style: (0, _objectSpread2[\"default\"])({\n inset: 0,\n position: 'absolute',\n background: background || innerBackground,\n borderRadius: radius\n }, bgProps.style)\n })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactDragEventInteractive[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, innerProps), {}, {\n style: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, innerProps.style), {}, {\n inset: 0,\n zIndex: 1,\n position: 'absolute'\n }),\n onMove: handleChange,\n onDown: handleChange,\n children: pointerElement\n }))]\n }));\n});\nAlpha.displayName = 'Alpha';\nvar _default = exports[\"default\"] = Alpha;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactColorAlpha = _interopRequireWildcard(require(\"@uiw/react-color-alpha\"));\nvar _reactColorSaturation = _interopRequireDefault(require(\"@uiw/react-color-saturation\"));\nvar _reactColorHue = _interopRequireDefault(require(\"@uiw/react-color-hue\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"style\", \"color\"],\n _excluded2 = [\"prefixCls\", \"className\", \"onChange\", \"color\", \"style\", \"disableAlpha\"];\nvar Pointer = function Pointer(_ref) {\n var style = _ref.style,\n color = _ref.color,\n props = (0, _objectWithoutProperties2[\"default\"])(_ref, _excluded);\n var stylePointer = (0, _objectSpread2[\"default\"])({\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(\".concat(_reactColorAlpha.BACKGROUND_IMG, \")\"),\n backgroundColor: 'var(--colorful-pointer-background-color)',\n border: 'var(--colorful-pointer-border)',\n zIndex: 1\n }, style);\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, props), {}, {\n style: stylePointer,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", {\n style: {\n backgroundColor: color,\n borderRadius: '50%',\n height: ' 100%',\n width: '100%'\n }\n })\n }));\n};\nvar Colorful = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-colorful' : _props$prefixCls,\n className = props.className,\n onChange = props.onChange,\n color = props.color,\n style = props.style,\n disableAlpha = props.disableAlpha,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded2);\n var hsva = typeof color === 'string' && (0, _colorConvert.validHex)(color) ? (0, _colorConvert.hexToHsva)(color) : color || {};\n var handleChange = function handleChange(value) {\n return onChange && onChange((0, _colorConvert.color)(value));\n };\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n ref: ref,\n style: (0, _objectSpread2[\"default\"])({\n width: 200,\n position: 'relative'\n }, style)\n }, other), {}, {\n className: \"\".concat(prefixCls, \" \").concat(className || ''),\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorSaturation[\"default\"], {\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: function pointer(_ref2) {\n var left = _ref2.left,\n top = _ref2.top,\n color = _ref2.color;\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(Pointer, {\n style: {\n left: left,\n top: top,\n transform: 'translate(-16px, -16px)'\n },\n color: (0, _colorConvert.hsvaToHex)(hsva)\n });\n },\n onChange: function onChange(newColor) {\n return handleChange((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, hsva), newColor));\n }\n }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorHue[\"default\"], {\n hue: hsva.h,\n height: 24,\n radius: disableAlpha ? '0 0 8px 8px' : 0,\n className: prefixCls,\n onChange: function onChange(newHue) {\n return handleChange((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, hsva), newHue));\n },\n pointer: function pointer(_ref3) {\n var left = _ref3.left;\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(Pointer, {\n style: {\n left: left\n },\n color: \"hsl(\".concat(hsva.h || 0, \"deg 100% 50%)\")\n });\n }\n }), !disableAlpha && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorAlpha[\"default\"], {\n hsva: hsva,\n height: 24,\n className: prefixCls,\n radius: \"0 0 8px 8px\",\n pointer: function pointer(_ref4) {\n var left = _ref4.left;\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(Pointer, {\n style: {\n left: left\n },\n color: (0, _colorConvert.hsvaToRgbaString)(hsva)\n });\n },\n onChange: function onChange(newAlpha) {\n return handleChange((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, hsva), newAlpha));\n }\n })]\n }));\n});\nColorful.displayName = 'Colorful';\nvar _default = exports[\"default\"] = Colorful;\nmodule.exports = exports.default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _reactColorAlpha = _interopRequireDefault(require(\"@uiw/react-color-alpha\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"className\", \"hue\", \"onChange\", \"direction\"];\nvar Hue = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-hue' : _props$prefixCls,\n className = props.className,\n _props$hue = props.hue,\n hue = _props$hue === void 0 ? 0 : _props$hue,\n _onChange = props.onChange,\n _props$direction = props.direction,\n direction = _props$direction === void 0 ? 'horizontal' : _props$direction,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorAlpha[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n ref: ref,\n className: \"\".concat(prefixCls, \" \").concat(className || '')\n }, other), {}, {\n direction: direction,\n background: \"linear-gradient(to \".concat(direction === 'horizontal' ? 'right' : 'bottom', \", rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)\"),\n hsva: {\n h: hue,\n s: 100,\n v: 100,\n a: hue / 360\n },\n onChange: function onChange(_, interaction) {\n _onChange && _onChange({\n h: direction === 'horizontal' ? 360 * interaction.left : 360 * interaction.top\n });\n }\n }));\n});\nHue.displayName = 'Hue';\nvar _default = exports[\"default\"] = Hue;\nmodule.exports = exports.default;","\"use strict\";\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Pointer = void 0;\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar Pointer = exports.Pointer = function Pointer(_ref) {\n var className = _ref.className,\n color = _ref.color,\n left = _ref.left,\n top = _ref.top,\n prefixCls = _ref.prefixCls;\n var style = {\n position: 'absolute',\n top: top,\n left: left\n };\n var stylePointer = {\n '--saturation-pointer-box-shadow': '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',\n width: 6,\n height: 6,\n transform: 'translate(-3px, -3px)',\n boxShadow: 'var(--saturation-pointer-box-shadow)',\n borderRadius: '50%',\n backgroundColor: color\n };\n return (0, _react.useMemo)(function () {\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", {\n className: \"\".concat(prefixCls, \"-pointer \").concat(className || ''),\n style: style,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", {\n className: \"\".concat(prefixCls, \"-fill\"),\n style: stylePointer\n })\n });\n }, [top, left, color, className, prefixCls]);\n};","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactDragEventInteractive = _interopRequireDefault(require(\"@uiw/react-drag-event-interactive\"));\nvar _Pointer = require(\"./Pointer\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"radius\", \"pointer\", \"className\", \"hue\", \"style\", \"hsva\", \"onChange\"];\nvar Saturation = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _hsva$h;\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-saturation' : _props$prefixCls,\n _props$radius = props.radius,\n radius = _props$radius === void 0 ? 0 : _props$radius,\n pointer = props.pointer,\n className = props.className,\n _props$hue = props.hue,\n hue = _props$hue === void 0 ? 0 : _props$hue,\n style = props.style,\n hsva = props.hsva,\n onChange = props.onChange,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var containerStyle = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n width: 200,\n height: 200,\n borderRadius: radius\n }, style), {}, {\n position: 'relative'\n });\n var handleChange = function handleChange(interaction, event) {\n onChange && hsva && onChange({\n h: hsva.h,\n s: interaction.left * 100,\n v: (1 - interaction.top) * 100,\n a: hsva.a\n // source: 'hsv',\n });\n };\n var pointerElement = (0, _react.useMemo)(function () {\n if (!hsva) return null;\n var comProps = {\n top: \"\".concat(100 - hsva.v, \"%\"),\n left: \"\".concat(hsva.s, \"%\"),\n color: (0, _colorConvert.hsvaToHslaString)(hsva)\n };\n if (pointer && typeof pointer === 'function') {\n return pointer((0, _objectSpread2[\"default\"])({\n prefixCls: prefixCls\n }, comProps));\n }\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Pointer.Pointer, (0, _objectSpread2[\"default\"])({\n prefixCls: prefixCls\n }, comProps));\n }, [hsva, pointer, prefixCls]);\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactDragEventInteractive[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other), {}, {\n style: (0, _objectSpread2[\"default\"])({\n position: 'absolute',\n inset: 0,\n cursor: 'crosshair',\n backgroundImage: \"linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, hsl(\".concat((_hsva$h = hsva === null || hsva === void 0 ? void 0 : hsva.h) !== null && _hsva$h !== void 0 ? _hsva$h : hue, \", 100%, 50%))\")\n }, containerStyle),\n ref: ref,\n onMove: handleChange,\n onDown: handleChange,\n children: pointerElement\n }));\n});\nSaturation.displayName = 'Saturation';\nvar _default = exports[\"default\"] = Saturation;\nmodule.exports = exports.default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _exportNames = {};\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _slicedToArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/slicedToArray\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _utils = require(\"./utils\");\nObject.keys(_utils).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _utils[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _utils[key];\n }\n });\n});\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"className\", \"onMove\", \"onDown\"];\nvar Interactive = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-interactive' : _props$prefixCls,\n className = props.className,\n onMove = props.onMove,\n onDown = props.onDown,\n reset = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var container = (0, _react.useRef)(null);\n var hasTouched = (0, _react.useRef)(false);\n var _useState = (0, _react.useState)(false),\n _useState2 = (0, _slicedToArray2[\"default\"])(_useState, 2),\n isDragging = _useState2[0],\n setDragging = _useState2[1];\n var onMoveCallback = (0, _utils.useEventCallback)(onMove);\n var onKeyCallback = (0, _utils.useEventCallback)(onDown);\n\n // Prevent mobile browsers from handling mouse events (conflicting with touch ones).\n // If we detected a touch interaction before, we prefer reacting to touch events only.\n var isValid = function isValid(event) {\n if (hasTouched.current && !(0, _utils.isTouch)(event)) return false;\n hasTouched.current = (0, _utils.isTouch)(event);\n return true;\n };\n var handleMove = (0, _react.useCallback)(function (event) {\n (0, _utils.preventDefaultMove)(event);\n // If user moves the pointer outside of the window or iframe bounds and release it there,\n // `mouseup`/`touchend` won't be fired. In order to stop the picker from following the cursor\n // after the user has moved the mouse/finger back to the document, we check `event.buttons`\n // and `event.touches`. It allows us to detect that the user is just moving his pointer\n // without pressing it down\n var isDown = (0, _utils.isTouch)(event) ? event.touches.length > 0 : event.buttons > 0;\n if (isDown && container.current) {\n onMoveCallback && onMoveCallback((0, _utils.getRelativePosition)(container.current, event), event);\n } else {\n setDragging(false);\n }\n }, [onMoveCallback]);\n var handleMoveEnd = (0, _react.useCallback)(function () {\n return setDragging(false);\n }, []);\n var toggleDocumentEvents = (0, _react.useCallback)(function (state) {\n var toggleEvent = state ? window.addEventListener : window.removeEventListener;\n toggleEvent(hasTouched.current ? 'touchmove' : 'mousemove', handleMove);\n toggleEvent(hasTouched.current ? 'touchend' : 'mouseup', handleMoveEnd);\n }, []);\n (0, _react.useEffect)(function () {\n toggleDocumentEvents(isDragging);\n return function () {\n isDragging && toggleDocumentEvents(false);\n };\n }, [isDragging, toggleDocumentEvents]);\n var handleMoveStart = (0, _react.useCallback)(function (event) {\n (0, _utils.preventDefaultMove)(event.nativeEvent);\n if (!isValid(event.nativeEvent)) return;\n onKeyCallback && onKeyCallback((0, _utils.getRelativePosition)(container.current, event.nativeEvent), event.nativeEvent);\n setDragging(true);\n }, [onKeyCallback]);\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, reset), {}, {\n className: [prefixCls, className || ''].filter(Boolean).join(' '),\n style: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, reset.style), {}, {\n touchAction: 'none'\n }),\n ref: container,\n tabIndex: 0,\n onMouseDown: handleMoveStart,\n onTouchStart: handleMoveStart\n }));\n});\nInteractive.displayName = 'Interactive';\nvar _default = exports[\"default\"] = Interactive;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.preventDefaultMove = exports.isTouch = exports.getRelativePosition = exports.clamp = void 0;\nexports.useEventCallback = useEventCallback;\nvar _react = require(\"react\");\n// Saves incoming handler to the ref in order to avoid \"useCallback hell\"\nfunction useEventCallback(handler) {\n var callbackRef = (0, _react.useRef)(handler);\n (0, _react.useEffect)(function () {\n callbackRef.current = handler;\n });\n return (0, _react.useCallback)(function (value, event) {\n return callbackRef.current && callbackRef.current(value, event);\n }, []);\n}\n\n// Check if an event was triggered by touch\nvar isTouch = exports.isTouch = function isTouch(event) {\n return 'touches' in event;\n};\n\n// Browsers introduced an intervention, making touch events passive by default.\n// This workaround removes `preventDefault` call from the touch handlers.\n// https://github.com/facebook/react/issues/19651\nvar preventDefaultMove = exports.preventDefaultMove = function preventDefaultMove(event) {\n !isTouch(event) && event.preventDefault && event.preventDefault();\n};\n// Clamps a value between an upper and lower bound.\n// We use ternary operators because it makes the minified code\n// 2 times shorter then `Math.min(Math.max(a,b),c)`\nvar clamp = exports.clamp = function clamp(number) {\n var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n return number > max ? max : number < min ? min : number;\n};\n// Returns a relative position of the pointer inside the node's bounding box\nvar getRelativePosition = exports.getRelativePosition = function getRelativePosition(node, event) {\n var rect = node.getBoundingClientRect();\n\n // Get user's pointer position from `touches` array if it's a `TouchEvent`\n var pointer = isTouch(event) ? event.touches[0] : event;\n return {\n left: clamp((pointer.pageX - (rect.left + window.pageXOffset)) / rect.width),\n top: clamp((pointer.pageY - (rect.top + window.pageYOffset)) / rect.height),\n width: rect.width,\n height: rect.height,\n x: pointer.pageX - (rect.left + window.pageXOffset),\n y: pointer.pageY - (rect.top + window.pageYOffset)\n };\n};","\nexport default {\n components: { 21: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactColorColorful = _interopRequireDefault(require(\"@uiw/react-color-colorful\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 0,\n v: 68,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(_reactColorColorful[\"default\"], {\n color: hsva,\n onChange: function onChange(color) {\n setHsva(color.hsva);\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n background: (0, _colorConvert.hsvaToHex)(hsva),\n marginTop: 30,\n padding: 10\n }\n }, JSON.stringify(hsva)));\n}; })(),44: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactColorColorful = _interopRequireDefault(require(\"@uiw/react-color-colorful\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 0,\n v: 68,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n var _useState3 = (0, _react.useState)(false),\n _useState4 = _slicedToArray(_useState3, 2),\n disableAlpha = _useState4[0],\n setDisableAlpha = _useState4[1];\n return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(\"label\", null, /*#__PURE__*/_react[\"default\"].createElement(\"input\", {\n type: \"checkbox\",\n checked: disableAlpha,\n onChange: function onChange(evn) {\n return setDisableAlpha(evn.target.checked);\n }\n }), disableAlpha ? \"Hide\" : \"Show\", \" Alpha\"), /*#__PURE__*/_react[\"default\"].createElement(_reactColorColorful[\"default\"], {\n color: hsva,\n disableAlpha: disableAlpha,\n onChange: function onChange(color) {\n setHsva(color.hsva);\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n background: (0, _colorConvert.hsvaToHex)(hsva),\n marginTop: 30,\n padding: 10\n }\n }, JSON.stringify(hsva)));\n}; })(), },\n data: {\n \"21\": {\n \"name\": 21,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactColorColorful = _interopRequireDefault(require(\\\"@uiw/react-color-colorful\\\"));\\nvar _colorConvert = require(\\\"@uiw/color-convert\\\");\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nreturn function Demo() {\\n var _useState = (0, _react.useState)({\\n h: 0,\\n s: 0,\\n v: 68,\\n a: 1\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n hsva = _useState2[0],\\n setHsva = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_react[\\\"default\\\"].Fragment, null, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorColorful[\\\"default\\\"], {\\n color: hsva,\\n onChange: function onChange(color) {\\n setHsva(color.hsva);\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: {\\n background: (0, _colorConvert.hsvaToHex)(hsva),\\n marginTop: 30,\\n padding: 10\\n }\\n }, JSON.stringify(hsva)));\\n};\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport Colorful from '@uiw/react-color-colorful';\\nimport { hsvaToHex } from '@uiw/color-convert';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\\n return (\\n <>\\n {\\n setHsva(color.hsva);\\n }}\\n />\\n
\\n {JSON.stringify(hsva)}\\n
\\n \\n );\\n}\"\n },\n \"44\": {\n \"name\": 44,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactColorColorful = _interopRequireDefault(require(\\\"@uiw/react-color-colorful\\\"));\\nvar _colorConvert = require(\\\"@uiw/color-convert\\\");\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nreturn function Demo() {\\n var _useState = (0, _react.useState)({\\n h: 0,\\n s: 0,\\n v: 68,\\n a: 1\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n hsva = _useState2[0],\\n setHsva = _useState2[1];\\n var _useState3 = (0, _react.useState)(false),\\n _useState4 = _slicedToArray(_useState3, 2),\\n disableAlpha = _useState4[0],\\n setDisableAlpha = _useState4[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_react[\\\"default\\\"].Fragment, null, /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"label\\\", null, /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"input\\\", {\\n type: \\\"checkbox\\\",\\n checked: disableAlpha,\\n onChange: function onChange(evn) {\\n return setDisableAlpha(evn.target.checked);\\n }\\n }), disableAlpha ? \\\"Hide\\\" : \\\"Show\\\", \\\" Alpha\\\"), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorColorful[\\\"default\\\"], {\\n color: hsva,\\n disableAlpha: disableAlpha,\\n onChange: function onChange(color) {\\n setHsva(color.hsva);\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: {\\n background: (0, _colorConvert.hsvaToHex)(hsva),\\n marginTop: 30,\\n padding: 10\\n }\\n }, JSON.stringify(hsva)));\\n};\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport Colorful from '@uiw/react-color-colorful';\\nimport { hsvaToHex } from '@uiw/color-convert';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\\n const [disableAlpha, setDisableAlpha] = useState(false);\\n return (\\n <>\\n \\n {\\n setHsva(color.hsva);\\n }}\\n />\\n
\\n {JSON.stringify(hsva)}\\n
\\n \\n );\\n}\"\n }\n},\n source: \"React Color Colorful\\n===\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-colorful)](https://bundlephobia.com/package/@uiw/react-color-colorful) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-colorful.svg)](https://www.npmjs.com/package/@uiw/react-color-colorful) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-colorful/file/README.md)\\n\\nColorful Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\\n\\n\\n[![react-color-colorful](https://user-images.githubusercontent.com/1680273/125949419-cdcac5cb-f5a9-47af-956f-4056630503c9.png)](https://uiwjs.github.io/react-color/#/colorful)\\n\\n\\n## Install\\n\\n```bash\\nnpm i @uiw/react-color-colorful\\n```\\n\\n## Usage\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\nimport Colorful from '@uiw/react-color-colorful';\\nimport { hsvaToHex } from '@uiw/color-convert';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\\n return (\\n <>\\n {\\n setHsva(color.hsva);\\n }}\\n />\\n
\\n {JSON.stringify(hsva)}\\n
\\n \\n );\\n}\\n```\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\nimport Colorful from '@uiw/react-color-colorful';\\nimport { hsvaToHex } from '@uiw/color-convert';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\\n const [disableAlpha, setDisableAlpha] = useState(false);\\n return (\\n <>\\n \\n {\\n setHsva(color.hsva);\\n }}\\n />\\n
\\n {JSON.stringify(hsva)}\\n
\\n \\n );\\n}\\n```\\n\\n\\n## Props\\n\\n```ts\\nimport React from 'react';\\nimport { HsvaColor, ColorResult } from '@uiw/color-convert';\\nexport interface ColorfulProps extends Omit, 'onChange' | 'color'> {\\n prefixCls?: string;\\n onChange?: (color: ColorResult) => void;\\n color?: string | HsvaColor;\\n disableAlpha?: boolean;\\n}\\ndeclare const Colorful: React.ForwardRefExoticComponent>;\\nexport default Colorful;\\n```\\n\\n\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["_interopRequireDefault","require","Object","defineProperty","exports","value","Pointer","_objectSpread2","_objectWithoutProperties2","_jsxRuntime","_excluded","_ref","className","prefixCls","left","top","style","fillProps","reset","styleWrapper","position","stylePointer","width","height","boxShadow","borderRadius","backgroundColor","transform","jsx","concat","children","_exportNames","BACKGROUND_IMG","_react","_colorConvert","_reactDragEventInteractive","_Pointer","keys","forEach","key","prototype","hasOwnProperty","call","enumerable","get","Alpha","forwardRef","props","ref","_props$prefixCls","hsva","background","_props$bgProps","bgProps","_props$innerProps","innerProps","_props$pointerProps","pointerProps","_props$radius","radius","_props$height","_props$direction","direction","onChange","pointer","other","handleChange","offset","a","colorTo","hsvaToHslaString","assign","innerBackground","comProps","pointerElement","jsxs","filter","Boolean","join","inset","zIndex","onMove","onDown","displayName","_interopRequireWildcard","_reactColorAlpha","_reactColorSaturation","_reactColorHue","_excluded2","color","border","Colorful","disableAlpha","validHex","hexToHsva","minWidth","borderBottom","_ref2","hsvaToHex","newColor","hue","h","newHue","_ref3","_ref4","hsvaToRgbaString","newAlpha","module","default","Hue","_props$hue","_onChange","s","v","_","interaction","useMemo","Saturation","_hsva$h","containerStyle","event","cursor","backgroundImage","_slicedToArray2","_utils","Interactive","container","useRef","hasTouched","_useState","useState","_useState2","isDragging","setDragging","onMoveCallback","useEventCallback","onKeyCallback","handleMove","useCallback","preventDefaultMove","isTouch","touches","length","buttons","current","getRelativePosition","handleMoveEnd","toggleDocumentEvents","state","toggleEvent","window","addEventListener","removeEventListener","useEffect","handleMoveStart","nativeEvent","isValid","touchAction","tabIndex","onMouseDown","onTouchStart","clamp","handler","callbackRef","preventDefault","number","min","arguments","undefined","max","node","rect","getBoundingClientRect","pageX","pageXOffset","pageY","pageYOffset","x","y","components","_typeof","o","Symbol","iterator","constructor","e","r","__esModule","t","_getRequireWildcardCache","has","n","__proto__","getOwnPropertyDescriptor","u","i","set","_reactColorColorful","WeakMap","_slicedToArray","Array","isArray","_arrayWithHoles","l","f","next","done","push","_iterableToArrayLimit","_arrayLikeToArray","toString","slice","name","from","test","_unsupportedIterableToArray","TypeError","_nonIterableRest","setHsva","createElement","Fragment","marginTop","padding","JSON","stringify","_useState4","setDisableAlpha","type","checked","evn","target","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/199.11daa03a.chunk.js b/static/js/199.11daa03a.chunk.js deleted file mode 100644 index a18cef435..000000000 --- a/static/js/199.11daa03a.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[199],{8199:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});const r={components:{21:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,r=function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=e(t)&&"function"!=typeof t)return{default:t};var r=a(n);if(r&&r.has(t))return r.get(t);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&{}.hasOwnProperty.call(t,l)){var u=i?Object.getOwnPropertyDescriptor(t,l):null;u&&(u.get||u.set)?Object.defineProperty(o,l,u):o[l]=t[l]}return o.default=t,r&&r.set(t,o),o}(n(7804)),o=(t=n(4342))&&t.__esModule?t:{default:t};function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],u=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction Demo() {\n var _useState = (0, _react.useState)("#fff"),\n _useState2 = _slicedToArray(_useState, 2),\n hex = _useState2[0],\n setHex = _useState2[1];\n var _useState3 = (0, _react.useState)(false),\n _useState4 = _slicedToArray(_useState3, 2),\n disableAlpha = _useState4[0],\n setDisableAlpha = _useState4[1];\n return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_reactColorSketch["default"], {\n style: {\n marginLeft: 20\n },\n color: hex,\n disableAlpha: disableAlpha,\n onChange: function onChange(color) {\n setHex(color.hex);\n }\n }), /*#__PURE__*/_react["default"].createElement("button", {\n onClick: function onClick() {\n return setDisableAlpha(!disableAlpha);\n }\n }, "disableAlpha=", disableAlpha.toString()));\n}\nreturn Demo;',language:"jsx",value:"import React, { useState } from 'react';\nimport Sketch from '@uiw/react-color-sketch';\n\nfunction Demo() {\n const [hex, setHex] = useState(\"#fff\");\n const [disableAlpha, setDisableAlpha] = useState(false);\n return (\n
\n {\n setHex(color.hex);\n }}\n />\n \n
\n );\n}\n\nexport default Demo;"}},source:"React Color Sketch\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-sketch)](https://bundlephobia.com/package/@uiw/react-color-sketch) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-sketch.svg)](https://www.npmjs.com/package/@uiw/react-color-sketch) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-sketch/file/README.md)\n\nSketch Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\n\n\x3c!--rehype:ignore:start--\x3e\n[![react-color-sketch](https://user-images.githubusercontent.com/1680273/125952146-290199b4-8810-4552-944b-3ee673fb4350.png)](https://uiwjs.github.io/react-color/#/sketch)\n\x3c!--rehype:ignore:end--\x3e\n\n## Install\n\n```bash\nnpm i @uiw/react-color-sketch\n```\n\n## Usage\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\nimport Sketch from '@uiw/react-color-sketch';\n\nfunction Demo() {\n const [hex, setHex] = useState(\"#fff\");\n const [disableAlpha, setDisableAlpha] = useState(false);\n return (\n
\n {\n setHex(color.hex);\n }}\n />\n \n
\n );\n}\n\nexport default Demo;\n```\n\n## Props\n\n```ts\nimport React from 'react';\nimport { HsvaColor, ColorResult } from '@uiw/color-convert';\nimport { SwatchPresetColor } from '@uiw/react-color-swatch';\nexport interface SketchProps extends Omit, 'onChange' | 'color'> {\n prefixCls?: string;\n width?: number;\n color?: string | HsvaColor;\n presetColors?: false | SwatchPresetColor[];\n editableDisable?: boolean;\n disableAlpha?: boolean;\n onChange?: (newShade: ColorResult) => void;\n}\ndeclare const Sketch: React.ForwardRefExoticComponent>;\nexport default Sketch;\n```\n\n\x3c!--footer-dividing--\x3e\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); -//# sourceMappingURL=199.11daa03a.chunk.js.map \ No newline at end of file diff --git a/static/js/199.11daa03a.chunk.js.map b/static/js/199.11daa03a.chunk.js.map deleted file mode 100644 index 09e810511..000000000 --- a/static/js/199.11daa03a.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/199.11daa03a.chunk.js","mappings":"+HACA,SACIA,WAAY,CAAE,GAAI,WAEtB,SAASC,EAAQC,GAAgC,OAAOD,EAAU,mBAAqBE,QAAU,iBAAmBA,OAAOC,SAAW,SAAUF,GAAK,cAAcA,CAAG,EAAI,SAAUA,G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AAIhC,EAAI,EAAGQ,EAAIe,MAAMb,GAAIV,EAAIU,EAAGV,IAAKQ,EAAER,GAAKE,EAAEF,GAAI,OAAOQ,CAAG,CA2BnJ,OAxBA,WACE,IACEmC,EAAarB,GADC,EAAIrB,EAAO2C,UAAU,QACI,GACvCC,EAAMF,EAAW,GACjBG,EAASH,EAAW,GAEpBI,EAAazB,GADE,EAAIrB,EAAO2C,WAAU,GACI,GACxCI,EAAeD,EAAW,GAC1BE,EAAkBF,EAAW,GAC/B,OAAoB9C,EAAgB,QAAEiD,cAAc,MAAO,KAAmBjD,EAAgB,QAAEiD,cAAc9B,EAA2B,QAAG,CAC1I+B,MAAO,CACLC,WAAY,IAEdC,MAAOR,EACPG,aAAcA,EACdM,SAAU,SAAkBD,GAC1BP,EAAOO,EAAMR,IACf,IACe5C,EAAgB,QAAEiD,cAAc,SAAU,CACzDK,QAAS,WACP,OAAON,GAAiBD,EAC1B,GACC,gBAAiBA,EAAab,YACnC,CACc,CAtCQ,IAuClBqB,KAAM,CACR,GAAM,CACJ,KAAQ,GACR,KAAQ,CAAC,EACT,KAAQ,iqHACR,SAAY,MACZ,MAAS,+lBAGTC,OAAQ,wnFACRC,SAAS,GACTC,aAAa,G","sources":["../../packages/color-sketch/README.md"],"sourcesContent":["\nexport default {\n components: { 21: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactColorSketch = _interopRequireDefault(require(\"@uiw/react-color-sketch\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction Demo() {\n var _useState = (0, _react.useState)(\"#fff\"),\n _useState2 = _slicedToArray(_useState, 2),\n hex = _useState2[0],\n setHex = _useState2[1];\n var _useState3 = (0, _react.useState)(false),\n _useState4 = _slicedToArray(_useState3, 2),\n disableAlpha = _useState4[0],\n setDisableAlpha = _useState4[1];\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", null, /*#__PURE__*/_react[\"default\"].createElement(_reactColorSketch[\"default\"], {\n style: {\n marginLeft: 20\n },\n color: hex,\n disableAlpha: disableAlpha,\n onChange: function onChange(color) {\n setHex(color.hex);\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(\"button\", {\n onClick: function onClick() {\n return setDisableAlpha(!disableAlpha);\n }\n }, \"disableAlpha=\", disableAlpha.toString()));\n}\nreturn Demo; })(), },\n data: {\n \"21\": {\n \"name\": 21,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactColorSketch = _interopRequireDefault(require(\\\"@uiw/react-color-sketch\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nfunction Demo() {\\n var _useState = (0, _react.useState)(\\\"#fff\\\"),\\n _useState2 = _slicedToArray(_useState, 2),\\n hex = _useState2[0],\\n setHex = _useState2[1];\\n var _useState3 = (0, _react.useState)(false),\\n _useState4 = _slicedToArray(_useState3, 2),\\n disableAlpha = _useState4[0],\\n setDisableAlpha = _useState4[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", null, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorSketch[\\\"default\\\"], {\\n style: {\\n marginLeft: 20\\n },\\n color: hex,\\n disableAlpha: disableAlpha,\\n onChange: function onChange(color) {\\n setHex(color.hex);\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"button\\\", {\\n onClick: function onClick() {\\n return setDisableAlpha(!disableAlpha);\\n }\\n }, \\\"disableAlpha=\\\", disableAlpha.toString()));\\n}\\nreturn Demo;\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport Sketch from '@uiw/react-color-sketch';\\n\\nfunction Demo() {\\n const [hex, setHex] = useState(\\\"#fff\\\");\\n const [disableAlpha, setDisableAlpha] = useState(false);\\n return (\\n
\\n {\\n setHex(color.hex);\\n }}\\n />\\n \\n
\\n );\\n}\\n\\nexport default Demo;\"\n }\n},\n source: \"React Color Sketch\\n===\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-sketch)](https://bundlephobia.com/package/@uiw/react-color-sketch) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-sketch.svg)](https://www.npmjs.com/package/@uiw/react-color-sketch) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-sketch/file/README.md)\\n\\nSketch Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\\n\\n\\n[![react-color-sketch](https://user-images.githubusercontent.com/1680273/125952146-290199b4-8810-4552-944b-3ee673fb4350.png)](https://uiwjs.github.io/react-color/#/sketch)\\n\\n\\n## Install\\n\\n```bash\\nnpm i @uiw/react-color-sketch\\n```\\n\\n## Usage\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\nimport Sketch from '@uiw/react-color-sketch';\\n\\nfunction Demo() {\\n const [hex, setHex] = useState(\\\"#fff\\\");\\n const [disableAlpha, setDisableAlpha] = useState(false);\\n return (\\n
\\n {\\n setHex(color.hex);\\n }}\\n />\\n \\n
\\n );\\n}\\n\\nexport default Demo;\\n```\\n\\n## Props\\n\\n```ts\\nimport React from 'react';\\nimport { HsvaColor, ColorResult } from '@uiw/color-convert';\\nimport { SwatchPresetColor } from '@uiw/react-color-swatch';\\nexport interface SketchProps extends Omit, 'onChange' | 'color'> {\\n prefixCls?: string;\\n width?: number;\\n color?: string | HsvaColor;\\n presetColors?: false | SwatchPresetColor[];\\n editableDisable?: boolean;\\n disableAlpha?: boolean;\\n onChange?: (newShade: ColorResult) => void;\\n}\\ndeclare const Sketch: React.ForwardRefExoticComponent>;\\nexport default Sketch;\\n```\\n\\n\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","_typeof","o","Symbol","iterator","constructor","prototype","e","_react","r","__esModule","t","_getRequireWildcardCache","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_interopRequireWildcard","_reactColorSketch","WeakMap","_slicedToArray","Array","isArray","_arrayWithHoles","l","f","next","done","push","value","length","_iterableToArrayLimit","_arrayLikeToArray","toString","slice","name","from","test","_unsupportedIterableToArray","TypeError","_nonIterableRest","_useState2","useState","hex","setHex","_useState4","disableAlpha","setDisableAlpha","createElement","style","marginLeft","color","onChange","onClick","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/199.678b96fe.chunk.js b/static/js/199.678b96fe.chunk.js new file mode 100644 index 000000000..b44964e18 --- /dev/null +++ b/static/js/199.678b96fe.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[199],{5602:(e,t,a)=>{var r=a(6784).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Pointer=void 0;var n=r(a(6651)),o=r(a(453)),l=(r(a(7804)),a(9424)),i=["className","prefixCls","left","top","style","fillProps"];t.Pointer=function(e){var t=e.className,a=e.prefixCls,r=e.left,u=e.top,s=e.style,c=e.fillProps,d=(0,o.default)(e,i),f=(0,n.default)((0,n.default)({},s),{},{position:"absolute",left:r,top:u}),p=(0,n.default)((0,n.default)({width:18,height:18,boxShadow:"var(--alpha-pointer-box-shadow)",borderRadius:"50%",backgroundColor:"var(--alpha-pointer-background-color)"},null===c||void 0===c?void 0:c.style),{},{transform:r?"translate(-9px, -1px)":"translate(-1px, -9px)"});return(0,l.jsx)("div",(0,n.default)((0,n.default)({className:"".concat(a,"-pointer ").concat(t||""),style:f},d),{},{children:(0,l.jsx)("div",(0,n.default)((0,n.default)({className:"".concat(a,"-fill")},c),{},{style:p}))}))}},4707:(e,t,a)=>{var r=a(6784).default;Object.defineProperty(t,"__esModule",{value:!0});var n={BACKGROUND_IMG:!0};t.default=t.BACKGROUND_IMG=void 0;var o=r(a(6651)),l=r(a(453)),i=r(a(7804)),u=a(7604),s=r(a(7611)),c=a(5602);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var d=a(9424),f=["prefixCls","className","hsva","background","bgProps","innerProps","pointerProps","radius","width","height","direction","style","onChange","pointer"],p=t.BACKGROUND_IMG="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==",h=i.default.forwardRef((function(e,t){var a=e.prefixCls,r=void 0===a?"w-color-alpha":a,n=e.className,i=e.hsva,h=e.background,b=e.bgProps,v=void 0===b?{}:b,g=e.innerProps,y=void 0===g?{}:g,m=e.pointerProps,x=void 0===m?{}:m,w=e.radius,C=void 0===w?0:w,A=e.width,k=e.height,_=void 0===k?16:k,j=e.direction,S=void 0===j?"horizontal":j,R=e.style,P=e.onChange,O=e.pointer,N=(0,l.default)(e,f),D=function(e){P&&P((0,o.default)((0,o.default)({},i),{},{a:"horizontal"===S?e.left:e.top}),e)},E=(0,u.hsvaToHslaString)(Object.assign({},i,{a:1})),M="linear-gradient(to ".concat("horizontal"===S?"right":"bottom",", rgba(244, 67, 54, 0) 0%, ").concat(E," 100%)"),T={};"horizontal"===S?T.left="".concat(100*i.a,"%"):T.top="".concat(100*i.a,"%");var B=(0,o.default)((0,o.default)((0,o.default)({"--alpha-background-color":"#fff","--alpha-pointer-background-color":"rgb(248, 248, 248)","--alpha-pointer-box-shadow":"rgb(0 0 0 / 37%) 0px 1px 4px 0px",borderRadius:C,background:"url(".concat(p,") left center"),backgroundColor:"var(--alpha-background-color)"},{width:A,height:_}),R),{},{position:"relative"}),L=O&&"function"===typeof O?O((0,o.default)((0,o.default)({prefixCls:r},x),T)):(0,d.jsx)(c.Pointer,(0,o.default)((0,o.default)({},x),{},{prefixCls:r},T));return(0,d.jsxs)("div",(0,o.default)((0,o.default)({},N),{},{className:[r,"".concat(r,"-").concat(S),n||""].filter(Boolean).join(" "),style:B,ref:t,children:[(0,d.jsx)("div",(0,o.default)((0,o.default)({},v),{},{style:(0,o.default)({inset:0,position:"absolute",background:h||M,borderRadius:C},v.style)})),(0,d.jsx)(s.default,(0,o.default)((0,o.default)({},y),{},{style:(0,o.default)((0,o.default)({},y.style),{},{inset:0,zIndex:1,position:"absolute"}),onMove:D,onDown:D,children:L}))]}))}));h.displayName="Alpha";t.default=h},974:(e,t,a)=>{var r=a(6784).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(6651)),o=r(a(453)),l=r(a(7804)),i=r(a(4226)),u=a(7604),s=a(9424),c=["prefixCls","hsva","placement","rProps","gProps","bProps","aProps","className","style","onChange"],d=l.default.forwardRef((function(e,t){var a=e.prefixCls,r=void 0===a?"w-color-editable-input-rgba":a,l=e.hsva,d=e.placement,f=void 0===d?"bottom":d,p=e.rProps,h=void 0===p?{}:p,b=e.gProps,v=void 0===b?{}:b,g=e.bProps,y=void 0===g?{}:g,m=e.aProps,x=void 0===m?{}:m,w=e.className,C=e.style,A=e.onChange,k=(0,o.default)(e,c),_=l?(0,u.hsvaToRgba)(l):{};function j(e){var t=Number(e.target.value);t&&t>255&&(e.target.value="255"),t&&t<0&&(e.target.value="0")}var S=function(e,t,a){"number"===typeof e&&("a"===t&&(e<0&&(e=0),e>100&&(e=100),A&&A((0,u.color)((0,u.rgbaToHsva)((0,n.default)((0,n.default)({},_),{},{a:e/100}))))),e>255&&(e=255,a.target.value="255"),e<0&&(e=0,a.target.value="0"),"r"===t&&A&&A((0,u.color)((0,u.rgbaToHsva)((0,n.default)((0,n.default)({},_),{},{r:e})))),"g"===t&&A&&A((0,u.color)((0,u.rgbaToHsva)((0,n.default)((0,n.default)({},_),{},{g:e})))),"b"===t&&A&&A((0,u.color)((0,u.rgbaToHsva)((0,n.default)((0,n.default)({},_),{},{b:e})))))};return(0,s.jsxs)("div",(0,n.default)((0,n.default)({ref:t,className:[r,w||""].filter(Boolean).join(" ")},k),{},{style:(0,n.default)({fontSize:11,display:"flex"},C),children:[(0,s.jsx)(i.default,(0,n.default)((0,n.default)({label:"R",value:_.r||0,onBlur:j,placement:f,onChange:function(e,t){return S(t,"r",e)}},h),{},{style:(0,n.default)({},h.style)})),(0,s.jsx)(i.default,(0,n.default)((0,n.default)({label:"G",value:_.g||0,onBlur:j,placement:f,onChange:function(e,t){return S(t,"g",e)}},v),{},{style:(0,n.default)({marginLeft:5},h.style)})),(0,s.jsx)(i.default,(0,n.default)((0,n.default)({label:"B",value:_.b||0,onBlur:j,placement:f,onChange:function(e,t){return S(t,"b",e)}},y),{},{style:(0,n.default)({marginLeft:5},y.style)})),x&&(0,s.jsx)(i.default,(0,n.default)((0,n.default)({label:"A",value:_.a?parseInt(String(100*_.a),10):0,onBlur:j,placement:f,onChange:function(e,t){return S(t,"a",e)}},x),{},{style:(0,n.default)({marginLeft:5},x.style)}))]}))}));d.displayName="EditableInputRGBA";t.default=d;e.exports=t.default},4226:(e,t,a)=>{var r=a(6784).default,n=a(147).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(a(6651)),l=r(a(8821)),i=r(a(453)),u=n(a(7804)),s=a(9424),c=["prefixCls","placement","label","value","className","style","labelStyle","inputStyle","onChange","onBlur"],d=u.default.forwardRef((function(e,t){var a=e.prefixCls,r=void 0===a?"w-color-editable-input":a,n=e.placement,d=void 0===n?"bottom":n,f=e.label,p=e.value,h=e.className,b=e.style,v=e.labelStyle,g=e.inputStyle,y=e.onChange,m=e.onBlur,x=(0,i.default)(e,c),w=(0,u.useState)(p),C=(0,l.default)(w,2),A=C[0],k=C[1],_=(0,u.useRef)(!1);(0,u.useEffect)((function(){e.value!==A&&(_.current||k(e.value))}),[e.value]);var j={};"bottom"===d&&(j.flexDirection="column"),"top"===d&&(j.flexDirection="column-reverse"),"left"===d&&(j.flexDirection="row-reverse");var S=(0,o.default)((0,o.default)({"--editable-input-label-color":"rgb(153, 153, 153)","--editable-input-box-shadow":"rgb(204 204 204) 0px 0px 0px 1px inset","--editable-input-color":"#666",position:"relative",alignItems:"center",display:"flex",fontSize:11},j),b),R=(0,o.default)({width:"100%",paddingTop:2,paddingBottom:2,paddingLeft:3,paddingRight:3,fontSize:11,background:"transparent",boxSizing:"border-box",border:"none",color:"var(--editable-input-color)",boxShadow:"var(--editable-input-box-shadow)"},g);return(0,s.jsxs)("div",{className:[r,h||""].filter(Boolean).join(" "),style:S,children:[(0,s.jsx)("input",(0,o.default)((0,o.default)({ref:t,value:A,onChange:function(e,t){var a=(t||e.target.value).trim().replace(/^#/,"");/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(a)&&y&&y(e,a);var r=function(e){return Number(String(e).replace(/%/g,""))}(a);isNaN(r)||y&&y(e,r),k(a)},onBlur:function(t){_.current=!1,k(e.value),m&&m(t)},autoComplete:"off",onFocus:function(){return _.current=!0}},x),{},{style:R})),f&&(0,s.jsx)("span",{style:(0,o.default)({color:"var(--editable-input-label-color)",textTransform:"capitalize"},v),children:f})]})}));d.displayName="EditableInput";t.default=d;e.exports=t.default},345:(e,t,a)=>{var r=a(6784).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(6651)),o=r(a(453)),l=r(a(7804)),i=r(a(4707)),u=a(9424),s=["prefixCls","className","hue","onChange","direction"],c=l.default.forwardRef((function(e,t){var a=e.prefixCls,r=void 0===a?"w-color-hue":a,l=e.className,c=e.hue,d=void 0===c?0:c,f=e.onChange,p=e.direction,h=void 0===p?"horizontal":p,b=(0,o.default)(e,s);return(0,u.jsx)(i.default,(0,n.default)((0,n.default)({ref:t,className:"".concat(r," ").concat(l||"")},b),{},{direction:h,background:"linear-gradient(to ".concat("horizontal"===h?"right":"bottom",", rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)"),hsva:{h:d,s:100,v:100,a:d/360},onChange:function(e,t){f&&f({h:"horizontal"===h?360*t.left:360*t.top})}}))}));c.displayName="Hue";t.default=c;e.exports=t.default},5106:(e,t,a)=>{var r=a(147).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Pointer=void 0;var n=r(a(7804)),o=a(9424);t.Pointer=function(e){var t=e.className,a=e.color,r=e.left,l=e.top,i=e.prefixCls,u={position:"absolute",top:l,left:r},s={"--saturation-pointer-box-shadow":"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",width:6,height:6,transform:"translate(-3px, -3px)",boxShadow:"var(--saturation-pointer-box-shadow)",borderRadius:"50%",backgroundColor:a};return(0,n.useMemo)((function(){return(0,o.jsx)("div",{className:"".concat(i,"-pointer ").concat(t||""),style:u,children:(0,o.jsx)("div",{className:"".concat(i,"-fill"),style:s})})}),[l,r,a,t,i])}},3955:(e,t,a)=>{var r=a(6784).default,n=a(147).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(a(6651)),l=r(a(453)),i=n(a(7804)),u=a(7604),s=r(a(7611)),c=a(5106),d=a(9424),f=["prefixCls","radius","pointer","className","hue","style","hsva","onChange"],p=i.default.forwardRef((function(e,t){var a,r=e.prefixCls,n=void 0===r?"w-color-saturation":r,p=e.radius,h=void 0===p?0:p,b=e.pointer,v=e.className,g=e.hue,y=void 0===g?0:g,m=e.style,x=e.hsva,w=e.onChange,C=(0,l.default)(e,f),A=(0,o.default)((0,o.default)({width:200,height:200,borderRadius:h},m),{},{position:"relative"}),k=function(e,t){w&&x&&w({h:x.h,s:100*e.left,v:100*(1-e.top),a:x.a})},_=(0,i.useMemo)((function(){if(!x)return null;var e={top:"".concat(100-x.v,"%"),left:"".concat(x.s,"%"),color:(0,u.hsvaToHslaString)(x)};return b&&"function"===typeof b?b((0,o.default)({prefixCls:n},e)):(0,d.jsx)(c.Pointer,(0,o.default)({prefixCls:n},e))}),[x,b,n]);return(0,d.jsx)(s.default,(0,o.default)((0,o.default)({className:[n,v||""].filter(Boolean).join(" ")},C),{},{style:(0,o.default)({position:"absolute",inset:0,cursor:"crosshair",backgroundImage:"linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, hsl(".concat(null!==(a=null===x||void 0===x?void 0:x.h)&&void 0!==a?a:y,", 100%, 50%))")},A),ref:t,onMove:k,onDown:k,children:_}))}));p.displayName="Saturation";t.default=p;e.exports=t.default},6139:(e,t,a)=>{var r=a(6784).default,n=a(147).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(a(6651)),l=r(a(564)),i=r(a(8821)),u=r(a(453)),s=n(a(7804)),c=r(a(3955)),d=r(a(4707)),f=r(a(4226)),p=r(a(974)),h=r(a(345)),b=a(7604),v=r(a(5560)),g=a(9424),y=["prefixCls","className","onChange","width","presetColors","color","editableDisable","disableAlpha","style"],m=["#D0021B","#F5A623","#f8e61b","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"],x=function(e){return(0,g.jsx)("div",{style:{boxShadow:"rgb(0 0 0 / 60%) 0px 0px 2px",width:4,top:1,bottom:1,left:e.left,borderRadius:1,position:"absolute",backgroundColor:"#fff"}})},w=s.default.forwardRef((function(e,t){var a=e.prefixCls,r=void 0===a?"w-color-sketch":a,n=e.className,w=e.onChange,C=e.width,A=void 0===C?218:C,k=e.presetColors,_=void 0===k?m:k,j=e.color,S=e.editableDisable,R=void 0===S||S,P=e.disableAlpha,O=void 0!==P&&P,N=e.style,D=(0,u.default)(e,y),E=(0,s.useState)({h:209,s:36,v:90,a:1}),M=(0,i.default)(E,2),T=M[0],B=M[1];(0,s.useEffect)((function(){"string"===typeof j&&(0,b.validHex)(j)&&B((0,b.hexToHsva)(j)),"object"===(0,l.default)(j)&&B(j)}),[j]);var L=function(e){B(e),w&&w((0,b.color)(e))},H=(0,o.default)({"--sketch-background":"rgb(255, 255, 255)","--sketch-box-shadow":"rgb(0 0 0 / 15%) 0px 0px 0px 1px, rgb(0 0 0 / 15%) 0px 8px 16px","--sketch-swatch-box-shadow":"rgb(0 0 0 / 15%) 0px 0px 0px 1px inset","--sketch-alpha-box-shadow":"rgb(0 0 0 / 15%) 0px 0px 0px 1px inset, rgb(0 0 0 / 25%) 0px 0px 4px inset","--sketch-swatch-border-top":"1px solid rgb(238, 238, 238)",background:"var(--sketch-background)",borderRadius:4,boxShadow:"var(--sketch-box-shadow)",width:A},N),I={borderRadius:2,background:(0,b.hsvaToRgbaString)(T),boxShadow:"var(--sketch-alpha-box-shadow)"};return(0,g.jsxs)("div",(0,o.default)((0,o.default)({},D),{},{className:"".concat(r," ").concat(n||""),ref:t,style:H,children:[(0,g.jsxs)("div",{style:{padding:"10px 10px 8px"},children:[(0,g.jsx)(c.default,{hsva:T,style:{width:"auto",height:150},onChange:function(e){return L((0,o.default)((0,o.default)((0,o.default)({},T),e),{},{a:T.a}))}}),(0,g.jsxs)("div",{style:{display:"flex",marginTop:4},children:[(0,g.jsxs)("div",{style:{flex:1},children:[(0,g.jsx)(h.default,{width:"auto",height:10,hue:T.h,pointer:x,innerProps:{style:{marginLeft:1,marginRight:5}},onChange:function(e){return L((0,o.default)((0,o.default)({},T),e))}}),!O&&(0,g.jsx)(d.default,{width:"auto",height:10,hsva:T,pointer:x,style:{marginTop:4},innerProps:{style:{marginLeft:1,marginRight:5}},onChange:function(e){return L((0,o.default)((0,o.default)({},T),{a:e.a}))}})]}),!O&&(0,g.jsx)(d.default,{width:24,height:24,hsva:T,radius:2,style:{marginLeft:4},bgProps:{style:{background:"transparent"}},innerProps:{style:I},pointer:function(){return(0,g.jsx)(s.Fragment,{})}})]})]}),R&&(0,g.jsxs)("div",{style:{display:"flex",margin:"0 10px 3px 10px"},children:[(0,g.jsx)(f.default,{label:"Hex",value:(0,b.hsvaToHex)(T).replace(/^#/,"").toLocaleUpperCase(),onChange:function(e,t){var a;"string"===typeof(a=t)&&(0,b.validHex)(a)&&/(3|6)/.test(String(a.length))&&L((0,b.hexToHsva)(a))},style:{minWidth:58}}),(0,g.jsx)(p.default,{hsva:T,style:{marginLeft:6},aProps:!O&&{},onChange:function(e){return L(e.hsva)}})]}),_&&_.length>0&&(0,g.jsx)(v.default,{style:{borderTop:"var(--sketch-swatch-border-top)",paddingTop:10,paddingLeft:10},colors:_,color:(0,b.hsvaToHex)(T),onChange:function(e){return L(e)},rectProps:{style:{marginRight:10,marginBottom:10,borderRadius:3,boxShadow:"var(--sketch-swatch-box-shadow)"}}})]}))}));w.displayName="Sketch";t.default=w;e.exports=t.default},5560:(e,t,a)=>{var r=a(6784).default,n=a(147).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(a(564)),l=r(a(6651)),i=r(a(453)),u=n(a(7804)),s=a(7604),c=a(9424),d=["prefixCls","className","color","colors","style","rectProps","onChange","addonAfter","addonBefore","rectRender"],f=u.default.forwardRef((function(e,t){var a=e.prefixCls,r=void 0===a?"w-color-swatch":a,n=e.className,f=e.color,p=e.colors,h=void 0===p?[]:p,b=e.style,v=e.rectProps,g=void 0===v?{}:v,y=e.onChange,m=e.addonAfter,x=e.addonBefore,w=e.rectRender,C=(0,i.default)(e,d),A=(0,l.default)({"--swatch-background-color":"rgb(144, 19, 254)",background:"var(--swatch-background-color)",height:15,width:15,marginRight:5,marginBottom:5,cursor:"pointer",position:"relative",outline:"none",borderRadius:2},g.style),k=function(e,t){y&&y((0,s.hexToHsva)(e),(0,s.color)((0,s.hexToHsva)(e)),t)};return(0,c.jsxs)("div",(0,l.default)((0,l.default)({ref:t},C),{},{className:[r,n||""].filter(Boolean).join(" "),style:(0,l.default)({display:"flex",flexWrap:"wrap",position:"relative"},b),children:[x&&u.default.isValidElement(x)&&x,h&&Array.isArray(h)&&h.map((function(e,t){var a="",r="";"string"===typeof e&&(a=e,r=e),"object"===(0,o.default)(e)&&e.color&&(a=e.title||e.color,r=e.color);var n=f&&f.toLocaleLowerCase()===r.toLocaleLowerCase(),i=w&&w({title:a,color:r,checked:!!n,style:(0,l.default)((0,l.default)({},A),{},{background:r}),onClick:function(e){return k(r,e)}});if(i)return(0,c.jsx)(u.Fragment,{children:i},t);var s=g.children&&u.default.isValidElement(g.children)?u.default.cloneElement(g.children,{color:r,checked:n}):null;return(0,c.jsx)("div",(0,l.default)((0,l.default)({tabIndex:0,title:a,onClick:function(e){return k(r,e)}},g),{},{children:s,style:(0,l.default)((0,l.default)({},A),{},{background:r})}),t)})),m&&u.default.isValidElement(m)&&m]}))}));f.displayName="Swatch";t.default=f;e.exports=t.default},7611:(e,t,a)=>{var r=a(6784).default,n=a(147).default;Object.defineProperty(t,"__esModule",{value:!0});var o={};t.default=void 0;var l=r(a(6651)),i=r(a(8821)),u=r(a(453)),s=n(a(7804)),c=a(1974);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var d=a(9424),f=["prefixCls","className","onMove","onDown"],p=s.default.forwardRef((function(e,t){var a=e.prefixCls,r=void 0===a?"w-color-interactive":a,n=e.className,o=e.onMove,p=e.onDown,h=(0,u.default)(e,f),b=(0,s.useRef)(null),v=(0,s.useRef)(!1),g=(0,s.useState)(!1),y=(0,i.default)(g,2),m=y[0],x=y[1],w=(0,c.useEventCallback)(o),C=(0,c.useEventCallback)(p),A=(0,s.useCallback)((function(e){(0,c.preventDefaultMove)(e),((0,c.isTouch)(e)?e.touches.length>0:e.buttons>0)&&b.current?w&&w((0,c.getRelativePosition)(b.current,e),e):x(!1)}),[w]),k=(0,s.useCallback)((function(){return x(!1)}),[]),_=(0,s.useCallback)((function(e){var t=e?window.addEventListener:window.removeEventListener;t(v.current?"touchmove":"mousemove",A),t(v.current?"touchend":"mouseup",k)}),[]);(0,s.useEffect)((function(){return _(m),function(){m&&_(!1)}}),[m,_]);var j=(0,s.useCallback)((function(e){(0,c.preventDefaultMove)(e.nativeEvent),function(e){return!(v.current&&!(0,c.isTouch)(e))&&(v.current=(0,c.isTouch)(e),!0)}(e.nativeEvent)&&(C&&C((0,c.getRelativePosition)(b.current,e.nativeEvent),e.nativeEvent),x(!0))}),[C]);return(0,d.jsx)("div",(0,l.default)((0,l.default)({},h),{},{className:[r,n||""].filter(Boolean).join(" "),style:(0,l.default)((0,l.default)({},h.style),{},{touchAction:"none"}),ref:b,tabIndex:0,onMouseDown:j,onTouchStart:j}))}));p.displayName="Interactive";t.default=p},1974:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.preventDefaultMove=t.isTouch=t.getRelativePosition=t.clamp=void 0,t.useEventCallback=function(e){var t=(0,r.useRef)(e);return(0,r.useEffect)((function(){t.current=e})),(0,r.useCallback)((function(e,a){return t.current&&t.current(e,a)}),[])};var r=a(7804);var n=t.isTouch=function(e){return"touches"in e},o=(t.preventDefaultMove=function(e){!n(e)&&e.preventDefault&&e.preventDefault()},t.clamp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e>a?a:e{a.r(t),a.d(t,{default:()=>r});const r={components:{21:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,r=function(t,a){if(!a&&t&&t.__esModule)return t;if(null===t||"object"!=e(t)&&"function"!=typeof t)return{default:t};var r=o(a);if(r&&r.has(t))return r.get(t);var n={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&{}.hasOwnProperty.call(t,i)){var u=l?Object.getOwnPropertyDescriptor(t,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=t[i]}return n.default=t,r&&r.set(t,n),n}(a(7804)),n=(t=a(6139))&&t.__esModule?t:{default:t};function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(o=function(e){return e?a:t})(e)}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,n,o,l,i=[],u=!0,s=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;u=!1}else for(;!(u=(r=o.call(a)).done)&&(i.push(r.value),i.length!==t);u=!0);}catch(e){s=!0,n=e}finally{try{if(!u&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction Demo() {\n var _useState = (0, _react.useState)("#fff"),\n _useState2 = _slicedToArray(_useState, 2),\n hex = _useState2[0],\n setHex = _useState2[1];\n var _useState3 = (0, _react.useState)(false),\n _useState4 = _slicedToArray(_useState3, 2),\n disableAlpha = _useState4[0],\n setDisableAlpha = _useState4[1];\n return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_reactColorSketch["default"], {\n style: {\n marginLeft: 20\n },\n color: hex,\n disableAlpha: disableAlpha,\n onChange: function onChange(color) {\n setHex(color.hex);\n }\n }), /*#__PURE__*/_react["default"].createElement("button", {\n onClick: function onClick() {\n return setDisableAlpha(!disableAlpha);\n }\n }, "disableAlpha=", disableAlpha.toString()));\n}\nreturn Demo;',language:"jsx",value:"import React, { useState } from 'react';\nimport Sketch from '@uiw/react-color-sketch';\n\nfunction Demo() {\n const [hex, setHex] = useState(\"#fff\");\n const [disableAlpha, setDisableAlpha] = useState(false);\n return (\n
\n {\n setHex(color.hex);\n }}\n />\n \n
\n );\n}\n\nexport default Demo;"}},source:"React Color Sketch\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-sketch)](https://bundlephobia.com/package/@uiw/react-color-sketch) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-sketch.svg)](https://www.npmjs.com/package/@uiw/react-color-sketch) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-sketch/file/README.md)\n\nSketch Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\n\n\x3c!--rehype:ignore:start--\x3e\n[![react-color-sketch](https://user-images.githubusercontent.com/1680273/125952146-290199b4-8810-4552-944b-3ee673fb4350.png)](https://uiwjs.github.io/react-color/#/sketch)\n\x3c!--rehype:ignore:end--\x3e\n\n## Install\n\n```bash\nnpm i @uiw/react-color-sketch\n```\n\n## Usage\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\nimport Sketch from '@uiw/react-color-sketch';\n\nfunction Demo() {\n const [hex, setHex] = useState(\"#fff\");\n const [disableAlpha, setDisableAlpha] = useState(false);\n return (\n
\n {\n setHex(color.hex);\n }}\n />\n \n
\n );\n}\n\nexport default Demo;\n```\n\n## Props\n\n```ts\nimport React from 'react';\nimport { HsvaColor, ColorResult } from '@uiw/color-convert';\nimport { SwatchPresetColor } from '@uiw/react-color-swatch';\nexport interface SketchProps extends Omit, 'onChange' | 'color'> {\n prefixCls?: string;\n width?: number;\n color?: string | HsvaColor;\n presetColors?: false | SwatchPresetColor[];\n editableDisable?: boolean;\n disableAlpha?: boolean;\n onChange?: (newShade: ColorResult) => void;\n}\ndeclare const Sketch: React.ForwardRefExoticComponent>;\nexport default Sketch;\n```\n\n\x3c!--footer-dividing--\x3e\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=199.678b96fe.chunk.js.map \ No newline at end of file diff --git a/static/js/199.678b96fe.chunk.js.map b/static/js/199.678b96fe.chunk.js.map new file mode 100644 index 000000000..3f1df1177 --- /dev/null +++ b/static/js/199.678b96fe.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/199.678b96fe.chunk.js","mappings":"iGAEA,IAAIA,EAAyBC,EAAAA,MAAAA,QAC7BC,OAAOC,eAAeC,EAAS,aAAc,CAC3CC,OAAO,IAETD,EAAQE,aAAU,EAClB,IAAIC,EAAiBP,EAAuBC,EAAQ,OAChDO,EAA4BR,EAAuBC,EAAQ,MAE3DQ,GADST,EAAuBC,EAAQ,OAC1BA,EAAQ,OACtBS,EAAY,CAAC,YAAa,YAAa,OAAQ,MAAO,QAAS,aACrDN,EAAQE,QAAU,SAAiBK,GAC/C,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKE,UACjBC,EAAOH,EAAKG,KACZC,EAAMJ,EAAKI,IACXC,EAAQL,EAAKK,MACbC,EAAYN,EAAKM,UACjBC,GAAQ,EAAIV,EAAmC,SAAGG,EAAMD,GACtDS,GAAe,EAAIZ,EAAwB,UAAG,EAAIA,EAAwB,SAAG,CAAC,EAAGS,GAAQ,CAAC,EAAG,CAC/FI,SAAU,WACV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,KAAQ,GACR,KAAQ,CAAC,EACT,KAAQ,iqHACR,SAAY,MACZ,MAAS,+lBAGTC,OAAQ,wnFACRC,SAAS,GACTC,aAAa,G","sources":["../../packages/color-alpha/cjs/Pointer.js","../../packages/color-alpha/cjs/index.js","../../packages/color-editable-input-rgba/cjs/index.js","../../packages/color-editable-input/cjs/index.js","../../packages/color-hue/cjs/index.js","../../packages/color-saturation/cjs/Pointer.js","../../packages/color-saturation/cjs/index.js","../../packages/color-sketch/cjs/index.js","../../packages/color-swatch/cjs/index.js","../../packages/drag-event-interactive/cjs/index.js","../../packages/drag-event-interactive/cjs/utils.js","../../packages/color-sketch/README.md"],"sourcesContent":["\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Pointer = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"className\", \"prefixCls\", \"left\", \"top\", \"style\", \"fillProps\"];\nvar Pointer = exports.Pointer = function Pointer(_ref) {\n var className = _ref.className,\n prefixCls = _ref.prefixCls,\n left = _ref.left,\n top = _ref.top,\n style = _ref.style,\n fillProps = _ref.fillProps,\n reset = (0, _objectWithoutProperties2[\"default\"])(_ref, _excluded);\n var styleWrapper = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, style), {}, {\n position: 'absolute',\n left: left,\n top: top\n });\n var stylePointer = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n width: 18,\n height: 18,\n boxShadow: 'var(--alpha-pointer-box-shadow)',\n borderRadius: '50%',\n backgroundColor: 'var(--alpha-pointer-background-color)'\n }, fillProps === null || fillProps === void 0 ? void 0 : fillProps.style), {}, {\n transform: left ? 'translate(-9px, -1px)' : 'translate(-1px, -9px)'\n });\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n className: \"\".concat(prefixCls, \"-pointer \").concat(className || ''),\n style: styleWrapper\n }, reset), {}, {\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n className: \"\".concat(prefixCls, \"-fill\")\n }, fillProps), {}, {\n style: stylePointer\n }))\n }));\n};","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _exportNames = {\n BACKGROUND_IMG: true\n};\nexports[\"default\"] = exports.BACKGROUND_IMG = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactDragEventInteractive = _interopRequireDefault(require(\"@uiw/react-drag-event-interactive\"));\nvar _Pointer = require(\"./Pointer\");\nObject.keys(_Pointer).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _Pointer[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _Pointer[key];\n }\n });\n});\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"className\", \"hsva\", \"background\", \"bgProps\", \"innerProps\", \"pointerProps\", \"radius\", \"width\", \"height\", \"direction\", \"style\", \"onChange\", \"pointer\"];\nvar BACKGROUND_IMG = exports.BACKGROUND_IMG = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==';\nvar Alpha = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-alpha' : _props$prefixCls,\n className = props.className,\n hsva = props.hsva,\n background = props.background,\n _props$bgProps = props.bgProps,\n bgProps = _props$bgProps === void 0 ? {} : _props$bgProps,\n _props$innerProps = props.innerProps,\n innerProps = _props$innerProps === void 0 ? {} : _props$innerProps,\n _props$pointerProps = props.pointerProps,\n pointerProps = _props$pointerProps === void 0 ? {} : _props$pointerProps,\n _props$radius = props.radius,\n radius = _props$radius === void 0 ? 0 : _props$radius,\n width = props.width,\n _props$height = props.height,\n height = _props$height === void 0 ? 16 : _props$height,\n _props$direction = props.direction,\n direction = _props$direction === void 0 ? 'horizontal' : _props$direction,\n style = props.style,\n onChange = props.onChange,\n pointer = props.pointer,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var handleChange = function handleChange(offset) {\n onChange && onChange((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, hsva), {}, {\n a: direction === 'horizontal' ? offset.left : offset.top\n }), offset);\n };\n var colorTo = (0, _colorConvert.hsvaToHslaString)(Object.assign({}, hsva, {\n a: 1\n }));\n var innerBackground = \"linear-gradient(to \".concat(direction === 'horizontal' ? 'right' : 'bottom', \", rgba(244, 67, 54, 0) 0%, \").concat(colorTo, \" 100%)\");\n var comProps = {};\n if (direction === 'horizontal') {\n comProps.left = \"\".concat(hsva.a * 100, \"%\");\n } else {\n comProps.top = \"\".concat(hsva.a * 100, \"%\");\n }\n var styleWrapper = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n '--alpha-background-color': '#fff',\n '--alpha-pointer-background-color': 'rgb(248, 248, 248)',\n '--alpha-pointer-box-shadow': 'rgb(0 0 0 / 37%) 0px 1px 4px 0px',\n borderRadius: radius,\n background: \"url(\".concat(BACKGROUND_IMG, \") left center\"),\n backgroundColor: 'var(--alpha-background-color)'\n }, {\n width: width,\n height: height\n }), style), {}, {\n position: 'relative'\n });\n var pointerElement = pointer && typeof pointer === 'function' ? pointer((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n prefixCls: prefixCls\n }, pointerProps), comProps)) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Pointer.Pointer, (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, pointerProps), {}, {\n prefixCls: prefixCls\n }, comProps));\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, other), {}, {\n className: [prefixCls, \"\".concat(prefixCls, \"-\").concat(direction), className || ''].filter(Boolean).join(' '),\n style: styleWrapper,\n ref: ref,\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, bgProps), {}, {\n style: (0, _objectSpread2[\"default\"])({\n inset: 0,\n position: 'absolute',\n background: background || innerBackground,\n borderRadius: radius\n }, bgProps.style)\n })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactDragEventInteractive[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, innerProps), {}, {\n style: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, innerProps.style), {}, {\n inset: 0,\n zIndex: 1,\n position: 'absolute'\n }),\n onMove: handleChange,\n onDown: handleChange,\n children: pointerElement\n }))]\n }));\n});\nAlpha.displayName = 'Alpha';\nvar _default = exports[\"default\"] = Alpha;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _reactColorEditableInput = _interopRequireDefault(require(\"@uiw/react-color-editable-input\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"hsva\", \"placement\", \"rProps\", \"gProps\", \"bProps\", \"aProps\", \"className\", \"style\", \"onChange\"];\nvar EditableInputRGBA = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-editable-input-rgba' : _props$prefixCls,\n hsva = props.hsva,\n _props$placement = props.placement,\n placement = _props$placement === void 0 ? 'bottom' : _props$placement,\n _props$rProps = props.rProps,\n rProps = _props$rProps === void 0 ? {} : _props$rProps,\n _props$gProps = props.gProps,\n gProps = _props$gProps === void 0 ? {} : _props$gProps,\n _props$bProps = props.bProps,\n bProps = _props$bProps === void 0 ? {} : _props$bProps,\n _props$aProps = props.aProps,\n aProps = _props$aProps === void 0 ? {} : _props$aProps,\n className = props.className,\n style = props.style,\n onChange = props.onChange,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var rgba = hsva ? (0, _colorConvert.hsvaToRgba)(hsva) : {};\n function handleBlur(evn) {\n var value = Number(evn.target.value);\n if (value && value > 255) {\n evn.target.value = '255';\n }\n if (value && value < 0) {\n evn.target.value = '0';\n }\n }\n var handleChange = function handleChange(value, type, evn) {\n if (typeof value === 'number') {\n if (type === 'a') {\n if (value < 0) value = 0;\n if (value > 100) value = 100;\n onChange && onChange((0, _colorConvert.color)((0, _colorConvert.rgbaToHsva)((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, rgba), {}, {\n a: value / 100\n }))));\n }\n if (value > 255) {\n value = 255;\n evn.target.value = '255';\n }\n if (value < 0) {\n value = 0;\n evn.target.value = '0';\n }\n if (type === 'r') {\n onChange && onChange((0, _colorConvert.color)((0, _colorConvert.rgbaToHsva)((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, rgba), {}, {\n r: value\n }))));\n }\n if (type === 'g') {\n onChange && onChange((0, _colorConvert.color)((0, _colorConvert.rgbaToHsva)((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, rgba), {}, {\n g: value\n }))));\n }\n if (type === 'b') {\n onChange && onChange((0, _colorConvert.color)((0, _colorConvert.rgbaToHsva)((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, rgba), {}, {\n b: value\n }))));\n }\n }\n };\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n ref: ref,\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other), {}, {\n style: (0, _objectSpread2[\"default\"])({\n fontSize: 11,\n display: 'flex'\n }, style),\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorEditableInput[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n label: \"R\",\n value: rgba.r || 0,\n onBlur: handleBlur,\n placement: placement,\n onChange: function onChange(evn, val) {\n return handleChange(val, 'r', evn);\n }\n }, rProps), {}, {\n style: (0, _objectSpread2[\"default\"])({}, rProps.style)\n })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorEditableInput[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n label: \"G\",\n value: rgba.g || 0,\n onBlur: handleBlur,\n placement: placement,\n onChange: function onChange(evn, val) {\n return handleChange(val, 'g', evn);\n }\n }, gProps), {}, {\n style: (0, _objectSpread2[\"default\"])({\n marginLeft: 5\n }, rProps.style)\n })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorEditableInput[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n label: \"B\",\n value: rgba.b || 0,\n onBlur: handleBlur,\n placement: placement,\n onChange: function onChange(evn, val) {\n return handleChange(val, 'b', evn);\n }\n }, bProps), {}, {\n style: (0, _objectSpread2[\"default\"])({\n marginLeft: 5\n }, bProps.style)\n })), aProps && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorEditableInput[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n label: \"A\",\n value: rgba.a ? parseInt(String(rgba.a * 100), 10) : 0,\n onBlur: handleBlur,\n placement: placement,\n onChange: function onChange(evn, val) {\n return handleChange(val, 'a', evn);\n }\n }, aProps), {}, {\n style: (0, _objectSpread2[\"default\"])({\n marginLeft: 5\n }, aProps.style)\n }))]\n }));\n});\nEditableInputRGBA.displayName = 'EditableInputRGBA';\nvar _default = exports[\"default\"] = EditableInputRGBA;\nmodule.exports = exports.default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _slicedToArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/slicedToArray\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"placement\", \"label\", \"value\", \"className\", \"style\", \"labelStyle\", \"inputStyle\", \"onChange\", \"onBlur\"];\nvar validHex = function validHex(hex) {\n return /^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(hex);\n};\nvar getNumberValue = function getNumberValue(value) {\n return Number(String(value).replace(/%/g, ''));\n};\nvar EditableInput = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-editable-input' : _props$prefixCls,\n _props$placement = props.placement,\n placement = _props$placement === void 0 ? 'bottom' : _props$placement,\n label = props.label,\n initValue = props.value,\n className = props.className,\n style = props.style,\n labelStyle = props.labelStyle,\n inputStyle = props.inputStyle,\n onChange = props.onChange,\n onBlur = props.onBlur,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var _useState = (0, _react.useState)(initValue),\n _useState2 = (0, _slicedToArray2[\"default\"])(_useState, 2),\n value = _useState2[0],\n setValue = _useState2[1];\n var isFocus = (0, _react.useRef)(false);\n (0, _react.useEffect)(function () {\n if (props.value !== value) {\n if (!isFocus.current) {\n setValue(props.value);\n }\n }\n }, [props.value]);\n function handleChange(evn, valInit) {\n var value = (valInit || evn.target.value).trim().replace(/^#/, '');\n if (validHex(value)) {\n onChange && onChange(evn, value);\n }\n var val = getNumberValue(value);\n if (!isNaN(val)) {\n onChange && onChange(evn, val);\n }\n setValue(value);\n }\n function handleBlur(evn) {\n isFocus.current = false;\n setValue(props.value);\n onBlur && onBlur(evn);\n }\n var placementStyle = {};\n if (placement === 'bottom') {\n placementStyle['flexDirection'] = 'column';\n }\n if (placement === 'top') {\n placementStyle['flexDirection'] = 'column-reverse';\n }\n if (placement === 'left') {\n placementStyle['flexDirection'] = 'row-reverse';\n }\n var wrapperStyle = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n '--editable-input-label-color': 'rgb(153, 153, 153)',\n '--editable-input-box-shadow': 'rgb(204 204 204) 0px 0px 0px 1px inset',\n '--editable-input-color': '#666',\n position: 'relative',\n alignItems: 'center',\n display: 'flex',\n fontSize: 11\n }, placementStyle), style);\n var editableStyle = (0, _objectSpread2[\"default\"])({\n width: '100%',\n paddingTop: 2,\n paddingBottom: 2,\n paddingLeft: 3,\n paddingRight: 3,\n fontSize: 11,\n background: 'transparent',\n boxSizing: 'border-box',\n border: 'none',\n color: 'var(--editable-input-color)',\n boxShadow: 'var(--editable-input-box-shadow)'\n }, inputStyle);\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", {\n className: [prefixCls, className || ''].filter(Boolean).join(' '),\n style: wrapperStyle,\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(\"input\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n ref: ref,\n value: value,\n onChange: handleChange,\n onBlur: handleBlur,\n autoComplete: \"off\",\n onFocus: function onFocus() {\n return isFocus.current = true;\n }\n }, other), {}, {\n style: editableStyle\n })), label && /*#__PURE__*/(0, _jsxRuntime.jsx)(\"span\", {\n style: (0, _objectSpread2[\"default\"])({\n color: 'var(--editable-input-label-color)',\n textTransform: 'capitalize'\n }, labelStyle),\n children: label\n })]\n });\n});\nEditableInput.displayName = 'EditableInput';\nvar _default = exports[\"default\"] = EditableInput;\nmodule.exports = exports.default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _reactColorAlpha = _interopRequireDefault(require(\"@uiw/react-color-alpha\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"className\", \"hue\", \"onChange\", \"direction\"];\nvar Hue = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-hue' : _props$prefixCls,\n className = props.className,\n _props$hue = props.hue,\n hue = _props$hue === void 0 ? 0 : _props$hue,\n _onChange = props.onChange,\n _props$direction = props.direction,\n direction = _props$direction === void 0 ? 'horizontal' : _props$direction,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorAlpha[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n ref: ref,\n className: \"\".concat(prefixCls, \" \").concat(className || '')\n }, other), {}, {\n direction: direction,\n background: \"linear-gradient(to \".concat(direction === 'horizontal' ? 'right' : 'bottom', \", rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)\"),\n hsva: {\n h: hue,\n s: 100,\n v: 100,\n a: hue / 360\n },\n onChange: function onChange(_, interaction) {\n _onChange && _onChange({\n h: direction === 'horizontal' ? 360 * interaction.left : 360 * interaction.top\n });\n }\n }));\n});\nHue.displayName = 'Hue';\nvar _default = exports[\"default\"] = Hue;\nmodule.exports = exports.default;","\"use strict\";\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Pointer = void 0;\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar Pointer = exports.Pointer = function Pointer(_ref) {\n var className = _ref.className,\n color = _ref.color,\n left = _ref.left,\n top = _ref.top,\n prefixCls = _ref.prefixCls;\n var style = {\n position: 'absolute',\n top: top,\n left: left\n };\n var stylePointer = {\n '--saturation-pointer-box-shadow': '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',\n width: 6,\n height: 6,\n transform: 'translate(-3px, -3px)',\n boxShadow: 'var(--saturation-pointer-box-shadow)',\n borderRadius: '50%',\n backgroundColor: color\n };\n return (0, _react.useMemo)(function () {\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", {\n className: \"\".concat(prefixCls, \"-pointer \").concat(className || ''),\n style: style,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", {\n className: \"\".concat(prefixCls, \"-fill\"),\n style: stylePointer\n })\n });\n }, [top, left, color, className, prefixCls]);\n};","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactDragEventInteractive = _interopRequireDefault(require(\"@uiw/react-drag-event-interactive\"));\nvar _Pointer = require(\"./Pointer\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"radius\", \"pointer\", \"className\", \"hue\", \"style\", \"hsva\", \"onChange\"];\nvar Saturation = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _hsva$h;\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-saturation' : _props$prefixCls,\n _props$radius = props.radius,\n radius = _props$radius === void 0 ? 0 : _props$radius,\n pointer = props.pointer,\n className = props.className,\n _props$hue = props.hue,\n hue = _props$hue === void 0 ? 0 : _props$hue,\n style = props.style,\n hsva = props.hsva,\n onChange = props.onChange,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var containerStyle = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n width: 200,\n height: 200,\n borderRadius: radius\n }, style), {}, {\n position: 'relative'\n });\n var handleChange = function handleChange(interaction, event) {\n onChange && hsva && onChange({\n h: hsva.h,\n s: interaction.left * 100,\n v: (1 - interaction.top) * 100,\n a: hsva.a\n // source: 'hsv',\n });\n };\n var pointerElement = (0, _react.useMemo)(function () {\n if (!hsva) return null;\n var comProps = {\n top: \"\".concat(100 - hsva.v, \"%\"),\n left: \"\".concat(hsva.s, \"%\"),\n color: (0, _colorConvert.hsvaToHslaString)(hsva)\n };\n if (pointer && typeof pointer === 'function') {\n return pointer((0, _objectSpread2[\"default\"])({\n prefixCls: prefixCls\n }, comProps));\n }\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Pointer.Pointer, (0, _objectSpread2[\"default\"])({\n prefixCls: prefixCls\n }, comProps));\n }, [hsva, pointer, prefixCls]);\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactDragEventInteractive[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other), {}, {\n style: (0, _objectSpread2[\"default\"])({\n position: 'absolute',\n inset: 0,\n cursor: 'crosshair',\n backgroundImage: \"linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, hsl(\".concat((_hsva$h = hsva === null || hsva === void 0 ? void 0 : hsva.h) !== null && _hsva$h !== void 0 ? _hsva$h : hue, \", 100%, 50%))\")\n }, containerStyle),\n ref: ref,\n onMove: handleChange,\n onDown: handleChange,\n children: pointerElement\n }));\n});\nSaturation.displayName = 'Saturation';\nvar _default = exports[\"default\"] = Saturation;\nmodule.exports = exports.default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\nvar _slicedToArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/slicedToArray\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactColorSaturation = _interopRequireDefault(require(\"@uiw/react-color-saturation\"));\nvar _reactColorAlpha = _interopRequireDefault(require(\"@uiw/react-color-alpha\"));\nvar _reactColorEditableInput = _interopRequireDefault(require(\"@uiw/react-color-editable-input\"));\nvar _reactColorEditableInputRgba = _interopRequireDefault(require(\"@uiw/react-color-editable-input-rgba\"));\nvar _reactColorHue = _interopRequireDefault(require(\"@uiw/react-color-hue\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactColorSwatch = _interopRequireDefault(require(\"@uiw/react-color-swatch\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"className\", \"onChange\", \"width\", \"presetColors\", \"color\", \"editableDisable\", \"disableAlpha\", \"style\"];\nvar PRESET_COLORS = ['#D0021B', '#F5A623', '#f8e61b', '#8B572A', '#7ED321', '#417505', '#BD10E0', '#9013FE', '#4A90E2', '#50E3C2', '#B8E986', '#000000', '#4A4A4A', '#9B9B9B', '#FFFFFF'];\nvar Bar = function Bar(props) {\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", {\n style: {\n boxShadow: 'rgb(0 0 0 / 60%) 0px 0px 2px',\n width: 4,\n top: 1,\n bottom: 1,\n left: props.left,\n borderRadius: 1,\n position: 'absolute',\n backgroundColor: '#fff'\n }\n });\n};\nvar Sketch = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-sketch' : _props$prefixCls,\n className = props.className,\n onChange = props.onChange,\n _props$width = props.width,\n width = _props$width === void 0 ? 218 : _props$width,\n _props$presetColors = props.presetColors,\n presetColors = _props$presetColors === void 0 ? PRESET_COLORS : _props$presetColors,\n color = props.color,\n _props$editableDisabl = props.editableDisable,\n editableDisable = _props$editableDisabl === void 0 ? true : _props$editableDisabl,\n _props$disableAlpha = props.disableAlpha,\n disableAlpha = _props$disableAlpha === void 0 ? false : _props$disableAlpha,\n style = props.style,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var _useState = (0, _react.useState)({\n h: 209,\n s: 36,\n v: 90,\n a: 1\n }),\n _useState2 = (0, _slicedToArray2[\"default\"])(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n (0, _react.useEffect)(function () {\n if (typeof color === 'string' && (0, _colorConvert.validHex)(color)) {\n setHsva((0, _colorConvert.hexToHsva)(color));\n }\n if ((0, _typeof2[\"default\"])(color) === 'object') {\n setHsva(color);\n }\n }, [color]);\n var handleChange = function handleChange(hsv) {\n setHsva(hsv);\n onChange && onChange((0, _colorConvert.color)(hsv));\n };\n var handleHex = function handleHex(value, evn) {\n if (typeof value === 'string' && (0, _colorConvert.validHex)(value) && /(3|6)/.test(String(value.length))) {\n handleChange((0, _colorConvert.hexToHsva)(value));\n }\n };\n var handleAlphaChange = function handleAlphaChange(newAlpha) {\n return handleChange((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, hsva), {\n a: newAlpha.a\n }));\n };\n var handleSaturationChange = function handleSaturationChange(newColor) {\n return handleChange((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, hsva), newColor), {}, {\n a: hsva.a\n }));\n };\n var styleMain = (0, _objectSpread2[\"default\"])({\n '--sketch-background': 'rgb(255, 255, 255)',\n '--sketch-box-shadow': 'rgb(0 0 0 / 15%) 0px 0px 0px 1px, rgb(0 0 0 / 15%) 0px 8px 16px',\n '--sketch-swatch-box-shadow': 'rgb(0 0 0 / 15%) 0px 0px 0px 1px inset',\n '--sketch-alpha-box-shadow': 'rgb(0 0 0 / 15%) 0px 0px 0px 1px inset, rgb(0 0 0 / 25%) 0px 0px 4px inset',\n '--sketch-swatch-border-top': '1px solid rgb(238, 238, 238)',\n background: 'var(--sketch-background)',\n borderRadius: 4,\n boxShadow: 'var(--sketch-box-shadow)',\n width: width\n }, style);\n var styleAlpha = {\n borderRadius: 2,\n background: (0, _colorConvert.hsvaToRgbaString)(hsva),\n boxShadow: 'var(--sketch-alpha-box-shadow)'\n };\n var styleSwatch = {\n borderTop: 'var(--sketch-swatch-border-top)',\n paddingTop: 10,\n paddingLeft: 10\n };\n var styleSwatchRect = {\n marginRight: 10,\n marginBottom: 10,\n borderRadius: 3,\n boxShadow: 'var(--sketch-swatch-box-shadow)'\n };\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, other), {}, {\n className: \"\".concat(prefixCls, \" \").concat(className || ''),\n ref: ref,\n style: styleMain,\n children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", {\n style: {\n padding: '10px 10px 8px'\n },\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorSaturation[\"default\"], {\n hsva: hsva,\n style: {\n width: 'auto',\n height: 150\n },\n onChange: handleSaturationChange\n }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", {\n style: {\n display: 'flex',\n marginTop: 4\n },\n children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", {\n style: {\n flex: 1\n },\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorHue[\"default\"], {\n width: \"auto\",\n height: 10,\n hue: hsva.h,\n pointer: Bar,\n innerProps: {\n style: {\n marginLeft: 1,\n marginRight: 5\n }\n },\n onChange: function onChange(newHue) {\n return handleChange((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, hsva), newHue));\n }\n }), !disableAlpha && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorAlpha[\"default\"], {\n width: \"auto\",\n height: 10,\n hsva: hsva,\n pointer: Bar,\n style: {\n marginTop: 4\n },\n innerProps: {\n style: {\n marginLeft: 1,\n marginRight: 5\n }\n },\n onChange: handleAlphaChange\n })]\n }), !disableAlpha && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorAlpha[\"default\"], {\n width: 24,\n height: 24,\n hsva: hsva,\n radius: 2,\n style: {\n marginLeft: 4\n },\n bgProps: {\n style: {\n background: 'transparent'\n }\n },\n innerProps: {\n style: styleAlpha\n },\n pointer: function pointer() {\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Fragment, {});\n }\n })]\n })]\n }), editableDisable && /*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", {\n style: {\n display: 'flex',\n margin: '0 10px 3px 10px'\n },\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorEditableInput[\"default\"], {\n label: \"Hex\",\n value: (0, _colorConvert.hsvaToHex)(hsva).replace(/^#/, '').toLocaleUpperCase(),\n onChange: function onChange(evn, val) {\n return handleHex(val, evn);\n },\n style: {\n minWidth: 58\n }\n }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorEditableInputRgba[\"default\"], {\n hsva: hsva,\n style: {\n marginLeft: 6\n },\n aProps: !disableAlpha ? {} : false,\n onChange: function onChange(result) {\n return handleChange(result.hsva);\n }\n })]\n }), presetColors && presetColors.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorSwatch[\"default\"], {\n style: styleSwatch,\n colors: presetColors,\n color: (0, _colorConvert.hsvaToHex)(hsva),\n onChange: function onChange(hsvColor) {\n return handleChange(hsvColor);\n },\n rectProps: {\n style: styleSwatchRect\n }\n })]\n }));\n});\nSketch.displayName = 'Sketch';\nvar _default = exports[\"default\"] = Sketch;\nmodule.exports = exports.default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"className\", \"color\", \"colors\", \"style\", \"rectProps\", \"onChange\", \"addonAfter\", \"addonBefore\", \"rectRender\"];\nvar Swatch = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-swatch' : _props$prefixCls,\n className = props.className,\n color = props.color,\n _props$colors = props.colors,\n colors = _props$colors === void 0 ? [] : _props$colors,\n style = props.style,\n _props$rectProps = props.rectProps,\n rectProps = _props$rectProps === void 0 ? {} : _props$rectProps,\n onChange = props.onChange,\n addonAfter = props.addonAfter,\n addonBefore = props.addonBefore,\n rectRender = props.rectRender,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var rectStyle = (0, _objectSpread2[\"default\"])({\n '--swatch-background-color': 'rgb(144, 19, 254)',\n background: 'var(--swatch-background-color)',\n height: 15,\n width: 15,\n marginRight: 5,\n marginBottom: 5,\n cursor: 'pointer',\n position: 'relative',\n outline: 'none',\n borderRadius: 2\n }, rectProps.style);\n var handleClick = function handleClick(hex, evn) {\n onChange && onChange((0, _colorConvert.hexToHsva)(hex), (0, _colorConvert.color)((0, _colorConvert.hexToHsva)(hex)), evn);\n };\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n ref: ref\n }, other), {}, {\n className: [prefixCls, className || ''].filter(Boolean).join(' '),\n style: (0, _objectSpread2[\"default\"])({\n display: 'flex',\n flexWrap: 'wrap',\n position: 'relative'\n }, style),\n children: [addonBefore && /*#__PURE__*/_react[\"default\"].isValidElement(addonBefore) && addonBefore, colors && Array.isArray(colors) && colors.map(function (item, idx) {\n var title = '';\n var background = '';\n if (typeof item === 'string') {\n title = item;\n background = item;\n }\n if ((0, _typeof2[\"default\"])(item) === 'object' && item.color) {\n title = item.title || item.color;\n background = item.color;\n }\n var checked = color && color.toLocaleLowerCase() === background.toLocaleLowerCase();\n var render = rectRender && rectRender({\n title: title,\n color: background,\n checked: !!checked,\n style: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, rectStyle), {}, {\n background: background\n }),\n onClick: function onClick(evn) {\n return handleClick(background, evn);\n }\n });\n if (render) {\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Fragment, {\n children: render\n }, idx);\n }\n var child = rectProps.children && /*#__PURE__*/_react[\"default\"].isValidElement(rectProps.children) ? /*#__PURE__*/_react[\"default\"].cloneElement(rectProps.children, {\n color: background,\n checked: checked\n }) : null;\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n tabIndex: 0,\n title: title,\n onClick: function onClick(evn) {\n return handleClick(background, evn);\n }\n }, rectProps), {}, {\n children: child,\n style: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, rectStyle), {}, {\n background: background\n })\n }), idx);\n }), addonAfter && /*#__PURE__*/_react[\"default\"].isValidElement(addonAfter) && addonAfter]\n }));\n});\nSwatch.displayName = 'Swatch';\nvar _default = exports[\"default\"] = Swatch;\nmodule.exports = exports.default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _exportNames = {};\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _slicedToArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/slicedToArray\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _utils = require(\"./utils\");\nObject.keys(_utils).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _utils[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _utils[key];\n }\n });\n});\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"className\", \"onMove\", \"onDown\"];\nvar Interactive = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-interactive' : _props$prefixCls,\n className = props.className,\n onMove = props.onMove,\n onDown = props.onDown,\n reset = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var container = (0, _react.useRef)(null);\n var hasTouched = (0, _react.useRef)(false);\n var _useState = (0, _react.useState)(false),\n _useState2 = (0, _slicedToArray2[\"default\"])(_useState, 2),\n isDragging = _useState2[0],\n setDragging = _useState2[1];\n var onMoveCallback = (0, _utils.useEventCallback)(onMove);\n var onKeyCallback = (0, _utils.useEventCallback)(onDown);\n\n // Prevent mobile browsers from handling mouse events (conflicting with touch ones).\n // If we detected a touch interaction before, we prefer reacting to touch events only.\n var isValid = function isValid(event) {\n if (hasTouched.current && !(0, _utils.isTouch)(event)) return false;\n hasTouched.current = (0, _utils.isTouch)(event);\n return true;\n };\n var handleMove = (0, _react.useCallback)(function (event) {\n (0, _utils.preventDefaultMove)(event);\n // If user moves the pointer outside of the window or iframe bounds and release it there,\n // `mouseup`/`touchend` won't be fired. In order to stop the picker from following the cursor\n // after the user has moved the mouse/finger back to the document, we check `event.buttons`\n // and `event.touches`. It allows us to detect that the user is just moving his pointer\n // without pressing it down\n var isDown = (0, _utils.isTouch)(event) ? event.touches.length > 0 : event.buttons > 0;\n if (isDown && container.current) {\n onMoveCallback && onMoveCallback((0, _utils.getRelativePosition)(container.current, event), event);\n } else {\n setDragging(false);\n }\n }, [onMoveCallback]);\n var handleMoveEnd = (0, _react.useCallback)(function () {\n return setDragging(false);\n }, []);\n var toggleDocumentEvents = (0, _react.useCallback)(function (state) {\n var toggleEvent = state ? window.addEventListener : window.removeEventListener;\n toggleEvent(hasTouched.current ? 'touchmove' : 'mousemove', handleMove);\n toggleEvent(hasTouched.current ? 'touchend' : 'mouseup', handleMoveEnd);\n }, []);\n (0, _react.useEffect)(function () {\n toggleDocumentEvents(isDragging);\n return function () {\n isDragging && toggleDocumentEvents(false);\n };\n }, [isDragging, toggleDocumentEvents]);\n var handleMoveStart = (0, _react.useCallback)(function (event) {\n (0, _utils.preventDefaultMove)(event.nativeEvent);\n if (!isValid(event.nativeEvent)) return;\n onKeyCallback && onKeyCallback((0, _utils.getRelativePosition)(container.current, event.nativeEvent), event.nativeEvent);\n setDragging(true);\n }, [onKeyCallback]);\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, reset), {}, {\n className: [prefixCls, className || ''].filter(Boolean).join(' '),\n style: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, reset.style), {}, {\n touchAction: 'none'\n }),\n ref: container,\n tabIndex: 0,\n onMouseDown: handleMoveStart,\n onTouchStart: handleMoveStart\n }));\n});\nInteractive.displayName = 'Interactive';\nvar _default = exports[\"default\"] = Interactive;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.preventDefaultMove = exports.isTouch = exports.getRelativePosition = exports.clamp = void 0;\nexports.useEventCallback = useEventCallback;\nvar _react = require(\"react\");\n// Saves incoming handler to the ref in order to avoid \"useCallback hell\"\nfunction useEventCallback(handler) {\n var callbackRef = (0, _react.useRef)(handler);\n (0, _react.useEffect)(function () {\n callbackRef.current = handler;\n });\n return (0, _react.useCallback)(function (value, event) {\n return callbackRef.current && callbackRef.current(value, event);\n }, []);\n}\n\n// Check if an event was triggered by touch\nvar isTouch = exports.isTouch = function isTouch(event) {\n return 'touches' in event;\n};\n\n// Browsers introduced an intervention, making touch events passive by default.\n// This workaround removes `preventDefault` call from the touch handlers.\n// https://github.com/facebook/react/issues/19651\nvar preventDefaultMove = exports.preventDefaultMove = function preventDefaultMove(event) {\n !isTouch(event) && event.preventDefault && event.preventDefault();\n};\n// Clamps a value between an upper and lower bound.\n// We use ternary operators because it makes the minified code\n// 2 times shorter then `Math.min(Math.max(a,b),c)`\nvar clamp = exports.clamp = function clamp(number) {\n var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n return number > max ? max : number < min ? min : number;\n};\n// Returns a relative position of the pointer inside the node's bounding box\nvar getRelativePosition = exports.getRelativePosition = function getRelativePosition(node, event) {\n var rect = node.getBoundingClientRect();\n\n // Get user's pointer position from `touches` array if it's a `TouchEvent`\n var pointer = isTouch(event) ? event.touches[0] : event;\n return {\n left: clamp((pointer.pageX - (rect.left + window.pageXOffset)) / rect.width),\n top: clamp((pointer.pageY - (rect.top + window.pageYOffset)) / rect.height),\n width: rect.width,\n height: rect.height,\n x: pointer.pageX - (rect.left + window.pageXOffset),\n y: pointer.pageY - (rect.top + window.pageYOffset)\n };\n};","\nexport default {\n components: { 21: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactColorSketch = _interopRequireDefault(require(\"@uiw/react-color-sketch\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction Demo() {\n var _useState = (0, _react.useState)(\"#fff\"),\n _useState2 = _slicedToArray(_useState, 2),\n hex = _useState2[0],\n setHex = _useState2[1];\n var _useState3 = (0, _react.useState)(false),\n _useState4 = _slicedToArray(_useState3, 2),\n disableAlpha = _useState4[0],\n setDisableAlpha = _useState4[1];\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", null, /*#__PURE__*/_react[\"default\"].createElement(_reactColorSketch[\"default\"], {\n style: {\n marginLeft: 20\n },\n color: hex,\n disableAlpha: disableAlpha,\n onChange: function onChange(color) {\n setHex(color.hex);\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(\"button\", {\n onClick: function onClick() {\n return setDisableAlpha(!disableAlpha);\n }\n }, \"disableAlpha=\", disableAlpha.toString()));\n}\nreturn Demo; })(), },\n data: {\n \"21\": {\n \"name\": 21,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactColorSketch = _interopRequireDefault(require(\\\"@uiw/react-color-sketch\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nfunction Demo() {\\n var _useState = (0, _react.useState)(\\\"#fff\\\"),\\n _useState2 = _slicedToArray(_useState, 2),\\n hex = _useState2[0],\\n setHex = _useState2[1];\\n var _useState3 = (0, _react.useState)(false),\\n _useState4 = _slicedToArray(_useState3, 2),\\n disableAlpha = _useState4[0],\\n setDisableAlpha = _useState4[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", null, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorSketch[\\\"default\\\"], {\\n style: {\\n marginLeft: 20\\n },\\n color: hex,\\n disableAlpha: disableAlpha,\\n onChange: function onChange(color) {\\n setHex(color.hex);\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"button\\\", {\\n onClick: function onClick() {\\n return setDisableAlpha(!disableAlpha);\\n }\\n }, \\\"disableAlpha=\\\", disableAlpha.toString()));\\n}\\nreturn Demo;\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport Sketch from '@uiw/react-color-sketch';\\n\\nfunction Demo() {\\n const [hex, setHex] = useState(\\\"#fff\\\");\\n const [disableAlpha, setDisableAlpha] = useState(false);\\n return (\\n
\\n {\\n setHex(color.hex);\\n }}\\n />\\n \\n
\\n );\\n}\\n\\nexport default Demo;\"\n }\n},\n source: \"React Color Sketch\\n===\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-sketch)](https://bundlephobia.com/package/@uiw/react-color-sketch) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-sketch.svg)](https://www.npmjs.com/package/@uiw/react-color-sketch) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-sketch/file/README.md)\\n\\nSketch Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\\n\\n\\n[![react-color-sketch](https://user-images.githubusercontent.com/1680273/125952146-290199b4-8810-4552-944b-3ee673fb4350.png)](https://uiwjs.github.io/react-color/#/sketch)\\n\\n\\n## Install\\n\\n```bash\\nnpm i @uiw/react-color-sketch\\n```\\n\\n## Usage\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\nimport Sketch from '@uiw/react-color-sketch';\\n\\nfunction Demo() {\\n const [hex, setHex] = useState(\\\"#fff\\\");\\n const [disableAlpha, setDisableAlpha] = useState(false);\\n return (\\n
\\n {\\n setHex(color.hex);\\n }}\\n />\\n \\n
\\n );\\n}\\n\\nexport default Demo;\\n```\\n\\n## Props\\n\\n```ts\\nimport React from 'react';\\nimport { HsvaColor, ColorResult } from '@uiw/color-convert';\\nimport { SwatchPresetColor } from '@uiw/react-color-swatch';\\nexport interface SketchProps extends Omit, 'onChange' | 'color'> {\\n prefixCls?: string;\\n width?: number;\\n color?: string | HsvaColor;\\n presetColors?: false | SwatchPresetColor[];\\n editableDisable?: boolean;\\n disableAlpha?: boolean;\\n onChange?: (newShade: ColorResult) => void;\\n}\\ndeclare const Sketch: React.ForwardRefExoticComponent>;\\nexport default Sketch;\\n```\\n\\n\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["_interopRequireDefault","require","Object","defineProperty","exports","value","Pointer","_objectSpread2","_objectWithoutProperties2","_jsxRuntime","_excluded","_ref","className","prefixCls","left","top","style","fillProps","reset","styleWrapper","position","stylePointer","width","height","boxShadow","borderRadius","backgroundColor","transform","jsx","concat","children","_exportNames","BACKGROUND_IMG","_react","_colorConvert","_reactDragEventInteractive","_Pointer","keys","forEach","key","prototype","hasOwnProperty","call","enumerable","get","Alpha","forwardRef","props","ref","_props$prefixCls","hsva","background","_props$bgProps","bgProps","_props$innerProps","innerProps","_props$pointerProps","pointerProps","_props$radius","radius","_props$height","_props$direction","direction","onChange","pointer","other","handleChange","offset","a","colorTo","hsvaToHslaString","assign","innerBackground","comProps","pointerElement","jsxs","filter","Boolean","join","inset","zIndex","onMove","onDown","displayName","_reactColorEditableInput","EditableInputRGBA","_props$placement","placement","_props$rProps","rProps","_props$gProps","gProps","_props$bProps","bProps","_props$aProps","aProps","rgba","hsvaToRgba","handleBlur","evn","Number","target","type","color","rgbaToHsva","r","g","b","fontSize","display","label","onBlur","val","marginLeft","parseInt","String","module","default","_interopRequireWildcard","_slicedToArray2","EditableInput","initValue","labelStyle","inputStyle","_useState","useState","_useState2","setValue","isFocus","useRef","useEffect","current","placementStyle","wrapperStyle","alignItems","editableStyle","paddingTop","paddingBottom","paddingLeft","paddingRight","boxSizing","border","valInit","trim","replace","test","getNumberValue","isNaN","autoComplete","onFocus","textTransform","_reactColorAlpha","Hue","_props$hue","hue","_onChange","h","s","v","_","interaction","useMemo","Saturation","_hsva$h","containerStyle","event","cursor","backgroundImage","_typeof2","_reactColorSaturation","_reactColorEditableInputRgba","_reactColorHue","_reactColorSwatch","PRESET_COLORS","Bar","bottom","Sketch","_props$width","_props$presetColors","presetColors","_props$editableDisabl","editableDisable","_props$disableAlpha","disableAlpha","setHsva","validHex","hexToHsva","hsv","styleMain","styleAlpha","hsvaToRgbaString","padding","newColor","marginTop","flex","marginRight","newHue","newAlpha","Fragment","margin","hsvaToHex","toLocaleUpperCase","length","minWidth","result","borderTop","colors","hsvColor","rectProps","marginBottom","Swatch","_props$colors","_props$rectProps","addonAfter","addonBefore","rectRender","rectStyle","outline","handleClick","hex","flexWrap","isValidElement","Array","isArray","map","item","idx","title","checked","toLocaleLowerCase","render","onClick","child","cloneElement","tabIndex","_utils","Interactive","container","hasTouched","isDragging","setDragging","onMoveCallback","useEventCallback","onKeyCallback","handleMove","useCallback","preventDefaultMove","isTouch","touches","buttons","getRelativePosition","handleMoveEnd","toggleDocumentEvents","state","toggleEvent","window","addEventListener","removeEventListener","handleMoveStart","nativeEvent","isValid","touchAction","onMouseDown","onTouchStart","clamp","handler","callbackRef","preventDefault","number","min","arguments","undefined","max","node","rect","getBoundingClientRect","pageX","pageXOffset","pageY","pageYOffset","x","y","components","_typeof","o","Symbol","iterator","constructor","e","__esModule","t","_getRequireWildcardCache","has","n","__proto__","getOwnPropertyDescriptor","u","i","set","_reactColorSketch","WeakMap","_slicedToArray","_arrayWithHoles","l","f","next","done","push","_iterableToArrayLimit","_arrayLikeToArray","toString","slice","name","from","_unsupportedIterableToArray","TypeError","_nonIterableRest","setHex","_useState4","setDisableAlpha","createElement","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/215.dee7729f.chunk.js b/static/js/215.dee7729f.chunk.js new file mode 100644 index 000000000..a52e08498 --- /dev/null +++ b/static/js/215.dee7729f.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[215],{974:(e,t,r)=>{var n=r(6784).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(6651)),a=n(r(453)),i=n(r(7804)),l=n(r(4226)),u=r(7604),c=r(9424),s=["prefixCls","hsva","placement","rProps","gProps","bProps","aProps","className","style","onChange"],f=i.default.forwardRef((function(e,t){var r=e.prefixCls,n=void 0===r?"w-color-editable-input-rgba":r,i=e.hsva,f=e.placement,p=void 0===f?"bottom":f,d=e.rProps,b=void 0===d?{}:d,v=e.gProps,y=void 0===v?{}:v,g=e.bProps,m=void 0===g?{}:g,h=e.aProps,w=void 0===h?{}:h,_=e.className,j=e.style,O=e.onChange,P=(0,a.default)(e,s),x=i?(0,u.hsvaToRgba)(i):{};function S(e){var t=Number(e.target.value);t&&t>255&&(e.target.value="255"),t&&t<0&&(e.target.value="0")}var R=function(e,t,r){"number"===typeof e&&("a"===t&&(e<0&&(e=0),e>100&&(e=100),O&&O((0,u.color)((0,u.rgbaToHsva)((0,o.default)((0,o.default)({},x),{},{a:e/100}))))),e>255&&(e=255,r.target.value="255"),e<0&&(e=0,r.target.value="0"),"r"===t&&O&&O((0,u.color)((0,u.rgbaToHsva)((0,o.default)((0,o.default)({},x),{},{r:e})))),"g"===t&&O&&O((0,u.color)((0,u.rgbaToHsva)((0,o.default)((0,o.default)({},x),{},{g:e})))),"b"===t&&O&&O((0,u.color)((0,u.rgbaToHsva)((0,o.default)((0,o.default)({},x),{},{b:e})))))};return(0,c.jsxs)("div",(0,o.default)((0,o.default)({ref:t,className:[n,_||""].filter(Boolean).join(" ")},P),{},{style:(0,o.default)({fontSize:11,display:"flex"},j),children:[(0,c.jsx)(l.default,(0,o.default)((0,o.default)({label:"R",value:x.r||0,onBlur:S,placement:p,onChange:function(e,t){return R(t,"r",e)}},b),{},{style:(0,o.default)({},b.style)})),(0,c.jsx)(l.default,(0,o.default)((0,o.default)({label:"G",value:x.g||0,onBlur:S,placement:p,onChange:function(e,t){return R(t,"g",e)}},y),{},{style:(0,o.default)({marginLeft:5},b.style)})),(0,c.jsx)(l.default,(0,o.default)((0,o.default)({label:"B",value:x.b||0,onBlur:S,placement:p,onChange:function(e,t){return R(t,"b",e)}},m),{},{style:(0,o.default)({marginLeft:5},m.style)})),w&&(0,c.jsx)(l.default,(0,o.default)((0,o.default)({label:"A",value:x.a?parseInt(String(100*x.a),10):0,onBlur:S,placement:p,onChange:function(e,t){return R(t,"a",e)}},w),{},{style:(0,o.default)({marginLeft:5},w.style)}))]}))}));f.displayName="EditableInputRGBA";t.default=f;e.exports=t.default},4226:(e,t,r)=>{var n=r(6784).default,o=r(147).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(6651)),i=n(r(8821)),l=n(r(453)),u=o(r(7804)),c=r(9424),s=["prefixCls","placement","label","value","className","style","labelStyle","inputStyle","onChange","onBlur"],f=u.default.forwardRef((function(e,t){var r=e.prefixCls,n=void 0===r?"w-color-editable-input":r,o=e.placement,f=void 0===o?"bottom":o,p=e.label,d=e.value,b=e.className,v=e.style,y=e.labelStyle,g=e.inputStyle,m=e.onChange,h=e.onBlur,w=(0,l.default)(e,s),_=(0,u.useState)(d),j=(0,i.default)(_,2),O=j[0],P=j[1],x=(0,u.useRef)(!1);(0,u.useEffect)((function(){e.value!==O&&(x.current||P(e.value))}),[e.value]);var S={};"bottom"===f&&(S.flexDirection="column"),"top"===f&&(S.flexDirection="column-reverse"),"left"===f&&(S.flexDirection="row-reverse");var R=(0,a.default)((0,a.default)({"--editable-input-label-color":"rgb(153, 153, 153)","--editable-input-box-shadow":"rgb(204 204 204) 0px 0px 0px 1px inset","--editable-input-color":"#666",position:"relative",alignItems:"center",display:"flex",fontSize:11},S),v),C=(0,a.default)({width:"100%",paddingTop:2,paddingBottom:2,paddingLeft:3,paddingRight:3,fontSize:11,background:"transparent",boxSizing:"border-box",border:"none",color:"var(--editable-input-color)",boxShadow:"var(--editable-input-box-shadow)"},g);return(0,c.jsxs)("div",{className:[n,b||""].filter(Boolean).join(" "),style:R,children:[(0,c.jsx)("input",(0,a.default)((0,a.default)({ref:t,value:O,onChange:function(e,t){var r=(t||e.target.value).trim().replace(/^#/,"");/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(r)&&m&&m(e,r);var n=function(e){return Number(String(e).replace(/%/g,""))}(r);isNaN(n)||m&&m(e,n),P(r)},onBlur:function(t){x.current=!1,P(e.value),h&&h(t)},autoComplete:"off",onFocus:function(){return x.current=!0}},w),{},{style:C})),p&&(0,c.jsx)("span",{style:(0,a.default)({color:"var(--editable-input-label-color)",textTransform:"capitalize"},y),children:p})]})}));f.displayName="EditableInput";t.default=f;e.exports=t.default},2215:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={components:{21:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,n=function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=e(t)&&"function"!=typeof t)return{default:t};var n=a(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&{}.hasOwnProperty.call(t,l)){var u=i?Object.getOwnPropertyDescriptor(t,l):null;u&&(u.get||u.set)?Object.defineProperty(o,l,u):o[l]=t[l]}return o.default=t,n&&n.set(t,o),o}(r(7804)),o=(r(7604),(t=r(974))&&t.__esModule?t:{default:t});function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 209,\n s: 36,\n v: 90,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement("div", {\n style: {\n padding: \'0 10px 0 20px\'\n }\n }, /*#__PURE__*/_react["default"].createElement(_reactColorEditableInputRgba["default"], {\n hsva: hsva,\n onChange: function onChange(color) {\n setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\n }\n }));\n};',language:"jsx",value:"import React, { useState } from 'react';\nimport { hsvaToHex } from '@uiw/color-convert';\nimport EditableInputRGBA from '@uiw/react-color-editable-input-rgba';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 209, s: 36, v: 90, a: 1 });\n return (\n
\n {\n setHsva({ ...hsva, ...color.hsva });\n }}\n />\n
\n );\n}"}},source:"React Color Editable Input RGBA\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-editable-input-rgba)](https://bundlephobia.com/package/@uiw/react-color-editable-input-rgba) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-editable-input-rgba.svg)](https://www.npmjs.com/package/@uiw/react-color-editable-input-rgba) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-editable-input-rgba/file/README.md)\n\nEditableInputRGBA Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\n\n\x3c!--rehype:ignore:start--\x3e\n[![react-color-editable-input-rgba](https://user-images.githubusercontent.com/1680273/125950920-96bbfc1e-031a-4ea2-bfa2-28fab4d3c9d3.png)](https://uiwjs.github.io/react-color/#/editable-input-rgba)\n\x3c!--rehype:ignore:end--\x3e\n\n## Install\n\n```bash\nnpm i @uiw/react-color-editable-input-rgba\n```\n\n## Usage\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\nimport { hsvaToHex } from '@uiw/color-convert';\nimport EditableInputRGBA from '@uiw/react-color-editable-input-rgba';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 209, s: 36, v: 90, a: 1 });\n return (\n
\n {\n setHsva({ ...hsva, ...color.hsva });\n }}\n />\n
\n );\n}\n```\n\n## Props\n\n```ts\nimport React from 'react';\nimport { EditableInputProps } from '@uiw/react-color-editable-input';\nimport { HsvaColor, ColorResult } from '@uiw/color-convert';\nexport interface EditableInputRGBAProps extends Omit, 'onChange'> {\n prefixCls?: string;\n hsva: HsvaColor;\n placement?: 'top' | 'left' | 'bottom' | 'right';\n rProps?: EditableInputProps;\n gProps?: EditableInputProps;\n bProps?: EditableInputProps;\n aProps?: false | EditableInputProps;\n onChange?: (color: ColorResult) => void;\n}\ndeclare const EditableInputRGBA: React.ForwardRefExoticComponent>;\nexport default EditableInputRGBA;\n```\n\n\x3c!--footer-dividing--\x3e\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=215.dee7729f.chunk.js.map \ No newline at end of file diff --git a/static/js/215.dee7729f.chunk.js.map b/static/js/215.dee7729f.chunk.js.map new file mode 100644 index 000000000..57a292bb3 --- /dev/null +++ b/static/js/215.dee7729f.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/215.dee7729f.chunk.js","mappings":"gGAEA,IAAIA,EAAyBC,EAAAA,MAAAA,QAC7BC,OAAOC,eAAeC,EAAS,aAAc,CAC3CC,OAAO,IAETD,EAAiB,aAAI,EACrB,IAAIE,EAAiBN,EAAuBC,EAAQ,OAChDM,EAA4BP,EAAuBC,EAAQ,MAC3DO,EAASR,EAAuBC,EAAQ,OACxCQ,EAA2BT,EAAuBC,EAAQ,OAC1DS,EAAgBT,EAAQ,MACxBU,EAAcV,EAAQ,MACtBW,EAAY,CAAC,YAAa,OAAQ,YAAa,SAA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K,2CAA2Cf,KAAKe,GAAK0C,EAAkB5G,EAAGD,QAAK,CAAQ,CAAE,CAF7RkH,CAA4BjH,EAAGgE,IAC3H,WAA8B,MAAM,IAAI8B,UAAU,4IAA8I,CAD/DoB,EAAoB,CAGrJ,SAASN,EAAkB5G,EAAGD,IAAM,MAAQA,GAAKA,EAAIC,EAAEwF,UAAYzF,EAAIC,EAAEwF,QAAS,IAAK,IAAIxB,EAAI,EAAGM,EAAI8B,MAAMrG,GAAIiE,EAAIjE,EAAGiE,IAAKM,EAAEN,GAAKhE,EAAEgE,GAAI,OAAOM,CAAG,CAGnJ,OAAO,WACL,IAME1C,EAAauE,GANC,EAAIxI,EAAOgE,UAAU,CACjCwF,EAAG,IACHC,EAAG,GACHC,EAAG,GACHtH,EAAG,IAEkC,GACvCzB,EAAOsD,EAAW,GAClB0F,EAAU1F,EAAW,GACvB,OAAoBjE,EAAgB,QAAE4J,cAAc,MAAO,CACzDrI,MAAO,CACLsI,QAAS,kBAEG7J,EAAgB,QAAE4J,cAAczC,EAAsC,QAAG,CACvFxG,KAAMA,EACNa,SAAU,SAAkBU,GAC1ByH,EAAQhC,EAAcA,EAAc,CAAC,EAAGhH,GAAOuB,EAAMvB,MACvD,IAEJ,CAAI,CAxCkB,IAyClBmJ,KAAM,CACR,GAAM,CACJ,KAAQ,GACR,KAAQ,CAAC,EACT,KAAQ,mvJACR,SAAY,MACZ,MAAS,ofAGTC,OAAQ,2uFACRC,SAAS,GACTC,aAAa,G","sources":["../../packages/color-editable-input-rgba/cjs/index.js","../../packages/color-editable-input/cjs/index.js","../../packages/color-editable-input-rgba/README.md"],"sourcesContent":["\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _reactColorEditableInput = _interopRequireDefault(require(\"@uiw/react-color-editable-input\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"hsva\", \"placement\", \"rProps\", \"gProps\", \"bProps\", \"aProps\", \"className\", \"style\", \"onChange\"];\nvar EditableInputRGBA = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-editable-input-rgba' : _props$prefixCls,\n hsva = props.hsva,\n _props$placement = props.placement,\n placement = _props$placement === void 0 ? 'bottom' : _props$placement,\n _props$rProps = props.rProps,\n rProps = _props$rProps === void 0 ? {} : _props$rProps,\n _props$gProps = props.gProps,\n gProps = _props$gProps === void 0 ? {} : _props$gProps,\n _props$bProps = props.bProps,\n bProps = _props$bProps === void 0 ? {} : _props$bProps,\n _props$aProps = props.aProps,\n aProps = _props$aProps === void 0 ? {} : _props$aProps,\n className = props.className,\n style = props.style,\n onChange = props.onChange,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var rgba = hsva ? (0, _colorConvert.hsvaToRgba)(hsva) : {};\n function handleBlur(evn) {\n var value = Number(evn.target.value);\n if (value && value > 255) {\n evn.target.value = '255';\n }\n if (value && value < 0) {\n evn.target.value = '0';\n }\n }\n var handleChange = function handleChange(value, type, evn) {\n if (typeof value === 'number') {\n if (type === 'a') {\n if (value < 0) value = 0;\n if (value > 100) value = 100;\n onChange && onChange((0, _colorConvert.color)((0, _colorConvert.rgbaToHsva)((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, rgba), {}, {\n a: value / 100\n }))));\n }\n if (value > 255) {\n value = 255;\n evn.target.value = '255';\n }\n if (value < 0) {\n value = 0;\n evn.target.value = '0';\n }\n if (type === 'r') {\n onChange && onChange((0, _colorConvert.color)((0, _colorConvert.rgbaToHsva)((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, rgba), {}, {\n r: value\n }))));\n }\n if (type === 'g') {\n onChange && onChange((0, _colorConvert.color)((0, _colorConvert.rgbaToHsva)((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, rgba), {}, {\n g: value\n }))));\n }\n if (type === 'b') {\n onChange && onChange((0, _colorConvert.color)((0, _colorConvert.rgbaToHsva)((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, rgba), {}, {\n b: value\n }))));\n }\n }\n };\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n ref: ref,\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other), {}, {\n style: (0, _objectSpread2[\"default\"])({\n fontSize: 11,\n display: 'flex'\n }, style),\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorEditableInput[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n label: \"R\",\n value: rgba.r || 0,\n onBlur: handleBlur,\n placement: placement,\n onChange: function onChange(evn, val) {\n return handleChange(val, 'r', evn);\n }\n }, rProps), {}, {\n style: (0, _objectSpread2[\"default\"])({}, rProps.style)\n })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorEditableInput[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n label: \"G\",\n value: rgba.g || 0,\n onBlur: handleBlur,\n placement: placement,\n onChange: function onChange(evn, val) {\n return handleChange(val, 'g', evn);\n }\n }, gProps), {}, {\n style: (0, _objectSpread2[\"default\"])({\n marginLeft: 5\n }, rProps.style)\n })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorEditableInput[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n label: \"B\",\n value: rgba.b || 0,\n onBlur: handleBlur,\n placement: placement,\n onChange: function onChange(evn, val) {\n return handleChange(val, 'b', evn);\n }\n }, bProps), {}, {\n style: (0, _objectSpread2[\"default\"])({\n marginLeft: 5\n }, bProps.style)\n })), aProps && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorEditableInput[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n label: \"A\",\n value: rgba.a ? parseInt(String(rgba.a * 100), 10) : 0,\n onBlur: handleBlur,\n placement: placement,\n onChange: function onChange(evn, val) {\n return handleChange(val, 'a', evn);\n }\n }, aProps), {}, {\n style: (0, _objectSpread2[\"default\"])({\n marginLeft: 5\n }, aProps.style)\n }))]\n }));\n});\nEditableInputRGBA.displayName = 'EditableInputRGBA';\nvar _default = exports[\"default\"] = EditableInputRGBA;\nmodule.exports = exports.default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _slicedToArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/slicedToArray\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"placement\", \"label\", \"value\", \"className\", \"style\", \"labelStyle\", \"inputStyle\", \"onChange\", \"onBlur\"];\nvar validHex = function validHex(hex) {\n return /^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(hex);\n};\nvar getNumberValue = function getNumberValue(value) {\n return Number(String(value).replace(/%/g, ''));\n};\nvar EditableInput = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-editable-input' : _props$prefixCls,\n _props$placement = props.placement,\n placement = _props$placement === void 0 ? 'bottom' : _props$placement,\n label = props.label,\n initValue = props.value,\n className = props.className,\n style = props.style,\n labelStyle = props.labelStyle,\n inputStyle = props.inputStyle,\n onChange = props.onChange,\n onBlur = props.onBlur,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var _useState = (0, _react.useState)(initValue),\n _useState2 = (0, _slicedToArray2[\"default\"])(_useState, 2),\n value = _useState2[0],\n setValue = _useState2[1];\n var isFocus = (0, _react.useRef)(false);\n (0, _react.useEffect)(function () {\n if (props.value !== value) {\n if (!isFocus.current) {\n setValue(props.value);\n }\n }\n }, [props.value]);\n function handleChange(evn, valInit) {\n var value = (valInit || evn.target.value).trim().replace(/^#/, '');\n if (validHex(value)) {\n onChange && onChange(evn, value);\n }\n var val = getNumberValue(value);\n if (!isNaN(val)) {\n onChange && onChange(evn, val);\n }\n setValue(value);\n }\n function handleBlur(evn) {\n isFocus.current = false;\n setValue(props.value);\n onBlur && onBlur(evn);\n }\n var placementStyle = {};\n if (placement === 'bottom') {\n placementStyle['flexDirection'] = 'column';\n }\n if (placement === 'top') {\n placementStyle['flexDirection'] = 'column-reverse';\n }\n if (placement === 'left') {\n placementStyle['flexDirection'] = 'row-reverse';\n }\n var wrapperStyle = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n '--editable-input-label-color': 'rgb(153, 153, 153)',\n '--editable-input-box-shadow': 'rgb(204 204 204) 0px 0px 0px 1px inset',\n '--editable-input-color': '#666',\n position: 'relative',\n alignItems: 'center',\n display: 'flex',\n fontSize: 11\n }, placementStyle), style);\n var editableStyle = (0, _objectSpread2[\"default\"])({\n width: '100%',\n paddingTop: 2,\n paddingBottom: 2,\n paddingLeft: 3,\n paddingRight: 3,\n fontSize: 11,\n background: 'transparent',\n boxSizing: 'border-box',\n border: 'none',\n color: 'var(--editable-input-color)',\n boxShadow: 'var(--editable-input-box-shadow)'\n }, inputStyle);\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", {\n className: [prefixCls, className || ''].filter(Boolean).join(' '),\n style: wrapperStyle,\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(\"input\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n ref: ref,\n value: value,\n onChange: handleChange,\n onBlur: handleBlur,\n autoComplete: \"off\",\n onFocus: function onFocus() {\n return isFocus.current = true;\n }\n }, other), {}, {\n style: editableStyle\n })), label && /*#__PURE__*/(0, _jsxRuntime.jsx)(\"span\", {\n style: (0, _objectSpread2[\"default\"])({\n color: 'var(--editable-input-label-color)',\n textTransform: 'capitalize'\n }, labelStyle),\n children: label\n })]\n });\n});\nEditableInput.displayName = 'EditableInput';\nvar _default = exports[\"default\"] = EditableInput;\nmodule.exports = exports.default;","\nexport default {\n components: { 21: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactColorEditableInputRgba = _interopRequireDefault(require(\"@uiw/react-color-editable-input-rgba\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _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); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 209,\n s: 36,\n v: 90,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n padding: '0 10px 0 20px'\n }\n }, /*#__PURE__*/_react[\"default\"].createElement(_reactColorEditableInputRgba[\"default\"], {\n hsva: hsva,\n onChange: function onChange(color) {\n setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\n }\n }));\n}; })(), },\n data: {\n \"21\": {\n \"name\": 21,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _colorConvert = require(\\\"@uiw/color-convert\\\");\\nvar _reactColorEditableInputRgba = _interopRequireDefault(require(\\\"@uiw/react-color-editable-input-rgba\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \\\"string\\\"); return \\\"symbol\\\" == _typeof(i) ? i : i + \\\"\\\"; }\\nfunction _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); }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nreturn function Demo() {\\n var _useState = (0, _react.useState)({\\n h: 209,\\n s: 36,\\n v: 90,\\n a: 1\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n hsva = _useState2[0],\\n setHsva = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: {\\n padding: '0 10px 0 20px'\\n }\\n }, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorEditableInputRgba[\\\"default\\\"], {\\n hsva: hsva,\\n onChange: function onChange(color) {\\n setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\\n }\\n }));\\n};\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport { hsvaToHex } from '@uiw/color-convert';\\nimport EditableInputRGBA from '@uiw/react-color-editable-input-rgba';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 209, s: 36, v: 90, a: 1 });\\n return (\\n
\\n {\\n setHsva({ ...hsva, ...color.hsva });\\n }}\\n />\\n
\\n );\\n}\"\n }\n},\n source: \"React Color Editable Input RGBA\\n===\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-editable-input-rgba)](https://bundlephobia.com/package/@uiw/react-color-editable-input-rgba) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-editable-input-rgba.svg)](https://www.npmjs.com/package/@uiw/react-color-editable-input-rgba) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-editable-input-rgba/file/README.md)\\n\\nEditableInputRGBA Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\\n\\n\\n[![react-color-editable-input-rgba](https://user-images.githubusercontent.com/1680273/125950920-96bbfc1e-031a-4ea2-bfa2-28fab4d3c9d3.png)](https://uiwjs.github.io/react-color/#/editable-input-rgba)\\n\\n\\n## Install\\n\\n```bash\\nnpm i @uiw/react-color-editable-input-rgba\\n```\\n\\n## Usage\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\nimport { hsvaToHex } from '@uiw/color-convert';\\nimport EditableInputRGBA from '@uiw/react-color-editable-input-rgba';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 209, s: 36, v: 90, a: 1 });\\n return (\\n
\\n {\\n setHsva({ ...hsva, ...color.hsva });\\n }}\\n />\\n
\\n );\\n}\\n```\\n\\n## Props\\n\\n```ts\\nimport React from 'react';\\nimport { EditableInputProps } from '@uiw/react-color-editable-input';\\nimport { HsvaColor, ColorResult } from '@uiw/color-convert';\\nexport interface EditableInputRGBAProps extends Omit, 'onChange'> {\\n prefixCls?: string;\\n hsva: HsvaColor;\\n placement?: 'top' | 'left' | 'bottom' | 'right';\\n rProps?: EditableInputProps;\\n gProps?: EditableInputProps;\\n bProps?: EditableInputProps;\\n aProps?: false | EditableInputProps;\\n onChange?: (color: ColorResult) => void;\\n}\\ndeclare const EditableInputRGBA: React.ForwardRefExoticComponent>;\\nexport default EditableInputRGBA;\\n```\\n\\n\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["_interopRequireDefault","require","Object","defineProperty","exports","value","_objectSpread2","_objectWithoutProperties2","_react","_reactColorEditableInput","_colorConvert","_jsxRuntime","_excluded","EditableInputRGBA","forwardRef","props","ref","_props$prefixCls","prefixCls","hsva","_props$placement","placement","_props$rProps","rProps","_props$gProps","gProps","_props$bProps","bProps","_props$aProps","aProps","className","style","onChange","other","rgba","hsvaToRgba","handleBlur","evn","Number","target","handleChange","type","color","rgbaToHsva","a","r","g","b","jsxs","filter","Boolean","join","fontSize","display","children","jsx","label","onBlur","val","marginLeft","parseInt","String","displayName","module","default","_interopRequireWildcard","_slicedToArray2","EditableInput","initValue","labelStyle","inputStyle","_useState","useState","_useState2","setValue","isFocus","useRef","useEffect","current","placementStyle","wrapperStyle","position","alignItems","editableStyle","width","paddingTop","paddingBottom","paddingLeft","paddingRight","background","boxSizing","border","boxShadow","valInit","trim","replace","test","getNumberValue","isNaN","autoComplete","onFocus","textTransform","components","_typeof","o","Symbol","iterator","constructor","prototype","e","__esModule","t","_getRequireWildcardCache","has","get","n","__proto__","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_reactColorEditableInputRgba","WeakMap","ownKeys","keys","getOwnPropertySymbols","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","toPrimitive","TypeError","_toPrimitive","_toPropertyKey","configurable","writable","_slicedToArray","Array","isArray","_arrayWithHoles","l","f","next","done","_iterableToArrayLimit","_arrayLikeToArray","toString","slice","name","from","_unsupportedIterableToArray","_nonIterableRest","h","s","v","setHsva","createElement","padding","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/215.eb859fa3.chunk.js b/static/js/215.eb859fa3.chunk.js deleted file mode 100644 index b910afd80..000000000 --- a/static/js/215.eb859fa3.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[215],{2215:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={components:{21:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,n=function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=e(t)&&"function"!=typeof t)return{default:t};var n=a(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&{}.hasOwnProperty.call(t,u)){var l=i?Object.getOwnPropertyDescriptor(t,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=t[u]}return o.default=t,n&&n.set(t,o),o}(r(7804)),o=(r(2945),(t=r(6436))&&t.__esModule?t:{default:t});function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 209,\n s: 36,\n v: 90,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement("div", {\n style: {\n padding: \'0 10px 0 20px\'\n }\n }, /*#__PURE__*/_react["default"].createElement(_reactColorEditableInputRgba["default"], {\n hsva: hsva,\n onChange: function onChange(color) {\n setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\n }\n }));\n};',language:"jsx",value:"import React, { useState } from 'react';\nimport { hsvaToHex } from '@uiw/color-convert';\nimport EditableInputRGBA from '@uiw/react-color-editable-input-rgba';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 209, s: 36, v: 90, a: 1 });\n return (\n
\n {\n setHsva({ ...hsva, ...color.hsva });\n }}\n />\n
\n );\n}"}},source:"React Color Editable Input RGBA\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-editable-input-rgba)](https://bundlephobia.com/package/@uiw/react-color-editable-input-rgba) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-editable-input-rgba.svg)](https://www.npmjs.com/package/@uiw/react-color-editable-input-rgba) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-editable-input-rgba/file/README.md)\n\nEditableInputRGBA Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\n\n\x3c!--rehype:ignore:start--\x3e\n[![react-color-editable-input-rgba](https://user-images.githubusercontent.com/1680273/125950920-96bbfc1e-031a-4ea2-bfa2-28fab4d3c9d3.png)](https://uiwjs.github.io/react-color/#/editable-input-rgba)\n\x3c!--rehype:ignore:end--\x3e\n\n## Install\n\n```bash\nnpm i @uiw/react-color-editable-input-rgba\n```\n\n## Usage\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\nimport { hsvaToHex } from '@uiw/color-convert';\nimport EditableInputRGBA from '@uiw/react-color-editable-input-rgba';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 209, s: 36, v: 90, a: 1 });\n return (\n
\n {\n setHsva({ ...hsva, ...color.hsva });\n }}\n />\n
\n );\n}\n```\n\n## Props\n\n```ts\nimport React from 'react';\nimport { EditableInputProps } from '@uiw/react-color-editable-input';\nimport { HsvaColor, ColorResult } from '@uiw/color-convert';\nexport interface EditableInputRGBAProps extends Omit, 'onChange'> {\n prefixCls?: string;\n hsva: HsvaColor;\n placement?: 'top' | 'left' | 'bottom' | 'right';\n rProps?: EditableInputProps;\n gProps?: EditableInputProps;\n bProps?: EditableInputProps;\n aProps?: false | EditableInputProps;\n onChange?: (color: ColorResult) => void;\n}\ndeclare const EditableInputRGBA: React.ForwardRefExoticComponent>;\nexport default EditableInputRGBA;\n```\n\n\x3c!--footer-dividing--\x3e\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); -//# sourceMappingURL=215.eb859fa3.chunk.js.map \ No newline at end of file diff --git a/static/js/215.eb859fa3.chunk.js.map b/static/js/215.eb859fa3.chunk.js.map deleted file mode 100644 index 290949de8..000000000 --- a/static/js/215.eb859fa3.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/215.eb859fa3.chunk.js","mappings":"+HACA,SACIA,WAAY,CAAE,GAAI,WAEtB,SAASC,EAAQC,GAAgC,OAAOD,EAAU,mBAAqBE,QAAU,iBAAmBA,OAAOC,SAAW,SAAUF,GAAK,cAAcA,CAAG,EAAI,SAAUA,GAAK,OAAOA,GAAK,mBAAqBC,QAAUD,EAAEG,cAAgBF,QAAUD,IAAMC,OAAOG,UAAY,gBAAkBJ,CAAG,EAAGD,EAAQC,EAAI,CAC7T,IAGgCK,EAH5BC,EAKJ,SAAiCD,EAAGE,GAAK,IAAKA,GAAKF,GAAKA,EAAEG,WAAY,OAAOH,EAAG,GAAI,OAASA,GAAK,UAAYN,EAAQM,IAAM,mBAAqBA,EAAG,MAAO,CAAE,QAAWA,GAAK,IAAII,EAAIC,EAAyBH,GAAI,GAAIE,GAAKA,EAAEE,IAAIN,GAAI,OAAOI,EAAEG,IAAIP,GAAI,IAAIQ,EAAI,CAAEC,UAAW,MAAQC,EAAIC,OAAOC,gBAAkBD,OAAOE,yBAA0B,IAAK,IAAIC,KAAKd,E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B,QAAEoE,cAAc,MAAO,CACzDC,MAAO,CACLC,QAAS,kBAEGtE,EAAgB,QAAEoE,cAAcjD,EAAsC,QAAG,CACvF+C,KAAMA,EACNK,SAAU,SAAkBC,GAC1BL,EAAQvC,EAAcA,EAAc,CAAC,EAAGsC,GAAOM,EAAMN,MACvD,IAEJ,CAAI,CAxCkB,IAyClBO,KAAM,CACR,GAAM,CACJ,KAAQ,GACR,KAAQ,CAAC,EACT,KAAQ,mvJACR,SAAY,MACZ,MAAS,ofAGTC,OAAQ,2uFACRC,SAAS,GACTC,aAAa,G","sources":["../../packages/color-editable-input-rgba/README.md"],"sourcesContent":["\nexport default {\n components: { 21: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactColorEditableInputRgba = _interopRequireDefault(require(\"@uiw/react-color-editable-input-rgba\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _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); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 209,\n s: 36,\n v: 90,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n padding: '0 10px 0 20px'\n }\n }, /*#__PURE__*/_react[\"default\"].createElement(_reactColorEditableInputRgba[\"default\"], {\n hsva: hsva,\n onChange: function onChange(color) {\n setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\n }\n }));\n}; })(), },\n data: {\n \"21\": {\n \"name\": 21,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _colorConvert = require(\\\"@uiw/color-convert\\\");\\nvar _reactColorEditableInputRgba = _interopRequireDefault(require(\\\"@uiw/react-color-editable-input-rgba\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \\\"string\\\"); return \\\"symbol\\\" == _typeof(i) ? i : i + \\\"\\\"; }\\nfunction _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); }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nreturn function Demo() {\\n var _useState = (0, _react.useState)({\\n h: 209,\\n s: 36,\\n v: 90,\\n a: 1\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n hsva = _useState2[0],\\n setHsva = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: {\\n padding: '0 10px 0 20px'\\n }\\n }, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorEditableInputRgba[\\\"default\\\"], {\\n hsva: hsva,\\n onChange: function onChange(color) {\\n setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\\n }\\n }));\\n};\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport { hsvaToHex } from '@uiw/color-convert';\\nimport EditableInputRGBA from '@uiw/react-color-editable-input-rgba';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 209, s: 36, v: 90, a: 1 });\\n return (\\n
\\n {\\n setHsva({ ...hsva, ...color.hsva });\\n }}\\n />\\n
\\n );\\n}\"\n }\n},\n source: \"React Color Editable Input RGBA\\n===\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-editable-input-rgba)](https://bundlephobia.com/package/@uiw/react-color-editable-input-rgba) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-editable-input-rgba.svg)](https://www.npmjs.com/package/@uiw/react-color-editable-input-rgba) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-editable-input-rgba/file/README.md)\\n\\nEditableInputRGBA Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\\n\\n\\n[![react-color-editable-input-rgba](https://user-images.githubusercontent.com/1680273/125950920-96bbfc1e-031a-4ea2-bfa2-28fab4d3c9d3.png)](https://uiwjs.github.io/react-color/#/editable-input-rgba)\\n\\n\\n## Install\\n\\n```bash\\nnpm i @uiw/react-color-editable-input-rgba\\n```\\n\\n## Usage\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\nimport { hsvaToHex } from '@uiw/color-convert';\\nimport EditableInputRGBA from '@uiw/react-color-editable-input-rgba';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 209, s: 36, v: 90, a: 1 });\\n return (\\n
\\n {\\n setHsva({ ...hsva, ...color.hsva });\\n }}\\n />\\n
\\n );\\n}\\n```\\n\\n## Props\\n\\n```ts\\nimport React from 'react';\\nimport { EditableInputProps } from '@uiw/react-color-editable-input';\\nimport { HsvaColor, ColorResult } from '@uiw/color-convert';\\nexport interface EditableInputRGBAProps extends Omit, 'onChange'> {\\n prefixCls?: string;\\n hsva: HsvaColor;\\n placement?: 'top' | 'left' | 'bottom' | 'right';\\n rProps?: EditableInputProps;\\n gProps?: EditableInputProps;\\n bProps?: EditableInputProps;\\n aProps?: false | EditableInputProps;\\n onChange?: (color: ColorResult) => void;\\n}\\ndeclare const EditableInputRGBA: React.ForwardRefExoticComponent>;\\nexport default EditableInputRGBA;\\n```\\n\\n\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","_typeof","o","Symbol","iterator","constructor","prototype","e","_react","r","__esModule","t","_getRequireWildcardCache","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_interopRequireWildcard","_reactColorEditableInputRgba","WeakMap","ownKeys","keys","getOwnPropertySymbols","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","toPrimitive","TypeError","String","Number","_toPrimitive","_toPropertyKey","value","configurable","writable","_slicedToArray","Array","isArray","_arrayWithHoles","l","f","next","done","_iterableToArrayLimit","_arrayLikeToArray","toString","slice","name","from","test","_unsupportedIterableToArray","_nonIterableRest","_useState2","useState","h","s","v","hsva","setHsva","createElement","style","padding","onChange","color","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/241.6fc5765f.chunk.js b/static/js/241.6fc5765f.chunk.js deleted file mode 100644 index 1b0dbbd3a..000000000 --- a/static/js/241.6fc5765f.chunk.js +++ /dev/null @@ -1,45 +0,0 @@ -(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%), - 0 8px 16px rgb(0 0 0 / 15%); - border-radius: 16px; - max-width: 860px; - margin: 0 auto; - padding-bottom: 20px; - position: relative; -`,l=s.Ay.a` - position: absolute; - right: 20px; - padding: 3px 8px 4px 8px; - background: #333333; - border-radius: 0 0 6px 6px; - text-decoration: initial; - color: #fff; - transition: all 0.3s; - font-size: 14px; - &:hover { - background-color: #3f51b4; - } -`,h=s.Ay.div` - padding-bottom: 120px; -`,d=s.Ay.footer` - text-align: center; - margin-top: 40px; - a { - margin: 0 5px; - } - p { - font-size: 12px; - text-align: center; - } -`,p=s.Ay.div` - border-bottom: 1px solid var(--color-border-default); - border-radius: 16px 16px 0 0; - padding: 28px; - > h3 { - margin: 0; - 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.6fc5765f.chunk.js.map \ No newline at end of file diff --git a/static/js/241.6fc5765f.chunk.js.map b/static/js/241.6fc5765f.chunk.js.map deleted file mode 100644 index 623beaa7c..000000000 --- a/static/js/241.6fc5765f.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"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;;;;;;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A,EAAAA,GAA0BlD,GAAOA,IACvDmD,EAAS3B,GAAcA,GAAWV,EAAAA,EAAAA,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/241.7fcf8d78.chunk.js b/static/js/241.7fcf8d78.chunk.js new file mode 100644 index 000000000..2969c14b2 --- /dev/null +++ b/static/js/241.7fcf8d78.chunk.js @@ -0,0 +1,2 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[241],{256:t=>{function r(t){var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}r.keys=()=>[],r.resolve=r,r.id=256,t.exports=r},3623:(t,r,e)=>{"use strict";e.d(r,{A:()=>f});var o,s,n,a,i,l=e(114),h=e(7804),p=e(7584),d=e(3235),c=e(9424);const g=d.Ay.div(o||(o=(0,l.A)(["\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"]))),x=d.Ay.a(s||(s=(0,l.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"]))),b=d.Ay.div(n||(n=(0,l.A)(["\n padding-bottom: 120px;\n"]))),u=d.Ay.footer(a||(a=(0,l.A)(["\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"]))),m=d.Ay.div(i||(i=(0,l.A)(["\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"])));class f extends h.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:r,data:e}=this.state.mdObj||{};return(0,c.jsxs)(b,{className:"wmde-markdown-var",children:[(0,c.jsxs)(g,{children:[this.editorUrl&&(0,c.jsx)(x,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"}),this.example&&(0,c.jsxs)(m,{children:[(0,c.jsx)("h3",{children:"Example"}),this.example]}),(0,c.jsx)(p.A,{data:{data:e,components:r,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,c.jsx)(x,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"})]}),(0,c.jsxs)(u,{children:[(0,c.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,c.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,c.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,c.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,c.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,c.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,c.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,c.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},1232:(t,r,e)=>{"use strict";e.r(r),e.d(r,{Component:()=>p});var o=e(8957),s=e(7804),n=e(2051),a=e(3623),i=e(7980),l=e(9424);function h(){const{hsva:t,dispatch:r}=(0,s.useContext)(i.ob);return(0,l.jsxs)(s.Fragment,{children:[(0,l.jsxs)("div",{style:{display:"flex",gap:"1rem"},children:[(0,l.jsx)(n.A,{color:t,onChange:e=>{r({hsva:(0,o.A)((0,o.A)({},t),e.hsva)})}}),(0,l.jsx)(n.A,{color:t,placement:n.R.Top,onChange:e=>{r({hsva:(0,o.A)((0,o.A)({},t),e.hsva)})}}),(0,l.jsx)(n.A,{color:t,placement:n.R.TopLeft,onChange:e=>{r({hsva:(0,o.A)((0,o.A)({},t),e.hsva)})}})]}),(0,l.jsxs)("div",{style:{display:"flex",gap:"1rem",marginTop:20},children:[(0,l.jsx)(n.A,{placement:n.R.Left,color:t,onChange:e=>{r({hsva:(0,o.A)((0,o.A)({},t),e.hsva)})}}),(0,l.jsx)(n.A,{color:t,placement:n.R.LeftTop,onChange:e=>{r({hsva:(0,o.A)((0,o.A)({},t),e.hsva)})}}),(0,l.jsx)(n.A,{color:t,placement:n.R.LeftBottom,onChange:e=>{r({hsva:(0,o.A)((0,o.A)({},t),e.hsva)})}})]}),(0,l.jsxs)("div",{style:{display:"flex",gap:"1rem",marginTop:20},children:[(0,l.jsx)(n.A,{placement:n.R.Right,color:t,onChange:e=>{r({hsva:(0,o.A)((0,o.A)({},t),e.hsva)})}}),(0,l.jsx)(n.A,{color:t,placement:n.R.RightTop,onChange:e=>{r({hsva:(0,o.A)((0,o.A)({},t),e.hsva)})}}),(0,l.jsx)(n.A,{color:t,placement:n.R.RightBottom,onChange:e=>{r({hsva:(0,o.A)((0,o.A)({},t),e.hsva)})}})]}),(0,l.jsxs)("div",{style:{display:"flex",gap:"1rem",marginTop:20},children:[(0,l.jsx)(n.A,{placement:n.R.BottomLeft,color:t,onChange:e=>{r({hsva:(0,o.A)((0,o.A)({},t),e.hsva)})}}),(0,l.jsx)(n.A,{color:t,placement:n.R.Bottom,onChange:e=>{r({hsva:(0,o.A)((0,o.A)({},t),e.hsva)})}}),(0,l.jsx)(n.A,{color:t,placement:n.R.BottomRight,onChange:e=>{r({hsva:(0,o.A)((0,o.A)({},t),e.hsva)})}})]})]})}class p extends a.A{constructor(){super(...arguments),this.editorUrl="/packages/color-github/README.md",this.getMdStr=()=>Promise.all([e.e(968),e.e(546)]).then(e.bind(e,2165)),this.example=(0,l.jsx)(h,{})}}},2051:(t,r,e)=>{"use strict";e.d(r,{R:()=>x,A:()=>u});var o=e(9520),s=e(8102),n=e(9257),a=e(7804),i=e(2945),l=e(6966),h=e(9424),p={marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25};function d(t){var{style:r,title:e,checked:o,color:n,onClick:i,rectProps:l}=t,d=(0,a.useRef)(null),c=(0,a.useCallback)((()=>{d.current.style.zIndex="2",d.current.style.outline="#fff solid 2px",d.current.style.boxShadow="rgb(0 0 0 / 25%) 0 0 5px 2px"}),[]),g=(0,a.useCallback)((()=>{o||(d.current.style.zIndex="0",d.current.style.outline="initial",d.current.style.boxShadow="initial")}),[o]),x=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,s.A)({ref:d,title:e},l,{onClick:i,onMouseEnter:c,onMouseLeave:g,style:(0,s.A)({},r,{marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25},p,x,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"],x=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=a.forwardRef(((t,r)=>{var{prefixCls:e="w-color-github",placement:p=x.TopRight,className:b,style:u,color:m,colors:f=g,rectProps:v={},onChange:A,rectRender:j}=t,R=(0,n.A)(t,c),w="string"===typeof m&&(0,i.Am)(m)?(0,i.RV)(m):m,C=m?(0,i.D9)(w):"",B=(0,s.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},u),k={borderStyle:"solid",position:"absolute"},y=(0,s.A)({},k),T=(0,s.A)({},k);/^T/.test(p)&&(y.borderWidth="0 8px 8px",y.borderColor="transparent transparent var(--github-arrow-border-color)",T.borderWidth="0 7px 7px",T.borderColor="transparent transparent var(--github-background-color)"),p===x.TopRight&&(y.top=-8,T.top=-7),p===x.Top&&(y.top=-8,T.top=-7),p===x.TopLeft&&(y.top=-8,T.top=-7),/^B/.test(p)&&(y.borderWidth="8px 8px 0",y.borderColor="var(--github-arrow-border-color) transparent transparent",T.borderWidth="7px 7px 0",T.borderColor="var(--github-background-color) transparent transparent",p===x.BottomRight&&(y.top="100%",T.top="100%"),p===x.Bottom&&(y.top="100%",T.top="100%"),p===x.BottomLeft&&(y.top="100%",T.top="100%")),/^(B|T)/.test(p)&&(p!==x.Top&&p!==x.Bottom||(y.left="50%",y.marginLeft=-8,T.left="50%",T.marginLeft=-7),p!==x.TopRight&&p!==x.BottomRight||(y.right=10,T.right=11),p!==x.TopLeft&&p!==x.BottomLeft||(y.left=7,T.left=8)),/^L/.test(p)&&(y.borderWidth="8px 8px 8px 0",y.borderColor="transparent var(--github-arrow-border-color) transparent transparent",T.borderWidth="7px 7px 7px 0",T.borderColor="transparent var(--github-background-color) transparent transparent",y.left=-8,T.left=-7),/^R/.test(p)&&(y.borderWidth="8px 0 8px 8px",y.borderColor="transparent transparent transparent var(--github-arrow-border-color)",T.borderWidth="7px 0 7px 7px",T.borderColor="transparent transparent transparent var(--github-background-color)",y.right=-8,T.right=-7),/^(L|R)/.test(p)&&(p!==x.RightTop&&p!==x.LeftTop||(y.top=5,T.top=6),p!==x.Left&&p!==x.Right||(y.top="50%",T.top="50%",y.marginTop=-8,T.marginTop=-7),p!==x.LeftBottom&&p!==x.RightBottom||(y.top="100%",T.top="100%",y.marginTop=-21,T.marginTop=-20));return(0,h.jsx)(l.A,(0,s.A)({ref:r,className:[e,b].filter(Boolean).join(" "),colors:f,color:C,rectRender:t=>{var r=(0,s.A)({},((0,o.A)(t),t)),e=j&&j((0,s.A)({},r));return e||(0,h.jsx)(d,(0,s.A)({},r,{rectProps:v}))}},R,{onChange:t=>A&&A((0,i.yW)(t)),style:B,rectProps:{style:{marginRight:0,marginBottom:0,borderRadius:0,height:25,width:25}},addonBefore:(0,h.jsxs)(a.Fragment,{children:[(0,h.jsx)("div",{style:y}),(0,h.jsx)("div",{style:T})]})}))}));b.displayName="Github";const u=b},9520:(t,r,e)=>{"use strict";function o(t){if(null==t)throw new TypeError("Cannot destructure "+t)}e.d(r,{A:()=>o})}}]); +//# sourceMappingURL=241.7fcf8d78.chunk.js.map \ No newline at end of file diff --git a/static/js/241.7fcf8d78.chunk.js.map b/static/js/241.7fcf8d78.chunk.js.map new file mode 100644 index 000000000..2b77459fe --- /dev/null +++ b/static/js/241.7fcf8d78.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/241.7fcf8d78.chunk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sE,UAAWA,IACV,GAQFqB,EAAO,CACRlD,SAzHiB6E,GAAO7E,GAAYA,GAAS8E,EAAAA,EAAAA,IAAYD,IA0HzD3F,MAAOsE,EACP3B,UAAW,CACT3C,MAAO,CACLgC,YAAa,EACbC,aAAc,EACdC,aAAc,EACdE,OAAQ,GACRC,MAAO,KAGXwD,aAA0BtG,EAAAA,EAAAA,MAAMkB,EAAAA,SAAU,CACxChB,SAAU,EAAcC,EAAAA,EAAAA,KAAK,MAAO,CAClCM,MAAO4E,KACQlF,EAAAA,EAAAA,KAAK,MAAO,CAC3BM,MAAO6E,SAGV,IAELjE,EAAOkF,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","_templateObject","_taggedTemplateLiteral","EditorUrl","a","_templateObject2","Wrapper","_templateObject3","Footer","footer","_templateObject4","Example","_templateObject5","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","concat","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","Fragment","display","gap","Github","color","onChange","_objectSpread","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/256.4aaa220d.chunk.js b/static/js/256.4aaa220d.chunk.js new file mode 100644 index 000000000..c03706e02 --- /dev/null +++ b/static/js/256.4aaa220d.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[256],{5602:(e,t,r)=>{var n=r(6784).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Pointer=void 0;var o=n(r(6651)),a=n(r(453)),i=(n(r(7804)),r(9424)),u=["className","prefixCls","left","top","style","fillProps"];t.Pointer=function(e){var t=e.className,r=e.prefixCls,n=e.left,l=e.top,c=e.style,s=e.fillProps,f=(0,a.default)(e,u),d=(0,o.default)((0,o.default)({},c),{},{position:"absolute",left:n,top:l}),p=(0,o.default)((0,o.default)({width:18,height:18,boxShadow:"var(--alpha-pointer-box-shadow)",borderRadius:"50%",backgroundColor:"var(--alpha-pointer-background-color)"},null===s||void 0===s?void 0:s.style),{},{transform:n?"translate(-9px, -1px)":"translate(-1px, -9px)"});return(0,i.jsx)("div",(0,o.default)((0,o.default)({className:"".concat(r,"-pointer ").concat(t||""),style:d},f),{},{children:(0,i.jsx)("div",(0,o.default)((0,o.default)({className:"".concat(r,"-fill")},s),{},{style:p}))}))}},4707:(e,t,r)=>{var n=r(6784).default;Object.defineProperty(t,"__esModule",{value:!0});var o={BACKGROUND_IMG:!0};t.default=t.BACKGROUND_IMG=void 0;var a=n(r(6651)),i=n(r(453)),u=n(r(7804)),l=r(7604),c=n(r(7611)),s=r(5602);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var f=r(9424),d=["prefixCls","className","hsva","background","bgProps","innerProps","pointerProps","radius","width","height","direction","style","onChange","pointer"],p=t.BACKGROUND_IMG="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==",h=u.default.forwardRef((function(e,t){var r=e.prefixCls,n=void 0===r?"w-color-alpha":r,o=e.className,u=e.hsva,h=e.background,v=e.bgProps,b=void 0===v?{}:v,y=e.innerProps,g=void 0===y?{}:y,m=e.pointerProps,w=void 0===m?{}:m,_=e.radius,j=void 0===_?0:_,O=e.width,S=e.height,P=void 0===S?16:S,A=e.direction,C=void 0===A?"horizontal":A,x=e.style,k=e.onChange,R=e.pointer,D=(0,i.default)(e,d),M=function(e){k&&k((0,a.default)((0,a.default)({},u),{},{a:"horizontal"===C?e.left:e.top}),e)},E=(0,l.hsvaToHslaString)(Object.assign({},u,{a:1})),T="linear-gradient(to ".concat("horizontal"===C?"right":"bottom",", rgba(244, 67, 54, 0) 0%, ").concat(E," 100%)"),N={};"horizontal"===C?N.left="".concat(100*u.a,"%"):N.top="".concat(100*u.a,"%");var I=(0,a.default)((0,a.default)((0,a.default)({"--alpha-background-color":"#fff","--alpha-pointer-background-color":"rgb(248, 248, 248)","--alpha-pointer-box-shadow":"rgb(0 0 0 / 37%) 0px 1px 4px 0px",borderRadius:j,background:"url(".concat(p,") left center"),backgroundColor:"var(--alpha-background-color)"},{width:O,height:P}),x),{},{position:"relative"}),B=R&&"function"===typeof R?R((0,a.default)((0,a.default)({prefixCls:n},w),N)):(0,f.jsx)(s.Pointer,(0,a.default)((0,a.default)({},w),{},{prefixCls:n},N));return(0,f.jsxs)("div",(0,a.default)((0,a.default)({},D),{},{className:[n,"".concat(n,"-").concat(C),o||""].filter(Boolean).join(" "),style:I,ref:t,children:[(0,f.jsx)("div",(0,a.default)((0,a.default)({},b),{},{style:(0,a.default)({inset:0,position:"absolute",background:h||T,borderRadius:j},b.style)})),(0,f.jsx)(c.default,(0,a.default)((0,a.default)({},g),{},{style:(0,a.default)((0,a.default)({},g.style),{},{inset:0,zIndex:1,position:"absolute"}),onMove:M,onDown:M,children:B}))]}))}));h.displayName="Alpha";t.default=h},2974:(e,t,r)=>{var n=r(6784).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(6651)),a=n(r(453)),i=n(r(7804)),u=r(7604),l=n(r(4707)),c=r(9424),s=["prefixCls","className","onChange","direction","hsva"],f=i.default.forwardRef((function(e,t){var r=e.prefixCls,n=void 0===r?"w-color-saturation":r,i=e.className,f=e.onChange,d=e.direction,p=void 0===d?"horizontal":d,h=e.hsva,v=(0,a.default)(e,s),b=(0,u.hsvaToHslaString)((0,o.default)((0,o.default)({},h),{},{a:1,v:100}));return(0,c.jsx)(l.default,(0,o.default)((0,o.default)({ref:t},v),{},{className:"".concat(n," ").concat(i||""),hsva:{h:h.h,s:h.s,v:h.v,a:1-h.v/100},direction:p,background:"linear-gradient(to ".concat("horizontal"===p?"right":"bottom",", ").concat(b,", rgb(0, 0, 0))"),onChange:function(e,t){f&&f({v:"horizontal"===p?100-100*t.left:100-100*t.top})}}))}));f.displayName="ShadeSlider";t.default=f;e.exports=t.default},7611:(e,t,r)=>{var n=r(6784).default,o=r(147).default;Object.defineProperty(t,"__esModule",{value:!0});var a={};t.default=void 0;var i=n(r(6651)),u=n(r(8821)),l=n(r(453)),c=o(r(7804)),s=r(1974);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(a,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var f=r(9424),d=["prefixCls","className","onMove","onDown"],p=c.default.forwardRef((function(e,t){var r=e.prefixCls,n=void 0===r?"w-color-interactive":r,o=e.className,a=e.onMove,p=e.onDown,h=(0,l.default)(e,d),v=(0,c.useRef)(null),b=(0,c.useRef)(!1),y=(0,c.useState)(!1),g=(0,u.default)(y,2),m=g[0],w=g[1],_=(0,s.useEventCallback)(a),j=(0,s.useEventCallback)(p),O=(0,c.useCallback)((function(e){(0,s.preventDefaultMove)(e),((0,s.isTouch)(e)?e.touches.length>0:e.buttons>0)&&v.current?_&&_((0,s.getRelativePosition)(v.current,e),e):w(!1)}),[_]),S=(0,c.useCallback)((function(){return w(!1)}),[]),P=(0,c.useCallback)((function(e){var t=e?window.addEventListener:window.removeEventListener;t(b.current?"touchmove":"mousemove",O),t(b.current?"touchend":"mouseup",S)}),[]);(0,c.useEffect)((function(){return P(m),function(){m&&P(!1)}}),[m,P]);var A=(0,c.useCallback)((function(e){(0,s.preventDefaultMove)(e.nativeEvent),function(e){return!(b.current&&!(0,s.isTouch)(e))&&(b.current=(0,s.isTouch)(e),!0)}(e.nativeEvent)&&(j&&j((0,s.getRelativePosition)(v.current,e.nativeEvent),e.nativeEvent),w(!0))}),[j]);return(0,f.jsx)("div",(0,i.default)((0,i.default)({},h),{},{className:[n,o||""].filter(Boolean).join(" "),style:(0,i.default)((0,i.default)({},h.style),{},{touchAction:"none"}),ref:v,tabIndex:0,onMouseDown:A,onTouchStart:A}))}));p.displayName="Interactive";t.default=p},1974:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.preventDefaultMove=t.isTouch=t.getRelativePosition=t.clamp=void 0,t.useEventCallback=function(e){var t=(0,n.useRef)(e);return(0,n.useEffect)((function(){t.current=e})),(0,n.useCallback)((function(e,r){return t.current&&t.current(e,r)}),[])};var n=r(7804);var o=t.isTouch=function(e){return"touches"in e},a=(t.preventDefaultMove=function(e){!o(e)&&e.preventDefault&&e.preventDefault()},t.clamp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e>r?r:e{r.r(t),r.d(t,{default:()=>n});const n={components:{21:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,n=function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=e(t)&&"function"!=typeof t)return{default:t};var n=a(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&{}.hasOwnProperty.call(t,u)){var l=i?Object.getOwnPropertyDescriptor(t,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=t[u]}return o.default=t,n&&n.set(t,o),o}(r(7804)),o=(t=r(2974))&&t.__esModule?t:{default:t};function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 0,\n v: 68,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement(_reactColorShadeSlider["default"], {\n hsva: hsva,\n onChange: function onChange(newShade) {\n setHsva(_objectSpread(_objectSpread({}, hsva), newShade));\n }\n });\n};',language:"jsx",value:"import React, { useState } from 'react';\nimport ShadeSlider from '@uiw/react-color-shade-slider';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\n return (\n {\n setHsva({ ...hsva, ...newShade });\n }}\n />\n );\n}"}},source:"React Color Shade Slider\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-shade-slider)](https://bundlephobia.com/package/@uiw/react-color-shade-slider) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-shade-slider.svg)](https://www.npmjs.com/package/@uiw/react-color-shade-slider) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-shade-slider/file/README.md)\n\nShadeSlider Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\n\n\x3c!--rehype:ignore:start--\x3e\n[![react-color-shade-slider](https://user-images.githubusercontent.com/1680273/125951397-89e90c05-1de2-4da7-81ed-4b77980482a0.png)](https://uiwjs.github.io/react-color/#/shade-slider)\n\x3c!--rehype:ignore:end--\x3e\n\n## Install\n\n```bash\nnpm i @uiw/react-color-shade-slider\n```\n\n## Usage\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\nimport ShadeSlider from '@uiw/react-color-shade-slider';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\n return (\n {\n setHsva({ ...hsva, ...newShade });\n }}\n />\n );\n}\n```\n\n## Props\n\n```ts\nimport React from 'react';\nimport { AlphaProps } from '@uiw/react-color-alpha';\nexport interface ShadeSliderProps extends Omit {\n onChange?: (newShade: {\n v: number;\n }) => void;\n}\ndeclare const ShadeSlider: React.ForwardRefExoticComponent>;\nexport default ShadeSlider;\n\n```\n\n\x3c!--footer-dividing--\x3e\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=256.4aaa220d.chunk.js.map \ No newline at end of file diff --git a/static/js/256.4aaa220d.chunk.js.map b/static/js/256.4aaa220d.chunk.js.map new file mode 100644 index 000000000..a394c3875 --- /dev/null +++ b/static/js/256.4aaa220d.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/256.4aaa220d.chunk.js","mappings":"iGAEA,IAAIA,EAAyBC,EAAAA,MAAAA,QAC7BC,OAAOC,eAAeC,EAAS,aAAc,CAC3CC,OAAO,IAETD,EAAQE,aAAU,EAClB,IAAIC,EAAiBP,EAAuBC,EAAQ,OAChDO,EAA4BR,EAAuBC,EAAQ,MAE3DQ,GADST,EAAuBC,EAAQ,OAC1BA,EAAQ,OACtBS,EAAY,CAAC,YAAa,YAAa,OAAQ,MAAO,QAAS,aACrDN,EAAQE,QAAU,SAAiBK,GAC/C,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKE,UACjBC,EAAOH,EAAKG,KACZC,EAAMJ,EAAKI,IACXC,EAAQL,EAAKK,MACbC,EAAYN,EAAKM,UACjBC,GAAQ,EAAIV,EAAmC,SAAGG,EAAMD,GACtDS,GAAe,EAAIZ,EAAwB,UAAG,EAAIA,EAAwB,SAAG,CAAC,EAAGS,GAAQ,CAAC,EAAG,CAC/FI,SAAU,WACVN,KAAMA,EACNC,IAAKA,IAEHM,GAAe,EAAId,EAAwB,UAAG,EAAIA,EAAwB,SAAG,CAC/Ee,MAAO,GACPC,OAAQ,GACRC,UAAW,kCACXC,aAAc,MACdC,gBAAiB,yCACF,OAAdT,QAAoC,IAAdA,OAAuB,EAASA,EAAUD,OAAQ,CAAC,EAAG,CAC7EW,UAAWb,EAAO,wBAA0B,0BAE9C,OAAoB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,GAEJ,CAAI,CAnCkB,IAoClBC,KAAM,CACR,GAAM,CACJ,KAAQ,GACR,KAAQ,CAAC,EACT,KAAQ,sjJACR,SAAY,MACZ,MAAS,sWAGTC,OAAQ,gsEACRC,SAAS,GACTC,aAAa,G","sources":["../../packages/color-alpha/cjs/Pointer.js","../../packages/color-alpha/cjs/index.js","../../packages/color-shade-slider/cjs/index.js","../../packages/drag-event-interactive/cjs/index.js","../../packages/drag-event-interactive/cjs/utils.js","../../packages/color-shade-slider/README.md"],"sourcesContent":["\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Pointer = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"className\", \"prefixCls\", \"left\", \"top\", \"style\", \"fillProps\"];\nvar Pointer = exports.Pointer = function Pointer(_ref) {\n var className = _ref.className,\n prefixCls = _ref.prefixCls,\n left = _ref.left,\n top = _ref.top,\n style = _ref.style,\n fillProps = _ref.fillProps,\n reset = (0, _objectWithoutProperties2[\"default\"])(_ref, _excluded);\n var styleWrapper = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, style), {}, {\n position: 'absolute',\n left: left,\n top: top\n });\n var stylePointer = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n width: 18,\n height: 18,\n boxShadow: 'var(--alpha-pointer-box-shadow)',\n borderRadius: '50%',\n backgroundColor: 'var(--alpha-pointer-background-color)'\n }, fillProps === null || fillProps === void 0 ? void 0 : fillProps.style), {}, {\n transform: left ? 'translate(-9px, -1px)' : 'translate(-1px, -9px)'\n });\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n className: \"\".concat(prefixCls, \"-pointer \").concat(className || ''),\n style: styleWrapper\n }, reset), {}, {\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n className: \"\".concat(prefixCls, \"-fill\")\n }, fillProps), {}, {\n style: stylePointer\n }))\n }));\n};","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _exportNames = {\n BACKGROUND_IMG: true\n};\nexports[\"default\"] = exports.BACKGROUND_IMG = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactDragEventInteractive = _interopRequireDefault(require(\"@uiw/react-drag-event-interactive\"));\nvar _Pointer = require(\"./Pointer\");\nObject.keys(_Pointer).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _Pointer[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _Pointer[key];\n }\n });\n});\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"className\", \"hsva\", \"background\", \"bgProps\", \"innerProps\", \"pointerProps\", \"radius\", \"width\", \"height\", \"direction\", \"style\", \"onChange\", \"pointer\"];\nvar BACKGROUND_IMG = exports.BACKGROUND_IMG = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==';\nvar Alpha = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-alpha' : _props$prefixCls,\n className = props.className,\n hsva = props.hsva,\n background = props.background,\n _props$bgProps = props.bgProps,\n bgProps = _props$bgProps === void 0 ? {} : _props$bgProps,\n _props$innerProps = props.innerProps,\n innerProps = _props$innerProps === void 0 ? {} : _props$innerProps,\n _props$pointerProps = props.pointerProps,\n pointerProps = _props$pointerProps === void 0 ? {} : _props$pointerProps,\n _props$radius = props.radius,\n radius = _props$radius === void 0 ? 0 : _props$radius,\n width = props.width,\n _props$height = props.height,\n height = _props$height === void 0 ? 16 : _props$height,\n _props$direction = props.direction,\n direction = _props$direction === void 0 ? 'horizontal' : _props$direction,\n style = props.style,\n onChange = props.onChange,\n pointer = props.pointer,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var handleChange = function handleChange(offset) {\n onChange && onChange((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, hsva), {}, {\n a: direction === 'horizontal' ? offset.left : offset.top\n }), offset);\n };\n var colorTo = (0, _colorConvert.hsvaToHslaString)(Object.assign({}, hsva, {\n a: 1\n }));\n var innerBackground = \"linear-gradient(to \".concat(direction === 'horizontal' ? 'right' : 'bottom', \", rgba(244, 67, 54, 0) 0%, \").concat(colorTo, \" 100%)\");\n var comProps = {};\n if (direction === 'horizontal') {\n comProps.left = \"\".concat(hsva.a * 100, \"%\");\n } else {\n comProps.top = \"\".concat(hsva.a * 100, \"%\");\n }\n var styleWrapper = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n '--alpha-background-color': '#fff',\n '--alpha-pointer-background-color': 'rgb(248, 248, 248)',\n '--alpha-pointer-box-shadow': 'rgb(0 0 0 / 37%) 0px 1px 4px 0px',\n borderRadius: radius,\n background: \"url(\".concat(BACKGROUND_IMG, \") left center\"),\n backgroundColor: 'var(--alpha-background-color)'\n }, {\n width: width,\n height: height\n }), style), {}, {\n position: 'relative'\n });\n var pointerElement = pointer && typeof pointer === 'function' ? pointer((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n prefixCls: prefixCls\n }, pointerProps), comProps)) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Pointer.Pointer, (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, pointerProps), {}, {\n prefixCls: prefixCls\n }, comProps));\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, other), {}, {\n className: [prefixCls, \"\".concat(prefixCls, \"-\").concat(direction), className || ''].filter(Boolean).join(' '),\n style: styleWrapper,\n ref: ref,\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, bgProps), {}, {\n style: (0, _objectSpread2[\"default\"])({\n inset: 0,\n position: 'absolute',\n background: background || innerBackground,\n borderRadius: radius\n }, bgProps.style)\n })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactDragEventInteractive[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, innerProps), {}, {\n style: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, innerProps.style), {}, {\n inset: 0,\n zIndex: 1,\n position: 'absolute'\n }),\n onMove: handleChange,\n onDown: handleChange,\n children: pointerElement\n }))]\n }));\n});\nAlpha.displayName = 'Alpha';\nvar _default = exports[\"default\"] = Alpha;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactColorAlpha = _interopRequireDefault(require(\"@uiw/react-color-alpha\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"className\", \"onChange\", \"direction\", \"hsva\"];\nvar ShadeSlider = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-saturation' : _props$prefixCls,\n className = props.className,\n _onChange = props.onChange,\n _props$direction = props.direction,\n direction = _props$direction === void 0 ? 'horizontal' : _props$direction,\n hsva = props.hsva,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var colorFrom = (0, _colorConvert.hsvaToHslaString)((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, hsva), {}, {\n a: 1,\n v: 100\n }));\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorAlpha[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n ref: ref\n }, other), {}, {\n className: \"\".concat(prefixCls, \" \").concat(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 \".concat(direction === 'horizontal' ? 'right' : 'bottom', \", \").concat(colorFrom, \", rgb(0, 0, 0))\"),\n onChange: function onChange(_, interaction) {\n _onChange && _onChange({\n v: direction === 'horizontal' ? 100 - interaction.left * 100 : 100 - interaction.top * 100\n });\n }\n }));\n});\nShadeSlider.displayName = 'ShadeSlider';\nvar _default = exports[\"default\"] = ShadeSlider;\nmodule.exports = exports.default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _exportNames = {};\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _slicedToArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/slicedToArray\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _utils = require(\"./utils\");\nObject.keys(_utils).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _utils[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _utils[key];\n }\n });\n});\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"className\", \"onMove\", \"onDown\"];\nvar Interactive = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-interactive' : _props$prefixCls,\n className = props.className,\n onMove = props.onMove,\n onDown = props.onDown,\n reset = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var container = (0, _react.useRef)(null);\n var hasTouched = (0, _react.useRef)(false);\n var _useState = (0, _react.useState)(false),\n _useState2 = (0, _slicedToArray2[\"default\"])(_useState, 2),\n isDragging = _useState2[0],\n setDragging = _useState2[1];\n var onMoveCallback = (0, _utils.useEventCallback)(onMove);\n var onKeyCallback = (0, _utils.useEventCallback)(onDown);\n\n // Prevent mobile browsers from handling mouse events (conflicting with touch ones).\n // If we detected a touch interaction before, we prefer reacting to touch events only.\n var isValid = function isValid(event) {\n if (hasTouched.current && !(0, _utils.isTouch)(event)) return false;\n hasTouched.current = (0, _utils.isTouch)(event);\n return true;\n };\n var handleMove = (0, _react.useCallback)(function (event) {\n (0, _utils.preventDefaultMove)(event);\n // If user moves the pointer outside of the window or iframe bounds and release it there,\n // `mouseup`/`touchend` won't be fired. In order to stop the picker from following the cursor\n // after the user has moved the mouse/finger back to the document, we check `event.buttons`\n // and `event.touches`. It allows us to detect that the user is just moving his pointer\n // without pressing it down\n var isDown = (0, _utils.isTouch)(event) ? event.touches.length > 0 : event.buttons > 0;\n if (isDown && container.current) {\n onMoveCallback && onMoveCallback((0, _utils.getRelativePosition)(container.current, event), event);\n } else {\n setDragging(false);\n }\n }, [onMoveCallback]);\n var handleMoveEnd = (0, _react.useCallback)(function () {\n return setDragging(false);\n }, []);\n var toggleDocumentEvents = (0, _react.useCallback)(function (state) {\n var toggleEvent = state ? window.addEventListener : window.removeEventListener;\n toggleEvent(hasTouched.current ? 'touchmove' : 'mousemove', handleMove);\n toggleEvent(hasTouched.current ? 'touchend' : 'mouseup', handleMoveEnd);\n }, []);\n (0, _react.useEffect)(function () {\n toggleDocumentEvents(isDragging);\n return function () {\n isDragging && toggleDocumentEvents(false);\n };\n }, [isDragging, toggleDocumentEvents]);\n var handleMoveStart = (0, _react.useCallback)(function (event) {\n (0, _utils.preventDefaultMove)(event.nativeEvent);\n if (!isValid(event.nativeEvent)) return;\n onKeyCallback && onKeyCallback((0, _utils.getRelativePosition)(container.current, event.nativeEvent), event.nativeEvent);\n setDragging(true);\n }, [onKeyCallback]);\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, reset), {}, {\n className: [prefixCls, className || ''].filter(Boolean).join(' '),\n style: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, reset.style), {}, {\n touchAction: 'none'\n }),\n ref: container,\n tabIndex: 0,\n onMouseDown: handleMoveStart,\n onTouchStart: handleMoveStart\n }));\n});\nInteractive.displayName = 'Interactive';\nvar _default = exports[\"default\"] = Interactive;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.preventDefaultMove = exports.isTouch = exports.getRelativePosition = exports.clamp = void 0;\nexports.useEventCallback = useEventCallback;\nvar _react = require(\"react\");\n// Saves incoming handler to the ref in order to avoid \"useCallback hell\"\nfunction useEventCallback(handler) {\n var callbackRef = (0, _react.useRef)(handler);\n (0, _react.useEffect)(function () {\n callbackRef.current = handler;\n });\n return (0, _react.useCallback)(function (value, event) {\n return callbackRef.current && callbackRef.current(value, event);\n }, []);\n}\n\n// Check if an event was triggered by touch\nvar isTouch = exports.isTouch = function isTouch(event) {\n return 'touches' in event;\n};\n\n// Browsers introduced an intervention, making touch events passive by default.\n// This workaround removes `preventDefault` call from the touch handlers.\n// https://github.com/facebook/react/issues/19651\nvar preventDefaultMove = exports.preventDefaultMove = function preventDefaultMove(event) {\n !isTouch(event) && event.preventDefault && event.preventDefault();\n};\n// Clamps a value between an upper and lower bound.\n// We use ternary operators because it makes the minified code\n// 2 times shorter then `Math.min(Math.max(a,b),c)`\nvar clamp = exports.clamp = function clamp(number) {\n var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n return number > max ? max : number < min ? min : number;\n};\n// Returns a relative position of the pointer inside the node's bounding box\nvar getRelativePosition = exports.getRelativePosition = function getRelativePosition(node, event) {\n var rect = node.getBoundingClientRect();\n\n // Get user's pointer position from `touches` array if it's a `TouchEvent`\n var pointer = isTouch(event) ? event.touches[0] : event;\n return {\n left: clamp((pointer.pageX - (rect.left + window.pageXOffset)) / rect.width),\n top: clamp((pointer.pageY - (rect.top + window.pageYOffset)) / rect.height),\n width: rect.width,\n height: rect.height,\n x: pointer.pageX - (rect.left + window.pageXOffset),\n y: pointer.pageY - (rect.top + window.pageYOffset)\n };\n};","\nexport default {\n components: { 21: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactColorShadeSlider = _interopRequireDefault(require(\"@uiw/react-color-shade-slider\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _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); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 0,\n v: 68,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(_reactColorShadeSlider[\"default\"], {\n hsva: hsva,\n onChange: function onChange(newShade) {\n setHsva(_objectSpread(_objectSpread({}, hsva), newShade));\n }\n });\n}; })(), },\n data: {\n \"21\": {\n \"name\": 21,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactColorShadeSlider = _interopRequireDefault(require(\\\"@uiw/react-color-shade-slider\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \\\"string\\\"); return \\\"symbol\\\" == _typeof(i) ? i : i + \\\"\\\"; }\\nfunction _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); }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nreturn function Demo() {\\n var _useState = (0, _react.useState)({\\n h: 0,\\n s: 0,\\n v: 68,\\n a: 1\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n hsva = _useState2[0],\\n setHsva = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorShadeSlider[\\\"default\\\"], {\\n hsva: hsva,\\n onChange: function onChange(newShade) {\\n setHsva(_objectSpread(_objectSpread({}, hsva), newShade));\\n }\\n });\\n};\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport ShadeSlider from '@uiw/react-color-shade-slider';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\\n return (\\n {\\n setHsva({ ...hsva, ...newShade });\\n }}\\n />\\n );\\n}\"\n }\n},\n source: \"React Color Shade Slider\\n===\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-shade-slider)](https://bundlephobia.com/package/@uiw/react-color-shade-slider) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-shade-slider.svg)](https://www.npmjs.com/package/@uiw/react-color-shade-slider) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-shade-slider/file/README.md)\\n\\nShadeSlider Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\\n\\n\\n[![react-color-shade-slider](https://user-images.githubusercontent.com/1680273/125951397-89e90c05-1de2-4da7-81ed-4b77980482a0.png)](https://uiwjs.github.io/react-color/#/shade-slider)\\n\\n\\n## Install\\n\\n```bash\\nnpm i @uiw/react-color-shade-slider\\n```\\n\\n## Usage\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\nimport ShadeSlider from '@uiw/react-color-shade-slider';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\\n return (\\n {\\n setHsva({ ...hsva, ...newShade });\\n }}\\n />\\n );\\n}\\n```\\n\\n## Props\\n\\n```ts\\nimport React from 'react';\\nimport { AlphaProps } from '@uiw/react-color-alpha';\\nexport interface ShadeSliderProps extends Omit {\\n onChange?: (newShade: {\\n v: number;\\n }) => void;\\n}\\ndeclare const ShadeSlider: React.ForwardRefExoticComponent>;\\nexport default ShadeSlider;\\n\\n```\\n\\n\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["_interopRequireDefault","require","Object","defineProperty","exports","value","Pointer","_objectSpread2","_objectWithoutProperties2","_jsxRuntime","_excluded","_ref","className","prefixCls","left","top","style","fillProps","reset","styleWrapper","position","stylePointer","width","height","boxShadow","borderRadius","backgroundColor","transform","jsx","concat","children","_exportNames","BACKGROUND_IMG","_react","_colorConvert","_reactDragEventInteractive","_Pointer","keys","forEach","key","prototype","hasOwnProperty","call","enumerable","get","Alpha","forwardRef","props","ref","_props$prefixCls","hsva","background","_props$bgProps","bgProps","_props$innerProps","innerProps","_props$pointerProps","pointerProps","_props$radius","radius","_props$height","_props$direction","direction","onChange","pointer","other","handleChange","offset","a","colorTo","hsvaToHslaString","assign","innerBackground","comProps","pointerElement","jsxs","filter","Boolean","join","inset","zIndex","onMove","onDown","displayName","_reactColorAlpha","ShadeSlider","_onChange","colorFrom","v","h","s","_","interaction","module","default","_interopRequireWildcard","_slicedToArray2","_utils","Interactive","container","useRef","hasTouched","_useState","useState","_useState2","isDragging","setDragging","onMoveCallback","useEventCallback","onKeyCallback","handleMove","useCallback","event","preventDefaultMove","isTouch","touches","length","buttons","current","getRelativePosition","handleMoveEnd","toggleDocumentEvents","state","toggleEvent","window","addEventListener","removeEventListener","useEffect","handleMoveStart","nativeEvent","isValid","touchAction","tabIndex","onMouseDown","onTouchStart","clamp","handler","callbackRef","preventDefault","number","min","arguments","undefined","max","node","rect","getBoundingClientRect","pageX","pageXOffset","pageY","pageYOffset","x","y","components","_typeof","o","Symbol","iterator","constructor","e","r","__esModule","t","_getRequireWildcardCache","has","n","__proto__","getOwnPropertyDescriptor","u","i","set","_reactColorShadeSlider","WeakMap","ownKeys","getOwnPropertySymbols","push","apply","_objectSpread","_defineProperty","getOwnPropertyDescriptors","defineProperties","toPrimitive","TypeError","String","Number","_toPrimitive","_toPropertyKey","configurable","writable","_slicedToArray","Array","isArray","_arrayWithHoles","l","f","next","done","_iterableToArrayLimit","_arrayLikeToArray","toString","slice","name","from","test","_unsupportedIterableToArray","_nonIterableRest","setHsva","createElement","newShade","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/256.feddbf7f.chunk.js b/static/js/256.feddbf7f.chunk.js deleted file mode 100644 index 89f4ddce3..000000000 --- a/static/js/256.feddbf7f.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[256],{6256:(e,r,t)=>{t.r(r),t.d(r,{default:()=>n});const n={components:{21:function(){function e(r){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(r)}var r,n=function(r,t){if(!t&&r&&r.__esModule)return r;if(null===r||"object"!=e(r)&&"function"!=typeof r)return{default:r};var n=a(t);if(n&&n.has(r))return n.get(r);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in r)if("default"!==u&&{}.hasOwnProperty.call(r,u)){var c=i?Object.getOwnPropertyDescriptor(r,u):null;c&&(c.get||c.set)?Object.defineProperty(o,u,c):o[u]=r[u]}return o.default=r,n&&n.set(r,o),o}(t(7804)),o=(r=t(9571))&&r.__esModule?r:{default:r};function a(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(a=function(e){return e?t:r})(e)}function i(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function u(e){for(var r=1;re.length)&&(r=e.length);for(var t=0,n=Array(r);t r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 0,\n v: 68,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement(_reactColorShadeSlider["default"], {\n hsva: hsva,\n onChange: function onChange(newShade) {\n setHsva(_objectSpread(_objectSpread({}, hsva), newShade));\n }\n });\n};',language:"jsx",value:"import React, { useState } from 'react';\nimport ShadeSlider from '@uiw/react-color-shade-slider';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\n return (\n {\n setHsva({ ...hsva, ...newShade });\n }}\n />\n );\n}"}},source:"React Color Shade Slider\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-shade-slider)](https://bundlephobia.com/package/@uiw/react-color-shade-slider) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-shade-slider.svg)](https://www.npmjs.com/package/@uiw/react-color-shade-slider) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-shade-slider/file/README.md)\n\nShadeSlider Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\n\n\x3c!--rehype:ignore:start--\x3e\n[![react-color-shade-slider](https://user-images.githubusercontent.com/1680273/125951397-89e90c05-1de2-4da7-81ed-4b77980482a0.png)](https://uiwjs.github.io/react-color/#/shade-slider)\n\x3c!--rehype:ignore:end--\x3e\n\n## Install\n\n```bash\nnpm i @uiw/react-color-shade-slider\n```\n\n## Usage\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\nimport ShadeSlider from '@uiw/react-color-shade-slider';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\n return (\n {\n setHsva({ ...hsva, ...newShade });\n }}\n />\n );\n}\n```\n\n## Props\n\n```ts\nimport React from 'react';\nimport { AlphaProps } from '@uiw/react-color-alpha';\nexport interface ShadeSliderProps extends Omit {\n onChange?: (newShade: {\n v: number;\n }) => void;\n}\ndeclare const ShadeSlider: React.ForwardRefExoticComponent>;\nexport default ShadeSlider;\n\n```\n\n\x3c!--footer-dividing--\x3e\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); -//# sourceMappingURL=256.feddbf7f.chunk.js.map \ No newline at end of file diff --git a/static/js/256.feddbf7f.chunk.js.map b/static/js/256.feddbf7f.chunk.js.map deleted file mode 100644 index c4ff193c7..000000000 --- a/static/js/256.feddbf7f.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/256.feddbf7f.chunk.js","mappings":"+HACA,SACIA,WAAY,CAAE,GAAI,WAEtB,SAASC,EAAQC,GAAgC,OAAOD,EAAU,mBAAqBE,QAAU,iBAAmBA,OAAOC,SAAW,SAAUF,GAAK,cAAcA,CAAG,EAAI,SAAUA,GAAK,OAAOA,GAAK,mBAAqBC,QAAUD,EAAEG,cAAgBF,QAAUD,IAAMC,OAAOG,UAAY,gBAAkBJ,CAAG,EAAGD,EAAQC,EAAI,CAC7T,IAEgCK,EAF5BC,EAIJ,SAAiCD,EAAGE,GAAK,IAAKA,GAAKF,GAAKA,EAAEG,WAAY,OAAOH,EAAG,GAAI,OAASA,GAAK,UAAYN,EAAQM,IAAM,mBAAqBA,EAAG,MAAO,CAAE,QAAWA,GAAK,IAAII,EAAIC,EAAyBH,GAAI,GAAIE,GAAKA,EAAEE,IAAIN,GAAI,OAAOI,EAAEG,IAAIP,GAAI,IAAIQ,EAAI,CAAEC,UAAW,MAAQC,EAAIC,OAAOC,gBAAkBD,OAAOE,yBAA0B,IAAK,IAAIC,KAAKd,EAAG,GAAI,YAAcc,GAAK,CAAC,EAAEC,eAAeC,KAAKhB,EAAGc,GAAI,CAAE,IAAIG,EAAIP,EAAIC,OAAOE,yBAAyBb,EAAGc,GAAK,KAAM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CkB,IAoClBC,KAAM,CACR,GAAM,CACJ,KAAQ,GACR,KAAQ,CAAC,EACT,KAAQ,sjJACR,SAAY,MACZ,MAAS,sWAGTC,OAAQ,gsEACRC,SAAS,GACTC,aAAa,G","sources":["../../packages/color-shade-slider/README.md"],"sourcesContent":["\nexport default {\n components: { 21: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactColorShadeSlider = _interopRequireDefault(require(\"@uiw/react-color-shade-slider\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _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); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 0,\n v: 68,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(_reactColorShadeSlider[\"default\"], {\n hsva: hsva,\n onChange: function onChange(newShade) {\n setHsva(_objectSpread(_objectSpread({}, hsva), newShade));\n }\n });\n}; })(), },\n data: {\n \"21\": {\n \"name\": 21,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactColorShadeSlider = _interopRequireDefault(require(\\\"@uiw/react-color-shade-slider\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \\\"string\\\"); return \\\"symbol\\\" == _typeof(i) ? i : i + \\\"\\\"; }\\nfunction _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); }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nreturn function Demo() {\\n var _useState = (0, _react.useState)({\\n h: 0,\\n s: 0,\\n v: 68,\\n a: 1\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n hsva = _useState2[0],\\n setHsva = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorShadeSlider[\\\"default\\\"], {\\n hsva: hsva,\\n onChange: function onChange(newShade) {\\n setHsva(_objectSpread(_objectSpread({}, hsva), newShade));\\n }\\n });\\n};\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport ShadeSlider from '@uiw/react-color-shade-slider';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\\n return (\\n {\\n setHsva({ ...hsva, ...newShade });\\n }}\\n />\\n );\\n}\"\n }\n},\n source: \"React Color Shade Slider\\n===\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-shade-slider)](https://bundlephobia.com/package/@uiw/react-color-shade-slider) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-shade-slider.svg)](https://www.npmjs.com/package/@uiw/react-color-shade-slider) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-shade-slider/file/README.md)\\n\\nShadeSlider Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\\n\\n\\n[![react-color-shade-slider](https://user-images.githubusercontent.com/1680273/125951397-89e90c05-1de2-4da7-81ed-4b77980482a0.png)](https://uiwjs.github.io/react-color/#/shade-slider)\\n\\n\\n## Install\\n\\n```bash\\nnpm i @uiw/react-color-shade-slider\\n```\\n\\n## Usage\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\nimport ShadeSlider from '@uiw/react-color-shade-slider';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\\n return (\\n {\\n setHsva({ ...hsva, ...newShade });\\n }}\\n />\\n );\\n}\\n```\\n\\n## Props\\n\\n```ts\\nimport React from 'react';\\nimport { AlphaProps } from '@uiw/react-color-alpha';\\nexport interface ShadeSliderProps extends Omit {\\n onChange?: (newShade: {\\n v: number;\\n }) => void;\\n}\\ndeclare const ShadeSlider: React.ForwardRefExoticComponent>;\\nexport default ShadeSlider;\\n\\n```\\n\\n\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","_typeof","o","Symbol","iterator","constructor","prototype","e","_react","r","__esModule","t","_getRequireWildcardCache","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_interopRequireWildcard","_reactColorShadeSlider","WeakMap","ownKeys","keys","getOwnPropertySymbols","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","toPrimitive","TypeError","String","Number","_toPrimitive","_toPropertyKey","value","configurable","writable","_slicedToArray","Array","isArray","_arrayWithHoles","l","f","next","done","_iterableToArrayLimit","_arrayLikeToArray","toString","slice","name","from","test","_unsupportedIterableToArray","_nonIterableRest","_useState2","useState","h","s","v","hsva","setHsva","createElement","onChange","newShade","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/288.9ab27c56.chunk.js b/static/js/288.9ab27c56.chunk.js deleted file mode 100644 index 7ff267fcb..000000000 --- a/static/js/288.9ab27c56.chunk.js +++ /dev/null @@ -1,45 +0,0 @@ -(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%), - 0 8px 16px rgb(0 0 0 / 15%); - border-radius: 16px; - max-width: 860px; - margin: 0 auto; - padding-bottom: 20px; - position: relative; -`,d=o.Ay.a` - position: absolute; - right: 20px; - padding: 3px 8px 4px 8px; - background: #333333; - border-radius: 0 0 6px 6px; - text-decoration: initial; - color: #fff; - transition: all 0.3s; - font-size: 14px; - &:hover { - background-color: #3f51b4; - } -`,h=o.Ay.div` - padding-bottom: 120px; -`,l=o.Ay.footer` - text-align: center; - margin-top: 40px; - a { - margin: 0 5px; - } - p { - font-size: 12px; - text-align: center; - } -`,c=o.Ay.div` - border-bottom: 1px solid var(--color-border-default); - border-radius: 16px 16px 0 0; - padding: 28px; - > h3 { - margin: 0; - 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.9ab27c56.chunk.js.map \ No newline at end of file diff --git a/static/js/288.9ab27c56.chunk.js.map b/static/js/288.9ab27c56.chunk.js.map deleted file mode 100644 index d54400fa2..000000000 --- a/static/js/288.9ab27c56.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"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,E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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/288.e4395c56.chunk.js b/static/js/288.e4395c56.chunk.js new file mode 100644 index 000000000..6d6983422 --- /dev/null +++ b/static/js/288.e4395c56.chunk.js @@ -0,0 +1,2 @@ +(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:()=>j});var r,i,n,o,a,h=s(114),d=s(7804),c=s(7584),l=s(3235),p=s(9424);const g=l.Ay.div(r||(r=(0,h.A)(["\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"]))),u=l.Ay.a(i||(i=(0,h.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"]))),x=l.Ay.div(n||(n=(0,h.A)(["\n padding-bottom: 120px;\n"]))),m=l.Ay.footer(o||(o=(0,h.A)(["\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"]))),b=l.Ay.div(a||(a=(0,h.A)(["\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"])));class j extends d.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,p.jsxs)(x,{className:"wmde-markdown-var",children:[(0,p.jsxs)(g,{children:[this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"}),this.example&&(0,p.jsxs)(b,{children:[(0,p.jsx)("h3",{children:"Example"}),this.example]}),(0,p.jsx)(c.A,{data:{data:s,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"})]}),(0,p.jsxs)(m,{children:[(0,p.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,p.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,p.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,p.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:()=>c});var r=s(8957),i=s(7804),n=s(4342),o=s(3623),a=s(7980),h=s(9424);function d(){const{hsva:t,dispatch:e}=(0,i.useContext)(a.ob);return(0,h.jsx)("div",{style:{width:256},children:(0,h.jsx)(n.A,{color:t,onChange:s=>{e({hsva:(0,r.A)((0,r.A)({},t),s.hsva)})}})})}class c extends o.A{constructor(){super(...arguments),this.editorUrl="/packages/color-sketch/README.md",this.getMdStr=()=>Promise.all([s.e(968),s.e(199)]).then(s.bind(s,8199)),this.example=(0,h.jsx)(d,{})}}}}]); +//# sourceMappingURL=288.e4395c56.chunk.js.map \ No newline at end of file diff --git a/static/js/73.f14be78c.chunk.js.map b/static/js/288.e4395c56.chunk.js.map similarity index 52% rename from static/js/73.f14be78c.chunk.js.map rename to static/js/288.e4395c56.chunk.js.map index 75215092b..0e1679e22 100644 --- a/static/js/73.f14be78c.chunk.js.map +++ b/static/js/288.e4395c56.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/73.f14be78c.chunk.js","mappings":"4EAAA,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,EAA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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,oCAAoC,KAChDC,SAAW,IAAM,4BAAuC,E","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/convert/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-convert/README.md';\n getMdStr = () => import('@uiw/color-convert/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/288.e4395c56.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,8GCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,IAAGC,IAAAA,GAAAC,EAAAA,EAAAA,GAAA,wPAkB5BC,EAAYJ,EAAAA,GAAOK,EAACC,I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EAAMN,OAAS,KAKzD,CAEO,MAAMlC,UAAkBD,EAAAA,EAASE,WAAAA,GAAA,SAAA0C,WAAA,KACtCvC,UAAY,mCAAmC,KAC/CC,SAAW,IAAM,sDAA4C,KAC7DC,SAAWiB,EAAAA,EAAAA,KAAC1B,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","_templateObject","_taggedTemplateLiteral","EditorUrl","a","_templateObject2","Wrapper","_templateObject3","Footer","footer","_templateObject4","Example","_templateObject5","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","concat","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Sketch","color","onChange","_objectSpread","arguments"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/313.679402f4.chunk.js b/static/js/313.679402f4.chunk.js new file mode 100644 index 000000000..de890769a --- /dev/null +++ b/static/js/313.679402f4.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:()=>A});var t=r(8957),s=r(7804),a=r(8024),l=r(4342),i=r(9262),n=r(4590),c=r(7355),d=r(6801),h=r(2051),p=r(11),x=r(411),g=r(2945),f=r(3623),u=r(7980),b=r(9424);function y(e){return(0,b.jsx)("div",(0,t.A)((0,t.A)({},e),{},{style:(0,t.A)({fontSize:12,padding:"5px 0",color:"#6b6b6b"},e.style),children:e.children}))}const v="index_warpper__Ajp1G";function m(){const{hsva:e,dispatch:o}=(0,s.useContext)(u.ob);return(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:v,children:[(0,b.jsxs)("div",{children:[(0,b.jsx)(a.A,{color:e,onChange:r=>{o({hsva:(0,t.A)((0,t.A)({},e),r.hsva)})}}),(0,b.jsx)(y,{children:'')})]}),(0,b.jsxs)("div",{style:{marginLeft:60,marginRight:60},children:[(0,b.jsx)(l.A,{color:e,onChange:r=>{o({hsva:(0,t.A)((0,t.A)({},e),r.hsva)})}}),(0,b.jsx)(y,{children:'')})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)(i.A,{color:e,onChange:r=>{o({hsva:(0,t.A)((0,t.A)({},e),r.hsva)})}}),(0,b.jsx)(y,{children:''})]})]}),(0,b.jsxs)("div",{className:v,children:[(0,b.jsxs)("div",{children:[(0,b.jsx)(n.A,{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:(0,t.A)((0,t.A)({},e),r.hsva)})}}),(0,b.jsx)(y,{children:'')})]}),(0,b.jsxs)("div",{style:{paddingLeft:20},children:[(0,b.jsx)(c.A,{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:(0,t.A)((0,t.A)({},e),r.hsva)})}}),(0,b.jsx)(y,{children:'')})]}),(0,b.jsxs)("div",{style:{marginLeft:25},children:[(0,b.jsx)(d.A,{color:e,width:140,height:140,onChange:r=>{o({hsva:(0,t.A)((0,t.A)({},e),r.hsva)})}}),(0,b.jsx)(y,{children:''})]})]}),(0,b.jsxs)("div",{className:v,children:[(0,b.jsxs)("div",{children:[(0,b.jsx)(h.A,{color:e,onChange:r=>{o({hsva:(0,t.A)((0,t.A)({},e),r.hsva)})}}),(0,b.jsx)(y,{children:'')})]}),(0,b.jsxs)("div",{style:{marginRight:30,marginLeft:30},children:[(0,b.jsx)(p.A,{color:e,style:{boxShadow:"rgb(0 0 0 / 12%) 0px 2px 10px, rgb(0 0 0 / 16%) 0px 2px 5px"},onChange:r=>{o({hsva:(0,t.A)((0,t.A)({},e),r.hsva)})}}),(0,b.jsx)(y,{children:''})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)(x.A,{color:e,onChange:r=>{o({hsva:(0,t.A)((0,t.A)({},e),r.hsva)})}}),(0,b.jsx)(y,{children:'')})]})]})]})}class A 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,b.jsx)(m,{})}}},411:(e,o,r)=>{r.d(o,{A:()=>x});var t=r(8102),s=r(9257),a=r(7804),l=r(2945),i=r(5991),n=r(6966),c=r(9424),d=["prefixCls","className","style","color","colors","onChange"],h=["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],p=a.forwardRef(((e,o)=>{var{prefixCls:r="w-color-block",className:a,style:p,color:x,colors:g=h,onChange:f}=e,u=(0,s.A)(e,d),b="string"===typeof x&&(0,l.Am)(x)?(0,l.RV)(x):x,y=x?(0,l.D9)(b):"",v=(e,o)=>{"string"===typeof e&&(0,l.Am)(e)&&/(3|6)/.test(String(e.replace(/^#/,"").length))&&f&&f((0,l.yW)((0,l.RV)(e)))},m=(0,t.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"},p);return(0,c.jsxs)("div",(0,t.A)({ref:o,className:[r,a].filter(Boolean).join(" "),style:m},u,{children:[(0,c.jsx)("div",{style:{width:0,height:0,borderStyle:"solid",borderWidth:"0 10px 10px",borderColor:"transparent transparent "+y,position:"absolute",top:-10,left:"50%",marginLeft:-10}}),(0,c.jsx)("div",{title:y,style:{backgroundColor:""+y,color:(0,l.OB)(y),height:110,fontSize:18,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center"},children:y.toLocaleUpperCase()}),(0,c.jsx)(n.A,{colors:g,color:y,style:{paddingLeft:10,paddingTop:10},rectProps:{style:{marginRight:10,marginBottom:10,borderRadius:4,height:22,width:22}},onChange:e=>{f&&f((0,l.yW)(e))}}),(0,c.jsx)(i.A,{value:y.toLocaleUpperCase(),onChange:(e,o)=>v(o),onBlur:e=>{var o=e.target.value;e.target.value=o.slice(0,6),v(o.slice(0,6))},inputStyle:{height:22,outline:0,borderRadius:3,padding:"0 7px"},style:{padding:10,paddingTop:0,borderRadius:"0 0 6px 6px"}})]}))}));p.displayName="Block";const x=p},4590:(e,o,r)=>{r.d(o,{A:()=>x});var t=r(9520),s=r(8102),a=r(9257),l=r(7804),i=r(2945),n=r(6966),c=r(9424);function d(e){var{style:o,className:r,title:t,checked:a,color:i,onClick:n,rectProps:d}=e,h=(0,l.useRef)(null),p=(0,l.useCallback)((()=>{h.current.style.transform="scale(1.2)"}),[]),x=(0,l.useCallback)((()=>{h.current.style.transform="scale(1)"}),[]),g=(0,s.A)({"--circle-point-background-color":"#fff",height:a?"100%":0,width:a?"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:x,title:t,className:r,style:(0,s.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 "+(a?5:0)+"px",transition:"transform 100ms ease 0s, box-shadow 100ms ease 0s"}),children:(0,c.jsx)("div",(0,s.A)({},d,{style:g}))})}var h=["prefixCls","className","color","colors","rectProps","pointProps","onChange"],p=l.forwardRef(((e,o)=>{var{prefixCls:r="w-color-circle",className:l,color:p,colors:x=[],rectProps:g={},pointProps:f={},onChange:u}=e,b=(0,a.A)(e,h),y="string"===typeof p&&(0,i.Am)(p)?(0,i.RV)(p):p||{},v=p?(0,i.D9)(y):"",m=[r,l].filter(Boolean).join(" "),A=[r+"-point",null==f?void 0:f.className].filter(Boolean).join(" ");return(0,c.jsx)(n.A,(0,s.A)({ref:o,colors:x,color:v},b,{className:m,rectRender:e=>{var o=(0,s.A)({},((0,t.A)(e),e));return(0,c.jsx)(d,(0,s.A)({},o,f,{style:(0,s.A)({},o.style,f.style),className:A,rectProps:g}))},onChange:e=>{u&&u((0,i.yW)(e))}}))}));p.displayName="Circle";const x=p},8024:(e,o,r)=>{r.d(o,{A:()=>f});var t=r(8102),s=r(9257),a=r(7804),l=r(2945),i=r(1636),n=r(2084),c=r(1068),d=r(9424),h=["style","color"],p=["prefixCls","className","onChange","color","style","disableAlpha"],x=e=>{var{style:o,color:r}=e,a=(0,s.A)(e,h),l=(0,t.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.xm+")",backgroundColor:"var(--colorful-pointer-background-color)",border:"var(--colorful-pointer-border)",zIndex:1},o);return(0,d.jsx)("div",(0,t.A)({},a,{style:l,children:(0,d.jsx)("div",{style:{backgroundColor:r,borderRadius:"50%",height:" 100%",width:"100%"}})}))},g=a.forwardRef(((e,o)=>{var{prefixCls:r="w-color-colorful",className:a,onChange:h,color:g,style:f,disableAlpha:u}=e,b=(0,s.A)(e,p),y="string"===typeof g&&(0,l.Am)(g)?(0,l.RV)(g):g||{},v=e=>h&&h((0,l.yW)(e));return(0,d.jsxs)("div",(0,t.A)({ref:o,style:(0,t.A)({width:200,position:"relative"},f)},b,{className:r+" "+(a||""),children:[(0,d.jsx)(n.A,{hsva:y,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:t}=e;return(0,d.jsx)(x,{style:{left:o,top:r,transform:"translate(-16px, -16px)"},color:(0,l.D9)(y)})},onChange:e=>v((0,t.A)({},y,e))}),(0,d.jsx)(c.A,{hue:y.h,height:24,radius:u?"0 0 8px 8px":0,className:r,onChange:e=>v((0,t.A)({},y,e)),pointer:e=>{var{left:o}=e;return(0,d.jsx)(x,{style:{left:o},color:"hsl("+(y.h||0)+"deg 100% 50%)"})}}),!u&&(0,d.jsx)(i.Ay,{hsva:y,height:24,className:r,radius:"0 0 8px 8px",pointer:e=>{var{left:o}=e;return(0,d.jsx)(x,{style:{left:o},color:(0,l.db)(y)})},onChange:e=>v((0,t.A)({},y,e))})]}))}));g.displayName="Colorful";const f=g},7355:(e,o,r)=>{r.d(o,{A:()=>f});var t=r(8102),s=r(9257),a=r(7804),l=r(2945),i=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 x(e){return e.checked?(0,d.jsx)("div",{style:{height:5,width:5,borderRadius:"50%",backgroundColor:(0,l.OB)(e.color)}}):null}var g=a.forwardRef(((e,o)=>{var{prefixCls:r="w-color-compact",className:g,style:f,onChange:u,color:b,colors:y=p,rectProps:v,rectRender:m}=e,A=(0,s.A)(e,h),C="string"===typeof b&&(0,l.Am)(b)?(0,l.RV)(b):b,j=b?(0,l.D9)(C).replace(/^#/,""):"",w=(0,a.useCallback)((e=>u&&u((0,l.yW)(e))),[]),k={style:{alignItems:"baseline"},inputStyle:{boxShadow:"none",backgroundColor:"transparent",outline:0}},R=(0,t.A)({"--compact-background-color":"#f6f6f6",background:"var(--compact-background-color)",borderRadius:3,display:"flex",width:240,flexWrap:"wrap",paddingTop:5,paddingLeft:5},f);return(0,d.jsxs)("div",(0,t.A)({ref:o,style:R,className:[r,g||""].filter(Boolean).join(" ")},A,{children:[(0,d.jsx)(c.A,{colors:y,color:b?(0,l.D9)(C):void 0,rectRender:m,rectProps:(0,t.A)({children:(0,d.jsx)(x,{})},v,{style:(0,t.A)({display:"flex",alignItems:"center",justifyContent:"center"},null==v?void 0:v.style)}),onChange:e=>w(e)}),(0,d.jsxs)("div",{style:{display:"flex",margin:"0 4px 3px 0"},children:[(0,d.jsx)(i.A,{onChange:(e,o)=>{var r;"string"===typeof(r=o)&&(0,l.Am)(r)&&/(3|6)/.test(String(r.length))&&w((0,l.RV)(r))},labelStyle:{paddingRight:5,marginTop:-1},value:j.toLocaleUpperCase(),label:(0,d.jsx)("div",{style:{width:8,height:8,backgroundColor:"#"+j}}),inputStyle:{outline:"none",boxShadow:"initial",background:"transparent"},style:{flexDirection:"row-reverse",flex:"1 1 0%",minWidth:80}}),(0,d.jsx)(n.A,{hsva:C,placement:"left",onChange:e=>w(e.hsva),aProps:!1,rProps:k,gProps:k,bProps:k})]})]}))}));g.displayName="Compact";const f=g},11:(e,o,r)=>{r.d(o,{A:()=>x});var t=r(8102),s=r(9257),a=r(7804),l=r(2945),i=r(5991),n=r(6436),c=r(9424),d=["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=a.forwardRef(((e,o)=>{var{prefixCls:r="w-color-material",className:a,style:p,color:x,onChange:g}=e,f=(0,s.A)(e,d),u="string"===typeof x&&(0,l.Am)(x)?(0,l.RV)(x):x,b=x?(0,l.D9)(u).replace(/^#/,""):"",y=(e,o)=>{"string"===typeof e&&(0,l.Am)(e)&&/(3|6)/.test(String(e.length))&&g&&g((0,l.yW)((0,l.RV)(e)))},v=(0,t.A)({"--material-border-bottom-color":"#eee","--material-background-color":"#fff",padding:16,width:98,fontFamily:"Roboto",backgroundColor:"var(--material-background-color)"},p);return(0,c.jsxs)("div",(0,t.A)({ref:o,className:[r,a||""].filter(Boolean).join(" "),style:v},f,{children:[(0,c.jsx)(i.A,{label:"Hex",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:{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,c.jsx)(n.A,{hsva:u,placement:"top",style:{marginTop:11},rProps:{style:{alignItems:"flex-start"},inputStyle:(0,t.A)({},h)},gProps:{style:{alignItems:"flex-start"},inputStyle:(0,t.A)({},h)},bProps:{style:{alignItems:"flex-start"},inputStyle:(0,t.A)({},h)},aProps:!1,onChange:e=>{return o=e.hsva,void(g&&g((0,l.yW)(o)));var o}})]}))}));p.displayName="Material";const x=p},6801:(e,o,r)=>{r.d(o,{A:()=>b});var t=r(8102),s=r(9257),a=r(7804),l=r(2945),i=r(1346),n=r(9424),c=e=>{var{className:o,color:r,left:s,top:a,style:l,prefixCls:i}=e,c=(0,t.A)({},l,{position:"absolute",top:a,left:s}),d=i+"-pointer "+(o||"");return(0,n.jsx)("div",{className:d,style:c,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}})})})},d=2*Math.PI,h=(e,o)=>Math.sqrt(e*e+o*o);function p(e){var{width:o=0}=e,r=o/2;return{width:o,radius:r,cx:r,cy:r}}function x(e){var{width:o=0}=e;return o/2}function g(e,o,r){var t,s=e.angle||0,a=e.direction;return r&&"clockwise"===a?o=s+o:"clockwise"===a?o=360-s+o:r&&"anticlockwise"===a?o=s+180-o:"anticlockwise"===a&&(o=s-o),(o%(t=360)+t)%t}var f=["prefixCls","radius","pointer","className","style","width","height","oval","direction","angle","color","onChange"],u=a.forwardRef(((e,o)=>{var{prefixCls:r="w-color-wheel",radius:a=0,pointer:u,className:b,style:y,width:v=200,height:m=200,oval:A,direction:C="anticlockwise",angle:j=180,color:w,onChange:k}=e,R=(0,s.A)(e,f),N="string"===typeof w&&(0,l.Am)(w)?(0,l.RV)(w):w||{},D=w?(0,l.D9)(N):"",S=function(e,o){var{cx:r,cy:t}=p(e),s=x(e),a=(180+g(e,o.h,!0))*(d/360),l=o.s/100*s,i="clockwise"===e.direction?-1:1;return{x:r+l*Math.cos(a)*i,y:t+l*Math.sin(a)*i}}({width:v},N),B={top:"0",left:"0",color:D},F=(e,o)=>{var r=function(e,o,r){var{cx:t,cy:s}=p(e),a=x(e);o=t-o,r=s-r;var l=g(e,Math.atan2(-r,-o)*(360/d)),i=Math.min(h(o,r),a);return{h:Math.round(l),s:Math.round(100/a*i)}}({width:v},v-e.x,m-e.y),t={h:r.h,s:r.s,v:N.v,a:N.a};k&&k((0,l.yW)(t))},P={zIndex:1,transform:"translate("+S.x+"px, "+S.y+"px) "+("x"===A||"X"===A?"scaleY(2)":"y"===A||"Y"===A?"scaleX(2)":"")},W=u&&"function"===typeof u?u((0,t.A)({prefixCls:r,style:P},B)):(0,n.jsx)(c,(0,t.A)({prefixCls:r,style:P},B));return(0,n.jsxs)(i.Ay,(0,t.A)({className:[r,b||""].filter(Boolean).join(" ")},R,{style:(0,t.A)({position:"relative",width:v,transform:"x"===A||"X"===A?"scaleY(0.5)":"y"===A||"Y"===A?"scaleX(0.5)":"",height:m},y),ref:o,onMove:F,onDown:F,children:[W,(0,n.jsx)("div",{style:{position:"absolute",borderRadius:"50%",background:"anticlockwise"===C?"conic-gradient(red, yellow, lime, aqua, blue, magenta, red)":"conic-gradient(red, magenta, blue, aqua, lime, yellow, red)",transform:"rotateZ("+(j+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 N.v?1-N.v/100:0}})]}))}));u.displayName="Wheel";const b=u}}]); +//# sourceMappingURL=313.679402f4.chunk.js.map \ No newline at end of file diff --git a/static/js/313.679402f4.chunk.js.map b/static/js/313.679402f4.chunk.js.map new file mode 100644 index 000000000..511f9dc92 --- /dev/null +++ b/static/js/313.679402f4.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/313.679402f4.chunk.js","mappings":"wRAEe,SAASA,EAAMC,GAC5B,OACEC,EAAAA,EAAAA,KAAA,OAAAC,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GAASF,GAAK,IAAEG,OAAKD,EAAAA,EAAAA,GAAA,CAAIE,SAAU,GAAIC,QAAS,QAASC,MAAO,WAAcN,EAAMG,OAAQI,SACzFP,EAAMO,WAGb,CCPA,QAA0B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O,CACL8D,SAAU,WACVF,aAAc,MACdC,WAA0B,kBAAdsH,EAnES,8DACI,8DAmEzB1E,UAAW,YAAcsE,EAAQ,IAAM,OACvCd,MAAO,MAEMnK,EAAAA,EAAAA,KAAK,MAAO,CAC3BE,MAAO,CACL8D,SAAU,WACVF,aAAc,MACdC,WAAY,0DACZoG,MAAO,MAEMnK,EAAAA,EAAAA,KAAK,MAAO,CAC3BE,MAAO,CACLwE,gBAAiB,OACjBZ,aAAc,MACdE,SAAU,WACVmG,MAAO,EACP2C,QAA2B,kBAAXtM,EAAK+L,EAAiB,EAAI/L,EAAK+L,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","_objectSpread","style","fontSize","padding","color","children","Example","hsva","dispatch","useContext","Context","_jsxs","className","styles","Colorful","onChange","concat","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.dbf48c9c.chunk.js b/static/js/313.dbf48c9c.chunk.js deleted file mode 100644 index 9e2703150..000000000 --- a/static/js/313.dbf48c9c.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)({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 deleted file mode 100644 index 08b226abb..000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AAY,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/315.993a2a3e.chunk.js b/static/js/315.993a2a3e.chunk.js new file mode 100644 index 000000000..0bc3faa8d --- /dev/null +++ b/static/js/315.993a2a3e.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[315],{4226:(e,t,n)=>{var r=n(6784).default,a=n(147).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(6651)),i=r(n(8821)),l=r(n(453)),u=a(n(7804)),c=n(9424),s=["prefixCls","placement","label","value","className","style","labelStyle","inputStyle","onChange","onBlur"],p=u.default.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"w-color-editable-input":n,a=e.placement,p=void 0===a?"bottom":a,f=e.label,d=e.value,b=e.className,y=e.style,m=e.labelStyle,v=e.inputStyle,h=e.onChange,g=e.onBlur,_=(0,l.default)(e,s),x=(0,u.useState)(d),w=(0,i.default)(x,2),S=w[0],j=w[1],I=(0,u.useRef)(!1);(0,u.useEffect)((function(){e.value!==S&&(I.current||j(e.value))}),[e.value]);var R={};"bottom"===p&&(R.flexDirection="column"),"top"===p&&(R.flexDirection="column-reverse"),"left"===p&&(R.flexDirection="row-reverse");var C=(0,o.default)((0,o.default)({"--editable-input-label-color":"rgb(153, 153, 153)","--editable-input-box-shadow":"rgb(204 204 204) 0px 0px 0px 1px inset","--editable-input-color":"#666",position:"relative",alignItems:"center",display:"flex",fontSize:11},R),y),E=(0,o.default)({width:"100%",paddingTop:2,paddingBottom:2,paddingLeft:3,paddingRight:3,fontSize:11,background:"transparent",boxSizing:"border-box",border:"none",color:"var(--editable-input-color)",boxShadow:"var(--editable-input-box-shadow)"},v);return(0,c.jsxs)("div",{className:[r,b||""].filter(Boolean).join(" "),style:C,children:[(0,c.jsx)("input",(0,o.default)((0,o.default)({ref:t,value:S,onChange:function(e,t){var n=(t||e.target.value).trim().replace(/^#/,"");/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(n)&&h&&h(e,n);var r=function(e){return Number(String(e).replace(/%/g,""))}(n);isNaN(r)||h&&h(e,r),j(n)},onBlur:function(t){I.current=!1,j(e.value),g&&g(t)},autoComplete:"off",onFocus:function(){return I.current=!0}},_),{},{style:E})),f&&(0,c.jsx)("span",{style:(0,o.default)({color:"var(--editable-input-label-color)",textTransform:"capitalize"},m),children:f})]})}));p.displayName="EditableInput";t.default=p;e.exports=t.default},4696:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});const r={components:{21:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,r=function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=e(t)&&"function"!=typeof t)return{default:t};var r=i(n);if(r&&r.has(t))return r.get(t);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&{}.hasOwnProperty.call(t,l)){var u=o?Object.getOwnPropertyDescriptor(t,l):null;u&&(u.get||u.set)?Object.defineProperty(a,l,u):a[l]=t[l]}return a.default=t,r&&r.set(t,a),a}(n(7804)),a=n(7604),o=(t=n(4226))&&t.__esModule?t:{default:t};function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){c=!0,a=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 209,\n s: 36,\n v: 90,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement("div", {\n style: {\n padding: \'0 10px 0 20px\'\n }\n }, /*#__PURE__*/_react["default"].createElement(_reactColorEditableInput["default"], {\n label: "Hex",\n value: (0, _colorConvert.hsvaToHex)(hsva),\n style: {\n width: 68,\n alignItems: \'flex-start\'\n }\n }));\n};',language:"jsx",value:"import React, { useState } from 'react';\nimport { hsvaToHex } from '@uiw/color-convert';\nimport EditableInput from '@uiw/react-color-editable-input';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 209, s: 36, v: 90, a: 1 });\n return (\n
\n \n
\n );\n}"}},source:"React Color Editable Input\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-editable-input)](https://bundlephobia.com/package/@uiw/react-color-editable-input) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-editable-input.svg)](https://www.npmjs.com/package/@uiw/react-color-editable-input) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md)\n\nEditableInput Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\n\n\x3c!--rehype:ignore:start--\x3e\n[![editable-input](https://user-images.githubusercontent.com/1680273/125950802-3feb68a9-23ca-4395-9477-72ade831dc0b.png)](https://uiwjs.github.io/react-color/#/editable-input)\n\x3c!--rehype:ignore:end--\x3e\n\n## Install\n\n```bash\nnpm i @uiw/react-color-editable-input\n```\n\n## Usage\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\nimport { hsvaToHex } from '@uiw/color-convert';\nimport EditableInput from '@uiw/react-color-editable-input';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 209, s: 36, v: 90, a: 1 });\n return (\n
\n \n
\n );\n}\n```\n\n## Props\n\n```ts\nimport React from 'react';\nexport interface EditableInputProps extends Omit, 'onChange'> {\n prefixCls?: string;\n value?: string | number;\n label?: React.ReactNode;\n labelStyle?: React.CSSProperties;\n placement?: 'top' | 'left' | 'bottom' | 'right';\n inputStyle?: React.CSSProperties;\n onChange?: (evn: React.ChangeEvent, value: string | number) => void;\n}\ndeclare const EditableInput: React.ForwardRefExoticComponent>;\nexport default EditableInput;\n```\n\n\x3c!--footer-dividing--\x3e\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=315.993a2a3e.chunk.js.map \ No newline at end of file diff --git a/static/js/315.993a2a3e.chunk.js.map b/static/js/315.993a2a3e.chunk.js.map new file mode 100644 index 000000000..a25e187c2 --- /dev/null +++ b/static/js/315.993a2a3e.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/315.993a2a3e.chunk.js","mappings":"iGAEA,IAAIA,EAAyBC,EAAAA,MAAAA,QACzBC,EAA0BD,EAAAA,KAAAA,QAC9BE,OAAOC,eAAeC,EAAS,aAAc,CAC3CC,OAAO,IAETD,EAAiB,aAAI,EACrB,IAAIE,EAAiBP,EAAuBC,EAAQ,OAChDO,EAAkBR,EAAuBC,EAAQ,OACjDQ,EAA4BT,EAAuBC,EAAQ,MAC3DS,EAASR,EAAwBD,EAAQ,OACzCU,EAAcV,EAAQ,MACtBW,EAAY,CAAC,YAAa,YAAa,QAAS,QAAS,YAAa,QAAS,aAAc,aAAc,WAAY,UAOvHC,EAA6BH,EAAgB,QAAEI,YAAW,SAAUC,EAAOC,GAC7E,IAAIC,EAAmBF,EAAMG,UAC3BA,OAAiC,IAArBD,EAA8B,yBAA2BA,EACrEE,EAAmBJ,EAAMK,UACzBA,OAAiC,IAArBD,EAA8B,SAAWA,EACrDE,EAAQN,EAAMM,MACdC,EAAYP,EAAMT,MAClBiB,EAAYR,EAAMQ,UAClBC,EAAQT,EAAMS,MACdC,EAAaV,EAAMU,WACnBC,EAAaX,EAAMW,WACnBC,EAAWZ,EAAMY,SACjBC,EAASb,EAAMa,OACfC,GAAQ,EAAIpB,EAAmC,SAAGM,EAAOH,GACvDkB,GAAY,EAAIpB,EAAOqB,UAAUT,GACnCU,GAAa,EAAIxB,EAAyB,SAAGsB,EAAW,GACxDxB,EAAQ0B,EAAW,GACnBC,EAAWD,EAAW,GACpBE,GAAU,EAAIxB,EAAOyB,SAAQ,IACjC,EAAIzB,EAAO0B,YAAW,WAChBrB,EAAMT,QAAUA,IACb4B,EAAQG,SACXJ,EAASlB,EAAMT,OAGrB,GAAG,CAACS,EAAMT,QAiBV,IAAIgC,EAAiB,CAAC,EACJ,WAA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B,MAAM,GAAI,GAAI,MAAO,WAAa7B,GAAKF,EAAEH,cAAgBK,EAAIF,EAAEH,YAAYmC,MAAO,QAAU9B,GAAK,QAAUA,EAAIiB,MAAMc,KAAKjC,GAAK,cAAgBE,GAAK,2CAA2CtB,KAAKsB,GAAK2B,EAAkB7B,EAAGQ,QAAK,CAAQ,CAAE,CAF7R0B,CAA4BlC,EAAGD,IAC3H,WAA8B,MAAM,IAAIoC,UAAU,4IAA8I,CAD/DC,EAAoB,CAGrJ,SAASP,EAAkB7B,EAAGQ,IAAM,MAAQA,GAAKA,EAAIR,EAAE2B,UAAYnB,EAAIR,EAAE2B,QAAS,IAAK,IAAI5B,EAAI,EAAGO,EAAIa,MAAMX,GAAIT,EAAIS,EAAGT,IAAKO,EAAEP,GAAKC,EAAED,GAAI,OAAOO,CAAG,CAGnJ,OAAO,WACL,IAME5D,EAAawE,GANC,EAAI9F,EAAOqB,UAAU,CACjC4F,EAAG,IACHC,EAAG,GACHC,EAAG,GACH/B,EAAG,IAEkC,GACvCgC,EAAO9F,EAAW,GACRA,EAAW,GACvB,OAAoBtB,EAAgB,QAAEqH,cAAc,MAAO,CACzDvG,MAAO,CACLwG,QAAS,kBAEGtH,EAAgB,QAAEqH,cAAczB,EAAkC,QAAG,CACnFjF,MAAO,MACPf,OAAO,EAAI+F,EAAc4B,WAAWH,GACpCtG,MAAO,CACLqB,MAAO,GACPJ,WAAY,gBAGlB,CAAI,CArCkB,IAsClByF,KAAM,CACR,GAAM,CACJ,KAAQ,GACR,KAAQ,CAAC,EACT,KAAQ,+8GACR,SAAY,MACZ,MAAS,ueAGTC,OAAQ,0hFACRC,SAAS,GACTC,aAAa,G","sources":["../../packages/color-editable-input/cjs/index.js","../../packages/color-editable-input/README.md"],"sourcesContent":["\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _slicedToArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/slicedToArray\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"placement\", \"label\", \"value\", \"className\", \"style\", \"labelStyle\", \"inputStyle\", \"onChange\", \"onBlur\"];\nvar validHex = function validHex(hex) {\n return /^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(hex);\n};\nvar getNumberValue = function getNumberValue(value) {\n return Number(String(value).replace(/%/g, ''));\n};\nvar EditableInput = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-editable-input' : _props$prefixCls,\n _props$placement = props.placement,\n placement = _props$placement === void 0 ? 'bottom' : _props$placement,\n label = props.label,\n initValue = props.value,\n className = props.className,\n style = props.style,\n labelStyle = props.labelStyle,\n inputStyle = props.inputStyle,\n onChange = props.onChange,\n onBlur = props.onBlur,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var _useState = (0, _react.useState)(initValue),\n _useState2 = (0, _slicedToArray2[\"default\"])(_useState, 2),\n value = _useState2[0],\n setValue = _useState2[1];\n var isFocus = (0, _react.useRef)(false);\n (0, _react.useEffect)(function () {\n if (props.value !== value) {\n if (!isFocus.current) {\n setValue(props.value);\n }\n }\n }, [props.value]);\n function handleChange(evn, valInit) {\n var value = (valInit || evn.target.value).trim().replace(/^#/, '');\n if (validHex(value)) {\n onChange && onChange(evn, value);\n }\n var val = getNumberValue(value);\n if (!isNaN(val)) {\n onChange && onChange(evn, val);\n }\n setValue(value);\n }\n function handleBlur(evn) {\n isFocus.current = false;\n setValue(props.value);\n onBlur && onBlur(evn);\n }\n var placementStyle = {};\n if (placement === 'bottom') {\n placementStyle['flexDirection'] = 'column';\n }\n if (placement === 'top') {\n placementStyle['flexDirection'] = 'column-reverse';\n }\n if (placement === 'left') {\n placementStyle['flexDirection'] = 'row-reverse';\n }\n var wrapperStyle = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n '--editable-input-label-color': 'rgb(153, 153, 153)',\n '--editable-input-box-shadow': 'rgb(204 204 204) 0px 0px 0px 1px inset',\n '--editable-input-color': '#666',\n position: 'relative',\n alignItems: 'center',\n display: 'flex',\n fontSize: 11\n }, placementStyle), style);\n var editableStyle = (0, _objectSpread2[\"default\"])({\n width: '100%',\n paddingTop: 2,\n paddingBottom: 2,\n paddingLeft: 3,\n paddingRight: 3,\n fontSize: 11,\n background: 'transparent',\n boxSizing: 'border-box',\n border: 'none',\n color: 'var(--editable-input-color)',\n boxShadow: 'var(--editable-input-box-shadow)'\n }, inputStyle);\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", {\n className: [prefixCls, className || ''].filter(Boolean).join(' '),\n style: wrapperStyle,\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(\"input\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n ref: ref,\n value: value,\n onChange: handleChange,\n onBlur: handleBlur,\n autoComplete: \"off\",\n onFocus: function onFocus() {\n return isFocus.current = true;\n }\n }, other), {}, {\n style: editableStyle\n })), label && /*#__PURE__*/(0, _jsxRuntime.jsx)(\"span\", {\n style: (0, _objectSpread2[\"default\"])({\n color: 'var(--editable-input-label-color)',\n textTransform: 'capitalize'\n }, labelStyle),\n children: label\n })]\n });\n});\nEditableInput.displayName = 'EditableInput';\nvar _default = exports[\"default\"] = EditableInput;\nmodule.exports = exports.default;","\nexport default {\n components: { 21: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactColorEditableInput = _interopRequireDefault(require(\"@uiw/react-color-editable-input\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 209,\n s: 36,\n v: 90,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n padding: '0 10px 0 20px'\n }\n }, /*#__PURE__*/_react[\"default\"].createElement(_reactColorEditableInput[\"default\"], {\n label: \"Hex\",\n value: (0, _colorConvert.hsvaToHex)(hsva),\n style: {\n width: 68,\n alignItems: 'flex-start'\n }\n }));\n}; })(), },\n data: {\n \"21\": {\n \"name\": 21,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _colorConvert = require(\\\"@uiw/color-convert\\\");\\nvar _reactColorEditableInput = _interopRequireDefault(require(\\\"@uiw/react-color-editable-input\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nreturn function Demo() {\\n var _useState = (0, _react.useState)({\\n h: 209,\\n s: 36,\\n v: 90,\\n a: 1\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n hsva = _useState2[0],\\n setHsva = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: {\\n padding: '0 10px 0 20px'\\n }\\n }, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorEditableInput[\\\"default\\\"], {\\n label: \\\"Hex\\\",\\n value: (0, _colorConvert.hsvaToHex)(hsva),\\n style: {\\n width: 68,\\n alignItems: 'flex-start'\\n }\\n }));\\n};\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport { hsvaToHex } from '@uiw/color-convert';\\nimport EditableInput from '@uiw/react-color-editable-input';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 209, s: 36, v: 90, a: 1 });\\n return (\\n
\\n \\n
\\n );\\n}\"\n }\n},\n source: \"React Color Editable Input\\n===\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-editable-input)](https://bundlephobia.com/package/@uiw/react-color-editable-input) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-editable-input.svg)](https://www.npmjs.com/package/@uiw/react-color-editable-input) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md)\\n\\nEditableInput Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\\n\\n\\n[![editable-input](https://user-images.githubusercontent.com/1680273/125950802-3feb68a9-23ca-4395-9477-72ade831dc0b.png)](https://uiwjs.github.io/react-color/#/editable-input)\\n\\n\\n## Install\\n\\n```bash\\nnpm i @uiw/react-color-editable-input\\n```\\n\\n## Usage\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\nimport { hsvaToHex } from '@uiw/color-convert';\\nimport EditableInput from '@uiw/react-color-editable-input';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 209, s: 36, v: 90, a: 1 });\\n return (\\n
\\n \\n
\\n );\\n}\\n```\\n\\n## Props\\n\\n```ts\\nimport React from 'react';\\nexport interface EditableInputProps extends Omit, 'onChange'> {\\n prefixCls?: string;\\n value?: string | number;\\n label?: React.ReactNode;\\n labelStyle?: React.CSSProperties;\\n placement?: 'top' | 'left' | 'bottom' | 'right';\\n inputStyle?: React.CSSProperties;\\n onChange?: (evn: React.ChangeEvent, value: string | number) => void;\\n}\\ndeclare const EditableInput: React.ForwardRefExoticComponent>;\\nexport default EditableInput;\\n```\\n\\n\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["_interopRequireDefault","require","_interopRequireWildcard","Object","defineProperty","exports","value","_objectSpread2","_slicedToArray2","_objectWithoutProperties2","_react","_jsxRuntime","_excluded","EditableInput","forwardRef","props","ref","_props$prefixCls","prefixCls","_props$placement","placement","label","initValue","className","style","labelStyle","inputStyle","onChange","onBlur","other","_useState","useState","_useState2","setValue","isFocus","useRef","useEffect","current","placementStyle","wrapperStyle","position","alignItems","display","fontSize","editableStyle","width","paddingTop","paddingBottom","paddingLeft","paddingRight","background","boxSizing","border","color","boxShadow","jsxs","filter","Boolean","join","children","jsx","evn","valInit","target","trim","replace","test","val","Number","String","getNumberValue","isNaN","autoComplete","onFocus","textTransform","displayName","module","default","components","_typeof","o","Symbol","iterator","constructor","prototype","e","r","__esModule","t","_getRequireWildcardCache","has","get","n","__proto__","a","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_colorConvert","_reactColorEditableInput","WeakMap","_slicedToArray","Array","isArray","_arrayWithHoles","l","f","next","done","push","length","_iterableToArrayLimit","_arrayLikeToArray","toString","slice","name","from","_unsupportedIterableToArray","TypeError","_nonIterableRest","h","s","v","hsva","createElement","padding","hsvaToHex","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/315.cde22620.chunk.js b/static/js/315.cde22620.chunk.js deleted file mode 100644 index a8c3e70e5..000000000 --- a/static/js/315.cde22620.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[315],{4696:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});const r={components:{21:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,r=function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=e(t)&&"function"!=typeof t)return{default:t};var r=i(n);if(r&&r.has(t))return r.get(t);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&{}.hasOwnProperty.call(t,u)){var l=a?Object.getOwnPropertyDescriptor(t,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=t[u]}return o.default=t,r&&r.set(t,o),o}(n(7804)),o=n(2945),a=(t=n(5991))&&t.__esModule?t:{default:t};function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,u=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 209,\n s: 36,\n v: 90,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement("div", {\n style: {\n padding: \'0 10px 0 20px\'\n }\n }, /*#__PURE__*/_react["default"].createElement(_reactColorEditableInput["default"], {\n label: "Hex",\n value: (0, _colorConvert.hsvaToHex)(hsva),\n style: {\n width: 68,\n alignItems: \'flex-start\'\n }\n }));\n};',language:"jsx",value:"import React, { useState } from 'react';\nimport { hsvaToHex } from '@uiw/color-convert';\nimport EditableInput from '@uiw/react-color-editable-input';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 209, s: 36, v: 90, a: 1 });\n return (\n
\n \n
\n );\n}"}},source:"React Color Editable Input\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-editable-input)](https://bundlephobia.com/package/@uiw/react-color-editable-input) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-editable-input.svg)](https://www.npmjs.com/package/@uiw/react-color-editable-input) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md)\n\nEditableInput Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\n\n\x3c!--rehype:ignore:start--\x3e\n[![editable-input](https://user-images.githubusercontent.com/1680273/125950802-3feb68a9-23ca-4395-9477-72ade831dc0b.png)](https://uiwjs.github.io/react-color/#/editable-input)\n\x3c!--rehype:ignore:end--\x3e\n\n## Install\n\n```bash\nnpm i @uiw/react-color-editable-input\n```\n\n## Usage\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\nimport { hsvaToHex } from '@uiw/color-convert';\nimport EditableInput from '@uiw/react-color-editable-input';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 209, s: 36, v: 90, a: 1 });\n return (\n
\n \n
\n );\n}\n```\n\n## Props\n\n```ts\nimport React from 'react';\nexport interface EditableInputProps extends Omit, 'onChange'> {\n prefixCls?: string;\n value?: string | number;\n label?: React.ReactNode;\n labelStyle?: React.CSSProperties;\n placement?: 'top' | 'left' | 'bottom' | 'right';\n inputStyle?: React.CSSProperties;\n onChange?: (evn: React.ChangeEvent, value: string | number) => void;\n}\ndeclare const EditableInput: React.ForwardRefExoticComponent>;\nexport default EditableInput;\n```\n\n\x3c!--footer-dividing--\x3e\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); -//# sourceMappingURL=315.cde22620.chunk.js.map \ No newline at end of file diff --git a/static/js/315.cde22620.chunk.js.map b/static/js/315.cde22620.chunk.js.map deleted file mode 100644 index 1e67d9a4c..000000000 --- a/static/js/315.cde22620.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/315.cde22620.chunk.js","mappings":"+HACA,SACIA,WAAY,CAAE,GAAI,WAEtB,SAASC,EAAQC,GAAgC,OAAOD,EAAU,mBAAqBE,QAAU,iBAAmBA,OAAOC,SAAW,SAAUF,GAAK,cAAcA,CAAG,EAAI,SAAUA,GAAK,OAAOA,GAAK,mBAAqBC,QAAUD,EAAEG,cAAgBF,QAAUD,IAAMC,OAAOG,UAAY,gBAAkBJ,CAAG,EAAGD,EAAQC,EAAI,CAC7T,IAGgCK,EAH5BC,EAKJ,SAAiCD,EAAGE,GAAK,IAAKA,GAAKF,GAAKA,EAAEG,WAAY,OAAOH,EAAG,GAAI,OAASA,GAAK,UAAYN,EAAQM,IAAM,mBAAqBA,EAAG,MAAO,CAAE,QAAWA,GAAK,IAAII,EAAIC,EAAyBH,GAAI,GAAIE,GAAKA,EAAEE,IAAIN,GAAI,OAAOI,EAAEG,IAAIP,GAAI,IAAIQ,EAAI,CAAEC,UAAW,MAAQC,EAAIC,OAAOC,gBAAkBD,OAAOE,yBAA0B,IAAK,IAAIC,KAAKd,EAAG,GAAI,YAAcc,GAAK,CAAC,EAAEC,eAAeC,KAAKhB,EAAGc,GAAI,CAAE,IAAIG,EAAIP,EAAIC,OAAOE,y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8GACR,SAAY,MACZ,MAAS,ueAGTC,OAAQ,0hFACRC,SAAS,GACTC,aAAa,G","sources":["../../packages/color-editable-input/README.md"],"sourcesContent":["\nexport default {\n components: { 21: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactColorEditableInput = _interopRequireDefault(require(\"@uiw/react-color-editable-input\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 209,\n s: 36,\n v: 90,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n padding: '0 10px 0 20px'\n }\n }, /*#__PURE__*/_react[\"default\"].createElement(_reactColorEditableInput[\"default\"], {\n label: \"Hex\",\n value: (0, _colorConvert.hsvaToHex)(hsva),\n style: {\n width: 68,\n alignItems: 'flex-start'\n }\n }));\n}; })(), },\n data: {\n \"21\": {\n \"name\": 21,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _colorConvert = require(\\\"@uiw/color-convert\\\");\\nvar _reactColorEditableInput = _interopRequireDefault(require(\\\"@uiw/react-color-editable-input\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nreturn function Demo() {\\n var _useState = (0, _react.useState)({\\n h: 209,\\n s: 36,\\n v: 90,\\n a: 1\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n hsva = _useState2[0],\\n setHsva = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: {\\n padding: '0 10px 0 20px'\\n }\\n }, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorEditableInput[\\\"default\\\"], {\\n label: \\\"Hex\\\",\\n value: (0, _colorConvert.hsvaToHex)(hsva),\\n style: {\\n width: 68,\\n alignItems: 'flex-start'\\n }\\n }));\\n};\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport { hsvaToHex } from '@uiw/color-convert';\\nimport EditableInput from '@uiw/react-color-editable-input';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 209, s: 36, v: 90, a: 1 });\\n return (\\n
\\n \\n
\\n );\\n}\"\n }\n},\n source: \"React Color Editable Input\\n===\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-editable-input)](https://bundlephobia.com/package/@uiw/react-color-editable-input) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-editable-input.svg)](https://www.npmjs.com/package/@uiw/react-color-editable-input) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md)\\n\\nEditableInput Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\\n\\n\\n[![editable-input](https://user-images.githubusercontent.com/1680273/125950802-3feb68a9-23ca-4395-9477-72ade831dc0b.png)](https://uiwjs.github.io/react-color/#/editable-input)\\n\\n\\n## Install\\n\\n```bash\\nnpm i @uiw/react-color-editable-input\\n```\\n\\n## Usage\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\nimport { hsvaToHex } from '@uiw/color-convert';\\nimport EditableInput from '@uiw/react-color-editable-input';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 209, s: 36, v: 90, a: 1 });\\n return (\\n
\\n \\n
\\n );\\n}\\n```\\n\\n## Props\\n\\n```ts\\nimport React from 'react';\\nexport interface EditableInputProps extends Omit, 'onChange'> {\\n prefixCls?: string;\\n value?: string | number;\\n label?: React.ReactNode;\\n labelStyle?: React.CSSProperties;\\n placement?: 'top' | 'left' | 'bottom' | 'right';\\n inputStyle?: React.CSSProperties;\\n onChange?: (evn: React.ChangeEvent, value: string | number) => void;\\n}\\ndeclare const EditableInput: React.ForwardRefExoticComponent>;\\nexport default EditableInput;\\n```\\n\\n\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","_typeof","o","Symbol","iterator","constructor","prototype","e","_react","r","__esModule","t","_getRequireWildcardCache","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_interopRequireWildcard","_colorConvert","_reactColorEditableInput","WeakMap","_slicedToArray","Array","isArray","_arrayWithHoles","l","f","next","done","push","value","length","_iterableToArrayLimit","_arrayLikeToArray","toString","slice","name","from","test","_unsupportedIterableToArray","TypeError","_nonIterableRest","_useState2","useState","h","s","v","hsva","createElement","style","padding","label","hsvaToHex","width","alignItems","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/328.60d34335.chunk.js b/static/js/328.60d34335.chunk.js new file mode 100644 index 000000000..de8bcc7a5 --- /dev/null +++ b/static/js/328.60d34335.chunk.js @@ -0,0 +1,2 @@ +(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:()=>f});var s,o,i,n,a,c=r(114),l=r(7804),d=r(7584),h=r(3235),p=r(9424);const u=h.Ay.div(s||(s=(0,c.A)(["\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"]))),g=h.Ay.a(o||(o=(0,c.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"]))),x=h.Ay.div(i||(i=(0,c.A)(["\n padding-bottom: 120px;\n"]))),b=h.Ay.footer(n||(n=(0,c.A)(["\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"]))),m=h.Ay.div(a||(a=(0,c.A)(["\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"])));class f extends l.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,p.jsxs)(x,{className:"wmde-markdown-var",children:[(0,p.jsxs)(u,{children:[this.editorUrl&&(0,p.jsx)(g,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"}),this.example&&(0,p.jsxs)(m,{children:[(0,p.jsx)("h3",{children:"Example"}),this.example]}),(0,p.jsx)(d.A,{data:{data:r,components:t,source:e},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,p.jsx)(g,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"})]}),(0,p.jsxs)(b,{children:[(0,p.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,p.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,p.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,p.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:()=>d});var s=r(8957),o=r(7804),i=r(4590),n=r(3623),a=r(7980),c=r(9424);function l(){const{hsva:e,dispatch:t}=(0,o.useContext)(a.ob);return(0,c.jsx)("div",{style:{width:256},children:(0,c.jsx)(i.A,{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:(0,s.A)((0,s.A)({},e),r.hsva)})}})})}class d extends n.A{constructor(){super(...arguments),this.editorUrl="/packages/color-circle/README.md",this.getMdStr=()=>Promise.all([r.e(968),r.e(919)]).then(r.bind(r,2919)),this.example=(0,c.jsx)(l,{})}}},4590:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var s=r(9520),o=r(8102),i=r(9257),n=r(7804),a=r(2945),c=r(6966),l=r(9424);function d(e){var{style:t,className:r,title:s,checked:i,color:a,onClick:c,rectProps:d}=e,h=(0,n.useRef)(null),p=(0,n.useCallback)((()=>{h.current.style.transform="scale(1.2)"}),[]),u=(0,n.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,l.jsx)("div",{ref:h,onClick:c,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:a+" 0px 0px "+(i?5:0)+"px",transition:"transform 100ms ease 0s, box-shadow 100ms ease 0s"}),children:(0,l.jsx)("div",(0,o.A)({},d,{style:g}))})}var h=["prefixCls","className","color","colors","rectProps","pointProps","onChange"],p=n.forwardRef(((e,t)=>{var{prefixCls:r="w-color-circle",className:n,color:p,colors:u=[],rectProps:g={},pointProps:x={},onChange:b}=e,m=(0,i.A)(e,h),f="string"===typeof p&&(0,a.Am)(p)?(0,a.RV)(p):p||{},j=p?(0,a.D9)(f):"",w=[r,n].filter(Boolean).join(" "),v=[r+"-point",null==x?void 0:x.className].filter(Boolean).join(" ");return(0,l.jsx)(c.A,(0,o.A)({ref:t,colors:u,color:j},m,{className:w,rectRender:e=>{var t=(0,o.A)({},((0,s.A)(e),e));return(0,l.jsx)(d,(0,o.A)({},t,x,{style:(0,o.A)({},t.style,x.style),className:v,rectProps:g}))},onChange:e=>{b&&b((0,a.yW)(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.60d34335.chunk.js.map \ No newline at end of file diff --git a/static/js/328.60d34335.chunk.js.map b/static/js/328.60d34335.chunk.js.map new file mode 100644 index 000000000..b7c4da1af --- /dev/null +++ b/static/js/328.60d34335.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/328.60d34335.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,8GCHjB,MAAMU,EAAkBC,EAAAA,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AAaA,GAAUgB,EAAAA,EAAAA,IAAYD,GAAU,IAE9C,IAELtD,EAAOwD,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 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","_templateObject","_taggedTemplateLiteral","EditorUrl","a","_templateObject2","Wrapper","_templateObject3","Footer","footer","_templateObject4","Example","_templateObject5","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","concat","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Circle","colors","color","onChange","_objectSpread","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/328.ef1ad258.chunk.js b/static/js/328.ef1ad258.chunk.js deleted file mode 100644 index 35ea3d368..000000000 --- a/static/js/328.ef1ad258.chunk.js +++ /dev/null @@ -1,45 +0,0 @@ -(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%), - 0 8px 16px rgb(0 0 0 / 15%); - border-radius: 16px; - max-width: 860px; - margin: 0 auto; - padding-bottom: 20px; - position: relative; -`,n=i.Ay.a` - position: absolute; - right: 20px; - padding: 3px 8px 4px 8px; - background: #333333; - border-radius: 0 0 6px 6px; - text-decoration: initial; - color: #fff; - transition: all 0.3s; - font-size: 14px; - &:hover { - background-color: #3f51b4; - } -`,c=i.Ay.div` - padding-bottom: 120px; -`,d=i.Ay.footer` - text-align: center; - margin-top: 40px; - a { - margin: 0 5px; - } - p { - font-size: 12px; - text-align: center; - } -`,h=i.Ay.div` - border-bottom: 1px solid var(--color-border-default); - border-radius: 16px 16px 0 0; - padding: 28px; - > h3 { - 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)({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 deleted file mode 100644 index 17e8cd5dd..000000000 --- a/static/js/328.ef1ad258.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"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,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,oB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A,EACLvB,OAAQA,EACRC,MAAOyC,GACNJ,EAAO,CACRxD,UAAW8D,EACXM,WAAY7C,IACV,IAAI1C,GAAQsD,EAAAA,EAAAA,GAAS,CAAC,IAAIkC,EAAAA,EAAAA,GAA0B9C,GAAOA,IAC3D,OAAoBrB,EAAAA,EAAAA,KAAKoB,GAAOa,EAAAA,EAAAA,GAAS,CAAC,EAAGtD,EAAOyE,EAAY,CAC9D/C,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 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.bacb8bbb.chunk.js b/static/js/331.bacb8bbb.chunk.js deleted file mode 100644 index 128f44bae..000000000 --- a/static/js/331.bacb8bbb.chunk.js +++ /dev/null @@ -1,45 +0,0 @@ -(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%), - 0 8px 16px rgb(0 0 0 / 15%); - border-radius: 16px; - max-width: 860px; - margin: 0 auto; - padding-bottom: 20px; - position: relative; -`,n=i.Ay.a` - position: absolute; - right: 20px; - padding: 3px 8px 4px 8px; - background: #333333; - border-radius: 0 0 6px 6px; - text-decoration: initial; - color: #fff; - transition: all 0.3s; - font-size: 14px; - &:hover { - background-color: #3f51b4; - } -`,d=i.Ay.div` - padding-bottom: 120px; -`,c=i.Ay.footer` - text-align: center; - margin-top: 40px; - a { - margin: 0 5px; - } - p { - font-size: 12px; - text-align: center; - } -`,h=i.Ay.div` - border-bottom: 1px solid var(--color-border-default); - border-radius: 16px 16px 0 0; - padding: 28px; - > h3 { - margin: 0; - 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.bacb8bbb.chunk.js.map \ No newline at end of file diff --git a/static/js/331.bacb8bbb.chunk.js.map b/static/js/331.bacb8bbb.chunk.js.map deleted file mode 100644 index f0f6721cc..000000000 --- a/static/js/331.bacb8bbb.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"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,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,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 diff --git a/static/js/331.e4120db1.chunk.js b/static/js/331.e4120db1.chunk.js new file mode 100644 index 000000000..ff0e80505 --- /dev/null +++ b/static/js/331.e4120db1.chunk.js @@ -0,0 +1,2 @@ +(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:()=>f});var o,s,i,a,n,l=r(114),d=r(7804),c=r(7584),h=r(3235),p=r(9424);const g=h.Ay.div(o||(o=(0,l.A)(["\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"]))),m=h.Ay.a(s||(s=(0,l.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"]))),u=h.Ay.div(i||(i=(0,l.A)(["\n padding-bottom: 120px;\n"]))),x=h.Ay.footer(a||(a=(0,l.A)(["\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"]))),b=h.Ay.div(n||(n=(0,l.A)(["\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"])));class f extends d.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,p.jsxs)(u,{className:"wmde-markdown-var",children:[(0,p.jsxs)(g,{children:[this.editorUrl&&(0,p.jsx)(m,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"}),this.example&&(0,p.jsxs)(b,{children:[(0,p.jsx)("h3",{children:"Example"}),this.example]}),(0,p.jsx)(c.A,{data:{data:r,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,p.jsx)(m,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"})]}),(0,p.jsxs)(x,{children:[(0,p.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,p.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,p.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,p.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:()=>c});var o=r(8957),s=r(7804),i=r(11),a=r(3623),n=r(7980),l=r(9424);function d(){const{hsva:t,dispatch:e}=(0,s.useContext)(n.ob);return(0,l.jsx)("div",{style:{width:256},children:(0,l.jsx)(i.A,{color:t,onChange:r=>{e({hsva:(0,o.A)((0,o.A)({},t),r.hsva)})}})})}class c extends a.A{constructor(){super(...arguments),this.editorUrl="/packages/color-material/README.md",this.getMdStr=()=>Promise.all([r.e(968),r.e(716)]).then(r.bind(r,716)),this.example=(0,l.jsx)(d,{})}}},11:(t,e,r)=>{"use strict";r.d(e,{A:()=>g});var o=r(8102),s=r(9257),i=r(7804),a=r(2945),n=r(5991),l=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:m}=t,u=(0,s.A)(t,c),x="string"===typeof g&&(0,a.Am)(g)?(0,a.RV)(g):g,b=g?(0,a.D9)(x).replace(/^#/,""):"",f=(t,e)=>{"string"===typeof t&&(0,a.Am)(t)&&/(3|6)/.test(String(t.length))&&m&&m((0,a.yW)((0,a.RV)(t)))},j=(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:j},u,{children:[(0,d.jsx)(n.A,{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)(l.A,{hsva:x,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(m&&m((0,a.yW)(e)));var e}})]}))}));p.displayName="Material";const g=p}}]); +//# sourceMappingURL=331.e4120db1.chunk.js.map \ No newline at end of file diff --git a/static/js/331.e4120db1.chunk.js.map b/static/js/331.e4120db1.chunk.js.map new file mode 100644 index 000000000..12c53987c --- /dev/null +++ b/static/js/331.e4120db1.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/331.e4120db1.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,8GCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,IAAGC,IAAAA,GAAAC,EAAAA,EAAAA,GAAA,wPAkB5BC,EAAYJ,EAAAA,GAAOK,EAACC,IAAAA,GAAAH,EAAAA,EAAAA,GAAA,iRAepBI,EAAUP,EAAAA,GAAOC,IAAGO,IAAAA,GAAAL,EAAAA,EAAAA,GAAA,oCAIpBM,EAAST,EAAAA,GAAOU,OAAMC,IAAAA,GAAAR,EAAAA,EAAAA,GAAA,iJAYtBS,EAAUZ,EAAAA,GAAOC,IAAGY,IAAAA,GAAAV,EAAAA,EAAAA,GAAA,gLAUX,MAAMW,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,MAAC5B,EAAO,CAAC6B,UAAU,oBAAmBC,SAAA,EACpCF,EAAAA,EAAAA,MAACpC,EAAe,CAAAsC,SAAA,CACbf,KAAKH,YACJmB,EAAAA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AY,cAEdH,YAAYZ,EAAAA,EAAAA,GAAS,CAAC,EAAG1B,IAE3BgD,QAAQ,EACRpD,SAAUqD,IAAUC,OAvELC,EAuEkBF,EAAO5D,UAtE1CO,GAAYA,GAAS4B,EAAAA,EAAAA,IAAY2B,KADhBA,KAwEjB,OACC,IAELzD,EAAS0D,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","_templateObject","_taggedTemplateLiteral","EditorUrl","a","_templateObject2","Wrapper","_templateObject3","Footer","footer","_templateObject4","Example","_templateObject5","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","concat","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Material","color","onChange","_objectSpread","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.5c59c8c1.chunk.js b/static/js/369.5c59c8c1.chunk.js deleted file mode 100644 index 2e45fd315..000000000 --- a/static/js/369.5c59c8c1.chunk.js +++ /dev/null @@ -1,45 +0,0 @@ -(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%), - 0 8px 16px rgb(0 0 0 / 15%); - border-radius: 16px; - max-width: 860px; - margin: 0 auto; - padding-bottom: 20px; - position: relative; -`,n=o.Ay.a` - position: absolute; - right: 20px; - padding: 3px 8px 4px 8px; - background: #333333; - border-radius: 0 0 6px 6px; - text-decoration: initial; - color: #fff; - transition: all 0.3s; - font-size: 14px; - &:hover { - background-color: #3f51b4; - } -`,h=o.Ay.div` - padding-bottom: 120px; -`,l=o.Ay.footer` - text-align: center; - margin-top: 40px; - a { - margin: 0 5px; - } - p { - font-size: 12px; - text-align: center; - } -`,c=o.Ay.div` - border-bottom: 1px solid var(--color-border-default); - border-radius: 16px 16px 0 0; - padding: 28px; - > h3 { - margin: 0; - 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.5c59c8c1.chunk.js.map \ No newline at end of file diff --git a/static/js/369.5c59c8c1.chunk.js.map b/static/js/369.5c59c8c1.chunk.js.map deleted file mode 100644 index 3a3860d19..000000000 --- a/static/js/369.5c59c8c1.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"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,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A0EF,OAAO,UAASF,UAChGC,EAAAA,EAAAA,KAAA,OAAKQ,IAAI,oDAAoDC,IAAI,qBAEnET,EAAAA,EAAAA,KAAA,KAAGG,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 diff --git a/static/js/369.f08708ec.chunk.js b/static/js/369.f08708ec.chunk.js new file mode 100644 index 000000000..251b0bd08 --- /dev/null +++ b/static/js/369.f08708ec.chunk.js @@ -0,0 +1,2 @@ +(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:()=>j});var s,i,n,o,a,d=r(114),c=r(7804),h=r(7584),l=r(3235),p=r(9424);const g=l.Ay.div(s||(s=(0,d.A)(["\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"]))),u=l.Ay.a(i||(i=(0,d.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"]))),x=l.Ay.div(n||(n=(0,d.A)(["\n padding-bottom: 120px;\n"]))),m=l.Ay.footer(o||(o=(0,d.A)(["\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"]))),b=l.Ay.div(a||(a=(0,d.A)(["\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"])));class j extends c.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,p.jsxs)(x,{className:"wmde-markdown-var",children:[(0,p.jsxs)(g,{children:[this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"}),this.example&&(0,p.jsxs)(b,{children:[(0,p.jsx)("h3",{children:"Example"}),this.example]}),(0,p.jsx)(h.A,{data:{data:r,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"})]}),(0,p.jsxs)(m,{children:[(0,p.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,p.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,p.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,p.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.f08708ec.chunk.js.map \ No newline at end of file diff --git a/static/js/369.f08708ec.chunk.js.map b/static/js/369.f08708ec.chunk.js.map new file mode 100644 index 000000000..bbe4bc715 --- /dev/null +++ b/static/js/369.f08708ec.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/369.f08708ec.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,8GCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,IAAGC,IAAAA,GAAAC,EAAAA,EAAAA,GAAA,wPAkB5BC,EAAYJ,EAAAA,GAAOK,EAACC,IAAAA,GAAAH,EAAAA,EAAAA,GAAA,iRAepBI,EAAUP,EAAAA,GAAOC,IAAGO,IAAAA,GAAAL,EAAAA,EAAAA,GAAA,oCAIpBM,EAAST,EAAAA,GAAOU,OAAMC,IAAAA,GAAAR,EAAAA,EAAAA,GAAA,iJAYtBS,EAAUZ,EAAAA,GAAO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KAAA,KAAGG,KAAK,8CAA8CF,OAAO,UAASF,UACpEC,EAAAA,EAAAA,KAAA,OAAKS,IAAI,yDAAyDC,IAAI,qBAExEV,EAAAA,EAAAA,KAAA,KAAGG,KAAK,kDAAkDF,OAAO,UAASF,UACxEC,EAAAA,EAAAA,KAAA,OAAKS,IAAI,4DAA4DC,IAAI,oBAE3EV,EAAAA,EAAAA,KAAA,KAAGG,KAAK,gDAAgDF,OAAO,UAASF,UACtEC,EAAAA,EAAAA,KAAA,OAAKS,IAAI,8DAA8DC,IAAI,sBAE7EV,EAAAA,EAAAA,KAAA,KAAGG,KAAK,uCAAuCF,OAAO,UAASF,UAC7DC,EAAAA,EAAAA,KAAA,OAAKS,IAAI,0CAA0CC,IAAI,mBAEzDV,EAAAA,EAAAA,KAAA,KAAGG,KAAK,iDAAiDF,OAAO,UAASF,UACvEC,EAAAA,EAAAA,KAAA,OAAKS,IAAI,oDAAoDC,IAAI,WAEnEb,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,SAAAiC,WAAA,KACtC9B,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","_templateObject","_taggedTemplateLiteral","EditorUrl","a","_templateObject2","Wrapper","_templateObject3","Footer","footer","_templateObject4","Example","_templateObject5","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","concat","MarkdownPreviewExample","style","border","boxShadow","src","alt","arguments"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/404.c460be11.chunk.js b/static/js/404.c460be11.chunk.js new file mode 100644 index 000000000..985c5bfd8 --- /dev/null +++ b/static/js/404.c460be11.chunk.js @@ -0,0 +1,2 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[404],{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:()=>j});var s,i,n,o,a,h=r(114),d=r(7804),l=r(7584),c=r(3235),p=r(9424);const g=c.Ay.div(s||(s=(0,h.A)(["\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"]))),u=c.Ay.a(i||(i=(0,h.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"]))),x=c.Ay.div(n||(n=(0,h.A)(["\n padding-bottom: 120px;\n"]))),m=c.Ay.footer(o||(o=(0,h.A)(["\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"]))),b=c.Ay.div(a||(a=(0,h.A)(["\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"])));class j extends d.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,p.jsxs)(x,{className:"wmde-markdown-var",children:[(0,p.jsxs)(g,{children:[this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"}),this.example&&(0,p.jsxs)(b,{children:[(0,p.jsx)("h3",{children:"Example"}),this.example]}),(0,p.jsx)(l.A,{data:{data:r,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"})]}),(0,p.jsxs)(m,{children:[(0,p.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,p.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,p.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,p.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},3451:(t,e,r)=>{"use strict";r.r(e),r.d(e,{Component:()=>m});var s=r(8957),i=r(7804),n=r(8102),o=r(9257),a=r(2945),h=r(1636),d=r(9424),l=["prefixCls","className","onChange","direction","hsva"],c=i.forwardRef(((t,e)=>{var{prefixCls:r="w-color-saturation",className:s,onChange:i,direction:c="horizontal",hsva:p}=t,g=(0,o.A)(t,l),u=(0,a.dR)((0,n.A)({},p,{a:1,v:100}));return(0,d.jsx)(h.Ay,(0,n.A)({ref:e},g,{className:r+" "+(s||""),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)=>{i&&i({v:"horizontal"===c?100-100*e.left:100-100*e.top})}}))}));c.displayName="ShadeSlider";const p=c;var g=r(3623),u=r(7980);function x(){const{hsva:t,dispatch:e}=(0,i.useContext)(u.ob);return(0,d.jsx)("div",{style:{width:256},children:(0,d.jsx)(p,{hsva:t,onChange:r=>{e({hsva:(0,s.A)((0,s.A)({},t),r)})}})})}class m extends g.A{constructor(){super(...arguments),this.editorUrl="/packages/color-shade-slider/README.md",this.getMdStr=()=>Promise.all([r.e(968),r.e(256)]).then(r.bind(r,6256)),this.example=(0,d.jsx)(x,{})}}}}]); +//# sourceMappingURL=404.c460be11.chunk.js.map \ No newline at end of file diff --git a/static/js/404.c460be11.chunk.js.map b/static/js/404.c460be11.chunk.js.map new file mode 100644 index 000000000..80c863edc --- /dev/null +++ b/static/js/404.c460be11.chun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IAAa,KAKvD,CAEO,MAAM9D,UAAkBD,EAAAA,EAASE,WAAAA,GAAA,SAAA+D,WAAA,KACtC5D,UAAY,yCAAyC,KACrDC,SAAW,IAAM,sDAAkD,KACnEC,SAAWiB,EAAAA,EAAAA,KAAC1B,EAAO,GAAG,E","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","../../packages/color-shade-slider/esm/index.js","pages/shade-slider/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 _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;","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"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","_templateObject","_taggedTemplateLiteral","EditorUrl","a","_templateObject2","Wrapper","_templateObject3","Footer","footer","_templateObject4","Example","_templateObject5","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","concat","MarkdownPreviewExample","style","border","boxShadow","src","alt","_excluded","ShadeSlider","React","ref","prefixCls","onChange","_onChange","direction","hsva","other","_objectWithoutPropertiesLoose","colorFrom","hsvaToHslaString","_extends","v","Alpha","h","s","background","_","interaction","left","top","displayName","dispatch","useContext","Context","width","newShade","_objectSpread","arguments"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/428.266fc200.chunk.js b/static/js/428.266fc200.chunk.js new file mode 100644 index 000000000..1b6889fd6 --- /dev/null +++ b/static/js/428.266fc200.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[428],{1486:(e,t,r)=>{var n=r(6784).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(6651)),a=n(r(453)),i=n(r(7804)),u=r(7604),l=r(9424),c=["prefixCls","className","style","onChange","color","lightness"],s=i.default.forwardRef((function(e,t){var r=e.prefixCls,n=void 0===r?"w-color-slider":r,i=e.className,s=e.style,f=e.onChange,d=e.color,p=e.lightness,y=void 0===p?[80,65,50,35,20]:p,v=(0,a.default)(e,c),b="string"===typeof d&&(0,u.validHex)(d)?(0,u.hexToHsva)(d):d||{};return(0,l.jsx)("div",(0,o.default)((0,o.default)({ref:t,style:(0,o.default)({display:"flex"},s),className:[n,i||""].filter(Boolean).join(" ")},v),{},{children:y.map((function(e,t){var r=(0,u.hsvaToHsla)(b),n="hsl(".concat(r.h,", 50%, ").concat(e,"%)"),a=n===(0,u.hsvaToHslString)(b);return(0,l.jsx)("div",{style:{paddingLeft:1,width:"".concat(100/y.length,"%"),boxSizing:"border-box"},children:(0,l.jsx)("div",{onClick:function(e){return function(e,t){f&&f((0,u.color)((0,u.hslStringToHsva)(e)),t)}(n,e)},style:(0,o.default)({backgroundColor:n,height:12,cursor:"pointer"},a?{borderRadius:2,transform:"scale(1, 1.5)"}:{})})},t)}))}))}));s.displayName="Slider";t.default=s;e.exports=t.default},7193:(e,t,r)=>{var n=r(6784).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Pointer=void 0;var o=n(r(6651)),a=(n(r(7804)),r(9424));t.Pointer=function(e){var t=e.className,r=e.color,n=e.left,i=e.top,u=e.style,l=e.prefixCls,c=(0,o.default)((0,o.default)({},u),{},{position:"absolute",top:i,left:n}),s="".concat(l,"-pointer ").concat(t||"");return(0,a.jsx)("div",{className:s,style:c,children:(0,a.jsx)("div",{className:"".concat(l,"-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,a.jsx)("div",{style:{inset:0,borderRadius:"50%",position:"absolute",backgroundColor:r}})})})}},7468:(e,t,r)=>{var n=r(6784).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(6651)),a=n(r(453)),i=n(r(7804)),u=r(7604),l=n(r(7611)),c=r(7193),s=r(8213),f=r(9424),d=["prefixCls","radius","pointer","className","style","width","height","oval","direction","angle","color","onChange"],p=i.default.forwardRef((function(e,t){var r=e.prefixCls,n=void 0===r?"w-color-wheel":r,i=(e.radius,e.pointer),p=e.className,y=e.style,v=e.width,b=void 0===v?200:v,h=e.height,m=void 0===h?200:h,g=e.oval,_=e.direction,w=void 0===_?"anticlockwise":_,j=e.angle,O=void 0===j?180:j,S=e.color,P=e.onChange,x=(0,a.default)(e,d),C="string"===typeof S&&(0,u.validHex)(S)?(0,u.hexToHsva)(S):S||{},R=S?(0,u.hsvaToHex)(C):"",k=(0,s.getWheelHandlePosition)({width:b},C),M={top:"0",left:"0",color:R},D=function(e,t){var r=(0,s.getWheelValueFromInput)({width:b},b-e.x,m-e.y),n={h:r.h,s:r.s,v:C.v,a:C.a};P&&P((0,u.color)(n))},A={zIndex:1,transform:"translate(".concat(k.x,"px, ").concat(k.y,"px) ").concat("x"===g||"X"===g?"scaleY(2)":"y"===g||"Y"===g?"scaleX(2)":"")},E=i&&"function"===typeof i?i((0,o.default)({prefixCls:n,style:A},M)):(0,f.jsx)(c.Pointer,(0,o.default)({prefixCls:n,style:A},M));return(0,f.jsxs)(l.default,(0,o.default)((0,o.default)({className:[n,p||""].filter(Boolean).join(" ")},x),{},{style:(0,o.default)({position:"relative",width:b,transform:"x"===g||"X"===g?"scaleY(0.5)":"y"===g||"Y"===g?"scaleX(0.5)":"",height:m},y),ref:t,onMove:D,onDown:D,children:[E,(0,f.jsx)("div",{style:{position:"absolute",borderRadius:"50%",background:"anticlockwise"===w?"conic-gradient(red, yellow, lime, aqua, blue, magenta, red)":"conic-gradient(red, magenta, blue, aqua, lime, yellow, red)",transform:"rotateZ(".concat(O+90,"deg)"),inset:0}}),(0,f.jsx)("div",{style:{position:"absolute",borderRadius:"50%",background:"radial-gradient(circle closest-side, #fff, transparent)",inset:0}}),(0,f.jsx)("div",{style:{backgroundColor:"#000",borderRadius:"50%",position:"absolute",inset:0,opacity:"number"===typeof C.v?1-C.v/100:0}})]}))}));p.displayName="Wheel";t.default=p;e.exports=t.default},8213:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getHandleRange=i,t.getWheelDimensions=a,t.getWheelHandlePosition=function(e,t){var n=a(e),o=n.cx,l=n.cy,c=i(e),s=(180+u(e,t.h,!0))*(r/360),f=t.s/100*c,d="clockwise"===e.direction?-1:1;return{x:o+f*Math.cos(s)*d,y:l+f*Math.sin(s)*d}},t.getWheelValueFromInput=function(e,t,n){var l=a(e),c=l.cx,s=l.cy,f=i(e);t=c-t,n=s-n;var d=u(e,Math.atan2(-n,-t)*(360/r)),p=Math.min(o(t,n),f);return{h:Math.round(d),s:Math.round(100/f*p)}},t.isInputInsideWheel=function(e,t,r){var n=a(e),i=n.cx,u=n.cy,l=n.width/2;return o(i-t,u-r){var n=r(6784).default,o=r(147).default;Object.defineProperty(t,"__esModule",{value:!0});var a={};t.default=void 0;var i=n(r(6651)),u=n(r(8821)),l=n(r(453)),c=o(r(7804)),s=r(1974);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(a,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var f=r(9424),d=["prefixCls","className","onMove","onDown"],p=c.default.forwardRef((function(e,t){var r=e.prefixCls,n=void 0===r?"w-color-interactive":r,o=e.className,a=e.onMove,p=e.onDown,y=(0,l.default)(e,d),v=(0,c.useRef)(null),b=(0,c.useRef)(!1),h=(0,c.useState)(!1),m=(0,u.default)(h,2),g=m[0],_=m[1],w=(0,s.useEventCallback)(a),j=(0,s.useEventCallback)(p),O=(0,c.useCallback)((function(e){(0,s.preventDefaultMove)(e),((0,s.isTouch)(e)?e.touches.length>0:e.buttons>0)&&v.current?w&&w((0,s.getRelativePosition)(v.current,e),e):_(!1)}),[w]),S=(0,c.useCallback)((function(){return _(!1)}),[]),P=(0,c.useCallback)((function(e){var t=e?window.addEventListener:window.removeEventListener;t(b.current?"touchmove":"mousemove",O),t(b.current?"touchend":"mouseup",S)}),[]);(0,c.useEffect)((function(){return P(g),function(){g&&P(!1)}}),[g,P]);var x=(0,c.useCallback)((function(e){(0,s.preventDefaultMove)(e.nativeEvent),function(e){return!(b.current&&!(0,s.isTouch)(e))&&(b.current=(0,s.isTouch)(e),!0)}(e.nativeEvent)&&(j&&j((0,s.getRelativePosition)(v.current,e.nativeEvent),e.nativeEvent),_(!0))}),[j]);return(0,f.jsx)("div",(0,i.default)((0,i.default)({},y),{},{className:[n,o||""].filter(Boolean).join(" "),style:(0,i.default)((0,i.default)({},y.style),{},{touchAction:"none"}),ref:v,tabIndex:0,onMouseDown:x,onTouchStart:x}))}));p.displayName="Interactive";t.default=p},1974:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.preventDefaultMove=t.isTouch=t.getRelativePosition=t.clamp=void 0,t.useEventCallback=function(e){var t=(0,n.useRef)(e);return(0,n.useEffect)((function(){t.current=e})),(0,n.useCallback)((function(e,r){return t.current&&t.current(e,r)}),[])};var n=r(7804);var o=t.isTouch=function(e){return"touches"in e},a=(t.preventDefaultMove=function(e){!o(e)&&e.preventDefault&&e.preventDefault()},t.clamp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e>r?r:e{r.r(t),r.d(t,{default:()=>n});const n={components:{21:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,n=function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=e(t)&&"function"!=typeof t)return{default:t};var n=a(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&{}.hasOwnProperty.call(t,u)){var l=i?Object.getOwnPropertyDescriptor(t,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=t[u]}return o.default=t,n&&n.set(t,o),o}(r(7804)),o=(t=r(1486))&&t.__esModule?t:{default:t};function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 0,\n v: 68,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement(_reactColorSlider["default"], {\n color: hsva,\n onChange: function onChange(color) {\n setHsva(_objectSpread(_objectSpread({}, hsva), color.hsv));\n }\n });\n};',language:"tsx",value:"import React, { useState } from 'react';\nimport Slider from '@uiw/react-color-slider';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\n return (\n {\n setHsva({ ...hsva, ...color.hsv });\n }}\n />\n );\n}"},38:{name:38,meta:{},code:'"use strict";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require("react"));\nvar _reactColorSlider = _interopRequireDefault(require("@uiw/react-color-slider"));\nvar _reactColorWheel = _interopRequireDefault(require("@uiw/react-color-wheel"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }\nfunction _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }\nfunction _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); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 0,\n v: 68,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_reactColorSlider["default"], {\n color: hsva,\n style: {\n paddingBottom: 10\n },\n onChange: function onChange(color) {\n setHsva(_objectSpread(_objectSpread({}, hsva), color.hsv));\n }\n }), /*#__PURE__*/_react["default"].createElement(_reactColorWheel["default"], {\n color: hsva,\n onChange: function onChange(color) {\n return setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\n }\n }));\n};',language:"tsx",value:"import React, { useState } from 'react';\nimport Slider from '@uiw/react-color-slider';\nimport Wheel from '@uiw/react-color-wheel';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\n return (\n <>\n {\n setHsva({ ...hsva, ...color.hsv });\n }}\n />\n setHsva({ ...hsva, ...color.hsva })}\n />\n \n );\n}"}},source:"React Color Slider\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-slider)](https://bundlephobia.com/package/@uiw/react-color-slider) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-slider.svg)](https://www.npmjs.com/package/@uiw/react-color-slider) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-slider/file/README.md)\n\nSlider Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\n\n\x3c!--rehype:ignore:start--\x3e\n[![react-color-slider](https://user-images.githubusercontent.com/1680273/125950115-1ef0c47b-e856-481a-b57e-d8168d41872b.png)](https://uiwjs.github.io/react-color/#/slider)\n\x3c!--rehype:ignore:end--\x3e\n\n## Install\n\n```bash\nnpm i @uiw/react-color-slider\n```\n\n## Usage\n\n```tsx mdx:preview\nimport React, { useState } from 'react';\nimport Slider from '@uiw/react-color-slider';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\n return (\n {\n setHsva({ ...hsva, ...color.hsv });\n }}\n />\n );\n}\n```\n\n```tsx mdx:preview\nimport React, { useState } from 'react';\nimport Slider from '@uiw/react-color-slider';\nimport Wheel from '@uiw/react-color-wheel';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\n return (\n <>\n {\n setHsva({ ...hsva, ...color.hsv });\n }}\n />\n setHsva({ ...hsva, ...color.hsva })}\n />\n \n );\n}\n```\n\n## Props\n\n```ts\nimport React from 'react';\nimport { ColorResult, HsvaColor } from '@uiw/color-convert';\nexport interface SliderProps extends Omit, 'onChange' | 'color'> {\n prefixCls?: string;\n color?: string | HsvaColor;\n lightness?: number[];\n onChange?: (color: ColorResult, evn: React.MouseEvent) => void;\n}\ndeclare const Slider: React.ForwardRefExoticComponent>;\nexport default Slider;\n```\n\n\x3c!--footer-dividing--\x3e\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=428.266fc200.chunk.js.map \ No newline at end of file diff --git a/static/js/428.266fc200.chunk.js.map b/static/js/428.266fc200.chunk.js.map new file mode 100644 index 000000000..e44a427d8 --- /dev/null +++ b/static/js/428.266fc200.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/428.266fc200.chunk.js","mappings":"iGAEA,IAAIA,EAAyBC,EAAAA,MAAAA,QAC7BC,OAAOC,eAAeC,EAAS,aAAc,CAC3CC,OAAO,IAETD,EAAiB,aAAI,EACrB,IAAIE,EAAiBN,EAAuBC,EAAQ,OAChDM,EAA4BP,EAAuB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CACJ,KAAQ,GACR,KAAQ,CAAC,EACT,KAAQ,qiJACR,SAAY,MACZ,MAAS,oVAEX,GAAM,CACJ,KAAQ,GACR,KAAQ,CAAC,EACT,KAAQ,w9JACR,SAAY,MACZ,MAAS,ujBAGTC,OAAQ,60FACRC,SAAS,GACTC,aAAa,G","sources":["../../packages/color-slider/cjs/index.js","../../packages/color-wheel/cjs/Pointer.js","../../packages/color-wheel/cjs/index.js","../../packages/color-wheel/cjs/utils.js","../../packages/drag-event-interactive/cjs/index.js","../../packages/drag-event-interactive/cjs/utils.js","../../packages/color-slider/README.md"],"sourcesContent":["\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"onChange\", \"color\", \"lightness\"];\nvar Slider = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-slider' : _props$prefixCls,\n className = props.className,\n style = props.style,\n onChange = props.onChange,\n color = props.color,\n _props$lightness = props.lightness,\n lightness = _props$lightness === void 0 ? [80, 65, 50, 35, 20] : _props$lightness,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var hsva = typeof color === 'string' && (0, _colorConvert.validHex)(color) ? (0, _colorConvert.hexToHsva)(color) : color || {};\n var handleClick = function handleClick(hslStr, evn) {\n onChange && onChange((0, _colorConvert.color)((0, _colorConvert.hslStringToHsva)(hslStr)), evn);\n };\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n ref: ref,\n style: (0, _objectSpread2[\"default\"])({\n display: 'flex'\n }, style),\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other), {}, {\n children: lightness.map(function (num, idx) {\n var hsl = (0, _colorConvert.hsvaToHsla)(hsva);\n var hslStr = \"hsl(\".concat(hsl.h, \", 50%, \").concat(num, \"%)\");\n var checked = hslStr === (0, _colorConvert.hsvaToHslString)(hsva);\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", {\n style: {\n paddingLeft: 1,\n width: \"\".concat(100 / lightness.length, \"%\"),\n boxSizing: 'border-box'\n },\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", {\n onClick: function onClick(evn) {\n return handleClick(hslStr, evn);\n },\n style: (0, _objectSpread2[\"default\"])({\n backgroundColor: hslStr,\n height: 12,\n cursor: 'pointer'\n }, checked ? {\n borderRadius: 2,\n transform: 'scale(1, 1.5)'\n } : {})\n })\n }, idx);\n })\n }));\n});\nSlider.displayName = 'Slider';\nvar _default = exports[\"default\"] = Slider;\nmodule.exports = exports.default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Pointer = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _jsxRuntime = require(\"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';\nvar Pointer = exports.Pointer = function Pointer(_ref) {\n var className = _ref.className,\n color = _ref.color,\n left = _ref.left,\n top = _ref.top,\n style = _ref.style,\n prefixCls = _ref.prefixCls;\n var styleWarp = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, style), {}, {\n position: 'absolute',\n top: top,\n left: left\n });\n var cls = \"\".concat(prefixCls, \"-pointer \").concat(className || '');\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", {\n className: cls,\n style: styleWarp,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", {\n className: \"\".concat(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__*/(0, _jsxRuntime.jsx)(\"div\", {\n style: {\n inset: 0,\n borderRadius: '50%',\n position: 'absolute',\n backgroundColor: color\n }\n })\n })\n });\n};","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactDragEventInteractive = _interopRequireDefault(require(\"@uiw/react-drag-event-interactive\"));\nvar _Pointer = require(\"./Pointer\");\nvar _utils = require(\"./utils\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"radius\", \"pointer\", \"className\", \"style\", \"width\", \"height\", \"oval\", \"direction\", \"angle\", \"color\", \"onChange\"];\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[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-wheel' : _props$prefixCls,\n _props$radius = props.radius,\n radius = _props$radius === void 0 ? 0 : _props$radius,\n pointer = props.pointer,\n className = props.className,\n style = props.style,\n _props$width = props.width,\n width = _props$width === void 0 ? 200 : _props$width,\n _props$height = props.height,\n height = _props$height === void 0 ? 200 : _props$height,\n oval = props.oval,\n _props$direction = props.direction,\n direction = _props$direction === void 0 ? 'anticlockwise' : _props$direction,\n _props$angle = props.angle,\n angle = _props$angle === void 0 ? 180 : _props$angle,\n color = props.color,\n onChange = props.onChange,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var hsva = typeof color === 'string' && (0, _colorConvert.validHex)(color) ? (0, _colorConvert.hexToHsva)(color) : color || {};\n var hex = color ? (0, _colorConvert.hsvaToHex)(hsva) : '';\n var positions = (0, _utils.getWheelHandlePosition)({\n width: width\n }, hsva);\n var comProps = {\n top: '0',\n left: '0',\n color: hex\n };\n var handleChange = function handleChange(interaction, event) {\n var result = (0, _utils.getWheelValueFromInput)({\n width: 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((0, _colorConvert.color)(handleHsva));\n };\n var pointerStyle = {\n zIndex: 1,\n transform: \"translate(\".concat(positions.x, \"px, \").concat(positions.y, \"px) \").concat(oval === 'x' || oval === 'X' ? 'scaleY(2)' : oval === 'y' || oval === 'Y' ? 'scaleX(2)' : '')\n };\n var pointerElement = pointer && typeof pointer === 'function' ? pointer((0, _objectSpread2[\"default\"])({\n prefixCls: prefixCls,\n style: pointerStyle\n }, comProps)) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Pointer.Pointer, (0, _objectSpread2[\"default\"])({\n prefixCls: prefixCls,\n style: pointerStyle\n }, comProps));\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactDragEventInteractive[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other), {}, {\n style: (0, _objectSpread2[\"default\"])({\n position: 'relative',\n width: width,\n transform: oval === 'x' || oval === 'X' ? 'scaleY(0.5)' : oval === 'y' || oval === 'Y' ? 'scaleX(0.5)' : '',\n height: height\n }, style),\n ref: ref,\n onMove: handleChange,\n onDown: handleChange,\n children: [pointerElement, /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", {\n style: {\n position: 'absolute',\n borderRadius: '50%',\n background: direction === 'anticlockwise' ? HUE_GRADIENT_CLOCKWISE : HUE_GRADIENT_ANTICLOCKWISE,\n transform: \"rotateZ(\".concat(angle + 90, \"deg)\"),\n inset: 0\n }\n }), /*#__PURE__*/(0, _jsxRuntime.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__*/(0, _jsxRuntime.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';\nvar _default = exports[\"default\"] = Wheel;\nmodule.exports = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getHandleRange = getHandleRange;\nexports.getWheelDimensions = getWheelDimensions;\nexports.getWheelHandlePosition = getWheelHandlePosition;\nexports.getWheelValueFromInput = getWheelValueFromInput;\nexports.isInputInsideWheel = isInputInsideWheel;\nexports.mod = void 0;\nexports.translateWheelAngle = translateWheelAngle;\nvar 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 */\nvar mod = exports.mod = function mod(a, n) {\n return (a % n + n) % n;\n};\n\n/** distance between points (x, y) and (0, 0) */\nvar dist = function dist(x, y) {\n return Math.sqrt(x * x + y * y);\n};\n\n/**\n * Get the point as the center of the wheel\n */\nfunction getWheelDimensions(_ref) {\n var _ref$width = _ref.width,\n width = _ref$width === void 0 ? 0 : _ref$width;\n var r = width / 2;\n return {\n width: 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 */\nfunction isInputInsideWheel(props, x, y) {\n var _getWheelDimensions = getWheelDimensions(props),\n cx = _getWheelDimensions.cx,\n cy = _getWheelDimensions.cy,\n width = _getWheelDimensions.width;\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 */\nfunction getWheelHandlePosition(props, hsv) {\n var _getWheelDimensions2 = getWheelDimensions(props),\n cx = _getWheelDimensions2.cx,\n cy = _getWheelDimensions2.cy;\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 */\nfunction getHandleRange(_ref2) {\n var _ref2$width = _ref2.width,\n width = _ref2$width === void 0 ? 0 : _ref2$width;\n return width / 2;\n}\n\n/**\n * Translate an angle according to wheelAngle and wheelDirection\n */\nfunction 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 */\nfunction getWheelValueFromInput(props, x, y) {\n var _getWheelDimensions3 = getWheelDimensions(props),\n cx = _getWheelDimensions3.cx,\n cy = _getWheelDimensions3.cy;\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}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _exportNames = {};\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _slicedToArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/slicedToArray\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _utils = require(\"./utils\");\nObject.keys(_utils).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _utils[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _utils[key];\n }\n });\n});\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"className\", \"onMove\", \"onDown\"];\nvar Interactive = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-interactive' : _props$prefixCls,\n className = props.className,\n onMove = props.onMove,\n onDown = props.onDown,\n reset = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var container = (0, _react.useRef)(null);\n var hasTouched = (0, _react.useRef)(false);\n var _useState = (0, _react.useState)(false),\n _useState2 = (0, _slicedToArray2[\"default\"])(_useState, 2),\n isDragging = _useState2[0],\n setDragging = _useState2[1];\n var onMoveCallback = (0, _utils.useEventCallback)(onMove);\n var onKeyCallback = (0, _utils.useEventCallback)(onDown);\n\n // Prevent mobile browsers from handling mouse events (conflicting with touch ones).\n // If we detected a touch interaction before, we prefer reacting to touch events only.\n var isValid = function isValid(event) {\n if (hasTouched.current && !(0, _utils.isTouch)(event)) return false;\n hasTouched.current = (0, _utils.isTouch)(event);\n return true;\n };\n var handleMove = (0, _react.useCallback)(function (event) {\n (0, _utils.preventDefaultMove)(event);\n // If user moves the pointer outside of the window or iframe bounds and release it there,\n // `mouseup`/`touchend` won't be fired. In order to stop the picker from following the cursor\n // after the user has moved the mouse/finger back to the document, we check `event.buttons`\n // and `event.touches`. It allows us to detect that the user is just moving his pointer\n // without pressing it down\n var isDown = (0, _utils.isTouch)(event) ? event.touches.length > 0 : event.buttons > 0;\n if (isDown && container.current) {\n onMoveCallback && onMoveCallback((0, _utils.getRelativePosition)(container.current, event), event);\n } else {\n setDragging(false);\n }\n }, [onMoveCallback]);\n var handleMoveEnd = (0, _react.useCallback)(function () {\n return setDragging(false);\n }, []);\n var toggleDocumentEvents = (0, _react.useCallback)(function (state) {\n var toggleEvent = state ? window.addEventListener : window.removeEventListener;\n toggleEvent(hasTouched.current ? 'touchmove' : 'mousemove', handleMove);\n toggleEvent(hasTouched.current ? 'touchend' : 'mouseup', handleMoveEnd);\n }, []);\n (0, _react.useEffect)(function () {\n toggleDocumentEvents(isDragging);\n return function () {\n isDragging && toggleDocumentEvents(false);\n };\n }, [isDragging, toggleDocumentEvents]);\n var handleMoveStart = (0, _react.useCallback)(function (event) {\n (0, _utils.preventDefaultMove)(event.nativeEvent);\n if (!isValid(event.nativeEvent)) return;\n onKeyCallback && onKeyCallback((0, _utils.getRelativePosition)(container.current, event.nativeEvent), event.nativeEvent);\n setDragging(true);\n }, [onKeyCallback]);\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, reset), {}, {\n className: [prefixCls, className || ''].filter(Boolean).join(' '),\n style: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, reset.style), {}, {\n touchAction: 'none'\n }),\n ref: container,\n tabIndex: 0,\n onMouseDown: handleMoveStart,\n onTouchStart: handleMoveStart\n }));\n});\nInteractive.displayName = 'Interactive';\nvar _default = exports[\"default\"] = Interactive;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.preventDefaultMove = exports.isTouch = exports.getRelativePosition = exports.clamp = void 0;\nexports.useEventCallback = useEventCallback;\nvar _react = require(\"react\");\n// Saves incoming handler to the ref in order to avoid \"useCallback hell\"\nfunction useEventCallback(handler) {\n var callbackRef = (0, _react.useRef)(handler);\n (0, _react.useEffect)(function () {\n callbackRef.current = handler;\n });\n return (0, _react.useCallback)(function (value, event) {\n return callbackRef.current && callbackRef.current(value, event);\n }, []);\n}\n\n// Check if an event was triggered by touch\nvar isTouch = exports.isTouch = function isTouch(event) {\n return 'touches' in event;\n};\n\n// Browsers introduced an intervention, making touch events passive by default.\n// This workaround removes `preventDefault` call from the touch handlers.\n// https://github.com/facebook/react/issues/19651\nvar preventDefaultMove = exports.preventDefaultMove = function preventDefaultMove(event) {\n !isTouch(event) && event.preventDefault && event.preventDefault();\n};\n// Clamps a value between an upper and lower bound.\n// We use ternary operators because it makes the minified code\n// 2 times shorter then `Math.min(Math.max(a,b),c)`\nvar clamp = exports.clamp = function clamp(number) {\n var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n return number > max ? max : number < min ? min : number;\n};\n// Returns a relative position of the pointer inside the node's bounding box\nvar getRelativePosition = exports.getRelativePosition = function getRelativePosition(node, event) {\n var rect = node.getBoundingClientRect();\n\n // Get user's pointer position from `touches` array if it's a `TouchEvent`\n var pointer = isTouch(event) ? event.touches[0] : event;\n return {\n left: clamp((pointer.pageX - (rect.left + window.pageXOffset)) / rect.width),\n top: clamp((pointer.pageY - (rect.top + window.pageYOffset)) / rect.height),\n width: rect.width,\n height: rect.height,\n x: pointer.pageX - (rect.left + window.pageXOffset),\n y: pointer.pageY - (rect.top + window.pageYOffset)\n };\n};","\nexport default {\n components: { 21: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactColorSlider = _interopRequireDefault(require(\"@uiw/react-color-slider\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _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); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 0,\n v: 68,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(_reactColorSlider[\"default\"], {\n color: hsva,\n onChange: function onChange(color) {\n setHsva(_objectSpread(_objectSpread({}, hsva), color.hsv));\n }\n });\n}; })(),38: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactColorSlider = _interopRequireDefault(require(\"@uiw/react-color-slider\"));\nvar _reactColorWheel = _interopRequireDefault(require(\"@uiw/react-color-wheel\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _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); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 0,\n v: 68,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(_reactColorSlider[\"default\"], {\n color: hsva,\n style: {\n paddingBottom: 10\n },\n onChange: function onChange(color) {\n setHsva(_objectSpread(_objectSpread({}, hsva), color.hsv));\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactColorWheel[\"default\"], {\n color: hsva,\n onChange: function onChange(color) {\n return setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\n }\n }));\n}; })(), },\n data: {\n \"21\": {\n \"name\": 21,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactColorSlider = _interopRequireDefault(require(\\\"@uiw/react-color-slider\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \\\"string\\\"); return \\\"symbol\\\" == _typeof(i) ? i : i + \\\"\\\"; }\\nfunction _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); }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nreturn function Demo() {\\n var _useState = (0, _react.useState)({\\n h: 0,\\n s: 0,\\n v: 68,\\n a: 1\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n hsva = _useState2[0],\\n setHsva = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorSlider[\\\"default\\\"], {\\n color: hsva,\\n onChange: function onChange(color) {\\n setHsva(_objectSpread(_objectSpread({}, hsva), color.hsv));\\n }\\n });\\n};\",\n \"language\": \"tsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport Slider from '@uiw/react-color-slider';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\\n return (\\n {\\n setHsva({ ...hsva, ...color.hsv });\\n }}\\n />\\n );\\n}\"\n },\n \"38\": {\n \"name\": 38,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactColorSlider = _interopRequireDefault(require(\\\"@uiw/react-color-slider\\\"));\\nvar _reactColorWheel = _interopRequireDefault(require(\\\"@uiw/react-color-wheel\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \\\"string\\\"); return \\\"symbol\\\" == _typeof(i) ? i : i + \\\"\\\"; }\\nfunction _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); }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nreturn function Demo() {\\n var _useState = (0, _react.useState)({\\n h: 0,\\n s: 0,\\n v: 68,\\n a: 1\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n hsva = _useState2[0],\\n setHsva = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_react[\\\"default\\\"].Fragment, null, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorSlider[\\\"default\\\"], {\\n color: hsva,\\n style: {\\n paddingBottom: 10\\n },\\n onChange: function onChange(color) {\\n setHsva(_objectSpread(_objectSpread({}, hsva), color.hsv));\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorWheel[\\\"default\\\"], {\\n color: hsva,\\n onChange: function onChange(color) {\\n return setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\\n }\\n }));\\n};\",\n \"language\": \"tsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport Slider from '@uiw/react-color-slider';\\nimport Wheel from '@uiw/react-color-wheel';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\\n return (\\n <>\\n {\\n setHsva({ ...hsva, ...color.hsv });\\n }}\\n />\\n setHsva({ ...hsva, ...color.hsva })}\\n />\\n \\n );\\n}\"\n }\n},\n source: \"React Color Slider\\n===\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-slider)](https://bundlephobia.com/package/@uiw/react-color-slider) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-slider.svg)](https://www.npmjs.com/package/@uiw/react-color-slider) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-slider/file/README.md)\\n\\nSlider Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\\n\\n\\n[![react-color-slider](https://user-images.githubusercontent.com/1680273/125950115-1ef0c47b-e856-481a-b57e-d8168d41872b.png)](https://uiwjs.github.io/react-color/#/slider)\\n\\n\\n## Install\\n\\n```bash\\nnpm i @uiw/react-color-slider\\n```\\n\\n## Usage\\n\\n```tsx mdx:preview\\nimport React, { useState } from 'react';\\nimport Slider from '@uiw/react-color-slider';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\\n return (\\n {\\n setHsva({ ...hsva, ...color.hsv });\\n }}\\n />\\n );\\n}\\n```\\n\\n```tsx mdx:preview\\nimport React, { useState } from 'react';\\nimport Slider from '@uiw/react-color-slider';\\nimport Wheel from '@uiw/react-color-wheel';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\\n return (\\n <>\\n {\\n setHsva({ ...hsva, ...color.hsv });\\n }}\\n />\\n setHsva({ ...hsva, ...color.hsva })}\\n />\\n \\n );\\n}\\n```\\n\\n## Props\\n\\n```ts\\nimport React from 'react';\\nimport { ColorResult, HsvaColor } from '@uiw/color-convert';\\nexport interface SliderProps extends Omit, 'onChange' | 'color'> {\\n prefixCls?: string;\\n color?: string | HsvaColor;\\n lightness?: number[];\\n onChange?: (color: ColorResult, evn: React.MouseEvent) => void;\\n}\\ndeclare const Slider: React.ForwardRefExoticComponent>;\\nexport default Slider;\\n```\\n\\n\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["_interopRequireDefault","require","Object","defineProperty","exports","value","_objectSpread2","_objectWithoutProperties2","_react","_colorConvert","_jsxRuntime","_excluded","Slider","forwardRef","props","ref","_props$prefixCls","prefixCls","className","style","onChange","color","_props$lightness","lightness","other","hsva","validHex","hexToHsva","jsx","display","filter","Boolean","join","children","map","num","idx","hsl","hsvaToHsla","hslStr","concat","h","checked","hsvaToHslString","paddingLeft","width","length","boxSizing","onClick","evn","hslStringToHsva","handleClick","backgroundColor","height","cursor","borderRadius","transform","displayName","module","default","Pointer","_ref","left","top","styleWarp","position","cls","boxShadow","inset","_reactDragEventInteractive","_Pointer","_utils","Wheel","pointer","radius","_props$width","_props$height","oval","_props$direction","direction","_props$angle","angle","hex","hsvaToHex","positions","getWheelHandlePosition","comProps","handleChange","interaction","event","result","getWheelValueFromInput","x","y","handleHsva","s","v","a","pointerStyle","zIndex","pointerElement","jsxs","onMove","onDown","background","opacity","getHandleRange","getWheelDimensions","hsv","_getWheelDimensions2","cx","cy","handleRange","handleAngle","translateWheelAngle","TAU","handleDist","Math","cos","sin","_getWheelDimensions3","hue","atan2","min","dist","round","isInputInsideWheel","_getWheelDimensions","r","mod","PI","n","sqrt","_ref$width","_ref2","_ref2$width","invert","wheelAngle","_interopRequireWildcard","_exportNames","_slicedToArray2","keys","forEach","key","prototype","hasOwnProperty","call","enumerable","get","Interactive","reset","container","useRef","hasTouched","_useState","useState","_useState2","isDragging","setDragging","onMoveCallback","useEventCallback","onKeyCallback","handleMove","useCallback","preventDefaultMove","isTouch","touches","buttons","current","getRelativePosition","handleMoveEnd","toggleDocumentEvents","state","toggleEvent","window","addEventListener","removeEventListener","useEffect","handleMoveStart","nativeEvent","isValid","touchAction","tabIndex","onMouseDown","onTouchStart","clamp","handler","callbackRef","preventDefault","number","arguments","undefined","max","node","rect","getBoundingClientRect","pageX","pageXOffset","pageY","pageYOffset","components","_typeof","o","Symbol","iterator","constructor","e","__esModule","t","_getRequireWildcardCache","has","__proto__","getOwnPropertyDescriptor","u","i","set","_reactColorSlider","WeakMap","ownKeys","getOwnPropertySymbols","push","apply","_objectSpread","_defineProperty","getOwnPropertyDescriptors","defineProperties","toPrimitive","TypeError","String","Number","_toPrimitive","_toPropertyKey","configurable","writable","_slicedToArray","Array","isArray","_arrayWithHoles","l","f","next","done","_iterableToArrayLimit","_arrayLikeToArray","toString","slice","name","from","test","_unsupportedIterableToArray","_nonIterableRest","setHsva","createElement","_reactColorWheel","Fragment","paddingBottom","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/428.aec41b73.chunk.js b/static/js/428.aec41b73.chunk.js deleted file mode 100644 index c95e5ae68..000000000 --- a/static/js/428.aec41b73.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[428],{6801:(e,r,t)=>{t.r(r),t.d(r,{default:()=>v});var n=t(8102),o=t(9257),a=t(7804),i=t(2945),u=t(1346),l=t(9424),c=e=>{var{className:r,color:t,left:o,top:a,style:i,prefixCls:u}=e,c=(0,n.A)({},i,{position:"absolute",top:a,left:o}),s=u+"-pointer "+(r||"");return(0,l.jsx)("div",{className:s,style:c,children:(0,l.jsx)("div",{className:u+"-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,l.jsx)("div",{style:{inset:0,borderRadius:"50%",position:"absolute",backgroundColor:t}})})})},s=2*Math.PI,f=(e,r)=>Math.sqrt(e*e+r*r);function p(e){var{width:r=0}=e,t=r/2;return{width:r,radius:t,cx:t,cy:t}}function y(e){var{width:r=0}=e;return r/2}function d(e,r,t){var n,o=e.angle||0,a=e.direction;return t&&"clockwise"===a?r=o+r:"clockwise"===a?r=360-o+r:t&&"anticlockwise"===a?r=o+180-r:"anticlockwise"===a&&(r=o-r),(r%(n=360)+n)%n}var b=["prefixCls","radius","pointer","className","style","width","height","oval","direction","angle","color","onChange"],h=a.forwardRef(((e,r)=>{var{prefixCls:t="w-color-wheel",radius:a=0,pointer:h,className:v,style:m,width:g=200,height:_=200,oval:w,direction:j="anticlockwise",angle:O=180,color:S,onChange:P}=e,x=(0,o.A)(e,b),C="string"===typeof S&&(0,i.validHex)(S)?(0,i.hexToHsva)(S):S||{},A=S?(0,i.hsvaToHex)(C):"",R=function(e,r){var{cx:t,cy:n}=p(e),o=y(e),a=(180+d(e,r.h,!0))*(s/360),i=r.s/100*o,u="clockwise"===e.direction?-1:1;return{x:t+i*Math.cos(a)*u,y:n+i*Math.sin(a)*u}}({width:g},C),k={top:"0",left:"0",color:A},M=(e,r)=>{var t=function(e,r,t){var{cx:n,cy:o}=p(e),a=y(e);r=n-r,t=o-t;var i=d(e,Math.atan2(-t,-r)*(360/s)),u=Math.min(f(r,t),a);return{h:Math.round(i),s:Math.round(100/a*u)}}({width:g},g-e.x,_-e.y),n={h:t.h,s:t.s,v:C.v,a:C.a};P&&P((0,i.color)(n))},D={zIndex:1,transform:"translate("+R.x+"px, "+R.y+"px) "+("x"===w||"X"===w?"scaleY(2)":"y"===w||"Y"===w?"scaleX(2)":"")},E=h&&"function"===typeof h?h((0,n.A)({prefixCls:t,style:D},k)):(0,l.jsx)(c,(0,n.A)({prefixCls:t,style:D},k));return(0,l.jsxs)(u.default,(0,n.A)({className:[t,v||""].filter(Boolean).join(" ")},x,{style:(0,n.A)({position:"relative",width:g,transform:"x"===w||"X"===w?"scaleY(0.5)":"y"===w||"Y"===w?"scaleX(0.5)":"",height:_},m),ref:r,onMove:M,onDown:M,children:[E,(0,l.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("+(O+90)+"deg)",inset:0}}),(0,l.jsx)("div",{style:{position:"absolute",borderRadius:"50%",background:"radial-gradient(circle closest-side, #fff, transparent)",inset:0}}),(0,l.jsx)("div",{style:{backgroundColor:"#000",borderRadius:"50%",position:"absolute",inset:0,opacity:"number"===typeof C.v?1-C.v/100:0}})]}))}));h.displayName="Wheel";const v=h},2428:(e,r,t)=>{t.r(r),t.d(r,{default:()=>n});const n={components:{21:function(){function e(r){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(r)}var r,n=function(r,t){if(!t&&r&&r.__esModule)return r;if(null===r||"object"!=e(r)&&"function"!=typeof r)return{default:r};var n=a(t);if(n&&n.has(r))return n.get(r);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in r)if("default"!==u&&{}.hasOwnProperty.call(r,u)){var l=i?Object.getOwnPropertyDescriptor(r,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=r[u]}return o.default=r,n&&n.set(r,o),o}(t(7804)),o=(r=t(4883))&&r.__esModule?r:{default:r};function a(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(a=function(e){return e?t:r})(e)}function i(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function u(e){for(var r=1;re.length)&&(r=e.length);for(var t=0,n=Array(r);te.length)&&(r=e.length);for(var t=0,n=Array(r);t r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 0,\n v: 68,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement(_reactColorSlider["default"], {\n color: hsva,\n onChange: function onChange(color) {\n setHsva(_objectSpread(_objectSpread({}, hsva), color.hsv));\n }\n });\n};',language:"tsx",value:"import React, { useState } from 'react';\nimport Slider from '@uiw/react-color-slider';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\n return (\n {\n setHsva({ ...hsva, ...color.hsv });\n }}\n />\n );\n}"},38:{name:38,meta:{},code:'"use strict";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require("react"));\nvar _reactColorSlider = _interopRequireDefault(require("@uiw/react-color-slider"));\nvar _reactColorWheel = _interopRequireDefault(require("@uiw/react-color-wheel"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }\nfunction _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }\nfunction _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); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 0,\n v: 68,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_reactColorSlider["default"], {\n color: hsva,\n style: {\n paddingBottom: 10\n },\n onChange: function onChange(color) {\n setHsva(_objectSpread(_objectSpread({}, hsva), color.hsv));\n }\n }), /*#__PURE__*/_react["default"].createElement(_reactColorWheel["default"], {\n color: hsva,\n onChange: function onChange(color) {\n return setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\n }\n }));\n};',language:"tsx",value:"import React, { useState } from 'react';\nimport Slider from '@uiw/react-color-slider';\nimport Wheel from '@uiw/react-color-wheel';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\n return (\n <>\n {\n setHsva({ ...hsva, ...color.hsv });\n }}\n />\n setHsva({ ...hsva, ...color.hsva })}\n />\n \n );\n}"}},source:"React Color Slider\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-slider)](https://bundlephobia.com/package/@uiw/react-color-slider) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-slider.svg)](https://www.npmjs.com/package/@uiw/react-color-slider) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-slider/file/README.md)\n\nSlider Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\n\n\x3c!--rehype:ignore:start--\x3e\n[![react-color-slider](https://user-images.githubusercontent.com/1680273/125950115-1ef0c47b-e856-481a-b57e-d8168d41872b.png)](https://uiwjs.github.io/react-color/#/slider)\n\x3c!--rehype:ignore:end--\x3e\n\n## Install\n\n```bash\nnpm i @uiw/react-color-slider\n```\n\n## Usage\n\n```tsx mdx:preview\nimport React, { useState } from 'react';\nimport Slider from '@uiw/react-color-slider';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\n return (\n {\n setHsva({ ...hsva, ...color.hsv });\n }}\n />\n );\n}\n```\n\n```tsx mdx:preview\nimport React, { useState } from 'react';\nimport Slider from '@uiw/react-color-slider';\nimport Wheel from '@uiw/react-color-wheel';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\n return (\n <>\n {\n setHsva({ ...hsva, ...color.hsv });\n }}\n />\n setHsva({ ...hsva, ...color.hsva })}\n />\n \n );\n}\n```\n\n## Props\n\n```ts\nimport React from 'react';\nimport { ColorResult, HsvaColor } from '@uiw/color-convert';\nexport interface SliderProps extends Omit, 'onChange' | 'color'> {\n prefixCls?: string;\n color?: string | HsvaColor;\n lightness?: number[];\n onChange?: (color: ColorResult, evn: React.MouseEvent) => void;\n}\ndeclare const Slider: React.ForwardRefExoticComponent>;\nexport default Slider;\n```\n\n\x3c!--footer-dividing--\x3e\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); -//# sourceMappingURL=428.aec41b73.chunk.js.map \ No newline at end of file diff --git a/static/js/428.aec41b73.chunk.js.map b/static/js/428.aec41b73.chunk.js.map deleted file mode 100644 index 00680e381..000000000 --- a/static/js/428.aec41b73.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/428.aec41b73.chunk.js","mappings":"+LAIWA,EAAUC,IACnB,IAAI,UACFC,EAAS,MACTC,EAAK,KACLC,EAAI,IACJC,EAAG,MACH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,KAAQ,w9JACR,SAAY,MACZ,MAAS,ujBAGTC,OAAQ,60FACRC,SAAS,GACTC,aAAa,G","sources":["../../packages/color-wheel/esm/Pointer.js","../../packages/color-wheel/esm/utils.js","../../packages/color-wheel/esm/index.js","../../packages/color-slider/README.md"],"sourcesContent":["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;","\nexport default {\n components: { 21: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactColorSlider = _interopRequireDefault(require(\"@uiw/react-color-slider\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _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); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 0,\n v: 68,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(_reactColorSlider[\"default\"], {\n color: hsva,\n onChange: function onChange(color) {\n setHsva(_objectSpread(_objectSpread({}, hsva), color.hsv));\n }\n });\n}; })(),38: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactColorSlider = _interopRequireDefault(require(\"@uiw/react-color-slider\"));\nvar _reactColorWheel = _interopRequireDefault(require(\"@uiw/react-color-wheel\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _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); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 0,\n v: 68,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(_reactColorSlider[\"default\"], {\n color: hsva,\n style: {\n paddingBottom: 10\n },\n onChange: function onChange(color) {\n setHsva(_objectSpread(_objectSpread({}, hsva), color.hsv));\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactColorWheel[\"default\"], {\n color: hsva,\n onChange: function onChange(color) {\n return setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\n }\n }));\n}; })(), },\n data: {\n \"21\": {\n \"name\": 21,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactColorSlider = _interopRequireDefault(require(\\\"@uiw/react-color-slider\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \\\"string\\\"); return \\\"symbol\\\" == _typeof(i) ? i : i + \\\"\\\"; }\\nfunction _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); }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nreturn function Demo() {\\n var _useState = (0, _react.useState)({\\n h: 0,\\n s: 0,\\n v: 68,\\n a: 1\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n hsva = _useState2[0],\\n setHsva = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorSlider[\\\"default\\\"], {\\n color: hsva,\\n onChange: function onChange(color) {\\n setHsva(_objectSpread(_objectSpread({}, hsva), color.hsv));\\n }\\n });\\n};\",\n \"language\": \"tsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport Slider from '@uiw/react-color-slider';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\\n return (\\n {\\n setHsva({ ...hsva, ...color.hsv });\\n }}\\n />\\n );\\n}\"\n },\n \"38\": {\n \"name\": 38,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactColorSlider = _interopRequireDefault(require(\\\"@uiw/react-color-slider\\\"));\\nvar _reactColorWheel = _interopRequireDefault(require(\\\"@uiw/react-color-wheel\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \\\"string\\\"); return \\\"symbol\\\" == _typeof(i) ? i : i + \\\"\\\"; }\\nfunction _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); }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nreturn function Demo() {\\n var _useState = (0, _react.useState)({\\n h: 0,\\n s: 0,\\n v: 68,\\n a: 1\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n hsva = _useState2[0],\\n setHsva = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_react[\\\"default\\\"].Fragment, null, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorSlider[\\\"default\\\"], {\\n color: hsva,\\n style: {\\n paddingBottom: 10\\n },\\n onChange: function onChange(color) {\\n setHsva(_objectSpread(_objectSpread({}, hsva), color.hsv));\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorWheel[\\\"default\\\"], {\\n color: hsva,\\n onChange: function onChange(color) {\\n return setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\\n }\\n }));\\n};\",\n \"language\": \"tsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport Slider from '@uiw/react-color-slider';\\nimport Wheel from '@uiw/react-color-wheel';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\\n return (\\n <>\\n {\\n setHsva({ ...hsva, ...color.hsv });\\n }}\\n />\\n setHsva({ ...hsva, ...color.hsva })}\\n />\\n \\n );\\n}\"\n }\n},\n source: \"React Color Slider\\n===\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-slider)](https://bundlephobia.com/package/@uiw/react-color-slider) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-slider.svg)](https://www.npmjs.com/package/@uiw/react-color-slider) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-slider/file/README.md)\\n\\nSlider Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\\n\\n\\n[![react-color-slider](https://user-images.githubusercontent.com/1680273/125950115-1ef0c47b-e856-481a-b57e-d8168d41872b.png)](https://uiwjs.github.io/react-color/#/slider)\\n\\n\\n## Install\\n\\n```bash\\nnpm i @uiw/react-color-slider\\n```\\n\\n## Usage\\n\\n```tsx mdx:preview\\nimport React, { useState } from 'react';\\nimport Slider from '@uiw/react-color-slider';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\\n return (\\n {\\n setHsva({ ...hsva, ...color.hsv });\\n }}\\n />\\n );\\n}\\n```\\n\\n```tsx mdx:preview\\nimport React, { useState } from 'react';\\nimport Slider from '@uiw/react-color-slider';\\nimport Wheel from '@uiw/react-color-wheel';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\\n return (\\n <>\\n {\\n setHsva({ ...hsva, ...color.hsv });\\n }}\\n />\\n setHsva({ ...hsva, ...color.hsva })}\\n />\\n \\n );\\n}\\n```\\n\\n## Props\\n\\n```ts\\nimport React from 'react';\\nimport { ColorResult, HsvaColor } from '@uiw/color-convert';\\nexport interface SliderProps extends Omit, 'onChange' | 'color'> {\\n prefixCls?: string;\\n color?: string | HsvaColor;\\n lightness?: number[];\\n onChange?: (color: ColorResult, evn: React.MouseEvent) => void;\\n}\\ndeclare const Slider: React.ForwardRefExoticComponent>;\\nexport default Slider;\\n```\\n\\n\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["Pointer","_ref","className","color","left","top","style","prefixCls","styleWarp","_extends","position","cls","_jsx","children","width","height","transform","boxShadow","borderRadius","backgroundColor","inset","TAU","Math","PI","dist","x","y","sqrt","getWheelDimensions","r","radius","cx","cy","getHandleRange","_ref2","translateWheelAngle","props","angle","invert","n","wheelAngle","direction","_excluded","Wheel","React","ref","pointer","oval","onChange","other","_objectWithoutPropertiesLoose","hsva","validHex","hexToHsva","hex","hsvaToHex","positions","hsv","handleRange","handleAngle","h","handleDist","s","cos","sin","getWheelHandlePosition","comProps","handleChange","interaction","event","result","hue","atan2","min","round","getWheelValueFromInput","handleHsva","v","a","handleColor","pointerStyle","zIndex","pointerElement","_jsxs","Interactive","filter","Boolean","join","onMove","onDown","background","opacity","displayName","components","_typeof","o","Symbol","iterator","constructor","prototype","e","_react","__esModule","t","_getRequireWildcardCache","has","get","__proto__","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_interopRequireWildcard","_reactColorSlider","WeakMap","ownKeys","keys","getOwnPropertySymbols","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","toPrimitive","TypeError","String","Number","_toPrimitive","_toPropertyKey","value","configurable","writable","_slicedToArray","Array","isArray","_arrayWithHoles","l","f","next","done","_iterableToArrayLimit","_arrayLikeToArray","toString","slice","name","from","test","_unsupportedIterableToArray","_nonIterableRest","_useState2","useState","setHsva","createElement","_interopRequireDefault","_reactColorWheel","Fragment","paddingBottom","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/494.09a0b430.chunk.js b/static/js/494.09a0b430.chunk.js new file mode 100644 index 000000000..241b96a29 --- /dev/null +++ b/static/js/494.09a0b430.chunk.js @@ -0,0 +1,2 @@ +(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:()=>j});var r,i,n,o,a,h=s(114),d=s(7804),l=s(7584),c=s(3235),p=s(9424);const g=c.Ay.div(r||(r=(0,h.A)(["\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"]))),u=c.Ay.a(i||(i=(0,h.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"]))),x=c.Ay.div(n||(n=(0,h.A)(["\n padding-bottom: 120px;\n"]))),m=c.Ay.footer(o||(o=(0,h.A)(["\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"]))),b=c.Ay.div(a||(a=(0,h.A)(["\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"])));class j extends d.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,p.jsxs)(x,{className:"wmde-markdown-var",children:[(0,p.jsxs)(g,{children:[this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"}),this.example&&(0,p.jsxs)(b,{children:[(0,p.jsx)("h3",{children:"Example"}),this.example]}),(0,p.jsx)(l.A,{data:{data:s,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"})]}),(0,p.jsxs)(m,{children:[(0,p.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,p.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,p.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,p.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:()=>l});var r=s(8957),i=s(7804),n=s(1068),o=s(3623),a=s(7980),h=s(9424);function d(){const{hsva:t,dispatch:e}=(0,i.useContext)(a.ob);return(0,h.jsx)("div",{style:{width:256},children:(0,h.jsx)(n.A,{hue:t.h,onChange:s=>{e({hsva:(0,r.A)((0,r.A)({},t),s)})}})})}class l extends o.A{constructor(){super(...arguments),this.editorUrl="/packages/color-hue/README.md",this.getMdStr=()=>Promise.all([s.e(968),s.e(655)]).then(s.bind(s,2655)),this.example=(0,h.jsx)(d,{})}}}}]); +//# sourceMappingURL=494.09a0b430.chunk.js.map \ No newline at end of file diff --git a/static/js/494.09a0b430.chunk.js.map b/static/js/494.09a0b430.chunk.js.map new file mode 100644 index 000000000..48a1e79b8 --- /dev/null +++ b/static/js/494.09a0b430.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/494.09a0b430.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,8GCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,IAAGC,IAAAA,GAAAC,EAAAA,EAAAA,GAAA,wPAkB5BC,EAAYJ,EAAAA,GAAOK,EAACC,IAAAA,GAAAH,EAAAA,EAAAA,GAAA,iRAepBI,EAAUP,EAAAA,GAAOC,IAAGO,IAAAA,GAAAL,EAAAA,EAAAA,GAAA,oCAIpBM,EAAST,EAAAA,GAAOU,OAAMC,IAAAA,GAAAR,EAAAA,EAAAA,GAAA,iJAYtBS,EAAUZ,EAAAA,GAAOC,IAAGY,IAAAA,GAAAV,EAAAA,EAAAA,GAAA,gLAUX,MAAMW,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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CC,IAAI,mBAEzDV,EAAAA,EAAAA,KAAA,KAAGG,KAAK,iDAAiDF,OAAO,UAASF,UACvEC,EAAAA,EAAAA,KAAA,OAAKS,IAAI,oDAAoDC,IAAI,WAEnEb,EAAAA,EAAAA,MAAA,KAAAE,SAAA,CAAG,sBACgB,KACjBC,EAAAA,EAAAA,KAAA,KAAGG,KAAK,2BAA2BF,OAAO,UAASF,SAAC,UAEhD,iCAMd,E,8HCnIF,SAASzB,IACP,MAAM,KAAEqC,EAAI,SAAEC,IAAaC,EAAAA,EAAAA,YAAWC,EAAAA,IACtC,OACEd,EAAAA,EAAAA,KAAA,OAAKM,MAAO,CAAES,MAAO,KAAMhB,UACzBC,EAAAA,EAAAA,KAACgB,EAAAA,EAAG,CACFC,IAAKN,EAAKO,EACVC,SAAWC,IACTR,EAAU,CAAED,MAAIU,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GAAOV,GAASS,IAAW,KAKrD,CAEO,MAAM3C,UAAkBD,EAAAA,EAASE,WAAAA,GAAA,SAAA4C,WAAA,KACtCzC,UAAY,gCAAgC,KAC5CC,SAAW,IAAM,sDAAyC,KAC1DC,SAAWiB,EAAAA,EAAAA,KAAC1B,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","_templateObject","_taggedTemplateLiteral","EditorUrl","a","_templateObject2","Wrapper","_templateObject3","Footer","footer","_templateObject4","Example","_templateObject5","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","concat","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Hue","hue","h","onChange","newHue","_objectSpread","arguments"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/494.28dc922e.chunk.js b/static/js/494.28dc922e.chunk.js deleted file mode 100644 index dc01ec4f6..000000000 --- a/static/js/494.28dc922e.chunk.js +++ /dev/null @@ -1,45 +0,0 @@ -(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%), - 0 8px 16px rgb(0 0 0 / 15%); - border-radius: 16px; - max-width: 860px; - margin: 0 auto; - padding-bottom: 20px; - position: relative; -`,n=o.Ay.a` - position: absolute; - right: 20px; - padding: 3px 8px 4px 8px; - background: #333333; - border-radius: 0 0 6px 6px; - text-decoration: initial; - color: #fff; - transition: all 0.3s; - font-size: 14px; - &:hover { - background-color: #3f51b4; - } -`,d=o.Ay.div` - padding-bottom: 120px; -`,l=o.Ay.footer` - text-align: center; - margin-top: 40px; - a { - margin: 0 5px; - } - p { - font-size: 12px; - text-align: center; - } -`,c=o.Ay.div` - border-bottom: 1px solid var(--color-border-default); - border-radius: 16px 16px 0 0; - padding: 28px; - > h3 { - margin: 0; - 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.28dc922e.chunk.js.map \ No newline at end of file diff --git a/static/js/494.28dc922e.chunk.js.map b/static/js/494.28dc922e.chunk.js.map deleted file mode 100644 index 4345ed5bb..000000000 --- a/static/js/494.28dc922e.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/494.28dc922e.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,EAAA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O,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,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,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.27a81087.chunk.js b/static/js/522.27a81087.chunk.js new file mode 100644 index 000000000..73838791d --- /dev/null +++ b/static/js/522.27a81087.chunk.js @@ -0,0 +1,2 @@ +(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:()=>j});var s,i,n,o,a,d=r(114),c=r(7804),h=r(7584),l=r(3235),p=r(9424);const g=l.Ay.div(s||(s=(0,d.A)(["\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"]))),u=l.Ay.a(i||(i=(0,d.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"]))),x=l.Ay.div(n||(n=(0,d.A)(["\n padding-bottom: 120px;\n"]))),m=l.Ay.footer(o||(o=(0,d.A)(["\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"]))),b=l.Ay.div(a||(a=(0,d.A)(["\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"])));class j extends c.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,p.jsxs)(x,{className:"wmde-markdown-var",children:[(0,p.jsxs)(g,{children:[this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"}),this.example&&(0,p.jsxs)(b,{children:[(0,p.jsx)("h3",{children:"Example"}),this.example]}),(0,p.jsx)(h.A,{data:{data:r,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"})]}),(0,p.jsxs)(m,{children:[(0,p.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,p.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,p.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,p.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.27a81087.chunk.js.map \ No newline at end of file diff --git a/static/js/522.27a81087.chunk.js.map b/static/js/522.27a81087.chunk.js.map new file mode 100644 index 000000000..076b0d5af --- /dev/null +++ b/static/js/522.27a81087.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/522.27a81087.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GAC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AAsD,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","_templateObject","_taggedTemplateLiteral","EditorUrl","a","_templateObject2","Wrapper","_templateObject3","Footer","footer","_templateObject4","Example","_templateObject5","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","concat","MarkdownPreviewExample","style","border","boxShadow","src","alt","arguments"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/522.6353df0b.chunk.js b/static/js/522.6353df0b.chunk.js deleted file mode 100644 index 8561ec0b5..000000000 --- a/static/js/522.6353df0b.chunk.js +++ /dev/null @@ -1,45 +0,0 @@ -(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%), - 0 8px 16px rgb(0 0 0 / 15%); - border-radius: 16px; - max-width: 860px; - margin: 0 auto; - padding-bottom: 20px; - position: relative; -`,n=o.Ay.a` - position: absolute; - right: 20px; - padding: 3px 8px 4px 8px; - background: #333333; - border-radius: 0 0 6px 6px; - text-decoration: initial; - color: #fff; - transition: all 0.3s; - font-size: 14px; - &:hover { - background-color: #3f51b4; - } -`,h=o.Ay.div` - padding-bottom: 120px; -`,l=o.Ay.footer` - text-align: center; - margin-top: 40px; - a { - margin: 0 5px; - } - p { - font-size: 12px; - text-align: center; - } -`,c=o.Ay.div` - border-bottom: 1px solid var(--color-border-default); - border-radius: 16px 16px 0 0; - padding: 28px; - > h3 { - margin: 0; - 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.6353df0b.chunk.js.map \ No newline at end of file diff --git a/static/js/522.6353df0b.chunk.js.map b/static/js/522.6353df0b.chunk.js.map deleted file mode 100644 index 1a5c793f1..000000000 --- a/static/js/522.6353df0b.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"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,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AAA,KAAA,OAAKQ,IAAI,oDAAoDC,IAAI,qBAEnET,EAAAA,EAAAA,KAAA,KAAGG,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,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/546.7ac36bcc.chunk.js b/static/js/546.7ac36bcc.chunk.js new file mode 100644 index 000000000..8923ebcbb --- /dev/null +++ b/static/js/546.7ac36bcc.chunk.js @@ -0,0 +1,2 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[546],{5638:(e,t,r)=>{"use strict";var n=r(147).default,o=r(6784).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.style,r=e.title,n=e.checked,o=(e.color,e.onClick),c=e.rectProps,f=(0,i.useRef)(null),s=(0,i.useCallback)((function(){f.current.style.zIndex="2",f.current.style.outline="#fff solid 2px",f.current.style.boxShadow="rgb(0 0 0 / 25%) 0 0 5px 2px"}),[]),d=(0,i.useCallback)((function(){n||(f.current.style.zIndex="0",f.current.style.outline="initial",f.current.style.boxShadow="initial")}),[n]),p=n?{zIndex:1,outline:"#fff solid 2px",boxShadow:"rgb(0 0 0 / 25%) 0 0 5px 2px"}:{zIndex:0};return(0,u.jsx)("div",(0,a.default)((0,a.default)({ref:f,title:r},c),{},{onClick:o,onMouseEnter:s,onMouseLeave:d,style:(0,a.default)((0,a.default)((0,a.default)((0,a.default)({},t),{},{marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25},l),p),null===c||void 0===c?void 0:c.style)}))};var a=o(r(6651)),i=n(r(7804)),u=r(9424),l={marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25};e.exports=t.default},5964:(e,t,r)=>{"use strict";var n=r(6784).default,o=r(147).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.GithubPlacement=void 0;var a=n(r(4126)),i=n(r(8304)),u=n(r(6651)),l=n(r(453)),c=o(r(7804)),f=r(7604),s=n(r(5560)),d=n(r(5638)),p=r(9424),h=["prefixCls","placement","className","style","color","colors","rectProps","onChange","rectRender"],b=["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],y=t.GithubPlacement=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}({}),g=c.default.forwardRef((function(e,t){var r=e.prefixCls,n=void 0===r?"w-color-github":r,o=e.placement,g=void 0===o?y.TopRight:o,m=e.className,x=e.style,_=e.color,v=e.colors,w=void 0===v?b:v,R=e.rectProps,C=void 0===R?{}:R,k=e.onChange,S=e.rectRender,j=(0,l.default)(e,h),T="string"===typeof _&&(0,f.validHex)(_)?(0,f.hexToHsva)(_):_,B=_?(0,f.hsvaToHex)(T):"",A=(0,u.default)({"--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),L={borderStyle:"solid",position:"absolute"},O=(0,u.default)({},L),P=(0,u.default)({},L);/^T/.test(g)&&(O.borderWidth="0 8px 8px",O.borderColor="transparent transparent var(--github-arrow-border-color)",P.borderWidth="0 7px 7px",P.borderColor="transparent transparent var(--github-background-color)"),g===y.TopRight&&(O.top=-8,P.top=-7),g===y.Top&&(O.top=-8,P.top=-7),g===y.TopLeft&&(O.top=-8,P.top=-7),/^B/.test(g)&&(O.borderWidth="8px 8px 0",O.borderColor="var(--github-arrow-border-color) transparent transparent",P.borderWidth="7px 7px 0",P.borderColor="var(--github-background-color) transparent transparent",g===y.BottomRight&&(O.top="100%",P.top="100%"),g===y.Bottom&&(O.top="100%",P.top="100%"),g===y.BottomLeft&&(O.top="100%",P.top="100%")),/^(B|T)/.test(g)&&(g!==y.Top&&g!==y.Bottom||(O.left="50%",O.marginLeft=-8,P.left="50%",P.marginLeft=-7),g!==y.TopRight&&g!==y.BottomRight||(O.right=10,P.right=11),g!==y.TopLeft&&g!==y.BottomLeft||(O.left=7,P.left=8)),/^L/.test(g)&&(O.borderWidth="8px 8px 8px 0",O.borderColor="transparent var(--github-arrow-border-color) transparent transparent",P.borderWidth="7px 7px 7px 0",P.borderColor="transparent var(--github-background-color) transparent transparent",O.left=-8,P.left=-7),/^R/.test(g)&&(O.borderWidth="8px 0 8px 8px",O.borderColor="transparent transparent transparent var(--github-arrow-border-color)",P.borderWidth="7px 0 7px 7px",P.borderColor="transparent transparent transparent var(--github-background-color)",O.right=-8,P.right=-7),/^(L|R)/.test(g)&&(g!==y.RightTop&&g!==y.LeftTop||(O.top=5,P.top=6),g!==y.Left&&g!==y.Right||(O.top="50%",P.top="50%",O.marginTop=-8,P.marginTop=-7),g!==y.LeftBottom&&g!==y.RightBottom||(O.top="100%",P.top="100%",O.marginTop=-21,P.marginTop=-20));return(0,p.jsx)(s.default,(0,u.default)((0,u.default)({ref:t,className:[n,m].filter(Boolean).join(" "),colors:w,color:B,rectRender:function(e){var t=(0,i.default)({},((0,a.default)(e),e)),r=S&&S((0,u.default)({},t));return r||(0,p.jsx)(d.default,(0,u.default)((0,u.default)({},t),{},{rectProps:C}))}},j),{},{onChange:function(e){return k&&k((0,f.color)(e))},style:A,rectProps:{style:{marginRight:0,marginBottom:0,borderRadius:0,height:25,width:25}},addonBefore:(0,p.jsxs)(c.Fragment,{children:[(0,p.jsx)("div",{style:O}),(0,p.jsx)("div",{style:P})]})}))}));g.displayName="Github";t.default=g},5560:(e,t,r)=>{"use strict";var n=r(6784).default,o=r(147).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(564)),i=n(r(6651)),u=n(r(453)),l=o(r(7804)),c=r(7604),f=r(9424),s=["prefixCls","className","color","colors","style","rectProps","onChange","addonAfter","addonBefore","rectRender"],d=l.default.forwardRef((function(e,t){var r=e.prefixCls,n=void 0===r?"w-color-swatch":r,o=e.className,d=e.color,p=e.colors,h=void 0===p?[]:p,b=e.style,y=e.rectProps,g=void 0===y?{}:y,m=e.onChange,x=e.addonAfter,_=e.addonBefore,v=e.rectRender,w=(0,u.default)(e,s),R=(0,i.default)({"--swatch-background-color":"rgb(144, 19, 254)",background:"var(--swatch-background-color)",height:15,width:15,marginRight:5,marginBottom:5,cursor:"pointer",position:"relative",outline:"none",borderRadius:2},g.style),C=function(e,t){m&&m((0,c.hexToHsva)(e),(0,c.color)((0,c.hexToHsva)(e)),t)};return(0,f.jsxs)("div",(0,i.default)((0,i.default)({ref:t},w),{},{className:[n,o||""].filter(Boolean).join(" "),style:(0,i.default)({display:"flex",flexWrap:"wrap",position:"relative"},b),children:[_&&l.default.isValidElement(_)&&_,h&&Array.isArray(h)&&h.map((function(e,t){var r="",n="";"string"===typeof e&&(r=e,n=e),"object"===(0,a.default)(e)&&e.color&&(r=e.title||e.color,n=e.color);var o=d&&d.toLocaleLowerCase()===n.toLocaleLowerCase(),u=v&&v({title:r,color:n,checked:!!o,style:(0,i.default)((0,i.default)({},R),{},{background:n}),onClick:function(e){return C(n,e)}});if(u)return(0,f.jsx)(l.Fragment,{children:u},t);var c=g.children&&l.default.isValidElement(g.children)?l.default.cloneElement(g.children,{color:n,checked:o}):null;return(0,f.jsx)("div",(0,i.default)((0,i.default)({tabIndex:0,title:r,onClick:function(e){return C(n,e)}},g),{},{children:c,style:(0,i.default)((0,i.default)({},R),{},{background:n})}),t)})),x&&l.default.isValidElement(x)&&x]}))}));d.displayName="Swatch";t.default=d;e.exports=t.default},2165:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={components:{21:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,n=function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=e(t)&&"function"!=typeof t)return{default:t};var n=a(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&{}.hasOwnProperty.call(t,u)){var l=i?Object.getOwnPropertyDescriptor(t,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=t[u]}return o.default=t,n&&n.set(t,o),o}(r(7804)),o=(t=r(5964))&&t.__esModule?t:{default:t};function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,u=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(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)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)("#fff"),\n _useState2 = _slicedToArray(_useState, 2),\n hex = _useState2[0],\n setHex = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_reactColorGithub["default"], {\n color: hex,\n style: {\n \'--github-background-color\': \'#d1eff9\'\n },\n onChange: function onChange(color) {\n setHex(color.hex);\n }\n }), /*#__PURE__*/_react["default"].createElement("div", {\n style: {\n width: 120,\n height: 50,\n backgroundColor: hex\n }\n }));\n};',language:"jsx",value:"import React, { useState } from 'react';\nimport Github from '@uiw/react-color-github';\n\nexport default function Demo() {\n const [hex, setHex] = useState(\"#fff\");\n return (\n <>\n {\n setHex(color.hex);\n }}\n />\n
\n \n );\n}"},46:{name:46,meta:{},code:'"use strict";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require("react"));\nvar _reactColorGithub = _interopRequireDefault(require("@uiw/react-color-github"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }\nfunction _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)("#fff"),\n _useState2 = _slicedToArray(_useState, 2),\n hex = _useState2[0],\n setHex = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_reactColorGithub["default"], {\n color: hex,\n style: {\n \'--github-background-color\': \'#d1eff9\'\n },\n onChange: function onChange(color) {\n setHex(color.hex);\n },\n rectRender: function rectRender(props) {\n if (props.key == 15) {\n return /*#__PURE__*/_react["default"].createElement("button", {\n key: props.key,\n onClick: function onClick() {\n return setHex(null);\n }\n }, "x");\n }\n }\n }), /*#__PURE__*/_react["default"].createElement("div", {\n style: {\n width: 120,\n height: 50,\n backgroundColor: hex\n }\n }));\n};',language:"jsx",value:"import React, { useState } from 'react';\nimport Github from '@uiw/react-color-github';\n\nexport default function Demo() {\n const [hex, setHex] = useState(\"#fff\");\n return (\n <>\n {\n setHex(color.hex);\n }}\n rectRender={(props) => {\n if (props.key == 15) {\n return \n }\n }}\n />\n
\n \n );\n}"}},source:'React Color Github\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-github)](https://bundlephobia.com/package/@uiw/react-color-github) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-github.svg)](https://www.npmjs.com/package/@uiw/react-color-github) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-github/file/README.md)\n\nGithub Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\n\n\x3c!--rehype:ignore:start--\x3e\n[![react-color-github](https://user-images.githubusercontent.com/1680273/125949553-67c1adef-b37f-43e2-9414-3ffb77c26ba0.png)](https://uiwjs.github.io/react-color/#/github)\n\x3c!--rehype:ignore:end--\x3e\n\n## Install\n\n```bash\nnpm i @uiw/react-color-github\n```\n\n## Usage\n\n```jsx mdx:preview\nimport React, { useState } from \'react\';\nimport Github from \'@uiw/react-color-github\';\n\nexport default function Demo() {\n const [hex, setHex] = useState("#fff");\n return (\n <>\n {\n setHex(color.hex);\n }}\n />\n
\n \n );\n}\n```\n\nAdd clear button\n\n```jsx mdx:preview\nimport React, { useState } from \'react\';\nimport Github from \'@uiw/react-color-github\';\n\nexport default function Demo() {\n const [hex, setHex] = useState("#fff");\n return (\n <>\n {\n setHex(color.hex);\n }}\n rectRender={(props) => {\n if (props.key == 15) {\n return \n }\n }}\n />\n
\n \n );\n}\n```\n\n## Props\n\n```ts\nimport React from \'react\';\nimport { HsvaColor, ColorResult } from \'@uiw/color-convert\';\nimport { SwatchProps, SwatchRectRenderProps } from \'@uiw/react-color-swatch\';\nexport declare enum GithubPlacement {\n Left = "L",\n LeftTop = "LT",\n LeftBottom = "LB",\n Right = "R",\n RightTop = "RT",\n RightBottom = "RB",\n Top = "T",\n TopRight = "TR",\n TopLeft = "TL",\n Bottom = "B",\n BottomLeft = "BL",\n BottomRight = "BR"\n}\nexport interface GithubRectRenderProps extends SwatchRectRenderProps {\n arrow?: JSX.Element;\n}\nexport interface GithubProps extends Omit {\n placement?: GithubPlacement;\n color?: string | HsvaColor;\n onChange?: (color: ColorResult) => void;\n}\ndeclare const Github: React.ForwardRefExoticComponent>;\nexport default Github;\n```\n\n\x3c!--footer-dividing--\x3e\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n',headings:[],headingsList:[]}},8304:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{e.exports=function(e){if(null==e)throw new TypeError("Cannot destructure "+e)},e.exports.__esModule=!0,e.exports.default=e.exports}}]); +//# sourceMappingURL=546.7ac36bcc.chunk.js.map \ No newline at end of file diff --git a/static/js/546.7ac36bcc.chunk.js.map b/static/js/546.7ac36bcc.chunk.js.map new file mode 100644 index 000000000..4b651cbda --- /dev/null +++ b/static/js/546.7ac36bcc.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/546.7ac36bcc.chunk.js","mappings":"iGAEA,IAAIA,EAA0BC,EAAAA,KAAAA,QAC1BC,EAAyBD,EAAAA,MAAAA,QAC7BE,OAAOC,eAAeC,EAAS,aAAc,CAC3CC,OAAO,IAETD,EAAiB,QAYjB,SAAeE,GACb,IAAIC,EAAQD,EAAKC,MACfC,EAAQF,EAAKE,MACbC,EAAUH,EAAKG,QAEfC,GADQJ,EAAKK,MACHL,EAAKI,SACfE,EAAYN,EAAKM,UACfC,GAAM,EAAIC,EAAOC,QAAQ,MACzBC,GAAmB,EAAIF,EAAOG,cAAa,WAC7CJ,EAAIK,QAAQX,MAAc,OAAI,IAC9BM,EAAIK,QAAQX,MAAe,QAAI,iBAC/BM,EAAIK,QAAQX,MAAiB,UAAI,8BACnC,GAAG,IACCY,GAAmB,EAAIL,EAAOG,cAAa,WACxCR,IACHI,EAAIK,QAAQX,MAAc,OAAI,IAC9BM,EAAIK,QAAQX,MAAe,QAAI,UAC/BM,EAAIK,QAAQX,MAAiB,UAAI,UAErC,GAAG,CAACE,IACAW,EAAYX,EAAU,CACxBY,OAAQ,EACRC,QAAS,iBACTC,UAAW,gCACT,CACFF,OAAQ,GAEV,OAAoB,EAAIG,EAAYC,KAAK,OAAO,EAAIC,EAAwB,UAAG,EAAIA,EAAwB,SAAG,CAC5GC,IAAKd,EACLL,MAAOA,GACNI,GAAY,CAAC,EAAG,CACjBF,QAASA,EACTkB,aAAcZ,EACda,aAAcV,EACdZ,OAAO,EAAImB,EAAwB,UAAG,EAAIA,EAAwB,UAAG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T,EAAGtG,EAAOjC,QAAQkI,YAAa,EAAMjG,EAAOjC,QAAiB,QAAIiC,EAAOjC,QAAS6K,EAASI,MAAM,KAAMD,UACxG,CACA/I,EAAOjC,QAAU6K,EAAU5I,EAAOjC,QAAQkI,YAAa,EAAMjG,EAAOjC,QAAiB,QAAIiC,EAAOjC,O,WCNhGiC,EAAOjC,QAHP,SAAmCmI,GACjC,GAAI,MAAQA,EAAG,MAAM,IAAI8B,UAAU,sBAAwB9B,EAC7D,EAC4ClG,EAAOjC,QAAQkI,YAAa,EAAMjG,EAAOjC,QAAiB,QAAIiC,EAAOjC,O","sources":["../../packages/color-github/cjs/Point.js","../../packages/color-github/cjs/index.js","../../packages/color-swatch/cjs/index.js","../../packages/color-github/README.md","../../node_modules/@babel/runtime/helpers/extends.js","../../node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js"],"sourcesContent":["\"use strict\";\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = Point;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _jsxRuntime = require(\"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};\nfunction Point(_ref) {\n var style = _ref.style,\n title = _ref.title,\n checked = _ref.checked,\n color = _ref.color,\n onClick = _ref.onClick,\n rectProps = _ref.rectProps;\n var btn = (0, _react.useRef)(null);\n var handleMouseEnter = (0, _react.useCallback)(function () {\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 = (0, _react.useCallback)(function () {\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__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n ref: btn,\n title: title\n }, rectProps), {}, {\n onClick: onClick,\n onMouseEnter: handleMouseEnter,\n onMouseLeave: handleMouseLeave,\n style: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, 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 || rectProps === void 0 ? void 0 : rectProps.style)\n }));\n}\nmodule.exports = exports.default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = exports.GithubPlacement = void 0;\nvar _objectDestructuringEmpty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectDestructuringEmpty\"));\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactColorSwatch = _interopRequireDefault(require(\"@uiw/react-color-swatch\"));\nvar _Point = _interopRequireDefault(require(\"./Point\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"placement\", \"className\", \"style\", \"color\", \"colors\", \"rectProps\", \"onChange\", \"rectRender\"];\nvar CORLER_HEX = ['#B80000', '#DB3E00', '#FCCB00', '#008B02', '#006B76', '#1273DE', '#004DCF', '#5300EB', '#EB9694', '#FAD0C3', '#FEF3BD', '#C1E1C5', '#BEDADC', '#C4DEF6', '#BED3F3', '#D4C4FB'];\nvar GithubPlacement = exports.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[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-github' : _props$prefixCls,\n _props$placement = props.placement,\n placement = _props$placement === void 0 ? GithubPlacement.TopRight : _props$placement,\n className = props.className,\n style = props.style,\n color = props.color,\n _props$colors = props.colors,\n colors = _props$colors === void 0 ? CORLER_HEX : _props$colors,\n _props$rectProps = props.rectProps,\n rectProps = _props$rectProps === void 0 ? {} : _props$rectProps,\n onChange = props.onChange,\n rectRender = props.rectRender,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var hsva = typeof color === 'string' && (0, _colorConvert.validHex)(color) ? (0, _colorConvert.hexToHsva)(color) : color;\n var hex = color ? (0, _colorConvert.hsvaToHex)(hsva) : '';\n var handleChange = function handleChange(hsv) {\n return onChange && onChange((0, _colorConvert.color)(hsv));\n };\n var styleWrapper = (0, _objectSpread2[\"default\"])({\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 = (0, _objectSpread2[\"default\"])({}, rStyle);\n var arrStyl = (0, _objectSpread2[\"default\"])({}, 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 = function render(_ref) {\n var props = (0, _extends2[\"default\"])({}, ((0, _objectDestructuringEmpty2[\"default\"])(_ref), _ref));\n var handle = rectRender && rectRender((0, _objectSpread2[\"default\"])({}, props));\n if (handle) return handle;\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Point[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, props), {}, {\n rectProps: rectProps\n }));\n };\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorSwatch[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\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__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", {\n style: arrBrStyl\n }), /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", {\n style: arrStyl\n })]\n })\n }));\n});\nGithub.displayName = 'Github';\nvar _default = exports[\"default\"] = Github;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"className\", \"color\", \"colors\", \"style\", \"rectProps\", \"onChange\", \"addonAfter\", \"addonBefore\", \"rectRender\"];\nvar Swatch = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-swatch' : _props$prefixCls,\n className = props.className,\n color = props.color,\n _props$colors = props.colors,\n colors = _props$colors === void 0 ? [] : _props$colors,\n style = props.style,\n _props$rectProps = props.rectProps,\n rectProps = _props$rectProps === void 0 ? {} : _props$rectProps,\n onChange = props.onChange,\n addonAfter = props.addonAfter,\n addonBefore = props.addonBefore,\n rectRender = props.rectRender,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var rectStyle = (0, _objectSpread2[\"default\"])({\n '--swatch-background-color': 'rgb(144, 19, 254)',\n background: 'var(--swatch-background-color)',\n height: 15,\n width: 15,\n marginRight: 5,\n marginBottom: 5,\n cursor: 'pointer',\n position: 'relative',\n outline: 'none',\n borderRadius: 2\n }, rectProps.style);\n var handleClick = function handleClick(hex, evn) {\n onChange && onChange((0, _colorConvert.hexToHsva)(hex), (0, _colorConvert.color)((0, _colorConvert.hexToHsva)(hex)), evn);\n };\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n ref: ref\n }, other), {}, {\n className: [prefixCls, className || ''].filter(Boolean).join(' '),\n style: (0, _objectSpread2[\"default\"])({\n display: 'flex',\n flexWrap: 'wrap',\n position: 'relative'\n }, style),\n children: [addonBefore && /*#__PURE__*/_react[\"default\"].isValidElement(addonBefore) && addonBefore, colors && Array.isArray(colors) && colors.map(function (item, idx) {\n var title = '';\n var background = '';\n if (typeof item === 'string') {\n title = item;\n background = item;\n }\n if ((0, _typeof2[\"default\"])(item) === 'object' && item.color) {\n title = item.title || item.color;\n background = item.color;\n }\n var checked = color && color.toLocaleLowerCase() === background.toLocaleLowerCase();\n var render = rectRender && rectRender({\n title: title,\n color: background,\n checked: !!checked,\n style: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, rectStyle), {}, {\n background: background\n }),\n onClick: function onClick(evn) {\n return handleClick(background, evn);\n }\n });\n if (render) {\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Fragment, {\n children: render\n }, idx);\n }\n var child = rectProps.children && /*#__PURE__*/_react[\"default\"].isValidElement(rectProps.children) ? /*#__PURE__*/_react[\"default\"].cloneElement(rectProps.children, {\n color: background,\n checked: checked\n }) : null;\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n tabIndex: 0,\n title: title,\n onClick: function onClick(evn) {\n return handleClick(background, evn);\n }\n }, rectProps), {}, {\n children: child,\n style: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, rectStyle), {}, {\n background: background\n })\n }), idx);\n }), addonAfter && /*#__PURE__*/_react[\"default\"].isValidElement(addonAfter) && addonAfter]\n }));\n});\nSwatch.displayName = 'Swatch';\nvar _default = exports[\"default\"] = Swatch;\nmodule.exports = exports.default;","\nexport default {\n components: { 21: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactColorGithub = _interopRequireDefault(require(\"@uiw/react-color-github\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)(\"#fff\"),\n _useState2 = _slicedToArray(_useState, 2),\n hex = _useState2[0],\n setHex = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(_reactColorGithub[\"default\"], {\n color: hex,\n style: {\n '--github-background-color': '#d1eff9'\n },\n onChange: function onChange(color) {\n setHex(color.hex);\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n width: 120,\n height: 50,\n backgroundColor: hex\n }\n }));\n}; })(),46: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactColorGithub = _interopRequireDefault(require(\"@uiw/react-color-github\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)(\"#fff\"),\n _useState2 = _slicedToArray(_useState, 2),\n hex = _useState2[0],\n setHex = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(_reactColorGithub[\"default\"], {\n color: hex,\n style: {\n '--github-background-color': '#d1eff9'\n },\n onChange: function onChange(color) {\n setHex(color.hex);\n },\n rectRender: function rectRender(props) {\n if (props.key == 15) {\n return /*#__PURE__*/_react[\"default\"].createElement(\"button\", {\n key: props.key,\n onClick: function onClick() {\n return setHex(null);\n }\n }, \"x\");\n }\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n width: 120,\n height: 50,\n backgroundColor: hex\n }\n }));\n}; })(), },\n data: {\n \"21\": {\n \"name\": 21,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactColorGithub = _interopRequireDefault(require(\\\"@uiw/react-color-github\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nreturn function Demo() {\\n var _useState = (0, _react.useState)(\\\"#fff\\\"),\\n _useState2 = _slicedToArray(_useState, 2),\\n hex = _useState2[0],\\n setHex = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_react[\\\"default\\\"].Fragment, null, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorGithub[\\\"default\\\"], {\\n color: hex,\\n style: {\\n '--github-background-color': '#d1eff9'\\n },\\n onChange: function onChange(color) {\\n setHex(color.hex);\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: {\\n width: 120,\\n height: 50,\\n backgroundColor: hex\\n }\\n }));\\n};\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport Github from '@uiw/react-color-github';\\n\\nexport default function Demo() {\\n const [hex, setHex] = useState(\\\"#fff\\\");\\n return (\\n <>\\n {\\n setHex(color.hex);\\n }}\\n />\\n
\\n \\n );\\n}\"\n },\n \"46\": {\n \"name\": 46,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactColorGithub = _interopRequireDefault(require(\\\"@uiw/react-color-github\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nreturn function Demo() {\\n var _useState = (0, _react.useState)(\\\"#fff\\\"),\\n _useState2 = _slicedToArray(_useState, 2),\\n hex = _useState2[0],\\n setHex = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_react[\\\"default\\\"].Fragment, null, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorGithub[\\\"default\\\"], {\\n color: hex,\\n style: {\\n '--github-background-color': '#d1eff9'\\n },\\n onChange: function onChange(color) {\\n setHex(color.hex);\\n },\\n rectRender: function rectRender(props) {\\n if (props.key == 15) {\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"button\\\", {\\n key: props.key,\\n onClick: function onClick() {\\n return setHex(null);\\n }\\n }, \\\"x\\\");\\n }\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: {\\n width: 120,\\n height: 50,\\n backgroundColor: hex\\n }\\n }));\\n};\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport Github from '@uiw/react-color-github';\\n\\nexport default function Demo() {\\n const [hex, setHex] = useState(\\\"#fff\\\");\\n return (\\n <>\\n {\\n setHex(color.hex);\\n }}\\n rectRender={(props) => {\\n if (props.key == 15) {\\n return \\n }\\n }}\\n />\\n
\\n \\n );\\n}\"\n }\n},\n source: \"React Color Github\\n===\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-github)](https://bundlephobia.com/package/@uiw/react-color-github) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-github.svg)](https://www.npmjs.com/package/@uiw/react-color-github) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-github/file/README.md)\\n\\nGithub Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\\n\\n\\n[![react-color-github](https://user-images.githubusercontent.com/1680273/125949553-67c1adef-b37f-43e2-9414-3ffb77c26ba0.png)](https://uiwjs.github.io/react-color/#/github)\\n\\n\\n## Install\\n\\n```bash\\nnpm i @uiw/react-color-github\\n```\\n\\n## Usage\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\nimport Github from '@uiw/react-color-github';\\n\\nexport default function Demo() {\\n const [hex, setHex] = useState(\\\"#fff\\\");\\n return (\\n <>\\n {\\n setHex(color.hex);\\n }}\\n />\\n
\\n \\n );\\n}\\n```\\n\\nAdd clear button\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\nimport Github from '@uiw/react-color-github';\\n\\nexport default function Demo() {\\n const [hex, setHex] = useState(\\\"#fff\\\");\\n return (\\n <>\\n {\\n setHex(color.hex);\\n }}\\n rectRender={(props) => {\\n if (props.key == 15) {\\n return \\n }\\n }}\\n />\\n
\\n \\n );\\n}\\n```\\n\\n## Props\\n\\n```ts\\nimport React from 'react';\\nimport { HsvaColor, ColorResult } from '@uiw/color-convert';\\nimport { SwatchProps, SwatchRectRenderProps } from '@uiw/react-color-swatch';\\nexport declare enum GithubPlacement {\\n Left = \\\"L\\\",\\n LeftTop = \\\"LT\\\",\\n LeftBottom = \\\"LB\\\",\\n Right = \\\"R\\\",\\n RightTop = \\\"RT\\\",\\n RightBottom = \\\"RB\\\",\\n Top = \\\"T\\\",\\n TopRight = \\\"TR\\\",\\n TopLeft = \\\"TL\\\",\\n Bottom = \\\"B\\\",\\n BottomLeft = \\\"BL\\\",\\n BottomRight = \\\"BR\\\"\\n}\\nexport interface GithubRectRenderProps extends SwatchRectRenderProps {\\n arrow?: JSX.Element;\\n}\\nexport interface GithubProps extends Omit {\\n placement?: GithubPlacement;\\n color?: string | HsvaColor;\\n onChange?: (color: ColorResult) => void;\\n}\\ndeclare const Github: React.ForwardRefExoticComponent>;\\nexport default Github;\\n```\\n\\n\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }","function _extends() {\n return module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) {\n for (var e = 1; e < arguments.length; e++) {\n var t = arguments[e];\n for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n }\n return n;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports, _extends.apply(null, arguments);\n}\nmodule.exports = _extends, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _objectDestructuringEmpty(t) {\n if (null == t) throw new TypeError(\"Cannot destructure \" + t);\n}\nmodule.exports = _objectDestructuringEmpty, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;"],"names":["_interopRequireWildcard","require","_interopRequireDefault","Object","defineProperty","exports","value","_ref","style","title","checked","onClick","color","rectProps","btn","_react","useRef","handleMouseEnter","useCallback","current","handleMouseLeave","rectStyle","zIndex","outline","boxShadow","_jsxRuntime","jsx","_objectSpread2","ref","onMouseEnter","onMouseLeave","marginRight","marginBottom","borderRadius","boxSizing","height","width","defalutStyle","module","default","GithubPlacement","_objectDestructuringEmpty2","_extends2","_objectWithoutProperties2","_colorConvert","_reactColorSwatch","_Point","_excluded","CORLER_HEX","Github","forwardRef","props","_props$prefixCls","prefixCls","_props$placement","placement","TopRight","className","_props$colors","colors","_props$rectProps","onChange","rectRender","other","hsva","validHex","hexToHsva","hex","hsvaToHex","styleWrapper","background","border","position","padding","rStyle","borderStyle","arrBrStyl","arrStyl","test","borderWidth","borderColor","top","Top","TopLeft","BottomRight","Bottom","BottomLeft","left","marginLeft","right","RightTop","LeftTop","Left","Right","marginTop","LeftBottom","RightBottom","filter","Boolean","join","handle","hsv","addonBefore","jsxs","Fragment","children","displayName","_typeof2","Swatch","addonAfter","cursor","handleClick","evn","display","flexWrap","isValidElement","Array","isArray","map","item","idx","toLocaleLowerCase","render","child","cloneElement","tabIndex","components","_typeof","o","Symbol","iterator","constructor","prototype","e","r","__esModule","t","_getRequireWildcardCache","has","get","n","__proto__","a","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_reactColorGithub","WeakMap","_slicedToArray","_arrayWithHoles","l","f","next","done","push","length","_iterableToArrayLimit","_arrayLikeToArray","toString","slice","name","from","_unsupportedIterableToArray","TypeError","_nonIterableRest","_useState2","useState","setHex","createElement","backgroundColor","key","data","source","headings","headingsList","_extends","assign","bind","arguments","apply"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/546.a25343e9.chunk.js b/static/js/546.a25343e9.chunk.js deleted file mode 100644 index aa53d97ec..000000000 --- a/static/js/546.a25343e9.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[546],{2165:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={components:{21:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,n=function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=e(t)&&"function"!=typeof t)return{default:t};var n=a(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&{}.hasOwnProperty.call(t,i)){var l=u?Object.getOwnPropertyDescriptor(t,i):null;l&&(l.get||l.set)?Object.defineProperty(o,i,l):o[i]=t[i]}return o.default=t,n&&n.set(t,o),o}(r(7804)),o=(t=r(2051))&&t.__esModule?t:{default:t};function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,u,i=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(i.push(n.value),i.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(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)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)("#fff"),\n _useState2 = _slicedToArray(_useState, 2),\n hex = _useState2[0],\n setHex = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_reactColorGithub["default"], {\n color: hex,\n style: {\n \'--github-background-color\': \'#d1eff9\'\n },\n onChange: function onChange(color) {\n setHex(color.hex);\n }\n }), /*#__PURE__*/_react["default"].createElement("div", {\n style: {\n width: 120,\n height: 50,\n backgroundColor: hex\n }\n }));\n};',language:"jsx",value:"import React, { useState } from 'react';\nimport Github from '@uiw/react-color-github';\n\nexport default function Demo() {\n const [hex, setHex] = useState(\"#fff\");\n return (\n <>\n {\n setHex(color.hex);\n }}\n />\n
\n \n );\n}"},46:{name:46,meta:{},code:'"use strict";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require("react"));\nvar _reactColorGithub = _interopRequireDefault(require("@uiw/react-color-github"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }\nfunction _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)("#fff"),\n _useState2 = _slicedToArray(_useState, 2),\n hex = _useState2[0],\n setHex = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_reactColorGithub["default"], {\n color: hex,\n style: {\n \'--github-background-color\': \'#d1eff9\'\n },\n onChange: function onChange(color) {\n setHex(color.hex);\n },\n rectRender: function rectRender(props) {\n if (props.key == 15) {\n return /*#__PURE__*/_react["default"].createElement("button", {\n key: props.key,\n onClick: function onClick() {\n return setHex(null);\n }\n }, "x");\n }\n }\n }), /*#__PURE__*/_react["default"].createElement("div", {\n style: {\n width: 120,\n height: 50,\n backgroundColor: hex\n }\n }));\n};',language:"jsx",value:"import React, { useState } from 'react';\nimport Github from '@uiw/react-color-github';\n\nexport default function Demo() {\n const [hex, setHex] = useState(\"#fff\");\n return (\n <>\n {\n setHex(color.hex);\n }}\n rectRender={(props) => {\n if (props.key == 15) {\n return \n }\n }}\n />\n
\n \n );\n}"}},source:'React Color Github\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-github)](https://bundlephobia.com/package/@uiw/react-color-github) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-github.svg)](https://www.npmjs.com/package/@uiw/react-color-github) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-github/file/README.md)\n\nGithub Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\n\n\x3c!--rehype:ignore:start--\x3e\n[![react-color-github](https://user-images.githubusercontent.com/1680273/125949553-67c1adef-b37f-43e2-9414-3ffb77c26ba0.png)](https://uiwjs.github.io/react-color/#/github)\n\x3c!--rehype:ignore:end--\x3e\n\n## Install\n\n```bash\nnpm i @uiw/react-color-github\n```\n\n## Usage\n\n```jsx mdx:preview\nimport React, { useState } from \'react\';\nimport Github from \'@uiw/react-color-github\';\n\nexport default function Demo() {\n const [hex, setHex] = useState("#fff");\n return (\n <>\n {\n setHex(color.hex);\n }}\n />\n
\n \n );\n}\n```\n\nAdd clear button\n\n```jsx mdx:preview\nimport React, { useState } from \'react\';\nimport Github from \'@uiw/react-color-github\';\n\nexport default function Demo() {\n const [hex, setHex] = useState("#fff");\n return (\n <>\n {\n setHex(color.hex);\n }}\n rectRender={(props) => {\n if (props.key == 15) {\n return \n }\n }}\n />\n
\n \n );\n}\n```\n\n## Props\n\n```ts\nimport React from \'react\';\nimport { HsvaColor, ColorResult } from \'@uiw/color-convert\';\nimport { SwatchProps, SwatchRectRenderProps } from \'@uiw/react-color-swatch\';\nexport declare enum GithubPlacement {\n Left = "L",\n LeftTop = "LT",\n LeftBottom = "LB",\n Right = "R",\n RightTop = "RT",\n RightBottom = "RB",\n Top = "T",\n TopRight = "TR",\n TopLeft = "TL",\n Bottom = "B",\n BottomLeft = "BL",\n BottomRight = "BR"\n}\nexport interface GithubRectRenderProps extends SwatchRectRenderProps {\n arrow?: JSX.Element;\n}\nexport interface GithubProps extends Omit {\n placement?: GithubPlacement;\n color?: string | HsvaColor;\n onChange?: (color: ColorResult) => void;\n}\ndeclare const Github: React.ForwardRefExoticComponent>;\nexport default Github;\n```\n\n\x3c!--footer-dividing--\x3e\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n',headings:[],headingsList:[]}}}]); -//# sourceMappingURL=546.a25343e9.chunk.js.map \ No newline at end of file diff --git a/static/js/546.a25343e9.chunk.js.map b/static/js/546.a25343e9.chunk.js.map deleted file mode 100644 index 484974c8c..000000000 --- a/static/js/546.a25343e9.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/546.a25343e9.chunk.js","mappings":"+HACA,SACIA,WAAY,CAAE,GAAI,WAEtB,SAASC,EA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IACR,OAAoBxD,EAAgB,QAAE8C,cAAc,SAAU,CAC5DU,IAAKD,EAAMC,IACXC,QAAS,WACP,OAAOZ,EAAO,KAChB,GACC,IAEP,IACe7C,EAAgB,QAAE8C,cAAc,MAAO,CACtDG,MAAO,CACLE,MAAO,IACPC,OAAQ,GACRC,gBAAiBT,KAGvB,CAAI,CA5CQ,IA6CRc,KAAM,CACR,GAAM,CACJ,KAAQ,GACR,KAAQ,CAAC,EACT,KAAQ,k9GACR,SAAY,MACZ,MAAS,keAEX,GAAM,CACJ,KAAQ,GACR,KAAQ,CAAC,EACT,KAAQ,6vHACR,SAAY,MACZ,MAAS,opBAGTC,OAAQ,m8GACRC,SAAS,GACTC,aAAa,G","sources":["../../packages/color-github/README.md"],"sourcesContent":["\nexport default {\n components: { 21: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactColorGithub = _interopRequireDefault(require(\"@uiw/react-color-github\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)(\"#fff\"),\n _useState2 = _slicedToArray(_useState, 2),\n hex = _useState2[0],\n setHex = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(_reactColorGithub[\"default\"], {\n color: hex,\n style: {\n '--github-background-color': '#d1eff9'\n },\n onChange: function onChange(color) {\n setHex(color.hex);\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n width: 120,\n height: 50,\n backgroundColor: hex\n }\n }));\n}; })(),46: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactColorGithub = _interopRequireDefault(require(\"@uiw/react-color-github\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)(\"#fff\"),\n _useState2 = _slicedToArray(_useState, 2),\n hex = _useState2[0],\n setHex = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(_reactColorGithub[\"default\"], {\n color: hex,\n style: {\n '--github-background-color': '#d1eff9'\n },\n onChange: function onChange(color) {\n setHex(color.hex);\n },\n rectRender: function rectRender(props) {\n if (props.key == 15) {\n return /*#__PURE__*/_react[\"default\"].createElement(\"button\", {\n key: props.key,\n onClick: function onClick() {\n return setHex(null);\n }\n }, \"x\");\n }\n }\n }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n width: 120,\n height: 50,\n backgroundColor: hex\n }\n }));\n}; })(), },\n data: {\n \"21\": {\n \"name\": 21,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactColorGithub = _interopRequireDefault(require(\\\"@uiw/react-color-github\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nreturn function Demo() {\\n var _useState = (0, _react.useState)(\\\"#fff\\\"),\\n _useState2 = _slicedToArray(_useState, 2),\\n hex = _useState2[0],\\n setHex = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_react[\\\"default\\\"].Fragment, null, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorGithub[\\\"default\\\"], {\\n color: hex,\\n style: {\\n '--github-background-color': '#d1eff9'\\n },\\n onChange: function onChange(color) {\\n setHex(color.hex);\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: {\\n width: 120,\\n height: 50,\\n backgroundColor: hex\\n }\\n }));\\n};\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport Github from '@uiw/react-color-github';\\n\\nexport default function Demo() {\\n const [hex, setHex] = useState(\\\"#fff\\\");\\n return (\\n <>\\n {\\n setHex(color.hex);\\n }}\\n />\\n
\\n \\n );\\n}\"\n },\n \"46\": {\n \"name\": 46,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactColorGithub = _interopRequireDefault(require(\\\"@uiw/react-color-github\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nreturn function Demo() {\\n var _useState = (0, _react.useState)(\\\"#fff\\\"),\\n _useState2 = _slicedToArray(_useState, 2),\\n hex = _useState2[0],\\n setHex = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_react[\\\"default\\\"].Fragment, null, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorGithub[\\\"default\\\"], {\\n color: hex,\\n style: {\\n '--github-background-color': '#d1eff9'\\n },\\n onChange: function onChange(color) {\\n setHex(color.hex);\\n },\\n rectRender: function rectRender(props) {\\n if (props.key == 15) {\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"button\\\", {\\n key: props.key,\\n onClick: function onClick() {\\n return setHex(null);\\n }\\n }, \\\"x\\\");\\n }\\n }\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: {\\n width: 120,\\n height: 50,\\n backgroundColor: hex\\n }\\n }));\\n};\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport Github from '@uiw/react-color-github';\\n\\nexport default function Demo() {\\n const [hex, setHex] = useState(\\\"#fff\\\");\\n return (\\n <>\\n {\\n setHex(color.hex);\\n }}\\n rectRender={(props) => {\\n if (props.key == 15) {\\n return \\n }\\n }}\\n />\\n
\\n \\n );\\n}\"\n }\n},\n source: \"React Color Github\\n===\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-github)](https://bundlephobia.com/package/@uiw/react-color-github) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-github.svg)](https://www.npmjs.com/package/@uiw/react-color-github) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-github/file/README.md)\\n\\nGithub Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\\n\\n\\n[![react-color-github](https://user-images.githubusercontent.com/1680273/125949553-67c1adef-b37f-43e2-9414-3ffb77c26ba0.png)](https://uiwjs.github.io/react-color/#/github)\\n\\n\\n## Install\\n\\n```bash\\nnpm i @uiw/react-color-github\\n```\\n\\n## Usage\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\nimport Github from '@uiw/react-color-github';\\n\\nexport default function Demo() {\\n const [hex, setHex] = useState(\\\"#fff\\\");\\n return (\\n <>\\n {\\n setHex(color.hex);\\n }}\\n />\\n
\\n \\n );\\n}\\n```\\n\\nAdd clear button\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\nimport Github from '@uiw/react-color-github';\\n\\nexport default function Demo() {\\n const [hex, setHex] = useState(\\\"#fff\\\");\\n return (\\n <>\\n {\\n setHex(color.hex);\\n }}\\n rectRender={(props) => {\\n if (props.key == 15) {\\n return \\n }\\n }}\\n />\\n
\\n \\n );\\n}\\n```\\n\\n## Props\\n\\n```ts\\nimport React from 'react';\\nimport { HsvaColor, ColorResult } from '@uiw/color-convert';\\nimport { SwatchProps, SwatchRectRenderProps } from '@uiw/react-color-swatch';\\nexport declare enum GithubPlacement {\\n Left = \\\"L\\\",\\n LeftTop = \\\"LT\\\",\\n LeftBottom = \\\"LB\\\",\\n Right = \\\"R\\\",\\n RightTop = \\\"RT\\\",\\n RightBottom = \\\"RB\\\",\\n Top = \\\"T\\\",\\n TopRight = \\\"TR\\\",\\n TopLeft = \\\"TL\\\",\\n Bottom = \\\"B\\\",\\n BottomLeft = \\\"BL\\\",\\n BottomRight = \\\"BR\\\"\\n}\\nexport interface GithubRectRenderProps extends SwatchRectRenderProps {\\n arrow?: JSX.Element;\\n}\\nexport interface GithubProps extends Omit {\\n placement?: GithubPlacement;\\n color?: string | HsvaColor;\\n onChange?: (color: ColorResult) => void;\\n}\\ndeclare const Github: React.ForwardRefExoticComponent>;\\nexport default Github;\\n```\\n\\n\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","_typeof","o","Symbol","iterator","constructor","prototype","e","_react","r","__esModule","t","_getRequireWildcardCache","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_interopRequireWildcard","_reactColorGithub","WeakMap","_slicedToArray","Array","isArray","_arrayWithHoles","l","f","next","done","push","value","length","_iterableToArrayLimit","_arrayLikeToArray","toString","slice","name","from","test","_unsupportedIterableToArray","TypeError","_nonIterableRest","_useState2","useState","hex","setHex","createElement","Fragment","color","style","onChange","width","height","backgroundColor","rectRender","props","key","onClick","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/547.030ccfcd.chunk.js b/static/js/547.030ccfcd.chunk.js new file mode 100644 index 000000000..b1b41d9bb --- /dev/null +++ b/static/js/547.030ccfcd.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[547],{5125:(e,t,r)=>{var n=r(6784).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(6651)),o=n(r(453)),l=n(r(7804)),i=n(r(974)),u=r(7604),s=r(9424),c=["prefixCls","hsva","hProps","sProps","lProps","aProps","className","onChange"],f=l.default.forwardRef((function(e,t){var r=e.prefixCls,n=void 0===r?"w-color-editable-input-hsla":r,l=e.hsva,f=e.hProps,p=void 0===f?{}:f,d=e.sProps,b=void 0===d?{}:d,v=e.lProps,y=void 0===v?{}:v,h=e.aProps,m=void 0===h?{}:h,g=e.className,P=e.onChange,w=(0,o.default)(e,c),_=l?(0,u.hsvaToHsla)(l):{h:0,s:0,l:0,a:0},j=function(e,t,r){"number"===typeof e&&("h"===t&&(e<0&&(e=0),e>360&&(e=360),P&&P((0,u.color)((0,u.hslaToHsva)((0,a.default)((0,a.default)({},_),{},{h:e}))))),"s"===t&&(e<0&&(e=0),e>100&&(e=100),P&&P((0,u.color)((0,u.hslaToHsva)((0,a.default)((0,a.default)({},_),{},{s:e}))))),"l"===t&&(e<0&&(e=0),e>100&&(e=100),P&&P((0,u.color)((0,u.hslaToHsva)((0,a.default)((0,a.default)({},_),{},{l:e}))))),"a"===t&&(e<0&&(e=0),e>1&&(e=1),P&&P((0,u.color)((0,u.hslaToHsva)((0,a.default)((0,a.default)({},_),{},{a:e}))))))},S=0!=m&&(0,a.default)((0,a.default)({label:"A",value:Math.round(100*_.a)/100},m),{},{onChange:function(e,t){return j(t,"a")}});return(0,s.jsx)(i.default,(0,a.default)({ref:t,hsva:l,rProps:(0,a.default)((0,a.default)({label:"H",value:Math.round(_.h)},p),{},{onChange:function(e,t){return j(t,"h")}}),gProps:(0,a.default)((0,a.default)({label:"S",value:"".concat(Math.round(_.s),"%")},b),{},{onChange:function(e,t){return j(t,"s")}}),bProps:(0,a.default)((0,a.default)({label:"L",value:"".concat(Math.round(_.l),"%")},y),{},{onChange:function(e,t){return j(t,"l")}}),aProps:S,className:[n,g||""].filter(Boolean).join(" ")},w))}));f.displayName="EditableInputHSLA";t.default=f;e.exports=t.default},974:(e,t,r)=>{var n=r(6784).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(6651)),o=n(r(453)),l=n(r(7804)),i=n(r(4226)),u=r(7604),s=r(9424),c=["prefixCls","hsva","placement","rProps","gProps","bProps","aProps","className","style","onChange"],f=l.default.forwardRef((function(e,t){var r=e.prefixCls,n=void 0===r?"w-color-editable-input-rgba":r,l=e.hsva,f=e.placement,p=void 0===f?"bottom":f,d=e.rProps,b=void 0===d?{}:d,v=e.gProps,y=void 0===v?{}:v,h=e.bProps,m=void 0===h?{}:h,g=e.aProps,P=void 0===g?{}:g,w=e.className,_=e.style,j=e.onChange,S=(0,o.default)(e,c),O=l?(0,u.hsvaToRgba)(l):{};function x(e){var t=Number(e.target.value);t&&t>255&&(e.target.value="255"),t&&t<0&&(e.target.value="0")}var A=function(e,t,r){"number"===typeof e&&("a"===t&&(e<0&&(e=0),e>100&&(e=100),j&&j((0,u.color)((0,u.rgbaToHsva)((0,a.default)((0,a.default)({},O),{},{a:e/100}))))),e>255&&(e=255,r.target.value="255"),e<0&&(e=0,r.target.value="0"),"r"===t&&j&&j((0,u.color)((0,u.rgbaToHsva)((0,a.default)((0,a.default)({},O),{},{r:e})))),"g"===t&&j&&j((0,u.color)((0,u.rgbaToHsva)((0,a.default)((0,a.default)({},O),{},{g:e})))),"b"===t&&j&&j((0,u.color)((0,u.rgbaToHsva)((0,a.default)((0,a.default)({},O),{},{b:e})))))};return(0,s.jsxs)("div",(0,a.default)((0,a.default)({ref:t,className:[n,w||""].filter(Boolean).join(" ")},S),{},{style:(0,a.default)({fontSize:11,display:"flex"},_),children:[(0,s.jsx)(i.default,(0,a.default)((0,a.default)({label:"R",value:O.r||0,onBlur:x,placement:p,onChange:function(e,t){return A(t,"r",e)}},b),{},{style:(0,a.default)({},b.style)})),(0,s.jsx)(i.default,(0,a.default)((0,a.default)({label:"G",value:O.g||0,onBlur:x,placement:p,onChange:function(e,t){return A(t,"g",e)}},y),{},{style:(0,a.default)({marginLeft:5},b.style)})),(0,s.jsx)(i.default,(0,a.default)((0,a.default)({label:"B",value:O.b||0,onBlur:x,placement:p,onChange:function(e,t){return A(t,"b",e)}},m),{},{style:(0,a.default)({marginLeft:5},m.style)})),P&&(0,s.jsx)(i.default,(0,a.default)((0,a.default)({label:"A",value:O.a?parseInt(String(100*O.a),10):0,onBlur:x,placement:p,onChange:function(e,t){return A(t,"a",e)}},P),{},{style:(0,a.default)({marginLeft:5},P.style)}))]}))}));f.displayName="EditableInputRGBA";t.default=f;e.exports=t.default},4226:(e,t,r)=>{var n=r(6784).default,a=r(147).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(6651)),l=n(r(8821)),i=n(r(453)),u=a(r(7804)),s=r(9424),c=["prefixCls","placement","label","value","className","style","labelStyle","inputStyle","onChange","onBlur"],f=u.default.forwardRef((function(e,t){var r=e.prefixCls,n=void 0===r?"w-color-editable-input":r,a=e.placement,f=void 0===a?"bottom":a,p=e.label,d=e.value,b=e.className,v=e.style,y=e.labelStyle,h=e.inputStyle,m=e.onChange,g=e.onBlur,P=(0,i.default)(e,c),w=(0,u.useState)(d),_=(0,l.default)(w,2),j=_[0],S=_[1],O=(0,u.useRef)(!1);(0,u.useEffect)((function(){e.value!==j&&(O.current||S(e.value))}),[e.value]);var x={};"bottom"===f&&(x.flexDirection="column"),"top"===f&&(x.flexDirection="column-reverse"),"left"===f&&(x.flexDirection="row-reverse");var A=(0,o.default)((0,o.default)({"--editable-input-label-color":"rgb(153, 153, 153)","--editable-input-box-shadow":"rgb(204 204 204) 0px 0px 0px 1px inset","--editable-input-color":"#666",position:"relative",alignItems:"center",display:"flex",fontSize:11},x),v),C=(0,o.default)({width:"100%",paddingTop:2,paddingBottom:2,paddingLeft:3,paddingRight:3,fontSize:11,background:"transparent",boxSizing:"border-box",border:"none",color:"var(--editable-input-color)",boxShadow:"var(--editable-input-box-shadow)"},h);return(0,s.jsxs)("div",{className:[n,b||""].filter(Boolean).join(" "),style:A,children:[(0,s.jsx)("input",(0,o.default)((0,o.default)({ref:t,value:j,onChange:function(e,t){var r=(t||e.target.value).trim().replace(/^#/,"");/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(r)&&m&&m(e,r);var n=function(e){return Number(String(e).replace(/%/g,""))}(r);isNaN(n)||m&&m(e,n),S(r)},onBlur:function(t){O.current=!1,S(e.value),g&&g(t)},autoComplete:"off",onFocus:function(){return O.current=!0}},P),{},{style:C})),p&&(0,s.jsx)("span",{style:(0,o.default)({color:"var(--editable-input-label-color)",textTransform:"capitalize"},y),children:p})]})}));f.displayName="EditableInput";t.default=f;e.exports=t.default},5547:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={components:{21:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,n=function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=e(t)&&"function"!=typeof t)return{default:t};var n=o(r);if(n&&n.has(t))return n.get(t);var a={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&{}.hasOwnProperty.call(t,i)){var u=l?Object.getOwnPropertyDescriptor(t,i):null;u&&(u.get||u.set)?Object.defineProperty(a,i,u):a[i]=t[i]}return a.default=t,n&&n.set(t,a),a}(r(7804)),a=(r(7604),(t=r(5125))&&t.__esModule?t:{default:t});function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 209,\n s: 36,\n v: 90,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement("div", {\n style: {\n padding: \'0 10px 0 20px\'\n }\n }, /*#__PURE__*/_react["default"].createElement(_reactColorEditableInputHsla["default"], {\n hsva: hsva,\n onChange: function onChange(color) {\n setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\n }\n }));\n};',language:"jsx",value:"import React, { useState } from 'react';\nimport { hsvaToHex } from '@uiw/color-convert';\nimport EditableInputHSLA from '@uiw/react-color-editable-input-hsla';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 209, s: 36, v: 90, a: 1 });\n return (\n
\n {\n setHsva({ ...hsva, ...color.hsva });\n }}\n />\n
\n );\n}"}},source:"React Color Editable Input HSLA\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-editable-input-hsla)](https://bundlephobia.com/package/@uiw/react-color-editable-input-hsla) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-editable-input-hsla.svg)](https://www.npmjs.com/package/@uiw/react-color-editable-input-hsla) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-editable-input-hsla/file/README.md)\n\nEditableInputHSLA Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\n\n\x3c!--rehype:ignore:start--\x3e\n[![react-color-editable-input-rgba](https://user-images.githubusercontent.com/1680273/126024611-516a5174-4cf2-4986-af36-ddc4d3d620bb.png)](https://uiwjs.github.io/react-color/#/editable-input-hsla)\n\x3c!--rehype:ignore:end--\x3e\n\n## Install\n\n```bash\nnpm i @uiw/react-color-editable-input-hsla\n```\n\n## Usage\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\nimport { hsvaToHex } from '@uiw/color-convert';\nimport EditableInputHSLA from '@uiw/react-color-editable-input-hsla';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 209, s: 36, v: 90, a: 1 });\n return (\n
\n {\n setHsva({ ...hsva, ...color.hsva });\n }}\n />\n
\n );\n}\n```\n\n## Props\n\n```ts\nimport React from 'react';\nimport { EditableInputRGBAProps } from '@uiw/react-color-editable-input-rgba';\nexport interface EditableInputHSLAProps extends Omit {\n hProps?: EditableInputRGBAProps['gProps'];\n sProps?: EditableInputRGBAProps['gProps'];\n lProps?: EditableInputRGBAProps['gProps'];\n aProps?: false | EditableInputRGBAProps['aProps'];\n}\ndeclare const EditableInputHSLA: React.ForwardRefExoticComponent>;\nexport default EditableInputHSLA;\n```\n\n\x3c!--footer-dividing--\x3e\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=547.030ccfcd.chunk.js.map \ No newline at end of file diff --git a/static/js/547.030ccfcd.chunk.js.map b/static/js/547.030ccfcd.chunk.js.map new file mode 100644 index 000000000..eb09889ee --- /dev/null +++ b/static/js/547.030ccfcd.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/547.030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EAAGM,EAAI8B,MAAM/H,GAAI2F,EAAI3F,EAAG2F,IAAKM,EAAEN,GAAKvD,EAAEuD,GAAI,OAAOM,CAAG,CAGnJ,OAAO,WACL,IAME1C,EAAauE,GANC,EAAI1J,EAAOkF,UAAU,CACjCzD,EAAG,IACHC,EAAG,GACH+I,EAAG,GACH7I,EAAG,IAEkC,GACvCjB,EAAOwE,EAAW,GAClBuF,EAAUvF,EAAW,GACvB,OAAoBnF,EAAgB,QAAE2K,cAAc,MAAO,CACzDlH,MAAO,CACLmH,QAAS,kBAEG5K,EAAgB,QAAE2K,cAActC,EAAsC,QAAG,CACvF1H,KAAMA,EACNU,SAAU,SAAkBW,GAC1B0I,EAAQ7B,EAAcA,EAAc,CAAC,EAAGlI,GAAOqB,EAAMrB,MACvD,IAEJ,CAAI,CAxCkB,IAyClBkK,KAAM,CACR,GAAM,CACJ,KAAQ,GACR,KAAQ,CAAC,EACT,KAAQ,mvJACR,SAAY,MACZ,MAAS,ofAGTC,OAAQ,ymFACRC,SAAS,GACTC,aAAa,G","sources":["../../packages/color-editable-input-hsla/cjs/index.js","../../packages/color-editable-input-rgba/cjs/index.js","../../packages/color-editable-input/cjs/index.js","../../packages/color-editable-input-hsla/README.md"],"sourcesContent":["\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _reactColorEditableInputRgba = _interopRequireDefault(require(\"@uiw/react-color-editable-input-rgba\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"hsva\", \"hProps\", \"sProps\", \"lProps\", \"aProps\", \"className\", \"onChange\"];\nvar EditableInputHSLA = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-editable-input-hsla' : _props$prefixCls,\n hsva = props.hsva,\n _props$hProps = props.hProps,\n hProps = _props$hProps === void 0 ? {} : _props$hProps,\n _props$sProps = props.sProps,\n sProps = _props$sProps === void 0 ? {} : _props$sProps,\n _props$lProps = props.lProps,\n lProps = _props$lProps === void 0 ? {} : _props$lProps,\n _props$aProps = props.aProps,\n aProps = _props$aProps === void 0 ? {} : _props$aProps,\n className = props.className,\n onChange = props.onChange,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var hsla = hsva ? (0, _colorConvert.hsvaToHsla)(hsva) : {\n h: 0,\n s: 0,\n l: 0,\n a: 0\n };\n var handleChange = function 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((0, _colorConvert.color)((0, _colorConvert.hslaToHsva)((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, 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((0, _colorConvert.color)((0, _colorConvert.hslaToHsva)((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, 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((0, _colorConvert.color)((0, _colorConvert.hslaToHsva)((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, 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((0, _colorConvert.color)((0, _colorConvert.hslaToHsva)((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, hsla), {}, {\n a: value\n }))));\n }\n }\n };\n var aPropsObj = aProps == false ? false : (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n label: 'A',\n value: Math.round(hsla.a * 100) / 100\n }, aProps), {}, {\n onChange: function onChange(evn, val) {\n return handleChange(val, 'a', evn);\n }\n });\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorEditableInputRgba[\"default\"], (0, _objectSpread2[\"default\"])({\n ref: ref,\n hsva: hsva,\n rProps: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n label: 'H',\n value: Math.round(hsla.h)\n }, hProps), {}, {\n onChange: function onChange(evn, val) {\n return handleChange(val, 'h', evn);\n }\n }),\n gProps: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n label: 'S',\n value: \"\".concat(Math.round(hsla.s), \"%\")\n }, sProps), {}, {\n onChange: function onChange(evn, val) {\n return handleChange(val, 's', evn);\n }\n }),\n bProps: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n label: 'L',\n value: \"\".concat(Math.round(hsla.l), \"%\")\n }, lProps), {}, {\n onChange: function onChange(evn, val) {\n return handleChange(val, 'l', evn);\n }\n }),\n aProps: aPropsObj,\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other));\n});\nEditableInputHSLA.displayName = 'EditableInputHSLA';\nvar _default = exports[\"default\"] = EditableInputHSLA;\nmodule.exports = exports.default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _reactColorEditableInput = _interopRequireDefault(require(\"@uiw/react-color-editable-input\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"hsva\", \"placement\", \"rProps\", \"gProps\", \"bProps\", \"aProps\", \"className\", \"style\", \"onChange\"];\nvar EditableInputRGBA = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-editable-input-rgba' : _props$prefixCls,\n hsva = props.hsva,\n _props$placement = props.placement,\n placement = _props$placement === void 0 ? 'bottom' : _props$placement,\n _props$rProps = props.rProps,\n rProps = _props$rProps === void 0 ? {} : _props$rProps,\n _props$gProps = props.gProps,\n gProps = _props$gProps === void 0 ? {} : _props$gProps,\n _props$bProps = props.bProps,\n bProps = _props$bProps === void 0 ? {} : _props$bProps,\n _props$aProps = props.aProps,\n aProps = _props$aProps === void 0 ? {} : _props$aProps,\n className = props.className,\n style = props.style,\n onChange = props.onChange,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var rgba = hsva ? (0, _colorConvert.hsvaToRgba)(hsva) : {};\n function handleBlur(evn) {\n var value = Number(evn.target.value);\n if (value && value > 255) {\n evn.target.value = '255';\n }\n if (value && value < 0) {\n evn.target.value = '0';\n }\n }\n var handleChange = function handleChange(value, type, evn) {\n if (typeof value === 'number') {\n if (type === 'a') {\n if (value < 0) value = 0;\n if (value > 100) value = 100;\n onChange && onChange((0, _colorConvert.color)((0, _colorConvert.rgbaToHsva)((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, rgba), {}, {\n a: value / 100\n }))));\n }\n if (value > 255) {\n value = 255;\n evn.target.value = '255';\n }\n if (value < 0) {\n value = 0;\n evn.target.value = '0';\n }\n if (type === 'r') {\n onChange && onChange((0, _colorConvert.color)((0, _colorConvert.rgbaToHsva)((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, rgba), {}, {\n r: value\n }))));\n }\n if (type === 'g') {\n onChange && onChange((0, _colorConvert.color)((0, _colorConvert.rgbaToHsva)((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, rgba), {}, {\n g: value\n }))));\n }\n if (type === 'b') {\n onChange && onChange((0, _colorConvert.color)((0, _colorConvert.rgbaToHsva)((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, rgba), {}, {\n b: value\n }))));\n }\n }\n };\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n ref: ref,\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other), {}, {\n style: (0, _objectSpread2[\"default\"])({\n fontSize: 11,\n display: 'flex'\n }, style),\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorEditableInput[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n label: \"R\",\n value: rgba.r || 0,\n onBlur: handleBlur,\n placement: placement,\n onChange: function onChange(evn, val) {\n return handleChange(val, 'r', evn);\n }\n }, rProps), {}, {\n style: (0, _objectSpread2[\"default\"])({}, rProps.style)\n })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorEditableInput[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n label: \"G\",\n value: rgba.g || 0,\n onBlur: handleBlur,\n placement: placement,\n onChange: function onChange(evn, val) {\n return handleChange(val, 'g', evn);\n }\n }, gProps), {}, {\n style: (0, _objectSpread2[\"default\"])({\n marginLeft: 5\n }, rProps.style)\n })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorEditableInput[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n label: \"B\",\n value: rgba.b || 0,\n onBlur: handleBlur,\n placement: placement,\n onChange: function onChange(evn, val) {\n return handleChange(val, 'b', evn);\n }\n }, bProps), {}, {\n style: (0, _objectSpread2[\"default\"])({\n marginLeft: 5\n }, bProps.style)\n })), aProps && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorEditableInput[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n label: \"A\",\n value: rgba.a ? parseInt(String(rgba.a * 100), 10) : 0,\n onBlur: handleBlur,\n placement: placement,\n onChange: function onChange(evn, val) {\n return handleChange(val, 'a', evn);\n }\n }, aProps), {}, {\n style: (0, _objectSpread2[\"default\"])({\n marginLeft: 5\n }, aProps.style)\n }))]\n }));\n});\nEditableInputRGBA.displayName = 'EditableInputRGBA';\nvar _default = exports[\"default\"] = EditableInputRGBA;\nmodule.exports = exports.default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _slicedToArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/slicedToArray\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"placement\", \"label\", \"value\", \"className\", \"style\", \"labelStyle\", \"inputStyle\", \"onChange\", \"onBlur\"];\nvar validHex = function validHex(hex) {\n return /^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(hex);\n};\nvar getNumberValue = function getNumberValue(value) {\n return Number(String(value).replace(/%/g, ''));\n};\nvar EditableInput = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-editable-input' : _props$prefixCls,\n _props$placement = props.placement,\n placement = _props$placement === void 0 ? 'bottom' : _props$placement,\n label = props.label,\n initValue = props.value,\n className = props.className,\n style = props.style,\n labelStyle = props.labelStyle,\n inputStyle = props.inputStyle,\n onChange = props.onChange,\n onBlur = props.onBlur,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var _useState = (0, _react.useState)(initValue),\n _useState2 = (0, _slicedToArray2[\"default\"])(_useState, 2),\n value = _useState2[0],\n setValue = _useState2[1];\n var isFocus = (0, _react.useRef)(false);\n (0, _react.useEffect)(function () {\n if (props.value !== value) {\n if (!isFocus.current) {\n setValue(props.value);\n }\n }\n }, [props.value]);\n function handleChange(evn, valInit) {\n var value = (valInit || evn.target.value).trim().replace(/^#/, '');\n if (validHex(value)) {\n onChange && onChange(evn, value);\n }\n var val = getNumberValue(value);\n if (!isNaN(val)) {\n onChange && onChange(evn, val);\n }\n setValue(value);\n }\n function handleBlur(evn) {\n isFocus.current = false;\n setValue(props.value);\n onBlur && onBlur(evn);\n }\n var placementStyle = {};\n if (placement === 'bottom') {\n placementStyle['flexDirection'] = 'column';\n }\n if (placement === 'top') {\n placementStyle['flexDirection'] = 'column-reverse';\n }\n if (placement === 'left') {\n placementStyle['flexDirection'] = 'row-reverse';\n }\n var wrapperStyle = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n '--editable-input-label-color': 'rgb(153, 153, 153)',\n '--editable-input-box-shadow': 'rgb(204 204 204) 0px 0px 0px 1px inset',\n '--editable-input-color': '#666',\n position: 'relative',\n alignItems: 'center',\n display: 'flex',\n fontSize: 11\n }, placementStyle), style);\n var editableStyle = (0, _objectSpread2[\"default\"])({\n width: '100%',\n paddingTop: 2,\n paddingBottom: 2,\n paddingLeft: 3,\n paddingRight: 3,\n fontSize: 11,\n background: 'transparent',\n boxSizing: 'border-box',\n border: 'none',\n color: 'var(--editable-input-color)',\n boxShadow: 'var(--editable-input-box-shadow)'\n }, inputStyle);\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", {\n className: [prefixCls, className || ''].filter(Boolean).join(' '),\n style: wrapperStyle,\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(\"input\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n ref: ref,\n value: value,\n onChange: handleChange,\n onBlur: handleBlur,\n autoComplete: \"off\",\n onFocus: function onFocus() {\n return isFocus.current = true;\n }\n }, other), {}, {\n style: editableStyle\n })), label && /*#__PURE__*/(0, _jsxRuntime.jsx)(\"span\", {\n style: (0, _objectSpread2[\"default\"])({\n color: 'var(--editable-input-label-color)',\n textTransform: 'capitalize'\n }, labelStyle),\n children: label\n })]\n });\n});\nEditableInput.displayName = 'EditableInput';\nvar _default = exports[\"default\"] = EditableInput;\nmodule.exports = exports.default;","\nexport default {\n components: { 21: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactColorEditableInputHsla = _interopRequireDefault(require(\"@uiw/react-color-editable-input-hsla\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _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); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 209,\n s: 36,\n v: 90,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n padding: '0 10px 0 20px'\n }\n }, /*#__PURE__*/_react[\"default\"].createElement(_reactColorEditableInputHsla[\"default\"], {\n hsva: hsva,\n onChange: function onChange(color) {\n setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\n }\n }));\n}; })(), },\n data: {\n \"21\": {\n \"name\": 21,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _colorConvert = require(\\\"@uiw/color-convert\\\");\\nvar _reactColorEditableInputHsla = _interopRequireDefault(require(\\\"@uiw/react-color-editable-input-hsla\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \\\"string\\\"); return \\\"symbol\\\" == _typeof(i) ? i : i + \\\"\\\"; }\\nfunction _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); }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nreturn function Demo() {\\n var _useState = (0, _react.useState)({\\n h: 209,\\n s: 36,\\n v: 90,\\n a: 1\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n hsva = _useState2[0],\\n setHsva = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: {\\n padding: '0 10px 0 20px'\\n }\\n }, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorEditableInputHsla[\\\"default\\\"], {\\n hsva: hsva,\\n onChange: function onChange(color) {\\n setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\\n }\\n }));\\n};\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport { hsvaToHex } from '@uiw/color-convert';\\nimport EditableInputHSLA from '@uiw/react-color-editable-input-hsla';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 209, s: 36, v: 90, a: 1 });\\n return (\\n
\\n {\\n setHsva({ ...hsva, ...color.hsva });\\n }}\\n />\\n
\\n );\\n}\"\n }\n},\n source: \"React Color Editable Input HSLA\\n===\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-editable-input-hsla)](https://bundlephobia.com/package/@uiw/react-color-editable-input-hsla) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-editable-input-hsla.svg)](https://www.npmjs.com/package/@uiw/react-color-editable-input-hsla) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-editable-input-hsla/file/README.md)\\n\\nEditableInputHSLA Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\\n\\n\\n[![react-color-editable-input-rgba](https://user-images.githubusercontent.com/1680273/126024611-516a5174-4cf2-4986-af36-ddc4d3d620bb.png)](https://uiwjs.github.io/react-color/#/editable-input-hsla)\\n\\n\\n## Install\\n\\n```bash\\nnpm i @uiw/react-color-editable-input-hsla\\n```\\n\\n## Usage\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\nimport { hsvaToHex } from '@uiw/color-convert';\\nimport EditableInputHSLA from '@uiw/react-color-editable-input-hsla';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 209, s: 36, v: 90, a: 1 });\\n return (\\n
\\n {\\n setHsva({ ...hsva, ...color.hsva });\\n }}\\n />\\n
\\n );\\n}\\n```\\n\\n## Props\\n\\n```ts\\nimport React from 'react';\\nimport { EditableInputRGBAProps } from '@uiw/react-color-editable-input-rgba';\\nexport interface EditableInputHSLAProps extends Omit {\\n hProps?: EditableInputRGBAProps['gProps'];\\n sProps?: EditableInputRGBAProps['gProps'];\\n lProps?: EditableInputRGBAProps['gProps'];\\n aProps?: false | EditableInputRGBAProps['aProps'];\\n}\\ndeclare const EditableInputHSLA: React.ForwardRefExoticComponent>;\\nexport default EditableInputHSLA;\\n```\\n\\n\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["_interopRequireDefault","require","Object","defineProperty","exports","value","_objectSpread2","_objectWithoutProperties2","_react","_reactColorEditableInputRgba","_colorConvert","_jsxRuntime","_excluded","EditableInputHSLA","forwardRef","props","ref","_props$prefixCls","prefixCls","hsva","_props$hProps","hProps","_props$sProps","sProps","_props$lProps","lProps","_props$aProps","aProps","className","onChange","other","hsla","hsvaToHsla","h","s","l","a","handleChange","type","evn","color","hslaToHsva","aPropsObj","label","Math","round","val","jsx","rProps","gProps","concat","bProps","filter","Boolean","join","displayName","module","default","_reactColorEditableInput","EditableInputRGBA","_props$placement","placement","_props$rProps","_props$gProps","_props$bProps","style","rgba","hsvaToRgba","handleBlur","Number","target","rgbaToHsva","r","g","b","jsxs","fontSize","display","children","onBlur","marginLeft","parseInt","String","_interopRequireWildcard","_slicedToArray2","EditableInput","initValue","labelStyle","inputStyle","_useState","useState","_useState2","setValue","isFocus","useRef","useEffect","current","placementStyle","wrapperStyle","position","alignItems","editableStyle","width","paddingTop","paddingBottom","paddingLeft","paddingRight","background","boxSizing","border","boxShadow","valInit","trim","replace","test","getNumberValue","isNaN","autoComplete","onFocus","textTransform","components","_typeof","o","Symbol","iterator","constructor","prototype","e","__esModule","t","_getRequireWildcardCache","has","get","n","__proto__","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_reactColorEditableInputHsla","WeakMap","ownKeys","keys","getOwnPropertySymbols","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","toPrimitive","TypeError","_toPrimitive","_toPropertyKey","configurable","writable","_slicedToArray","Array","isArray","_arrayWithHoles","f","next","done","_iterableToArrayLimit","_arrayLikeToArray","toString","slice","name","from","_unsupportedIterableToArray","_nonIterableRest","v","setHsva","createElement","padding","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/547.ef097f35.chunk.js b/static/js/547.ef097f35.chunk.js deleted file mode 100644 index 0db3761f0..000000000 --- a/static/js/547.ef097f35.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[547],{5547:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={components:{21:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,n=function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=e(t)&&"function"!=typeof t)return{default:t};var n=a(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&{}.hasOwnProperty.call(t,u)){var l=i?Object.getOwnPropertyDescriptor(t,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=t[u]}return o.default=t,n&&n.set(t,o),o}(r(7804)),o=(r(2945),(t=r(8088))&&t.__esModule?t:{default:t});function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 209,\n s: 36,\n v: 90,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement("div", {\n style: {\n padding: \'0 10px 0 20px\'\n }\n }, /*#__PURE__*/_react["default"].createElement(_reactColorEditableInputHsla["default"], {\n hsva: hsva,\n onChange: function onChange(color) {\n setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\n }\n }));\n};',language:"jsx",value:"import React, { useState } from 'react';\nimport { hsvaToHex } from '@uiw/color-convert';\nimport EditableInputHSLA from '@uiw/react-color-editable-input-hsla';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 209, s: 36, v: 90, a: 1 });\n return (\n
\n {\n setHsva({ ...hsva, ...color.hsva });\n }}\n />\n
\n );\n}"}},source:"React Color Editable Input HSLA\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-editable-input-hsla)](https://bundlephobia.com/package/@uiw/react-color-editable-input-hsla) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-editable-input-hsla.svg)](https://www.npmjs.com/package/@uiw/react-color-editable-input-hsla) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-editable-input-hsla/file/README.md)\n\nEditableInputHSLA Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\n\n\x3c!--rehype:ignore:start--\x3e\n[![react-color-editable-input-rgba](https://user-images.githubusercontent.com/1680273/126024611-516a5174-4cf2-4986-af36-ddc4d3d620bb.png)](https://uiwjs.github.io/react-color/#/editable-input-hsla)\n\x3c!--rehype:ignore:end--\x3e\n\n## Install\n\n```bash\nnpm i @uiw/react-color-editable-input-hsla\n```\n\n## Usage\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\nimport { hsvaToHex } from '@uiw/color-convert';\nimport EditableInputHSLA from '@uiw/react-color-editable-input-hsla';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 209, s: 36, v: 90, a: 1 });\n return (\n
\n {\n setHsva({ ...hsva, ...color.hsva });\n }}\n />\n
\n );\n}\n```\n\n## Props\n\n```ts\nimport React from 'react';\nimport { EditableInputRGBAProps } from '@uiw/react-color-editable-input-rgba';\nexport interface EditableInputHSLAProps extends Omit {\n hProps?: EditableInputRGBAProps['gProps'];\n sProps?: EditableInputRGBAProps['gProps'];\n lProps?: EditableInputRGBAProps['gProps'];\n aProps?: false | EditableInputRGBAProps['aProps'];\n}\ndeclare const EditableInputHSLA: React.ForwardRefExoticComponent>;\nexport default EditableInputHSLA;\n```\n\n\x3c!--footer-dividing--\x3e\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); -//# sourceMappingURL=547.ef097f35.chunk.js.map \ No newline at end of file diff --git a/static/js/547.ef097f35.chunk.js.map b/static/js/547.ef097f35.chunk.js.map deleted file mode 100644 index adcd70144..000000000 --- a/static/js/547.ef097f35.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/547.ef097f35.chunk.js","mappings":"+HACA,SACIA,WAAY,CAAE,GAAI,WAEtB,SAASC,EAAQC,GAAgC,OAAOD,EAAU,mBAAqBE,QAAU,iBAAmBA,OAAOC,SAAW,SAAUF,GAAK,cAAcA,CAAG,EAAI,SAAUA,GAAK,OAAOA,GAAK,mBAAqBC,QAAUD,EAAEG,cAAgBF,QAAUD,IAAMC,OAAOG,UAAY,gBAAkBJ,CAAG,EAAGD,EAAQC,EAAI,CAC7T,IAGgCK,EAH5BC,EAKJ,SAAiCD,EAAGE,GAAK,IAAKA,GAAKF,GAAKA,EAAEG,WAAY,OAAOH,EAAG,GAAI,OAASA,GAAK,UAAYN,EAAQM,IAAM,mBAAqBA,EAAG,MAAO,CAAE,QAAWA,GAAK,IAAII,EAAIC,EAAyBH,GAAI,GAAIE,GAAKA,EAAEE,IAAIN,GAAI,OAAOI,EAAEG,IAAIP,GAAI,IAAIQ,EAAI,CAAEC,UAAW,MAAQC,EAAIC,OAAOC,gBAAkBD,OAAOE,yBAA0B,IAAK,IAAIC,KAAKd,EAAG,GAAI,YAAcc,GAAK,CAAC,EAAEC,eAAeC,KAAKhB,EAAGc,GAAI,CAAE,IAAIG,EAAIP,EAAIC,OAAOE,yBAAyBb,EAAGc,GAAK,KAAMG,IAAMA,EAAEV,KAAOU,EAAEC,KAAOP,OAAOC,eAAeJ,EAAGM,EAAGG,GAAKT,EAAEM,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xCkB,IAyClBO,KAAM,CACR,GAAM,CACJ,KAAQ,GACR,KAAQ,CAAC,EACT,KAAQ,mvJACR,SAAY,MACZ,MAAS,ofAGTC,OAAQ,ymFACRC,SAAS,GACTC,aAAa,G","sources":["../../packages/color-editable-input-hsla/README.md"],"sourcesContent":["\nexport default {\n components: { 21: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactColorEditableInputHsla = _interopRequireDefault(require(\"@uiw/react-color-editable-input-hsla\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _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); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 209,\n s: 36,\n v: 90,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n padding: '0 10px 0 20px'\n }\n }, /*#__PURE__*/_react[\"default\"].createElement(_reactColorEditableInputHsla[\"default\"], {\n hsva: hsva,\n onChange: function onChange(color) {\n setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\n }\n }));\n}; })(), },\n data: {\n \"21\": {\n \"name\": 21,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _colorConvert = require(\\\"@uiw/color-convert\\\");\\nvar _reactColorEditableInputHsla = _interopRequireDefault(require(\\\"@uiw/react-color-editable-input-hsla\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \\\"string\\\"); return \\\"symbol\\\" == _typeof(i) ? i : i + \\\"\\\"; }\\nfunction _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); }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nreturn function Demo() {\\n var _useState = (0, _react.useState)({\\n h: 209,\\n s: 36,\\n v: 90,\\n a: 1\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n hsva = _useState2[0],\\n setHsva = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: {\\n padding: '0 10px 0 20px'\\n }\\n }, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorEditableInputHsla[\\\"default\\\"], {\\n hsva: hsva,\\n onChange: function onChange(color) {\\n setHsva(_objectSpread(_objectSpread({}, hsva), color.hsva));\\n }\\n }));\\n};\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport { hsvaToHex } from '@uiw/color-convert';\\nimport EditableInputHSLA from '@uiw/react-color-editable-input-hsla';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 209, s: 36, v: 90, a: 1 });\\n return (\\n
\\n {\\n setHsva({ ...hsva, ...color.hsva });\\n }}\\n />\\n
\\n );\\n}\"\n }\n},\n source: \"React Color Editable Input HSLA\\n===\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-editable-input-hsla)](https://bundlephobia.com/package/@uiw/react-color-editable-input-hsla) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-editable-input-hsla.svg)](https://www.npmjs.com/package/@uiw/react-color-editable-input-hsla) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-editable-input-hsla/file/README.md)\\n\\nEditableInputHSLA Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\\n\\n\\n[![react-color-editable-input-rgba](https://user-images.githubusercontent.com/1680273/126024611-516a5174-4cf2-4986-af36-ddc4d3d620bb.png)](https://uiwjs.github.io/react-color/#/editable-input-hsla)\\n\\n\\n## Install\\n\\n```bash\\nnpm i @uiw/react-color-editable-input-hsla\\n```\\n\\n## Usage\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\nimport { hsvaToHex } from '@uiw/color-convert';\\nimport EditableInputHSLA from '@uiw/react-color-editable-input-hsla';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 209, s: 36, v: 90, a: 1 });\\n return (\\n
\\n {\\n setHsva({ ...hsva, ...color.hsva });\\n }}\\n />\\n
\\n );\\n}\\n```\\n\\n## Props\\n\\n```ts\\nimport React from 'react';\\nimport { EditableInputRGBAProps } from '@uiw/react-color-editable-input-rgba';\\nexport interface EditableInputHSLAProps extends Omit {\\n hProps?: EditableInputRGBAProps['gProps'];\\n sProps?: EditableInputRGBAProps['gProps'];\\n lProps?: EditableInputRGBAProps['gProps'];\\n aProps?: false | EditableInputRGBAProps['aProps'];\\n}\\ndeclare const EditableInputHSLA: React.ForwardRefExoticComponent>;\\nexport default EditableInputHSLA;\\n```\\n\\n\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","_typeof","o","Symbol","iterator","constructor","prototype","e","_react","r","__esModule","t","_getRequireWildcardCache","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_interopRequireWildcard","_reactColorEditableInputHsla","WeakMap","ownKeys","keys","getOwnPropertySymbols","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","toPrimitive","TypeError","String","Number","_toPrimitive","_toPropertyKey","value","configurable","writable","_slicedToArray","Array","isArray","_arrayWithHoles","l","f","next","done","_iterableToArrayLimit","_arrayLikeToArray","toString","slice","name","from","test","_unsupportedIterableToArray","_nonIterableRest","_useState2","useState","h","s","v","hsva","setHsva","createElement","style","padding","onChange","color","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/563.042094b3.chunk.js b/static/js/563.042094b3.chunk.js new file mode 100644 index 000000000..e19dcb308 --- /dev/null +++ b/static/js/563.042094b3.chunk.js @@ -0,0 +1,2 @@ +(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:()=>j});var s,o,n,i,a,l=r(114),c=r(7804),d=r(7584),h=r(3235),p=r(9424);const g=h.Ay.div(s||(s=(0,l.A)(["\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"]))),x=h.Ay.a(o||(o=(0,l.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"]))),u=h.Ay.div(n||(n=(0,l.A)(["\n padding-bottom: 120px;\n"]))),b=h.Ay.footer(i||(i=(0,l.A)(["\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"]))),m=h.Ay.div(a||(a=(0,l.A)(["\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"])));class j extends c.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,p.jsxs)(u,{className:"wmde-markdown-var",children:[(0,p.jsxs)(g,{children:[this.editorUrl&&(0,p.jsx)(x,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"}),this.example&&(0,p.jsxs)(m,{children:[(0,p.jsx)("h3",{children:"Example"}),this.example]}),(0,p.jsx)(d.A,{data:{data:r,components:t,source:e},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,p.jsx)(x,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"})]}),(0,p.jsxs)(b,{children:[(0,p.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,p.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,p.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,p.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:()=>d});var s=r(8957),o=r(7804),n=r(7355),i=r(3623),a=r(7980),l=r(9424);function c(){const{hsva:e,dispatch:t}=(0,o.useContext)(a.ob);return(0,l.jsx)("div",{style:{width:256},children:(0,l.jsx)(n.A,{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:(0,s.A)((0,s.A)({},e),r.hsva)})}})})}class d extends i.A{constructor(){super(...arguments),this.editorUrl="/packages/color-compact/README.md",this.getMdStr=()=>Promise.all([r.e(968),r.e(78)]).then(r.bind(r,7078)),this.example=(0,l.jsx)(c,{})}}},7355:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var s=r(8102),o=r(9257),n=r(7804),i=r(2945),a=r(5991),l=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,i.OB)(e.color)}}):null}var x=n.forwardRef(((e,t)=>{var{prefixCls:r="w-color-compact",className:x,style:u,onChange:b,color:m,colors:j=p,rectProps:f,rectRender:v}=e,w=(0,o.A)(e,h),A="string"===typeof m&&(0,i.Am)(m)?(0,i.RV)(m):m,C=m?(0,i.D9)(A).replace(/^#/,""):"",k=(0,n.useCallback)((e=>b&&b((0,i.yW)(e))),[]),y={style:{alignItems:"baseline"},inputStyle:{boxShadow:"none",backgroundColor:"transparent",outline:0}},F=(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:F,className:[r,x||""].filter(Boolean).join(" ")},w,{children:[(0,d.jsx)(c.A,{colors:j,color:m?(0,i.D9)(A):void 0,rectRender:v,rectProps:(0,s.A)({children:(0,d.jsx)(g,{})},f,{style:(0,s.A)({display:"flex",alignItems:"center",justifyContent:"center"},null==f?void 0:f.style)}),onChange:e=>k(e)}),(0,d.jsxs)("div",{style:{display:"flex",margin:"0 4px 3px 0"},children:[(0,d.jsx)(a.A,{onChange:(e,t)=>{var r;"string"===typeof(r=t)&&(0,i.Am)(r)&&/(3|6)/.test(String(r.length))&&k((0,i.RV)(r))},labelStyle:{paddingRight:5,marginTop:-1},value:C.toLocaleUpperCase(),label:(0,d.jsx)("div",{style:{width:8,height:8,backgroundColor:"#"+C}}),inputStyle:{outline:"none",boxShadow:"initial",background:"transparent"},style:{flexDirection:"row-reverse",flex:"1 1 0%",minWidth:80}}),(0,d.jsx)(l.A,{hsva:A,placement:"left",onChange:e=>k(e.hsva),aProps:!1,rProps:y,gProps:y,bProps:y})]})]}))}));x.displayName="Compact";const u=x}}]); +//# sourceMappingURL=563.042094b3.chunk.js.map \ No newline at end of file diff --git a/static/js/563.042094b3.chunk.js.map b/static/js/563.042094b3.chunk.js.map new file mode 100644 index 000000000..47e23948f --- /dev/null +++ b/static/js/563.042094b3.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/563.042094b3.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,8GCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,IAAGC,IAAAA,GAAAC,EAAAA,EAAAA,GAAA,wPAkB5BC,EAAYJ,EAAAA,GAAOK,EAACC,IAAAA,GAAAH,EAAAA,EAAAA,GAAA,iRAepBI,EAAUP,EAAAA,GAAOC,IAAGO,IAAAA,GAAAL,EAAAA,EAAAA,GAAA,oCAIpBM,EAAST,EAAAA,GAAO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EAAAA,KAAKiF,EAAAA,EAAM,CAC1BtE,KAAMA,EACNuE,UAAW,OACXhE,SAAUiE,GAAUzC,EAAqByC,EAAOxE,MAChDyE,QAAQ,EACRC,OAAQvC,EACRwC,OAAQxC,EACRyC,OAAQzC,UAGX,IAEL9B,EAAQwE,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","_templateObject","_taggedTemplateLiteral","EditorUrl","a","_templateObject2","Wrapper","_templateObject3","Footer","footer","_templateObject4","Example","_templateObject5","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","concat","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Compact","color","onChange","_objectSpread","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/563.799faf0f.chunk.js b/static/js/563.799faf0f.chunk.js deleted file mode 100644 index 4bf3f72e7..000000000 --- a/static/js/563.799faf0f.chunk.js +++ /dev/null @@ -1,45 +0,0 @@ -(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%), - 0 8px 16px rgb(0 0 0 / 15%); - border-radius: 16px; - max-width: 860px; - margin: 0 auto; - padding-bottom: 20px; - position: relative; -`,n=i.Ay.a` - position: absolute; - right: 20px; - padding: 3px 8px 4px 8px; - background: #333333; - border-radius: 0 0 6px 6px; - text-decoration: initial; - color: #fff; - transition: all 0.3s; - font-size: 14px; - &:hover { - background-color: #3f51b4; - } -`,c=i.Ay.div` - padding-bottom: 120px; -`,d=i.Ay.footer` - text-align: center; - margin-top: 40px; - a { - margin: 0 5px; - } - p { - font-size: 12px; - text-align: center; - } -`,h=i.Ay.div` - border-bottom: 1px solid var(--color-border-default); - border-radius: 16px 16px 0 0; - padding: 28px; - > h3 { - 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."]})]})]})}}},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.799faf0f.chunk.js.map \ No newline at end of file diff --git a/static/js/563.799faf0f.chunk.js.map b/static/js/563.799faf0f.chunk.js.map deleted file mode 100644 index e22a13ba9..000000000 --- a/static/js/563.799faf0f.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"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,2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7C,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.42bfa623.chunk.js b/static/js/571.42bfa623.chunk.js new file mode 100644 index 000000000..2e8b3e6ad --- /dev/null +++ b/static/js/571.42bfa623.chunk.js @@ -0,0 +1,2 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[571],{256:r=>{function e(r){var e=new Error("Cannot find module '"+r+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,r.exports=e},3623:(r,e,t)=>{"use strict";t.d(e,{A:()=>f});var o,s,a,n,i,l=t(114),p=t(7804),d=t(7584),h=t(3235),c=t(9424);const g=h.Ay.div(o||(o=(0,l.A)(["\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"]))),u=h.Ay.a(s||(s=(0,l.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"]))),b=h.Ay.div(a||(a=(0,l.A)(["\n padding-bottom: 120px;\n"]))),x=h.Ay.footer(n||(n=(0,l.A)(["\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"]))),m=h.Ay.div(i||(i=(0,l.A)(["\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"])));class f extends p.Component{constructor(r){super(r),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((r=>{this.setState({mdStr:r.default.source,mdObj:r.default})}))}render(){const{source:r,components:e,data:t}=this.state.mdObj||{};return(0,c.jsxs)(b,{className:"wmde-markdown-var",children:[(0,c.jsxs)(g,{children:[this.editorUrl&&(0,c.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"}),this.example&&(0,c.jsxs)(m,{children:[(0,c.jsx)("h3",{children:"Example"}),this.example]}),(0,c.jsx)(d.A,{data:{data:t,components:e,source:r},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,c.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"})]}),(0,c.jsxs)(x,{children:[(0,c.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,c.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,c.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,c.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,c.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,c.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,c.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,c.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},9262:(r,e,t)=>{"use strict";t.d(e,{A:()=>v});var o=t(8102),s=t(9257),a=t(7804),n=t(2945),i=t(2051),l=t(2084),p=t(1068),d=t(1636),h=t(5991),c=t(6436),g=t(8088),u=t(9424),b=["style"];function x(r){var{style:e}=r,t=(0,s.A)(r,b),n=(0,a.useRef)(null),i=(0,a.useCallback)((()=>{n.current.style.backgroundColor="var(--chrome-arrow-background-color)"}),[]),l=(0,a.useCallback)((()=>{n.current.style.backgroundColor="transparent"}),[]);return(0,u.jsx)("div",(0,o.A)({ref:n,style:(0,o.A)({marginLeft:5,cursor:"pointer",transition:"background-color .3s",borderRadius:2},e)},t,{onMouseEnter:i,onMouseLeave:l,children:(0,u.jsx)("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24",style:{display:"block"},children:(0,u.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(r){return(0,u.jsx)("svg",{viewBox:"0 0 512 512",height:"1em",width:"1em",onClick:()=>{"EyeDropper"in window&&(new window.EyeDropper).open().then((e=>{console.log(e),null==r.onPickColor||r.onPickColor(e.sRGBHex)}))},children:(0,u.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 y=["prefixCls","className","style","color","showEditableInput","showEyeDropper","showColorPreview","showHue","showAlpha","inputType","rectProps","onChange"],w=function(r){return r.HEXA="hexa",r.RGBA="rgba",r.HSLA="hsla",r}({}),A=a.forwardRef(((r,e)=>{var{prefixCls:t="w-color-chrome",className:b,style:A,color:v,showEditableInput:j=!0,showEyeDropper:C=!0,showColorPreview:R=!0,showHue:k=!0,showAlpha:B=!0,inputType:S=w.RGBA,rectProps:P={},onChange:L}=r,T=(0,s.A)(r,y),E="string"===typeof v&&(0,n.Am)(v)?(0,n.RV)(v):v||{h:0,s:0,l:0,a:0},D=r=>L&&L((0,n.yW)(r)),[_,M]=(0,a.useState)(S),H={paddingTop:6},N={textAlign:"center",paddingTop:4,paddingBottom:4},W=(0,o.A)({"--chrome-arrow-fill":"#333","--chrome-arrow-background-color":"#e8e8e8",borderRadius:0,flexDirection:"column",width:230,padding:0},A),z={"--chrome-alpha-box-shadow":"rgb(0 0 0 / 25%) 0px 0px 1px inset",borderRadius:"50%",background:(0,n.db)(E),boxShadow:"var(--chrome-alpha-box-shadow)"},F={height:14,width:14},I={style:(0,o.A)({},F),fillProps:{style:F}};return(0,u.jsx)(i.A,(0,o.A)({ref:e,color:E,style:W,colors:void 0,className:[t,b].filter(Boolean).join(" "),placement:i.R.TopLeft},T,{addonAfter:(0,u.jsxs)(a.Fragment,{children:[(0,u.jsx)(l.A,{hsva:E,style:{width:"100%",height:130},onChange:r=>{D((0,o.A)({},E,r,{a:E.a}))}}),(0,u.jsxs)("div",{style:{padding:15,display:"flex",alignItems:"center",gap:10},children:[m&&C&&(0,u.jsx)(f,{onPickColor:r=>{var e=(0,n.RV)(r);D((0,o.A)({},e))}}),R&&(0,u.jsx)(d.Ay,{width:28,height:28,hsva:E,radius:2,style:{borderRadius:"50%"},bgProps:{style:{background:"transparent"}},innerProps:{style:z},pointer:()=>(0,u.jsx)(a.Fragment,{})}),(0,u.jsxs)("div",{style:{flex:1},children:[1==k&&(0,u.jsx)(p.A,{hue:E.h,style:{width:"100%",height:12,borderRadius:2},pointerProps:I,bgProps:{style:{borderRadius:2}},onChange:r=>{D((0,o.A)({},E,r))}}),1==B&&(0,u.jsx)(d.Ay,{hsva:E,style:{marginTop:6,height:12,borderRadius:2},pointerProps:I,bgProps:{style:{borderRadius:2}},onChange:r=>{D((0,o.A)({},E,r))}})]})]}),j&&(0,u.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",padding:"0 15px 15px 15px",userSelect:"none"},children:[(0,u.jsxs)("div",{style:{flex:1},children:[_==w.RGBA&&(0,u.jsx)(c.A,{hsva:E,rProps:{labelStyle:H,inputStyle:N},gProps:{labelStyle:H,inputStyle:N},bProps:{labelStyle:H,inputStyle:N},aProps:0!=B&&{labelStyle:H,inputStyle:N},onChange:r=>D(r.hsva)}),_===w.HEXA&&(0,u.jsx)(h.A,{label:"HEX",labelStyle:H,inputStyle:N,value:E.a>0&&E.a<1?(0,n.wZ)(E).toLocaleUpperCase():(0,n.D9)(E).toLocaleUpperCase(),onChange:(r,e)=>{"string"===typeof e&&D((0,n.RV)(/^#/.test(e)?e:"#"+e))}}),_===w.HSLA&&(0,u.jsx)(g.A,{hsva:E,hProps:{labelStyle:H,inputStyle:N},sProps:{labelStyle:H,inputStyle:N},lProps:{labelStyle:H,inputStyle:N},aProps:0!=B&&{labelStyle:H,inputStyle:N},onChange:r=>D(r.hsva)})]}),(0,u.jsx)(x,{onClick:()=>{_===w.RGBA&&M(w.HSLA),_===w.HSLA&&M(w.HEXA),_===w.HEXA&&M(w.RGBA)}})]})]}),rectRender:()=>(0,u.jsx)(a.Fragment,{})}))}));A.displayName="Chrome";const v=A},8088:(r,e,t)=>{"use strict";t.d(e,{A:()=>h});var o=t(8102),s=t(9257),a=t(7804),n=t(6436),i=t(2945),l=t(9424),p=["prefixCls","hsva","hProps","sProps","lProps","aProps","className","onChange"],d=a.forwardRef(((r,e)=>{var{prefixCls:t="w-color-editable-input-hsla",hsva:a,hProps:d={},sProps:h={},lProps:c={},aProps:g={},className:u,onChange:b}=r,x=(0,s.A)(r,p),m=a?(0,i.E_)(a):{h:0,s:0,l:0,a:0},f=(r,e,t)=>{"number"===typeof r&&("h"===e&&(r<0&&(r=0),r>360&&(r=360),b&&b((0,i.yW)((0,i.YA)((0,o.A)({},m,{h:r}))))),"s"===e&&(r<0&&(r=0),r>100&&(r=100),b&&b((0,i.yW)((0,i.YA)((0,o.A)({},m,{s:r}))))),"l"===e&&(r<0&&(r=0),r>100&&(r=100),b&&b((0,i.yW)((0,i.YA)((0,o.A)({},m,{l:r}))))),"a"===e&&(r<0&&(r=0),r>1&&(r=1),b&&b((0,i.yW)((0,i.YA)((0,o.A)({},m,{a:r}))))))},y=0!=g&&(0,o.A)({label:"A",value:Math.round(100*m.a)/100},g,{onChange:(r,e)=>f(e,"a")});return(0,l.jsx)(n.A,(0,o.A)({ref:e,hsva:a,rProps:(0,o.A)({label:"H",value:Math.round(m.h)},d,{onChange:(r,e)=>f(e,"h")}),gProps:(0,o.A)({label:"S",value:Math.round(m.s)+"%"},h,{onChange:(r,e)=>f(e,"s")}),bProps:(0,o.A)({label:"L",value:Math.round(m.l)+"%"},c,{onChange:(r,e)=>f(e,"l")}),aProps:y,className:[t,u||""].filter(Boolean).join(" ")},x))}));d.displayName="EditableInputHSLA";const h=d},2051:(r,e,t)=>{"use strict";t.d(e,{R:()=>u,A:()=>x});var o=t(9520),s=t(8102),a=t(9257),n=t(7804),i=t(2945),l=t(6966),p=t(9424),d={marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25};function h(r){var{style:e,title:t,checked:o,color:a,onClick:i,rectProps:l}=r,h=(0,n.useRef)(null),c=(0,n.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"}),[]),g=(0,n.useCallback)((()=>{o||(h.current.style.zIndex="0",h.current.style.outline="initial",h.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,p.jsx)("div",(0,s.A)({ref:h,title:t},l,{onClick:i,onMouseEnter:c,onMouseLeave:g,style:(0,s.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(r){return r.Left="L",r.LeftTop="LT",r.LeftBottom="LB",r.Right="R",r.RightTop="RT",r.RightBottom="RB",r.Top="T",r.TopRight="TR",r.TopLeft="TL",r.Bottom="B",r.BottomLeft="BL",r.BottomRight="BR",r}({}),b=n.forwardRef(((r,e)=>{var{prefixCls:t="w-color-github",placement:d=u.TopRight,className:b,style:x,color:m,colors:f=g,rectProps:y={},onChange:w,rectRender:A}=r,v=(0,a.A)(r,c),j="string"===typeof m&&(0,i.Am)(m)?(0,i.RV)(m):m,C=m?(0,i.D9)(j):"",R=(0,s.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"},B=(0,s.A)({},k),S=(0,s.A)({},k);/^T/.test(d)&&(B.borderWidth="0 8px 8px",B.borderColor="transparent transparent var(--github-arrow-border-color)",S.borderWidth="0 7px 7px",S.borderColor="transparent transparent var(--github-background-color)"),d===u.TopRight&&(B.top=-8,S.top=-7),d===u.Top&&(B.top=-8,S.top=-7),d===u.TopLeft&&(B.top=-8,S.top=-7),/^B/.test(d)&&(B.borderWidth="8px 8px 0",B.borderColor="var(--github-arrow-border-color) transparent transparent",S.borderWidth="7px 7px 0",S.borderColor="var(--github-background-color) transparent transparent",d===u.BottomRight&&(B.top="100%",S.top="100%"),d===u.Bottom&&(B.top="100%",S.top="100%"),d===u.BottomLeft&&(B.top="100%",S.top="100%")),/^(B|T)/.test(d)&&(d!==u.Top&&d!==u.Bottom||(B.left="50%",B.marginLeft=-8,S.left="50%",S.marginLeft=-7),d!==u.TopRight&&d!==u.BottomRight||(B.right=10,S.right=11),d!==u.TopLeft&&d!==u.BottomLeft||(B.left=7,S.left=8)),/^L/.test(d)&&(B.borderWidth="8px 8px 8px 0",B.borderColor="transparent var(--github-arrow-border-color) transparent transparent",S.borderWidth="7px 7px 7px 0",S.borderColor="transparent var(--github-background-color) transparent transparent",B.left=-8,S.left=-7),/^R/.test(d)&&(B.borderWidth="8px 0 8px 8px",B.borderColor="transparent transparent transparent var(--github-arrow-border-color)",S.borderWidth="7px 0 7px 7px",S.borderColor="transparent transparent transparent var(--github-background-color)",B.right=-8,S.right=-7),/^(L|R)/.test(d)&&(d!==u.RightTop&&d!==u.LeftTop||(B.top=5,S.top=6),d!==u.Left&&d!==u.Right||(B.top="50%",S.top="50%",B.marginTop=-8,S.marginTop=-7),d!==u.LeftBottom&&d!==u.RightBottom||(B.top="100%",S.top="100%",B.marginTop=-21,S.marginTop=-20));return(0,p.jsx)(l.A,(0,s.A)({ref:e,className:[t,b].filter(Boolean).join(" "),colors:f,color:C,rectRender:r=>{var e=(0,s.A)({},((0,o.A)(r),r)),t=A&&A((0,s.A)({},e));return t||(0,p.jsx)(h,(0,s.A)({},e,{rectProps:y}))}},v,{onChange:r=>w&&w((0,i.yW)(r)),style:R,rectProps:{style:{marginRight:0,marginBottom:0,borderRadius:0,height:25,width:25}},addonBefore:(0,p.jsxs)(n.Fragment,{children:[(0,p.jsx)("div",{style:B}),(0,p.jsx)("div",{style:S})]})}))}));b.displayName="Github";const x=b},9520:(r,e,t)=>{"use strict";function o(r){if(null==r)throw new TypeError("Cannot destructure "+r)}t.d(e,{A:()=>o})}}]); +//# sourceMappingURL=571.42bfa623.chunk.js.map \ No newline at end of file diff --git a/static/js/571.42bfa623.chunk.js.map b/static/js/571.42bfa623.chunk.js.map new file mode 100644 index 000000000..960cddabd --- /dev/null +++ b/static/js/571.42bfa623.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/571.42bfa623.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,8GCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,IAAGC,IAAAA,GAAAC,EAAAA,EAAAA,GAAA,wPAkB5BC,EAAYJ,EAAAA,GAAOK,EAACC,IAAAA,GAAAH,EAAAA,EAAAA,GAAA,iRAepBI,EAAUP,EAAAA,GAAOC,IAAGO,IAAAA,GAAAL,EAAAA,EAAAA,GAAA,oCAIpBM,EAAST,EAAAA,GAAOU,OAAMC,IAAAA,GAAAR,EAAAA,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Aa,KAWzB,OAAoB/G,EAAAA,EAAAA,KAAKmL,EAAAA,GAAQ9J,EAAAA,EAAAA,GAAS,CACxCC,IAAKA,EACLxB,UAAW,CAACmD,EAAWnD,GAAW2F,OAAOC,SAASC,KAAK,KACvDJ,OAAQA,EACRrC,MAAOmD,EACPkC,WAbWe,IACX,IAAI3K,GAAQ0C,EAAAA,EAAAA,GAAS,CAAC,IAAI+J,EAAAA,EAAAA,GAA0B9B,GAAOA,IACvD+B,EAAS9C,GAAcA,GAAWlH,EAAAA,EAAAA,GAAS,CAAC,EAAG1C,IACnD,OAAI0M,IACgBrL,EAAAA,EAAAA,KAAKqJ,GAAOhI,EAAAA,EAAAA,GAAS,CAAC,EAAG1C,EAAO,CAClD+E,UAAWA,IACV,GAQF7C,EAAO,CACR8C,SAzHiBQ,GAAOR,GAAYA,GAASS,EAAAA,EAAAA,IAAYD,IA0HzD7D,MAAOwJ,EACPpG,UAAW,CACTpD,MAAO,CACL4I,YAAa,EACbC,aAAc,EACdzH,aAAc,EACdK,OAAQ,GACRD,MAAO,KAGXwJ,aAA0BzL,EAAAA,EAAAA,MAAMmG,EAAAA,SAAU,CACxCjG,SAAU,EAAcC,EAAAA,EAAAA,KAAK,MAAO,CAClCM,MAAO4J,KACQlK,EAAAA,EAAAA,KAAK,MAAO,CAC3BM,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","_templateObject","_taggedTemplateLiteral","EditorUrl","a","_templateObject2","Wrapper","_templateObject3","Footer","footer","_templateObject4","Example","_templateObject5","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","concat","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/571.b934f5eb.chunk.js b/static/js/571.b934f5eb.chunk.js deleted file mode 100644 index 432176c60..000000000 --- a/static/js/571.b934f5eb.chunk.js +++ /dev/null @@ -1,45 +0,0 @@ -(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%), - 0 8px 16px rgb(0 0 0 / 15%); - border-radius: 16px; - max-width: 860px; - margin: 0 auto; - padding-bottom: 20px; - position: relative; -`,n=s.Ay.a` - position: absolute; - right: 20px; - padding: 3px 8px 4px 8px; - background: #333333; - border-radius: 0 0 6px 6px; - text-decoration: initial; - color: #fff; - transition: all 0.3s; - font-size: 14px; - &:hover { - background-color: #3f51b4; - } -`,p=s.Ay.div` - padding-bottom: 120px; -`,d=s.Ay.footer` - text-align: center; - margin-top: 40px; - a { - margin: 0 5px; - } - p { - font-size: 12px; - text-align: center; - } -`,h=s.Ay.div` - border-bottom: 1px solid var(--color-border-default); - border-radius: 16px 16px 0 0; - padding: 28px; - > h3 { - margin: 0; - 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.b934f5eb.chunk.js.map \ No newline at end of file diff --git a/static/js/571.b934f5eb.chunk.js.map b/static/js/571.b934f5eb.chunk.js.map deleted file mode 100644 index f3f32778d..000000000 --- a/static/js/571.b934f5eb.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"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;;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ACxCC,IAAKA,EACLvB,UAAW,CAACkD,EAAWlD,GAAW0F,OAAOC,SAASC,KAAK,KACvDJ,OAAQA,EACRrC,MAAOmD,EACPkC,WAbWe,IACX,IAAI1K,GAAQyC,EAAAA,EAAAA,GAAS,CAAC,IAAI+J,EAAAA,EAAAA,GAA0B9B,GAAOA,IACvD+B,EAAS9C,GAAcA,GAAWlH,EAAAA,EAAAA,GAAS,CAAC,EAAGzC,IACnD,OAAIyM,IACgBpL,EAAAA,EAAAA,KAAKoJ,GAAOhI,EAAAA,EAAAA,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/583.0a606499.chunk.js b/static/js/583.0a606499.chunk.js deleted file mode 100644 index ed6ce6074..000000000 --- a/static/js/583.0a606499.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[583],{9583:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});const r={components:{17:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,r=function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=e(t)&&"function"!=typeof t)return{default:t};var r=i(n);if(r&&r.has(t))return r.get(t);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&{}.hasOwnProperty.call(t,u)){var c=a?Object.getOwnPropertyDescriptor(t,u):null;c&&(c.get||c.set)?Object.defineProperty(o,u,c):o[u]=t[u]}return o.default=t,r&&r.set(t,o),o}(n(7804)),o=(t=n(1346))&&t.__esModule?t:{default:t};function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(t,n,r){return(n=function(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,n||"default");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==e(n)?n:n+""}(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nvar pointStyle = {\n width: 5,\n height: 5,\n backgroundColor: \'#fff\',\n position: \'absolute\',\n borderRadius: 3,\n border: \'1px solid rgb(51, 51, 51)\'\n};\nvar wrapper = {\n width: 120,\n height: 120,\n background: \'red\',\n position: \'relative\'\n};\nfunction Demo() {\n var _useState = (0, _react.useState)({\n left: 0.10,\n top: 0.10\n }),\n _useState2 = _slicedToArray(_useState, 2),\n data = _useState2[0],\n setData = _useState2[1];\n var handleChange = function handleChange(interaction, event) {\n return setData(interaction);\n };\n var point = _objectSpread({\n left: "".concat(data.left * 100, "%"),\n top: "".concat(data.top * 100, "%")\n }, pointStyle);\n return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_reactDragEventInteractive["default"], {\n style: wrapper,\n onMove: handleChange,\n onDown: handleChange\n }, /*#__PURE__*/_react["default"].createElement("div", {\n style: point\n })), /*#__PURE__*/_react["default"].createElement("pre", null, JSON.stringify(data, null, 2)));\n}\nreturn Demo;',language:"jsx",value:"import React, { useState } from 'react';\nimport Interactive from '@uiw/react-drag-event-interactive';\n\nconst pointStyle = { width: 5, height: 5, backgroundColor: '#fff', position: 'absolute', borderRadius: 3, border: '1px solid rgb(51, 51, 51)' }\nconst wrapper = { width: 120, height: 120, background: 'red', position: 'relative' }\n\nfunction Demo() {\n const [data, setData] = useState({\n left: 0.10,\n top: 0.10,\n })\n const handleChange = (interaction, event) => setData(interaction);\n const point = { left: `${data.left * 100}%`, top: `${data.top * 100}%`, ...pointStyle }\n return (\n
\n \n
\n \n
\n        {JSON.stringify(data, null, 2)}\n      
\n
\n );\n}\n\nexport default Demo;"}},source:"React Drag Event Interactive\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-drag-event-interactive)](https://bundlephobia.com/package/@uiw/react-drag-event-interactive) [![npm version](https://img.shields.io/npm/v/@uiw/react-drag-event-interactive.svg)](https://www.npmjs.com/package/@uiw/react-drag-event-interactive) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-drag-event-interactive/file/README.md)\n\nInteractive Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\n\n## Install\n\n```bash\nnpm i @uiw/react-drag-event-interactive\n```\n\n## Usage\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\nimport Interactive from '@uiw/react-drag-event-interactive';\n\nconst pointStyle = { width: 5, height: 5, backgroundColor: '#fff', position: 'absolute', borderRadius: 3, border: '1px solid rgb(51, 51, 51)' }\nconst wrapper = { width: 120, height: 120, background: 'red', position: 'relative' }\n\nfunction Demo() {\n const [data, setData] = useState({\n left: 0.10,\n top: 0.10,\n })\n const handleChange = (interaction, event) => setData(interaction);\n const point = { left: `${data.left * 100}%`, top: `${data.top * 100}%`, ...pointStyle }\n return (\n
\n \n
\n \n
\n        {JSON.stringify(data, null, 2)}\n      
\n
\n );\n}\n\nexport default Demo;\n```\n\n## Props\n\n```ts\nimport React from 'react';\nexport declare function useEventCallback(handler?: (value: T, event: K) => void): (value: T, event: K) => void;\nexport declare const isTouch: (event: MouseEvent | TouchEvent) => event is TouchEvent;\nexport declare const preventDefaultMove: (event: MouseEvent | TouchEvent) => void;\nexport declare const clamp: (number: number, min?: number, max?: number) => number;\nexport interface Interaction {\n left: number;\n top: number;\n width: number;\n height: number;\n x: number;\n y: number;\n}\nexport declare const getRelativePosition: (node: HTMLDivElement, event: MouseEvent | TouchEvent) => Interaction;\nexport interface InteractiveProps extends React.HTMLAttributes {\n prefixCls?: string;\n onMove?: (interaction: Interaction, event: MouseEvent | TouchEvent) => void;\n onDown?: (offset: Interaction, event: MouseEvent | TouchEvent) => void;\n}\n```\n\n\x3c!--footer-dividing--\x3e\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); -//# sourceMappingURL=583.0a606499.chunk.js.map \ No newline at end of file diff --git a/static/js/583.0a606499.chunk.js.map b/static/js/583.0a606499.chunk.js.map deleted file mode 100644 index 57a08d570..000000000 --- a/static/js/583.0a606499.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/583.0a606499.chunk.js","mappings":"+HACA,SACIA,WAAY,CAAE,GAAI,WAEtB,SAASC,EAAQC,GAAgC,OAAOD,EAAU,mBAAqBE,QAAU,iBAAmBA,OAAOC,SAAW,SAAUF,GAAK,cAAcA,CAAG,EAAI,SAAUA,GAAK,OAAOA,GAAK,mBAAqBC,QAAUD,EAAEG,cAAgBF,QAAUD,IAAMC,OAAOG,UAAY,gBAAkBJ,CAAG,EAAGD,EAAQC,EAAI,CAC7T,IAEgCK,EAF5BC,EAIJ,SAAiCD,EAAGE,GAAK,IAAKA,GAAKF,GAAKA,EAAEG,WAAY,OAAOH,EAAG,GAAI,OAASA,GAAK,UAAYN,EAAQM,IAAM,mBAAqBA,EAAG,MAAO,CAAE,QAAWA,GAAK,IAAII,EAAIC,EAAyBH,GAAI,GAAIE,GAAKA,EAAEE,IAAIN,GAAI,OAAOI,EAAEG,IAAIP,GAAI,IAAIQ,EAAI,CAAEC,UAAW,MAAQC,EAAIC,OAAOC,gBAAkBD,OAAOE,yBAA0B,IAAK,IAAIC,KAAKd,EAAG,GAAI,YAAcc,GAAK,CAAC,EAAEC,eAAeC,KAAKhB,EAAGc,GAAI,CAAE,IAAIG,EAAIP,EAAIC,OAAOE,yBAAyBb,EAAGc,GAAK,KAAMG,IAAMA,EAAEV,KAAOU,EAAEC,KAAOP,OAAOC,eAAeJ,EAAGM,EAAGG,GAAKT,EAAEM,GAAKd,EAAEc,EAAI,CAAE,OAAON,EAAW,QAAIR,EAAGI,GAAKA,EAAEc,IAAIlB,EAAGQ,GAAIA,CAAG,CAJ5jBW,CAAwB,EAAQ,OACzCC,GAC4BpB,EADwB,EAAQ,QACfA,EAAEG,WAAaH,EAAI,CAAE,QAAWA,GACjF,SAASK,EAAyBL,GAAK,GAAI,mBAA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cAAc,MAAO,CACrDC,MAAOR,KACS1E,EAAgB,QAAEiF,cAAc,MAAO,KAAMI,KAAKC,UAAUjB,EAAM,KAAM,IAC5F,CACc,CAxDQ,IAyDlBA,KAAM,CACR,GAAM,CACJ,KAAQ,GACR,KAAQ,CAAC,EACT,KAAQ,+tKACR,SAAY,MACZ,MAAS,w4BAGTkB,OAAQ,siGACRC,SAAS,GACTC,aAAa,G","sources":["../../packages/drag-event-interactive/README.md"],"sourcesContent":["\nexport default {\n components: { 17: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactDragEventInteractive = _interopRequireDefault(require(\"@uiw/react-drag-event-interactive\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _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); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nvar pointStyle = {\n width: 5,\n height: 5,\n backgroundColor: '#fff',\n position: 'absolute',\n borderRadius: 3,\n border: '1px solid rgb(51, 51, 51)'\n};\nvar wrapper = {\n width: 120,\n height: 120,\n background: 'red',\n position: 'relative'\n};\nfunction Demo() {\n var _useState = (0, _react.useState)({\n left: 0.10,\n top: 0.10\n }),\n _useState2 = _slicedToArray(_useState, 2),\n data = _useState2[0],\n setData = _useState2[1];\n var handleChange = function handleChange(interaction, event) {\n return setData(interaction);\n };\n var point = _objectSpread({\n left: \"\".concat(data.left * 100, \"%\"),\n top: \"\".concat(data.top * 100, \"%\")\n }, pointStyle);\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", null, /*#__PURE__*/_react[\"default\"].createElement(_reactDragEventInteractive[\"default\"], {\n style: wrapper,\n onMove: handleChange,\n onDown: handleChange\n }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: point\n })), /*#__PURE__*/_react[\"default\"].createElement(\"pre\", null, JSON.stringify(data, null, 2)));\n}\nreturn Demo; })(), },\n data: {\n \"17\": {\n \"name\": 17,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactDragEventInteractive = _interopRequireDefault(require(\\\"@uiw/react-drag-event-interactive\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \\\"string\\\"); return \\\"symbol\\\" == _typeof(i) ? i : i + \\\"\\\"; }\\nfunction _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); }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nvar pointStyle = {\\n width: 5,\\n height: 5,\\n backgroundColor: '#fff',\\n position: 'absolute',\\n borderRadius: 3,\\n border: '1px solid rgb(51, 51, 51)'\\n};\\nvar wrapper = {\\n width: 120,\\n height: 120,\\n background: 'red',\\n position: 'relative'\\n};\\nfunction Demo() {\\n var _useState = (0, _react.useState)({\\n left: 0.10,\\n top: 0.10\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n data = _useState2[0],\\n setData = _useState2[1];\\n var handleChange = function handleChange(interaction, event) {\\n return setData(interaction);\\n };\\n var point = _objectSpread({\\n left: \\\"\\\".concat(data.left * 100, \\\"%\\\"),\\n top: \\\"\\\".concat(data.top * 100, \\\"%\\\")\\n }, pointStyle);\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", null, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactDragEventInteractive[\\\"default\\\"], {\\n style: wrapper,\\n onMove: handleChange,\\n onDown: handleChange\\n }, /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: point\\n })), /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"pre\\\", null, JSON.stringify(data, null, 2)));\\n}\\nreturn Demo;\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport Interactive from '@uiw/react-drag-event-interactive';\\n\\nconst pointStyle = { width: 5, height: 5, backgroundColor: '#fff', position: 'absolute', borderRadius: 3, border: '1px solid rgb(51, 51, 51)' }\\nconst wrapper = { width: 120, height: 120, background: 'red', position: 'relative' }\\n\\nfunction Demo() {\\n const [data, setData] = useState({\\n left: 0.10,\\n top: 0.10,\\n })\\n const handleChange = (interaction, event) => setData(interaction);\\n const point = { left: `${data.left * 100}%`, top: `${data.top * 100}%`, ...pointStyle }\\n return (\\n
\\n \\n
\\n \\n
\\n        {JSON.stringify(data, null, 2)}\\n      
\\n
\\n );\\n}\\n\\nexport default Demo;\"\n }\n},\n source: \"React Drag Event Interactive\\n===\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-drag-event-interactive)](https://bundlephobia.com/package/@uiw/react-drag-event-interactive) [![npm version](https://img.shields.io/npm/v/@uiw/react-drag-event-interactive.svg)](https://www.npmjs.com/package/@uiw/react-drag-event-interactive) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-drag-event-interactive/file/README.md)\\n\\nInteractive Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\\n\\n## Install\\n\\n```bash\\nnpm i @uiw/react-drag-event-interactive\\n```\\n\\n## Usage\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\nimport Interactive from '@uiw/react-drag-event-interactive';\\n\\nconst pointStyle = { width: 5, height: 5, backgroundColor: '#fff', position: 'absolute', borderRadius: 3, border: '1px solid rgb(51, 51, 51)' }\\nconst wrapper = { width: 120, height: 120, background: 'red', position: 'relative' }\\n\\nfunction Demo() {\\n const [data, setData] = useState({\\n left: 0.10,\\n top: 0.10,\\n })\\n const handleChange = (interaction, event) => setData(interaction);\\n const point = { left: `${data.left * 100}%`, top: `${data.top * 100}%`, ...pointStyle }\\n return (\\n
\\n \\n
\\n \\n
\\n        {JSON.stringify(data, null, 2)}\\n      
\\n
\\n );\\n}\\n\\nexport default Demo;\\n```\\n\\n## Props\\n\\n```ts\\nimport React from 'react';\\nexport declare function useEventCallback(handler?: (value: T, event: K) => void): (value: T, event: K) => void;\\nexport declare const isTouch: (event: MouseEvent | TouchEvent) => event is TouchEvent;\\nexport declare const preventDefaultMove: (event: MouseEvent | TouchEvent) => void;\\nexport declare const clamp: (number: number, min?: number, max?: number) => number;\\nexport interface Interaction {\\n left: number;\\n top: number;\\n width: number;\\n height: number;\\n x: number;\\n y: number;\\n}\\nexport declare const getRelativePosition: (node: HTMLDivElement, event: MouseEvent | TouchEvent) => Interaction;\\nexport interface InteractiveProps extends React.HTMLAttributes {\\n prefixCls?: string;\\n onMove?: (interaction: Interaction, event: MouseEvent | TouchEvent) => void;\\n onDown?: (offset: Interaction, event: MouseEvent | TouchEvent) => void;\\n}\\n```\\n\\n\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","_typeof","o","Symbol","iterator","constructor","prototype","e","_react","r","__esModule","t","_getRequireWildcardCache","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_interopRequireWildcard","_reactDragEventInteractive","WeakMap","ownKeys","keys","getOwnPropertySymbols","filter","enumerable","push","apply","_defineProperty","toPrimitive","TypeError","String","Number","_toPrimitive","_toPropertyKey","value","configurable","writable","_slicedToArray","Array","isArray","_arrayWithHoles","l","f","next","done","length","_iterableToArrayLimit","_arrayLikeToArray","toString","slice","name","from","test","_unsupportedIterableToArray","_nonIterableRest","pointStyle","width","height","backgroundColor","position","borderRadius","border","wrapper","background","_useState2","useState","left","top","data","setData","handleChange","interaction","event","point","arguments","forEach","getOwnPropertyDescriptors","defineProperties","_objectSpread","concat","createElement","style","onMove","onDown","JSON","stringify","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/583.8ad9ec0b.chunk.js b/static/js/583.8ad9ec0b.chunk.js new file mode 100644 index 000000000..e6cee836c --- /dev/null +++ b/static/js/583.8ad9ec0b.chunk.js @@ -0,0 +1,2 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[583],{7611:(e,t,r)=>{"use strict";var n=r(6784).default,o=r(147).default;Object.defineProperty(t,"__esModule",{value:!0});var a={};t.default=void 0;var i=n(r(6651)),u=n(r(8821)),l=n(r(453)),c=o(r(7804)),s=r(1974);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(a,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var f=r(9424),p=["prefixCls","className","onMove","onDown"],d=c.default.forwardRef((function(e,t){var r=e.prefixCls,n=void 0===r?"w-color-interactive":r,o=e.className,a=e.onMove,d=e.onDown,v=(0,l.default)(e,p),b=(0,c.useRef)(null),y=(0,c.useRef)(!1),h=(0,c.useState)(!1),g=(0,u.default)(h,2),m=g[0],w=g[1],_=(0,s.useEventCallback)(a),O=(0,s.useEventCallback)(d),j=(0,c.useCallback)((function(e){(0,s.preventDefaultMove)(e),((0,s.isTouch)(e)?e.touches.length>0:e.buttons>0)&&b.current?_&&_((0,s.getRelativePosition)(b.current,e),e):w(!1)}),[_]),x=(0,c.useCallback)((function(){return w(!1)}),[]),P=(0,c.useCallback)((function(e){var t=e?window.addEventListener:window.removeEventListener;t(y.current?"touchmove":"mousemove",j),t(y.current?"touchend":"mouseup",x)}),[]);(0,c.useEffect)((function(){return P(m),function(){m&&P(!1)}}),[m,P]);var S=(0,c.useCallback)((function(e){(0,s.preventDefaultMove)(e.nativeEvent),function(e){return!(y.current&&!(0,s.isTouch)(e))&&(y.current=(0,s.isTouch)(e),!0)}(e.nativeEvent)&&(O&&O((0,s.getRelativePosition)(b.current,e.nativeEvent),e.nativeEvent),w(!0))}),[O]);return(0,f.jsx)("div",(0,i.default)((0,i.default)({},v),{},{className:[n,o||""].filter(Boolean).join(" "),style:(0,i.default)((0,i.default)({},v.style),{},{touchAction:"none"}),ref:b,tabIndex:0,onMouseDown:S,onTouchStart:S}))}));d.displayName="Interactive";t.default=d},1974:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.preventDefaultMove=t.isTouch=t.getRelativePosition=t.clamp=void 0,t.useEventCallback=function(e){var t=(0,n.useRef)(e);return(0,n.useEffect)((function(){t.current=e})),(0,n.useCallback)((function(e,r){return t.current&&t.current(e,r)}),[])};var n=r(7804);var o=t.isTouch=function(e){return"touches"in e},a=(t.preventDefaultMove=function(e){!o(e)&&e.preventDefault&&e.preventDefault()},t.clamp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e>r?r:e{"use strict";r.r(t),r.d(t,{default:()=>n});const n={components:{17:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,n=function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=e(t)&&"function"!=typeof t)return{default:t};var n=a(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&{}.hasOwnProperty.call(t,u)){var l=i?Object.getOwnPropertyDescriptor(t,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=t[u]}return o.default=t,n&&n.set(t,o),o}(r(7804)),o=(t=r(7611))&&t.__esModule?t:{default:t};function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(t,r,n){return(r=function(t){var r=function(t,r){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,r||"default");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==e(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,u=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(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)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nvar pointStyle = {\n width: 5,\n height: 5,\n backgroundColor: \'#fff\',\n position: \'absolute\',\n borderRadius: 3,\n border: \'1px solid rgb(51, 51, 51)\'\n};\nvar wrapper = {\n width: 120,\n height: 120,\n background: \'red\',\n position: \'relative\'\n};\nfunction Demo() {\n var _useState = (0, _react.useState)({\n left: 0.10,\n top: 0.10\n }),\n _useState2 = _slicedToArray(_useState, 2),\n data = _useState2[0],\n setData = _useState2[1];\n var handleChange = function handleChange(interaction, event) {\n return setData(interaction);\n };\n var point = _objectSpread({\n left: "".concat(data.left * 100, "%"),\n top: "".concat(data.top * 100, "%")\n }, pointStyle);\n return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_reactDragEventInteractive["default"], {\n style: wrapper,\n onMove: handleChange,\n onDown: handleChange\n }, /*#__PURE__*/_react["default"].createElement("div", {\n style: point\n })), /*#__PURE__*/_react["default"].createElement("pre", null, JSON.stringify(data, null, 2)));\n}\nreturn Demo;',language:"jsx",value:"import React, { useState } from 'react';\nimport Interactive from '@uiw/react-drag-event-interactive';\n\nconst pointStyle = { width: 5, height: 5, backgroundColor: '#fff', position: 'absolute', borderRadius: 3, border: '1px solid rgb(51, 51, 51)' }\nconst wrapper = { width: 120, height: 120, background: 'red', position: 'relative' }\n\nfunction Demo() {\n const [data, setData] = useState({\n left: 0.10,\n top: 0.10,\n })\n const handleChange = (interaction, event) => setData(interaction);\n const point = { left: `${data.left * 100}%`, top: `${data.top * 100}%`, ...pointStyle }\n return (\n
\n \n
\n \n
\n        {JSON.stringify(data, null, 2)}\n      
\n
\n );\n}\n\nexport default Demo;"}},source:"React Drag Event Interactive\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-drag-event-interactive)](https://bundlephobia.com/package/@uiw/react-drag-event-interactive) [![npm version](https://img.shields.io/npm/v/@uiw/react-drag-event-interactive.svg)](https://www.npmjs.com/package/@uiw/react-drag-event-interactive) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-drag-event-interactive/file/README.md)\n\nInteractive Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\n\n## Install\n\n```bash\nnpm i @uiw/react-drag-event-interactive\n```\n\n## Usage\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\nimport Interactive from '@uiw/react-drag-event-interactive';\n\nconst pointStyle = { width: 5, height: 5, backgroundColor: '#fff', position: 'absolute', borderRadius: 3, border: '1px solid rgb(51, 51, 51)' }\nconst wrapper = { width: 120, height: 120, background: 'red', position: 'relative' }\n\nfunction Demo() {\n const [data, setData] = useState({\n left: 0.10,\n top: 0.10,\n })\n const handleChange = (interaction, event) => setData(interaction);\n const point = { left: `${data.left * 100}%`, top: `${data.top * 100}%`, ...pointStyle }\n return (\n
\n \n
\n \n
\n        {JSON.stringify(data, null, 2)}\n      
\n
\n );\n}\n\nexport default Demo;\n```\n\n## Props\n\n```ts\nimport React from 'react';\nexport declare function useEventCallback(handler?: (value: T, event: K) => void): (value: T, event: K) => void;\nexport declare const isTouch: (event: MouseEvent | TouchEvent) => event is TouchEvent;\nexport declare const preventDefaultMove: (event: MouseEvent | TouchEvent) => void;\nexport declare const clamp: (number: number, min?: number, max?: number) => number;\nexport interface Interaction {\n left: number;\n top: number;\n width: number;\n height: number;\n x: number;\n y: number;\n}\nexport declare const getRelativePosition: (node: HTMLDivElement, event: MouseEvent | TouchEvent) => Interaction;\nexport interface InteractiveProps extends React.HTMLAttributes {\n prefixCls?: string;\n onMove?: (interaction: Interaction, event: MouseEvent | TouchEvent) => void;\n onDown?: (offset: Interaction, event: MouseEvent | TouchEvent) => void;\n}\n```\n\n\x3c!--footer-dividing--\x3e\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}},8113:e=>{e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r{e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},6784:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},147:(e,t,r)=>{var n=r(564).default;function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var l=i?Object.getOwnPropertyDescriptor(e,u):null;l&&(l.get||l.set)?Object.defineProperty(a,u,l):a[u]=e[u]}return a.default=e,r&&r.set(e,a),a},e.exports.__esModule=!0,e.exports.default=e.exports},5474:e=>{e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,u=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return u}},e.exports.__esModule=!0,e.exports.default=e.exports},1018:e=>{e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},6651:(e,t,r)=>{var n=r(5707);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}e.exports=function(e){for(var t=1;t{var n=r(739);e.exports=function(e,t){if(null==e)return{};var r,o,a=n(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o{e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports},8821:(e,t,r)=>{var n=r(569),o=r(5474),a=r(7744),i=r(1018);e.exports=function(e,t){return n(e)||o(e,t)||a(e,t)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},7744:(e,t,r)=>{var n=r(8113);e.exports=function(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}},e.exports.__esModule=!0,e.exports.default=e.exports}}]); +//# sourceMappingURL=583.8ad9ec0b.chunk.js.map \ No newline at end of file diff --git a/static/js/583.8ad9ec0b.chunk.js.map b/static/js/583.8ad9ec0b.chunk.js.map new file mode 100644 index 000000000..961a79b82 --- /dev/null +++ b/static/js/583.8ad9ec0b.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/583.8ad9ec0b.chunk.js","mappings":"iGAEA,IAAIA,EAAyBC,EAAAA,MAAAA,QACzBC,EAA0BD,EAAAA,KAAAA,QAC9BE,OAAOC,eAAeC,EAAS,aAAc,CAC3CC,OAAO,IAET,IAAIC,EAAe,CAAC,EACpBF,EAAiB,aAAI,EACrB,IAAIG,EAAiBR,EAAuBC,EAAQ,OAChDQ,EAAkBT,EAAuBC,EAAQ,OACjDS,EAA4BV,EAAuBC,EAAQ,MAC3DU,EAAST,EAAwBD,EAAQ,OACzCW,EAASX,EAAQ,MACrBE,OAAOU,KAAKD,GAAQE,SAAQ,SAAUC,GACxB,YAARA,GAA6B,eAARA,IACrBZ,OAAOa,UAAUC,eAAeC,KAAKX,EAAcQ,IACnDA,KAAOV,GAAWA,EAAQU,KAASH,EAAOG,IAC9CZ,OAAOC,eAAeC,EAASU,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K,EAAOtK,QATP,SAAuCoG,EAAGD,GACxC,GAAI,MAAQC,EAAG,MAAO,CAAC,EACvB,IAAIE,EAAI,CAAC,EACT,IAAK,IAAIG,KAAKL,EAAG,GAAI,CAAC,EAAExF,eAAeC,KAAKuF,EAAGK,GAAI,CACjD,GAAIN,EAAEsE,SAAShE,GAAI,SACnBH,EAAEG,GAAKL,EAAEK,EACX,CACA,OAAOH,CACT,EACgDgE,EAAOtK,QAAQqG,YAAa,EAAMiE,EAAOtK,QAAiB,QAAIsK,EAAOtK,O,iBCTrH,IAAI2K,EAAiB,EAAQ,KACzBC,EAAuB,EAAQ,MAC/BC,EAA6B,EAAQ,MACrCC,EAAkB,EAAQ,MAI9BR,EAAOtK,QAHP,SAAwBoG,EAAGD,GACzB,OAAOwE,EAAevE,IAAMwE,EAAqBxE,EAAGD,IAAM0E,EAA2BzE,EAAGD,IAAM2E,GAChG,EACiCR,EAAOtK,QAAQqG,YAAa,EAAMiE,EAAOtK,QAAiB,QAAIsK,EAAOtK,O,iBCPtG,IAAI+K,EAAmB,EAAQ,MAQ/BT,EAAOtK,QAPP,SAAqCoG,EAAGO,GACtC,GAAIP,EAAG,CACL,GAAI,iBAAmBA,EAAG,OAAO2E,EAAiB3E,EAAGO,GACrD,IAAIL,EAAI,CAAC,EAAEmC,SAAS5H,KAAKuF,GAAGsC,MAAM,GAAI,GACtC,MAAO,WAAapC,GAAKF,EAAEF,cAAgBI,EAAIF,EAAEF,YAAYyC,MAAO,QAAUrC,GAAK,QAAUA,EAAI0B,MAAMY,KAAKxC,GAAK,cAAgBE,GAAK,2CAA2CuC,KAAKvC,GAAKyE,EAAiB3E,EAAGO,QAAK,CACtN,CACF,EAC8C2D,EAAOtK,QAAQqG,YAAa,EAAMiE,EAAOtK,QAAiB,QAAIsK,EAAOtK,O","sources":["../../packages/drag-event-interactive/cjs/index.js","../../packages/drag-event-interactive/cjs/utils.js","../../packages/drag-event-interactive/README.md","../../node_modules/@babel/runtime/helpers/arrayLikeToArray.js","../../node_modules/@babel/runtime/helpers/arrayWithHoles.js","../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../node_modules/@babel/runtime/helpers/interopRequireWildcard.js","../../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js","../../node_modules/@babel/runtime/helpers/nonIterableRest.js","../../node_modules/@babel/runtime/helpers/objectSpread2.js","../../node_modules/@babel/runtime/helpers/objectWithoutProperties.js","../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../node_modules/@babel/runtime/helpers/slicedToArray.js","../../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"],"sourcesContent":["\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _exportNames = {};\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _slicedToArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/slicedToArray\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _utils = require(\"./utils\");\nObject.keys(_utils).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _utils[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _utils[key];\n }\n });\n});\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"className\", \"onMove\", \"onDown\"];\nvar Interactive = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-interactive' : _props$prefixCls,\n className = props.className,\n onMove = props.onMove,\n onDown = props.onDown,\n reset = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var container = (0, _react.useRef)(null);\n var hasTouched = (0, _react.useRef)(false);\n var _useState = (0, _react.useState)(false),\n _useState2 = (0, _slicedToArray2[\"default\"])(_useState, 2),\n isDragging = _useState2[0],\n setDragging = _useState2[1];\n var onMoveCallback = (0, _utils.useEventCallback)(onMove);\n var onKeyCallback = (0, _utils.useEventCallback)(onDown);\n\n // Prevent mobile browsers from handling mouse events (conflicting with touch ones).\n // If we detected a touch interaction before, we prefer reacting to touch events only.\n var isValid = function isValid(event) {\n if (hasTouched.current && !(0, _utils.isTouch)(event)) return false;\n hasTouched.current = (0, _utils.isTouch)(event);\n return true;\n };\n var handleMove = (0, _react.useCallback)(function (event) {\n (0, _utils.preventDefaultMove)(event);\n // If user moves the pointer outside of the window or iframe bounds and release it there,\n // `mouseup`/`touchend` won't be fired. In order to stop the picker from following the cursor\n // after the user has moved the mouse/finger back to the document, we check `event.buttons`\n // and `event.touches`. It allows us to detect that the user is just moving his pointer\n // without pressing it down\n var isDown = (0, _utils.isTouch)(event) ? event.touches.length > 0 : event.buttons > 0;\n if (isDown && container.current) {\n onMoveCallback && onMoveCallback((0, _utils.getRelativePosition)(container.current, event), event);\n } else {\n setDragging(false);\n }\n }, [onMoveCallback]);\n var handleMoveEnd = (0, _react.useCallback)(function () {\n return setDragging(false);\n }, []);\n var toggleDocumentEvents = (0, _react.useCallback)(function (state) {\n var toggleEvent = state ? window.addEventListener : window.removeEventListener;\n toggleEvent(hasTouched.current ? 'touchmove' : 'mousemove', handleMove);\n toggleEvent(hasTouched.current ? 'touchend' : 'mouseup', handleMoveEnd);\n }, []);\n (0, _react.useEffect)(function () {\n toggleDocumentEvents(isDragging);\n return function () {\n isDragging && toggleDocumentEvents(false);\n };\n }, [isDragging, toggleDocumentEvents]);\n var handleMoveStart = (0, _react.useCallback)(function (event) {\n (0, _utils.preventDefaultMove)(event.nativeEvent);\n if (!isValid(event.nativeEvent)) return;\n onKeyCallback && onKeyCallback((0, _utils.getRelativePosition)(container.current, event.nativeEvent), event.nativeEvent);\n setDragging(true);\n }, [onKeyCallback]);\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, reset), {}, {\n className: [prefixCls, className || ''].filter(Boolean).join(' '),\n style: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, reset.style), {}, {\n touchAction: 'none'\n }),\n ref: container,\n tabIndex: 0,\n onMouseDown: handleMoveStart,\n onTouchStart: handleMoveStart\n }));\n});\nInteractive.displayName = 'Interactive';\nvar _default = exports[\"default\"] = Interactive;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.preventDefaultMove = exports.isTouch = exports.getRelativePosition = exports.clamp = void 0;\nexports.useEventCallback = useEventCallback;\nvar _react = require(\"react\");\n// Saves incoming handler to the ref in order to avoid \"useCallback hell\"\nfunction useEventCallback(handler) {\n var callbackRef = (0, _react.useRef)(handler);\n (0, _react.useEffect)(function () {\n callbackRef.current = handler;\n });\n return (0, _react.useCallback)(function (value, event) {\n return callbackRef.current && callbackRef.current(value, event);\n }, []);\n}\n\n// Check if an event was triggered by touch\nvar isTouch = exports.isTouch = function isTouch(event) {\n return 'touches' in event;\n};\n\n// Browsers introduced an intervention, making touch events passive by default.\n// This workaround removes `preventDefault` call from the touch handlers.\n// https://github.com/facebook/react/issues/19651\nvar preventDefaultMove = exports.preventDefaultMove = function preventDefaultMove(event) {\n !isTouch(event) && event.preventDefault && event.preventDefault();\n};\n// Clamps a value between an upper and lower bound.\n// We use ternary operators because it makes the minified code\n// 2 times shorter then `Math.min(Math.max(a,b),c)`\nvar clamp = exports.clamp = function clamp(number) {\n var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n return number > max ? max : number < min ? min : number;\n};\n// Returns a relative position of the pointer inside the node's bounding box\nvar getRelativePosition = exports.getRelativePosition = function getRelativePosition(node, event) {\n var rect = node.getBoundingClientRect();\n\n // Get user's pointer position from `touches` array if it's a `TouchEvent`\n var pointer = isTouch(event) ? event.touches[0] : event;\n return {\n left: clamp((pointer.pageX - (rect.left + window.pageXOffset)) / rect.width),\n top: clamp((pointer.pageY - (rect.top + window.pageYOffset)) / rect.height),\n width: rect.width,\n height: rect.height,\n x: pointer.pageX - (rect.left + window.pageXOffset),\n y: pointer.pageY - (rect.top + window.pageYOffset)\n };\n};","\nexport default {\n components: { 17: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactDragEventInteractive = _interopRequireDefault(require(\"@uiw/react-drag-event-interactive\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _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); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nvar pointStyle = {\n width: 5,\n height: 5,\n backgroundColor: '#fff',\n position: 'absolute',\n borderRadius: 3,\n border: '1px solid rgb(51, 51, 51)'\n};\nvar wrapper = {\n width: 120,\n height: 120,\n background: 'red',\n position: 'relative'\n};\nfunction Demo() {\n var _useState = (0, _react.useState)({\n left: 0.10,\n top: 0.10\n }),\n _useState2 = _slicedToArray(_useState, 2),\n data = _useState2[0],\n setData = _useState2[1];\n var handleChange = function handleChange(interaction, event) {\n return setData(interaction);\n };\n var point = _objectSpread({\n left: \"\".concat(data.left * 100, \"%\"),\n top: \"\".concat(data.top * 100, \"%\")\n }, pointStyle);\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", null, /*#__PURE__*/_react[\"default\"].createElement(_reactDragEventInteractive[\"default\"], {\n style: wrapper,\n onMove: handleChange,\n onDown: handleChange\n }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: point\n })), /*#__PURE__*/_react[\"default\"].createElement(\"pre\", null, JSON.stringify(data, null, 2)));\n}\nreturn Demo; })(), },\n data: {\n \"17\": {\n \"name\": 17,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactDragEventInteractive = _interopRequireDefault(require(\\\"@uiw/react-drag-event-interactive\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \\\"string\\\"); return \\\"symbol\\\" == _typeof(i) ? i : i + \\\"\\\"; }\\nfunction _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); }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nvar pointStyle = {\\n width: 5,\\n height: 5,\\n backgroundColor: '#fff',\\n position: 'absolute',\\n borderRadius: 3,\\n border: '1px solid rgb(51, 51, 51)'\\n};\\nvar wrapper = {\\n width: 120,\\n height: 120,\\n background: 'red',\\n position: 'relative'\\n};\\nfunction Demo() {\\n var _useState = (0, _react.useState)({\\n left: 0.10,\\n top: 0.10\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n data = _useState2[0],\\n setData = _useState2[1];\\n var handleChange = function handleChange(interaction, event) {\\n return setData(interaction);\\n };\\n var point = _objectSpread({\\n left: \\\"\\\".concat(data.left * 100, \\\"%\\\"),\\n top: \\\"\\\".concat(data.top * 100, \\\"%\\\")\\n }, pointStyle);\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", null, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactDragEventInteractive[\\\"default\\\"], {\\n style: wrapper,\\n onMove: handleChange,\\n onDown: handleChange\\n }, /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: point\\n })), /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"pre\\\", null, JSON.stringify(data, null, 2)));\\n}\\nreturn Demo;\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport Interactive from '@uiw/react-drag-event-interactive';\\n\\nconst pointStyle = { width: 5, height: 5, backgroundColor: '#fff', position: 'absolute', borderRadius: 3, border: '1px solid rgb(51, 51, 51)' }\\nconst wrapper = { width: 120, height: 120, background: 'red', position: 'relative' }\\n\\nfunction Demo() {\\n const [data, setData] = useState({\\n left: 0.10,\\n top: 0.10,\\n })\\n const handleChange = (interaction, event) => setData(interaction);\\n const point = { left: `${data.left * 100}%`, top: `${data.top * 100}%`, ...pointStyle }\\n return (\\n
\\n \\n
\\n \\n
\\n        {JSON.stringify(data, null, 2)}\\n      
\\n
\\n );\\n}\\n\\nexport default Demo;\"\n }\n},\n source: \"React Drag Event Interactive\\n===\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-drag-event-interactive)](https://bundlephobia.com/package/@uiw/react-drag-event-interactive) [![npm version](https://img.shields.io/npm/v/@uiw/react-drag-event-interactive.svg)](https://www.npmjs.com/package/@uiw/react-drag-event-interactive) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-drag-event-interactive/file/README.md)\\n\\nInteractive Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\\n\\n## Install\\n\\n```bash\\nnpm i @uiw/react-drag-event-interactive\\n```\\n\\n## Usage\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\nimport Interactive from '@uiw/react-drag-event-interactive';\\n\\nconst pointStyle = { width: 5, height: 5, backgroundColor: '#fff', position: 'absolute', borderRadius: 3, border: '1px solid rgb(51, 51, 51)' }\\nconst wrapper = { width: 120, height: 120, background: 'red', position: 'relative' }\\n\\nfunction Demo() {\\n const [data, setData] = useState({\\n left: 0.10,\\n top: 0.10,\\n })\\n const handleChange = (interaction, event) => setData(interaction);\\n const point = { left: `${data.left * 100}%`, top: `${data.top * 100}%`, ...pointStyle }\\n return (\\n
\\n \\n
\\n \\n
\\n        {JSON.stringify(data, null, 2)}\\n      
\\n
\\n );\\n}\\n\\nexport default Demo;\\n```\\n\\n## Props\\n\\n```ts\\nimport React from 'react';\\nexport declare function useEventCallback(handler?: (value: T, event: K) => void): (value: T, event: K) => void;\\nexport declare const isTouch: (event: MouseEvent | TouchEvent) => event is TouchEvent;\\nexport declare const preventDefaultMove: (event: MouseEvent | TouchEvent) => void;\\nexport declare const clamp: (number: number, min?: number, max?: number) => number;\\nexport interface Interaction {\\n left: number;\\n top: number;\\n width: number;\\n height: number;\\n x: number;\\n y: number;\\n}\\nexport declare const getRelativePosition: (node: HTMLDivElement, event: MouseEvent | TouchEvent) => Interaction;\\nexport interface InteractiveProps extends React.HTMLAttributes {\\n prefixCls?: string;\\n onMove?: (interaction: Interaction, event: MouseEvent | TouchEvent) => void;\\n onDown?: (offset: Interaction, event: MouseEvent | TouchEvent) => void;\\n}\\n```\\n\\n\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }","function _arrayLikeToArray(r, a) {\n (null == a || a > r.length) && (a = r.length);\n for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];\n return n;\n}\nmodule.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _arrayWithHoles(r) {\n if (Array.isArray(r)) return r;\n}\nmodule.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _interopRequireDefault(e) {\n return e && e.__esModule ? e : {\n \"default\": e\n };\n}\nmodule.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction _getRequireWildcardCache(e) {\n if (\"function\" != typeof WeakMap) return null;\n var r = new WeakMap(),\n t = new WeakMap();\n return (_getRequireWildcardCache = function _getRequireWildcardCache(e) {\n return e ? t : r;\n })(e);\n}\nfunction _interopRequireWildcard(e, r) {\n if (!r && e && e.__esModule) return e;\n if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return {\n \"default\": e\n };\n var t = _getRequireWildcardCache(r);\n if (t && t.has(e)) return t.get(e);\n var n = {\n __proto__: null\n },\n a = Object.defineProperty && Object.getOwnPropertyDescriptor;\n for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) {\n var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;\n i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];\n }\n return n[\"default\"] = e, t && t.set(e, n), n;\n}\nmodule.exports = _interopRequireWildcard, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _iterableToArrayLimit(r, l) {\n var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n if (null != t) {\n var e,\n n,\n i,\n u,\n a = [],\n f = !0,\n o = !1;\n try {\n if (i = (t = t.call(r)).next, 0 === l) {\n if (Object(t) !== t) return;\n f = !1;\n } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);\n } catch (r) {\n o = !0, n = r;\n } finally {\n try {\n if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return;\n } finally {\n if (o) throw n;\n }\n }\n return a;\n }\n}\nmodule.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nmodule.exports = _nonIterableRest, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var defineProperty = require(\"./defineProperty.js\");\nfunction ownKeys(e, r) {\n var t = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n r && (o = o.filter(function (r) {\n return Object.getOwnPropertyDescriptor(e, r).enumerable;\n })), t.push.apply(t, o);\n }\n return t;\n}\nfunction _objectSpread2(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = null != arguments[r] ? arguments[r] : {};\n r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n defineProperty(e, r, t[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n });\n }\n return e;\n}\nmodule.exports = _objectSpread2, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var objectWithoutPropertiesLoose = require(\"./objectWithoutPropertiesLoose.js\");\nfunction _objectWithoutProperties(e, t) {\n if (null == e) return {};\n var o,\n r,\n i = objectWithoutPropertiesLoose(e, t);\n if (Object.getOwnPropertySymbols) {\n var s = Object.getOwnPropertySymbols(e);\n for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);\n }\n return i;\n}\nmodule.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _objectWithoutPropertiesLoose(r, e) {\n if (null == r) return {};\n var t = {};\n for (var n in r) if ({}.hasOwnProperty.call(r, n)) {\n if (e.includes(n)) continue;\n t[n] = r[n];\n }\n return t;\n}\nmodule.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayWithHoles = require(\"./arrayWithHoles.js\");\nvar iterableToArrayLimit = require(\"./iterableToArrayLimit.js\");\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray.js\");\nvar nonIterableRest = require(\"./nonIterableRest.js\");\nfunction _slicedToArray(r, e) {\n return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();\n}\nmodule.exports = _slicedToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayLikeToArray = require(\"./arrayLikeToArray.js\");\nfunction _unsupportedIterableToArray(r, a) {\n if (r) {\n if (\"string\" == typeof r) return arrayLikeToArray(r, a);\n var t = {}.toString.call(r).slice(8, -1);\n 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;\n }\n}\nmodule.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;"],"names":["_interopRequireDefault","require","_interopRequireWildcard","Object","defineProperty","exports","value","_exportNames","_objectSpread2","_slicedToArray2","_objectWithoutProperties2","_react","_utils","keys","forEach","key","prototype","hasOwnProperty","call","enumerable","get","_jsxRuntime","_excluded","Interactive","forwardRef","props","ref","_props$prefixCls","prefixCls","className","onMove","onDown","reset","container","useRef","hasTouched","_useState","useState","_useState2","isDragging","setDragging","onMoveCallback","useEventCallback","onKeyCallback","handleMove","useCallback","event","preventDefaultMove","isTouch","touches","length","buttons","current","getRelativePosition","handleMoveEnd","toggleDocumentEvents","state","toggleEvent","window","addEventListener","removeEventListener","useEffect","handleMoveStart","nativeEvent","isValid","jsx","filter","Boolean","join","style","touchAction","tabIndex","onMouseDown","onTouchStart","displayName","clamp","handler","callbackRef","preventDefault","number","min","arguments","undefined","max","node","rect","getBoundingClientRect","pointer","left","pageX","pageXOffset","width","top","pageY","pageYOffset","height","x","y","components","_typeof","o","Symbol","iterator","constructor","e","r","__esModule","t","_getRequireWildcardCache","has","n","__proto__","a","getOwnPropertyDescriptor","u","i","set","_reactDragEventInteractive","WeakMap","ownKeys","getOwnPropertySymbols","push","apply","_defineProperty","toPrimitive","TypeError","String","Number","_toPrimitive","_toPropertyKey","configurable","writable","_slicedToArray","Array","isArray","_arrayWithHoles","l","f","next","done","_iterableToArrayLimit","_arrayLikeToArray","toString","slice","name","from","test","_unsupportedIterableToArray","_nonIterableRest","pointStyle","backgroundColor","position","borderRadius","border","wrapper","background","data","setData","handleChange","interaction","point","getOwnPropertyDescriptors","defineProperties","_objectSpread","concat","createElement","JSON","stringify","source","headings","headingsList","module","objectWithoutPropertiesLoose","s","includes","propertyIsEnumerable","arrayWithHoles","iterableToArrayLimit","unsupportedIterableToArray","nonIterableRest","arrayLikeToArray"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/655.62b2a2d5.chunk.js b/static/js/655.62b2a2d5.chunk.js deleted file mode 100644 index 5cc30301d..000000000 --- a/static/js/655.62b2a2d5.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[655],{2655:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={components:{21:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,n=function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=e(t)&&"function"!=typeof t)return{default:t};var n=u(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&{}.hasOwnProperty.call(t,a)){var c=i?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=t[a]}return o.default=t,n&&n.set(t,o),o}(r(7804)),o=(t=r(1068))&&t.__esModule?t:{default:t};function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 0,\n v: 68,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement(_reactColorHue["default"], {\n hue: hsva.h,\n onChange: function onChange(newHue) {\n setHsva(_objectSpread(_objectSpread({}, hsva), newHue));\n }\n });\n};',language:"jsx",value:"import React, { useState } from 'react';\nimport Hue from '@uiw/react-color-hue';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\n return (\n {\n setHsva({ ...hsva, ...newHue });\n }}\n />\n );\n}"},38:{name:38,meta:{},code:'"use strict";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require("react"));\nvar _reactColorHue = _interopRequireDefault(require("@uiw/react-color-hue"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }\nfunction _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }\nreturn function Demo() {\n return /*#__PURE__*/_react["default"].createElement(_reactColorHue["default"], {\n hue: undefined\n });\n};',language:"jsx",value:"import React, { useState } from 'react';\nimport Hue from '@uiw/react-color-hue';\n\nexport default function Demo() {\n return (\n \n );\n}"}},source:"React Color Hue\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-hue)](https://bundlephobia.com/package/@uiw/react-color-hue) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-hue.svg)](https://www.npmjs.com/package/@uiw/react-color-hue) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-hue/file/README.md)\n\nHue Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\n\n\x3c!--rehype:ignore:start--\x3e\n[![react-color-hue](https://user-images.githubusercontent.com/1680273/125951739-e38dad1a-5d11-4e4b-a146-3365bd0d98fb.png)](https://uiwjs.github.io/react-color/#/hue)\n\x3c!--rehype:ignore:end--\x3e\n\n## Install\n\n```bash\nnpm i @uiw/react-color-hue\n```\n\n## Usage\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\nimport Hue from '@uiw/react-color-hue';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\n return (\n {\n setHsva({ ...hsva, ...newHue });\n }}\n />\n );\n}\n```\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\nimport Hue from '@uiw/react-color-hue';\n\nexport default function Demo() {\n return (\n \n );\n}\n```\n\n## Props\n\n```ts\nimport React from 'react';\nimport { AlphaProps } from '@uiw/react-color-alpha';\nexport interface HueProps extends Omit {\n onChange?: (newHue: {\n h: number;\n }) => void;\n hue: number;\n}\ndeclare const Hue: React.ForwardRefExoticComponent>;\nexport default Hue;\n```\n\n\x3c!--footer-dividing--\x3e\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); -//# sourceMappingURL=655.62b2a2d5.chunk.js.map \ No newline at end of file diff --git a/static/js/655.62b2a2d5.chunk.js.map b/static/js/655.62b2a2d5.chunk.js.map deleted file mode 100644 index cb1d75063..000000000 --- a/static/js/655.62b2a2d5.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/655.62b2a2d5.chunk.js","mappings":"+HACA,SACIA,WAAY,CAAE,GAAI,WAEtB,SAASC,EAAQC,GAAgC,OAAOD,EAAU,mBAAqBE,QAAU,iBAAmBA,OAAOC,SAAW,SAAUF,GAAK,cAAcA,CAAG,EAAI,SAAUA,GAAK,OAAOA,GAAK,mBAAqBC,QAAUD,EAAEG,cAAgBF,QAAUD,IAAMC,OAAOG,UAAY,gBAAkBJ,CAAG,EAAGD,EAAQC,EAAI,CAC7T,IAEgCK,EAF5BC,EAIJ,SAAiCD,EAAGE,GAAK,IAAKA,GAAKF,GAAKA,EAAEG,WAAY,OAAOH,EAAG,GAAI,OAASA,GAAK,UAAYN,EAAQM,IAAM,mBAAqBA,EAAG,MAAO,CAAE,QAAWA,GAAK,IAAII,EAAIC,EAAyBH,GAAI,GAAIE,GAAKA,EAAEE,IAAIN,GAAI,OAAOI,EAAEG,IAAIP,GAAI,IAAIQ,EAAI,CAAEC,UAAW,MAAQC,EAAIC,OAAOC,gBAAkBD,OAAOE,yBAA0B,IAAK,IAAIC,KAAKd,EAAG,GAAI,YAAcc,GAAK,CAAC,EAAEC,eAAeC,KAAKhB,EAAGc,GAAI,CAAE,IAAIG,EAAIP,EAAIC,OAAOE,yBAAyBb,EAAGc,GAAK,KAAMG,IAAMA,EAAEV,KAAOU,EAAEC,KAAOP,OAAOC,eAAeJ,EAAGM,EAAGG,GAAKT,EAAEM,GAAKd,EAA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,CACR,GAAM,CACJ,KAAQ,GACR,KAAQ,CAAC,EACT,KAAQ,0hJACR,SAAY,MACZ,MAAS,yUAEX,GAAM,CACJ,KAAQ,GACR,KAAQ,CAAC,EACT,KAAQ,k/CACR,SAAY,MACZ,MAAS,4KAGTC,OAAQ,owEACRC,SAAS,GACTC,aAAa,G","sources":["../../packages/color-hue/README.md"],"sourcesContent":["\nexport default {\n components: { 21: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactColorHue = _interopRequireDefault(require(\"@uiw/react-color-hue\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _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); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 0,\n v: 68,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(_reactColorHue[\"default\"], {\n hue: hsva.h,\n onChange: function onChange(newHue) {\n setHsva(_objectSpread(_objectSpread({}, hsva), newHue));\n }\n });\n}; })(),38: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactColorHue = _interopRequireDefault(require(\"@uiw/react-color-hue\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nreturn function Demo() {\n return /*#__PURE__*/_react[\"default\"].createElement(_reactColorHue[\"default\"], {\n hue: undefined\n });\n}; })(), },\n data: {\n \"21\": {\n \"name\": 21,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactColorHue = _interopRequireDefault(require(\\\"@uiw/react-color-hue\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \\\"string\\\"); return \\\"symbol\\\" == _typeof(i) ? i : i + \\\"\\\"; }\\nfunction _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); }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nreturn function Demo() {\\n var _useState = (0, _react.useState)({\\n h: 0,\\n s: 0,\\n v: 68,\\n a: 1\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n hsva = _useState2[0],\\n setHsva = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorHue[\\\"default\\\"], {\\n hue: hsva.h,\\n onChange: function onChange(newHue) {\\n setHsva(_objectSpread(_objectSpread({}, hsva), newHue));\\n }\\n });\\n};\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport Hue from '@uiw/react-color-hue';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\\n return (\\n {\\n setHsva({ ...hsva, ...newHue });\\n }}\\n />\\n );\\n}\"\n },\n \"38\": {\n \"name\": 38,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactColorHue = _interopRequireDefault(require(\\\"@uiw/react-color-hue\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nreturn function Demo() {\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorHue[\\\"default\\\"], {\\n hue: undefined\\n });\\n};\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport Hue from '@uiw/react-color-hue';\\n\\nexport default function Demo() {\\n return (\\n \\n );\\n}\"\n }\n},\n source: \"React Color Hue\\n===\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-hue)](https://bundlephobia.com/package/@uiw/react-color-hue) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-hue.svg)](https://www.npmjs.com/package/@uiw/react-color-hue) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-hue/file/README.md)\\n\\nHue Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\\n\\n\\n[![react-color-hue](https://user-images.githubusercontent.com/1680273/125951739-e38dad1a-5d11-4e4b-a146-3365bd0d98fb.png)](https://uiwjs.github.io/react-color/#/hue)\\n\\n\\n## Install\\n\\n```bash\\nnpm i @uiw/react-color-hue\\n```\\n\\n## Usage\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\nimport Hue from '@uiw/react-color-hue';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\\n return (\\n {\\n setHsva({ ...hsva, ...newHue });\\n }}\\n />\\n );\\n}\\n```\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\nimport Hue from '@uiw/react-color-hue';\\n\\nexport default function Demo() {\\n return (\\n \\n );\\n}\\n```\\n\\n## Props\\n\\n```ts\\nimport React from 'react';\\nimport { AlphaProps } from '@uiw/react-color-alpha';\\nexport interface HueProps extends Omit {\\n onChange?: (newHue: {\\n h: number;\\n }) => void;\\n hue: number;\\n}\\ndeclare const Hue: React.ForwardRefExoticComponent>;\\nexport default Hue;\\n```\\n\\n\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","_typeof","o","Symbol","iterator","constructor","prototype","e","_react","r","__esModule","t","_getRequireWildcardCache","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_interopRequireWildcard","_reactColorHue","WeakMap","ownKeys","keys","getOwnPropertySymbols","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","toPrimitive","TypeError","String","Number","_toPrimitive","_toPropertyKey","value","configurable","writable","_slicedToArray","Array","isArray","_arrayWithHoles","l","f","next","done","_iterableToArrayLimit","_arrayLikeToArray","toString","slice","name","from","test","_unsupportedIterableToArray","_nonIterableRest","_useState2","useState","h","s","v","hsva","setHsva","createElement","hue","onChange","newHue","undefined","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/655.e72e2772.chunk.js b/static/js/655.e72e2772.chunk.js new file mode 100644 index 000000000..22fee7954 --- /dev/null +++ b/static/js/655.e72e2772.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[655],{5602:(e,t,r)=>{var n=r(6784).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Pointer=void 0;var o=n(r(6651)),a=n(r(453)),u=(n(r(7804)),r(9424)),i=["className","prefixCls","left","top","style","fillProps"];t.Pointer=function(e){var t=e.className,r=e.prefixCls,n=e.left,l=e.top,c=e.style,f=e.fillProps,s=(0,a.default)(e,i),p=(0,o.default)((0,o.default)({},c),{},{position:"absolute",left:n,top:l}),d=(0,o.default)((0,o.default)({width:18,height:18,boxShadow:"var(--alpha-pointer-box-shadow)",borderRadius:"50%",backgroundColor:"var(--alpha-pointer-background-color)"},null===f||void 0===f?void 0:f.style),{},{transform:n?"translate(-9px, -1px)":"translate(-1px, -9px)"});return(0,u.jsx)("div",(0,o.default)((0,o.default)({className:"".concat(r,"-pointer ").concat(t||""),style:p},s),{},{children:(0,u.jsx)("div",(0,o.default)((0,o.default)({className:"".concat(r,"-fill")},f),{},{style:d}))}))}},4707:(e,t,r)=>{var n=r(6784).default;Object.defineProperty(t,"__esModule",{value:!0});var o={BACKGROUND_IMG:!0};t.default=t.BACKGROUND_IMG=void 0;var a=n(r(6651)),u=n(r(453)),i=n(r(7804)),l=r(7604),c=n(r(7611)),f=r(5602);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var s=r(9424),p=["prefixCls","className","hsva","background","bgProps","innerProps","pointerProps","radius","width","height","direction","style","onChange","pointer"],d=t.BACKGROUND_IMG="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==",h=i.default.forwardRef((function(e,t){var r=e.prefixCls,n=void 0===r?"w-color-alpha":r,o=e.className,i=e.hsva,h=e.background,b=e.bgProps,y=void 0===b?{}:b,v=e.innerProps,g=void 0===v?{}:v,m=e.pointerProps,w=void 0===m?{}:m,_=e.radius,O=void 0===_?0:_,j=e.width,P=e.height,A=void 0===P?16:P,C=e.direction,S=void 0===C?"horizontal":C,x=e.style,R=e.onChange,k=e.pointer,M=(0,u.default)(e,p),D=function(e){R&&R((0,a.default)((0,a.default)({},i),{},{a:"horizontal"===S?e.left:e.top}),e)},H=(0,l.hsvaToHslaString)(Object.assign({},i,{a:1})),E="linear-gradient(to ".concat("horizontal"===S?"right":"bottom",", rgba(244, 67, 54, 0) 0%, ").concat(H," 100%)"),W={};"horizontal"===S?W.left="".concat(100*i.a,"%"):W.top="".concat(100*i.a,"%");var T=(0,a.default)((0,a.default)((0,a.default)({"--alpha-background-color":"#fff","--alpha-pointer-background-color":"rgb(248, 248, 248)","--alpha-pointer-box-shadow":"rgb(0 0 0 / 37%) 0px 1px 4px 0px",borderRadius:O,background:"url(".concat(d,") left center"),backgroundColor:"var(--alpha-background-color)"},{width:j,height:A}),x),{},{position:"relative"}),N=k&&"function"===typeof k?k((0,a.default)((0,a.default)({prefixCls:n},w),W)):(0,s.jsx)(f.Pointer,(0,a.default)((0,a.default)({},w),{},{prefixCls:n},W));return(0,s.jsxs)("div",(0,a.default)((0,a.default)({},M),{},{className:[n,"".concat(n,"-").concat(S),o||""].filter(Boolean).join(" "),style:T,ref:t,children:[(0,s.jsx)("div",(0,a.default)((0,a.default)({},y),{},{style:(0,a.default)({inset:0,position:"absolute",background:h||E,borderRadius:O},y.style)})),(0,s.jsx)(c.default,(0,a.default)((0,a.default)({},g),{},{style:(0,a.default)((0,a.default)({},g.style),{},{inset:0,zIndex:1,position:"absolute"}),onMove:D,onDown:D,children:N}))]}))}));h.displayName="Alpha";t.default=h},345:(e,t,r)=>{var n=r(6784).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(6651)),a=n(r(453)),u=n(r(7804)),i=n(r(4707)),l=r(9424),c=["prefixCls","className","hue","onChange","direction"],f=u.default.forwardRef((function(e,t){var r=e.prefixCls,n=void 0===r?"w-color-hue":r,u=e.className,f=e.hue,s=void 0===f?0:f,p=e.onChange,d=e.direction,h=void 0===d?"horizontal":d,b=(0,a.default)(e,c);return(0,l.jsx)(i.default,(0,o.default)((0,o.default)({ref:t,className:"".concat(n," ").concat(u||"")},b),{},{direction:h,background:"linear-gradient(to ".concat("horizontal"===h?"right":"bottom",", rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)"),hsva:{h:s,s:100,v:100,a:s/360},onChange:function(e,t){p&&p({h:"horizontal"===h?360*t.left:360*t.top})}}))}));f.displayName="Hue";t.default=f;e.exports=t.default},7611:(e,t,r)=>{var n=r(6784).default,o=r(147).default;Object.defineProperty(t,"__esModule",{value:!0});var a={};t.default=void 0;var u=n(r(6651)),i=n(r(8821)),l=n(r(453)),c=o(r(7804)),f=r(1974);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(a,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var s=r(9424),p=["prefixCls","className","onMove","onDown"],d=c.default.forwardRef((function(e,t){var r=e.prefixCls,n=void 0===r?"w-color-interactive":r,o=e.className,a=e.onMove,d=e.onDown,h=(0,l.default)(e,p),b=(0,c.useRef)(null),y=(0,c.useRef)(!1),v=(0,c.useState)(!1),g=(0,i.default)(v,2),m=g[0],w=g[1],_=(0,f.useEventCallback)(a),O=(0,f.useEventCallback)(d),j=(0,c.useCallback)((function(e){(0,f.preventDefaultMove)(e),((0,f.isTouch)(e)?e.touches.length>0:e.buttons>0)&&b.current?_&&_((0,f.getRelativePosition)(b.current,e),e):w(!1)}),[_]),P=(0,c.useCallback)((function(){return w(!1)}),[]),A=(0,c.useCallback)((function(e){var t=e?window.addEventListener:window.removeEventListener;t(y.current?"touchmove":"mousemove",j),t(y.current?"touchend":"mouseup",P)}),[]);(0,c.useEffect)((function(){return A(m),function(){m&&A(!1)}}),[m,A]);var C=(0,c.useCallback)((function(e){(0,f.preventDefaultMove)(e.nativeEvent),function(e){return!(y.current&&!(0,f.isTouch)(e))&&(y.current=(0,f.isTouch)(e),!0)}(e.nativeEvent)&&(O&&O((0,f.getRelativePosition)(b.current,e.nativeEvent),e.nativeEvent),w(!0))}),[O]);return(0,s.jsx)("div",(0,u.default)((0,u.default)({},h),{},{className:[n,o||""].filter(Boolean).join(" "),style:(0,u.default)((0,u.default)({},h.style),{},{touchAction:"none"}),ref:b,tabIndex:0,onMouseDown:C,onTouchStart:C}))}));d.displayName="Interactive";t.default=d},1974:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.preventDefaultMove=t.isTouch=t.getRelativePosition=t.clamp=void 0,t.useEventCallback=function(e){var t=(0,n.useRef)(e);return(0,n.useEffect)((function(){t.current=e})),(0,n.useCallback)((function(e,r){return t.current&&t.current(e,r)}),[])};var n=r(7804);var o=t.isTouch=function(e){return"touches"in e},a=(t.preventDefaultMove=function(e){!o(e)&&e.preventDefault&&e.preventDefault()},t.clamp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e>r?r:e{r.r(t),r.d(t,{default:()=>n});const n={components:{21:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,n=function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=e(t)&&"function"!=typeof t)return{default:t};var n=a(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&{}.hasOwnProperty.call(t,i)){var l=u?Object.getOwnPropertyDescriptor(t,i):null;l&&(l.get||l.set)?Object.defineProperty(o,i,l):o[i]=t[i]}return o.default=t,n&&n.set(t,o),o}(r(7804)),o=(t=r(345))&&t.__esModule?t:{default:t};function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 0,\n v: 68,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement(_reactColorHue["default"], {\n hue: hsva.h,\n onChange: function onChange(newHue) {\n setHsva(_objectSpread(_objectSpread({}, hsva), newHue));\n }\n });\n};',language:"jsx",value:"import React, { useState } from 'react';\nimport Hue from '@uiw/react-color-hue';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\n return (\n {\n setHsva({ ...hsva, ...newHue });\n }}\n />\n );\n}"},38:{name:38,meta:{},code:'"use strict";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require("react"));\nvar _reactColorHue = _interopRequireDefault(require("@uiw/react-color-hue"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }\nfunction _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }\nreturn function Demo() {\n return /*#__PURE__*/_react["default"].createElement(_reactColorHue["default"], {\n hue: undefined\n });\n};',language:"jsx",value:"import React, { useState } from 'react';\nimport Hue from '@uiw/react-color-hue';\n\nexport default function Demo() {\n return (\n \n );\n}"}},source:"React Color Hue\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-hue)](https://bundlephobia.com/package/@uiw/react-color-hue) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-hue.svg)](https://www.npmjs.com/package/@uiw/react-color-hue) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-hue/file/README.md)\n\nHue Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\n\n\x3c!--rehype:ignore:start--\x3e\n[![react-color-hue](https://user-images.githubusercontent.com/1680273/125951739-e38dad1a-5d11-4e4b-a146-3365bd0d98fb.png)](https://uiwjs.github.io/react-color/#/hue)\n\x3c!--rehype:ignore:end--\x3e\n\n## Install\n\n```bash\nnpm i @uiw/react-color-hue\n```\n\n## Usage\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\nimport Hue from '@uiw/react-color-hue';\n\nexport default function Demo() {\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\n return (\n {\n setHsva({ ...hsva, ...newHue });\n }}\n />\n );\n}\n```\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\nimport Hue from '@uiw/react-color-hue';\n\nexport default function Demo() {\n return (\n \n );\n}\n```\n\n## Props\n\n```ts\nimport React from 'react';\nimport { AlphaProps } from '@uiw/react-color-alpha';\nexport interface HueProps extends Omit {\n onChange?: (newHue: {\n h: number;\n }) => void;\n hue: number;\n}\ndeclare const Hue: React.ForwardRefExoticComponent>;\nexport default Hue;\n```\n\n\x3c!--footer-dividing--\x3e\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=655.e72e2772.chunk.js.map \ No newline at end of file diff --git a/static/js/655.e72e2772.chunk.js.map b/static/js/655.e72e2772.chunk.js.map new file mode 100644 index 000000000..d1b6b67ec --- /dev/null +++ b/static/js/655.e72e2772.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/655.e72e2772.chunk.js","mappings":"iGAEA,IAAIA,EAAyBC,EAAAA,MAAAA,QAC7BC,OAAOC,eAAeC,EAAS,aAAc,CAC3CC,OAAO,IAETD,EAAQE,aAAU,EAClB,IAAIC,EAAiBP,EAAuBC,EAAQ,OAChDO,EAA4BR,EAAuBC,EAAQ,MAE3DQ,GADST,EAAuBC,EAAQ,OAC1BA,EAAQ,OACtBS,EAAY,CAAC,YAAa,YAAa,OAAQ,MAAO,QAAS,aACrDN,EAAQE,QAAU,SAAiBK,GAC/C,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKE,UACjBC,EAAOH,EAAKG,KACZC,EAAMJ,EAAKI,IACXC,EAAQL,EAAKK,MACbC,EAAYN,EAAKM,UACjBC,GAAQ,EAAIV,EAAmC,SAAGG,EAAMD,GACtDS,GAAe,EAAIZ,EAAwB,UAAG,EAAIA,EAAwB,SAAG,CAAC,EAAGS,GAAQ,CAAC,EAAG,CAC/FI,SAAU,WACVN,KAAMA,EACNC,IAAKA,IAEHM,GAAe,EAAId,EAAwB,UAAG,EAAIA,EAAwB,SAAG,CAC/Ee,MAAO,GACPC,OAAQ,GACRC,UAAW,kCACXC,aAAc,MACdC,gBAAiB,yCACF,OAAdT,QAAoC,IAAdA,OAAuB,EAASA,EAAUD,OAAQ,CAAC,EAAG,CAC7EW,UAAWb,EAAO,wBAA0B,0BAE9C,OAAoB,EAAIL,EAAYmB,KAAK,OAAO,EAAIrB,EAAwB,UAAG,EAAIA,EAAwB,SAAG,CAC5GK,UAAW,GAAGiB,OAAOhB,EAAW,aAAagB,OAAOjB,GAAa,IACjEI,MAAOG,GACND,GAAQ,CAAC,EAAG,CACbY,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s/index.js","../../packages/color-hue/cjs/index.js","../../packages/drag-event-interactive/cjs/index.js","../../packages/drag-event-interactive/cjs/utils.js","../../packages/color-hue/README.md"],"sourcesContent":["\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Pointer = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"className\", \"prefixCls\", \"left\", \"top\", \"style\", \"fillProps\"];\nvar Pointer = exports.Pointer = function Pointer(_ref) {\n var className = _ref.className,\n prefixCls = _ref.prefixCls,\n left = _ref.left,\n top = _ref.top,\n style = _ref.style,\n fillProps = _ref.fillProps,\n reset = (0, _objectWithoutProperties2[\"default\"])(_ref, _excluded);\n var styleWrapper = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, style), {}, {\n position: 'absolute',\n left: left,\n top: top\n });\n var stylePointer = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n width: 18,\n height: 18,\n boxShadow: 'var(--alpha-pointer-box-shadow)',\n borderRadius: '50%',\n backgroundColor: 'var(--alpha-pointer-background-color)'\n }, fillProps === null || fillProps === void 0 ? void 0 : fillProps.style), {}, {\n transform: left ? 'translate(-9px, -1px)' : 'translate(-1px, -9px)'\n });\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n className: \"\".concat(prefixCls, \"-pointer \").concat(className || ''),\n style: styleWrapper\n }, reset), {}, {\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n className: \"\".concat(prefixCls, \"-fill\")\n }, fillProps), {}, {\n style: stylePointer\n }))\n }));\n};","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _exportNames = {\n BACKGROUND_IMG: true\n};\nexports[\"default\"] = exports.BACKGROUND_IMG = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _colorConvert = require(\"@uiw/color-convert\");\nvar _reactDragEventInteractive = _interopRequireDefault(require(\"@uiw/react-drag-event-interactive\"));\nvar _Pointer = require(\"./Pointer\");\nObject.keys(_Pointer).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _Pointer[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _Pointer[key];\n }\n });\n});\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"className\", \"hsva\", \"background\", \"bgProps\", \"innerProps\", \"pointerProps\", \"radius\", \"width\", \"height\", \"direction\", \"style\", \"onChange\", \"pointer\"];\nvar BACKGROUND_IMG = exports.BACKGROUND_IMG = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==';\nvar Alpha = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-alpha' : _props$prefixCls,\n className = props.className,\n hsva = props.hsva,\n background = props.background,\n _props$bgProps = props.bgProps,\n bgProps = _props$bgProps === void 0 ? {} : _props$bgProps,\n _props$innerProps = props.innerProps,\n innerProps = _props$innerProps === void 0 ? {} : _props$innerProps,\n _props$pointerProps = props.pointerProps,\n pointerProps = _props$pointerProps === void 0 ? {} : _props$pointerProps,\n _props$radius = props.radius,\n radius = _props$radius === void 0 ? 0 : _props$radius,\n width = props.width,\n _props$height = props.height,\n height = _props$height === void 0 ? 16 : _props$height,\n _props$direction = props.direction,\n direction = _props$direction === void 0 ? 'horizontal' : _props$direction,\n style = props.style,\n onChange = props.onChange,\n pointer = props.pointer,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var handleChange = function handleChange(offset) {\n onChange && onChange((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, hsva), {}, {\n a: direction === 'horizontal' ? offset.left : offset.top\n }), offset);\n };\n var colorTo = (0, _colorConvert.hsvaToHslaString)(Object.assign({}, hsva, {\n a: 1\n }));\n var innerBackground = \"linear-gradient(to \".concat(direction === 'horizontal' ? 'right' : 'bottom', \", rgba(244, 67, 54, 0) 0%, \").concat(colorTo, \" 100%)\");\n var comProps = {};\n if (direction === 'horizontal') {\n comProps.left = \"\".concat(hsva.a * 100, \"%\");\n } else {\n comProps.top = \"\".concat(hsva.a * 100, \"%\");\n }\n var styleWrapper = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n '--alpha-background-color': '#fff',\n '--alpha-pointer-background-color': 'rgb(248, 248, 248)',\n '--alpha-pointer-box-shadow': 'rgb(0 0 0 / 37%) 0px 1px 4px 0px',\n borderRadius: radius,\n background: \"url(\".concat(BACKGROUND_IMG, \") left center\"),\n backgroundColor: 'var(--alpha-background-color)'\n }, {\n width: width,\n height: height\n }), style), {}, {\n position: 'relative'\n });\n var pointerElement = pointer && typeof pointer === 'function' ? pointer((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n prefixCls: prefixCls\n }, pointerProps), comProps)) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Pointer.Pointer, (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, pointerProps), {}, {\n prefixCls: prefixCls\n }, comProps));\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, other), {}, {\n className: [prefixCls, \"\".concat(prefixCls, \"-\").concat(direction), className || ''].filter(Boolean).join(' '),\n style: styleWrapper,\n ref: ref,\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, bgProps), {}, {\n style: (0, _objectSpread2[\"default\"])({\n inset: 0,\n position: 'absolute',\n background: background || innerBackground,\n borderRadius: radius\n }, bgProps.style)\n })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactDragEventInteractive[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, innerProps), {}, {\n style: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, innerProps.style), {}, {\n inset: 0,\n zIndex: 1,\n position: 'absolute'\n }),\n onMove: handleChange,\n onDown: handleChange,\n children: pointerElement\n }))]\n }));\n});\nAlpha.displayName = 'Alpha';\nvar _default = exports[\"default\"] = Alpha;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _reactColorAlpha = _interopRequireDefault(require(\"@uiw/react-color-alpha\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"className\", \"hue\", \"onChange\", \"direction\"];\nvar Hue = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-hue' : _props$prefixCls,\n className = props.className,\n _props$hue = props.hue,\n hue = _props$hue === void 0 ? 0 : _props$hue,\n _onChange = props.onChange,\n _props$direction = props.direction,\n direction = _props$direction === void 0 ? 'horizontal' : _props$direction,\n other = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorAlpha[\"default\"], (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({\n ref: ref,\n className: \"\".concat(prefixCls, \" \").concat(className || '')\n }, other), {}, {\n direction: direction,\n background: \"linear-gradient(to \".concat(direction === 'horizontal' ? 'right' : 'bottom', \", rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)\"),\n hsva: {\n h: hue,\n s: 100,\n v: 100,\n a: hue / 360\n },\n onChange: function onChange(_, interaction) {\n _onChange && _onChange({\n h: direction === 'horizontal' ? 360 * interaction.left : 360 * interaction.top\n });\n }\n }));\n});\nHue.displayName = 'Hue';\nvar _default = exports[\"default\"] = Hue;\nmodule.exports = exports.default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _exportNames = {};\nexports[\"default\"] = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _slicedToArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/slicedToArray\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _utils = require(\"./utils\");\nObject.keys(_utils).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _utils[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _utils[key];\n }\n });\n});\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _excluded = [\"prefixCls\", \"className\", \"onMove\", \"onDown\"];\nvar Interactive = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'w-color-interactive' : _props$prefixCls,\n className = props.className,\n onMove = props.onMove,\n onDown = props.onDown,\n reset = (0, _objectWithoutProperties2[\"default\"])(props, _excluded);\n var container = (0, _react.useRef)(null);\n var hasTouched = (0, _react.useRef)(false);\n var _useState = (0, _react.useState)(false),\n _useState2 = (0, _slicedToArray2[\"default\"])(_useState, 2),\n isDragging = _useState2[0],\n setDragging = _useState2[1];\n var onMoveCallback = (0, _utils.useEventCallback)(onMove);\n var onKeyCallback = (0, _utils.useEventCallback)(onDown);\n\n // Prevent mobile browsers from handling mouse events (conflicting with touch ones).\n // If we detected a touch interaction before, we prefer reacting to touch events only.\n var isValid = function isValid(event) {\n if (hasTouched.current && !(0, _utils.isTouch)(event)) return false;\n hasTouched.current = (0, _utils.isTouch)(event);\n return true;\n };\n var handleMove = (0, _react.useCallback)(function (event) {\n (0, _utils.preventDefaultMove)(event);\n // If user moves the pointer outside of the window or iframe bounds and release it there,\n // `mouseup`/`touchend` won't be fired. In order to stop the picker from following the cursor\n // after the user has moved the mouse/finger back to the document, we check `event.buttons`\n // and `event.touches`. It allows us to detect that the user is just moving his pointer\n // without pressing it down\n var isDown = (0, _utils.isTouch)(event) ? event.touches.length > 0 : event.buttons > 0;\n if (isDown && container.current) {\n onMoveCallback && onMoveCallback((0, _utils.getRelativePosition)(container.current, event), event);\n } else {\n setDragging(false);\n }\n }, [onMoveCallback]);\n var handleMoveEnd = (0, _react.useCallback)(function () {\n return setDragging(false);\n }, []);\n var toggleDocumentEvents = (0, _react.useCallback)(function (state) {\n var toggleEvent = state ? window.addEventListener : window.removeEventListener;\n toggleEvent(hasTouched.current ? 'touchmove' : 'mousemove', handleMove);\n toggleEvent(hasTouched.current ? 'touchend' : 'mouseup', handleMoveEnd);\n }, []);\n (0, _react.useEffect)(function () {\n toggleDocumentEvents(isDragging);\n return function () {\n isDragging && toggleDocumentEvents(false);\n };\n }, [isDragging, toggleDocumentEvents]);\n var handleMoveStart = (0, _react.useCallback)(function (event) {\n (0, _utils.preventDefaultMove)(event.nativeEvent);\n if (!isValid(event.nativeEvent)) return;\n onKeyCallback && onKeyCallback((0, _utils.getRelativePosition)(container.current, event.nativeEvent), event.nativeEvent);\n setDragging(true);\n }, [onKeyCallback]);\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, reset), {}, {\n className: [prefixCls, className || ''].filter(Boolean).join(' '),\n style: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, reset.style), {}, {\n touchAction: 'none'\n }),\n ref: container,\n tabIndex: 0,\n onMouseDown: handleMoveStart,\n onTouchStart: handleMoveStart\n }));\n});\nInteractive.displayName = 'Interactive';\nvar _default = exports[\"default\"] = Interactive;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.preventDefaultMove = exports.isTouch = exports.getRelativePosition = exports.clamp = void 0;\nexports.useEventCallback = useEventCallback;\nvar _react = require(\"react\");\n// Saves incoming handler to the ref in order to avoid \"useCallback hell\"\nfunction useEventCallback(handler) {\n var callbackRef = (0, _react.useRef)(handler);\n (0, _react.useEffect)(function () {\n callbackRef.current = handler;\n });\n return (0, _react.useCallback)(function (value, event) {\n return callbackRef.current && callbackRef.current(value, event);\n }, []);\n}\n\n// Check if an event was triggered by touch\nvar isTouch = exports.isTouch = function isTouch(event) {\n return 'touches' in event;\n};\n\n// Browsers introduced an intervention, making touch events passive by default.\n// This workaround removes `preventDefault` call from the touch handlers.\n// https://github.com/facebook/react/issues/19651\nvar preventDefaultMove = exports.preventDefaultMove = function preventDefaultMove(event) {\n !isTouch(event) && event.preventDefault && event.preventDefault();\n};\n// Clamps a value between an upper and lower bound.\n// We use ternary operators because it makes the minified code\n// 2 times shorter then `Math.min(Math.max(a,b),c)`\nvar clamp = exports.clamp = function clamp(number) {\n var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n return number > max ? max : number < min ? min : number;\n};\n// Returns a relative position of the pointer inside the node's bounding box\nvar getRelativePosition = exports.getRelativePosition = function getRelativePosition(node, event) {\n var rect = node.getBoundingClientRect();\n\n // Get user's pointer position from `touches` array if it's a `TouchEvent`\n var pointer = isTouch(event) ? event.touches[0] : event;\n return {\n left: clamp((pointer.pageX - (rect.left + window.pageXOffset)) / rect.width),\n top: clamp((pointer.pageY - (rect.top + window.pageYOffset)) / rect.height),\n width: rect.width,\n height: rect.height,\n x: pointer.pageX - (rect.left + window.pageXOffset),\n y: pointer.pageY - (rect.top + window.pageYOffset)\n };\n};","\nexport default {\n components: { 21: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactColorHue = _interopRequireDefault(require(\"@uiw/react-color-hue\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _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); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nreturn function Demo() {\n var _useState = (0, _react.useState)({\n h: 0,\n s: 0,\n v: 68,\n a: 1\n }),\n _useState2 = _slicedToArray(_useState, 2),\n hsva = _useState2[0],\n setHsva = _useState2[1];\n return /*#__PURE__*/_react[\"default\"].createElement(_reactColorHue[\"default\"], {\n hue: hsva.h,\n onChange: function onChange(newHue) {\n setHsva(_objectSpread(_objectSpread({}, hsva), newHue));\n }\n });\n}; })(),38: (function() { \"use strict\";\n\nfunction _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); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactColorHue = _interopRequireDefault(require(\"@uiw/react-color-hue\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nreturn function Demo() {\n return /*#__PURE__*/_react[\"default\"].createElement(_reactColorHue[\"default\"], {\n hue: undefined\n });\n}; })(), },\n data: {\n \"21\": {\n \"name\": 21,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactColorHue = _interopRequireDefault(require(\\\"@uiw/react-color-hue\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \\\"string\\\"); return \\\"symbol\\\" == _typeof(i) ? i : i + \\\"\\\"; }\\nfunction _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); }\\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _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; } }\\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\\nreturn function Demo() {\\n var _useState = (0, _react.useState)({\\n h: 0,\\n s: 0,\\n v: 68,\\n a: 1\\n }),\\n _useState2 = _slicedToArray(_useState, 2),\\n hsva = _useState2[0],\\n setHsva = _useState2[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorHue[\\\"default\\\"], {\\n hue: hsva.h,\\n onChange: function onChange(newHue) {\\n setHsva(_objectSpread(_objectSpread({}, hsva), newHue));\\n }\\n });\\n};\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport Hue from '@uiw/react-color-hue';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\\n return (\\n {\\n setHsva({ ...hsva, ...newHue });\\n }}\\n />\\n );\\n}\"\n },\n \"38\": {\n \"name\": 38,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _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); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactColorHue = _interopRequireDefault(require(\\\"@uiw/react-color-hue\\\"));\\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \\\"default\\\": e }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nreturn function Demo() {\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactColorHue[\\\"default\\\"], {\\n hue: undefined\\n });\\n};\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport Hue from '@uiw/react-color-hue';\\n\\nexport default function Demo() {\\n return (\\n \\n );\\n}\"\n }\n},\n source: \"React Color Hue\\n===\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-color-hue)](https://bundlephobia.com/package/@uiw/react-color-hue) [![npm version](https://img.shields.io/npm/v/@uiw/react-color-hue.svg)](https://www.npmjs.com/package/@uiw/react-color-hue) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color-hue/file/README.md)\\n\\nHue Component is a subcomponent of [**`@react-color`**](https://uiwjs.github.io/react-color).\\n\\n\\n[![react-color-hue](https://user-images.githubusercontent.com/1680273/125951739-e38dad1a-5d11-4e4b-a146-3365bd0d98fb.png)](https://uiwjs.github.io/react-color/#/hue)\\n\\n\\n## Install\\n\\n```bash\\nnpm i @uiw/react-color-hue\\n```\\n\\n## Usage\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\nimport Hue from '@uiw/react-color-hue';\\n\\nexport default function Demo() {\\n const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });\\n return (\\n {\\n setHsva({ ...hsva, ...newHue });\\n }}\\n />\\n );\\n}\\n```\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\nimport Hue from '@uiw/react-color-hue';\\n\\nexport default function Demo() {\\n return (\\n \\n );\\n}\\n```\\n\\n## Props\\n\\n```ts\\nimport React from 'react';\\nimport { AlphaProps } from '@uiw/react-color-alpha';\\nexport interface HueProps extends Omit {\\n onChange?: (newHue: {\\n h: number;\\n }) => void;\\n hue: number;\\n}\\ndeclare const Hue: React.ForwardRefExoticComponent>;\\nexport default Hue;\\n```\\n\\n\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["_interopRequireDefault","require","Object","defineProperty","exports","value","Pointer","_objectSpread2","_objectWithoutProperties2","_jsxRuntime","_excluded","_ref","className","prefixCls","left","top","style","fillProps","reset","styleWrapper","position","stylePointer","width","height","boxShadow","borderRadius","backgroundColor","transform","jsx","concat","children","_exportNames","BACKGROUND_IMG","_react","_colorConvert","_reactDragEventInteractive","_Pointer","keys","forEach","key","prototype","hasOwnProperty","call","enumerable","get","Alpha","forwardRef","props","ref","_props$prefixCls","hsva","background","_props$bgProps","bgProps","_props$innerProps","innerProps","_props$pointerProps","pointerProps","_props$radius","radius","_props$height","_props$direction","direction","onChange","pointer","other","handleChange","offset","a","colorTo","hsvaToHslaString","assign","innerBackground","comProps","pointerElement","jsxs","filter","Boolean","join","inset","zIndex","onMove","onDown","displayName","_reactColorAlpha","Hue","_props$hue","hue","_onChange","h","s","v","_","interaction","module","default","_interopRequireWildcard","_slicedToArray2","_utils","Interactive","container","useRef","hasTouched","_useState","useState","_useState2","isDragging","setDragging","onMoveCallback","useEventCallback","onKeyCallback","handleMove","useCallback","event","preventDefaultMove","isTouch","touches","length","buttons","current","getRelativePosition","handleMoveEnd","toggleDocumentEvents","state","toggleEvent","window","addEventListener","removeEventListener","useEffect","handleMoveStart","nativeEvent","isValid","touchAction","tabIndex","onMouseDown","onTouchStart","clamp","handler","callbackRef","preventDefault","number","min","arguments","undefined","max","node","rect","getBoundingClientRect","pageX","pageXOffset","pageY","pageYOffset","x","y","components","_typeof","o","Symbol","iterator","constructor","e","r","__esModule","t","_getRequireWildcardCache","has","n","__proto__","getOwnPropertyDescriptor","u","i","set","_reactColorHue","WeakMap","ownKeys","getOwnPropertySymbols","push","apply","_objectSpread","_defineProperty","getOwnPropertyDescriptors","defineProperties","toPrimitive","TypeError","String","Number","_toPrimitive","_toPropertyKey","configurable","writable","_slicedToArray","Array","isArray","_arrayWithHoles","l","f","next","done","_iterableToArrayLimit","_arrayLikeToArray","toString","slice","name","from","test","_unsupportedIterableToArray","_nonIterableRest","setHsva","createElement","newHue","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/674.3ade4d88.chunk.js b/static/js/674.3ade4d88.chunk.js new file mode 100644 index 000000000..bfaf74a59 --- /dev/null +++ b/static/js/674.3ade4d88.chunk.js @@ -0,0 +1,2 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[674],{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:()=>j});var r,a,n,i,o,l=s(114),h=s(7804),d=s(7584),c=s(3235),p=s(9424);const u=c.Ay.div(r||(r=(0,l.A)(["\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"]))),g=c.Ay.a(a||(a=(0,l.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"]))),x=c.Ay.div(n||(n=(0,l.A)(["\n padding-bottom: 120px;\n"]))),b=c.Ay.footer(i||(i=(0,l.A)(["\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"]))),m=c.Ay.div(o||(o=(0,l.A)(["\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"])));class j extends h.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,p.jsxs)(x,{className:"wmde-markdown-var",children:[(0,p.jsxs)(u,{children:[this.editorUrl&&(0,p.jsx)(g,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"}),this.example&&(0,p.jsxs)(m,{children:[(0,p.jsx)("h3",{children:"Example"}),this.example]}),(0,p.jsx)(d.A,{data:{data:s,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,p.jsx)(g,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"})]}),(0,p.jsxs)(b,{children:[(0,p.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,p.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,p.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,p.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},3425:(t,e,s)=>{"use strict";s.r(e),s.d(e,{Component:()=>d});var r=s(8957),a=s(7804),n=s(8088),i=s(3623),o=s(7980),l=s(9424);function h(){const{hsva:t,dispatch:e}=(0,a.useContext)(o.ob);return(0,l.jsx)("div",{style:{width:256},children:(0,l.jsx)(n.A,{hsva:t,onChange:s=>{e({hsva:(0,r.A)((0,r.A)({},t),s.hsva)})}})})}class d extends i.A{constructor(){super(...arguments),this.editorUrl="/packages/color-editable-input-hsla/README.md",this.getMdStr=()=>Promise.all([s.e(968),s.e(547)]).then(s.bind(s,5547)),this.example=(0,l.jsx)(h,{})}}},8088:(t,e,s)=>{"use strict";s.d(e,{A:()=>c});var r=s(8102),a=s(9257),n=s(7804),i=s(6436),o=s(2945),l=s(9424),h=["prefixCls","hsva","hProps","sProps","lProps","aProps","className","onChange"],d=n.forwardRef(((t,e)=>{var{prefixCls:s="w-color-editable-input-hsla",hsva:n,hProps:d={},sProps:c={},lProps:p={},aProps:u={},className:g,onChange:x}=t,b=(0,a.A)(t,h),m=n?(0,o.E_)(n):{h:0,s:0,l:0,a:0},j=(t,e,s)=>{"number"===typeof t&&("h"===e&&(t<0&&(t=0),t>360&&(t=360),x&&x((0,o.yW)((0,o.YA)((0,r.A)({},m,{h:t}))))),"s"===e&&(t<0&&(t=0),t>100&&(t=100),x&&x((0,o.yW)((0,o.YA)((0,r.A)({},m,{s:t}))))),"l"===e&&(t<0&&(t=0),t>100&&(t=100),x&&x((0,o.yW)((0,o.YA)((0,r.A)({},m,{l:t}))))),"a"===e&&(t<0&&(t=0),t>1&&(t=1),x&&x((0,o.yW)((0,o.YA)((0,r.A)({},m,{a:t}))))))},A=0!=u&&(0,r.A)({label:"A",value:Math.round(100*m.a)/100},u,{onChange:(t,e)=>j(e,"a")});return(0,l.jsx)(i.A,(0,r.A)({ref:e,hsva:n,rProps:(0,r.A)({label:"H",value:Math.round(m.h)},d,{onChange:(t,e)=>j(e,"h")}),gProps:(0,r.A)({label:"S",value:Math.round(m.s)+"%"},c,{onChange:(t,e)=>j(e,"s")}),bProps:(0,r.A)({label:"L",value:Math.round(m.l)+"%"},p,{onChange:(t,e)=>j(e,"l")}),aProps:A,className:[s,g||""].filter(Boolean).join(" ")},b))}));d.displayName="EditableInputHSLA";const c=d}}]); +//# sourceMappingURL=674.3ade4d88.chunk.js.map \ No newline at end of file diff --git a/static/js/674.3ade4d88.chunk.js.map b/static/js/674.3ade4d88.chunk.js.map new file mode 100644 index 000000000..3ecb53747 --- /dev/null +++ b/static/js/674.3ade4d88.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/674.3ade4d88.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,8GCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,IAAGC,IAAAA,GAAAC,EAAAA,EAAAA,GAAA,wPAkB5BC,EAAYJ,EAAAA,GAAOK,EAACC,IAAAA,GAAAH,EAAAA,EAAAA,GAAA,iRAepBI,EAAUP,EAAAA,GAAOC,IAAGO,IAAAA,GAAAL,EAAAA,EAAAA,GAAA,oCAIpBM,EAAST,EAAAA,GAAOU,OAAMC,IAAAA,GAAAR,EAAAA,EAAAA,GAAA,iJAYtBS,EAAUZ,EAAAA,GAAOC,IAAGY,IAAAA,GAAAV,EAAAA,EAA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c,EAAAA,EAAAA,GAAS,CACjDE,MAAO,IACPP,MAAOQ,KAAKC,MAAe,IAATf,EAAKhE,GAAW,KACjC6D,EAAQ,CACTX,SAAUA,CAACsB,EAAKQ,IAAQX,EAAaW,EAAK,OAE5C,OAAoB/C,EAAAA,EAAAA,KAAKgD,EAAAA,GAAmBN,EAAAA,EAAAA,GAAS,CACnDnB,IAAKA,EACLZ,KAAMA,EACNsC,QAAQP,EAAAA,EAAAA,GAAS,CACfE,MAAO,IACPP,MAAOQ,KAAKC,MAAMf,EAAKE,IACtBR,EAAQ,CACTR,SAAUA,CAACsB,EAAKQ,IAAQX,EAAaW,EAAK,OAE5CG,QAAQR,EAAAA,EAAAA,GAAS,CACfE,MAAO,IACPP,MAAOQ,KAAKC,MAAMf,EAAKG,GAAK,KAC3BR,EAAQ,CACTT,SAAUA,CAACsB,EAAKQ,IAAQX,EAAaW,EAAK,OAE5CI,QAAQT,EAAAA,EAAAA,GAAS,CACfE,MAAO,IACPP,MAAOQ,KAAKC,MAAMf,EAAKI,GAAK,KAC3BR,EAAQ,CACTV,SAAUA,CAACsB,EAAKQ,IAAQX,EAAaW,EAAK,OAE5CnB,OAAQe,EACR7C,UAAW,CAAC0B,EAAW1B,GAAa,IAAIsD,OAAOC,SAASC,KAAK,MAC5DzB,GAAO,IAEZb,EAAkBuC,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","_templateObject","_taggedTemplateLiteral","EditorUrl","a","_templateObject2","Wrapper","_templateObject3","Footer","footer","_templateObject4","Example","_templateObject5","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","concat","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","EditableInputHSLA","onChange","color","_objectSpread","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/674.cf455a85.chunk.js b/static/js/674.cf455a85.chunk.js deleted file mode 100644 index 5dc7f97f6..000000000 --- a/static/js/674.cf455a85.chunk.js +++ /dev/null @@ -1,45 +0,0 @@ -(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%), - 0 8px 16px rgb(0 0 0 / 15%); - border-radius: 16px; - max-width: 860px; - margin: 0 auto; - padding-bottom: 20px; - position: relative; -`,h=o.Ay.a` - position: absolute; - right: 20px; - padding: 3px 8px 4px 8px; - background: #333333; - border-radius: 0 0 6px 6px; - text-decoration: initial; - color: #fff; - transition: all 0.3s; - font-size: 14px; - &:hover { - background-color: #3f51b4; - } -`,n=o.Ay.div` - padding-bottom: 120px; -`,d=o.Ay.footer` - text-align: center; - margin-top: 40px; - a { - margin: 0 5px; - } - p { - font-size: 12px; - text-align: center; - } -`,c=o.Ay.div` - border-bottom: 1px solid var(--color-border-default); - border-radius: 16px 16px 0 0; - padding: 28px; - > h3 { - margin: 0; - 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.cf455a85.chunk.js.map \ No newline at end of file diff --git a/static/js/674.cf455a85.chunk.js.map b/static/js/674.cf455a85.chunk.js.map deleted file mode 100644 index a8dc6b3dc..000000000 --- a/static/js/674.cf455a85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AASC,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 deleted file mode 100644 index e688c9884..000000000 --- a/static/js/692.584ca748.chunk.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! 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.BUTTON,ea.BUTTON],[Zr.CAPTION,ea.CAPTION],[Zr.CENTER,ea.CENTER],[Zr.CODE,ea.CODE],[Zr.COL,ea.COL],[Zr.COLGROUP,ea.COL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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\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B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C6\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\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDC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53\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")||""))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},Bt=(e,t,r)=>"string"===r?(0,Ze.A)((0,Ze.A)({},e),{},{"data-config":JSON.stringify((0,Ze.A)((0,Ze.A)({},t),{},{rehyp:!0}))}):"attr"===r?(0,Ze.A)((0,Ze.A)({},e),t):(0,Ze.A)((0,Ze.A)({},e),{},{"data-config":(0,Ze.A)((0,Ze.A)({},t),{},{rehyp:!0})}),Ot=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=(0,Ze.A)((0,Ze.A)({},e.properties),{"data-type":"rehyp"}),r.properties=Bt(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=Bt(e.properties,r,t))}}}))}},Lt="object"===typeof self?self:globalThis,Mt=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 Lt[e](t),n)}case 8:return r(BigInt(i),n);case"BigInt":return r(Object(BigInt(i)),n)}return r(new Lt[s](i),n)};return a})(new Map,e)(0),Ut="",{toString:Ht}={},{keys:Gt}=Object,qt=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const r=Ht.call(e).slice(8,-1);switch(r){case"Array":return[1,Ut];case"Object":return[2,Ut];case"Date":return[3,Ut];case"RegExp":return[4,Ut];case"Map":return[5,Ut];case"Set":return[6,Ut]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},Wt=e=>{let[t,r]=e;return 0===t&&("function"===r||"symbol"===r)},zt=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]=qt(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 Gt(a))!e&&Wt(qt(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||!Wt(qt(n))&&!Wt(qt(i)))&&t.push([s(n),s(i)]);return r}case 6:{const t=[],r=n([i,t],a);for(const n of a)!e&&Wt(qt(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},Vt="function"===typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Mt(zt(e,t)):structuredClone(e):(e,t)=>Mt(zt(e,t)),Kt=/[#.]/g;var Yt=r(1141);const Xt={}.hasOwnProperty;function Jt(e,t,r){const a=r&&function(e){const t={};let r=-1;for(;++r2?o-2:0),u=2;u1?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=rr(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"},dr(e,t,r),r;case"#text":{const a=t;return r={type:"text",value:a.value},dr(e,a,r),r}default:return r=function(e,t){const r=e.schema;e.schema=t.namespaceURI===ar.svg?re.JW:re.qy;let a=-1;const n={};for(;++a=55296&&e<=57343}function jr(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function _r(e){return e>=64976&&e<=65007||vr.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,Rr.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,Rr.EOF;const r=this.html.charCodeAt(t);return r===Rr.CARRIAGE_RETURN?Rr.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,Rr.EOF;let e=this.html.charCodeAt(this.pos);if(e===Rr.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,Rr.LINE_FEED;if(e===Rr.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine))return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance();this.skipNextNewLine=!1,Sr(e)&&(e=this._processSurrogate(e));return null===this.handler.onParseError||e>31&&e<127||e===Rr.LINE_FEED||e===Rr.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){jr(e)?this._err(kr.controlCharacterInInputStream):_r(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"}(Fr||(Fr={}));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)))),Br=new Uint16Array("\u0200aglq\t\x15\x18\x1b\u026d\x0f\0\0\x12p;\u4026os;\u4027t;\u403et;\u403cuot;\u4022".split("").map((e=>e.charCodeAt(0))));var Or;const Lr=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]]),Mr=null!==(Or=String.fromCodePoint)&&void 0!==Or?Or: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 Ur(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=Lr.get(e))&&void 0!==t?t:e}var Hr;!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"}(Hr||(Hr={}));var Gr,qr,Wr;function zr(e){return e>=Hr.ZERO&&e<=Hr.NINE}function Vr(e){return e>=Hr.UPPER_A&&e<=Hr.UPPER_F||e>=Hr.LOWER_A&&e<=Hr.LOWER_F}function Kr(e){return e===Hr.EQUALS||function(e){return e>=Hr.UPPER_A&&e<=Hr.UPPER_Z||e>=Hr.LOWER_A&&e<=Hr.LOWER_Z||zr(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"}(Gr||(Gr={})),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"}(qr||(qr={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(Wr||(Wr={}));class Yr{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=qr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Wr.Strict}startEntity(e){this.decodeMode=e,this.state=qr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case qr.EntityStart:return e.charCodeAt(t)===Hr.NUM?(this.state=qr.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=qr.NamedEntity,this.stateNamedEntity(e,t));case qr.NumericStart:return this.stateNumericStart(e,t);case qr.NumericDecimal:return this.stateNumericDecimal(e,t);case qr.NumericHex:return this.stateNumericHex(e,t);case qr.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===Hr.LOWER_X?(this.state=qr.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=qr.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===Hr.SEMI)return this.emitNamedEntityData(this.treeIndex,n,this.consumed+this.excess);this.decodeMode!==Wr.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]&Gr.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]&~Gr.VALUE_LENGTH:a[e+1],r),3===t&&this.emitCodePoint(a[e+2],r),r}end(){var e;switch(this.state){case qr.NamedEntity:return 0===this.result||this.decodeMode===Wr.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case qr.NumericDecimal:return this.emitNumericEntity(0,2);case qr.NumericHex:return this.emitNumericEntity(0,3);case qr.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case qr.EntityStart:return 0}}}function Xr(e){let t="";const r=new Yr(e,(e=>t+=Mr(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 Jr(e,t,r,a){const n=(t&Gr.BRANCH_LENGTH)>>7,s=t&Gr.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}Xr(Nr),Xr(Br);var Qr,$r,Zr,ea,ta;!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/"}(Qr||(Qr={})),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"}($r||($r={})),function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"}(Zr||(Zr={})),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"}(ea||(ea={})),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"}(ta||(ta={}));const ra=new Map([[ea.A,ta.A],[ea.ADDRESS,ta.ADDRESS],[ea.ANNOTATION_XML,ta.ANNOTATION_XML],[ea.APPLET,ta.APPLET],[ea.AREA,ta.AREA],[ea.ARTICLE,ta.ARTICLE],[ea.ASIDE,ta.ASIDE],[ea.B,ta.B],[ea.BASE,ta.BASE],[ea.BASEFONT,ta.BASEFONT],[ea.BGSOUND,ta.BGSOUND],[ea.BIG,ta.BIG],[ea.BLOCKQUOTE,ta.BLOCKQUOTE],[ea.BODY,ta.BODY],[ea.BR,ta.BR],[ea.BUTTON,ta.BUTTON],[ea.CAPTION,ta.CAPTION],[ea.CENTER,ta.CENTER],[ea.CODE,ta.CODE],[ea.COL,ta.COL],[ea.COLGROUP,ta.COLGROUP],[ea.DD,ta.DD],[ea.DESC,ta.DESC],[ea.DETAILS,ta.DETAILS],[ea.DIALOG,ta.DIALOG],[ea.DIR,ta.DIR],[ea.DIV,ta.DIV],[ea.DL,ta.DL],[ea.DT,ta.DT],[ea.EM,ta.EM],[ea.EMBED,ta.EMBED],[ea.FIELDSET,ta.FIELDSET],[ea.FIGCAPTION,ta.FIGCAPTION],[ea.FIGURE,ta.FIGURE],[ea.FONT,ta.FONT],[ea.FOOTER,ta.FOOTER],[ea.FOREIGN_OBJECT,ta.FOREIGN_OBJECT],[ea.FORM,ta.FORM],[ea.FRAME,ta.FRAME],[ea.FRAMESET,ta.FRAMESET],[ea.H1,ta.H1],[ea.H2,ta.H2],[ea.H3,ta.H3],[ea.H4,ta.H4],[ea.H5,ta.H5],[ea.H6,ta.H6],[ea.HEAD,ta.HEAD],[ea.HEADER,ta.HEADER],[ea.HGROUP,ta.HGROUP],[ea.HR,ta.HR],[ea.HTML,ta.HTML],[ea.I,ta.I],[ea.IMG,ta.IMG],[ea.IMAGE,ta.IMAGE],[ea.INPUT,ta.INPUT],[ea.IFRAME,ta.IFRAME],[ea.KEYGEN,ta.KEYGEN],[ea.LABEL,ta.LABEL],[ea.LI,ta.LI],[ea.LINK,ta.LINK],[ea.LISTING,ta.LISTING],[ea.MAIN,ta.MAIN],[ea.MALIGNMARK,ta.MALIGNMARK],[ea.MARQUEE,ta.MARQUEE],[ea.MATH,ta.MATH],[ea.MENU,ta.MENU],[ea.META,ta.META],[ea.MGLYPH,ta.MGLYPH],[ea.MI,ta.MI],[ea.MO,ta.MO],[ea.MN,ta.MN],[ea.MS,ta.MS],[ea.MTEXT,ta.MTEXT],[ea.NAV,ta.NAV],[ea.NOBR,ta.NOBR],[ea.NOFRAMES,ta.NOFRAMES],[ea.NOEMBED,ta.NOEMBED],[ea.NOSCRIPT,ta.NOSCRIPT],[ea.OBJECT,ta.OBJECT],[ea.OL,ta.OL],[ea.OPTGROUP,ta.OPTGROUP],[ea.OPTION,ta.OPTION],[ea.P,ta.P],[ea.PARAM,ta.PARAM],[ea.PLAINTEXT,ta.PLAINTEXT],[ea.PRE,ta.PRE],[ea.RB,ta.RB],[ea.RP,ta.RP],[ea.RT,ta.RT],[ea.RTC,ta.RTC],[ea.RUBY,ta.RUBY],[ea.S,ta.S],[ea.SCRIPT,ta.SCRIPT],[ea.SEARCH,ta.SEARCH],[ea.SECTION,ta.SECTION],[ea.SELECT,ta.SELECT],[ea.SOURCE,ta.SOURCE],[ea.SMALL,ta.SMALL],[ea.SPAN,ta.SPAN],[ea.STRIKE,ta.STRIKE],[ea.STRONG,ta.STRONG],[ea.STYLE,ta.STYLE],[ea.SUB,ta.SUB],[ea.SUMMARY,ta.SUMMARY],[ea.SUP,ta.SUP],[ea.TABLE,ta.TABLE],[ea.TBODY,ta.TBODY],[ea.TEMPLATE,ta.TEMPLATE],[ea.TEXTAREA,ta.TEXTAREA],[ea.TFOOT,ta.TFOOT],[ea.TD,ta.TD],[ea.TH,ta.TH],[ea.THEAD,ta.THEAD],[ea.TITLE,ta.TITLE],[ea.TR,ta.TR],[ea.TRACK,ta.TRACK],[ea.TT,ta.TT],[ea.U,ta.U],[ea.UL,ta.UL],[ea.SVG,ta.SVG],[ea.VAR,ta.VAR],[ea.WBR,ta.WBR],[ea.XMP,ta.XMP]]);function aa(e){var t;return null!==(t=ra.get(e))&&void 0!==t?t:ta.UNKNOWN}const na=ta,sa={[Qr.HTML]:new Set([na.ADDRESS,na.APPLET,na.AREA,na.ARTICLE,na.ASIDE,na.BASE,na.BASEFONT,na.BGSOUND,na.BLOCKQUOTE,na.BODY,na.BR,na.BUTTON,na.CAPTION,na.CENTER,na.COL,na.COLGROUP,na.DD,na.DETAILS,na.DIR,na.DIV,na.DL,na.DT,na.EMBED,na.FIELDSET,na.FIGCAPTION,na.FIGURE,na.FOOTER,na.FORM,na.FRAME,na.FRAMESET,na.H1,na.H2,na.H3,na.H4,na.H5,na.H6,na.HEAD,na.HEADER,na.HGROUP,na.HR,na.HTML,na.IFRAME,na.IMG,na.INPUT,na.LI,na.LINK,na.LISTING,na.MAIN,na.MARQUEE,na.MENU,na.META,na.NAV,na.NOEMBED,na.NOFRAMES,na.NOSCRIPT,na.OBJECT,na.OL,na.P,na.PARAM,na.PLAINTEXT,na.PRE,na.SCRIPT,na.SECTION,na.SELECT,na.SOURCE,na.STYLE,na.SUMMARY,na.TABLE,na.TBODY,na.TD,na.TEMPLATE,na.TEXTAREA,na.TFOOT,na.TH,na.THEAD,na.TITLE,na.TR,na.TRACK,na.UL,na.WBR,na.XMP]),[Qr.MATHML]:new Set([na.MI,na.MO,na.MN,na.MS,na.MTEXT,na.ANNOTATION_XML]),[Qr.SVG]:new Set([na.TITLE,na.FOREIGN_OBJECT,na.DESC]),[Qr.XLINK]:new Set,[Qr.XML]:new Set,[Qr.XMLNS]:new Set},ia=new Set([na.H1,na.H2,na.H3,na.H4,na.H5,na.H6]);new Set([ea.STYLE,ea.SCRIPT,ea.XMP,ea.IFRAME,ea.NOEMBED,ea.NOFRAMES,ea.PLAINTEXT]);var oa;!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"}(oa||(oa={}));const da={DATA:oa.DATA,RCDATA:oa.RCDATA,RAWTEXT:oa.RAWTEXT,SCRIPT_DATA:oa.SCRIPT_DATA,PLAINTEXT:oa.PLAINTEXT,CDATA_SECTION:oa.CDATA_SECTION};function ua(e){return e>=Rr.LATIN_CAPITAL_A&&e<=Rr.LATIN_CAPITAL_Z}function ca(e){return function(e){return e>=Rr.LATIN_SMALL_A&&e<=Rr.LATIN_SMALL_Z}(e)||ua(e)}function la(e){return ca(e)||function(e){return e>=Rr.DIGIT_0&&e<=Rr.DIGIT_9}(e)}function pa(e){return e+32}function fa(e){return e===Rr.SPACE||e===Rr.LINE_FEED||e===Rr.TABULATION||e===Rr.FORM_FEED}function ga(e){return fa(e)||e===Rr.SOLIDUS||e===Rr.GREATER_THAN_SIGN}class ma{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=oa.DATA,this.returnState=oa.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 Yr(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===Rr.NULL?kr.nullCharacterReference:e>1114111?kr.characterReferenceOutsideUnicodeRange:Sr(e)?kr.surrogateCharacterReference:_r(e)?kr.noncharacterCharacterReference:jr(e)||e===Rr.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 Fr.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case Fr.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case Fr.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:Fr.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=fa(e)?Fr.WHITESPACE_CHARACTER:e===Rr.NULL?Fr.NULL_CHARACTER:Fr.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(Fr.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=oa.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Wr.Attribute:Wr.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===oa.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===oa.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===oa.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case oa.DATA:this._stateData(e);break;case oa.RCDATA:this._stateRcdata(e);break;case oa.RAWTEXT:this._stateRawtext(e);break;case oa.SCRIPT_DATA:this._stateScriptData(e);break;case oa.PLAINTEXT:this._statePlaintext(e);break;case oa.TAG_OPEN:this._stateTagOpen(e);break;case oa.END_TAG_OPEN:this._stateEndTagOpen(e);break;case oa.TAG_NAME:this._stateTagName(e);break;case oa.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case oa.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case oa.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case oa.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case oa.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case oa.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case oa.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case oa.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case oa.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case oa.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case oa.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case oa.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case oa.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case oa.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case oa.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case oa.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case oa.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case oa.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case oa.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case oa.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case oa.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case oa.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case oa.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case oa.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case oa.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case oa.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case oa.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case oa.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case oa.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case oa.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case oa.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case oa.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case oa.BOGUS_COMMENT:this._stateBogusComment(e);break;case oa.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case oa.COMMENT_START:this._stateCommentStart(e);break;case oa.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case oa.COMMENT:this._stateComment(e);break;case oa.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case oa.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case oa.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case oa.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case oa.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case oa.COMMENT_END:this._stateCommentEnd(e);break;case oa.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case oa.DOCTYPE:this._stateDoctype(e);break;case oa.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case oa.DOCTYPE_NAME:this._stateDoctypeName(e);break;case oa.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case oa.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case oa.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case oa.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case oa.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case oa.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case oa.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case oa.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case oa.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case oa.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case oa.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case oa.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case oa.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case oa.CDATA_SECTION:this._stateCdataSection(e);break;case oa.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case oa.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case oa.CHARACTER_REFERENCE:this._stateCharacterReference();break;case oa.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case Rr.LESS_THAN_SIGN:this.state=oa.TAG_OPEN;break;case Rr.AMPERSAND:this._startCharacterReference();break;case Rr.NULL:this._err(kr.unexpectedNullCharacter),this._emitCodePoint(e);break;case Rr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case Rr.AMPERSAND:this._startCharacterReference();break;case Rr.LESS_THAN_SIGN:this.state=oa.RCDATA_LESS_THAN_SIGN;break;case Rr.NULL:this._err(kr.unexpectedNullCharacter),this._emitChars(xr);break;case Rr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case Rr.LESS_THAN_SIGN:this.state=oa.RAWTEXT_LESS_THAN_SIGN;break;case Rr.NULL:this._err(kr.unexpectedNullCharacter),this._emitChars(xr);break;case Rr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case Rr.LESS_THAN_SIGN:this.state=oa.SCRIPT_DATA_LESS_THAN_SIGN;break;case Rr.NULL:this._err(kr.unexpectedNullCharacter),this._emitChars(xr);break;case Rr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case Rr.NULL:this._err(kr.unexpectedNullCharacter),this._emitChars(xr);break;case Rr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(ca(e))this._createStartTagToken(),this.state=oa.TAG_NAME,this._stateTagName(e);else switch(e){case Rr.EXCLAMATION_MARK:this.state=oa.MARKUP_DECLARATION_OPEN;break;case Rr.SOLIDUS:this.state=oa.END_TAG_OPEN;break;case Rr.QUESTION_MARK:this._err(kr.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=oa.BOGUS_COMMENT,this._stateBogusComment(e);break;case Rr.EOF:this._err(kr.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(kr.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=oa.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(ca(e))this._createEndTagToken(),this.state=oa.TAG_NAME,this._stateTagName(e);else switch(e){case Rr.GREATER_THAN_SIGN:this._err(kr.missingEndTagName),this.state=oa.DATA;break;case Rr.EOF:this._err(kr.eofBeforeTagName),this._emitChars("");break;case Rr.NULL:this._err(kr.unexpectedNullCharacter),this.state=oa.SCRIPT_DATA_ESCAPED,this._emitChars(xr);break;case Rr.EOF:this._err(kr.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=oa.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===Rr.SOLIDUS?this.state=oa.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:ca(e)?(this._emitChars("<"),this.state=oa.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=oa.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){ca(e)?(this.state=oa.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("");break;case Rr.NULL:this._err(kr.unexpectedNullCharacter),this.state=oa.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(xr);break;case Rr.EOF:this._err(kr.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=oa.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===Rr.SOLIDUS?(this.state=oa.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=oa.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(Tr,!1)&&ga(this.preprocessor.peek(Tr.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])!==Qr.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(Ta,Qr.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Aa,Qr.HTML)}clearBackToTableRowContext(){this.clearBackTo(Da,Qr.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]===ta.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]===ta.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 Qr.HTML:if(a===e)return!0;if(t.has(a))return!1;break;case Qr.SVG:if(Ea.has(a))return!1;break;case Qr.MATHML:if(Ra.has(a))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,ba)}hasInListItemScope(e){return this.hasInDynamicScope(e,va)}hasInButtonScope(e){return this.hasInDynamicScope(e,xa)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case Qr.HTML:if(ia.has(t))return!0;if(ba.has(t))return!1;break;case Qr.SVG:if(Ea.has(t))return!1;break;case Qr.MATHML:if(Ra.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Qr.HTML)switch(this.tagIDs[t]){case e:return!0;case ta.TABLE:case ta.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===Qr.HTML)switch(this.tagIDs[e]){case ta.TBODY:case ta.THEAD:case ta.TFOOT:return!0;case ta.TABLE:case ta.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Qr.HTML)switch(this.tagIDs[t]){case e:return!0;case ta.OPTION:case ta.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;ha.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;ya.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&ya.has(this.currentTagId);)this.pop()}}var Sa;!function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(Sa||(Sa={}));const ja={type:Sa.Marker};class _a{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(ja)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:Sa.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Sa.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(ja);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){const t=this.entries.find((t=>t.type===Sa.Marker||this.treeAdapter.getTagName(t.element)===e));return t&&t.type===Sa.Element?t:null}getElementEntry(e){return this.entries.find((t=>t.type===Sa.Element&&t.element===e))}}const ka={createDocument:()=>({nodeName:"#document",mode:Zr.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=(0,Ze.A)((0,Ze.A)({},e.sourceCodeLocation),t)}},Pa="html",Fa=["+//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=[...Fa,"-//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"]),Ba=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Oa=[...Ba,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function La(e,t){return t.some((t=>e.startsWith(t)))}const Ma="text/html",Ua="application/xhtml+xml",Ha=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]))),Ga=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Qr.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Qr.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Qr.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Qr.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Qr.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Qr.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Qr.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Qr.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Qr.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Qr.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Qr.XMLNS}]]),qa=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]))),Wa=new Set([ta.B,ta.BIG,ta.BLOCKQUOTE,ta.BODY,ta.BR,ta.CENTER,ta.CODE,ta.DD,ta.DIV,ta.DL,ta.DT,ta.EM,ta.EMBED,ta.H1,ta.H2,ta.H3,ta.H4,ta.H5,ta.H6,ta.HEAD,ta.HR,ta.I,ta.IMG,ta.LI,ta.LISTING,ta.MENU,ta.META,ta.NOBR,ta.OL,ta.P,ta.PRE,ta.RUBY,ta.S,ta.SMALL,ta.SPAN,ta.STRONG,ta.STRIKE,ta.SUB,ta.SUP,ta.TABLE,ta.TT,ta.U,ta.UL,ta.VAR]);function za(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=Xa.INITIAL,this.originalInsertionMode=Xa.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=(0,Ze.A)((0,Ze.A)({},$a),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 ma(this.options,this),this.activeFormattingElements=new _a(this.treeAdapter),this.fragmentContextID=r?aa(this.treeAdapter.getTagName(r)):ta.UNKNOWN,this._setContextModes(null!==r&&void 0!==r?r:this.document,this.fragmentContextID),this.openElements=new wa(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=(0,Ze.A)((0,Ze.A)({},$a),t);null!==e&&void 0!==e||(e=r.treeAdapter.createElement(ea.TEMPLATE,Qr.HTML,[]));const a=r.treeAdapter.createElement("documentmock",Qr.HTML,[]),n=new this(r,a,e);return n.fragmentContextID===ta.TEMPLATE&&n.tmplInsertionModeStack.unshift(Xa.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:Ja,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)===Qr.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,Qr.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=Xa.TEXT}switchToPlaintextParsing(){this.insertionMode=Xa.TEXT,this.originalInsertionMode=Xa.IN_BODY,this.tokenizer.state=da.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)===ea.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===Qr.HTML)switch(this.fragmentContextID){case ta.TITLE:case ta.TEXTAREA:this.tokenizer.state=da.RCDATA;break;case ta.STYLE:case ta.XMP:case ta.IFRAME:case ta.NOEMBED:case ta.NOFRAMES:case ta.NOSCRIPT:this.tokenizer.state=da.RAWTEXT;break;case ta.SCRIPT:this.tokenizer.state=da.SCRIPT_DATA;break;case ta.PLAINTEXT:this.tokenizer.state=da.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&&(0,Ze.A)((0,Ze.A)({},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,Qr.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,Qr.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(ea.HTML,Qr.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,ta.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===Fr.END_TAG&&a===t.tagName?{endTag:(0,Ze.A)({},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!==ta.SVG||this.treeAdapter.getTagName(t)!==ea.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==Qr.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===ta.MGLYPH||e.tagID===ta.MALIGNMARK)&&!this._isIntegrationPoint(r,t,Qr.HTML))}_processToken(e){switch(e.type){case Fr.CHARACTER:this.onCharacter(e);break;case Fr.NULL_CHARACTER:this.onNullCharacter(e);break;case Fr.COMMENT:this.onComment(e);break;case Fr.DOCTYPE:this.onDoctype(e);break;case Fr.START_TAG:this._processStartTag(e);break;case Fr.END_TAG:this.onEndTag(e);break;case Fr.EOF:this.onEof(e);break;case Fr.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,r){return Ya(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===Sa.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=Xa.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(ta.P),this.openElements.popUntilTagNamePopped(ta.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case ta.TR:return void(this.insertionMode=Xa.IN_ROW);case ta.TBODY:case ta.THEAD:case ta.TFOOT:return void(this.insertionMode=Xa.IN_TABLE_BODY);case ta.CAPTION:return void(this.insertionMode=Xa.IN_CAPTION);case ta.COLGROUP:return void(this.insertionMode=Xa.IN_COLUMN_GROUP);case ta.TABLE:return void(this.insertionMode=Xa.IN_TABLE);case ta.BODY:return void(this.insertionMode=Xa.IN_BODY);case ta.FRAMESET:return void(this.insertionMode=Xa.IN_FRAMESET);case ta.SELECT:return void this._resetInsertionModeForSelect(e);case ta.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case ta.HTML:return void(this.insertionMode=this.headElement?Xa.AFTER_HEAD:Xa.BEFORE_HEAD);case ta.TD:case ta.TH:if(e>0)return void(this.insertionMode=Xa.IN_CELL);break;case ta.HEAD:if(e>0)return void(this.insertionMode=Xa.IN_HEAD)}this.insertionMode=Xa.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===ta.TEMPLATE)break;if(e===ta.TABLE)return void(this.insertionMode=Xa.IN_SELECT_IN_TABLE)}this.insertionMode=Xa.IN_SELECT}_isElementCausesFosterParenting(e){return Qa.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 ta.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===Qr.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case ta.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 sa[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 Xa.INITIAL:cn(this,e);break;case Xa.BEFORE_HTML:ln(this,e);break;case Xa.BEFORE_HEAD:pn(this,e);break;case Xa.IN_HEAD:mn(this,e);break;case Xa.IN_HEAD_NO_SCRIPT:hn(this,e);break;case Xa.AFTER_HEAD:yn(this,e);break;case Xa.IN_BODY:case Xa.IN_CAPTION:case Xa.IN_CELL:case Xa.IN_TEMPLATE:xn(this,e);break;case Xa.TEXT:case Xa.IN_SELECT:case Xa.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case Xa.IN_TABLE:case Xa.IN_TABLE_BODY:case Xa.IN_ROW:jn(this,e);break;case Xa.IN_TABLE_TEXT:In(this,e);break;case Xa.IN_COLUMN_GROUP:Ln(this,e);break;case Xa.AFTER_BODY:Kn(this,e);break;case Xa.AFTER_AFTER_BODY:Yn(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=xr,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case Xa.INITIAL:cn(this,e);break;case Xa.BEFORE_HTML:ln(this,e);break;case Xa.BEFORE_HEAD:pn(this,e);break;case Xa.IN_HEAD:mn(this,e);break;case Xa.IN_HEAD_NO_SCRIPT:hn(this,e);break;case Xa.AFTER_HEAD:yn(this,e);break;case Xa.TEXT:this._insertCharacters(e);break;case Xa.IN_TABLE:case Xa.IN_TABLE_BODY:case Xa.IN_ROW:jn(this,e);break;case Xa.IN_COLUMN_GROUP:Ln(this,e);break;case Xa.AFTER_BODY:Kn(this,e);break;case Xa.AFTER_AFTER_BODY:Yn(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)dn(this,e);else switch(this.insertionMode){case Xa.INITIAL:case Xa.BEFORE_HTML:case Xa.BEFORE_HEAD:case Xa.IN_HEAD:case Xa.IN_HEAD_NO_SCRIPT:case Xa.AFTER_HEAD:case Xa.IN_BODY:case Xa.IN_TABLE:case Xa.IN_CAPTION:case Xa.IN_COLUMN_GROUP:case Xa.IN_TABLE_BODY:case Xa.IN_ROW:case Xa.IN_CELL:case Xa.IN_SELECT:case Xa.IN_SELECT_IN_TABLE:case Xa.IN_TEMPLATE:case Xa.IN_FRAMESET:case Xa.AFTER_FRAMESET:dn(this,e);break;case Xa.IN_TABLE_TEXT:Nn(this,e);break;case Xa.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case Xa.AFTER_AFTER_BODY:case Xa.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case Xa.INITIAL:!function(e,t){e._setDocumentType(t);const r=t.forceQuirks?Zr.QUIRKS:function(e){if(e.name!==Pa)return Zr.QUIRKS;const{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return Zr.QUIRKS;let{publicId:r}=e;if(null!==r){if(r=r.toLowerCase(),Na.has(r))return Zr.QUIRKS;let e=null===t?Ia:Fa;if(La(r,e))return Zr.QUIRKS;if(e=null===t?Ba:Oa,La(r,e))return Zr.LIMITED_QUIRKS}return Zr.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=Xa.BEFORE_HTML}(this,e);break;case Xa.BEFORE_HEAD:case Xa.IN_HEAD:case Xa.IN_HEAD_NO_SCRIPT:case Xa.AFTER_HEAD:this._err(e,kr.misplacedDoctype);break;case Xa.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===ta.FONT&&e.attrs.some((e=>{let{name:t}=e;return t===$r.COLOR||t===$r.SIZE||t===$r.FACE}))||Wa.has(t)}(t))Xn(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),a=e.treeAdapter.getNamespaceURI(r);a===Qr.MATHML?za(t):a===Qr.SVG&&(!function(e){const t=qa.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=aa(e.tagName))}(t),Va(t)),Ka(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 Xa.INITIAL:cn(this,e);break;case Xa.BEFORE_HTML:!function(e,t){t.tagID===ta.HTML?(e._insertElement(t,Qr.HTML),e.insertionMode=Xa.BEFORE_HEAD):ln(e,t)}(this,e);break;case Xa.BEFORE_HEAD:!function(e,t){switch(t.tagID){case ta.HTML:Tn(e,t);break;case ta.HEAD:e._insertElement(t,Qr.HTML),e.headElement=e.openElements.current,e.insertionMode=Xa.IN_HEAD;break;default:pn(e,t)}}(this,e);break;case Xa.IN_HEAD:fn(this,e);break;case Xa.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case ta.HTML:Tn(e,t);break;case ta.BASEFONT:case ta.BGSOUND:case ta.HEAD:case ta.LINK:case ta.META:case ta.NOFRAMES:case ta.STYLE:fn(e,t);break;case ta.NOSCRIPT:e._err(t,kr.nestedNoscriptInHead);break;default:hn(e,t)}}(this,e);break;case Xa.AFTER_HEAD:!function(e,t){switch(t.tagID){case ta.HTML:Tn(e,t);break;case ta.BODY:e._insertElement(t,Qr.HTML),e.framesetOk=!1,e.insertionMode=Xa.IN_BODY;break;case ta.FRAMESET:e._insertElement(t,Qr.HTML),e.insertionMode=Xa.IN_FRAMESET;break;case ta.BASE:case ta.BASEFONT:case ta.BGSOUND:case ta.LINK:case ta.META:case ta.NOFRAMES:case ta.SCRIPT:case ta.STYLE:case ta.TEMPLATE:case ta.TITLE:e._err(t,kr.abandonedHeadElementChild),e.openElements.push(e.headElement,ta.HEAD),fn(e,t),e.openElements.remove(e.headElement);break;case ta.HEAD:e._err(t,kr.misplacedStartTagForHeadElement);break;default:yn(e,t)}}(this,e);break;case Xa.IN_BODY:Tn(this,e);break;case Xa.IN_TABLE:_n(this,e);break;case Xa.IN_TABLE_TEXT:Nn(this,e);break;case Xa.IN_CAPTION:!function(e,t){const r=t.tagID;Bn.has(r)?e.openElements.hasInTableScope(ta.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(ta.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Xa.IN_TABLE,_n(e,t)):Tn(e,t)}(this,e);break;case Xa.IN_COLUMN_GROUP:On(this,e);break;case Xa.IN_TABLE_BODY:Mn(this,e);break;case Xa.IN_ROW:Hn(this,e);break;case Xa.IN_CELL:!function(e,t){const r=t.tagID;Bn.has(r)?(e.openElements.hasInTableScope(ta.TD)||e.openElements.hasInTableScope(ta.TH))&&(e._closeTableCell(),Hn(e,t)):Tn(e,t)}(this,e);break;case Xa.IN_SELECT:qn(this,e);break;case Xa.IN_SELECT_IN_TABLE:!function(e,t){const r=t.tagID;r===ta.CAPTION||r===ta.TABLE||r===ta.TBODY||r===ta.TFOOT||r===ta.THEAD||r===ta.TR||r===ta.TD||r===ta.TH?(e.openElements.popUntilTagNamePopped(ta.SELECT),e._resetInsertionMode(),e._processStartTag(t)):qn(e,t)}(this,e);break;case Xa.IN_TEMPLATE:!function(e,t){switch(t.tagID){case ta.BASE:case ta.BASEFONT:case ta.BGSOUND:case ta.LINK:case ta.META:case ta.NOFRAMES:case ta.SCRIPT:case ta.STYLE:case ta.TEMPLATE:case ta.TITLE:fn(e,t);break;case ta.CAPTION:case ta.COLGROUP:case ta.TBODY:case ta.TFOOT:case ta.THEAD:e.tmplInsertionModeStack[0]=Xa.IN_TABLE,e.insertionMode=Xa.IN_TABLE,_n(e,t);break;case ta.COL:e.tmplInsertionModeStack[0]=Xa.IN_COLUMN_GROUP,e.insertionMode=Xa.IN_COLUMN_GROUP,On(e,t);break;case ta.TR:e.tmplInsertionModeStack[0]=Xa.IN_TABLE_BODY,e.insertionMode=Xa.IN_TABLE_BODY,Mn(e,t);break;case ta.TD:case ta.TH:e.tmplInsertionModeStack[0]=Xa.IN_ROW,e.insertionMode=Xa.IN_ROW,Hn(e,t);break;default:e.tmplInsertionModeStack[0]=Xa.IN_BODY,e.insertionMode=Xa.IN_BODY,Tn(e,t)}}(this,e);break;case Xa.AFTER_BODY:!function(e,t){t.tagID===ta.HTML?Tn(e,t):Kn(e,t)}(this,e);break;case Xa.IN_FRAMESET:!function(e,t){switch(t.tagID){case ta.HTML:Tn(e,t);break;case ta.FRAMESET:e._insertElement(t,Qr.HTML);break;case ta.FRAME:e._appendElement(t,Qr.HTML),t.ackSelfClosing=!0;break;case ta.NOFRAMES:fn(e,t)}}(this,e);break;case Xa.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case ta.HTML:Tn(e,t);break;case ta.NOFRAMES:fn(e,t)}}(this,e);break;case Xa.AFTER_AFTER_BODY:!function(e,t){t.tagID===ta.HTML?Tn(e,t):Yn(e,t)}(this,e);break;case Xa.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case ta.HTML:Tn(e,t);break;case ta.NOFRAMES:fn(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===ta.P||t.tagID===ta.BR)return Xn(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)===Qr.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 Xa.INITIAL:cn(this,e);break;case Xa.BEFORE_HTML:!function(e,t){const r=t.tagID;r!==ta.HTML&&r!==ta.HEAD&&r!==ta.BODY&&r!==ta.BR||ln(e,t)}(this,e);break;case Xa.BEFORE_HEAD:!function(e,t){const r=t.tagID;r===ta.HEAD||r===ta.BODY||r===ta.HTML||r===ta.BR?pn(e,t):e._err(t,kr.endTagWithoutMatchingOpenElement)}(this,e);break;case Xa.IN_HEAD:!function(e,t){switch(t.tagID){case ta.HEAD:e.openElements.pop(),e.insertionMode=Xa.AFTER_HEAD;break;case ta.BODY:case ta.BR:case ta.HTML:mn(e,t);break;case ta.TEMPLATE:gn(e,t);break;default:e._err(t,kr.endTagWithoutMatchingOpenElement)}}(this,e);break;case Xa.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case ta.NOSCRIPT:e.openElements.pop(),e.insertionMode=Xa.IN_HEAD;break;case ta.BR:hn(e,t);break;default:e._err(t,kr.endTagWithoutMatchingOpenElement)}}(this,e);break;case Xa.AFTER_HEAD:!function(e,t){switch(t.tagID){case ta.BODY:case ta.HTML:case ta.BR:yn(e,t);break;case ta.TEMPLATE:gn(e,t);break;default:e._err(t,kr.endTagWithoutMatchingOpenElement)}}(this,e);break;case Xa.IN_BODY:wn(this,e);break;case Xa.TEXT:!function(e,t){var r;t.tagID===ta.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 Xa.IN_TABLE:kn(this,e);break;case Xa.IN_TABLE_TEXT:Nn(this,e);break;case Xa.IN_CAPTION:!function(e,t){const r=t.tagID;switch(r){case ta.CAPTION:case ta.TABLE:e.openElements.hasInTableScope(ta.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(ta.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Xa.IN_TABLE,r===ta.TABLE&&kn(e,t));break;case ta.BODY:case ta.COL:case ta.COLGROUP:case ta.HTML:case ta.TBODY:case ta.TD:case ta.TFOOT:case ta.TH:case ta.THEAD:case ta.TR:break;default:wn(e,t)}}(this,e);break;case Xa.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case ta.COLGROUP:e.openElements.currentTagId===ta.COLGROUP&&(e.openElements.pop(),e.insertionMode=Xa.IN_TABLE);break;case ta.TEMPLATE:gn(e,t);break;case ta.COL:break;default:Ln(e,t)}}(this,e);break;case Xa.IN_TABLE_BODY:Un(this,e);break;case Xa.IN_ROW:Gn(this,e);break;case Xa.IN_CELL:!function(e,t){const r=t.tagID;switch(r){case ta.TD:case ta.TH:e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Xa.IN_ROW);break;case ta.TABLE:case ta.TBODY:case ta.TFOOT:case ta.THEAD:case ta.TR:e.openElements.hasInTableScope(r)&&(e._closeTableCell(),Gn(e,t));break;case ta.BODY:case ta.CAPTION:case ta.COL:case ta.COLGROUP:case ta.HTML:break;default:wn(e,t)}}(this,e);break;case Xa.IN_SELECT:Wn(this,e);break;case Xa.IN_SELECT_IN_TABLE:!function(e,t){const r=t.tagID;r===ta.CAPTION||r===ta.TABLE||r===ta.TBODY||r===ta.TFOOT||r===ta.THEAD||r===ta.TR||r===ta.TD||r===ta.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(ta.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Wn(e,t)}(this,e);break;case Xa.IN_TEMPLATE:!function(e,t){t.tagID===ta.TEMPLATE&&gn(e,t)}(this,e);break;case Xa.AFTER_BODY:Vn(this,e);break;case Xa.IN_FRAMESET:!function(e,t){t.tagID!==ta.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===ta.FRAMESET||(e.insertionMode=Xa.AFTER_FRAMESET))}(this,e);break;case Xa.AFTER_FRAMESET:!function(e,t){t.tagID===ta.HTML&&(e.insertionMode=Xa.AFTER_AFTER_FRAMESET)}(this,e);break;case Xa.AFTER_AFTER_BODY:Yn(this,e)}}onEof(e){switch(this.insertionMode){case Xa.INITIAL:cn(this,e);break;case Xa.BEFORE_HTML:ln(this,e);break;case Xa.BEFORE_HEAD:pn(this,e);break;case Xa.IN_HEAD:mn(this,e);break;case Xa.IN_HEAD_NO_SCRIPT:hn(this,e);break;case Xa.AFTER_HEAD:yn(this,e);break;case Xa.IN_BODY:case Xa.IN_TABLE:case Xa.IN_CAPTION:case Xa.IN_COLUMN_GROUP:case Xa.IN_TABLE_BODY:case Xa.IN_ROW:case Xa.IN_CELL:case Xa.IN_SELECT:case Xa.IN_SELECT_IN_TABLE:Sn(this,e);break;case Xa.TEXT:!function(e,t){e._err(t,kr.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case Xa.IN_TABLE_TEXT:Nn(this,e);break;case Xa.IN_TEMPLATE:zn(this,e);break;case Xa.AFTER_BODY:case Xa.IN_FRAMESET:case Xa.AFTER_FRAMESET:case Xa.AFTER_AFTER_BODY:case Xa.AFTER_AFTER_FRAMESET:un(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===Rr.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 Xa.IN_HEAD:case Xa.IN_HEAD_NO_SCRIPT:case Xa.AFTER_HEAD:case Xa.TEXT:case Xa.IN_COLUMN_GROUP:case Xa.IN_SELECT:case Xa.IN_SELECT_IN_TABLE:case Xa.IN_FRAMESET:case Xa.AFTER_FRAMESET:this._insertCharacters(e);break;case Xa.IN_BODY:case Xa.IN_CAPTION:case Xa.IN_CELL:case Xa.IN_TEMPLATE:case Xa.AFTER_BODY:case Xa.AFTER_AFTER_BODY:case Xa.AFTER_AFTER_FRAMESET:vn(this,e);break;case Xa.IN_TABLE:case Xa.IN_TABLE_BODY:case Xa.IN_ROW:jn(this,e);break;case Xa.IN_TABLE_TEXT:Fn(this,e)}}}function en(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):Cn(e,t),r}function tn(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 rn(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=an(e,r),a===t&&(e.activeFormattingElements.bookmark=r),e.treeAdapter.detachNode(a),e.treeAdapter.appendChild(i,a),a=i)}return a}function an(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 nn(e,t,r){const a=aa(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(a))e._fosterParentElement(r);else{const n=e.treeAdapter.getNamespaceURI(t);a===ta.TEMPLATE&&n===Qr.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function sn(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 on(e,t){for(let r=0;r<8;r++){const r=en(e,t);if(!r)break;const a=tn(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const n=rn(e,a,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(n),s&&nn(e,s,n),sn(e,a,r)}}function dn(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function un(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,Zr.QUIRKS),e.insertionMode=Xa.BEFORE_HTML,e._processToken(t)}function ln(e,t){e._insertFakeRootElement(),e.insertionMode=Xa.BEFORE_HEAD,e._processToken(t)}function pn(e,t){e._insertFakeElement(ea.HEAD,ta.HEAD),e.headElement=e.openElements.current,e.insertionMode=Xa.IN_HEAD,e._processToken(t)}function fn(e,t){switch(t.tagID){case ta.HTML:Tn(e,t);break;case ta.BASE:case ta.BASEFONT:case ta.BGSOUND:case ta.LINK:case ta.META:e._appendElement(t,Qr.HTML),t.ackSelfClosing=!0;break;case ta.TITLE:e._switchToTextParsing(t,da.RCDATA);break;case ta.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,da.RAWTEXT):(e._insertElement(t,Qr.HTML),e.insertionMode=Xa.IN_HEAD_NO_SCRIPT);break;case ta.NOFRAMES:case ta.STYLE:e._switchToTextParsing(t,da.RAWTEXT);break;case ta.SCRIPT:e._switchToTextParsing(t,da.SCRIPT_DATA);break;case ta.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Xa.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Xa.IN_TEMPLATE);break;case ta.HEAD:e._err(t,kr.misplacedStartTagForHeadElement);break;default:mn(e,t)}}function gn(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==ta.TEMPLATE&&e._err(t,kr.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(ta.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,kr.endTagWithoutMatchingOpenElement)}function mn(e,t){e.openElements.pop(),e.insertionMode=Xa.AFTER_HEAD,e._processToken(t)}function hn(e,t){const r=t.type===Fr.EOF?kr.openElementsLeftAfterEof:kr.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=Xa.IN_HEAD,e._processToken(t)}function yn(e,t){e._insertFakeElement(ea.BODY,ta.BODY),e.insertionMode=Xa.IN_BODY,bn(e,t)}function bn(e,t){switch(t.type){case Fr.CHARACTER:xn(e,t);break;case Fr.WHITESPACE_CHARACTER:vn(e,t);break;case Fr.COMMENT:dn(e,t);break;case Fr.START_TAG:Tn(e,t);break;case Fr.END_TAG:wn(e,t);break;case Fr.EOF:Sn(e,t)}}function vn(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function xn(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Rn(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Qr.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function En(e){const t=Ir(e,$r.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function Dn(e,t){e._switchToTextParsing(t,da.RAWTEXT)}function An(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Qr.HTML)}function Tn(e,t){switch(t.tagID){case ta.I:case ta.S:case ta.B:case ta.U:case ta.EM:case ta.TT:case ta.BIG:case ta.CODE:case ta.FONT:case ta.SMALL:case ta.STRIKE:case ta.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Qr.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case ta.A:!function(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(ea.A);r&&(on(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,Qr.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case ta.H1:case ta.H2:case ta.H3:case ta.H4:case ta.H5:case ta.H6:!function(e,t){e.openElements.hasInButtonScope(ta.P)&&e._closePElement(),ia.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Qr.HTML)}(e,t);break;case ta.P:case ta.DL:case ta.OL:case ta.UL:case ta.DIV:case ta.DIR:case ta.NAV:case ta.MAIN:case ta.MENU:case ta.ASIDE:case ta.CENTER:case ta.FIGURE:case ta.FOOTER:case ta.HEADER:case ta.HGROUP:case ta.DIALOG:case ta.DETAILS:case ta.ADDRESS:case ta.ARTICLE:case ta.SEARCH:case ta.SECTION:case ta.SUMMARY:case ta.FIELDSET:case ta.BLOCKQUOTE:case ta.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(ta.P)&&e._closePElement(),e._insertElement(t,Qr.HTML)}(e,t);break;case ta.LI:case ta.DD:case ta.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===ta.LI&&t===ta.LI||(r===ta.DD||r===ta.DT)&&(t===ta.DD||t===ta.DT)){e.openElements.generateImpliedEndTagsWithExclusion(t),e.openElements.popUntilTagNamePopped(t);break}if(t!==ta.ADDRESS&&t!==ta.DIV&&t!==ta.P&&e._isSpecialElement(e.openElements.items[a],t))break}e.openElements.hasInButtonScope(ta.P)&&e._closePElement(),e._insertElement(t,Qr.HTML)}(e,t);break;case ta.BR:case ta.IMG:case ta.WBR:case ta.AREA:case ta.EMBED:case ta.KEYGEN:Rn(e,t);break;case ta.HR:!function(e,t){e.openElements.hasInButtonScope(ta.P)&&e._closePElement(),e._appendElement(t,Qr.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case ta.RB:case ta.RTC:!function(e,t){e.openElements.hasInScope(ta.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Qr.HTML)}(e,t);break;case ta.RT:case ta.RP:!function(e,t){e.openElements.hasInScope(ta.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(ta.RTC),e._insertElement(t,Qr.HTML)}(e,t);break;case ta.PRE:case ta.LISTING:!function(e,t){e.openElements.hasInButtonScope(ta.P)&&e._closePElement(),e._insertElement(t,Qr.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case ta.XMP:!function(e,t){e.openElements.hasInButtonScope(ta.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,da.RAWTEXT)}(e,t);break;case ta.SVG:!function(e,t){e._reconstructActiveFormattingElements(),Va(t),Ka(t),t.selfClosing?e._appendElement(t,Qr.SVG):e._insertElement(t,Qr.SVG),t.ackSelfClosing=!0}(e,t);break;case ta.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case ta.BASE:case ta.LINK:case ta.META:case ta.STYLE:case ta.TITLE:case ta.SCRIPT:case ta.BGSOUND:case ta.BASEFONT:case ta.TEMPLATE:fn(e,t);break;case ta.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 ta.FORM:!function(e,t){const r=e.openElements.tmplCount>0;e.formElement&&!r||(e.openElements.hasInButtonScope(ta.P)&&e._closePElement(),e._insertElement(t,Qr.HTML),r||(e.formElement=e.openElements.current))}(e,t);break;case ta.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(ta.NOBR)&&(on(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Qr.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case ta.MATH:!function(e,t){e._reconstructActiveFormattingElements(),za(t),Ka(t),t.selfClosing?e._appendElement(t,Qr.MATHML):e._insertElement(t,Qr.MATHML),t.ackSelfClosing=!0}(e,t);break;case ta.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==Zr.QUIRKS&&e.openElements.hasInButtonScope(ta.P)&&e._closePElement(),e._insertElement(t,Qr.HTML),e.framesetOk=!1,e.insertionMode=Xa.IN_TABLE}(e,t);break;case ta.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Qr.HTML),En(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case ta.PARAM:case ta.TRACK:case ta.SOURCE:!function(e,t){e._appendElement(t,Qr.HTML),t.ackSelfClosing=!0}(e,t);break;case ta.IMAGE:!function(e,t){t.tagName=ea.IMG,t.tagID=ta.IMG,Rn(e,t)}(e,t);break;case ta.BUTTON:!function(e,t){e.openElements.hasInScope(ta.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(ta.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Qr.HTML),e.framesetOk=!1}(e,t);break;case ta.APPLET:case ta.OBJECT:case ta.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Qr.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case ta.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,da.RAWTEXT)}(e,t);break;case ta.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Qr.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Xa.IN_TABLE||e.insertionMode===Xa.IN_CAPTION||e.insertionMode===Xa.IN_TABLE_BODY||e.insertionMode===Xa.IN_ROW||e.insertionMode===Xa.IN_CELL?Xa.IN_SELECT_IN_TABLE:Xa.IN_SELECT}(e,t);break;case ta.OPTION:case ta.OPTGROUP:!function(e,t){e.openElements.currentTagId===ta.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Qr.HTML)}(e,t);break;case ta.NOEMBED:case ta.NOFRAMES:Dn(e,t);break;case ta.FRAMESET:!function(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Qr.HTML),e.insertionMode=Xa.IN_FRAMESET)}(e,t);break;case ta.TEXTAREA:!function(e,t){e._insertElement(t,Qr.HTML),e.skipNextNewLine=!0,e.tokenizer.state=da.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Xa.TEXT}(e,t);break;case ta.NOSCRIPT:e.options.scriptingEnabled?Dn(e,t):An(e,t);break;case ta.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(ta.P)&&e._closePElement(),e._insertElement(t,Qr.HTML),e.tokenizer.state=da.PLAINTEXT}(e,t);break;case ta.COL:case ta.TH:case ta.TD:case ta.TR:case ta.HEAD:case ta.FRAME:case ta.TBODY:case ta.TFOOT:case ta.THEAD:case ta.CAPTION:case ta.COLGROUP:break;default:An(e,t)}}function Cn(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!==ta.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 wn(e,t){switch(t.tagID){case ta.A:case ta.B:case ta.I:case ta.S:case ta.U:case ta.EM:case ta.TT:case ta.BIG:case ta.CODE:case ta.FONT:case ta.NOBR:case ta.SMALL:case ta.STRIKE:case ta.STRONG:on(e,t);break;case ta.P:!function(e){e.openElements.hasInButtonScope(ta.P)||e._insertFakeElement(ea.P,ta.P),e._closePElement()}(e);break;case ta.DL:case ta.UL:case ta.OL:case ta.DIR:case ta.DIV:case ta.NAV:case ta.PRE:case ta.MAIN:case ta.MENU:case ta.ASIDE:case ta.BUTTON:case ta.CENTER:case ta.FIGURE:case ta.FOOTER:case ta.HEADER:case ta.HGROUP:case ta.DIALOG:case ta.ADDRESS:case ta.ARTICLE:case ta.DETAILS:case ta.SEARCH:case ta.SECTION:case ta.SUMMARY:case ta.LISTING:case ta.FIELDSET:case ta.BLOCKQUOTE:case ta.FIGCAPTION:!function(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}(e,t);break;case ta.LI:!function(e){e.openElements.hasInListItemScope(ta.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(ta.LI),e.openElements.popUntilTagNamePopped(ta.LI))}(e);break;case ta.DD:case ta.DT:!function(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}(e,t);break;case ta.H1:case ta.H2:case ta.H3:case ta.H4:case ta.H5:case ta.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case ta.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(ea.BR,ta.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case ta.BODY:!function(e,t){if(e.openElements.hasInScope(ta.BODY)&&(e.insertionMode=Xa.AFTER_BODY,e.options.sourceCodeLocationInfo)){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}(e,t);break;case ta.HTML:!function(e,t){e.openElements.hasInScope(ta.BODY)&&(e.insertionMode=Xa.AFTER_BODY,Vn(e,t))}(e,t);break;case ta.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(ta.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(ta.FORM):r&&e.openElements.remove(r))}(e);break;case ta.APPLET:case ta.OBJECT:case ta.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 ta.TEMPLATE:gn(e,t);break;default:Cn(e,t)}}function Sn(e,t){e.tmplInsertionModeStack.length>0?zn(e,t):un(e,t)}function jn(e,t){if(Qa.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Xa.IN_TABLE_TEXT,t.type){case Fr.CHARACTER:In(e,t);break;case Fr.WHITESPACE_CHARACTER:Fn(e,t)}else Pn(e,t)}function _n(e,t){switch(t.tagID){case ta.TD:case ta.TH:case ta.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(ea.TBODY,ta.TBODY),e.insertionMode=Xa.IN_TABLE_BODY,Mn(e,t)}(e,t);break;case ta.STYLE:case ta.SCRIPT:case ta.TEMPLATE:fn(e,t);break;case ta.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(ea.COLGROUP,ta.COLGROUP),e.insertionMode=Xa.IN_COLUMN_GROUP,On(e,t)}(e,t);break;case ta.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,Qr.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case ta.TABLE:!function(e,t){e.openElements.hasInTableScope(ta.TABLE)&&(e.openElements.popUntilTagNamePopped(ta.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case ta.TBODY:case ta.TFOOT:case ta.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Qr.HTML),e.insertionMode=Xa.IN_TABLE_BODY}(e,t);break;case ta.INPUT:!function(e,t){En(t)?e._appendElement(t,Qr.HTML):Pn(e,t),t.ackSelfClosing=!0}(e,t);break;case ta.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Qr.HTML),e.insertionMode=Xa.IN_CAPTION}(e,t);break;case ta.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Qr.HTML),e.insertionMode=Xa.IN_COLUMN_GROUP}(e,t);break;default:Pn(e,t)}}function kn(e,t){switch(t.tagID){case ta.TABLE:e.openElements.hasInTableScope(ta.TABLE)&&(e.openElements.popUntilTagNamePopped(ta.TABLE),e._resetInsertionMode());break;case ta.TEMPLATE:gn(e,t);break;case ta.BODY:case ta.CAPTION:case ta.COL:case ta.COLGROUP:case ta.HTML:case ta.TBODY:case ta.TD:case ta.TFOOT:case ta.TH:case ta.THEAD:case ta.TR:break;default:Pn(e,t)}}function Pn(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,bn(e,t),e.fosterParentingEnabled=r}function Fn(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===ta.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===ta.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===ta.OPTGROUP&&e.openElements.pop();break;case ta.OPTION:e.openElements.currentTagId===ta.OPTION&&e.openElements.pop();break;case ta.SELECT:e.openElements.hasInSelectScope(ta.SELECT)&&(e.openElements.popUntilTagNamePopped(ta.SELECT),e._resetInsertionMode());break;case ta.TEMPLATE:gn(e,t)}}function zn(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(ta.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):un(e,t)}function Vn(e,t){var r;if(t.tagID===ta.HTML){if(e.fragmentContext||(e.insertionMode=Xa.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===ta.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 Kn(e,t)}function Kn(e,t){e.insertionMode=Xa.IN_BODY,bn(e,t)}function Yn(e,t){e.insertionMode=Xa.IN_BODY,bn(e,t)}function Xn(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Qr.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}const Jn=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);String.prototype.codePointAt;function Qn(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)}}Qn(/[&<>'"]/g,Jn),Qn(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),Qn(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),new Set([ea.AREA,ea.BASE,ea.BASEFONT,ea.BGSOUND,ea.BR,ea.COL,ea.EMBED,ea.FRAME,ea.HR,ea.IMG,ea.INPUT,ea.KEYGEN,ea.LINK,ea.META,ea.PARAM,ea.SOURCE,ea.TRACK,ea.WBR]);const $n=es("end"),Zn=es("start");function es(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 ts=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,rs=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),as={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function ns(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=gt("type",{handlers:{root:is,element:os,text:ds,comment:ls,doctype:us,raw:ps},unknown:fs}),n={parser:r?new Za(as):Za.getFragmentParser(void 0,as),handle(e){a(e,n)},stitches:!1,options:t||{}};a(e,n),gs(n,Zn());const s=function(e,t){const r=t||{};return ir({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 ss(e,t){let r=-1;if(e)for(;++r4&&(t.parser.tokenizer.state=0);const r={type:Fr.CHARACTER,chars:e.value,location:hs(e)};gs(t,Zn(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function us(e,t){const r={type:Fr.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:hs(e)};gs(t,Zn(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function cs(e,t){t.stitches=!0;const r=function(e){return Vt("children"in e?(0,Ze.A)((0,Ze.A)({},e),{},{children:[]}):e)}(e);if("children"in e&&"children"in r){const a=ns({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:Fr.COMMENT,data:r,location:hs(e)};gs(t,Zn(e)),t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken)}function ps(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,ms(t,Zn(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(ts,"<$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 fs(e,t){const r=e;if(!t.options.passThrough||!t.options.passThrough.includes(r.type)){let e="";throw rs.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 gs(e,t){ms(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=da.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 ms(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 hs(e){const t=Zn(e)||{line:void 0,column:void 0,offset:void 0},r=$n(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 ys(e){return function(t,r){return ns(t,(0,Ze.A)((0,Ze.A)({},e),{},{file:r}))}}const bs=/^(?:[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960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uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC4\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[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uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])(?:[\$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088E\u0897-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0AC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EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B4C\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA827\uA82C\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABEC\uABED\uABF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DC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB8\uDEC0-\uDEC9\uDED0-\uDEE3\uDF00-\uDF1A\uDF1D-\uDF2B\uDF30-\uDF39\uDF40-\uDF46]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCE9\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDE1\uDDE3\uDDE4\uDE00-\uDE3E\uDE47\uDE50-\uDE99\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0\uDFF0-\uDFF9]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF6\uDF00-\uDF10\uDF12-\uDF3A\uDF3E-\uDF42\uDF50-\uDF5A\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC40-\uDC55\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD39]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDEF0-\uDEF4\u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uDC23\uDC24\uDC26-\uDC2A\uDC30-\uDC6D\uDC8F\uDD00-\uDD2C\uDD30-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAE\uDEC0-\uDEF9]|\uD839[\uDCD0-\uDCF9\uDDD0-\uDDFA\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF]|\uDB40[\uDD00-\uDDEF])*$/,vs=/^(?:[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF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E89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1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xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088E\u0897-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-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\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B4C\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA827\uA82C\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC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DD18-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDE1\uDDE3\uDDE4\uDE00-\uDE3E\uDE47\uDE50-\uDE99\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0\uDFF0-\uDFF9]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF6\uDF00-\uDF10\uDF12-\uDF3A\uDF3E-\uDF42\uDF50-\uDF5A\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC40-\uDC55\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD39]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDD70-\uDD79\uDE40-\uDE7F\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3\uDFE4\uDFF0\uDFF1]|\uD821[\uDC00-\uDFF7]|\uD823[\uD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00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF]|\uDB40[\uDD00-\uDDEF])*$/,xs={};function Rs(e,t){return((t||xs).jsx?vs:bs).test(e)}const Es={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 Ds=r(1581);const As=Ds.default||Ds;function Ts(e){return e&&"object"===typeof e?"position"in e||"type"in e?ws(e.position):"start"in e||"end"in e?ws(e):"line"in e||"column"in e?Cs(e):"":""}function Cs(e){return Ss(e&&e.line)+":"+Ss(e&&e.column)}function ws(e){return Cs(e&&e.start)+"-"+Cs(e&&e.end)}function Ss(e){return e&&"number"===typeof e?e:1}class js 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}:(0,Ze.A)({},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=Ts(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}}js.prototype.file="",js.prototype.name="",js.prototype.reason="",js.prototype.message="",js.prototype.stack="",js.prototype.column=void 0,js.prototype.line=void 0,js.prototype.ancestors=void 0,js.prototype.cause=void 0,js.prototype.fatal=void 0,js.prototype.place=void 0,js.prototype.ruleId=void 0,js.prototype.source=void 0;const _s={}.hasOwnProperty,ks=new Map,Ps=/[A-Z]/g,Fs=/-([a-z])/g,Is=new Set(["table","tbody","thead","tfoot","tr"]),Ns=new Set(["td","th"]),Bs="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Os(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=Zn(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=Ls(n,e,void 0);return s&&"string"!==typeof s?s:n.create(e,n.Fragment,{children:s||void 0},void 0)}function Ls(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=qs(e,t.tagName,!1),i=function(e,t){const r={};let a,n;for(n in t.properties)if("children"!==n&&_s.call(t.properties,n)){const s=Gs(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=Hs(e,t);Is.has(t.tagName)&&(o=o.filter((function(e){return"string"!==typeof e||!it(e)})));return Ms(e,i,s,t),Us(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)}Ws(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:qs(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 Ws(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 Ws(e,t.position);else s=null===a.value||a.value;r[n]=s}return r}(e,t),o=Hs(e,t);return Ms(e,i,s,t),Us(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);Ws(e,t.position)}(e,t):"root"===t.type?function(e,t,r){const a={};return Us(a,Hs(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 Ms(e,t,r,a){"string"!==typeof r&&r!==e.Fragment&&e.passNode&&(t.node=a)}function Us(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function Hs(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?(Zs(e,e.length,0,t),e):t}class ti{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&&ri(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),ri(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ri(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\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD803[\uDD8E\uDD8F]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDC00-\uDCEF\uDD00-\uDEB3\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF])/),xi=Ri(/\s/);function Ri(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Ei(e,t,r,a){const n=a?a-1:Number.POSITIVE_INFINITY;let s=0;return function(a){if(bi(a))return e.enter(r),i(a);return t(a)};function i(a){return bi(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}}},Ti={tokenize:function(e,t,r){return Ei(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const Ci={partial:!0,tokenize:function(e,t,r){return function(t){return bi(t)?Ei(e,a,"linePrefix")(t):a(t)};function a(e){return null===e||hi(e)?t(e):r(e)}}};const wi={resolve:function(e){return ai(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):hi(t)?e.check(Si,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}}},Si={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"),Ei(e,n,"linePrefix")};function n(n){if(null===n||hi(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 ji={tokenize:function(e){const t=this,r=e.attempt(Ci,(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,Ei(e,e.attempt(this.parser.constructs.flow,a,e.attempt(wi,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 _i={resolveAll:Ii()},ki=Fi("string"),Pi=Fi("text");function Fi(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||hi(s))?(e.exit("thematicBreak"),t(s)):r(s)}function i(t){return t===a?(e.consume(t),n++,i):(e.exit("thematicBreakSequence"),bi(t)?Ei(e,s,"whitespace")(t):s(t))}}};const Oi={continuation:{tokenize:function(e,t,r){const a=this;return a.containerState._closeFlow=void 0,e.check(Ci,n,s);function n(r){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,Ei(e,t,"listItemIndent",a.containerState.size+1)(r)}function s(r){return a.containerState.furtherBlankLines||!bi(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(Mi,t,i)(r))}function i(n){return a.containerState._closeFlow=!0,a.interrupt=void 0,Ei(e,e.attempt(Oi,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:fi(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(Bi,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 fi(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(Ci,a.interrupt?r:u,e.attempt(Li,l,c))}function u(e){return a.containerState.initialBlankLine=!0,s++,l(e)}function c(t){return bi(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),l):r(t)}function l(r){return a.containerState.size=s+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(r)}}},Li={partial:!0,tokenize:function(e,t,r){const a=this;return Ei(e,(function(e){const n=a.events[a.events.length-1];return!bi(e)&&n&&"listItemPrefixWhitespace"===n[1].type?t(e):r(e)}),"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Mi={partial:!0,tokenize:function(e,t,r){const a=this;return Ei(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 Ui={continuation:{tokenize:function(e,t,r){const a=this;return function(t){if(bi(t))return Ei(e,n,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return n(t)};function n(a){return e.attempt(Ui,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 bi(r)?(e.enter("blockQuotePrefixWhitespace"),e.consume(r),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(r))}}};function Hi(e,t,r,a,n,s,i,o,d){const u=d||Number.POSITIVE_INFINITY;let c=0;return function(t){if(60===t)return e.enter(a),e.enter(n),e.enter(s),e.consume(t),e.exit(s),l;if(null===t||32===t||41===t||pi(t))return r(t);return e.enter(a),e.enter(i),e.enter(o),e.enter("chunkString",{contentType:"string"}),g(t)};function l(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),l(t)):null===t||60===t||hi(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 c||null!==n&&41!==n&&!yi(n)?c999||null===l||91===l||93===l&&!o||94===l&&!d&&"_hiddenFootnoteSupport"in i.parser.constructs?r(l):93===l?(e.exit(s),e.enter(n),e.consume(l),e.exit(n),e.exit(a),t):hi(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(l))}function c(t){return null===t||91===t||93===t||hi(t)||d++>999?(e.exit("chunkString"),u(t)):(e.consume(t),o||(o=!bi(t)),92===t?l:c)}function l(t){return 91===t||92===t||93===t?(e.consume(t),d++,c):c(t)}}function qi(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):hi(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Ei(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===i||null===t||hi(t)?(e.exit("chunkString"),d(t)):(e.consume(t),92===t?c:u)}function c(t){return t===i||92===t?(e.consume(t),u):u(t)}}function Wi(e,t){let r;return function a(n){if(hi(n))return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),r=!0,a;if(bi(n))return Ei(e,a,r?"linePrefix":"lineSuffix")(n);return t(n)}}function zi(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Vi={name:"definition",tokenize:function(e,t,r){const a=this;let n;return function(t){return e.enter("definition"),function(t){return Gi.call(a,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function s(t){return n=zi(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 yi(t)?Wi(e,o)(t):o(t)}function o(t){return Hi(e,d,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function d(t){return e.attempt(Ki,u,u)(t)}function u(t){return bi(t)?Ei(e,c,"whitespace")(t):c(t)}function c(s){return null===s||hi(s)?(e.exit("definition"),a.parser.defined.push(n),t(s)):r(s)}}},Ki={partial:!0,tokenize:function(e,t,r){return function(t){return yi(t)?Wi(e,a)(t):r(t)};function a(t){return qi(e,n,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function n(t){return bi(t)?Ei(e,s,"whitespace")(t):s(t)}function s(e){return null===e||hi(e)?t(e):r(e)}}};const Yi={name:"codeIndented",tokenize:function(e,t,r){const a=this;return function(t){return e.enter("codeIndented"),Ei(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):hi(t)?e.attempt(Xi,s,o)(t):(e.enter("codeFlowValue"),i(t))}function i(t){return null===t||hi(t)?(e.exit("codeFlowValue"),s(t)):(e.consume(t),i)}function o(r){return e.exit("codeIndented"),t(r)}}},Xi={partial:!0,tokenize:function(e,t,r){const a=this;return n;function n(t){return a.parser.lazy[a.now().line]?r(t):hi(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),n):Ei(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):hi(e)?n(e):r(e)}}};const Ji={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"},Zs(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||yi(t)?(e.exit("atxHeadingSequence"),s(t)):r(t)}function s(r){return 35===r?(e.enter("atxHeadingSequence"),i(r)):null===r||hi(r)?(e.exit("atxHeading"),t(r)):bi(r)?Ei(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||yi(t)?(e.exit("atxHeadingText"),s(t)):(e.consume(t),o)}}};const Qi={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:(0,Ze.A)({},e[a][1].start),end:(0,Ze.A)({},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=(0,Ze.A)({},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"),bi(t)?Ei(e,i,"lineSuffix")(t):i(t))}function i(a){return null===a||hi(a)?(e.exit("setextHeadingLine"),t(a)):r(a)}}};const $i=["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"],Zi=["pre","script","style","textarea"],eo={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),u}(t)};function u(o){return 33===o?(e.consume(o),c):47===o?(e.consume(o),s=!0,f):63===o?(e.consume(o),n=3,a.interrupt?t:I):ui(o)?(e.consume(o),i=String.fromCharCode(o),g):r(o)}function c(s){return 45===s?(e.consume(s),n=2,l):91===s?(e.consume(s),n=5,o=0,p):ui(s)?(e.consume(s),n=4,a.interrupt?t:I):r(s)}function l(n){return 45===n?(e.consume(n),a.interrupt?t:I):r(n)}function p(n){const s="CDATA[";return n===s.charCodeAt(o++)?(e.consume(n),6===o?a.interrupt?t:C:p):r(n)}function f(t){return ui(t)?(e.consume(t),i=String.fromCharCode(t),g):r(t)}function g(o){if(null===o||47===o||62===o||yi(o)){const d=47===o,u=i.toLowerCase();return d||s||!Zi.includes(u)?$i.includes(i.toLowerCase())?(n=6,d?(e.consume(o),m):a.interrupt?t(o):C(o)):(n=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(o):s?h(o):y(o)):(n=1,a.interrupt?t(o):C(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:C):r(n)}function h(t){return bi(t)?(e.consume(t),h):A(t)}function y(t){return 47===t?(e.consume(t),A):58===t||95===t||ui(t)?(e.consume(t),b):bi(t)?(e.consume(t),y):A(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):bi(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):bi(t)?(e.consume(t),x):E(t)}function R(t){return t===d?(e.consume(t),d=null,D):null===t||hi(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||yi(t)?v(t):(e.consume(t),E)}function D(e){return 47===e||62===e||bi(e)?y(e):r(e)}function A(t){return 62===t?(e.consume(t),T):r(t)}function T(t){return null===t||hi(t)?C(t):bi(t)?(e.consume(t),T):r(t)}function C(t){return 45===t&&2===n?(e.consume(t),_):60===t&&1===n?(e.consume(t),k):62===t&&4===n?(e.consume(t),N):63===t&&3===n?(e.consume(t),I):93===t&&5===n?(e.consume(t),F):!hi(t)||6!==n&&7!==n?null===t||hi(t)?(e.exit("htmlFlowData"),w(t)):(e.consume(t),C):(e.exit("htmlFlowData"),e.check(to,B,w)(t))}function w(t){return e.check(ro,S,B)(t)}function S(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),j}function j(t){return null===t||hi(t)?w(t):(e.enter("htmlFlowData"),C(t))}function _(t){return 45===t?(e.consume(t),I):C(t)}function k(t){return 47===t?(e.consume(t),i="",P):C(t)}function P(t){if(62===t){const r=i.toLowerCase();return Zi.includes(r)?(e.consume(t),N):C(t)}return ui(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),P):C(t)}function F(t){return 93===t?(e.consume(t),I):C(t)}function I(t){return 62===t?(e.consume(t),N):45===t&&2===n?(e.consume(t),I):C(t)}function N(t){return null===t||hi(t)?(e.exit("htmlFlowData"),B(t)):(e.consume(t),N)}function B(r){return e.exit("htmlFlow"),t(r)}}},to={partial:!0,tokenize:function(e,t,r){return function(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Ci,t,r)}}},ro={partial:!0,tokenize:function(e,t,r){const a=this;return function(t){if(hi(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 ao={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)}}},no={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"),bi(t)?Ei(e,u,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):u(t)}function u(t){return t===s?(e.enter("codeFencedFenceSequence"),c(t)):r(t)}function c(t){return t===s?(n++,e.consume(t),c):n>=o?(e.exit("codeFencedFenceSequence"),bi(t)?Ei(e,l,"whitespace")(t):l(t)):r(t)}function l(a){return null===a||hi(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"),bi(t)?Ei(e,u,"whitespace")(t):u(t))}function u(r){return null===r||hi(r)?(e.exit("codeFencedFence"),a.interrupt?t(r):e.check(ao,f,b)(r)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(r))}function c(t){return null===t||hi(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(t)):bi(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ei(e,l,"whitespace")(t)):96===t&&t===s?r(t):(e.consume(t),c)}function l(t){return null===t||hi(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||hi(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(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&&bi(t)?Ei(e,h,"linePrefix",i+1)(t):h(t)}function h(t){return null===t||hi(t)?e.check(ao,f,b)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||hi(t)?(e.exit("codeFlowValue"),h(t)):(e.consume(t),y)}function b(r){return e.exit("codeFenced"),t(r)}}};var so=r(7018);const io={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,u(t))}function d(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),n=6,s=gi,u):(e.enter("characterReferenceValue"),n=7,s=fi,u(t))}function u(o){if(59===o&&i){const n=e.exit("characterReferenceValue");return s!==ci||(0,so.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[c][1].end.offset-e[c][1].start.offset>1?2:1;const l=(0,Ze.A)({},e[r][1].end),p=(0,Ze.A)({},e[c][1].start);bo(l,-o),bo(p,o),s={type:o>1?"strongSequence":"emphasisSequence",start:l,end:(0,Ze.A)({},e[r][1].end)},i={type:o>1?"strongSequence":"emphasisSequence",start:(0,Ze.A)({},e[c][1].start),end:p},n={type:o>1?"strongText":"emphasisText",start:(0,Ze.A)({},e[r][1].end),end:(0,Ze.A)({},e[c][1].start)},a={type:o>1?"strong":"emphasis",start:(0,Ze.A)({},s.start),end:(0,Ze.A)({},i.end)},e[r][1].end=(0,Ze.A)({},s.start),e[c][1].start=(0,Ze.A)({},i.end),d=[],e[r][1].end.offset-e[r][1].start.offset&&(d=ei(d,[["enter",e[r][1],t],["exit",e[r][1],t]])),d=ei(d,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",n,t]]),d=ei(d,co(t.parser.constructs.insideSpan.null,e.slice(r+1,c),t)),d=ei(d,[["exit",n,t],["enter",i,t],["exit",i,t],["exit",a,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,d=ei(d,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,Zs(e,r-1,c-r+3,d),c=r+d.length-u-2;break}c=-1;for(;++c-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 Bo=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Oo(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,so.s)(r)||e}const Lo={}.hasOwnProperty;function Mo(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:T,autolinkEmail:T,atxHeading:s(Q),blockQuote:s(V),characterEscape:T,characterReference:T,codeFenced:s(K),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:s(K,i),codeText:s(Y,i),codeTextData:T,data:T,codeFlowValue:T,definition:s(X),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:s(J),hardBreakEscape:s($),hardBreakTrailing:s($),htmlFlow:s(Z,i),htmlFlowData:T,htmlText:s(Z,i),htmlTextData:T,image:s(ee),label:i,link:s(te),listItem:s(ae),listItemValue:p,listOrdered:s(re,l),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:C,characterReferenceMarkerHexadecimal:H,characterReferenceMarkerNumeric:H,characterReferenceValue:G,characterReference:q,codeFenced:d(h),codeFencedFence:m,codeFencedFenceInfo:f,codeFencedFenceMeta:g,codeFlowValue:C,codeIndented:d(y),codeText:d(k),codeTextData:C,data:C,definition:d(),definitionDestinationString:x,definitionLabelString:b,definitionTitleString:v,emphasis:d(),hardBreakEscape:d(S),hardBreakTrailing:d(S),htmlFlow:d(j),htmlFlowData:C,htmlText:d(_),htmlTextData:C,image:d(F),label:N,labelText:I,lineEnding:w,link:d(P),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:U,resourceDestinationString:B,resourceTitleString:O,resource:L,setextHeading:d(A),setextHeadingLineSequence:D,setextHeadingText:E,strong:d(),thematicBreak:d()}};Ho(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:u,buffer:i,resume:c,data:r},d=[];let l=-1;for(;++l0){const e=s.tokenStack[s.tokenStack.length-1];(e[1]||qo).call(s,void 0,e[0])}for(a.position={start:Uo(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Uo(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},l=-1;++l55295&&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 Vo(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 Ko(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}var Yo=r(1515);function Xo(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 Jo(e){const t=e.spread;return null===t||void 0===t?e.children.length>1:t}function Qo(e){const t=String(e),r=/\r?\n|\r/g;let a=r.exec(t),n=0;const s=[];for(;a;)s.push($o(t.slice(n,a.index),n>0,!0),a[0]),n=a.index+a[0].length,a=r.exec(t);return s.push($o(t.slice(n),n>0,!1)),s.join("")}function $o(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 Zo={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=zo(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 u={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,u),e.applyData(t,u)},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 Xo(e,t);const n={src:zo(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:zo(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 Xo(e,t);const n={href:zo(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:zo(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=Zn(t.children[1]),i=$n(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 dd(e){let t=0,r=e.charCodeAt(t);for(;9===r||32===r;)t++,r=e.charCodeAt(t);return e.slice(t)}function ud(e,t){const r=function(e,t){const r=t||ad,a=new Map,n=new Map,s=new Map,i=(0,Ze.A)((0,Ze.A)({},Zo),r.handlers),o={all:function(e){const t=[];if("children"in e){const r=e.children;let a=-1;for(;++a0&&l.push({type:"text",value:" "});let e="string"===typeof r?r:r(d,c);"string"===typeof e&&(e={type:"text",value:e}),l.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"===typeof a?a:a(d,c),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(...l)}else s.push(...l);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+u},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:(0,Ze.A)((0,Ze.A)({},Vt(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 cd(e,t){return e&&"run"in e?async function(r,a){const n=ud(r,(0,Ze.A)({file:a},t));await e.run(n,a)}:function(r,a){return ud(r,(0,Ze.A)({file:a},e||t))}}function ld(e){if(e)throw e}var pd=r(1761);function fd(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 gd(){const e=[],t={run:function(){for(var t=arguments.length,r=new Array(t),a=0;a1?d-1:0),c=1;cn.length;let u;d&&n.push(s);try{u=e.apply(this,n)}catch(a){if(d&&r)throw a;return s(a)}d||(u&&u.then&&"function"===typeof u.then?u.then(i,s):u instanceof Error?s(u):i(u))}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(hd(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){hd(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 hd(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const yd={cwd:function(){return"/"}};function bd(e){return Boolean(null!==e&&"object"===typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function vd(e){if("string"===typeof e)e=new URL(e);else if(!bd(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];fd(i)&&fd(a)&&(a=pd(!0,i,a)),t[n]=[e,a,...s]}}}}const Sd=(new wd).freeze();function jd(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function _d(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function kd(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 Pd(e){if(!fd(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Fd(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Id(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new Rd(e)}const Nd=[],Bd={allowDangerousHtml:!0},Od=/^(https?|ircs?|mailto|xmpp)$/i,Ld=[{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 Md(e){const t=e.allowedElements,r=e.allowElement,a=e.children||"",n=e.className,s=e.components,i=e.disallowedElements,d=e.rehypePlugins||Nd,u=e.remarkPlugins||Nd,c=e.remarkRehypeOptions?(0,Ze.A)((0,Ze.A)({},e.remarkRehypeOptions),Bd):Bd,l=e.skipHtml,p=e.unwrapDisallowed,f=e.urlTransform||Ud,g=Sd().use(Wo).use(u).use(cd,c).use(d),m=new Rd;"string"===typeof a&&(m.value=a);for(const o of Ld)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 l?n.children.splice(a,1):n.children[a]={type:"text",value:e.value},a;if("element"===e.type){let t;for(t in Ys)if(Object.hasOwn(Ys,t)&&Object.hasOwn(e.properties,t)){const r=e.properties[t],a=Ys[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}})),Os(y,{Fragment:o.Fragment,components:s,ignoreInvalidStyle:!0,jsx:o.jsx,jsxs:o.jsxs,passKeys:!0,passNode:!0})}function Ud(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||Od.test(e.slice(0,t))?e:""}function Hd(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 Gd(e,t,r){const a=P((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&&c.push({type:"text",value:e.value.slice(o,r)}),Array.isArray(s)?c.push(...s):s&&c.push(s),o=r+l[0].length,u=!0),!a.global)break;l=a.exec(e.value)}u?(o\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD803[\uDD8E\uDD8F]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDC00-\uDCEF\uDD00-\uDEB3\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF]))([\+\x2D\.0-9A-Z_a-z]+)@([\x2D0-9A-Z_a-z]+(?:\.[\x2D0-9A-Z_a-z]+)+)/g,tu]],{ignore:["link","linkReference"]})}function eu(e,t,r,a,n){let s="";if(!ru(n))return!1;if(/^w/i.test(t)&&(r=t+r,t="",s="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(r))return!1;const i=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],a=r.indexOf(")");const n=Hd(e,"(");let s=Hd(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 tu(e,t,r,a){return!(!ru(a,!0)||/[-\d_]$/.test(r))&&{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function ru(e,t){const r=e.input.charCodeAt(e.index-1);return(0===e.index||xi(r)||vi(r))&&(!t||47!==r)}function au(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function nu(){this.buffer()}function su(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=zi(this.sliceSerialize(e)).toLowerCase()}function iu(e){this.exit(e)}function ou(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function du(){this.buffer()}function uu(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=zi(this.sliceSerialize(e)).toLowerCase()}function cu(e){this.exit(e)}function lu(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),(0,Ze.A)((0,Ze.A)({},n.current()),{},{before:s,after:"]"}))),o(),i(),s+=n.move("]"),s}function pu(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),(0,Ze.A)((0,Ze.A)({},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()),fu)),i(),s}function fu(e,t,r){return 0===t?e:(r?"":" ")+e}lu.peek=function(){return"["};const gu=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function mu(e){this.enter({type:"delete",children:[]},e)}function hu(e){this.exit(e)}function yu(e,t,r,a){const n=r.createTracker(a),s=r.enter("strikethrough");let i=n.move("~~");return i+=r.containerPhrasing(e,(0,Ze.A)((0,Ze.A)({},n.current()),{},{before:i,after:"~"})),i+=n.move("~~"),s(),i}function bu(e){return e.length}function vu(e){return null===e||void 0===e?"":String(e)}function xu(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 Ru(e,t,r){return">"+(r?"":" ")+e}function Eu(e,t,r){if("string"===typeof t&&(t=[t]),!t||0===t.length)return r;let a=-1;for(;++a"},d.current()))),u+=d.move(">")):(o=r.enter("destinationRaw"),u+=d.move(r.safe(e.url,(0,Ze.A)({before:u,after:e.title?" ":")"},d.current())))),o(),e.title&&(o=r.enter("title".concat(s)),u+=d.move(" "+n),u+=d.move(r.safe(e.title,(0,Ze.A)({before:u,after:n},d.current()))),u+=d.move(n),o()),u+=d.move(")"),i(),u}function ku(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 u=r.safe(e.alt,(0,Ze.A)({before:d,after:"]"},o.current()));d+=o.move(u+"]["),i();const c=r.stack;r.stack=[],i=r.enter("reference");const l=r.safe(r.associationId(e),(0,Ze.A)({before:d,after:"]"},o.current()));return i(),r.stack=c,s(),"full"!==n&&u&&u===l?"shortcut"===n?d=d.slice(0,-1):d+=o.move("]"):d+=o.move(l+"]"),d}function Pu(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 Iu(e,t,r,a){const n=Tu(r),s='"'===n?"Quote":"Apostrophe",i=r.createTracker(a);let o,d;if(Fu(e,r)){const t=r.stack;r.stack=[],o=r.enter("autolink");let a=i.move("<");return a+=i.move(r.containerPhrasing(e,(0,Ze.A)({before:a,after:">"},i.current()))),a+=i.move(">"),o(),r.stack=t,a}o=r.enter("link"),d=r.enter("label");let u=i.move("[");return u+=i.move(r.containerPhrasing(e,(0,Ze.A)({before:u,after:"]("},i.current()))),u+=i.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),u+=i.move("<"),u+=i.move(r.safe(e.url,(0,Ze.A)({before:u,after:">"},i.current()))),u+=i.move(">")):(d=r.enter("destinationRaw"),u+=i.move(r.safe(e.url,(0,Ze.A)({before:u,after:e.title?" ":")"},i.current())))),d(),e.title&&(d=r.enter("title".concat(s)),u+=i.move(" "+n),u+=i.move(r.safe(e.title,(0,Ze.A)({before:u,after:n},i.current()))),u+=i.move(n),d()),u+=i.move(")"),o(),u}function Nu(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 u=r.containerPhrasing(e,(0,Ze.A)({before:d,after:"]"},o.current()));d+=o.move(u+"]["),i();const c=r.stack;r.stack=[],i=r.enter("reference");const l=r.safe(r.associationId(e),(0,Ze.A)({before:d,after:"]"},o.current()));return i(),r.stack=c,s(),"full"!==n&&u&&u===l?"shortcut"===n?d=d.slice(0,-1):d+=o.move("]"):d+=o.move(l+"]"),d}function Bu(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 Ou(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}yu.peek=function(){return"~"},Su.peek=function(e,t,r){return r.options.emphasis||"*"},ju.peek=function(){return"<"},_u.peek=function(){return"!"},ku.peek=function(){return"!"},Pu.peek=function(){return"`"},Iu.peek=function(e,t,r){return Fu(e,r)?"<":"["},Nu.peek=function(){return"["};const Lu=P(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Mu(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,(0,Ze.A)({after:n,before:o},i.current())));const u=d.charCodeAt(0),c=wu(a.before.charCodeAt(a.before.length-1),u,n);c.inside&&(d=Cu(u)+d.slice(1));const l=d.charCodeAt(d.length-1),p=wu(a.after.charCodeAt(0),l,n);p.inside&&(d=d.slice(0,-1)+Cu(l));const f=i.move(n+n);return s(),r.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},o+d+f}Mu.peek=function(e,t,r){return r.options.strong||"*"};const Uu={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()),Ru);return n(),i},break:Du,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,Au);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)),u=r.enter("codeFenced");let c=o.move(d);if(e.lang){const t=r.enter("codeFencedLang".concat(i));c+=o.move(r.safe(e.lang,(0,Ze.A)({before:c,after:" ",encode:["`"]},o.current()))),t()}if(e.lang&&e.meta){const t=r.enter("codeFencedMeta".concat(i));c+=o.move(" "),c+=o.move(r.safe(e.meta,(0,Ze.A)({before:c,after:"\n",encode:["`"]},o.current()))),t()}return c+=o.move("\n"),s&&(c+=o.move(s+"\n")),c+=o.move(d),u(),c},definition:function(e,t,r,a){const n=Tu(r),s='"'===n?"Quote":"Apostrophe",i=r.enter("definition");let o=r.enter("label");const d=r.createTracker(a);let u=d.move("[");return u+=d.move(r.safe(r.associationId(e),(0,Ze.A)({before:u,after:"]"},d.current()))),u+=d.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),u+=d.move("<"),u+=d.move(r.safe(e.url,(0,Ze.A)({before:u,after:">"},d.current()))),u+=d.move(">")):(o=r.enter("destinationRaw"),u+=d.move(r.safe(e.url,(0,Ze.A)({before:u,after:e.title?" ":"\n"},d.current())))),o(),e.title&&(o=r.enter("title".concat(s)),u+=d.move(" "+n),u+=d.move(r.safe(e.title,(0,Ze.A)({before:u,after:n},d.current()))),u+=d.move(n),o()),i(),u},emphasis:Su,hardBreak:Du,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)&&Js(e)&&(t.options.setext||r))}(e,r)){const t=r.enter("headingSetext"),a=r.enter("phrasing"),i=r.containerPhrasing(e,(0,Ze.A)((0,Ze.A)({},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 u=r.containerPhrasing(e,(0,Ze.A)({before:"# ",after:"\n"},s.current()));return/^[\t ]/.test(u)&&(u=Cu(u.charCodeAt(0))+u.slice(1)),u=u?i+" "+u:i,r.options.closeAtx&&(u+=" "+i),d(),o(),u},html:ju,image:_u,imageReference:ku,inlineCode:Pu,link:Iu,linkReference:Nu,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):Bu(r);const o=e.ordered?"."===i?")":".":function(e){const t=Bu(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),Ou(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"),u=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(),u},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 Lu(e)}))?r.containerPhrasing:r.containerFlow).call(r,e,a)},strong:Mu,text:function(e,t,r,a){return r.safe(e.value,a)},thematicBreak:function(e,t,r){const a=(Ou(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 Hu(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 Gu(e){this.exit(e),this.data.inTable=void 0}function qu(e){this.enter({type:"tableRow",children:[]},e)}function Wu(e){this.exit(e)}function zu(e){this.enter({type:"tableCell",children:[]},e)}function Vu(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Ku));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function Ku(e,t){return"|"===t?t:e}function Yu(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=Uu.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(;++nu&&(u=e[c].length);++sd[s])&&(d[s]=e)}t.push(i)}i[c]=t,o[c]=a}let l=-1;if("object"===typeof a&&"length"in a)for(;++ld[l]&&(d[l]=n),f[l]=n),p[l]=i}i.splice(1,0,p),o.splice(1,0,f),c=-1;const g=[];for(;++c0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}ic[43]=sc,ic[45]=sc,ic[46]=sc,ic[95]=sc,ic[72]=[sc,nc],ic[104]=[sc,nc],ic[87]=[sc,ac],ic[119]=[sc,ac];const fc={tokenize:function(e,t,r){const a=this;return Ei(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 gc(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=zi(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 mc(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 hc(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||yi(o))return r(o);if(93===o){e.exit("chunkString");const s=e.exit("gfmFootnoteCallString");return n.includes(zi(a.sliceSerialize(s)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(o)}return yi(o)||(s=!0),i++,e.consume(o),92===o?u:d}function u(t){return 91===t||92===t||93===t?(e.consume(t),i++,d):d(t)}}function yc(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",u):r(t)}function u(t){if(o>999||93===t&&!i||null===t||91===t||yi(t))return r(t);if(93===t){e.exit("chunkString");const r=e.exit("gfmFootnoteDefinitionLabelString");return s=zi(a.sliceSerialize(r)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),l}return yi(t)||(i=!0),o++,e.consume(t),92===t?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),o++,u):u(t)}function l(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),n.includes(s)||n.push(s),Ei(e,p,"gfmFootnoteDefinitionWhitespace")):r(t)}function p(e){return t(e)}}function bc(e,t,r){return e.check(Ci,t,e.attempt(fc,t,r))}function vc(e){e.exit("gfmFootnoteDefinition")}function xc(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=ho(n);if(126===s)return i>1?a(s):(e.consume(s),i++,o);if(i<2&&!t)return a(s);const u=e.exit("strikethroughSequenceTemporary"),c=ho(s);return u._open=!c||2===c&&Boolean(d),u._close=!d||2===d&&Boolean(c),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 Ec(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):hi(t)?i>1?(i=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):r(t):bi(t)?Ei(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"),u(t)))}function u(t){return null===t||124===t||yi(t)?(e.exit("data"),d(t)):(e.consume(t),92===t?c:u)}function c(t){return 92===t||124===t?(e.consume(t),u):u(t)}function l(t){return a.interrupt=!1,a.parser.lazy[a.now().line]?r(t):(e.enter("tableDelimiterRow"),n=!1,bi(t)?Ei(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 bi(t)?Ei(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||hi(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 bi(t)?Ei(e,b,"whitespace")(t):b(t)}function b(r){return 124===r?p(r):(null===r||hi(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||hi(r)?(e.exit("tableRow"),t(r)):bi(r)?Ei(e,R,"whitespace")(r):(e.enter("data"),E(r))}function E(t){return null===t||124===t||yi(t)?(e.exit("data"),R(t)):(e.consume(t),92===t?D:E)}function D(t){return 92===t||124===t?(e.consume(t),E):E(t)}}function Ac(e,t){let r,a,n,s=-1,i=!0,o=0,d=[0,0,0,0],u=[0,0,0,0],c=!1,l=0;const p=new Rc;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({},wc(t.events,n)),e.add(n,0,[["exit",s,t]]),s=void 0),s}function Cc(e,t,r,a,n){const s=[],i=wc(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 wc(e,t){const r=e[t],a="enter"===r[0]?"start":"end";return r[1][a]}const Sc={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 yi(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 hi(a)?t(a):bi(a)?e.check({tokenize:jc},t,r)(a):r(a)}}};function jc(e,t,r){return Ei(e,(function(e){return null===e?r(e):t(e)}),"whitespace")}const _c={};function kc(e){const t=e||_c,r=this.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),n=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(function(e){return ii([{text:ic},{document:{91:{name:"gfmFootnoteDefinition",tokenize:yc,continuation:{tokenize:bc},exit:vc}},text:{91:{name:"gfmFootnoteCall",tokenize:hc},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:gc,resolveTo:mc}}},xc(e),{flow:{null:{name:"table",tokenize:Dc,resolveAll:Ac}}},{text:{91:Sc}}])}(t)),n.push([{transforms:[Zd],enter:{literalAutolink:Kd,literalAutolinkEmail:Yd,literalAutolinkHttp:Yd,literalAutolinkWww:Yd},exit:{literalAutolink:$d,literalAutolinkEmail:Qd,literalAutolinkHttp:Xd,literalAutolinkWww:Jd}},{enter:{gfmFootnoteDefinition:au,gfmFootnoteDefinitionLabelString:nu,gfmFootnoteCall:ou,gfmFootnoteCallString:du},exit:{gfmFootnoteDefinition:iu,gfmFootnoteDefinitionLabelString:su,gfmFootnoteCall:cu,gfmFootnoteCallString:uu}},{canContainEols:["delete"],enter:{strikethrough:mu},exit:{strikethrough:hu}},{enter:{table:Hu,tableData:zu,tableHeader:zu,tableRow:qu},exit:{codeText:Vu,table:Gu,tableData:Wu,tableHeader:Wu,tableRow:Wu}},{exit:{taskListCheckValueChecked:Xu,taskListCheckValueUnchecked:Xu,paragraph:Ju}}]),s.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:zd,notInConstruct:Vd},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:zd,notInConstruct:Vd},{character:":",before:"[ps]",after:"\\/",inConstruct:zd,notInConstruct:Vd}]},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:pu,footnoteReference:lu}},{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:gu}],handlers:{delete:yu}},Yu(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Qu}}]}}(t))}const Pc=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,Fc=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,Ic=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?Fc:Pc,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-".concat(s),dir:"auto"}},d.unshift({type:"paragraph",children:[Nc(s),{type:"text",value:i.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),r.children=[...d]}))}};function Nc(e){var t;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:null!==(t=Bc[e])&&void 0!==t?t:""}},children:[]}]}}const Bc={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 Oc(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?Oc(t.parentElement):null}function Lc(e){var t=e=>{var t=Oc(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 Mc=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],Uc=e=>e;const Hc=i.forwardRef(((e,t)=>{var{prefixCls:r="wmde-markdown wmde-markdown-color",className:a,source:d,style:u,disableCopy:c=!1,skipHtml:l=!0,onScroll:p,onMouseOver:f,pluginsFilter:g,wrapperElement:m={},warpperElement:h={},urlTransform:y}=e,b=(0,s.A)(e,Mc),v=i.useRef(null);(0,i.useImperativeHandle)(t,(()=>(0,n.A)({},e,{mdp:v})),[v,e]);var x=(r||"")+" "+(a||"");Lc(v);var R=[...b.rehypePlugins||[]],E={allowElement:(e,t,r)=>b.allowElement?b.allowElement(e,t,r):/^[A-Za-z0-9]+$/.test(e.tagName)};l&&R.push(ys);var D=[Ic,...b.remarkPlugins||[],kc],A=(0,n.A)({},h,m);return(0,o.jsx)("div",(0,n.A)({ref:v,onScroll:p,onMouseOver:f},A,{className:x,style:u,children:(0,o.jsx)(Md,(0,n.A)({},E,b,{skipHtml:l,urlTransform:y||Uc,rehypePlugins:g?g("rehype",R):R,remarkPlugins:g?g("remark",D):D,children:d||""}))}))}));var Gc=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)}))}))}},qc=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 Wc=/[\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\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\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\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DEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,zc=Object.hasOwnProperty;function Vc(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 Kc={},Yc=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(Wc,"").replace(/ /g,"-")}(e,!0===t);const n=a;for(;zc.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 Xc=function(e){if(null===e||void 0===e)return Qc;if("string"===typeof e)return function(e){return Jc(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 ol={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 dl=[function(e){const t=(e||Kc).prefix||"";return function(e){Yc.reset(),H(e,"element",(function(e){Vc(e)&&!e.properties.id&&(e.properties.id=t+Yc.slug(G(e)))}))}},function(e){const t=e||el;let r=t.properties;const a=t.headingProperties,n=t.behavior||"prepend",s=t.content,i=t.group,o=Xc(t.test);let d;return"after"===n||"before"===n?d=function(e,t,a){if("number"!==typeof t||!a)return;const o=al(s||Zc,e),d=rl(e,sl(r,e),o);let u="before"===n?[d,e]:[e,d];if(i){const t=nl(i,e);t&&!Array.isArray(t)&&"element"===t.type&&(t.children=u,u=[t])}return a.children.splice(t,1,...u),[M,t+u.length]}:"wrap"===n?d=function(e){let t=e.children,a=[];"function"===typeof s?(t=[],a=s(e)):s&&(a=tl(s));return e.children=[rl(e,sl(r,e),Array.isArray(a)?[...t,...a]:[...t,a])],[M]}:(d=function(e){const t=al(s||Zc,e);return e.children["prepend"===n?"unshift":"push"](rl(e,sl(r,e),t)),[M]},r||(r={ariaHidden:"true",tabIndex:-1})),function(e){H(e,"element",(function(e,t,r){if(Vc(e)&&e.properties.id&&o(e,t,r))return Object.assign(e.properties,sl(a,e)),d(e,t,r)}))}},il];const ul=i.forwardRef(((e,t)=>{var r,a,s,i=[Gc,ys,qc,...dl,[Ft,{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=[ol])}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)})}],[Ot,{properties:"attr"}],...e.rehypePlugins||[],[te,{ignoreMissing:!0}]];return(0,o.jsx)(Hc,(0,n.A)({},e,{rehypePlugins:i,ref:t}))}));var cl,ll,pl,fl=r(3235),gl=["components","data","node"],ml=["source","components","data","rehypeRewrite"],hl=S.Preview,yl=S.Code,bl=S.Toolbar,vl=(0,fl.Ay)(ul)(cl||(ll=["\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"],pl||(pl=ll.slice(0)),ll.raw=pl,cl=ll)),xl=e=>{var{components:t,data:r,node:a}=e,i=(0,s.A)(e,gl);if(a&&"element"===a.type&&"pre"===a.tagName){var d,u,c,l=a.children[0];if(!l)return(0,o.jsx)("pre",(0,n.A)({},i));var p=(null==(d=l.data)?void 0:d.meta)||(null==(u=l.properties)?void 0:u.dataMeta);if(!k(p))return(0,o.jsx)("pre",(0,n.A)({},i));var f=null==a||null==(c=a.position)?void 0:c.start.line,g=_(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}=j(p||"");return(0,o.jsxs)(S,{bordered:!!Number(b),disableCheckered:!Number(v),style:{marginBottom:16},children:[(0,o.jsx)(hl,{children:(0,o.jsx)(m,{})}),!!Number(R)&&(0,o.jsx)(bl,{text:h,visibleButton:!!Number(x),children:y||"Code Example"}),!!Number(x)&&(0,o.jsx)(yl,{tagName:"pre",style:{marginBottom:0},className:i.className,children:i.children})]})}}return(0,o.jsx)("code",(0,n.A)({},i))};function Rl(e){var{components:t,data:r}=e,a=(0,s.A)(e,ml);return(0,o.jsx)(vl,(0,n.A)({disableCopy:!0,rehypePlugins:[il,...a.rehypePlugins||[]]},a,{source:r.source,components:(0,n.A)({},t,{pre:e=>(0,o.jsx)(xl,(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,u,c,l=arguments[0],p=1,f=arguments.length,g=!1;for("boolean"===typeof l&&(g=l,l=arguments[1]||{},p=2),(null==l||"object"!==typeof l&&"function"!==typeof l)&&(l={});p{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,a=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,d=/^\s+|\s+$/g,u="";function c(e){return e?e.replace(d,u):u}e.exports=function(e,d){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(!e)return[];d=d||{};var l=1,p=1;function f(e){var t=e.match(r);t&&(l+=t.length);var a=e.lastIndexOf("\n");p=~a?e.length-a:p+e.length}function g(){var e={line:l,column:p};return function(t){return t.position=new m(e),v(),t}}function m(e){this.start=e,this.end={line:l,column:p},this.source=d.source}m.prototype.content=e;var h=[];function y(t){var r=new Error(d.source+":"+l+":"+p+": "+t);if(r.reason=t,r.filename=d.source,r.line=l,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;u!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,u===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:c(r[0].replace(t,u)),value:a?c(a[0].replace(t,u)):u});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 c,l,p,f,g=i(r),m=e.value||"",h="`"===g?"GraveAccent":"Tilde";s(e,r)?(p=r.enter("codeIndented"),c=o(m,u)):(l=a(g,Math.max(n(m,g)+1,3)),p=r.enter("codeFenced"),c=l,e.lang&&(f=r.enter("codeFencedLang"+h),c+=d(r,e.lang,{before:"`",after:" ",encode:["`"]}),f()),e.lang&&e.meta&&(f=r.enter("codeFencedMeta"+h),c+=" "+d(r,e.meta,{before:" ",after:"\n",encode:["`"]}),f()),c+="\n",m&&(c+=m+"\n"),c+=l);return p(),c};var a=r(6040),n=r(4014),s=r(3342),i=r(7156),o=r(6242),d=r(8671);function u(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"),u=r.enter("label"),c="["+s(r,a(e),{before:"[",after:"]"})+"]: ";u(),!e.url||/[ \t\r\n]/.test(e.url)?(u=r.enter("destinationLiteral"),c+="<"+s(r,e.url,{before:"<",after:">"})+">"):(u=r.enter("destinationRaw"),c+=s(r,e.url,{before:" ",after:" "}));u(),e.title&&(u=r.enter("title"+o),c+=" "+i+s(r,e.title,{before:i,after:i})+i,u());return d(),c};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,u,c=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===c?"=":"-",d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf("\n"))+1));u=a("#",c),i=r.enter("headingAtx"),o=r.enter("phrasing"),d=(d=s(e,r,{before:"# ",after:"\n"}))?u+" "+d:u,r.options.closeAtx&&(d+=" "+u);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"),u=r.enter("label"),c=n(r,e.alt,{before:"[",after:"]"}),l="!["+c+"]";return u(),i=r.stack,r.stack=[],u=r.enter("reference"),s=n(r,a(e),{before:"[",after:"]"}),u(),r.stack=i,d(),"full"!==o&&c&&c===s?"shortcut"!==o&&(l+="[]"):l+="["+s+"]",l}},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"),u="!["+n(r,e.alt,{before:"[",after:"]"})+"](";return d(),!e.url&&e.title||/[ \t\r\n]/.test(e.url)?(d=r.enter("destinationLiteral"),u+="<"+n(r,e.url,{before:"<",after:">"})+">"):(d=r.enter("destinationRaw"),u+=n(r,e.url,{before:"(",after:e.title?" ":")"})),d(),e.title&&(d=r.enter("title"+i),u+=" "+s+n(r,e.title,{before:s,after:s})+s,d()),u+=")",o(),u}},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||"",u="`",c=-1;new RegExp("(^|[^`])"+u+"([^`]|$)").test(d);)u+="`";for(/[^ \r\n]/.test(d)&&(/[ \r\n`]/.test(d.charAt(0))||/[ \r\n`]/.test(d.charAt(d.length-1)))&&(d=" "+d+" ");++c{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,u=r.enter("linkReference"),c=r.enter("label"),l=n(e,r,{before:"[",after:"]"}),p="["+l+"]";return c(),o=r.stack,r.stack=[],c=r.enter("reference"),i=s(r,a(e),{before:"[",after:"]"}),c(),r.stack=o,u(),"full"!==d&&l&&l===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,u,c,l=a(r),p='"'===l?"Quote":"Apostrophe";return n(e,r)?(c=r.stack,r.stack=[],o=r.enter("autolink"),u="<"+s(e,r,{before:"<",after:">"})+">",o(),r.stack=c,u):(o=r.enter("link"),d=r.enter("label"),u="["+s(e,r,{before:"[",after:"]"})+"](",d(),!e.url&&e.title||/[ \t\r\n]/.test(e.url)?(d=r.enter("destinationLiteral"),u+="<"+i(r,e.url,{before:"<",after:">"})+">"):(d=r.enter("destinationRaw"),u+=i(r,e.url,{before:"(",after:e.title?" ":")"})),d(),e.title&&(d=r.enter("title"+p),u+=" "+l+i(r,e.title,{before:l,after:l})+l,d()),u+=")",o(),u)}},4246:(e,t,r)=>{e.exports=function(e,t,r){var d,u,c,l=n(r),p=s(r);t&&t.ordered&&(l=(t.start>-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+".");d=l.length+1,("tab"===p||"mixed"===p&&(t&&t.spread||e.spread))&&(d=4*Math.ceil(d/4));return c=r.enter("listItem"),u=o(i(e,r),(function(e,t,r){if(t)return(r?"":a(" ",d))+e;return(r?l:l+a(" ",d-l.length))+e})),c(),u};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,l=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,l),p.options.tightDefinitions&&(p.join=[c].concat(p.join));p.handle=a("type",{invalid:d,unknown:u,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 u(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function c(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,u=r.before;for(;++d0&&("\r"===u||"\n"===u)&&"html"===s.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),u=" "),o.push(t.handle(s,e,t,{before:u,after:a})),u=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,u,c,l,p,f,g,m=(r.before||"")+(t||"")+(r.after||""),h=[],y=[],b={},v=-1;for(;++v=g||u+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&&(O.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=l(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 ue(){return{type:"break"}}function ce(){return{type:"html",value:""}}function le(){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)(c(d(r).document().write(u()(e,t,!0))))};var a=r(439),n=r(3175),s=r(4915),i=r(8419),o=r(7012),d=r(1140),u=r(2961),c=r(1188),l=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),u=r(1446),c=r(2770),l=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),D=r(1492),A={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},T={91:p},C={"-2":c,"-1":c,32:c},w={35:g,42:D,45:[E,D],60:m,61:E,95:D,96:u,126:u},S={38:d,92:o},j={"-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:l},_={null:[n,a.resolver]};t.contentInitial=T,t.disable={null:[]},t.document=A,t.flow=w,t.flowInitial=C,t.insideSpan=_,t.string=S,t.text=j},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,u=[],c=0,l={tokenize:function(e,a){var n=0;return t={},c;function c(a){return nt;)i.containerState=u[s][1],u[s][0].exit.call(i,e);u.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:u()};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),u=r(1306),c=r(6853);e.exports=function(e){var t={defined:[],constructs:o([c].concat(u((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,u,c,l,p,f=[];s=n+s.toString(i),c=0,n="",r&&(65279===s.charCodeAt(0)&&c++,r=void 0);for(;c{"use strict";var a=r(9977),n=r(8857),s=r(6454),i=r(8196),o=r(2870),d=r(9380),u={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,u,c;return i===r?(e.consume(i),n):(o=e.exit("attentionSequence"),u=!(d=s(i))||2===d&&a,c=!a||2===a&&d,o._open=42===r?u:u&&(a||!c),o._close=42===r?c:c&&(d||!u),t(i))}},resolveAll:function(e,t){var r,s,u,c,l,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)},l={type:p>1?"strongSequence":"emphasisSequence",start:d(e[m][1].start),end:i(d(e[m][1].start),p)},u={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(c.start),end:d(l.end)},e[r][1].end=d(c.start),e[m][1].start=d(l.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",c,t],["exit",c,t],["enter",u,t]]),f=a(f,o(t.parser.constructs.insideSpan.null,e.slice(r+1,m),t)),f=a(f,[["exit",u,t],["enter",l,t],["exit",l,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),u):s(t)?p(t):r(t)}function u(e){return 43===e||45===e||46===e||n(e)?c(e):p(e)}function c(t){return 58===t?(e.consume(t),l):(43===t||45===t||46===t||n(t))&&o++<32?(e.consume(t),c):p(t)}function l(t){return 62===t?(e.exit("autolinkProtocol"),h(t)):32===t||60===t||i(t)?r(t):(e.consume(t),l)}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),u={name:"characterReference",tokenize:function(e,t,r){var a,o,u=this,c=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(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&&c?(i=e.exit("characterReferenceValue"),o!==n||d.default(u.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(s)):o(s)&&c++{"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,u={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,c(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"),u(t))}function u(t){return null===t||32===t||96===t||a(t)?(e.exit("codeTextData"),d(t)):(e.consume(t),u)}function c(r){return 96===r?(e.consume(r),n++,c):n===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(r)):(s.type="codeTextData",u(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),u=r(6185),c=r(4668),l={name:"definition",tokenize:function(e,t,r){var n,c=this;return function(t){return e.enter("definition"),o.call(c,e,l,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function l(t){return n=s(c.sliceSerialize(c.events[c.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),u(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"),c.parser.defined.indexOf(n)<0&&c.parser.defined.push(n),t(s)):r(s)}}},p={tokenize:function(e,t,r){return function(t){return n(t)?u(e,s)(t):r(t)};function s(t){return 34===t||39===t||40===t?c(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=l},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,u,c,l){var p=l||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(u),e.enter(c),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(c),e.enter("chunkString",{contentType:"string"}),m(r))}function m(t){return 62===t?(e.exit("chunkString"),e.exit(c),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(c),e.exit(u),e.exit(i),t(s)):null===s||n(s)?f?r(s):(e.exit("chunkString"),e.exit(c),e.exit(u),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,u=this,c=0;return function(t){return e.enter(s),e.enter(i),e.consume(t),e.exit(i),e.enter(o),l};function l(n){return null===n||91===n||93===n&&!d||94===n&&!c&&"_hiddenFootnoteSupport"in u.parser.constructs||c>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"),l):(e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return null===t||91===t||93===t||a(t)||c++>999?(e.exit("chunkString"),l(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),c++,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,u};function u(r){return r===d?(e.enter(i),e.consume(r),e.exit(i),e.exit(s),t):(e.enter(o),c(r))}function c(t){return t===d?(e.exit(o),u(d)):null===t?r(t):a(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),n(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),l(t))}function l(t){return t===d||null===t||a(t)?(e.exit("chunkString"),c(t)):(e.consume(t),92===t?p:l)}function p(t){return t===d||92===t?(e.consume(t),l):l(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"),u(t)};function u(a){return 35===a&&d++<6?(e.consume(a),u):null===a||n(a)?(e.exit("atxHeadingSequence"),i.interrupt?t(a):c(a)):r(a)}function c(r){return 35===r?(e.enter("atxHeadingSequence"),l(r)):null===r||a(r)?(e.exit("atxHeading"),t(r)):s(r)?o(e,c,"whitespace")(r):(e.enter("atxHeadingText"),p(r))}function l(t){return 35===t?(e.consume(t),l):(e.exit("atxHeadingSequence"),c(t))}function p(t){return null===t||35===t||n(t)?(e.exit("atxHeadingText"),c(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),u=r(4546),c=r(9569),l=r(1666),p={name:"htmlFlow",tokenize:function(e,t,r){var l,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),l=3,y.interrupt?t:G):a(n)?(e.consume(n),g=d(n),p=!0,D):r(n)}function v(n){return 45===n?(e.consume(n),l=2,x):91===n?(e.consume(n),l=5,g="CDATA[",m=0,R):a(n)?(e.consume(n),l=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:N:R):r(a)}function E(t){return a(t)?(e.consume(t),g=d(t),D):r(t)}function D(a){return null===a||47===a||62===a||i(a)?47!==a&&p&&c.indexOf(g.toLowerCase())>-1?(l=1,y.interrupt?t(a):N(a)):u.indexOf(g.toLowerCase())>-1?(l=6,47===a?(e.consume(a),A):y.interrupt?t(a):N(a)):(l=7,y.interrupt?r(a):p?C(a):T(a)):45===a||n(a)?(e.consume(a),g+=d(a),D):r(a)}function A(a){return 62===a?(e.consume(a),y.interrupt?t:N):r(a)}function T(t){return o(t)?(e.consume(t),T):F(t)}function C(t){return 47===t?(e.consume(t),F):58===t||95===t||a(t)?(e.consume(t),w):o(t)?(e.consume(t),C):F(t)}function w(t){return 45===t||46===t||58===t||95===t||n(t)?(e.consume(t),w):S(t)}function S(t){return 61===t?(e.consume(t),j):o(t)?(e.consume(t),S):C(t)}function j(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),h=t,_):o(t)?(e.consume(t),j):(h=void 0,k(t))}function _(t){return t===h?(e.consume(t),P):null===t||s(t)?r(t):(e.consume(t),_)}function k(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||i(t)?S(t):(e.consume(t),k)}function P(e){return 47===e||62===e||o(e)?C(e):r(e)}function F(t){return 62===t?(e.consume(t),I):r(t)}function I(t){return o(t)?(e.consume(t),I):null===t||s(t)?N(t):r(t)}function N(t){return 45===t&&2===l?(e.consume(t),L):60===t&&1===l?(e.consume(t),M):62===t&&4===l?(e.consume(t),q):63===t&&3===l?(e.consume(t),G):93===t&&5===l?(e.consume(t),H):!s(t)||6!==l&&7!==l?null===t||s(t)?B(t):(e.consume(t),N):e.check(f,q,B)(t)}function B(t){return e.exit("htmlFlowData"),O(t)}function O(t){return null===t?W(t):s(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O):(e.enter("htmlFlowData"),N(t))}function L(t){return 45===t?(e.consume(t),G):N(t)}function M(t){return 47===t?(e.consume(t),g="",U):N(t)}function U(t){return 62===t&&c.indexOf(g.toLowerCase())>-1?(e.consume(t),q):a(t)&&g.length<8?(e.consume(t),g+=d(t),U):N(t)}function H(t){return 93===t?(e.consume(t),G):N(t)}function G(t){return 62===t?(e.consume(t),q):N(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(l,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),u={name:"htmlText",tokenize:function(e,t,r){var u,c,l,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),S):63===t?(e.consume(t),C):a(t)?(e.consume(t),k):r(t)}function m(t){return 45===t?(e.consume(t),h):91===t?(e.consume(t),c="CDATA[",l=0,R):a(t)?(e.consume(t),T):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===c.charCodeAt(l++)?(e.consume(t),l===c.length?E:R):r(t)}function E(t){return null===t?r(t):93===t?(e.consume(t),D):s(t)?(p=E,M(t)):(e.consume(t),E)}function D(t){return 93===t?(e.consume(t),A):E(t)}function A(t){return 62===t?H(t):93===t?(e.consume(t),A):E(t)}function T(t){return null===t||62===t?H(t):s(t)?(p=T,M(t)):(e.consume(t),T)}function C(t){return null===t?r(t):63===t?(e.consume(t),w):s(t)?(p=C,M(t)):(e.consume(t),C)}function w(e){return 62===e?H(e):C(e)}function S(t){return a(t)?(e.consume(t),j):r(t)}function j(t){return 45===t||n(t)?(e.consume(t),j):_(t)}function _(t){return s(t)?(p=_,M(t)):o(t)?(e.consume(t),_):H(t)}function k(t){return 45===t||n(t)?(e.consume(t),k):47===t||62===t||i(t)?P(t):r(t)}function P(t){return 47===t?(e.consume(t),H):58===t||95===t||a(t)?(e.consume(t),F):s(t)?(p=P,M(t)):o(t)?(e.consume(t),P):H(t)}function F(t){return 45===t||46===t||58===t||95===t||n(t)?(e.consume(t),F):I(t)}function I(t){return 61===t?(e.consume(t),N):s(t)?(p=I,M(t)):o(t)?(e.consume(t),I):P(t)}function N(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),u=t,B):s(t)?(p=N,M(t)):o(t)?(e.consume(t),N):(e.consume(t),u=void 0,L)}function B(t){return t===u?(e.consume(t),O):null===t?r(t):s(t)?(p=B,M(t)):(e.consume(t),B)}function O(e){return 62===e||47===e||i(e)?P(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)?P(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=u},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),u=r(4006),c=r(8340),l=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?u(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:u)(r):91===r?e.attempt(m,t,n?e.attempt(h,t,u):u)(r):n?t(r):u(r)}function u(e){return a._balanced=!0,r(e)}},resolveTo:function(e,t){var r,a,i,u,c,l,p,f=e.length,g=0;for(;f--;)if(u=e[f][1],c){if("link"===u.type||"labelLink"===u.type&&u._inactive)break;"enter"===e[f][0]&&"labelLink"===u.type&&(u._inactive=!0)}else if(l){if("enter"===e[f][0]&&("labelImage"===u.type||"labelLink"===u.type)&&!u._balanced&&(c=f,"labelLink"!==u.type)){g=2;break}}else"labelEnd"===u.type&&(l=f);return r={type:"labelLink"===e[c][1].type?"link":"image",start:d(e[c][1].start),end:d(e[e.length-1][1].end)},a={type:"label",start:d(e[c][1].start),end:d(e[l][1].end)},i={type:"labelText",start:d(e[c+g+2][1].end),end:d(e[l-2][1].start)},p=n(p=[["enter",r,t],["enter",a,t]],e.slice(c+1,c+g+3)),p=n(p,[["enter",i,t]]),p=n(p,o(t.parser.constructs.insideSpan.null,e.slice(c+g+4,l-3),t)),p=n(p,[["exit",i,t],e[l-2],e[l-1],["exit",a,t]]),p=n(p,e.slice(l+1)),p=n(p,[["exit",r,t]]),s(e,c,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),u=r(1492),c={name:"list",tokenize:function(e,t,r){var o=this,c=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(u,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(l,y,h))}function m(e){return o.containerState.initialBlankLine=!0,c++,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=c+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(c,t,r),"linePrefix",a.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)(n)}}},exit:function(e){e.exit(this.containerState.type)}},l={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=c},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,u(t);return r(t)};function u(t){return t===n?(e.consume(t),u):(e.exit("setextHeadingLineSequence"),s(e,c,"lineSuffix")(t))}function c(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(c){return c===i?(e.enter("thematicBreakSequence"),u(c)):n(c)?s(e,d,"whitespace")(c):o<3||null!==c&&!a(c)?r(c):(e.exit("thematicBreak"),t(c))}function u(t){return t===i?(e.consume(t),o++,u):(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),u=r(2773),c=r(9380),l=r(8645);e.exports=function(e,t,r){var p=r?c(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,w()):-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:T((function(e,t){C(e,t.from)})),check:T(A),interrupt:T(A,{interrupt:!0}),lazy:T(A,{lazy:!0})},b={previous:null,events:[],parser:e,sliceStream:x,sliceSerialize:function(e){return u(x(e))},now:R,defineSkip:function(e){f[e.line]=e.column,w()},write:function(e){if(m=s(m,e),E(),null!==m[m.length-1])return[];return C(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 l(m,e)}function R(){return c(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(u,c),n}function m(e){return c.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,u=e[t][1],c=e[t][2],l=t-1,p=[],f=u._tokenizer||c.parser[u.contentType](u.start),g=f.events,m=[],h={};u;){for(;e[++l][1]!==u;);p.push(l),u._tokenizer||(r=c.sliceStream(u),u.next||r.push(null),a&&f.defineSkip(u.start),u.isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(r),u.isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),a=u,u=u.next}for(u=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)),u._tokenizer=u.next=void 0,u=u.previous,o=s+1);for(f.events=u._tokenizer=u.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],u=n.call(arguments,0).slice(1),c=r.length,l=-1;if(o)s(o);else{for(;++l{"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):c.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)c.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)c(e);else{if("object"!==typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?c.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 c(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function l(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){c(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){l(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){c(e,"basename"),u(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(u(e,"extname"),l(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){c(e,"stem"),u(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 jW},get _resyncList(){return _W},get _resyncParent(){return SW},get _resyncRemoved(){return kW},get call(){return yW},get isDenylisted(){return vW},get popContext(){return PW},get pushContext(){return FW},get requeue(){return BW},get requeueComputedKeyAndDecorators(){return OW},get resync(){return wW},get setContext(){return CW},get setKey(){return NW},get setScope(){return TW},get setup(){return IW},get skip(){return EW},get skipKey(){return DW},get stop(){return AW},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 cX},get loadOptions(){return W0},get loadOptionsAsync(){return G0},get loadOptionsSync(){return q0},get loadPartialConfig(){return M0},get loadPartialConfigAsync(){return O0},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 NT},get tokTypes(){return yA},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&&A(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,u=!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){u=!0,n=e}finally{try{if(!d&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)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"),u=a.call(i,"finallyLoc");if(d&&u){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),_(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;_(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,a){return this.delegate={iterator:P(t),resultName:r,nextLoc:a},"next"===this.method&&(this.arg=e),h}},t}function A(e,t){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},A(e,t)}function T(e,t){return s(e)||b(e,t)||_(e,t)||v()}function C(e,t){return t||(t=e.slice(0)),e.raw=t,e}function w(e){return i(e)||y(e)||_(e)||x()}function S(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 j(e){var t=S(e,"string");return"symbol"==typeof t?t:t+""}function _(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 k(e){var t="function"==typeof Map?new Map:void 0;return k=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 u(e,arguments,f(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),A(r,e)},k(e)}var P="undefined"!==typeof r.g?r.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{};function F(){throw new Error("setTimeout has not been defined")}function I(){throw new Error("clearTimeout has not been defined")}var N=F,B=I;function O(e){if(N===setTimeout)return setTimeout(e,0);if((N===F||!N)&&setTimeout)return N=setTimeout,setTimeout(e,0);try{return N(e,0)}catch(t){try{return N.call(null,e,0)}catch(t){return N.call(this,e,0)}}}function L(e){if(B===clearTimeout)return clearTimeout(e);if((B===I||!B)&&clearTimeout)return B=clearTimeout,clearTimeout(e);try{return B(e)}catch(t){try{return B.call(null,e)}catch(t){return B.call(this,e)}}}"function"===typeof P.setTimeout&&(N=setTimeout),"function"===typeof P.clearTimeout&&(B=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=O(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},Pi={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Fi={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 Ii(e,t,r,a,n,s){for(var i=r,o=a,d=n,u="",c=null,l=r,p=t.length;;){if(r>=p){s.unterminated(i,o,d),u+=t.slice(l,r);break}var f=t.charCodeAt(r);if(Ni(e,f,t,r)){u+=t.slice(l,r);break}if(92===f){u+=t.slice(l,r);var g=Bi(t,r,a,n,"template"===e,s);null!==g.ch||c?u+=g.ch:c={pos:r,lineStart:a,curLine:n},r=g.pos,a=g.lineStart,n=g.curLine,l=r}else 8232===f||8233===f?(++n,a=++r):10===f||13===f?"template"===e?(u+=t.slice(l,r)+"\n",++r,13===f&&10===t.charCodeAt(r)&&++r,++n,l=a=r):s.unterminated(i,o,d):++r}return{pos:r,str:u,firstInvalidLoc:c,lineStart:a,curLine:n,containsInvalid:!!c}}function Ni(e,t,r,a){return"template"===e?96===t||36===t&&123===r.charCodeAt(a+1):t===("double"===e?34:39)}function Bi(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 u,c=Oi(e,t,r,a,2,!1,i,s);return u=c.code,t=c.pos,o(null===u?null:String.fromCharCode(u));case 117:var l,p=Mi(e,t,r,a,i,s);return l=p.code,t=p.pos,o(null===l?null:String.fromCodePoint(l));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 Oi(e,t,r,a,n,s,i,o){var d,u=t,c=Li(e,t,r,a,16,n,s,!1,o,!i);return d=c.n,t=c.pos,null===d&&(i?o.invalidEscapeSequence(u,r,a):t=u-1),{code:d,pos:t}}function Li(e,t,r,a,n,s,i,o,d,u){for(var c=t,l=16===n?Pi.hex:Pi.decBinOct,p=16===n?Fi.hex:10===n?Fi.dec:8===n?Fi.oct:Fi.bin,f=!1,g=0,m=0,h=null==s?1/0:s;m=97?y-97+10:y>=65?y-65+10:ki(y)?y-48:1/0)>=n){if(b<=9&&u)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)||l.has(v)||l.has(x)){if(u)return{n:null,pos:t};d.unexpectedNumericSeparator(t,r,a)}}else{if(u)return{n:null,pos:t};d.numericSeparatorInEscapeSequence(t,r,a)}++t}}return t===c||null!=s&&t-c!==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=Oi(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=Oi(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(w(Yi),Vi),Ji=["-","/","%","*","**","&","|",">>",">>>","<<","^"],Qi=["+"].concat(Ji,w(Xi),["|>"]),$i=["=","+="].concat(w(Ji.map((function(e){return e+"="}))),w(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={},uo={},co={},lo={},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(Ao.apply(void 0,arguments))}function yo(e){return{validate:e,optional:!0}}function bo(){return{validate:Ao.apply(void 0,arguments),optional:!0}}function vo(e){return jo(Co("array"),Eo(e))}function xo(){return vo(Ao.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 _o=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"]),ko=new Set(["default","optional","deprecated","validate"]),Po={};function Fo(){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 u=t.visitor||r.visitor||[],c=t.aliases||r.aliases||[],l=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}),No("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:Ao("Expression"),optional:!0}}}),No("SequenceExpression",{visitor:["expressions"],fields:{expressions:Ro("Expression")},aliases:["Expression"]}),No("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:Ao("Expression")}}}),No("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:Ao("Expression"),optional:!0},consequent:Ro("Statement")}}),No("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:Ao("Expression")},cases:Ro("SwitchCase")}}),No("ThisExpression",{aliases:["Expression"]}),No("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:Ao("Expression")}}}),No("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:ve.env.BABEL_TYPES_8_BREAKING?jo(Ao("BlockStatement"),Object.assign((function(e){if(!e.handler&&!e.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")}),{oneOfNodeTypes:["BlockStatement"]})):Ao("BlockStatement")},handler:{optional:!0,validate:Ao("CatchClause")},finalizer:{optional:!0,validate:Ao("BlockStatement")}}}),No("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:Ao("Expression")},operator:{validate:Do.apply(void 0,w(ro))}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),No("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:ve.env.BABEL_TYPES_8_BREAKING?Ao("Identifier","MemberExpression"):Ao("Expression")},operator:{validate:Do.apply(void 0,w(zi))}},visitor:["argument"],aliases:["Expression"]}),No("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:Co("boolean"),optional:!0},kind:{validate:Do("var","let","const","using","await using")},declarations:Ro("VariableDeclarator")},validate:ve.env.BABEL_TYPES_8_BREAKING?function(){var e=Ao("Identifier");return function(t,r,a){if(ci("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}),No("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:ve.env.BABEL_TYPES_8_BREAKING?Ao("Identifier","ArrayPattern","ObjectPattern"):Ao("LVal")},definite:{optional:!0,validate:Co("boolean")},init:{optional:!0,validate:Ao("Expression")}}}),No("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:Ao("Expression")},body:{validate:Ao("Statement")}}}),No("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:Ao("Expression")},body:{validate:Ao("Statement")}}}),No("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},Mo(),{left:{validate:Ao("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:Ao("Expression")},decorators:{validate:xo("Decorator"),optional:!0}})}),No("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},Mo(),{elements:{validate:jo(Co("array"),Eo(To("null","PatternLike","LVal")))}})}),No("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},Bo(),Oo(),{expression:{validate:Co("boolean")},body:{validate:Ao("BlockStatement","Expression")},predicate:{validate:Ao("DeclaredPredicate","InferredPredicate"),optional:!0}})}),No("ClassBody",{visitor:["body"],fields:{body:Ro("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}}),No("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:Ao("Identifier"),optional:!0},typeParameters:{validate:Ao("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:Ao("ClassBody")},superClass:{optional:!0,validate:Ao("Expression")},superTypeParameters:{validate:Ao("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:xo("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:xo("Decorator"),optional:!0},mixins:{validate:Ao("InterfaceExtends"),optional:!0}}}),No("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:Ao("Identifier"),optional:!0},typeParameters:{validate:Ao("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:Ao("ClassBody")},superClass:{optional:!0,validate:Ao("Expression")},superTypeParameters:{validate:Ao("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:xo("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:xo("Decorator"),optional:!0},mixins:{validate:Ao("InterfaceExtends"),optional:!0},declare:{validate:Co("boolean"),optional:!0},abstract:{validate:Co("boolean"),optional:!0}},validate:ve.env.BABEL_TYPES_8_BREAKING?function(){var e=Ao("Identifier");return function(t,r,a){ci("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")}};No("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:Ao("StringLiteral")},exportKind:yo(Do("type","value"))},Uo)}),No("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:ho("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:yo(Do("value"))}}),No("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?jo(Ao("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"]})):Ao("Declaration")}},Uo,{specifiers:{default:[],validate:vo(function(){var e=Ao("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=Ao("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:Ao("StringLiteral"),optional:!0},exportKind:yo(Do("type","value"))})}),No("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:Ao("Identifier")},exported:{validate:Ao("Identifier","StringLiteral")},exportKind:{validate:Do("type","value"),optional:!0}}}),No("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 Ao("VariableDeclaration","LVal");var e=Ao("VariableDeclaration"),t=Ao("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign((function(r,a,n){ci("VariableDeclaration",n)?e(r,a,n):t(r,a,n)}),{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:Ao("Expression")},body:{validate:Ao("Statement")},await:{default:!1}}}),No("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},Uo,{module:{optional:!0,validate:Co("boolean")},phase:{default:null,validate:Do("source","defer")},specifiers:Ro("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:Ao("StringLiteral")},importKind:{validate:Do("type","typeof","value"),optional:!0}})}),No("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:Ao("Identifier")}}}),No("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:Ao("Identifier")}}}),No("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:Ao("Identifier")},imported:{validate:Ao("Identifier","StringLiteral")},importKind:{validate:Do("type","typeof","value"),optional:!0}}}),No("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:Do("source","defer")},source:{validate:Ao("Expression")},options:{validate:Ao("Expression"),optional:!0}}}),No("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:ve.env.BABEL_TYPES_8_BREAKING?jo(Ao("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(!ci("Identifier",e.property,{name:a}))throw new TypeError("Unrecognised MetaProperty")}),{oneOfNodeTypes:["Identifier"]})):Ao("Identifier")},property:{validate:Ao("Identifier")}}});var Ho=function(){return{abstract:{validate:Co("boolean"),optional:!0},accessibility:{validate:Do("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:Co("boolean"),optional:!0},key:{validate:jo(function(){var e=Ao("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=Ao("Expression");return function(r,a,n){(r.computed?t:e)(r,a,n)}}(),Ao("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}}},Go=function(){return Object.assign({},Bo(),Ho(),{params:Ro("Identifier","Pattern","RestElement","TSParameterProperty"),kind:{validate:Do("get","set","method","constructor"),default:"method"},access:{validate:jo(Co("string"),Do("public","private","protected")),optional:!0},decorators:{validate:xo("Decorator"),optional:!0}})};No("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(),Oo(),{body:{validate:Ao("BlockStatement")}})}),No("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},Mo(),{properties:Ro("RestElement","ObjectProperty")})}),No("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:Ao("Expression")}}}),No("Super",{aliases:["Expression"]}),No("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:Ao("Expression")},quasi:{validate:Ao("TemplateLiteral")},typeParameters:{validate:Ao("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),No("TemplateElement",{builder:["value","tail"],fields:{value:{validate:jo(wo({raw:{validate:Co("string")},cooked:{validate:Co("string"),optional:!0}}),(function(e){var t=e.value.raw,r=!1,a=function(){throw new Error("Internal @babel/types error.")},n=Ii("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}}}),No("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:Ro("TemplateElement"),expressions:{validate:jo(Co("array"),Eo(Ao("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)}))}}}),No("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:ve.env.BABEL_TYPES_8_BREAKING?jo(Co("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"})):Co("boolean"),default:!1},argument:{optional:!0,validate:Ao("Expression")}}}),No("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:Ao("Expression")}}}),No("Import",{aliases:["Expression"]}),No("BigIntLiteral",{builder:["value"],fields:{value:{validate:Co("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),No("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:Ao("Identifier")}}}),No("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:Ao("Expression")},property:{validate:function(){var e=Ao("Identifier"),t=Ao("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?jo(Co("boolean"),So()):Co("boolean")}}}),No("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:Ao("Expression")},arguments:Ro("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:ve.env.BABEL_TYPES_8_BREAKING?jo(Co("boolean"),So()):Co("boolean")},typeArguments:{validate:Ao("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:Ao("TSTypeParameterInstantiation"),optional:!0}}}),No("ClassProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},Ho(),{value:{validate:Ao("Expression"),optional:!0},definite:{validate:Co("boolean"),optional:!0},typeAnnotation:{validate:Ao("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:xo("Decorator"),optional:!0},readonly:{validate:Co("boolean"),optional:!0},declare:{validate:Co("boolean"),optional:!0},variance:{validate:Ao("Variance"),optional:!0}})}),No("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},Ho(),{key:{validate:jo(function(){var e=Ao("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=Ao("Expression");return function(r,a,n){(r.computed?t:e)(r,a,n)}}(),Ao("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:Ao("Expression"),optional:!0},definite:{validate:Co("boolean"),optional:!0},typeAnnotation:{validate:Ao("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:xo("Decorator"),optional:!0},readonly:{validate:Co("boolean"),optional:!0},declare:{validate:Co("boolean"),optional:!0},variance:{validate:Ao("Variance"),optional:!0}})}),No("ClassPrivateProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:Ao("PrivateName")},value:{validate:Ao("Expression"),optional:!0},typeAnnotation:{validate:Ao("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:xo("Decorator"),optional:!0},static:{validate:Co("boolean"),default:!1},readonly:{validate:Co("boolean"),optional:!0},definite:{validate:Co("boolean"),optional:!0},variance:{validate:Ao("Variance"),optional:!0}}}),No("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(),Oo(),{kind:{validate:Do("get","set","method"),default:"method"},key:{validate:Ao("PrivateName")},body:{validate:Ao("BlockStatement")}})}),No("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:Ao("Identifier")}}}),No("StaticBlock",{visitor:["body"],fields:{body:Ro("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]});var qo=Fo("Flow"),Wo=function(e){var t="DeclareClass"===e;qo(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends"].concat(w(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(Co("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(Do("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(Co("boolean"))},Uo)}),qo("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:ho("StringLiteral"),exportKind:yo(Do("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(Co("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(Co("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:Co("boolean"),default:!1},inexact:yo(Co("boolean"))}}),qo("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:ho("Identifier"),value:ho("FlowType"),optional:mo(Co("boolean")),static:mo(Co("boolean")),method:mo(Co("boolean"))}}),qo("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:ho("FlowType"),static:mo(Co("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(Co("boolean")),variance:bo("Variance")}}),qo("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:ho("Identifier","StringLiteral"),value:ho("FlowType"),kind:mo(Do("init","get","set")),static:mo(Co("boolean")),proto:mo(Co("boolean")),optional:mo(Co("boolean")),variance:bo("Variance"),method:mo(Co("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(Co("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(Co("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(Do("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(Co("boolean")),members:Ro("EnumBooleanMember"),hasUnknownMembers:mo(Co("boolean"))}}),qo("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:mo(Co("boolean")),members:Ro("EnumNumberMember"),hasUnknownMembers:mo(Co("boolean"))}}),qo("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:mo(Co("boolean")),members:Ro("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:mo(Co("boolean"))}}),qo("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:Ro("EnumDefaultedMember"),hasUnknownMembers:mo(Co("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(Co("boolean"))}});var zo=Fo("JSX");zo("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:Ao("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:Ao("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),zo("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:Ao("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),zo("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:Ao("JSXOpeningElement")},closingElement:{optional:!0,validate:Ao("JSXClosingElement")},children:Ro("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:Co("boolean"),optional:!0}})}),zo("JSXEmptyExpression",{}),zo("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:Ao("Expression","JSXEmptyExpression")}}}),zo("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:Ao("Expression")}}}),zo("JSXIdentifier",{builder:["name"],fields:{name:{validate:Co("string")}}}),zo("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:Ao("JSXMemberExpression","JSXIdentifier")},property:{validate:Ao("JSXIdentifier")}}}),zo("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:Ao("JSXIdentifier")},name:{validate:Ao("JSXIdentifier")}}}),zo("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["Immutable"],fields:{name:{validate:Ao("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:Ro("JSXAttribute","JSXSpreadAttribute"),typeParameters:{validate:Ao("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),zo("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:Ao("Expression")}}}),zo("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:Co("string")}}}),zo("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:Ao("JSXOpeningFragment")},closingFragment:{validate:Ao("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?Dx.uid=0:Dx.uid++};var Tx=Function.call.bind(Object.prototype.toString);function Cx(e){return"[object RegExp]"===Tx(e)}function wx(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 Sx(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=lu("-",t)),t;if(Cx(e))return Yd(e.source,/\/([a-z]*)$/.exec(e.toString())[1]);if(Array.isArray(e))return xd(e.map(Sx));if(wx(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=T(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,u=void 0===d?e.syntacticPlaceholders:d;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:a,placeholderPattern:s,preserveComments:o,syntacticPlaceholders:u}}function uR(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 cR(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 lR=l((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=l((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 lR(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.'},DR=["message"];function AR(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function TR(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),AR(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 lR(n,s,d),Object.assign({},o,t.details))})),AR(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 CR(e,t){if(Array.isArray(e))return function(t){return CR(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,u=E(o,DR),c="string"===typeof d?function(){return d}:d;r[a]=TR(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:a,toMessage:c},t?{syntaxPlugin:t}:{},u))},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 _R(e.prototype.finishNodeAt.call(this,t,r,a))},r.resetStartLocation=function(t,r){e.prototype.resetStartLocation.call(this,t,r),_R(t)},r.resetEndLocation=function(t,r){void 0===r&&(r=this.state.lastTokEndLoc),e.prototype.resetEndLocation.call(this,t,r),_R(t)},l(t)}(e)},PR=l((function(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t})),FR={brace:new PR("{"),j_oTag:new PR("...",!0)};FR.template=new PR("`",!0);var IR=!0,NR=!0,BR=!0,OR=!0,LR=!0,MR=!0,UR=l((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:IR,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:IR,startsExpr:NR}),bracketHashL:QR("#[",{beforeExpr:IR,startsExpr:NR}),bracketBarL:QR("[|",{beforeExpr:IR,startsExpr:NR}),bracketR:QR("]"),bracketBarR:QR("|]"),braceL:QR("{",{beforeExpr:IR,startsExpr:NR}),braceBarL:QR("{|",{beforeExpr:IR,startsExpr:NR}),braceHashL:QR("#{",{beforeExpr:IR,startsExpr:NR}),braceR:QR("}"),braceBarR:QR("|}"),parenL:QR("(",{beforeExpr:IR,startsExpr:NR}),parenR:QR(")"),comma:QR(",",{beforeExpr:IR}),semi:QR(";",{beforeExpr:IR}),colon:QR(":",{beforeExpr:IR}),doubleColon:QR("::",{beforeExpr:IR}),dot:QR("."),question:QR("?",{beforeExpr:IR}),questionDot:QR("?."),arrow:QR("=>",{beforeExpr:IR}),template:QR("template"),ellipsis:QR("...",{beforeExpr:IR}),backQuote:QR("`",{startsExpr:NR}),dollarBraceL:QR("${",{beforeExpr:IR,startsExpr:NR}),templateTail:QR("...`",{startsExpr:NR}),templateNonTail:QR("...${",{beforeExpr:IR,startsExpr:NR}),at:QR("@"),hash:QR("#",{startsExpr:NR}),interpreterDirective:QR("#!..."),eq:QR("=",{beforeExpr:IR,isAssign:OR}),assign:QR("_=",{beforeExpr:IR,isAssign:OR}),slashAssign:QR("_=",{beforeExpr:IR,isAssign:OR}),xorAssign:QR("_=",{beforeExpr:IR,isAssign:OR}),moduloAssign:QR("_=",{beforeExpr:IR,isAssign:OR}),incDec:QR("++/--",{prefix:LR,postfix:MR,startsExpr:NR}),bang:QR("!",{beforeExpr:IR,prefix:LR,startsExpr:NR}),tilde:QR("~",{beforeExpr:IR,prefix:LR,startsExpr:NR}),doubleCaret:QR("^^",{startsExpr:NR}),doubleAt:QR("@@",{startsExpr:NR}),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:IR,binop:9,prefix:LR,startsExpr:NR}),modulo:QR("%",{binop:10,startsExpr:NR}),star:QR("*",{binop:10}),slash:qR("/",10),exponent:QR("**",{beforeExpr:IR,binop:11,rightAssociative:!0}),_in:GR("in",{beforeExpr:IR,binop:7}),_instanceof:GR("instanceof",{beforeExpr:IR,binop:7}),_break:GR("break"),_case:GR("case",{beforeExpr:IR}),_catch:GR("catch"),_continue:GR("continue"),_debugger:GR("debugger"),_default:GR("default",{beforeExpr:IR}),_else:GR("else",{beforeExpr:IR}),_finally:GR("finally"),_function:GR("function",{startsExpr:NR}),_if:GR("if"),_return:GR("return",{beforeExpr:IR}),_switch:GR("switch"),_throw:GR("throw",{beforeExpr:IR,prefix:LR,startsExpr:NR}),_try:GR("try"),_var:GR("var"),_const:GR("const"),_with:GR("with"),_new:GR("new",{beforeExpr:IR,startsExpr:NR}),_this:GR("this",{startsExpr:NR}),_super:GR("super",{startsExpr:NR}),_class:GR("class",{startsExpr:NR}),_extends:GR("extends",{beforeExpr:IR}),_export:GR("export"),_import:GR("import",{startsExpr:NR}),_null:GR("null",{startsExpr:NR}),_true:GR("true",{startsExpr:NR}),_false:GR("false",{startsExpr:NR}),_typeof:GR("typeof",{beforeExpr:IR,prefix:LR,startsExpr:NR}),_void:GR("void",{beforeExpr:IR,prefix:LR,startsExpr:NR}),_delete:GR("delete",{beforeExpr:IR,prefix:LR,startsExpr:NR}),_do:GR("do",{isLoop:BR,beforeExpr:IR}),_for:GR("for",{isLoop:BR}),_while:GR("while",{isLoop:BR}),_as:$R("as",{startsExpr:NR}),_assert:$R("assert",{startsExpr:NR}),_async:$R("async",{startsExpr:NR}),_await:$R("await",{startsExpr:NR}),_defer:$R("defer",{startsExpr:NR}),_from:$R("from",{startsExpr:NR}),_get:$R("get",{startsExpr:NR}),_let:$R("let",{startsExpr:NR}),_meta:$R("meta",{startsExpr:NR}),_of:$R("of",{startsExpr:NR}),_sent:$R("sent",{startsExpr:NR}),_set:$R("set",{startsExpr:NR}),_source:$R("source",{startsExpr:NR}),_static:$R("static",{startsExpr:NR}),_using:$R("using",{startsExpr:NR}),_yield:$R("yield",{startsExpr:NR}),_asserts:$R("asserts",{startsExpr:NR}),_checks:$R("checks",{startsExpr:NR}),_exports:$R("exports",{startsExpr:NR}),_global:$R("global",{startsExpr:NR}),_implements:$R("implements",{startsExpr:NR}),_intrinsic:$R("intrinsic",{startsExpr:NR}),_infer:$R("infer",{startsExpr:NR}),_is:$R("is",{startsExpr:NR}),_mixins:$R("mixins",{startsExpr:NR}),_proto:$R("proto",{startsExpr:NR}),_require:$R("require",{startsExpr:NR}),_satisfies:$R("satisfies",{startsExpr:NR}),_keyof:$R("keyof",{startsExpr:NR}),_readonly:$R("readonly",{startsExpr:NR}),_unique:$R("unique",{startsExpr:NR}),_abstract:$R("abstract",{startsExpr:NR}),_declare:$R("declare",{startsExpr:NR}),_enum:$R("enum",{startsExpr:NR}),_module:$R("module",{startsExpr:NR}),_namespace:$R("namespace",{startsExpr:NR}),_interface:$R("interface",{startsExpr:NR}),_type:$R("type",{startsExpr:NR}),_opaque:$R("opaque",{startsExpr:NR}),name:QR("name",{startsExpr:NR}),placeholder:QR("%%",{startsExpr:!0}),string:QR("string",{startsExpr:NR}),num:QR("num",{startsExpr:NR}),bigint:QR("bigint",{startsExpr:NR}),decimal:QR("decimal",{startsExpr:NR}),regexp:QR("regexp",{startsExpr:NR}),privateName:QR("#name",{startsExpr:NR}),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 uE(e){return e>=58&&e<=92}function cE(e){return e>=39&&e<=59}function lE(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(FR.brace)},zR[22].updateContext=function(e){e[e.length-1]===FR.template?e.pop():e.push(FR.template)},zR[143].updateContext=function(e){e.push(FR.j_expr,FR.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 DE={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},AE={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},TE={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},CE={Var:1,Lexical:2,Function:4},wE=l((function(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e})),SE=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 wE(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&(DE.FUNCTION|DE.STATIC_BLOCK)||!this.parser.inModule&&e.flags&DE.PROGRAM)},t.declareName=function(e,t,r){var a=this.currentScope();if(t&AE.SCOPE_LEXICAL||t&AE.SCOPE_FUNCTION){this.checkRedeclarationInScope(a,e,t,r);var n=a.names.get(e)||0;t&AE.SCOPE_FUNCTION?n|=CE.Function:(a.firstLexicalName||(a.firstLexicalName=e),n|=CE.Lexical),a.names.set(e,n),t&AE.SCOPE_LEXICAL&&this.maybeExportDefined(a,e)}else if(t&AE.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)|CE.Var),this.maybeExportDefined(a,e),!(a.flags&DE.VAR));--s);this.parser.inModule&&a.flags&DE.PROGRAM&&this.undefinedExports.delete(e)},t.maybeExportDefined=function(e,t){this.parser.inModule&&e.flags&DE.PROGRAM&&this.undefinedExports.delete(t)},t.checkRedeclarationInScope=function(e,t,r,a){this.isRedeclaredInScope(e,t,r)&&this.parser.raise(wR.VarRedeclaration,a,{identifierName:t})},t.isRedeclaredInScope=function(e,t,r){if(!(r&AE.KIND_VALUE))return!1;if(r&AE.SCOPE_LEXICAL)return e.names.has(t);var a=e.names.get(t);return r&AE.SCOPE_FUNCTION?(a&CE.Lexical)>0||!this.treatFunctionsAsVarInScope(e)&&(a&CE.Var)>0:(a&CE.Lexical)>0&&!(e.flags&DE.SIMPLE_CATCH&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(a&CE.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&DE.VAR)return t}},t.currentThisScopeFlags=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e].flags;if(t&(DE.VAR|DE.CLASS)&&!(t&DE.ARROW))return t}},l(e,[{key:"inTopLevel",get:function(){return(this.currentScope().flags&DE.PROGRAM)>0}},{key:"inFunction",get:function(){return(this.currentVarScopeFlags()&DE.FUNCTION)>0}},{key:"allowSuper",get:function(){return(this.currentThisScopeFlags()&DE.SUPER)>0}},{key:"allowDirectSuper",get:function(){return(this.currentThisScopeFlags()&DE.DIRECT_SUPER)>0}},{key:"inClass",get:function(){return(this.currentThisScopeFlags()&DE.CLASS)>0}},{key:"inClassAndNotInNonArrowFunction",get:function(){var e=this.currentThisScopeFlags();return(e&DE.CLASS)>0&&0===(e&DE.FUNCTION)}},{key:"inStaticBlock",get:function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e].flags;if(t&DE.STATIC_BLOCK)return!0;if(t&(DE.VAR|DE.CLASS))return!1}}},{key:"inNonArrowFunction",get:function(){return(this.currentThisScopeFlags()&DE.FUNCTION)>0}},{key:"treatFunctionsAsVar",get:function(){return this.treatFunctionsAsVarInScope(this.currentScope())}}])}(),jE=function(e){function t(){for(var t,r=arguments.length,a=new Array(r),n=0;n0||(n&CE.Lexical)>0}return!1},r.checkLocalExport=function(t){this.scopeStack[0].declareFunctions.has(t.name)||e.prototype.checkLocalExport.call(this,t)},l(t)}(SE);function kE(e,t){var r;void 0===e.trailingComments?e.trailingComments=t:(r=e.trailingComments).unshift.apply(r,t)}function PE(e,t){var r;void 0===e.leadingComments?e.leadingComments=t:(r=e.leadingComments).unshift.apply(r,t)}function FE(e,t){var r;void 0===e.innerComments?e.innerComments=t:(r=e.innerComments).unshift.apply(r,t)}function IE(e,t,r){for(var a=null,n=t.length;null===a&&n>0;)a=t[--n];null===a||a.start>r.start?FE(e,r.comments):kE(a,r.comments)}var NE=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&&kE(e.leadingNode,t),null!==e.trailingNode&&PE(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":IE(r,r.properties,e);break;case"CallExpression":case"OptionalCallExpression":IE(r,r.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":IE(r,r.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":IE(r,r.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":IE(r,r.specifiers,e);break;default:FE(r,t)}else FE(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 lR(r,e-t,e)}var zE=new Set([103,109,115,105,121,117,100,118]),VE=l((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(wR.InvalidDigit,WE(e,t,r),{radix:n}),!0)},numericSeparatorInEscapeSequence:a.errorBuilder(wR.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:a.errorBuilder(wR.UnexpectedNumericSeparator)},a.errorHandlers_readCodePoint=Object.assign({},a.errorHandlers_readInt,{invalidEscapeSequence:a.errorBuilder(wR.InvalidEscapeSequence),invalidCodePoint:a.errorBuilder(wR.InvalidCodePoint)}),a.errorHandlers_readStringContents_string=Object.assign({},a.errorHandlers_readCodePoint,{strictNumericEscape:function(e,t,r){a.recordStrictModeErrors(wR.StrictNumericEscape,WE(e,t,r))},unterminated:function(e,t,r){throw a.raise(wR.UnterminatedString,WE(e-1,t,r))}}),a.errorHandlers_readStringContents_template=Object.assign({},a.errorHandlers_readCodePoint,{strictNumericEscape:a.errorBuilder(wR.StrictNumericEscape),unterminated:function(e,t,r){throw a.raise(wR.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(wR.UnterminatedComment,this.state.curPosition());for(this.state.pos=a+e.length,BE.lastIndex=r+2;BE.test(this.input)&&BE.lastIndex<=a;)++this.state.curLine,this.state.lineStart=BE.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 u=this.state.pos,c={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(u),comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(c)}},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(wR.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?wR.RecordExpressionHashIncorrectStartSyntaxType:wR.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;!OE(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(wR.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(wR.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(wR.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(wR.UnterminatedRegExp,fR(r,1));var s=this.input.charCodeAt(n);if(OE(s))throw this.raise(wR.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(wR.StrictOctalLiteral,r),!this.state.strict){var u=d.indexOf("_");u>0&&this.raise(wR.ZeroDigitNumericSeparator,fR(r,u))}i=o&&!/[89]/.test(d)}var c=this.input.charCodeAt(this.state.pos);if(46!==c||i||(++this.state.pos,this.readInt(10),a=!0,c=this.input.charCodeAt(this.state.pos)),69!==c&&101!==c||i||(43!==(c=this.input.charCodeAt(++this.state.pos))&&45!==c||++this.state.pos,null===this.readInt(10)&&this.raise(wR.InvalidOrMissingExponent,r),a=!0,s=!0,c=this.input.charCodeAt(this.state.pos)),110===c&&((a||o)&&this.raise(wR.InvalidBigIntLiteral,r),++this.state.pos,n=!0),109===c){this.expectPlugin("decimal",this.state.curPosition()),(s||o)&&this.raise(wR.InvalidDecimal,r),++this.state.pos;var l=!0}if(bi(this.codePointAtPos(this.state.pos)))throw this.raise(wR.NumberIdentifier,this.state.curPosition());var p=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(n)this.finishToken(136,p);else if(l)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=Ii(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=Ii("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 lR(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()&aD.PARAM_YIELD)>0}},{key:"hasReturn",get:function(){return(this.currentFlags()&aD.PARAM_RETURN)>0}},{key:"hasIn",get:function(){return(this.currentFlags()&aD.PARAM_IN)>0}}])}();function sD(e,t){return(e?aD.PARAM_AWAIT:0)|(t?aD.PARAM_YIELD:0)}var iD=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(wR.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(TJ){var s=this.state;if(this.state=t,TJ instanceof SyntaxError)return{node:null,error:TJ,thrown:!0,aborted:!1,failState:s};if(TJ===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:s};throw TJ}},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(wR.InvalidCoverInitializedName,r),null!=a&&this.raise(wR.DuplicateProto,a),null!=n&&this.raise(wR.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 nD;var d=this.classScope;this.classScope=new XE(this);var u=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=u}},r.enterInitialScopes=function(){var e=aD.PARAM;this.inModule&&(e|=aD.PARAM_AWAIT),this.scope.enter(DE.PROGRAM),this.prodParam.enter(e)},r.checkDestructuringPrivate=function(e){var t=e.privateKeyLoc;null!==t&&this.expectPlugin("destructuringPrivate",t)},l(t)}(KE),oD=l((function(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null})),dD=l((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)})),uD=dD.prototype;function cD(e){return lD(e)}function lD(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(uD);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 pD(e){var t=e.type,r=e.start,a=e.end,n=e.loc,s=e.range,i=e.extra;if("Placeholder"===t)return cD(e);var o=Object.create(uD);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}uD.__clone=function(){for(var e=new dD(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 yD(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}function bD(e){return"type"===e.importKind||"typeof"===e.importKind}var vD={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function xD(e,t){for(var r=[],a=[],n=0;nr.index+1&&this.raise(hD.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,AE.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(hD.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,AE.TYPE_VAR,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")},r.flowParseDeclareModule=function(t){var r=this;this.scope.enter(DE.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(hD.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),e.prototype.parseImport.call(this,s)):(this.expectContextual(125,hD.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){yD(e)?("CommonJS"===i&&r.raise(hD.AmbiguousDeclareModuleKind,e),i="ES"):"DeclareModuleExports"===e.type&&(o&&r.raise(hD.DuplicateDeclareModuleExports,e),"ES"===i&&r.raise(hD.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(hD.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:r,suggestion:vD[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?AE.TYPE_FUNCTION:AE.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(hD.UnexpectedReservedUnderscore,this.state.startLoc)},r.checkReservedType=function(e,t,r){mD.has(e)&&this.raise(r?hD.AssignReservedType:hD.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,AE.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,AE.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(hD.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,u=this.startNode();u.callProperties=[],u.properties=[],u.indexers=[],u.internalSlots=[];var c=!1;for(r&&this.match(6)?(this.expect(6),o=9,d=!0):(this.expect(5),o=8,d=!1),u.exact=d;!this.match(o);){var l=!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(),l=!0)}var y=this.flowParseVariance();if(this.eat(0))null!=p&&this.unexpected(p),this.eat(0)?(y&&this.unexpected(y.loc.start),u.internalSlots.push(this.flowParseObjectTypeInternalSlot(g,l))):u.indexers.push(this.flowParseObjectTypeIndexer(g,l,y));else if(this.match(10)||this.match(47))null!=p&&this.unexpected(p),y&&this.unexpected(y.loc.start),u.callProperties.push(this.flowParseObjectTypeCallProperty(g,l));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,l,p,y,b,a,null!=s?s:!d);null===v?(c=!0,f=this.state.lastTokStartLoc):u.properties.push(v)}this.flowObjectTypeSemicolon(),!f||this.match(8)||this.match(9)||this.raise(hD.UnexpectedExplicitInexactInObject,f)}this.expect(o),a&&(u.inexact=c);var x=this.finishNode(u,"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(hD.InexactInsideExact,this.state.lastTokStartLoc):this.raise(hD.InexactInsideNonObject,this.state.lastTokStartLoc),a&&this.raise(hD.InexactVariance,a),null):(s||this.raise(hD.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=r&&this.unexpected(r),a&&this.raise(hD.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(hD.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?hD.GetterMayNotHaveThisParam:hD.SetterMayNotHaveThisParam,e.value.this),r!==t&&this.raise("get"===e.kind?wR.BadGetterArity:wR.BadSetterArity,e),"set"===e.kind&&e.value.rest&&this.raise(wR.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(hD.AmbiguousConditionalArrow,s.startLoc),c&&1===p.length){this.state=s,g.push(p[0].start),this.state.noArrowAt=g;var b=this.tryParseConditionalConsequent();u=b.consequent,c=b.failed}}return this.getArrowLikeExpressions(u,!0),this.state.noArrowAt=i,this.expect(14),o.test=e,o.consequent=u,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,[]]):xD(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(DE.FUNCTION|DE.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(hD.DeclareClassElement,n):r.value&&this.raise(hD.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(wR.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(hD.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(hD.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(hD.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(hD.GetterMayNotHaveThisParam,a):this.isThisParam(a)&&this.raise(hD.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 u=e.prototype.parseObjPropValue.call(this,t,r,a,n,s,i,o);return d&&((u.value||u).typeParameters=d),u},r.parseFunctionParamType=function(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(hD.PatternIsOptional,e),this.isThisParam(e)&&this.raise(hD.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(hD.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(hD.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(hD.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(hD.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(hD.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(wR.UnterminatedComment,this.state.curPosition())},r.flowEnumErrorBooleanMemberNotInitialized=function(e,t){var r=t.enumName,a=t.memberName;this.raise(hD.EnumBooleanMemberNotInitialized,e,{memberName:a,enumName:r})},r.flowEnumErrorInvalidMemberInitializer=function(e,t){return this.raise(t.explicitType?"symbol"===t.explicitType?hD.EnumInvalidMemberInitializerSymbolType:hD.EnumInvalidMemberInitializerPrimaryType:hD.EnumInvalidMemberInitializerUnknownType,e,t)},r.flowEnumErrorNumberMemberNotInitialized=function(e,t){this.raise(hD.EnumNumberMemberNotInitialized,e,t)},r.flowEnumErrorStringMemberInconsistentlyInitialized=function(e,t){this.raise(hD.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,u=o.init,c=d.name;if(""!==c){/^[a-z]/.test(c)&&this.raise(hD.EnumInvalidMemberName,d,{memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:t}),a.has(c)&&this.raise(hD.EnumDuplicateMemberName,d,{memberName:c,enumName:t}),a.add(c);var l={enumName:t,explicitType:r,memberName:c};switch(i.id=d,u.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(u.loc,l,"boolean"),i.init=u.value,n.booleanMembers.push(this.finishNode(i,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(u.loc,l,"number"),i.init=u.value,n.numberMembers.push(this.finishNode(i,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(u.loc,l,"string"),i.init=u.value,n.stringMembers.push(this.finishNode(i,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(u.loc,l);case"none":switch(r){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(u.loc,l);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(u.loc,l);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"},TD=CR(RD||(RD=C(["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 CD(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function wD(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return wD(e.object)+"."+wD(e.property);throw new Error("Node had unexpected type: "+e.type)}var SD,jD=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(TD.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:OE(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(wR.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):OE(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&AE.FLAG_TS_ENUM)||!!(a&AE.FLAG_TS_CONST_ENUM)!==(4&n)>0:a&AE.FLAG_CLASS&&(8&n)>0?!!(t.names.get(r)&CE.Lexical)&&!!(a&AE.KIND_VALUE):!!(a&AE.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)}},l(t)}(SE),PD=function(e){return"ParenthesizedExpression"===e.type?PD(e.expression):e},FD={ALLOW_EMPTY:1,IS_FUNCTION_PARAMS:2,IS_CONSTRUCTOR_PARAMS:4},ID=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=PD(e),t?"Identifier"===n.type?this.expressionScope.recordArrowParameterBindingError(wR.InvalidParenthesizedAssignment,e):"MemberExpression"===n.type||this.isOptionalMemberExpression(n)||this.raise(wR.InvalidParenthesizedAssignment,e):this.raise(wR.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 LD(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 MD(e){return"private"===e||"public"===e||"protected"===e}function UD(e){return"in"===e||"out"===e}var HD,GD=function(e){return function(e){function t(){for(var t,r=arguments.length,a=new Array(r),n=0;n0&&(this.raise(wR.BadGetterArity,this.state.curPosition()),this.isThisParam(a[n][0])&&this.raise(OD.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===a.kind){if(1!==a[n].length)this.raise(wR.BadSetterArity,this.state.curPosition());else{var i=a[n][0];this.isThisParam(i)&&this.raise(OD.AccessorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===i.type&&i.optional&&this.raise(OD.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===i.type&&this.raise(OD.SetAccessorCannotHaveRestParameter,this.state.curPosition())}a[s]&&this.raise(OD.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(OD.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,u=this.state.value,c=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(e=!0,t=this.createIdentifier(this.startNodeAt(d),u),this.expect(17),this.expect(14),a=this.tsParseType()):(e=!1,a=c,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(OD.TupleOptionalAfterType,this.state.lastTokStartLoc))):((n=this.startNodeAtNode(a)).optional=r,this.raise(OD.InvalidTupleMemberLabel,a),n.label=a,n.elementType=this.tsParseType()),a=this.finishNode(n,"TSNamedTupleMember");else if(r){var l=this.startNodeAtNode(a);l.typeAnnotation=a,a=this.finishNode(l,"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":LD(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(OD.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,FD.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(wR.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;BD(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(OD.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(OD.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,AE.TYPE_TS_INTERFACE)):(e.id=null,this.raise(OD.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,AE.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?AE.TYPE_TS_CONST_ENUM:AE.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(DE.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,AE.TYPE_TS_NAMESPACE),this.eat(16)){var r=this.startNode();this.tsParseModuleOrNamespaceDeclaration(r,!0),e.body=r}else this.scope.enter(DE.TS_MODULE),this.prodParam.enter(aD.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(DE.TS_MODULE),this.prodParam.enter(aD.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,AE.TYPE_TS_VALUE_IMPORT),this.expect(29);var a=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==a.type&&this.raise(OD.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(DE.TS_MODULE),this.prodParam.enter(aD.PARAM);var n=e;return n.kind="global",e.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(OD.EmptyTypeArguments,t):this.state.inType||this.curContext()!==FR.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&FD.IS_CONSTRUCTOR_PARAMS||!(n||i||s)||this.raise(OD.UnexpectedParameterModifier,r);var o=this.parseMaybeDefault();e&FD.IS_FUNCTION_PARAMS&&this.parseFunctionParamType(o);var d=this.parseMaybeDefault(o.loc.start,o);if(n||i||s){var u=this.startNodeAt(r);return t.length&&(u.decorators=t),n&&(u.accessibility=n),i&&(u.readonly=i),s&&(u.override=s),"Identifier"!==d.type&&"AssignmentPattern"!==d.type&&this.raise(OD.UnsupportedParameterPropertyKind,u),u.parameter=d,this.finishNode(u,"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(wR.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(OD.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(OD.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))&&KD(e.object)}function WD(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!(!zD(e,t)&&!VD(e,t))||"TemplateLiteral"===a&&0===e.expressions.length||!!qD(e)}function zD(e,t){return t?"Literal"===e.type&&("number"===typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}function VD(e,t){if("UnaryExpression"===e.type){var r=e.operator,a=e.argument;if("-"===r&&zD(a,t))return!0}return!1}function KD(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&KD(e.object)}var YD=CR(HD||(HD=C(["placeholders"])))({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),XD=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(YD.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(YD.UnexpectedSpace,this.state.lastTokEndLoc)},l(t)}(e)},JD=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)},l(t)}(e)},QD=["minimal","fsharp","hack","smart"],$D=["^^","@@","^","%","#"];function ZD(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(!QD.includes(n)){var s=QD.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(!$D.includes(o)){var d=$D.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 u=e.get("recordAndTuple").syntaxType;if(null!=u){var c=["hash","bar"];if(!c.includes(u))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+c.map((function(e){return"'"+e+"'"})).join(", "))}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){var l=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw l.missingPlugins="doExpressions",l}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 eA={estree:kR,jsx:jD,flow:DD,typescript:GD,v8intrinsic:JD,placeholders:XD},tA=Object.keys(eA);function rA(){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 aA(e){var t=rA();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 nA=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(wR.RecordNoProto,n);r.used&&(a?null===a.doubleProtoLoc&&(a.doubleProtoLoc=n.loc.start):this.raise(wR.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 oD,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 u=a.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=u&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=u&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=u&&(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(wR.PrivateInExpectedIn,e,{identifierName:a}),this.classScope.usePrivateName(a,e.loc.start)}var n=this.state.type;if(cE(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(wR.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);i.right=this.parseExprOpRightExpr(n,s);var u=this.finishNode(i,o||d?"LogicalExpression":"BinaryExpression"),c=this.state.type;if(d&&(41===c||42===c)||o&&40===c)throw this.raise(wR.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(u,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(wR.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(wR.PipeUnparenthesizedBody,t,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(wR.PipeTopicUnused,t),r},r.checkExponentialAfterUnary=function(e){this.match(57)&&this.raise(wR.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(wR.StrictDelete,i):this.hasPropertyAsPrivateName(d)&&this.raise(wR.DeletePrivateField,i)}if(!s)return t||this.checkExponentialAfterUnary(i),this.finishNode(i,"UnaryExpression")}var u=this.parseUpdate(i,s,e);if(a){var c=this.state.type;if((this.hasPlugin("v8intrinsic")?sE(c):sE(c)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(wR.AwaitNotInAsyncContext,r),this.parseAwait(r)}return u},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(;lE(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(wR.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(wR.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(tD()),s=new oD),d&&(i.optional=a),i.arguments=a?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Super"!==e.type,i,s);var u=this.finishCallExpression(i,d);return o&&this.shouldParseAsyncArrow()&&!a?(r.stop=!0,this.checkDestructuringPrivate(s),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),u=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),u)):(o&&(this.checkExpressionErrors(s,!0),this.expressionScope.exit()),this.toReferencedArguments(u)),this.state.maybeInArrowParameters=n,u},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(wR.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(wR.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(wR.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(wR.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(wR.InvalidEscapeSequenceTemplate,fR(this.state.firstInvalidTemplateEscapePos,1)));var d=this.match(24),u=d?-1:-2,c=n+u;o.value={raw:this.input.slice(i,c).replace(/\r\n?/g,"\n"),cooked:null===s?null:s.slice(1,u)},o.tail=d,this.next();var l=this.finishNode(o,"TemplateElement");return this.resetEndLocation(l,fR(this.state.lastTokEndLoc,u)),l},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(wR.InvalidRecordProperty,d),d.shorthand&&this.addExtra(d,"shorthand",!0),o.properties.push(d)}this.next(),this.state.inFSharpPipelineDirectBody=n;var u="ObjectExpression";return t?u="ObjectPattern":r&&(u="RecordExpression"),this.finishNode(o,u)},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(wR.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,u=d.name;"async"!==u||this.hasPrecedingLineBreak()||(n=!0,this.resetPreviousNodeTrailingComments(d),i=this.eat(55),this.parsePropertyName(a)),"get"!==u&&"set"!==u||(s=!0,this.resetPreviousNodeTrailingComments(d),a.kind=u,this.match(55)&&(i=!0,this.raise(wR.AccessorIsGenerator,this.state.curPosition(),{kind:u}),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?wR.BadGetterArity:wR.BadSetterArity,e),"set"===e.kind&&"RestElement"===(null==(t=a[a.length-1])?void 0:t.type)&&this.raise(wR.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,lD(e.key));else if(this.match(29)){var n=this.state.startLoc;null!=a?null===a.shorthandAssignLoc&&(a.shorthandAssignLoc=n):this.raise(wR.InvalidCoverInitializedName,n),e.value=this.parseMaybeDefault(t,lD(e.key))}else e.value=lD(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(wR.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(DE.FUNCTION|DE.SUPER|(i?DE.CLASS:0)|(n?DE.DIRECT_SUPER:0)),this.prodParam.enter(sD(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(DE.FUNCTION|DE.ARROW);var n=sD(r,!1);!this.match(5)&&this.prodParam.hasIn&&(n|=aD.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(rD()),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()|aD.PARAM_RETURN),e.body=this.parseBlock(!0,!1,(function(n){var i=!a.isSimpleParamList(e.params);n&&i&&a.raise(wR.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,AE.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&&ji(e))this.raise(wR.UnexpectedKeyword,t,{keyword:e});else if((this.state.strict?a?Si:Ci:Ti)(e,this.inModule))this.raise(wR.UnexpectedReservedWord,t,{reservedWord:e});else if("yield"===e){if(this.prodParam.hasYield)return void this.raise(wR.YieldBindingIdentifier,t)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(wR.AwaitBindingIdentifier,t);if(this.scope.inStaticBlock)return void this.raise(wR.AwaitBindingIdentifierInStaticBlock,t);this.expressionScope.recordAsyncArrowParametersError(t)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(wR.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(wR.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(wR.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(wR.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(wR.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(wR.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(wR.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(wR.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(aD.PARAM_IN&~t){this.prodParam.enter(t|aD.PARAM_IN);try{return e()}finally{this.prodParam.exit()}}return e()},r.disallowInAnd=function(e){var t=this.prodParam.currentFlags();if(aD.PARAM_IN&t){this.prodParam.enter(t&~aD.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){},l(t)}(ID),sA={kind:GE.Loop},iA={kind:GE.Switch},oA={Expression:0,Declaration:1,HangingDeclaration:2,NullableId:4,Async:8},dA={StatementOnly:0,AllowImportExport:1,AllowDeclaration:2,AllowFunctionDeclaration:4,AllowLabeledFunction:8},uA=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,cA=new RegExp("in(?:stanceof)?","y");function lA(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(wR.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(wR.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(wR.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(wR.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&dA.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(DE.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 u=this.stmtToDirective(d);t.push(u),i||"use strict"!==u.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(wR.ForInOfLoopInitializer,t,{type:n?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(wR.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(wR.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:r}):this.raise(wR.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(wR.UsingDeclarationHasBindingPattern,r.loc.start),this.checkLVal(r,{type:"VariableDeclarator"},"var"===t?AE.TYPE_VAR:AE.TYPE_LEXICAL),e.id=r},r.parseAsyncFunctionExpression=function(e){return this.parseFunction(e,oA.Async)},r.parseFunction=function(e,t){var r=this;void 0===t&&(t=oA.Expression);var a=t&oA.HangingDeclaration,n=!!(t&oA.Declaration),s=n&&!(t&oA.NullableId),i=!!(t&oA.Async);this.initFunction(e,i),this.match(55)&&(a&&this.raise(wR.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(DE.FUNCTION),this.prodParam.enter(sD(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,FD.IS_FUNCTION_PARAMS|(t?FD.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?AE.TYPE_VAR:AE.TYPE_LEXICAL:AE.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(wR.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(wR.DecoratorConstructor,e)}})),this.state.strict=t,this.next(),n.length)throw this.raise(wR.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,u=n,c=n;if(t.static=a,this.parsePropertyNamePrefixOperator(t),this.eat(55)){u.kind="method";var l=this.match(139);return this.parseClassElementName(u),l?void this.pushClassPrivateMethod(e,s,!0,!1):(this.isNonstaticConstructor(n)&&this.raise(wR.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(c),this.isClassMethod()){if(u.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(wR.DuplicateConstructor,f),y&&this.hasPlugin("typescript")&&t.override&&this.raise(wR.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),u.kind=g;var x=this.match(139);this.parseClassElementName(n),x?this.pushClassPrivateMethod(e,s,!1,!1):(this.isNonstaticConstructor(n)&&this.raise(wR.ConstructorIsAccessor,n.key),this.pushClassMethod(e,n,!1,!1,!1,!1)),this.checkGetterSetterParams(n)}else{this.resetPreviousNodeTrailingComments(f);var R=this.eat(55);c.optional&&this.unexpected(h),u.kind="method";var E=this.match(139);this.parseClassElementName(u),this.parsePostMemberNameModifiers(c),E?this.pushClassPrivateMethod(e,s,R,!0):(this.isNonstaticConstructor(n)&&this.raise(wR.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(wR.StaticPrototype,this.state.startLoc),139===r){"constructor"===a&&this.raise(wR.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(DE.CLASS|DE.STATIC_BLOCK|DE.SUPER);var a=this.state.labels;this.state.labels=[],this.prodParam.enter(aD.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(wR.DecoratorStaticBlock,t)},r.pushClassProperty=function(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(wR.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),TE.OTHER,r.key.loc.start)},r.pushClassAccessorProperty=function(e,t,r){r||t.computed||!this.nameIsConstructor(t.key)||this.raise(wR.ConstructorClassField,t.key);var a=this.parseClassAccessorProperty(t);e.body.push(a),r&&this.classScope.declarePrivateName(this.getPrivateNameSV(a.key),TE.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?TE.STATIC_GETTER:TE.INSTANCE_GETTER:"set"===n.kind?n.static?TE.STATIC_SETTER:TE.INSTANCE_SETTER:TE.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(DE.CLASS|DE.SUPER),this.expressionScope.enter(rD()),this.prodParam.enter(aD.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=AE.TYPE_CLASS),eE(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,a);else{if(!r&&t)throw this.raise(wR.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(wR.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration")}var u,c=this.maybeParseExportNamedSpecifiers(e);if(a&&n&&!s&&!c&&this.unexpected(null,5),i&&o&&this.unexpected(null,98),d||c){if(u=!1,t)throw this.raise(wR.UnsupportedDecoratorExport,e);this.parseExportFrom(e,d)}else u=this.maybeParseExportDeclaration(e);if(d||c||u){var l,p=e;if(this.checkExport(p,!0,!1,!!p.source),"ClassDeclaration"===(null==(l=p.declaration)?void 0:l.type))this.maybeTakeDecorators(t,p.declaration,p);else if(t)throw this.raise(wR.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(wR.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,oA.Declaration|oA.NullableId);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,oA.Declaration|oA.NullableId|oA.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(wR.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(wR.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(wR.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)||this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(wR.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(wR.ExportDefaultFromAsIdentifier,i)}}else if(null!=(n=e.specifiers)&&n.length)for(var o=0,d=e.specifiers;o0&&this.raise(wR.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(wR.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=AE.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(wR.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(wR.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(wR.ModuleAttributeDifferentFromType,r.key),t.has(r.key.name)&&this.raise(wR.ModuleAttributesWithDuplicateKeys,r.key,{key:r.key.name}),t.add(r.key.name),this.expect(14),!this.match(134))throw this.raise(wR.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(wR.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(wR.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(wR.ImportBindingIsString,e,{importName:s.value});this.checkReservedWord(s.name,e.loc.start,!0,!0),e.local||(e.local=lD(s))}return this.finishImportSpecifier(e,"ImportSpecifier",n)},r.isThisParam=function(e){return"Identifier"===e.type&&"this"===e.name},l(t)}(nA),fA=function(e){function t(t,r,a){var n;return t=aA(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 SE},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},l(t)}(pA);function gA(e,t){var r;if("unambiguous"!==(null==(r=t)?void 0:r.sourceType))return bA(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";var a=bA(t,e),n=a.parse();if(a.sawUnambiguousESM)return n;if(a.ambiguousScriptDifferentAst)try{return t.sourceType="script",bA(t,e).parse()}catch(s){}else n.program.sourceType="script";return n}catch(i){try{return t.sourceType="script",bA(t,e).parse()}catch(o){}throw i}}function mA(e,t){var r=bA(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function hA(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,BA.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}),BA}function LA(e){return null!=e&&e&&"false"!==e&&"0"!==e}var MA,UA=(LA(ve.env.BABEL_8_BREAKING),OA()),HA=new Set(["as","async","from","get","of","set"]),GA=/\r\n|[\n\r\u2028\u2029]/,qA=/^[()[\]{}]$/,WA=/^[a-z][\w-]*$/i,zA=function(e,t,r){if("name"===e.type){if(ji(e.value)||Ci(e.value,!0)||HA.has(e.value))return"keyword";if(WA.test(e.value)&&("<"===r[t-1]||""),n.gutter(s),e.length>0?" "+e:"",l].join("")}return" "+n.gutter(s)+(e.length>0?" "+e:"")})).join("\n");return r.message&&!u&&(l=""+" ".repeat(c+1)+r.message+"\n"+l),a?n.reset(l):l}var JA=Pe,QA=Me,$A=xs,ZA=ze,eT=Ra,tT=tt,rT=ka,aT=ls,nT=Ye,sT=Ex,iT=Mx,oT=/^[_$A-Z0-9]+$/;function dT(e,t,r){var a=r.placeholderWhitelist,n=r.placeholderPattern,s=r.preserveComments,i=r.syntacticPlaceholders,o=lT(t,r.parser,i);sT(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 iT(o,uT,d),Object.assign({ast:o},d.syntactic.placeholders.length?d.syntactic:d.legacy)}function uT(e,t,r){var a,n,s=r.syntactic.placeholders.length>0;if(rT(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(ZA(e)||eT(e))n=e.name;else{if(!nT(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||oT).test(n)||null!=(a=r.placeholderWhitelist)&&a.has(n)){var i,o=(t=t.slice())[t.length-1],d=o.node,u=o.key;nT(e)||rT(e,{expectedNode:"StringLiteral"})?i="string":tT(d)&&"arguments"===u||JA(d)&&"arguments"===u||$A(d)&&"params"===u?i="param":QA(d)&&!rT(e)?(i="statement",t=t.slice(0,-1)):i=aT(e)&&rT(e)?"statement":"other";var c=s?r.syntactic:r.legacy,l=c.placeholders,p=c.placeholderNames;l.push({name:n,type:i,resolve:function(e){return cT(e,t)},isDuplicate:p.has(n)}),p.add(n)}}function cT(e,t){for(var r=e,a=0;a1?a-1:0),i=1;i1)throw new Error("Unexpected extra params.");return jT(DT(e,t,dR(n,uR(s[0]))))}if(Array.isArray(t)){var o=r.get(t);return o||(o=AT(e,t,n),r.set(t,o)),jT(o(s))}if("object"===typeof t&&t){if(s.length>0)throw new Error("Unexpected extra params.");return ST(e,dR(n,uR(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 DT(e,t,dR(dR(n,uR(s[0])),wT))()}if(Array.isArray(t)){var o=a.get(t);return o||(o=AT(e,t,dR(n,wT)),a.set(t,o)),o(s)()}throw new Error("Unexpected template param "+typeof t)}})}function jT(e){var t="";try{throw new Error}catch(TJ){TJ.stack&&(t=TJ.stack.split("\n").slice(3).join("\n"))}return function(r){try{return e(r)}catch(a){throw a.stack+="\n =============\n"+t,a}}}var _T=ST(rR),kT=ST(nR),PT=ST(aR),FT=ST(sR),IT=ST(iR),NT=Object.assign(_T.bind(void 0),{smart:_T,statement:kT,statements:PT,expression:FT,program:IT,ast:_T.ast}),BT=Object.freeze({__proto__:null,default:NT,expression:FT,program:IT,smart:_T,statement:kT,statements:PT});function OT(e,t,r){return Object.freeze({minVersion:e,ast:function(){return NT.program.ast(t,{preserveComments:!0})},metadata:r})}var LT={__proto__:null,OverloadYield:OT("7.18.14","function _OverloadYield(e,d){this.v=e,this.k=d}",{globals:[],locals:{_OverloadYield:["body.0.id"]},exportBindingAssignments:[],exportName:"_OverloadYield",dependencies:{}}),applyDecoratedDescriptor:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("7.0.0-beta.0","function _temporalUndefined(){}",{globals:[],locals:{_temporalUndefined:["body.0.id"]},exportBindingAssignments:[],exportName:"_temporalUndefined",dependencies:{}}),toArray:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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(LT,{AwaitValue:OT("7.0.0-beta.0","function _AwaitValue(t){this.wrapped=t}",{globals:[],locals:{_AwaitValue:["body.0.id"]},exportBindingAssignments:[],exportName:"_AwaitValue",dependencies:{}}),applyDecs:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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:OT("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 GT(e,t,r,a,n,s){var i=t.locals,o=t.dependencies,d=t.exportBindingAssignments,u=t.exportName,c=new Set(a||[]);r&&c.add(r);for(var l=0,f=(Object.entries||function(e){return Object.keys(e).map((function(t){return[t,e[t]]}))})(i);l100)){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?u(n,s,a,"day"):s>=r?u(n,s,r,"hour"):s>=t?u(n,s,t,"minute"):s>=e?u(n,s,e,"second"):n+" ms"}function u(e,t,r,a){var n=t>=1.5*r;return Math.round(e/r)+" "+a+(n?"s":"")}return YT=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))},YT}function bC(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(TJ){}}function s(){var e;try{e=t.storage.getItem("debug")}catch(TJ){}return!e&&"undefined"!==typeof ve&&"env"in ve&&(e=ve.env.DEBUG),e}function i(){try{return localStorage}catch(TJ){}}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=vC(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(TJ){return"[UnexpectedJSONParseError]: "+TJ.message}}}(hC,hC.exports);var xC=hC.exports,RC=Hx,EC=qx,DC=Bs,AC=is,TC=Us,CC=Ge,wC=vs,SC=ze,jC=Pt,_C=Nt,kC=Ra,PC=Ea,FC=et,IC=it,NC=Vx,BC=Kx,OC=ls,LC=Qx,MC=yt,UC=kt,HC=$x.isCompatTag;function GC(e){var t=this.node,r=this.parent;if(!SC(t,e)&&!PC(r,e)){if(!kC(t,e))return!1;if(HC(t.name))return!1}return NC(t,r,this.parentPath.parent)}function qC(){var e=this.node,t=this.parent;return FC(e)&&NC(e,t)}function WC(){var e=this.node,t=this.parent,r=this.parentPath.parent;return SC(e)&&RC(e,t,r)}function zC(){var e=this.node,t=this.parent;if(OC(e)){if(MC(e)){if(wC(t,{left:e}))return!1;if(CC(t,{init:e}))return!1}return!0}return!1}function VC(){return this.isIdentifier()?this.isReferencedIdentifier():AC(this.node)}function KC(){return BC(this.node,this.parent)}function YC(){return NC(this.node,this.parent)}function XC(){return EC(this.node)}function JC(){return LC(this.node)}function QC(){return this.node&&!!this.node.loc}function $C(){return!this.isUser()}function ZC(e){return this.scope.isPure(this.node,e)}function ew(){var e=this.node;return!!TC(e)||(jC(e)?"type"===e.importKind||"typeof"===e.importKind:DC(e)?"type"===e.exportKind:!!_C(e)&&("type"===e.importKind||"typeof"===e.importKind))}function tw(){var e;return IC(this.node)&&(null==(e=this.parentPath)?void 0:e.isObjectPattern())}function rw(){var e;return IC(this.node)&&(null==(e=this.parentPath)?void 0:e.isObjectExpression())}function aw(){return UC(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 nw=Object.freeze({__proto__:null,isBindingIdentifier:WC,isBlockScoped:XC,isExpression:VC,isFlow:ew,isForAwaitStatement:aw,isGenerated:$C,isPure:ZC,isReferenced:YC,isReferencedIdentifier:GC,isReferencedMemberExpression:qC,isRestProperty:tw,isScope:KC,isSpreadProperty:rw,isStatement:zC,isUser:QC,isVar:JC}),sw=po,iw=pd,ow=uo,dw=fd,uw=Ee;function cw(e){return e in mC}function lw(e){return null==e?void 0:e._exploded}function pw(e){if(lw(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=[];US(e,r);var a=r.join("$");return a=a.replace(/^_/,"")||t||"ref",this.generateUid(a.slice(0,20))},t.generateUidIdentifierBasedOnNode=function(e,t){return Jw(this.generateUidBasedOnNode(e,t))},t.isStatic=function(e){if(RS(e)||bS(e)||IS(e))return!0;if(oS(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}),Yw(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 ww(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(tS(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($w(e))return this.isPure(e.left,t)&&this.isPure(e.right,t);if(Qw(e)||PS(e)){for(var u,c=p(e.elements);!(u=c()).done;){var l=u.value;if(null!==l&&!this.isPure(l,t))return!1}return!0}if(gS(e)||kS(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(lS(e))return!(e.computed&&!this.isPure(e.key,t))&&!((null==(n=e.decorators)?void 0:n.length)>0);if(mS(e))return!(e.computed&&!this.isPure(e.key,t))&&!((null==(s=e.decorators)?void 0:s.length)>0)&&!((FS(e)||e.static)&&null!==e.value&&!this.isPure(e.value,t));if(ES(e))return this.isPure(e.argument,t);if(xS(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 vS(e)?TS(e.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(e.quasi,t):cS(e)?!e.computed&&oS(e.object)&&"Symbol"===e.object.name&&oS(e.property)&&"for"!==e.property.name&&!this.hasBinding("Symbol",{noGlobals:!0}):Zw(e)?TS(e.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&1===e.arguments.length&&Ye(e.arguments[0]):hS(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;do{if(t.crawling)return;if(t.path.isProgram())break}while(t=t.parent);var r=t,a={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,"Program"!==e.type&&lw(HS)){for(var n,s=p(HS.enter);!(n=s()).done;)n.value.call(a,e,a);var i=HS[e.type];if(i)for(var o,d=p(i.enter);!(o=d()).done;)o.value.call(a,e,a)}e.traverse(HS,a),this.crawling=!1;for(var u,c=p(a.assignments);!(u=c()).done;){for(var l=u.value,f=l.getAssignmentIdentifiers(),g=0,m=Object.keys(f);g1&&(r+=t),"_"+r},qS.prototype.toArray=function(e,t,r){if(oS(e)){var a=this.getBinding(e.name);if(null!=a&&a.constant&&a.path.isGenericType("Array"))return e}if(Qw(e))return e;if(oS(e,{name:"arguments"}))return Kw(CS(CS(CS(Jw("Array"),Jw("prototype")),Jw("slice")),Jw("call")),[e]);var n,s=[e];return!0===t?n="toConsumableArray":"number"===typeof t?(s.push(wS(t)),n="slicedToArray"):n="toArray",r&&(s.unshift(this.path.hub.addHelper(n)),n="maybeArrayLike"),Kw(this.path.hub.addHelper(n),s)},qS.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 JS(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=XS[e.charCodeAt(t)]<<2|XS[e.charCodeAt(t+1)]>>4,i[d++]=255&n):1===s&&(n=XS[e.charCodeAt(t)]<<10|XS[e.charCodeAt(t+1)]<<4|XS[e.charCodeAt(t+2)]>>2,i[d++]=n>>8&255,i[d++]=255&n),i}function ej(e){return YS[e>>18&63]+YS[e>>12&63]+YS[e>>6&63]+YS[63&e]}function tj(e,t,r){for(var a,n=[],s=t;sd?d:o+i));return 1===a?(t=e[r-1],n+=YS[t>>2],n+=YS[t<<4&63],n+="=="):2===a&&(t=(e[r-2]<<8)+e[r-1],n+=YS[t>>10],n+=YS[t>>4&63],n+=YS[t<<2&63],n+="="),s.push(n),s.join("")}function aj(e,t,r,a,n){var s,i,o=8*n-a-1,d=(1<>1,c=-7,l=r?n-1:0,p=r?-1:1,f=e[t+l];for(l+=p,s=f&(1<<-c)-1,f>>=-c,c+=o;c>0;s=256*s+e[t+l],l+=p,c-=8);for(i=s&(1<<-c)-1,s>>=-c,c+=a;c>0;i=256*i+e[t+l],l+=p,c-=8);if(0===s)s=1-u;else{if(s===d)return i?NaN:1/0*(f?-1:1);i+=Math.pow(2,a),s-=u}return(f?-1:1)*i*Math.pow(2,s-a)}function nj(e,t,r,a,n,s){var i,o,d,u=8*s-n-1,c=(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=c):(i=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-i))<1&&(i--,d*=2),(t+=i+l>=1?p/d:p*Math.pow(2,1-l))*d>=2&&(i++,d/=2),i+l>=c?(o=0,i=c):i+l>=1?(o=(t*d-1)*Math.pow(2,n),i+=l):(o=t*Math.pow(2,l-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,u-=8);e[r+f-g]|=128*m}var sj={}.toString,ij=Array.isArray||function(e){return"[object Array]"==sj.call(e)},oj=50;function dj(){return cj.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function uj(e,t){if(dj()=dj())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+dj().toString(16)+" bytes");return 0|e}function xj(e){return!(null==e||!e._isBuffer)}function Rj(e,t){if(xj(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 Qj(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return e_(e).length;default:if(a)return Qj(e).length;t=(""+t).toLowerCase(),a=!0}}function Ej(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 Lj(this,t,r);case"utf8":case"utf-8":return Fj(this,t,r);case"ascii":return Bj(this,t,r);case"latin1":case"binary":return Oj(this,t,r);case"base64":return Pj(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Mj(this,t,r);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function Dj(e,t,r){var a=e[t];e[t]=e[r],e[r]=a}function Aj(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=cj.from(t,a)),xj(t))return 0===t.length?-1:Tj(e,t,r,a,n);if("number"===typeof t)return t&=255,cj.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Tj(e,[t],r,a,n);throw new TypeError("val must be string, number or Buffer")}function Tj(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 u(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(n){var c=-1;for(s=r;so&&(r=o-d),s=r;s>=0;s--){for(var l=!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:u>223?3:u>191?2:1;if(n+l<=r)switch(l){case 1:u<128&&(c=u);break;case 2:128===(192&(s=e[n+1]))&&(d=(31&u)<<6|63&s)>127&&(c=d);break;case 3:s=e[n+1],i=e[n+2],128===(192&s)&&128===(192&i)&&(d=(15&u)<<12|(63&s)<<6|63&i)>2047&&(d<55296||d>57343)&&(c=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&u)<<18|(63&s)<<12|(63&i)<<6|63&o)>65535&&d<1114112&&(c=d)}null===c?(c=65533,l=1):c>65535&&(c-=65536,a.push(c>>>10&1023|55296),c=56320|1023&c),a.push(c),n+=l}return Nj(a)}cj.TYPED_ARRAY_SUPPORT=void 0===P.TYPED_ARRAY_SUPPORT||P.TYPED_ARRAY_SUPPORT,dj(),cj.poolSize=8192,cj._augment=function(e){return e.__proto__=cj.prototype,e},cj.from=function(e,t,r){return lj(null,e,t,r)},cj.TYPED_ARRAY_SUPPORT&&(cj.prototype.__proto__=Uint8Array.prototype,cj.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&cj[Symbol.species]),cj.alloc=function(e,t,r){return fj(null,e,t,r)},cj.allocUnsafe=function(e){return gj(null,e)},cj.allocUnsafeSlow=function(e){return gj(null,e)},cj.isBuffer=a_,cj.compare=function(e,t){if(!xj(e)||!xj(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+=" ... ")),""},cj.prototype.compare=function(e,t,r,a,n){if(!xj(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),u=e.slice(t,r),c=0;cn)&&(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 Cj(this,e,t,r);case"utf8":case"utf-8":return wj(this,e,t,r);case"ascii":return Sj(this,e,t,r);case"latin1":case"binary":return jj(this,e,t,r);case"base64":return _j(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kj(this,e,t,r);default:if(s)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),s=!0}},cj.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Ij=4096;function Nj(e){var t=e.length;if(t<=Ij)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 Hj(e,t,r,a,n,s){if(!xj(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function Gj(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 qj(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 Wj(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 zj(e,t,r,a,n){return n||Wj(e,t,r,4),nj(e,t,r,a,23,4),r+4}function Vj(e,t,r,a,n){return n||Wj(e,t,r,8),nj(e,t,r,a,52,8),r+8}cj.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},cj.prototype.readUInt8=function(e,t){return t||Uj(e,1,this.length),this[e]},cj.prototype.readUInt16LE=function(e,t){return t||Uj(e,2,this.length),this[e]|this[e+1]<<8},cj.prototype.readUInt16BE=function(e,t){return t||Uj(e,2,this.length),this[e]<<8|this[e+1]},cj.prototype.readUInt32LE=function(e,t){return t||Uj(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},cj.prototype.readUInt32BE=function(e,t){return t||Uj(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},cj.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||Uj(e,t,this.length);for(var a=this[e],n=1,s=0;++s=(n*=128)&&(a-=Math.pow(2,8*t)),a},cj.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||Uj(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},cj.prototype.readInt8=function(e,t){return t||Uj(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},cj.prototype.readInt16LE=function(e,t){t||Uj(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},cj.prototype.readInt16BE=function(e,t){t||Uj(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},cj.prototype.readInt32LE=function(e,t){return t||Uj(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},cj.prototype.readInt32BE=function(e,t){return t||Uj(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},cj.prototype.readFloatLE=function(e,t){return t||Uj(e,4,this.length),aj(this,e,!0,23,4)},cj.prototype.readFloatBE=function(e,t){return t||Uj(e,4,this.length),aj(this,e,!1,23,4)},cj.prototype.readDoubleLE=function(e,t){return t||Uj(e,8,this.length),aj(this,e,!0,52,8)},cj.prototype.readDoubleBE=function(e,t){return t||Uj(e,8,this.length),aj(this,e,!1,52,8)},cj.prototype.writeUIntLE=function(e,t,r,a){e=+e,t|=0,r|=0,a||Hj(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},cj.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||Hj(this,e,t,1,255,0),cj.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},cj.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||Hj(this,e,t,2,65535,0),cj.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Gj(this,e,t,!0),t+2},cj.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||Hj(this,e,t,2,65535,0),cj.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Gj(this,e,t,!1),t+2},cj.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||Hj(this,e,t,4,4294967295,0),cj.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):qj(this,e,t,!0),t+4},cj.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||Hj(this,e,t,4,4294967295,0),cj.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):qj(this,e,t,!1),t+4},cj.prototype.writeIntLE=function(e,t,r,a){if(e=+e,t|=0,!a){var n=Math.pow(2,8*r-1);Hj(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},cj.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||Hj(this,e,t,1,127,-128),cj.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},cj.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||Hj(this,e,t,2,32767,-32768),cj.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Gj(this,e,t,!0),t+2},cj.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||Hj(this,e,t,2,32767,-32768),cj.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Gj(this,e,t,!1),t+2},cj.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||Hj(this,e,t,4,2147483647,-2147483648),cj.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):qj(this,e,t,!0),t+4},cj.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||Hj(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),cj.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):qj(this,e,t,!1),t+4},cj.prototype.writeFloatLE=function(e,t,r){return zj(this,e,t,!0,r)},cj.prototype.writeFloatBE=function(e,t,r){return zj(this,e,t,!1,r)},cj.prototype.writeDoubleLE=function(e,t,r){return Vj(this,e,t,!0,r)},cj.prototype.writeDoubleBE=function(e,t,r){return Vj(this,e,t,!1,r)},cj.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||!cj.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 $j(e){for(var t=[],r=0;r>8,n=r%256,s.push(n),s.push(a);return s}function e_(e){return ZS(Yj(e))}function t_(e,t,r,a){for(var n=0;n=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function r_(e){return e!==e}function a_(e){return null!=e&&(!!e._isBuffer||n_(e)||s_(e))}function n_(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function s_(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&n_(e.slice(0,0))}var i_,o_={exports:{}};function d_(){return i_||(i_=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,u&&(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),u=0,c="",l=0;l0&&(u===n&&(c+=d.decode(i),u=0),i[u++]=r),0!==p.length){a[0]=0;for(var f=0;fs&&(c+=d.decode(o),i.copyWithin(0,s,u),u-=s),f>0&&(i[u++]=t),u=h(i,u,a,g,0),1!==g.length&&(u=h(i,u,a,g,1),u=h(i,u,a,g,2),u=h(i,u,a,g,3),4!==g.length&&(u=h(i,u,a,g,4)))}}}return c+d.decode(i.subarray(0,u))}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=u,e.encode=m,Object.defineProperty(e,"__esModule",{value:!0})}))}(0,o_.exports)),o_.exports}var u_,c_={exports:{}},l_={exports:{}};function p_(){return u_||(u_=1,e=l_,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 c(r[1],r[2]||"",r[3],r[4]||"",r[5]||"/",r[6]||"",r[7]||"")}function u(e){var t=r.exec(e),a=t[2];return c("file:","",t[1]||"","",s(a)?a:"/"+a,t[3]||"",t[4]||"")}function c(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 l(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 u(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}))),l_.exports;var e}!function(e,t){!function(e,r){r(t,d_(),p_())}(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,u=4,c=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 D(e,t,r,a){var n=r.lastKey,i=r.lastNeedle,o=r.lastIndex,d=0,u=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:u=o}return r.lastKey=a,r.lastNeedle=t,r.lastIndex=v(e,t,d,u)}function A(e,t){for(var r=t.map(C),a=0;at;a--)e[a]=e[a-1];e[t]=r}function C(){return{__proto__:null}}var w=function(e,t){var r=S(e);if(!("sections"in r))return new O(r,t);var a=[],n=[],s=[],i=[],o=[];return j(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 S(e){return"string"===typeof e?JSON.parse(e):e}function j(e,t,r,a,n,s,i,o,d,u,c){for(var l=e.sections,p=0;pg)return;for(var _=P(r,w),F=0===C?f:0,I=x[C],N=0;N=m)return;if(1!==B.length){var M=b+B[i],H=B[o],G=B[d];_.push(4===B.length?[L,M,H,G]:[L,M,H,G,v+B[u]])}else _.push([L])}}}function k(e,t){for(var r=0;r=a.length)return null;var n=a[t],s=te(n,L(e)._decodedMemo,t,r,B);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(F);if(a<0)throw new Error(I);var s=U(e);if(r>=s.length)return Z(null,null,null,null);var c=s[r],l=te(c,L(e)._decodedMemo,r,a,n||B);if(-1===l)return Z(null,null,null,null);var p=c[l];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[u]]:null)}function q(e,t){return ae(e,t.source,t.line,t.column,t.bias||B,!1)}function W(e,t){return ae(e,t.source,t.line,t.column,t.bias||N,!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 C(e,t,r){for(var a=e.length;a>t;a--)e[a]=e[a-1];e[t]=r}function w(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,u=t.line;null==i&&null==o||!this._canMarkIdName||(t.identifierName=void 0,t.identifierNamePos=void 0);var c=e.indexOf("\n"),l=0;for(0!==c&&this._mark(u,s,i,o,d);-1!==c;)n.line++,n.column=0,(l=c+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 K_(e,t){return"BinaryExpression"===t||"LogicalExpression"===t?V_.get(e.operator):"TSAsExpression"===t||"TSSatisfiesExpression"===t?V_.get("in"):void 0}function Y_(e){return"TSAsExpression"===e||"TSSatisfiesExpression"===e||"TSTypeAssertion"===e}var X_=function(e,t){var r=t.type;return("ClassDeclaration"===r||"ClassExpression"===r)&&t.superClass===e},J_=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 Q_(e,t){return B_(t)}function $_(e,t,r){var a=t.type;return"UnionTypeAnnotation"===a||"IntersectionTypeAnnotation"===a||"ArrayTypeAnnotation"===a||Boolean(r&Sk.arrowFlowReturnType)}function Z_(e,t){return J_(e,t)||X_(e,t)}function ek(e){return Boolean(e&(Sk.expressionStatement|Sk.arrowBody))}function tk(e,t,r){return ek(r)}function rk(e,t,r){return!e.async&&Boolean(r&Sk.expressionStatement)}function ak(e,t){var r=t.type;if("BinaryExpression"===e.type&&"**"===e.operator&&"BinaryExpression"===r&&"**"===t.operator)return t.left===e;if(X_(e,t))return!0;if(J_(e,t)||"UnaryExpression"===r||"SpreadElement"===r||"AwaitExpression"===r)return!0;var a=K_(t,r);if(null!=a){var n=K_(e,e.type);if(a===n&&"BinaryExpression"===r&&t.right===e||a>n)return!0}}function nk(e,t){var r=t.type;return"ArrayTypeAnnotation"===r||"NullableTypeAnnotation"===r||"IntersectionTypeAnnotation"===r||"UnionTypeAnnotation"===r}function sk(e,t){return U_(t)&&t.objectType===e}function ik(e,t){return("AssignmentExpression"===t.type||"AssignmentPattern"===t.type)&&t.left===e||"BinaryExpression"===t.type&&("|"===t.operator||"&"===t.operator)&&e===t.left||ak(e,t)}function ok(e,t){var r=t.type;return"TSArrayType"===r||"TSOptionalType"===r||"TSIntersectionType"===r||"TSRestType"===r}function dk(e,t){var r=t.type;return"TSArrayType"===r||"TSOptionalType"===r}function uk(e,t){var r=t.type;return("CallExpression"===r||"OptionalCallExpression"===r||"NewExpression"===r||"TSInstantiationExpression"===r)&&!!t.typeParameters}function ck(e,t,r,a){return"in"===e.operator&&a}function lk(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||!z_(t)))}function pk(e,t){var r=t.type;return"BinaryExpression"===r||"LogicalExpression"===r||"UnaryExpression"===r||"SpreadElement"===r||J_(e,t)||"AwaitExpression"===r&&W_(e)||"ConditionalExpression"===r&&e===t.test||X_(e,t)||Y_(r)}function fk(e,t,r){return Boolean(r&(Sk.expressionStatement|Sk.exportDefault))}function gk(e,t){return J_(e,t)||O_(t)&&"**"===t.operator&&t.left===e||X_(e,t)}function mk(e,t,r){return Boolean(r&(Sk.expressionStatement|Sk.exportDefault))}function hk(e,t){var r=t.type;return!!("UnaryExpression"===r||"SpreadElement"===r||"BinaryExpression"===r||"LogicalExpression"===r||"ConditionalExpression"===r&&t.test===e||"AwaitExpression"===r||Y_(r))||gk(e,t)}function yk(e,t){return L_(t)&&t.callee===e||H_(t)&&t.object===e}function bk(e,t,r){return!(!ek(r)||!G_(e.left))||hk(e,t)}function vk(e,t){var r=t.type;if(Y_(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 xk(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?!!((H_(t,{object:e,computed:!0})||q_(t,{object:e,computed:!0,optional:!1}))&&r&(Sk.expressionStatement|Sk.forHead|Sk.forInHead))||Boolean(r&Sk.forOfHead):"async"===e.name&&M_(t,{left:e,await:!1}))}var Rk=uo,Ek=io,Dk=Pe,Ak=Ba,Tk=et,Ck=tt,wk=ut,Sk={expressionStatement:1,arrowBody:2,exportDefault:4,forHead:8,forInHead:16,forOfHead:32,arrowFlowReturnType:64};function jk(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}jk(N_);var Nk=D().mark(Mk),Bk=bx,Ok=io,Lk=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,Bk(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=Mk(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 u=i.value;if(null!=u&&null!=u.start&&null!=u.end){for(var c=this._findTokensOfNode(u,n,a),l=c.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},l(e)}();function Mk(e){var t,r,a,n,s,i;return D().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,a?function(e){this.token(",",!1,e),this.newline()}:void 0),RP(t))if(EP(t)){if(t.init===e)return}else if(t.left===e)return;this.semicolon()}function VP(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 KP=St,YP=jt;function XP(e,t){(KP(t)||YP(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 JP(e){if(this.tokenChar(123),0===e.body.length)this.tokenChar(125);else{this.newline();var t=QP(this,e);null==t||t(-1);var r=this.enterDelimited();this.printJoin(e.body,!0,!0,t,!0),r(),this.endsWith(10)||this.newline(),this.rightBrace(e)}}function QP(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|=Sk.arrowBody,this.print(e.body)}function gF(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(!sF(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 mF(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 hF=Ct,yF=La,bF=Xt,vF=Ft,xF=It,RF=ls;function EF(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 DF(e){this.print(e.local)}function AF(e){this.print(e.exported)}function TF(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 CF(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)}var wF=!1;function SF(e,t){var r=this.format.importAttributesKeyword,a=e.attributes,n=e.assertions;!a||r||wF||(wF=!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,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",null,i)}else this.printList(a||n)}function jF(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 _F(e,t){hF(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)&&e.printJoin(t.declaration.decorators)}function kF(e){if(_F(this,e),this.word("export"),this.space(),e.declaration){var t=e.declaration;this.print(t),RF(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(!yF(n)&&!bF(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,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 PF(e){_F(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=Sk.exportDefault;var t=e.declaration;this.print(t),RF(t)||this.semicolon()}function FF(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(!vF(i)&&!xF(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,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 IF(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)}function NF(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)}function BF(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 OF={},LF=OF.hasOwnProperty,MF=function(e,t){for(var r in e)LF.call(e,r)&&t(r,e[r])},UF=function(e,t){return t?(MF(t,(function(t,r){e[t]=r})),e):e},HF=function(e,t){for(var r=e.length,a=-1;++a2?GF(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 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 (isChild(properties)) {\n children.unshift(properties)\n } else {\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 }\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 * @returns {value is Child}\n * Whether `value` is definitely a child.\n */\nfunction isChild(value) {\n // Never properties if not an object.\n if (value === null || typeof value !== 'object' || Array.isArray(value)) {\n return true\n }\n\n // Never node without `type`; that’s the main discriminator.\n if (typeof value.type !== 'string') return false\n\n // Slower check: never property value if object or array with\n // non-number/strings.\n const record = /** @type {Record} */ (value)\n const keys = Object.keys(value)\n\n for (const key of keys) {\n const value = record[key]\n\n if (value && typeof value === 'object') {\n if (!Array.isArray(value)) return true\n\n const list = /** @type {Array} */ (value)\n\n for (const item of list) {\n if (typeof item !== 'number' && typeof item !== 'string') {\n return true\n }\n }\n }\n }\n\n // Also see empty `children` as a node.\n if ('children' in value && Array.isArray(value.children)) {\n return true\n }\n\n // Default to properties, someone can always pass an empty object,\n // put `data: {}` in a node,\n // or wrap it in an array.\n return false\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 * @import {ElementData, Element, Nodes, RootContent, Root} from 'hast'\n * @import {DefaultTreeAdapterMap, Token} from 'parse5'\n * @import {Schema} from 'property-information'\n * @import {Point, Position} from 'unist'\n * @import {VFile} from 'vfile'\n * @import {Options} from 'hast-util-from-parse5'\n */\n\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 {DefaultTreeAdapterMap['node']} 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 {DefaultTreeAdapterMap['node']} 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 {DefaultTreeAdapterMap['commentNode']} */ (\n node\n )\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 =\n /** @type {DefaultTreeAdapterMap['document'] | DefaultTreeAdapterMap['documentFragment']} */ (\n node\n )\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 document = String(state.file)\n const loc = location(document)\n const start = loc.toPoint(0)\n const end = loc.toPoint(document.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 {DefaultTreeAdapterMap['documentType']} */ (\n node\n )\n result = {type: 'doctype'}\n patch(state, reference, result)\n return result\n }\n\n case '#text': {\n const reference = /** @type {DefaultTreeAdapterMap['textNode']} */ (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 {DefaultTreeAdapterMap['element']} */ (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 {DefaultTreeAdapterMap['element']} 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 properties = {}\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 properties[name] = attribute.value\n }\n }\n\n // Build.\n const x = state.schema.space === 'svg' ? s : h\n const result = x(node.tagName, properties, all(state, node.childNodes))\n patch(state, node, result)\n\n // Switch content.\n if (result.tagName === 'template') {\n const reference = /** @type {DefaultTreeAdapterMap['template']} */ (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 {DefaultTreeAdapterMap['node']} 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 {Token.ElementLocation} 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 properties = {}\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 properties[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 = properties\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 {Token.Location} 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[\"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_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_Z\"] = 122] = \"LATIN_SMALL_Z\";\n})(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","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 = {}));\n","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, cpOffset) {\n const { line, col, offset } = this;\n const startCol = col + cpOffset;\n const startOffset = offset + cpOffset;\n return {\n code,\n startLine: line,\n endLine: line,\n startCol,\n endCol: startCol,\n startOffset,\n endOffset: startOffset,\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, 0));\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","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 = {}));\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",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 = {}));\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 = {}));\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 = {}));\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[\"SEARCH\"] = \"search\";\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 = {}));\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[\"SEARCH\"] = 94] = \"SEARCH\";\n TAG_ID[TAG_ID[\"SECTION\"] = 95] = \"SECTION\";\n TAG_ID[TAG_ID[\"SELECT\"] = 96] = \"SELECT\";\n TAG_ID[TAG_ID[\"SOURCE\"] = 97] = \"SOURCE\";\n TAG_ID[TAG_ID[\"SMALL\"] = 98] = \"SMALL\";\n TAG_ID[TAG_ID[\"SPAN\"] = 99] = \"SPAN\";\n TAG_ID[TAG_ID[\"STRIKE\"] = 100] = \"STRIKE\";\n TAG_ID[TAG_ID[\"STRONG\"] = 101] = \"STRONG\";\n TAG_ID[TAG_ID[\"STYLE\"] = 102] = \"STYLE\";\n TAG_ID[TAG_ID[\"SUB\"] = 103] = \"SUB\";\n TAG_ID[TAG_ID[\"SUMMARY\"] = 104] = \"SUMMARY\";\n TAG_ID[TAG_ID[\"SUP\"] = 105] = \"SUP\";\n TAG_ID[TAG_ID[\"TABLE\"] = 106] = \"TABLE\";\n TAG_ID[TAG_ID[\"TBODY\"] = 107] = \"TBODY\";\n TAG_ID[TAG_ID[\"TEMPLATE\"] = 108] = \"TEMPLATE\";\n TAG_ID[TAG_ID[\"TEXTAREA\"] = 109] = \"TEXTAREA\";\n TAG_ID[TAG_ID[\"TFOOT\"] = 110] = \"TFOOT\";\n TAG_ID[TAG_ID[\"TD\"] = 111] = \"TD\";\n TAG_ID[TAG_ID[\"TH\"] = 112] = \"TH\";\n TAG_ID[TAG_ID[\"THEAD\"] = 113] = \"THEAD\";\n TAG_ID[TAG_ID[\"TITLE\"] = 114] = \"TITLE\";\n TAG_ID[TAG_ID[\"TR\"] = 115] = \"TR\";\n TAG_ID[TAG_ID[\"TRACK\"] = 116] = \"TRACK\";\n TAG_ID[TAG_ID[\"TT\"] = 117] = \"TT\";\n TAG_ID[TAG_ID[\"U\"] = 118] = \"U\";\n TAG_ID[TAG_ID[\"UL\"] = 119] = \"UL\";\n TAG_ID[TAG_ID[\"SVG\"] = 120] = \"SVG\";\n TAG_ID[TAG_ID[\"VAR\"] = 121] = \"VAR\";\n TAG_ID[TAG_ID[\"WBR\"] = 122] = \"WBR\";\n TAG_ID[TAG_ID[\"XMP\"] = 123] = \"XMP\";\n})(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.SEARCH, TAG_ID.SEARCH],\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 const NUMBERED_HEADERS = new Set([$.H1, $.H2, $.H3, $.H4, $.H5, $.H6]);\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","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, EntityDecoder, DecodingMode } from 'entities/lib/decode.js';\nimport { ERR } from '../common/error-codes.js';\nimport { TAG_ID, getTagID } from '../common/html.js';\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[\"AMBIGUOUS_AMPERSAND\"] = 72] = \"AMBIGUOUS_AMPERSAND\";\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 toAsciiLower(cp) {\n return cp + 32;\n}\nfunction isWhitespace(cp) {\n return cp === $.SPACE || cp === $.LINE_FEED || cp === $.TABULATION || cp === $.FORM_FEED;\n}\nfunction isScriptDataDoubleEscapeSequenceEnd(cp) {\n return isWhitespace(cp) || cp === $.SOLIDUS || cp === $.GREATER_THAN_SIGN;\n}\nfunction getErrorForNumericCharacterReference(code) {\n if (code === $.NULL) {\n return ERR.nullCharacterReference;\n }\n else if (code > 1114111) {\n return ERR.characterReferenceOutsideUnicodeRange;\n }\n else if (isSurrogate(code)) {\n return ERR.surrogateCharacterReference;\n }\n else if (isUndefinedCodePoint(code)) {\n return ERR.noncharacterCharacterReference;\n }\n else if (isControlCodePoint(code) || code === $.CARRIAGE_RETURN) {\n return ERR.controlCharacterReference;\n }\n return null;\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.entityStartPos = 0;\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 this.entityDecoder = new EntityDecoder(htmlDecodeTree, (cp, consumed) => {\n // Note: Set `pos` _before_ flushing, as flushing might drop\n // the current chunk and invalidate `entityStartPos`.\n this.preprocessor.pos = this.entityStartPos + consumed - 1;\n this._flushCodePointConsumedAsCharacterReference(cp);\n }, handler.onParseError\n ? {\n missingSemicolonAfterCharacterReference: () => {\n this._err(ERR.missingSemicolonAfterCharacterReference, 1);\n },\n absenceOfDigitsInNumericCharacterReference: (consumed) => {\n this._err(ERR.absenceOfDigitsInNumericCharacterReference, this.entityStartPos - this.preprocessor.pos + consumed);\n },\n validateNumericCharacterReference: (code) => {\n const error = getErrorForNumericCharacterReference(code);\n if (error)\n this._err(error, 1);\n },\n }\n : undefined);\n }\n //Errors\n _err(code, cpOffset = 0) {\n var _a, _b;\n (_b = (_a = this.handler).onParseError) === null || _b === void 0 ? void 0 : _b.call(_a, this.preprocessor.getError(code, cpOffset));\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.preprocessor.retreat(this.consumedAfterSnapshot);\n this.consumedAfterSnapshot = 0;\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 _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: The specification uses only one type of character token (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.currentCharacterToken.chars += ch;\n return;\n }\n else {\n this.currentLocation = this.getCurrentLocation(0);\n this._emitCurrentCharacterToken(this.currentLocation);\n this.preprocessor.dropParsedChunk();\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 _startCharacterReference() {\n this.returnState = this.state;\n this.state = State.CHARACTER_REFERENCE;\n this.entityStartPos = this.preprocessor.pos;\n this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute() ? DecodingMode.Attribute : DecodingMode.Legacy);\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();\n break;\n }\n case State.AMBIGUOUS_AMPERSAND: {\n this._stateAmbiguousAmpersand(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._startCharacterReference();\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._startCharacterReference();\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._startCharacterReference();\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._startCharacterReference();\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._startCharacterReference();\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() {\n let length = this.entityDecoder.write(this.preprocessor.html, this.preprocessor.pos);\n if (length < 0) {\n if (this.preprocessor.lastChunkWritten) {\n length = this.entityDecoder.end();\n }\n else {\n // Wait for the rest of the entity.\n this.active = false;\n // Mark the entire buffer as read.\n this.preprocessor.pos = this.preprocessor.html.length - 1;\n this.consumedAfterSnapshot = 0;\n this.preprocessor.endOfChunkHit = true;\n return;\n }\n }\n if (length === 0) {\n // This was not a valid entity. Go back to the beginning, and\n // figure out what to do.\n this.preprocessor.pos = this.entityStartPos;\n this._flushCodePointConsumedAsCharacterReference($.AMPERSAND);\n this.state =\n !this._isCharacterReferenceInAttribute() && isAsciiAlphaNumeric(this.preprocessor.peek(1))\n ? State.AMBIGUOUS_AMPERSAND\n : this.returnState;\n }\n else {\n // We successfully parsed an entity. Switch to the return state.\n this.state = this.returnState;\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.state = this.returnState;\n this._callState(cp);\n }\n }\n}\n","import { TAG_ID as $, NS, NUMBERED_HEADERS } 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_ELEMENTS_HTML = new Set([\n $.APPLET,\n $.CAPTION,\n $.HTML,\n $.MARQUEE,\n $.OBJECT,\n $.TABLE,\n $.TD,\n $.TEMPLATE,\n $.TH,\n]);\nconst SCOPING_ELEMENTS_HTML_LIST = new Set([...SCOPING_ELEMENTS_HTML, $.OL, $.UL]);\nconst SCOPING_ELEMENTS_HTML_BUTTON = new Set([...SCOPING_ELEMENTS_HTML, $.BUTTON]);\nconst SCOPING_ELEMENTS_MATHML = new Set([$.ANNOTATION_XML, $.MI, $.MN, $.MO, $.MS, $.MTEXT]);\nconst SCOPING_ELEMENTS_SVG = new Set([$.DESC, $.FOREIGN_OBJECT, $.TITLE]);\nconst TABLE_ROW_CONTEXT = new Set([$.TR, $.TEMPLATE, $.HTML]);\nconst TABLE_BODY_CONTEXT = new Set([$.TBODY, $.TFOOT, $.THEAD, $.TEMPLATE, $.HTML]);\nconst TABLE_CONTEXT = new Set([$.TABLE, $.TEMPLATE, $.HTML]);\nconst TABLE_CELLS = new Set([$.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(NUMBERED_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.has(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 hasInDynamicScope(tagName, htmlScope) {\n for (let i = this.stackTop; i >= 0; i--) {\n const tn = this.tagIDs[i];\n switch (this.treeAdapter.getNamespaceURI(this.items[i])) {\n case NS.HTML: {\n if (tn === tagName)\n return true;\n if (htmlScope.has(tn))\n return false;\n break;\n }\n case NS.SVG: {\n if (SCOPING_ELEMENTS_SVG.has(tn))\n return false;\n break;\n }\n case NS.MATHML: {\n if (SCOPING_ELEMENTS_MATHML.has(tn))\n return false;\n break;\n }\n }\n }\n return true;\n }\n hasInScope(tagName) {\n return this.hasInDynamicScope(tagName, SCOPING_ELEMENTS_HTML);\n }\n hasInListItemScope(tagName) {\n return this.hasInDynamicScope(tagName, SCOPING_ELEMENTS_HTML_LIST);\n }\n hasInButtonScope(tagName) {\n return this.hasInDynamicScope(tagName, SCOPING_ELEMENTS_HTML_BUTTON);\n }\n hasNumberedHeaderInScope() {\n for (let i = this.stackTop; i >= 0; i--) {\n const tn = this.tagIDs[i];\n switch (this.treeAdapter.getNamespaceURI(this.items[i])) {\n case NS.HTML: {\n if (NUMBERED_HEADERS.has(tn))\n return true;\n if (SCOPING_ELEMENTS_HTML.has(tn))\n return false;\n break;\n }\n case NS.SVG: {\n if (SCOPING_ELEMENTS_SVG.has(tn))\n return false;\n break;\n }\n case NS.MATHML: {\n if (SCOPING_ELEMENTS_MATHML.has(tn))\n return false;\n break;\n }\n }\n }\n return true;\n }\n hasInTableScope(tagName) {\n for (let i = this.stackTop; i >= 0; i--) {\n if (this.treeAdapter.getNamespaceURI(this.items[i]) !== NS.HTML) {\n continue;\n }\n switch (this.tagIDs[i]) {\n case tagName: {\n return true;\n }\n case $.TABLE:\n case $.HTML: {\n return false;\n }\n }\n }\n return true;\n }\n hasTableBodyContextInTableScope() {\n for (let i = this.stackTop; i >= 0; i--) {\n if (this.treeAdapter.getNamespaceURI(this.items[i]) !== NS.HTML) {\n continue;\n }\n switch (this.tagIDs[i]) {\n case $.TBODY:\n case $.THEAD:\n case $.TFOOT: {\n return true;\n }\n case $.TABLE:\n case $.HTML: {\n return false;\n }\n }\n }\n return true;\n }\n hasInSelectScope(tagName) {\n for (let i = this.stackTop; i >= 0; i--) {\n if (this.treeAdapter.getNamespaceURI(this.items[i]) !== NS.HTML) {\n continue;\n }\n switch (this.tagIDs[i]) {\n case tagName: {\n return true;\n }\n case $.OPTION:\n case $.OPTGROUP: {\n break;\n }\n default: {\n return false;\n }\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","//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 = {}));\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","import { DOCUMENT_MODE } from '../common/html.js';\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 createTextNode(value) {\n return {\n nodeName: '#text',\n value,\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, defaultTreeAdapter.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, defaultTreeAdapter.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","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","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: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","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, NUMBERED_HEADERS, 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, \n /** @internal */\n fragmentContext = null, \n /** @internal */\n scriptHandler = null) {\n this.fragmentContext = fragmentContext;\n this.scriptHandler = scriptHandler;\n this.currentToken = null;\n this.stopped = false;\n /** @internal */\n this.insertionMode = InsertionMode.INITIAL;\n /** @internal */\n this.originalInsertionMode = InsertionMode.INITIAL;\n /** @internal */\n this.headElement = null;\n /** @internal */\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 * @internal\n */\n this.tmplInsertionModeStack = [];\n /** @internal */\n this.pendingCharacterTokens = [];\n /** @internal */\n this.hasNonWhitespacePendingCharacterToken = false;\n /** @internal */\n this.framesetOk = true;\n /** @internal */\n this.skipNextNewLine = false;\n /** @internal */\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