diff --git a/asset-manifest.json b/asset-manifest.json index 67b01ab..25f81be 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { "main.css": "/static/css/main.b400c4e4.css", - "main.js": "/static/js/main.c69e7a45.js", + "main.js": "/static/js/main.73385d00.js", "static/js/4522.47ab19c0.chunk.js": "/static/js/4522.47ab19c0.chunk.js", "static/js/2106.bb0a6a39.chunk.js": "/static/js/2106.bb0a6a39.chunk.js", "static/js/5815.8c118393.chunk.js": "/static/js/5815.8c118393.chunk.js", @@ -118,7 +118,7 @@ "static/media/github.svg": "/static/media/github.6988a55f42f5097e5bd19ed9ae72ccde.svg", "static/media/color.svg": "/static/media/color.3cdb61387d75158307fc6d9ed1ab3e74.svg", "main.b400c4e4.css.map": "/static/css/main.b400c4e4.css.map", - "main.c69e7a45.js.map": "/static/js/main.c69e7a45.js.map", + "main.73385d00.js.map": "/static/js/main.73385d00.js.map", "4522.47ab19c0.chunk.js.map": "/static/js/4522.47ab19c0.chunk.js.map", "2106.bb0a6a39.chunk.js.map": "/static/js/2106.bb0a6a39.chunk.js.map", "5815.8c118393.chunk.js.map": "/static/js/5815.8c118393.chunk.js.map", @@ -234,6 +234,6 @@ "static/js/refractor-prismjs-vendor.5a5817bb.js", "static/js/react-vendor.622c3677.js", "static/css/main.b400c4e4.css", - "static/js/main.c69e7a45.js" + "static/js/main.73385d00.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index a67c6b0..1bf349f 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.73385d00.js b/static/js/main.73385d00.js new file mode 100644 index 0000000..5819e36 --- /dev/null +++ b/static/js/main.73385d00.js @@ -0,0 +1,3 @@ +/*! For license information please see main.73385d00.js.LICENSE.txt */ +!function(){var e={108:function(e,t,n){"use strict";var r={};n.r(r),n.d(r,{attentionMarkers:function(){return Sf},contentInitial:function(){return gf},disable:function(){return xf},document:function(){return mf},flow:function(){return Of},flowInitial:function(){return vf},insideSpan:function(){return bf},string:function(){return yf},text:function(){return kf}});var i={};n.r(i),n.d(i,{safe:function(){return kk},spec:function(){return yk}});var o={};n.r(o),n.d(o,{angle:function(){return Sb},decibel:function(){return Eb},flex:function(){return Cb},frequency:function(){return wb},length:function(){return bb},resolution:function(){return Tb},semitones:function(){return Ab},time:function(){return xb}});var a={};n.r(a),n.d(a,{getTrace:function(){return HS},isKeyword:function(){return qS},isProperty:function(){return YS},isType:function(){return WS}});var s={};n.r(s),n.d(s,{generate:function(){return Ex},name:function(){return wx},parse:function(){return Cx},structure:function(){return Tx}});var l={};n.r(l),n.d(l,{generate:function(){return Rx},name:function(){return Qx},parse:function(){return Nx},structure:function(){return Dx},walkContext:function(){return _x}});var u={};n.r(u),n.d(u,{generate:function(){return Lx},name:function(){return Zx},parse:function(){return $x},structure:function(){return Ix},walkContext:function(){return Mx}});var c={};n.r(c),n.d(c,{generate:function(){return Gx},name:function(){return Yx},parse:function(){return Vx},structure:function(){return qx}});var h={};n.r(h),n.d(h,{generate:function(){return sw},name:function(){return rw},parse:function(){return aw},structure:function(){return ow},walkContext:function(){return iw}});var f={};n.r(f),n.d(f,{generate:function(){return hw},name:function(){return lw},parse:function(){return cw},structure:function(){return uw}});var d={};n.r(d),n.d(d,{generate:function(){return mw},name:function(){return fw},parse:function(){return pw},structure:function(){return dw}});var p={};n.r(p),n.d(p,{generate:function(){return yw},name:function(){return gw},parse:function(){return Ow},structure:function(){return vw}});var m={};n.r(m),n.d(m,{generate:function(){return ww},name:function(){return bw},parse:function(){return xw},structure:function(){return Sw}});var g={};n.r(g),n.d(g,{generate:function(){return Dw},name:function(){return Pw},parse:function(){return _w},structure:function(){return Qw}});var v={};n.r(v),n.d(v,{generate:function(){return $w},name:function(){return Zw},parse:function(){return Iw},structure:function(){return Mw}});var O={};n.r(O),n.d(O,{generate:function(){return Kw},name:function(){return qw},parse:function(){return Jw},structure:function(){return Gw},walkContext:function(){return Vw}});var y={};n.r(y),n.d(y,{generate:function(){return sT},name:function(){return iT},parse:function(){return aT},structure:function(){return oT}});var k={};n.r(k),n.d(k,{generate:function(){return hT},name:function(){return lT},parse:function(){return cT},structure:function(){return uT}});var b={};n.r(b),n.d(b,{generate:function(){return gT},name:function(){return fT},parse:function(){return mT},structure:function(){return pT},walkContext:function(){return dT}});var S={};n.r(S),n.d(S,{generate:function(){return bT},name:function(){return OT},parse:function(){return kT},structure:function(){return yT},xxx:function(){return vT}});var x={};n.r(x),n.d(x,{generate:function(){return TT},name:function(){return ST},parse:function(){return wT},structure:function(){return xT}});var w={};n.r(w),n.d(w,{generate:function(){return PT},name:function(){return CT},parse:function(){return AT},structure:function(){return ET}});var T={};n.r(T),n.d(T,{generate:function(){return NT},name:function(){return QT},parse:function(){return DT},structure:function(){return _T}});var C={};n.r(C),n.d(C,{generate:function(){return IT},name:function(){return RT},parse:function(){return MT},structure:function(){return ZT}});var E={};n.r(E),n.d(E,{generate:function(){return BT},name:function(){return $T},parse:function(){return FT},structure:function(){return LT}});var A={};n.r(A),n.d(A,{generate:function(){return HT},name:function(){return UT},parse:function(){return XT},structure:function(){return zT}});var P={};n.r(P),n.d(P,{generate:function(){return VT},name:function(){return WT},parse:function(){return qT},structure:function(){return YT}});var Q={};n.r(Q),n.d(Q,{generate:function(){return eC},name:function(){return GT},parse:function(){return KT},structure:function(){return JT}});var _={};n.r(_),n.d(_,{generate:function(){return iC},name:function(){return tC},parse:function(){return rC},structure:function(){return nC}});var D={};n.r(D),n.d(D,{generate:function(){return lC},name:function(){return oC},parse:function(){return sC},structure:function(){return aC}});var N={};n.r(N),n.d(N,{generate:function(){return fC},name:function(){return uC},parse:function(){return hC},structure:function(){return cC}});var R={};n.r(R),n.d(R,{generate:function(){return vC},name:function(){return dC},parse:function(){return gC},structure:function(){return mC},walkContext:function(){return pC}});var Z={};n.r(Z),n.d(Z,{generate:function(){return SC},name:function(){return OC},parse:function(){return bC},structure:function(){return kC},walkContext:function(){return yC}});var M={};n.r(M),n.d(M,{generate:function(){return PC},name:function(){return CC},parse:function(){return AC},structure:function(){return EC}});var I={};n.r(I),n.d(I,{generate:function(){return RC},name:function(){return _C},parse:function(){return NC},structure:function(){return DC}});var $={};n.r($),n.d($,{generate:function(){return BC},name:function(){return IC},parse:function(){return FC},structure:function(){return LC},walkContext:function(){return $C}});var L={};n.r(L),n.d(L,{generate:function(){return XC},name:function(){return jC},parse:function(){return zC},structure:function(){return UC}});var F={};n.r(F),n.d(F,{generate:function(){return VC},name:function(){return HC},parse:function(){return qC},structure:function(){return YC},walkContext:function(){return WC}});var B={};n.r(B),n.d(B,{generate:function(){return iE},name:function(){return tE},parse:function(){return rE},structure:function(){return nE}});var j={};n.r(j),n.d(j,{generate:function(){return hE},name:function(){return sE},parse:function(){return cE},structure:function(){return uE},walkContext:function(){return lE}});var U={};n.r(U),n.d(U,{generate:function(){return OE},name:function(){return mE},parse:function(){return vE},structure:function(){return gE}});var z={};n.r(z),n.d(z,{generate:function(){return PE},name:function(){return CE},parse:function(){return AE},structure:function(){return EE}});var X={};n.r(X),n.d(X,{generate:function(){return LE},name:function(){return ME},parse:function(){return $E},structure:function(){return IE}});var H={};n.r(H),n.d(H,{generate:function(){return UE},name:function(){return FE},parse:function(){return jE},structure:function(){return BE}});var W={};n.r(W),n.d(W,{generate:function(){return YE},name:function(){return XE},parse:function(){return WE},structure:function(){return HE}});var Y={};n.r(Y),n.d(Y,{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 k},Function:function(){return b},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 Q},Operator:function(){return _},Parentheses:function(){return D},Percentage:function(){return N},PseudoClassSelector:function(){return R},PseudoElementSelector:function(){return Z},Ratio:function(){return M},Raw:function(){return I},Rule:function(){return $},Selector:function(){return L},SelectorList:function(){return F},String:function(){return B},StyleSheet:function(){return j},TypeSelector:function(){return U},UnicodeRange:function(){return z},Url:function(){return X},Value:function(){return H},WhiteSpace:function(){return W}});var q={};n.r(q),n.d(q,{AtrulePrelude:function(){return GE},Selector:function(){return JE},Value:function(){return eA}});var V={};function G(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.r(V),n.d(V,{AnPlusB:function(){return Cx},Atrule:function(){return Nx},AtrulePrelude:function(){return $x},AttributeSelector:function(){return Vx},Block:function(){return aw},Brackets:function(){return cw},CDC:function(){return pw},CDO:function(){return Ow},ClassSelector:function(){return xw},Combinator:function(){return _w},Comment:function(){return Iw},Declaration:function(){return Jw},DeclarationList:function(){return aT},Dimension:function(){return cT},Function:function(){return mT},Hash:function(){return kT},IdSelector:function(){return AT},Identifier:function(){return wT},MediaFeature:function(){return DT},MediaQuery:function(){return MT},MediaQueryList:function(){return FT},NestingSelector:function(){return XT},Nth:function(){return qT},Number:function(){return KT},Operator:function(){return rC},Parentheses:function(){return sC},Percentage:function(){return hC},PseudoClassSelector:function(){return gC},PseudoElementSelector:function(){return bC},Ratio:function(){return AC},Raw:function(){return NC},Rule:function(){return FC},Selector:function(){return zC},SelectorList:function(){return qC},String:function(){return rE},StyleSheet:function(){return cE},TypeSelector:function(){return vE},UnicodeRange:function(){return AE},Url:function(){return $E},Value:function(){return jE},WhiteSpace:function(){return WE}});var J=n(8133),K=n.t(J,2),ee=n(805),te=n(1026),ne=n(726),re=n(649),ie=n(2951),oe=n(1976),ae=n(7591),se=n(9616),le=n(7597),ue=n(6983);var ce=n(8119);function he(e,t,n){return he=(0,ce.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,ue.Z)(i,n.prototype),i},he.apply(null,arguments)}function fe(e){var t="function"===typeof Map?new Map:void 0;return fe=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 he(e,arguments,(0,le.Z)(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),(0,ue.Z)(r,e)},fe(e)}var de,pe=n(6470),me=n(5181),ge=n(4013),ve=n(3764);function Oe(e){return(0,pe.Z)(e)||(0,me.Z)(e)||(0,ge.Z)(e)||(0,ve.Z)()}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=de.Pop,h=null,f=d();function d(){return(u.state||{idx:null}).idx}function p(){c=de.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(be,p),h=e,function(){a.removeEventListener(be,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=de.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){a.location.assign(o)}l&&h&&h({action:c,location:g.location,delta:1})},replace:function(e,t){c=de.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"}(ke||(ke={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function Pe(e,t,n){void 0===n&&(n="/");var r=Ue(("string"===typeof t?Ee(t):t).pathname||"/",n);if(null==r)return null;var i=Qe(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+'".'),Qe(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,ne.Z)(_e(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 _e(e){var t=e.split("/");if(0===t.length)return[];var n=Oe(t),r=n[0],i=n.slice(1),o=r.endsWith("?"),a=r.replace(/\?$/,"");if(0===i.length)return o?[a,""]:[a];var s=_e(i.join("/")),l=[];return l.push.apply(l,(0,re.Z)(s.map((function(e){return""===e?a:[a,e].join("/")})))),o&&l.push.apply(l,(0,re.Z)(s)),l.map((function(t){return e.startsWith("/")&&""===t?"/":t}))}var De=/^:\w+$/,Ne=3,Re=2,Ze=1,Me=10,Ie=-2,$e=function(e){return"*"===e};function Le(e,t){var n=e.split("/"),r=n.length;return n.some($e)&&(r+=Ie),t&&(r+=Re),n.filter((function(e){return!$e(e)})).reduce((function(e,t){return e+(De.test(t)?Ne:""===t?Ze: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 Xe(e){return e.filter((function(e,t){return 0===t||e.route.path&&e.route.path.length>0}))}function He(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("?"),ze("?","pathname","search",i)),Se(!i.pathname||!i.pathname.includes("#"),ze("#","pathname","hash",i)),Se(!i.search||!i.search.includes("#"),ze("#","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:Ve(s)}}(i,o),h=s&&"/"!==s&&s.endsWith("/"),f=(a||"."===s)&&n.endsWith("/");return c.pathname.endsWith("/")||!h&&!f||(c.pathname+="/"),c}var We=function(e){return e.join("/").replace(/\/\/+/g,"/")},Ye=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},qe=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},Ve=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""},Ge=function(e){(0,ae.Z)(n,e);var t=(0,se.Z)(n);function n(){return(0,ie.Z)(this,n),t.apply(this,arguments)}return(0,oe.Z)(n)}(fe(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]),"undefined"!==typeof window&&"undefined"!==typeof window.document&&window.document.createElement;Symbol("deferred");var tt="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},nt=J.useState,rt=J.useEffect,it=J.useLayoutEffect,ot=J.useDebugValue;function at(e){var t=e.getSnapshot,n=e.value;try{var r=t();return!tt(n,r)}catch(i){return!0}}"undefined"===typeof window||"undefined"===typeof window.document||window.document.createElement,K.useSyncExternalStore;var st=J.createContext(null);var lt=J.createContext(null);var ut=J.createContext(null);var ct=J.createContext(null);var ht=J.createContext(null);var ft=J.createContext({outlet:null,matches:[]});var dt=J.createContext(null);function pt(){return pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||Se(!1),r=r.slice(0,Math.min(r.length,o+1))}return r.reduceRight((function(e,o,a){var s=o.route.id?null==i?void 0:i[o.route.id]:null,l=null;n&&(l=o.route.ErrorBoundary?J.createElement(o.route.ErrorBoundary,null):o.route.errorElement?o.route.errorElement:J.createElement(kt,null));var u=t.concat(r.slice(0,a+1)),c=function(){var t=e;return s?t=l:o.route.Component?t=J.createElement(o.route.Component,null):o.route.element&&(t=o.route.element),J.createElement(wt,{match:o,routeContext:{outlet:e,matches:u},children:t})};return n&&(o.route.ErrorBoundary||o.route.errorElement||0===a)?J.createElement(xt,{location:n.location,component:l,error:s,children:c(),routeContext:{outlet:null,matches:u}}):c()}),null)}function Ct(e){var t=J.useContext(lt);return t||Se(!1),t}function Et(e){var t=function(e){var t=J.useContext(ft);return t||Se(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||Se(!1),n.route.id}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"}(bt||(bt={})),function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"}(St||(St={}));var At;function Pt(e){return function(e){var t=J.useContext(ft).outlet;return t?J.createElement(Ot.Provider,{value:e},t):t}(e.context)}function Qt(e){Se(!1)}function _t(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?de.Pop:a,l=e.navigator,u=e.static,c=void 0!==u&&u;mt()&&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,k=d.state,b=void 0===k?null:k,S=d.key,x=void 0===S?"default":S,w=J.useMemo((function(){var e=Ue(m,h);return null==e?null:{location:{pathname:e,search:v,hash:y,state:b,key:x},navigationType:s}}),[h,m,v,y,b,x,s]);return null==w?null:J.createElement(ct.Provider,{value:f},J.createElement(ht.Provider,{children:i,value:w}))}function Dt(e){var t=e.children,n=e.location,r=J.useContext(st);return function(e,t){mt()||Se(!1);var n,r=J.useContext(ct).navigator,i=J.useContext(lt),o=J.useContext(ft).matches,a=o[o.length-1],s=a?a.params:{},l=(a&&a.pathname,a?a.pathnameBase:"/"),u=(a&&a.route,gt());if(t){var c,h="string"===typeof t?Ee(t):t;"/"===l||(null==(c=h.pathname)?void 0:c.startsWith(l))||Se(!1),n=h}else n=u;var f=n.pathname||"/",d=Pe(e,{pathname:"/"===l?f:f.slice(l.length)||"/"}),p=Tt(d&&d.map((function(e){return Object.assign({},e,{params:Object.assign({},s,e.params),pathname:We([l,r.encodeLocation?r.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:We([l,r.encodeLocation?r.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})})),o,i||void 0);return t&&p?J.createElement(ht.Provider,{value:{location:pt({pathname:"/",search:"",hash:"",state:null,key:"default"},n),navigationType:de.Pop}},p):p}(r&&!t?r.router.routes:Rt(t),n)}!function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(At||(At={}));var Nt=new Promise((function(){}));J.Component;function Rt(e,t){void 0===t&&(t=[]);var n=[];return J.Children.forEach(e,(function(e,r){if(J.isValidElement(e)){var i=[].concat((0,re.Z)(t),[r]);if(e.type!==J.Fragment){e.type!==Qt&&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=Rt(e.props.children,i)),n.push(o)}else n.push.apply(n,Rt(e.props.children,i))}})),n}function Zt(){return Zt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function It(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]])}),[]))}var $t=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],Lt=["aria-current","caseSensitive","className","end","style","to","children"];function Ft(e){var t,n=e.basename,r=e.children,i=e.window,o=J.useRef();null==o.current&&(o.current=(void 0===(t={window:i,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;return Te("",{pathname:i,search:a,hash:void 0===s?"":s},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 a=o.current,s=J.useState({action:a.action,location:a.location}),l=(0,te.Z)(s,2),u=l[0],c=l[1];return J.useLayoutEffect((function(){return a.listen(c)}),[a]),J.createElement(_t,{basename:n,children:r,location:u.location,navigationType:u.action,navigator:a})}var Bt="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,jt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ut=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=Mt(e,$t),f=J.useContext(ct).basename,d=!1;if("string"===typeof u&&jt.test(u)&&(n=u,Bt)){var p=new URL(window.location.href),m=u.startsWith("//")?new URL(p.protocol+u):new URL(u),g=Ue(m.pathname,f);m.origin===p.origin&&null!=g?u=g+m.search+m.hash:d=!0}var v=function(e,t){var n=(void 0===t?{}:t).relative;mt()||Se(!1);var r=J.useContext(ct),i=r.basename,o=r.navigator,a=yt(e,{relative:n}),s=a.hash,l=a.pathname,u=a.search,c=l;return"/"!==i&&(c="/"===l?i:We([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=vt(),u=gt(),c=yt(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",Zt({},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=Mt(e,Lt),p=yt(h,{relative:d.relative}),m=gt(),g=J.useContext(lt),v=J.useContext(ct).navigator,O=v.encodeLocation?v.encodeLocation(p).pathname:p.pathname,y=m.pathname,k=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;o||(y=y.toLowerCase(),k=k?k.toLowerCase():null,O=O.toLowerCase());var b,S=y===O||!u&&y.startsWith(O)&&"/"===y.charAt(O.length),x=null!=k&&(k===O||!u&&k.startsWith(O)&&"/"===k.charAt(O.length)),w=S?r:void 0;b="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(Ut,Zt({},d,{"aria-current":w,className:b,ref:t,style:T,to:h}),"function"===typeof f?f({isActive:S,isPending:x}):f)}));var Xt,Ht;function Wt(e){var t=J.useRef(It(e)),n=J.useRef(!1),r=gt(),i=J.useMemo((function(){return function(e,t){var n=It(e);if(t){var r,i=(0,ne.Z)(t.keys());try{var o=function(){var e=r.value;n.has(e)||t.getAll(e).forEach((function(t){n.append(e,t)}))};for(i.s();!(r=i.n()).done;)o()}catch(a){i.e(a)}finally{i.f()}}return n}(r.search,n.current?null:t.current)}),[r.search]),o=vt(),a=J.useCallback((function(e,t){var r=It("function"===typeof e?e(i):e);n.current=!0,o("?"+r,t)}),[o,i]);return[i,a]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(Xt||(Xt={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Ht||(Ht={}));function Yt(){return Yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var Vt=n(9265),Gt=["className","prefixCls","element","top","size","strokeWidth","smooth","hideProgress","children"],Jt={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"},Kt={display:"block",transform:"rotate(-90deg)"},en={transition:"stroke-dashoffset 0.3s linear 0s"},tn={position:"absolute",top:0,display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center",color:"#fff",fontSize:12},nn=document.documentElement;function rn(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?nn: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=qt(e,Gt),y=(0,J.useRef)(null),k=[n,i].filter(Boolean).join(" "),b=Object.assign({},Jt,{position:a===nn?"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||nn,n=t.clientHeight,r=t.scrollHeight,i=t.scrollTop;A(w-w*(i/(r-n))),y.current&&l>0&&(y.current.style.opacity=i>l?"1":"0")};(0,J.useEffect)((function(){var e=a===nn?document:a;return e&&e.addEventListener("scroll",P,{passive:!0}),function(){e&&e.removeEventListener("scroll",P)}}),[a]);return(0,Vt.jsxs)("div",Yt({className:k,ref:y},O,{onClick:function(e){a.scrollTo({top:0,behavior:p?"smooth":"auto"})},style:b,children:[!g&&(0,Vt.jsxs)("svg",{viewBox:"0 0 "+c+" "+c,width:c,height:c,focusable:"false",style:Kt,children:[(0,Vt.jsx)("circle",{fill:"rgb(0 0 0 / 75%)",stroke:"rgb(200 200 200 / 85%)",strokeWidth:f,r:x,cx:S,cy:S}),(0,Vt.jsx)("circle",{fill:"none",stroke:"rgb(0 0 0 / 50%)",strokeWidth:f,r:x,cx:S,cy:S,strokeDasharray:w,strokeDashoffset:E,style:en})]}),v&&(0,Vt.jsx)("div",{style:tn,children:v})]}))}var on=n(189),an=n(4649),sn={data:""},ln=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||sn},un=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,cn=/\/\*[^]*?\*\/| +/g,hn=/\n+/g,fn=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},dn={},pn=function e(t){if("object"==typeof t){var n="";for(var r in t)n+=r+e(t[r]);return n}return t},mn=function(e,t,n,r,i){var o=pn(e),a=dn[o]||(dn[o]=function(e){for(var t=0,n=11;t>>0;return"go"+n}(o));if(!dn[a]){var s=o!==e?e:function(e){for(var t,n,r=[{}];t=un.exec(e.replace(cn,""));)t[4]?r.shift():t[3]?(n=t[3].replace(hn," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(hn," ").trim();return r[0]}(e);dn[a]=fn(i?(0,an.Z)({},"@keyframes "+a,s):s,n?"":"."+a)}var l=n&&dn.g?dn.g:null;return n&&(dn.g=dn[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)}(dn[a],t,r,l),a},gn=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?"":fn(a,""):!1===a?"":a}return e+r+(null==o?"":o)}),"")};function vn(e){var t=this||{},n=e.call?e(t.p):e;return mn(n.unshift?n.raw?gn(n,[].slice.call(arguments,1),t.p):n.reduce((function(e,n){return Object.assign(e,n&&n.call?n(t.p):n)}),{}):n,ln(t.target),t.g,t.o,t.k)}vn.bind({g:1});var On,yn,kn,bn,Sn,xn,wn,Tn,Cn,En,An,Pn,Qn,_n,Dn,Nn,Rn,Zn,Mn,In=vn.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:yn&&yn()},s),n.o=/ *go\d+/.test(l),s.className=vn.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);var u=e;return e[0]&&(u=s.as||e,delete s.as),kn&&u[0]&&kn(s),On(u,s)}return t?t(i):i}}var Ln=function(e,t){return function(e){return"function"==typeof e}(e)?e(t):e},Fn=function(){var e=0;return function(){return(++e).toString()}}(),Bn=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}}(),jn=new Map,Un=function(e){if(!jn.has(e)){var t=setTimeout((function(){jn.delete(e),Wn({type:4,toastId:e})}),1e3);jn.set(e,t)}},zn=function e(t,n){switch(n.type){case 0:return(0,on.Z)((0,on.Z)({},t),{},{toasts:[n.toast].concat((0,re.Z)(t.toasts)).slice(0,20)});case 1:return n.toast.id&&function(e){var t=jn.get(e);t&&clearTimeout(t)}(n.toast.id),(0,on.Z)((0,on.Z)({},t),{},{toasts:t.toasts.map((function(e){return e.id===n.toast.id?(0,on.Z)((0,on.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?Un(i):t.toasts.forEach((function(e){Un(e.id)})),(0,on.Z)((0,on.Z)({},t),{},{toasts:t.toasts.map((function(e){return e.id===i||void 0===i?(0,on.Z)((0,on.Z)({},e),{},{visible:!1}):e}))});case 4:return void 0===n.toastId?(0,on.Z)((0,on.Z)({},t),{},{toasts:[]}):(0,on.Z)((0,on.Z)({},t),{},{toasts:t.toasts.filter((function(e){return e.id!==n.toastId}))});case 5:return(0,on.Z)((0,on.Z)({},t),{},{pausedAt:n.time});case 6:var o=n.time-(t.pausedAt||0);return(0,on.Z)((0,on.Z)({},t),{},{pausedAt:void 0,toasts:t.toasts.map((function(e){return(0,on.Z)((0,on.Z)({},e),{},{pauseDuration:e.pauseDuration+o})}))})}},Xn=[],Hn={toasts:[],pausedAt:void 0},Wn=function(e){Hn=zn(Hn,e),Xn.forEach((function(e){e(Hn)}))},Yn={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},qn=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,on.Z)((0,on.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)||Fn()})}(t,e,n);return Wn({type:2,toast:r}),r.id}},Vn=function(e,t){return qn("blank")(e,t)};Vn.error=qn("error"),Vn.success=qn("success"),Vn.loading=qn("loading"),Vn.custom=qn("custom"),Vn.dismiss=function(e){Wn({type:3,toastId:e})},Vn.remove=function(e){return Wn({type:4,toastId:e})},Vn.promise=function(e,t,n){var r=Vn.loading(t.loading,(0,on.Z)((0,on.Z)({},n),null==n?void 0:n.loading));return e.then((function(e){return Vn.success(Ln(t.success,e),(0,on.Z)((0,on.Z)({id:r},n),null==n?void 0:n.success)),e})).catch((function(e){Vn.error(Ln(t.error,e),(0,on.Z)((0,on.Z)({id:r},n),null==n?void 0:n.error))})),e};var Gn=function(e,t){Wn({type:1,toast:{id:e,height:t}})},Jn=function(){Wn({type:5,time:Date.now()})},Kn=function(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,J.useState)(Hn),n=(0,te.Z)(t,2),r=n[0],i=n[1];(0,J.useEffect)((function(){return Xn.push(i),function(){var e=Xn.indexOf(i);e>-1&&Xn.splice(e,1)}}),[r]);var o=r.toasts.map((function(t){var n,r;return(0,on.Z)((0,on.Z)((0,on.Z)((0,on.Z)({},e),e[t.type]),t),{},{duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||Yn[t.type],style:(0,on.Z)((0,on.Z)((0,on.Z)({},e.style),null==(r=e[t.type])?void 0:r.style),t.style)})}));return(0,on.Z)((0,on.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 Vn.dismiss(t.id)}),n);t.visible&&Vn.dismiss(t.id)}}));return function(){t.forEach((function(e){return e&&clearTimeout(e)}))}}}),[n,r]);var i=(0,J.useCallback)((function(){r&&Wn({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=Kn(i),c=u.toasts,h=u.handlers;return J.createElement("div",{style:(0,on.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,on.Z)((0,on.Z)({left:0,right:0,display:"flex",position:"absolute",transition:Bn()?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(yr,{id:e.id,key:e.id,onHeightUpdate:h.updateHeight,className:e.visible?kr:"",style:i},"custom"===e.type?Ln(e.message,e):a?a(e):J.createElement(Or,{toast:e,position:n}))})))},Sr=Vn,xr=n(2471),wr=n(7361),Tr=n.n(wr);var Cr=function(e){function t(e,r,l,u,f){for(var d,p,m,g,k,S=0,x=0,w=0,T=0,C=0,D=0,R=m=d=0,M=0,I=0,$=0,L=0,F=l.length,B=F-1,j="",U="",z="",X="";Md)&&(L=(j=j.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),r=[r],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var Xr=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.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;)(i<<=1)<0&&zr(16,""+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=Yr&&(Yr=t+1),Hr.set(e,t),Wr.set(t,e)},Jr="style["+Fr+'][data-styled-version="5.3.9"]',Kr=new RegExp("^"+Fr+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),ei=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(Fr))return r}}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(Fr,"active"),r.setAttribute("data-styled-version","5.3.9");var a=ni();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},ii=function(){function e(e){var t=this.element=ri(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(u+=e+",")})),r+=""+s+l+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),ci=/(a)(d)/gi,hi=function(e){return String.fromCharCode(e+(e>25?39:97))};function fi(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=hi(t%52)+n;return(hi(t%52)+n).replace(ci,"$1-$2")}var di=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},pi=function(e){return di(5381,e)};function mi(e){for(var t=0;t>>0);if(!t.hasNameForId(r,a)){var s=n(o,"."+a,void 0,r);t.insertRules(r,a,s)}i.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,u=di(this.baseHash,n.hash),c="",h=0;h>>0);if(!t.hasNameForId(r,m)){var g=n(c,"."+m,void 0,r);t.insertRules(r,m,g)}i.push(m)}}return i.join(" ")},e}(),Oi=/^\s*\/\/.*$/gm,yi=[":","[",".","#"];function ki(e){var t,n,r,i,o=void 0===e?Mr:e,a=o.options,s=void 0===a?Mr:a,l=o.plugins,u=void 0===l?Zr:l,c=new Cr(s),h=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,s,l,u,c,h){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(i[0]+r),"";default:return r+(0===h?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){h.push(e)})),d=function(e,r,o){return 0===r&&-1!==yi.indexOf(o[n.length])||o.match(i)?e:"."+t};function p(e,o,a,s){void 0===s&&(s="&");var l=e.replace(Oi,""),u=o&&a?a+" "+o+" { "+l+" }":l;return t=s,n=o,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),c(a||!o?"":o,u)}return c.use([].concat(u,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,d))},f,function(e){if(-2===e){var t=h;return h=[],t}}])),p.hash=u.length?u.reduce((function(e,t){return t.name||zr(15),di(e,t.name)}),5381).toString():"",p}var bi=J.createContext(),Si=(bi.Consumer,J.createContext()),xi=(Si.Consumer,new ui),wi=ki();function Ti(){return(0,J.useContext)(bi)||xi}function Ci(){return(0,J.useContext)(Si)||wi}function Ei(e){var t=(0,J.useState)(e.stylisPlugins),n=t[0],r=t[1],i=Ti(),o=(0,J.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),a=(0,J.useMemo)((function(){return ki({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,J.useEffect)((function(){Tr()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),J.createElement(bi.Provider,{value:o},J.createElement(Si.Provider,{value:a},e.children))}var Ai=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=wi);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return zr(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=wi),this.name+e.hash},e}(),Pi=/([A-Z])/,Qi=/([A-Z])/g,_i=/^ms-/,Di=function(e){return"-"+e.toLowerCase()};function Ni(e){return Pi.test(e)?e.replace(Qi,Di).replace(_i,"-ms-"):e}var Ri=function(e){return null==e||!1===e||""===e};function Zi(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,Fi=/(^-|-$)/g;function Bi(e){return e.replace(Li,"-").replace(Fi,"")}var ji=function(e){return fi(pi(e)>>>0)};function Ui(e){return"string"==typeof e&&!0}var zi=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Xi=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Hi(e,t,n){var r=e[n];zi(t)&&zi(r)?Wi(r,t):e[n]=t}function Wi(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(i[n]=e[n]);return i}(t,["componentId"]),o=r&&r+"-"+(Ui(e)?e:Bi($r(e)));return Vi(e,Dr({},i,{attrs:f,componentId:o}),n)},Object.defineProperty(p,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Wi({},e.defaultProps,t):t}}),Object.defineProperty(p,"toString",{value:function(){return"."+p.styledComponentId}}),i&&_r()(p,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),p}var Gi=function(e){return function e(t,n,r){if(void 0===r&&(r=Mr),!(0,xr.isValidElementType)(n))return zr(1,String(n));var i=function(){return t(n,r,Ii.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,n,Dr({},r,{},i))},i.attrs=function(i){return e(t,n,Dr({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(Vi,e)};["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","marquee","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","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Gi[e]=Gi(e)}));var Ji=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=mi(e),ui.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var i=r(Zi(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&ui.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();if(!t)return"";var n=ni();return""},this.getStyleTags=function(){return e.sealed?zr(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return zr(2);var n=((t={})[Fr]="",t["data-styled-version"]="5.3.9",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=ni();return r&&(n.nonce=r),[J.createElement("style",Dr({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new ui({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?zr(2):J.createElement(Ei,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return zr(3)}}();var Ki=Gi,eo="undefined"===typeof window||"Deno"in window;function to(){}function no(e){return"number"===typeof e&&e>=0&&e!==1/0}function ro(e,t){return Math.max(e+(t||0)-Date.now(),0)}function io(e,t,n){return Oo(e)?"function"===typeof t?(0,on.Z)((0,on.Z)({},n),{},{queryKey:e,queryFn:t}):(0,on.Z)((0,on.Z)({},t),{},{queryKey:e}):e}function oo(e,t,n){return Oo(e)?[(0,on.Z)((0,on.Z)({},t),{},{queryKey:e}),n]:[e||{},t]}function ao(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(Oo(s))if(i){if(t.queryHash!==lo(s,t.options))return!1}else if(!co(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 so(e,t){var n=e.exact,r=e.fetching,i=e.predicate,o=e.mutationKey;if(Oo(o)){if(!t.options.mutationKey)return!1;if(n){if(uo(t.options.mutationKey)!==uo(o))return!1}else if(!co(t.options.mutationKey,o))return!1}return("boolean"!==typeof r||"loading"===t.state.status===r)&&!(i&&!i(t))}function lo(e,t){return((null==t?void 0:t.queryKeyHashFn)||uo)(e)}function uo(e){return JSON.stringify(e,(function(e,t){return go(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}))}function co(e,t){return ho(e,t)}function ho(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some((function(n){return!ho(e[n],t[n])})))}function fo(e,t){if(e===t)return e;var n=mo(e)&&mo(t);if(n||go(e)&&go(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}(),Co=new(function(e){(0,ae.Z)(n,e);var t=(0,se.Z)(n);function n(){var e;return(0,ie.Z)(this,n),(e=t.call(this)).setup=function(e){if(!eo&&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,oe.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,e&&this.onFocus()}},{key:"onFocus",value:function(){this.listeners.forEach((function(e){e()}))}},{key:"isFocused",value:function(){return"boolean"===typeof this.focused?this.focused:"undefined"===typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}]),n}(To)),Eo=new(function(e){(0,ae.Z)(n,e);var t=(0,se.Z)(n);function n(){var e;return(0,ie.Z)(this,n),(e=t.call(this)).setup=function(e){if(!eo&&window.addEventListener){var t=function(){return e()};return window.addEventListener("online",t,!1),window.addEventListener("offline",t,!1),function(){window.removeEventListener("online",t),window.removeEventListener("offline",t)}}},e}return(0,oe.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,e&&this.onOnline()}},{key:"onOnline",value:function(){this.listeners.forEach((function(e){e()}))}},{key:"isOnline",value:function(){return"boolean"===typeof this.online?this.online:"undefined"===typeof navigator||"undefined"===typeof navigator.onLine||navigator.onLine}}]),n}(To));function Ao(e){return Math.min(1e3*Math.pow(2,e),3e4)}function Po(e){return"online"!==(null!=e?e:"online")||Eo.isOnline()}var Qo=(0,oe.Z)((function e(t){(0,ie.Z)(this,e),this.revert=null==t?void 0:t.revert,this.silent=null==t?void 0:t.silent}));function _o(e){return e instanceof Qo}function Do(e){var t,n,r,i=!1,o=0,a=!1,s=new Promise((function(e,t){n=e,r=t})),l=function(){return!Co.isFocused()||"always"!==e.networkMode&&!Eo.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:Ao,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||!ro(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){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}},{key:"removeObserver",value:function(e){-1!==this.observers.indexOf(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")}};(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;(_o(e)&&e.silent||i.dispatch({type:"error",error:e}),_o(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=Do({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("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,on.Z)((0,on.Z)({},n),{},{fetchFailureCount:e.failureCount,fetchFailureReason:e.error});case"pause":return(0,on.Z)((0,on.Z)({},n),{},{fetchStatus:"paused"});case"continue":return(0,on.Z)((0,on.Z)({},n),{},{fetchStatus:"fetching"});case"fetch":return(0,on.Z)((0,on.Z)({},n),{},{fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(r=e.meta)?r:null,fetchStatus:Po(t.options.networkMode)?"fetching":"paused"},!n.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,on.Z)((0,on.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 _o(o)&&o.revert&&t.revertState?(0,on.Z)({},t.revertState):(0,on.Z)((0,on.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,on.Z)((0,on.Z)({},n),{},{isInvalidated:!0});case"setState":return(0,on.Z)((0,on.Z)({},n),e.state)}}(this.state),wo.batch((function(){t.observers.forEach((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"updated",action:e})}))}}]),n}(No);var Zo=function(e){(0,ae.Z)(n,e);var t=(0,se.Z)(n);function n(e){var r;return(0,ie.Z)(this,n),(r=t.call(this)).config=e||{},r.queries=[],r.queriesMap={},r}return(0,oe.Z)(n,[{key:"build",value:function(e,t,n){var r,i=t.queryKey,o=null!=(r=t.queryHash)?r:lo(i,t),a=this.get(o);return a||(a=new Ro({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;wo.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=oo(e,t),r=(0,te.Z)(n,1)[0];return"undefined"===typeof r.exact&&(r.exact=!0),this.queries.find((function(e){return ao(r,e)}))}},{key:"findAll",value:function(e,t){var n=oo(e,t),r=(0,te.Z)(n,1)[0];return Object.keys(r).length>0?this.queries.filter((function(e){return ao(r,e)})):this.queries}},{key:"notify",value:function(e){var t=this;wo.batch((function(){t.listeners.forEach((function(t){t(e)}))}))}},{key:"onFocus",value:function(){var e=this;wo.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))}},{key:"onOnline",value:function(){var e=this;wo.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))}}]),n}(To),Mo=n(3940);function Io(){Io=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(A){l=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var o=t&&t.prototype instanceof f?t:f,a=Object.create(o.prototype),s=new T(i||[]);return r(a,"_invoke",{value:b(e,n,s)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(A){return{type:"throw",arg:A}}}e.wrap=u;var h={};function f(){}function d(){}function p(){}var m={};l(m,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(C([])));v&&v!==t&&n.call(v,o)&&(m=v);var O=p.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function i(r,o,a,s){var l=c(e[r],e,o);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"==(0,Mo.Z)(h)&&n.call(h,"__await")?t.resolve(h.__await).then((function(e){i("next",e,a,s)}),(function(e){i("throw",e,a,s)})):t.resolve(h).then((function(e){u.value=e,a(u)}),(function(e){return i("throw",e,a,s)}))}s(l.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function b(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return E()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=S(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=c(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,h;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function x(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function C(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),h}},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;w(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}function $o(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 Lo=function(e){(0,ae.Z)(n,e);var t=(0,se.Z)(n);function n(e){var r;return(0,ie.Z)(this,n),(r=t.call(this)).defaultOptions=e.defaultOptions,r.mutationId=e.mutationId,r.mutationCache=e.mutationCache,r.logger=e.logger||xo,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,oe.Z)(n,[{key:"setOptions",value:function(e){this.options=(0,on.Z)((0,on.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){-1===this.observers.indexOf(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=Io().mark((function e(){var t,n,r,i,o,a,s,l,u,c,h,f,d,p,m,g,v,O,y,k,b,S,x,w,T=this;return Io().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=function(){var e;return T.retryer=Do({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=(k=this.options).onError)?void 0:y.call(k,e.t0,this.state.variables,this.state.context);case 34:return e.next=36,null==(b=(S=this.mutationCache.config).onSettled)?void 0:b.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){$o(o,r,i,a,s,"next",e)}function s(e){$o(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,on.Z)((0,on.Z)({},n),{},{failureCount:e.failureCount,failureReason:e.error});case"pause":return(0,on.Z)((0,on.Z)({},n),{},{isPaused:!0});case"continue":return(0,on.Z)((0,on.Z)({},n),{},{isPaused:!1});case"loading":return(0,on.Z)((0,on.Z)({},n),{},{context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Po(t.options.networkMode),status:"loading",variables:e.variables});case"success":return(0,on.Z)((0,on.Z)({},n),{},{data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return(0,on.Z)((0,on.Z)({},n),{},{data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"});case"setState":return(0,on.Z)((0,on.Z)({},n),e.state)}}(this.state),wo.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify({mutation:t,type:"updated",action:e})}))}}]),n}(No);var Fo=function(e){(0,ae.Z)(n,e);var t=(0,se.Z)(n);function n(e){var r;return(0,ie.Z)(this,n),(r=t.call(this)).config=e||{},r.mutations=[],r.mutationId=0,r}return(0,oe.Z)(n,[{key:"build",value:function(e,t,n){var r=new Lo({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;wo.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 so(e,t)}))}},{key:"findAll",value:function(e){return this.mutations.filter((function(t){return so(e,t)}))}},{key:"notify",value:function(e){var t=this;wo.batch((function(){t.listeners.forEach((function(t){t(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 wo.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(to)}))}),Promise.resolve())}))})).then((function(){t.resuming=void 0})),this.resuming}}]),n}(To);function Bo(){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")},O=function(e,t,n,r){return m=r?[t].concat((0,re.Z)(m)):[].concat((0,re.Z)(m),[t]),r?[n].concat((0,re.Z)(e)):[].concat((0,re.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 k="undefined"!==typeof c,b=k?c:jo(e.options,d);s=y(d,k,b)}else if(f){var S="undefined"!==typeof c,x=S?c:Uo(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]:jo(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,ie.Z)(this,e),this.queryCache=t.queryCache||new Zo,this.mutationCache=t.mutationCache||new Fo,this.logger=t.logger||xo,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}return(0,oe.Z)(e,[{key:"mount",value:function(){var e=this;this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=Co.subscribe((function(){Co.isFocused()&&(e.resumePausedMutations(),e.queryCache.onFocus())})),this.unsubscribeOnline=Eo.subscribe((function(){Eo.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=oo(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,on.Z)((0,on.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=io(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=io(e),a=this.defaultQueryOptions(o);return this.queryCache.build(this,a).setData(i,(0,on.Z)((0,on.Z)({},n),{},{manual:!0}))}}},{key:"setQueriesData",value:function(e,t,n){var r=this;return wo.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=oo(e,t),r=(0,te.Z)(n,1)[0],i=this.queryCache;wo.batch((function(){i.findAll(r).forEach((function(e){i.remove(e)}))}))}},{key:"resetQueries",value:function(e,t,n){var r=this,i=oo(e,t,n),o=(0,te.Z)(i,2),a=o[0],s=o[1],l=this.queryCache,u=(0,on.Z)({type:"active"},a);return wo.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=oo(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=wo.batch((function(){return r.queryCache.findAll(a).map((function(e){return e.cancel(l)}))}));return Promise.all(u).then(to).catch(to)}},{key:"invalidateQueries",value:function(e,t,n){var r=this,i=oo(e,t,n),o=(0,te.Z)(i,2),a=o[0],s=o[1];return wo.batch((function(){var e,t;if(r.queryCache.findAll(a).forEach((function(e){e.invalidate()})),"none"===a.refetchType)return Promise.resolve();var n=(0,on.Z)((0,on.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=oo(e,t,n),o=(0,te.Z)(i,2),a=o[0],s=o[1],l=wo.batch((function(){return r.queryCache.findAll(a).filter((function(e){return!e.isDisabled()})).map((function(e){var t;return e.fetch(void 0,(0,on.Z)((0,on.Z)({},s),{},{cancelRefetch:null==(t=null==s?void 0:s.cancelRefetch)||t,meta:{refetchPage:a.refetchPage}}))}))})),u=Promise.all(l).then(to);return null!=s&&s.throwOnError||(u=u.catch(to)),u}},{key:"fetchQuery",value:function(e,t,n){var r=io(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(to).catch(to)}},{key:"fetchInfiniteQuery",value:function(e,t,n){var r=io(e,t,n);return r.behavior=Bo(),this.fetchQuery(r)}},{key:"prefetchInfiniteQuery",value:function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(to).catch(to)}},{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 uo(e)===uo(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 co(e,t.queryKey)}));return null==t?void 0:t.defaultOptions}}},{key:"setMutationDefaults",value:function(e,t){var n=this.mutationDefaults.find((function(t){return uo(e)===uo(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 co(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,on.Z)((0,on.Z)((0,on.Z)((0,on.Z)({},this.defaultOptions.queries),this.getQueryDefaults(null==e?void 0:e.queryKey)),e),{},{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=lo(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,on.Z)((0,on.Z)((0,on.Z)((0,on.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}(),Xo=J.createContext(void 0),Ho=J.createContext(!1);function Wo(e,t){return e||(t&&"undefined"!==typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Xo),window.ReactQueryClientContext):Xo)}var Yo,qo=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).context,t=J.useContext(Wo(e,J.useContext(Ho)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Vo=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=Wo(r,o);return J.createElement(Ho.Provider,{value:!r&&o},J.createElement(a.Provider,{value:t},n))},Go=(n(390),["title","titleId"]);function Jo(){return Jo=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 ea(e,t){var n=e.title,r=e.titleId,i=Ko(e,Go);return J.createElement("svg",Jo({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,Yo||(Yo=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 ta,na=J.forwardRef(ea),ra=(n.p,["title","titleId"]);function ia(){return ia=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 aa(e,t){var n=e.title,r=e.titleId,i=oa(e,ra);return J.createElement("svg",ia({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,ta||(ta=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 sa,la,ua,ca,ha,fa,da,pa,ma,ga=J.forwardRef(aa),va=(n.p,["title","titleId"]);function Oa(){return Oa=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 ka(e,t){var n=e.title,r=e.titleId,i=ya(e,va);return J.createElement("svg",Oa({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,sa||(sa=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"}))),la||(la=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"}))),ua||(ua=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"}))),ca||(ca=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"}))),ha||(ha=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"}))),fa||(fa=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"}))),da||(da=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"}))),pa||(pa=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"}))),ma||(ma=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 ba=J.forwardRef(ka),Sa=(n.p,n(5506)),xa=n(9973);function wa(e){return new xa.ri(xa.il.define(e))}function Ta(e){return n.e(4522).then(n.bind(n,4522)).then((function(t){return t.sql({dialect:t[e]})}))}var Ca=[xa.c6.of({name:"C",extensions:["c","h","ino"],load:function(){return n.e(2106).then(n.bind(n,2106)).then((function(e){return e.cpp()}))}}),xa.c6.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load:function(){return n.e(2106).then(n.bind(n,2106)).then((function(e){return e.cpp()}))}}),xa.c6.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load:function(){return Ta("Cassandra")}}),xa.c6.of({name:"CSS",extensions:["css"],load:function(){return Promise.resolve().then(n.bind(n,4933)).then((function(e){return e.css()}))}}),xa.c6.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load:function(){return Promise.resolve().then(n.bind(n,3330)).then((function(e){return e.html()}))}}),xa.c6.of({name:"Java",extensions:["java"],load:function(){return n.e(5815).then(n.bind(n,5815)).then((function(e){return e.java()}))}}),xa.c6.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load:function(){return Promise.resolve().then(n.bind(n,4381)).then((function(e){return e.javascript()}))}}),xa.c6.of({name:"JSON",alias:["json5"],extensions:["json","map"],load:function(){return n.e(7537).then(n.bind(n,7537)).then((function(e){return e.json()}))}}),xa.c6.of({name:"JSX",extensions:["jsx"],load:function(){return Promise.resolve().then(n.bind(n,4381)).then((function(e){return e.javascript({jsx:!0})}))}}),xa.c6.of({name:"MariaDB SQL",load:function(){return Ta("MariaSQL")}}),xa.c6.of({name:"Markdown",extensions:["md","markdown","mkd"],load:function(){return Promise.resolve().then(n.bind(n,5506)).then((function(e){return e.markdown()}))}}),xa.c6.of({name:"MS SQL",load:function(){return Ta("MSSQL")}}),xa.c6.of({name:"MySQL",load:function(){return Ta("MySQL")}}),xa.c6.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load:function(){return n.e(4064).then(n.bind(n,4064)).then((function(e){return e.php()}))}}),xa.c6.of({name:"PLSQL",extensions:["pls"],load:function(){return Ta("PLSQL")}}),xa.c6.of({name:"PostgreSQL",load:function(){return Ta("PostgreSQL")}}),xa.c6.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load:function(){return n.e(377).then(n.bind(n,377)).then((function(e){return e.python()}))}}),xa.c6.of({name:"Rust",extensions:["rs"],load:function(){return n.e(1950).then(n.bind(n,1950)).then((function(e){return e.rust()}))}}),xa.c6.of({name:"SQL",extensions:["sql"],load:function(){return Ta("StandardSQL")}}),xa.c6.of({name:"SQLite",load:function(){return Ta("SQLite")}}),xa.c6.of({name:"TSX",extensions:["tsx"],load:function(){return Promise.resolve().then(n.bind(n,4381)).then((function(e){return e.javascript({jsx:!0,typescript:!0})}))}}),xa.c6.of({name:"TypeScript",alias:["ts"],extensions:["ts"],load:function(){return Promise.resolve().then(n.bind(n,4381)).then((function(e){return e.javascript({typescript:!0})}))}}),xa.c6.of({name:"WebAssembly",extensions:["wat","wast"],load:function(){return n.e(3235).then(n.bind(n,3235)).then((function(e){return e.wast()}))}}),xa.c6.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load:function(){return n.e(7859).then(n.bind(n,7859)).then((function(e){return e.xml()}))}}),xa.c6.of({name:"APL",extensions:["dyalog","apl"],load:function(){return n.e(5758).then(n.bind(n,5758)).then((function(e){return wa(e.apl)}))}}),xa.c6.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load:function(){return n.e(7025).then(n.bind(n,7025)).then((function(e){return wa(e.asciiArmor)}))}}),xa.c6.of({name:"ASN.1",extensions:["asn","asn1"],load:function(){return n.e(6968).then(n.bind(n,6968)).then((function(e){return wa(e.asn1({}))}))}}),xa.c6.of({name:"Asterisk",filename:/^extensions\.conf$/i,load:function(){return n.e(7826).then(n.bind(n,7826)).then((function(e){return wa(e.asterisk)}))}}),xa.c6.of({name:"Brainfuck",extensions:["b","bf"],load:function(){return n.e(7136).then(n.bind(n,7136)).then((function(e){return wa(e.brainfuck)}))}}),xa.c6.of({name:"Cobol",extensions:["cob","cpy"],load:function(){return n.e(285).then(n.bind(n,285)).then((function(e){return wa(e.cobol)}))}}),xa.c6.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load:function(){return n.e(7279).then(n.bind(n,7279)).then((function(e){return wa(e.csharp)}))}}),xa.c6.of({name:"Clojure",extensions:["clj","cljc","cljx"],load:function(){return n.e(8158).then(n.bind(n,8158)).then((function(e){return wa(e.clojure)}))}}),xa.c6.of({name:"ClojureScript",extensions:["cljs"],load:function(){return n.e(8158).then(n.bind(n,8158)).then((function(e){return wa(e.clojure)}))}}),xa.c6.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load:function(){return n.e(8785).then(n.bind(n,8785)).then((function(e){return wa(e.gss)}))}}),xa.c6.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load:function(){return n.e(617).then(n.bind(n,617)).then((function(e){return wa(e.cmake)}))}}),xa.c6.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load:function(){return n.e(3378).then(n.bind(n,3378)).then((function(e){return wa(e.coffeeScript)}))}}),xa.c6.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load:function(){return n.e(2369).then(n.bind(n,2369)).then((function(e){return wa(e.commonLisp)}))}}),xa.c6.of({name:"Cypher",extensions:["cyp","cypher"],load:function(){return n.e(7782).then(n.bind(n,7782)).then((function(e){return wa(e.cypher)}))}}),xa.c6.of({name:"Cython",extensions:["pyx","pxd","pxi"],load:function(){return n.e(8110).then(n.bind(n,8110)).then((function(e){return wa(e.cython)}))}}),xa.c6.of({name:"Crystal",extensions:["cr"],load:function(){return n.e(9707).then(n.bind(n,9707)).then((function(e){return wa(e.crystal)}))}}),xa.c6.of({name:"D",extensions:["d"],load:function(){return n.e(6145).then(n.bind(n,6145)).then((function(e){return wa(e.d)}))}}),xa.c6.of({name:"Dart",extensions:["dart"],load:function(){return n.e(7279).then(n.bind(n,7279)).then((function(e){return wa(e.dart)}))}}),xa.c6.of({name:"diff",extensions:["diff","patch"],load:function(){return n.e(546).then(n.bind(n,546)).then((function(e){return wa(e.diff)}))}}),xa.c6.of({name:"Dockerfile",filename:/^Dockerfile$/,load:function(){return n.e(6601).then(n.bind(n,6601)).then((function(e){return wa(e.dockerFile)}))}}),xa.c6.of({name:"DTD",extensions:["dtd"],load:function(){return n.e(9428).then(n.bind(n,9428)).then((function(e){return wa(e.dtd)}))}}),xa.c6.of({name:"Dylan",extensions:["dylan","dyl","intr"],load:function(){return n.e(8556).then(n.bind(n,8556)).then((function(e){return wa(e.dylan)}))}}),xa.c6.of({name:"EBNF",load:function(){return n.e(7791).then(n.bind(n,7791)).then((function(e){return wa(e.ebnf)}))}}),xa.c6.of({name:"ECL",extensions:["ecl"],load:function(){return n.e(8879).then(n.bind(n,8879)).then((function(e){return wa(e.ecl)}))}}),xa.c6.of({name:"edn",extensions:["edn"],load:function(){return n.e(8158).then(n.bind(n,8158)).then((function(e){return wa(e.clojure)}))}}),xa.c6.of({name:"Eiffel",extensions:["e"],load:function(){return n.e(2307).then(n.bind(n,2307)).then((function(e){return wa(e.eiffel)}))}}),xa.c6.of({name:"Elm",extensions:["elm"],load:function(){return n.e(8662).then(n.bind(n,8662)).then((function(e){return wa(e.elm)}))}}),xa.c6.of({name:"Erlang",extensions:["erl"],load:function(){return n.e(70).then(n.bind(n,70)).then((function(e){return wa(e.erlang)}))}}),xa.c6.of({name:"Esper",load:function(){return n.e(3455).then(n.bind(n,3455)).then((function(e){return wa(e.esper)}))}}),xa.c6.of({name:"Factor",extensions:["factor"],load:function(){return n.e(4586).then(n.bind(n,4586)).then((function(e){return wa(e.factor)}))}}),xa.c6.of({name:"FCL",load:function(){return n.e(4964).then(n.bind(n,4964)).then((function(e){return wa(e.fcl)}))}}),xa.c6.of({name:"Forth",extensions:["forth","fth","4th"],load:function(){return n.e(5194).then(n.bind(n,5194)).then((function(e){return wa(e.forth)}))}}),xa.c6.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load:function(){return n.e(8935).then(n.bind(n,8935)).then((function(e){return wa(e.fortran)}))}}),xa.c6.of({name:"F#",alias:["fsharp"],extensions:["fs"],load:function(){return n.e(6078).then(n.bind(n,6078)).then((function(e){return wa(e.fSharp)}))}}),xa.c6.of({name:"Gas",extensions:["s"],load:function(){return n.e(5374).then(n.bind(n,5374)).then((function(e){return wa(e.gas)}))}}),xa.c6.of({name:"Gherkin",extensions:["feature"],load:function(){return n.e(6900).then(n.bind(n,6900)).then((function(e){return wa(e.gherkin)}))}}),xa.c6.of({name:"Go",extensions:["go"],load:function(){return n.e(8846).then(n.bind(n,8846)).then((function(e){return wa(e.go)}))}}),xa.c6.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load:function(){return n.e(5905).then(n.bind(n,5905)).then((function(e){return wa(e.groovy)}))}}),xa.c6.of({name:"Haskell",extensions:["hs"],load:function(){return n.e(624).then(n.bind(n,624)).then((function(e){return wa(e.haskell)}))}}),xa.c6.of({name:"Haxe",extensions:["hx"],load:function(){return n.e(5740).then(n.bind(n,5740)).then((function(e){return wa(e.haxe)}))}}),xa.c6.of({name:"HXML",extensions:["hxml"],load:function(){return n.e(5740).then(n.bind(n,5740)).then((function(e){return wa(e.hxml)}))}}),xa.c6.of({name:"HTTP",load:function(){return n.e(4604).then(n.bind(n,4604)).then((function(e){return wa(e.http)}))}}),xa.c6.of({name:"IDL",extensions:["pro"],load:function(){return n.e(8610).then(n.bind(n,8610)).then((function(e){return wa(e.idl)}))}}),xa.c6.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load:function(){return n.e(88).then(n.bind(n,88)).then((function(e){return wa(e.jsonld)}))}}),xa.c6.of({name:"Jinja2",extensions:["j2","jinja","jinja2"],load:function(){return n.e(5382).then(n.bind(n,5382)).then((function(e){return wa(e.jinja2)}))}}),xa.c6.of({name:"Julia",extensions:["jl"],load:function(){return n.e(4684).then(n.bind(n,4684)).then((function(e){return wa(e.julia)}))}}),xa.c6.of({name:"Kotlin",extensions:["kt"],load:function(){return n.e(7279).then(n.bind(n,7279)).then((function(e){return wa(e.kotlin)}))}}),xa.c6.of({name:"LESS",extensions:["less"],load:function(){return n.e(8785).then(n.bind(n,8785)).then((function(e){return wa(e.less)}))}}),xa.c6.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load:function(){return n.e(3582).then(n.bind(n,3582)).then((function(e){return wa(e.liveScript)}))}}),xa.c6.of({name:"Lua",extensions:["lua"],load:function(){return n.e(7256).then(n.bind(n,7256)).then((function(e){return wa(e.lua)}))}}),xa.c6.of({name:"mIRC",extensions:["mrc"],load:function(){return n.e(8140).then(n.bind(n,8140)).then((function(e){return wa(e.mirc)}))}}),xa.c6.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load:function(){return n.e(58).then(n.bind(n,9822)).then((function(e){return wa(e.mathematica)}))}}),xa.c6.of({name:"Modelica",extensions:["mo"],load:function(){return n.e(5541).then(n.bind(n,5541)).then((function(e){return wa(e.modelica)}))}}),xa.c6.of({name:"MUMPS",extensions:["mps"],load:function(){return n.e(3510).then(n.bind(n,3510)).then((function(e){return wa(e.mumps)}))}}),xa.c6.of({name:"Mbox",extensions:["mbox"],load:function(){return n.e(9235).then(n.bind(n,9235)).then((function(e){return wa(e.mbox)}))}}),xa.c6.of({name:"Nginx",filename:/nginx.*\.conf$/i,load:function(){return n.e(2321).then(n.bind(n,2321)).then((function(e){return wa(e.nginx)}))}}),xa.c6.of({name:"NSIS",extensions:["nsh","nsi"],load:function(){return n.e(6105).then(n.bind(n,6105)).then((function(e){return wa(e.nsis)}))}}),xa.c6.of({name:"NTriples",extensions:["nt","nq"],load:function(){return n.e(2399).then(n.bind(n,2399)).then((function(e){return wa(e.ntriples)}))}}),xa.c6.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load:function(){return n.e(7279).then(n.bind(n,7279)).then((function(e){return wa(e.objectiveC)}))}}),xa.c6.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load:function(){return n.e(7279).then(n.bind(n,7279)).then((function(e){return wa(e.objectiveCpp)}))}}),xa.c6.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load:function(){return n.e(6078).then(n.bind(n,6078)).then((function(e){return wa(e.oCaml)}))}}),xa.c6.of({name:"Octave",extensions:["m"],load:function(){return n.e(8641).then(n.bind(n,8641)).then((function(e){return wa(e.octave)}))}}),xa.c6.of({name:"Oz",extensions:["oz"],load:function(){return n.e(1527).then(n.bind(n,1527)).then((function(e){return wa(e.oz)}))}}),xa.c6.of({name:"Pascal",extensions:["p","pas"],load:function(){return n.e(7483).then(n.bind(n,7483)).then((function(e){return wa(e.pascal)}))}}),xa.c6.of({name:"Perl",extensions:["pl","pm"],load:function(){return n.e(7902).then(n.bind(n,7902)).then((function(e){return wa(e.perl)}))}}),xa.c6.of({name:"Pig",extensions:["pig"],load:function(){return n.e(3030).then(n.bind(n,3030)).then((function(e){return wa(e.pig)}))}}),xa.c6.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load:function(){return n.e(2281).then(n.bind(n,2281)).then((function(e){return wa(e.powerShell)}))}}),xa.c6.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load:function(){return n.e(9158).then(n.bind(n,9158)).then((function(e){return wa(e.properties)}))}}),xa.c6.of({name:"ProtoBuf",extensions:["proto"],load:function(){return n.e(9529).then(n.bind(n,9529)).then((function(e){return wa(e.protobuf)}))}}),xa.c6.of({name:"Puppet",extensions:["pp"],load:function(){return n.e(8802).then(n.bind(n,8802)).then((function(e){return wa(e.puppet)}))}}),xa.c6.of({name:"Q",extensions:["q"],load:function(){return n.e(732).then(n.bind(n,732)).then((function(e){return wa(e.q)}))}}),xa.c6.of({name:"R",alias:["rscript"],extensions:["r","R"],load:function(){return n.e(5651).then(n.bind(n,5651)).then((function(e){return wa(e.r)}))}}),xa.c6.of({name:"RPM Changes",load:function(){return n.e(5799).then(n.bind(n,5799)).then((function(e){return wa(e.rpmChanges)}))}}),xa.c6.of({name:"RPM Spec",extensions:["spec"],load:function(){return n.e(5799).then(n.bind(n,5799)).then((function(e){return wa(e.rpmSpec)}))}}),xa.c6.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],load:function(){return n.e(3467).then(n.bind(n,3467)).then((function(e){return wa(e.ruby)}))}}),xa.c6.of({name:"SAS",extensions:["sas"],load:function(){return n.e(3850).then(n.bind(n,3850)).then((function(e){return wa(e.sas)}))}}),xa.c6.of({name:"Sass",extensions:["sass"],load:function(){return n.e(4017).then(n.bind(n,4017)).then((function(e){return wa(e.sass)}))}}),xa.c6.of({name:"Scala",extensions:["scala"],load:function(){return n.e(7279).then(n.bind(n,7279)).then((function(e){return wa(e.scala)}))}}),xa.c6.of({name:"Scheme",extensions:["scm","ss"],load:function(){return n.e(4911).then(n.bind(n,4911)).then((function(e){return wa(e.scheme)}))}}),xa.c6.of({name:"SCSS",extensions:["scss"],load:function(){return n.e(8785).then(n.bind(n,8785)).then((function(e){return wa(e.sCSS)}))}}),xa.c6.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load:function(){return n.e(7627).then(n.bind(n,7627)).then((function(e){return wa(e.shell)}))}}),xa.c6.of({name:"Sieve",extensions:["siv","sieve"],load:function(){return n.e(7234).then(n.bind(n,7234)).then((function(e){return wa(e.sieve)}))}}),xa.c6.of({name:"Smalltalk",extensions:["st"],load:function(){return n.e(2340).then(n.bind(n,2340)).then((function(e){return wa(e.smalltalk)}))}}),xa.c6.of({name:"Solr",load:function(){return n.e(2534).then(n.bind(n,2534)).then((function(e){return wa(e.solr)}))}}),xa.c6.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load:function(){return n.e(6078).then(n.bind(n,6078)).then((function(e){return wa(e.sml)}))}}),xa.c6.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load:function(){return n.e(2473).then(n.bind(n,2473)).then((function(e){return wa(e.sparql)}))}}),xa.c6.of({name:"Spreadsheet",alias:["excel","formula"],load:function(){return n.e(294).then(n.bind(n,294)).then((function(e){return wa(e.spreadsheet)}))}}),xa.c6.of({name:"Squirrel",extensions:["nut"],load:function(){return n.e(7279).then(n.bind(n,7279)).then((function(e){return wa(e.squirrel)}))}}),xa.c6.of({name:"Stylus",extensions:["styl"],load:function(){return n.e(1620).then(n.bind(n,1620)).then((function(e){return wa(e.stylus)}))}}),xa.c6.of({name:"Swift",extensions:["swift"],load:function(){return n.e(9007).then(n.bind(n,9007)).then((function(e){return wa(e.swift)}))}}),xa.c6.of({name:"sTeX",load:function(){return n.e(9084).then(n.bind(n,9084)).then((function(e){return wa(e.stex)}))}}),xa.c6.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load:function(){return n.e(9084).then(n.bind(n,9084)).then((function(e){return wa(e.stex)}))}}),xa.c6.of({name:"SystemVerilog",extensions:["v","sv","svh"],load:function(){return n.e(8066).then(n.bind(n,8066)).then((function(e){return wa(e.verilog)}))}}),xa.c6.of({name:"Tcl",extensions:["tcl"],load:function(){return n.e(2410).then(n.bind(n,2410)).then((function(e){return wa(e.tcl)}))}}),xa.c6.of({name:"Textile",extensions:["textile"],load:function(){return n.e(5537).then(n.bind(n,5537)).then((function(e){return wa(e.textile)}))}}),xa.c6.of({name:"TiddlyWiki",load:function(){return n.e(1973).then(n.bind(n,1973)).then((function(e){return wa(e.tiddlyWiki)}))}}),xa.c6.of({name:"Tiki wiki",load:function(){return n.e(468).then(n.bind(n,468)).then((function(e){return wa(e.tiki)}))}}),xa.c6.of({name:"TOML",extensions:["toml"],load:function(){return n.e(9021).then(n.bind(n,9021)).then((function(e){return wa(e.toml)}))}}),xa.c6.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load:function(){return n.e(7792).then(n.bind(n,7792)).then((function(e){return wa(e.troff)}))}}),xa.c6.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load:function(){return n.e(4071).then(n.bind(n,4071)).then((function(e){return wa(e.ttcn)}))}}),xa.c6.of({name:"TTCN_CFG",extensions:["cfg"],load:function(){return n.e(903).then(n.bind(n,4494)).then((function(e){return wa(e.ttcnCfg)}))}}),xa.c6.of({name:"Turtle",extensions:["ttl"],load:function(){return n.e(2804).then(n.bind(n,2804)).then((function(e){return wa(e.turtle)}))}}),xa.c6.of({name:"Web IDL",extensions:["webidl"],load:function(){return n.e(606).then(n.bind(n,606)).then((function(e){return wa(e.webIDL)}))}}),xa.c6.of({name:"VB.NET",extensions:["vb"],load:function(){return n.e(5798).then(n.bind(n,5798)).then((function(e){return wa(e.vb)}))}}),xa.c6.of({name:"VBScript",extensions:["vbs"],load:function(){return n.e(3083).then(n.bind(n,3083)).then((function(e){return wa(e.vbScript)}))}}),xa.c6.of({name:"Velocity",extensions:["vtl"],load:function(){return n.e(2489).then(n.bind(n,2489)).then((function(e){return wa(e.velocity)}))}}),xa.c6.of({name:"Verilog",extensions:["v"],load:function(){return n.e(8066).then(n.bind(n,8066)).then((function(e){return wa(e.verilog)}))}}),xa.c6.of({name:"VHDL",extensions:["vhd","vhdl"],load:function(){return n.e(1875).then(n.bind(n,1875)).then((function(e){return wa(e.vhdl)}))}}),xa.c6.of({name:"XQuery",extensions:["xy","xquery"],load:function(){return n.e(9949).then(n.bind(n,9949)).then((function(e){return wa(e.xQuery)}))}}),xa.c6.of({name:"Yacas",extensions:["ys"],load:function(){return n.e(2172).then(n.bind(n,2172)).then((function(e){return wa(e.yacas)}))}}),xa.c6.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load:function(){return n.e(2082).then(n.bind(n,2082)).then((function(e){return wa(e.yaml)}))}}),xa.c6.of({name:"Z80",extensions:["z80"],load:function(){return n.e(2275).then(n.bind(n,2275)).then((function(e){return wa(e.z80)}))}}),xa.c6.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load:function(){return n.e(8831).then(n.bind(n,8831)).then((function(e){return wa(e.mscgen)}))}}),xa.c6.of({name:"X\xf9",extensions:["xu"],load:function(){return n.e(8831).then(n.bind(n,8831)).then((function(e){return wa(e.xu)}))}}),xa.c6.of({name:"MsGenny",extensions:["msgenny"],load:function(){return n.e(8831).then(n.bind(n,8831)).then((function(e){return wa(e.msgenny)}))}}),xa.c6.of({name:"Vue",extensions:["vue"],load:function(){return n.e(1238).then(n.bind(n,1238)).then((function(e){return e.vue()}))}}),xa.c6.of({name:"Angular Template",load:function(){return n.e(8965).then(n.bind(n,8965)).then((function(e){return e.angular()}))}})],Ea=n(1701);function Aa(e){var t=e.type,n=void 0===t?"scroll":t,r=e.events;return Ea.lg.fromClass(function(){function e(t){var i=this;(0,ie.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,oe.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 Pa=n(7989),Qa=n(1514);function _a(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 Da=_a($a,0),Na=_a(Ia,0),Ra=_a((function(e,t){return Ia(e,t,function(e){var t,n=[],r=(0,ne.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,to:a.to})}}catch(l){r.e(l)}finally{r.f()}return n}(t))}),0);function Za(e,t){var n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}var Ma=50;function Ia(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.selection.ranges,r=n.map((function(e){return Za(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-Ma,n),u=e.sliceDoc(r,r+Ma),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*Ma?i=o=e.sliceDoc(n,r):(i=e.sliceDoc(n,n+Ma),o=e.sliceDoc(r-Ma,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,ne.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=Za(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=[],Q=(0,ne.Z)(i);try{for(Q.s();!(A=Q.n()).done;){var _=A.value,D=_.line,N=_.comment,R=_.token;if(N>=0){var Z=D.from+N,M=Z+R.length;" "==D.text[M-D.from]&&M++,P.push({from:Z,to:M})}}}catch(I){Q.e(I)}finally{Q.f()}return{changes:P}}return null}var La=Pa.q6.define(),Fa=Pa.q6.define(),Ba=Pa.r$.define(),ja=Pa.r$.define({combine:function(e){return(0,Pa.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 Ua=Pa.QQ.define({create:function(){return os.empty},update:function(e,t){var n=t.state.facet(ja),r=t.annotation(La);if(r){var i=t.docChanged?Pa.jT.single(function(e){var t=0;return e.iterChangedRanges((function(e,n){return t=n})),t}(t.changes)):void 0,o=qa.fromTransaction(t,i),a=r.side,s=0==a?e.undone:e.done;return s=o?Va(s,s.length,n.minDepth,o):es(s,t.startState.selection),new os(0==a?r.rest:s,0==a?s:r.rest)}var l=t.annotation(Fa);if("full"!=l&&"before"!=l||(e=e.isolate()),!1===t.annotation(Pa.YW.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);var u=qa.fromTransaction(t),c=t.annotation(Pa.YW.time),h=t.annotation(Pa.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 os(e.done.map(qa.fromJSON),e.undone.map(qa.fromJSON))}});function za(e,t){return function(n){var r=n.state,i=n.dispatch;if(!t&&r.readOnly)return!1;var o=r.field(Ua,!1);if(!o)return!1;var a=o.pop(e,r,t);return!!a&&(i(a),!0)}}var Xa=za(0,!1),Ha=za(1,!1),Wa=za(0,!0),Ya=za(1,!0);var qa=function(){function e(t,n,r,i,o){(0,ie.Z)(this,e),this.changes=t,this.effects=n,this.mapped=r,this.startSelection=i,this.selectionsAfter=o}return(0,oe.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&&Pa.as.fromJSON(t.changes),[],t.mapped&&Pa.n0.fromJSON(t.mapped),t.startSelection&&Pa.jT.fromJSON(t.startSelection),t.selectionsAfter.map(Pa.jT.fromJSON))}},{key:"fromTransaction",value:function(t,n){var r,i=Ja,o=(0,ne.Z)(t.startState.facet(Ba));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,Ja)}},{key:"selection",value:function(t){return new e(void 0,Ja,void 0,void 0,t)}}]),e}();function Va(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 Ga(e,t){return e.length?t.length?e.concat(t):e:t}var Ja=[],Ka=200;function es(e,t){if(e.length){var n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-Ka));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),Va(e,e.length-1,1e9,n.setSelAfter(r)))}return[qa.selection([t])]}function ts(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 ns(e,t){if(!e.length)return e;for(var n=e.length,r=Ja;n;){var i=rs(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?[qa.selection(r)]:Ja}function rs(e,t,n){var r=Ga(e.selectionsAfter.length?e.selectionsAfter.map((function(e){return e.map(t)})):Ja,n);if(!e.changes)return qa.selection(r);var i=e.changes.map(t),o=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(o):o;return new qa(i,Pa.Py.mapEffects(e.effects,t),a,e.startSelection.map(o),r)}var is=/^(input\.type|delete)($|\.)/,os=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,ie.Z)(this,e),this.done=t,this.undone=n,this.prevTime=r,this.prevUserEvent=i}return(0,oe.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||is.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime=s&&i<=l&&(r=!0)}})),r}(s.changes,t.changes))||"input.type.compose"==r)?Va(a,a.length-1,i.minDepth,new qa(t.changes.compose(s.changes),Ga(t.effects,s.effects),s.mapped,s.startSelection,Ja)):Va(a,a.length,i.minDepth,t),new e(a,Ja,n,r)}},{key:"addSelection",value:function(t,n,r,i){var o=this.done.length?this.done[this.done.length-1].selectionsAfter:Ja;return o.length>0&&n-this.prevTime2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function vs(e,t,n){for(var r=(0,xa.qz)(e).resolveInner(t.head),i=n?Qa.md.closedBy:Qa.md.openedBy,o=t.head;;){var a=n?r.childAfter(o):r.childBefore(o);if(!a)break;gs(e,a,i)?r=a:o=n?a.to:a.from}var s,l;return l=r.type.prop(i)&&(s=n?(0,xa.Um)(e,r.from,1):(0,xa.Um)(e,r.to,-1))&&s.matched?n?s.end.to:s.end.from:n?r.to:r.from,Pa.jT.cursor(l,n?-1:1)}function Os(e,t){return us(e,(function(n){if(!n.empty)return cs(n,t);var r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)}))}var ys=function(e){return Os(e,!1)},ks=function(e){return Os(e,!0)};function bs(e){var t,n=e.scrollDOM.clientHeightl&&a.bottom0&&(0,xa.Um)(e,t.head-1,1)||t.headi&&(n="delete.forward",a=Us(e,a,!0)),i=Math.min(i,a),o=Math.max(o,a)}else i=Us(e,i,!1),o=Us(e,o,!0);return i==o?{range:r}:{changes:{from:i,to:o},range:Pa.jT.cursor(i)}}));return!i.changes.empty&&(e.dispatch(r.update(i,{scrollIntoView:!0,userEvent:n,effects:"delete.selection"==n?Ea.tk.announce.of(r.phrase("Selection deleted")):void 0})),!0)}function Us(e,t,n){if(e instanceof Ea.tk){var r,i=(0,ne.Z)(e.state.facet(Ea.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 zs=function(e,t){return js(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 Gs(e,t,n){if(e.readOnly)return!1;var r,i=[],o=[],a=(0,ne.Z)(Vs(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,ne.Z)(s.ranges);try{for(h.s();!(c=h.n()).done;){var f=c.value;o.push(Pa.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,ne.Z)(s.ranges);try{for(p.s();!(d=p.n()).done;){var m=d.value;o.push(Pa.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:Pa.jT.create(o,e.selection.mainIndex),userEvent:"move.line"})),!0)}function Js(e,t,n){if(e.readOnly)return!1;var r,i=[],o=(0,ne.Z)(Vs(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 Ks=tl(!1),el=tl(!0);function tl(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,xa.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(Qa.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 xa.Gn(n,{simulateBreak:r,simulateDoubleBreak:!!a}),l=(0,xa.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:Pa.jT.range(s.mapPos(r.anchor,1),s.mapPos(r.head,1))}}))}var rl=function(e){var t=e.state,n=e.dispatch;return!t.readOnly&&(n(t.update(nl(t,(function(e,n){n.push({from:e.from,insert:t.facet(xa.c)})})),{userEvent:"input.indent"})),!0)},il=function(e){var t=e.state,n=e.dispatch;return!t.readOnly&&(n(t.update(nl(t,(function(e,n){var r=/^\s*/.exec(e.text)[0];if(r){for(var i=(0,Pa.IS)(r,t.tabSize),o=0,a=(0,xa.SS)(t,Math.max(0,i-(0,xa.y1)(t)));on?n:Math.max(0,t-1)}))}},{mac:"Mod-Delete",run:qs}].concat([{key:"Ctrl-b",run:ds,shift:Ps,preventDefault:!0},{key:"Ctrl-f",run:ps,shift:Qs},{key:"Ctrl-p",run:ys,shift:Ns},{key:"Ctrl-n",run:ks,shift:Rs},{key:"Ctrl-a",run:function(e){return us(e,(function(t){return Pa.jT.cursor(e.lineBlockAt(t.head).from,1)}))},shift:function(e){return Es(e,(function(t){return Pa.jT.cursor(e.lineBlockAt(t.head).from)}))}},{key:"Ctrl-e",run:function(e){return us(e,(function(t){return Pa.jT.cursor(e.lineBlockAt(t.head).to,-1)}))},shift:function(e){return Es(e,(function(t){return Pa.jT.cursor(e.lineBlockAt(t.head).to)}))}},{key:"Ctrl-d",run:Hs},{key:"Ctrl-h",run:Xs},{key:"Ctrl-k",run:qs},{key:"Ctrl-Alt-h",run:Ys},{key:"Ctrl-o",run:function(e){var t=e.state,n=e.dispatch;if(t.readOnly)return!1;var r=t.changeByRange((function(e){return{changes:{from:e.from,to:e.to,insert:Pa.xv.of(["",""])},range:Pa.jT.cursor(e.from)}}));return n(t.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:function(e){var t=e.state,n=e.dispatch;if(t.readOnly)return!1;var r=t.changeByRange((function(e){if(!e.empty||0==e.from||e.from==t.doc.length)return{range:e};var n=e.from,r=t.doc.lineAt(n),i=n==r.from?n-1:(0,Pa.cp)(r.text,n-r.from,!1)+r.from,o=n==r.to?n+1:(0,Pa.cp)(r.text,n-r.from,!0)+r.from;return{changes:{from:i,to:o,insert:t.doc.slice(n,o).append(t.doc.slice(i,n))},range:Pa.jT.cursor(o)}}));return!r.changes.empty&&(n(t.update(r,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:ws}].map((function(e){return{mac:e.key,run:e.run,shift:e.shift}}))),al=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:function(e){return us(e,(function(t){return vs(e.state,t,!fs(e))}))},shift:function(e){return Es(e,(function(t){return vs(e.state,t,!fs(e))}))}},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:function(e){return us(e,(function(t){return vs(e.state,t,fs(e))}))},shift:function(e){return Es(e,(function(t){return vs(e.state,t,fs(e))}))}},{key:"Alt-ArrowUp",run:function(e){return Gs(e.state,e.dispatch,!1)}},{key:"Shift-Alt-ArrowUp",run:function(e){return Js(e.state,e.dispatch,!1)}},{key:"Alt-ArrowDown",run:function(e){return Gs(e.state,e.dispatch,!0)}},{key:"Shift-Alt-ArrowDown",run:function(e){return Js(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=Pa.jT.create([r.main]):r.main.empty||(i=Pa.jT.create([Pa.jT.cursor(r.main.head)])),!!i&&(n(ls(t,i)),!0)}},{key:"Mod-Enter",run:el},{key:"Alt-l",mac:"Ctrl-l",run:function(e){var t=e.state,n=e.dispatch,r=Vs(t).map((function(e){var n=e.from,r=e.to;return Pa.jT.range(n,Math.min(r+1,t.doc.length))}));return n(t.update({selection:Pa.jT.create(r),userEvent:"select"})),!0}},{key:"Mod-i",run:function(e){var t=e.state,n=e.dispatch,r=ss(t.selection,(function(e){for(var n,r=(0,xa.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 Pa.jT.range(r.to,r.from)}));return n(ls(t,r)),!0},preventDefault:!0},{key:"Mod-[",run:il},{key:"Mod-]",run:rl},{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 xa.Gn(t,{overrideIndentation:function(e){var t=r[e];return null==t?-1:t}}),o=nl(t,(function(e,n,o){var a=(0,xa.K0)(i,e.from);if(null!=a){/\S/.test(e.text)||(a=0);var s=/^\s*/.exec(e.text)[0],l=(0,xa.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,ie.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(cl(e))}:cl,this.query=this.normalize(n)}return(0,oe.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,Pa.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,Pa.bg)(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,Pa.nZ)(e);for(var r=this.normalize(t),i=0,o=n;;i++){var a=r.charCodeAt(i),s=this.match(a,o);if(s)return this.value=s,this;if(i==r.length-1)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,ie.Z)(this,e),this.text=t,this.to=o,this.curLine="",this.done=!1,this.value=fl,/\\[sWDnr]|\n|\r|\[\^/.test(n))return new vl(t,n,r,i,o);this.re=new RegExp(n,dl+((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=Ol(t,i),this.getLine(this.curLineStart)}return(0,oe.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=Ol(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 ml.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=Ol(this.text,r+(n==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=gl.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}]),e}();function Ol(e,t){if(t>=e.length)return t;for(var n,r=e.lineAt(t);t=56320&&n<57344;)t++;return t}function yl(e){var t=ll("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)));e.dispatch({effects:kl.of(!1),selection:Pa.jT.cursor(d.from+Math.max(0,Math.min(c,d.length))),scrollIntoView:!0}),e.focus()}}return{dom:ll("form",{class:"cm-gotoLine",onkeydown:function(t){27==t.keyCode?(t.preventDefault(),e.dispatch({effects:kl.of(!1)}),e.focus()):13==t.keyCode&&(t.preventDefault(),n())},onsubmit:function(e){e.preventDefault(),n()}},ll("label",e.state.phrase("Go to line"),": ",t)," ",ll("button",{class:"cm-button",type:"submit"},e.state.phrase("go")))}}"undefined"!=typeof Symbol&&(pl.prototype[Symbol.iterator]=vl.prototype[Symbol.iterator]=function(){return this});var kl=Pa.Py.define(),bl=Pa.QQ.define({create:function(){return!0},update:function(e,t){var n,r=(0,ne.Z)(t.effects);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.is(kl)&&(e=i.value)}}catch(o){r.e(o)}finally{r.f()}return e},provide:function(e){return Ea.mH.from(e,(function(e){return e?yl:null}))}}),Sl=Ea.tk.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),xl={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},wl=Pa.r$.define({combine:function(e){return(0,Pa.BO)(e,xl,{highlightWordAroundCursor:function(e,t){return e||t},minSelectionLength:Math.min,maxMatches:Math.min})}});var Tl=Ea.p.mark({class:"cm-selectionMatch"}),Cl=Ea.p.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function El(e,t,n,r){return(0==n||e(t.sliceDoc(n-1,n))!=Pa.D0.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=Pa.D0.Word)}var Al=Ea.lg.fromClass(function(){function e(t){(0,ie.Z)(this,e),this.decorations=this.getDeco(t)}return(0,oe.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(wl),n=e.state,r=n.selection;if(r.ranges.length>1)return Ea.p.none;var i,o=r.main,a=null;if(o.empty){if(!t.highlightWordAroundCursor)return Ea.p.none;var s=n.wordAt(o.head);if(!s)return Ea.p.none;a=n.charCategorizer(o.head),i=n.sliceDoc(s.from,s.to)}else{var l=o.to-o.from;if(l200)return Ea.p.none;if(t.wholeWords){if(i=n.sliceDoc(o.from,o.to),!El(a=n.charCategorizer(o.head),n,o.from,o.to)||!function(e,t,n,r){return e(t.sliceDoc(n,n+1))==Pa.D0.Word&&e(t.sliceDoc(r-1,r))==Pa.D0.Word}(a,n,o.from,o.to))return Ea.p.none}else if(!(i=n.sliceDoc(o.from,o.to).trim()))return Ea.p.none}var u,c=[],h=(0,ne.Z)(e.visibleRanges);try{for(h.s();!(u=h.n()).done;)for(var f=u.value,d=new hl(n.doc,i,f.from,f.to);!d.next().done;){var p=d.value,m=p.from,g=p.to;if((!a||El(a,n,m,g))&&(o.empty&&m<=o.from&&g>=o.to?c.push(Cl.range(m,g)):(m>=o.to||g<=o.from)&&c.push(Tl.range(m,g)),c.length>t.maxMatches))return Ea.p.none}}catch(v){h.e(v)}finally{h.f()}return Ea.p.set(c)}}]),e}(),{decorations:function(e){return e.decorations}}),Pl=Ea.tk.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}});var Ql=Pa.r$.define({combine:function(e){return(0,Pa.BO)(e,{top:!1,caseSensitive:!1,literal:!1,wholeWord:!1,createPanel:function(e){return new ru(e)},scrollToMatch:function(e){return Ea.tk.scrollIntoView(e)}})}});var _l=function(){function e(t){(0,ie.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,dl),!0}catch(t){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!t.wholeWord}return(0,oe.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 $l(this):new Rl(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:Pa.yy.create({doc:e});return null==n&&(n=r.doc.length),this.regexp?Zl(this,r,t,n):Nl(this,r,t,n)}}]),e}(),Dl=(0,oe.Z)((function e(t){(0,ie.Z)(this,e),this.spec=t}));function Nl(e,t,n,r){return new hl(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=Nl(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}(Dl);function Zl(e,t,n,r){return new pl(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(Ml(n.input,n.index))!=Pa.D0.Word||i(Il(n.input,n.index))!=Pa.D0.Word)&&(i(Il(n.input,n.index+n[0].length))!=Pa.D0.Word||i(Ml(n.input,n.index+n[0].length))!=Pa.D0.Word)}):void 0},n,r);var i}function Ml(e,t){return e.slice((0,Pa.cp)(e,t,!1),t)}function Il(e,t){return e.slice(t,(0,Pa.cp)(e,t))}var $l=function(e){(0,ae.Z)(n,e);var t=(0,se.Z)(n);function n(){return(0,ie.Z)(this,n),t.apply(this,arguments)}return(0,oe.Z)(n,[{key:"nextMatch",value:function(e,t,n){var r=Zl(this.spec,e,n,e.doc.length).next();return r.done&&(r=Zl(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=Zl(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=Zl(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}(Dl),Ll=Pa.Py.define(),Fl=Pa.Py.define(),Bl=Pa.QQ.define({create:function(e){return new jl(Kl(e).create(),null)},update:function(e,t){var n,r=(0,ne.Z)(t.effects);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.is(Ll)?e=new jl(i.value.create(),e.panel):i.is(Fl)&&(e=new jl(e.query,i.value?Jl:null))}}catch(o){r.e(o)}finally{r.f()}return e},provide:function(e){return Ea.mH.from(e,(function(e){return e.panel}))}});var jl=(0,oe.Z)((function e(t,n){(0,ie.Z)(this,e),this.query=t,this.panel=n})),Ul=Ea.p.mark({class:"cm-searchMatch"}),zl=Ea.p.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Xl=Ea.lg.fromClass(function(){function e(t){(0,ie.Z)(this,e),this.view=t,this.decorations=this.highlight(t.state.field(Bl))}return(0,oe.Z)(e,[{key:"update",value:function(e){var t=e.state.field(Bl);(t!=e.startState.field(Bl)||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 Ea.p.none;for(var n=this.view,r=new Pa.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?zl:Ul)}))}return r.finish()}}]),e}(),{decorations:function(e){return e.decorations}});function Hl(e){return function(t){var n=t.state.field(Bl,!1);return n&&n.query.spec.valid?e(t,n):eu(t)}}var Wl=Hl((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=Pa.jT.single(i.from,i.to),a=e.state.facet(Ql);return e.dispatch({selection:o,effects:[su(e,i),a.scrollToMatch(o.main)],userEvent:"select.search"}),!0})),Yl=Hl((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=Pa.jT.single(o.from,o.to),s=e.state.facet(Ql);return e.dispatch({selection:a,effects:[su(e,o),s.scrollToMatch(a.main)],userEvent:"select.search"}),!0})),ql=Hl((function(e,t){var n=t.query.matchAll(e.state,1e3);return!(!n||!n.length)&&(e.dispatch({selection:Pa.jT.create(n.map((function(e){return Pa.jT.range(e.from,e.to)}))),userEvent:"select.search.matches"}),!0)})),Vl=Hl((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(Ea.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=Pa.jT.single(s.from-f,s.to-f),h.push(su(e,s)),h.push(r.facet(Ql).scrollToMatch(l.main))}return e.dispatch({changes:c,selection:l,effects:h,userEvent:"input.replace"}),!0})),Gl=Hl((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:Ea.tk.announce.of(i),userEvent:"input.replace.all"}),!0}));function Jl(e){return e.state.facet(Ql).createPanel(e)}function Kl(e,t){var n,r,i,o,a=e.selection.main,s=a.empty||a.to>a.from+100?"":e.sliceDoc(a.from,a.to);if(t&&!s)return t;var l=e.facet(Ql);return new _l({search:(null!==(n=null===t||void 0===t?void 0:t.literal)&&void 0!==n?n:l.literal)?s:s.replace(/\n/g,"\\n"),caseSensitive:null!==(r=null===t||void 0===t?void 0:t.caseSensitive)&&void 0!==r?r:l.caseSensitive,literal:null!==(i=null===t||void 0===t?void 0:t.literal)&&void 0!==i?i:l.literal,wholeWord:null!==(o=null===t||void 0===t?void 0:t.wholeWord)&&void 0!==o?o:l.wholeWord})}var eu=function(e){var t=e.state.field(Bl,!1);if(t&&t.panel){var n=(0,Ea.Sd)(e,Jl);if(!n)return!1;var r=n.dom.querySelector("[main-field]");if(r&&r!=e.root.activeElement){var i=Kl(e.state,t.query.spec);i.valid&&e.dispatch({effects:Ll.of(i)}),r.focus(),r.select()}}else e.dispatch({effects:[Fl.of(!0),t?Ll.of(Kl(e.state,t.query.spec)):Pa.Py.appendConfig.of(uu)]});return!0},tu=function(e){var t=e.state.field(Bl,!1);if(!t||!t.panel)return!1;var n=(0,Ea.Sd)(e,Jl);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:Fl.of(!1)}),!0},nu=[{key:"Mod-f",run:eu,scope:"editor search-panel"},{key:"F3",run:Wl,shift:Yl,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Wl,shift:Yl,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:tu,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 hl(t.doc,t.sliceDoc(o,a));!u.next().done;){if(s.length>1e3)return!1;u.value.from==o&&(l=s.length),s.push(Pa.jT.range(u.value.from,u.value.to))}return n(t.update({selection:Pa.jT.create(s,l),userEvent:"select.search.matches"})),!0}},{key:"Alt-g",run:function(e){var t=(0,Ea.Sd)(e,yl);if(!t){var n=[kl.of(!0)];null==e.state.field(bl,!1)&&n.push(Pa.Py.appendConfig.of([bl,Sl])),e.dispatch({effects:n}),t=(0,Ea.Sd)(e,yl)}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=Pa.jT.create(r.ranges.map((function(e){return t.wordAt(e.head)||Pa.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=e.selection,r=n.main,i=n.ranges,o=e.wordAt(r.head),a=o&&o.from==r.from&&o.to==r.to,s=function(n,r){if(r.next(),!r.done){if(n&&i.some((function(e){return e.from==r.value.from})))return l=n,u=r,"continue";if(a){var o=e.wordAt(r.value.from);if(!o||o.from!=r.value.from||o.to!=r.value.to)return l=n,u=r,"continue"}return{v:r.value}}if(n)return{v:null};r=new hl(e.doc,t,0,Math.max(0,i[i.length-1].from-1)),l=n=!0,u=r},l=!1,u=new hl(e.doc,t,i[i.length-1].to);;){var c=s(l,u);if("continue"!==c&&"object"===typeof c)return c.v}}(t,i);return!!o&&(n(t.update({selection:t.selection.addRange(Pa.jT.range(o.from,o.to),!1),effects:Ea.tk.scrollIntoView(o.to)})),!0)},preventDefault:!0}],ru=function(){function e(t){var n=this;(0,ie.Z)(this,e),this.view=t;var r=this.query=t.state.field(Bl).query.spec;function i(e,t,n){return ll("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=ll("input",{value:r.search,placeholder:iu(t,"Find"),"aria-label":iu(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=ll("input",{value:r.replace,placeholder:iu(t,"Replace"),"aria-label":iu(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=ll("input",{type:"checkbox",name:"case",form:"",checked:r.caseSensitive,onchange:this.commit}),this.reField=ll("input",{type:"checkbox",name:"re",form:"",checked:r.regexp,onchange:this.commit}),this.wordField=ll("input",{type:"checkbox",name:"word",form:"",checked:r.wholeWord,onchange:this.commit}),this.dom=ll("div",{onkeydown:function(e){return n.keydown(e)},class:"cm-search"},[this.searchField,i("next",(function(){return Wl(t)}),[iu(t,"next")]),i("prev",(function(){return Yl(t)}),[iu(t,"previous")]),i("select",(function(){return ql(t)}),[iu(t,"all")]),ll("label",null,[this.caseField,iu(t,"match case")]),ll("label",null,[this.reField,iu(t,"regexp")]),ll("label",null,[this.wordField,iu(t,"by word")])].concat((0,re.Z)(t.state.readOnly?[]:[ll("br"),this.replaceField,i("replace",(function(){return Vl(t)}),[iu(t,"replace")]),i("replaceAll",(function(){return Gl(t)}),[iu(t,"replace all")])]),[ll("button",{name:"close",onclick:function(){return tu(t)},"aria-label":iu(t,"close"),type:"button"},["\xd7"])]))}return(0,oe.Z)(e,[{key:"commit",value:function(){var e=new _l({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:Ll.of(e)}))}},{key:"keydown",value:function(e){(0,Ea.$1)(this.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Yl:Wl)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),Vl(this.view))}},{key:"update",value:function(e){var t,n=(0,ne.Z)(e.transactions);try{for(n.s();!(t=n.n()).done;){var r,i=t.value,o=(0,ne.Z)(i.effects);try{for(o.s();!(r=o.n()).done;){var a=r.value;a.is(Ll)&&!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(Ql).top}}]),e}();function iu(e,t){return e.state.phrase(t)}var ou=30,au=/[\s\.,:;?!]/;function su(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-ou),s=Math.min(o,r+ou),l=e.state.sliceDoc(a,s);if(a!=i.from)for(var u=0;ul.length-ou;c--)if(!au.test(l[c-1])&&au.test(l[c])){l=l.slice(0,c);break}return Ea.tk.announce.of("".concat(e.state.phrase("current match"),". ").concat(l," ").concat(e.state.phrase("on line")," ").concat(i.number,"."))}var lu=Ea.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"}}),uu=[Bl,Pa.Wl.lowest(Xl),lu],cu=n(2027),hu=(0,oe.Z)((function e(t,n,r){(0,ie.Z)(this,e),this.from=t,this.to=n,this.diagnostic=r})),fu=function(){function e(t,n,r){(0,ie.Z)(this,e),this.diagnostics=t,this.panel=n,this.selected=r}return(0,oe.Z)(e,null,[{key:"init",value:function(t,n,r){var i=t,o=r.facet(Cu).markerFilter;o&&(i=o(i));var a=Ea.p.set(i.map((function(e){return e.from==e.to||e.from==e.to-1&&r.doc.lineAt(e.from).to==e.from?Ea.p.widget({widget:new Pu(e),diagnostic:e}).range(e.from):Ea.p.mark({attributes:{class:"cm-lintRange cm-lintRange-"+e.severity},diagnostic:e}).range(e.from,e.to)})),!0);return new e(a,n,du(a))}}]),e}();function du(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 hu(e,n,o.diagnostic),!1})),r}function pu(e,t){return!(!e.effects.some((function(e){return e.is(gu)}))&&!e.changes.touchesRange(t.pos))}function mu(e,t){return e.field(yu,!1)?t:t.concat(Pa.Py.appendConfig.of([yu,Ea.tk.decorations.compute([yu],(function(e){var t=e.field(yu),n=t.selected,r=t.panel;return n&&r&&n.from!=n.to?Ea.p.set([ku.range(n.from,n.to)]):Ea.p.none})),(0,Ea.bF)(bu,{hideOn:pu}),Ru]))}var gu=Pa.Py.define(),vu=Pa.Py.define(),Ou=Pa.Py.define(),yu=Pa.QQ.define({create:function(){return new fu(Ea.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=du(n,e.selected.diagnostic,i)||du(n,null,i)}e=new fu(n,e.panel,r)}var o,a=(0,ne.Z)(t.effects);try{for(a.s();!(o=a.n()).done;){var s=o.value;s.is(gu)?e=fu.init(s.value,e.panel,t.state):s.is(vu)?e=new fu(e.diagnostics,s.value?_u.open:null,e.selected):s.is(Ou)&&(e=new fu(e.diagnostics,e.panel,s.value))}}catch(l){a.e(l)}finally{a.f()}return e},provide:function(e){return[Ea.mH.from(e,(function(e){return e.panel})),Ea.tk.decorations.from(e,(function(e){return e.diagnostics}))]}});var ku=Ea.p.mark({class:"cm-lintRange cm-lintRange-active"});function bu(e,t,n){var r=e.state.field(yu).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=Eu(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,ne.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=du(this.view.state.field(yu).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:Ou.of(t)})}}}],[{key:"open",value:function(t){return new e(t)}}]),e}();function Du(e){return'url(\'data:image/svg+xml,1&&void 0!==arguments[1]?arguments[1]:'viewBox="0 0 40 40"',">").concat(encodeURIComponent(e),"')")}function Nu(e){return Du(''),'width="6" height="3"')}var Ru=Ea.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-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:Nu("#d11")},".cm-lintRange-warning":{backgroundImage:Nu("orange")},".cm-lintRange-info":{backgroundImage:Nu("#999")},".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-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}}});Ea.SJ;var Zu=Pa.Py.define(),Mu=Pa.QQ.define({create:function(){return null},update:function(e,t){return e&&t.docChanged&&(e=pu(t,e)?null:Object.assign(Object.assign({},e),{pos:t.changes.mapPos(e.pos)})),t.effects.reduce((function(e,t){return t.is(Zu)?t.value:e}),e)},provide:function(e){return Ea.hJ.from(e)}}),Iu=Pa.r$.define({combine:function(e){return(0,Pa.BO)(e,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});var $u=function(e){void 0===e&&(e={});var t=[];!1!==e.closeBracketsKeymap&&(t=t.concat(cu.GA)),!1!==e.defaultKeymap&&(t=t.concat(al)),!1!==e.searchKeymap&&(t=t.concat(nu)),!1!==e.historyKeymap&&(t=t.concat(as)),!1!==e.foldKeymap&&(t=t.concat(xa.e7)),!1!==e.completionKeymap&&(t=t.concat(cu.B1)),!1!==e.lintKeymap&&(t=t.concat(wu));var n=[];return!1!==e.lineNumbers&&n.push((0,Ea.Eu)()),!1!==e.highlightActiveLineGutter&&n.push((0,Ea.HQ)()),!1!==e.highlightSpecialChars&&n.push((0,Ea.AE)()),!1!==e.history&&n.push(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[Ua,ja.of(e),Ea.tk.domEventHandlers({beforeinput:function(e,t){var n="historyUndo"==e.inputType?Xa:"historyRedo"==e.inputType?Ha:null;return!!n&&(e.preventDefault(),n(t))}})]}()),!1!==e.foldGutter&&n.push((0,xa.mi)()),!1!==e.drawSelection&&n.push((0,Ea.Uw)()),!1!==e.dropCursor&&n.push((0,Ea.qr)()),!1!==e.allowMultipleSelections&&n.push(Pa.yy.allowMultipleSelections.of(!0)),!1!==e.indentOnInput&&n.push((0,xa.nY)()),!1!==e.syntaxHighlighting&&n.push((0,xa.nF)(xa.R_,{fallback:!0})),!1!==e.bracketMatching&&n.push((0,xa.n$)()),!1!==e.closeBrackets&&n.push((0,cu.vQ)()),!1!==e.autocompletion&&n.push((0,cu.ys)()),!1!==e.rectangularSelection&&n.push((0,Ea.Zs)()),!1!==e.crosshairCursor&&n.push((0,Ea.S2)()),!1!==e.highlightActiveLine&&n.push((0,Ea.ZO)()),!1!==e.highlightSelectionMatches&&n.push(function(e){var t=[Pl,Al];return e&&t.push(wl.of(e)),t}()),e.tabSize&&"number"===typeof e.tabSize&&n.push(xa.c.of(" ".repeat(e.tabSize))),n.concat([Ea.$f.of(t.flat())]).filter(Boolean)},Lu=n(2029),Fu="#e5c07b",Bu="#e06c75",ju="#56b6c2",Uu="#ffffff",zu="#abb2bf",Xu="#7d8799",Hu="#61afef",Wu="#98c379",Yu="#d19a66",qu="#c678dd",Vu="#21252b",Gu="#2c313a",Ju="#282c34",Ku="#353a42",ec="#3E4451",tc="#528bff",nc=Ea.tk.theme({"&":{color:zu,backgroundColor:Ju},".cm-content":{caretColor:tc},".cm-cursor, .cm-dropCursor":{borderLeftColor:tc},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:ec},".cm-panels":{backgroundColor:Vu,color:zu},".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:Ju,color:Xu,border:"none"},".cm-activeLineGutter":{backgroundColor:Gu},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Ku},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Ku,borderBottomColor:Ku},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Gu,color:zu}}},{dark:!0}),rc=xa.Qf.define([{tag:Lu.pJ.keyword,color:qu},{tag:[Lu.pJ.name,Lu.pJ.deleted,Lu.pJ.character,Lu.pJ.propertyName,Lu.pJ.macroName],color:Bu},{tag:[Lu.pJ.function(Lu.pJ.variableName),Lu.pJ.labelName],color:Hu},{tag:[Lu.pJ.color,Lu.pJ.constant(Lu.pJ.name),Lu.pJ.standard(Lu.pJ.name)],color:Yu},{tag:[Lu.pJ.definition(Lu.pJ.name),Lu.pJ.separator],color:zu},{tag:[Lu.pJ.typeName,Lu.pJ.className,Lu.pJ.number,Lu.pJ.changed,Lu.pJ.annotation,Lu.pJ.modifier,Lu.pJ.self,Lu.pJ.namespace],color:Fu},{tag:[Lu.pJ.operator,Lu.pJ.operatorKeyword,Lu.pJ.url,Lu.pJ.escape,Lu.pJ.regexp,Lu.pJ.link,Lu.pJ.special(Lu.pJ.string)],color:ju},{tag:[Lu.pJ.meta,Lu.pJ.comment],color:Xu},{tag:Lu.pJ.strong,fontWeight:"bold"},{tag:Lu.pJ.emphasis,fontStyle:"italic"},{tag:Lu.pJ.strikethrough,textDecoration:"line-through"},{tag:Lu.pJ.link,color:Xu,textDecoration:"underline"},{tag:Lu.pJ.heading,fontWeight:"bold",color:Bu},{tag:[Lu.pJ.atom,Lu.pJ.bool,Lu.pJ.special(Lu.pJ.variableName)],color:Yu},{tag:[Lu.pJ.processingInstruction,Lu.pJ.string,Lu.pJ.inserted],color:Wu},{tag:Lu.pJ.invalid,color:Uu}]),ic=[nc,(0,xa.nF)(rc)],oc=Pa.q6.define();function ac(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?[]: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,k=e.width,b=void 0===k?"":k,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,Q=e.indentWithTab,_=void 0===Q||Q,D=e.basicSetup,N=void 0===D||D,R=e.root,Z=e.initialState,M=(0,J.useState)(),I=(0,te.Z)(M,2),$=I[0],L=I[1],F=(0,J.useState)(),B=(0,te.Z)(F,2),j=B[0],U=B[1],z=(0,J.useState)(),X=(0,te.Z)(z,2),H=X[0],W=X[1],Y=Ea.tk.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),q=Ea.tk.theme({"&":{height:d,minHeight:m,maxHeight:v,width:b,minWidth:x,maxWidth:T}}),V=Ea.tk.updateListener.of((function(e){if(e.docChanged&&"function"===typeof r&&!e.transactions.some((function(e){return e.annotation(oc)}))){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=[V,q];switch(_&&G.unshift(Ea.$f.of([sl])),N&&("boolean"===typeof N?G.unshift($u()):G.unshift($u(N))),y&&G.unshift((0,Ea.W$)(y)),h){case"light":G.push(Y);break;case"dark":G.push(ic);break;case"none":break;default:G.push(h)}return!1===E&&G.push(Ea.tk.editable.of(!1)),P&&G.push(Pa.yy.readOnly.of(!0)),a&&"function"===typeof a&&G.push(Ea.tk.updateListener.of(a)),G=G.concat(l),(0,J.useEffect)((function(){if($&&!H){var e={doc:t,selection:n,extensions:G},r=Z?Pa.yy.fromJSON(Z.json,e,Z.fields):Pa.yy.create(e);if(W(r),!j){var i=new Ea.tk({state:r,parent:$,root:R});U(i),o&&o(i,r)}}return function(){j&&(W(void 0),U(void 0))}}),[$,H]),(0,J.useEffect)((function(){return L(e.container)}),[e.container]),(0,J.useEffect)((function(){return function(){j&&(j.destroy(),U(void 0))}}),[j]),(0,J.useEffect)((function(){u&&j&&j.focus()}),[u,j]),(0,J.useEffect)((function(){j&&j.dispatch({effects:Pa.Py.reconfigure.of(G)})}),[h,l,d,m,v,b,x,T,y,E,P,_,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:[oc.of(!0)]})}}),[t,j]),{state:H,setState:W,view:j,setView:U,container:$,setContainer:L}}var sc=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],lc=(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,k=e.maxWidth,b=e.basicSetup,S=e.placeholder,x=e.indentWithTab,w=e.editable,T=e.readOnly,C=e.root,E=e.initialState,A=qt(e,sc),P=(0,J.useRef)(null),Q=ac({container:P.current,root:C,value:i,autoFocus:f,theme:p,height:m,minHeight:g,maxHeight:v,width:O,minWidth:y,maxWidth:k,basicSetup:b,placeholder:S,indentWithTab:x,editable:w,readOnly:T,selection:o,onChange:l,onStatistics:u,onCreateEditor:c,onUpdate:h,extensions:s,initialState:E}),_=Q.state,D=Q.view,N=Q.container;if((0,J.useImperativeHandle)(t,(function(){return{editor:P.current,state:_,view:D}}),[P,N,_,D]),"string"!==typeof i)throw new Error("value must be typeof string but got "+typeof i);var R="string"===typeof p?"cm-theme-"+p:"cm-theme";return(0,Vt.jsx)("div",Yt({ref:P,className:R+(n?" "+n:"")},A))}));lc.displayName="CodeMirror";var uc=lc,cc=n(6419);function hc(e){return e&&"object"===typeof e?"position"in e||"type"in e?dc(e.position):"start"in e||"end"in e?dc(e):"line"in e||"column"in e?fc(e):"":""}function fc(e){return pc(e&&e.line)+":"+pc(e&&e.column)}function dc(e){return fc(e&&e.start)+"-"+fc(e&&e.end)}function pc(e){return e&&"number"===typeof e?e:1}var mc=function(e){(0,ae.Z)(n,e);var t=(0,se.Z)(n);function n(e,r,i){var o;(0,ie.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=hc(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,oe.Z)(n)}(fe(Error));mc.prototype.file="",mc.prototype.name="",mc.prototype.reason="",mc.prototype.message="",mc.prototype.stack="",mc.prototype.fatal=null,mc.prototype.column=null,mc.prototype.line=null,mc.prototype.source=null,mc.prototype.ruleId=null,mc.prototype.position=null;var gc={basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');vc(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(vc(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){vc(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 vc(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var Oc={cwd:function(){return"/"}};function yc(e){return null!==e&&"object"===typeof e&&e.href&&e.origin}function kc(e){if("string"===typeof e)e=new URL(e);else if(!yc(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),[].splice.apply(e,i);else for(n&&[].splice.apply(e,[t,n]);a0?(jc(e,e.length,0,t),e):t}var zc={}.hasOwnProperty;function Xc(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}}},ch={tokenize:function(e,t,n){return sh(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var hh={tokenize:function(e,t,n){return sh(e,(function(e){return null===e||nh(e)?t(e):n(e)}),"linePrefix")},partial:!0};function fh(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 gh={tokenize:function(e){var t=this,n=e.attempt(hh,(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,sh(e,e.attempt(this.parser.constructs.flow,r,e.attempt(ph,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 vh={resolveAll:bh()},Oh=kh("string"),yh=kh("text");function kh(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&&(n[0]=n[0].slice(i)),a>0&&n.push(e[o].slice(0,a)));return n}(a,e)}function f(){return Object.assign({},r)}function d(){for(var e;r._indexu?n(i):(e.consume(i),p):41===i?c--?(e.consume(i),p):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(i)):null===i||th(i)?c?n(i):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(i)):eh(i)?n(i):(e.consume(i),92===i?m:p)}function m(t){return 40===t||41===t||92===t?(e.consume(t),p):p(t)}}function _h(e,t,n,r,i,o){var a,s=this,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),u};function u(h){return null===h||91===h||93===h&&!a||94===h&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs||l>999?n(h):93===h?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):nh(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||nh(t)||l++>999?(e.exit("chunkString"),u(t)):(e.consume(t),a=a||!rh(t),92===t?h:c)}function h(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}}function Dh(e,t,n,r,i,o){var a;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,s};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):nh(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),sh(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===a||null===t||nh(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 Nh(e,t){var n;return function r(i){if(nh(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r;if(rh(i))return sh(e,r,n?"linePrefix":"lineSuffix")(i);return t(i)}}function Rh(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Zh={name:"definition",tokenize:function(e,t,n){var r,i=this;return function(t){return e.enter("definition"),_h.call(i,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function o(t){return r=Rh(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),Nh(e,Qh(e,e.attempt(Mh,sh(e,a,"whitespace"),sh(e,a,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(t)}function a(o){return null===o||nh(o)?(e.exit("definition"),i.parser.defined.includes(r)||i.parser.defined.push(r),t(o)):n(o)}}},Mh={tokenize:function(e,t,n){return function(t){return th(t)?Nh(e,r)(t):n(t)};function r(t){return 34===t||39===t||40===t?Dh(e,sh(e,i,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):n(t)}function i(e){return null===e||nh(e)?t(e):n(e)}},partial:!0};var Ih={name:"codeIndented",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("codeIndented"),sh(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):nh(t)?e.attempt($h,o,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||nh(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},$h={tokenize:function(e,t,n){var r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):nh(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):sh(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):nh(e)?i(e):n(e)}},partial:!0};var Lh={name:"headingAtx",tokenize:function(e,t,n){var r=this,i=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),o(t)};function o(s){return 35===s&&i++<6?(e.consume(s),o):null===s||th(s)?(e.exit("atxHeadingSequence"),r.interrupt?t(s):a(s)):n(s)}function a(n){return 35===n?(e.enter("atxHeadingSequence"),s(n)):null===n||nh(n)?(e.exit("atxHeading"),t(n)):rh(n)?sh(e,a,"whitespace")(n):(e.enter("atxHeadingText"),l(n))}function s(t){return 35===t?(e.consume(t),s):(e.exit("atxHeadingSequence"),a(t))}function l(t){return null===t||35===t||th(t)?(e.exit("atxHeadingText"),a(t)):(e.consume(t),l)}},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&&jc(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 Fh={name:"setextUnderline",tokenize:function(e,t,n){var r,i,o=this,a=o.events.length;for(;a--;)if("lineEnding"!==o.events[a][1].type&&"linePrefix"!==o.events[a][1].type&&"content"!==o.events[a][1].type){i="paragraph"===o.events[a][1].type;break}return function(t){if(!o.parser.lazy[o.now().line]&&(o.interrupt||i))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),r=t,s(t);return n(t)};function s(t){return t===r?(e.consume(t),s):(e.exit("setextHeadingLineSequence"),sh(e,l,"lineSuffix")(t))}function l(r){return null===r||nh(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 Bh=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],jh=["pre","script","style","textarea"],Uh={name:"htmlFlow",tokenize:function(e,t,n){var r,i,o,a,s,l=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u};function u(a){return 33===a?(e.consume(a),c):47===a?(e.consume(a),d):63===a?(e.consume(a),r=3,l.interrupt?t:R):Yc(a)?(e.consume(a),o=String.fromCharCode(a),i=!0,p):n(a)}function c(i){return 45===i?(e.consume(i),r=2,h):91===i?(e.consume(i),r=5,o="CDATA[",a=0,f):Yc(i)?(e.consume(i),r=4,l.interrupt?t:R):n(i)}function h(r){return 45===r?(e.consume(r),l.interrupt?t:R):n(r)}function f(r){return r===o.charCodeAt(a++)?(e.consume(r),a===o.length?l.interrupt?t:C:f):n(r)}function d(t){return Yc(t)?(e.consume(t),o=String.fromCharCode(t),p):n(t)}function p(a){return null===a||47===a||62===a||th(a)?47!==a&&i&&jh.includes(o.toLowerCase())?(r=1,l.interrupt?t(a):C(a)):Bh.includes(o.toLowerCase())?(r=6,47===a?(e.consume(a),m):l.interrupt?t(a):C(a)):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(a):i?v(a):g(a)):45===a||Gc(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 rh(t)?(e.consume(t),g):w(t)}function v(t){return 47===t?(e.consume(t),w):58===t||95===t||Yc(t)?(e.consume(t),O):rh(t)?(e.consume(t),v):w(t)}function O(t){return 45===t||46===t||58===t||95===t||Gc(t)?(e.consume(t),O):y(t)}function y(t){return 61===t?(e.consume(t),k):rh(t)?(e.consume(t),y):v(t)}function k(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,b):rh(t)?(e.consume(t),k):(s=null,S(t))}function b(t){return null===t||nh(t)?n(t):t===s?(e.consume(t),x):(e.consume(t),b)}function S(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||th(t)?y(t):(e.consume(t),S)}function x(e){return 47===e||62===e||rh(e)?v(e):n(e)}function w(t){return 62===t?(e.consume(t),T):n(t)}function T(t){return rh(t)?(e.consume(t),T):null===t||nh(t)?C(t):n(t)}function C(t){return 45===t&&2===r?(e.consume(t),Q):60===t&&1===r?(e.consume(t),_):62===t&&4===r?(e.consume(t),Z):63===t&&3===r?(e.consume(t),R):93===t&&5===r?(e.consume(t),N):!nh(t)||6!==r&&7!==r?null===t||nh(t)?E(t):(e.consume(t),C):e.check(zh,Z,E)(t)}function E(t){return e.exit("htmlFlowData"),A(t)}function A(t){return null===t?M(t):nh(t)?e.attempt({tokenize:P,partial:!0},A,M)(t):(e.enter("htmlFlowData"),C(t))}function P(e,t,n){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r};function r(e){return l.parser.lazy[l.now().line]?n(e):t(e)}}function Q(t){return 45===t?(e.consume(t),R):C(t)}function _(t){return 47===t?(e.consume(t),o="",D):C(t)}function D(t){return 62===t&&jh.includes(o.toLowerCase())?(e.consume(t),Z):Yc(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),D):C(t)}function N(t){return 93===t?(e.consume(t),R):C(t)}function R(t){return 62===t?(e.consume(t),Z):45===t&&2===r?(e.consume(t),R):C(t)}function Z(t){return null===t||nh(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),Z)}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},zh={tokenize:function(e,t,n){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(hh,t,n)}},partial:!0};var Xh={name:"codeFenced",tokenize:function(e,t,n){var r,i=this,o={tokenize:function(e,t,n){var i=0;return sh(e,o,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function o(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),a(t)}function a(t){return t===r?(e.consume(t),i++,a):i1&&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);rf(h,-s),rf(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=Uc(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=Uc(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=Uc(l,xh(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),l=Uc(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=Uc(l,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,jc(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 Cf=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ef(e){return e.replace(Cf,Af)}function Af(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){var r=n.charCodeAt(1),i=120===r||88===r;return Tf(n.slice(i?2:1),i?16:10)}return(0,Hh.T)(n)||e}var Pf={}.hasOwnProperty,Qf=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(W),characterEscape:E,characterReference:E,codeFenced:s(Y),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(Y,l),codeText:s(q,l),codeTextData:E,data:E,codeFlowValue:E,definition:s(V),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(G),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:H,autolinkProtocol:X,blockQuote:c(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:U,characterReferenceMarkerNumeric:U,characterReferenceValue:z,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:k,definitionTitleString:b,emphasis:c(),hardBreakEscape:c(Q),hardBreakTrailing:c(Q),htmlFlow:c(_),htmlFlowData:A,htmlText:c(D),htmlTextData:A,image:c(Z),label:I,labelText:M,lineEnding:P,link:c(R),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:j,resourceDestinationString:$,resourceTitleString:L,resource:F,setextHeading:c(C),setextHeadingLineSequence:T,setextHeadingText:w,strong:c(),thematicBreak:c()}};Df(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]||Rf).call(r,void 0,p[0])}for(n.position={start:_f(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:_f(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c0&&void 0!==arguments[0]?arguments[0]:{}).extensions||[])),content:t(lh),document:t(uh),flow:t(gh),string:t(Oh),text:t(yh)};return e;function t(t){return function(n){return wh(e,t,n)}}}(n).document().write(function(){var e,t=1,n="",r=!0;return function(i,o,a){var s,l,u,c,h,f=[];for(i=n+i.toString(o),u=0,n="",r&&(65279===i.charCodeAt(0)&&u++,r=void 0);u55295&&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 If=function(e){if(void 0===e||null===e)return Ff;if("string"===typeof e)return function(e){return Lf(t);function t(t){return t&&t.type===e}}(e);if("object"===typeof e)return Array.isArray(e)?$f(e):function(e){return Lf(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 Lf(e);throw new Error("Expected function, string, or object as test")};function $f(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]===Bf))return f;if(a.children&&f[0]!==jf)for(c=(r?a.children.length:-1)+o,h=l.concat(a);c>-1&&c-1?n.offset:null}}}var Yf={}.hasOwnProperty;function qf(e){return String(e||"").toUpperCase()}function Vf(e,t){var n,r=String(t.identifier).toUpperCase(),i=Mf(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 Gf(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 Jf(e){var t=e.spread;return void 0===t||null===t?e.children.length>1:t}var Kf=9,ed=32;function td(e){for(var t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,o=[];r;)o.push(nd(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(nd(t.slice(i),i>0,!1)),o.join("")}function nd(e,t,n){var r=0,i=e.length;if(t)for(var o=e.codePointAt(r);o===Kf||o===ed;)r++,o=e.codePointAt(r);if(n)for(var a=e.codePointAt(i-1);a===Kf||a===ed;)i--,a=e.codePointAt(i-1);return i>r?e.slice(r,i):""}var rd={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:Vf,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},Vf(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 Gf(e,t);var r={src:Mf(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:Mf(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 Gf(e,t);var r={href:Mf(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:Mf(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=Xf(t.children[1]),l=Hf(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 fd(e,t){var n=ad(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,on.Z)((0,on.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 dd=function(e,t){return e&&"run"in e?function(e,t){return function(n,r,i){e.run(fd(n,t),r,(function(e){i(e)}))}}(e,t):function(e){return function(t){return fd(t,e)}}(e||t)};var pd=n(1512),md=n(1165);function gd(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){zf(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,re.Z)(t.children)));else o.children.splice(n,1);return n}}))}}function vd(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 Od=n(8231),yd={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"},kd=n(1361),bd=n(194),Sd=n(5011),xd=["http","https","mailto","tel"];function wd(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 Td={}.hasOwnProperty,Cd=new Set(["table","thead","tbody","tfoot","tr"]);function Ed(e,t){for(var n,r=[],i=-1;++i0?J.createElement(p,u,h):J.createElement(p,u)}function Pd(e,t){for(var n=-1,r=0;++n for more info)")),delete Nd[t]}var r=Qc().use(Zf).use(e.remarkPlugins||[]).use(dd,(0,on.Z)((0,on.Z)({},e.remarkRehypeOptions),{},{allowDangerousHtml:!0})).use(e.rehypePlugins||[]).use(gd,e),i=new Sc;"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,{},Ed({options:e,schema:md.dy,listDepth:0},o));return e.className&&(a=J.createElement("div",{className:e.className},a)),a}Rd.propTypes={children:pd.string,className:pd.string,allowElement:pd.func,allowedElements:pd.arrayOf(pd.string),disallowedElements:pd.arrayOf(pd.string),unwrapDisallowed:pd.bool,remarkPlugins:pd.arrayOf(pd.oneOfType([pd.object,pd.func,pd.arrayOf(pd.oneOfType([pd.bool,pd.string,pd.object,pd.func,pd.arrayOf(pd.any)]))])),rehypePlugins:pd.arrayOf(pd.oneOfType([pd.object,pd.func,pd.arrayOf(pd.oneOfType([pd.bool,pd.string,pd.object,pd.func,pd.arrayOf(pd.any)]))])),sourcePos:pd.bool,rawSourcePos:pd.bool,skipHtml:pd.bool,includeElementIndex:pd.bool,transformLinkUri:pd.oneOfType([pd.func,pd.bool]),linkTarget:pd.oneOfType([pd.func,pd.string]),transformImageUri:pd.func,components:pd.object};for(var Zd={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(t){return 87===t||119===t?(e.consume(t),i):n(t)}function i(t){return 87===t||119===t?(e.consume(t),o):n(t)}function o(t){return 46===t?(e.consume(t),a):n(t)}function a(e){return null===e||nh(e)?n(e):t(e)}},partial:!0},Md={tokenize:function(e,t,n){var r,i;return o;function o(t){return 38===t?e.check(Ld,s,a)(t):46===t||95===t?e.check($d,s,a)(t):null===t||eh(t)||ih(t)||45!==t&&oh(t)?s(t):(e.consume(t),o)}function a(t){return 46===t?(i=r,r=void 0,e.consume(t),o):(95===t&&(r=!0),e.consume(t),o)}function s(e){return i||r?n(e):t(e)}},partial:!0},Id={tokenize:function(e,t){var n=0;return r;function r(a){return 38===a?e.check(Ld,t,i)(a):(40===a&&n++,41===a?e.check($d,o,i)(a):Wd(a)?t(a):Hd(a)?e.check($d,t,i)(a):(e.consume(a),r))}function i(t){return e.consume(t),r}function o(e){return--n<0?t(e):i(e)}},partial:!0},$d={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(i){return Hd(i)?(e.consume(i),r):Wd(i)?t(i):n(i)}},partial:!0},Ld={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(t){return Yc(t)?(e.consume(t),r):59===t?(e.consume(t),i):n(t)}function i(e){return Wd(e)?t(e):n(e)}},partial:!0},Fd={tokenize:function(e,t,n){var r=this;return function(t){if(87!==t&&119!==t||!qd(r.previous)||Jd(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Zd,e.attempt(Md,e.attempt(Id,i),n),n)(t)};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:qd},Bd={tokenize:function(e,t,n){var r=this;return function(t){if(72!==t&&104!==t||!Vd(r.previous)||Jd(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(t),i};function i(t){return 84===t||116===t?(e.consume(t),o):n(t)}function o(t){return 84===t||116===t?(e.consume(t),a):n(t)}function a(t){return 80===t||112===t?(e.consume(t),s):n(t)}function s(t){return 83===t||115===t?(e.consume(t),l):l(t)}function l(t){return 58===t?(e.consume(t),u):n(t)}function u(t){return 47===t?(e.consume(t),c):n(t)}function c(t){return 47===t?(e.consume(t),h):n(t)}function h(t){return null===t||eh(t)||ih(t)||oh(t)?n(t):e.attempt(Md,e.attempt(Id,f),n)(t)}function f(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:Vd},jd={tokenize:function(e,t,n){var r,i,o=this;return function(t){if(!Yd(t)||!Gd(o.previous)||Jd(o.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return Yd(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check($d,h,l)(t):45===t||95===t?e.check($d,n,u)(t):Gc(t)?(!i&&qc(t)&&(i=!0),e.consume(t),s):h(t)}function l(t){return e.consume(t),r=!0,i=void 0,s}function u(t){return e.consume(t),c}function c(t){return 46===t?e.check($d,n,l)(t):s(t)}function h(o){return r&&!i?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):n(o)}},previous:Gd},Ud={},zd={text:Ud},Xd=48;Xd<123;)Ud[Xd]=jd,58===++Xd?Xd=65:91===Xd&&(Xd=97);function Hd(e){return 33===e||34===e||39===e||41===e||42===e||44===e||46===e||58===e||59===e||60===e||63===e||95===e||126===e}function Wd(e){return null===e||60===e||th(e)}function Yd(e){return 43===e||45===e||46===e||95===e||Gc(e)}function qd(e){return null===e||40===e||42===e||95===e||126===e||th(e)}function Vd(e){return null===e||!Yc(e)}function Gd(e){return 47!==e&&Vd(e)}function Jd(e){for(var t=e.length,n=!1;t--;){var r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}Ud[43]=jd,Ud[45]=jd,Ud[46]=jd,Ud[95]=jd,Ud[72]=[jd,Bd],Ud[104]=[jd,Bd],Ud[87]=[jd,Fd],Ud[119]=[jd,Fd];var Kd={tokenize:function(e,t,n){var r=this;return sh(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 ep(){var e;return{document:(0,an.Z)({},91,{tokenize:ip,continuation:{tokenize:op},exit:ap}),text:(e={},(0,an.Z)(e,91,{tokenize:rp}),(0,an.Z)(e,93,{add:"after",tokenize:tp,resolveTo:np}),e)}}function tp(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=Rh(i.sliceSerialize({start:r.end,end:i.now()}));if(94!==s.charCodeAt(0)||!a.includes(s.slice(1)))return n(o);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function np(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 rp(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){var c;return null===s||91===s||a++>999?n(s):93===s?r?(e.exit("chunkString"),c=e.exit("gfmFootnoteCallString"),o.includes(Rh(i.sliceSerialize(c)))?function(n){return e.enter("gfmFootnoteCallLabelMarker"),e.consume(n),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t}(s):n(s)):n(s):(e.consume(s),th(s)||(r=!0),92===s?u:l)}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function ip(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"),u):n(t)}function u(t){var a;return null===t||91===t||s>999?n(t):93===t?i?(a=e.exit("gfmFootnoteDefinitionLabelString"),r=Rh(o.sliceSerialize(a)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f):n(t):nh(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s++,u):(e.enter("chunkString").contentType="string",c(t))}function c(t){return null===t||nh(t)||91===t||93===t||s>999?(e.exit("chunkString"),u(t)):(th(t)||(i=!0),s++,e.consume(t),92===t?h:c)}function h(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function f(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),sh(e,d,"gfmFootnoteDefinitionWhitespace")):n(t)}function d(e){return a.includes(r)||a.push(r),t(e)}}function op(e,t,n){return e.check(hh,t,e.attempt(Kd,t,n))}function ap(e){e.exit("gfmFootnoteDefinition")}function sp(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=tf(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=tf(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(;++n=4?n(r):(o._gfmTableDynamicInterruptHack=!0,e.check(o.parser.constructs.flow,(function(e){return o._gfmTableDynamicInterruptHack=!1,n(e)}),(function(e){return o._gfmTableDynamicInterruptHack=!1,t(e)}))(r))}}},resolve:function(e,t){var n,r,i,o,a,s,l,u=-1;for(;++u0?{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,re.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=dp(e,"("),o=dp(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 wp(e,t,n,r){return!(!Tp(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Tp(e,t){var n=e.input.charCodeAt(e.index-1);return(0===e.index||ih(n)||oh(n))&&(!t||47!==n)}function Cp(e){return e.label||!e.identifier?e.label||"":Ef(e.identifier)}function Ep(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 Ap=/\r?\n|\r/g;function Pp(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 Qp(e,t){return _p(e,t.inConstruct,!0)&&!_p(e,t.notInConstruct,!1)}function _p(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=Ap.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,on.Z)((0,on.Z)({},l.current()),{},{before:s,after:c})))),s=o[o.length-1].slice(-1)}return r.pop(),o.join("")}zp.peek=function(){return"["};Vp.peek=function(){return"~"};var Yp={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},qp={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:Vp}};function Vp(e,t,n,r){var i=Zp(r),o=n.enter("strikethrough"),a=i.move("~~");return a+=Wp(e,n,(0,on.Z)((0,on.Z)({},i.current()),{},{before:a,after:"~"})),a+=i.move("~~"),o(),a}function Gp(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||Kp,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 sm={exit:{taskListCheckValueChecked:um,taskListCheckValueUnchecked:um,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 Xc([zd,ep(),sp(e),lp,hp])}(e)),n("fromMarkdownExtensions",[kp,{enter:{gfmFootnoteDefinition:Mp,gfmFootnoteDefinitionLabelString:Ip,gfmFootnoteCall:Fp,gfmFootnoteCallString:Bp},exit:{gfmFootnoteDefinition:Lp,gfmFootnoteDefinitionLabelString:$p,gfmFootnoteCall:Up,gfmFootnoteCallString:jp}},Yp,tm,sm]),n("toMarkdownExtensions",function(e){return{extensions:[bp,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Xp,footnoteReference:zp}},qp,om(e),lm]}}(e))}var hm=n(1065),fm=(0,n(282).v)(md.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"]),dm=n(7611);var pm={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/"},mm={}.hasOwnProperty,gm=Object.prototype;function vm(e,t){var n;switch(t.nodeName){case"#comment":return ym(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:Om(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 Dm(t,n,e)}}var $m=/[\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,Lm=Object.hasOwnProperty,Fm=function(){function e(){(0,ie.Z)(this,e),this.occurrences,this.reset()}return(0,oe.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($m,"").replace(/ /g,"-")}(e,!0===t),i=r;Lm.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 Bm={}.hasOwnProperty;function jm(e,t){var n="string"===typeof t&&function(e){return Boolean(e&&"object"===typeof e&&"type"in e)}(e)&&"element"===e.type&&e.properties&&Bm.call(e.properties,t)&&e.properties[t];return null!==n&&void 0!==n&&!1!==n}function Um(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 zm(e){return"children"in e?Hm(e):"value"in e?e.value:""}function Xm(e){return"text"===e.type?e.value:"children"in e?Hm(e):""}function Hm(e){for(var t=-1,n=[];++t0&&void 0!==arguments[0]?arguments[0]:{}).prefix||"";return function(t){Wm.reset(),zf(t,"element",(function(t){Um(t)&&t.properties&&!jm(t,"id")&&(t.properties.id=e+Wm.slug(zm(t)))}))}}var qm=function(e){if(void 0===e||null===e)return Jm;if("string"===typeof e)return function(e){return t;function t(t){return Jm(t)&&t.tagName===e}}(e);if("object"===typeof e)return Vm(e);if("function"===typeof e)return Gm(e);throw new Error("Expected function, string, or array as test")};function Vm(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||Km,o=t.group,a=qm(t.test);return"wrap"===r?e=function(e){return e.children=[u(e,Ec(!0,{},n),e.children)],[jf]}:"before"===r||"after"===r?e=function(e,t,a){var c;if("number"!==typeof t||!a)return;var h=u(e,Ec(!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,re.Z)(f))),[jf,t+f.length]}:(n||(n={ariaHidden:"true",tabIndex:-1}),e=function(e){return e.children["prepend"===r?"unshift":"push"](u(e,Ec(!0,{},n),s(i,e))),[jf]}),function(t){zf(t,"element",(function(t,n,r){if(Um(t)&&jm(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):Ec(!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 tg=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}}},ng=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},rg=function(e,t,n){return"string"===n?(0,on.Z)((0,on.Z)({},e),{},{"data-config":JSON.stringify((0,on.Z)((0,on.Z)({},t),{},{rehyp:!0}))}):"attr"===n?(0,on.Z)((0,on.Z)({},e),t):(0,on.Z)((0,on.Z)({},e),{},{"data-config":(0,on.Z)((0,on.Z)({},t),{},{rehyp:!0})})},ig=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){zf(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=ng(a);Object.keys(s).length>0&&(e.properties=(0,on.Z)((0,on.Z)({},e.properties),{"data-type":"rehyp"}),o.properties=rg(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=tg(r.children,t,"",i);if(l){var u=ng(l);Object.keys(u).length>0&&(e.properties=rg(e.properties,u,n))}}}))}},og=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){zf(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}))}}))}},ag={}.hasOwnProperty,sg=n(7278),lg=n(4571),ug=n(1060);function cg(){cg=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)),hg(o,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){return t[n]=e[r[n]],t}),Object.create(null))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hg(e,t)}(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);return n&&(n.groups=r(n,this)),n},n.prototype[Symbol.replace]=function(n,i){if("string"==typeof i){var o=t.get(this);return e[Symbol.replace].call(this,n,i.replace(/\$<([^>]+)>/g,(function(e,t){return"$"+o[t]})))}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)},cg.apply(this,arguments)}function hg(e,t){return hg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},hg(e,t)}function fg(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 pg=function(e){return function(t){return void 0===t&&(t={}),function(e){zf(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=[],n.properties.className.push("code-highlight");var l,u,c=function(e){for(var t,n=dg(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)try{var h;h=null!=c&&c.includes("diff-")?c.split("-")[1]:c,l=e.highlight(zm(n),h),i.properties.className=(i.properties.className||[]).concat("language-"+h)}catch(y){if(!t.ignoreMissing||!/Unknown language/.test(y.message))throw y;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=dg(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 f,d=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=sg(r);return function(e){return i.includes(e+1)}}return function(){return!1}}(s),p=function(e){var t=cg(/showLineNumbers=([0-9]+)/i,{lines:1});if(t.test(e)){var n=t.exec(e);return Number(n.groups.lines)}return 1}(s),m=function(e){for(var t=new Array(e),n=0;n0&&0===a.length)return null}var u,c={};for(u in t)ag.call(t,u)&&(c[u]="children"===u?a:t[u]);return c}(e)}(l,(function(e){return e.position.start.line<=n+1&&e.position.end.line>=n+1}));r.children=i.children,!s.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||g.some((function(e){return s.toLowerCase().includes(e)}))||(r.properties.line=[(n+p).toString()],r.properties.className.push("line-number")),d(n)&&r.properties.className.push("highlight-line"),("diff"===c||null!=c&&c.includes("diff-"))&&"-"===zm(r).substring(0,1)?r.properties.className.push("deleted"):("diff"===c||null!=c&&c.includes("diff-"))&&"+"===zm(r).substring(0,1)&&r.properties.className.push("inserted")},O=dg(m.entries());!(f=O()).done;)v();m.length>0&&""===zm(m[m.length-1]).trim()&&m.pop(),n.children=m}}}},mg=(pg(lg.$),pg(ug.$)),gg="\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc",vg="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff",Og=new RegExp("^[^"+vg+"]*["+gg+"]"),yg=new RegExp("^[^"+gg+"]*["+vg+"]");function kg(e){var t=function(e){var t=String(e||"");return Og.test(t)?"rtl":yg.test(t)?"ltr":"neutral"}(e);return"neutral"===t?void 0:t}function bg(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 Sg=xm("operator",{unknown:function(e){throw new Error("Unknown operator `"+e.operator+"`")},invalid:function(e,t,n){return jm(t,n.property)},handlers:{"=":function(e,t,n){return Boolean(jm(t,n.property)&&t.properties&&xg(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)||jm(t,n.property)&&xg(r,n)===e.value},"|=":function(e,t,n){var r=xg(t.properties&&t.properties[n.property],n);return Boolean(jm(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(jm(t,n.property)&&t.properties&&e.value&&xg(t.properties[n.property],n).slice(0,e.value.length)===e.value)},"$=":function(e,t,n){return Boolean(jm(t,n.property)&&t.properties&&e.value&&xg(t.properties[n.property],n).slice(-e.value.length)===e.value)},"*=":function(e,t,n){return Boolean(jm(t,n.property)&&t.properties&&e.value&&xg(t.properties[n.property],n).includes(e.value))}}});function xg(e,t){return"boolean"===typeof e?t.attribute:Array.isArray(e)?(t.commaSeparated?bd.P:kd.P)(e):String(e)}function wg(e,t){return function(n,r){for(var i=Cg(n,"tag"),o=Cg(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=Ag&&e.charCodeAt(t)<=Pg;)r=10*r+(e.charCodeAt(t)-Ag),t++;return t===n?null:r}function s(){for(;t0},lang:function(e,t,n,r,i){return""!==i.language&&void 0!==i.language&&Tg(i.language,(0,bd.Q)(e.value)).length>0},"last-child":function(e,t,n,r,i){return Fg(i,e),Boolean(i.elementCount&&i.elementIndex===i.elementCount-1)},"last-of-type":function(e,t,n,r,i){return Fg(i,e),"number"===typeof i.typeIndex&&"number"===typeof i.typeCount&&i.typeIndex===i.typeCount-1},matches:Mg,not:function(e,t,n,r,i){return!Mg(e,t,n,r,i)},"nth-child":function(e,t,n,r,i){var o=Bg(e);return Fg(i,e),"number"===typeof i.elementIndex&&o(i.elementIndex)},"nth-last-child":function(e,t,n,r,i){var o=Bg(e);return Fg(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=Bg(e);return Fg(i,e),"number"===typeof i.typeIndex&&o(i.typeIndex)},"nth-last-of-type":function(e,t,n,r,i){var o=Bg(e);return Fg(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 Fg(i,e),1===i.elementCount},"only-of-type":function(e,t,n,r,i){return Fg(i,e),1===i.typeCount},optional:function(e,t){return!$g(e,t)},"read-only":function(e,t,n,r,i){return!Ig(e,t,n,r,i)},"read-write":Ig,required:$g,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 Rg(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?Yg(o,"descendant",s):"~"===s.rule.nestingOperator&&Yg(o,"generalSibling",s)}return o}(e,Wg(t,e.rootQuery.selectors),n,r,i)),!("children"in n)||e.shallow||e.one&&e.found||function(e,t,n){var r,i=Wg(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,re.Z)(e),(0,re.Z)(t)):e&&e.length>0?e:t&&t.length>0?t:Ug}function Yg(e,t,n){var r=e[t];r?r.push(n):e[t]=[n]}function qg(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 Vg=new(n(861).N);function Gg(e){if("string"!==typeof e)throw new TypeError("Expected `string` as selector, not `"+e+"`");return Vg.parse(e)}function Jg(e,t,n){return{rootQuery:zg(Gg(e)),results:[],scopeElements:t?"root"===t.type?t.children:[t]:[],one:!1,shallow:!1,found:!1,schema:"svg"===n?md.YP:md.dy,language:void 0,direction:"ltr",editableOrEditingHost:!1,typeIndex:void 0,elementIndex:void 0,typeCount:void 0,elementCount:void 0}}Vg.registerAttrEqualityMods("~","|","^","$","*"),Vg.registerSelectorPseudos("any","matches","not","has"),Vg.registerNestingOperators(">","+","~");var Kg=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},ev=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=Jg(e,t,n);return Xg(r,t||void 0),r.results}(n,e);t&&t.length>0&&zf(e,t,(function(e,t,n){r(e,t,n)}))}else zf(e,(function(e,t,n){r(e,t,n)}))}},tv={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 nv=n(8497),rv=n.n(nv);var iv=function(e){return void 0===e&&(e={}),function(e){zf(e,(function(e){"element"===e.type&&"code"===e.tagName&&e.data&&e.data.meta&&(e.properties=Yt({},e.properties,{"data-meta":String(e.data.meta)}))}))}},ov=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement"],av=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=qt(e,ov),k=J.useRef(null);(0,J.useImperativeHandle)(t,(function(){return Yt({},e,{mdp:k})}),[k,e]);var b=(r||"")+" "+(i||"");!function(e){var t=(0,J.useCallback)((function(e){var t=e.currentTarget||e.target;t.classList.add("active"),rv()(t.dataset.code,(function(){setTimeout((function(){t.classList.remove("active")}),2e3)}))}),[]);(0,J.useEffect)((function(){var n,r=null==(n=e.current)?void 0:n.querySelectorAll("pre code + div.copied");return r&&Array.from(r).forEach((function(e){return e.addEventListener("click",t,!1)})),function(){r&&Array.from(r).forEach((function(e){return e.removeEventListener("click",t,!1)}))}}),[e])}(k);var S=[iv,[mg,{ignoreMissing:!0}],Ym,eg,og,[ev,{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=Yt({class:"anchor"},r.properties),r.children=[tv])}if("element"===e.type&&"pre"===e.tagName&&!l){var i=Kg(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)}}],[ig,{properties:"attr"}]].concat((0,re.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(Im);var w=[].concat((0,re.Z)(y.remarkPlugins||[]),[cm]),T=Yt({},O,g);return(0,Vt.jsx)("div",Yt({ref:k,onScroll:h,onMouseOver:f},T,{className:b,style:a,children:(0,Vt.jsx)(Rd,Yt({},x,y,{skipHtml:c,rehypePlugins:d?d("rehype",S):S,remarkPlugins:d?d("remark",w):w,children:o||""}))}))})),sv={name:"bold",keyCommand:"bold",button:{"aria-label":"Add bold text"},icon:(0,Vt.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 384 512",children:(0,Vt.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:Pa.jT.range(e.from+2,e.to+2)}})))}},lv={name:"code",keyCommand:"code",button:{"aria-label":"Insert code"},icon:(0,Vt.jsxs)("svg",{viewBox:"0 0 48 48",fill:"none",height:"15",width:"15",children:[(0,Vt.jsx)("path",{d:"M16 13 4 25.432 16 37m16-24 12 12.432L32 37",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Vt.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:Pa.jT.range(e.from+1,e.to+1)}})))}},uv={name:"codeBlock",keyCommand:"codeBlock",button:{"aria-label":"Insert Code Block"},icon:(0,Vt.jsxs)("svg",{viewBox:"0 0 48 48",fill:"none",height:"15",width:"15",children:[(0,Vt.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,Vt.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:Pa.jT.range(r.from+3,r.from+5)})}}},cv={name:"italic",keyCommand:"italic",button:{"aria-label":"Add italic text"},icon:(0,Vt.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 320 512",children:(0,Vt.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:Pa.jT.range(e.from+1,e.to+1)}})))}},hv={name:"header",keyCommand:"header",button:{"aria-label":"Add header text"},icon:(0,Vt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"13",width:"13",children:(0,Vt.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}})}}},fv={name:"strike",keyCommand:"strike",button:{"aria-label":"Add strike text"},icon:(0,Vt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 512 512",height:"14",width:"14",children:(0,Vt.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:Pa.jT.range(e.from+2,e.to+2)}})))}},dv={name:"underline",keyCommand:"underline",button:{"aria-label":"Add underline text"},icon:(0,Vt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"13",width:"13",children:(0,Vt.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:Pa.jT.range(e.from+3,e.to+3)}})))}},pv={name:"olist",keyCommand:"olist",button:{"aria-label":"Add olist text"},icon:(0,Vt.jsx)("svg",{viewBox:"0 0 576 512",height:"14",width:"14",children:(0,Vt.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}})}}},mv={name:"ulist",keyCommand:"ulist",button:{"aria-label":"Add ulist text"},icon:(0,Vt.jsx)("svg",{viewBox:"0 0 512 512",height:"14",width:"14",children:(0,Vt.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}})}}},gv={name:"quote",keyCommand:"quote",button:{"aria-label":"Add quote text"},icon:(0,Vt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"15",width:"15",children:(0,Vt.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}})}}},vv={name:"link",keyCommand:"link",button:{"aria-label":"Add link text"},icon:(0,Vt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 640 512",height:"16",width:"16",children:(0,Vt.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:Pa.jT.range(r.from+3+i.length,r.to+3)})}}},Ov={name:"todo",keyCommand:"todo",button:{"aria-label":"Add todo List"},icon:(0,Vt.jsx)("svg",{viewBox:"0 0 48 48",fill:"none",height:"15",width:"15",children:(0,Vt.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}})}}},yv={name:"image",keyCommand:"image",button:{"aria-label":"Add image text"},icon:(0,Vt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"14",width:"14",children:(0,Vt.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:Pa.jT.range(r.from+4,r.to+4)})}}},kv={name:"redo",keyCommand:"redo",button:{"aria-label":"redo text"},icon:(0,Vt.jsx)("svg",{viewBox:"0 0 512 512",height:"14",width:"14",children:(0,Vt.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&&Ha(n)}},bv={name:"undo",keyCommand:"undo",button:{"aria-label":"undo text"},icon:(0,Vt.jsx)("svg",{viewBox:"0 0 512 512",height:"14",width:"14",children:(0,Vt.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&&Xa(n)}},Sv=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];return(0,J.useEffect)((function(){if(t.containerEditor&&t.containerEditor.current&&t.containerEditor.current.parentElement){var e=t.containerEditor.current.parentElement;new ResizeObserver((function(e){var r,i=(0,ne.Z)(e);try{for(i.s();!(r=i.n()).done;){var a,s,l,u=r.value;n.current||(n.current=u.target.clientHeight),null!=(a=t.editor)&&null!=(s=a.current)&&null!=(l=s.view)&&l.dom&&(o?t.editor.current.view.dom.style.height=u.target.clientHeight+"px":t.editor.current.view.dom.removeAttribute("style"))}}catch(c){i.e(c)}finally{i.f()}})).observe(e)}}),[t.containerEditor,t.editor,o]),(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,Vt.jsx)("button",{onClick:function(){return a(!o)},type:"button",className:o?"active":"",children:e.command.icon})},xv={name:"fullscreen",keyCommand:"fullscreen",button:function(e,t,n){return(0,Vt.jsx)(Sv,{command:e,editorProps:Yt({},t,n)})},icon:(0,Vt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"15",width:"15",children:(0,Vt.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"})})},wv=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,Vt.jsx)("button",{onClick:function(){return u(!l)},type:"button",className:l?"active":"",children:e.command.icon})},Tv={name:"preview",keyCommand:"preview",button:function(e,t,n){return(0,Vt.jsx)(wv,{command:e,editorProps:Yt({},t,n)})},icon:(0,Vt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 576 512",height:"16",width:"16",children:(0,Vt.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"})})},Cv={undo:bv,redo:kv,bold:sv,italic:cv,header:hv,strike:fv,underline:dv,quote:gv,olist:pv,ulist:mv,todo:Ov,link:vv,image:yv,code:lv,codeBlock:uv,fullscreen:xv,preview:Tv},Ev=function(){return Object.keys(Cv).filter((function(e){return!/^(fullscreen|preview)/.test(e)})).map((function(e){return Cv[e]}))},Av=function(){return[Tv,xv]},Pv=["prefixCls","className","onClick","toolbars","editor","mode","preview","container","containerEditor","editorProps"];function Qv(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=qt(e,Pv);if(!o||0===o.length)return null;return(0,Vt.jsx)("div",Yt({className:n+"-toolbar "+(r||"")+" "+(s?n+"-toolbar-mode":"")},d,{children:(0,re.Z)(o).map((function(e,t){var n={type:"button"},r="string"===typeof e?Cv[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",Yt({},n,{key:t}))}))}))}var _v=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-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={backgroundColor:r.selection}),r.selectionMatch&&(a["& .cm-selectionMatch"]={backgroundColor:r.selectionMatch});var u=Ea.tk.theme(a,{dark:"dark"===t}),c=xa.Qf.define(o);return[u,(0,xa.nF)(c)]},Dv=_v({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:Lu.pJ.comment,color:"var(--color-prettylights-syntax-comment)"},{tag:Lu.pJ.variableName,color:"var(--color-prettylights-syntax-variable)"},{tag:[Lu.pJ.string,Lu.pJ.special(Lu.pJ.brace)],color:"var(--color-prettylights-syntax-entity)"},{tag:Lu.pJ.number,color:"var(--color-prettylights-syntax-variable)"},{tag:[Lu.pJ.bool,Lu.pJ.null],color:"var(--color-prettylights-syntax-entity)"},{tag:Lu.pJ.keyword,color:"var(--color-prettylights-syntax-keyword)",fontWeight:"bold"},{tag:Lu.pJ.string,color:"var(--color-prettylights-syntax-string)"},{tag:Lu.pJ.operator,color:"var(--color-accent-emphasis)"},{tag:Lu.pJ.deleted,color:"var(--color-prettylights-syntax-markup-deleted-bg)"},{tag:Lu.pJ.deleted,color:"red"},{tag:Lu.pJ.className,color:"var(--color-prettylights-syntax-variable)"},{tag:Lu.pJ.definition(Lu.pJ.typeName),color:"var(--color-prettylights-syntax-entity)"},{tag:Lu.pJ.typeName,color:"var(--color-prettylights-syntax-entity)"},{tag:Lu.pJ.list,color:"var(--color-prettylights-syntax-markup-list)"},{tag:Lu.pJ.heading,color:"var(--color-prettylights-syntax-markup-heading)",fontWeight:"bold"},{tag:Lu.pJ.regexp,color:"var(--color-prettylights-syntax-string-regexp)"},{tag:Lu.pJ.literal,color:"var(--color-prettylights-syntax-markup-italic)"},{tag:Lu.pJ.link,color:"var(--color-prettylights-syntax-constant-other-reference-link)",textDecoration:"underline"},{tag:Lu.pJ.angleBracket,color:"var(--color-fg-default)"},{tag:Lu.pJ.tagName,color:"var(--color-prettylights-syntax-entity-tag)"},{tag:Lu.pJ.attributeName,color:"var(--color-prettylights-syntax-constant)"}]}),Nv=["prefixCls","className","onChange","toolbars","toolbarsMode","toolbarsFilter","visible","renderPreview","visibleEditor","hideToolbar","toolbarBottom","enableScroll","previewProps","extensions","previewWidth","reExtensions"],Rv=Ea.tk.theme({"&.cm-editor, & .cm-scroller":{borderBottomRightRadius:"3px",borderBottomLeftRadius:"3px"}}),Zv=J.forwardRef(Iv);Zv.Markdown=av;var Mv=Zv;function Iv(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?Ev():a,l=e.toolbarsMode,u=void 0===l?Av():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,k=e.enableScroll,b=void 0===k||k,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=qt(e,Nv),Q=(0,J.useState)(e.value||""),_=(0,te.Z)(Q,2),D=_[0],N=_[1],R=(0,J.useRef)(null),Z=(0,J.useRef)(null),M=(0,J.useRef)(null),I=(0,J.useRef)(null),$=(0,J.useRef)("editor");(0,J.useImperativeHandle)(t,(function(){return{editor:R,preview:I}}),[R]);var L={preview:I,editor:R,container:Z,containerEditor:M,editorProps:Yt({},e,{previewWidth:E})},F="number"===typeof P.height?P.height+"px":P.height,B=(0,J.useCallback)((function(e){if(b){var t=e.target,n=t.scrollTop/t.scrollHeight;if("editor"===$.current&&I.current){var r,i=(null==(r=I.current)?void 0:r.scrollHeight)||0;I.current.scrollTop=i*n}else if(R.current&&R.current.view){var o=R.current.view.scrollDOM,a=R.current.view.scrollDOM.scrollHeight||0;o.scrollTop=a*n}}}),[b]),j=function(){return $.current="preview"},U=function(){return $.current="editor"};(0,J.useEffect)((function(){var e=I.current;return e&&b&&(e.addEventListener("mouseover",j,!1),e.addEventListener("mouseleave",U,!1),e.addEventListener("scroll",B,!1)),function(){e&&b&&(e.removeEventListener("mouseover",j),e.removeEventListener("mouseleave",j),e.addEventListener("mouseleave",B,!1))}}),[I,b,B]);var z=Aa({type:"scroll",events:{scroll:B}}),X=A||[(0,Sa.markdown)({base:Sa.markdownLanguage,codeLanguages:Ca}),Rv].concat((0,re.Z)(T));b&&X.push(z);var H=r+"-preview",W=[r,"wmde-markdown-var",i].filter(Boolean).join(" ");x.source=D;var Y=(0,Vt.jsxs)("div",{className:r+"-content",style:{height:P.height},children:[(0,Vt.jsx)("div",{className:r+"-content-editor",ref:M,children:m&&(0,Vt.jsx)(uc,Yt({theme:Dv},P,{extensions:X,height:F,ref:R,onChange:function(e,t){N(e),o&&o(e,t)}}))}),(0,Vt.jsx)("div",{className:H,ref:I,children:d?d(x,!!f):(0,Vt.jsx)(av,Yt({},x,{"data-visible":!!f}))})]}),q=[r&&r+"-toolbar-warp",r&&y&&r+"-toolbar-bottom"].filter(Boolean).join(" "),V=c?s.filter(c):s,G=c?u.filter(c):u,K=v&&(0,Vt.jsxs)("div",{className:q,children:[(0,Vt.jsx)(Qv,Yt({},L,{toolbars:V})),(0,Vt.jsx)(Qv,Yt({},L,{toolbars:G,mode:!0}))]}),ee=y?(0,Vt.jsxs)(J.Fragment,{children:[Y,K]}):(0,Vt.jsxs)(J.Fragment,{children:[K,Y]});return(0,Vt.jsx)("div",{className:W,ref:Z,children:ee})}var $v={background:"#0f0f0f",foreground:"#defdef",caret:"#00FF00",selection:"#515151",selectionMatch:"#515151",gutterBackground:"#555",gutterForeground:"#FFFFFF",lineHighlight:"#314151"},Lv=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 _v({theme:r,settings:Yt({},$v,o),styles:[{tag:Lu.pJ.keyword,color:"darkgoldenrod",fontWeight:"bold"},{tag:Lu.pJ.atom,color:"#77F"},{tag:Lu.pJ.comment,color:"#7a7b7c",fontStyle:"italic"},{tag:Lu.pJ.number,color:"violet"},{tag:Lu.pJ.definition(Lu.pJ.variableName),color:"#fffabc"},{tag:Lu.pJ.variableName,color:"#abcdef"},{tag:Lu.pJ.function(Lu.pJ.variableName),color:"#fffabc"},{tag:Lu.pJ.typeName,color:"#FFDD44"},{tag:Lu.pJ.tagName,color:"#def"},{tag:Lu.pJ.string,color:"#2b4"},{tag:Lu.pJ.meta,color:"#C9F"},{tag:Lu.pJ.bracket,color:"#8a8a8a"},{tag:Lu.pJ.attributeName,color:"#DDFF00"},{tag:Lu.pJ.heading,color:"aquamarine",fontWeight:"bold"},{tag:Lu.pJ.link,color:"blueviolet",fontWeight:"bold"}].concat((0,re.Z)(s))})}(),Fv={background:"#282b2e",foreground:"#a9b7c6",caret:"#00FF00",selection:"#343739",selectionMatch:"#343739",lineHighlight:"#343739"},Bv=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 _v({theme:r,settings:Yt({},Fv,o),styles:[{tag:[Lu.pJ.keyword,Lu.pJ.deleted,Lu.pJ.className],color:"#cc7832"},{tag:[Lu.pJ.number,Lu.pJ.literal,Lu.pJ.derefOperator],color:"#6897bb"},{tag:[Lu.pJ.link,Lu.pJ.variableName],color:"#629755"},{tag:[Lu.pJ.comment,Lu.pJ.quote],color:"grey"},{tag:[Lu.pJ.meta,Lu.pJ.documentMeta],color:"#bbb529"},{tag:[Lu.pJ.string,Lu.pJ.propertyName,Lu.pJ.attributeValue],color:"#6a8759"},{tag:[Lu.pJ.heading,Lu.pJ.typeName],color:"#ffc66d"},{tag:[Lu.pJ.attributeName],color:"#a9b7c6"},{tag:[Lu.pJ.emphasis],fontStyle:"italic"}].concat((0,re.Z)(s))})}(),jv={background:"#272C35",foreground:"#9d9b97",caret:"#797977",selection:"#ffffff30",selectionMatch:"#2B323D",gutterBackground:"#272C35",gutterForeground:"#465063",gutterBorder:"transparent",lineHighlight:"#2B323D"},Uv=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 _v({theme:r,settings:Yt({},jv,o),styles:[{tag:[Lu.pJ.function(Lu.pJ.variableName),Lu.pJ.function(Lu.pJ.propertyName),Lu.pJ.url,Lu.pJ.processingInstruction],color:"hsl(207, 82%, 66%)"},{tag:[Lu.pJ.tagName,Lu.pJ.heading],color:"#e06c75"},{tag:Lu.pJ.comment,color:"#54636D"},{tag:[Lu.pJ.propertyName],color:"hsl(220, 14%, 71%)"},{tag:[Lu.pJ.attributeName,Lu.pJ.number],color:"hsl( 29, 54%, 61%)"},{tag:Lu.pJ.className,color:"hsl( 39, 67%, 69%)"},{tag:Lu.pJ.keyword,color:"hsl(286, 60%, 67%)"},{tag:[Lu.pJ.string,Lu.pJ.regexp,Lu.pJ.special(Lu.pJ.propertyName)],color:"#98c379"}].concat((0,re.Z)(s))})}(),zv={background:"#FFFFFF",foreground:"#000000",caret:"#FBAC52",selection:"#FFD420",selectionMatch:"#FFD420",gutterBackground:"#f5f5f5",gutterForeground:"#4D4D4C",gutterBorder:"transparent",lineHighlight:"#00000012"},Xv=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 _v({theme:r,settings:Yt({},zv,o),styles:[{tag:[Lu.pJ.meta,Lu.pJ.comment],color:"#804000"},{tag:[Lu.pJ.keyword,Lu.pJ.strong],color:"#0000FF"},{tag:[Lu.pJ.number],color:"#FF0080"},{tag:[Lu.pJ.string],color:"#FF0080"},{tag:[Lu.pJ.variableName],color:"#006600"},{tag:[Lu.pJ.escape],color:"#33CC33"},{tag:[Lu.pJ.tagName],color:"#1C02FF"},{tag:[Lu.pJ.heading],color:"#0C07FF"},{tag:[Lu.pJ.quote],color:"#000000"},{tag:[Lu.pJ.list],color:"#B90690"},{tag:[Lu.pJ.documentMeta],color:"#888888"},{tag:[Lu.pJ.function(Lu.pJ.variableName)],color:"#0000A2"},{tag:[Lu.pJ.definition(Lu.pJ.typeName),Lu.pJ.typeName],color:"#6D79DE"}].concat((0,re.Z)(s))})}(),Hv={background:"#28211c",foreground:"#9d9b97",caret:"#797977",selection:"#36312e",selectionMatch:"#4f382b",gutterBackground:"#28211c",gutterForeground:"#666666",lineHighlight:"rgba(255, 255, 255, 0.1)"},Wv=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 _v({theme:r,settings:Yt({},Hv,o),styles:[{tag:[Lu.pJ.atom,Lu.pJ.number,Lu.pJ.link,Lu.pJ.bool],color:"#9b859d"},{tag:Lu.pJ.comment,color:"#937121"},{tag:[Lu.pJ.keyword,Lu.pJ.tagName],color:"#cf6a4c"},{tag:Lu.pJ.string,color:"#f9ee98"},{tag:Lu.pJ.bracket,color:"#9d9b97"},{tag:[Lu.pJ.variableName],color:"#5ea6ea"},{tag:Lu.pJ.definition(Lu.pJ.variableName),color:"#cf7d34"},{tag:[Lu.pJ.function(Lu.pJ.variableName),Lu.pJ.className],color:"#cf7d34"},{tag:[Lu.pJ.propertyName,Lu.pJ.attributeName],color:"#54be0d"}].concat((0,re.Z)(s))})}(),Yv={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)"},qv=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 _v({theme:r,settings:Yt({},Yv,o),styles:[{tag:[Lu.pJ.atom,Lu.pJ.number],color:"#bd93f9"},{tag:[Lu.pJ.comment],color:"#61A151"},{tag:[Lu.pJ.string],color:"#6A8759"},{tag:[Lu.pJ.variableName,Lu.pJ.operator],color:"#A9B7C6"},{tag:[Lu.pJ.meta,Lu.pJ.className],color:"#A9B7C6"},{tag:[Lu.pJ.propertyName],color:"#FFC66D"},{tag:[Lu.pJ.keyword],color:"#CC7832"},{tag:[Lu.pJ.tagName],color:"#ff79c6"},{tag:[Lu.pJ.typeName],color:"#ffb86c"}].concat((0,re.Z)(s))})}(),Vv={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)"},Gv=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 _v({theme:r,settings:Yt({},Vv,o),styles:[{tag:Lu.pJ.comment,color:"#6272a4"},{tag:Lu.pJ.string,color:"#f1fa8c"},{tag:Lu.pJ.atom,color:"#bd93f9"},{tag:Lu.pJ.meta,color:"#f8f8f2"},{tag:[Lu.pJ.keyword,Lu.pJ.operator,Lu.pJ.tagName],color:"#ff79c6"},{tag:[Lu.pJ.function(Lu.pJ.propertyName),Lu.pJ.propertyName],color:"#66d9ef"},{tag:[Lu.pJ.definition(Lu.pJ.variableName),Lu.pJ.function(Lu.pJ.variableName),Lu.pJ.className,Lu.pJ.attributeName],color:"#50fa7b"},{tag:Lu.pJ.atom,color:"#bd93f9"}].concat((0,re.Z)(s))})}(),Jv={background:"#faf8f5",foreground:"#b29762",caret:"#93abdc",selection:"#e3dcce",selectionMatch:"#e3dcce",gutterBackground:"#faf8f5",gutterForeground:"#cdc4b1",gutterBorder:"transparent",lineHighlight:"#EFEFEF"},Kv=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 _v({theme:r,settings:Yt({},Jv,o),styles:[{tag:[Lu.pJ.comment,Lu.pJ.bracket],color:"#b6ad9a"},{tag:[Lu.pJ.atom,Lu.pJ.number,Lu.pJ.keyword,Lu.pJ.link,Lu.pJ.attributeName,Lu.pJ.quote],color:"#063289"},{tag:[Lu.pJ.emphasis,Lu.pJ.heading,Lu.pJ.tagName,Lu.pJ.propertyName,Lu.pJ.variableName],color:"#2d2006"},{tag:[Lu.pJ.typeName,Lu.pJ.url,Lu.pJ.string],color:"#896724"},{tag:[Lu.pJ.operator,Lu.pJ.string],color:"#1659df"},{tag:[Lu.pJ.propertyName],color:"#b29762"},{tag:[Lu.pJ.unit,Lu.pJ.punctuation],color:"#063289"}].concat((0,re.Z)(s))})}(),eO={background:"#2a2734",foreground:"#6c6783",caret:"#ffad5c",selection:"rgba(255, 255, 255, 0.1)",gutterBackground:"#2a2734",gutterForeground:"#545167",lineHighlight:"#36334280"},tO=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 _v({theme:r,settings:Yt({},eO,o),styles:[{tag:[Lu.pJ.comment,Lu.pJ.bracket],color:"#6c6783"},{tag:[Lu.pJ.atom,Lu.pJ.number,Lu.pJ.keyword,Lu.pJ.link,Lu.pJ.attributeName,Lu.pJ.quote],color:"#ffcc99"},{tag:[Lu.pJ.emphasis,Lu.pJ.heading,Lu.pJ.tagName,Lu.pJ.propertyName,Lu.pJ.className,Lu.pJ.variableName],color:"#eeebff"},{tag:[Lu.pJ.typeName,Lu.pJ.url],color:"#7a63ee"},{tag:Lu.pJ.operator,color:"#ffad5c"},{tag:Lu.pJ.string,color:"#ffb870"},{tag:[Lu.pJ.propertyName],color:"#9a86fd"},{tag:[Lu.pJ.unit,Lu.pJ.punctuation],color:"#e09142"}].concat((0,re.Z)(s))})}(),nO={background:"#fff",foreground:"#000",caret:"#FFFFFF",selection:"#d7d4f0",selectionMatch:"#d7d4f0",gutterBackground:"#f7f7f7",gutterForeground:"#999",lineHighlight:"#e8f2ff",gutterBorder:"transparent"},rO=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 _v({theme:r,settings:Yt({},nO,o),styles:[{tag:[Lu.pJ.comment],color:"#3F7F5F"},{tag:[Lu.pJ.documentMeta],color:"#FF1717"},{tag:Lu.pJ.keyword,color:"#7F0055",fontWeight:"bold"},{tag:Lu.pJ.atom,color:"#00f"},{tag:Lu.pJ.number,color:"#164"},{tag:Lu.pJ.propertyName,color:"#164"},{tag:[Lu.pJ.variableName,Lu.pJ.definition(Lu.pJ.variableName)],color:"#0000C0"},{tag:Lu.pJ.function(Lu.pJ.variableName),color:"#0000C0"},{tag:Lu.pJ.string,color:"#2A00FF"},{tag:Lu.pJ.operator,color:"black"},{tag:Lu.pJ.tagName,color:"#170"},{tag:Lu.pJ.attributeName,color:"#00c"},{tag:Lu.pJ.link,color:"#219"}].concat((0,re.Z)(s))})}(),iO={background:"#fff",foreground:"#24292e",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#6e7781"},oO=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 _v({theme:r,settings:Yt({},iO,o),styles:[{tag:[Lu.pJ.standard(Lu.pJ.tagName),Lu.pJ.tagName],color:"#116329"},{tag:[Lu.pJ.comment,Lu.pJ.bracket],color:"#6a737d"},{tag:[Lu.pJ.className,Lu.pJ.propertyName],color:"#6f42c1"},{tag:[Lu.pJ.variableName,Lu.pJ.attributeName,Lu.pJ.number,Lu.pJ.operator],color:"#005cc5"},{tag:[Lu.pJ.keyword,Lu.pJ.typeName,Lu.pJ.typeOperator,Lu.pJ.typeName],color:"#d73a49"},{tag:[Lu.pJ.string,Lu.pJ.meta,Lu.pJ.regexp],color:"#032f62"},{tag:[Lu.pJ.name,Lu.pJ.quote],color:"#22863a"},{tag:[Lu.pJ.heading],color:"#24292e",fontWeight:"bold"},{tag:[Lu.pJ.emphasis],color:"#24292e",fontStyle:"italic"},{tag:[Lu.pJ.deleted],color:"#b31d28",backgroundColor:"ffeef0"},{tag:[Lu.pJ.atom,Lu.pJ.bool,Lu.pJ.special(Lu.pJ.variableName)],color:"#e36209"},{tag:[Lu.pJ.url,Lu.pJ.escape,Lu.pJ.regexp,Lu.pJ.link],color:"#032f62"},{tag:Lu.pJ.link,textDecoration:"underline"},{tag:Lu.pJ.strikethrough,textDecoration:"line-through"},{tag:Lu.pJ.invalid,color:"#cb2431"}].concat((0,re.Z)(s))})}(),aO={background:"#0d1117",foreground:"#c9d1d9",caret:"#c9d1d9",selection:"#003d73",selectionMatch:"#003d73",lineHighlight:"#36334280"},sO=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 _v({theme:r,settings:Yt({},aO,o),styles:[{tag:[Lu.pJ.standard(Lu.pJ.tagName),Lu.pJ.tagName],color:"#7ee787"},{tag:[Lu.pJ.comment,Lu.pJ.bracket],color:"#8b949e"},{tag:[Lu.pJ.className,Lu.pJ.propertyName],color:"#d2a8ff"},{tag:[Lu.pJ.variableName,Lu.pJ.attributeName,Lu.pJ.number,Lu.pJ.operator],color:"#79c0ff"},{tag:[Lu.pJ.keyword,Lu.pJ.typeName,Lu.pJ.typeOperator,Lu.pJ.typeName],color:"#ff7b72"},{tag:[Lu.pJ.string,Lu.pJ.meta,Lu.pJ.regexp],color:"#a5d6ff"},{tag:[Lu.pJ.name,Lu.pJ.quote],color:"#7ee787"},{tag:[Lu.pJ.heading],color:"#d2a8ff",fontWeight:"bold"},{tag:[Lu.pJ.emphasis],color:"#d2a8ff",fontStyle:"italic"},{tag:[Lu.pJ.deleted],color:"#ffdcd7",backgroundColor:"ffeef0"},{tag:[Lu.pJ.atom,Lu.pJ.bool,Lu.pJ.special(Lu.pJ.variableName)],color:"#ffab70"},{tag:Lu.pJ.link,textDecoration:"underline"},{tag:Lu.pJ.strikethrough,textDecoration:"line-through"},{tag:Lu.pJ.invalid,color:"#f97583"}].concat((0,re.Z)(s))})}(),lO={background:"#272822",foreground:"#FFFFFF",caret:"#FFFFFF",selection:"#49483E",selectionMatch:"#49483E",gutterBackground:"#272822",gutterForeground:"#FFFFFF70",lineHighlight:"#00000059"},uO=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 _v({theme:r,settings:Yt({},lO,o),styles:[{tag:[Lu.pJ.comment,Lu.pJ.documentMeta],color:"#8292a2"},{tag:[Lu.pJ.number,Lu.pJ.bool,Lu.pJ.null,Lu.pJ.atom],color:"#ae81ff"},{tag:[Lu.pJ.attributeValue,Lu.pJ.className,Lu.pJ.name],color:"#e6db74"},{tag:[Lu.pJ.propertyName,Lu.pJ.attributeName],color:"#a6e22e"},{tag:[Lu.pJ.variableName],color:"#9effff"},{tag:[Lu.pJ.squareBracket],color:"#bababa"},{tag:[Lu.pJ.string,Lu.pJ.special(Lu.pJ.brace)],color:"#e6db74"},{tag:[Lu.pJ.regexp,Lu.pJ.className,Lu.pJ.typeName,Lu.pJ.definition(Lu.pJ.typeName)],color:"#66d9ef"},{tag:[Lu.pJ.definition(Lu.pJ.variableName),Lu.pJ.definition(Lu.pJ.propertyName),Lu.pJ.function(Lu.pJ.variableName)],color:"#fd971f"},{tag:[Lu.pJ.keyword,Lu.pJ.definitionKeyword,Lu.pJ.modifier,Lu.pJ.tagName,Lu.pJ.angleBracket],color:"#f92672"}].concat((0,re.Z)(s))})}(),cO={background:"#303841",foreground:"#FFFFFF",caret:"#FBAC52",selection:"#4C5964",selectionMatch:"#3A546E",gutterBackground:"#303841",gutterForeground:"#FFFFFF70",lineHighlight:"#00000059"};var hO=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 _v({theme:r,settings:Yt({},cO,o),styles:[{tag:[Lu.pJ.meta,Lu.pJ.comment],color:"#A2A9B5"},{tag:[Lu.pJ.attributeName,Lu.pJ.keyword],color:"#B78FBA"},{tag:Lu.pJ.function(Lu.pJ.variableName),color:"#5AB0B0"},{tag:[Lu.pJ.string,Lu.pJ.regexp,Lu.pJ.attributeValue],color:"#99C592"},{tag:Lu.pJ.operator,color:"#f47954"},{tag:[Lu.pJ.tagName,Lu.pJ.modifier],color:"#E35F63"},{tag:[Lu.pJ.number,Lu.pJ.definition(Lu.pJ.tagName),Lu.pJ.className,Lu.pJ.definition(Lu.pJ.variableName)],color:"#fbac52"},{tag:[Lu.pJ.atom,Lu.pJ.bool,Lu.pJ.special(Lu.pJ.variableName)],color:"#E35F63"},{tag:Lu.pJ.variableName,color:"#539ac4"},{tag:[Lu.pJ.propertyName,Lu.pJ.typeName],color:"#629ccd"},{tag:Lu.pJ.propertyName,color:"#36b7b5"}].concat((0,re.Z)(s))})}(),fO={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#EDF4FF"};var dO,pO,mO,gO,vO,OO,yO,kO=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 _v({theme:r,settings:Yt({},fO,o),styles:[{tag:[Lu.pJ.comment,Lu.pJ.quote],color:"#707F8D"},{tag:[Lu.pJ.typeName,Lu.pJ.typeOperator],color:"#aa0d91"},{tag:[Lu.pJ.keyword],color:"#aa0d91",fontWeight:"bold"},{tag:[Lu.pJ.string,Lu.pJ.meta],color:"#D23423"},{tag:[Lu.pJ.name],color:"#032f62"},{tag:[Lu.pJ.typeName],color:"#522BB2"},{tag:[Lu.pJ.variableName],color:"#23575C"},{tag:[Lu.pJ.definition(Lu.pJ.variableName)],color:"#327A9E"},{tag:[Lu.pJ.regexp,Lu.pJ.link],color:"#0e0eff"}].concat((0,re.Z)(s))})}(),bO={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#2F3239"},SO=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 _v({theme:r,settings:Yt({},bO,o),styles:[{tag:[Lu.pJ.comment,Lu.pJ.quote],color:"#7F8C98"},{tag:[Lu.pJ.keyword],color:"#FF7AB2",fontWeight:"bold"},{tag:[Lu.pJ.string,Lu.pJ.meta],color:"#FF8170"},{tag:[Lu.pJ.typeName],color:"#DABAFF"},{tag:[Lu.pJ.definition(Lu.pJ.variableName)],color:"#6BDFFF"},{tag:[Lu.pJ.name],color:"#6BAA9F"},{tag:[Lu.pJ.variableName],color:"#ACF2E4"},{tag:[Lu.pJ.regexp,Lu.pJ.link],color:"#FF8170"}].concat((0,re.Z)(s))})}(),xO='
\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',wO=xO,TO={default:{label:"\u9ed8\u8ba4\u4e3b\u9898",value:Dv},abcdef:{label:"Abcdef Theme",value:Lv},androidstudio:{label:"Android Studio Theme",value:Bv},atomone:{label:"Atomone Theme",value:Uv},bbedit:{label:"Bbedit Theme",value:Xv},bespin:{label:"Bespin Theme",value:Wv},darcula:{label:"Darcula Theme",value:qv},dracula:{label:"Dracula Theme",value:Gv},duotoneLight:{label:"Duotone Light Theme",value:Kv},duotoneDark:{label:"Duotone Dark Theme",value:tO},eclipse:{label:"Eclipse Theme",value:rO},githubLight:{label:"Github Light Theme",value:oO},githubDark:{label:"Github Dark Theme",value:sO},okaidia:{label:"Okaidia Theme",value:uO},sublime:{label:"Sublime Theme",value:hO},xcodeLight:{label:"Xcode Light Theme",value:kO},xcodeDark:{label:"Xcode Dark Theme",value:SO}},CO={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:""}},EO={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:[]},AO=(Object.keys(CO).map((function(e){return CO[e].color})),J.createContext({preColor:"",setPreColor:function(){},isLoading:!0,setIsLoading:function(){},markdown:xO,setMarkdown:function(){},css:CO.underscore.value,setCss:function(){},previewTheme:"underscore",setPreviewTheme:function(){},theme:"default",setTheme:function(){}})),PO=Ki.div(dO||(dO=G([""]))),QO=Ki.div(pO||(pO=G(["\n position: relative;\n height: 2.8rem;\n"]))),_O=Ki.header(mO||(mO=G(["\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"]))),DO=Ki.article(gO||(gO=G(["\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 0.6rem;\n"]))),NO=Ki(na)(vO||(vO=G(["\n max-width: 3.6rem;\n"]))),RO=Ki.h1(OO||(OO=G(["\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"]))),ZO=Ki.section(yO||(yO=G(["\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 MO(){var e=(0,J.useContext)(AO).isLoading;return(0,Vt.jsxs)(PO,{className:"wmde-markdown-color",children:[(0,Vt.jsx)(QO,{children:(0,Vt.jsxs)(_O,{className:"header",children:[(0,Vt.jsxs)(DO,{className:"logo",children:[(0,Vt.jsx)(NO,{width:28,height:28}),(0,Vt.jsxs)(RO,{children:["\u5fae\u4fe1\u516c\u4f17\u53f7\u6392\u7248\u7f16\u8f91\u5668",(0,Vt.jsxs)("sup",{children:[" v","2.3.3"," "]})]}),e&&(0,Vt.jsx)(ba,{})]}),(0,Vt.jsxs)(ZO,{children:[(0,Vt.jsx)(zt,{to:"/",children:"\u9996\u9875"}),(0,Vt.jsx)(zt,{to:"/editor/theme",children:"\u7f16\u8f91\u4e3b\u9898"}),(0,Vt.jsx)(zt,{to:"/doc",children:"\u6587\u6863"}),(0,Vt.jsx)("dark-mode",{permanent:!0,dark:"Dark",light:"Light"}),(0,Vt.jsx)("a",{href:"https://github.com/jaywcjlove/wxmp",target:"__blank",children:(0,Vt.jsx)(ga,{width:23,height:23})})]})]})}),(0,Vt.jsx)(Pt,{})]})}var IO=1,$O=2,LO=3,FO=4,BO=5,jO=6,UO=7,zO=8,XO=9,HO=10,WO=11,YO=12,qO=13,VO=14,GO=15,JO=16,KO=17,ey=18,ty=19,ny=20,ry=21,iy=22,oy=23,ay=24,sy=25,ly=0;function uy(e){return e>=48&&e<=57}function cy(e){return uy(e)||e>=65&&e<=70||e>=97&&e<=102}function hy(e){return e>=65&&e<=90}function fy(e){return function(e){return hy(e)||function(e){return e>=97&&e<=122}(e)}(e)||function(e){return e>=128}(e)||95===e}function dy(e){return fy(e)||uy(e)||45===e}function py(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}function my(e){return 10===e||13===e||12===e}function gy(e){return my(e)||32===e||9===e}function vy(e,t){return 92===e&&(!my(t)&&t!==ly)}function Oy(e,t,n){return 45===e?fy(t)||45===t||vy(t,n):!!fy(e)||92===e&&vy(e,t)}function yy(e,t,n){return 43===e||45===e?uy(t)?2:46===t&&uy(n)?3:0:46===e?uy(t)?2:0:uy(e)?1:0}function ky(e){return 65279===e||65534===e?1:0}for(var by=new Array(128),Sy=130,xy=131,wy=132,Ty=133,Cy=0;Cye.length)return!1;for(var i=t;i=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)}var Ly=["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"],Fy=16384;function By(){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?ky(t.charCodeAt(0)):0,i=By(e.lines,n),o=By(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||jy(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||jy(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}(),zy=16777215,Xy=24,Hy=new Map([[$O,iy],[ry,iy],[ty,ny],[oy,ay]]),Wy=function(){function e(t,n){(0,ie.Z)(this,e),this.setSource(t,n)}return(0,oe.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=By(this.offsetAndType,e.length+1),i=By(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&zy;for(s=i[c],a=s>>Xy,i[o]=c,i[c++]=o;c>Xy:0}},{key:"lookupOffset",value:function(e){return(e+=this.tokenIndex)0?e>Xy,this.tokenEnd=t&zy):(this.tokenIndex=this.tokenCount,this.next())}},{key:"next",value:function(){var e=this.tokenIndex+1;e>Xy,this.tokenEnd=e&zy):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=0,this.tokenStart=this.tokenEnd=this.source.length)}},{key:"skipSC",value:function(){for(;this.tokenType===qO||this.tokenType===sy;)this.next()}},{key:"skipUntilBalanced",value:function(e,t){var n,r,i=e;e:for(;i0?this.offsetAndType[i-1]&zy: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>Xy,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:Ly[n],chunk:e.source.substring(r,i),balance:e.balance[o]}})),t}}]),e}();function Yy(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,ne.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 Gy(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 Jy=100,Ky=60,ek=" ";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+=(ek.length-1)*(a[r-1].substr(0,i-1).match(/\t/g)||[]).length)>Jy&&(c=i-Ky+3,i=Ky-2);for(var h=s;h<=l;h++)h>=0&&h0&&a[h].length>c?"\u2026":"")+a[h].substr(c,Jy-2)+(a[h].length>c+Jy-1?"\u2026":""));return[o(s,r),new Array(i+u+2).join("-")+"^",o(r,l)].filter(Boolean).join("\n")}function nk(e,t,n,r,i){return Object.assign(Gy("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 rk(e){for(var t=this.createList(),n=!1,r={recognizer:e};!this.eof;){switch(this.tokenType){case sy:this.next();continue;case qO: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 ik=function(){},ok=33,ak=35,sk=59,lk=123,uk=0;function ck(e){return function(){return this[e]()}}function hk(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 fk(e){var t="",n="",r=!1,i=ik,o=!1,a=new Uy,s=Object.assign(new Wy,function(e){var t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:hk(e.atrule),pseudo:hk(e.pseudo),node:hk(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]=ck(e.parseContext[n])}return(0,on.Z)((0,on.Z)({config:t},t),t.node)}(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:rk,consumeUntilBalanceEnd:function(){return 0},consumeUntilLeftCurlyBracket:function(e){return e===lk?1:0},consumeUntilLeftCurlyBracketOrSemicolon:function(e){return e===lk||e===sk?1:0},consumeUntilExclamationMarkOrSemicolon:function(e){return e===ok||e===sk?1:0},consumeUntilSemicolonIncluded:function(e){return e===sk?2:0},createList:function(){return new Vy},createSingleNodeList:function(e){return(new Vy).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(sn){if(o)throw sn;var r=t.call(this,n);return o=!0,i(sn,r),o=!1,r}},lookupNonWSType:function(e){var t;do{if((t=this.lookupType(e++))!==qO)return t}while(t!==uk);return uk},charCodeAt:function(e){return e>=0&&e=0&&gy(e.charCodeAt(t));t--);return t+1}(t,t.length-1)):a.getLocation(this.tokenStart);throw new nk(e||"Unexpected input",t,r.offset,r.line,r.column)}});return Object.assign((function(e,l){t=e,l=l||{},s.setSource(t,Yy),a.setSource(t,l.offset,l.line,l.column),n=l.filename||"",r=Boolean(l.positions),i="function"===typeof l.onParseError?l.onParseError:ik,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===sy){var i=s.getLocation(n,r),o=_y(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:nk,config:s.config})}var dk=n(865),pk=new Set(["Atrule","Selector","Declaration"]);var mk=function(e,t){if(e===XO&&(e=t),"string"===typeof e){var n=e.charCodeAt(0);return n>127?32768:n<<8}return e},gk=[[IO,IO],[IO,$O],[IO,UO],[IO,zO],[IO,"-"],[IO,HO],[IO,WO],[IO,YO],[IO,GO],[IO,ry],[LO,IO],[LO,$O],[LO,UO],[LO,zO],[LO,"-"],[LO,HO],[LO,WO],[LO,YO],[LO,GO],[FO,IO],[FO,$O],[FO,UO],[FO,zO],[FO,"-"],[FO,HO],[FO,WO],[FO,YO],[FO,GO],[YO,IO],[YO,$O],[YO,UO],[YO,zO],[YO,"-"],[YO,HO],[YO,WO],[YO,YO],[YO,GO],["#",IO],["#",$O],["#",UO],["#",zO],["#","-"],["#",HO],["#",WO],["#",YO],["#",GO],["-",IO],["-",$O],["-",UO],["-",zO],["-","-"],["-",HO],["-",WO],["-",YO],["-",GO],[HO,IO],[HO,$O],[HO,UO],[HO,zO],[HO,HO],[HO,WO],[HO,YO],[HO,"%"],[HO,GO],["@",IO],["@",$O],["@",UO],["@",zO],["@","-"],["@",GO],[".",HO],[".",WO],[".",YO],["+",HO],["+",WO],["+",YO],["/","*"]],vk=gk.concat([[IO,FO],[YO,FO],[FO,FO],[LO,ry],[LO,BO],[LO,JO],[WO,WO],[WO,YO],[WO,$O],[WO,"-"],[iy,IO],[iy,$O],[iy,WO],[iy,YO],[iy,FO],[iy,"-"]]);function Ok(e){var t=new Set(e.map((function(e){var t=(0,te.Z)(e,2),n=t[0],r=t[1];return mk(n)<<16|mk(r)})));return function(e,n,r){var i=mk(n,r),o=r.charCodeAt(0);return(45===o&&n!==IO&&n!==$O&&n!==GO||43===o?t.has(e<<16|o<<8):t.has(e<<16|i))&&this.emit(" ",qO,!0),i}}var yk=Ok(gk),kk=Ok(vk),bk=92;function Sk(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 xk(e){var t=this;Yy(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:kk,token:function(e,t){o=this.tokenBefore(o,e,t),this.emit(t,e,!1),e===XO&&t.charCodeAt(0)===bk&&this.emit("\n",qO,!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 dk.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&&pk.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&&pk.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 Zk(e,t){var n=Nk,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)),Rk(e,n,r,i)}var Mk={offset:0,line:1,column:1};function Ik(e,t){var n=e&&e.loc&&e.loc[t];return n?"line"in n?$k(n):n:null}function $k(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 Lk=function(e,t){var n=Gy("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},Fk=function(e,t,n,r){var i=Gy("SyntaxMatchError",e),o=function(e,t){for(var n,r,i=e.tokens,o=e.longestMatch,a=o1?(n=Ik(s||t,"end")||$k(Mk,h),r=$k(n)):(n=Ik(s,"start")||$k(Ik(t,"start")||Mk,h.slice(0,l)),r=Ik(s,"end")||$k(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?Zk(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},Bk=new Map,jk=new Map,Uk=45,zk=function(e){if(Bk.has(e))return Bk.get(e);var t=e.toLowerCase(),n=Bk.get(t);if(void 0===n){var r=Hk(t,0),i=r?"":Wk(t,0);n=Object.freeze({basename:t.substr(i.length),name:t,prefix:i,vendor:i,custom:r})}return Bk.set(e,n),n},Xk=function(e){if(jk.has(e))return jk.get(e);var t=e,n=e[0];"/"===n?n="/"===e[1]?"//":"/":"_"!==n&&"*"!==n&&"$"!==n&&"#"!==n&&"+"!==n&&"&"!==n&&(n="");var r=Hk(t,n.length);if(!r&&(t=t.toLowerCase(),jk.has(t))){var i=jk.get(t);return jk.set(e,i),i}var o=r?"":Wk(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 jk.set(e,s),s};function Hk(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===Uk&&e.charCodeAt(t+1)===Uk}function Wk(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===Uk&&e.charCodeAt(t+1)!==Uk){var n=e.indexOf("-",t+2);if(-1!==n)return e.substring(t,n+1)}return""}var Yk=["initial","inherit","unset","revert","revert-layer"],qk=43,Vk=45,Gk=!0;function Jk(e,t){return null!==e&&e.type===XO&&e.value.charCodeAt(0)===t}function Kk(e,t,n){for(;null!==e&&(e.type===qO||e.type===sy);)e=n(++t);return t}function eb(e,t,n,r){if(!e)return 0;var i=e.value.charCodeAt(t);if(i===qk||i===Vk){if(n)return 0;t++}for(;t6)return 0}return r}function ab(e,t,n){if(!e)return 0;for(;ib(n(t),rb);){if(++e>6)return 0;t++}return t}var sb=["calc(","-moz-calc(","-webkit-calc("],lb=new Map([[$O,iy],[ry,iy],[ty,ny],[oy,ay]]);function ub(e,t){return te.max&&"string"!==typeof e.max)return!0}return!1}function pb(e){return function(t,n,r){return null===t?0:t.type===$O&&hb(t.value,sb)?function(e,t){var n=0,r=[],i=0;e:do{switch(e.type){case ay:case iy:case ny:if(e.type!==n)break e;if(n=r.pop(),0===r.length){i++;break e}break;case $O:case ry:case ty:case oy:r.push(n),n=lb.get(e.type)}i++}while(e=t(i));return i}(t,n):e(t,n,r)}}function mb(e){return function(t){return null===t||t.type!==e?0:1}}function gb(e){return e&&(e=new Set(e)),function(t,n,r){if(null===t||t.type!==YO)return 0;var i=My(t.value,0);if(null!==e){var o=t.value.indexOf("\\",i),a=-1!==o&&fb(t.value,o)?t.value.substring(i,o):t.value.substr(i);if(!1===e.has(a.toLowerCase()))return 0}return db(r,t.value,i)?0:1}}function vb(e){return"function"!==typeof e&&(e=function(){return 0}),function(t,n,r){return null!==t&&t.type===HO&&0===Number(t.value)?1:e(t,n,r)}}var Ob={"ident-token":mb(IO),"function-token":mb($O),"at-keyword-token":mb(LO),"hash-token":mb(FO),"string-token":mb(BO),"bad-string-token":mb(jO),"url-token":mb(UO),"bad-url-token":mb(zO),"delim-token":mb(XO),"number-token":mb(HO),"percentage-token":mb(WO),"dimension-token":mb(YO),"whitespace-token":mb(qO),"CDO-token":mb(VO),"CDC-token":mb(GO),"colon-token":mb(JO),"semicolon-token":mb(KO),"comma-token":mb(ey),"[-token":mb(ty),"]-token":mb(ny),"(-token":mb(ry),")-token":mb(iy),"{-token":mb(oy),"}-token":mb(ay)},yb={string:mb(BO),ident:mb(IO),percentage:pb((function(e,t,n){return null===e||e.type!==WO||db(n,e.value,e.value.length-1)?0:1})),zero:vb(),number:pb((function(e,t,n){if(null===e)return 0;var r=My(e.value,0);return r===e.value.length||fb(e.value,r)?db(n,e.value,r)?0:1:0})),integer:pb((function(e,t,n){if(null===e||e.type!==HO)return 0;for(var r=43===ub(e.value,0)||45===ub(e.value,0)?1:0;r=128||0===nS[n])break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function aS(e){for(var t=e.pos;t57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function sS(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 lS(e){var t,n=null;return e.eat(Jb),t=aS(e),e.charCode()===zb?(e.pos++,e.charCode()!==eS&&(n=aS(e))):n=t,e.eat(eS),{min:Number(t),max:n?Number(n):0}}function uS(e,t){var n=function(e){var t=null,n=!1;switch(e.charCode()){case jb:e.pos++,t={min:0,max:0};break;case Ub:e.pos++,t={min:1,max:0};break;case Yb:e.pos++,t={min:0,max:1};break;case Ib:e.pos++,n=!0,e.charCode()===Jb?t=lS(e):e.charCode()===Yb?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case Jb:t=lS(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()===Ib&&e.charCodeAt(e.pos-1)===Ub?uS(e,n):n):t}function cS(e){var t=e.peek();return""===t?null:{type:"Token",value:t}}function hS(e){var t,n=null;return e.eat(Hb),t=oS(e),e.charCode()===Fb&&e.nextCharCode()===Bb&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===Vb&&(iS(e),n=function(e){var t=null,n=null,r=1;return e.eat(Vb),e.charCode()===Xb&&(e.peek(),r=-1),-1==r&&e.charCode()===tS?e.peek():(t=r*Number(aS(e)),0!==nS[e.charCode()]&&(t+=oS(e))),iS(e),e.eat(zb),iS(e),e.charCode()===tS?e.peek():(r=1,e.charCode()===Xb&&(e.peek(),r=-1),n=r*Number(aS(e)),0!==nS[e.charCode()]&&(n+=oS(e))),e.eat(Gb),{type:"Range",min:t,max:n}}(e)),e.eat(Wb),uS(e,{type:"Type",name:t,opts:n})}function fS(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 rS[e]-rS[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 dS(e){for(var t,n=[],r={},i=null,o=e.pos;t=pS(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:fS(n,r)||" ",disallowEmpty:!1,explicit:!1}}function pS(e){var t=e.charCode();if(t<128&&1===nS[t])return function(e){var t=oS(e);return e.charCode()===Fb?(e.pos++,{type:"Function",name:t}):uS(e,{type:"Keyword",name:t})}(e);switch(t){case Gb:break;case Vb:return uS(e,function(e){var t;return e.eat(Vb),t=dS(e),e.eat(Gb),t.explicit=!0,e.charCode()===Mb&&(e.pos++,t.disallowEmpty=!0),t}(e));case Hb:return e.nextCharCode()===Lb?function(e){var t;return e.eat(Hb),e.eat(Lb),t=oS(e),e.eat(Lb),e.eat(Wb),uS(e,{type:"Property",name:t})}(e):hS(e);case Kb:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===Kb?2:1))};case $b:return e.pos++,e.eat($b),{type:"Combinator",value:"&&"};case zb:return e.pos++,{type:"Comma"};case Lb:return uS(e,{type:"String",value:sS(e)});case Zb:case _b:case Db:case Rb:case Nb:return{type:"Spaces",value:iS(e)};case qb:return(t=e.nextCharCode())<128&&1===nS[t]?(e.pos++,{type:"AtKeyword",name:oS(e)}):cS(e);case jb:case Ub:case Yb:case Ib:case Mb:break;case Jb:if((t=e.nextCharCode())<48||t>57)return cS(e);break;default:return cS(e)}}function mS(e){var t=new Qb(e),n=dS(t);return t.pos!==e.length&&t.error("Unexpected input"),1===n.terms.length&&"Group"===n.terms[0].type?n.terms[0]:n}var gS=function(){};function vS(e){return"function"===typeof e?e:gS}var OS={decorator:function(e){var t=[],n=null;return(0,on.Z)((0,on.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 yS(e,t){return"string"===typeof e?function(e){var t=[];return Yy(e,(function(n,r,i){return t.push({type:n,value:e.slice(r,i),node:null})})),t}(e):t.generate(e,OS)}var kS={type:"Match"},bS={type:"Mismatch"},SS={type:"DisallowEmpty"},xS=40,wS=41;function TS(e,t,n){return t===kS&&n===bS||e===kS&&t===kS&&n===kS?e:("If"===e.type&&e.else===bS&&t===kS&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function CS(e){return e.length>2&&e.charCodeAt(e.length-2)===xS&&e.charCodeAt(e.length-1)===wS}function ES(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&CS(e.name)}function AS(e,t,n){switch(e){case" ":for(var r=kS,i=t.length-1;i>=0;i--){r=TS(t[i],r,bS)}return r;case"|":for(var o=bS,a=null,s=t.length-1;s>=0;s--){var l=t[s];if(ES(l)&&(null===a&&s>0&&ES(t[s-1])&&(o=TS({type:"Enum",map:a=Object.create(null)},kS,o)),null!==a)){var u=(CS(l.name)?l.name.slice(0,-1):l.name).toLowerCase();if(u in a===!1){a[u]=l;continue}}a=null,o=TS(l,kS,o)}return o;case"&&":if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};for(var c=bS,h=function(){var n,r=t[f];n=t.length>1?AS(e,t.filter((function(e){return e!==r})),!1):kS,c=TS(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?kS:bS,p=function(){var n,r=t[m];n=t.length>1?AS(e,t.filter((function(e){return e!==r})),!0):kS,d=TS(r,n,d)},m=t.length-1;m>=0;m--)p();return d}}function PS(e){if("function"===typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":var t=AS(e.combinator,e.terms.map(PS),!1);return e.disallowEmpty&&(t=TS(t,SS,bS)),t;case"Multiplier":return function(e){var t=kS,n=PS(e.term);if(0===e.max)n=TS(n,SS,bS),(t=TS(n,null,bS)).then=TS(kS,kS,t),e.comma&&(t.then.else=TS({type:"Comma",syntax:e},t,bS));else for(var r=e.min||1;r<=e.max;r++)e.comma&&t!==kS&&(t=TS({type:"Comma",syntax:e},t,bS)),t=TS(n,TS(kS,kS,t),bS);if(0===e.min)t=TS(kS,kS,t);else for(var i=0;i=65&&i<=90&&(i|=32),i!==r)return!1}return!0}function jS(e){return null===e||(e.type===ey||e.type===$O||e.type===ry||e.type===ty||e.type===oy||function(e){return e.type===XO&&"?"!==e.value}(e))}function US(e){return null===e||(e.type===iy||e.type===ny||e.type===ay||e.type===XO&&"/"===e.value)}function zS(e,t,n){function r(){do{v++,g=vO&&(O=v)}function u(){y=y.type===RS?y.prev:{type:ZS,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:DS,syntax:null,token:null,prev:null};for(r();null===m&&++pf.tokenIndex)&&(f=d,d=!1);else if(null===f){m=IS;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===IO||"length"===t.name&&"0"===g.value){null===d&&(d=o(t,f)),t=bS;break}c={syntax:t.syntax,opts:t.syntax.opts||null!==c&&c.opts||null,prev:c},y={type:RS,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].*$/,"")),BS(A,E)){l(),t=kS;break}}t=bS;break;case"AtKeyword":case"Function":if(null!==g&&BS(g.value,t.name)){l(),t=kS;break}t=bS;break;case"Token":if(null!==g&&g.value===t.value){l(),t=kS;break}t=bS;break;case"Comma":null!==g&&g.type===ey?jS(y.token)?t=bS:(l(),t=US(g)?bS:kS):t=jS(y.token)||US(g)?kS:bS;break;case"String":for(var P="",Q=v;Q=0}function nx(e){return Boolean(e)&&tx(e.offset)&&tx(e.line)&&tx(e.column)}function rx(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!==ex.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(nx(n.loc.start)){if(nx(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:rx(e,r)}}var ox=QS(Yk.join(" | "));function ax(e,t,n){var r={};for(var i in e)e[i].syntax&&(r[i]=n?e[i].syntax:Zk(e[i].syntax,{compact:t}));return r}function sx(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=QS(e,r):("string"===typeof e?Object.defineProperty(i,"syntax",{get:function(){return Object.defineProperty(i,"syntax",{value:mS(e)}),i.syntax}}):i.syntax=e,Object.defineProperty(i,"match",{get:function(){return Object.defineProperty(i,"match",{value:QS(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 Lk("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||ux(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=zk(t);return r.descriptors?r.descriptors[i.name]||r.descriptors[i.basename]?void 0:new Lk("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 Lk("Unknown property",e)}},{key:"matchAtrulePrelude",value:function(e,t){var n=this.checkAtrulePrelude(e,t);if(n)return lx(null,n);var r=this.getAtrule(e);return r.prelude?ux(this,r.prelude,t||"",!1):lx(null,null)}},{key:"matchAtruleDescriptor",value:function(e,t,n){var r=this.checkAtruleDescriptorName(e,t);if(r)return lx(null,r);var i=this.getAtrule(e),o=zk(t);return ux(this,i.descriptors[o.name]||i.descriptors[o.basename],n,!1)}},{key:"matchDeclaration",value:function(e){return"Declaration"!==e.type?lx(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}},{key:"matchProperty",value:function(e,t){if(Xk(e).custom)return lx(null,new Error("Lexer matching doesn't applicable for custom properties"));var n=this.checkPropertyName(e);return n?lx(null,n):ux(this,this.getProperty(e),t,!0)}},{key:"matchType",value:function(e,t){var n=this.getType(e);return n?ux(this,n,t,!1):lx(null,new Lk("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")),ux(this,e,t,!1)):lx(null,new Lk("Bad syntax"))}},{key:"findValueFragments",value:function(e,t,n,r){return KS(this,t,this.matchProperty(e,t),n,r)}},{key:"findDeclarationValueFragments",value:function(e,t,n){return KS(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=zk(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=Xk(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=gS,i=gS;if("function"===typeof t?r=t:t&&(r=vS(t.enter),i=vS(t.leave)),r===gS&&i===gS)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,re.Z)(t.keys()).filter((function(e){return t.get(e)})),n=(0,re.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:ax(this.types,!t,e),properties:ax(this.properties,!t,e),atrules:sx(this.atrules,!t,e)}}},{key:"toString",value:function(){return JSON.stringify(this.dump())}}]),e}();function hx(e,t){return"string"===typeof t&&/^\s*\|/.test(t)?"string"===typeof e?e+t:t.replace(/^\s*\|\s*/,""):t||null}function fx(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))!==mx&&n!==gx&&this.error("Number sign is expected"),bx.call(this,0!==t),t===gx?"-"+this.consume(HO):this.consume(HO)}var wx="AnPlusB",Tx={a:[String,null],b:[String,null]};function Cx(){var e=this.tokenStart,t=null,n=null;if(this.tokenType===HO)bx.call(this,yx),n=this.consume(HO);else if(this.tokenType===IO&&this.cmpChar(this.tokenStart,gx))switch(t="-1",Sx.call(this,1,vx),this.tokenEnd-this.tokenStart){case 2:this.next(),n=xx.call(this);break;case 3:Sx.call(this,2,gx),this.next(),this.skipSC(),bx.call(this,Ox),n="-"+this.consume(HO);break;default:Sx.call(this,2,gx),kx.call(this,3,Ox),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===IO||this.isDelim(mx)&&this.lookupType(1)===IO){var r=0;switch(t="1",this.isDelim(mx)&&(r=1,this.next()),Sx.call(this,0,vx),this.tokenEnd-this.tokenStart){case 1:this.next(),n=xx.call(this);break;case 2:Sx.call(this,1,gx),this.next(),this.skipSC(),bx.call(this,Ox),n="-"+this.consume(HO);break;default:Sx.call(this,1,gx),kx.call(this,2,Ox),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===YO){for(var i=this.charCodeAt(this.tokenStart),o=i===mx||i===gx,a=this.tokenStart+o;a0&&void 0!==arguments[0]&&arguments[0],r=this.tokenStart,i=null,o=null;switch(this.eat(LO),t=(e=this.substrToCursor(r+1)).toLowerCase(),this.skipSC(),!1===this.eof&&this.tokenType!==oy&&this.tokenType!==KO&&(i=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,e,n),Ax):Ax.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case KO:this.next();break;case oy:o=hasOwnProperty.call(this.atrule,t)&&"function"===typeof this.atrule[t].block?this.atrule[t].block.call(this,n):this.Block(Px.call(this))}return{type:"Atrule",loc:this.getLocation(r,this.tokenStart),name:e,prelude:i,block:o}}function Rx(e){this.token(LO,"@"+e.name),null!==e.prelude&&this.node(e.prelude),e.block?this.node(e.block):this.token(KO,";")}var Zx="AtrulePrelude",Mx="atrulePrelude",Ix={children:[[]]};function $x(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!==oy&&this.tokenType!==KO&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}}function Lx(e){this.children(e)}var Fx=36,Bx=42,jx=61,Ux=94,zx=124,Xx=126;function Hx(){this.eof&&this.error("Unexpected end of input");var e=this.tokenStart,t=!1;return this.isDelim(Bx)?(t=!0,this.next()):this.isDelim(zx)||this.eat(IO),this.isDelim(zx)?this.charCodeAt(this.tokenStart+1)!==jx?(this.next(),this.eat(IO)):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 Wx(){var e=this.tokenStart,t=this.charCodeAt(e);return t!==jx&&t!==Xx&&t!==Ux&&t!==Fx&&t!==Bx&&t!==zx&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==jx&&(this.isDelim(jx)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}var Yx="AttributeSelector",qx={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function Vx(){var e,t=this.tokenStart,n=null,r=null,i=null;return this.eat(ty),this.skipSC(),e=Hx.call(this),this.skipSC(),this.tokenType!==ny&&(this.tokenType!==IO&&(n=Wx.call(this),this.skipSC(),r=this.tokenType===BO?this.String():this.Identifier(),this.skipSC()),this.tokenType===IO&&(i=this.consume(IO),this.skipSC())),this.eat(ny),{type:"AttributeSelector",loc:this.getLocation(t,this.tokenStart),name:e,matcher:n,value:r,flags:i}}function Gx(e){this.token(XO,"["),this.node(e.name),null!==e.matcher&&(this.tokenize(e.matcher),this.node(e.value)),null!==e.flags&&this.token(IO,e.flags),this.token(XO,"]")}var Jx=38;function Kx(e){return this.Raw(e,null,!0)}function ew(){return this.parseWithFallback(this.Rule,Kx)}function tw(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function nw(){if(this.tokenType===KO)return tw.call(this,this.tokenIndex);var e=this.parseWithFallback(this.Declaration,tw);return this.tokenType===KO&&this.next(),e}var rw="Block",iw="block",ow={children:[["Atrule","Rule","Declaration"]]};function aw(e){var t=e?nw:ew,n=this.tokenStart,r=this.createList();this.eat(oy);e:for(;!this.eof;)switch(this.tokenType){case ay:break e;case qO:case sy:this.next();break;case LO:r.push(this.parseWithFallback(this.Atrule.bind(this,e),Kx));break;default:e&&this.isDelim(Jx)?r.push(ew.call(this)):r.push(t.call(this))}return this.eof||this.eat(ay),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function sw(e){var t=this;this.token(oy,"{"),this.children(e,(function(e){"Declaration"===e.type&&t.token(KO,";")})),this.token(ay,"}")}var lw="Brackets",uw={children:[[]]};function cw(e,t){var n,r=this.tokenStart;return this.eat(ty),n=e.call(this,t),this.eof||this.eat(ny),{type:"Brackets",loc:this.getLocation(r,this.tokenStart),children:n}}function hw(e){this.token(XO,"["),this.children(e),this.token(XO,"]")}var fw="CDC",dw=[];function pw(){var e=this.tokenStart;return this.eat(GO),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function mw(){this.token(GO,"--\x3e")}var gw="CDO",vw=[];function Ow(){var e=this.tokenStart;return this.eat(VO),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function yw(){this.token(VO,"\x3c!--")}var kw=46,bw="ClassSelector",Sw={name:String};function xw(){return this.eatDelim(kw),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(IO)}}function ww(e){this.token(XO,"."),this.token(IO,e.name)}var Tw=43,Cw=47,Ew=62,Aw=126,Pw="Combinator",Qw={name:String};function _w(){var e,t=this.tokenStart;switch(this.tokenType){case qO:e=" ";break;case XO:switch(this.charCodeAt(this.tokenStart)){case Ew:case Tw:case Aw:this.next();break;case Cw:this.next(),this.eatIdent("deep"),this.eatDelim(Cw);break;default:this.error("Combinator is expected")}e=this.substrToCursor(t)}return{type:"Combinator",loc:this.getLocation(t,this.tokenStart),name:e}}function Dw(e){this.tokenize(e.name)}var Nw=42,Rw=47,Zw="Comment",Mw={value:String};function Iw(){var e=this.tokenStart,t=this.tokenEnd;return this.eat(sy),t-e+2>=2&&this.charCodeAt(t-2)===Nw&&this.charCodeAt(t-1)===Rw&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function $w(e){this.token(sy,"/*"+e.value+"*/")}var Lw=33,Fw=35,Bw=36,jw=38,Uw=42,zw=43,Xw=47;function Hw(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function Ww(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function Yw(){var e=this.tokenIndex,t=this.Value();return"Raw"!==t.type&&!1===this.eof&&this.tokenType!==KO&&!1===this.isDelim(Lw)&&!1===this.isBalanceEdge(e)&&this.error(),t}var qw="Declaration",Vw="declaration",Gw={important:[Boolean,String],property:String,value:["Value","Raw"]};function Jw(){var e,t=this.tokenStart,n=this.tokenIndex,r=eT.call(this),i=Hk(r),o=i?this.parseCustomProperty:this.parseValue,a=i?Ww:Hw,s=!1;this.skipSC(),this.eat(JO);var l=this.tokenIndex;if(i||this.skipSC(),e=o?this.parseWithFallback(Yw,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)===qO){e.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.isDelim(Lw)&&(s=tT.call(this),this.skipSC()),!1===this.eof&&this.tokenType!==KO&&!1===this.isBalanceEdge(n)&&this.error(),{type:"Declaration",loc:this.getLocation(t,this.tokenStart),important:s,property:r,value:e}}function Kw(e){this.token(IO,e.property),this.token(JO,":"),this.node(e.value),e.important&&(this.token(XO,"!"),this.token(IO,!0===e.important?"important":e.important))}function eT(){var e=this.tokenStart;if(this.tokenType===XO)switch(this.charCodeAt(this.tokenStart)){case Uw:case Bw:case zw:case Fw:case jw:this.next();break;case Xw:this.next(),this.isDelim(Xw)&&this.next()}return this.tokenType===FO?this.eat(FO):this.eat(IO),this.substrToCursor(e)}function tT(){this.eat(XO),this.skipSC();var e=this.consume(IO);return"important"===e||e}var nT=38;function rT(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}var iT="DeclarationList",oT={children:[["Declaration","Atrule","Rule"]]};function aT(){for(var e=this.createList();!this.eof;)switch(this.tokenType){case qO:case sy:case KO:this.next();break;case LO:e.push(this.parseWithFallback(this.Atrule.bind(this,!0),rT));break;default:this.isDelim(nT)?e.push(this.parseWithFallback(this.Rule,rT)):e.push(this.parseWithFallback(this.Declaration,rT))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function sT(e){var t=this;this.children(e,(function(e){"Declaration"===e.type&&t.token(KO,";")}))}var lT="Dimension",uT={value:String,unit:String};function cT(){var e=this.tokenStart,t=this.consumeNumber(YO);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}}function hT(e){this.token(YO,e.value+e.unit)}var fT="Function",dT="function",pT={name:String,children:[[]]};function mT(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(iy),{type:"Function",loc:this.getLocation(r,this.tokenStart),name:i,children:n}}function gT(e){this.token($O,e.name+"("),this.children(e),this.token(iy,")")}var vT="XXX",OT="Hash",yT={value:String};function kT(){var e=this.tokenStart;return this.eat(FO),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function bT(e){this.token(FO,"#"+e.value)}var ST="Identifier",xT={name:String};function wT(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(IO)}}function TT(e){this.token(IO,e.name)}var CT="IdSelector",ET={name:String};function AT(){var e=this.tokenStart;return this.eat(FO),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function PT(e){this.token(XO,"#"+e.name)}var QT="MediaFeature",_T={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function DT(){var e,t=this.tokenStart,n=null;if(this.eat(ry),this.skipSC(),e=this.consume(IO),this.skipSC(),this.tokenType!==iy){switch(this.eat(JO),this.skipSC(),this.tokenType){case HO:n=this.lookupNonWSType(1)===XO?this.Ratio():this.Number();break;case YO:n=this.Dimension();break;case IO:n=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eat(iy),{type:"MediaFeature",loc:this.getLocation(t,this.tokenStart),name:e,value:n}}function NT(e){this.token(ry,"("),this.token(IO,e.name),null!==e.value&&(this.token(JO,":"),this.node(e.value)),this.token(iy,")")}var RT="MediaQuery",ZT={children:[["Identifier","MediaFeature","WhiteSpace"]]};function MT(){var e=this.createList(),t=null;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case sy:case qO:this.next();continue;case IO:t=this.Identifier();break;case ry: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 IT(e){this.children(e)}var $T="MediaQueryList",LT={children:[["MediaQuery"]]};function FT(){var e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===ey);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}}function BT(e){var t=this;this.children(e,(function(){return t.token(ey,",")}))}var jT=38,UT="NestingSelector",zT={};function XT(){var e=this.tokenStart;return this.eatDelim(jT),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function HT(){this.token(XO,"&")}var WT="Nth",YT={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function qT(){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 VT(e){this.node(e.nth),null!==e.selector&&(this.token(IO,"of"),this.node(e.selector))}var GT="Number",JT={value:String};function KT(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(HO)}}function eC(e){this.token(HO,e.value)}var tC="Operator",nC={value:String};function rC(){var e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function iC(e){this.tokenize(e.value)}var oC="Parentheses",aC={children:[[]]};function sC(e,t){var n,r=this.tokenStart;return this.eat(ry),n=e.call(this,t),this.eof||this.eat(iy),{type:"Parentheses",loc:this.getLocation(r,this.tokenStart),children:n}}function lC(e){this.token(ry,"("),this.children(e),this.token(iy,")")}var uC="Percentage",cC={value:String};function hC(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(WO)}}function fC(e){this.token(WO,e.value+"%")}var dC="PseudoClassSelector",pC="function",mC={name:String,children:[["Raw"],null]};function gC(){var e,t,n=this.tokenStart,r=null;return this.eat(JO),this.tokenType===$O?(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(iy)):e=this.consume(IO),{type:"PseudoClassSelector",loc:this.getLocation(n,this.tokenStart),name:e,children:r}}function vC(e){this.token(JO,":"),null===e.children?this.token(IO,e.name):(this.token($O,e.name+"("),this.children(e),this.token(iy,")"))}var OC="PseudoElementSelector",yC="function",kC={name:String,children:[["Raw"],null]};function bC(){var e,t,n=this.tokenStart,r=null;return this.eat(JO),this.eat(JO),this.tokenType===$O?(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(iy)):e=this.consume(IO),{type:"PseudoElementSelector",loc:this.getLocation(n,this.tokenStart),name:e,children:r}}function SC(e){this.token(JO,":"),this.token(JO,":"),null===e.children?this.token(IO,e.name):(this.token($O,e.name+"("),this.children(e),this.token(iy,")"))}var xC=47,wC=46;function TC(){this.skipSC();for(var e=this.consume(HO),t=0;t0&&this.lookupType(-1)===qO?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}var _C="Raw",DC={value:String};function NC(e,t,n){var r,i=this.getTokenStart(e);return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),r=n&&this.tokenStart>i?QC.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(i,r),value:this.substring(i,r)}}function RC(e){this.tokenize(e.value)}function ZC(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function MC(){var e=this.SelectorList();return"Raw"!==e.type&&!1===this.eof&&this.tokenType!==oy&&this.error(),e}var IC="Rule",$C="rule",LC={prelude:["SelectorList","Raw"],block:["Block"]};function FC(){var e,t,n=this.tokenIndex,r=this.tokenStart;return e=this.parseRulePrelude?this.parseWithFallback(MC,ZC):ZC.call(this,n),t=this.Block(!0),{type:"Rule",loc:this.getLocation(r,this.tokenStart),prelude:e,block:t}}function BC(e){this.node(e.prelude),this.node(e.block)}var jC="Selector",UC={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function zC(){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 XC(e){this.children(e)}var HC="SelectorList",WC="selector",YC={children:[["Selector","Raw"]]};function qC(){for(var e=this.createList();!this.eof&&(e.push(this.Selector()),this.tokenType===ey);)this.next();return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}}function VC(e){var t=this;this.children(e,(function(){return t.token(ey,",")}))}var GC=92,JC=34,KC=39;function eE(e){for(var t=e.length,n=e.charCodeAt(0),r=n===JC||n===KC?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===GC){if(a===i){a!==t-1&&(o=e.substr(a+1));break}if(s=e.charCodeAt(++a),vy(GC,s)){var l=a-1,u=Ry(e,l);a=u-1,o+=$y(e.substring(l+1,u))}else 13===s&&10===e.charCodeAt(a+1)&&a++}else o+=e[a]}return o}var tE="String",nE={value:String};function rE(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:eE(this.consume(BO))}}function iE(e){this.token(BO,function(e,t){for(var n=t?"'":'"',r=t?KC:JC,i="",o=!1,a=0;a6&&this.error("Too many hex digits",r)}return this.next(),n}function xE(e){for(var t=0;this.isDelim(bE);)++t>e&&this.error("Too many question marks"),this.next()}function wE(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===yE?"Plus sign":"Hyphen minus")+" is expected")}function TE(){var e=0;switch(this.tokenType){case HO:if(e=SE.call(this,1,!0),this.isDelim(bE)){xE.call(this,6-e);break}if(this.tokenType===YO||this.tokenType===HO){wE.call(this,kE),SE.call(this,1,!1);break}break;case YO:(e=SE.call(this,1,!0))>0&&xE.call(this,6-e);break;default:if(this.eatDelim(yE),this.tokenType===IO){(e=SE.call(this,0,!0))>0&&xE.call(this,6-e);break}if(this.isDelim(bE)){this.next(),xE.call(this,5);break}this.error("Hex digit or question mark is expected")}}var CE="UnicodeRange",EE={value:String};function AE(){var e=this.tokenStart;return this.eatIdent("u"),TE.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function PE(e){this.tokenize(e.value)}var QE=32,_E=92,DE=34,NE=39,RE=40,ZE=41;var ME="Url",IE={value:String};function $E(){var e,t=this.tokenStart;switch(this.tokenType){case UO:e=function(e){for(var t=e.length,n=4,r=e.charCodeAt(t-1)===ZE?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":"