From 91966fc80547805ff9f15c1236dd1d071471b02e Mon Sep 17 00:00:00 2001 From: jaywcjlove Date: Fri, 25 Aug 2023 03:32:18 +0000 Subject: [PATCH] chore: update .github/workflows/ci.yml v2.3.3 4f4ad71d09938a29597e65a97f18a5590f79869b --- asset-manifest.json | 6 +++--- index.html | 2 +- static/js/{main.9676f103.js => main.47c77ebf.js} | 6 +++--- ...9676f103.js.LICENSE.txt => main.47c77ebf.js.LICENSE.txt} | 0 static/js/{main.9676f103.js.map => main.47c77ebf.js.map} | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) rename static/js/{main.9676f103.js => main.47c77ebf.js} (99%) rename static/js/{main.9676f103.js.LICENSE.txt => main.47c77ebf.js.LICENSE.txt} (100%) rename static/js/{main.9676f103.js.map => main.47c77ebf.js.map} (99%) diff --git a/asset-manifest.json b/asset-manifest.json index 9900e04..f0f92ad 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { "main.css": "/static/css/main.6f7e5bbe.css", - "main.js": "/static/js/main.9676f103.js", + "main.js": "/static/js/main.47c77ebf.js", "static/js/7616.f8a877e5.chunk.js": "/static/js/7616.f8a877e5.chunk.js", "static/js/2584.6e020d0e.chunk.js": "/static/js/2584.6e020d0e.chunk.js", "static/js/9587.0fa1e09c.chunk.js": "/static/js/9587.0fa1e09c.chunk.js", @@ -119,7 +119,7 @@ "static/media/github.svg": "/static/media/github.6988a55f42f5097e5bd19ed9ae72ccde.svg", "static/media/color.svg": "/static/media/color.3cdb61387d75158307fc6d9ed1ab3e74.svg", "main.6f7e5bbe.css.map": "/static/css/main.6f7e5bbe.css.map", - "main.9676f103.js.map": "/static/js/main.9676f103.js.map", + "main.47c77ebf.js.map": "/static/js/main.47c77ebf.js.map", "7616.f8a877e5.chunk.js.map": "/static/js/7616.f8a877e5.chunk.js.map", "2584.6e020d0e.chunk.js.map": "/static/js/2584.6e020d0e.chunk.js.map", "9587.0fa1e09c.chunk.js.map": "/static/js/9587.0fa1e09c.chunk.js.map", @@ -236,6 +236,6 @@ "static/js/refractor-prismjs-vendor.63f694e6.js", "static/js/react-vendor.ea1d1eaf.js", "static/css/main.6f7e5bbe.css", - "static/js/main.9676f103.js" + "static/js/main.47c77ebf.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index 69994b0..c8e62e2 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -微信公众号 Markdown 编辑器
\ No newline at end of file +微信公众号 Markdown 编辑器
\ No newline at end of file diff --git a/static/js/main.9676f103.js b/static/js/main.47c77ebf.js similarity index 99% rename from static/js/main.9676f103.js rename to static/js/main.47c77ebf.js index a3e8b4f..cdcdf29 100644 --- a/static/js/main.9676f103.js +++ b/static/js/main.47c77ebf.js @@ -1,3 +1,3 @@ -/*! For license information please see main.9676f103.js.LICENSE.txt */ -!function(){var e={5462:function(e,t,n){"use strict";var r={};n.r(r),n.d(r,{attentionMarkers:function(){return Fd},contentInitial:function(){return Qd},disable:function(){return Bd},document:function(){return Nd},flow:function(){return Md},flowInitial:function(){return Rd},insideSpan:function(){return Ld},string:function(){return $d},text:function(){return Id}});var i={};n.r(i),n.d(i,{safe:function(){return Uk},spec:function(){return zk}});var o={};n.r(o),n.d(o,{angle:function(){return XS},decibel:function(){return VS},flex:function(){return GS},frequency:function(){return WS},length:function(){return YS},resolution:function(){return qS},semitones:function(){return JS},time:function(){return HS}});var a={};n.r(a),n.d(a,{getTrace:function(){return gw},isKeyword:function(){return yw},isProperty:function(){return Ow},isType:function(){return vw}});var s={};n.r(s),n.d(s,{generate:function(){return Vw},name:function(){return Ww},parse:function(){return Gw},structure:function(){return qw}});var l={};n.r(l),n.d(l,{generate:function(){return iT},name:function(){return eT},parse:function(){return rT},structure:function(){return nT},walkContext:function(){return tT}});var u={};n.r(u),n.d(u,{generate:function(){return uT},name:function(){return oT},parse:function(){return lT},structure:function(){return sT},walkContext:function(){return aT}});var c={};n.r(c),n.d(c,{generate:function(){return kT},name:function(){return OT},parse:function(){return bT},structure:function(){return yT}});var h={};n.r(h),n.d(h,{generate:function(){return DT},name:function(){return ET},parse:function(){return _T},structure:function(){return PT},walkContext:function(){return AT}});var f={};n.r(f),n.d(f,{generate:function(){return RT},name:function(){return ZT},parse:function(){return QT},structure:function(){return NT}});var d={};n.r(d),n.d(d,{generate:function(){return LT},name:function(){return MT},parse:function(){return IT},structure:function(){return $T}});var p={};n.r(p),n.d(p,{generate:function(){return zT},name:function(){return FT},parse:function(){return jT},structure:function(){return BT}});var m={};n.r(m),n.d(m,{generate:function(){return WT},name:function(){return YT},parse:function(){return HT},structure:function(){return XT}});var g={};n.r(g),n.d(g,{generate:function(){return nC},name:function(){return KT},parse:function(){return tC},structure:function(){return eC}});var v={};n.r(v),n.d(v,{generate:function(){return lC},name:function(){return oC},parse:function(){return sC},structure:function(){return aC}});var O={};n.r(O),n.d(O,{generate:function(){return xC},name:function(){return yC},parse:function(){return SC},structure:function(){return kC},walkContext:function(){return bC}});var y={};n.r(y),n.d(y,{generate:function(){return DC},name:function(){return AC},parse:function(){return _C},structure:function(){return PC}});var b={};n.r(b),n.d(b,{generate:function(){return RC},name:function(){return ZC},parse:function(){return QC},structure:function(){return NC}});var k={};n.r(k),n.d(k,{generate:function(){return FC},name:function(){return MC},parse:function(){return LC},structure:function(){return IC},walkContext:function(){return $C}});var S={};n.r(S),n.d(S,{generate:function(){return YC},name:function(){return jC},parse:function(){return UC},structure:function(){return zC},xxx:function(){return BC}});var x={};n.r(x),n.d(x,{generate:function(){return qC},name:function(){return XC},parse:function(){return WC},structure:function(){return HC}});var w={};n.r(w),n.d(w,{generate:function(){return KC},name:function(){return GC},parse:function(){return JC},structure:function(){return VC}});var T={};n.r(T),n.d(T,{generate:function(){return rE},name:function(){return eE},parse:function(){return nE},structure:function(){return tE}});var C={};n.r(C),n.d(C,{generate:function(){return sE},name:function(){return iE},parse:function(){return aE},structure:function(){return oE}});var E={};n.r(E),n.d(E,{generate:function(){return hE},name:function(){return lE},parse:function(){return cE},structure:function(){return uE}});var A={};n.r(A),n.d(A,{generate:function(){return gE},name:function(){return dE},parse:function(){return mE},structure:function(){return pE}});var P={};n.r(P),n.d(P,{generate:function(){return bE},name:function(){return vE},parse:function(){return yE},structure:function(){return OE}});var _={};n.r(_),n.d(_,{generate:function(){return wE},name:function(){return kE},parse:function(){return xE},structure:function(){return SE}});var D={};n.r(D),n.d(D,{generate:function(){return AE},name:function(){return TE},parse:function(){return EE},structure:function(){return CE}});var Z={};n.r(Z),n.d(Z,{generate:function(){return ZE},name:function(){return PE},parse:function(){return DE},structure:function(){return _E}});var N={};n.r(N),n.d(N,{generate:function(){return ME},name:function(){return NE},parse:function(){return RE},structure:function(){return QE}});var Q={};n.r(Q),n.d(Q,{generate:function(){return BE},name:function(){return $E},parse:function(){return FE},structure:function(){return LE},walkContext:function(){return IE}});var R={};n.r(R),n.d(R,{generate:function(){return XE},name:function(){return jE},parse:function(){return YE},structure:function(){return UE},walkContext:function(){return zE}});var M={};n.r(M),n.d(M,{generate:function(){return KE},name:function(){return GE},parse:function(){return JE},structure:function(){return VE}});var $={};n.r($),n.d($,{generate:function(){return iA},name:function(){return tA},parse:function(){return rA},structure:function(){return nA}});var I={};n.r(I),n.d(I,{generate:function(){return hA},name:function(){return sA},parse:function(){return cA},structure:function(){return uA},walkContext:function(){return lA}});var L={};n.r(L),n.d(L,{generate:function(){return mA},name:function(){return fA},parse:function(){return pA},structure:function(){return dA}});var F={};n.r(F),n.d(F,{generate:function(){return bA},name:function(){return gA},parse:function(){return yA},structure:function(){return OA},walkContext:function(){return vA}});var B={};n.r(B),n.d(B,{generate:function(){return AA},name:function(){return TA},parse:function(){return EA},structure:function(){return CA}});var j={};n.r(j),n.d(j,{generate:function(){return RA},name:function(){return DA},parse:function(){return QA},structure:function(){return NA},walkContext:function(){return ZA}});var z={};n.r(z),n.d(z,{generate:function(){return jA},name:function(){return LA},parse:function(){return BA},structure:function(){return FA}});var U={};n.r(U),n.d(U,{generate:function(){return KA},name:function(){return GA},parse:function(){return JA},structure:function(){return VA}});var Y={};n.r(Y),n.d(Y,{generate:function(){return uP},name:function(){return aP},parse:function(){return lP},structure:function(){return sP}});var X={};n.r(X),n.d(X,{generate:function(){return dP},name:function(){return cP},parse:function(){return fP},structure:function(){return hP}});var H={};n.r(H),n.d(H,{generate:function(){return OP},name:function(){return mP},parse:function(){return vP},structure:function(){return gP}});var W={};n.r(W),n.d(W,{AnPlusB:function(){return s},Atrule:function(){return l},AtrulePrelude:function(){return u},AttributeSelector:function(){return c},Block:function(){return h},Brackets:function(){return f},CDC:function(){return d},CDO:function(){return p},ClassSelector:function(){return m},Combinator:function(){return g},Comment:function(){return v},Declaration:function(){return O},DeclarationList:function(){return y},Dimension:function(){return b},Function:function(){return k},Hash:function(){return S},IdSelector:function(){return w},Identifier:function(){return x},MediaFeature:function(){return T},MediaQuery:function(){return C},MediaQueryList:function(){return E},NestingSelector:function(){return A},Nth:function(){return P},Number:function(){return _},Operator:function(){return D},Parentheses:function(){return Z},Percentage:function(){return N},PseudoClassSelector:function(){return Q},PseudoElementSelector:function(){return R},Ratio:function(){return M},Raw:function(){return $},Rule:function(){return I},Selector:function(){return L},SelectorList:function(){return F},String:function(){return B},StyleSheet:function(){return j},TypeSelector:function(){return z},UnicodeRange:function(){return U},Url:function(){return Y},Value:function(){return X},WhiteSpace:function(){return H}});var q={};n.r(q),n.d(q,{AtrulePrelude:function(){return kP},Selector:function(){return SP},Value:function(){return wP}});var G={};function V(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.r(G),n.d(G,{AnPlusB:function(){return Gw},Atrule:function(){return rT},AtrulePrelude:function(){return lT},AttributeSelector:function(){return bT},Block:function(){return _T},Brackets:function(){return QT},CDC:function(){return IT},CDO:function(){return jT},ClassSelector:function(){return HT},Combinator:function(){return tC},Comment:function(){return sC},Declaration:function(){return SC},DeclarationList:function(){return _C},Dimension:function(){return QC},Function:function(){return LC},Hash:function(){return UC},IdSelector:function(){return JC},Identifier:function(){return WC},MediaFeature:function(){return nE},MediaQuery:function(){return aE},MediaQueryList:function(){return cE},NestingSelector:function(){return mE},Nth:function(){return yE},Number:function(){return xE},Operator:function(){return EE},Parentheses:function(){return DE},Percentage:function(){return RE},PseudoClassSelector:function(){return FE},PseudoElementSelector:function(){return YE},Ratio:function(){return JE},Raw:function(){return rA},Rule:function(){return cA},Selector:function(){return pA},SelectorList:function(){return yA},String:function(){return EA},StyleSheet:function(){return QA},TypeSelector:function(){return BA},UnicodeRange:function(){return JA},Url:function(){return lP},Value:function(){return fP},WhiteSpace:function(){return vP}});var J=n(3528),K=n.t(J,2),ee=n(6378),te=n(1026),ne=n(649),re=n(2951),ie=n(1976),oe=n(7591),ae=n(9616),se=n(7597),le=n(6983);var ue=n(8119);function ce(e,t,n){return ce=(0,ue.Z)()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&(0,le.Z)(i,n.prototype),i},ce.apply(null,arguments)}function he(e){var t="function"===typeof Map?new Map:void 0;return he=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return ce(e,arguments,(0,se.Z)(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),(0,le.Z)(r,e)},he(e)}var fe=n(6470),de=n(5181),pe=n(4013),me=n(3764);function ge(e){return(0,fe.Z)(e)||(0,de.Z)(e)||(0,pe.Z)(e)||(0,me.Z)()}var ve,Oe=n(726);function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Ae(e,t,n,r){void 0===r&&(r={});var i=r,o=i.window,a=void 0===o?document.defaultView:o,s=i.v5Compat,l=void 0!==s&&s,u=a.history,c=ve.Pop,h=null,f=d();function d(){return(u.state||{idx:null}).idx}function p(){c=ve.Pop;var e=d(),t=null==e?null:e-f;f=e,h&&h({action:c,location:g.location,delta:t})}function m(e){var t="null"!==a.location.origin?a.location.origin:a.location.href,n="string"===typeof e?e:Ce(e);return Se(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==f&&(f=0,u.replaceState(ye({},u.state,{idx:f}),""));var g={get action(){return c},get location(){return e(a,u)},listen:function(e){if(h)throw new Error("A history only accepts one active listener");return a.addEventListener(ke,p),h=e,function(){a.removeEventListener(ke,p),h=null}},createHref:function(e){return t(a,e)},createURL:m,encodeLocation:function(e){var t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c=ve.Push;var r=Te(g.location,e,t);n&&n(r,e);var i=we(r,f=d()+1),o=g.createHref(r);try{u.pushState(i,"",o)}catch(s){if(s instanceof DOMException&&"DataCloneError"===s.name)throw s;a.location.assign(o)}l&&h&&h({action:c,location:g.location,delta:1})},replace:function(e,t){c=ve.Replace;var r=Te(g.location,e,t);n&&n(r,e);var i=we(r,f=d()),o=g.createHref(r);u.replaceState(i,"",o),l&&h&&h({action:c,location:g.location,delta:0})},go:function(e){return u.go(e)}};return g}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(be||(be={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function Pe(e,t,n){void 0===n&&(n="/");var r=ze(("string"===typeof t?Ee(t):t).pathname||"/",n);if(null==r)return null;var i=_e(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(i);for(var o=null,a=0;null==o&&a0&&(Se(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),_e(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:Le(s,e.index),routesMeta:l})};return e.forEach((function(e,t){var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?")){var r,o=(0,Oe.Z)(De(e.path));try{for(o.s();!(r=o.n()).done;){var a=r.value;i(e,t,a)}}catch(s){o.e(s)}finally{o.f()}}else i(e,t)})),t}function De(e){var t=e.split("/");if(0===t.length)return[];var n=ge(t),r=n[0],i=n.slice(1),o=r.endsWith("?"),a=r.replace(/\?$/,"");if(0===i.length)return o?[a,""]:[a];var s=De(i.join("/")),l=[];return l.push.apply(l,(0,ne.Z)(s.map((function(e){return""===e?a:[a,e].join("/")})))),o&&l.push.apply(l,(0,ne.Z)(s)),l.map((function(t){return e.startsWith("/")&&""===t?"/":t}))}var Ze=/^:\w+$/,Ne=3,Qe=2,Re=1,Me=10,$e=-2,Ie=function(e){return"*"===e};function Le(e,t){var n=e.split("/"),r=n.length;return n.some(Ie)&&(r+=$e),t&&(r+=Qe),n.filter((function(e){return!Ie(e)})).reduce((function(e,t){return e+(Ze.test(t)?Ne:""===t?Re:Me)}),r)}function Fe(e,t){for(var n=e.routesMeta,r={},i="/",o=[],a=0;a and the router will parse it for you.'}function Ye(e){return e.filter((function(e,t){return 0===t||e.route.path&&e.route.path.length>0}))}function Xe(e,t,n,r){var i;void 0===r&&(r=!1),"string"===typeof e?i=Ee(e):(Se(!(i=ye({},e)).pathname||!i.pathname.includes("?"),Ue("?","pathname","search",i)),Se(!i.pathname||!i.pathname.includes("#"),Ue("#","pathname","hash",i)),Se(!i.search||!i.search.includes("#"),Ue("#","search","hash",i)));var o,a=""===e||""===i.pathname,s=a?"/":i.pathname;if(r||null==s)o=n;else{var l=t.length-1;if(s.startsWith("..")){for(var u=s.split("/");".."===u[0];)u.shift(),l-=1;i.pathname=u.join("/")}o=l>=0?t[l]:"/"}var c=function(e,t){void 0===t&&(t="/");var n="string"===typeof e?Ee(e):e,r=n.pathname,i=n.search,o=void 0===i?"":i,a=n.hash,s=void 0===a?"":a,l=r?r.startsWith("/")?r:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(r,t):t;return{pathname:l,search:qe(o),hash:Ge(s)}}(i,o),h=s&&"/"!==s&&s.endsWith("/"),f=(a||"."===s)&&n.endsWith("/");return c.pathname.endsWith("/")||!h&&!f||(c.pathname+="/"),c}var He=function(e){return e.join("/").replace(/\/\/+/g,"/")},We=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},qe=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},Ge=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""},Ve=function(e){(0,oe.Z)(n,e);var t=(0,ae.Z)(n);function n(){return(0,re.Z)(this,n),t.apply(this,arguments)}return(0,ie.Z)(n)}(he(Error));function Je(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}var Ke=["post","put","patch","delete"],et=(new Set(Ke),["get"].concat(Ke));new Set(et),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function tt(){return tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||Se(!1),o=o.slice(0,Math.min(o.length,s+1))}return o.reduceRight((function(e,r,i){var s=r.route.id?null==a?void 0:a[r.route.id]:null,l=null;n&&(l=r.route.errorElement||vt);var u=t.concat(o.slice(0,i+1)),c=function(){var t;return t=s?l:r.route.Component?J.createElement(r.route.Component,null):r.route.element?r.route.element:e,J.createElement(yt,{match:r,routeContext:{outlet:e,matches:u,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===i)?J.createElement(Ot,{location:n.location,revalidation:n.revalidation,component:l,error:s,children:c(),routeContext:{outlet:null,matches:u,isDataRoute:!0}}):c()}),null)}var kt=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(kt||{}),St=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(St||{});function xt(e){var t=J.useContext(nt);return t||Se(!1),t}function wt(e){var t=J.useContext(rt);return t||Se(!1),t}function Tt(e){var t=function(e){var t=J.useContext(st);return t||Se(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||Se(!1),n.route.id}K.startTransition;function Ct(e){return function(e){var t=J.useContext(st).outlet;return t?J.createElement(dt.Provider,{value:e},t):t}(e.context)}function Et(e){Se(!1)}function At(e){var t=e.basename,n=void 0===t?"/":t,r=e.children,i=void 0===r?null:r,o=e.location,a=e.navigationType,s=void 0===a?ve.Pop:a,l=e.navigator,u=e.static,c=void 0!==u&&u;ut()&&Se(!1);var h=n.replace(/^\/*/,"/"),f=J.useMemo((function(){return{basename:h,navigator:l,static:c}}),[h,l,c]);"string"===typeof o&&(o=Ee(o));var d=o,p=d.pathname,m=void 0===p?"/":p,g=d.search,v=void 0===g?"":g,O=d.hash,y=void 0===O?"":O,b=d.state,k=void 0===b?null:b,S=d.key,x=void 0===S?"default":S,w=J.useMemo((function(){var e=ze(m,h);return null==e?null:{location:{pathname:e,search:v,hash:y,state:k,key:x},navigationType:s}}),[h,m,v,y,k,x,s]);return null==w?null:J.createElement(ot.Provider,{value:f},J.createElement(at.Provider,{children:i,value:w}))}function Pt(e){var t=e.children,n=e.location;return mt(Zt(t),n)}var _t=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(_t||{}),Dt=new Promise((function(){}));J.Component;function Zt(e,t){void 0===t&&(t=[]);var n=[];return J.Children.forEach(e,(function(e,r){if(J.isValidElement(e)){var i=[].concat((0,ne.Z)(t),[r]);if(e.type!==J.Fragment){e.type!==Et&&Se(!1),e.props.index&&e.props.children&&Se(!1);var o={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=Zt(e.props.children,i)),n.push(o)}else n.push.apply(n,Zt(e.props.children,i))}})),n}function Nt(){return Nt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function Rt(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((function(t,n){var r=e[n];return t.concat(Array.isArray(r)?r.map((function(e){return[n,e]})):[[n,r]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);var Mt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],$t=["aria-current","caseSensitive","className","end","style","to","children"];var It=K.startTransition;function Lt(e){var t,n=e.basename,r=e.children,i=e.future,o=e.window,a=J.useRef();null==a.current&&(a.current=(void 0===(t={window:o,v5Compat:!0})&&(t={}),Ae((function(e,t){var n=Ee(e.location.hash.substr(1)),r=n.pathname,i=void 0===r?"/":r,o=n.search,a=void 0===o?"":o,s=n.hash,l=void 0===s?"":s;return i.startsWith("/")||i.startsWith(".")||(i="/"+i),Te("",{pathname:i,search:a,hash:l},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){var n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){var i=e.location.href,o=i.indexOf("#");r=-1===o?i:i.slice(0,o)}return r+"#"+("string"===typeof t?t:Ce(t))}),(function(e,t){xe("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),t)));var s=a.current,l=J.useState({action:s.action,location:s.location}),u=(0,te.Z)(l,2),c=u[0],h=u[1],f=(i||{}).v7_startTransition,d=J.useCallback((function(e){f&&It?It((function(){return h(e)})):h(e)}),[h,f]);return J.useLayoutEffect((function(){return s.listen(d)}),[s,d]),J.createElement(At,{basename:n,children:r,location:c.location,navigationType:c.action,navigator:s})}var Ft="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,Bt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jt=J.forwardRef((function(e,t){var n,r=e.onClick,i=e.relative,o=e.reloadDocument,a=e.replace,s=e.state,l=e.target,u=e.to,c=e.preventScrollReset,h=Qt(e,Mt),f=J.useContext(ot).basename,d=!1;if("string"===typeof u&&Bt.test(u)&&(n=u,Ft))try{var p=new URL(window.location.href),m=u.startsWith("//")?new URL(p.protocol+u):new URL(u),g=ze(m.pathname,f);m.origin===p.origin&&null!=g?u=g+m.search+m.hash:d=!0}catch(y){}var v=function(e,t){var n=(void 0===t?{}:t).relative;ut()||Se(!1);var r=J.useContext(ot),i=r.basename,o=r.navigator,a=pt(e,{relative:n}),s=a.hash,l=a.pathname,u=a.search,c=l;return"/"!==i&&(c="/"===l?i:He([i,l])),o.createHref({pathname:c,search:u,hash:s})}(u,{relative:i}),O=function(e,t){var n=void 0===t?{}:t,r=n.target,i=n.replace,o=n.state,a=n.preventScrollReset,s=n.relative,l=ft(),u=ct(),c=pt(e,{relative:s});return J.useCallback((function(t){if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,r)){t.preventDefault();var n=void 0!==i?i:Ce(u)===Ce(c);l(e,{replace:n,state:o,preventScrollReset:a,relative:s})}}),[u,l,c,i,o,r,e,a,s])}(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:i});return J.createElement("a",Nt({},h,{href:n||v,onClick:d||o?r:function(e){r&&r(e),e.defaultPrevented||O(e)},ref:t,target:l}))}));var zt=J.forwardRef((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,i=e.caseSensitive,o=void 0!==i&&i,a=e.className,s=void 0===a?"":a,l=e.end,u=void 0!==l&&l,c=e.style,h=e.to,f=e.children,d=Qt(e,$t),p=pt(h,{relative:d.relative}),m=ct(),g=J.useContext(rt),v=J.useContext(ot).navigator,O=v.encodeLocation?v.encodeLocation(p).pathname:p.pathname,y=m.pathname,b=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;o||(y=y.toLowerCase(),b=b?b.toLowerCase():null,O=O.toLowerCase());var k,S=y===O||!u&&y.startsWith(O)&&"/"===y.charAt(O.length),x=null!=b&&(b===O||!u&&b.startsWith(O)&&"/"===b.charAt(O.length)),w=S?r:void 0;k="function"===typeof s?s({isActive:S,isPending:x}):[s,S?"active":null,x?"pending":null].filter(Boolean).join(" ");var T="function"===typeof c?c({isActive:S,isPending:x}):c;return J.createElement(jt,Nt({},d,{"aria-current":w,className:k,ref:t,style:T,to:h}),"function"===typeof f?f({isActive:S,isPending:x}):f)}));var Ut,Yt;function Xt(e){var t=J.useRef(Rt(e)),n=J.useRef(!1),r=ct(),i=J.useMemo((function(){return function(e,t){var n=Rt(e);return t&&t.forEach((function(e,r){n.has(r)||t.getAll(r).forEach((function(e){n.append(r,e)}))})),n}(r.search,n.current?null:t.current)}),[r.search]),o=ft(),a=J.useCallback((function(e,t){var r=Rt("function"===typeof e?e(i):e);n.current=!0,o("?"+r,t)}),[o,i]);return[i,a]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(Ut||(Ut={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Yt||(Yt={}));function Ht(){return Ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var qt=n(9584),Gt=["className","prefixCls","element","top","size","strokeWidth","smooth","hideProgress","children"],Vt={position:"sticky",bottom:15,right:15,visibility:"visible",opacity:0,transition:"visibility 0.3s linear 0s, opacity 0.3s linear 0s",cursor:"pointer",userSelect:"none"},Jt={display:"block",transform:"rotate(-90deg)"},Kt={transition:"stroke-dashoffset 0.3s linear 0s"},en={position:"absolute",top:0,display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center",color:"#fff",fontSize:12},tn=document.documentElement;function nn(e){void 0===e&&(e={});var t=e,n=t.className,r=t.prefixCls,i=void 0===r?"w-back-to-up":r,o=t.element,a=void 0===o?tn:o,s=t.top,l=void 0===s?120:s,u=t.size,c=void 0===u?35:u,h=t.strokeWidth,f=void 0===h?3:h,d=t.smooth,p=void 0===d||d,m=t.hideProgress,g=void 0!==m&&m,v=t.children,O=Wt(e,Gt),y=(0,J.useRef)(null),b=[n,i].filter(Boolean).join(" "),k=Object.assign({},Vt,{position:a===tn?"fixed":"sticky"},O.style,{width:c,height:c,opacity:0===l?1:0}),S=(0,J.useMemo)((function(){return c/2}),[c]),x=(0,J.useMemo)((function(){return c/2-f/2}),[c,f]),w=(0,J.useMemo)((function(){return Math.PI*x*2}),[x]),T=(0,J.useState)(w||0),C=(0,te.Z)(T,2),E=C[0],A=C[1],P=function(e){var t=a||tn,n=t.clientHeight,r=t.scrollHeight,i=t.scrollTop;A(w-w*(i/(r-n))||0),y.current&&l>0&&(y.current.style.opacity=i>l?"1":"0")};(0,J.useEffect)((function(){var e=a===tn?document:a;return e&&e.addEventListener("scroll",P,{passive:!0}),function(){e&&e.removeEventListener("scroll",P)}}),[a]);return(0,qt.jsxs)("div",Ht({className:b,ref:y},O,{onClick:function(e){a.scrollTo({top:0,behavior:p?"smooth":"auto"})},style:k,children:[!g&&(0,qt.jsxs)("svg",{viewBox:"0 0 "+c+" "+c,width:c,height:c,focusable:"false",style:Jt,children:[(0,qt.jsx)("circle",{fill:"rgb(0 0 0 / 75%)",stroke:"rgb(200 200 200 / 85%)",strokeWidth:f,r:x,cx:S,cy:S}),(0,qt.jsx)("circle",{fill:"none",stroke:"rgb(0 0 0 / 50%)",strokeWidth:f,r:x,cx:S,cy:S,strokeDasharray:w,strokeDashoffset:E||0,style:Kt})]}),v&&(0,qt.jsx)("div",{style:en,children:v})]}))}var rn=n(189),on=n(4649),an={data:""},sn=function(e){return"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||an},ln=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,un=/\/\*[^]*?\*\/| +/g,cn=/\n+/g,hn=function e(t,n){var r="",i="",o="",a=function(a){var s=t[a];"@"==a[0]?"i"==a[1]?r=a+" "+s+";":i+="f"==a[1]?e(s,a):a+"{"+e(s,"k"==a[1]?"":n)+"}":"object"==typeof s?i+=e(s,n?n.replace(/([^,])+/g,(function(e){return a.replace(/(^:.*)|([^,])+/g,(function(t){return/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t}))})):a):null!=s&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=e.p?e.p(a,s):a+":"+s+";")};for(var s in t)a(s);return r+(n&&o?n+"{"+o+"}":o)+i},fn={},dn=function e(t){if("object"==typeof t){var n="";for(var r in t)n+=r+e(t[r]);return n}return t},pn=function(e,t,n,r,i){var o=dn(e),a=fn[o]||(fn[o]=function(e){for(var t=0,n=11;t>>0;return"go"+n}(o));if(!fn[a]){var s=o!==e?e:function(e){for(var t,n,r=[{}];t=ln.exec(e.replace(un,""));)t[4]?r.shift():t[3]?(n=t[3].replace(cn," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(cn," ").trim();return r[0]}(e);fn[a]=hn(i?(0,on.Z)({},"@keyframes "+a,s):s,n?"":"."+a)}var l=n&&fn.g?fn.g:null;return n&&(fn.g=fn[a]),function(e,t,n,r){r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)}(fn[a],t,r,l),a},mn=function(e,t,n){return e.reduce((function(e,r,i){var o=t[i];if(o&&o.call){var a=o(n),s=a&&a.props&&a.props.className||/^go/.test(a)&&a;o=s?"."+s:a&&"object"==typeof a?a.props?"":hn(a,""):!1===a?"":a}return e+r+(null==o?"":o)}),"")};function gn(e){var t=this||{},n=e.call?e(t.p):e;return pn(n.unshift?n.raw?mn(n,[].slice.call(arguments,1),t.p):n.reduce((function(e,n){return Object.assign(e,n&&n.call?n(t.p):n)}),{}):n,sn(t.target),t.g,t.o,t.k)}gn.bind({g:1});var vn,On,yn,bn,kn,Sn,xn,wn,Tn,Cn,En,An,Pn,_n,Dn,Zn,Nn,Qn,Rn,Mn=gn.bind({k:1});function $n(e,t){var n=this||{};return function(){var r=arguments;function i(o,a){var s=Object.assign({},o),l=s.className||i.className;n.p=Object.assign({theme:On&&On()},s),n.o=/ *go\d+/.test(l),s.className=gn.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);var u=e;return e[0]&&(u=s.as||e,delete s.as),yn&&u[0]&&yn(s),vn(u,s)}return t?t(i):i}}var In=function(e,t){return function(e){return"function"==typeof e}(e)?e(t):e},Ln=function(){var e=0;return function(){return(++e).toString()}}(),Fn=function(){var e;return function(){if(void 0===e&&typeof window<"u"){var t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}}(),Bn=new Map,jn=function(e){if(!Bn.has(e)){var t=setTimeout((function(){Bn.delete(e),Xn({type:4,toastId:e})}),1e3);Bn.set(e,t)}},zn=function e(t,n){switch(n.type){case 0:return(0,rn.Z)((0,rn.Z)({},t),{},{toasts:[n.toast].concat((0,ne.Z)(t.toasts)).slice(0,20)});case 1:return n.toast.id&&function(e){var t=Bn.get(e);t&&clearTimeout(t)}(n.toast.id),(0,rn.Z)((0,rn.Z)({},t),{},{toasts:t.toasts.map((function(e){return e.id===n.toast.id?(0,rn.Z)((0,rn.Z)({},e),n.toast):e}))});case 2:var r=n.toast;return t.toasts.find((function(e){return e.id===r.id}))?e(t,{type:1,toast:r}):e(t,{type:0,toast:r});case 3:var i=n.toastId;return i?jn(i):t.toasts.forEach((function(e){jn(e.id)})),(0,rn.Z)((0,rn.Z)({},t),{},{toasts:t.toasts.map((function(e){return e.id===i||void 0===i?(0,rn.Z)((0,rn.Z)({},e),{},{visible:!1}):e}))});case 4:return void 0===n.toastId?(0,rn.Z)((0,rn.Z)({},t),{},{toasts:[]}):(0,rn.Z)((0,rn.Z)({},t),{},{toasts:t.toasts.filter((function(e){return e.id!==n.toastId}))});case 5:return(0,rn.Z)((0,rn.Z)({},t),{},{pausedAt:n.time});case 6:var o=n.time-(t.pausedAt||0);return(0,rn.Z)((0,rn.Z)({},t),{},{pausedAt:void 0,toasts:t.toasts.map((function(e){return(0,rn.Z)((0,rn.Z)({},e),{},{pauseDuration:e.pauseDuration+o})}))})}},Un=[],Yn={toasts:[],pausedAt:void 0},Xn=function(e){Yn=zn(Yn,e),Un.forEach((function(e){e(Yn)}))},Hn={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Wn=function(e){return function(t,n){var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"blank",n=arguments.length>2?arguments[2]:void 0;return(0,rn.Z)((0,rn.Z)({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0},n),{},{id:(null==n?void 0:n.id)||Ln()})}(t,e,n);return Xn({type:2,toast:r}),r.id}},qn=function(e,t){return Wn("blank")(e,t)};qn.error=Wn("error"),qn.success=Wn("success"),qn.loading=Wn("loading"),qn.custom=Wn("custom"),qn.dismiss=function(e){Xn({type:3,toastId:e})},qn.remove=function(e){return Xn({type:4,toastId:e})},qn.promise=function(e,t,n){var r=qn.loading(t.loading,(0,rn.Z)((0,rn.Z)({},n),null==n?void 0:n.loading));return e.then((function(e){return qn.success(In(t.success,e),(0,rn.Z)((0,rn.Z)({id:r},n),null==n?void 0:n.success)),e})).catch((function(e){qn.error(In(t.error,e),(0,rn.Z)((0,rn.Z)({id:r},n),null==n?void 0:n.error))})),e};var Gn=function(e,t){Xn({type:1,toast:{id:e,height:t}})},Vn=function(){Xn({type:5,time:Date.now()})},Jn=function(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,J.useState)(Yn),n=(0,te.Z)(t,2),r=n[0],i=n[1];(0,J.useEffect)((function(){return Un.push(i),function(){var e=Un.indexOf(i);e>-1&&Un.splice(e,1)}}),[r]);var o=r.toasts.map((function(t){var n,r;return(0,rn.Z)((0,rn.Z)((0,rn.Z)((0,rn.Z)({},e),e[t.type]),t),{},{duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||Hn[t.type],style:(0,rn.Z)((0,rn.Z)((0,rn.Z)({},e.style),null==(r=e[t.type])?void 0:r.style),t.style)})}));return(0,rn.Z)((0,rn.Z)({},r),{},{toasts:o})}(e),n=t.toasts,r=t.pausedAt;(0,J.useEffect)((function(){if(!r){var e=Date.now(),t=n.map((function(t){if(t.duration!==1/0){var n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(n<0))return setTimeout((function(){return qn.dismiss(t.id)}),n);t.visible&&qn.dismiss(t.id)}}));return function(){t.forEach((function(e){return e&&clearTimeout(e)}))}}}),[n,r]);var i=(0,J.useCallback)((function(){r&&Xn({type:6,time:Date.now()})}),[r]),o=(0,J.useCallback)((function(e,t){var r,i=t||{},o=i.reverseOrder,a=void 0!==o&&o,s=i.gutter,l=void 0===s?8:s,u=i.defaultPosition,c=n.filter((function(t){return(t.position||u)===(e.position||u)&&t.height})),h=c.findIndex((function(t){return t.id===e.id})),f=c.filter((function(e,t){return t * {\n pointer-events: auto;\n }\n"]))),br=function(e){var t=e.reverseOrder,n=e.position,r=void 0===n?"top-center":n,i=e.toastOptions,o=e.gutter,a=e.children,s=e.containerStyle,l=e.containerClassName,u=Jn(i),c=u.toasts,h=u.handlers;return J.createElement("div",{style:(0,rn.Z)({position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none"},s),className:l,onMouseEnter:h.startPause,onMouseLeave:h.endPause},c.map((function(e){var n=e.position||r,i=function(e,t){var n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return(0,rn.Z)((0,rn.Z)({left:0,right:0,display:"flex",position:"absolute",transition:Fn()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY(".concat(t*(n?1:-1),"px)")},r),i)}(n,h.calculateOffset(e,{reverseOrder:t,gutter:o,defaultPosition:r}));return J.createElement(Or,{id:e.id,key:e.id,onHeightUpdate:h.updateHeight,className:e.visible?yr:"",style:i},"custom"===e.type?In(e.message,e):a?a(e):J.createElement(vr,{toast:e,position:n}))})))},kr=qn;var Sr=function(){return Sr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?jr(Kr,--Vr):0,qr--,10===Jr&&(qr=1,Wr--),Jr}function ii(){return Jr=Vr2||li(Jr)>3?"":" "}function di(e,t){for(;--t&&ii()&&!(Jr<48||Jr>102||Jr>57&&Jr<65||Jr>70&&Jr<97););return si(e,ai()+(t<6&&32==oi()&&32==ii()))}function pi(e){for(;ii();)switch(Jr){case e:return Vr;case 34:case 39:34!==e&&39!==e&&pi(Jr);break;case 40:41===e&&pi(e);break;case 92:ii()}return Vr}function mi(e,t){for(;ii()&&e+Jr!==57&&(e+Jr!==84||47!==oi()););return"/*"+si(t,Vr-1)+"*"+Mr(47===e?e:ii())}function gi(e){for(;!li(oi());)ii();return si(e,Vr)}function vi(e,t){for(var n="",r=0;r6)switch(jr(e,t+1)){case 109:if(45!==jr(e,t+4))break;case 102:return Fr(e,/(.+:)(.+)-([^]+)/,"$1"+Ar+"$2-$3$1"+Er+(108==jr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Br(e,"stretch")?yi(Fr(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Fr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,i,o,a,s){return Cr+n+":"+r+s+(i?Cr+n+"-span:"+(o?a:+a-+r)+s:"")+e}));case 4949:if(121===jr(e,t+6))return Fr(e,":",":"+Ar)+e;break;case 6444:switch(jr(e,45===jr(e,14)?18:11)){case 120:return Fr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ar+(45===jr(e,14)?"inline-":"")+"box$3$1"+Ar+"$2$3$1"+Cr+"$2box$3")+e;case 100:return Fr(e,":",":"+Cr)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Fr(e,"scroll-","scroll-snap-")+e}return e}function bi(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Dr:return void(e.return=yi(e.value,e.length,n));case Nr:return vi([ti(e,{value:Fr(e.value,"@","@"+Ar)})],r);case _r:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(Lr(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ni(ti(e,{props:[Fr(t,/:(read-\w+)/,":"+Er+"$1")]})),ni(ti(e,{props:[t]})),$r(e,{props:Hr(n,r)});break;case"::placeholder":ni(ti(e,{props:[Fr(t,/:(plac\w+)/,":"+Ar+"input-$1")]})),ni(ti(e,{props:[Fr(t,/:(plac\w+)/,":"+Er+"$1")]})),ni(ti(e,{props:[Fr(t,/:(plac\w+)/,Cr+"input-$1")]})),ni(ti(e,{props:[t]})),$r(e,{props:Hr(n,r)})}return""}))}}function ki(e){return ci(Si("",null,null,null,[""],e=ui(e),0,[0],e))}function Si(e,t,n,r,i,o,a,s,l){for(var u=0,c=0,h=a,f=0,d=0,p=0,m=1,g=1,v=1,O=0,y="",b=i,k=o,S=r,x=y;g;)switch(p=O,O=ii()){case 40:if(108!=p&&58==jr(x,h-1)){-1!=Br(x+=Fr(hi(O),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:x+=hi(O);break;case 9:case 10:case 13:case 32:x+=fi(p);break;case 92:x+=di(ai()-1,7);continue;case 47:switch(oi()){case 42:case 47:Xr(wi(mi(ii(),ai()),t,n,l),l);break;default:x+="/"}break;case 123*m:s[u++]=Ur(x)*v;case 125*m:case 59:case 0:switch(O){case 0:case 125:g=0;case 59+c:-1==v&&(x=Fr(x,/\f/g,"")),d>0&&Ur(x)-h&&Xr(d>32?Ti(x+";",r,n,h-1,l):Ti(Fr(x," ","")+";",r,n,h-2,l),l);break;case 59:x+=";";default:if(Xr(S=xi(x,t,n,u,c,i,s,y,b=[],k=[],h,o),o),123===O)if(0===c)Si(x,t,S,S,b,o,h,s,k);else switch(99===f&&110===jr(x,3)?100:f){case 100:case 108:case 109:case 115:Si(e,S,S,r&&Xr(xi(e,S,S,0,0,i,s,y,i,b=[],h,k),k),i,k,h,s,r?b:k);break;default:Si(x,S,S,S,[""],k,0,s,k)}}u=c=d=0,m=v=1,y=x="",h=a;break;case 58:h=1+Ur(x),d=p;default:if(m<1)if(123==O)--m;else if(125==O&&0==m++&&125==ri())continue;switch(x+=Mr(O),O*m){case 38:v=c>0?1:(x+="\f",-1);break;case 44:s[u++]=(Ur(x)-1)*v,v=1;break;case 64:45===oi()&&(x+=hi(ii())),f=oi(),c=h=Ur(y=x+=gi(ai())),O++;break;case 45:45===p&&2==Ur(x)&&(m=0)}}return o}function xi(e,t,n,r,i,o,a,s,l,u,c,h){for(var f=i-1,d=0===i?o:[""],p=Yr(d),m=0,g=0,v=0;m0?d[O]+" "+y:Fr(y,/&\f/g,d[O])))&&(l[v++]=b);return ei(e,t,n,0===i?_r:s,l,u,c,h)}function wi(e,t,n,r){return ei(e,t,n,Pr,Mr(Jr),zr(e,2,-2),0,r)}function Ti(e,t,n,r,i){return ei(e,t,n,Dr,zr(e,0,r),zr(e,r+1,-1),r,i)}var Ci={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ei=n(3617),Ai="undefined"!=typeof Ei&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_ATTR||{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_ATTR)||"data-styled",Pi="undefined"!=typeof window&&"HTMLElement"in window,_i=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof Ei&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY?"false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof Ei&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&("false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY)),Di={},Zi=(new Set,Object.freeze([])),Ni=Object.freeze({});function Qi(e,t,n){return void 0===n&&(n=Ni),e.theme!==n.theme&&e.theme||t||n.theme}var Ri=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Mi=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,$i=/(^-|-$)/g;function Ii(e){return e.replace(Mi,"-").replace($i,"")}var Li=/(a)(d)/gi,Fi=function(e){return String.fromCharCode(e+(e>25?39:97))};function Bi(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Fi(t%52)+n;return(Fi(t%52)+n).replace(Li,"$1-$2")}var ji,zi=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ui=function(e){return zi(5381,e)};function Yi(e){return Bi(Ui(e)>>>0)}function Xi(e){return"string"==typeof e&&!0}var Hi="function"==typeof Symbol&&Symbol.for,Wi=Hi?Symbol.for("react.memo"):60115,qi=Hi?Symbol.for("react.forward_ref"):60112,Gi={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Vi={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ji={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ki=((ji={})[qi]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ji[Wi]=Ji,ji);function eo(e){return("type"in(t=e)&&t.type.$$typeof)===Wi?Ji:"$$typeof"in e?Ki[e.$$typeof]:Gi;var t}var to=Object.defineProperty,no=Object.getOwnPropertyNames,ro=Object.getOwnPropertySymbols,io=Object.getOwnPropertyDescriptor,oo=Object.getPrototypeOf,ao=Object.prototype;function so(e,t,n){if("string"!=typeof t){if(ao){var r=oo(t);r&&r!==ao&&so(e,r,n)}var i=no(t);ro&&(i=i.concat(ro(t)));for(var o=eo(e),a=eo(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}var vo=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)if((i<<=1)<0)throw go(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e0&&(l+="".concat(e,","))})),r+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat("/*!sc*/\n")},o=0;o0?".".concat(t):e},c=l.slice();c.push((function(e){e.type===_r&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Ro,n).replace(r,u))})),a.prefix&&c.push(bi),c.push(Oi);var h=function(e,i,o,s){void 0===i&&(i=""),void 0===o&&(o=""),void 0===s&&(s="&"),t=s,n=i,r=new RegExp("\\".concat(n,"\\b"),"g");var l=e.replace(Mo,""),u=ki(o||i?"".concat(o," ").concat(i," { ").concat(l," }"):l);a.namespace&&(u=$o(u,a.namespace));var h,f=[];return vi(u,function(e){var t=Yr(e);return function(n,r,i,o){for(var a="",s=0;s="A"&&e<="Z"};function Ho(e){for(var t="",n=0;n>>0);if(!t.hasNameForId(this.componentId,o)){var a=n(i,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,a)}r=co(r,o),this.staticRulesId=o}else{for(var s=zi(this.baseHash,n.hash),l="",u=0;u>>0);t.hasNameForId(this.componentId,f)||t.insertRules(this.componentId,f,n(l,".".concat(f),void 0,this.componentId)),r=co(r,f)}}return r},e}(),ea=J.createContext(void 0);ea.Consumer;var ta={};new Set;function na(e,t,n){var r=uo(e),i=e,o=!Xi(e),a=t.attrs,s=void 0===a?Zi:a,l=t.componentId,u=void 0===l?function(e,t){var n="string"!=typeof e?"sc":Ii(e);ta[n]=(ta[n]||0)+1;var r="".concat(n,"-").concat(Yi("6.0.7"+n+ta[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):l,c=t.displayName,h=(void 0===c&&function(e){Xi(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e),t.displayName&&t.componentId?"".concat(Ii(t.displayName),"-").concat(t.componentId):t.componentId||u),f=r&&i.attrs?i.attrs.concat(s).filter(Boolean):s,d=t.shouldForwardProp;if(r&&i.shouldForwardProp){var p=i.shouldForwardProp;if(t.shouldForwardProp){var m=t.shouldForwardProp;d=function(e,t){return p(e,t)&&m(e,t)}}else d=p}var g=new Ko(n,h,r?i.componentStyle:void 0);var v=J.forwardRef((function(e,t){return function(e,t,n){var r=e.attrs,i=e.componentStyle,o=e.defaultProps,a=e.foldedComponentIds,s=e.styledComponentId,l=e.target,u=J.useContext(ea),c=zo(),h=e.shouldForwardProp||c.shouldForwardProp,f=function(e,t,n){for(var r,i=Sr(Sr({},t),{className:void 0,theme:n}),o=0;o2&&Qo.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();(function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=Eo(),r=ho([n&&'nonce="'.concat(n,'"'),"".concat(Ai,'="true"'),"".concat("data-styled-version",'="').concat("6.0.7",'"')].filter(Boolean)," ");return"")},this.getStyleTags=function(){if(e.sealed)throw go(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw go(2);var n=((t={})[Ai]="",t["data-styled-version"]="6.0.7",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=Eo();return r&&(n.nonce=r),[J.createElement("style",Sr({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Qo({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw go(2);return J.createElement(Uo,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw go(3)}})(),"__sc-".concat(Ai,"__");var ca="undefined"===typeof window||"Deno"in window;function ha(){}function fa(e){return"number"===typeof e&&e>=0&&e!==1/0}function da(e,t){return Math.max(e+(t||0)-Date.now(),0)}function pa(e,t,n){return Ea(e)?"function"===typeof t?(0,rn.Z)((0,rn.Z)({},n),{},{queryKey:e,queryFn:t}):(0,rn.Z)((0,rn.Z)({},t),{},{queryKey:e}):e}function ma(e,t,n){return Ea(e)?[(0,rn.Z)((0,rn.Z)({},t),{},{queryKey:e}),n]:[e||{},t]}function ga(e,t){var n=e.type,r=void 0===n?"all":n,i=e.exact,o=e.fetchStatus,a=e.predicate,s=e.queryKey,l=e.stale;if(Ea(s))if(i){if(t.queryHash!==Oa(s,t.options))return!1}else if(!ba(t.queryKey,s))return!1;if("all"!==r){var u=t.isActive();if("active"===r&&!u)return!1;if("inactive"===r&&u)return!1}return("boolean"!==typeof l||t.isStale()===l)&&(("undefined"===typeof o||o===t.state.fetchStatus)&&!(a&&!a(t)))}function va(e,t){var n=e.exact,r=e.fetching,i=e.predicate,o=e.mutationKey;if(Ea(o)){if(!t.options.mutationKey)return!1;if(n){if(ya(t.options.mutationKey)!==ya(o))return!1}else if(!ba(t.options.mutationKey,o))return!1}return("boolean"!==typeof r||"loading"===t.state.status===r)&&!(i&&!i(t))}function Oa(e,t){return((null==t?void 0:t.queryKeyHashFn)||ya)(e)}function ya(e){return JSON.stringify(e,(function(e,t){return Ta(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}))}function ba(e,t){return ka(e,t)}function ka(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some((function(n){return!ka(e[n],t[n])})))}function Sa(e,t){if(e===t)return e;var n=wa(e)&&wa(t);if(n||Ta(e)&&Ta(t)){for(var r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{},s=0,l=0;l0}},{key:"onSubscribe",value:function(){}},{key:"onUnsubscribe",value:function(){}}]),e}(),Ra=new(function(e){(0,oe.Z)(n,e);var t=(0,ae.Z)(n);function n(){var e;return(0,re.Z)(this,n),(e=t.call(this)).setup=function(e){if(!ca&&window.addEventListener){var t=function(){return e()};return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),function(){window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}},e}return(0,ie.Z)(n,[{key:"onSubscribe",value:function(){this.cleanup||this.setEventListener(this.setup)}},{key:"onUnsubscribe",value:function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}},{key:"setEventListener",value:function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"===typeof e?n.setFocused(e):n.onFocus()}))}},{key:"setFocused",value:function(e){this.focused!==e&&(this.focused=e,this.onFocus())}},{key:"onFocus",value:function(){this.listeners.forEach((function(e){(0,e.listener)()}))}},{key:"isFocused",value:function(){return"boolean"===typeof this.focused?this.focused:"undefined"===typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}]),n}(Qa)),Ma=["online","offline"],$a=new(function(e){(0,oe.Z)(n,e);var t=(0,ae.Z)(n);function n(){var e;return(0,re.Z)(this,n),(e=t.call(this)).setup=function(e){if(!ca&&window.addEventListener){var t=function(){return e()};return Ma.forEach((function(e){window.addEventListener(e,t,!1)})),function(){Ma.forEach((function(e){window.removeEventListener(e,t)}))}}},e}return(0,ie.Z)(n,[{key:"onSubscribe",value:function(){this.cleanup||this.setEventListener(this.setup)}},{key:"onUnsubscribe",value:function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}},{key:"setEventListener",value:function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"===typeof e?n.setOnline(e):n.onOnline()}))}},{key:"setOnline",value:function(e){this.online!==e&&(this.online=e,this.onOnline())}},{key:"onOnline",value:function(){this.listeners.forEach((function(e){(0,e.listener)()}))}},{key:"isOnline",value:function(){return"boolean"===typeof this.online?this.online:"undefined"===typeof navigator||"undefined"===typeof navigator.onLine||navigator.onLine}}]),n}(Qa));function Ia(e){return Math.min(1e3*Math.pow(2,e),3e4)}function La(e){return"online"!==(null!=e?e:"online")||$a.isOnline()}var Fa=(0,ie.Z)((function e(t){(0,re.Z)(this,e),this.revert=null==t?void 0:t.revert,this.silent=null==t?void 0:t.silent}));function Ba(e){return e instanceof Fa}function ja(e){var t,n,r,i=!1,o=0,a=!1,s=new Promise((function(e,t){n=e,r=t})),l=function(){return!Ra.isFocused()||"always"!==e.networkMode&&!$a.isOnline()},u=function(r){a||(a=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},c=function(n){a||(a=!0,null==e.onError||e.onError(n),null==t||t(),r(n))},h=function(){return new Promise((function(n){t=function(e){var t=a||!l();return t&&n(e),t},null==e.onPause||e.onPause()})).then((function(){t=void 0,a||null==e.onContinue||e.onContinue()}))},f=function t(){if(!a){var n;try{n=e.fn()}catch(r){n=Promise.reject(r)}Promise.resolve(n).then(u).catch((function(n){var r,s;if(!a){var u=null!=(r=e.retry)?r:3,f=null!=(s=e.retryDelay)?s:Ia,d="function"===typeof f?f(o,n):f,p=!0===u||"number"===typeof u&&o0&&!this.isActive()}},{key:"isStale",value:function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))}},{key:"isStaleByTime",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.state.isInvalidated||!this.state.dataUpdatedAt||!da(this.state.dataUpdatedAt,e)}},{key:"onFocus",value:function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}},{key:"onOnline",value:function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}},{key:"addObserver",value:function(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}},{key:"removeObserver",value:function(e){this.observers.includes(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}},{key:"getObserversCount",value:function(){return this.observers.length}},{key:"invalidate",value:function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}},{key:"fetch",value:function(e,t){var n,r,i=this;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return null==(o=this.retryer)||o.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var a=this.observers.find((function(e){return e.options.queryFn}));a&&this.setOptions(a.options)}Array.isArray(this.options.queryKey);var s=function(){if("function"===typeof AbortController)return new AbortController}(),l={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},u=function(e){Object.defineProperty(e,"signal",{enumerable:!0,get:function(){if(s)return i.abortSignalConsumed=!0,s.signal}})};u(l);var c,h={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:function(){return i.options.queryFn?(i.abortSignalConsumed=!1,i.options.queryFn(l)):Promise.reject("Missing queryFn for queryKey '"+i.options.queryHash+"'")}};(u(h),null==(n=this.options.behavior)||n.onFetch(h),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=h.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(c=h.fetchOptions)?void 0:c.meta});var f=function(e){var t,n,r,o;(Ba(e)&&e.silent||i.dispatch({type:"error",error:e}),Ba(e))||(null==(t=(n=i.cache.config).onError)||t.call(n,e,i),null==(r=(o=i.cache.config).onSettled)||r.call(o,i.state.data,e,i));i.isFetchingOptimistic||i.scheduleGc(),i.isFetchingOptimistic=!1};return this.retryer=ja({fn:h.fetchFn,abort:null==s?void 0:s.abort.bind(s),onSuccess:function(e){var t,n,r,o;"undefined"!==typeof e?(i.setData(e),null==(t=(n=i.cache.config).onSuccess)||t.call(n,e,i),null==(r=(o=i.cache.config).onSettled)||r.call(o,e,i.state.error,i),i.isFetchingOptimistic||i.scheduleGc(),i.isFetchingOptimistic=!1):f(new Error(i.queryHash+" data is undefined"))},onError:f,onFail:function(e,t){i.dispatch({type:"failed",failureCount:e,error:t})},onPause:function(){i.dispatch({type:"pause"})},onContinue:function(){i.dispatch({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode}),this.promise=this.retryer.promise,this.promise}},{key:"dispatch",value:function(e){var t=this;this.state=function(n){var r,i;switch(e.type){case"failed":return(0,rn.Z)((0,rn.Z)({},n),{},{fetchFailureCount:e.failureCount,fetchFailureReason:e.error});case"pause":return(0,rn.Z)((0,rn.Z)({},n),{},{fetchStatus:"paused"});case"continue":return(0,rn.Z)((0,rn.Z)({},n),{},{fetchStatus:"fetching"});case"fetch":return(0,rn.Z)((0,rn.Z)({},n),{},{fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(r=e.meta)?r:null,fetchStatus:La(t.options.networkMode)?"fetching":"paused"},!n.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,rn.Z)((0,rn.Z)({},n),{},{data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:null!=(i=e.dataUpdatedAt)?i:Date.now(),error:null,isInvalidated:!1,status:"success"},!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":var o=e.error;return Ba(o)&&o.revert&&t.revertState?(0,rn.Z)({},t.revertState):(0,rn.Z)((0,rn.Z)({},n),{},{error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"});case"invalidate":return(0,rn.Z)((0,rn.Z)({},n),{},{isInvalidated:!0});case"setState":return(0,rn.Z)((0,rn.Z)({},n),e.state)}}(this.state),Na.batch((function(){t.observers.forEach((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"updated",action:e})}))}}]),n}(za);var Ya=function(e){(0,oe.Z)(n,e);var t=(0,ae.Z)(n);function n(e){var r;return(0,re.Z)(this,n),(r=t.call(this)).config=e||{},r.queries=[],r.queriesMap={},r}return(0,ie.Z)(n,[{key:"build",value:function(e,t,n){var r,i=t.queryKey,o=null!=(r=t.queryHash)?r:Oa(i,t),a=this.get(o);return a||(a=new Ua({cache:this,logger:e.getLogger(),queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(a)),a}},{key:"add",value:function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}},{key:"remove",value:function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((function(t){return t!==e})),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}},{key:"clear",value:function(){var e=this;Na.batch((function(){e.queries.forEach((function(t){e.remove(t)}))}))}},{key:"get",value:function(e){return this.queriesMap[e]}},{key:"getAll",value:function(){return this.queries}},{key:"find",value:function(e,t){var n=ma(e,t),r=(0,te.Z)(n,1)[0];return"undefined"===typeof r.exact&&(r.exact=!0),this.queries.find((function(e){return ga(r,e)}))}},{key:"findAll",value:function(e,t){var n=ma(e,t),r=(0,te.Z)(n,1)[0];return Object.keys(r).length>0?this.queries.filter((function(e){return ga(r,e)})):this.queries}},{key:"notify",value:function(e){var t=this;Na.batch((function(){t.listeners.forEach((function(t){(0,t.listener)(e)}))}))}},{key:"onFocus",value:function(){var e=this;Na.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))}},{key:"onOnline",value:function(){var e=this;Na.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))}}]),n}(Qa),Xa=n(3940);function Ha(){Ha=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new _(r||[]);return i(a,"_invoke",{value:C(e,n,s)}),a}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f="suspendedStart",d="suspendedYield",p="executing",m="completed",g={};function v(){}function O(){}function y(){}var b={};u(b,a,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(D([])));S&&S!==n&&r.call(S,a)&&(b=S);var x=y.prototype=v.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function n(i,o,a,s){var l=h(e[i],e,o);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==(0,Xa.Z)(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function C(t,n,r){var i=f;return function(o,a){if(i===p)throw new Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=E(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(t,n,r);if("normal"===u.type){if(i=r.done?m:d,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function E(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;P(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:D(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function Wa(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}var qa=function(e){(0,oe.Z)(n,e);var t=(0,ae.Z)(n);function n(e){var r;return(0,re.Z)(this,n),(r=t.call(this)).defaultOptions=e.defaultOptions,r.mutationId=e.mutationId,r.mutationCache=e.mutationCache,r.logger=e.logger||Za,r.observers=[],r.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},r.setOptions(e.options),r.scheduleGc(),r}return(0,ie.Z)(n,[{key:"setOptions",value:function(e){this.options=(0,rn.Z)((0,rn.Z)({},this.defaultOptions),e),this.updateCacheTime(this.options.cacheTime)}},{key:"meta",get:function(){return this.options.meta}},{key:"setState",value:function(e){this.dispatch({type:"setState",state:e})}},{key:"addObserver",value:function(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}},{key:"removeObserver",value:function(e){this.observers=this.observers.filter((function(t){return t!==e})),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}},{key:"optionalRemove",value:function(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}},{key:"continue",value:function(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}},{key:"execute",value:function(){var e,t=(e=Ha().mark((function e(){var t,n,r,i,o,a,s,l,u,c,h,f,d,p,m,g,v,O,y,b,k,S,x,w,T=this;return Ha().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=function(){var e;return T.retryer=ja({fn:function(){return T.options.mutationFn?T.options.mutationFn(T.state.variables):Promise.reject("No mutationFn found")},onFail:function(e,t){T.dispatch({type:"failed",failureCount:e,error:t})},onPause:function(){T.dispatch({type:"pause"})},onContinue:function(){T.dispatch({type:"continue"})},retry:null!=(e=T.options.retry)?e:0,retryDelay:T.options.retryDelay,networkMode:T.options.networkMode}),T.retryer.promise},n="loading"===this.state.status,e.prev=2,n){e.next=11;break}return this.dispatch({type:"loading",variables:this.options.variables}),e.next=7,null==(h=(f=this.mutationCache.config).onMutate)?void 0:h.call(f,this.state.variables,this);case 7:return e.next=9,null==(d=(p=this.options).onMutate)?void 0:d.call(p,this.state.variables);case 9:(m=e.sent)!==this.state.context&&this.dispatch({type:"loading",context:m,variables:this.state.variables});case 11:return e.next=13,t();case 13:return g=e.sent,e.next=16,null==(r=(i=this.mutationCache.config).onSuccess)?void 0:r.call(i,g,this.state.variables,this.state.context,this);case 16:return e.next=18,null==(o=(a=this.options).onSuccess)?void 0:o.call(a,g,this.state.variables,this.state.context);case 18:return e.next=20,null==(s=(l=this.mutationCache.config).onSettled)?void 0:s.call(l,g,null,this.state.variables,this.state.context,this);case 20:return e.next=22,null==(u=(c=this.options).onSettled)?void 0:u.call(c,g,null,this.state.variables,this.state.context);case 22:return this.dispatch({type:"success",data:g}),e.abrupt("return",g);case 26:return e.prev=26,e.t0=e.catch(2),e.prev=28,e.next=31,null==(v=(O=this.mutationCache.config).onError)?void 0:v.call(O,e.t0,this.state.variables,this.state.context,this);case 31:return e.next=34,null==(y=(b=this.options).onError)?void 0:y.call(b,e.t0,this.state.variables,this.state.context);case 34:return e.next=36,null==(k=(S=this.mutationCache.config).onSettled)?void 0:k.call(S,void 0,e.t0,this.state.variables,this.state.context,this);case 36:return e.next=38,null==(x=(w=this.options).onSettled)?void 0:x.call(w,void 0,e.t0,this.state.variables,this.state.context);case 38:throw e.t0;case 39:return e.prev=39,this.dispatch({type:"error",error:e.t0}),e.finish(39);case 42:case"end":return e.stop()}}),e,this,[[2,26],[28,,39,42]])})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Wa(o,r,i,a,s,"next",e)}function s(e){Wa(o,r,i,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}()},{key:"dispatch",value:function(e){var t=this;this.state=function(n){switch(e.type){case"failed":return(0,rn.Z)((0,rn.Z)({},n),{},{failureCount:e.failureCount,failureReason:e.error});case"pause":return(0,rn.Z)((0,rn.Z)({},n),{},{isPaused:!0});case"continue":return(0,rn.Z)((0,rn.Z)({},n),{},{isPaused:!1});case"loading":return(0,rn.Z)((0,rn.Z)({},n),{},{context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!La(t.options.networkMode),status:"loading",variables:e.variables});case"success":return(0,rn.Z)((0,rn.Z)({},n),{},{data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return(0,rn.Z)((0,rn.Z)({},n),{},{data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"});case"setState":return(0,rn.Z)((0,rn.Z)({},n),e.state)}}(this.state),Na.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify({mutation:t,type:"updated",action:e})}))}}]),n}(za);var Ga=function(e){(0,oe.Z)(n,e);var t=(0,ae.Z)(n);function n(e){var r;return(0,re.Z)(this,n),(r=t.call(this)).config=e||{},r.mutations=[],r.mutationId=0,r}return(0,ie.Z)(n,[{key:"build",value:function(e,t,n){var r=new qa({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}},{key:"add",value:function(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}},{key:"remove",value:function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),this.notify({type:"removed",mutation:e})}},{key:"clear",value:function(){var e=this;Na.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))}},{key:"getAll",value:function(){return this.mutations}},{key:"find",value:function(e){return"undefined"===typeof e.exact&&(e.exact=!0),this.mutations.find((function(t){return va(e,t)}))}},{key:"findAll",value:function(e){return this.mutations.filter((function(t){return va(e,t)}))}},{key:"notify",value:function(e){var t=this;Na.batch((function(){t.listeners.forEach((function(t){(0,t.listener)(e)}))}))}},{key:"resumePausedMutations",value:function(){var e,t=this;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then((function(){var e=t.mutations.filter((function(e){return e.state.isPaused}));return Na.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(ha)}))}),Promise.resolve())}))})).then((function(){t.resuming=void 0})),this.resuming}}]),n}(Qa);function Va(){return{onFetch:function(e){e.fetchFn=function(){var t,n,r,i,o,a,s,l=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,u=null==(r=e.fetchOptions)||null==(i=r.meta)?void 0:i.fetchMore,c=null==u?void 0:u.pageParam,h="forward"===(null==u?void 0:u.direction),f="backward"===(null==u?void 0:u.direction),d=(null==(o=e.state.data)?void 0:o.pages)||[],p=(null==(a=e.state.data)?void 0:a.pageParams)||[],m=p,g=!1,v=e.options.queryFn||function(){return Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")},O=function(e,t,n,r){return m=r?[t].concat((0,ne.Z)(m)):[].concat((0,ne.Z)(m),[t]),r?[n].concat((0,ne.Z)(e)):[].concat((0,ne.Z)(e),[n])},y=function(t,n,r,i){if(g)return Promise.reject("Cancelled");if("undefined"===typeof r&&!n&&t.length)return Promise.resolve(t);var o,a={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};o=a,Object.defineProperty(o,"signal",{enumerable:!0,get:function(){var t,n;return null!=(t=e.signal)&&t.aborted?g=!0:null==(n=e.signal)||n.addEventListener("abort",(function(){g=!0})),e.signal}});var s=v(a),l=Promise.resolve(s).then((function(e){return O(t,r,e,i)}));return l};if(d.length)if(h){var b="undefined"!==typeof c,k=b?c:Ja(e.options,d);s=y(d,b,k)}else if(f){var S="undefined"!==typeof c,x=S?c:Ka(e.options,d);s=y(d,S,x,!0)}else{m=[];var w="undefined"===typeof e.options.getNextPageParam,T=!l||!d[0]||l(d[0],0,d);s=T?y([],w,p[0]):Promise.resolve(O([],p[0],d[0]));for(var C=function(t){s=s.then((function(n){if(!l||!d[t]||l(d[t],t,d)){var r=w?p[t]:Ja(e.options,n);return y(n,w,r)}return Promise.resolve(O(n,p[t],d[t]))}))},E=1;E0&&void 0!==arguments[0]?arguments[0]:{};(0,re.Z)(this,e),this.queryCache=t.queryCache||new Ya,this.mutationCache=t.mutationCache||new Ga,this.logger=t.logger||Za,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}return(0,ie.Z)(e,[{key:"mount",value:function(){var e=this;this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=Ra.subscribe((function(){Ra.isFocused()&&(e.resumePausedMutations(),e.queryCache.onFocus())})),this.unsubscribeOnline=$a.subscribe((function(){$a.isOnline()&&(e.resumePausedMutations(),e.queryCache.onOnline())})))}},{key:"unmount",value:function(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}},{key:"isFetching",value:function(e,t){var n=ma(e,t),r=(0,te.Z)(n,1)[0];return r.fetchStatus="fetching",this.queryCache.findAll(r).length}},{key:"isMutating",value:function(e){return this.mutationCache.findAll((0,rn.Z)((0,rn.Z)({},e),{},{fetching:!0})).length}},{key:"getQueryData",value:function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}},{key:"ensureQueryData",value:function(e,t,n){var r=pa(e,t,n),i=this.getQueryData(r.queryKey);return i?Promise.resolve(i):this.fetchQuery(r)}},{key:"getQueriesData",value:function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))}},{key:"setQueryData",value:function(e,t,n){var r=this.queryCache.find(e),i=function(e,t){return"function"===typeof e?e(t):e}(t,null==r?void 0:r.state.data);if("undefined"!==typeof i){var o=pa(e),a=this.defaultQueryOptions(o);return this.queryCache.build(this,a).setData(i,(0,rn.Z)((0,rn.Z)({},n),{},{manual:!0}))}}},{key:"setQueriesData",value:function(e,t,n){var r=this;return Na.batch((function(){return r.getQueryCache().findAll(e).map((function(e){var i=e.queryKey;return[i,r.setQueryData(i,t,n)]}))}))}},{key:"getQueryState",value:function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}},{key:"removeQueries",value:function(e,t){var n=ma(e,t),r=(0,te.Z)(n,1)[0],i=this.queryCache;Na.batch((function(){i.findAll(r).forEach((function(e){i.remove(e)}))}))}},{key:"resetQueries",value:function(e,t,n){var r=this,i=ma(e,t,n),o=(0,te.Z)(i,2),a=o[0],s=o[1],l=this.queryCache,u=(0,rn.Z)({type:"active"},a);return Na.batch((function(){return l.findAll(a).forEach((function(e){e.reset()})),r.refetchQueries(u,s)}))}},{key:"cancelQueries",value:function(e,t,n){var r=this,i=ma(e,t,n),o=(0,te.Z)(i,2),a=o[0],s=o[1],l=void 0===s?{}:s;"undefined"===typeof l.revert&&(l.revert=!0);var u=Na.batch((function(){return r.queryCache.findAll(a).map((function(e){return e.cancel(l)}))}));return Promise.all(u).then(ha).catch(ha)}},{key:"invalidateQueries",value:function(e,t,n){var r=this,i=ma(e,t,n),o=(0,te.Z)(i,2),a=o[0],s=o[1];return Na.batch((function(){var e,t;if(r.queryCache.findAll(a).forEach((function(e){e.invalidate()})),"none"===a.refetchType)return Promise.resolve();var n=(0,rn.Z)((0,rn.Z)({},a),{},{type:null!=(e=null!=(t=a.refetchType)?t:a.type)?e:"active"});return r.refetchQueries(n,s)}))}},{key:"refetchQueries",value:function(e,t,n){var r=this,i=ma(e,t,n),o=(0,te.Z)(i,2),a=o[0],s=o[1],l=Na.batch((function(){return r.queryCache.findAll(a).filter((function(e){return!e.isDisabled()})).map((function(e){var t;return e.fetch(void 0,(0,rn.Z)((0,rn.Z)({},s),{},{cancelRefetch:null==(t=null==s?void 0:s.cancelRefetch)||t,meta:{refetchPage:a.refetchPage}}))}))})),u=Promise.all(l).then(ha);return null!=s&&s.throwOnError||(u=u.catch(ha)),u}},{key:"fetchQuery",value:function(e,t,n){var r=pa(e,t,n),i=this.defaultQueryOptions(r);"undefined"===typeof i.retry&&(i.retry=!1);var o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)}},{key:"prefetchQuery",value:function(e,t,n){return this.fetchQuery(e,t,n).then(ha).catch(ha)}},{key:"fetchInfiniteQuery",value:function(e,t,n){var r=pa(e,t,n);return r.behavior=Va(),this.fetchQuery(r)}},{key:"prefetchInfiniteQuery",value:function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(ha).catch(ha)}},{key:"resumePausedMutations",value:function(){return this.mutationCache.resumePausedMutations()}},{key:"getQueryCache",value:function(){return this.queryCache}},{key:"getMutationCache",value:function(){return this.mutationCache}},{key:"getLogger",value:function(){return this.logger}},{key:"getDefaultOptions",value:function(){return this.defaultOptions}},{key:"setDefaultOptions",value:function(e){this.defaultOptions=e}},{key:"setQueryDefaults",value:function(e,t){var n=this.queryDefaults.find((function(t){return ya(e)===ya(t.queryKey)}));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}},{key:"getQueryDefaults",value:function(e){if(e){var t=this.queryDefaults.find((function(t){return ba(e,t.queryKey)}));return null==t?void 0:t.defaultOptions}}},{key:"setMutationDefaults",value:function(e,t){var n=this.mutationDefaults.find((function(t){return ya(e)===ya(t.mutationKey)}));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}},{key:"getMutationDefaults",value:function(e){if(e){var t=this.mutationDefaults.find((function(t){return ba(e,t.mutationKey)}));return null==t?void 0:t.defaultOptions}}},{key:"defaultQueryOptions",value:function(e){if(null!=e&&e._defaulted)return e;var t=(0,rn.Z)((0,rn.Z)((0,rn.Z)((0,rn.Z)({},this.defaultOptions.queries),this.getQueryDefaults(null==e?void 0:e.queryKey)),e),{},{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=Oa(t.queryKey,t)),"undefined"===typeof t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),"undefined"===typeof t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}},{key:"defaultMutationOptions",value:function(e){return null!=e&&e._defaulted?e:(0,rn.Z)((0,rn.Z)((0,rn.Z)((0,rn.Z)({},this.defaultOptions.mutations),this.getMutationDefaults(null==e?void 0:e.mutationKey)),e),{},{_defaulted:!0})}},{key:"clear",value:function(){this.queryCache.clear(),this.mutationCache.clear()}}]),e}(),ts=J.createContext(void 0),ns=J.createContext(!1);function rs(e,t){return e||(t&&"undefined"!==typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=ts),window.ReactQueryClientContext):ts)}var is,os=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).context,t=J.useContext(rs(e,J.useContext(ns)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},as=function(e){var t=e.client,n=e.children,r=e.context,i=e.contextSharing,o=void 0!==i&&i;J.useEffect((function(){return t.mount(),function(){t.unmount()}}),[t]);var a=rs(r,o);return J.createElement(ns.Provider,{value:!r&&o},J.createElement(a.Provider,{value:t},n))},ss=(n(9446),["title","titleId"]);function ls(){return ls=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function cs(e,t){var n=e.title,r=e.titleId,i=us(e,ss);return J.createElement("svg",ls({xmlns:"http://www.w3.org/2000/svg",fill:"#1aad1a",viewBox:"0 0 1024 1024",height:"1em",width:"1em",ref:t,"aria-labelledby":r},i),n?J.createElement("title",{id:r},n):null,is||(is=J.createElement("path",{d:"M690.1 377.4c5.9 0 11.8.2 17.6.5-24.4-128.7-158.3-227.1-319.9-227.1C209 150.8 64 271.4 64 420.2c0 81.1 43.6 154.2 111.9 203.6a21.5 21.5 0 0 1 9.1 17.6c0 2.4-.5 4.6-1.1 6.9-5.5 20.3-14.2 52.8-14.6 54.3-.7 2.6-1.7 5.2-1.7 7.9 0 5.9 4.8 10.8 10.8 10.8 2.3 0 4.2-.9 6.2-2l70.9-40.9c5.3-3.1 11-5 17.2-5 3.2 0 6.4.5 9.5 1.4 33.1 9.5 68.8 14.8 105.7 14.8 6 0 11.9-.1 17.8-.4-7.1-21-10.9-43.1-10.9-66 0-135.8 132.2-245.8 295.3-245.8zm-194.3-86.5c23.8 0 43.2 19.3 43.2 43.1s-19.3 43.1-43.2 43.1c-23.8 0-43.2-19.3-43.2-43.1s19.4-43.1 43.2-43.1zm-215.9 86.2c-23.8 0-43.2-19.3-43.2-43.1s19.3-43.1 43.2-43.1 43.2 19.3 43.2 43.1-19.4 43.1-43.2 43.1zm586.8 415.6c56.9-41.2 93.2-102 93.2-169.7 0-124-120.8-224.5-269.9-224.5-149 0-269.9 100.5-269.9 224.5S540.9 847.5 690 847.5c30.8 0 60.6-4.4 88.1-12.3 2.6-.8 5.2-1.2 7.9-1.2 5.2 0 9.9 1.6 14.3 4.1l59.1 34c1.7 1 3.3 1.7 5.2 1.7a9 9 0 0 0 6.4-2.6 9 9 0 0 0 2.6-6.4c0-2.2-.9-4.4-1.4-6.6-.3-1.2-7.6-28.3-12.2-45.3-.5-1.9-.9-3.8-.9-5.7.1-5.9 3.1-11.2 7.6-14.5zM600.2 587.2c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c0 19.8-16.2 35.9-36 35.9zm179.9 0c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9a36.08 36.08 0 0 1-36 35.9z"})))}var hs,fs=J.forwardRef(cs),ds=(n.p,["title","titleId"]);function ps(){return ps=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function gs(e,t){var n=e.title,r=e.titleId,i=ms(e,ds);return J.createElement("svg",ps({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 1024 1024",height:"1em",width:"1em",ref:t,"aria-labelledby":r},i),n?J.createElement("title",{id:r},n):null,hs||(hs=J.createElement("path",{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0 1 38.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"})))}var vs,Os,ys,bs,ks,Ss,xs,ws,Ts,Cs=J.forwardRef(gs),Es=(n.p,["title","titleId"]);function As(){return As=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _s(e,t){var n=e.title,r=e.titleId,i=Ps(e,Es);return J.createElement("svg",As({xmlns:"http://www.w3.org/2000/svg",width:13,height:13,viewBox:"0 0 105 105",fill:"currentColor",ref:t,"aria-labelledby":r},i),n?J.createElement("title",{id:r},n):null,vs||(vs=J.createElement("circle",{cx:12.5,cy:12.5,r:12.5},J.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),Os||(Os=J.createElement("circle",{cx:12.5,cy:52.5,r:12.5,fillOpacity:.5},J.createElement("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),ys||(ys=J.createElement("circle",{cx:52.5,cy:12.5,r:12.5},J.createElement("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),bs||(bs=J.createElement("circle",{cx:52.5,cy:52.5,r:12.5},J.createElement("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),ks||(ks=J.createElement("circle",{cx:92.5,cy:12.5,r:12.5},J.createElement("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),Ss||(Ss=J.createElement("circle",{cx:92.5,cy:52.5,r:12.5},J.createElement("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),xs||(xs=J.createElement("circle",{cx:12.5,cy:92.5,r:12.5},J.createElement("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),ws||(ws=J.createElement("circle",{cx:52.5,cy:92.5,r:12.5},J.createElement("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),Ts||(Ts=J.createElement("circle",{cx:92.5,cy:92.5,r:12.5},J.createElement("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))))}var Ds=J.forwardRef(_s),Zs=(n.p,n(5742)),Ns=n(4019);function Qs(e){return new Ns.ri(Ns.il.define(e))}function Rs(e){return n.e(7616).then(n.bind(n,7616)).then((function(t){return t.sql({dialect:t[e]})}))}var Ms=[Ns.c6.of({name:"C",extensions:["c","h","ino"],load:function(){return n.e(2584).then(n.bind(n,2584)).then((function(e){return e.cpp()}))}}),Ns.c6.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load:function(){return n.e(2584).then(n.bind(n,2584)).then((function(e){return e.cpp()}))}}),Ns.c6.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load:function(){return Rs("Cassandra")}}),Ns.c6.of({name:"CSS",extensions:["css"],load:function(){return Promise.resolve().then(n.bind(n,4422)).then((function(e){return e.css()}))}}),Ns.c6.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load:function(){return Promise.resolve().then(n.bind(n,292)).then((function(e){return e.html()}))}}),Ns.c6.of({name:"Java",extensions:["java"],load:function(){return n.e(9587).then(n.bind(n,9587)).then((function(e){return e.java()}))}}),Ns.c6.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load:function(){return Promise.resolve().then(n.bind(n,7131)).then((function(e){return e.javascript()}))}}),Ns.c6.of({name:"JSON",alias:["json5"],extensions:["json","map"],load:function(){return n.e(7893).then(n.bind(n,7893)).then((function(e){return e.json()}))}}),Ns.c6.of({name:"JSX",extensions:["jsx"],load:function(){return Promise.resolve().then(n.bind(n,7131)).then((function(e){return e.javascript({jsx:!0})}))}}),Ns.c6.of({name:"LESS",extensions:["less"],load:function(){return n.e(8192).then(n.bind(n,8192)).then((function(e){return e.less()}))}}),Ns.c6.of({name:"MariaDB SQL",load:function(){return Rs("MariaSQL")}}),Ns.c6.of({name:"Markdown",extensions:["md","markdown","mkd"],load:function(){return Promise.resolve().then(n.bind(n,5742)).then((function(e){return e.markdown()}))}}),Ns.c6.of({name:"MS SQL",load:function(){return Rs("MSSQL")}}),Ns.c6.of({name:"MySQL",load:function(){return Rs("MySQL")}}),Ns.c6.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load:function(){return n.e(3225).then(n.bind(n,3225)).then((function(e){return e.php()}))}}),Ns.c6.of({name:"PLSQL",extensions:["pls"],load:function(){return Rs("PLSQL")}}),Ns.c6.of({name:"PostgreSQL",load:function(){return Rs("PostgreSQL")}}),Ns.c6.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load:function(){return n.e(7569).then(n.bind(n,7569)).then((function(e){return e.python()}))}}),Ns.c6.of({name:"Rust",extensions:["rs"],load:function(){return n.e(391).then(n.bind(n,391)).then((function(e){return e.rust()}))}}),Ns.c6.of({name:"Sass",extensions:["sass"],load:function(){return n.e(9433).then(n.bind(n,9433)).then((function(e){return e.sass({indented:!0})}))}}),Ns.c6.of({name:"SCSS",extensions:["scss"],load:function(){return n.e(9433).then(n.bind(n,9433)).then((function(e){return e.sass()}))}}),Ns.c6.of({name:"SQL",extensions:["sql"],load:function(){return Rs("StandardSQL")}}),Ns.c6.of({name:"SQLite",load:function(){return Rs("SQLite")}}),Ns.c6.of({name:"TSX",extensions:["tsx"],load:function(){return Promise.resolve().then(n.bind(n,7131)).then((function(e){return e.javascript({jsx:!0,typescript:!0})}))}}),Ns.c6.of({name:"TypeScript",alias:["ts"],extensions:["ts"],load:function(){return Promise.resolve().then(n.bind(n,7131)).then((function(e){return e.javascript({typescript:!0})}))}}),Ns.c6.of({name:"WebAssembly",extensions:["wat","wast"],load:function(){return n.e(8594).then(n.bind(n,8594)).then((function(e){return e.wast()}))}}),Ns.c6.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load:function(){return n.e(8149).then(n.bind(n,8149)).then((function(e){return e.xml()}))}}),Ns.c6.of({name:"APL",extensions:["dyalog","apl"],load:function(){return n.e(4413).then(n.bind(n,4413)).then((function(e){return Qs(e.apl)}))}}),Ns.c6.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load:function(){return n.e(4588).then(n.bind(n,4588)).then((function(e){return Qs(e.asciiArmor)}))}}),Ns.c6.of({name:"ASN.1",extensions:["asn","asn1"],load:function(){return n.e(6557).then(n.bind(n,6557)).then((function(e){return Qs(e.asn1({}))}))}}),Ns.c6.of({name:"Asterisk",filename:/^extensions\.conf$/i,load:function(){return n.e(2795).then(n.bind(n,2795)).then((function(e){return Qs(e.asterisk)}))}}),Ns.c6.of({name:"Brainfuck",extensions:["b","bf"],load:function(){return n.e(5462).then(n.bind(n,9707)).then((function(e){return Qs(e.brainfuck)}))}}),Ns.c6.of({name:"Cobol",extensions:["cob","cpy"],load:function(){return n.e(5275).then(n.bind(n,5275)).then((function(e){return Qs(e.cobol)}))}}),Ns.c6.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load:function(){return n.e(996).then(n.bind(n,996)).then((function(e){return Qs(e.csharp)}))}}),Ns.c6.of({name:"Clojure",extensions:["clj","cljc","cljx"],load:function(){return n.e(9018).then(n.bind(n,9018)).then((function(e){return Qs(e.clojure)}))}}),Ns.c6.of({name:"ClojureScript",extensions:["cljs"],load:function(){return n.e(9018).then(n.bind(n,9018)).then((function(e){return Qs(e.clojure)}))}}),Ns.c6.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load:function(){return n.e(5714).then(n.bind(n,5714)).then((function(e){return Qs(e.gss)}))}}),Ns.c6.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load:function(){return n.e(4809).then(n.bind(n,4809)).then((function(e){return Qs(e.cmake)}))}}),Ns.c6.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load:function(){return n.e(4505).then(n.bind(n,4505)).then((function(e){return Qs(e.coffeeScript)}))}}),Ns.c6.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load:function(){return n.e(5765).then(n.bind(n,5765)).then((function(e){return Qs(e.commonLisp)}))}}),Ns.c6.of({name:"Cypher",extensions:["cyp","cypher"],load:function(){return n.e(6195).then(n.bind(n,6195)).then((function(e){return Qs(e.cypher)}))}}),Ns.c6.of({name:"Cython",extensions:["pyx","pxd","pxi"],load:function(){return n.e(2472).then(n.bind(n,2472)).then((function(e){return Qs(e.cython)}))}}),Ns.c6.of({name:"Crystal",extensions:["cr"],load:function(){return n.e(153).then(n.bind(n,153)).then((function(e){return Qs(e.crystal)}))}}),Ns.c6.of({name:"D",extensions:["d"],load:function(){return n.e(2789).then(n.bind(n,2789)).then((function(e){return Qs(e.d)}))}}),Ns.c6.of({name:"Dart",extensions:["dart"],load:function(){return n.e(996).then(n.bind(n,996)).then((function(e){return Qs(e.dart)}))}}),Ns.c6.of({name:"diff",extensions:["diff","patch"],load:function(){return n.e(5411).then(n.bind(n,5411)).then((function(e){return Qs(e.diff)}))}}),Ns.c6.of({name:"Dockerfile",filename:/^Dockerfile$/,load:function(){return n.e(6857).then(n.bind(n,6857)).then((function(e){return Qs(e.dockerFile)}))}}),Ns.c6.of({name:"DTD",extensions:["dtd"],load:function(){return n.e(882).then(n.bind(n,882)).then((function(e){return Qs(e.dtd)}))}}),Ns.c6.of({name:"Dylan",extensions:["dylan","dyl","intr"],load:function(){return n.e(4735).then(n.bind(n,4735)).then((function(e){return Qs(e.dylan)}))}}),Ns.c6.of({name:"EBNF",load:function(){return n.e(9795).then(n.bind(n,9795)).then((function(e){return Qs(e.ebnf)}))}}),Ns.c6.of({name:"ECL",extensions:["ecl"],load:function(){return n.e(73).then(n.bind(n,73)).then((function(e){return Qs(e.ecl)}))}}),Ns.c6.of({name:"edn",extensions:["edn"],load:function(){return n.e(9018).then(n.bind(n,9018)).then((function(e){return Qs(e.clojure)}))}}),Ns.c6.of({name:"Eiffel",extensions:["e"],load:function(){return n.e(2580).then(n.bind(n,2580)).then((function(e){return Qs(e.eiffel)}))}}),Ns.c6.of({name:"Elm",extensions:["elm"],load:function(){return n.e(174).then(n.bind(n,174)).then((function(e){return Qs(e.elm)}))}}),Ns.c6.of({name:"Erlang",extensions:["erl"],load:function(){return n.e(4318).then(n.bind(n,4318)).then((function(e){return Qs(e.erlang)}))}}),Ns.c6.of({name:"Esper",load:function(){return n.e(7170).then(n.bind(n,7170)).then((function(e){return Qs(e.esper)}))}}),Ns.c6.of({name:"Factor",extensions:["factor"],load:function(){return n.e(244).then(n.bind(n,244)).then((function(e){return Qs(e.factor)}))}}),Ns.c6.of({name:"FCL",load:function(){return n.e(7748).then(n.bind(n,7748)).then((function(e){return Qs(e.fcl)}))}}),Ns.c6.of({name:"Forth",extensions:["forth","fth","4th"],load:function(){return n.e(7454).then(n.bind(n,7454)).then((function(e){return Qs(e.forth)}))}}),Ns.c6.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load:function(){return n.e(9183).then(n.bind(n,9183)).then((function(e){return Qs(e.fortran)}))}}),Ns.c6.of({name:"F#",alias:["fsharp"],extensions:["fs"],load:function(){return n.e(9797).then(n.bind(n,9797)).then((function(e){return Qs(e.fSharp)}))}}),Ns.c6.of({name:"Gas",extensions:["s"],load:function(){return n.e(5123).then(n.bind(n,5123)).then((function(e){return Qs(e.gas)}))}}),Ns.c6.of({name:"Gherkin",extensions:["feature"],load:function(){return n.e(4487).then(n.bind(n,4487)).then((function(e){return Qs(e.gherkin)}))}}),Ns.c6.of({name:"Go",extensions:["go"],load:function(){return n.e(7151).then(n.bind(n,7151)).then((function(e){return Qs(e.go)}))}}),Ns.c6.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load:function(){return n.e(9063).then(n.bind(n,9063)).then((function(e){return Qs(e.groovy)}))}}),Ns.c6.of({name:"Haskell",extensions:["hs"],load:function(){return n.e(6260).then(n.bind(n,6260)).then((function(e){return Qs(e.haskell)}))}}),Ns.c6.of({name:"Haxe",extensions:["hx"],load:function(){return n.e(9205).then(n.bind(n,9144)).then((function(e){return Qs(e.haxe)}))}}),Ns.c6.of({name:"HXML",extensions:["hxml"],load:function(){return n.e(9205).then(n.bind(n,9144)).then((function(e){return Qs(e.hxml)}))}}),Ns.c6.of({name:"HTTP",load:function(){return n.e(9532).then(n.bind(n,9532)).then((function(e){return Qs(e.http)}))}}),Ns.c6.of({name:"IDL",extensions:["pro"],load:function(){return n.e(3424).then(n.bind(n,3424)).then((function(e){return Qs(e.idl)}))}}),Ns.c6.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load:function(){return n.e(717).then(n.bind(n,717)).then((function(e){return Qs(e.jsonld)}))}}),Ns.c6.of({name:"Jinja2",extensions:["j2","jinja","jinja2"],load:function(){return n.e(5438).then(n.bind(n,5438)).then((function(e){return Qs(e.jinja2)}))}}),Ns.c6.of({name:"Julia",extensions:["jl"],load:function(){return n.e(5439).then(n.bind(n,5439)).then((function(e){return Qs(e.julia)}))}}),Ns.c6.of({name:"Kotlin",extensions:["kt"],load:function(){return n.e(996).then(n.bind(n,996)).then((function(e){return Qs(e.kotlin)}))}}),Ns.c6.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load:function(){return n.e(3049).then(n.bind(n,3049)).then((function(e){return Qs(e.liveScript)}))}}),Ns.c6.of({name:"Lua",extensions:["lua"],load:function(){return n.e(2488).then(n.bind(n,2488)).then((function(e){return Qs(e.lua)}))}}),Ns.c6.of({name:"mIRC",extensions:["mrc"],load:function(){return n.e(2458).then(n.bind(n,2458)).then((function(e){return Qs(e.mirc)}))}}),Ns.c6.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load:function(){return n.e(4590).then(n.bind(n,4590)).then((function(e){return Qs(e.mathematica)}))}}),Ns.c6.of({name:"Modelica",extensions:["mo"],load:function(){return n.e(3720).then(n.bind(n,3720)).then((function(e){return Qs(e.modelica)}))}}),Ns.c6.of({name:"MUMPS",extensions:["mps"],load:function(){return n.e(6794).then(n.bind(n,6794)).then((function(e){return Qs(e.mumps)}))}}),Ns.c6.of({name:"Mbox",extensions:["mbox"],load:function(){return n.e(9998).then(n.bind(n,9328)).then((function(e){return Qs(e.mbox)}))}}),Ns.c6.of({name:"Nginx",filename:/nginx.*\.conf$/i,load:function(){return n.e(2650).then(n.bind(n,2650)).then((function(e){return Qs(e.nginx)}))}}),Ns.c6.of({name:"NSIS",extensions:["nsh","nsi"],load:function(){return n.e(2636).then(n.bind(n,2636)).then((function(e){return Qs(e.nsis)}))}}),Ns.c6.of({name:"NTriples",extensions:["nt","nq"],load:function(){return n.e(6913).then(n.bind(n,6913)).then((function(e){return Qs(e.ntriples)}))}}),Ns.c6.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load:function(){return n.e(996).then(n.bind(n,996)).then((function(e){return Qs(e.objectiveC)}))}}),Ns.c6.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load:function(){return n.e(996).then(n.bind(n,996)).then((function(e){return Qs(e.objectiveCpp)}))}}),Ns.c6.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load:function(){return n.e(9797).then(n.bind(n,9797)).then((function(e){return Qs(e.oCaml)}))}}),Ns.c6.of({name:"Octave",extensions:["m"],load:function(){return n.e(1430).then(n.bind(n,1430)).then((function(e){return Qs(e.octave)}))}}),Ns.c6.of({name:"Oz",extensions:["oz"],load:function(){return n.e(7987).then(n.bind(n,7987)).then((function(e){return Qs(e.oz)}))}}),Ns.c6.of({name:"Pascal",extensions:["p","pas"],load:function(){return n.e(7620).then(n.bind(n,7620)).then((function(e){return Qs(e.pascal)}))}}),Ns.c6.of({name:"Perl",extensions:["pl","pm"],load:function(){return n.e(5833).then(n.bind(n,5833)).then((function(e){return Qs(e.perl)}))}}),Ns.c6.of({name:"Pig",extensions:["pig"],load:function(){return n.e(152).then(n.bind(n,152)).then((function(e){return Qs(e.pig)}))}}),Ns.c6.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load:function(){return n.e(5993).then(n.bind(n,5993)).then((function(e){return Qs(e.powerShell)}))}}),Ns.c6.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load:function(){return n.e(7112).then(n.bind(n,7112)).then((function(e){return Qs(e.properties)}))}}),Ns.c6.of({name:"ProtoBuf",extensions:["proto"],load:function(){return n.e(8668).then(n.bind(n,8668)).then((function(e){return Qs(e.protobuf)}))}}),Ns.c6.of({name:"Puppet",extensions:["pp"],load:function(){return n.e(3502).then(n.bind(n,3502)).then((function(e){return Qs(e.puppet)}))}}),Ns.c6.of({name:"Q",extensions:["q"],load:function(){return n.e(5526).then(n.bind(n,5526)).then((function(e){return Qs(e.q)}))}}),Ns.c6.of({name:"R",alias:["rscript"],extensions:["r","R"],load:function(){return n.e(2018).then(n.bind(n,2018)).then((function(e){return Qs(e.r)}))}}),Ns.c6.of({name:"RPM Changes",load:function(){return n.e(9528).then(n.bind(n,9528)).then((function(e){return Qs(e.rpmChanges)}))}}),Ns.c6.of({name:"RPM Spec",extensions:["spec"],load:function(){return n.e(9528).then(n.bind(n,9528)).then((function(e){return Qs(e.rpmSpec)}))}}),Ns.c6.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],filename:/^(Gemfile|Rakefile)$/,load:function(){return n.e(2654).then(n.bind(n,2654)).then((function(e){return Qs(e.ruby)}))}}),Ns.c6.of({name:"SAS",extensions:["sas"],load:function(){return n.e(4888).then(n.bind(n,4888)).then((function(e){return Qs(e.sas)}))}}),Ns.c6.of({name:"Scala",extensions:["scala"],load:function(){return n.e(996).then(n.bind(n,996)).then((function(e){return Qs(e.scala)}))}}),Ns.c6.of({name:"Scheme",extensions:["scm","ss"],load:function(){return n.e(31).then(n.bind(n,31)).then((function(e){return Qs(e.scheme)}))}}),Ns.c6.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load:function(){return n.e(578).then(n.bind(n,578)).then((function(e){return Qs(e.shell)}))}}),Ns.c6.of({name:"Sieve",extensions:["siv","sieve"],load:function(){return n.e(1308).then(n.bind(n,1308)).then((function(e){return Qs(e.sieve)}))}}),Ns.c6.of({name:"Smalltalk",extensions:["st"],load:function(){return n.e(3459).then(n.bind(n,3459)).then((function(e){return Qs(e.smalltalk)}))}}),Ns.c6.of({name:"Solr",load:function(){return n.e(4288).then(n.bind(n,4288)).then((function(e){return Qs(e.solr)}))}}),Ns.c6.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load:function(){return n.e(9797).then(n.bind(n,9797)).then((function(e){return Qs(e.sml)}))}}),Ns.c6.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load:function(){return n.e(9830).then(n.bind(n,9830)).then((function(e){return Qs(e.sparql)}))}}),Ns.c6.of({name:"Spreadsheet",alias:["excel","formula"],load:function(){return n.e(2817).then(n.bind(n,2817)).then((function(e){return Qs(e.spreadsheet)}))}}),Ns.c6.of({name:"Squirrel",extensions:["nut"],load:function(){return n.e(996).then(n.bind(n,996)).then((function(e){return Qs(e.squirrel)}))}}),Ns.c6.of({name:"Stylus",extensions:["styl"],load:function(){return n.e(6381).then(n.bind(n,6381)).then((function(e){return Qs(e.stylus)}))}}),Ns.c6.of({name:"Swift",extensions:["swift"],load:function(){return n.e(1990).then(n.bind(n,1990)).then((function(e){return Qs(e.swift)}))}}),Ns.c6.of({name:"sTeX",load:function(){return n.e(2852).then(n.bind(n,2852)).then((function(e){return Qs(e.stex)}))}}),Ns.c6.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load:function(){return n.e(2852).then(n.bind(n,2852)).then((function(e){return Qs(e.stex)}))}}),Ns.c6.of({name:"SystemVerilog",extensions:["v","sv","svh"],load:function(){return n.e(4189).then(n.bind(n,4189)).then((function(e){return Qs(e.verilog)}))}}),Ns.c6.of({name:"Tcl",extensions:["tcl"],load:function(){return n.e(7248).then(n.bind(n,7248)).then((function(e){return Qs(e.tcl)}))}}),Ns.c6.of({name:"Textile",extensions:["textile"],load:function(){return n.e(1731).then(n.bind(n,1731)).then((function(e){return Qs(e.textile)}))}}),Ns.c6.of({name:"TiddlyWiki",load:function(){return n.e(4165).then(n.bind(n,4165)).then((function(e){return Qs(e.tiddlyWiki)}))}}),Ns.c6.of({name:"Tiki wiki",load:function(){return n.e(6534).then(n.bind(n,6534)).then((function(e){return Qs(e.tiki)}))}}),Ns.c6.of({name:"TOML",extensions:["toml"],load:function(){return n.e(7934).then(n.bind(n,7934)).then((function(e){return Qs(e.toml)}))}}),Ns.c6.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load:function(){return n.e(9328).then(n.bind(n,6153)).then((function(e){return Qs(e.troff)}))}}),Ns.c6.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load:function(){return n.e(1249).then(n.bind(n,1249)).then((function(e){return Qs(e.ttcn)}))}}),Ns.c6.of({name:"TTCN_CFG",extensions:["cfg"],load:function(){return n.e(872).then(n.bind(n,872)).then((function(e){return Qs(e.ttcnCfg)}))}}),Ns.c6.of({name:"Turtle",extensions:["ttl"],load:function(){return n.e(6071).then(n.bind(n,6071)).then((function(e){return Qs(e.turtle)}))}}),Ns.c6.of({name:"Web IDL",extensions:["webidl"],load:function(){return n.e(8328).then(n.bind(n,8328)).then((function(e){return Qs(e.webIDL)}))}}),Ns.c6.of({name:"VB.NET",extensions:["vb"],load:function(){return n.e(3785).then(n.bind(n,3785)).then((function(e){return Qs(e.vb)}))}}),Ns.c6.of({name:"VBScript",extensions:["vbs"],load:function(){return n.e(457).then(n.bind(n,457)).then((function(e){return Qs(e.vbScript)}))}}),Ns.c6.of({name:"Velocity",extensions:["vtl"],load:function(){return n.e(6923).then(n.bind(n,6923)).then((function(e){return Qs(e.velocity)}))}}),Ns.c6.of({name:"Verilog",extensions:["v"],load:function(){return n.e(4189).then(n.bind(n,4189)).then((function(e){return Qs(e.verilog)}))}}),Ns.c6.of({name:"VHDL",extensions:["vhd","vhdl"],load:function(){return n.e(8879).then(n.bind(n,8879)).then((function(e){return Qs(e.vhdl)}))}}),Ns.c6.of({name:"XQuery",extensions:["xy","xquery"],load:function(){return n.e(4758).then(n.bind(n,4758)).then((function(e){return Qs(e.xQuery)}))}}),Ns.c6.of({name:"Yacas",extensions:["ys"],load:function(){return n.e(5848).then(n.bind(n,5848)).then((function(e){return Qs(e.yacas)}))}}),Ns.c6.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load:function(){return n.e(9831).then(n.bind(n,9831)).then((function(e){return Qs(e.yaml)}))}}),Ns.c6.of({name:"Z80",extensions:["z80"],load:function(){return n.e(5688).then(n.bind(n,5688)).then((function(e){return Qs(e.z80)}))}}),Ns.c6.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load:function(){return n.e(4745).then(n.bind(n,4745)).then((function(e){return Qs(e.mscgen)}))}}),Ns.c6.of({name:"X\xf9",extensions:["xu"],load:function(){return n.e(4745).then(n.bind(n,4745)).then((function(e){return Qs(e.xu)}))}}),Ns.c6.of({name:"MsGenny",extensions:["msgenny"],load:function(){return n.e(4745).then(n.bind(n,4745)).then((function(e){return Qs(e.msgenny)}))}}),Ns.c6.of({name:"Vue",extensions:["vue"],load:function(){return n.e(9085).then(n.bind(n,9085)).then((function(e){return e.vue()}))}}),Ns.c6.of({name:"Angular Template",load:function(){return n.e(5004).then(n.bind(n,5004)).then((function(e){return e.angular()}))}})],$s=n(52);function Is(e){var t=e.type,n=void 0===t?"scroll":t,r=e.events;return $s.lg.fromClass(function(){function e(t){var i=this;(0,re.Z)(this,e),this.dom=void 0,this.view=void 0,this.view=t,this.dom="dom"===n?t.dom:"content"===n?t.contentDOM:t.scrollDOM,Object.keys(r||{}).forEach((function(e){r&&r[e]&&i.dom&&i.dom.addEventListener(e,r[e])}))}return(0,ie.Z)(e,[{key:"destroy",value:function(){var e=this;Object.keys(r||{}).forEach((function(t){r&&r[t]&&e.dom&&e.dom.removeEventListener(t,r[t])}))}}]),e}())}var Ls=n(5224),Fs=n(1330);function Bs(e,t){return function(n){var r=n.state,i=n.dispatch;if(r.readOnly)return!1;var o=e(t,r);return!!o&&(i(r.update(o)),!0)}}var js=Bs(Ws,0),zs=Bs(Hs,0),Us=Bs((function(e,t){return Hs(e,t,function(e){var t,n=[],r=(0,Oe.Z)(e.selection.ranges);try{for(r.s();!(t=r.n()).done;){var i=t.value,o=e.doc.lineAt(i.from),a=i.to<=o.to?o:e.doc.lineAt(i.to),s=n.length-1;s>=0&&n[s].to>o.from?n[s].to=a.to:n.push({from:o.from+/^\s*/.exec(o.text)[0].length,to:a.to})}}catch(l){r.e(l)}finally{r.f()}return n}(t))}),0);function Ys(e,t){var n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}var Xs=50;function Hs(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.selection.ranges,r=n.map((function(e){return Ys(t,e.from).block}));if(!r.every((function(e){return e})))return null;var i=n.map((function(e,n){return function(e,t,n,r){var i,o,a=t.open,s=t.close,l=e.sliceDoc(n-Xs,n),u=e.sliceDoc(r,r+Xs),c=/\s*$/.exec(l)[0].length,h=/^\s*/.exec(u)[0].length,f=l.length-c;if(l.slice(f-a.length,f)==a&&u.slice(h,h+s.length)==s)return{open:{pos:n-c,margin:c&&1},close:{pos:r+h,margin:h&&1}};r-n<=2*Xs?i=o=e.sliceDoc(n,r):(i=e.sliceDoc(n,n+Xs),o=e.sliceDoc(r-Xs,r));var d=/^\s*/.exec(i)[0].length,p=/\s*$/.exec(o)[0].length,m=o.length-p-s.length;return i.slice(d,d+a.length)==a&&o.slice(m,m+s.length)==s?{open:{pos:n+d+a.length,margin:/\s/.test(i.charAt(d+a.length))?1:0},close:{pos:r-p-s.length,margin:/\s/.test(o.charAt(m-1))?1:0}}:null}(t,r[n],e.from,e.to)}));if(2!=e&&!i.every((function(e){return e})))return{changes:t.changes(n.map((function(e,t){return i[t]?[]:[{from:e.from,insert:r[t].open+" "},{from:e.to,insert:" "+r[t].close}]})))};if(1!=e&&i.some((function(e){return e}))){for(var o,a=[],s=0;s2&&void 0!==arguments[2]?arguments[2]:t.selection.ranges,i=[],o=-1,a=(0,Oe.Z)(r);try{for(a.s();!(n=a.n()).done;){var s=n.value,l=s.from,u=s.to,c=i.length,h=1e9,f=Ys(t,l).line;if(f){for(var d=l;d<=u;){var p=t.doc.lineAt(d);if(p.from>o&&(l==u||u>p.from)){o=p.from;var m=/^\s*/.exec(p.text)[0].length,g=m==p.length,v=p.text.slice(m,m+f.length)==f?m:-1;m=0}))){var A,P=[],_=(0,Oe.Z)(i);try{for(_.s();!(A=_.n()).done;){var D=A.value,Z=D.line,N=D.comment,Q=D.token;if(N>=0){var R=Z.from+N,M=R+Q.length;" "==Z.text[M-Z.from]&&M++,P.push({from:R,to:M})}}}catch($){_.e($)}finally{_.f()}return{changes:P}}return null}var qs=Ls.q6.define(),Gs=Ls.q6.define(),Vs=Ls.r$.define(),Js=Ls.r$.define({combine:function(e){return(0,Ls.BO)(e,{minDepth:100,newGroupDelay:500,joinToEvent:function(e,t){return t}},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:function(e,t){return function(n,r){return e(n,r)||t(n,r)}}})}});var Ks=Ls.QQ.define({create:function(){return ml.empty},update:function(e,t){var n=t.state.facet(Js),r=t.annotation(qs);if(r){var i=t.docChanged?Ls.jT.single(function(e){var t=0;return e.iterChangedRanges((function(e,n){return t=n})),t}(t.changes)):void 0,o=ol.fromTransaction(t,i),a=r.side,s=0==a?e.undone:e.done;return s=o?al(s,s.length,n.minDepth,o):cl(s,t.startState.selection),new ml(0==a?r.rest:s,0==a?s:r.rest)}var l=t.annotation(Gs);if("full"!=l&&"before"!=l||(e=e.isolate()),!1===t.annotation(Ls.YW.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);var u=ol.fromTransaction(t),c=t.annotation(Ls.YW.time),h=t.annotation(Ls.YW.userEvent);return u?e=e.addChanges(u,c,h,n,t):t.selection&&(e=e.addSelection(t.startState.selection,c,h,n.newGroupDelay)),"full"!=l&&"after"!=l||(e=e.isolate()),e},toJSON:function(e){return{done:e.done.map((function(e){return e.toJSON()})),undone:e.undone.map((function(e){return e.toJSON()}))}},fromJSON:function(e){return new ml(e.done.map(ol.fromJSON),e.undone.map(ol.fromJSON))}});function el(e,t){return function(n){var r=n.state,i=n.dispatch;if(!t&&r.readOnly)return!1;var o=r.field(Ks,!1);if(!o)return!1;var a=o.pop(e,r,t);return!!a&&(i(a),!0)}}var tl=el(0,!1),nl=el(1,!1),rl=el(0,!0),il=el(1,!0);var ol=function(){function e(t,n,r,i,o){(0,re.Z)(this,e),this.changes=t,this.effects=n,this.mapped=r,this.startSelection=i,this.selectionsAfter=o}return(0,ie.Z)(e,[{key:"setSelAfter",value:function(t){return new e(this.changes,this.effects,this.mapped,this.startSelection,t)}},{key:"toJSON",value:function(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((function(e){return e.toJSON()}))}}}],[{key:"fromJSON",value:function(t){return new e(t.changes&&Ls.as.fromJSON(t.changes),[],t.mapped&&Ls.n0.fromJSON(t.mapped),t.startSelection&&Ls.jT.fromJSON(t.startSelection),t.selectionsAfter.map(Ls.jT.fromJSON))}},{key:"fromTransaction",value:function(t,n){var r,i=ll,o=(0,Oe.Z)(t.startState.facet(Vs));try{for(o.s();!(r=o.n()).done;){var a=(0,r.value)(t);a.length&&(i=i.concat(a))}}catch(s){o.e(s)}finally{o.f()}return!i.length&&t.changes.empty?null:new e(t.changes.invert(t.startState.doc),i,void 0,n||t.startState.selection,ll)}},{key:"selection",value:function(t){return new e(void 0,ll,void 0,void 0,t)}}]),e}();function al(e,t,n,r){var i=t+1>n+20?t-n-1:0,o=e.slice(i,t);return o.push(r),o}function sl(e,t){return e.length?t.length?e.concat(t):e:t}var ll=[],ul=200;function cl(e,t){if(e.length){var n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-ul));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),al(e,e.length-1,1e9,n.setSelAfter(r)))}return[ol.selection([t])]}function hl(e){var t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function fl(e,t){if(!e.length)return e;for(var n=e.length,r=ll;n;){var i=dl(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){var o=e.slice(0,n);return o[n-1]=i,o}t=i.mapped,n--,r=i.selectionsAfter}return r.length?[ol.selection(r)]:ll}function dl(e,t,n){var r=sl(e.selectionsAfter.length?e.selectionsAfter.map((function(e){return e.map(t)})):ll,n);if(!e.changes)return ol.selection(r);var i=e.changes.map(t),o=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(o):o;return new ol(i,Ls.Py.mapEffects(e.effects,t),a,e.startSelection.map(o),r)}var pl=/^(input\.type|delete)($|\.)/,ml=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;(0,re.Z)(this,e),this.done=t,this.undone=n,this.prevTime=r,this.prevUserEvent=i}return(0,ie.Z)(e,[{key:"isolate",value:function(){return this.prevTime?new e(this.done,this.undone):this}},{key:"addChanges",value:function(t,n,r,i,o){var a=this.done,s=a[a.length-1];return a=s&&s.changes&&!s.changes.empty&&t.changes&&(!r||pl.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime=s&&i<=l&&(r=!0)}})),r}(s.changes,t.changes))||"input.type.compose"==r)?al(a,a.length-1,i.minDepth,new ol(t.changes.compose(s.changes),sl(t.effects,s.effects),s.mapped,s.startSelection,ll)):al(a,a.length,i.minDepth,t),new e(a,ll,n,r)}},{key:"addSelection",value:function(t,n,r,i){var o=this.done.length?this.done[this.done.length-1].selectionsAfter:ll;return o.length>0&&n-this.prevTime2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function El(e,t,n){for(var r=(0,Ns.qz)(e).resolveInner(t.head),i=n?Fs.md.closedBy:Fs.md.openedBy,o=t.head;;){var a=n?r.childAfter(o):r.childBefore(o);if(!a)break;Cl(e,a,i)?r=a:o=n?a.to:a.from}var s,l;return l=r.type.prop(i)&&(s=n?(0,Ns.Um)(e,r.from,1):(0,Ns.Um)(e,r.to,-1))&&s.matched?n?s.end.to:s.end.from:n?r.to:r.from,Ls.jT.cursor(l,n?-1:1)}function Al(e,t){return yl(e,(function(n){if(!n.empty)return bl(n,t);var r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)}))}var Pl=function(e){return Al(e,!1)},_l=function(e){return Al(e,!0)};function Dl(e){var t,n=e.scrollDOM.clientHeightl&&a.bottom0&&(0,Ns.Um)(e,t.head-1,1)||t.headi&&(n="delete.forward",a=Kl(e,a,!0)),i=Math.min(i,a),o=Math.max(o,a)}else i=Kl(e,i,!1),o=Kl(e,o,!0);return i==o?{range:r}:{changes:{from:i,to:o},range:Ls.jT.cursor(i)}}));return!i.changes.empty&&(e.dispatch(r.update(i,{scrollIntoView:!0,userEvent:n,effects:"delete.selection"==n?$s.tk.announce.of(r.phrase("Selection deleted")):void 0})),!0)}function Kl(e,t,n){if(e instanceof $s.tk){var r,i=(0,Oe.Z)(e.state.facet($s.tk.atomicRanges).map((function(t){return t(e)})));try{for(i.s();!(r=i.n()).done;){r.value.between(t,t,(function(e,r){et&&(t=n?r:e)}))}}catch(o){i.e(o)}finally{i.f()}}return t}var eu=function(e,t){return Jl(e,(function(n){var r,i,o=e.state,a=o.doc.lineAt(n);if(!t&&n>a.from&&n=a.number){var l=n[n.length-1];l.to=s.to,l.ranges.push(o)}else n.push({from:a.from,to:s.to,ranges:[o]});r=s.number+1}}catch(u){i.e(u)}finally{i.f()}return n}function su(e,t,n){if(e.readOnly)return!1;var r,i=[],o=[],a=(0,Oe.Z)(au(e));try{for(a.s();!(r=a.n()).done;){var s=r.value;if(n?s.to!=e.doc.length:0!=s.from){var l=e.doc.lineAt(n?s.to+1:s.from-1),u=l.length+1;if(n){i.push({from:s.to,to:l.to},{from:s.from,insert:l.text+e.lineBreak});var c,h=(0,Oe.Z)(s.ranges);try{for(h.s();!(c=h.n()).done;){var f=c.value;o.push(Ls.jT.range(Math.min(e.doc.length,f.anchor+u),Math.min(e.doc.length,f.head+u)))}}catch(g){h.e(g)}finally{h.f()}}else{i.push({from:l.from,to:s.from},{from:s.to,insert:e.lineBreak+l.text});var d,p=(0,Oe.Z)(s.ranges);try{for(p.s();!(d=p.n()).done;){var m=d.value;o.push(Ls.jT.range(m.anchor-u,m.head-u))}}catch(g){p.e(g)}finally{p.f()}}}}}catch(g){a.e(g)}finally{a.f()}return!!i.length&&(t(e.update({changes:i,scrollIntoView:!0,selection:Ls.jT.create(o,e.selection.mainIndex),userEvent:"move.line"})),!0)}function lu(e,t,n){if(e.readOnly)return!1;var r,i=[],o=(0,Oe.Z)(au(e));try{for(o.s();!(r=o.n()).done;){var a=r.value;n?i.push({from:a.from,insert:e.doc.slice(a.from,a.to)+e.lineBreak}):i.push({from:a.to,insert:e.lineBreak+e.doc.slice(a.from,a.to)})}}catch(s){o.e(s)}finally{o.f()}return t(e.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}var uu=hu(!1),cu=hu(!0);function hu(e){return function(t){var n=t.state,r=t.dispatch;if(n.readOnly)return!1;var i=n.changeByRange((function(t){var r=t.from,i=t.to,o=n.doc.lineAt(r),a=!e&&r==i&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};var n,r=(0,Ns.qz)(e).resolveInner(t),i=r.childBefore(t),o=r.childAfter(t);return i&&o&&i.to<=t&&o.from>=t&&(n=i.type.prop(Fs.md.closedBy))&&n.indexOf(o.name)>-1&&e.doc.lineAt(i.to).from==e.doc.lineAt(o.from).from?{from:i.to,to:o.from}:null}(n,r);e&&(r=i=(i<=o.to?o:n.doc.lineAt(i)).to);var s=new Ns.Gn(n,{simulateBreak:r,simulateDoubleBreak:!!a}),l=(0,Ns.K0)(s,r);for(null==l&&(l=/^\s*/.exec(n.doc.lineAt(r).text)[0].length);io.from&&rn&&(r.empty||r.to>a.from)&&(t(a,i,r),n=a.number),o=a.to+1}var s=e.changes(i);return{changes:i,range:Ls.jT.range(s.mapPos(r.anchor,1),s.mapPos(r.head,1))}}))}var du=function(e){var t=e.state,n=e.dispatch;return!t.readOnly&&(n(t.update(fu(t,(function(e,n){n.push({from:e.from,insert:t.facet(Ns.c)})})),{userEvent:"input.indent"})),!0)},pu=function(e){var t=e.state,n=e.dispatch;return!t.readOnly&&(n(t.update(fu(t,(function(e,n){var r=/^\s*/.exec(e.text)[0];if(r){for(var i=(0,Ls.IS)(r,t.tabSize),o=0,a=(0,Ns.SS)(t,Math.max(0,i-(0,Ns.y1)(t)));on?n:Math.max(0,t-1)}))}},{mac:"Mod-Delete",run:ou}].concat(mu.map((function(e){return{mac:e.key,run:e.run,shift:e.shift}}))),vu=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:function(e){return yl(e,(function(t){return El(e.state,t,!Sl(e))}))},shift:function(e){return $l(e,(function(t){return El(e.state,t,!Sl(e))}))}},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:function(e){return yl(e,(function(t){return El(e.state,t,Sl(e))}))},shift:function(e){return $l(e,(function(t){return El(e.state,t,Sl(e))}))}},{key:"Alt-ArrowUp",run:function(e){return su(e.state,e.dispatch,!1)}},{key:"Shift-Alt-ArrowUp",run:function(e){return lu(e.state,e.dispatch,!1)}},{key:"Alt-ArrowDown",run:function(e){return su(e.state,e.dispatch,!0)}},{key:"Shift-Alt-ArrowDown",run:function(e){return lu(e.state,e.dispatch,!0)}},{key:"Escape",run:function(e){var t=e.state,n=e.dispatch,r=t.selection,i=null;return r.ranges.length>1?i=Ls.jT.create([r.main]):r.main.empty||(i=Ls.jT.create([Ls.jT.cursor(r.main.head)])),!!i&&(n(Ol(t,i)),!0)}},{key:"Mod-Enter",run:cu},{key:"Alt-l",mac:"Ctrl-l",run:function(e){var t=e.state,n=e.dispatch,r=au(t).map((function(e){var n=e.from,r=e.to;return Ls.jT.range(n,Math.min(r+1,t.doc.length))}));return n(t.update({selection:Ls.jT.create(r),userEvent:"select"})),!0}},{key:"Mod-i",run:function(e){var t=e.state,n=e.dispatch,r=vl(t.selection,(function(e){for(var n,r=(0,Ns.qz)(t).resolveInner(e.head,1);!(r.from=e.to||r.to>e.to&&r.from<=e.from)&&(null===(n=r.parent)||void 0===n?void 0:n.parent);)r=r.parent;return Ls.jT.range(r.to,r.from)}));return n(Ol(t,r)),!0},preventDefault:!0},{key:"Mod-[",run:pu},{key:"Mod-]",run:du},{key:"Mod-Alt-\\",run:function(e){var t=e.state,n=e.dispatch;if(t.readOnly)return!1;var r=Object.create(null),i=new Ns.Gn(t,{overrideIndentation:function(e){var t=r[e];return null==t?-1:t}}),o=fu(t,(function(e,n,o){var a=(0,Ns.K0)(i,e.from);if(null!=a){/\S/.test(e.text)||(a=0);var s=/^\s*/.exec(e.text)[0],l=(0,Ns.SS)(t,a);(s!=l||o.from0?n--:r2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length,o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;(0,re.Z)(this,e),this.test=a,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(r,i),this.bufferStart=r,this.normalize=o?function(e){return o(ku(e))}:ku,this.query=this.normalize(n)}return(0,ie.Z)(e,[{key:"peek",value:function(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return(0,Ls.gm)(this.buffer,this.bufferPos)}},{key:"next",value:function(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}},{key:"nextOverlapping",value:function(){for(;;){var e=this.peek();if(e<0)return this.done=!0,this;var t=(0,Ls.bg)(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,Ls.nZ)(e);for(var r=this.normalize(t),i=0,o=n;;i++){var a=r.charCodeAt(i),s=this.match(a,o);if(i==r.length-1){if(s)return this.value=s,this;break}o==n&&i3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t.length;if((0,re.Z)(this,e),this.text=t,this.to=o,this.curLine="",this.done=!1,this.value=xu,/\\[sWDnr]|\n|\r|\[\^/.test(n))return new Au(t,n,r,i,o);this.re=new RegExp(n,wu+((null===r||void 0===r?void 0:r.ignoreCase)?"i":"")),this.test=null===r||void 0===r?void 0:r.test,this.iter=t.iter();var a=t.lineAt(i);this.curLineStart=a.from,this.matchPos=Pu(t,i),this.getLine(this.curLineStart)}return(0,ie.Z)(e,[{key:"getLine",value:function(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}},{key:"nextLine",value:function(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}},{key:"next",value:function(){for(var e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;var t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){var n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=Pu(this.text,r+(n==r?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(nthis.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=r||i.to<=n){var o=new e(n,t.sliceString(n,r));return Cu.set(t,o),o}if(i.from==n&&i.to==r)return i;var a=i.text,s=i.from;return s>n&&(a=t.sliceString(n,s)+a,s=n),i.to=this.to?this.to:this.text.lineAt(e).to}},{key:"next",value:function(){for(;;){var e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){var n=this.flat.from+t.index,r=n+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this.matchPos=Pu(this.text,r+(n==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Eu.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}]),e}();function Pu(e,t){if(t>=e.length)return t;for(var n,r=e.lineAt(t);t=56320&&n<57344;)t++;return t}function _u(e){var t=yu("input",{class:"cm-textfield",name:"line"});function n(){var n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(n){var r=e.state,i=r.doc.lineAt(r.selection.main.head),o=(0,te.Z)(n,5),a=o[1],s=o[2],l=o[3],u=o[4],c=l?+l.slice(1):0,h=s?+s:i.number;if(s&&u){var f=h/100;a&&(f=f*("-"==a?-1:1)+i.number/r.doc.lines),h=Math.round(r.doc.lines*f)}else s&&a&&(h=h*("-"==a?-1:1)+i.number);var d=r.doc.line(Math.max(1,Math.min(r.doc.lines,h))),p=Ls.jT.cursor(d.from+Math.max(0,Math.min(c,d.length)));e.dispatch({effects:[Du.of(!1),$s.tk.scrollIntoView(p.from,{y:"center"})],selection:p}),e.focus()}}return{dom:yu("form",{class:"cm-gotoLine",onkeydown:function(t){27==t.keyCode?(t.preventDefault(),e.dispatch({effects:Du.of(!1)}),e.focus()):13==t.keyCode&&(t.preventDefault(),n())},onsubmit:function(e){e.preventDefault(),n()}},yu("label",e.state.phrase("Go to line"),": ",t)," ",yu("button",{class:"cm-button",type:"submit"},e.state.phrase("go")))}}"undefined"!=typeof Symbol&&(Tu.prototype[Symbol.iterator]=Au.prototype[Symbol.iterator]=function(){return this});var Du=Ls.Py.define(),Zu=Ls.QQ.define({create:function(){return!0},update:function(e,t){var n,r=(0,Oe.Z)(t.effects);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.is(Du)&&(e=i.value)}}catch(o){r.e(o)}finally{r.f()}return e},provide:function(e){return $s.mH.from(e,(function(e){return e?_u:null}))}}),Nu=$s.tk.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),Qu={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Ru=Ls.r$.define({combine:function(e){return(0,Ls.BO)(e,Qu,{highlightWordAroundCursor:function(e,t){return e||t},minSelectionLength:Math.min,maxMatches:Math.min})}});var Mu=$s.p.mark({class:"cm-selectionMatch"}),$u=$s.p.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function Iu(e,t,n,r){return(0==n||e(t.sliceDoc(n-1,n))!=Ls.D0.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=Ls.D0.Word)}var Lu=$s.lg.fromClass(function(){function e(t){(0,re.Z)(this,e),this.decorations=this.getDeco(t)}return(0,ie.Z)(e,[{key:"update",value:function(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}},{key:"getDeco",value:function(e){var t=e.state.facet(Ru),n=e.state,r=n.selection;if(r.ranges.length>1)return $s.p.none;var i,o=r.main,a=null;if(o.empty){if(!t.highlightWordAroundCursor)return $s.p.none;var s=n.wordAt(o.head);if(!s)return $s.p.none;a=n.charCategorizer(o.head),i=n.sliceDoc(s.from,s.to)}else{var l=o.to-o.from;if(l200)return $s.p.none;if(t.wholeWords){if(i=n.sliceDoc(o.from,o.to),!Iu(a=n.charCategorizer(o.head),n,o.from,o.to)||!function(e,t,n,r){return e(t.sliceDoc(n,n+1))==Ls.D0.Word&&e(t.sliceDoc(r-1,r))==Ls.D0.Word}(a,n,o.from,o.to))return $s.p.none}else if(!(i=n.sliceDoc(o.from,o.to).trim()))return $s.p.none}var u,c=[],h=(0,Oe.Z)(e.visibleRanges);try{for(h.s();!(u=h.n()).done;)for(var f=u.value,d=new Su(n.doc,i,f.from,f.to);!d.next().done;){var p=d.value,m=p.from,g=p.to;if((!a||Iu(a,n,m,g))&&(o.empty&&m<=o.from&&g>=o.to?c.push($u.range(m,g)):(m>=o.to||g<=o.from)&&c.push(Mu.range(m,g)),c.length>t.maxMatches))return $s.p.none}}catch(v){h.e(v)}finally{h.f()}return $s.p.set(c)}}]),e}(),{decorations:function(e){return e.decorations}}),Fu=$s.tk.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}});var Bu=Ls.r$.define({combine:function(e){return(0,Ls.BO)(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:function(e){return new gc(e)},scrollToMatch:function(e){return $s.tk.scrollIntoView(e)}})}});var ju=function(){function e(t){(0,re.Z)(this,e),this.search=t.search,this.caseSensitive=!!t.caseSensitive,this.literal=!!t.literal,this.regexp=!!t.regexp,this.replace=t.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,wu),!0}catch(t){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!t.wholeWord}return(0,ie.Z)(e,[{key:"unquote",value:function(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"}))}},{key:"eq",value:function(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}},{key:"create",value:function(){return this.regexp?new qu(this):new Yu(this)}},{key:"getCursor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=e.doc?e:Ls.yy.create({doc:e});return null==n&&(n=r.doc.length),this.regexp?Xu(this,r,t,n):Uu(this,r,t,n)}}]),e}(),zu=(0,ie.Z)((function e(t){(0,re.Z)(this,e),this.spec=t}));function Uu(e,t,n,r){return new Su(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:function(e){return e.toLowerCase()},e.wholeWord?(i=t.doc,o=t.charCategorizer(t.selection.main.head),function(e,t,n,r){return(r>e||r+n.length=t)return null;r.push(n.value)}return r}},{key:"highlight",value:function(e,t,n,r){for(var i=Uu(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));!i.next().done;)r(i.value.from,i.value.to)}}]),n}(zu);function Xu(e,t,n,r){return new Tu(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?(i=t.charCategorizer(t.selection.main.head),function(e,t,n){return!n[0].length||(i(Hu(n.input,n.index))!=Ls.D0.Word||i(Wu(n.input,n.index))!=Ls.D0.Word)&&(i(Wu(n.input,n.index+n[0].length))!=Ls.D0.Word||i(Hu(n.input,n.index+n[0].length))!=Ls.D0.Word)}):void 0},n,r);var i}function Hu(e,t){return e.slice((0,Ls.cp)(e,t,!1),t)}function Wu(e,t){return e.slice(t,(0,Ls.cp)(e,t))}var qu=function(e){(0,oe.Z)(n,e);var t=(0,ae.Z)(n);function n(){return(0,re.Z)(this,n),t.apply(this,arguments)}return(0,ie.Z)(n,[{key:"nextMatch",value:function(e,t,n){var r=Xu(this.spec,e,n,e.doc.length).next();return r.done&&(r=Xu(this.spec,e,0,t).next()),r.done?null:r.value}},{key:"prevMatchInRange",value:function(e,t,n){for(var r=1;;r++){for(var i=Math.max(t,n-1e4*r),o=Xu(this.spec,e,i,n),a=null;!o.next().done;)a=o.value;if(a&&(i==t||a.from>i+10))return a;if(i==t)return null}}},{key:"prevMatch",value:function(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}},{key:"getReplacement",value:function(e){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,(function(t,n){return"$"==n?"$":"&"==n?e.match[0]:"0"!=n&&+n=t)return null;r.push(n.value)}return r}},{key:"highlight",value:function(e,t,n,r){for(var i=Xu(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));!i.next().done;)r(i.value.from,i.value.to)}}]),n}(zu),Gu=Ls.Py.define(),Vu=Ls.Py.define(),Ju=Ls.QQ.define({create:function(e){return new Ku(cc(e).create(),null)},update:function(e,t){var n,r=(0,Oe.Z)(t.effects);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.is(Gu)?e=new Ku(i.value.create(),e.panel):i.is(Vu)&&(e=new Ku(e.query,i.value?uc:null))}}catch(o){r.e(o)}finally{r.f()}return e},provide:function(e){return $s.mH.from(e,(function(e){return e.panel}))}});var Ku=(0,ie.Z)((function e(t,n){(0,re.Z)(this,e),this.query=t,this.panel=n})),ec=$s.p.mark({class:"cm-searchMatch"}),tc=$s.p.mark({class:"cm-searchMatch cm-searchMatch-selected"}),nc=$s.lg.fromClass(function(){function e(t){(0,re.Z)(this,e),this.view=t,this.decorations=this.highlight(t.state.field(Ju))}return(0,ie.Z)(e,[{key:"update",value:function(e){var t=e.state.field(Ju);(t!=e.startState.field(Ju)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}},{key:"highlight",value:function(e){var t=e.query;if(!e.panel||!t.spec.valid)return $s.p.none;for(var n=this.view,r=new Ls.f_,i=0,o=n.visibleRanges,a=o.length;io[i+1].from-500;)u=o[++i].to;t.highlight(n.state,l,u,(function(e,t){var i=n.state.selection.ranges.some((function(n){return n.from==e&&n.to==t}));r.add(e,t,i?tc:ec)}))}return r.finish()}}]),e}(),{decorations:function(e){return e.decorations}});function rc(e){return function(t){var n=t.state.field(Ju,!1);return n&&n.query.spec.valid?e(t,n):dc(t)}}var ic=rc((function(e,t){var n=t.query,r=e.state.selection.main.to,i=n.nextMatch(e.state,r,r);if(!i)return!1;var o=Ls.jT.single(i.from,i.to),a=e.state.facet(Bu);return e.dispatch({selection:o,effects:[bc(e,i),a.scrollToMatch(o.main,e)],userEvent:"select.search"}),fc(e),!0})),oc=rc((function(e,t){var n=t.query,r=e.state,i=r.selection.main.from,o=n.prevMatch(r,i,i);if(!o)return!1;var a=Ls.jT.single(o.from,o.to),s=e.state.facet(Bu);return e.dispatch({selection:a,effects:[bc(e,o),s.scrollToMatch(a.main,e)],userEvent:"select.search"}),fc(e),!0})),ac=rc((function(e,t){var n=t.query.matchAll(e.state,1e3);return!(!n||!n.length)&&(e.dispatch({selection:Ls.jT.create(n.map((function(e){return Ls.jT.range(e.from,e.to)}))),userEvent:"select.search.matches"}),!0)})),sc=rc((function(e,t){var n=t.query,r=e.state,i=r.selection.main,o=i.from,a=i.to;if(r.readOnly)return!1;var s=n.nextMatch(r,o,o);if(!s)return!1;var l,u,c=[],h=[];if(s.from==o&&s.to==a&&(u=r.toText(n.getReplacement(s)),c.push({from:s.from,to:s.to,insert:u}),s=n.nextMatch(r,s.from,s.to),h.push($s.tk.announce.of(r.phrase("replaced match on line $",r.doc.lineAt(o).number)+"."))),s){var f=0==c.length||c[0].from>=s.to?0:s.to-s.from-u.length;l=Ls.jT.single(s.from-f,s.to-f),h.push(bc(e,s)),h.push(r.facet(Bu).scrollToMatch(l.main,e))}return e.dispatch({changes:c,selection:l,effects:h,userEvent:"input.replace"}),!0})),lc=rc((function(e,t){var n=t.query;if(e.state.readOnly)return!1;var r=n.matchAll(e.state,1e9).map((function(e){return{from:e.from,to:e.to,insert:n.getReplacement(e)}}));if(!r.length)return!1;var i=e.state.phrase("replaced $ matches",r.length)+".";return e.dispatch({changes:r,effects:$s.tk.announce.of(i),userEvent:"input.replace.all"}),!0}));function uc(e){return e.state.facet(Bu).createPanel(e)}function cc(e,t){var n,r,i,o,a,s=e.selection.main,l=s.empty||s.to>s.from+100?"":e.sliceDoc(s.from,s.to);if(t&&!l)return t;var u=e.facet(Bu);return new ju({search:(null!==(n=null===t||void 0===t?void 0:t.literal)&&void 0!==n?n:u.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!==(r=null===t||void 0===t?void 0:t.caseSensitive)&&void 0!==r?r:u.caseSensitive,literal:null!==(i=null===t||void 0===t?void 0:t.literal)&&void 0!==i?i:u.literal,regexp:null!==(o=null===t||void 0===t?void 0:t.regexp)&&void 0!==o?o:u.regexp,wholeWord:null!==(a=null===t||void 0===t?void 0:t.wholeWord)&&void 0!==a?a:u.wholeWord})}function hc(e){var t=(0,$s.Sd)(e,uc);return t&&t.dom.querySelector("[main-field]")}function fc(e){var t=hc(e);t&&t==e.root.activeElement&&t.select()}var dc=function(e){var t=e.state.field(Ju,!1);if(t&&t.panel){var n=hc(e);if(n&&n!=e.root.activeElement){var r=cc(e.state,t.query.spec);r.valid&&e.dispatch({effects:Gu.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[Vu.of(!0),t?Gu.of(cc(e.state,t.query.spec)):Ls.Py.appendConfig.of(Sc)]});return!0},pc=function(e){var t=e.state.field(Ju,!1);if(!t||!t.panel)return!1;var n=(0,$s.Sd)(e,uc);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:Vu.of(!1)}),!0},mc=[{key:"Mod-f",run:dc,scope:"editor search-panel"},{key:"F3",run:ic,shift:oc,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:ic,shift:oc,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:pc,scope:"editor search-panel"},{key:"Mod-Shift-l",run:function(e){var t=e.state,n=e.dispatch,r=t.selection;if(r.ranges.length>1||r.main.empty)return!1;for(var i=r.main,o=i.from,a=i.to,s=[],l=0,u=new Su(t.doc,t.sliceDoc(o,a));!u.next().done;){if(s.length>1e3)return!1;u.value.from==o&&(l=s.length),s.push(Ls.jT.range(u.value.from,u.value.to))}return n(t.update({selection:Ls.jT.create(s,l),userEvent:"select.search.matches"})),!0}},{key:"Alt-g",run:function(e){var t=(0,$s.Sd)(e,_u);if(!t){var n=[Du.of(!0)];null==e.state.field(Zu,!1)&&n.push(Ls.Py.appendConfig.of([Zu,Nu])),e.dispatch({effects:n}),t=(0,$s.Sd)(e,_u)}return t&&t.dom.querySelector("input").focus(),!0}},{key:"Mod-d",run:function(e){var t=e.state,n=e.dispatch,r=t.selection.ranges;if(r.some((function(e){return e.from===e.to})))return function(e){var t=e.state,n=e.dispatch,r=t.selection,i=Ls.jT.create(r.ranges.map((function(e){return t.wordAt(e.head)||Ls.jT.cursor(e.head)})),r.mainIndex);return!i.eq(r)&&(n(t.update({selection:i})),!0)}({state:t,dispatch:n});var i=t.sliceDoc(r[0].from,r[0].to);if(t.selection.ranges.some((function(e){return t.sliceDoc(e.from,e.to)!=i})))return!1;var o=function(e,t){for(var n,r=e.selection,i=r.main,o=r.ranges,a=e.wordAt(i.head),s=a&&a.from==i.from&&a.to==i.to,l=function(n,r){if(r.next(),!r.done){if(n&&o.some((function(e){return e.from==r.value.from})))return u=n,c=r,0;if(s){var i=e.wordAt(r.value.from);if(!i||i.from!=r.value.from||i.to!=r.value.to)return u=n,c=r,0}return{v:r.value}}if(n)return{v:null};r=new Su(e.doc,t,0,Math.max(0,o[o.length-1].from-1)),u=n=!0,c=r},u=!1,c=new Su(e.doc,t,o[o.length-1].to);;)if(0!==(n=l(u,c))&&n)return n.v}(t,i);return!!o&&(n(t.update({selection:t.selection.addRange(Ls.jT.range(o.from,o.to),!1),effects:$s.tk.scrollIntoView(o.to)})),!0)},preventDefault:!0}],gc=function(){function e(t){var n=this;(0,re.Z)(this,e),this.view=t;var r=this.query=t.state.field(Ju).query.spec;function i(e,t,n){return yu("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=yu("input",{value:r.search,placeholder:vc(t,"Find"),"aria-label":vc(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=yu("input",{value:r.replace,placeholder:vc(t,"Replace"),"aria-label":vc(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=yu("input",{type:"checkbox",name:"case",form:"",checked:r.caseSensitive,onchange:this.commit}),this.reField=yu("input",{type:"checkbox",name:"re",form:"",checked:r.regexp,onchange:this.commit}),this.wordField=yu("input",{type:"checkbox",name:"word",form:"",checked:r.wholeWord,onchange:this.commit}),this.dom=yu("div",{onkeydown:function(e){return n.keydown(e)},class:"cm-search"},[this.searchField,i("next",(function(){return ic(t)}),[vc(t,"next")]),i("prev",(function(){return oc(t)}),[vc(t,"previous")]),i("select",(function(){return ac(t)}),[vc(t,"all")]),yu("label",null,[this.caseField,vc(t,"match case")]),yu("label",null,[this.reField,vc(t,"regexp")]),yu("label",null,[this.wordField,vc(t,"by word")])].concat((0,ne.Z)(t.state.readOnly?[]:[yu("br"),this.replaceField,i("replace",(function(){return sc(t)}),[vc(t,"replace")]),i("replaceAll",(function(){return lc(t)}),[vc(t,"replace all")])]),[yu("button",{name:"close",onclick:function(){return pc(t)},"aria-label":vc(t,"close"),type:"button"},["\xd7"])]))}return(0,ie.Z)(e,[{key:"commit",value:function(){var e=new ju({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:Gu.of(e)}))}},{key:"keydown",value:function(e){(0,$s.$1)(this.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?oc:ic)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),sc(this.view))}},{key:"update",value:function(e){var t,n=(0,Oe.Z)(e.transactions);try{for(n.s();!(t=n.n()).done;){var r,i=t.value,o=(0,Oe.Z)(i.effects);try{for(o.s();!(r=o.n()).done;){var a=r.value;a.is(Gu)&&!a.value.eq(this.query)&&this.setQuery(a.value)}}catch(s){o.e(s)}finally{o.f()}}}catch(s){n.e(s)}finally{n.f()}}},{key:"setQuery",value:function(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}},{key:"mount",value:function(){this.searchField.select()}},{key:"pos",get:function(){return 80}},{key:"top",get:function(){return this.view.state.facet(Bu).top}}]),e}();function vc(e,t){return e.state.phrase(t)}var Oc=30,yc=/[\s\.,:;?!]/;function bc(e,t){var n=t.from,r=t.to,i=e.state.doc.lineAt(n),o=e.state.doc.lineAt(r).to,a=Math.max(i.from,n-Oc),s=Math.min(o,r+Oc),l=e.state.sliceDoc(a,s);if(a!=i.from)for(var u=0;ul.length-Oc;c--)if(!yc.test(l[c-1])&&yc.test(l[c])){l=l.slice(0,c);break}return $s.tk.announce.of("".concat(e.state.phrase("current match"),". ").concat(l," ").concat(e.state.phrase("on line")," ").concat(i.number,"."))}var kc=$s.tk.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),Sc=[Ju,Ls.Wl.lowest(nc),kc],xc=n(6391),wc=(0,ie.Z)((function e(t,n,r){(0,re.Z)(this,e),this.from=t,this.to=n,this.diagnostic=r})),Tc=function(){function e(t,n,r){(0,re.Z)(this,e),this.diagnostics=t,this.panel=n,this.selected=r}return(0,ie.Z)(e,null,[{key:"init",value:function(t,n,r){var i=t,o=r.facet(Ic).markerFilter;o&&(i=o(i));var a=$s.p.set(i.map((function(e){return e.from==e.to||e.from==e.to-1&&r.doc.lineAt(e.from).to==e.from?$s.p.widget({widget:new Bc(e),diagnostic:e}).range(e.from):$s.p.mark({attributes:{class:"cm-lintRange cm-lintRange-"+e.severity+(e.markClass?" "+e.markClass:"")},diagnostic:e}).range(e.from,e.to)})),!0);return new e(a,n,Cc(a))}}]),e}();function Cc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=null;return e.between(n,1e9,(function(e,n,i){var o=i.spec;if(!t||o.diagnostic==t)return r=new wc(e,n,o.diagnostic),!1})),r}function Ec(e,t){var n=e.startState.doc.lineAt(t.pos);return!(!e.effects.some((function(e){return e.is(Pc)}))&&!e.changes.touchesRange(n.from,n.to))}function Ac(e,t){return e.field(Zc,!1)?t:t.concat(Ls.Py.appendConfig.of(Gc))}var Pc=Ls.Py.define(),_c=Ls.Py.define(),Dc=Ls.Py.define(),Zc=Ls.QQ.define({create:function(){return new Tc($s.p.none,null,null)},update:function(e,t){if(t.docChanged){var n=e.diagnostics.map(t.changes),r=null;if(e.selected){var i=t.changes.mapPos(e.selected.from,1);r=Cc(n,e.selected.diagnostic,i)||Cc(n,null,i)}e=new Tc(n,e.panel,r)}var o,a=(0,Oe.Z)(t.effects);try{for(a.s();!(o=a.n()).done;){var s=o.value;s.is(Pc)?e=Tc.init(s.value,e.panel,t.state):s.is(_c)?e=new Tc(e.diagnostics,s.value?zc.open:null,e.selected):s.is(Dc)&&(e=new Tc(e.diagnostics,e.panel,s.value))}}catch(l){a.e(l)}finally{a.f()}return e},provide:function(e){return[$s.mH.from(e,(function(e){return e.panel})),$s.tk.decorations.from(e,(function(e){return e.diagnostics}))]}});var Nc=$s.p.mark({class:"cm-lintRange cm-lintRange-active"});function Qc(e,t,n){var r=e.state.field(Zc).diagnostics,i=[],o=2e8,a=0;r.between(t-(n<0?1:0),t+(n>0?1:0),(function(e,r,s){var l=s.spec;t>=e&&t<=r&&(e==r||(t>e||n>0)&&(t=65&&e.keyCode<=90&&n.selectedIndex>=0))return;for(var r=n.items[n.selectedIndex].diagnostic,i=Lc(r.actions),o=0;oi&&(e.items.splice(i,c-i),o=!0)),r&&l.diagnostic==r.diagnostic?l.dom.hasAttribute("aria-selected")||(l.dom.setAttribute("aria-selected","true"),a=l):l.dom.hasAttribute("aria-selected")&&l.dom.removeAttribute("aria-selected"),i++}));ir.bottom&&(e.list.scrollTop+=n.bottom-r.bottom)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),o&&this.sync()}},{key:"sync",value:function(){var e=this.list.firstChild;function t(){var t=e;e=t.nextSibling,t.remove()}var n,r=(0,Oe.Z)(this.items);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.dom.parentNode==this.list){for(;e!=i.dom;)t();e=i.dom.nextSibling}else this.list.insertBefore(i.dom,e)}}catch(o){r.e(o)}finally{r.f()}for(;e;)t()}},{key:"moveSelection",value:function(e){if(!(this.selectedIndex<0)){var t=Cc(this.view.state.field(Zc).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:Dc.of(t)})}}}],[{key:"open",value:function(t){return new e(t)}}]),e}();function Uc(e){return'url(\'data:image/svg+xml,1&&void 0!==arguments[1]?arguments[1]:'viewBox="0 0 40 40"',">").concat(encodeURIComponent(e),"')")}function Yc(e){return Uc(''),'width="6" height="3"')}var Xc=$s.tk.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:Yc("#d11")},".cm-lintRange-warning":{backgroundImage:Yc("orange")},".cm-lintRange-info":{backgroundImage:Yc("#999")},".cm-lintRange-hint":{backgroundImage:Yc("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function Hc(e){return"error"==e?4:"warning"==e?3:"info"==e?2:1}$s.SJ;var Wc=Ls.Py.define(),qc=Ls.QQ.define({create:function(){return null},update:function(e,t){return e&&t.docChanged&&(e=Ec(t,e)?null:Object.assign(Object.assign({},e),{pos:t.changes.mapPos(e.pos)})),t.effects.reduce((function(e,t){return t.is(Wc)?t.value:e}),e)},provide:function(e){return $s.hJ.from(e)}}),Gc=[Zc,$s.tk.decorations.compute([Zc],(function(e){var t=e.field(Zc),n=t.selected,r=t.panel;return n&&r&&n.from!=n.to?$s.p.set([Nc.range(n.from,n.to)]):$s.p.none})),(0,$s.bF)(Qc,{hideOn:Ec}),Xc],Vc=Ls.r$.define({combine:function(e){return(0,Ls.BO)(e,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});var Jc=function(e){void 0===e&&(e={});var t=[];!1!==e.closeBracketsKeymap&&(t=t.concat(xc.GA)),!1!==e.defaultKeymap&&(t=t.concat(vu)),!1!==e.searchKeymap&&(t=t.concat(mc)),!1!==e.historyKeymap&&(t=t.concat(gl)),!1!==e.foldKeymap&&(t=t.concat(Ns.e7)),!1!==e.completionKeymap&&(t=t.concat(xc.B1)),!1!==e.lintKeymap&&(t=t.concat($c));var n=[];return!1!==e.lineNumbers&&n.push((0,$s.Eu)()),!1!==e.highlightActiveLineGutter&&n.push((0,$s.HQ)()),!1!==e.highlightSpecialChars&&n.push((0,$s.AE)()),!1!==e.history&&n.push(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[Ks,Js.of(e),$s.tk.domEventHandlers({beforeinput:function(e,t){var n="historyUndo"==e.inputType?tl:"historyRedo"==e.inputType?nl:null;return!!n&&(e.preventDefault(),n(t))}})]}()),!1!==e.foldGutter&&n.push((0,Ns.mi)()),!1!==e.drawSelection&&n.push((0,$s.Uw)()),!1!==e.dropCursor&&n.push((0,$s.qr)()),!1!==e.allowMultipleSelections&&n.push(Ls.yy.allowMultipleSelections.of(!0)),!1!==e.indentOnInput&&n.push((0,Ns.nY)()),!1!==e.syntaxHighlighting&&n.push((0,Ns.nF)(Ns.R_,{fallback:!0})),!1!==e.bracketMatching&&n.push((0,Ns.n$)()),!1!==e.closeBrackets&&n.push((0,xc.vQ)()),!1!==e.autocompletion&&n.push((0,xc.ys)()),!1!==e.rectangularSelection&&n.push((0,$s.Zs)()),!1!==e.crosshairCursor&&n.push((0,$s.S2)()),!1!==e.highlightActiveLine&&n.push((0,$s.ZO)()),!1!==e.highlightSelectionMatches&&n.push(function(e){var t=[Fu,Lu];return e&&t.push(Ru.of(e)),t}()),e.tabSize&&"number"===typeof e.tabSize&&n.push(Ns.c.of(" ".repeat(e.tabSize))),n.concat([$s.$f.of(t.flat())]).filter(Boolean)},Kc=n(994),eh="#e5c07b",th="#e06c75",nh="#56b6c2",rh="#ffffff",ih="#abb2bf",oh="#7d8799",ah="#61afef",sh="#98c379",lh="#d19a66",uh="#c678dd",ch="#21252b",hh="#2c313a",fh="#282c34",dh="#353a42",ph="#3E4451",mh="#528bff",gh=$s.tk.theme({"&":{color:ih,backgroundColor:fh},".cm-content":{caretColor:mh},".cm-cursor, .cm-dropCursor":{borderLeftColor:mh},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:ph},".cm-panels":{backgroundColor:ch,color:ih},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:fh,color:oh,border:"none"},".cm-activeLineGutter":{backgroundColor:hh},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:dh},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:dh,borderBottomColor:dh},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:hh,color:ih}}},{dark:!0}),vh=Ns.Qf.define([{tag:Kc.pJ.keyword,color:uh},{tag:[Kc.pJ.name,Kc.pJ.deleted,Kc.pJ.character,Kc.pJ.propertyName,Kc.pJ.macroName],color:th},{tag:[Kc.pJ.function(Kc.pJ.variableName),Kc.pJ.labelName],color:ah},{tag:[Kc.pJ.color,Kc.pJ.constant(Kc.pJ.name),Kc.pJ.standard(Kc.pJ.name)],color:lh},{tag:[Kc.pJ.definition(Kc.pJ.name),Kc.pJ.separator],color:ih},{tag:[Kc.pJ.typeName,Kc.pJ.className,Kc.pJ.number,Kc.pJ.changed,Kc.pJ.annotation,Kc.pJ.modifier,Kc.pJ.self,Kc.pJ.namespace],color:eh},{tag:[Kc.pJ.operator,Kc.pJ.operatorKeyword,Kc.pJ.url,Kc.pJ.escape,Kc.pJ.regexp,Kc.pJ.link,Kc.pJ.special(Kc.pJ.string)],color:nh},{tag:[Kc.pJ.meta,Kc.pJ.comment],color:oh},{tag:Kc.pJ.strong,fontWeight:"bold"},{tag:Kc.pJ.emphasis,fontStyle:"italic"},{tag:Kc.pJ.strikethrough,textDecoration:"line-through"},{tag:Kc.pJ.link,color:oh,textDecoration:"underline"},{tag:Kc.pJ.heading,fontWeight:"bold",color:th},{tag:[Kc.pJ.atom,Kc.pJ.bool,Kc.pJ.special(Kc.pJ.variableName)],color:lh},{tag:[Kc.pJ.processingInstruction,Kc.pJ.string,Kc.pJ.inserted],color:sh},{tag:Kc.pJ.invalid,color:rh}]),Oh=[gh,(0,Ns.nF)(vh)],yh=$s.tk.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),bh=Ls.q6.define(),kh=[];function Sh(e){var t=e.value,n=e.selection,r=e.onChange,i=e.onStatistics,o=e.onCreateEditor,a=e.onUpdate,s=e.extensions,l=void 0===s?kh:s,u=e.autoFocus,c=e.theme,h=void 0===c?"light":c,f=e.height,d=void 0===f?"":f,p=e.minHeight,m=void 0===p?"":p,g=e.maxHeight,v=void 0===g?"":g,O=e.placeholder,y=void 0===O?"":O,b=e.width,k=void 0===b?"":b,S=e.minWidth,x=void 0===S?"":S,w=e.maxWidth,T=void 0===w?"":w,C=e.editable,E=void 0===C||C,A=e.readOnly,P=void 0!==A&&A,_=e.indentWithTab,D=void 0===_||_,Z=e.basicSetup,N=void 0===Z||Z,Q=e.root,R=e.initialState,M=(0,J.useState)(),$=(0,te.Z)(M,2),I=$[0],L=$[1],F=(0,J.useState)(),B=(0,te.Z)(F,2),j=B[0],z=B[1],U=(0,J.useState)(),Y=(0,te.Z)(U,2),X=Y[0],H=Y[1],W=$s.tk.theme({"&":{height:d,minHeight:m,maxHeight:v,width:k,minWidth:x,maxWidth:T},"& .cm-scroller":{height:"100% !important"}}),q=$s.tk.updateListener.of((function(e){if(e.docChanged&&"function"===typeof r&&!e.transactions.some((function(e){return e.annotation(bh)}))){var t=e.state.doc.toString();r(t,e)}i&&i(function(e){return{line:e.state.doc.lineAt(e.state.selection.main.from),lineCount:e.state.doc.lines,lineBreak:e.state.lineBreak,length:e.state.doc.length,readOnly:e.state.readOnly,tabSize:e.state.tabSize,selection:e.state.selection,selectionAsSingle:e.state.selection.asSingle().main,ranges:e.state.selection.ranges,selectionCode:e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to),selections:e.state.selection.ranges.map((function(t){return e.state.sliceDoc(t.from,t.to)})),selectedText:e.state.selection.ranges.some((function(e){return!e.empty}))}}(e))})),G=function(e){void 0===e&&(e={});var t=e,n=t.indentWithTab,r=void 0===n||n,i=t.editable,o=void 0===i||i,a=t.readOnly,s=void 0!==a&&a,l=t.theme,u=void 0===l?"light":l,c=t.placeholder,h=void 0===c?"":c,f=t.basicSetup,d=void 0===f||f,p=[];switch(r&&p.unshift($s.$f.of([Ou])),d&&("boolean"===typeof d?p.unshift(Jc()):p.unshift(Jc(d))),h&&p.unshift((0,$s.W$)(h)),u){case"light":p.push(yh);break;case"dark":p.push(Oh);break;case"none":break;default:p.push(u)}return!1===o&&p.push($s.tk.editable.of(!1)),s&&p.push(Ls.yy.readOnly.of(!0)),[].concat(p)}({theme:h,editable:E,readOnly:P,placeholder:y,indentWithTab:D,basicSetup:N}),V=[q,W].concat((0,ne.Z)(G));return a&&"function"===typeof a&&V.push($s.tk.updateListener.of(a)),V=V.concat(l),(0,J.useEffect)((function(){if(I&&!X){var e={doc:t,selection:n,extensions:V},r=R?Ls.yy.fromJSON(R.json,e,R.fields):Ls.yy.create(e);if(H(r),!j){var i=new $s.tk({state:r,parent:I,root:Q});z(i),o&&o(i,r)}}return function(){j&&(H(void 0),z(void 0))}}),[I,X]),(0,J.useEffect)((function(){return L(e.container)}),[e.container]),(0,J.useEffect)((function(){return function(){j&&(j.destroy(),z(void 0))}}),[j]),(0,J.useEffect)((function(){u&&j&&j.focus()}),[u,j]),(0,J.useEffect)((function(){j&&j.dispatch({effects:Ls.Py.reconfigure.of(V)})}),[h,l,d,m,v,k,x,T,y,E,P,D,N,r,a]),(0,J.useEffect)((function(){if(void 0!==t){var e=j?j.state.doc.toString():"";j&&t!==e&&j.dispatch({changes:{from:0,to:e.length,insert:t||""},annotations:[bh.of(!0)]})}}),[t,j]),{state:X,setState:H,view:j,setView:z,container:I,setContainer:L}}var xh=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],wh=(0,J.forwardRef)((function(e,t){var n=e.className,r=e.value,i=void 0===r?"":r,o=e.selection,a=e.extensions,s=void 0===a?[]:a,l=e.onChange,u=e.onStatistics,c=e.onCreateEditor,h=e.onUpdate,f=e.autoFocus,d=e.theme,p=void 0===d?"light":d,m=e.height,g=e.minHeight,v=e.maxHeight,O=e.width,y=e.minWidth,b=e.maxWidth,k=e.basicSetup,S=e.placeholder,x=e.indentWithTab,w=e.editable,T=e.readOnly,C=e.root,E=e.initialState,A=Wt(e,xh),P=(0,J.useRef)(null),_=Sh({container:P.current,root:C,value:i,autoFocus:f,theme:p,height:m,minHeight:g,maxHeight:v,width:O,minWidth:y,maxWidth:b,basicSetup:k,placeholder:S,indentWithTab:x,editable:w,readOnly:T,selection:o,onChange:l,onStatistics:u,onCreateEditor:c,onUpdate:h,extensions:s,initialState:E}),D=_.state,Z=_.view,N=_.container;if((0,J.useImperativeHandle)(t,(function(){return{editor:P.current,state:D,view:Z}}),[P,N,D,Z]),"string"!==typeof i)throw new Error("value must be typeof string but got "+typeof i);var Q="string"===typeof p?"cm-theme-"+p:"cm-theme";return(0,qt.jsx)("div",Ht({ref:P,className:Q+(n?" "+n:"")},A))}));wh.displayName="CodeMirror";var Th=wh,Ch=n(2589);function Eh(e){return e&&"object"===typeof e?"position"in e||"type"in e?Ph(e.position):"start"in e||"end"in e?Ph(e):"line"in e||"column"in e?Ah(e):"":""}function Ah(e){return _h(e&&e.line)+":"+_h(e&&e.column)}function Ph(e){return Ah(e&&e.start)+"-"+Ah(e&&e.end)}function _h(e){return e&&"number"===typeof e?e:1}var Dh=function(e){(0,oe.Z)(n,e);var t=(0,ae.Z)(n);function n(e,r,i){var o;(0,re.Z)(this,n);var a=[null,null],s={start:{line:null,column:null},end:{line:null,column:null}};if(o=t.call(this),"string"===typeof r&&(i=r,r=void 0),"string"===typeof i){var l=i.indexOf(":");-1===l?a[1]=i:(a[0]=i.slice(0,l),a[1]=i.slice(l+1))}return r&&("type"in r||"position"in r?r.position&&(s=r.position):"start"in r||"end"in r?s=r:("line"in r||"column"in r)&&(s.start=r)),o.name=Eh(r)||"1:1",o.message="object"===typeof e?e.message:e,o.stack="","object"===typeof e&&e.stack&&(o.stack=e.stack),o.reason=o.message,o.fatal,o.line=s.start.line,o.column=s.start.column,o.position=s,o.source=a[0],o.ruleId=a[1],o.file,o.actual,o.expected,o.url,o.note,o}return(0,ie.Z)(n)}(he(Error));Dh.prototype.file="",Dh.prototype.name="",Dh.prototype.reason="",Dh.prototype.message="",Dh.prototype.stack="",Dh.prototype.fatal=null,Dh.prototype.column=null,Dh.prototype.line=null,Dh.prototype.source=null,Dh.prototype.ruleId=null,Dh.prototype.position=null;var Zh={basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');Nh(e);var n,r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.charCodeAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";var a=-1,s=t.length-1;for(;o--;)if(47===e.charCodeAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1),s>-1&&(e.charCodeAt(o)===t.charCodeAt(s--)?s<0&&(i=o):(s=-1,i=a));r===i?i=a:i<0&&(i=e.length);return e.slice(r,i)},dirname:function(e){if(Nh(e),0===e.length)return".";var t,n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},extname:function(e){Nh(e);var t,n=e.length,r=-1,i=0,o=-1,a=0;for(;n--;){var s=e.charCodeAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==a&&(a=1):o>-1&&(a=-1);else if(t){i=n+1;break}}if(o<0||r<0||0===a||1===a&&o===r-1&&o===i+1)return"";return e.slice(o,r)},join:function(){for(var e,t=-1,n=arguments.length,r=new Array(n),i=0;i2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",o=0):o=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),a=l,s=0;continue}}else if(i.length>0){i="",o=0,a=l,s=0;continue}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(a+1,l):i=e.slice(a+1,l),o=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/");return t?"/"+n:n}(e)},sep:"/"};function Nh(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var Qh={cwd:function(){return"/"}};function Rh(e){return null!==e&&"object"===typeof e&&e.href&&e.origin}function Mh(e){if("string"===typeof e)e=new URL(e);else if(!Rh(e)){var 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){var n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return function(e){if(""!==e.hostname){var t=new TypeError('File URL host must be "localhost" or empty on darwin');throw t.code="ERR_INVALID_FILE_URL_HOST",t}var n=e.pathname,r=-1;for(;++r1?l-1:0),c=1;ci.length;u&&i.push(o);try{l=e.apply(this,i)}catch(r){if(u&&n)throw r;return o(r)}u||(l instanceof Promise?l.then(a,o):l instanceof Error?o(l):a(l))}function o(e){if(!n){n=!0;for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o1?n-1:0),s=1;so?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice.apply(e,(0,ne.Z)(i));else for(n&&e.splice(t,n);a0?(of(e,e.length,0,t),e):t}var sf={}.hasOwnProperty;function lf(e){for(var t={},n=-1;++nr))return;for(var u,c,h=i.events.length,f=h;f--;)if("exit"===i.events[f][0]&&"chunkFlow"===i.events[f][1].type){if(u){c=i.events[f][1].end;break}u=!0}for(v(a),l=h;lt;){var r=o[n];i.containerState=r[1],r[0].exit.call(i,e)}o.length=t}function O(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},Ef={tokenize:function(e,t,n){return wf(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var Af={tokenize:function(e,t,n){return function(t){return bf(t)?wf(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Of(e)?t(e):n(e)}},partial:!0};function Pf(e){for(var t,n,r,i,o,a,s,l={},u=-1;++u=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0};var Nf={tokenize:function(e){var t=this,n=e.attempt(Af,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,wf(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Df,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};var Qf={resolveAll:If()},Rf=$f("string"),Mf=$f("text");function $f(e){return{tokenize:function(t){var n=this,r=this.parser.constructs[e],i=t.attempt(r,o,a);return o;function o(e){return l(e)?i(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;var t=r[e],i=-1;if(t)for(;++i-1){var s=n[0];"string"===typeof s?n[0]=s.slice(i):n.shift()}a>0&&n.push(e[o].slice(0,a))}return n}(a,e)}function f(){var e=r;return{line:e.line,column:e.column,offset:e.offset,_index:e._index,_bufferIndex:e._bufferIndex}}function d(){for(var e;r._index=3&&(null===o||Of(o))?(e.exit("thematicBreak"),t(o)):n(o)}function a(t){return t===r?(e.consume(t),i++,a):(e.exit("thematicBreakSequence"),bf(t)?wf(e,o,"whitespace")(t):o(t))}}};var zf={name:"list",tokenize:function(e,t,n){var r=this,i=r.events[r.events.length-1],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){var i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:mf(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(jf,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return mf(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(Af,r.interrupt?n:u,e.attempt(Uf,h,c))}function u(e){return r.containerState.initialBlankLine=!0,o++,h(e)}function c(t){return bf(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),h):n(t)}function h(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){var r=this;return r.containerState._closeFlow=void 0,e.check(Af,i,o);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,wf(e,t,"listItemIndent",r.containerState.size+1)(n)}function o(n){return r.containerState.furtherBlankLines||!bf(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Yf,t,a)(n))}function a(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,wf(e,e.attempt(zf,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},Uf={tokenize:function(e,t,n){var r=this;return wf(e,(function(e){var i=r.events[r.events.length-1];return!bf(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Yf={tokenize:function(e,t,n){var r=this;return wf(e,(function(e){var i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};var Xf={name:"blockQuote",tokenize:function(e,t,n){var r=this;return function(t){if(62===t){var o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return bf(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){var r=this;return function(t){if(bf(t))return wf(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return i(t)};function i(r){return e.attempt(Xf,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function Hf(e,t,n,r,i,o,a,s,l){var u=l||Number.POSITIVE_INFINITY,c=0;return function(t){if(60===t)return e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),h;if(null===t||32===t||41===t||pf(t))return n(t);return e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),p(t)};function h(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(s),h(t)):null===t||60===t||Of(t)?n(t):(e.consume(t),92===t?d:f)}function d(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function p(i){return c||null!==i&&41!==i&&!yf(i)?c999||null===h||91===h||93===h&&!a||94===h&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(h):93===h?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):Of(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(t){return null===t||91===t||93===t||Of(t)||l++>999?(e.exit("chunkString"),u(t)):(e.consume(t),a||(a=!bf(t)),92===t?h:c)}function h(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}}function qf(e,t,n,r,i,o){var a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,s;return n(t)};function s(n){return n===a?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===a?(e.exit(o),s(a)):null===t?n(t):Of(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),wf(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===a||null===t||Of(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return t===a||92===t?(e.consume(t),u):u(t)}}function Gf(e,t){var n;return function r(i){if(Of(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r;if(bf(i))return wf(e,r,n?"linePrefix":"lineSuffix")(i);return t(i)}}function Vf(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Jf={name:"definition",tokenize:function(e,t,n){var r,i=this;return function(t){return e.enter("definition"),function(t){return Wf.call(i,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return r=Vf(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return yf(t)?Gf(e,s)(t):s(t)}function s(t){return Hf(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(Kf,u,u)(t)}function u(t){return bf(t)?wf(e,c,"whitespace")(t):c(t)}function c(o){return null===o||Of(o)?(e.exit("definition"),i.parser.defined.push(r),t(o)):n(o)}}},Kf={tokenize:function(e,t,n){return function(t){return yf(t)?Gf(e,r)(t):n(t)};function r(t){return qf(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return bf(t)?wf(e,o,"whitespace")(t):o(t)}function o(e){return null===e||Of(e)?t(e):n(e)}},partial:!0};var ed={name:"codeIndented",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("codeIndented"),wf(e,i,"linePrefix",5)(t)};function i(e){var t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?s(t):Of(t)?e.attempt(td,o,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||Of(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},td={tokenize:function(e,t,n){var r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):Of(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):wf(e,o,"linePrefix",5)(t)}function o(e){var o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):Of(e)?i(e):n(e)}},partial:!0};var nd={name:"headingAtx",tokenize:function(e,t,n){var r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||yf(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||Of(n)?(e.exit("atxHeading"),t(n)):bf(n)?wf(e,o,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),o(t))}function s(t){return null===t||35===t||yf(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),s)}},resolve:function(e,t){var n,r,i=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);i-2>o&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&of(e,o,i-o+1,[["enter",n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},t],["enter",r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},t],["exit",r,t],["exit",n,t]]);return e}};var rd={name:"setextUnderline",tokenize:function(e,t,n){var r,i=this;return function(t){var a,s=i.events.length;for(;s--;)if("lineEnding"!==i.events[s][1].type&&"linePrefix"!==i.events[s][1].type&&"content"!==i.events[s][1].type){a="paragraph"===i.events[s][1].type;break}if(!i.parser.lazy[i.now().line]&&(i.interrupt||a))return e.enter("setextHeadingLine"),r=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t);return n(t)};function o(t){return t===r?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),bf(t)?wf(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||Of(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){var n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);var a={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",a,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=a;return e.push(["exit",a,t]),e}};var id=["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"],od=["pre","script","style","textarea"],ad={name:"htmlFlow",tokenize:function(e,t,n){var r,i,o,a,s,l=this;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u}(t)};function u(a){return 33===a?(e.consume(a),c):47===a?(e.consume(a),i=!0,d):63===a?(e.consume(a),r=3,l.interrupt?t:Q):hf(a)?(e.consume(a),o=String.fromCharCode(a),p):n(a)}function c(i){return 45===i?(e.consume(i),r=2,h):91===i?(e.consume(i),r=5,a=0,f):hf(i)?(e.consume(i),r=4,l.interrupt?t:Q):n(i)}function h(r){return 45===r?(e.consume(r),l.interrupt?t:Q):n(r)}function f(r){var i="CDATA[";return r===i.charCodeAt(a++)?(e.consume(r),6===a?l.interrupt?t:C:f):n(r)}function d(t){return hf(t)?(e.consume(t),o=String.fromCharCode(t),p):n(t)}function p(a){if(null===a||47===a||62===a||yf(a)){var s=47===a,u=o.toLowerCase();return s||i||!od.includes(u)?id.includes(o.toLowerCase())?(r=6,s?(e.consume(a),m):l.interrupt?t(a):C(a)):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(a):i?g(a):v(a)):(r=1,l.interrupt?t(a):C(a))}return 45===a||ff(a)?(e.consume(a),o+=String.fromCharCode(a),p):n(a)}function m(r){return 62===r?(e.consume(r),l.interrupt?t:C):n(r)}function g(t){return bf(t)?(e.consume(t),g):w(t)}function v(t){return 47===t?(e.consume(t),w):58===t||95===t||hf(t)?(e.consume(t),O):bf(t)?(e.consume(t),v):w(t)}function O(t){return 45===t||46===t||58===t||95===t||ff(t)?(e.consume(t),O):y(t)}function y(t){return 61===t?(e.consume(t),b):bf(t)?(e.consume(t),y):v(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,k):bf(t)?(e.consume(t),b):S(t)}function k(t){return t===s?(e.consume(t),s=null,x):null===t||Of(t)?n(t):(e.consume(t),k)}function S(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||yf(t)?y(t):(e.consume(t),S)}function x(e){return 47===e||62===e||bf(e)?v(e):n(e)}function w(t){return 62===t?(e.consume(t),T):n(t)}function T(t){return null===t||Of(t)?C(t):bf(t)?(e.consume(t),T):n(t)}function C(t){return 45===t&&2===r?(e.consume(t),_):60===t&&1===r?(e.consume(t),D):62===t&&4===r?(e.consume(t),R):63===t&&3===r?(e.consume(t),Q):93===t&&5===r?(e.consume(t),N):!Of(t)||6!==r&&7!==r?null===t||Of(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),C):(e.exit("htmlFlowData"),e.check(sd,M,E)(t))}function E(t){return e.check(ld,A,M)(t)}function A(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),P}function P(t){return null===t||Of(t)?E(t):(e.enter("htmlFlowData"),C(t))}function _(t){return 45===t?(e.consume(t),Q):C(t)}function D(t){return 47===t?(e.consume(t),o="",Z):C(t)}function Z(t){if(62===t){var n=o.toLowerCase();return od.includes(n)?(e.consume(t),R):C(t)}return hf(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),Z):C(t)}function N(t){return 93===t?(e.consume(t),Q):C(t)}function Q(t){return 62===t?(e.consume(t),R):45===t&&2===r?(e.consume(t),Q):C(t)}function R(t){return null===t||Of(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),R)}function M(n){return e.exit("htmlFlow"),t(n)}},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},sd={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Af,t,n)}},partial:!0},ld={tokenize:function(e,t,n){var r=this;return function(t){if(Of(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i;return n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};var ud={tokenize:function(e,t,n){var r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},cd={name:"codeFenced",tokenize:function(e,t,n){var r,i=this,o={tokenize:function(e,t,n){var o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),bf(t)?wf(e,u,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):u(t)}function u(t){return t===r?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===r?(o++,e.consume(t),c):o>=s?(e.exit("codeFencedFenceSequence"),bf(t)?wf(e,h,"whitespace")(t):h(t)):n(t)}function h(r){return null===r||Of(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0},a=0,s=0;return function(t){return function(t){var n=i.events[i.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===r?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),bf(t)?wf(e,u,"whitespace")(t):u(t))}function u(n){return null===n||Of(n)?(e.exit("codeFencedFence"),i.interrupt?t(n):e.check(ud,d,O)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(n))}function c(t){return null===t||Of(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(t)):bf(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),wf(e,h,"whitespace")(t)):96===t&&t===r?n(t):(e.consume(t),c)}function h(t){return null===t||Of(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||Of(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(t)):96===t&&t===r?n(t):(e.consume(t),f)}function d(t){return e.attempt(o,O,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&bf(t)?wf(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||Of(t)?e.check(ud,d,O)(t):(e.enter("codeFlowValue"),v(t))}function v(t){return null===t||Of(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),v)}function O(n){return e.exit("codeFenced"),t(n)}},concrete:!0};var hd=n(6166),fd={name:"characterReference",tokenize:function(e,t,n){var r,i,o=this,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,i=ff,u(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=gf,u):(e.enter("characterReferenceValue"),r=7,i=mf,u(t))}function u(s){if(59===s&&a){var l=e.exit("characterReferenceValue");return i!==ff||(0,hd.T)(o.sliceSerialize(l))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&a++1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;var h=Object.assign({},e[n][1].end),f=Object.assign({},e[c][1].start);Sd(h,-s),Sd(f,s),o={type:s>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},e[n][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:f},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[c][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},o.start),e[c][1].start=Object.assign({},a.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=af(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=af(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=af(l,Ff(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),l=af(l,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,l=af(l,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,of(e,n-1,c-n+3,l),c=n+l.length-u-2;break}c=-1;for(;++c13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCharCode(n)}var Ud=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Yd(e){return e.replace(Ud,Xd)}function Xd(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){var r=n.charCodeAt(1),i=120===r||88===r;return zd(n.slice(i?2:1),i?16:10)}return(0,hd.T)(n)||e}var Hd={}.hasOwnProperty,Wd=function(e,t,n){return"string"!==typeof t&&(n=t,t=void 0),function(e){var t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ne),autolinkProtocol:E,autolinkEmail:E,atxHeading:s(J),blockQuote:s(H),characterEscape:E,characterReference:E,codeFenced:s(W),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(W,l),codeText:s(q,l),codeTextData:E,data:E,codeFlowValue:E,definition:s(G),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(V),hardBreakEscape:s(K),hardBreakTrailing:s(K),htmlFlow:s(ee,l),htmlFlowData:E,htmlText:s(ee,l),htmlTextData:E,image:s(te),label:l,link:s(ne),listItem:s(ie),listItemValue:p,listOrdered:s(re,d),listUnordered:s(re),paragraph:s(oe),reference:B,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(J),strong:s(ae),thematicBreak:s(le)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:X,autolinkProtocol:Y,blockQuote:c(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:U,codeFenced:c(O),codeFencedFence:v,codeFencedFenceInfo:m,codeFencedFenceMeta:g,codeFlowValue:A,codeIndented:c(y),codeText:c(N),codeTextData:A,data:A,definition:c(),definitionDestinationString:S,definitionLabelString:b,definitionTitleString:k,emphasis:c(),hardBreakEscape:c(_),hardBreakTrailing:c(_),htmlFlow:c(D),htmlFlowData:A,htmlText:c(Z),htmlTextData:A,image:c(R),label:$,labelText:M,lineEnding:P,link:c(Q),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:j,resourceDestinationString:I,resourceTitleString:L,resource:F,setextHeading:c(C),setextHeadingLineSequence:T,setextHeadingText:w,strong:c(),thematicBreak:c()}};Gd(t,(e||{}).mdastExtensions||[]);var n={};return r;function r(e){for(var n={type:"root",children:[]},r={stack:[n],tokenStack:[],config:t,enter:u,exit:h,buffer:l,resume:f,setData:o,getData:a},s=[],c=-1;++c0){var p=r.tokenStack[r.tokenStack.length-1];(p[1]||Jd).call(r,void 0,p[0])}for(n.position={start:qd(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:qd(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c55295&&o<57344){var s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="\ufffd"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}var tp=function(e){if(void 0===e||null===e)return ip;if("string"===typeof e)return function(e){return rp(t);function t(t){return t&&t.type===e}}(e);if("object"===typeof e)return Array.isArray(e)?np(e):function(e){return rp(t);function t(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}(e);if("function"===typeof e)return rp(e);throw new Error("Expected function, string, or object as test")};function np(e){for(var t=[],n=-1;++n1?n-1:0),i=1;i":"")+")"})}return h;function h(){var u,c,h,f=[];if((!t||i(a,s,l[l.length-1]||null))&&(f=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[true,e];return[e]}(n(a,l)),f[0]===op))return f;if(a.children&&f[0]!==ap)for(c=(r?a.children.length:-1)+o,h=l.concat(a);c>-1&&c-1?n.offset:null}}}var fp={}.hasOwnProperty;function dp(e){return String(e||"").toUpperCase()}function pp(e,t){var n,r=String(t.identifier).toUpperCase(),i=ep(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);-1===o?(e.footnoteOrder.push(r),e.footnoteCounts[r]=1,n=e.footnoteOrder.length):(e.footnoteCounts[r]++,n=o+1);var a=e.footnoteCounts[r],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+i,id:e.clobberPrefix+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,s);var l={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,l),e.applyData(t,l)}function mp(e,t){var n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return{type:"text",value:"!["+t.alt+r};var i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});var a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push({type:"text",value:r}),i}function gp(e){var t=e.spread;return void 0===t||null===t?e.children.length>1:t}var vp=9,Op=32;function yp(e){for(var t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,o=[];r;)o.push(bp(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(bp(t.slice(i),i>0,!1)),o.join("")}function bp(e,t,n){var r=0,i=e.length;if(t)for(var o=e.codePointAt(r);o===vp||o===Op;)r++,o=e.codePointAt(r);if(n)for(var a=e.codePointAt(i-1);a===vp||a===Op;)i--,a=e.codePointAt(i-1);return i>r?e.slice(r,i):""}var kp={blockquote:function(e,t){var n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){var n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){var n=t.value?t.value+"\n":"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);var o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o={type:"element",tagName:"pre",properties:{},children:[o=e.applyData(t,o)]},e.patch(t,o),o},delete:function(e,t){var n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){var n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:pp,footnote:function(e,t){for(var n=e.footnoteById,r=1;r in n;)r++;var i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},pp(e,{type:"footnoteReference",identifier:i,position:t.position})},heading:function(e,t){var n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.dangerous){var n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null},imageReference:function(e,t){var n=e.definition(t.identifier);if(!n)return mp(e,t);var r={src:ep(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(r.title=n.title);var i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){var n={src:ep(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);var r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){var n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);var r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){var n=e.definition(t.identifier);if(!n)return mp(e,t);var r={href:ep(n.url||"")};null!==n.title&&void 0!==n.title&&(r.title=n.title);var i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){var n={href:ep(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);var r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){var r=e.all(t),i=n?function(e){var t=!1;if("list"===e.type){t=e.spread||!1;for(var n=e.children,r=-1;!t&&++r0&&s.children.unshift({type:"text",value:" "}),s.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}for(var u=-1;++u0){var a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=up(t.children[1]),l=cp(t.children[t.children.length-1]);s.line&&l.line&&(a.position={start:s,end:l}),i.push(a)}var u={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,u),e.applyData(t,u)},tableCell:function(e,t){var n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){for(var r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,a=o?o.length:t.children.length,s=-1,l=[];++s0&&n.push({type:"text",value:"\n"}),n}function _p(e,t){var n=wp(e,t),r=n.one(e,null),i=function(e){for(var t=[],n=-1;++n1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"\u21a9"}]};s>1&&u.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),l.length>0&&l.push({type:"text",value:" "}),l.push(u)}var c=i[i.length-1];if(c&&"element"===c.type&&"p"===c.tagName){var h,f=c.children[c.children.length-1];f&&"text"===f.type?f.value+=" ":c.children.push({type:"text",value:" "}),(h=c.children).push.apply(h,l)}else i.push.apply(i,l);var d={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:e.wrap(i,!0)};e.patch(r,d),t.push(d)}}if(0!==t.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:(0,rn.Z)((0,rn.Z)({},JSON.parse(JSON.stringify(e.footnoteLabelProperties))),{},{id:"footnote-label"}),children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:"\n"}]}}(n);return i&&r.children.push({type:"text",value:"\n"},i),Array.isArray(r)?{type:"root",children:r}:r}var Dp=function(e,t){return e&&"run"in e?function(e,t){return function(n,r,i){e.run(_p(n,t),r,(function(e){i(e)}))}}(e,t):function(e){return function(t){return _p(t,e)}}(e||t)};var Zp=n(4317),Np=n(2092);function Qp(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return function(t){lp(t,"element",(function(t,n,r){var i,o=r;if(e.allowedElements?i=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(i=e.disallowedElements.includes(t.tagName)),!i&&e.allowElement&&"number"===typeof n&&(i=!e.allowElement(t,n,o)),i&&"number"===typeof n){var a;if(e.unwrapDisallowed&&t.children)(a=o.children).splice.apply(a,[n,1].concat((0,ne.Z)(t.children)));else o.children.splice(n,1);return n}}))}}var Rp=n(8325);function Mp(e){var t=e&&"object"===typeof e&&"text"===e.type?e.value||"":e;return"string"===typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}var $p=n(1003),Ip={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"},Lp=n(6370),Fp=n(8522),Bp=n(9290),jp=["http","https","mailto","tel"];function zp(e){var t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;var r=t.indexOf(":");if(-1===r)return t;for(var i=-1;++ii||-1!==(i=t.indexOf("#"))&&r>i?t:"javascript:void(0)"}var Up={}.hasOwnProperty,Yp=new Set(["table","thead","tbody","tfoot","tr"]);function Xp(e,t){for(var n,r=[],i=-1;++i0?J.createElement(p,u,h):J.createElement(p,u)}function Wp(e,t){for(var n=-1,r=0;++n for more info)")),delete Jp[t]}var r=Xh().use(Kd).use(e.remarkPlugins||[]).use(Dp,(0,rn.Z)((0,rn.Z)({},e.remarkRehypeOptions),{},{allowDangerousHtml:!0})).use(e.rehypePlugins||[]).use(Qp,e),i=new Ih;"string"===typeof e.children?i.value=e.children:void 0!==e.children&&null!==e.children&&console.warn("[react-markdown] Warning: please pass a string as `children` (not: `".concat(e.children,"`)"));var o=r.runSync(r.parse(i),i);if("root"!==o.type)throw new TypeError("Expected a `root` node");var a=J.createElement(J.Fragment,{},Xp({options:e,schema:Np.dy,listDepth:0},o));return e.className&&(a=J.createElement("div",{className:e.className},a)),a}Kp.propTypes={children:Zp.string,className:Zp.string,allowElement:Zp.func,allowedElements:Zp.arrayOf(Zp.string),disallowedElements:Zp.arrayOf(Zp.string),unwrapDisallowed:Zp.bool,remarkPlugins:Zp.arrayOf(Zp.oneOfType([Zp.object,Zp.func,Zp.arrayOf(Zp.oneOfType([Zp.bool,Zp.string,Zp.object,Zp.func,Zp.arrayOf(Zp.any)]))])),rehypePlugins:Zp.arrayOf(Zp.oneOfType([Zp.object,Zp.func,Zp.arrayOf(Zp.oneOfType([Zp.bool,Zp.string,Zp.object,Zp.func,Zp.arrayOf(Zp.any)]))])),sourcePos:Zp.bool,rawSourcePos:Zp.bool,skipHtml:Zp.bool,includeElementIndex:Zp.bool,transformLinkUri:Zp.oneOfType([Zp.func,Zp.bool]),linkTarget:Zp.oneOfType([Zp.func,Zp.string]),transformImageUri:Zp.func,components:Zp.object};for(var em={tokenize:function(e,t,n){var r=0;return function t(o){if((87===o||119===o)&&r<3)return r++,e.consume(o),t;if(46===o&&3===r)return e.consume(o),i;return n(o)};function i(e){return null===e?n(e):t(e)}},partial:!0},tm={tokenize:function(e,t,n){var r,i,o;return a;function a(t){return 46===t||95===t?e.check(rm,l,s)(t):null===t||yf(t)||Sf(t)||45!==t&&kf(t)?l(t):(o=!0,e.consume(t),a)}function s(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),a}function l(e){return i||r||!o?n(e):t(e)}},partial:!0},nm={tokenize:function(e,t){var n=0,r=0;return i;function i(a){return 40===a?(n++,e.consume(a),i):41===a&&r0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}lm[43]=sm,lm[45]=sm,lm[46]=sm,lm[95]=sm,lm[72]=[sm,am],lm[104]=[sm,am],lm[87]=[sm,om],lm[119]=[sm,om];var gm={tokenize:function(e,t,n){var r=this;return wf(e,(function(e){var i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function vm(){var e;return{document:(0,on.Z)({},91,{tokenize:km,continuation:{tokenize:Sm},exit:xm}),text:(e={},(0,on.Z)(e,91,{tokenize:bm}),(0,on.Z)(e,93,{add:"after",tokenize:Om,resolveTo:ym}),e)}}function Om(e,t,n){for(var r,i=this,o=i.events.length,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);o--;){var s=i.events[o][1];if("labelImage"===s.type){r=s;break}if("gfmFootnoteCall"===s.type||"labelLink"===s.type||"label"===s.type||"image"===s.type||"link"===s.type)break}return function(o){if(!r||!r._balanced)return n(o);var s=Vf(i.sliceSerialize({start:r.end,end:i.now()}));if(94!==s.codePointAt(0)||!a.includes(s.slice(1)))return n(o);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function ym(e,t){for(var n=e.length;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";var r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;var o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice.apply(e,[n,e.length-n+1].concat(s)),e}function bm(e,t,n){var r,i=this,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(a>999||93===s&&!r||null===s||91===s||yf(s))return n(s);if(93===s){e.exit("chunkString");var c=e.exit("gfmFootnoteCallString");return o.includes(Vf(i.sliceSerialize(c)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return yf(s)||(r=!0),a++,e.consume(s),92===s?u:l}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function km(e,t,n){var r,i,o=this,a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(s>999||93===t&&!i||null===t||91===t||yf(t))return n(t);if(93===t){e.exit("chunkString");var a=e.exit("gfmFootnoteDefinitionLabelString");return r=Vf(o.sliceSerialize(a)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return yf(t)||(i=!0),s++,e.consume(t),92===t?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}function h(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a.includes(r)||a.push(r),wf(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function Sm(e,t,n){return e.check(Af,t,e.attempt(gm,t,n))}function xm(e){e.exit("gfmFootnoteDefinition")}function wm(e){var t=(e||{}).singleTilde,n={tokenize:function(e,n,r){var i=this.previous,o=this.events,a=0;return function(t){if(126===i&&"characterEscape"!==o[o.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(o){var l=bd(i);if(126===o)return a>1?r(o):(e.consume(o),a++,s);if(a<2&&!t)return r(o);var u=e.exit("strikethroughSequenceTemporary"),c=bd(o);return u._open=!c||2===c&&Boolean(l),u._close=!l||2===l&&Boolean(c),n(o)}},resolveAll:function(e,t){var n=-1;for(;++n0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1])),n.push(this.map[t][2]),e.length=this.map[t][0];n.push((0,ne.Z)(e)),e.length=0;for(var r=n.pop();r;)e.push.apply(e,(0,ne.Z)(r)),r=n.pop();this.map.length=0}}}]),e}();function Cm(e,t){for(var n=!1,r=[];t-1;){var r=i.events[t][1].type;if("lineEnding"!==r&&"linePrefix"!==r)break;t--}var o=t>-1?i.events[t][1].type:null,a="tableHead"===o||"tableRow"===o?b:s;if(a===b&&i.parser.lazy[i.now().line])return n(e);return a(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return r=!0,a+=1,l(e)}(t)}function l(t){return null===t?n(t):Of(t)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h):n(t):bf(t)?wf(e,l,"whitespace")(t):(a+=1,r&&(r=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,l):(e.enter("data"),u(t)))}function u(t){return null===t||124===t||yf(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return 92===t||124===t?(e.consume(t),u):u(t)}function h(t){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(t):(e.enter("tableDelimiterRow"),r=!1,bf(t)?wf(e,f,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t))}function f(t){return 45===t||58===t?p(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),d):y(t)}function d(t){return bf(t)?wf(e,p,"whitespace")(t):p(t)}function p(t){return 58===t?(a+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||Of(t)?O(t):y(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):y(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(t))}function v(t){return bf(t)?wf(e,O,"whitespace")(t):O(t)}function O(n){return 124===n?f(n):(null===n||Of(n))&&r&&o===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):y(n)}function y(e){return n(e)}function b(t){return e.enter("tableRow"),k(t)}function k(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),k):null===n||Of(n)?(e.exit("tableRow"),t(n)):bf(n)?wf(e,k,"whitespace")(n):(e.enter("data"),S(n))}function S(t){return null===t||124===t||yf(t)?(e.exit("data"),k(t)):(e.consume(t),92===t?x:S)}function x(t){return 92===t||124===t?(e.consume(t),S):S(t)}},resolveAll:function(e,t){var n,r,i,o=-1,a=!0,s=0,l=[0,0,0,0],u=[0,0,0,0],c=!1,h=0,f=new Tm;for(;++on[2]+1){var d=n[2]+1,p=n[3]-n[2]-1;e.add(d,p,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return void 0!==i&&(o.end=Object.assign({},_m(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function Pm(e,t,n,r,i){var o=[],a=_m(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function _m(e,t){var n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}var Dm={tokenize:function(e,t,n){var r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i};function i(t){return yf(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return Of(r)?t(r):bf(r)?e.check({tokenize:Nm},t,n)(r):n(r)}}},Zm={text:(0,on.Z)({},91,Dm)};function Nm(e,t,n){return wf(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}function Qm(e,t){var n=String(e);if("string"!==typeof t)throw new TypeError("Expected character");for(var r=0,i=n.indexOf(t);-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}var Rm={}.hasOwnProperty,Mm=function(e,t,n,r){var i,o;"string"===typeof t||t instanceof RegExp?(o=[[t,n]],i=r):(o=t,i=n),i||(i={});for(var a=tp(i.ignore||[]),s=function(e){var t=[];if("object"!==typeof e)throw new TypeError("Expected array or object as schema");if(Array.isArray(e))for(var n=-1;++n0?{type:"text",value:p}:void 0),!1!==p){var m;if(o!==f&&c.push({type:"text",value:e.value.slice(o,f)}),Array.isArray(p))(m=c).push.apply(m,(0,ne.Z)(p));else p&&c.push(p);o=f+h[0].length,u=!0}if(!r.global)break;h=r.exec(e.value)}if(u){var g;o?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);var n=t[0],r=n.indexOf(")"),i=Qm(e,"("),o=Qm(e,")");for(;-1!==r&&i>o;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),o++;return[e,n]}(n+r);if(!a[0])return!1;var s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function Ym(e,t,n,r){return!(!Xm(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Xm(e,t){var n=e.input.charCodeAt(e.index-1);return(0===e.index||Sf(n)||kf(n))&&(!t||47!==n)}function Hm(e){return e.label||!e.identifier?e.label||"":Yd(e.identifier)}function Wm(e,t,n,r){for(var i=r.join.length;i--;){var o=r.join[i](e,t,n,r);if(!0===o||1===o)break;if("number"===typeof o)return"\n".repeat(1+o);if(!1===o)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}var qm=/\r?\n|\r/g;function Gm(e){if(!e._compiled){var t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function Vm(e,t){return Jm(e,t.inConstruct,!0)&&!Jm(e,t.notInConstruct,!1)}function Jm(e,t,n){if("string"===typeof t&&(t=[t]),!t||0===t.length)return n;for(var r=-1;++r=m||(g+10?" ":"")),i.shift(4),o+=i.move(function(e,t){for(var n,r=[],i=0,o=0;n=qm.exec(e);)a(e.slice(i,n.index)),r.push(n[0]),i=n.index+n[0].length,o++;return a(e.slice(i)),r.join("");function a(e){r.push(t(e,o,!e))}}(function(e,t,n){var r=t.indexStack,i=e.children||[],o=t.createTracker(n),a=[],s=-1;for(r.push(-1);++s0&&("\r"===s||"\n"===s)&&"html"===u.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),s=" ",(l=t.createTracker(n)).move(o.join(""))),o.push(l.move(t.handle(u,e,t,(0,rn.Z)((0,rn.Z)({},l.current()),{},{before:s,after:c})))),s=o[o.length-1].slice(-1)}return r.pop(),o.join("")}hg.peek=function(){return"["};vg.peek=function(){return"~"};var mg={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},gg={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:vg}};function vg(e,t,n,r){var i=ng(r),o=n.enter("strikethrough"),a=i.move("~~");return a+=pg(e,n,(0,rn.Z)((0,rn.Z)({},i.current()),{},{before:a,after:"~"})),a+=i.move("~~"),o(),a}function Og(e,t,n){for(var r=e.value||"",i="`",o=-1;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o1&&void 0!==arguments[1]?arguments[1]:{},n=(t.align||[]).concat(),r=t.stringLength||bg,i=[],o=[],a=[],s=[],l=0,u=-1;++ul&&(l=e[u].length);++fs[f])&&(s[f]=p)}c.push(d)}o[u]=c,a[u]=h}var m=-1;if("object"===typeof n&&"length"in n)for(;++ms[m]&&(s[m]=S),O[m]=S),v[m]=x}o.splice(1,0,v),a.splice(1,0,O),u=-1;for(var w=[];++u-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);var a=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));var s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);var l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(a))+e;return(n?o:o+" ".repeat(a-o.length))+e}));return l(),u}var Ag={exit:{taskListCheckValueChecked:_g,taskListCheckValueUnchecked:_g,paragraph:function(e){var t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"===typeof t.checked){var n=this.stack[this.stack.length-1],r=n.children[0];if(r&&"text"===r.type){for(var i,o=t.children,a=-1;++a0&&void 0!==arguments[0]?arguments[0]:{},t=this.data();function n(e,n){(t[e]?t[e]:t[e]=[]).push(n)}n("micromarkExtensions",function(e){return lf([um,vm(),wm(e),Em,Zm])}(e)),n("fromMarkdownExtensions",[Bm,{enter:{gfmFootnoteDefinition:rg,gfmFootnoteDefinitionLabelString:ig,gfmFootnoteCall:sg,gfmFootnoteCallString:lg},exit:{gfmFootnoteDefinition:ag,gfmFootnoteDefinitionLabelString:og,gfmFootnoteCall:cg,gfmFootnoteCallString:ug}},mg,Sg,Ag]),n("toMarkdownExtensions",function(e){return{extensions:[jm,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:fg,footnoteReference:hg}},gg,Cg(e),Pg]}}(e))}var Zg=n(1775),Ng=(0,n(1865).v)(Np.YP,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]),Qg=n(8372);var Rg={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Mg={}.hasOwnProperty,$g=Object.prototype;function Ig(e,t){var n;switch(t.nodeName){case"#comment":return Fg(e,t,n={type:"comment",value:t.data}),n;case"#document":case"#document-fragment":var r=t,i="mode"in r&&("quirks"===r.mode||"limited-quirks"===r.mode);if(n={type:"root",children:Lg(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){var o=String(e.file),a=function(e){for(var t=String(e),n=[],r=/\r?\n|\r/g;r.test(t);)n.push(r.lastIndex);return n.push(t.length+1),{toPoint:function(e){var t=-1;if("number"===typeof e&&e>-1&&ee)return{line:t+1,column:e-(t>0?n[t-1]:0)+1,offset:e};return{line:void 0,column:void 0,offset:void 0}},toOffset:function(e){var t=e&&e.line,r=e&&e.column;if("number"===typeof t&&"number"===typeof r&&!Number.isNaN(t)&&!Number.isNaN(r)&&t-1 in n){var i=(n[t-2]||0)+r-1||0;if(i>-1&&i1?s-1:0),u=1;u0&&void 0!==arguments[0]?arguments[0]:{};return function(t,n){return Kg(t,n,e)}}var ov=/[\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\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\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,av=Object.hasOwnProperty,sv=function(){function e(){(0,re.Z)(this,e),this.occurrences,this.reset()}return(0,ie.Z)(e,[{key:"slug",value:function(e,t){for(var n=this,r=function(e,t){if("string"!==typeof e)return"";t||(e=e.toLowerCase());return e.replace(ov,"").replace(/ /g,"-")}(e,!0===t),i=r;av.call(n.occurrences,r);)n.occurrences[i]++,r=i+"-"+n.occurrences[i];return n.occurrences[r]=0,r}},{key:"reset",value:function(){this.occurrences=Object.create(null)}}]),e}();var lv={}.hasOwnProperty;function uv(e,t){var n="string"===typeof t&&function(e){return Boolean(e&&"object"===typeof e&&"type"in e)}(e)&&"element"===e.type&&e.properties&&lv.call(e.properties,t)&&e.properties[t];return null!==n&&void 0!==n&&!1!==n}function cv(e){var t=e&&"element"===e.type&&e.tagName.toLowerCase()||"",n=2===t.length&&104===t.charCodeAt(0)?t.charCodeAt(1):0;return n>48&&n<55?n-48:null}function hv(e){return"children"in e?dv(e):"value"in e?e.value:""}function fv(e){return"text"===e.type?e.value:"children"in e?dv(e):""}function dv(e){for(var t=-1,n=[];++t0&&void 0!==arguments[0]?arguments[0]:{}).prefix||"";return function(t){pv.reset(),lp(t,"element",(function(t){cv(t)&&t.properties&&!uv(t,"id")&&(t.properties.id=e+pv.slug(hv(t)))}))}}var gv=function(e){if(void 0===e||null===e)return yv;if("string"===typeof e)return function(e){return t;function t(t){return yv(t)&&t.tagName===e}}(e);if("object"===typeof e)return vv(e);if("function"===typeof e)return Ov(e);throw new Error("Expected function, string, or array as test")};function vv(e){for(var t=[],n=-1;++n1?n-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{},n=t.properties,r=t.behaviour||t.behavior||"prepend",i=t.content||bv,o=t.group,a=gv(t.test);return"wrap"===r?e=function(e){return e.children=[u(e,zh(!0,{},n),e.children)],[ap]}:"before"===r||"after"===r?e=function(e,t,a){var c;if("number"!==typeof t||!a)return;var h=u(e,zh(!0,{},n),s(i,e)),f="before"===r?[h,e]:[e,h];if(o){var d=l(o,e);d&&!Array.isArray(d)&&"element"===d.type&&(d.children=f,f=[d])}return(c=a.children).splice.apply(c,[t,1].concat((0,ne.Z)(f))),[ap,t+f.length]}:(n||(n={ariaHidden:"true",tabIndex:-1}),e=function(e){return e.children["prepend"===r?"unshift":"push"](u(e,zh(!0,{},n),s(i,e))),[ap]}),function(t){lp(t,"element",(function(t,n,r){if(cv(t)&&uv(t,"id")&&a(t,n,r))return e(t,n,r)}))};function s(e,t){var n=l(e,t);return Array.isArray(n)?n:[n]}function l(e,t){return"function"===typeof e?e(t):zh(!0,Array.isArray(e)?[]:{},e)}function u(e,t,n){return{type:"element",tagName:"a",properties:Object.assign({},t,{href:"#"+(e.properties||{}).id}),children:n}}}var Sv=function e(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>1?arguments[1]:void 0;i/,"$2")||""))return;if(r){if(e(t,i,"pre",r))return;return a.value=(a.value||"").replace(/^(\n|\s)+/,""),a}return a.value=(a.value||"").replace(/^(\n|\s)+/,""),a}}},xv=function(e){var t=e.value,n=function(){return((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((function(e,t){return e[t.slice(0,t.indexOf("="))]=t.slice(t.indexOf("=")+1),e}),{})}((void 0===t?"":t).replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(n).forEach((function(e){"true"===n[e]&&(n[e]=!0),"false"===n[e]&&(n[e]=!1),"string"!==typeof n[e]||/^0/.test(n[e])||isNaN(+n[e])||(n[e]=+n[e])})),n},wv=function(e,t,n){return"string"===n?(0,rn.Z)((0,rn.Z)({},e),{},{"data-config":JSON.stringify((0,rn.Z)((0,rn.Z)({},t),{},{rehyp:!0}))}):"attr"===n?(0,rn.Z)((0,rn.Z)({},e),t):(0,rn.Z)((0,rn.Z)({},e),{},{"data-config":(0,rn.Z)((0,rn.Z)({},t),{},{rehyp:!0})})},Tv=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.properties,n=void 0===t?"data":t,r=e.codeBlockParames,i=void 0===r||r;return function(e){lp(e,"element",(function(e,t,r){if(i&&"pre"===e.tagName&&e&&Array.isArray(e.children)&&r&&Array.isArray(r.children)&&r.children.length>1){var o=e.children[0];if(o&&"code"===o.tagName&&"number"===typeof t){var a=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;t>-1;){if(!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]}}}(r.children,t);if(a){var s=xv(a);Object.keys(s).length>0&&(e.properties=(0,rn.Z)((0,rn.Z)({},e.properties),{"data-type":"rehyp"}),o.properties=wv(o.properties,s,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(e.tagName)&&r&&Array.isArray(r.children)&&"number"===typeof t){var l=Sv(r.children,t,"",i);if(l){var u=xv(l);Object.keys(u).length>0&&(e.properties=wv(e.properties,u,n))}}}))}},Cv=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.openDelimiter,n=void 0===t?"rehype:ignore:start":t,r=e.closeDelimiter,i=void 0===r?"rehype:ignore:end":r;return function(e){lp(e,(function(e,t,r){if("element"===e.type||"root"===e.type){var o=!1;e.children=e.children.filter((function(e){if("raw"===e.type||"comment"===e.type){var t=(e.value||"").trim();if((t=t.replace(/^/,"$1"))===n)return o=!0,!1;if(t===i)return o=!1,!1}return!o}))}}))}},Ev={}.hasOwnProperty,Av=function(e,t,n){var r=tp(n||t),i=t&&"object"===typeof t&&"cascade"in t?t.cascade:void 0,o=void 0===i||null===i||i;return function e(t,n,i){var a=[];if(!r(t,n,i))return null;if(t.children){for(var s=-1;++s0&&0===a.length)return null}var u,c={};for(u in t)Ev.call(t,u)&&(c[u]="children"===u?a:t[u]);return c}(e)},Pv=n(7392),_v=n(9686),Dv=n(2352);function Zv(){Zv=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,i){var o=new RegExp(e,r);return t.set(o,i||t.get(e)),Nv(o,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var i=r[n];if("number"==typeof i)t[n]=e[i];else{for(var o=0;void 0===e[i[o]]&&o+1]+)>/g,(function(e,t){var n=o[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof i){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,a)),i.apply(this,e)}))}return e[Symbol.replace].call(this,n,i)},Zv.apply(this,arguments)}function Nv(e,t){return Nv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Nv(e,t)}function Qv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}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 Mv=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){lp(e,"element",n)};function n(n,r,i){var o,a;if(i&&"pre"===i.tagName&&"code"===n.tagName){var s=(null==n||null==(o=n.data)?void 0:o.meta)||(null==n||null==(a=n.properties)?void 0:a.metastring)||"";n.properties.className?"boolean"==typeof n.properties.className?n.properties.className=[]:Array.isArray(n.properties.className)||(n.properties.className=[n.properties.className]):n.properties.className=[];var l,u,c=function(e){for(var t,n=Rv(e.properties.className);!(t=n()).done;){var r=t.value;if("language-"===r.slice(0,9))return r.slice(9).toLowerCase()}return null}(n);if(!c&&t.defaultLanguage&&n.properties.className.push("language-"+(c=t.defaultLanguage)),n.properties.className.push("code-highlight"),c)try{var h,f;f=null!=(h=c)&&h.includes("diff-")?c.split("-")[1]:c,l=e.highlight(hv(n),f),i.properties.className=(i.properties.className||[]).concat("language-"+f)}catch(b){if(!t.ignoreMissing||!/Unknown language/.test(b.message))throw b;l=n}else l=n;l.children=(u=1,function e(t){return t.reduce((function(t,n){if("text"===n.type){var r=n.value,i=(r.match(/\n/g)||"").length;if(0===i)n.position={start:{line:u,column:1},end:{line:u,column:1}},t.push(n);else for(var o,a=r.split("\n"),s=Rv(a.entries());!(o=s()).done;){var l=o.value,c=l[0],h=l[1];t.push({type:"text",value:c===a.length-1?h:h+"\n",position:{start:{line:u+c,column:1},end:{line:u+c,column:1}}})}return u+=i,t}if(Object.prototype.hasOwnProperty.call(n,"children")){var f=u;return n.children=e(n.children),t.push(n),n.position={start:{line:f,column:1},end:{line:u,column:1}},t}return t.push(n),t}),[])})(l.children),l.position=l.children.length>0?{start:{line:l.children[0].position.start.line,column:0},end:{line:l.children[l.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var d,p=function(e){var t=/{([\d,-]+)}/,n=e.split(",").map((function(e){return e.trim()})).join();if(t.test(n)){var r=t.exec(n)[1],i=Pv(r);return function(e){return i.includes(e+1)}}return function(){return!1}}(s),m=function(e){var t=Zv(/showLineNumbers=(\d+)/i,{lines:1});if(t.test(e)){var n=t.exec(e);return Number(n.groups.lines)}return 1}(s),g=function(e){for(var t=new Array(e),n=0;n=i+1}));o.children=a.children,!s.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||v.some((function(e){return s.toLowerCase().includes(e)}))||(o.properties.line=[(i+m).toString()],o.properties.className.push("line-number")),p(i)&&o.properties.className.push("highlight-line"),("diff"===c||null!=(e=c)&&e.includes("diff-"))&&"-"===hv(o).substring(0,1)?o.properties.className.push("deleted"):("diff"===c||null!=(n=c)&&n.includes("diff-"))&&"+"===hv(o).substring(0,1)&&o.properties.className.push("inserted")},y=Rv(g.entries());!(d=y()).done;)O();g.length>0&&""===hv(g[g.length-1]).trim()&&g.pop(),n.children=g}}}},$v=(Mv(_v.$),Mv(Dv.$)),Iv="\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc",Lv="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff",Fv=new RegExp("^[^"+Lv+"]*["+Iv+"]"),Bv=new RegExp("^[^"+Iv+"]*["+Lv+"]");function jv(e){var t=function(e){var t=String(e||"");return Fv.test(t)?"rtl":Bv.test(t)?"ltr":"neutral"}(e);return"neutral"===t?void 0:t}function zv(e){var t="element"===e.type&&e.properties&&"string"===typeof e.properties.dir?e.properties.dir.toLowerCase():void 0;return"auto"===t||"ltr"===t||"rtl"===t?t:void 0}var Uv=Ug("operator",{unknown:function(e){throw new Error("Unknown operator `"+e.operator+"`")},invalid:function(e,t,n){return uv(t,n.property)},handlers:{"=":function(e,t,n){return Boolean(uv(t,n.property)&&t.properties&&Yv(t.properties[n.property],n)===e.value)},"~=":function(e,t,n){var r=t.properties&&t.properties[n.property];return!n.commaSeparated&&r&&"object"===typeof r&&e.value&&r.includes(e.value)||uv(t,n.property)&&Yv(r,n)===e.value},"|=":function(e,t,n){var r=Yv(t.properties&&t.properties[n.property],n);return Boolean(uv(t,n.property)&&e.value&&(r===e.value||r.slice(0,e.value.length)===e.value&&"-"===r.charAt(e.value.length)))},"^=":function(e,t,n){return Boolean(uv(t,n.property)&&t.properties&&e.value&&Yv(t.properties[n.property],n).slice(0,e.value.length)===e.value)},"$=":function(e,t,n){return Boolean(uv(t,n.property)&&t.properties&&e.value&&Yv(t.properties[n.property],n).slice(-e.value.length)===e.value)},"*=":function(e,t,n){return Boolean(uv(t,n.property)&&t.properties&&e.value&&Yv(t.properties[n.property],n).includes(e.value))}}});function Yv(e,t){return"boolean"===typeof e?t.attribute:Array.isArray(e)?(t.commaSeparated?Fp.P:Lp.P)(e):String(e)}function Xv(e,t){return function(n,r){for(var i=Wv(n,"tag"),o=Wv(null===r||void 0===r?"*":r,"range"),a=[],s=-1;++s=n};var r=Math.abs(t),i=(n%r+r)%r;return t>1?function(e){return e>=n&&e%r===i}:function(e){return e<=n&&e%r===i}}(function(e){if("even"===(e=e.trim().toLowerCase()))return[2,0];if("odd"===e)return[2,1];var t=0,n=0,r=o(),i=a();if(t=Gv&&e.charCodeAt(t)<=Vv;)r=10*r+(e.charCodeAt(t)-Gv),t++;return t===n?null:r}function s(){for(;t0},lang:function(e,t,n,r,i){return""!==i.language&&void 0!==i.language&&Hv(i.language,(0,Fp.Q)(e.value)).length>0},"last-child":function(e,t,n,r,i){return lO(i,e),Boolean(i.elementCount&&i.elementIndex===i.elementCount-1)},"last-of-type":function(e,t,n,r,i){return lO(i,e),"number"===typeof i.typeIndex&&"number"===typeof i.typeCount&&i.typeIndex===i.typeCount-1},matches:iO,not:function(e,t,n,r,i){return!iO(e,t,n,r,i)},"nth-child":function(e,t,n,r,i){var o=uO(e);return lO(i,e),"number"===typeof i.elementIndex&&o(i.elementIndex)},"nth-last-child":function(e,t,n,r,i){var o=uO(e);return lO(i,e),Boolean("number"===typeof i.elementCount&&"number"===typeof i.elementIndex&&o(i.elementCount-i.elementIndex-1))},"nth-of-type":function(e,t,n,r,i){var o=uO(e);return lO(i,e),"number"===typeof i.typeIndex&&o(i.typeIndex)},"nth-last-of-type":function(e,t,n,r,i){var o=uO(e);return lO(i,e),"number"===typeof i.typeCount&&"number"===typeof i.typeIndex&&o(i.typeCount-1-i.typeIndex)},"only-child":function(e,t,n,r,i){return lO(i,e),1===i.elementCount},"only-of-type":function(e,t,n,r,i){return lO(i,e),1===i.typeCount},optional:function(e,t){return!aO(e,t)},"read-only":function(e,t,n,r,i){return!oO(e,t,n,r,i)},"read-write":oO,required:aO,root:function(e,t,n,r,i){return Boolean((!r||"root"===r.type)&&i.schema&&("html"===i.schema.space||"svg"===i.schema.space)&&("html"===t.tagName||"svg"===t.tagName))},scope:function(e,t,n,r,i){return i.scopeElements.includes(t)}}});function nO(e,t,n,r,i){for(var o=e.pseudos,a=-1;++a"===l.nestingOperator?"directChild":"descendant",u)}else e.found=!0,e.results.includes(n)||e.results.push(n)}null===s.rule.nestingOperator?gO(o,"descendant",s):"~"===s.rule.nestingOperator&&gO(o,"generalSibling",s)}return o}(e,mO(t,e.rootQuery.selectors),n,r,i)),!("children"in n)||e.shallow||e.one&&e.found||function(e,t,n){var r,i=mO(t.descendant,t.directChild),o=-1,a={count:0,types:new Map},s={count:0,types:new Map};for(;++o0&&t.length>0?[].concat((0,ne.Z)(e),(0,ne.Z)(t)):e&&e.length>0?e:t&&t.length>0?t:hO}function gO(e,t,n){var r=e[t];r?r.push(n):e[t]=[n]}function vO(e,t){if("element"===t.type){var n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}var OO=new(n(6428).N);function yO(e){if("string"!==typeof e)throw new TypeError("Expected `string` as selector, not `"+e+"`");return OO.parse(e)}function bO(e,t,n){return{rootQuery:fO(yO(e)),results:[],scopeElements:t?"root"===t.type?t.children:[t]:[],one:!1,shallow:!1,found:!1,schema:"svg"===n?Np.YP:Np.dy,language:void 0,direction:"ltr",editableOrEditingHost:!1,typeIndex:void 0,elementIndex:void 0,typeCount:void 0,elementCount:void 0}}OO.registerAttrEqualityMods("~","|","^","$","*"),OO.registerSelectorPseudos("any","matches","not","has"),OO.registerNestingOperators(">","+","~");var kO=function e(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(n){"text"===n.type?t+=n.value:"element"===n.type&&n.children&&Array.isArray(n.children)&&(t+=e(n.children))})),t},SO=function(e){var t=e||{},n=t.selector,r=t.rewrite;return function(e){if(r&&"function"===typeof r)if(n&&"string"===typeof n){var t=function(e,t,n){var r=bO(e,t,n);return dO(r,t||void 0),r.results}(n,e);t&&t.length>0&&lp(e,t,(function(e,t,n){r(e,t,n)}))}else lp(e,(function(e,t,n){r(e,t,n)}))}},xO={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 wO=n(7298),TO=n.n(wO);function CO(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?CO(t.parentElement):null}function EO(e){var t=function(e){var t=CO(e.target);t&&(t.classList.add("active"),TO()(t.dataset.code,(function(){setTimeout((function(){t.classList.remove("active")}),2e3)})))};(0,J.useEffect)((function(){var n,r;return null==(n=e.current)||n.removeEventListener("click",t,!1),null==(r=e.current)||r.addEventListener("click",t,!1),function(){var n;null==(n=e.current)||n.removeEventListener("click",t,!1)}}),[e])}var AO=function(e){return void 0===e&&(e={}),function(e){lp(e,(function(e){"element"===e.type&&"code"===e.tagName&&e.data&&e.data.meta&&(e.properties=Ht({},e.properties,{"data-meta":String(e.data.meta)}))}))}},PO=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement"],_O=J.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"wmde-markdown wmde-markdown-color":n,i=e.className,o=e.source,a=e.style,s=e.disableCopy,l=void 0!==s&&s,u=e.skipHtml,c=void 0===u||u,h=e.onScroll,f=e.onMouseOver,d=e.pluginsFilter,p=e.rehypeRewrite,m=e.wrapperElement,g=void 0===m?{}:m,v=e.warpperElement,O=void 0===v?{}:v,y=Wt(e,PO),b=J.useRef(null);(0,J.useImperativeHandle)(t,(function(){return Ht({},e,{mdp:b})}),[b,e]);var k=(r||"")+" "+(i||"");EO(b);var S=[AO,[$v,{ignoreMissing:!0}],mv,kv,Cv,[SO,{rewrite:function(e,t,n){if("element"===e.type&&n&&"root"===n.type&&/h(1|2|3|4|5|6)/.test(e.tagName)){var r=e.children&&e.children[0];r&&r.properties&&"true"===r.properties.ariaHidden&&(r.properties=Ht({class:"anchor"},r.properties),r.children=[xO])}if("element"===e.type&&"pre"===e.tagName&&!l){var i=kO(e.children);e.children.push((void 0===(o=i)&&(o=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":o},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 o;p&&p(e,t,n)}}],[Tv,{properties:"attr"}]].concat((0,ne.Z)(y.rehypePlugins||[])),x={allowElement:function(e,t,n){return y.allowElement?y.allowElement(e,t,n):/^[A-Za-z0-9]+$/.test(e.tagName)}};c&&S.push(iv);var w=[].concat((0,ne.Z)(y.remarkPlugins||[]),[Dg]),T=Ht({},O,g);return(0,qt.jsx)("div",Ht({ref:b,onScroll:h,onMouseOver:f},T,{className:k,style:a,children:(0,qt.jsx)(Kp,Ht({},x,y,{skipHtml:c,rehypePlugins:d?d("rehype",S):S,remarkPlugins:d?d("remark",w):w,children:o||""}))}))})),DO={name:"bold",keyCommand:"bold",button:{"aria-label":"Add bold text"},icon:(0,qt.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 384 512",children:(0,qt.jsx)("path",{fill:"currentColor",d:"M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"})}),execute:function(e){var t=e.state,n=e.view;t&&n&&n.dispatch(n.state.changeByRange((function(e){return{changes:[{from:e.from,insert:"**"},{from:e.to,insert:"**"}],range:Ls.jT.range(e.from+2,e.to+2)}})))}},ZO={name:"code",keyCommand:"code",button:{"aria-label":"Insert code"},icon:(0,qt.jsxs)("svg",{viewBox:"0 0 48 48",fill:"none",height:"15",width:"15",children:[(0,qt.jsx)("path",{d:"M16 13 4 25.432 16 37m16-24 12 12.432L32 37",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,qt.jsx)("path",{d:"m28 4-7 40",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round"})]}),execute:function(e){var t=e.state,n=e.view;t&&n&&n.dispatch(n.state.changeByRange((function(e){return{changes:[{from:e.from,insert:"`"},{from:e.to,insert:"`"}],range:Ls.jT.range(e.from+1,e.to+1)}})))}},NO={name:"codeBlock",keyCommand:"codeBlock",button:{"aria-label":"Insert Code Block"},icon:(0,qt.jsxs)("svg",{viewBox:"0 0 48 48",fill:"none",height:"15",width:"15",children:[(0,qt.jsx)("path",{d:"M21 6H9a3 3 0 0 0-3 3v22a3 3 0 0 0 3 3h30a3 3 0 0 0 3-3V21M24 34v8",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,qt.jsx)("path",{d:"m32 6-4 4 4 4m6-8 4 4-4 4M14 42h20",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"})]}),execute:function(e){var t=e.state,n=e.view;if(t&&n){var r=n.state.selection.main,i=n.state.sliceDoc(n.state.selection.main.from,n.state.selection.main.to);n.dispatch({changes:{from:r.from,to:r.to,insert:"```js\n"+i+"\n```"},selection:Ls.jT.range(r.from+3,r.from+5)})}}},QO={name:"italic",keyCommand:"italic",button:{"aria-label":"Add italic text"},icon:(0,qt.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 320 512",children:(0,qt.jsx)("path",{fill:"currentColor",d:"M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"})}),execute:function(e){var t=e.state,n=e.view;t&&n&&n.dispatch(n.state.changeByRange((function(e){return{changes:[{from:e.from,insert:"*"},{from:e.to,insert:"*"}],range:Ls.jT.range(e.from+1,e.to+1)}})))}},RO={name:"header",keyCommand:"header",button:{"aria-label":"Add header text"},icon:(0,qt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"13",width:"13",children:(0,qt.jsx)("path",{d:"M448 448c0 17.69-14.33 32-32 32h-96c-17.67 0-32-14.31-32-32s14.33-32 32-32h16V272H112v144h16c17.67 0 32 14.31 32 32s-14.33 32-32 32H32c-17.67 0-32-14.31-32-32s14.33-32 32-32h16V96H32C14.33 96 0 81.69 0 64s14.33-32 32-32h96c17.67 0 32 14.31 32 32s-14.33 32-32 32h-16v112h224V96h-16c-17.67 0-32-14.31-32-32s14.33-32 32-32h96c17.67 0 32 14.31 32 32s-14.33 32-32 32h-16v320h16c17.7 0 32 14.3 32 32z"})}),execute:function(e){var t=e.state,n=e.view;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="#",o=r.text.match(/^#+/);if(o&&o[0]){var a=o[0];a.length<6&&(i=a+"#")}i.length>6&&(i="#");var s=r.text.replace(/^#+/,"");n.dispatch({changes:{from:r.from,to:r.to,insert:i+" "+s},selection:{anchor:r.from+i.length+1}})}}},MO={name:"strike",keyCommand:"strike",button:{"aria-label":"Add strike text"},icon:(0,qt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 512 512",height:"14",width:"14",children:(0,qt.jsx)("path",{d:"M332.2 319.9c17.22 12.17 22.33 26.51 18.61 48.21-3.031 17.59-10.88 29.34-24.72 36.99-35.44 19.75-108.5 11.96-186-19.68-16.34-6.686-35.03 1.156-41.72 17.53s1.188 35.05 17.53 41.71c31.75 12.93 95.69 35.37 157.6 35.37 29.62 0 58.81-5.156 83.72-18.96 30.81-17.09 50.44-45.46 56.72-82.11 3.998-23.27 2.168-42.58-3.488-59.05H332.2zm155.8-80-176.5-.03c-15.85-5.614-31.83-10.34-46.7-14.62-85.47-24.62-110.9-39.05-103.7-81.33 2.5-14.53 10.16-25.96 22.72-34.03 20.47-13.15 64.06-23.84 155.4.343 17.09 4.53 34.59-5.654 39.13-22.74 4.531-17.09-5.656-34.59-22.75-39.12-91.31-24.18-160.7-21.62-206.3 7.654C121.8 73.72 103.6 101.1 98.09 133.1c-8.83 51.4 9.81 84.2 39.11 106.8H24c-13.25 0-24 10.75-24 23.1 0 13.25 10.75 23.1 24 23.1h464c13.25 0 24-10.75 24-23.1 0-12.3-10.7-23.1-24-23.1z"})}),execute:function(e){var t=e.state,n=e.view;t&&n&&n.dispatch(n.state.changeByRange((function(e){return{changes:[{from:e.from,insert:"~~"},{from:e.to,insert:"~~"}],range:Ls.jT.range(e.from+2,e.to+2)}})))}},$O={name:"underline",keyCommand:"underline",button:{"aria-label":"Add underline text"},icon:(0,qt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"13",width:"13",children:(0,qt.jsx)("path",{d:"M416 448H32c-17.69 0-32 14.31-32 32s14.31 32 32 32h384c17.69 0 32-14.31 32-32s-14.3-32-32-32zM48 64.01h16v160c0 88.22 71.78 159.1 160 159.1s160-71.78 160-159.1v-160h16c17.69 0 32-14.32 32-32S417.69.91 400 .91l-96-.005c-17.69 0-32 14.32-32 32s14.31 32 32 32h16v160c0 52.94-43.06 95.1-96 95.1S128 276.1 128 224V64h16c17.69 0 32-14.31 32-32S161.69 0 144 0L48 .005c-17.69 0-32 14.31-32 31.1S30.31 64.01 48 64.01z"})}),execute:function(e){var t=e.state,n=e.view;t&&n&&n.dispatch(n.state.changeByRange((function(e){return{changes:[{from:e.from,insert:""},{from:e.to,insert:""}],range:Ls.jT.range(e.from+3,e.to+3)}})))}},IO={name:"olist",keyCommand:"olist",button:{"aria-label":"Add olist text"},icon:(0,qt.jsx)("svg",{viewBox:"0 0 576 512",height:"14",width:"14",children:(0,qt.jsx)("path",{fill:"currentColor",d:"M55.1 56.04c0-13.26 11.64-24 24-24h32c14.2 0 24 10.74 24 24V176h16c14.2 0 24 10.8 24 24 0 13.3-9.8 24-24 24h-80c-12.36 0-24-10.7-24-24 0-13.2 11.64-24 24-24h16V80.04h-8c-12.36 0-24-10.75-24-24zm63.6 285.16c-6.6-7.4-18.3-6.9-24.05 1.2l-11.12 15.5c-7.7 10.8-22.69 13.3-33.48 5.6-10.79-7.7-13.28-22.7-5.58-33.4l11.12-15.6c23.74-33.3 72.31-35.7 99.21-4.9 21.3 23.5 20.8 60.9-1.1 84.7L118.8 432H152c13.3 0 24 10.7 24 24s-10.7 24-24 24H64c-9.53 0-18.16-5.6-21.98-14.4-3.83-8.7-2.12-18.9 4.34-25.9l72.04-78c5.3-5.8 5.4-14.6.3-20.5zM512 64c17.7 0 32 14.33 32 32 0 17.7-14.3 32-32 32H256c-17.7 0-32-14.3-32-32 0-17.67 14.3-32 32-32h256zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H256c-17.7 0-32-14.3-32-32s14.3-32 32-32h256zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H256c-17.7 0-32-14.3-32-32s14.3-32 32-32h256z"})}),execute:function(e){var t=e.state,n=e.view;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="1. ",o=r.text.match(/^\1\./);o&&o[0]&&(i=""),n.dispatch({changes:{from:r.from,to:r.to,insert:""+i+r.text},selection:{anchor:n.state.selection.main.from+i.length}})}}},LO={name:"ulist",keyCommand:"ulist",button:{"aria-label":"Add ulist text"},icon:(0,qt.jsx)("svg",{viewBox:"0 0 512 512",height:"14",width:"14",children:(0,qt.jsx)("path",{fill:"currentColor",d:"M88 48c13.3 0 24 10.75 24 24v48c0 13.3-10.7 24-24 24H40c-13.25 0-24-10.7-24-24V72c0-13.25 10.75-24 24-24h48zm392 16c17.7 0 32 14.33 32 32 0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32 0-17.67 14.3-32 32-32h288zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H192c-17.7 0-32-14.3-32-32s14.3-32 32-32h288zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H192c-17.7 0-32-14.3-32-32s14.3-32 32-32h288zM16 232c0-13.3 10.75-24 24-24h48c13.3 0 24 10.7 24 24v48c0 13.3-10.7 24-24 24H40c-13.25 0-24-10.7-24-24v-48zm72 136c13.3 0 24 10.7 24 24v48c0 13.3-10.7 24-24 24H40c-13.25 0-24-10.7-24-24v-48c0-13.3 10.75-24 24-24h48z"})}),execute:function(e){var t=e.state,n=e.view;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="- ",o=r.text.match(/^-/);o&&o[0]&&(i=""),n.dispatch({changes:{from:r.from,to:r.to,insert:""+i+r.text},selection:{anchor:n.state.selection.main.from+i.length}})}}},FO={name:"quote",keyCommand:"quote",button:{"aria-label":"Add quote text"},icon:(0,qt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"15",width:"15",children:(0,qt.jsx)("path",{d:"M96 96c-53.02 0-96 42.1-96 96s42.98 96 96 96c11.28 0 21.95-2.305 32-5.879V288c0 35.3-28.7 64-64 64-17.67 0-32 14.33-32 32s14.33 32 32 32c70.58 0 128-57.42 128-128v-96c0-53.9-43-96-96-96zm352 96c0-53.02-42.98-96-96-96s-96 42.98-96 96 42.98 96 96 96c11.28 0 21.95-2.305 32-5.879V288c0 35.3-28.7 64-64 64-17.67 0-32 14.33-32 32s14.33 32 32 32c70.58 0 128-57.42 128-128v-96z"})}),execute:function(e){var t=e.state,n=e.view;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="> ",o=r.text.match(/^>\s/);o&&o[0]&&(i=""),n.dispatch({changes:{from:r.from,to:r.to,insert:""+i+r.text},selection:{anchor:n.state.selection.main.from+i.length}})}}},BO={name:"link",keyCommand:"link",button:{"aria-label":"Add link text"},icon:(0,qt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 640 512",height:"16",width:"16",children:(0,qt.jsx)("path",{d:"M172.5 131.1c55.6-55.59 148-55.59 203.6 0 50 50 57.4 129.7 16.3 187.2l-1.1 1.6c-10.3 14.3-30.3 17.7-44.6 7.4-14.4-10.3-17.8-30.3-7.5-44.6l1.1-1.6c22.9-32.1 19.3-76-8.6-103.9-31.4-31.4-82.5-31.4-114 0L105.5 289.5c-31.51 30.6-31.51 82.5 0 114 27.8 27.9 71.8 31.5 103.8 8.6l1.6-2c14.4-9.4 34.4-6.1 44.6 8.3 10.3 14.4 7 34.4-7.4 44.7l-1.6 1.1c-58.4 41.1-136.3 34.5-186.29-15.4-56.469-56.5-56.469-148.1 0-204.5L172.5 131.1zm295 248.9c-56.5 56.5-148 56.5-204.5 0-50-50-56.5-128.8-15.4-186.3l1.1-1.6c9.4-14.3 29.4-17.7 44.6-7.4 14.4 9.4 17.8 29.4 7.5 44.6l-1.1 1.6c-22.9 31.2-19.3 76 8.6 103.9 31.4 31.4 82.5 31.4 114 0l112.2-112.3c31.5-31.5 31.5-83.4 0-114-27.8-27.87-71.8-31.51-103.8-8.6l-1.6 1.1c-14.4 10.3-34.4 6.1-44.6-7.42-10.3-14.38-7-34.37 7.4-44.64l1.6-1.12C451 6.731 529.8 13.25 579.8 63.24c56.5 56.46 56.5 148.06 0 204.46L467.5 380z"})}),execute:function(e){var t=e.state,n=e.view;if(t&&n&&t&&n){var r=n.state.selection.main,i=n.state.sliceDoc(n.state.selection.main.from,n.state.selection.main.to);n.dispatch({changes:{from:r.from,to:r.to,insert:"["+i+"]()"},selection:Ls.jT.range(r.from+3+i.length,r.to+3)})}}},jO={name:"todo",keyCommand:"todo",button:{"aria-label":"Add todo List"},icon:(0,qt.jsx)("svg",{viewBox:"0 0 48 48",fill:"none",height:"15",width:"15",children:(0,qt.jsx)("path",{d:"m5 10 3 3 6-6M5 24l3 3 6-6M5 38l3 3 6-6m7-11h22M21 38h22M21 10h22",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"})}),execute:function(e){var t=e.state,n=e.view;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="- [ ] ",o=r.text.match(/^-\s\[\s\]\s/);o&&o[0]&&(i=""),n.dispatch({changes:{from:r.from,to:r.to,insert:""+i+r.text},selection:{anchor:n.state.selection.main.from+i.length}})}}},zO={name:"image",keyCommand:"image",button:{"aria-label":"Add image text"},icon:(0,qt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"14",width:"14",children:(0,qt.jsx)("path",{fillRule:"evenodd",d:"M1.75 2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h.94a.76.76 0 0 1 .03-.03l6.077-6.078a1.75 1.75 0 0 1 2.412-.06L14.5 10.31V2.75a.25.25 0 0 0-.25-.25H1.75zm12.5 11H4.81l5.048-5.047a.25.25 0 0 1 .344-.009l4.298 3.889v.917a.25.25 0 0 1-.25.25zm1.75-.25V2.75A1.75 1.75 0 0 0 14.25 1H1.75A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25zM5.5 6a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zM7 6a2 2 0 1 1-4 0 2 2 0 0 1 4 0z"})}),execute:function(e){var t=e.state,n=e.view;if(t&&n){var r=n.state.selection.main,i=n.state.sliceDoc(n.state.selection.main.from,n.state.selection.main.to);n.dispatch({changes:{from:r.from,to:r.to,insert:"![]("+i+")"},selection:Ls.jT.range(r.from+4,r.to+4)})}}},UO={name:"redo",keyCommand:"redo",button:{"aria-label":"redo text"},icon:(0,qt.jsx)("svg",{viewBox:"0 0 512 512",height:"14",width:"14",children:(0,qt.jsx)("path",{fill:"currentColor",d:"M58.79,439.13A16,16,0,0,1,48,424c0-73.1,14.68-131.56,43.65-173.77,35-51,90.21-78.46,164.35-81.87V88a16,16,0,0,1,27.05-11.57l176,168a16,16,0,0,1,0,23.14l-176,168A16,16,0,0,1,256,424V344.23c-45,1.36-79,8.65-106.07,22.64-29.25,15.12-50.46,37.71-73.32,67a16,16,0,0,1-17.82,5.28Z"})}),execute:function(e){var t=e.state,n=e.view;t&&n&&nl(n)}},YO={name:"undo",keyCommand:"undo",button:{"aria-label":"undo text"},icon:(0,qt.jsx)("svg",{viewBox:"0 0 512 512",height:"14",width:"14",children:(0,qt.jsx)("path",{fill:"currentColor",d:"M448,440a16,16,0,0,1-12.61-6.15c-22.86-29.27-44.07-51.86-73.32-67C335,352.88,301,345.59,256,344.23V424A16,16,0,0,1,229,435.57l-176-168a16,16,0,0,1,0-23.14l176-168A16,16,0,0,1,256,88v80.36c74.14,3.41,129.38,30.91,164.35,81.87C449.32,292.44,464,350.9,464,424a16,16,0,0,1-16,16Z"})}),execute:function(e){var t=e.state,n=e.view;t&&n&&tl(n)}},XO=function(e){var t=e.editorProps,n=(0,J.useRef)(0),r=(0,J.useState)(!1),i=(0,te.Z)(r,2),o=i[0],a=i[1],s=(0,J.useRef)();return(0,J.useEffect)((function(){s.current=new ResizeObserver((function(e){var r,i=(0,Oe.Z)(e);try{for(i.s();!(r=i.n()).done;){var a,s=r.value;n.current||(n.current=s.target.clientHeight),null!=(a=t.editor)&&null!=(a=a.current)&&null!=(a=a.view)&&a.dom&&(o?t.editor.current.view.dom.style.height=s.target.clientHeight+"px":t.editor.current.view.dom.removeAttribute("style"))}}catch(l){i.e(l)}finally{i.f()}}))}),[]),(0,J.useEffect)((function(){if(t.containerEditor&&t.containerEditor.current&&t.containerEditor.current.parentElement&&s.current){var e=t.containerEditor.current.parentElement;s.current.observe(e)}}),[t.containerEditor,t.editor,o,s]),(0,J.useEffect)((function(){if(document&&t&&t.container&&t.container.current&&t.editor){var e=t.container.current;document.body.style.overflow=o?"hidden":"initial",e&&o?(e.style.zIndex="999",e.style.position="fixed",e.style.top="0px",e.style.bottom="0px",e.style.left="0px",e.style.right="0px"):e&&(e.style.position="initial",e.style.top="initial",e.style.bottom="initial",e.style.left="initial",e.style.right="initial")}}),[o,t]),(0,qt.jsx)("button",{onClick:function(){return a(!o)},type:"button",className:o?"active":"",children:e.command.icon})},HO={name:"fullscreen",keyCommand:"fullscreen",button:function(e,t,n){return(0,qt.jsx)(XO,{command:e,editorProps:Ht({},t,n)})},icon:(0,qt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"15",width:"15",children:(0,qt.jsx)("path",{d:"M128 32H32C14.31 32 0 46.31 0 64v96c0 17.69 14.31 32 32 32s32-14.31 32-32V96h64c17.69 0 32-14.31 32-32s-14.3-32-32-32zm288 0h-96c-17.69 0-32 14.31-32 32s14.31 32 32 32h64v64c0 17.69 14.31 32 32 32s32-14.31 32-32V64c0-17.69-14.3-32-32-32zM128 416H64v-64c0-17.69-14.31-32-32-32S0 334.31 0 352v96c0 17.69 14.31 32 32 32h96c17.69 0 32-14.31 32-32s-14.3-32-32-32zm288-96c-17.69 0-32 14.31-32 32v64h-64c-17.69 0-32 14.31-32 32s14.31 32 32 32h96c17.69 0 32-14.31 32-32v-96c0-17.7-14.3-32-32-32z"})})},WO=function(e){var t=e.editorProps,n=t.containerEditor,r=t.preview,i=t.previewWidth,o=void 0===i?"50%":i,a=(0,J.useState)(e.editorProps.visible),s=(0,te.Z)(a,2),l=s[0],u=s[1];return(0,J.useEffect)((function(){return u(e.editorProps.visible)}),[e.editorProps.visible]),(0,J.useEffect)((function(){if(r.current){var e=r.current;r&&(e.style.borderBottomRightRadius="3px"),e&&l?(e.style.width=o,e.style.overflow="auto","100%"!==o&&(e.style.borderLeft="1px solid var(--color-border-muted)"),e.style.padding="20px",n.current&&(n.current.style.width="calc(100% - "+o+")")):e&&(e.style.width="0%",e.style.overflow="hidden",e.style.borderLeft="0px",e.style.padding="0",n.current&&(n.current.style.width="100%"))}}),[l,n,r,o]),(0,qt.jsx)("button",{onClick:function(){return u(!l)},type:"button",className:l?"active":"",children:e.command.icon})},qO={name:"preview",keyCommand:"preview",button:function(e,t,n){return(0,qt.jsx)(WO,{command:e,editorProps:Ht({},t,n)})},icon:(0,qt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 576 512",height:"16",width:"16",children:(0,qt.jsx)("path",{d:"M279.6 160.4c2.8-.3 5.6-.4 8.4-.4 53 0 96 42.1 96 96 0 53-43 96-96 96-53.9 0-96-43-96-96 0-2.8.1-5.6.4-8.4 9.3 4.5 20.1 8.4 31.6 8.4 35.3 0 64-28.7 64-64 0-11.5-3.9-22.3-8.4-31.6zm201-47.8c46.8 43.4 78.1 94.5 92.9 131.1 3.3 7.9 3.3 16.7 0 24.6-14.8 35.7-46.1 86.8-92.9 131.1C433.5 443.2 368.8 480 288 480s-145.5-36.8-192.58-80.6C48.62 355.1 17.34 304 2.461 268.3a31.967 31.967 0 0 1 0-24.6C17.34 207.1 48.62 156 95.42 112.6 142.5 68.84 207.2 32 288 32c80.8 0 145.5 36.84 192.6 80.6zM288 112c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144z"})})},GO={undo:YO,redo:UO,bold:DO,italic:QO,header:RO,strike:MO,underline:$O,quote:FO,olist:IO,ulist:LO,todo:jO,link:BO,image:zO,code:ZO,codeBlock:NO,fullscreen:HO,preview:qO},VO=function(){return Object.keys(GO).filter((function(e){return!/^(fullscreen|preview)/.test(e)})).map((function(e){return GO[e]}))},JO=function(){return[qO,HO]},KO=["prefixCls","className","onClick","toolbars","editor","mode","preview","container","containerEditor","editorProps"];function ey(e){var t=e.prefixCls,n=void 0===t?"md-editor":t,r=e.className,i=e.toolbars,o=void 0===i?[]:i,a=e.editor,s=e.mode,l=e.preview,u=e.container,c=e.containerEditor,h=e.editorProps,f=void 0===h?{}:h,d=Wt(e,KO);if(!o||0===o.length)return null;return(0,qt.jsx)("div",Ht({className:n+"-toolbar "+(r||"")+" "+(s?n+"-toolbar-mode":"")},d,{children:(0,ne.Z)(o).map((function(e,t){var n={type:"button"},r="string"===typeof e?GO[e]:e;if(!r)return null;if(n.children=r.icon,n.onClick=function(){var e;(e=r.execute)&&a&&a&&e(a.current)},r.button&&"object"===typeof r.button){var i=r.button;Object.keys(i).forEach((function(e){n[e]=i[e]}))}else if("function"===typeof r.button)return J.cloneElement(r.button(r,f,{preview:l,container:u,containerEditor:c,editor:a,editorProps:f}),{key:t});return(0,J.createElement)("button",Ht({},n,{key:t}))}))}))}var ty=function(e){var t=e.theme,n=e.settings,r=void 0===n?{}:n,i=e.styles,o=void 0===i?[]:i,a={".cm-gutters":{}},s={};r.background&&(s.backgroundColor=r.background),r.foreground&&(s.color=r.foreground),(r.background||r.foreground)&&(a["&"]=s),r.fontFamily&&(a["&.cm-editor .cm-scroller"]={fontFamily:r.fontFamily}),r.gutterBackground&&(a[".cm-gutters"].backgroundColor=r.gutterBackground),r.gutterForeground&&(a[".cm-gutters"].color=r.gutterForeground),r.gutterBorder&&(a[".cm-gutters"].borderRightColor=r.gutterBorder),r.caret&&(a[".cm-content"]={caretColor:r.caret},a[".cm-cursor, .cm-dropCursor"]={borderLeftColor:r.caret});var l={};r.gutterActiveForeground&&(l.color=r.gutterActiveForeground),r.lineHighlight&&(a[".cm-activeLine"]={backgroundColor:r.lineHighlight},l.backgroundColor=r.lineHighlight),a[".cm-activeLineGutter"]=l,r.selection&&(a["&.cm-focused .cm-selectionBackground, &.cm-focused .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={backgroundColor:r.selection+" !important"}),r.selectionMatch&&(a["& .cm-selectionMatch"]={backgroundColor:r.selectionMatch});var u=$s.tk.theme(a,{dark:"dark"===t}),c=Ns.Qf.define(o);return[u,(0,Ns.nF)(c)]},ny=ty({theme:"light",settings:{background:"var(--color-canvas-subtle)",foreground:"var(--color-fg-default)",caret:"var(--color-fg-default)",selection:"var(--color-border-default)",selectionMatch:"var(--color-border-muted)",lineHighlight:"var(--color-neutral-muted)",gutterBackground:"var(--color-canvas-subtle)",gutterForeground:"var(--color-fg-muted)",gutterBorder:"var(--color-border-muted)"},styles:[{tag:Kc.pJ.comment,color:"var(--color-prettylights-syntax-comment)"},{tag:Kc.pJ.variableName,color:"var(--color-prettylights-syntax-variable)"},{tag:[Kc.pJ.string,Kc.pJ.special(Kc.pJ.brace)],color:"var(--color-prettylights-syntax-entity)"},{tag:Kc.pJ.number,color:"var(--color-prettylights-syntax-variable)"},{tag:[Kc.pJ.bool,Kc.pJ.null],color:"var(--color-prettylights-syntax-entity)"},{tag:Kc.pJ.keyword,color:"var(--color-prettylights-syntax-keyword)",fontWeight:"bold"},{tag:Kc.pJ.string,color:"var(--color-prettylights-syntax-string)"},{tag:Kc.pJ.operator,color:"var(--color-accent-emphasis)"},{tag:Kc.pJ.deleted,color:"var(--color-prettylights-syntax-markup-deleted-bg)"},{tag:Kc.pJ.deleted,color:"red"},{tag:Kc.pJ.className,color:"var(--color-prettylights-syntax-variable)"},{tag:Kc.pJ.definition(Kc.pJ.typeName),color:"var(--color-prettylights-syntax-entity)"},{tag:Kc.pJ.typeName,color:"var(--color-prettylights-syntax-entity)"},{tag:Kc.pJ.list,color:"var(--color-prettylights-syntax-markup-list)"},{tag:Kc.pJ.heading,color:"var(--color-prettylights-syntax-markup-heading)",fontWeight:"bold"},{tag:Kc.pJ.regexp,color:"var(--color-prettylights-syntax-string-regexp)"},{tag:Kc.pJ.literal,color:"var(--color-prettylights-syntax-markup-italic)"},{tag:Kc.pJ.link,color:"var(--color-prettylights-syntax-constant-other-reference-link)",textDecoration:"underline"},{tag:Kc.pJ.angleBracket,color:"var(--color-fg-default)"},{tag:Kc.pJ.tagName,color:"var(--color-prettylights-syntax-entity-tag)"},{tag:Kc.pJ.attributeName,color:"var(--color-prettylights-syntax-constant)"}]}),ry=["prefixCls","className","onChange","toolbars","toolbarsMode","toolbarsFilter","visible","renderPreview","visibleEditor","hideToolbar","toolbarBottom","enableScroll","previewProps","extensions","previewWidth","reExtensions"],iy=$s.tk.theme({"&.cm-editor, & .cm-scroller":{borderBottomRightRadius:"3px",borderBottomLeftRadius:"3px"}}),oy=J.forwardRef(sy);oy.Markdown=_O;var ay=oy;function sy(e,t){var n=e.prefixCls,r=void 0===n?"md-editor":n,i=e.className,o=e.onChange,a=e.toolbars,s=void 0===a?VO():a,l=e.toolbarsMode,u=void 0===l?JO():l,c=e.toolbarsFilter,h=e.visible,f=void 0===h||h,d=e.renderPreview,p=e.visibleEditor,m=void 0===p||p,g=e.hideToolbar,v=void 0===g||g,O=e.toolbarBottom,y=void 0!==O&&O,b=e.enableScroll,k=void 0===b||b,S=e.previewProps,x=void 0===S?{}:S,w=e.extensions,T=void 0===w?[]:w,C=e.previewWidth,E=void 0===C?"50%":C,A=e.reExtensions,P=Wt(e,ry),_=(0,J.useState)(e.value||""),D=(0,te.Z)(_,2),Z=D[0],N=D[1],Q=(0,J.useRef)(null),R=(0,J.useRef)(null),M=(0,J.useRef)(null),$=(0,J.useRef)(null),I=(0,J.useRef)("editor");(0,J.useImperativeHandle)(t,(function(){return{editor:Q,preview:$}}),[Q]);var L={preview:$,editor:Q,container:R,containerEditor:M,editorProps:Ht({},e,{previewWidth:E})},F="number"===typeof P.height?P.height+"px":P.height,B=(0,J.useCallback)((function(e){if(k){var t=e.target,n=t.scrollTop/t.scrollHeight;if("editor"===I.current&&$.current){var r,i=(null==(r=$.current)?void 0:r.scrollHeight)||0;$.current.scrollTop=i*n}else if(Q.current&&Q.current.view){var o=Q.current.view.scrollDOM,a=Q.current.view.scrollDOM.scrollHeight||0;o.scrollTop=a*n}}}),[k]),j=function(){return I.current="preview"},z=function(){return I.current="editor"};(0,J.useEffect)((function(){var e=$.current;return e&&k&&(e.addEventListener("mouseover",j,!1),e.addEventListener("mouseleave",z,!1),e.addEventListener("scroll",B,!1)),function(){e&&k&&(e.removeEventListener("mouseover",j),e.removeEventListener("mouseleave",j),e.addEventListener("mouseleave",B,!1))}}),[$,k,B]);var U=Is({type:"scroll",events:{scroll:B}}),Y=A||[(0,Zs.markdown)({base:Zs.markdownLanguage,codeLanguages:Ms}),iy].concat((0,ne.Z)(T));k&&Y.push(U);var X=r+"-preview",H=[r,"wmde-markdown-var",i].filter(Boolean).join(" ");x.source=Z;var W=(0,qt.jsxs)("div",{className:r+"-content",style:{height:P.height},children:[(0,qt.jsx)("div",{className:r+"-content-editor",ref:M,children:m&&(0,qt.jsx)(Th,Ht({theme:ny},P,{extensions:Y,height:F,ref:Q,onChange:function(e,t){N(e),o&&o(e,t)}}))}),(0,qt.jsx)("div",{className:X,ref:$,children:d?d(x,!!f):(0,qt.jsx)(_O,Ht({},x,{"data-visible":!!f}))})]}),q=[r&&r+"-toolbar-warp",r&&y&&r+"-toolbar-bottom"].filter(Boolean).join(" "),G=c?s.filter(c):s,V=c?u.filter(c):u,K=v&&(0,qt.jsxs)("div",{className:q,children:[(0,qt.jsx)(ey,Ht({},L,{toolbars:G})),(0,qt.jsx)(ey,Ht({},L,{toolbars:V,mode:!0}))]}),ee=y?(0,qt.jsxs)(J.Fragment,{children:[W,K]}):(0,qt.jsxs)(J.Fragment,{children:[K,W]});return(0,qt.jsx)("div",{className:H,ref:R,children:ee})}var ly={background:"#0f0f0f",foreground:"#defdef",caret:"#00FF00",selection:"#515151",selectionMatch:"#515151",gutterBackground:"#555",gutterForeground:"#FFFFFF",lineHighlight:"#314151"},uy=function(e){var t=e||{},n=t.theme,r=void 0===n?"dark":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},ly,o),styles:[{tag:Kc.pJ.keyword,color:"darkgoldenrod",fontWeight:"bold"},{tag:Kc.pJ.atom,color:"#77F"},{tag:Kc.pJ.comment,color:"#7a7b7c",fontStyle:"italic"},{tag:Kc.pJ.number,color:"violet"},{tag:Kc.pJ.definition(Kc.pJ.variableName),color:"#fffabc"},{tag:Kc.pJ.variableName,color:"#abcdef"},{tag:Kc.pJ.function(Kc.pJ.variableName),color:"#fffabc"},{tag:Kc.pJ.typeName,color:"#FFDD44"},{tag:Kc.pJ.tagName,color:"#def"},{tag:Kc.pJ.string,color:"#2b4"},{tag:Kc.pJ.meta,color:"#C9F"},{tag:Kc.pJ.bracket,color:"#8a8a8a"},{tag:Kc.pJ.attributeName,color:"#DDFF00"},{tag:Kc.pJ.heading,color:"aquamarine",fontWeight:"bold"},{tag:Kc.pJ.link,color:"blueviolet",fontWeight:"bold"}].concat((0,ne.Z)(s))})}(),cy={background:"#282b2e",foreground:"#a9b7c6",caret:"#00FF00",selection:"#343739",selectionMatch:"#343739",lineHighlight:"#343739"},hy=function(e){var t=e||{},n=t.theme,r=void 0===n?"dark":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},cy,o),styles:[{tag:[Kc.pJ.keyword,Kc.pJ.deleted,Kc.pJ.className],color:"#cc7832"},{tag:[Kc.pJ.number,Kc.pJ.literal,Kc.pJ.derefOperator],color:"#6897bb"},{tag:[Kc.pJ.link,Kc.pJ.variableName],color:"#629755"},{tag:[Kc.pJ.comment,Kc.pJ.quote],color:"grey"},{tag:[Kc.pJ.meta,Kc.pJ.documentMeta],color:"#bbb529"},{tag:[Kc.pJ.string,Kc.pJ.propertyName,Kc.pJ.attributeValue],color:"#6a8759"},{tag:[Kc.pJ.heading,Kc.pJ.typeName],color:"#ffc66d"},{tag:[Kc.pJ.attributeName],color:"#a9b7c6"},{tag:[Kc.pJ.emphasis],fontStyle:"italic"}].concat((0,ne.Z)(s))})}(),fy={background:"#272C35",foreground:"#9d9b97",caret:"#797977",selection:"#ffffff30",selectionMatch:"#2B323D",gutterBackground:"#272C35",gutterForeground:"#465063",gutterBorder:"transparent",lineHighlight:"#2B323D"},dy=function(e){var t=e||{},n=t.theme,r=void 0===n?"dark":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},fy,o),styles:[{tag:[Kc.pJ.function(Kc.pJ.variableName),Kc.pJ.function(Kc.pJ.propertyName),Kc.pJ.url,Kc.pJ.processingInstruction],color:"hsl(207, 82%, 66%)"},{tag:[Kc.pJ.tagName,Kc.pJ.heading],color:"#e06c75"},{tag:Kc.pJ.comment,color:"#54636D"},{tag:[Kc.pJ.propertyName],color:"hsl(220, 14%, 71%)"},{tag:[Kc.pJ.attributeName,Kc.pJ.number],color:"hsl( 29, 54%, 61%)"},{tag:Kc.pJ.className,color:"hsl( 39, 67%, 69%)"},{tag:Kc.pJ.keyword,color:"hsl(286, 60%, 67%)"},{tag:[Kc.pJ.string,Kc.pJ.regexp,Kc.pJ.special(Kc.pJ.propertyName)],color:"#98c379"}].concat((0,ne.Z)(s))})}(),py={background:"#FFFFFF",foreground:"#000000",caret:"#FBAC52",selection:"#FFD420",selectionMatch:"#FFD420",gutterBackground:"#f5f5f5",gutterForeground:"#4D4D4C",gutterBorder:"transparent",lineHighlight:"#00000012"},my=function(e){var t=e||{},n=t.theme,r=void 0===n?"light":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},py,o),styles:[{tag:[Kc.pJ.meta,Kc.pJ.comment],color:"#804000"},{tag:[Kc.pJ.keyword,Kc.pJ.strong],color:"#0000FF"},{tag:[Kc.pJ.number],color:"#FF0080"},{tag:[Kc.pJ.string],color:"#FF0080"},{tag:[Kc.pJ.variableName],color:"#006600"},{tag:[Kc.pJ.escape],color:"#33CC33"},{tag:[Kc.pJ.tagName],color:"#1C02FF"},{tag:[Kc.pJ.heading],color:"#0C07FF"},{tag:[Kc.pJ.quote],color:"#000000"},{tag:[Kc.pJ.list],color:"#B90690"},{tag:[Kc.pJ.documentMeta],color:"#888888"},{tag:[Kc.pJ.function(Kc.pJ.variableName)],color:"#0000A2"},{tag:[Kc.pJ.definition(Kc.pJ.typeName),Kc.pJ.typeName],color:"#6D79DE"}].concat((0,ne.Z)(s))})}(),gy={background:"#28211c",foreground:"#9d9b97",caret:"#797977",selection:"#36312e",selectionMatch:"#4f382b",gutterBackground:"#28211c",gutterForeground:"#666666",lineHighlight:"rgba(255, 255, 255, 0.1)"},vy=function(e){var t=e||{},n=t.theme,r=void 0===n?"dark":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},gy,o),styles:[{tag:[Kc.pJ.atom,Kc.pJ.number,Kc.pJ.link,Kc.pJ.bool],color:"#9b859d"},{tag:Kc.pJ.comment,color:"#937121"},{tag:[Kc.pJ.keyword,Kc.pJ.tagName],color:"#cf6a4c"},{tag:Kc.pJ.string,color:"#f9ee98"},{tag:Kc.pJ.bracket,color:"#9d9b97"},{tag:[Kc.pJ.variableName],color:"#5ea6ea"},{tag:Kc.pJ.definition(Kc.pJ.variableName),color:"#cf7d34"},{tag:[Kc.pJ.function(Kc.pJ.variableName),Kc.pJ.className],color:"#cf7d34"},{tag:[Kc.pJ.propertyName,Kc.pJ.attributeName],color:"#54be0d"}].concat((0,ne.Z)(s))})}(),Oy={background:"#2B2B2B",foreground:"#f8f8f2",caret:"#FFFFFF",selection:"rgba(255, 255, 255, 0.1)",selectionMatch:"rgba(255, 255, 255, 0.2)",gutterBackground:"rgba(255, 255, 255, 0.1)",gutterForeground:"#999",gutterBorder:"transparent",lineHighlight:"rgba(255, 255, 255, 0.1)"},yy=function(e){var t=e||{},n=t.theme,r=void 0===n?"dark":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},Oy,o),styles:[{tag:[Kc.pJ.atom,Kc.pJ.number],color:"#bd93f9"},{tag:[Kc.pJ.comment],color:"#61A151"},{tag:[Kc.pJ.string],color:"#6A8759"},{tag:[Kc.pJ.variableName,Kc.pJ.operator],color:"#A9B7C6"},{tag:[Kc.pJ.meta,Kc.pJ.className],color:"#A9B7C6"},{tag:[Kc.pJ.propertyName],color:"#FFC66D"},{tag:[Kc.pJ.keyword],color:"#CC7832"},{tag:[Kc.pJ.tagName],color:"#ff79c6"},{tag:[Kc.pJ.typeName],color:"#ffb86c"}].concat((0,ne.Z)(s))})}(),by={background:"#282a36",foreground:"#f8f8f2",caret:"#f8f8f0",selection:"rgba(255, 255, 255, 0.1)",selectionMatch:"rgba(255, 255, 255, 0.2)",gutterBackground:"#282a36",gutterForeground:"#6D8A88",gutterBorder:"transparent",lineHighlight:"rgba(255, 255, 255, 0.1)"},ky=function(e){var t=e||{},n=t.theme,r=void 0===n?"dark":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},by,o),styles:[{tag:Kc.pJ.comment,color:"#6272a4"},{tag:Kc.pJ.string,color:"#f1fa8c"},{tag:Kc.pJ.atom,color:"#bd93f9"},{tag:Kc.pJ.meta,color:"#f8f8f2"},{tag:[Kc.pJ.keyword,Kc.pJ.operator,Kc.pJ.tagName],color:"#ff79c6"},{tag:[Kc.pJ.function(Kc.pJ.propertyName),Kc.pJ.propertyName],color:"#66d9ef"},{tag:[Kc.pJ.definition(Kc.pJ.variableName),Kc.pJ.function(Kc.pJ.variableName),Kc.pJ.className,Kc.pJ.attributeName],color:"#50fa7b"},{tag:Kc.pJ.atom,color:"#bd93f9"}].concat((0,ne.Z)(s))})}(),Sy={background:"#faf8f5",foreground:"#b29762",caret:"#93abdc",selection:"#e3dcce",selectionMatch:"#e3dcce",gutterBackground:"#faf8f5",gutterForeground:"#cdc4b1",gutterBorder:"transparent",lineHighlight:"#EFEFEF"},xy=function(e){var t=e||{},n=t.theme,r=void 0===n?"light":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},Sy,o),styles:[{tag:[Kc.pJ.comment,Kc.pJ.bracket],color:"#b6ad9a"},{tag:[Kc.pJ.atom,Kc.pJ.number,Kc.pJ.keyword,Kc.pJ.link,Kc.pJ.attributeName,Kc.pJ.quote],color:"#063289"},{tag:[Kc.pJ.emphasis,Kc.pJ.heading,Kc.pJ.tagName,Kc.pJ.propertyName,Kc.pJ.variableName],color:"#2d2006"},{tag:[Kc.pJ.typeName,Kc.pJ.url,Kc.pJ.string],color:"#896724"},{tag:[Kc.pJ.operator,Kc.pJ.string],color:"#1659df"},{tag:[Kc.pJ.propertyName],color:"#b29762"},{tag:[Kc.pJ.unit,Kc.pJ.punctuation],color:"#063289"}].concat((0,ne.Z)(s))})}(),wy={background:"#2a2734",foreground:"#6c6783",caret:"#ffad5c",selection:"rgba(255, 255, 255, 0.1)",gutterBackground:"#2a2734",gutterForeground:"#545167",lineHighlight:"#36334280"},Ty=function(e){var t=e||{},n=t.theme,r=void 0===n?"dark":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},wy,o),styles:[{tag:[Kc.pJ.comment,Kc.pJ.bracket],color:"#6c6783"},{tag:[Kc.pJ.atom,Kc.pJ.number,Kc.pJ.keyword,Kc.pJ.link,Kc.pJ.attributeName,Kc.pJ.quote],color:"#ffcc99"},{tag:[Kc.pJ.emphasis,Kc.pJ.heading,Kc.pJ.tagName,Kc.pJ.propertyName,Kc.pJ.className,Kc.pJ.variableName],color:"#eeebff"},{tag:[Kc.pJ.typeName,Kc.pJ.url],color:"#7a63ee"},{tag:Kc.pJ.operator,color:"#ffad5c"},{tag:Kc.pJ.string,color:"#ffb870"},{tag:[Kc.pJ.propertyName],color:"#9a86fd"},{tag:[Kc.pJ.unit,Kc.pJ.punctuation],color:"#e09142"}].concat((0,ne.Z)(s))})}(),Cy={background:"#fff",foreground:"#000",caret:"#FFFFFF",selection:"#d7d4f0",selectionMatch:"#d7d4f0",gutterBackground:"#f7f7f7",gutterForeground:"#999",lineHighlight:"#e8f2ff",gutterBorder:"transparent"},Ey=function(e){var t=e||{},n=t.theme,r=void 0===n?"light":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},Cy,o),styles:[{tag:[Kc.pJ.comment],color:"#3F7F5F"},{tag:[Kc.pJ.documentMeta],color:"#FF1717"},{tag:Kc.pJ.keyword,color:"#7F0055",fontWeight:"bold"},{tag:Kc.pJ.atom,color:"#00f"},{tag:Kc.pJ.number,color:"#164"},{tag:Kc.pJ.propertyName,color:"#164"},{tag:[Kc.pJ.variableName,Kc.pJ.definition(Kc.pJ.variableName)],color:"#0000C0"},{tag:Kc.pJ.function(Kc.pJ.variableName),color:"#0000C0"},{tag:Kc.pJ.string,color:"#2A00FF"},{tag:Kc.pJ.operator,color:"black"},{tag:Kc.pJ.tagName,color:"#170"},{tag:Kc.pJ.attributeName,color:"#00c"},{tag:Kc.pJ.link,color:"#219"}].concat((0,ne.Z)(s))})}(),Ay={background:"#fff",foreground:"#24292e",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#6e7781"},Py=function(e){var t=e||{},n=t.theme,r=void 0===n?"light":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},Ay,o),styles:[{tag:[Kc.pJ.standard(Kc.pJ.tagName),Kc.pJ.tagName],color:"#116329"},{tag:[Kc.pJ.comment,Kc.pJ.bracket],color:"#6a737d"},{tag:[Kc.pJ.className,Kc.pJ.propertyName],color:"#6f42c1"},{tag:[Kc.pJ.variableName,Kc.pJ.attributeName,Kc.pJ.number,Kc.pJ.operator],color:"#005cc5"},{tag:[Kc.pJ.keyword,Kc.pJ.typeName,Kc.pJ.typeOperator,Kc.pJ.typeName],color:"#d73a49"},{tag:[Kc.pJ.string,Kc.pJ.meta,Kc.pJ.regexp],color:"#032f62"},{tag:[Kc.pJ.name,Kc.pJ.quote],color:"#22863a"},{tag:[Kc.pJ.heading],color:"#24292e",fontWeight:"bold"},{tag:[Kc.pJ.emphasis],color:"#24292e",fontStyle:"italic"},{tag:[Kc.pJ.deleted],color:"#b31d28",backgroundColor:"ffeef0"},{tag:[Kc.pJ.atom,Kc.pJ.bool,Kc.pJ.special(Kc.pJ.variableName)],color:"#e36209"},{tag:[Kc.pJ.url,Kc.pJ.escape,Kc.pJ.regexp,Kc.pJ.link],color:"#032f62"},{tag:Kc.pJ.link,textDecoration:"underline"},{tag:Kc.pJ.strikethrough,textDecoration:"line-through"},{tag:Kc.pJ.invalid,color:"#cb2431"}].concat((0,ne.Z)(s))})}(),_y={background:"#0d1117",foreground:"#c9d1d9",caret:"#c9d1d9",selection:"#003d73",selectionMatch:"#003d73",lineHighlight:"#36334280"},Dy=function(e){var t=e||{},n=t.theme,r=void 0===n?"dark":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},_y,o),styles:[{tag:[Kc.pJ.standard(Kc.pJ.tagName),Kc.pJ.tagName],color:"#7ee787"},{tag:[Kc.pJ.comment,Kc.pJ.bracket],color:"#8b949e"},{tag:[Kc.pJ.className,Kc.pJ.propertyName],color:"#d2a8ff"},{tag:[Kc.pJ.variableName,Kc.pJ.attributeName,Kc.pJ.number,Kc.pJ.operator],color:"#79c0ff"},{tag:[Kc.pJ.keyword,Kc.pJ.typeName,Kc.pJ.typeOperator,Kc.pJ.typeName],color:"#ff7b72"},{tag:[Kc.pJ.string,Kc.pJ.meta,Kc.pJ.regexp],color:"#a5d6ff"},{tag:[Kc.pJ.name,Kc.pJ.quote],color:"#7ee787"},{tag:[Kc.pJ.heading],color:"#d2a8ff",fontWeight:"bold"},{tag:[Kc.pJ.emphasis],color:"#d2a8ff",fontStyle:"italic"},{tag:[Kc.pJ.deleted],color:"#ffdcd7",backgroundColor:"ffeef0"},{tag:[Kc.pJ.atom,Kc.pJ.bool,Kc.pJ.special(Kc.pJ.variableName)],color:"#ffab70"},{tag:Kc.pJ.link,textDecoration:"underline"},{tag:Kc.pJ.strikethrough,textDecoration:"line-through"},{tag:Kc.pJ.invalid,color:"#f97583"}].concat((0,ne.Z)(s))})}(),Zy={background:"#272822",foreground:"#FFFFFF",caret:"#FFFFFF",selection:"#49483E",selectionMatch:"#49483E",gutterBackground:"#272822",gutterForeground:"#FFFFFF70",lineHighlight:"#00000059"},Ny=function(e){var t=e||{},n=t.theme,r=void 0===n?"dark":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},Zy,o),styles:[{tag:[Kc.pJ.comment,Kc.pJ.documentMeta],color:"#8292a2"},{tag:[Kc.pJ.number,Kc.pJ.bool,Kc.pJ.null,Kc.pJ.atom],color:"#ae81ff"},{tag:[Kc.pJ.attributeValue,Kc.pJ.className,Kc.pJ.name],color:"#e6db74"},{tag:[Kc.pJ.propertyName,Kc.pJ.attributeName],color:"#a6e22e"},{tag:[Kc.pJ.variableName],color:"#9effff"},{tag:[Kc.pJ.squareBracket],color:"#bababa"},{tag:[Kc.pJ.string,Kc.pJ.special(Kc.pJ.brace)],color:"#e6db74"},{tag:[Kc.pJ.regexp,Kc.pJ.className,Kc.pJ.typeName,Kc.pJ.definition(Kc.pJ.typeName)],color:"#66d9ef"},{tag:[Kc.pJ.definition(Kc.pJ.variableName),Kc.pJ.definition(Kc.pJ.propertyName),Kc.pJ.function(Kc.pJ.variableName)],color:"#fd971f"},{tag:[Kc.pJ.keyword,Kc.pJ.definitionKeyword,Kc.pJ.modifier,Kc.pJ.tagName,Kc.pJ.angleBracket],color:"#f92672"}].concat((0,ne.Z)(s))})}(),Qy={background:"#303841",foreground:"#FFFFFF",caret:"#FBAC52",selection:"#4C5964",selectionMatch:"#3A546E",gutterBackground:"#303841",gutterForeground:"#FFFFFF70",lineHighlight:"#00000059"};var Ry=function(e){var t=e||{},n=t.theme,r=void 0===n?"dark":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},Qy,o),styles:[{tag:[Kc.pJ.meta,Kc.pJ.comment],color:"#A2A9B5"},{tag:[Kc.pJ.attributeName,Kc.pJ.keyword],color:"#B78FBA"},{tag:Kc.pJ.function(Kc.pJ.variableName),color:"#5AB0B0"},{tag:[Kc.pJ.string,Kc.pJ.regexp,Kc.pJ.attributeValue],color:"#99C592"},{tag:Kc.pJ.operator,color:"#f47954"},{tag:[Kc.pJ.tagName,Kc.pJ.modifier],color:"#E35F63"},{tag:[Kc.pJ.number,Kc.pJ.definition(Kc.pJ.tagName),Kc.pJ.className,Kc.pJ.definition(Kc.pJ.variableName)],color:"#fbac52"},{tag:[Kc.pJ.atom,Kc.pJ.bool,Kc.pJ.special(Kc.pJ.variableName)],color:"#E35F63"},{tag:Kc.pJ.variableName,color:"#539ac4"},{tag:[Kc.pJ.propertyName,Kc.pJ.typeName],color:"#629ccd"},{tag:Kc.pJ.propertyName,color:"#36b7b5"}].concat((0,ne.Z)(s))})}(),My={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#EDF4FF"};var $y,Iy,Ly,Fy,By,jy,zy,Uy=function(e){var t=e||{},n=t.theme,r=void 0===n?"light":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},My,o),styles:[{tag:[Kc.pJ.comment,Kc.pJ.quote],color:"#707F8D"},{tag:[Kc.pJ.typeName,Kc.pJ.typeOperator],color:"#aa0d91"},{tag:[Kc.pJ.keyword],color:"#aa0d91",fontWeight:"bold"},{tag:[Kc.pJ.string,Kc.pJ.meta],color:"#D23423"},{tag:[Kc.pJ.name],color:"#032f62"},{tag:[Kc.pJ.typeName],color:"#522BB2"},{tag:[Kc.pJ.variableName],color:"#23575C"},{tag:[Kc.pJ.definition(Kc.pJ.variableName)],color:"#327A9E"},{tag:[Kc.pJ.regexp,Kc.pJ.link],color:"#0e0eff"}].concat((0,ne.Z)(s))})}(),Yy={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#2F3239"},Xy=function(e){var t=e||{},n=t.theme,r=void 0===n?"dark":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},Yy,o),styles:[{tag:[Kc.pJ.comment,Kc.pJ.quote],color:"#7F8C98"},{tag:[Kc.pJ.keyword],color:"#FF7AB2",fontWeight:"bold"},{tag:[Kc.pJ.string,Kc.pJ.meta],color:"#FF8170"},{tag:[Kc.pJ.typeName],color:"#DABAFF"},{tag:[Kc.pJ.definition(Kc.pJ.variableName)],color:"#6BDFFF"},{tag:[Kc.pJ.name],color:"#6BAA9F"},{tag:[Kc.pJ.variableName],color:"#ACF2E4"},{tag:[Kc.pJ.regexp,Kc.pJ.link],color:"#FF8170"}].concat((0,ne.Z)(s))})}(),Hy='
\n

\u5fae\u4fe1\u516c\u4f17\u53f7 Markdown \u7f16\u8f91\u5668

\n
\n\n[![\u5fae\u4fe1\u516c\u4f17\u53f7 Markdown \u7f16\u8f91\u5668](https://user-images.githubusercontent.com/1680273/188264183-a6b8cb6a-92e1-4a73-afc5-4f0234b26ed3.png)](https://jaywcjlove.github.io/wxmp)\n\n\u5fae\u4fe1\u516c\u4f17\u53f7\u6587\u7ae0 Markdown \u5728\u7ebf\u7f16\u8f91\u5668\uff0c\u4f7f\u7528 markdown \u8bed\u6cd5\u521b\u5efa\u4e00\u7bc7\u7b80\u4ecb\u7f8e\u89c2\u5927\u65b9\u7684\u5fae\u4fe1\u516c\u4f17\u53f7\u56fe\u6587\u3002\u7531\u4e8e\u53d1\u7248\u672c\u9ebb\u70e6\uff0c\u548c\u4e00\u4e9b\u529f\u80fd\u65e0\u6cd5\u6269\u5c55\u505c\u6ede\u5f00\u53d1\u4e86\uff0c\u672a\u6765\u4e0d\u518d\u5f00\u53d1 Chrome \u7684\u63d2\u4ef6(\u6682\u5b58\u5728 chrome \u5206\u652f)\uff0c\u901a\u8fc7 web \u7248\u672c\u5b9a\u5236\u66f4\u4e30\u5bcc\u7684\u529f\u80fd\u3002\n\n[![Markdown \u7f16\u8f91\u5668\u684c\u9762\u5e94\u7528](https://user-images.githubusercontent.com/1680273/188407235-ead43d61-2ef8-416a-926f-396d8b824b33.png)](https://github.com/jaywcjlove/wxmp/releases)\n\n## \u529f\u80fd\u7279\u6027\n\n\u5f00\u53d1\u8ba1\u5212\u548c\u4e00\u4e9b\u529f\u80fd\u4ecb\u7ecd\uff0c\u6709\u9700\u6c42\u53ef\u4ee5\u5728 issue \u4e2d\u63d0\uff0c\u4f7f\u5f97\u5de5\u5177\u53d8\u5f97\u66f4\u52a0\u5b8c\u5584\u3002\u4e0b\u9762\u793a\u4f8b\u7528\u4e8e web \u5e94\u7528\u4e2d\u6548\u679c\u5c55\u793a\u3002\n\n- [x] \u652f\u6301 Markdown \u6240\u6709\u57fa\u7840\u8bed\u6cd5\n- [x] \u652f\u6301\u81ea\u5b9a\u4e49 CSS \u6837\u5f0f\n- [x] \u652f\u6301\u4e3b\u9898\u9009\u62e9 & \u7f16\u8f91\u9884\u89c8\u3002\n- [x] \u652f\u6301\u660e\u6697\u4e24\u79cd\u4e3b\u9898\u9884\u89c8\u3002\n- [ ] \u652f\u6301\u4ee3\u7801\u5757\u4e3b\u9898\u6837\u5f0f\u9009\u62e9\u3002\n- [x] \u652f\u6301\u8272\u76d8\u53d6\u8272\uff0c\u5feb\u901f\u66ff\u6362\u6587\u7ae0\u6574\u4f53\u8272\u8c03\n- [x] \u652f\u6301 URL \u53c2\u6570\u52a0\u8f7d Markdown \u5185\u5bb9\u3002\n- [x] \u652f\u6301 URL \u53c2\u6570\u9009\u62e9\u9884\u89c8\u4e3b\u9898\u3002\n- [x] CI \u81ea\u52a8\u751f\u6210 Electron \u684c\u9762\u5e94\u7528\u3002\n- [ ] ~~\u652f\u6301\u5168\u5c40\u5b57\u53f7\u5927\u5c0f\u9009\u62e9\u3002~~\n\n### \u652f\u6301\u4ee3\u7801\u5757\u6837\u5f0f\n\n\u4e0b\u9762\u662f `jsx` \u4ee3\u7801\u5757\u5c55\u793a\u793a\u4f8b\uff0c\u5e76\u9ad8\u4eae\u4ee3\u7801\uff0c\u7528\u4e8e web \u5e94\u7528\u4e2d\u6548\u679c\u5c55\u793a\u3002\n\n```jsx\nfunction Demo() {\n return
Hello World!
\n}\n```\n\n\u4e0b\u9762\u662f `css` \u4ee3\u7801\u5757\u5c55\u793a\u793a\u4f8b\uff0c\u5e76\u9ad8\u4eae\u4ee3\u7801\uff0c\u7528\u4e8e web \u5e94\u7528\u4e2d\u6548\u679c\u5c55\u793a\u3002\n\n```css\nli {\n font-size: 16px;\n margin: 0;\n line-height: 26px;\n color: rgb(30 41 59);\n font-family:-apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif;\n}\n```\n\n### \u652f\u6301\u5185\u8054\u4ee3\u7801\n\n> \u7528\u4e8e web \u5e94\u7528\u4e2d\u6548\u679c\u5c55\u793a\u3002\n\nInline Code `{code: 0}`\n\n### \u652f\u6301\u8868\u683c\n\n\u8868\u683c\u65e0\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u6837\u5f0f\uff0c\u6682\u65f6\u6ca1\u627e\u5230\u89e3\u51b3\u9014\u5f84\n\n| Header 1 | Header 2 |\n| --- | --- |\n| Key 1 | Value 1 |\n| Key 2 | Value 2 |\n| Key 3 | Value 3 |\n\n### \u652f\u6301 GFM \u811a\u6ce8\n\n\u8fd9\u662f\u4e00\u4e2a\u7b80\u5355\u7684 Markdown[^1] \u8bed\u6cd5\u7684\u811a\u6ce8[^2]\u3002 \u9875\u9762\u6700\u540e\u6709\u4e00\u4e9b\u989d\u5916\u7684\u6587\u5b57\u63cf\u8ff0\u3002\u6ce8\u610f\u8fd9\u4e0d\u662f\u5b8c\u6574\u7684\u6ce8\u811a[^3]\u7279\u6027\u3002\n\n[^1]: GitHub \u98ce\u683c\u7684 Markdown \u89c4\u8303 https://github.github.com/gfm/\n[^2]: \u811a\u6ce8 https://github.blog/changelog/2021-09-30-footnotes-now-supported-in-markdown-fields/\n[^3]: \u5fae\u4fe1\u6587\u7ae0\u4e0d\u652f\u6301\u951a\u70b9\u8df3\u8f6c\u548c\u6253\u5f00\u7b2c\u4e09\u65b9 URL \u8d85\u94fe\u63a5\uff0c\u6240\u4ee5\u4e0d\u652f\u6301\u5b8c\u6574\u7684\u6ce8\u811a\u7279\u6027\u3002\n\n### \u652f\u6301\u6ce8\u91ca\n\n```html\n\n \u6c49 Han\n\n```\n\n\u6c49\u5b57\u6ce8\u97f3\u6548\u679c\uff1a\n\n \u6c49 Han\n \u5b57 zi\n \u62fc pin\n \u97f3 yin\n \u6ce8 zhu\n \u97f3 yin\n\n\n### \u652f\u6301\u81ea\u5b9a\u4e49\u6837\u5f0f\n\x3c!--rehype:style=color: red;--\x3e\n\n\u5728 Markdown \u4e2d HTML \u6ce8\u91ca\u4e5f\u53ef\u4ee5\u7528\u5728 markdown \u4e2d\uff0c\u5229\u7528\u8fd9\u4e00\u7279\u70b9\uff0c\u4e3a\u4e00\u4e9b\u5185\u5bb9\u81ea\u5b9a\u4e00\u6837\u5f0f\u3002\u4f7f\u7528 HTML \u6ce8\u91ca `\x3c!--rehype:xxx--\x3e`\x3c!--rehype:style=color: red;background: #ff000033;--\x3e \u8ba9 Markdown \u652f\u6301\u6837\u5f0f\u81ea\u5b9a\u4e49\u3002\n\n```markdown\n## \u5b9a\u4e49\u6807\u9898\u6837\u5f0f\n\x3c!--rehype:style=display: flex; height: 230px; align-items: center; justify-content: center; font-size: 38px;--\x3e\n\n\u652f\u6301\u5bf9\u67d0\u4e9b\u6587\u5b57\u53d8\u66f4\u6837\u5f0f\uff0c\u5982_\u6587\u5b57\u989c\u8272_\x3c!--rehype:style=color: red;--\x3e\uff0c\u6587\u5b57\u989c\u8272\u5c06\u88ab\u8bbe\u7f6e\u4e3a\u7ea2\u8272(red)\u3002\n```\n\n\u26a0\ufe0f \u6ce8\u610f\uff1a\u8fd9\u4e00\u7279\u6027\u53ef\u80fd\u9002\u7528\u4e8e\u6709\u4e00\u5b9a css \u524d\u7aef\u57fa\u7840\u77e5\u8bc6\u7684\u7528\u6237\uff0c\u4e0d\u8fc7\u5b83\u4e5f\u975e\u5e38\u7b80\u5355\uff0c\u4f7f\u7528 `\x3c!--rehype:style=` \u5f00\u59cb\uff0c`--\x3e` \u7ed3\u675f\uff0c\u4e2d\u95f4\u5305\u88f9 css \u6837\u5f0f\uff0c\u5982 `color: red;` \u8bbe\u7f6e\u6587\u5b57\u7ea2\u8272\u3002\n\n\n### \u6807\u8bb0\u5ffd\u7565\u5185\u5bb9\n\n\u6b64\u7279\u6027\u5229\u7528 HTML \u6ce8\u91ca\u5728 markdown \u4e2d\u88ab\u5ffd\u7565\u7684\u7279\u6027\uff0c\u6807\u8bb0\u9700\u8981\u5ffd\u7565\u7684\u5185\u5bb9\uff0c\u6807\u8bb0\u5f00\u59cb `\x3c!--rehype:ignore:start--\x3e`\uff0c\u6807\u8bb0\u7ed3\u675f `\x3c!--rehype:ignore:end--\x3e`\uff0c\u88ab\u6807\u8bb0\u7684\u5185\u5bb9\u5728\u5fae\u4fe1 Markdown \u7f16\u8f91\u5668\u9884\u89c8\u4e2d\u4e0d\u663e\u793a\u3002\u5728\u5176\u5b83\u9884\u89c8\u5de5\u5177\u4e2d\u5c55\u793a\u5185\u5bb9\uff0c\u6bd4\u5982 GitHub \u4e2d\u80fd\u5c55\u793a\u3002\n\n```markdown\n# \u6ce8\u91ca\u5ffd\u7565\n\n\x3c!--rehype:ignore:start--\x3e\u5185\u5bb9\u5728\u5fae\u4fe1 Markdown \u7f16\u8f91\u5668\u9884\u89c8\u4e2d\u4e0d\u663e\u793a\u3002\u5728\u5176\u5b83\u9884\u89c8\u5de5\u5177\u4e2d\u5c55\u793a\u5185\u5bb9\u3002\x3c!--rehype:ignore:end--\x3e\n```\n\n### \u652f\u6301 URL \u53c2\u6570\u52a0\u8f7d Markdown \u5185\u5bb9\n\n```\nhttps://?md=\n```\n\n\u52a0\u8f7d Markdown \u5185\u5bb9\u7684\u793a\u4f8b URL\uff1a\n\n```\nhttps://jaywcjlove.github.io/wxmp/#/?theme=underscore&md=https://raw.githubusercontent.com/jaywcjlove/c-tutorial/master/README.md\n\nMarkdown URL \u5730\u5740: https://raw.githubusercontent.com/jaywcjlove/c-tutorial/master/README.md\n```\n\n## \u4e3b\u9898\u5b9a\u5236\n\n\u5728\u76ee\u5f55 `website/src/themes` \u4e2d\u5b58\u653e\u9ed8\u8ba4\u4e3b\u9898\uff0c\u5728 `website/src/store/context.tsx` \u4e2d\u914d\u7f6e\u4e3b\u9898\uff0c\u4e3b\u9898\u4f7f\u7528 `css` \u5b9a\u4e49\u6837\u5f0f\uff0c\u4e0d\u652f\u6301\u590d\u6742\u7684\u9009\u62e9\u5668\u3002\u63d0\u4f9b\u5728\u7ebf\u4e3b\u9898\u7f16\u8f91\u5668\uff0c\u6b22\u8fce\u4fee\u6539\u5e76 `PR` \u8fdb\u4ed3\u5e93\u4f9b\u5927\u5bb6\u4f7f\u7528\u3002\n\n```css\n/* 1~6 \u6807\u9898\u6837\u5f0f\u5b9a\u4e49 */\nh1 {} h2 {} h3 {} h4 {} h5 {} h6 {}\na { color: red; } /* \u8d85\u94fe\u63a5\u6837\u5f0f\u5b9a\u4e49 */\nstrong {} /* \u52a0\u7c97\u6837\u5f0f\u5b9a\u4e49 */\ndel {} /* \u5220\u9664\u7ebf\u6837\u5f0f\u5b9a\u4e49 */\nem {} /* \u4e0b\u5212\u7ebf\u6837\u5f0f\u5b9a\u4e49 */\nu {} /* \u4e0b\u5212\u7ebf\u6837\u5f0f\u5b9a\u4e49 */\np {} /* \u6bb5\u843d\u6837\u5f0f\u5b9a\u4e49 */\nul {} /* \u65e0\u5e8f\u5217\u8868\u6837\u5f0f\u5b9a\u4e49 */\nol {} /* \u6709\u5e8f\u5217\u8868\u6837\u5f0f\u5b9a\u4e49 */\nli {} /* \u5217\u8868\u6761\u76ee\u6837\u5f0f\u5b9a\u4e49 */\nblockquote {} /* \u5757\u7ea7\u5f15\u7528\u6837\u5f0f\u5b9a\u4e49 */\ntable {}\ntd {}\nth {}\npre {} /* \u6837\u5f0f\u5b9a\u4e49 */\n.code-highlight {} /* \u4ee3\u7801\u5757\u6837\u5f0f\u5b9a\u4e49 */\n.code-line {} /* \u4ee3\u7801\u5757\u884c\u6837\u5f0f\u5b9a\u4e49 */\n.code-spans {} /* \u4ee3\u7801\u5757\u884c\u6837\u5f0f\u5b9a\u4e49 */\n\nsup {} /* GFM \u811a\u6ce8\u6837\u5f0f\u5b9a\u4e49 */\n.footnotes-title {} /* GFM \u811a\u6ce8\uff0c\u53c2\u8003\u6807\u9898\u6837\u5f0f\u5b9a\u4e49 */\n.footnotes-list {} /* GFM \u811a\u6ce8\uff0c\u53c2\u8003\u5217\u8868\u6837\u5f0f\u5b9a\u4e49 */\n\n.image-warpper {} /* \u56fe\u7247\u7236\u8282\u70b9\u6837\u5f0f\u5b9a\u4e49 */\n.image {} /* \u56fe\u7247\u6837\u5f0f\u5b9a\u4e49 */\n\n/* \u90e8\u5206\u4ee3\u7801\u9ad8\u4eae\u6837\u5f0f */\n.comment {}\n.property {}\n.function {}\n.keyword {}\n.punctuation {}\n.unit {}\n.tag {}\n.color {}\n.selector {}\n.quote {}\n.number {}\n.attr-name {}\n.attr-value {}\n```\n\n## \u90e8\u7f72\n\n[![Docker Image Version (latest by date)](https://img.shields.io/docker/v/wcjiang/wxmp?logo=docker)](https://hub.docker.com/r/wcjiang/wxmp) [![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/wcjiang/wxmp?logo=docker)](https://hub.docker.com/r/wcjiang/wxmp) [![Docker Pulls](https://img.shields.io/docker/pulls/wcjiang/wxmp?logo=docker)](https://hub.docker.com/r/wcjiang/wxmp)\n\n\u8f7b\u677e\u901a\u8fc7 docker \u90e8\u7f72\u300a\u5fae\u4fe1\u516c\u4f17\u53f7 Markdown \u7f16\u8f91\u5668\u300b\u7f51\u7ad9\u5e94\u7528\u3002\n\n```bash\ndocker pull wcjiang/wxmp\n# Or\ndocker pull ghcr.io/jaywcjlove/wxmp:latest\n```\n\n```bash\ndocker run --name wxmp --rm -d -p 8113:3000 wcjiang/wxmp:latest\n# Or\ndocker run --name wxmp -itd -p 8113:3000 wcjiang/wxmp:latest\n# Or\ndocker run --name wxmp -itd -p 8113:3000 ghcr.io/jaywcjlove/wxmp:latest\n```\n\n\u5728\u6d4f\u89c8\u5668\u4e2d\u8bbf\u95ee\u4ee5\u4e0b URL\n\n```\nhttp://localhost:96611/\n```\n\n## \u8d21\u732e\u8005\n\n\u4e00\u5982\u65e2\u5f80\uff0c\u611f\u8c22\u6211\u4eec\u51fa\u8272\u7684\u8d21\u732e\u8005\uff01\n\n\n \n\n\n\u4e0a\u56fe\u8d21\u732e\u8005\u5217\u8868\uff0c\u7531 [action-contributors](https://github.com/jaywcjlove/github-action-contributors)[^4] \u81ea\u52a8\u751f\u6210\u8d21\u732e\u8005\u56fe\u7247\u3002\n\n\n[^4]: Action Contributors https://github.com/jaywcjlove/github-action-contributors\n\n## License\n\n\u6839\u636e MIT \u8bb8\u53ef\u8bc1\u83b7\u5f97\u8bb8\u53ef\u3002\n',Wy=Hy,qy={default:{label:"\u9ed8\u8ba4\u4e3b\u9898",value:ny},abcdef:{label:"Abcdef Theme",value:uy},androidstudio:{label:"Android Studio Theme",value:hy},atomone:{label:"Atomone Theme",value:dy},bbedit:{label:"Bbedit Theme",value:my},bespin:{label:"Bespin Theme",value:vy},darcula:{label:"Darcula Theme",value:yy},dracula:{label:"Dracula Theme",value:ky},duotoneLight:{label:"Duotone Light Theme",value:xy},duotoneDark:{label:"Duotone Dark Theme",value:Ty},eclipse:{label:"Eclipse Theme",value:Ey},githubLight:{label:"Github Light Theme",value:Py},githubDark:{label:"Github Dark Theme",value:Dy},okaidia:{label:"Okaidia Theme",value:Ny},sublime:{label:"Sublime Theme",value:Ry},xcodeLight:{label:"Xcode Light Theme",value:Uy},xcodeDark:{label:"Xcode Dark Theme",value:Xy}},Gy={default:{label:"\u7fe1\u7fe0\u7eff",value:"a {\n color: #009874;\n text-decoration: none;\n font-size: 14px;\n}\n\nh1 {\n display: table;\n text-align: center;\n color: #3f3f3f;\n line-height: 1.75;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 16px;\n font-weight: bold;\n margin: 2em auto 1em;\n padding: 0 1em;\n border-bottom: 3px solid #009874;\n margin-top: 0;\n}\n\nh2 {\n display: table;\n text-align: center;\n color: #fff;\n line-height: 1.75;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 16px;\n font-weight: bold;\n margin: 4em auto 2em;\n padding: 0 0.3em;\n border-radius: 0.3em;\n background: #009874;\n}\n\nh3 {\n text-align: left;\n color: #3f3f3f;\n line-height: 1.2;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 2em 8px 0.75em 0;\n padding-left: 8px;\n border-left: 5px solid #009874;\n}\n\nul {\n padding-left: 1.2em;\n}\n\nol {\n padding-left: 1.2em;\n}\n\nli {\n margin: 0;\n line-height: 1.5em;\n font-size: 14px;\n line-height: 1.5em;\n}\n\np {\n font-size: 14px;\n line-height: 1.5em;\n padding: 0.5em 0 !important;\n margin-bottom: 0 !important;\n margin-top: 0 !important;\n}\n\nblockquote {\n text-align: left;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-style: normal;\n border-left: none;\n padding: 0.5em 1em;\n border-radius: 4px;\n background: rgba(27, 31, 35, 0.05);\n margin: 1em 0;\n}\n\npre {\n display: block;\n overflow-x: auto;\n padding: 1em;\n color: rgb(51, 51, 51);\n background: rgb(248, 248, 248);\n font-style: normal;\n font-variant-ligatures: normal;\n font-variant-caps: normal;\n font-weight: 400;\n letter-spacing: normal;\n orphans: 2;\n text-indent: 0px;\n text-transform: none;\n widows: 2;\n word-spacing: 0px;\n text-decoration-style: initial;\n text-decoration-color: initial;\n text-align: left;\n line-height: 1.5;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n border-radius: 0.3em;\n margin: 0.9rem 0;\n white-space: pre;\n}\n\ntable {\n width: 100% !important;\n border-collapse: collapse;\n line-height: 1.35;\n font-size: 14px;\n}\n\ntd {\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\nth {\n background: rgb(0 0 0 / 5%);\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\n.code-highlight {\n text-align: left;\n line-height: 1.75;\n font-family: Menlo, 'Operator Mono', Consolas, Monaco, monospace;\n font-size: 14px;\n margin: 0px;\n white-space: nowrap;\n}\n\n.code-line {\n display: block;\n line-height: 1.3;\n}\n\n.code-spans {\n text-align: left;\n line-height: 1;\n white-space: initial;\n color: #333;\n background: rgba(27, 31, 35, 0.05);\n padding: 0.1em 0.3em;\n border-radius: 0.3em;\n font-weight: bold;\n font-size: 1em;\n top: -0.1em;\n position: relative;\n}\n\n.footnotes-title {\n display: table;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 3em 0 0.6em 0;\n padding-left: 0.2em;\n}\n\n.footnotes-list {\n font-size: 10px;\n font-style: italic;\n line-height: 1.2;\n margin: 0.4rem 0;\n}\n\nfigure {\n margin: 0;\n}\n\n.image-warpper {\n text-align: center;\n margin-bottom: 0rem;\n visibility: visible;\n}\n\n.image {\n display: initial;\n max-width: 100%;\n}\n\n.comment {\n color: #6a737d;\n}\n.property {\n color: #6f42c1;\n}\n.function {\n color: #6f42c1;\n}\n.keyword {\n color: #d73a49;\n}\n.punctuation {\n color: #0550ae;\n}\n.unit {\n color: #0550ae;\n}\n.tag {\n color: #22863a;\n}\n.selector {\n color: #22863a;\n}\n.quote {\n color: #22863a;\n}\n.number {\n color: #005cc5;\n}\n.attr-name {\n color: #005cc5;\n}\n.attr-value {\n color: #005cc5;\n}\n",color:"#009874"},simple:{label:"\u7b80\u6d01\u84dd",value:"a {\n color: #0f4c81;\n text-decoration: none;\n font-size: 14px;\n}\n\nh1 {\n display: table;\n text-align: center;\n color: #3f3f3f;\n line-height: 1.75;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 16px;\n font-weight: bold;\n margin: 2em auto 1em;\n padding: 0 1em;\n border-bottom: 3px solid #0f4c81;\n margin-top: 0;\n}\n\nh2 {\n display: table;\n text-align: center;\n color: #fff;\n line-height: 1.75;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 16px;\n font-weight: bold;\n margin: 4em auto 2em;\n padding: 0 0.3em;\n border-radius: 0.3rem;\n background: #0f4c81;\n}\n\nh3 {\n text-align: left;\n color: #3f3f3f;\n line-height: 1.2;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 2em 8px 0.75em 0;\n padding-left: 8px;\n border-left: 5px solid #0f4c81;\n}\n\nul {\n padding-left: 1.2em;\n}\n\nol {\n padding-left: 1.2em;\n}\n\nli {\n margin: 0;\n line-height: 1.5em;\n font-size: 14px;\n line-height: 1.5em;\n}\n\np {\n font-size: 14px;\n line-height: 1.5em;\n padding: 0.5em 0 !important;\n margin-bottom: 0 !important;\n margin-top: 0 !important;\n}\n\nblockquote {\n text-align: left;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-style: normal;\n border-left: none;\n padding: 0.5em 1em;\n border-radius: 4px;\n background: rgba(27, 31, 35, 0.05);\n margin: 1em 0;\n}\n\npre {\n display: block;\n overflow-x: auto;\n padding: 1em;\n color: rgb(51, 51, 51);\n background: rgb(248, 248, 248);\n font-style: normal;\n font-variant-ligatures: normal;\n font-variant-caps: normal;\n font-weight: 400;\n letter-spacing: normal;\n orphans: 2;\n text-indent: 0px;\n text-transform: none;\n widows: 2;\n word-spacing: 0px;\n text-decoration-style: initial;\n text-decoration-color: initial;\n text-align: left;\n line-height: 1.5;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n border-radius: 0.3em;\n margin: 0.9rem 0;\n white-space: pre;\n}\n\ntable {\n width: 100% !important;\n border-collapse: collapse;\n line-height: 1.35;\n font-size: 14px;\n}\n\ntd {\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\nth {\n background: rgb(0 0 0 / 5%);\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\n.code-highlight {\n text-align: left;\n line-height: 1.75;\n font-family: Menlo, 'Operator Mono', Consolas, Monaco, monospace;\n font-size: 14px;\n margin: 0px;\n white-space: nowrap;\n}\n\n.code-line {\n display: block;\n line-height: 1.3;\n}\n\n.code-spans {\n text-align: left;\n line-height: 1;\n white-space: initial;\n color: #0f4c81;\n background: rgba(27, 31, 35, 0.05);\n padding: 0.1em 0.3em;\n border-radius: 0.3em;\n font-weight: bold;\n font-size: 14px;\n top: -0.1em;\n position: relative;\n}\n\n.footnotes-title {\n display: table;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 3em 0 0.6em 0;\n padding-left: 0.2em;\n}\n\n.footnotes-list {\n font-size: 10px;\n font-style: italic;\n line-height: 1.2;\n margin: 0.4rem 0;\n}\n\nfigure {\n margin: 0;\n}\n\n.image-warpper {\n text-align: center;\n margin-bottom: 0rem;\n visibility: visible;\n}\n\n.image {\n display: initial;\n max-width: 100%;\n}\n\n.comment {\n color: #6a737d;\n}\n.property {\n color: #6f42c1;\n}\n.function {\n color: #6f42c1;\n}\n.keyword {\n color: #d73a49;\n}\n.punctuation {\n color: #0550ae;\n}\n.unit {\n color: #0550ae;\n}\n.tag {\n color: #22863a;\n}\n.selector {\n color: #22863a;\n}\n.quote {\n color: #22863a;\n}\n.number {\n color: #005cc5;\n}\n.attr-name {\n color: #005cc5;\n}\n.attr-value {\n color: #005cc5;\n}\n",color:"#0f4c81"},underscore:{label:"\u4e0b\u5212\u7ebf\u9ec4",value:"a {\n color: #ffb11b;\n text-decoration: none;\n font-size: 14px;\n}\n\nh1 {\n display: table;\n text-align: center;\n color: #3f3f3f;\n line-height: 1.15;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 16px;\n font-weight: bold;\n margin: 2em auto 1em;\n padding: 0 1em 0.3em 1em;\n margin-top: 0;\n box-shadow: inset 0 -0.9rem 0 0 #ffb11b;\n}\n\nh2 {\n display: table;\n line-height: 1.35;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 16px;\n font-weight: bold;\n padding: 0 0.3em;\n margin: 2em 0 1em 0;\n box-shadow: inset 0 -0.7rem 0 0 #ffb11b;\n}\n\nh3 {\n text-align: left;\n color: #3f3f3f;\n line-height: 1.2;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 2em 8px 0.75em 0;\n padding-left: 8px;\n border-left: 5px solid #ffb11b;\n}\n\nul {\n padding-left: 1.2em;\n}\n\nol {\n padding-left: 1.2em;\n}\n\nli {\n margin: 0;\n line-height: 1.5em;\n font-size: 14px;\n}\n\np {\n font-size: 14px;\n line-height: 1.5em;\n padding: 0.5em 0 !important;\n margin-bottom: 0 !important;\n margin-top: 0 !important;\n}\n\nblockquote {\n text-align: left;\n line-height: 1.5em;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-style: normal;\n border-left: none;\n padding: 0.5em 1em;\n border-radius: 4px;\n background: rgba(27, 31, 35, 0.05);\n margin: 1em 0;\n}\n\npre {\n display: block;\n overflow-x: auto;\n padding: 1em;\n color: rgb(51, 51, 51);\n background: rgb(248, 248, 248);\n font-style: normal;\n font-variant-ligatures: normal;\n font-variant-caps: normal;\n font-weight: 400;\n letter-spacing: normal;\n orphans: 2;\n text-indent: 0px;\n text-transform: none;\n widows: 2;\n word-spacing: 0px;\n text-decoration-style: initial;\n text-decoration-color: initial;\n text-align: left;\n line-height: 1.5;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n border-radius: 0.3em;\n margin: 0.9rem 0;\n white-space: pre;\n}\n\ntable {\n width: 100% !important;\n border-collapse: collapse;\n line-height: 1.35;\n font-size: 14px;\n}\n\ntd {\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\nth {\n background: rgb(0 0 0 / 5%);\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\n.code-highlight {\n text-align: left;\n line-height: 1.75;\n font-family: Menlo, 'Operator Mono', Consolas, Monaco, monospace;\n font-size: 14px;\n margin: 0px;\n white-space: nowrap;\n}\n\n.code-line {\n display: block;\n line-height: 1.3;\n}\n\n.code-spans {\n text-align: left;\n line-height: 1;\n white-space: initial;\n color: #333;\n background: rgba(27, 31, 35, 0.05);\n padding: 0.1em 0.3em;\n border-radius: 0.3em;\n font-weight: bold;\n font-size: 14px;\n top: -0.1em;\n position: relative;\n}\n\n.footnotes-title {\n display: table;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 3em 0 0.6em 0;\n padding-left: 0.2em;\n}\n\n.footnotes-list {\n font-size: 10px;\n font-style: italic;\n line-height: 1.2;\n margin: 0.4rem 0;\n}\n\nfigure {\n margin: 0;\n}\n\n.image-warpper {\n text-align: center;\n margin-bottom: 0rem;\n visibility: visible;\n}\n\n.image {\n display: initial;\n max-width: 100%;\n}\n\n.comment {\n color: #6a737d;\n}\n.property {\n color: #6f42c1;\n}\n.function {\n color: #6f42c1;\n}\n.keyword {\n color: #d73a49;\n}\n.punctuation {\n color: #0550ae;\n}\n.unit {\n color: #0550ae;\n}\n.tag {\n color: #22863a;\n}\n.selector {\n color: #22863a;\n}\n.quote {\n color: #22863a;\n}\n.number {\n color: #005cc5;\n}\n.attr-name {\n color: #005cc5;\n}\n.attr-value {\n color: #005cc5;\n}\n",color:"#ffb11b"},base:{label:"\u7b80\u6d01",value:"a {\n color: inherit;\n text-decoration: none;\n}\n\nh1 {\n color: inherit;\n font-size: 16px;\n font-weight: bold;\n}\n\nh2 {\n color: inherit;\n margin: 2.5rem 0 1rem 0;\n font-size: 16px;\n font-weight: bold;\n}\n\nh3 {\n color: inherit;\n margin: 1em 0 1em 0;\n font-weight: bold;\n font-size: 14px;\n}\n\nh4 {\n color: inherit;\n margin: 0.6em 0 0.6em 0;\n font-weight: bold;\n font-size: 12px;\n}\n\np {\n color: initial;\n font-size: 14px;\n line-height: 1.5em;\n}\n\nul {\n padding-left: 1.2em;\n}\n\nol {\n padding-left: 1.2em;\n}\n\nli {\n margin: 0;\n font-size: 14px;\n line-height: 1.5em;\n}\n\nblockquote {\n font-style: normal;\n border-left: none;\n margin: 1em 0;\n line-height: 1.5em;\n}\n\npre {\n display: block;\n overflow-x: auto;\n padding: 1em;\n color: rgb(51, 51, 51);\n background: rgb(248, 248, 248);\n font-size: 14px;\n font-weight: 400;\n letter-spacing: normal;\n word-spacing: 0px;\n border-radius: 5px;\n margin: 0.9rem 0;\n white-space: pre;\n}\n\ntable {\n width: 100% !important;\n border-collapse: collapse;\n line-height: 1.35;\n font-size: 14px;\n}\n\ntd {\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\nth {\n background: rgb(0 0 0 / 5%);\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\n.code-highlight {\n text-align: left;\n font-family: Menlo, 'Operator Mono', Consolas, Monaco, monospace;\n font-size: 14px;\n margin: 0px;\n white-space: nowrap;\n}\n\n.code-line {\n display: block;\n line-height: 1.3;\n}\n\n.code-spans {\n text-align: left;\n line-height: 1;\n white-space: initial;\n background: rgba(27, 31, 35, 0.05);\n padding: 0.1em 0.3em;\n border-radius: 0.3em;\n font-weight: bold;\n font-size: 1em;\n top: -0.1em;\n position: relative;\n}\n\n.footnotes-title {\n display: table;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 3rem 0 0.6rem 0;\n padding-left: 0.2rem;\n}\n\n.footnotes-list {\n font-size: 10px;\n font-style: italic;\n line-height: 1.2;\n margin: 0.4rem 0;\n}\n\nfigure {\n margin: 0;\n}\n\n.image-warpper {\n text-align: center;\n margin-bottom: 0rem;\n visibility: visible;\n}\n\n.image {\n display: initial;\n max-width: 100%;\n}\n\n.comment {\n color: #6a737d;\n}\n.property {\n color: #6f42c1;\n}\n.function {\n color: #6f42c1;\n}\n.keyword {\n color: #d73a49;\n}\n.punctuation {\n color: #0550ae;\n}\n.unit {\n color: #0550ae;\n}\n.tag {\n color: #22863a;\n}\n.selector {\n color: #22863a;\n}\n.quote {\n color: #22863a;\n}\n.number {\n color: #005cc5;\n}\n.attr-name {\n color: #005cc5;\n}\n.attr-value {\n color: #005cc5;\n}\n",color:""}},Vy={underscore:[{select:"a",name:"color",value:"{{color}}"},{select:"h1",name:"box-shadow",value:"inset 0 -0.9rem 0 0 {{color}}"},{select:"h2",name:"box-shadow",value:"inset 0 -0.7rem 0 0 {{color}}"},{select:"h3",name:"border-left",value:"5px solid {{color}}"}],default:[{select:"a",name:"color",value:"{{color}}"},{select:"h1",name:"border-bottom",value:"3px solid {{color}}"},{select:"h2",name:"background",value:"{{color}}"},{select:"h3",name:"border-left",value:"5px solid {{color}}"}],simple:[{select:"a",name:"color",value:"{{color}}"},{select:"h1",name:"border-bottom",value:"3px solid {{color}}"},{select:"h2",name:"background",value:"{{color}}"},{select:"h3",name:"border-left",value:"5px solid {{color}}"},{select:".code-spans",name:"color",value:"{{color}}"}],base:[]},Jy=(Object.keys(Gy).map((function(e){return Gy[e].color})),J.createContext({preColor:"",setPreColor:function(){},isLoading:!0,setIsLoading:function(){},markdown:Hy,setMarkdown:function(){},css:Gy.underscore.value,setCss:function(){},previewTheme:"underscore",setPreviewTheme:function(){},theme:"default",setTheme:function(){}})),Ky=la.div($y||($y=V([""]))),eb=la.div(Iy||(Iy=V(["\n position: relative;\n height: 2.8rem;\n"]))),tb=la.header(Ly||(Ly=V(["\n -webkit-app-region: drag;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n background: var(--color-canvas-default);\n border-bottom: 1px solid var(--color-border-muted);\n padding: 0.5rem 0.6rem 0.5rem 0.8rem;\n position: fixed;\n width: 100%;\n z-index: 9;\n"]))),nb=la.article(Fy||(Fy=V(["\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 0.6rem;\n"]))),rb=la(fs)(By||(By=V(["\n max-width: 3.6rem;\n"]))),ib=la.h1(jy||(jy=V(["\n font-size: 1rem;\n margin: 0;\n display: flex;\n align-items: center;\n user-select: none;\n sup {\n color: var(--color-fg-subtle);\n margin-left: 0.4rem;\n background-color: var(--color-border-muted);\n border-radius: 0.1rem;\n padding: 0 0.2rem 0 0.1rem;\n font-weight: normal;\n font-size: 0.7rem;\n letter-spacing: -0.1rem;\n }\n"]))),ob=la.section(zy||(zy=V(["\n display: flex;\n align-items: center;\n gap: 0.5rem;\n dark-mode {\n font-size: 1.05rem;\n display: block;\n line-height: 12px;\n margin-left: 0.6rem;\n }\n a svg {\n display: block;\n }\n a {\n text-decoration: none;\n color: var(--color-theme-text);\n padding: 0.1rem 0.3rem;\n transition: all 0.3s;\n font-size: 0.9rem;\n border-radius: 0.2rem;\n &.active {\n background-color: var(--color-accent-fg);\n box-shadow: inset 0 -0.3rem 0 var(--color-accent-fg);\n color: #fff;\n }\n &:hover:not(.active):not(:last-child) {\n background-color: var(--color-accent-fg);\n color: #fff;\n border-radius: 0.2rem;\n }\n }\n"])));function ab(){var e=(0,J.useContext)(Jy).isLoading;return(0,qt.jsxs)(Ky,{className:"wmde-markdown-color",children:[(0,qt.jsx)(eb,{children:(0,qt.jsxs)(tb,{className:"header",children:[(0,qt.jsxs)(nb,{className:"logo",children:[(0,qt.jsx)(rb,{width:28,height:28}),(0,qt.jsxs)(ib,{children:["\u5fae\u4fe1\u516c\u4f17\u53f7\u6392\u7248\u7f16\u8f91\u5668",(0,qt.jsxs)("sup",{children:[" v","2.3.3"," "]})]}),e&&(0,qt.jsx)(Ds,{})]}),(0,qt.jsxs)(ob,{children:[(0,qt.jsx)(zt,{to:"/",children:"\u9996\u9875"}),(0,qt.jsx)(zt,{to:"/editor/theme",children:"\u7f16\u8f91\u4e3b\u9898"}),(0,qt.jsx)(zt,{to:"/doc",children:"\u6587\u6863"}),(0,qt.jsx)("dark-mode",{permanent:!0,dark:"Dark",light:"Light"}),(0,qt.jsx)("a",{href:"https://github.com/jaywcjlove/wxmp",target:"__blank",children:(0,qt.jsx)(Cs,{width:23,height:23})})]})]})}),(0,qt.jsx)(Ct,{})]})}var sb=1,lb=2,ub=3,cb=4,hb=5,fb=6,db=7,pb=8,mb=9,gb=10,vb=11,Ob=12,yb=13,bb=14,kb=15,Sb=16,xb=17,wb=18,Tb=19,Cb=20,Eb=21,Ab=22,Pb=23,_b=24,Db=25,Zb=0;function Nb(e){return e>=48&&e<=57}function Qb(e){return Nb(e)||e>=65&&e<=70||e>=97&&e<=102}function Rb(e){return e>=65&&e<=90}function Mb(e){return function(e){return Rb(e)||function(e){return e>=97&&e<=122}(e)}(e)||function(e){return e>=128}(e)||95===e}function $b(e){return Mb(e)||Nb(e)||45===e}function Ib(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}function Lb(e){return 10===e||13===e||12===e}function Fb(e){return Lb(e)||32===e||9===e}function Bb(e,t){return 92===e&&(!Lb(t)&&t!==Zb)}function jb(e,t,n){return 45===e?Mb(t)||45===t||Bb(t,n):!!Mb(e)||92===e&&Bb(e,t)}function zb(e,t,n){return 43===e||45===e?Nb(t)?2:46===t&&Nb(n)?3:0:46===e?Nb(t)?2:0:Nb(e)?1:0}function Ub(e){return 65279===e||65534===e?1:0}for(var Yb=new Array(128),Xb=130,Hb=131,Wb=132,qb=133,Gb=0;Gbe.length)return!1;for(var i=t;i=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)}var uk=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token"],ck=16384;function hk(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return null===e||e.length0?Ub(t.charCodeAt(0)):0,i=hk(e.lines,n),o=hk(e.columns,n),a=e.startLine,s=e.startColumn,l=r;l1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;this.source=e,this.startOffset=t,this.startLine=n,this.startColumn=r,this.computed=!1}},{key:"getLocation",value:function(e,t){return this.computed||fk(this),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}},{key:"getLocationRange",value:function(e,t,n){return this.computed||fk(this),{source:n,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]}}}}]),e}(),pk=16777215,mk=24,gk=new Map([[lb,Ab],[Eb,Ab],[Tb,Cb],[Pb,_b]]),vk=function(){function e(t,n){(0,re.Z)(this,e),this.setSource(t,n)}return(0,ie.Z)(e,[{key:"reset",value:function(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}},{key:"setSource",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=(e=String(e||"")).length,r=hk(this.offsetAndType,e.length+1),i=hk(this.balance,e.length+1),o=0,a=0,s=0,l=-1;for(this.offsetAndType=null,this.balance=null,t(e,(function(e,t,u){switch(e){default:i[o]=n;break;case a:var c=s&pk;for(s=i[c],a=s>>mk,i[o]=c,i[c++]=o;c>mk:0}},{key:"lookupOffset",value:function(e){return(e+=this.tokenIndex)0?e>mk,this.tokenEnd=t&pk):(this.tokenIndex=this.tokenCount,this.next())}},{key:"next",value:function(){var e=this.tokenIndex+1;e>mk,this.tokenEnd=e&pk):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=0,this.tokenStart=this.tokenEnd=this.source.length)}},{key:"skipSC",value:function(){for(;this.tokenType===yb||this.tokenType===Db;)this.next()}},{key:"skipUntilBalanced",value:function(e,t){var n,r,i=e;e:for(;i0?this.offsetAndType[i-1]&pk:this.firstCharOffset,t(this.source.charCodeAt(r))){case 1:break e;case 2:i++;break e;default:this.balance[n]===i&&(i=n)}this.skip(i-this.tokenIndex)}},{key:"forEachToken",value:function(e){for(var t=0,n=this.firstCharOffset;t>mk,r,o,t)}}},{key:"dump",value:function(){var e=this,t=new Array(this.tokenCount);return this.forEachToken((function(n,r,i,o){t[o]={idx:o,type:uk[n],chunk:e.source.substring(r,i),balance:e.balance[o]}})),t}}]),e}();function Ok(e,t){function n(t){return t=e.length?void(u1&&void 0!==arguments[1]?arguments[1]:this,n=this.allocateCursor(null,this.head);null!==n.next;){var r=n.next;n.next=r.next,e.call(t,r.data,r,this)}this.releaseCursor()}},{key:"forEachRight",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=this.allocateCursor(this.tail,null);null!==n.prev;){var r=n.prev;n.prev=r.prev,e.call(t,r.data,r,this)}this.releaseCursor()}},{key:"reduce",value:function(e,t){for(var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,i=this.allocateCursor(null,this.head),o=t;null!==i.next;)n=i.next,i.next=n.next,o=e.call(r,o,n.data,n,this);return this.releaseCursor(),o}},{key:"reduceRight",value:function(e,t){for(var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,i=this.allocateCursor(this.tail,null),o=t;null!==i.prev;)n=i.prev,i.prev=n.prev,o=e.call(r,o,n.data,n,this);return this.releaseCursor(),o}},{key:"some",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=this.head;null!==n;n=n.next)if(e.call(t,n.data,n,this))return!0;return!1}},{key:"map",value:function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,r=new t,i=this.head;null!==i;i=i.next)r.appendData(e.call(n,i.data,i,this));return r}},{key:"filter",value:function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,r=new t,i=this.head;null!==i;i=i.next)e.call(n,i.data,i,this)&&r.appendData(i.data);return r}},{key:"nextUntil",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;if(null!==e){for(var r=this.allocateCursor(null,e);null!==r.next;){var i=r.next;if(r.next=i.next,t.call(n,i.data,i,this))break}this.releaseCursor()}}},{key:"prevUntil",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;if(null!==e){for(var r=this.allocateCursor(e,null);null!==r.prev;){var i=r.prev;if(r.prev=i.prev,t.call(n,i.data,i,this))break}this.releaseCursor()}}},{key:"clear",value:function(){this.head=null,this.tail=null}},{key:"copy",value:function(){var e,n=new t,r=(0,Oe.Z)(this);try{for(r.s();!(e=r.n()).done;){var i=e.value;n.appendData(i)}}catch(o){r.e(o)}finally{r.f()}return n}},{key:"prepend",value:function(e){return this.updateCursors(null,e,this.head,e),null!==this.head?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this}},{key:"prependData",value:function(e){return this.prepend(t.createItem(e))}},{key:"append",value:function(e){return this.insert(e)}},{key:"appendData",value:function(e){return this.insert(t.createItem(e))}},{key:"insert",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null!==t)if(this.updateCursors(t.prev,e,t,e),null===t.prev){if(this.head!==t)throw new Error("before doesn't belong to list");this.head=e,t.prev=e,e.next=t,this.updateCursors(null,e)}else t.prev.next=e,e.prev=t.prev,t.prev=e,e.next=t;else this.updateCursors(this.tail,e,null,e),null!==this.tail?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e;return this}},{key:"insertData",value:function(e,n){return this.insert(t.createItem(e),n)}},{key:"remove",value:function(e){if(this.updateCursors(e,e.prev,e,e.next),null!==e.prev)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(null!==e.next)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e}},{key:"push",value:function(e){this.insert(t.createItem(e))}},{key:"pop",value:function(){return null!==this.tail?this.remove(this.tail):null}},{key:"unshift",value:function(e){this.prepend(t.createItem(e))}},{key:"shift",value:function(){return null!==this.head?this.remove(this.head):null}},{key:"prependList",value:function(e){return this.insertList(e,this.head)}},{key:"appendList",value:function(e){return this.insertList(e)}},{key:"insertList",value:function(e,t){return null===e.head||(void 0!==t&&null!==t?(this.updateCursors(t.prev,e.tail,t,e.head),null!==t.prev?(t.prev.next=e.head,e.head.prev=t.prev):this.head=e.head,t.prev=e.tail,e.tail.next=t):(this.updateCursors(this.tail,e.tail,null,e.head),null!==this.tail?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail),e.head=null,e.tail=null),this}},{key:"replace",value:function(e,t){"head"in t?this.insertList(t,e):this.insert(t,e),this.remove(e)}}],[{key:"createItem",value:function(e){return{prev:null,next:null,data:e}}}]),t}(Symbol.iterator);function kk(e,t){var n=Object.create(SyntaxError.prototype),r=new Error;return Object.assign(n,{name:e,message:t,get stack(){return(r.stack||"").replace(/^(.+\n){1,3}/,"".concat(e,": ").concat(t,"\n"))}})}var Sk=100,xk=60,wk=" ";function Tk(e,t){var n=e.source,r=e.line,i=e.column;function o(e,t){return a.slice(e,t).map((function(t,n){return String(e+n+1).padStart(u)+" |"+t})).join("\n")}var a=n.split(/\r\n?|\n|\f/),s=Math.max(1,r-t)-1,l=Math.min(r+t,a.length+1),u=Math.max(4,String(l).length)+1,c=0;(i+=(wk.length-1)*(a[r-1].substr(0,i-1).match(/\t/g)||[]).length)>Sk&&(c=i-xk+3,i=xk-2);for(var h=s;h<=l;h++)h>=0&&h0&&a[h].length>c?"\u2026":"")+a[h].substr(c,Sk-2)+(a[h].length>c+Sk-1?"\u2026":""));return[o(s,r),new Array(i+u+2).join("-")+"^",o(r,l)].filter(Boolean).join("\n")}function Ck(e,t,n,r,i){return Object.assign(kk("SyntaxError",e),{source:t,offset:n,line:r,column:i,sourceFragment:function(e){return Tk({source:t,line:r,column:i},isNaN(e)?0:e)},get formattedMessage(){return"Parse error: ".concat(e,"\n")+Tk({source:t,line:r,column:i},2)}})}function Ek(e){for(var t=this.createList(),n=!1,r={recognizer:e};!this.eof;){switch(this.tokenType){case Db:this.next();continue;case yb:n=!0,this.next();continue}var i=e.getNode.call(this,r);if(void 0===i)break;n&&(e.onWhiteSpace&&e.onWhiteSpace.call(this,i,t,r),n=!1),t.push(i)}return n&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,r),t}var Ak=function(){},Pk=33,_k=35,Dk=59,Zk=123,Nk=0;function Qk(e){return function(){return this[e]()}}function Rk(e){var t=Object.create(null);for(var n in e){var r=e[n],i=r.parse||r;i&&(t[n]=i)}return t}function Mk(e){var t="",n="",r=!1,i=Ak,o=!1,a=new dk,s=Object.assign(new vk,function(e){var t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:Rk(e.atrule),pseudo:Rk(e.pseudo),node:Rk(e.node)};for(var n in e.parseContext)switch(typeof e.parseContext[n]){case"function":t.context[n]=e.parseContext[n];break;case"string":t.context[n]=Qk(e.parseContext[n])}return(0,rn.Z)((0,rn.Z)({config:t},t),t.node)}(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:Ek,consumeUntilBalanceEnd:function(){return 0},consumeUntilLeftCurlyBracket:function(e){return e===Zk?1:0},consumeUntilLeftCurlyBracketOrSemicolon:function(e){return e===Zk||e===Dk?1:0},consumeUntilExclamationMarkOrSemicolon:function(e){return e===Pk||e===Dk?1:0},consumeUntilSemicolonIncluded:function(e){return e===Dk?2:0},createList:function(){return new bk},createSingleNodeList:function(e){return(new bk).appendData(e)},getFirstListNode:function(e){return e&&e.first},getLastListNode:function(e){return e&&e.last},parseWithFallback:function(e,t){var n=this.tokenIndex;try{return e.call(this)}catch(a){if(o)throw a;var r=t.call(this,n);return o=!0,i(a,r),o=!1,r}},lookupNonWSType:function(e){var t;do{if((t=this.lookupType(e++))!==yb)return t}while(t!==Nk);return Nk},charCodeAt:function(e){return e>=0&&e=0&&Fb(e.charCodeAt(t));t--);return t+1}(t,t.length-1)):a.getLocation(this.tokenStart);throw new Ck(e||"Unexpected input",t,r.offset,r.line,r.column)}});return Object.assign((function(e,l){t=e,l=l||{},s.setSource(t,Ok),a.setSource(t,l.offset,l.line,l.column),n=l.filename||"",r=Boolean(l.positions),i="function"===typeof l.onParseError?l.onParseError:Ak,o=!1,s.parseAtrulePrelude=!("parseAtrulePrelude"in l)||Boolean(l.parseAtrulePrelude),s.parseRulePrelude=!("parseRulePrelude"in l)||Boolean(l.parseRulePrelude),s.parseValue=!("parseValue"in l)||Boolean(l.parseValue),s.parseCustomProperty="parseCustomProperty"in l&&Boolean(l.parseCustomProperty);var u=l,c=u.context,h=void 0===c?"default":c,f=u.onComment;if(h in s.context===!1)throw new Error("Unknown context `"+h+"`");"function"===typeof f&&s.forEachToken((function(e,n,r){if(e===Db){var i=s.getLocation(n,r),o=tk(t,r-2,r,"*/")?t.slice(n+2,r-2):t.slice(n+2,r);f(o,i)}}));var d=s.context[h].call(s,l);return s.eof||s.error(),d}),{SyntaxError:Ck,config:s.config})}var $k=n(8676),Ik=new Set(["Atrule","Selector","Declaration"]);var Lk=function(e,t){if(e===mb&&(e=t),"string"===typeof e){var n=e.charCodeAt(0);return n>127?32768:n<<8}return e},Fk=[[sb,sb],[sb,lb],[sb,db],[sb,pb],[sb,"-"],[sb,gb],[sb,vb],[sb,Ob],[sb,kb],[sb,Eb],[ub,sb],[ub,lb],[ub,db],[ub,pb],[ub,"-"],[ub,gb],[ub,vb],[ub,Ob],[ub,kb],[cb,sb],[cb,lb],[cb,db],[cb,pb],[cb,"-"],[cb,gb],[cb,vb],[cb,Ob],[cb,kb],[Ob,sb],[Ob,lb],[Ob,db],[Ob,pb],[Ob,"-"],[Ob,gb],[Ob,vb],[Ob,Ob],[Ob,kb],["#",sb],["#",lb],["#",db],["#",pb],["#","-"],["#",gb],["#",vb],["#",Ob],["#",kb],["-",sb],["-",lb],["-",db],["-",pb],["-","-"],["-",gb],["-",vb],["-",Ob],["-",kb],[gb,sb],[gb,lb],[gb,db],[gb,pb],[gb,gb],[gb,vb],[gb,Ob],[gb,"%"],[gb,kb],["@",sb],["@",lb],["@",db],["@",pb],["@","-"],["@",kb],[".",gb],[".",vb],[".",Ob],["+",gb],["+",vb],["+",Ob],["/","*"]],Bk=Fk.concat([[sb,cb],[Ob,cb],[cb,cb],[ub,Eb],[ub,hb],[ub,Sb],[vb,vb],[vb,Ob],[vb,lb],[vb,"-"],[Ab,sb],[Ab,lb],[Ab,vb],[Ab,Ob],[Ab,cb],[Ab,"-"]]);function jk(e){var t=new Set(e.map((function(e){var t=(0,te.Z)(e,2),n=t[0],r=t[1];return Lk(n)<<16|Lk(r)})));return function(e,n,r){var i=Lk(n,r),o=r.charCodeAt(0);return(45===o&&n!==sb&&n!==lb&&n!==kb||43===o?t.has(e<<16|o<<8):t.has(e<<16|i))&&this.emit(" ",yb,!0),i}}var zk=jk(Fk),Uk=jk(Bk),Yk=92;function Xk(e,t){var n=this;if("function"!==typeof t)e.children.forEach(this.node,this);else{var r=null;e.children.forEach((function(e){null!==r&&t.call(n,r),n.node(e),r=e}))}}function Hk(e){var t=this;Ok(e,(function(n,r,i){t.token(n,e.slice(r,i))}))}function Wk(e){var t=new Map;for(var n in e.node){var r=e.node[n];"function"===typeof(r.generate||r)&&t.set(n,r.generate||r)}return function(e,n){var r="",o=0,a={node:function(e){if(!t.has(e.type))throw new Error("Unknown node type: "+e.type);t.get(e.type).call(s,e)},tokenBefore:Uk,token:function(e,t){o=this.tokenBefore(o,e,t),this.emit(t,e,!1),e===mb&&t.charCodeAt(0)===Yk&&this.emit("\n",yb,!0)},emit:function(e){r+=e},result:function(){return r}};n&&("function"===typeof n.decorator&&(a=n.decorator(a)),n.sourceMap&&(a=function(e){var t=new $k.h,n={line:1,column:0},r={line:0,column:0},i={line:1,column:0},o={generated:i},a=1,s=0,l=!1,u=e.node;e.node=function(e){if(e.loc&&e.loc.start&&Ik.has(e.type)){var c=e.loc.start.line,h=e.loc.start.column-1;r.line===c&&r.column===h||(r.line=c,r.column=h,n.line=a,n.column=s,l&&(l=!1,n.line===i.line&&n.column===i.column||t.addMapping(o)),l=!0,t.addMapping({source:e.loc.source,original:r,generated:n}))}u.call(this,e),l&&Ik.has(e.type)&&(i.line=a,i.column=s)};var c=e.emit;e.emit=function(e,t,n){for(var r=0;r";break;case"Property":i="<'"+e.name+"'>";break;case"Keyword":i=e.name;break;case"AtKeyword":i="@"+e.name;break;case"Function":i=e.name+"(";break;case"String":case"Token":i=e.value;break;case"Comma":i=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(i,e)}function oS(e,t){var n=rS,r=!1,i=!1;return"function"===typeof t?n=t:t&&(r=Boolean(t.forceBraces),i=Boolean(t.compact),"function"===typeof t.decorate&&(n=t.decorate)),iS(e,n,r,i)}var aS={offset:0,line:1,column:1};function sS(e,t){var n=e&&e.loc&&e.loc[t];return n?"line"in n?lS(n):n:null}function lS(e,t){var n={offset:e.offset,line:e.line,column:e.column};if(t){var r=t.split(/\n|\r\n?|\f/);n.offset+=t.length,n.line+=r.length-1,n.column=1===r.length?n.column+t.length:r.pop().length+1}return n}var uS=function(e,t){var n=kk("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},cS=function(e,t,n,r){var i=kk("SyntaxMatchError",e),o=function(e,t){for(var n,r,i=e.tokens,o=e.longestMatch,a=o1?(n=sS(s||t,"end")||lS(aS,h),r=lS(n)):(n=sS(s,"start")||lS(sS(t,"start")||aS,h.slice(0,l)),r=sS(s,"end")||lS(n,h.substr(l,u))),{css:h,mismatchOffset:l,mismatchLength:u,start:n,end:r}}(r,n),a=o.css,s=o.mismatchOffset,l=o.mismatchLength,u=o.start,c=o.end;return i.rawMessage=e,i.syntax=t?oS(t):"",i.css=a,i.mismatchOffset=s,i.mismatchLength=l,i.message=e+"\n syntax: "+i.syntax+"\n value: "+(a||"")+"\n --------"+new Array(i.mismatchOffset+1).join("-")+"^",Object.assign(i,u),i.loc={source:n&&n.loc&&n.loc.source||"",start:u,end:c},i},hS=new Map,fS=new Map,dS=45,pS=function(e){if(hS.has(e))return hS.get(e);var t=e.toLowerCase(),n=hS.get(t);if(void 0===n){var r=gS(t,0),i=r?"":vS(t,0);n=Object.freeze({basename:t.substr(i.length),name:t,prefix:i,vendor:i,custom:r})}return hS.set(e,n),n},mS=function(e){if(fS.has(e))return fS.get(e);var t=e,n=e[0];"/"===n?n="/"===e[1]?"//":"/":"_"!==n&&"*"!==n&&"$"!==n&&"#"!==n&&"+"!==n&&"&"!==n&&(n="");var r=gS(t,n.length);if(!r&&(t=t.toLowerCase(),fS.has(t))){var i=fS.get(t);return fS.set(e,i),i}var o=r?"":vS(t,n.length),a=t.substr(0,n.length+o.length),s=Object.freeze({basename:t.substr(a.length),name:t.substr(n.length),hack:n,vendor:o,prefix:a,custom:r});return fS.set(e,s),s};function gS(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===dS&&e.charCodeAt(t+1)===dS}function vS(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===dS&&e.charCodeAt(t+1)!==dS){var n=e.indexOf("-",t+2);if(-1!==n)return e.substring(t,n+1)}return""}var OS=["initial","inherit","unset","revert","revert-layer"],yS=43,bS=45,kS=!0;function SS(e,t){return null!==e&&e.type===mb&&e.value.charCodeAt(0)===t}function xS(e,t,n){for(;null!==e&&(e.type===yb||e.type===Db);)e=n(++t);return t}function wS(e,t,n,r){if(!e)return 0;var i=e.value.charCodeAt(t);if(i===yS||i===bS){if(n)return 0;t++}for(;t6)return 0}return r}function _S(e,t,n){if(!e)return 0;for(;AS(n(t),ES);){if(++e>6)return 0;t++}return t}var DS=["calc(","-moz-calc(","-webkit-calc("],ZS=new Map([[lb,Ab],[Eb,Ab],[Tb,Cb],[Pb,_b]]);function NS(e,t){return te.max&&"string"!==typeof e.max)return!0}return!1}function IS(e){return function(t,n,r){return null===t?0:t.type===lb&&RS(t.value,DS)?function(e,t){var n=0,r=[],i=0;e:do{switch(e.type){case _b:case Ab:case Cb:if(e.type!==n)break e;if(n=r.pop(),0===r.length){i++;break e}break;case lb:case Eb:case Tb:case Pb:r.push(n),n=ZS.get(e.type)}i++}while(e=t(i));return i}(t,n):e(t,n,r)}}function LS(e){return function(t){return null===t||t.type!==e?0:1}}function FS(e){return e&&(e=new Set(e)),function(t,n,r){if(null===t||t.type!==Ob)return 0;var i=ak(t.value,0);if(null!==e){var o=t.value.indexOf("\\",i),a=-1!==o&&MS(t.value,o)?t.value.substring(i,o):t.value.substr(i);if(!1===e.has(a.toLowerCase()))return 0}return $S(r,t.value,i)?0:1}}function BS(e){return"function"!==typeof e&&(e=function(){return 0}),function(t,n,r){return null!==t&&t.type===gb&&0===Number(t.value)?1:e(t,n,r)}}var jS={"ident-token":LS(sb),"function-token":LS(lb),"at-keyword-token":LS(ub),"hash-token":LS(cb),"string-token":LS(hb),"bad-string-token":LS(fb),"url-token":LS(db),"bad-url-token":LS(pb),"delim-token":LS(mb),"number-token":LS(gb),"percentage-token":LS(vb),"dimension-token":LS(Ob),"whitespace-token":LS(yb),"CDO-token":LS(bb),"CDC-token":LS(kb),"colon-token":LS(Sb),"semicolon-token":LS(xb),"comma-token":LS(wb),"[-token":LS(Tb),"]-token":LS(Cb),"(-token":LS(Eb),")-token":LS(Ab),"{-token":LS(Pb),"}-token":LS(_b)},zS={string:LS(hb),ident:LS(sb),percentage:IS((function(e,t,n){return null===e||e.type!==vb||$S(n,e.value,e.value.length-1)?0:1})),zero:BS(),number:IS((function(e,t,n){if(null===e)return 0;var r=ak(e.value,0);return r===e.value.length||MS(e.value,r)?$S(n,e.value,r)?0:1:0})),integer:IS((function(e,t,n){if(null===e||e.type!==gb)return 0;for(var r=43===NS(e.value,0)||45===NS(e.value,0)?1:0;r=128||0===Cx[n])break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function _x(e){for(var t=e.pos;t57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function Dx(e){var t=e.str.indexOf("'",e.pos+1);return-1===t&&(e.pos=e.str.length,e.error("Expect an apostrophe")),e.substringToPos(t+1)}function Zx(e){var t,n=null;return e.eat(Sx),t=_x(e),e.charCode()===px?(e.pos++,e.charCode()!==wx&&(n=_x(e))):n=t,e.eat(wx),{min:Number(t),max:n?Number(n):0}}function Nx(e,t){var n=function(e){var t=null,n=!1;switch(e.charCode()){case fx:e.pos++,t={min:0,max:0};break;case dx:e.pos++,t={min:1,max:0};break;case Ox:e.pos++,t={min:0,max:1};break;case sx:e.pos++,n=!0,e.charCode()===Sx?t=Zx(e):e.charCode()===Ox?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case Sx:t=Zx(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}(e);return null!==n?(n.term=t,e.charCode()===sx&&e.charCodeAt(e.pos-1)===dx?Nx(e,n):n):t}function Qx(e){var t=e.peek();return""===t?null:{type:"Token",value:t}}function Rx(e){var t,n=null;return e.eat(gx),t=Px(e),e.charCode()===cx&&e.nextCharCode()===hx&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===bx&&(Ax(e),n=function(e){var t=null,n=null,r=1;return e.eat(bx),e.charCode()===mx&&(e.peek(),r=-1),-1==r&&e.charCode()===Tx?e.peek():(t=r*Number(_x(e)),0!==Cx[e.charCode()]&&(t+=Px(e))),Ax(e),e.eat(px),Ax(e),e.charCode()===Tx?e.peek():(r=1,e.charCode()===mx&&(e.peek(),r=-1),n=r*Number(_x(e)),0!==Cx[e.charCode()]&&(n+=Px(e))),e.eat(kx),{type:"Range",min:t,max:n}}(e)),e.eat(vx),Nx(e,{type:"Type",name:t,opts:n})}function Mx(e,t){function n(e,t){return{type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:!1}}var r;for(t=Object.keys(t).sort((function(e,t){return Ex[e]-Ex[t]}));t.length>0;){r=t.shift();for(var i=0,o=0;i1&&(e.splice(o,i-o,n(e.slice(o,i),r)),i=o+1),o=-1))}-1!==o&&t.length&&e.splice(o,i-o,n(e.slice(o,i),r))}return r}function $x(e){for(var t,n=[],r={},i=null,o=e.pos;t=Ix(e);)"Spaces"!==t.type&&("Combinator"===t.type?(null!==i&&"Combinator"!==i.type||(e.pos=o,e.error("Unexpected combinator")),r[t.value]=!0):null!==i&&"Combinator"!==i.type&&(r[" "]=!0,n.push({type:"Combinator",value:" "})),n.push(t),i=t,o=e.pos);return null!==i&&"Combinator"===i.type&&(e.pos-=o,e.error("Unexpected combinator")),{type:"Group",terms:n,combinator:Mx(n,r)||" ",disallowEmpty:!1,explicit:!1}}function Ix(e){var t=e.charCode();if(t<128&&1===Cx[t])return function(e){var t=Px(e);return e.charCode()===cx?(e.pos++,{type:"Function",name:t}):Nx(e,{type:"Keyword",name:t})}(e);switch(t){case kx:break;case bx:return Nx(e,function(e){var t;return e.eat(bx),t=$x(e),e.eat(kx),t.explicit=!0,e.charCode()===ax&&(e.pos++,t.disallowEmpty=!0),t}(e));case gx:return e.nextCharCode()===ux?function(e){var t;return e.eat(gx),e.eat(ux),t=Px(e),e.eat(ux),e.eat(vx),Nx(e,{type:"Property",name:t})}(e):Rx(e);case xx:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===xx?2:1))};case lx:return e.pos++,e.eat(lx),{type:"Combinator",value:"&&"};case px:return e.pos++,{type:"Comma"};case ux:return Nx(e,{type:"String",value:Dx(e)});case ox:case tx:case nx:case ix:case rx:return{type:"Spaces",value:Ax(e)};case yx:return(t=e.nextCharCode())<128&&1===Cx[t]?(e.pos++,{type:"AtKeyword",name:Px(e)}):Qx(e);case fx:case dx:case Ox:case sx:case ax:break;case Sx:if((t=e.nextCharCode())<48||t>57)return Qx(e);break;default:return Qx(e)}}function Lx(e){var t=new ex(e),n=$x(t);return t.pos!==e.length&&t.error("Unexpected input"),1===n.terms.length&&"Group"===n.terms[0].type?n.terms[0]:n}var Fx=function(){};function Bx(e){return"function"===typeof e?e:Fx}var jx={decorator:function(e){var t=[],n=null;return(0,rn.Z)((0,rn.Z)({},e),{},{node:function(t){var r=n;n=t,e.node.call(this,t),n=r},emit:function(e,r,i){t.push({type:r,value:e,node:i?null:n})},result:function(){return t}})}};function zx(e,t){return"string"===typeof e?function(e){var t=[];return Ok(e,(function(n,r,i){return t.push({type:n,value:e.slice(r,i),node:null})})),t}(e):t.generate(e,jx)}var Ux={type:"Match"},Yx={type:"Mismatch"},Xx={type:"DisallowEmpty"},Hx=40,Wx=41;function qx(e,t,n){return t===Ux&&n===Yx||e===Ux&&t===Ux&&n===Ux?e:("If"===e.type&&e.else===Yx&&t===Ux&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function Gx(e){return e.length>2&&e.charCodeAt(e.length-2)===Hx&&e.charCodeAt(e.length-1)===Wx}function Vx(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&Gx(e.name)}function Jx(e,t,n){switch(e){case" ":for(var r=Ux,i=t.length-1;i>=0;i--){r=qx(t[i],r,Yx)}return r;case"|":for(var o=Yx,a=null,s=t.length-1;s>=0;s--){var l=t[s];if(Vx(l)&&(null===a&&s>0&&Vx(t[s-1])&&(o=qx({type:"Enum",map:a=Object.create(null)},Ux,o)),null!==a)){var u=(Gx(l.name)?l.name.slice(0,-1):l.name).toLowerCase();if(u in a===!1){a[u]=l;continue}}a=null,o=qx(l,Ux,o)}return o;case"&&":if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};for(var c=Yx,h=function(){var n,r=t[f];n=t.length>1?Jx(e,t.filter((function(e){return e!==r})),!1):Ux,c=qx(r,n,c)},f=t.length-1;f>=0;f--)h();return c;case"||":if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};for(var d=n?Ux:Yx,p=function(){var n,r=t[m];n=t.length>1?Jx(e,t.filter((function(e){return e!==r})),!0):Ux,d=qx(r,n,d)},m=t.length-1;m>=0;m--)p();return d}}function Kx(e){if("function"===typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":var t=Jx(e.combinator,e.terms.map(Kx),!1);return e.disallowEmpty&&(t=qx(t,Xx,Yx)),t;case"Multiplier":return function(e){var t=Ux,n=Kx(e.term);if(0===e.max)n=qx(n,Xx,Yx),(t=qx(n,null,Yx)).then=qx(Ux,Ux,t),e.comma&&(t.then.else=qx({type:"Comma",syntax:e},t,Yx));else for(var r=e.min||1;r<=e.max;r++)e.comma&&t!==Ux&&(t=qx({type:"Comma",syntax:e},t,Yx)),t=qx(n,qx(Ux,Ux,t),Yx);if(0===e.min)t=qx(Ux,Ux,t);else for(var i=0;i=65&&i<=90&&(i|=32),i!==r)return!1}return!0}function fw(e){return null===e||(e.type===wb||e.type===lb||e.type===Eb||e.type===Tb||e.type===Pb||function(e){return e.type===mb&&"?"!==e.value}(e))}function dw(e){return null===e||(e.type===Ab||e.type===Cb||e.type===_b||e.type===mb&&"/"===e.value)}function pw(e,t,n){function r(){do{v++,g=vO&&(O=v)}function u(){y=y.type===iw?y.prev:{type:ow,syntax:c.syntax,token:y.token,prev:y},c=c.prev}var c=null,h=null,f=null,d=null,p=0,m=null,g=null,v=-1,O=0,y={type:nw,syntax:null,token:null,prev:null};for(r();null===m&&++pf.tokenIndex)&&(f=d,d=!1);else if(null===f){m=sw;break}t=f.nextState,h=f.thenStack,c=f.syntaxStack,y=f.matchStack,v=f.tokenIndex,g=vv){for(;v":"<'"+t.name+"'>"));if(!1!==d&&null!==g&&"Type"===t.type)if("custom-ident"===t.name&&g.type===sb||"length"===t.name&&"0"===g.value){null===d&&(d=o(t,f)),t=Yx;break}c={syntax:t.syntax,opts:t.syntax.opts||null!==c&&c.opts||null,prev:c},y={type:iw,syntax:t.syntax,token:y.token,prev:y},t=C.match;break;case"Keyword":var E=t.name;if(null!==g){var A=g.value;if(-1!==A.indexOf("\\")&&(A=A.replace(/\\[09].*$/,"")),hw(A,E)){l(),t=Ux;break}}t=Yx;break;case"AtKeyword":case"Function":if(null!==g&&hw(g.value,t.name)){l(),t=Ux;break}t=Yx;break;case"Token":if(null!==g&&g.value===t.value){l(),t=Ux;break}t=Yx;break;case"Comma":null!==g&&g.type===wb?fw(y.token)?t=Yx:(l(),t=dw(g)?Yx:Ux):t=fw(y.token)||dw(g)?Ux:Yx;break;case"String":for(var P="",_=v;_=0}function Cw(e){return Boolean(e)&&Tw(e.offset)&&Tw(e.line)&&Tw(e.column)}function Ew(e,t){return function(n,r){if(!n||n.constructor!==Object)return r(n,"Type of node should be an Object");for(var i in n){var o=!0;if(!1!==ww.call(n,i)){if("type"===i)n.type!==e&&r(n,"Wrong node type `"+n.type+"`, expected `"+e+"`");else if("loc"===i){if(null===n.loc)continue;if(n.loc&&n.loc.constructor===Object)if("string"!==typeof n.loc.source)i+=".source";else if(Cw(n.loc.start)){if(Cw(n.loc.end))continue;i+=".end"}else i+=".start";o=!1}else if(t.hasOwnProperty(i)){o=!1;for(var a=0;!o&&a");else{if(!Array.isArray(u))throw new Error("Wrong value `"+u+"` in `"+e+"."+o+"` structure definition");a.push("List")}}i[o]=a.join(" | ")}return{docs:i,check:Ew(e,r)}}var Pw=ew(OS.join(" | "));function _w(e,t,n){var r={};for(var i in e)e[i].syntax&&(r[i]=n?e[i].syntax:oS(e[i].syntax,{compact:t}));return r}function Dw(e,t,n){for(var r={},i=0,o=Object.entries(e);i3&&void 0!==arguments[3]?arguments[3]:null,serializable:"string"===typeof e||e&&"string"===typeof e.type,syntax:null,match:null};return"function"===typeof e?i.match=ew(e,r):("string"===typeof e?Object.defineProperty(i,"syntax",{get:function(){return Object.defineProperty(i,"syntax",{value:Lx(e)}),i.syntax}}):i.syntax=e,Object.defineProperty(i,"match",{get:function(){return Object.defineProperty(i,"match",{value:ew(i.syntax,r)}),i.match}})),i}},{key:"addAtrule_",value:function(e,t){var n=this;t&&(this.atrules[e]={type:"Atrule",name:e,prelude:t.prelude?this.createDescriptor(t.prelude,"AtrulePrelude",e):null,descriptors:t.descriptors?Object.keys(t.descriptors).reduce((function(r,i){return r[i]=n.createDescriptor(t.descriptors[i],"AtruleDescriptor",i,e),r}),Object.create(null)):null})}},{key:"addProperty_",value:function(e,t){t&&(this.properties[e]=this.createDescriptor(t,"Property",e))}},{key:"addType_",value:function(e,t){t&&(this.types[e]=this.createDescriptor(t,"Type",e))}},{key:"checkAtruleName",value:function(e){if(!this.getAtrule(e))return new uS("Unknown at-rule","@"+e)}},{key:"checkAtrulePrelude",value:function(e,t){var n=this.checkAtruleName(e);if(n)return n;var r=this.getAtrule(e);return!r.prelude&&t?new SyntaxError("At-rule `@"+e+"` should not contain a prelude"):!r.prelude||t||Nw(this,r.prelude,"",!1).matched?void 0:new SyntaxError("At-rule `@"+e+"` should contain a prelude")}},{key:"checkAtruleDescriptorName",value:function(e,t){var n=this.checkAtruleName(e);if(n)return n;var r=this.getAtrule(e),i=pS(t);return r.descriptors?r.descriptors[i.name]||r.descriptors[i.basename]?void 0:new uS("Unknown at-rule descriptor",t):new SyntaxError("At-rule `@"+e+"` has no known descriptors")}},{key:"checkPropertyName",value:function(e){if(!this.getProperty(e))return new uS("Unknown property",e)}},{key:"matchAtrulePrelude",value:function(e,t){var n=this.checkAtrulePrelude(e,t);if(n)return Zw(null,n);var r=this.getAtrule(e);return r.prelude?Nw(this,r.prelude,t||"",!1):Zw(null,null)}},{key:"matchAtruleDescriptor",value:function(e,t,n){var r=this.checkAtruleDescriptorName(e,t);if(r)return Zw(null,r);var i=this.getAtrule(e),o=pS(t);return Nw(this,i.descriptors[o.name]||i.descriptors[o.basename],n,!1)}},{key:"matchDeclaration",value:function(e){return"Declaration"!==e.type?Zw(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}},{key:"matchProperty",value:function(e,t){if(mS(e).custom)return Zw(null,new Error("Lexer matching doesn't applicable for custom properties"));var n=this.checkPropertyName(e);return n?Zw(null,n):Nw(this,this.getProperty(e),t,!0)}},{key:"matchType",value:function(e,t){var n=this.getType(e);return n?Nw(this,n,t,!1):Zw(null,new uS("Unknown type",e))}},{key:"match",value:function(e,t){return"string"===typeof e||e&&e.type?("string"!==typeof e&&e.match||(e=this.createDescriptor(e,"Type","anonymous")),Nw(this,e,t,!1)):Zw(null,new uS("Bad syntax"))}},{key:"findValueFragments",value:function(e,t,n,r){return xw(this,t,this.matchProperty(e,t),n,r)}},{key:"findDeclarationValueFragments",value:function(e,t,n){return xw(this,e.value,this.matchDeclaration(e),t,n)}},{key:"findAllFragments",value:function(e,t,n){var r=this,i=[];return this.syntax.walk(e,{visit:"Declaration",enter:function(e){i.push.apply(i,r.findDeclarationValueFragments(e,t,n))}}),i}},{key:"getAtrule",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=pS(e);return(n.vendor&&t?this.atrules[n.name]||this.atrules[n.basename]:this.atrules[n.name])||null}},{key:"getAtrulePrelude",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getAtrule(e,t);return n&&n.prelude||null}},{key:"getAtruleDescriptor",value:function(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null}},{key:"getProperty",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=mS(e);return(n.vendor&&t?this.properties[n.name]||this.properties[n.basename]:this.properties[n.name])||null}},{key:"getType",value:function(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}},{key:"validate",value:function(){function e(r,i,o,a){if(o.has(i))return o.get(i);o.set(i,!1),null!==a.syntax&&function(e,t,n){var r=Fx,i=Fx;if("function"===typeof t?r=t:t&&(r=Bx(t.enter),i=Bx(t.leave)),r===Fx&&i===Fx)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");!function e(t){switch(r.call(n,t),t.type){case"Group":t.terms.forEach(e);break;case"Multiplier":e(t.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+t.type)}i.call(n,t)}(e)}(a.syntax,(function(a){if("Type"===a.type||"Property"===a.type){var s="Type"===a.type?r.types:r.properties,l="Type"===a.type?t:n;hasOwnProperty.call(s,a.name)&&!e(r,a.name,l,s[a.name])||o.set(i,!0)}}),this)}var t=new Map,n=new Map;for(var r in this.types)e(this,r,t,this.types[r]);for(var i in this.properties)e(this,i,n,this.properties[i]);return t=(0,ne.Z)(t.keys()).filter((function(e){return t.get(e)})),n=(0,ne.Z)(n.keys()).filter((function(e){return n.get(e)})),t.length||n.length?{types:t,properties:n}:null}},{key:"dump",value:function(e,t){return{generic:this.generic,units:this.units,types:_w(this.types,!t,e),properties:_w(this.properties,!t,e),atrules:Dw(this.atrules,!t,e)}}},{key:"toString",value:function(){return JSON.stringify(this.dump())}}]),e}();function Rw(e,t){return"string"===typeof t&&/^\s*\|/.test(t)?"string"===typeof e?e+t:t.replace(/^\s*\|\s*/,""):t||null}function Mw(e,t){for(var n=Object.create(null),r=0,i=Object.entries(e);r0&&this.skip(e),0===t&&(n=this.charCodeAt(this.tokenStart))!==Lw&&n!==Fw&&this.error("Number sign is expected"),Yw.call(this,0!==t),t===Fw?"-"+this.consume(gb):this.consume(gb)}var Ww="AnPlusB",qw={a:[String,null],b:[String,null]};function Gw(){var e=this.tokenStart,t=null,n=null;if(this.tokenType===gb)Yw.call(this,zw),n=this.consume(gb);else if(this.tokenType===sb&&this.cmpChar(this.tokenStart,Fw))switch(t="-1",Xw.call(this,1,Bw),this.tokenEnd-this.tokenStart){case 2:this.next(),n=Hw.call(this);break;case 3:Xw.call(this,2,Fw),this.next(),this.skipSC(),Yw.call(this,jw),n="-"+this.consume(gb);break;default:Xw.call(this,2,Fw),Uw.call(this,3,jw),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===sb||this.isDelim(Lw)&&this.lookupType(1)===sb){var r=0;switch(t="1",this.isDelim(Lw)&&(r=1,this.next()),Xw.call(this,0,Bw),this.tokenEnd-this.tokenStart){case 1:this.next(),n=Hw.call(this);break;case 2:Xw.call(this,1,Fw),this.next(),this.skipSC(),Yw.call(this,jw),n="-"+this.consume(gb);break;default:Xw.call(this,1,Fw),Uw.call(this,2,jw),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===Ob){for(var i=this.charCodeAt(this.tokenStart),o=i===Lw||i===Fw,a=this.tokenStart+o;a0&&void 0!==arguments[0]&&arguments[0],r=this.tokenStart,i=null,o=null;switch(this.eat(ub),t=(e=this.substrToCursor(r+1)).toLowerCase(),this.skipSC(),!1===this.eof&&this.tokenType!==Pb&&this.tokenType!==xb&&(i=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,e,n),Jw):Jw.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case xb:this.next();break;case Pb:o=hasOwnProperty.call(this.atrule,t)&&"function"===typeof this.atrule[t].block?this.atrule[t].block.call(this,n):this.Block(Kw.call(this))}return{type:"Atrule",loc:this.getLocation(r,this.tokenStart),name:e,prelude:i,block:o}}function iT(e){this.token(ub,"@"+e.name),null!==e.prelude&&this.node(e.prelude),e.block?this.node(e.block):this.token(xb,";")}var oT="AtrulePrelude",aT="atrulePrelude",sT={children:[[]]};function lT(e){var t=null;return null!==e&&(e=e.toLowerCase()),this.skipSC(),t=hasOwnProperty.call(this.atrule,e)&&"function"===typeof this.atrule[e].prelude?this.atrule[e].prelude.call(this):this.readSequence(this.scope.AtrulePrelude),this.skipSC(),!0!==this.eof&&this.tokenType!==Pb&&this.tokenType!==xb&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}}function uT(e){this.children(e)}var cT=36,hT=42,fT=61,dT=94,pT=124,mT=126;function gT(){this.eof&&this.error("Unexpected end of input");var e=this.tokenStart,t=!1;return this.isDelim(hT)?(t=!0,this.next()):this.isDelim(pT)||this.eat(sb),this.isDelim(pT)?this.charCodeAt(this.tokenStart+1)!==fT?(this.next(),this.eat(sb)):t&&this.error("Identifier is expected",this.tokenEnd):t&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function vT(){var e=this.tokenStart,t=this.charCodeAt(e);return t!==fT&&t!==mT&&t!==dT&&t!==cT&&t!==hT&&t!==pT&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==fT&&(this.isDelim(fT)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}var OT="AttributeSelector",yT={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function bT(){var e,t=this.tokenStart,n=null,r=null,i=null;return this.eat(Tb),this.skipSC(),e=gT.call(this),this.skipSC(),this.tokenType!==Cb&&(this.tokenType!==sb&&(n=vT.call(this),this.skipSC(),r=this.tokenType===hb?this.String():this.Identifier(),this.skipSC()),this.tokenType===sb&&(i=this.consume(sb),this.skipSC())),this.eat(Cb),{type:"AttributeSelector",loc:this.getLocation(t,this.tokenStart),name:e,matcher:n,value:r,flags:i}}function kT(e){this.token(mb,"["),this.node(e.name),null!==e.matcher&&(this.tokenize(e.matcher),this.node(e.value)),null!==e.flags&&this.token(sb,e.flags),this.token(mb,"]")}var ST=38;function xT(e){return this.Raw(e,null,!0)}function wT(){return this.parseWithFallback(this.Rule,xT)}function TT(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function CT(){if(this.tokenType===xb)return TT.call(this,this.tokenIndex);var e=this.parseWithFallback(this.Declaration,TT);return this.tokenType===xb&&this.next(),e}var ET="Block",AT="block",PT={children:[["Atrule","Rule","Declaration"]]};function _T(e){var t=e?CT:wT,n=this.tokenStart,r=this.createList();this.eat(Pb);e:for(;!this.eof;)switch(this.tokenType){case _b:break e;case yb:case Db:this.next();break;case ub:r.push(this.parseWithFallback(this.Atrule.bind(this,e),xT));break;default:e&&this.isDelim(ST)?r.push(wT.call(this)):r.push(t.call(this))}return this.eof||this.eat(_b),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function DT(e){var t=this;this.token(Pb,"{"),this.children(e,(function(e){"Declaration"===e.type&&t.token(xb,";")})),this.token(_b,"}")}var ZT="Brackets",NT={children:[[]]};function QT(e,t){var n,r=this.tokenStart;return this.eat(Tb),n=e.call(this,t),this.eof||this.eat(Cb),{type:"Brackets",loc:this.getLocation(r,this.tokenStart),children:n}}function RT(e){this.token(mb,"["),this.children(e),this.token(mb,"]")}var MT="CDC",$T=[];function IT(){var e=this.tokenStart;return this.eat(kb),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function LT(){this.token(kb,"--\x3e")}var FT="CDO",BT=[];function jT(){var e=this.tokenStart;return this.eat(bb),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function zT(){this.token(bb,"\x3c!--")}var UT=46,YT="ClassSelector",XT={name:String};function HT(){return this.eatDelim(UT),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(sb)}}function WT(e){this.token(mb,"."),this.token(sb,e.name)}var qT=43,GT=47,VT=62,JT=126,KT="Combinator",eC={name:String};function tC(){var e,t=this.tokenStart;switch(this.tokenType){case yb:e=" ";break;case mb:switch(this.charCodeAt(this.tokenStart)){case VT:case qT:case JT:this.next();break;case GT:this.next(),this.eatIdent("deep"),this.eatDelim(GT);break;default:this.error("Combinator is expected")}e=this.substrToCursor(t)}return{type:"Combinator",loc:this.getLocation(t,this.tokenStart),name:e}}function nC(e){this.tokenize(e.name)}var rC=42,iC=47,oC="Comment",aC={value:String};function sC(){var e=this.tokenStart,t=this.tokenEnd;return this.eat(Db),t-e+2>=2&&this.charCodeAt(t-2)===rC&&this.charCodeAt(t-1)===iC&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function lC(e){this.token(Db,"/*"+e.value+"*/")}var uC=33,cC=35,hC=36,fC=38,dC=42,pC=43,mC=47;function gC(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function vC(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function OC(){var e=this.tokenIndex,t=this.Value();return"Raw"!==t.type&&!1===this.eof&&this.tokenType!==xb&&!1===this.isDelim(uC)&&!1===this.isBalanceEdge(e)&&this.error(),t}var yC="Declaration",bC="declaration",kC={important:[Boolean,String],property:String,value:["Value","Raw"]};function SC(){var e,t=this.tokenStart,n=this.tokenIndex,r=wC.call(this),i=gS(r),o=i?this.parseCustomProperty:this.parseValue,a=i?vC:gC,s=!1;this.skipSC(),this.eat(Sb);var l=this.tokenIndex;if(i||this.skipSC(),e=o?this.parseWithFallback(OC,a):a.call(this,this.tokenIndex),i&&"Value"===e.type&&e.children.isEmpty)for(var u=l-this.tokenIndex;u<=0;u++)if(this.lookupType(u)===yb){e.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.isDelim(uC)&&(s=TC.call(this),this.skipSC()),!1===this.eof&&this.tokenType!==xb&&!1===this.isBalanceEdge(n)&&this.error(),{type:"Declaration",loc:this.getLocation(t,this.tokenStart),important:s,property:r,value:e}}function xC(e){this.token(sb,e.property),this.token(Sb,":"),this.node(e.value),e.important&&(this.token(mb,"!"),this.token(sb,!0===e.important?"important":e.important))}function wC(){var e=this.tokenStart;if(this.tokenType===mb)switch(this.charCodeAt(this.tokenStart)){case dC:case hC:case pC:case cC:case fC:this.next();break;case mC:this.next(),this.isDelim(mC)&&this.next()}return this.tokenType===cb?this.eat(cb):this.eat(sb),this.substrToCursor(e)}function TC(){this.eat(mb),this.skipSC();var e=this.consume(sb);return"important"===e||e}var CC=38;function EC(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}var AC="DeclarationList",PC={children:[["Declaration","Atrule","Rule"]]};function _C(){for(var e=this.createList();!this.eof;)switch(this.tokenType){case yb:case Db:case xb:this.next();break;case ub:e.push(this.parseWithFallback(this.Atrule.bind(this,!0),EC));break;default:this.isDelim(CC)?e.push(this.parseWithFallback(this.Rule,EC)):e.push(this.parseWithFallback(this.Declaration,EC))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function DC(e){var t=this;this.children(e,(function(e){"Declaration"===e.type&&t.token(xb,";")}))}var ZC="Dimension",NC={value:String,unit:String};function QC(){var e=this.tokenStart,t=this.consumeNumber(Ob);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}}function RC(e){this.token(Ob,e.value+e.unit)}var MC="Function",$C="function",IC={name:String,children:[[]]};function LC(e,t){var n,r=this.tokenStart,i=this.consumeFunctionName(),o=i.toLowerCase();return n=t.hasOwnProperty(o)?t[o].call(this,t):e.call(this,t),this.eof||this.eat(Ab),{type:"Function",loc:this.getLocation(r,this.tokenStart),name:i,children:n}}function FC(e){this.token(lb,e.name+"("),this.children(e),this.token(Ab,")")}var BC="XXX",jC="Hash",zC={value:String};function UC(){var e=this.tokenStart;return this.eat(cb),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function YC(e){this.token(cb,"#"+e.value)}var XC="Identifier",HC={name:String};function WC(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(sb)}}function qC(e){this.token(sb,e.name)}var GC="IdSelector",VC={name:String};function JC(){var e=this.tokenStart;return this.eat(cb),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function KC(e){this.token(mb,"#"+e.name)}var eE="MediaFeature",tE={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function nE(){var e,t=this.tokenStart,n=null;if(this.eat(Eb),this.skipSC(),e=this.consume(sb),this.skipSC(),this.tokenType!==Ab){switch(this.eat(Sb),this.skipSC(),this.tokenType){case gb:n=this.lookupNonWSType(1)===mb?this.Ratio():this.Number();break;case Ob:n=this.Dimension();break;case sb:n=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eat(Ab),{type:"MediaFeature",loc:this.getLocation(t,this.tokenStart),name:e,value:n}}function rE(e){this.token(Eb,"("),this.token(sb,e.name),null!==e.value&&(this.token(Sb,":"),this.node(e.value)),this.token(Ab,")")}var iE="MediaQuery",oE={children:[["Identifier","MediaFeature","WhiteSpace"]]};function aE(){var e=this.createList(),t=null;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case Db:case yb:this.next();continue;case sb:t=this.Identifier();break;case Eb:t=this.MediaFeature();break;default:break e}e.push(t)}return null===t&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(e),children:e}}function sE(e){this.children(e)}var lE="MediaQueryList",uE={children:[["MediaQuery"]]};function cE(){var e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===wb);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}}function hE(e){var t=this;this.children(e,(function(){return t.token(wb,",")}))}var fE=38,dE="NestingSelector",pE={};function mE(){var e=this.tokenStart;return this.eatDelim(fE),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function gE(){this.token(mb,"&")}var vE="Nth",OE={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function yE(){this.skipSC();var e,t=this.tokenStart,n=t,r=null;return e=this.lookupValue(0,"odd")||this.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),n=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),r=this.SelectorList(),n=this.tokenStart),{type:"Nth",loc:this.getLocation(t,n),nth:e,selector:r}}function bE(e){this.node(e.nth),null!==e.selector&&(this.token(sb,"of"),this.node(e.selector))}var kE="Number",SE={value:String};function xE(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(gb)}}function wE(e){this.token(gb,e.value)}var TE="Operator",CE={value:String};function EE(){var e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function AE(e){this.tokenize(e.value)}var PE="Parentheses",_E={children:[[]]};function DE(e,t){var n,r=this.tokenStart;return this.eat(Eb),n=e.call(this,t),this.eof||this.eat(Ab),{type:"Parentheses",loc:this.getLocation(r,this.tokenStart),children:n}}function ZE(e){this.token(Eb,"("),this.children(e),this.token(Ab,")")}var NE="Percentage",QE={value:String};function RE(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(vb)}}function ME(e){this.token(vb,e.value+"%")}var $E="PseudoClassSelector",IE="function",LE={name:String,children:[["Raw"],null]};function FE(){var e,t,n=this.tokenStart,r=null;return this.eat(Sb),this.tokenType===lb?(t=(e=this.consumeFunctionName()).toLowerCase(),hasOwnProperty.call(this.pseudo,t)?(this.skipSC(),r=this.pseudo[t].call(this),this.skipSC()):(r=this.createList()).push(this.Raw(this.tokenIndex,null,!1)),this.eat(Ab)):e=this.consume(sb),{type:"PseudoClassSelector",loc:this.getLocation(n,this.tokenStart),name:e,children:r}}function BE(e){this.token(Sb,":"),null===e.children?this.token(sb,e.name):(this.token(lb,e.name+"("),this.children(e),this.token(Ab,")"))}var jE="PseudoElementSelector",zE="function",UE={name:String,children:[["Raw"],null]};function YE(){var e,t,n=this.tokenStart,r=null;return this.eat(Sb),this.eat(Sb),this.tokenType===lb?(t=(e=this.consumeFunctionName()).toLowerCase(),hasOwnProperty.call(this.pseudo,t)?(this.skipSC(),r=this.pseudo[t].call(this),this.skipSC()):(r=this.createList()).push(this.Raw(this.tokenIndex,null,!1)),this.eat(Ab)):e=this.consume(sb),{type:"PseudoElementSelector",loc:this.getLocation(n,this.tokenStart),name:e,children:r}}function XE(e){this.token(Sb,":"),this.token(Sb,":"),null===e.children?this.token(sb,e.name):(this.token(lb,e.name+"("),this.children(e),this.token(Ab,")"))}var HE=47,WE=46;function qE(){this.skipSC();for(var e=this.consume(gb),t=0;t0&&this.lookupType(-1)===yb?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}var tA="Raw",nA={value:String};function rA(e,t,n){var r,i=this.getTokenStart(e);return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),r=n&&this.tokenStart>i?eA.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(i,r),value:this.substring(i,r)}}function iA(e){this.tokenize(e.value)}function oA(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function aA(){var e=this.SelectorList();return"Raw"!==e.type&&!1===this.eof&&this.tokenType!==Pb&&this.error(),e}var sA="Rule",lA="rule",uA={prelude:["SelectorList","Raw"],block:["Block"]};function cA(){var e,t,n=this.tokenIndex,r=this.tokenStart;return e=this.parseRulePrelude?this.parseWithFallback(aA,oA):oA.call(this,n),t=this.Block(!0),{type:"Rule",loc:this.getLocation(r,this.tokenStart),prelude:e,block:t}}function hA(e){this.node(e.prelude),this.node(e.block)}var fA="Selector",dA={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function pA(){var e=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(e)&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(e),children:e}}function mA(e){this.children(e)}var gA="SelectorList",vA="selector",OA={children:[["Selector","Raw"]]};function yA(){for(var e=this.createList();!this.eof&&(e.push(this.Selector()),this.tokenType===wb);)this.next();return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}}function bA(e){var t=this;this.children(e,(function(){return t.token(wb,",")}))}var kA=92,SA=34,xA=39;function wA(e){for(var t=e.length,n=e.charCodeAt(0),r=n===SA||n===xA?1:0,i=1===r&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1,o="",a=r;a<=i;a++){var s=e.charCodeAt(a);if(s===kA){if(a===i){a!==t-1&&(o=e.substr(a+1));break}if(s=e.charCodeAt(++a),Bb(kA,s)){var l=a-1,u=ik(e,l);a=u-1,o+=lk(e.substring(l+1,u))}else 13===s&&10===e.charCodeAt(a+1)&&a++}else o+=e[a]}return o}var TA="String",CA={value:String};function EA(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:wA(this.consume(hb))}}function AA(e){this.token(hb,function(e,t){for(var n=t?"'":'"',r=t?xA:SA,i="",o=!1,a=0;a6&&this.error("Too many hex digits",r)}return this.next(),n}function HA(e){for(var t=0;this.isDelim(YA);)++t>e&&this.error("Too many question marks"),this.next()}function WA(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===zA?"Plus sign":"Hyphen minus")+" is expected")}function qA(){var e=0;switch(this.tokenType){case gb:if(e=XA.call(this,1,!0),this.isDelim(YA)){HA.call(this,6-e);break}if(this.tokenType===Ob||this.tokenType===gb){WA.call(this,UA),XA.call(this,1,!1);break}break;case Ob:(e=XA.call(this,1,!0))>0&&HA.call(this,6-e);break;default:if(this.eatDelim(zA),this.tokenType===sb){(e=XA.call(this,0,!0))>0&&HA.call(this,6-e);break}if(this.isDelim(YA)){this.next(),HA.call(this,5);break}this.error("Hex digit or question mark is expected")}}var GA="UnicodeRange",VA={value:String};function JA(){var e=this.tokenStart;return this.eatIdent("u"),qA.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function KA(e){this.tokenize(e.value)}var eP=32,tP=92,nP=34,rP=39,iP=40,oP=41;var aP="Url",sP={value:String};function lP(){var e,t=this.tokenStart;switch(this.tokenType){case db:e=function(e){for(var t=e.length,n=4,r=e.charCodeAt(t-1)===oP?t-2:t-1,i="";n )","absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","acos()":"acos( )","alpha-value":"|","angle-percentage":"|","angular-color-hint":"","angular-color-stop":"&&?","angular-color-stop-list":"[ [, ]?]# , ","animateable-feature":"scroll-position|contents|","asin()":"asin( )","atan()":"atan( )","atan2()":"atan2( , )",attachment:"scroll|fixed|local","attr()":"attr( ? [, ]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' ']'|'[' [|] ? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [? ]+ ? )","auto-track-list":"[? [|]]* ? [? [|]]* ?",axis:"block|inline|vertical|horizontal","baseline-position":"[first|last]? baseline","basic-shape":"||||","bg-image":"none|","bg-layer":"|| [/ ]?||||||||","bg-position":"[[left|center|right|top|bottom|]|[left|center|right|] [top|center|bottom|]|[center|[left|right] ?]&&[center|[top|bottom] ?]]","bg-size":"[|auto]{1,2}|cover|contain","blur()":"blur( )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity",box:"border-box|padding-box|content-box","brightness()":"brightness( )","calc()":"calc( )","calc-sum":" [['+'|'-'] ]*","calc-product":" ['*' |'/' ]*","calc-value":"||||( )","calc-constant":"e|pi|infinity|-infinity|NaN","cf-final-image":"|","cf-mixing-image":"?&&","circle()":"circle( []? [at ]? )","clamp()":"clamp( #{3} )","class-selector":"'.' ","clip-source":"",color:"|||||||||currentcolor|","color-stop":"|","color-stop-angle":"{1,2}","color-stop-length":"{1,2}","color-stop-list":"[ [, ]?]# , ",combinator:"'>'|'+'|'~'|['||']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|push-button|slider-horizontal|checkbox|radio|square-button|menulist|listbox|meter|progress-bar|button","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[? * [ *]*]!","compound-selector-list":"#","complex-selector":" [? ]*","complex-selector-list":"#","conic-gradient()":"conic-gradient( [from ]? [at ]? , )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[|contents||||||]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"","contrast()":"contrast( [] )","cos()":"cos( )",counter:"|","counter()":"counter( , ? )","counter-name":"","counter-style":"|symbols( )","counter-style-name":"","counters()":"counters( , , ? )","cross-fade()":"cross-fade( , ? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( , , , )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( {2,3} ? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( , [first|start|last|first-except]? )|element( )","ellipse()":"ellipse( [{2}]? [at ]? )","ending-shape":"circle|ellipse","env()":"env( , ? )","exp()":"exp( )","explicit-track-list":"[? ]+ ?","family-name":"|+","feature-tag-value":" [|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":" '{' '}'","feature-value-block-list":"+","feature-value-declaration":" : + ;","feature-value-declaration-list":"","feature-value-name":"","fill-rule":"nonzero|evenodd","filter-function":"|||||||||","filter-function-list":"[|]+","final-bg-layer":"<'background-color'>|||| [/ ]?||||||||","fixed-breadth":"","fixed-repeat":"repeat( [] , [? ]+ ? )","fixed-size":"|minmax( , )|minmax( , )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|","frequency-percentage":"|","general-enclosed":"[ )]|( )","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"|fill-box|stroke-box|view-box",gradient:"||||||<-legacy-gradient>","grayscale()":"grayscale( )","grid-line":"auto||[&&?]|[span&&[||]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( [/ ]? )|hsl( , , , ? )","hsla()":"hsla( [/ ]? )|hsla( , , , ? )",hue:"|","hue-rotate()":"hue-rotate( )","hwb()":"hwb( [|none] [|none] [|none] [/ [|none]]? )","hypot()":"hypot( # )",image:"||||||","image()":"image( ? [? , ?]! )","image-set()":"image-set( # )","image-set-option":"[|] [||type( )]","image-src":"|","image-tags":"ltr|rtl","inflexible-breadth":"|min-content|max-content|auto","inset()":"inset( {1,4} [round <'border-radius'>]? )","invert()":"invert( )","keyframes-name":"|","keyframe-block":"# { }","keyframe-block-list":"+","keyframe-selector":"from|to|","lab()":"lab( [||none] [||none] [||none] [/ [|none]]? )","layer()":"layer( )","layer-name":" ['.' ]*","lch()":"lch( [||none] [||none] [|none] [/ [|none]]? )","leader()":"leader( )","leader-type":"dotted|solid|space|","length-percentage":"|","line-names":"'[' * ']'","line-name-list":"[|]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"|thin|medium|thick","linear-color-hint":"","linear-color-stop":" ?","linear-gradient()":"linear-gradient( [|to ]? , )","log()":"log( , ? )","mask-layer":"|| [/ ]?||||||[|no-clip]||||","mask-position":"[|left|center|right] [|top|center|bottom]?","mask-reference":"none||","mask-source":"","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( #{6} )","matrix3d()":"matrix3d( #{16} )","max()":"max( # )","media-and":" [and ]+","media-condition":"|||","media-condition-without-or":"||","media-feature":"( [||] )","media-in-parens":"( )||","media-not":"not ","media-or":" [or ]+","media-query":"|[not|only]? [and ]?","media-query-list":"#","media-type":"","mf-boolean":"","mf-name":"","mf-plain":" : ","mf-range":" ['<'|'>']? '='? | ['<'|'>']? '='? | '<' '='? '<' '='? | '>' '='? '>' '='? ","mf-value":"|||","min()":"min( # )","minmax()":"minmax( [|min-content|max-content|auto] , [||min-content|max-content|auto] )","mod()":"mod( , )","name-repeat":"repeat( [|auto-fill] , + )","named-color":"transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|<-non-standard-color>","namespace-prefix":"","ns-prefix":"[|'*']? '|'","number-percentage":"|","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"|even|odd","opacity()":"opacity( [] )","overflow-position":"unsafe|safe","outline-radius":"|","page-body":"? [; ]?| ","page-margin-box":" '{' '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[#]?","page-selector":"+| *","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger","path()":"path( [ ,]? )","paint()":"paint( , ? )","perspective()":"perspective( [|none] )","polygon()":"polygon( ? , [ ]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|] [top|center|bottom|]?|[[left|right] ]&&[[top|bottom] ]]","pow()":"pow( , )","pseudo-class-selector":"':' |':' ')'","pseudo-element-selector":"':' ","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [||]? [at ]? , )",ratio:" [/ ]?","relative-selector":"? ","relative-selector-list":"#","relative-size":"larger|smaller","rem()":"rem( , )","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [from ]? [at ]? , )","repeating-linear-gradient()":"repeating-linear-gradient( [|to ]? , )","repeating-radial-gradient()":"repeating-radial-gradient( [||]? [at ]? , )","reversed-counter-name":"reversed( )","rgb()":"rgb( {3} [/ ]? )|rgb( {3} [/ ]? )|rgb( #{3} , ? )|rgb( #{3} , ? )","rgba()":"rgba( {3} [/ ]? )|rgba( {3} [/ ]? )|rgba( #{3} , ? )|rgba( #{3} , ? )","rotate()":"rotate( [|] )","rotate3d()":"rotate3d( , , , [|] )","rotateX()":"rotateX( [|] )","rotateY()":"rotateY( [|] )","rotateZ()":"rotateZ( [|] )","round()":"round( ? , , )","rounding-strategy":"nearest|up|down|to-zero","saturate()":"saturate( )","scale()":"scale( [|]#{1,2} )","scale3d()":"scale3d( [|]#{3} )","scaleX()":"scaleX( [|] )","scaleY()":"scaleY( [|] )","scaleZ()":"scaleZ( [|] )",scroller:"root|nearest","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"|closest-side|farthest-side","sign()":"sign( )","skew()":"skew( [|] , [|]? )","skewX()":"skewX( [|] )","skewY()":"skewY( [|] )","sepia()":"sepia( )",shadow:"inset?&&{2,4}&&?","shadow-t":"[{2,3}&&?]",shape:"rect( , , , )|rect( )","shape-box":"|margin-box","side-or-corner":"[left|right]||[top|bottom]","sin()":"sin( )","single-animation":"