UNPKG

@asyncapi/studio

Version:

One place that allows you to develop an AsyncAPI document, validate it, convert it to the latest version, preview the documentation and visualize the events flow.

186 lines (182 loc) 8.93 MB
(()=>{var exports={};exports.id=1931,exports.ids=[1931],exports.modules={72934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},54580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},45869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},20399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},27790:e=>{"use strict";e.exports=require("assert")},78893:e=>{"use strict";e.exports=require("buffer")},61282:e=>{"use strict";e.exports=require("child_process")},84770:e=>{"use strict";e.exports=require("crypto")},17702:e=>{"use strict";e.exports=require("events")},92048:e=>{"use strict";e.exports=require("fs")},32615:e=>{"use strict";e.exports=require("http")},35240:e=>{"use strict";e.exports=require("https")},98216:e=>{"use strict";e.exports=require("net")},19801:e=>{"use strict";e.exports=require("os")},55315:e=>{"use strict";e.exports=require("path")},68621:e=>{"use strict";e.exports=require("punycode")},76162:e=>{"use strict";e.exports=require("stream")},74026:e=>{"use strict";e.exports=require("string_decoder")},82452:e=>{"use strict";e.exports=require("tls")},74175:e=>{"use strict";e.exports=require("tty")},17360:e=>{"use strict";e.exports=require("url")},21764:e=>{"use strict";e.exports=require("util")},41520:e=>{"use strict";e.exports=require("vm")},71568:e=>{"use strict";e.exports=require("zlib")},41041:e=>{"use strict";e.exports=require("node:url")},58342:()=>{},68477:()=>{},50265:()=>{},59816:(e,t,i)=>{"use strict";i.r(t),i.d(t,{GlobalError:()=>s.a,__next_app__:()=>u,originalPathname:()=>d,pages:()=>p,routeModule:()=>h,tree:()=>c}),i(31256),i(72475),i(34024);var n=i(61162),r=i(55528),o=i(85258),s=i.n(o),a=i(75185),l={};for(let e in a)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(l[e]=()=>a[e]);i.d(t,l);let c=["",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(i.bind(i,31256)),"/home/runner/work/studio/studio/apps/studio/src/app/page.tsx"],metadata:{icon:[async e=>(await Promise.resolve().then(i.bind(i,23772))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]},{layout:[()=>Promise.resolve().then(i.bind(i,72475)),"/home/runner/work/studio/studio/apps/studio/src/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(i.t.bind(i,34024,23)),"next/dist/client/components/not-found-error"],metadata:{icon:[async e=>(await Promise.resolve().then(i.bind(i,23772))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}],p=["/home/runner/work/studio/studio/apps/studio/src/app/page.tsx"],d="/page",u={require:i,loadChunk:()=>Promise.resolve()},h=new n.AppPageRouteModule({definition:{kind:r.x.APP_PAGE,page:"/page",pathname:"/",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:c}})},72153:(e,t,i)=>{Promise.resolve().then(i.bind(i,56668)),Promise.resolve().then(i.bind(i,77222)),Promise.resolve().then(i.bind(i,58841))},15425:(e,t,i)=>{Promise.resolve().then(i.t.bind(i,49159,23)),Promise.resolve().then(i.t.bind(i,4811,23)),Promise.resolve().then(i.t.bind(i,53073,23)),Promise.resolve().then(i.t.bind(i,4380,23)),Promise.resolve().then(i.t.bind(i,6699,23)),Promise.resolve().then(i.t.bind(i,99967,23))},41375:()=>{},56668:(e,t,i)=>{"use strict";let n,r,o,s,a,l,c,p,d,u,h,m,f,g,y,b,v,_;i.r(t),i.d(t,{default:()=>NR});var w,x,S,E,T,C,j,A,O,D=i(2010),k=i(20849),I=i.t(k,2),P=i.n(k),N=function(){return(N=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},$=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)0>t.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i},L=Symbol("NiceModalId"),M={},R=P().createContext(M),F=P().createContext(null),B={},H={},q=0,U=function(){throw Error("No dispatch method detected, did you embed your app with NiceModal.Provider?")},z=function(){return"_nice_modal_"+q++},W=function(e,t){var i,n,r;switch(void 0===e&&(e=M),t.type){case"nice-modal/show":var o=t.payload,s=o.modalId,a=o.args;return N(N({},e),((i={})[s]=N(N({},e[s]),{id:s,args:a,visible:!!H[s],delayVisible:!H[s]}),i));case"nice-modal/hide":var s=t.payload.modalId;if(!e[s])return e;return N(N({},e),((n={})[s]=N(N({},e[s]),{visible:!1}),n));case"nice-modal/remove":var s=t.payload.modalId,l=N({},e);return delete l[s],l;case"nice-modal/set-flags":var c=t.payload,s=c.modalId,p=c.flags;return N(N({},e),((r={})[s]=N(N({},e[s]),p),r));default:return e}};function G(e,t){return{type:"nice-modal/show",payload:{modalId:e,args:t}}}function K(e,t){return{type:"nice-modal/set-flags",payload:{modalId:e,flags:t}}}function Y(e){return{type:"nice-modal/hide",payload:{modalId:e}}}function Q(e){return{type:"nice-modal/remove",payload:{modalId:e}}}var J={},X={},Z=function(e){return"string"==typeof e?e:(e[L]||(e[L]=z()),e[L])};function ee(e,t){var i=Z(e);if("string"==typeof e||B[i]||es(i,e),U(G(i,t)),!J[i]){var n,r,o=new Promise(function(e,t){n=e,r=t});J[i]={resolve:n,reject:r,promise:o}}return J[i].promise}function et(e){var t=Z(e);if(U(Y(t)),delete J[t],!X[t]){var i,n,r=new Promise(function(e,t){i=e,n=t});X[t]={resolve:i,reject:n,promise:r}}return X[t].promise}var ei=function(e){U(Q(e)),delete J[e],delete X[e]},en=function(e,t){U(K(e,t))};function er(e,t){var i=(0,k.useContext)(R),n=(0,k.useContext)(F),r=null,o=e&&"string"!=typeof e;if(!(r=e?Z(e):n))throw Error("No modal id found in NiceModal.useModal.");var s=r;(0,k.useEffect)(function(){o&&!B[s]&&es(s,e,t)},[o,s,e,t]);var a=i[s],l=(0,k.useCallback)(function(e){return ee(s,e)},[s]),c=(0,k.useCallback)(function(){return et(s)},[s]),p=(0,k.useCallback)(function(){return ei(s)},[s]),d=(0,k.useCallback)(function(e){var t;null===(t=J[s])||void 0===t||t.resolve(e),delete J[s]},[s]),u=(0,k.useCallback)(function(e){var t;null===(t=J[s])||void 0===t||t.reject(e),delete J[s]},[s]),h=(0,k.useCallback)(function(e){var t;null===(t=X[s])||void 0===t||t.resolve(e),delete X[s]},[s]);return{id:s,args:null==a?void 0:a.args,visible:!!(null==a?void 0:a.visible),keepMounted:!!(null==a?void 0:a.keepMounted),show:l,hide:c,remove:p,resolve:d,reject:u,resolveHide:h}}var eo=function(e){return function(t){var i,n=t.defaultVisible,r=t.keepMounted,o=t.id,s=$(t,["defaultVisible","keepMounted","id"]),a=er(o),l=a.args,c=a.show,p=(0,k.useContext)(R),d=!!p[o];(0,k.useEffect)(function(){return n&&c(),H[o]=!0,function(){delete H[o]}},[o,c,n]),(0,k.useEffect)(function(){r&&en(o,{keepMounted:!0})},[o,r]);var u=null===(i=p[o])||void 0===i?void 0:i.delayVisible;return((0,k.useEffect)(function(){u&&c(l)},[u,l,c]),d)?P().createElement(F.Provider,{value:o},P().createElement(e,N({},s,l))):null}},es=function(e,t,i){B[e]?B[e].props=i:B[e]={comp:t,props:i}},ea=function(){var e=(0,k.useContext)(R),t=Object.keys(e).filter(function(t){return!!e[t]});t.forEach(function(e){if(!B[e]&&!H[e]){console.warn("No modal found for id: "+e+". Please check the id or if it is registered or declared via JSX.");return}});var i=t.filter(function(e){return B[e]}).map(function(e){return N({id:e},B[e])});return P().createElement(P().Fragment,null,i.map(function(e){return P().createElement(e.comp,N({key:e.id,id:e.id},e.props))}))},el=function(e){var t=e.children,i=(0,k.useReducer)(W,M),n=i[0];return U=i[1],P().createElement(R.Provider,{value:n},t,P().createElement(ea,null))},ec=function(e){var t=e.children,i=e.dispatch,n=e.modals;return i&&n?(U=i,P().createElement(R.Provider,{value:n},t,P().createElement(ea,null))):P().createElement(el,null,t)};let ep={data:""},ed=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||ep,eu=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,eh=/\/\*[^]*?\*\/| +/g,em=/\n+/g,ef=(e,t)=>{let i="",n="",r="";for(let o in e){let s=e[o];"@"==o[0]?"i"==o[1]?i=o+" "+s+";":n+="f"==o[1]?ef(s,o):o+"{"+ef(s,"k"==o[1]?"":t)+"}":"object"==typeof s?n+=ef(s,t?t.replace(/([^,])+/g,e=>o.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):o):null!=s&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),r+=ef.p?ef.p(o,s):o+":"+s+";")}return i+(t&&r?t+"{"+r+"}":r)+n},eg={},ey=e=>{if("object"==typeof e){let t="";for(let i in e)t+=i+ey(e[i]);return t}return e},eb=(e,t,i,n,r)=>{let o=ey(e),s=eg[o]||(eg[o]=(e=>{let t=0,i=11;for(;t<e.length;)i=101*i+e.charCodeAt(t++)>>>0;return"go"+i})(o));if(!eg[s]){let t=o!==e?e:(e=>{let t,i,n=[{}];for(;t=eu.exec(e.replace(eh,""));)t[4]?n.shift():t[3]?(i=t[3].replace(em," ").trim(),n.unshift(n[0][i]=n[0][i]||{})):n[0][t[1]]=t[2].replace(em," ").trim();return n[0]})(e);eg[s]=ef(r?{["@keyframes "+s]:t}:t,i?"":"."+s)}let a=i&&eg.g?eg.g:null;return i&&(eg.g=eg[s]),((e,t,i,n)=>{n?t.data=t.data.replace(n,e):-1===t.data.indexOf(e)&&(t.data=i?e+t.data:t.data+e)})(eg[s],t,n,a),s},ev=(e,t,i)=>e.reduce((e,n,r)=>{let o=t[r];if(o&&o.call){let e=o(i),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":ef(e,""):!1===e?"":e}return e+n+(null==o?"":o)},"");function e_(e){let t=this||{},i=e.call?e(t.p):e;return eb(i.unshift?i.raw?ev(i,[].slice.call(arguments,1),t.p):i.reduce((e,i)=>Object.assign(e,i&&i.call?i(t.p):i),{}):i,ed(t.target),t.g,t.o,t.k)}e_.bind({g:1});let ew,ex,eS,eE=e_.bind({k:1});function eT(e,t,i,n){ef.p=t,ew=e,ex=i,eS=n}function eC(e,t){let i=this||{};return function(){let n=arguments;function r(o,s){let a=Object.assign({},o),l=a.className||r.className;i.p=Object.assign({theme:ex&&ex()},a),i.o=/ *go\d+/.test(l),a.className=e_.apply(i,n)+(l?" "+l:""),t&&(a.ref=s);let c=e;return e[0]&&(c=a.as||e,delete a.as),eS&&c[0]&&eS(a),ew(c,a)}return t?t(r):r}}var ej=e=>"function"==typeof e,eA=(e,t)=>ej(e)?e(t):e,eO=(()=>{let e=0;return()=>(++e).toString()})(),eD=(()=>{let e;return()=>{if(void 0===e&&"u">typeof window){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),ek=20,eI=new Map,eP=1e3,eN=e=>{if(eI.has(e))return;let t=setTimeout(()=>{eI.delete(e),eF({type:4,toastId:e})},eP);eI.set(e,t)},e$=e=>{let t=eI.get(e);t&&clearTimeout(t)},eL=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,ek)};case 1:return t.toast.id&&e$(t.toast.id),{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:i}=t;return e.toasts.find(e=>e.id===i.id)?eL(e,{type:1,toast:i}):eL(e,{type:0,toast:i});case 3:let{toastId:n}=t;return n?eN(n):e.toasts.forEach(e=>{eN(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||void 0===n?{...e,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let r=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+r}))}}},eM=[],eR={toasts:[],pausedAt:void 0},eF=e=>{eR=eL(eR,e),eM.forEach(e=>{e(eR)})},eB={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},eV=(e={})=>{let[t,i]=(0,k.useState)(eR);(0,k.useEffect)(()=>(eM.push(i),()=>{let e=eM.indexOf(i);e>-1&&eM.splice(e,1)}),[t]);let n=t.toasts.map(t=>{var i,n;return{...e,...e[t.type],...t,duration:t.duration||(null==(i=e[t.type])?void 0:i.duration)||(null==e?void 0:e.duration)||eB[t.type],style:{...e.style,...null==(n=e[t.type])?void 0:n.style,...t.style}}});return{...t,toasts:n}},eH=(e,t="blank",i)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...i,id:(null==i?void 0:i.id)||eO()}),eq=e=>(t,i)=>{let n=eH(t,e,i);return eF({type:2,toast:n}),n.id},eU=(e,t)=>eq("blank")(e,t);eU.error=eq("error"),eU.success=eq("success"),eU.loading=eq("loading"),eU.custom=eq("custom"),eU.dismiss=e=>{eF({type:3,toastId:e})},eU.remove=e=>eF({type:4,toastId:e}),eU.promise=(e,t,i)=>{let n=eU.loading(t.loading,{...i,...null==i?void 0:i.loading});return e.then(e=>(eU.success(eA(t.success,e),{id:n,...i,...null==i?void 0:i.success}),e)).catch(e=>{eU.error(eA(t.error,e),{id:n,...i,...null==i?void 0:i.error})}),e};var ez=(e,t)=>{eF({type:1,toast:{id:e,height:t}})},eW=()=>{eF({type:5,time:Date.now()})},eG=e=>{let{toasts:t,pausedAt:i}=eV(e);(0,k.useEffect)(()=>{if(i)return;let e=Date.now(),n=t.map(t=>{if(t.duration===1/0)return;let i=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(i<0){t.visible&&eU.dismiss(t.id);return}return setTimeout(()=>eU.dismiss(t.id),i)});return()=>{n.forEach(e=>e&&clearTimeout(e))}},[t,i]);let n=(0,k.useCallback)(()=>{i&&eF({type:6,time:Date.now()})},[i]),r=(0,k.useCallback)((e,i)=>{let{reverseOrder:n=!1,gutter:r=8,defaultPosition:o}=i||{},s=t.filter(t=>(t.position||o)===(e.position||o)&&t.height),a=s.findIndex(t=>t.id===e.id),l=s.filter((e,t)=>t<a&&e.visible).length;return s.filter(e=>e.visible).slice(...n?[l+1]:[0,l]).reduce((e,t)=>e+(t.height||0)+r,0)},[t]);return{toasts:t,handlers:{updateHeight:ez,startPause:eW,endPause:n,calculateOffset:r}}},eK=eE` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,eY=eE` from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; }`,eQ=eE` from { transform: scale(0) rotate(90deg); opacity: 0; } to { transform: scale(1) rotate(90deg); opacity: 1; }`,eJ=eC("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#ff4b4b"}; position: relative; transform: rotate(45deg); animation: ${eK} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after, &:before { content: ''; animation: ${eY} 0.15s ease-out forwards; animation-delay: 150ms; position: absolute; border-radius: 3px; opacity: 0; background: ${e=>e.secondary||"#fff"}; bottom: 9px; left: 4px; height: 2px; width: 12px; } &:before { animation: ${eQ} 0.15s ease-out forwards; animation-delay: 180ms; transform: rotate(90deg); } `,eX=eE` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `,eZ=eC("div")` width: 12px; height: 12px; box-sizing: border-box; border: 2px solid; border-radius: 100%; border-color: ${e=>e.secondary||"#e0e0e0"}; border-right-color: ${e=>e.primary||"#616161"}; animation: ${eX} 1s linear infinite; `,e0=eE` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,e1=eE` 0% { height: 0; width: 0; opacity: 0; } 40% { height: 0; width: 6px; opacity: 1; } 100% { opacity: 1; height: 10px; }`,e2=eC("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#61d345"}; position: relative; transform: rotate(45deg); animation: ${e0} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after { content: ''; box-sizing: border-box; animation: ${e1} 0.2s ease-out forwards; opacity: 0; animation-delay: 200ms; position: absolute; border-right: 2px solid; border-bottom: 2px solid; border-color: ${e=>e.secondary||"#fff"}; bottom: 6px; left: 6px; height: 10px; width: 6px; } `,e3=eC("div")` position: absolute; `,e4=eC("div")` position: relative; display: flex; justify-content: center; align-items: center; min-width: 20px; min-height: 20px; `,e6=eE` from { transform: scale(0.6); opacity: 0.4; } to { transform: scale(1); opacity: 1; }`,e5=eC("div")` position: relative; transform: scale(0.6); opacity: 0.4; min-width: 20px; animation: ${e6} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; `,e9=({toast:e})=>{let{icon:t,type:i,iconTheme:n}=e;return void 0!==t?"string"==typeof t?k.createElement(e5,null,t):t:"blank"===i?null:k.createElement(e4,null,k.createElement(eZ,{...n}),"loading"!==i&&k.createElement(e3,null,"error"===i?k.createElement(eJ,{...n}):k.createElement(e2,{...n})))},e8=e=>` 0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;} 100% {transform: translate3d(0,0,0) scale(1); opacity:1;} `,e7=e=>` 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} 100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;} `,te="0%{opacity:0;} 100%{opacity:1;}",tt="0%{opacity:1;} 100%{opacity:0;}",ti=eC("div")` display: flex; align-items: center; background: #fff; color: #363636; line-height: 1.3; will-change: transform; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); max-width: 350px; pointer-events: auto; padding: 8px 10px; border-radius: 8px; `,tn=eC("div")` display: flex; justify-content: center; margin: 4px 10px; color: inherit; flex: 1 1 auto; white-space: pre-line; `,tr=(e,t)=>{let i=e.includes("top")?1:-1,[n,r]=eD()?[te,tt]:[e8(i),e7(i)];return{animation:t?`${eE(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${eE(r)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},to=k.memo(({toast:e,position:t,style:i,children:n})=>{let r=e.height?tr(e.position||t||"top-center",e.visible):{opacity:0},o=k.createElement(e9,{toast:e}),s=k.createElement(tn,{...e.ariaProps},eA(e.message,e));return k.createElement(ti,{className:e.className,style:{...r,...i,...e.style}},"function"==typeof n?n({icon:o,message:s}):k.createElement(k.Fragment,null,o,s))});eT(k.createElement);var ts=({id:e,className:t,style:i,onHeightUpdate:n,children:r})=>{let o=k.useCallback(t=>{if(t){let i=()=>{n(e,t.getBoundingClientRect().height)};i(),new MutationObserver(i).observe(t,{subtree:!0,childList:!0,characterData:!0})}},[e,n]);return k.createElement("div",{ref:o,className:t,style:i},r)},ta=(e,t)=>{let i=e.includes("top"),n=i?{top:0}:{bottom:0},r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:eD()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(i?1:-1)}px)`,...n,...r}},tl=e_` z-index: 9999; > * { pointer-events: auto; } `,tc=16,tp=({reverseOrder:e,position:t="top-center",toastOptions:i,gutter:n,children:r,containerStyle:o,containerClassName:s})=>{let{toasts:a,handlers:l}=eG(i);return k.createElement("div",{style:{position:"fixed",zIndex:9999,top:tc,left:tc,right:tc,bottom:tc,pointerEvents:"none",...o},className:s,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(i=>{let o=i.position||t,s=ta(o,l.calculateOffset(i,{reverseOrder:e,gutter:n,defaultPosition:t}));return k.createElement(ts,{id:i.id,key:i.id,onHeightUpdate:l.updateHeight,className:i.visible?tl:"",style:s},"custom"===i.type?eA(i.message,i):r?r(i):k.createElement(to,{toast:i,position:o}))}))},td=eU;function tu(e,t,i){let n;return function(...r){let o=this,s=function(){n=null,i||e.apply(o,r)},a=i&&!n;n&&clearTimeout(n),n=setTimeout(s,t),a&&e.apply(o,r)}}let th=({opener:e,className:t="relative",buttonHoverClassName:i,align:n="right",dataTest:r="button-dropdown",children:o})=>{let[s,a]=(0,k.useState)(!1),l=(0,k.useRef)(null);return i=i||"hover:text-white",(0,D.jsxs)("div",{className:t,children:[D.jsx("button",{onClick:()=>a(!s),tabIndex:0,onKeyDown:()=>a(!s),type:"button",className:`flex p-2 text-sm rounded-md ${i} focus:outline-none focus:border-indigo-700 focus:shadow-outline-indigo transition ease-in-out duration-150`,"data-test":r,children:e}),D.jsx("div",{ref:l,onClick:()=>a(!1),tabIndex:0,onKeyDown:()=>a(!1),className:`${s?"visible":"invisible"} origin-top-right absolute ${"right"===n&&"right-0"} ${"left"===n&&"left-0"} mt-1 mr-3 w-64 rounded-md shadow-lg z-50`,children:D.jsx("div",{className:"rounded-md bg-gray-800 shadow-xs",children:D.jsx("div",{className:"py-1",children:o})})})]})};var tm=i(30234);function tf(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let tg=tf();function ty(e){tg=e}let tb=/[&<>"']/,tv=RegExp(tb.source,"g"),t_=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,tw=RegExp(t_.source,"g"),tx={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},tS=e=>tx[e];function tE(e,t){if(t){if(tb.test(e))return e.replace(tv,tS)}else if(t_.test(e))return e.replace(tw,tS);return e}let tT=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function tC(e){return e.replace(tT,(e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):"")}let tj=/(^|[^\[])\^/g;function tA(e,t){e="string"==typeof e?e:e.source,t=t||"";let i={replace:(t,n)=>(n=(n=n.source||n).replace(tj,"$1"),e=e.replace(t,n),i),getRegex:()=>new RegExp(e,t)};return i}let tO=/[^\w:]/g,tD=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function tk(e,t,i){if(e){let e;try{e=decodeURIComponent(tC(i)).replace(tO,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!tD.test(i)&&(i=tL(t,i));try{i=encodeURI(i).replace(/%25/g,"%")}catch(e){return null}return i}let tI={},tP=/^[^:]+:\/*[^/]*$/,tN=/^([^:]+:)[\s\S]*$/,t$=/^([^:]+:\/*[^/]*)[\s\S]*$/;function tL(e,t){tI[" "+e]||(tP.test(e)?tI[" "+e]=e+"/":tI[" "+e]=tF(e,"/",!0));let i=-1===(e=tI[" "+e]).indexOf(":");return"//"===t.substring(0,2)?i?t:e.replace(tN,"$1")+t:"/"!==t.charAt(0)?e+t:i?t:e.replace(t$,"$1")+t}let tM={exec:function(){}};function tR(e,t){let i=e.replace(/\|/g,(e,t,i)=>{let n=!1,r=t;for(;--r>=0&&"\\"===i[r];)n=!n;return n?"|":" |"}).split(/ \|/),n=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(/\\\|/g,"|");return i}function tF(e,t,i){let n=e.length;if(0===n)return"";let r=0;for(;r<n;){let o=e.charAt(n-r-1);if(o!==t||i){if(o!==t&&i)r++;else break}else r++}return e.slice(0,n-r)}function tB(e,t){if(-1===e.indexOf(t[1]))return -1;let i=e.length,n=0,r=0;for(;r<i;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&--n<0)return r;return -1}function tV(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function tH(e,t){if(t<1)return"";let i="";for(;t>1;)1&t&&(i+=e),t>>=1,e+=e;return i+e}function tq(e,t,i,n){let r=t.href,o=t.title?tE(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;let e={type:"link",raw:i,href:r,title:o,text:s,tokens:n.inlineTokens(s)};return n.state.inLink=!1,e}return{type:"image",raw:i,href:r,title:o,text:tE(s)}}function tU(e,t){let i=e.match(/^(\s+)(?:```)/);if(null===i)return t;let n=i[1];return t.split("\n").map(e=>{let t=e.match(/^\s+/);if(null===t)return e;let[i]=t;return i.length>=n.length?e.slice(n.length):e}).join("\n")}class tz{constructor(e){this.options=e||tg}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:tF(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],i=tU(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:i}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){let t=tF(e,"#");this.options.pedantic?e=t.trim():(!t||/ $/.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=t[0].replace(/^ *>[ \t]?/gm,""),i=this.lexer.state.top;this.lexer.state.top=!0;let n=this.lexer.blockTokens(e);return this.lexer.state.top=i,{type:"blockquote",raw:t[0],tokens:n,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let i,n,r,o,s,a,l,c,p,d,u,h;let m=t[1].trim(),f=m.length>1,g={type:"list",raw:"",ordered:f,start:f?+m.slice(0,-1):"",loose:!1,items:[]};m=f?`\\d{1,9}\\${m.slice(-1)}`:`\\${m}`,this.options.pedantic&&(m=f?m:"[*+-]");let y=RegExp(`^( {0,3}${m})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;e&&(h=!1,!(!(t=y.exec(e))||this.rules.block.hr.test(e)));){if(i=t[0],e=e.substring(i.length),c=t[2].split("\n",1)[0].replace(/^\t+/,e=>" ".repeat(3*e.length)),p=e.split("\n",1)[0],this.options.pedantic?(o=2,u=c.trimLeft()):(o=(o=t[2].search(/[^ ]/))>4?1:o,u=c.slice(o),o+=t[1].length),a=!1,!c&&/^ *$/.test(p)&&(i+=p+"\n",e=e.substring(p.length+1),h=!0),!h){let t=RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),n=RegExp(`^ {0,${Math.min(3,o-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),r=RegExp(`^ {0,${Math.min(3,o-1)}}(?:\`\`\`|~~~)`),s=RegExp(`^ {0,${Math.min(3,o-1)}}#`);for(;e&&(p=d=e.split("\n",1)[0],this.options.pedantic&&(p=p.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(r.test(p)||s.test(p)||t.test(p)||n.test(e)));){if(p.search(/[^ ]/)>=o||!p.trim())u+="\n"+p.slice(o);else{if(a||c.search(/[^ ]/)>=4||r.test(c)||s.test(c)||n.test(c))break;u+="\n"+p}a||p.trim()||(a=!0),i+=d+"\n",e=e.substring(d.length+1),c=p.slice(o)}}!g.loose&&(l?g.loose=!0:/\n *\n *$/.test(i)&&(l=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(u))&&(r="[ ] "!==n[0],u=u.replace(/^\[[ xX]\] +/,"")),g.items.push({type:"list_item",raw:i,task:!!n,checked:r,loose:!1,text:u}),g.raw+=i}g.items[g.items.length-1].raw=i.trimRight(),g.items[g.items.length-1].text=u.trimRight(),g.raw=g.raw.trimRight();let b=g.items.length;for(s=0;s<b;s++)if(this.lexer.state.top=!1,g.items[s].tokens=this.lexer.blockTokens(g.items[s].text,[]),!g.loose){let e=g.items[s].tokens.filter(e=>"space"===e.type),t=e.length>0&&e.some(e=>/\n.*\n/.test(e.raw));g.loose=t}if(g.loose)for(s=0;s<b;s++)g.items[s].loose=!0;return g}}html(e){let t=this.rules.block.html.exec(e);if(t){let e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){let i=this.options.sanitizer?this.options.sanitizer(t[0]):tE(t[0]);e.type="paragraph",e.text=i,e.tokens=this.lexer.inline(i)}return e}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(/\s+/g," "),i=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:i,title:n}}}table(e){let t=this.rules.block.table.exec(e);if(t){let e={type:"table",header:tR(t[1]).map(e=>({text:e})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){let i,n,r,o;e.raw=t[0];let s=e.align.length;for(i=0;i<s;i++)/^ *-+: *$/.test(e.align[i])?e.align[i]="right":/^ *:-+: *$/.test(e.align[i])?e.align[i]="center":/^ *:-+ *$/.test(e.align[i])?e.align[i]="left":e.align[i]=null;for(i=0,s=e.rows.length;i<s;i++)e.rows[i]=tR(e.rows[i],e.header.length).map(e=>({text:e}));for(n=0,s=e.header.length;n<s;n++)e.header[n].tokens=this.lexer.inline(e.header[n].text);for(n=0,s=e.rows.length;n<s;n++)for(r=0,o=e.rows[n];r<o.length;r++)o[r].tokens=this.lexer.inline(o[r].text);return e}}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:tE(t[1])}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):tE(t[0]):t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;let t=tF(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=tB(t[2],"()");if(e>-1){let i=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,i).trim(),t[3]=""}}let i=t[2],n="";if(this.options.pedantic){let e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);e&&(i=e[1],n=e[3])}else n=t[3]?t[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(i=this.options.pedantic&&!/>$/.test(e)?i.slice(1):i.slice(1,-1)),tq(t,{href:i?i.replace(this.rules.inline._escapes,"$1"):i,title:n?n.replace(this.rules.inline._escapes,"$1"):n},t[0],this.lexer)}}reflink(e,t){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){let e=(i[2]||i[1]).replace(/\s+/g," ");if(!(e=t[e.toLowerCase()])){let e=i[0].charAt(0);return{type:"text",raw:e,text:e}}return tq(i,e,i[0],this.lexer)}}emStrong(e,t,i=""){let n=this.rules.inline.emStrong.lDelim.exec(e);if(!n||n[3]&&i.match(/[\p{L}\p{N}]/u))return;let r=n[1]||n[2]||"";if(!r||r&&(""===i||this.rules.inline.punctuation.exec(i))){let i=n[0].length-1,r,o,s=i,a=0,l="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+i);null!=(n=l.exec(t));){if(!(r=n[1]||n[2]||n[3]||n[4]||n[5]||n[6]))continue;if(o=r.length,n[3]||n[4]){s+=o;continue}if((n[5]||n[6])&&i%3&&!((i+o)%3)){a+=o;continue}if((s-=o)>0)continue;o=Math.min(o,o+s+a);let t=e.slice(0,i+n.index+(n[0].length-r.length)+o);if(Math.min(i,o)%2){let e=t.slice(1,-1);return{type:"em",raw:t,text:e,tokens:this.lexer.inlineTokens(e)}}let l=t.slice(2,-2);return{type:"strong",raw:t,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," "),i=/[^ ]/.test(e),n=/^ /.test(e)&&/ $/.test(e);return i&&n&&(e=e.substring(1,e.length-1)),e=tE(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){let i=this.rules.inline.autolink.exec(e);if(i){let e,n;return n="@"===i[2]?"mailto:"+(e=tE(this.options.mangle?t(i[1]):i[1])):e=tE(i[1]),{type:"link",raw:i[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let i;if(i=this.rules.inline.url.exec(e)){let e,n;if("@"===i[2])n="mailto:"+(e=tE(this.options.mangle?t(i[0]):i[0]));else{let t;do t=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0];while(t!==i[0]);e=tE(i[0]),n="www."===i[1]?"http://"+i[0]:i[0]}return{type:"link",raw:i[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){let i=this.rules.inline.text.exec(e);if(i){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):tE(i[0]):i[0]:tE(this.options.smartypants?t(i[0]):i[0]),{type:"text",raw:i[0],text:e}}}}let tW={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:tM,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};tW._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,tW._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,tW.def=tA(tW.def).replace("label",tW._label).replace("title",tW._title).getRegex(),tW.bullet=/(?:[*+-]|\d{1,9}[.)])/,tW.listItemStart=tA(/^( *)(bull) */).replace("bull",tW.bullet).getRegex(),tW.list=tA(tW.list).replace(/bull/g,tW.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+tW.def.source+")").getRegex(),tW._tag="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",tW._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,tW.html=tA(tW.html,"i").replace("comment",tW._comment).replace("tag",tW._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),tW.paragraph=tA(tW._paragraph).replace("hr",tW.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",tW._tag).getRegex(),tW.blockquote=tA(tW.blockquote).replace("paragraph",tW.paragraph).getRegex(),tW.normal={...tW},tW.gfm={...tW.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},tW.gfm.table=tA(tW.gfm.table).replace("hr",tW.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",tW._tag).getRegex(),tW.gfm.paragraph=tA(tW._paragraph).replace("hr",tW.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",tW.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",tW._tag).getRegex(),tW.pedantic={...tW.normal,html:tA("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",tW._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:tM,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:tA(tW.normal._paragraph).replace("hr",tW.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",tW.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};let tG={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:tM,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:tM,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function tK(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function tY(e){let t="",i,n,r=e.length;for(i=0;i<r;i++)n=e.charCodeAt(i),Math.random()>.5&&(n="x"+n.toString(16)),t+="&#"+n+";";return t}tG._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",tG.punctuation=tA(tG.punctuation).replace(/punctuation/g,tG._punctuation).getRegex(),tG.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,tG.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,tG._comment=tA(tW._comment).replace("(?:-->|$)","-->").getRegex(),tG.emStrong.lDelim=tA(tG.emStrong.lDelim).replace(/punct/g,tG._punctuation).getRegex(),tG.emStrong.rDelimAst=tA(tG.emStrong.rDelimAst,"g").replace(/punct/g,tG._punctuation).getRegex(),tG.emStrong.rDelimUnd=tA(tG.emStrong.rDelimUnd,"g").replace(/punct/g,tG._punctuation).getRegex(),tG._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,tG._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,tG._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,tG.autolink=tA(tG.autolink).replace("scheme",tG._scheme).replace("email",tG._email).getRegex(),tG._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,tG.tag=tA(tG.tag).replace("comment",tG._comment).replace("attribute",tG._attribute).getRegex(),tG._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,tG._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,tG._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,tG.link=tA(tG.link).replace("label",tG._label).replace("href",tG._href).replace("title",tG._title).getRegex(),tG.reflink=tA(tG.reflink).replace("label",tG._label).replace("ref",tW._label).getRegex(),tG.nolink=tA(tG.nolink).replace("ref",tW._label).getRegex(),tG.reflinkSearch=tA(tG.reflinkSearch,"g").replace("reflink",tG.reflink).replace("nolink",tG.nolink).getRegex(),tG.normal={...tG},tG.pedantic={...tG.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:tA(/^!?\[(label)\]\((.*?)\)/).replace("label",tG._label).getRegex(),reflink:tA(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",tG._label).getRegex()},tG.gfm={...tG.normal,escape:tA(tG.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},tG.gfm.url=tA(tG.gfm.url,"i").replace("email",tG.gfm._extended_email).getRegex(),tG.breaks={...tG.gfm,br:tA(tG.br).replace("{2,}","*").getRegex(),text:tA(tG.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};class tQ{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||tg,this.options.tokenizer=this.options.tokenizer||new tz,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={block:tW.normal,inline:tG.normal};this.options.pedantic?(t.block=tW.pedantic,t.inline=tG.pedantic):this.options.gfm&&(t.block=tW.gfm,this.options.breaks?t.inline=tG.breaks:t.inline=tG.gfm),this.tokenizer.rules=t}static get rules(){return{block:tW,inline:tG}}static lex(e,t){return new tQ(t).lex(e)}static lexInline(e,t){return new tQ(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let i,n,r,o;for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,(e,t,i)=>t+" ".repeat(i.length));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(n=>!!(i=n.call({lexer:this},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)))){if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length),1===i.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length),(n=t[t.length-1])&&("paragraph"===n.type||"text"===n.type)?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i);continue}if((i=this.tokenizer.fences(e))||(i=this.tokenizer.heading(e))||(i=this.tokenizer.hr(e))||(i=this.tokenizer.blockquote(e))||(i=this.tokenizer.list(e))||(i=this.tokenizer.html(e))){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length),(n=t[t.length-1])&&("paragraph"===n.type||"text"===n.type)?(n.raw+="\n"+i.raw,n.text+="\n"+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title});continue}if((i=this.tokenizer.table(e))||(i=this.tokenizer.lheading(e))){e=e.substring(i.raw.length),t.push(i);continue}if(r=e,this.options.extensions&&this.options.extensions.startBlock){let t,i=1/0,n=e.slice(1);this.options.extensions.startBlock.forEach(function(e){"number"==typeof(t=e.call({lexer:this},n))&&t>=0&&(i=Math.min(i,t))}),i<1/0&&i>=0&&(r=e.substring(0,i+1))}if(this.state.top&&(i=this.tokenizer.paragraph(r))){n=t[t.length-1],o&&"paragraph"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i),o=r.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let i,n,r,o,s,a;let l=e;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(l));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,o.index)+"["+tH("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,o.index)+"["+tH("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,o.index+o[0].length-2)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(s||(a=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(n=>!!(i=n.call({lexer:this},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)))){if(i=this.tokenizer.escape(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.tag(e)){e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);continue}if(i=this.tokenizer.link(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);continue}if((i=this.tokenizer.emStrong(e,l,a))||(i=this.tokenizer.codespan(e))||(i=this.tokenizer.br(e))||(i=this.tokenizer.del(e))||(i=this.tokenizer.autolink(e,tY))||!this.state.inLink&&(i=this.tokenizer.url(e,tY))){e=e.substring(i.raw.length),t.push(i);continue}if(r=e,this.options.extensions&&this.options.extensions.startInline){let t,i=1/0,n=e.slice(1);this.options.extensions.startInline.forEach(function(e){"number"==typeof(t=e.call({lexer:this},n))&&t>=0&&(i=Math.min(i,t))}),i<1/0&&i>=0&&(r=e.substring(0,i+1))}if(i=this.tokenizer.inlineText(r,tK)){e=e.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(a=i.raw.slice(-1)),s=!0,(n=t[t.length-1])&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}}class tJ{constructor(e){this.options=e||tg}code(e,t,i){let n=(t||"").match(/\S*/)[0];if(this.options.highlight){let t=this.options.highlight(e,n);null!=t&&t!==e&&(i=!0,e=t)}return(e=e.replace(/\n$/,"")+"\n",n)?'<pre><code class="'+this.options.langPrefix+tE(n)+'">'+(i?e:tE(e,!0))+"</code></pre>\n":"<pre><code>"+(i?e:tE(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote> ${e}</blockquote> `}html(e){return e}heading(e,t,i,n){if(this.options.headerIds){let r=this.options.headerPrefix+n.slug(i);return`<h${t} id="${r}">${e}</h${t}> `}return`<h${t}>${e}</h${t}> `}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,i){let n=t?"ol":"ul";return"<"+n+(t&&1!==i?' start="'+i+'"':"")+">\n"+e+"</"+n+">\n"}listitem(e){return`<li>${e}</li> `}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p> `}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return`<tr> ${e}</tr> `}tablecell(e,t){let i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+e+`</${i}> `}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,t,i){if(null===(e=tk(this.options.sanitize,this.options.baseUrl,e)))return i;let n='<a href="'+e+'"';return t&&(n+=' title="'+t+'"'),n+=">"+i+"</a>"}image(e,t,i){if(null===(e=tk(this.options.sanitize,this.options.baseUrl,e)))return i;let n=`<img src="${e}" alt="${i}"`;return t&&(n+=` title="${t}"`),n+=this.options.xhtml?"/>":">"}text(e){return e}}class tX{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,i){return""+i}image(e,t,i){return""+i}br(){return""}}class tZ{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let i=e,n=0;if(this.seen.hasOwnProperty(i)){n=this.seen[e];do i=e+"-"+ ++n;while(this.seen.hasOwnProperty(i))}return t||(this.seen[e]=n,this.seen[i]=0),i}slug(e,t={}){let i=this.serialize(e);return this.getNextSafeSlug(i,t.dryrun)}}class t0{constructor(e){this.options=e||tg,this.options.renderer=this.options.renderer||new tJ,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new tX,this.slugger=new tZ}static parse(e,t){return new t0(t).parse(e)}static parseInline(e,t){return new t0(t).parseInline(e)}parse(e,t=!0){let i="",n,r,o,s,a,l,c,p,d,u,h,m,f,g,y,b,v,_,w,x=e.length;for(n=0;n<x;n++){if(u=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[u.type]&&(!1!==(w=this.options.extensions.renderers[u.type].call({parser:this},u))||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(u.type))){i+=w||"";continue}switch(u.type){case"space":continue;case"hr":i+=this.renderer.hr();continue;case"heading":i+=this.renderer.heading(this.parseInline(u.tokens),u.depth,tC(this.parseInline(u.tokens,this.textRenderer)),this.slugger);continue;case"code":i+=this.renderer.code(u.text,u.lang,u.escaped);continue;case"table":for(r=0,p="",c="",s=u.header.length;r<s;r++)c+=this.renderer.tablecell(this.parseInline(u.header[r].tokens),{header:!0,align:u.align[r]});for(p+=this.renderer.tablerow(c),d="",s=u.rows.length,r=0;r<s;r++){for(o=0