@kubitnodes/stellaris 0.3.26 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +752 -184
- package/dist/server/index.js +1528 -276
- package/package.json +2 -2
- package/web/dist/assets/{BackLink-UTiLF1J4.js → BackLink-BLiSCuKv.js} +1 -1
- package/web/dist/assets/{Button-Cp4cNRUX.js → Button-D4-iu6aX.js} +1 -1
- package/web/dist/assets/ChannelForms-DjviQfVm.js +1 -0
- package/web/dist/assets/{ChannelView-CY3oG9hZ.js → ChannelView-B-0H7Ps8.js} +2 -2
- package/web/dist/assets/CitizenView-gE5GgCBa.js +2 -0
- package/web/dist/assets/{CitizensView-WPQ6Jhl3.js → CitizensView-DXD3qkq1.js} +1 -1
- package/web/dist/assets/{CliIcon-C7bwChMP.js → CliIcon-DL4ZwgZv.js} +1 -1
- package/web/dist/assets/{CronsView-_pdgwX1I.js → CronsView-CX_G5D3h.js} +1 -1
- package/web/dist/assets/{FileTree-jyDUSu7g.js → FileTree-BFa_KVI8.js} +1 -1
- package/web/dist/assets/{FileView-DcQvlc8V.js → FileView-Cd9Ijarf.js} +2 -2
- package/web/dist/assets/KnowledgeView-D_a4pjGV.js +1 -0
- package/web/dist/assets/{Markdown-DT3V-EVe.js → Markdown-DPqvK--4.js} +4 -4
- package/web/dist/assets/{MessageItem-agtEugfG.js → MessageItem-WBTzWwyj.js} +1 -1
- package/web/dist/assets/MetricsView-YUkYixqT.js +1 -0
- package/web/dist/assets/NeedsYouView-CE_B9bZQ.js +1 -0
- package/web/dist/assets/Overview-BGUnf6K1.js +1 -0
- package/web/dist/assets/{Pane-BaM0TdE6.js → Pane-C9TbEME4.js} +1 -1
- package/web/dist/assets/{Picker-C2ig-0dT.js → Picker-BK48MjLY.js} +1 -1
- package/web/dist/assets/ProjectView-sL3aGAC6.js +1 -0
- package/web/dist/assets/ProposalView-BhZR4MIR.js +1 -0
- package/web/dist/assets/{ProposalsView-p4KjwV9p.js → ProposalsView-DTGx8NDn.js} +1 -1
- package/web/dist/assets/{Quota-CfFGIql9.js → Quota-BkF7pa0u.js} +1 -1
- package/web/dist/assets/RunnersView-Bl62pXNw.js +1 -0
- package/web/dist/assets/{SkillFileList-CgrCnuaC.js → SkillFileList-BUpKUkaG.js} +1 -1
- package/web/dist/assets/{SkillView-Di5Z9h2L.js → SkillView-BQJApSh7.js} +1 -1
- package/web/dist/assets/{SocietyView-BDiVxUC5.js → SocietyView-JSdVE50m.js} +1 -1
- package/web/dist/assets/{StickyList-BaV_KZ8x.js → StickyList-DafbJutb.js} +1 -1
- package/web/dist/assets/{SubjectThread-DD_ZCCnr.js → SubjectThread-Jyl5YCFL.js} +1 -1
- package/web/dist/assets/{TaskView-CKcs-MOC.js → TaskView-Jke2pVGT.js} +2 -2
- package/web/dist/assets/{TasksView-oZMjncOU.js → TasksView-zJTIaqEA.js} +1 -1
- package/web/dist/assets/{ThreadForms-CG5Y926b.js → ThreadForms-DwUOktyP.js} +1 -1
- package/web/dist/assets/{ThreadItem-D-n2arFA.js → ThreadItem-Blx8gSvO.js} +1 -1
- package/web/dist/assets/{ThreadView-CT9vd0P4.js → ThreadView-CdQpBb7M.js} +1 -1
- package/web/dist/assets/citizen-BOn5BBRL.js +1 -0
- package/web/dist/assets/compose-D-X3BQgY.js +1 -0
- package/web/dist/assets/format-Dhd2NUB3.js +55 -0
- package/web/dist/assets/{governance-C6ez5MLh.js → governance-CWzi7hzX.js} +1 -1
- package/web/dist/assets/index-CA_njyMe.css +2 -0
- package/web/dist/assets/index-iplooQqq.js +24 -0
- package/web/dist/assets/{mentions-BEL5U6ra.js → mentions-S-r32HKM.js} +1 -1
- package/web/dist/assets/{tasks-CAI8Eci7.js → tasks-D_Fy7dtN.js} +1 -1
- package/web/dist/assets/useMatch-DZXCHHaG.js +1 -0
- package/web/dist/index.html +9 -9
- package/web/dist/assets/ChannelForms-DD2B0tey.js +0 -1
- package/web/dist/assets/CitizenView-BNK5ro-6.js +0 -2
- package/web/dist/assets/KnowledgeView-DDl0HQPG.js +0 -1
- package/web/dist/assets/MetricsView-DiXyYeWP.js +0 -1
- package/web/dist/assets/NeedsYouView-CKmuYan_.js +0 -1
- package/web/dist/assets/Overview-CKcTqsMM.js +0 -1
- package/web/dist/assets/ProjectView-T2OHTh5j.js +0 -1
- package/web/dist/assets/ProposalView-B5yjTAcn.js +0 -1
- package/web/dist/assets/RunnersView-DdvwoOur.js +0 -1
- package/web/dist/assets/citizen-BiHfph2A.js +0 -1
- package/web/dist/assets/compose-DY1WL8zB.js +0 -1
- package/web/dist/assets/format-CENiwkJC.js +0 -55
- package/web/dist/assets/index-CPXALUV6.js +0 -23
- package/web/dist/assets/index-DIa8Dlav.css +0 -2
- package/web/dist/assets/useMatch-CINzyDWa.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{G as e,Gn as t,Jt as n,Kn as r,Un as i,Wn as a,c as o,lt as s,qn as c}from"./format-CENiwkJC.js";import{b as l,g as u,j as d,x as f,y as p}from"./index-CPXALUV6.js";import{a as m,c as h,d as g,i as _,l as ee,o as te,r as ne,s as v,t as re,u as y}from"./mentions-BEL5U6ra.js";function ie(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function b(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&v(e.charCodeAt(n+1))&&v(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function ae(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var oe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,x=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,S={};function se(e,t){return((t||S).jsx?x:oe).test(e)}var ce=/[ \t\n\f\r]/g;function le(e){return typeof e==`object`?e.type===`text`&&ue(e.value):ue(e)}function ue(e){return e.replace(ce,``)===``}var C=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};C.prototype.normal={},C.prototype.property={},C.prototype.space=void 0;function de(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new C(n,r,t)}function w(e){return e.toLowerCase()}var T=class{constructor(e,t){this.attribute=t,this.property=e}};T.prototype.attribute=``,T.prototype.booleanish=!1,T.prototype.boolean=!1,T.prototype.commaOrSpaceSeparated=!1,T.prototype.commaSeparated=!1,T.prototype.defined=!1,T.prototype.mustUseProperty=!1,T.prototype.number=!1,T.prototype.overloadedBoolean=!1,T.prototype.property=``,T.prototype.spaceSeparated=!1,T.prototype.space=void 0;var E=r({boolean:()=>D,booleanish:()=>O,commaOrSpaceSeparated:()=>N,commaSeparated:()=>M,number:()=>A,overloadedBoolean:()=>k,spaceSeparated:()=>j}),fe=0,D=P(),O=P(),k=P(),A=P(),j=P(),M=P(),N=P();function P(){return 2**++fe}var pe=Object.keys(E),F=class extends T{constructor(e,t,n,r){let i=-1;if(super(e,t),I(this,`space`,r),typeof n==`number`)for(;++i<pe.length;){let e=pe[i];I(this,pe[i],(n&E[e])===E[e])}}};F.prototype.defined=!0;function I(e,t,n){n&&(e[t]=n)}function L(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new F(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[w(r)]=r,n[w(a.attribute)]=r}return new C(t,n,e.space)}var me=L({properties:{ariaActiveDescendant:null,ariaAtomic:O,ariaAutoComplete:null,ariaBusy:O,ariaChecked:O,ariaColCount:A,ariaColIndex:A,ariaColSpan:A,ariaControls:j,ariaCurrent:null,ariaDescribedBy:j,ariaDetails:null,ariaDisabled:O,ariaDropEffect:j,ariaErrorMessage:null,ariaExpanded:O,ariaFlowTo:j,ariaGrabbed:O,ariaHasPopup:null,ariaHidden:O,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:j,ariaLevel:A,ariaLive:null,ariaModal:O,ariaMultiLine:O,ariaMultiSelectable:O,ariaOrientation:null,ariaOwns:j,ariaPlaceholder:null,ariaPosInSet:A,ariaPressed:O,ariaReadOnly:O,ariaRelevant:null,ariaRequired:O,ariaRoleDescription:j,ariaRowCount:A,ariaRowIndex:A,ariaRowSpan:A,ariaSelected:O,ariaSetSize:A,ariaSort:null,ariaValueMax:A,ariaValueMin:A,ariaValueNow:A,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function he(e,t){return t in e?e[t]:t}function R(e,t){return he(e,t.toLowerCase())}var ge=L({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:M,acceptCharset:j,accessKey:j,action:null,allow:null,allowFullScreen:D,allowPaymentRequest:D,allowUserMedia:D,alpha:D,alt:null,as:null,async:D,autoCapitalize:null,autoComplete:j,autoFocus:D,autoPlay:D,blocking:j,capture:null,charSet:null,checked:D,cite:null,className:j,closedBy:null,colorSpace:null,cols:A,colSpan:A,command:null,commandFor:null,content:null,contentEditable:O,controls:D,controlsList:j,coords:A|M,crossOrigin:null,data:null,dateTime:null,decoding:null,default:D,defer:D,dir:null,dirName:null,disabled:D,download:k,draggable:O,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:D,formTarget:null,headers:j,height:A,hidden:k,high:A,href:null,hrefLang:null,htmlFor:j,httpEquiv:j,id:null,imageSizes:null,imageSrcSet:null,inert:D,inputMode:null,integrity:null,is:null,isMap:D,itemId:null,itemProp:j,itemRef:j,itemScope:D,itemType:j,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:D,low:A,manifest:null,max:null,maxLength:A,media:null,method:null,min:null,minLength:A,multiple:D,muted:D,name:null,nonce:null,noModule:D,noValidate:D,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:D,optimum:A,pattern:null,ping:j,placeholder:null,playsInline:D,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:D,referrerPolicy:null,rel:j,required:D,reversed:D,rows:A,rowSpan:A,sandbox:j,scope:null,scoped:D,seamless:D,selected:D,shadowRootClonable:D,shadowRootCustomElementRegistry:D,shadowRootDelegatesFocus:D,shadowRootMode:null,shadowRootSerializable:D,shape:null,size:A,sizes:null,slot:null,span:A,spellCheck:O,src:null,srcDoc:null,srcLang:null,srcSet:null,start:A,step:null,style:null,tabIndex:A,target:null,title:null,translate:null,type:null,typeMustMatch:D,useMap:null,value:O,width:A,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:j,axis:null,background:null,bgColor:null,border:A,borderColor:null,bottomMargin:A,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:D,declare:D,event:null,face:null,frame:null,frameBorder:null,hSpace:A,leftMargin:A,link:null,longDesc:null,lowSrc:null,marginHeight:A,marginWidth:A,noResize:D,noHref:D,noShade:D,noWrap:D,object:null,profile:null,prompt:null,rev:null,rightMargin:A,rules:null,scheme:null,scrolling:O,standby:null,summary:null,text:null,topMargin:A,valueType:null,version:null,vAlign:null,vLink:null,vSpace:A,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:D,disablePictureInPicture:D,disableRemotePlayback:D,exportParts:M,part:j,prefix:null,property:null,results:A,security:null,unselectable:null},space:`html`,transform:R}),_e=L({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:N,accentHeight:A,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:A,amplitude:A,arabicForm:null,ascent:A,attributeName:null,attributeType:null,azimuth:A,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:A,by:null,calcMode:null,capHeight:A,className:j,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:A,diffuseConstant:A,direction:null,display:null,dur:null,divisor:A,dominantBaseline:null,download:D,dx:null,dy:null,edgeMode:null,editable:null,elevation:A,enableBackground:null,end:null,event:null,exponent:A,externalResourcesRequired:null,fill:null,fillOpacity:A,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:M,g2:M,glyphName:M,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:A,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:A,horizOriginX:A,horizOriginY:A,id:null,ideographic:A,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:A,k:A,k1:A,k2:A,k3:A,k4:A,kernelMatrix:N,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:A,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:A,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:A,overlineThickness:A,paintOrder:null,panose1:null,path:null,pathLength:A,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:j,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:A,pointsAtY:A,pointsAtZ:A,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:N,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:N,rev:N,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:N,requiredFeatures:N,requiredFonts:N,requiredFormats:N,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:A,specularExponent:A,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:A,strikethroughThickness:A,string:null,stroke:null,strokeDashArray:N,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:A,strokeOpacity:A,strokeWidth:null,style:null,surfaceScale:A,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:N,tabIndex:A,tableValues:null,target:null,targetX:A,targetY:A,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:N,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:A,underlineThickness:A,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:A,values:null,vAlphabetic:A,vMathematical:A,vectorEffect:null,vHanging:A,vIdeographic:A,version:null,vertAdvY:A,vertOriginX:A,vertOriginY:A,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:A,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:he}),ve=L({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),z=L({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:R}),B=L({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),ye={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`},be=/[A-Z]/g,xe=/-[a-z]/g,Se=/^data[-\w.:]+$/i;function Ce(e,t){let n=w(t),r=t,i=T;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&Se.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(xe,Te);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!xe.test(e)){let n=e.replace(be,we);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=F}return new i(r,t)}function we(e){return`-`+e.toLowerCase()}function Te(e){return e.charAt(1).toUpperCase()}var Ee=de([me,ge,ve,z,B],`html`),De=de([me,_e,ve,z,B],`svg`);function Oe(e){return e.join(` `).trim()}var ke=t(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
|
|
2
|
-
`);u=~n?e.length-n:u+e.length}function p(){var e={line:l,column:u};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:l,column:u},this.source=t.source}m.prototype.content=e;function h(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){g(i)}function ee(e){var t;for(e||=[];t=te();)t!==!1&&e.push(t);return e}function te(){var t=p();if(e.charAt(0)==`/`&&e.charAt(1)==`*`){for(var n=2;e.charAt(n)!=``&&(e.charAt(n)!=`*`||e.charAt(n+1)!=`/`);)++n;if(n+=2,e.charAt(n-1)===``)return h(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,f(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function ne(){var e=p(),t=g(a);if(t){if(te(),!g(o))return h(`property missing ':'`);var r=g(s),i=e({type:`declaration`,property:d(t[0].replace(n,``)),value:r?d(r[0].replace(n,``)):``});return g(c),i}}function v(){var e=[];ee(e);for(var t;t=ne();)t!==!1&&(e.push(t),ee(e));return e}return _(),v()}function d(e){return e?e.replace(l,``):``}t.exports=u})),Ae=t(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var i=r(ke());function a(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=(0,i.default)(e),a=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:i}=e;a?t(r,i,e):i&&(n||={},n[r]=i)}),n}})),je=t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),Me=t(((e,t,n)=>{var r=(n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Ae()),i=je();function a(e,t){var n={};return!e||typeof e!=`string`||(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,t.exports=a})),Ne=Fe(`end`),Pe=Fe(`start`);function Fe(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function Ie(e){let t=Pe(e),n=Ne(e);if(t&&n)return{start:t,end:n}}function V(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Re(e.position):`start`in e||`end`in e?Re(e):`line`in e||`column`in e?Le(e):``}function Le(e){return ze(e&&e.line)+`:`+ze(e&&e.column)}function Re(e){return Le(e&&e.start)+`-`+Le(e&&e.end)}function ze(e){return e&&typeof e==`number`?e:1}var H=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=V(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};H.prototype.file=``,H.prototype.name=``,H.prototype.reason=``,H.prototype.message=``,H.prototype.stack=``,H.prototype.column=void 0,H.prototype.line=void 0,H.prototype.ancestors=void 0,H.prototype.cause=void 0,H.prototype.fatal=void 0,H.prototype.place=void 0,H.prototype.ruleId=void 0,H.prototype.source=void 0;var Be=c(Me(),1),Ve={}.hasOwnProperty,He=new Map,Ue=/[A-Z]/g,We=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Ge=new Set([`td`,`th`]),Ke=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function qe(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=it(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=rt(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?De:Ee,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Je(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Je(e,t,n){if(t.type===`element`)return Ye(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return Xe(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return Qe(e,t,n);if(t.type===`mdxjsEsm`)return Ze(e,t);if(t.type===`root`)return $e(e,t,n);if(t.type===`text`)return et(e,t)}function Ye(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=De,e.schema=i),e.ancestors.push(t);let a=ut(e,t.tagName,!1),o=at(e,t),s=st(e,t);return We.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!le(e)})),tt(e,o,a,t),nt(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Xe(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}U(e,t.position)}function Ze(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);U(e,t.position)}function Qe(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=De,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:ut(e,t.name,!0),o=ot(e,t),s=st(e,t);return tt(e,o,a,t),nt(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function $e(e,t,n){let r={};return nt(r,st(e,t)),e.create(t,e.Fragment,r,n)}function et(e,t){return t.value}function tt(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function nt(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function rt(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function it(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=Pe(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function at(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&Ve.call(t.properties,i)){let a=ct(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&Ge.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function ot(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else U(e,t.position)}else{let i=r.name,a;if(r.value&&typeof r.value==`object`){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else U(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function st(e,t){let n=[],r=-1,i=e.passKeys?new Map:He;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=Je(e,a,o);s!==void 0&&n.push(s)}return n}function ct(e,t,n){let r=Ce(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?ae(n):Oe(n)),r.property===`style`){let t=typeof n==`object`?n:lt(e,String(n));return e.stylePropertyNameCase===`css`&&(t=dt(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?ye[r.property]||r.property:r.attribute,n]}}function lt(e,t){try{return(0,Be.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new H("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=Ke+`#cannot-parse-style-attribute`,r}}function ut(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=se(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=se(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return Ve.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);U(e)}function U(e,t){let n=new H("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=Ke+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function dt(e){let t={},n;for(n in e)Ve.call(e,n)&&(t[ft(n)]=e[n]);return t}function ft(e){let t=e.replace(Ue,pt);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function pt(e){return`-`+e.toLowerCase()}var mt={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},ht={};function gt(e,t){let n=t||ht;return _t(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function _t(e,t,n){if(yt(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return vt(e.children,t,n)}return Array.isArray(e)?vt(e,t,n):``}function vt(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=_t(e[i],t,n);return r.join(``)}function yt(e){return!!(e&&typeof e==`object`)}var bt=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function xt(e){return e.replace(bt,St)}function St(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return ie(n.slice(t?2:1),t?16:10)}return g(n)||e}var Ct={}.hasOwnProperty;function wt(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),Tt(n)(m(te(n).document().write(_()(e,t,!0))))}function Tt(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(z),autolinkProtocol:x,autolinkEmail:x,atxHeading:a(R),blockQuote:a(F),characterEscape:x,characterReference:x,codeFenced:a(I),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(I,o),codeText:a(L,o),codeTextData:x,data:x,codeFlowValue:x,definition:a(me),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(he),hardBreakEscape:a(ge),hardBreakTrailing:a(ge),htmlFlow:a(_e,o),htmlFlowData:x,htmlText:a(_e,o),htmlTextData:x,image:a(ve),label:o,link:a(z),listItem:a(ye),listItemValue:f,listOrdered:a(B,d),listUnordered:a(B),paragraph:a(be),reference:k,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(R),strong:a(xe),thematicBreak:a(Ce)},exit:{atxHeading:c(),atxHeadingSequence:re,autolink:c(),autolinkEmail:pe,autolinkProtocol:P,blockQuote:c(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:j,characterReferenceMarkerNumeric:j,characterReferenceValue:M,characterReference:N,codeFenced:c(_),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:S,codeIndented:c(ee),codeText:c(C),codeTextData:S,data:S,definition:c(),definitionDestinationString:v,definitionLabelString:te,definitionTitleString:ne,emphasis:c(),hardBreakEscape:c(ce),hardBreakTrailing:c(ce),htmlFlow:c(le),htmlFlowData:S,htmlText:c(ue),htmlTextData:S,image:c(w),label:E,labelText:T,lineEnding:se,link:c(de),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:A,resourceDestinationString:fe,resourceTitleString:D,resource:O,setextHeading:c(oe),setextHeadingLineSequence:ae,setextHeadingText:b,strong:c(),thematicBreak:c()}};Et(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];Ct.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||Ot).call(a,void 0,e[0])}for(r.position={start:W(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:W(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:W(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Ot).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+V({start:e.start,end:e.end})+`): it’s not open`);n.position.end=W(e.end)}function u(){return gt(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function ee(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function te(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=y(this.sliceSerialize(e)).toLowerCase()}function ne(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function v(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function re(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function b(){this.data.setextHeadingSlurpLineEnding=!0}function ae(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function oe(){this.data.setextHeadingSlurpLineEnding=void 0}function x(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&n.type===`text`||(n=Se(),n.position={start:W(e.start),end:void 0},t.push(n)),this.stack.push(n)}function S(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=W(e.end)}function se(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=W(e.end),this.data.atHardBreak=void 0}else!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(x.call(this,e),S.call(this,e))}function ce(){this.data.atHardBreak=!0}function le(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ue(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function C(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function de(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function w(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function T(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=xt(t),n.identifier=y(t).toLowerCase()}function E(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function fe(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function D(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function O(){this.data.inReference=void 0}function k(){this.data.referenceType=`collapsed`}function A(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=y(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function j(e){this.data.characterReferenceType=e.type}function M(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=ie(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=g(t);let i=this.stack[this.stack.length-1];i.value+=r}function N(e){let t=this.stack.pop();t.position.end=W(e.end)}function P(e){S.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function pe(e){S.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function F(){return{type:`blockquote`,children:[]}}function I(){return{type:`code`,lang:null,meta:null,value:``}}function L(){return{type:`inlineCode`,value:``}}function me(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function he(){return{type:`emphasis`,children:[]}}function R(){return{type:`heading`,depth:0,children:[]}}function ge(){return{type:`break`}}function _e(){return{type:`html`,value:``}}function ve(){return{type:`image`,title:null,url:``,alt:null}}function z(){return{type:`link`,title:null,url:``,children:[]}}function B(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function ye(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function be(){return{type:`paragraph`,children:[]}}function xe(){return{type:`strong`,children:[]}}function Se(){return{type:`text`,value:``}}function Ce(){return{type:`thematicBreak`}}}function W(e){return{line:e.line,column:e.column,offset:e.offset}}function Et(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?Et(e,r):Dt(e,r)}}function Dt(e,t){let n;for(n in t)if(Ct.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function Ot(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+V({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+V({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+V({start:t.start,end:t.end})+`) is still open`)}function kt(e){let t=this;t.parser=n;function n(n){return wt(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function At(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function jt(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
1
|
+
import{G as e,Jn as t,Kn as n,Xn as r,Yn as i,Zt as a,c as o,ft as s,qn as c}from"./format-Dhd2NUB3.js";import{b as l,g as u,j as d,x as f,y as p}from"./index-iplooQqq.js";import{a as m,c as h,d as g,i as _,l as ee,o as te,r as ne,s as v,t as re,u as y}from"./mentions-S-r32HKM.js";function ie(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function b(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&v(e.charCodeAt(n+1))&&v(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function ae(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var oe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,x=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,S={};function se(e,t){return((t||S).jsx?x:oe).test(e)}var ce=/[ \t\n\f\r]/g;function le(e){return typeof e==`object`?e.type===`text`&&ue(e.value):ue(e)}function ue(e){return e.replace(ce,``)===``}var C=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};C.prototype.normal={},C.prototype.property={},C.prototype.space=void 0;function de(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new C(n,r,t)}function w(e){return e.toLowerCase()}var T=class{constructor(e,t){this.attribute=t,this.property=e}};T.prototype.attribute=``,T.prototype.booleanish=!1,T.prototype.boolean=!1,T.prototype.commaOrSpaceSeparated=!1,T.prototype.commaSeparated=!1,T.prototype.defined=!1,T.prototype.mustUseProperty=!1,T.prototype.number=!1,T.prototype.overloadedBoolean=!1,T.prototype.property=``,T.prototype.spaceSeparated=!1,T.prototype.space=void 0;var E=i({boolean:()=>D,booleanish:()=>O,commaOrSpaceSeparated:()=>N,commaSeparated:()=>M,number:()=>A,overloadedBoolean:()=>k,spaceSeparated:()=>j}),fe=0,D=P(),O=P(),k=P(),A=P(),j=P(),M=P(),N=P();function P(){return 2**++fe}var pe=Object.keys(E),F=class extends T{constructor(e,t,n,r){let i=-1;if(super(e,t),I(this,`space`,r),typeof n==`number`)for(;++i<pe.length;){let e=pe[i];I(this,pe[i],(n&E[e])===E[e])}}};F.prototype.defined=!0;function I(e,t,n){n&&(e[t]=n)}function L(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new F(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[w(r)]=r,n[w(a.attribute)]=r}return new C(t,n,e.space)}var me=L({properties:{ariaActiveDescendant:null,ariaAtomic:O,ariaAutoComplete:null,ariaBusy:O,ariaChecked:O,ariaColCount:A,ariaColIndex:A,ariaColSpan:A,ariaControls:j,ariaCurrent:null,ariaDescribedBy:j,ariaDetails:null,ariaDisabled:O,ariaDropEffect:j,ariaErrorMessage:null,ariaExpanded:O,ariaFlowTo:j,ariaGrabbed:O,ariaHasPopup:null,ariaHidden:O,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:j,ariaLevel:A,ariaLive:null,ariaModal:O,ariaMultiLine:O,ariaMultiSelectable:O,ariaOrientation:null,ariaOwns:j,ariaPlaceholder:null,ariaPosInSet:A,ariaPressed:O,ariaReadOnly:O,ariaRelevant:null,ariaRequired:O,ariaRoleDescription:j,ariaRowCount:A,ariaRowIndex:A,ariaRowSpan:A,ariaSelected:O,ariaSetSize:A,ariaSort:null,ariaValueMax:A,ariaValueMin:A,ariaValueNow:A,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function he(e,t){return t in e?e[t]:t}function R(e,t){return he(e,t.toLowerCase())}var ge=L({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:M,acceptCharset:j,accessKey:j,action:null,allow:null,allowFullScreen:D,allowPaymentRequest:D,allowUserMedia:D,alpha:D,alt:null,as:null,async:D,autoCapitalize:null,autoComplete:j,autoFocus:D,autoPlay:D,blocking:j,capture:null,charSet:null,checked:D,cite:null,className:j,closedBy:null,colorSpace:null,cols:A,colSpan:A,command:null,commandFor:null,content:null,contentEditable:O,controls:D,controlsList:j,coords:A|M,crossOrigin:null,data:null,dateTime:null,decoding:null,default:D,defer:D,dir:null,dirName:null,disabled:D,download:k,draggable:O,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:D,formTarget:null,headers:j,height:A,hidden:k,high:A,href:null,hrefLang:null,htmlFor:j,httpEquiv:j,id:null,imageSizes:null,imageSrcSet:null,inert:D,inputMode:null,integrity:null,is:null,isMap:D,itemId:null,itemProp:j,itemRef:j,itemScope:D,itemType:j,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:D,low:A,manifest:null,max:null,maxLength:A,media:null,method:null,min:null,minLength:A,multiple:D,muted:D,name:null,nonce:null,noModule:D,noValidate:D,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:D,optimum:A,pattern:null,ping:j,placeholder:null,playsInline:D,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:D,referrerPolicy:null,rel:j,required:D,reversed:D,rows:A,rowSpan:A,sandbox:j,scope:null,scoped:D,seamless:D,selected:D,shadowRootClonable:D,shadowRootCustomElementRegistry:D,shadowRootDelegatesFocus:D,shadowRootMode:null,shadowRootSerializable:D,shape:null,size:A,sizes:null,slot:null,span:A,spellCheck:O,src:null,srcDoc:null,srcLang:null,srcSet:null,start:A,step:null,style:null,tabIndex:A,target:null,title:null,translate:null,type:null,typeMustMatch:D,useMap:null,value:O,width:A,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:j,axis:null,background:null,bgColor:null,border:A,borderColor:null,bottomMargin:A,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:D,declare:D,event:null,face:null,frame:null,frameBorder:null,hSpace:A,leftMargin:A,link:null,longDesc:null,lowSrc:null,marginHeight:A,marginWidth:A,noResize:D,noHref:D,noShade:D,noWrap:D,object:null,profile:null,prompt:null,rev:null,rightMargin:A,rules:null,scheme:null,scrolling:O,standby:null,summary:null,text:null,topMargin:A,valueType:null,version:null,vAlign:null,vLink:null,vSpace:A,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:D,disablePictureInPicture:D,disableRemotePlayback:D,exportParts:M,part:j,prefix:null,property:null,results:A,security:null,unselectable:null},space:`html`,transform:R}),_e=L({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:N,accentHeight:A,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:A,amplitude:A,arabicForm:null,ascent:A,attributeName:null,attributeType:null,azimuth:A,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:A,by:null,calcMode:null,capHeight:A,className:j,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:A,diffuseConstant:A,direction:null,display:null,dur:null,divisor:A,dominantBaseline:null,download:D,dx:null,dy:null,edgeMode:null,editable:null,elevation:A,enableBackground:null,end:null,event:null,exponent:A,externalResourcesRequired:null,fill:null,fillOpacity:A,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:M,g2:M,glyphName:M,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:A,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:A,horizOriginX:A,horizOriginY:A,id:null,ideographic:A,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:A,k:A,k1:A,k2:A,k3:A,k4:A,kernelMatrix:N,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:A,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:A,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:A,overlineThickness:A,paintOrder:null,panose1:null,path:null,pathLength:A,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:j,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:A,pointsAtY:A,pointsAtZ:A,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:N,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:N,rev:N,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:N,requiredFeatures:N,requiredFonts:N,requiredFormats:N,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:A,specularExponent:A,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:A,strikethroughThickness:A,string:null,stroke:null,strokeDashArray:N,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:A,strokeOpacity:A,strokeWidth:null,style:null,surfaceScale:A,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:N,tabIndex:A,tableValues:null,target:null,targetX:A,targetY:A,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:N,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:A,underlineThickness:A,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:A,values:null,vAlphabetic:A,vMathematical:A,vectorEffect:null,vHanging:A,vIdeographic:A,version:null,vertAdvY:A,vertOriginX:A,vertOriginY:A,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:A,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:he}),ve=L({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),z=L({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:R}),B=L({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),ye={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`},be=/[A-Z]/g,xe=/-[a-z]/g,Se=/^data[-\w.:]+$/i;function Ce(e,t){let n=w(t),r=t,i=T;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&Se.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(xe,Te);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!xe.test(e)){let n=e.replace(be,we);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=F}return new i(r,t)}function we(e){return`-`+e.toLowerCase()}function Te(e){return e.charAt(1).toUpperCase()}var Ee=de([me,ge,ve,z,B],`html`),De=de([me,_e,ve,z,B],`svg`);function Oe(e){return e.join(` `).trim()}var ke=t(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
|
|
2
|
+
`);u=~n?e.length-n:u+e.length}function p(){var e={line:l,column:u};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:l,column:u},this.source=t.source}m.prototype.content=e;function h(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){g(i)}function ee(e){var t;for(e||=[];t=te();)t!==!1&&e.push(t);return e}function te(){var t=p();if(e.charAt(0)==`/`&&e.charAt(1)==`*`){for(var n=2;e.charAt(n)!=``&&(e.charAt(n)!=`*`||e.charAt(n+1)!=`/`);)++n;if(n+=2,e.charAt(n-1)===``)return h(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,f(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function ne(){var e=p(),t=g(a);if(t){if(te(),!g(o))return h(`property missing ':'`);var r=g(s),i=e({type:`declaration`,property:d(t[0].replace(n,``)),value:r?d(r[0].replace(n,``)):``});return g(c),i}}function v(){var e=[];ee(e);for(var t;t=ne();)t!==!1&&(e.push(t),ee(e));return e}return _(),v()}function d(e){return e?e.replace(l,``):``}t.exports=u})),Ae=t(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var i=r(ke());function a(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=(0,i.default)(e),a=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:i}=e;a?t(r,i,e):i&&(n||={},n[r]=i)}),n}})),je=t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),Me=t(((e,t,n)=>{var r=(n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Ae()),i=je();function a(e,t){var n={};return!e||typeof e!=`string`||(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,t.exports=a})),Ne=Fe(`end`),Pe=Fe(`start`);function Fe(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function Ie(e){let t=Pe(e),n=Ne(e);if(t&&n)return{start:t,end:n}}function V(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Re(e.position):`start`in e||`end`in e?Re(e):`line`in e||`column`in e?Le(e):``}function Le(e){return ze(e&&e.line)+`:`+ze(e&&e.column)}function Re(e){return Le(e&&e.start)+`-`+Le(e&&e.end)}function ze(e){return e&&typeof e==`number`?e:1}var H=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=V(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};H.prototype.file=``,H.prototype.name=``,H.prototype.reason=``,H.prototype.message=``,H.prototype.stack=``,H.prototype.column=void 0,H.prototype.line=void 0,H.prototype.ancestors=void 0,H.prototype.cause=void 0,H.prototype.fatal=void 0,H.prototype.place=void 0,H.prototype.ruleId=void 0,H.prototype.source=void 0;var Be=r(Me(),1),Ve={}.hasOwnProperty,He=new Map,Ue=/[A-Z]/g,We=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Ge=new Set([`td`,`th`]),Ke=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function qe(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=it(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=rt(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?De:Ee,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Je(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Je(e,t,n){if(t.type===`element`)return Ye(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return Xe(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return Qe(e,t,n);if(t.type===`mdxjsEsm`)return Ze(e,t);if(t.type===`root`)return $e(e,t,n);if(t.type===`text`)return et(e,t)}function Ye(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=De,e.schema=i),e.ancestors.push(t);let a=ut(e,t.tagName,!1),o=at(e,t),s=st(e,t);return We.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!le(e)})),tt(e,o,a,t),nt(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Xe(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}U(e,t.position)}function Ze(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);U(e,t.position)}function Qe(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=De,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:ut(e,t.name,!0),o=ot(e,t),s=st(e,t);return tt(e,o,a,t),nt(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function $e(e,t,n){let r={};return nt(r,st(e,t)),e.create(t,e.Fragment,r,n)}function et(e,t){return t.value}function tt(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function nt(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function rt(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function it(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=Pe(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function at(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&Ve.call(t.properties,i)){let a=ct(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&Ge.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function ot(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else U(e,t.position)}else{let i=r.name,a;if(r.value&&typeof r.value==`object`){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else U(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function st(e,t){let n=[],r=-1,i=e.passKeys?new Map:He;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=Je(e,a,o);s!==void 0&&n.push(s)}return n}function ct(e,t,n){let r=Ce(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?ae(n):Oe(n)),r.property===`style`){let t=typeof n==`object`?n:lt(e,String(n));return e.stylePropertyNameCase===`css`&&(t=dt(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?ye[r.property]||r.property:r.attribute,n]}}function lt(e,t){try{return(0,Be.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new H("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=Ke+`#cannot-parse-style-attribute`,r}}function ut(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=se(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=se(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return Ve.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);U(e)}function U(e,t){let n=new H("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=Ke+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function dt(e){let t={},n;for(n in e)Ve.call(e,n)&&(t[ft(n)]=e[n]);return t}function ft(e){let t=e.replace(Ue,pt);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function pt(e){return`-`+e.toLowerCase()}var mt={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},ht={};function gt(e,t){let n=t||ht;return _t(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function _t(e,t,n){if(yt(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return vt(e.children,t,n)}return Array.isArray(e)?vt(e,t,n):``}function vt(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=_t(e[i],t,n);return r.join(``)}function yt(e){return!!(e&&typeof e==`object`)}var bt=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function xt(e){return e.replace(bt,St)}function St(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return ie(n.slice(t?2:1),t?16:10)}return g(n)||e}var Ct={}.hasOwnProperty;function wt(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),Tt(n)(m(te(n).document().write(_()(e,t,!0))))}function Tt(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(z),autolinkProtocol:x,autolinkEmail:x,atxHeading:a(R),blockQuote:a(F),characterEscape:x,characterReference:x,codeFenced:a(I),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(I,o),codeText:a(L,o),codeTextData:x,data:x,codeFlowValue:x,definition:a(me),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(he),hardBreakEscape:a(ge),hardBreakTrailing:a(ge),htmlFlow:a(_e,o),htmlFlowData:x,htmlText:a(_e,o),htmlTextData:x,image:a(ve),label:o,link:a(z),listItem:a(ye),listItemValue:f,listOrdered:a(B,d),listUnordered:a(B),paragraph:a(be),reference:k,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(R),strong:a(xe),thematicBreak:a(Ce)},exit:{atxHeading:c(),atxHeadingSequence:re,autolink:c(),autolinkEmail:pe,autolinkProtocol:P,blockQuote:c(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:j,characterReferenceMarkerNumeric:j,characterReferenceValue:M,characterReference:N,codeFenced:c(_),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:S,codeIndented:c(ee),codeText:c(C),codeTextData:S,data:S,definition:c(),definitionDestinationString:v,definitionLabelString:te,definitionTitleString:ne,emphasis:c(),hardBreakEscape:c(ce),hardBreakTrailing:c(ce),htmlFlow:c(le),htmlFlowData:S,htmlText:c(ue),htmlTextData:S,image:c(w),label:E,labelText:T,lineEnding:se,link:c(de),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:A,resourceDestinationString:fe,resourceTitleString:D,resource:O,setextHeading:c(oe),setextHeadingLineSequence:ae,setextHeadingText:b,strong:c(),thematicBreak:c()}};Et(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];Ct.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||Ot).call(a,void 0,e[0])}for(r.position={start:W(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:W(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:W(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Ot).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+V({start:e.start,end:e.end})+`): it’s not open`);n.position.end=W(e.end)}function u(){return gt(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function ee(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function te(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=y(this.sliceSerialize(e)).toLowerCase()}function ne(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function v(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function re(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function b(){this.data.setextHeadingSlurpLineEnding=!0}function ae(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function oe(){this.data.setextHeadingSlurpLineEnding=void 0}function x(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&n.type===`text`||(n=Se(),n.position={start:W(e.start),end:void 0},t.push(n)),this.stack.push(n)}function S(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=W(e.end)}function se(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=W(e.end),this.data.atHardBreak=void 0}else!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(x.call(this,e),S.call(this,e))}function ce(){this.data.atHardBreak=!0}function le(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ue(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function C(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function de(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function w(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function T(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=xt(t),n.identifier=y(t).toLowerCase()}function E(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function fe(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function D(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function O(){this.data.inReference=void 0}function k(){this.data.referenceType=`collapsed`}function A(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=y(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function j(e){this.data.characterReferenceType=e.type}function M(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=ie(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=g(t);let i=this.stack[this.stack.length-1];i.value+=r}function N(e){let t=this.stack.pop();t.position.end=W(e.end)}function P(e){S.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function pe(e){S.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function F(){return{type:`blockquote`,children:[]}}function I(){return{type:`code`,lang:null,meta:null,value:``}}function L(){return{type:`inlineCode`,value:``}}function me(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function he(){return{type:`emphasis`,children:[]}}function R(){return{type:`heading`,depth:0,children:[]}}function ge(){return{type:`break`}}function _e(){return{type:`html`,value:``}}function ve(){return{type:`image`,title:null,url:``,alt:null}}function z(){return{type:`link`,title:null,url:``,children:[]}}function B(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function ye(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function be(){return{type:`paragraph`,children:[]}}function xe(){return{type:`strong`,children:[]}}function Se(){return{type:`text`,value:``}}function Ce(){return{type:`thematicBreak`}}}function W(e){return{line:e.line,column:e.column,offset:e.offset}}function Et(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?Et(e,r):Dt(e,r)}}function Dt(e,t){let n;for(n in t)if(Ct.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function Ot(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+V({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+V({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+V({start:t.start,end:t.end})+`) is still open`)}function kt(e){let t=this;t.parser=n;function n(n){return wt(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function At(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function jt(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
3
3
|
`}]}function Mt(e,t){let n=t.value?t.value+`
|
|
4
4
|
`:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function Nt(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Pt(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ft(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=b(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function It(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Lt(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Rt(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function zt(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Rt(e,t);let i={src:b(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Bt(e,t){let n={src:b(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Vt(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Ht(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Rt(e,t);let i={href:b(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Ut(e,t){let n={href:b(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Wt(e,t,n){let r=e.all(t),i=n?Gt(n):Kt(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
5
5
|
`}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
@@ -9,7 +9,7 @@ import{G as e,Gn as t,Jt as n,Kn as r,Un as i,Wn as a,c as o,lt as s,qn as c}fro
|
|
|
9
9
|
`});++r<e.length;)r&&n.push({type:`text`,value:`
|
|
10
10
|
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
|
|
11
11
|
`}),n}function Bn(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Vn(e,t){let n=Fn(e,t),r=n.one(e,void 0),i=bn(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
|
|
12
|
-
`},i)),a}function Hn(e,t){return e&&`run`in e?async function(n,r){let i=Vn(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Vn(n,{file:r,...e||t})}}function Un(e){if(e)throw e}var Wn=c(t(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}))(),1);function Gn(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Kn(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a)r(a);else{for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?qn(s,i)(...o):r(null,...o)}}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function qn(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var X={basename:Jn,dirname:Yn,extname:Xn,join:Zn,sep:`/`};function Jn(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);Z(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Yn(e){if(Z(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function Xn(e){Z(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}}else n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function Zn(...e){let t=-1,n;for(;++t<e.length;)Z(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:Qn(n)}function Qn(e){Z(e);let t=e.codePointAt(0)===47,n=$n(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function $n(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(i!==o-1&&a!==1){if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1}i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function Z(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var er={cwd:tr};function tr(){return`/`}function nr(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function rr(e){if(typeof e==`string`)e=new URL(e);else if(!nr(e)){let t=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(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return ir(e)}function ir(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var ar=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],or=class{constructor(e){let t;t=e?nr(e)?{path:e}:typeof e==`string`||ur(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:er.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<ar.length;){let e=ar[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)ar.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?X.basename(this.path):void 0}set basename(e){cr(e,`basename`),sr(e,`basename`),this.path=X.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?X.dirname(this.path):void 0}set dirname(e){lr(this.basename,`dirname`),this.path=X.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?X.extname(this.path):void 0}set extname(e){if(sr(e,`extname`),lr(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=X.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){nr(e)&&(e=rr(e)),cr(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?X.basename(this.path,this.extname):void 0}set stem(e){cr(e,`stem`),sr(e,`stem`),this.path=X.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new H(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function sr(e,t){if(e&&e.includes(X.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+X.sep+"`")}function cr(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function lr(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function ur(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var dr=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),fr={}.hasOwnProperty,pr=new class e extends dr{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Kn()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,Wn.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(gr(`data`,this.frozen),this.namespace[e]=t,this):fr.call(this.namespace,e)&&this.namespace[e]||void 0:e?(gr(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=yr(e),n=this.parser||this.Parser;return mr(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),mr(`process`,this.parser||this.Parser),hr(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=yr(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);xr(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),mr(`processSync`,this.parser||this.Parser),hr(`processSync`,this.compiler||this.Compiler),this.process(e,r),vr(`processSync`,`process`,t),n;function r(e,r){t=!0,Un(e),n=r}}run(e,t,n){_r(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=yr(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),vr(`runSync`,`run`,n),r;function i(e,t){Un(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=yr(t),r=this.compiler||this.Compiler;return hr(`stringify`,r),_r(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(gr(`use`,this.frozen),e!=null){if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`")}return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`){if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e)}else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,Wn.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null){if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];Gn(o)&&Gn(r)&&(r=(0,Wn.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function mr(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function hr(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function gr(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function _r(e){if(!Gn(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function vr(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function yr(e){return br(e)?e:new or(e)}function br(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function xr(e){return typeof e==`string`||Sr(e)}function Sr(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var Q=i(),$=c(a(),1),Cr=[],wr={allowDangerousHtml:!0},Tr=/^(https?|ircs?|mailto|xmpp)$/i,Er=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function Dr(e){let t=Or(e),n=kr(e);return Ar(t.runSync(t.parse(n),n),e)}function Or(e){let t=e.rehypePlugins||Cr,n=e.remarkPlugins||Cr,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...wr}:wr;return pr().use(kt).use(n).use(Hn,r).use(t)}function kr(e){let t=e.children||``,n=new or;return typeof t==`string`?n.value=t:``+t,n}function Ar(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||jr;for(let e of Er)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return Mn(e,l),qe(e,{Fragment:Q.Fragment,components:i,ignoreInvalidStyle:!0,jsx:Q.jsx,jsxs:Q.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in mt)if(Object.hasOwn(mt,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=mt[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function jr(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Tr.test(e.slice(0,t))?e:``}function Mr(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Nr(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function Pr(e,t,n){let r=xn((n||{}).ignore||[]),i=Fr(t),a=-1;for(;++a<i.length;)An(e,`text`,o);function o(e,t){let n=-1,i;for(;++n<t.length;){let e=t[n],a=i?i.children:void 0;if(r(e,a?a.indexOf(e):void 0,i))return;i=e}if(i)return s(e,t)}function s(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,c=n.children.indexOf(e),l=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if(typeof a==`string`&&(a=a.length>0?{type:`text`,value:a}:void 0),a===!1?r.lastIndex=n+1:(s!==n&&u.push({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,l=!0),!r.global)break;d=r.exec(e.value)}return l?(s<e.value.length&&u.push({type:`text`,value:e.value.slice(s)}),n.children.splice(c,1,...u)):u=[e],c+u.length}}function Fr(e){let t=[];if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([Ir(e[0]),Lr(e[1])])}return t}function Ir(e){return typeof e==`string`?new RegExp(Nr(e),`g`):e}function Lr(e){return typeof e==`function`?e:function(){return e}}var Rr=`phrasing`,zr=[`autolink`,`link`,`image`,`label`];function Br(){return{transforms:[Jr],enter:{literalAutolink:Hr,literalAutolinkEmail:Ur,literalAutolinkHttp:Ur,literalAutolinkWww:Ur},exit:{literalAutolink:qr,literalAutolinkEmail:Kr,literalAutolinkHttp:Wr,literalAutolinkWww:Gr}}}function Vr(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:Rr,notInConstruct:zr},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:Rr,notInConstruct:zr},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:Rr,notInConstruct:zr}]}}function Hr(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function Ur(e){this.config.enter.autolinkProtocol.call(this,e)}function Wr(e){this.config.exit.autolinkProtocol.call(this,e)}function Gr(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function Kr(e){this.config.exit.autolinkEmail.call(this,e)}function qr(e){this.exit(e)}function Jr(e){Pr(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Yr],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Xr]],{ignore:[`link`,`linkReference`]})}function Yr(e,t,n,r,i){let a=``;if(!$r(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!Zr(n)))return!1;let o=Qr(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function Xr(e,t,n,r){return!$r(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function Zr(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Qr(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=Mr(e,`(`),a=Mr(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function $r(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||ee(n)||h(n))&&(!t||n!==47)}li.peek=ci;function ei(){this.buffer()}function ti(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function ni(){this.buffer()}function ri(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function ii(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=y(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ai(e){this.exit(e)}function oi(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=y(this.sliceSerialize(e)).toLowerCase(),n.label=t}function si(e){this.exit(e)}function ci(){return`[`}function li(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function ui(){return{enter:{gfmFootnoteCallString:ei,gfmFootnoteCall:ti,gfmFootnoteDefinitionLabelString:ni,gfmFootnoteDefinition:ri},exit:{gfmFootnoteCallString:ii,gfmFootnoteCall:ai,gfmFootnoteDefinitionLabelString:oi,gfmFootnoteDefinition:si}}}function di(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:li},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
|
|
12
|
+
`},i)),a}function Hn(e,t){return e&&`run`in e?async function(n,r){let i=Vn(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Vn(n,{file:r,...e||t})}}function Un(e){if(e)throw e}var Wn=r(t(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}))(),1);function Gn(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Kn(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a)r(a);else{for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?qn(s,i)(...o):r(null,...o)}}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function qn(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var X={basename:Jn,dirname:Yn,extname:Xn,join:Zn,sep:`/`};function Jn(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);Z(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Yn(e){if(Z(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function Xn(e){Z(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}}else n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function Zn(...e){let t=-1,n;for(;++t<e.length;)Z(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:Qn(n)}function Qn(e){Z(e);let t=e.codePointAt(0)===47,n=$n(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function $n(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(i!==o-1&&a!==1){if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1}i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function Z(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var er={cwd:tr};function tr(){return`/`}function nr(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function rr(e){if(typeof e==`string`)e=new URL(e);else if(!nr(e)){let t=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(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return ir(e)}function ir(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var ar=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],or=class{constructor(e){let t;t=e?nr(e)?{path:e}:typeof e==`string`||ur(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:er.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<ar.length;){let e=ar[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)ar.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?X.basename(this.path):void 0}set basename(e){cr(e,`basename`),sr(e,`basename`),this.path=X.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?X.dirname(this.path):void 0}set dirname(e){lr(this.basename,`dirname`),this.path=X.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?X.extname(this.path):void 0}set extname(e){if(sr(e,`extname`),lr(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=X.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){nr(e)&&(e=rr(e)),cr(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?X.basename(this.path,this.extname):void 0}set stem(e){cr(e,`stem`),sr(e,`stem`),this.path=X.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new H(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function sr(e,t){if(e&&e.includes(X.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+X.sep+"`")}function cr(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function lr(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function ur(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var dr=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),fr={}.hasOwnProperty,pr=new class e extends dr{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Kn()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,Wn.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(gr(`data`,this.frozen),this.namespace[e]=t,this):fr.call(this.namespace,e)&&this.namespace[e]||void 0:e?(gr(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=yr(e),n=this.parser||this.Parser;return mr(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),mr(`process`,this.parser||this.Parser),hr(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=yr(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);xr(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),mr(`processSync`,this.parser||this.Parser),hr(`processSync`,this.compiler||this.Compiler),this.process(e,r),vr(`processSync`,`process`,t),n;function r(e,r){t=!0,Un(e),n=r}}run(e,t,n){_r(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=yr(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),vr(`runSync`,`run`,n),r;function i(e,t){Un(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=yr(t),r=this.compiler||this.Compiler;return hr(`stringify`,r),_r(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(gr(`use`,this.frozen),e!=null){if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`")}return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`){if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e)}else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,Wn.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null){if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];Gn(o)&&Gn(r)&&(r=(0,Wn.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function mr(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function hr(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function gr(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function _r(e){if(!Gn(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function vr(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function yr(e){return br(e)?e:new or(e)}function br(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function xr(e){return typeof e==`string`||Sr(e)}function Sr(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var Q=n(),$=r(c(),1),Cr=[],wr={allowDangerousHtml:!0},Tr=/^(https?|ircs?|mailto|xmpp)$/i,Er=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function Dr(e){let t=Or(e),n=kr(e);return Ar(t.runSync(t.parse(n),n),e)}function Or(e){let t=e.rehypePlugins||Cr,n=e.remarkPlugins||Cr,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...wr}:wr;return pr().use(kt).use(n).use(Hn,r).use(t)}function kr(e){let t=e.children||``,n=new or;return typeof t==`string`?n.value=t:``+t,n}function Ar(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||jr;for(let e of Er)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return Mn(e,l),qe(e,{Fragment:Q.Fragment,components:i,ignoreInvalidStyle:!0,jsx:Q.jsx,jsxs:Q.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in mt)if(Object.hasOwn(mt,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=mt[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function jr(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Tr.test(e.slice(0,t))?e:``}function Mr(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Nr(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function Pr(e,t,n){let r=xn((n||{}).ignore||[]),i=Fr(t),a=-1;for(;++a<i.length;)An(e,`text`,o);function o(e,t){let n=-1,i;for(;++n<t.length;){let e=t[n],a=i?i.children:void 0;if(r(e,a?a.indexOf(e):void 0,i))return;i=e}if(i)return s(e,t)}function s(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,c=n.children.indexOf(e),l=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if(typeof a==`string`&&(a=a.length>0?{type:`text`,value:a}:void 0),a===!1?r.lastIndex=n+1:(s!==n&&u.push({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,l=!0),!r.global)break;d=r.exec(e.value)}return l?(s<e.value.length&&u.push({type:`text`,value:e.value.slice(s)}),n.children.splice(c,1,...u)):u=[e],c+u.length}}function Fr(e){let t=[];if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([Ir(e[0]),Lr(e[1])])}return t}function Ir(e){return typeof e==`string`?new RegExp(Nr(e),`g`):e}function Lr(e){return typeof e==`function`?e:function(){return e}}var Rr=`phrasing`,zr=[`autolink`,`link`,`image`,`label`];function Br(){return{transforms:[Jr],enter:{literalAutolink:Hr,literalAutolinkEmail:Ur,literalAutolinkHttp:Ur,literalAutolinkWww:Ur},exit:{literalAutolink:qr,literalAutolinkEmail:Kr,literalAutolinkHttp:Wr,literalAutolinkWww:Gr}}}function Vr(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:Rr,notInConstruct:zr},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:Rr,notInConstruct:zr},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:Rr,notInConstruct:zr}]}}function Hr(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function Ur(e){this.config.enter.autolinkProtocol.call(this,e)}function Wr(e){this.config.exit.autolinkProtocol.call(this,e)}function Gr(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function Kr(e){this.config.exit.autolinkEmail.call(this,e)}function qr(e){this.exit(e)}function Jr(e){Pr(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Yr],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Xr]],{ignore:[`link`,`linkReference`]})}function Yr(e,t,n,r,i){let a=``;if(!$r(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!Zr(n)))return!1;let o=Qr(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function Xr(e,t,n,r){return!$r(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function Zr(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Qr(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=Mr(e,`(`),a=Mr(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function $r(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||ee(n)||h(n))&&(!t||n!==47)}li.peek=ci;function ei(){this.buffer()}function ti(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function ni(){this.buffer()}function ri(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function ii(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=y(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ai(e){this.exit(e)}function oi(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=y(this.sliceSerialize(e)).toLowerCase(),n.label=t}function si(e){this.exit(e)}function ci(){return`[`}function li(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function ui(){return{enter:{gfmFootnoteCallString:ei,gfmFootnoteCall:ti,gfmFootnoteDefinitionLabelString:ni,gfmFootnoteDefinition:ri},exit:{gfmFootnoteCallString:ii,gfmFootnoteCall:ai,gfmFootnoteDefinitionLabelString:oi,gfmFootnoteDefinition:si}}}function di(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:li},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
|
|
13
13
|
`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?pi:fi))),s(),o}}function fi(e,t,n){return t===0?e:pi(e,t,n)}function pi(e,t,n){return(n?``:` `)+e}var mi=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];yi.attention=bi,yi.peek=xi;function hi(){return{canContainEols:[`delete`],enter:{strikethrough:_i},exit:{strikethrough:vi}}}function gi(){return{handlers:{delete:yi},unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:mi}]}}function _i(e){this.enter({type:`delete`,children:[],position:void 0},e)}function vi(e){this.exit(e)}function yi(e,t,n,r){let i=n.createTracker(r),a=n.stack.includes(`strikethrough`)?`~`:`~~`,o=n.enter(`strikethrough`),s=i.move(a);return s+=n.containerPhrasing(e,{...i.current(),before:s,after:`~`}),s+=i.move(a),o(),s}function bi(){return{construct:`strikethrough`,markers:[`~`],sizes:[2,1]}}function xi(){return`~`}function Si(e){return e.length}function Ci(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Si,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=wi(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=Ti(r[d]);else{let e=Ti(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding===!1||n.alignDelimiters===!1&&i===``||n.delimiterStart===!1&&!d||r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(`
|
|
14
14
|
`)}function wi(e){return e==null?``:String(e)}function Ti(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}var Ei=xn([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function Di(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),Oi);return i(),o}function Oi(e,t,n){return`>`+(n?``:` `)+e}function ki(e,t){return Ai(e,t.inConstruct,!0)&&!Ai(e,t.notInConstruct,!1)}function Ai(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function ji(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;){let e=n.unsafe[i];if(e.character===`
|
|
15
15
|
`&&!e.before&&!e.after&&ki(n.stack,e))return/[\t ]/.test(r.before)?``:` `}return`\\
|
|
@@ -27,4 +27,4 @@ import{G as e,Gn as t,Jt as n,Kn as r,Un as i,Wn as a,c as o,lt as s,qn as c}fro
|
|
|
27
27
|
`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return Ci(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=xa.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function ja(){return{exit:{taskListCheckValueChecked:Na,taskListCheckValueUnchecked:Na,paragraph:Pa}}}function Ma(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:Fa}}}function Na(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function Pa(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Fa(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=xa.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function Ia(){return[Br(),ui(),hi(),Sa(),ja()]}function La(e){return{extensions:[Vr(),di(e),gi(),Aa(e),Ma()]}}var Ra={};function za(e){let t=this,n=e||Ra,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(ne(n)),a.push(Ia()),o.push(La(n))}var Ba={kind:`local`},Va=/(?:^|\/)worktrees\/[^/]+\/\.tasks\/([0-9A-HJKMNP-TV-Z]{26})(?:\/(.*))?$/,Ha=/^[a-z][a-z0-9+.-]*:/i,Ua=/:(\d+)(?::\d+)?$/,Wa=/#L(\d+)/,Ga=/^[^/?#:]*\.[^/?#:]*:\d+(?::\d+)?(?:[?#].*)?$/;function Ka(e){return Ga.test(e)}function qa(e){let t=Ua.exec(e),n=Number(t?.[1]);return t===null||!(n>0)?{path:e}:{path:e.slice(0,t.index),line:n}}function Ja(e){let t=[];for(let n of e.split(`/`))if(n!==``&&n!==`.`){if(n===`..`){if(t.pop()===void 0)return null}else t.push(n)}return t.join(`/`)}function Ya(e){let t=e.lastIndexOf(`/`);return t===-1?``:e.slice(0,t)}function Xa(e){try{return decodeURIComponent(e)}catch{return e}}function Za(e,t){if(e===void 0||e===``)return Ba;let n=s(e);if(n!==null)return{kind:`upload`,id:n};if(e.startsWith(`#`)||e.startsWith(`//`)||Ha.test(e)&&!Ka(e))return null;let r=qa(Xa(e.replace(/[?#].*$/,``))),i=r.path,a=Number(Wa.exec(e)?.[1]),o=r.line??(a>0?a:void 0),c=o===void 0?{}:{line:o},l=Va.exec(i);if(l?.[1]!==void 0){let e=Ja(l[2]??``);return e===null?Ba:{kind:`file`,source:{kind:`task`,taskId:l[1]},path:e,...c}}if(t!==void 0&&!i.startsWith(`/`)){let e=Ja(`${t.dir}/${i}`);return e===null?Ba:{kind:`file`,source:t.source,path:e,...c}}return Ba}var Qa={png:`image/png`,jpg:`image/jpeg`,jpeg:`image/jpeg`,gif:`image/gif`,webp:`image/webp`,avif:`image/avif`,bmp:`image/bmp`,ico:`image/x-icon`,svg:`image/svg+xml`};function $a(e){let t=e.slice(e.lastIndexOf(`/`)+1),n=t.lastIndexOf(`.`);return n<=0?``:t.slice(n+1).toLowerCase()}function eo(e){return Qa[$a(e)]??null}function to(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e+=1)n[e]=t.charCodeAt(e);return n}function no(e){try{let t=new TextDecoder(`utf-8`,{fatal:!0}).decode(e);return t.includes(`\0`)?null:t}catch{return null}}function ro(e,t){let n=[],r=[],i=``,a=!1;for(let o=0;o<e.length;o+=1){let s=e.charAt(o);a?s===`"`?e.charAt(o+1)===`"`?(i+=`"`,o+=1):a=!1:i+=s:s===`"`&&i===``?a=!0:s===t?(r.push(i),i=``):s===`
|
|
28
28
|
`||s===`\r`?(s===`\r`&&e.charAt(o+1)===`
|
|
29
29
|
`&&(o+=1),r.push(i),n.push(r),r=[],i=``):i+=s}return(i!==``||r.length>0)&&(r.push(i),n.push(r)),n}function io(e,t){let n=eo(e);if(n!==null)return{kind:`image`,type:n};let r=no(t);if(r===null)return{kind:`binary`};let i=$a(e);return i===`md`||i===`markdown`?{kind:`markdown`,text:r}:i===`csv`||i===`tsv`?{kind:`table`,rows:ro(r,i===`csv`?`,`:` `)}:{kind:`text`,text:r}}var ao=new Set([`p`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`li`,`pre`,`blockquote`,`table`,`tr`,`hr`]);function oo(e){return t=>{let n=[],r=e=>{e.tagName!==void 0&&ao.has(e.tagName)&&e.position&&n.push({node:e,start:e.position.start.line,end:e.position.end.line});for(let t of e.children??[])r(t)};r(t);let{line:i}=e,a=n.filter(e=>e.start<=i&&i<=e.end).at(-1)??n.find(e=>e.start>i);if(a!==void 0){let e=a.node.properties?.className;a.node.properties={...a.node.properties,className:[...Array.isArray(e)?e:[],`line-target`]}}}}function so(e){if(e.status===`deleted`)return`deleted`;let t=e.added===null||e.removed===null?`binary`:e.status===`added`?`+${e.added}`:`+${e.added} −${e.removed}`;return e.status===`added`?`new · ${t}`:t}function co(e){if(e===``)return[];let t=0;return e.split(`
|
|
30
|
-
`).map(e=>{let n=/^@@ -\d+(?:,\d+)? \+(\d+)(?:,\d+)? @@/.exec(e);return n===null?e.startsWith(`-`)?{kind:`removed`,text:e}:e.startsWith(`\\`)?{kind:`note`,text:e}:(t+=1,{kind:e.startsWith(`+`)?`added`:`context`,text:e,line:t-1}):(t=Number(n[1]),{kind:`hunk`,text:e})})}function lo(e){let t=[...[...e.folders.values()].map(lo).toSorted((e,t)=>e.name.localeCompare(t.name)),...e.files.toSorted((e,t)=>e.name.localeCompare(t.name))],{name:n,path:r}=e,[i]=t;e.path!==``&&t.length===1&&i?.kind===`dir`&&(n=`${n}/${i.name}`,r=i.path,t=[...i.children]);let a=0,o;for(let e of t){a+=e.kind===`dir`?e.files:1;let t=e.kind===`dir`?e.lastChange:e.change.lastChange;t!==void 0&&(o===void 0||t.at>o.at)&&(o=t)}return{kind:`dir`,name:n,path:r,children:t,files:a,...o===void 0?{}:{lastChange:o}}}function uo(e){let t={name:``,path:``,folders:new Map,files:[]};for(let n of e){let e=n.path.split(`/`),r=t;for(let t of e.slice(0,-1)){let e=r.folders.get(t);e===void 0&&(e={name:t,path:r.path===``?t:`${r.path}/${t}`,folders:new Map,files:[]},r.folders.set(t,e)),r=e}r.files.push({kind:`file`,name:e.at(-1)??n.path,change:n})}return lo(t)}function fo(e,t=24){let n=new Set,r=e.children.length,i=e.children.filter(e=>e.kind===`dir`);for(let e=i.shift();e!==void 0;e=i.shift())r+e.children.length>t||(n.add(e.path),r+=e.children.length,i.push(...e.children.filter(e=>e.kind===`dir`)));return n}function po(e){return e.toSorted((e,t)=>e.kind===t.kind?e.name.localeCompare(t.name):e.kind===`dir`?-1:1)}function mo(e){return`${e?.runner===void 0?`The runner`:`${e.runner}, the runner`} ${e?.name??`the project`} lives on`}function ho(e){if(e<1024)return`${e} B`;let t=e/1024;return t<1024?`${t.toFixed(1)} KB`:`${(t/1024).toFixed(1)} MB`}var go=new Set([`code`,`inlineCode`,`link`,`linkReference`,`html`]);function _o(e){let t=[],n=0;for(let r of e.matchAll(re)){let i=(r.index??0)+(r[1]?.length??0);i>n&&t.push({type:`text`,value:e.slice(n,i)});let a=r[2]??``;t.push({type:`mention`,data:{hName:`span`,hProperties:{className:[`mention`]},hChildren:[{type:`text`,value:`@${a}`}]}}),n=i+a.length+1}return n<e.length&&t.push({type:`text`,value:e.slice(n)}),t}function vo(e){e.children!==void 0&&(e.children=e.children.flatMap(e=>e.type===`text`&&e.value!==void 0?_o(e.value):(go.has(e.type)||vo(e),[e])))}function yo(){return e=>vo(e)}var bo=d(),xo=`max-h-[32rem] max-w-full rounded-lg`,So=(0,$.createContext)(!1);function Co({src:e,alt:t}){let n=(0,$.useContext)(So),[r,i]=(0,$.useState)(!1),[a,o]=(0,$.useState)(null),s=(0,$.useRef)(null),c=(0,$.useCallback)(()=>{(0,bo.flushSync)(()=>i(!1)),s.current?.focus({preventScroll:!0})},[]);return n||a===e?(0,Q.jsx)(`img`,{src:e,alt:t,className:xo}):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`button`,{ref:s,type:`button`,"aria-label":`Enlarge ${t===``?`the image`:t}`,"aria-haspopup":`dialog`,onClick:()=>i(!0),className:`group pointer-events-none block w-full rounded-lg focus-visible:outline-none`,children:(0,Q.jsx)(`img`,{src:e,alt:t,onError:()=>o(e),className:`pointer-events-auto block cursor-zoom-in ${xo} group-focus-visible:ring-2 group-focus-visible:ring-fg-primary/30`})}),r?(0,bo.createPortal)((0,Q.jsx)(wo,{src:e,alt:t,onClose:c}),document.body):null]})}function wo({src:e,alt:t,onClose:n}){let r=(0,$.useRef)(null);return(0,$.useLayoutEffect)(()=>{r.current?.open===!1&&r.current.showModal()},[]),(0,Q.jsx)(`dialog`,{ref:r,"aria-label":t===``?`The image`:t,onCancel:n,className:`m-0 size-full max-h-none max-w-none cursor-zoom-out border-0 bg-transparent p-0 text-fg-primary backdrop:bg-black/85`,children:(0,Q.jsxs)(`div`,{role:`presentation`,onClick:n,className:`grid size-full grid-rows-[auto_minmax(0,1fr)] gap-2 p-4`,children:[(0,Q.jsxs)(`header`,{className:`flex min-w-0 items-center justify-between gap-3`,children:[(0,Q.jsx)(`span`,{className:`truncate text-sm text-fg-secondary`,children:t}),(0,Q.jsx)(`button`,{type:`button`,"aria-label":`Close`,className:`grid size-7 shrink-0 place-items-center rounded-lg text-fg-secondary hover:bg-surface-2/70 hover:text-fg-primary focus-visible:ring-2 focus-visible:ring-fg-primary/30 focus-visible:outline-none`,children:`✕`})]}),(0,Q.jsx)(`div`,{className:`flex min-h-0 items-center justify-center`,children:(0,Q.jsx)(`img`,{src:e,alt:t,className:`max-h-full max-w-full rounded-lg ring-1 ring-white/10`})})]})})}var To=`text-fg-primary underline decoration-fg-muted underline-offset-2 hover:decoration-fg-primary`,Eo=(0,$.createContext)(void 0);function Do(e,t){return(0,$.useMemo)(()=>e==null?null:`data:${t};base64,${e}`,[e,t])}function Oo({source:e,path:t,line:
|
|
30
|
+
`).map(e=>{let n=/^@@ -\d+(?:,\d+)? \+(\d+)(?:,\d+)? @@/.exec(e);return n===null?e.startsWith(`-`)?{kind:`removed`,text:e}:e.startsWith(`\\`)?{kind:`note`,text:e}:(t+=1,{kind:e.startsWith(`+`)?`added`:`context`,text:e,line:t-1}):(t=Number(n[1]),{kind:`hunk`,text:e})})}function lo(e){let t=[...[...e.folders.values()].map(lo).toSorted((e,t)=>e.name.localeCompare(t.name)),...e.files.toSorted((e,t)=>e.name.localeCompare(t.name))],{name:n,path:r}=e,[i]=t;e.path!==``&&t.length===1&&i?.kind===`dir`&&(n=`${n}/${i.name}`,r=i.path,t=[...i.children]);let a=0,o;for(let e of t){a+=e.kind===`dir`?e.files:1;let t=e.kind===`dir`?e.lastChange:e.change.lastChange;t!==void 0&&(o===void 0||t.at>o.at)&&(o=t)}return{kind:`dir`,name:n,path:r,children:t,files:a,...o===void 0?{}:{lastChange:o}}}function uo(e){let t={name:``,path:``,folders:new Map,files:[]};for(let n of e){let e=n.path.split(`/`),r=t;for(let t of e.slice(0,-1)){let e=r.folders.get(t);e===void 0&&(e={name:t,path:r.path===``?t:`${r.path}/${t}`,folders:new Map,files:[]},r.folders.set(t,e)),r=e}r.files.push({kind:`file`,name:e.at(-1)??n.path,change:n})}return lo(t)}function fo(e,t=24){let n=new Set,r=e.children.length,i=e.children.filter(e=>e.kind===`dir`);for(let e=i.shift();e!==void 0;e=i.shift())r+e.children.length>t||(n.add(e.path),r+=e.children.length,i.push(...e.children.filter(e=>e.kind===`dir`)));return n}function po(e){return e.toSorted((e,t)=>e.kind===t.kind?e.name.localeCompare(t.name):e.kind===`dir`?-1:1)}function mo(e){return`${e?.runner===void 0?`The runner`:`${e.runner}, the runner`} ${e?.name??`the project`} lives on`}function ho(e){if(e<1024)return`${e} B`;let t=e/1024;return t<1024?`${t.toFixed(1)} KB`:`${(t/1024).toFixed(1)} MB`}var go=new Set([`code`,`inlineCode`,`link`,`linkReference`,`html`]);function _o(e){let t=[],n=0;for(let r of e.matchAll(re)){let i=(r.index??0)+(r[1]?.length??0);i>n&&t.push({type:`text`,value:e.slice(n,i)});let a=r[2]??``;t.push({type:`mention`,data:{hName:`span`,hProperties:{className:[`mention`]},hChildren:[{type:`text`,value:`@${a}`}]}}),n=i+a.length+1}return n<e.length&&t.push({type:`text`,value:e.slice(n)}),t}function vo(e){e.children!==void 0&&(e.children=e.children.flatMap(e=>e.type===`text`&&e.value!==void 0?_o(e.value):(go.has(e.type)||vo(e),[e])))}function yo(){return e=>vo(e)}var bo=d(),xo=`max-h-[32rem] max-w-full rounded-lg`,So=(0,$.createContext)(!1);function Co({src:e,alt:t}){let n=(0,$.useContext)(So),[r,i]=(0,$.useState)(!1),[a,o]=(0,$.useState)(null),s=(0,$.useRef)(null),c=(0,$.useCallback)(()=>{(0,bo.flushSync)(()=>i(!1)),s.current?.focus({preventScroll:!0})},[]);return n||a===e?(0,Q.jsx)(`img`,{src:e,alt:t,className:xo}):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`button`,{ref:s,type:`button`,"aria-label":`Enlarge ${t===``?`the image`:t}`,"aria-haspopup":`dialog`,onClick:()=>i(!0),className:`group pointer-events-none block w-full rounded-lg focus-visible:outline-none`,children:(0,Q.jsx)(`img`,{src:e,alt:t,onError:()=>o(e),className:`pointer-events-auto block cursor-zoom-in ${xo} group-focus-visible:ring-2 group-focus-visible:ring-fg-primary/30`})}),r?(0,bo.createPortal)((0,Q.jsx)(wo,{src:e,alt:t,onClose:c}),document.body):null]})}function wo({src:e,alt:t,onClose:n}){let r=(0,$.useRef)(null);return(0,$.useLayoutEffect)(()=>{r.current?.open===!1&&r.current.showModal()},[]),(0,Q.jsx)(`dialog`,{ref:r,"aria-label":t===``?`The image`:t,onCancel:n,className:`m-0 size-full max-h-none max-w-none cursor-zoom-out border-0 bg-transparent p-0 text-fg-primary backdrop:bg-black/85`,children:(0,Q.jsxs)(`div`,{role:`presentation`,onClick:n,className:`grid size-full grid-rows-[auto_minmax(0,1fr)] gap-2 p-4`,children:[(0,Q.jsxs)(`header`,{className:`flex min-w-0 items-center justify-between gap-3`,children:[(0,Q.jsx)(`span`,{className:`truncate text-sm text-fg-secondary`,children:t}),(0,Q.jsx)(`button`,{type:`button`,"aria-label":`Close`,className:`grid size-7 shrink-0 place-items-center rounded-lg text-fg-secondary hover:bg-surface-2/70 hover:text-fg-primary focus-visible:ring-2 focus-visible:ring-fg-primary/30 focus-visible:outline-none`,children:`✕`})]}),(0,Q.jsx)(`div`,{className:`flex min-h-0 items-center justify-center`,children:(0,Q.jsx)(`img`,{src:e,alt:t,className:`max-h-full max-w-full rounded-lg ring-1 ring-white/10`})})]})})}var To=`text-fg-primary underline decoration-fg-muted underline-offset-2 hover:decoration-fg-primary`,Eo=(0,$.createContext)(void 0);function Do(e,t){return(0,$.useMemo)(()=>e==null?null:`data:${t};base64,${e}`,[e,t])}function Oo({source:e,path:t,line:n,className:r=To,children:i}){let o=n===void 0?{}:{line:n},s=`${t===``?`The files`:t}${n===void 0?``:`:${n}`} on ${e.kind===`task`?`task/${e.taskId}`:`${e.slug}'s default branch`}`;return e.kind===`task`?(0,Q.jsx)(a,{to:`/task/$taskId/files/$`,params:{taskId:e.taskId,_splat:t},search:o,title:s,className:r,children:i}):(0,Q.jsx)(a,{to:`/p/$slug/files/$`,params:{slug:e.slug,_splat:t},search:o,title:s,className:r,children:i})}function ko({source:e,file:t,className:n}){return(0,Q.jsx)(`ul`,{className:n,children:po(t.entries).map(n=>(0,Q.jsxs)(`li`,{className:`flex items-baseline gap-2`,children:[(0,Q.jsx)(Oo,{source:e,path:t.path===``?n.name:`${t.path}/${n.name}`,className:`text-sm text-fg-secondary hover:text-fg-primary`,children:n.kind===`dir`?`${n.name}/`:n.name}),n.size===null?null:(0,Q.jsx)(`span`,{className:`shrink-0 text-meta whitespace-nowrap`,children:ho(n.size)})]},n.name))})}function Ao({source:e,path:t,alt:n}){let r=o(e,t),i=Do(r.data?.kind===`file`?r.data.content:null,eo(t)??`application/octet-stream`),a=n===``?t.split(`/`).at(-1)??t:n;return(0,Q.jsx)(Oo,{source:e,path:t,children:i===null?(0,Q.jsx)(`span`,{className:`text-meta`,children:r.isPending?`Loading ${a}…`:`${a} cannot be shown here`}):(0,Q.jsx)(`img`,{src:i,alt:n,className:`max-h-[32rem] max-w-full rounded-lg`})})}function jo({id:t,alt:n}){let r=e(t),i=n===``?`an image`:n;return r.data===void 0?r.isPending?(0,Q.jsxs)(`span`,{className:`text-meta`,children:[`Loading `,i,`…`]}):(0,Q.jsx)(`span`,{title:r.error?.message,children:i}):(0,Q.jsx)(Co,{src:r.data,alt:n})}function Mo({href:e,children:t}){return(0,Q.jsx)(`span`,{title:e===void 0||e===``?void 0:`${e}, on a runner's machine`,children:t})}function No({href:e,children:t}){let n=(0,$.useContext)(Eo),r=l(e);if(r!==null)return(0,Q.jsx)(u,{kind:r.kind,id:r.id,place:r.place,children:(0,Q.jsx)(So,{value:!0,children:t})});let i=Za(e,n);return i?.kind===`file`?(0,Q.jsx)(Oo,{source:i.source,path:i.path,line:i.line,children:(0,Q.jsx)(So,{value:!0,children:t})}):i?.kind===`local`?(0,Q.jsx)(Mo,{href:e,children:t}):i?.kind===`upload`?(0,Q.jsx)(`span`,{children:t}):(0,Q.jsx)(`a`,{href:e,target:`_blank`,rel:`noreferrer noopener`,children:(0,Q.jsx)(So,{value:!0,children:t})})}function Po({src:e,alt:t}){let n=(0,$.useContext)(Eo),r=Za(typeof e==`string`?e:void 0,n);if(r?.kind===`file`)return(0,Q.jsx)(Ao,{source:r.source,path:r.path,alt:t??``});if(r?.kind===`upload`)return(0,Q.jsx)(jo,{id:r.id,alt:t??``});if(r?.kind===`local`){let n=typeof e==`string`?e:void 0;return(0,Q.jsx)(Mo,{href:n,children:t===void 0||t===``?n:t})}return typeof e==`string`?(0,Q.jsx)(Co,{src:e,alt:t??``}):(0,Q.jsx)(`img`,{alt:t,className:xo})}var Fo={a:No,img:Po};function Io(e){return Ka(e)||s(e)!==null?e:jr(e)}function Lo({text:e,base:t,line:n}){let r=p(e),i=(0,$.useMemo)(()=>[za,[f,{index:r}],yo],[r]),a=(0,$.useMemo)(()=>n===void 0?[]:[[oo,{line:n}]],[n]),o=t?.source,s=o?.kind,c=o===void 0?void 0:o.kind===`task`?o.taskId:o.slug,l=t?.dir,u=(0,$.useMemo)(()=>{if(s!==void 0&&c!==void 0&&l!==void 0)return{source:s===`task`?{kind:s,taskId:c}:{kind:s,slug:c},dir:l}},[s,c,l]);return(0,Q.jsx)(`div`,{className:`board-markdown`,children:(0,Q.jsx)(Eo,{value:u,children:(0,Q.jsx)(Dr,{remarkPlugins:i,rehypePlugins:a,components:Fo,urlTransform:Io,children:e})})})}export{io as _,to as a,po as c,Ja as d,fo as f,ho as g,mo as h,Do as i,uo as l,co as m,Oo as n,so as o,Ya as p,ko as r,qa as s,Lo as t,eo as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Kn as e,Xn as t,qn as n,t as r}from"./format-Dhd2NUB3.js";import{u as i}from"./tasks-D_Fy7dtN.js";import{a,s as o}from"./index-iplooQqq.js";import{t as s}from"./Markdown-DPqvK--4.js";var c=t(n(),1),l=e(),u=1400;function d({message:e,members:t,now:n,task:d,target:f=!1}){let p=e.body.length>u,[m,h]=(0,c.useState)(null),g=m??f,_=o(),v=e.author===`board`,y=e.step===void 0?null:i(e.step,d),b=(0,c.useRef)(null);return(0,c.useEffect)(()=>{let e=b.current;if(!f||e===null)return;let t=e.parentElement,n=t!==null&&e.offsetHeight>t.clientHeight;e.scrollIntoView({block:n?`start`:`center`})},[f]),(0,l.jsxs)(`article`,{ref:b,"aria-current":f?`true`:void 0,className:`flex gap-3 px-4 py-2.5 ${v?`opacity-70`:``} ${f?`message-target`:``}`,children:[(0,l.jsx)(a,{name:e.author,members:t}),(0,l.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,l.jsxs)(`header`,{className:`flex min-w-0 items-baseline gap-2`,children:[(0,l.jsx)(`span`,{className:`text-title`,children:_(e.author)}),y===null?null:(0,l.jsx)(`span`,{className:`min-w-0 truncate rounded-md px-1.5 py-px text-[11px] ${y.tone}`,children:y.text}),(0,l.jsx)(`time`,{dateTime:e.ts,title:e.ts,className:`shrink-0 text-meta`,children:r(e.ts,n)})]}),(0,l.jsxs)(`div`,{className:p&&!g?`relative max-h-72 overflow-hidden`:``,children:[(0,l.jsx)(s,{text:e.body}),p&&!g?(0,l.jsx)(`div`,{className:`absolute inset-x-0 bottom-0 h-16 bg-linear-to-t from-surface-1 to-transparent`}):null]}),p?(0,l.jsx)(`button`,{type:`button`,onClick:()=>h(!g),className:`mt-1 text-xs text-fg-tertiary hover:text-fg-primary`,children:g?`Show less`:`Show more`}):null]})]})}export{d as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{K as e,Kn as t,Zt as n,b as r,r as i,t as a,x as o}from"./format-Dhd2NUB3.js";import{g as s,k as c,s as l}from"./index-iplooQqq.js";import{n as u,t as d}from"./Pane-C9TbEME4.js";import{t as f}from"./citizen-BOn5BBRL.js";import{n as p}from"./Overview-BGUnf6K1.js";var m=t(),h=[{window:`24h`,label:`24 hours`},{window:`7d`,label:`7 days`},{window:`all`,label:`All time`}],g={stage:`a stage to take`,mention:`a mention`,user_post:`your post`,heartbeat:`a heartbeat`,task_done:`a finished task`,proposal_decided:`a decided proposal`,ops_event:`a signal`,onboarding:`joining`,manual:`your wake`},_=new Intl.DateTimeFormat(`en`,{month:`short`,day:`numeric`,timeZone:`UTC`});function v(e,t){return t===0?``:`${Math.round(e/t*100)}%`}function y(e){return e.toFixed(1).replace(/\.0$/,``)}function b({part:e,whole:t}){return(0,m.jsxs)(m.Fragment,{children:[e,(0,m.jsx)(`span`,{className:`ml-1.5 inline-block w-9 text-right text-fg-muted`,children:e===0?``:v(e,t)})]})}function x({children:e}){return(0,m.jsx)(`p`,{className:`text-sm text-fg-primary`,children:e})}function S({children:e}){return(0,m.jsx)(`p`,{className:`mt-1 text-meta`,children:e})}function C({label:e,columns:t,rows:n}){return n.length===0?null:(0,m.jsxs)(`table`,{"aria-label":e,className:`mt-3 w-full table-fixed text-sm`,children:[(0,m.jsxs)(`colgroup`,{children:[(0,m.jsx)(`col`,{}),t.slice(1).map(e=>(0,m.jsx)(`col`,{className:`w-24`},e))]}),(0,m.jsx)(`thead`,{children:(0,m.jsx)(`tr`,{children:t.map((e,t)=>(0,m.jsx)(`th`,{scope:`col`,className:`text-caps pb-1 font-normal ${t===0?`text-left`:`text-right`}`,children:e},e))})}),(0,m.jsx)(`tbody`,{children:n.map((e,t)=>(0,m.jsx)(`tr`,{className:`border-t border-line/50`,children:e.map((e,t)=>(0,m.jsx)(`td`,{className:`py-1.5 ${t===0?`pr-3 text-fg-primary`:`text-right text-fg-secondary tabular-nums`}`,children:e},t))},t))})]})}function w({name:e}){let t=l();return e===`user`?(0,m.jsx)(`span`,{children:t(e)}):(0,m.jsx)(n,{to:`/citizen/$name`,params:{name:e},className:`hover:underline`,children:e})}function T(e){return e.window===`24h`?1:e.window===`7d`?7:Math.max(1,e.decisions.byDay.length)}function E(){let{window:t=`7d`}=c({from:`/metrics`}),l=r(t),E=o(6e4),D=(0,m.jsx)(`nav`,{"aria-label":`Window`,className:`flex shrink-0 gap-1`,children:h.map(e=>(0,m.jsx)(n,{to:`/metrics`,search:{window:e.window},"aria-current":e.window===t?`page`:void 0,className:`rounded-md px-2 py-1 text-xs transition-colors ${e.window===t?`bg-surface-2 text-fg-primary`:`text-fg-tertiary hover:bg-surface-2/70 hover:text-fg-primary`}`,children:e.label},e.window))}),O=(0,m.jsx)(d,{title:`Metrics`,trailing:D});if(l.data===void 0)return(0,m.jsxs)(m.Fragment,{children:[O,(0,m.jsx)(u,{children:l.error instanceof e?l.error.message:`Counting the event log…`})]});let{idle:k,sentBack:A,messages:j,latency:M,decisions:N,blocked:P}=l.data,F=T(l.data);return(0,m.jsxs)(m.Fragment,{children:[O,(0,m.jsxs)(`div`,{className:`flex-1 space-y-5 overflow-y-auto px-4 py-4`,children:[(0,m.jsxs)(p,{title:`Turns that did nothing`,children:[k.turns===0?(0,m.jsx)(S,{children:`No finished turns in this window.`}):(0,m.jsxs)(x,{children:[k.idle,` of `,k.turns,` working turns changed nothing on the board`,` `,(0,m.jsx)(`span`,{className:`text-fg-muted`,children:v(k.idle,k.turns)})]}),k.unknown>0?(0,m.jsxs)(S,{children:[k.unknown,` `,k.unknown===1?`turn`:`turns`,` kept no transcript and could not be counted.`]}):null,(0,m.jsx)(C,{label:`By what woke them`,columns:[`Woken by`,`Turns`,`Did nothing`],rows:k.byTrigger.map(e=>[`${g[e.trigger]??e.trigger}${e.heartbeat===void 0?``:`, ${f[e.heartbeat]}`}`,e.turns,(0,m.jsx)(b,{part:e.idle,whole:e.turns},`idle`)])}),(0,m.jsx)(C,{label:`By citizen`,columns:[`Citizen`,`Turns`,`Did nothing`],rows:k.byAgent.map(e=>[(0,m.jsxs)(`span`,{children:[(0,m.jsx)(w,{name:e.agent}),e.role===null?null:(0,m.jsxs)(`span`,{className:`text-meta`,children:[` · `,e.role]})]},`who`),e.turns,(0,m.jsx)(b,{part:e.idle,whole:e.turns},`idle`)])})]}),(0,m.jsxs)(p,{title:`Work sent back`,children:[A.finished===0?(0,m.jsx)(S,{children:`No task finished in this window.`}):(0,m.jsxs)(x,{children:[A.tasksSentBack,` of `,A.finished,` finished tasks were sent back,`,` `,A.sendBacks,` `,A.sendBacks===1?`time`:`times`,` in all`]}),(0,m.jsx)(C,{label:`Where work came back from`,columns:[`Came back from`,`Times`],rows:A.byStage.map(e=>[`${e.project} · ${e.stage}`,e.count])}),(0,m.jsx)(C,{label:`Who sent work back`,columns:[`Sent back by`,`Times`],rows:A.bySender.map(e=>[(0,m.jsx)(w,{name:e.agent},`who`),e.count])})]}),(0,m.jsxs)(p,{title:`Messages per finished task`,children:[j.finished===0?(0,m.jsx)(S,{children:`No task finished in this window.`}):(0,m.jsxs)(x,{children:[y(j.messages/j.finished),` posts a task, across`,` `,j.finished,` finished `,j.finished===1?`task`:`tasks`]}),(0,m.jsx)(C,{label:`By project`,columns:[`Project`,`Tasks`,`Posts a task`],rows:j.byProject.map(e=>[e.project,e.finished,y(e.messages/e.finished)])}),(0,m.jsx)(C,{label:`Most talked-over tasks`,columns:[`Task`,`Posts`],rows:j.busiest.map(e=>[(0,m.jsx)(s,{kind:`task`,id:e.taskId,children:e.title},`task`),e.messages])})]}),(0,m.jsxs)(p,{title:`Wake latency`,children:[M.medianMs===null||M.slowestMs===null?(0,m.jsx)(S,{children:`No mention led to a turn in this window.`}):(0,m.jsxs)(x,{children:[i(M.medianMs),` from a mention to its turn, at the median; the slowest took`,` `,i(M.slowestMs)]}),M.unanswered>0?(0,m.jsxs)(S,{children:[M.unanswered,` `,M.unanswered===1?`mention has`:`mentions have`,` no turn yet.`]}):null,(0,m.jsx)(C,{label:`By citizen`,columns:[`Citizen`,`Mentions`,`Median`,`Slowest`],rows:M.byAgent.map(e=>[(0,m.jsx)(w,{name:e.agent},`who`),e.mentions,i(e.medianMs),i(e.slowestMs)])})]}),(0,m.jsxs)(p,{title:`Your decisions`,children:[N.total===0?(0,m.jsx)(S,{children:`You decided nothing in this window.`}):(0,m.jsxs)(x,{children:[N.total,` `,N.total===1?`decision`:`decisions`,`, about`,` `,y(N.total/F),` a day`]}),(0,m.jsx)(C,{label:`By day`,columns:[`Day`,`Proposals`,`Answers`,`Stages`],rows:N.byDay.map(e=>[_.format(new Date(`${e.day}T00:00:00Z`)),e.proposals,e.answers,e.stages])})]}),(0,m.jsx)(p,{title:`Blocked on a capability`,children:P.length===0?(0,m.jsx)(S,{children:`No task waited for a capability no runner offers.`}):(0,m.jsx)(`ul`,{className:`space-y-2`,children:P.map(e=>(0,m.jsxs)(`li`,{children:[(0,m.jsxs)(`p`,{className:`text-sm text-fg-primary`,children:[(0,m.jsx)(s,{kind:`task`,id:e.taskId,children:e.title??e.taskId}),(0,m.jsx)(`span`,{className:e.holds?`text-amber-300`:`text-fg-muted`,children:e.holds?` · blocked now`:` · cleared`})]}),(0,m.jsxs)(`p`,{className:`text-meta`,children:[e.summary,` · since `,a(e.firstAt,E)]})]},e.taskId))})})]})]})}export{E as MetricsView};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Kn as e,S as t,Zt as n,n as r,t as i,x as a}from"./format-Dhd2NUB3.js";import{o}from"./governance-CWzi7hzX.js";import{S as s,_ as c,s as l}from"./index-iplooQqq.js";import{n as u,t as d}from"./Pane-C9TbEME4.js";var f=e(),p=[{kind:`proposal`,label:`Proposals to decide`},{kind:`stage`,label:`Stages that name you`},{kind:`request`,label:`Asked of you`}],m=`block rounded-xl px-3 py-2.5 transition-colors hover:bg-surface-2/50`;function h({title:e,meta:t}){return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`span`,{className:`text-title block truncate`,children:e}),(0,f.jsx)(`span`,{className:`mt-1 block truncate text-meta`,children:t})]})}function g(){let e=s(),g=t(),_=a(3e4),v=l(),y=e=>g.data?.find(t=>t.slug===e)?.name??e;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(d,{title:`Needs you`,subtitle:e.length===0?`Nothing waits on you`:`${e.length} waiting on you, oldest first`}),(0,f.jsx)(`div`,{className:`flex-1 overflow-y-auto px-2 py-2`,children:e.length===0?(0,f.jsx)(u,{children:`Nothing waits on you.`}):p.map(({kind:t,label:a})=>{let s=e.filter(e=>e.kind===t);return s.length===0?null:(0,f.jsxs)(`section`,{className:`mb-3`,children:[(0,f.jsxs)(`h3`,{className:`px-3 pt-2 pb-1 text-[11px] font-semibold tracking-wider text-fg-muted uppercase`,children:[a,` · `,s.length]}),(0,f.jsx)(`ul`,{children:s.map(e=>{if(e.kind===`proposal`)return(0,f.jsx)(`li`,{children:(0,f.jsx)(n,{to:`/proposal/$proposalId`,params:{proposalId:e.proposal.id},className:m,children:(0,f.jsx)(h,{title:o(e.proposal),meta:`proposed by ${v(e.proposal.proposedBy)} ${i(e.since,_)}`})})},e.proposal.id);if(e.kind===`stage`)return(0,f.jsx)(`li`,{children:(0,f.jsx)(n,{to:`/task/$taskId`,params:{taskId:e.task.id},className:m,children:(0,f.jsx)(h,{title:e.task.title,meta:`${e.stage.name}${e.stage.gate?` (gate)`:``} in ${y(e.task.project)} · waiting since ${i(e.since,_)}`})})},e.task.id);let t=`${v(e.message.author)} in ${e.thread===null?`#${e.message.channel}`:e.thread.title} ${i(e.since,_)}`,a=(0,f.jsx)(h,{title:(0,f.jsx)(c,{text:r(e.message.body,160),links:!1}),meta:t}),s=e.thread?.subject;return(0,f.jsx)(`li`,{children:s?.kind===`task`?(0,f.jsx)(n,{to:`/task/$taskId`,params:{taskId:s.id},className:m,children:a}):s?.kind===`proposal`?(0,f.jsx)(n,{to:`/proposal/$proposalId`,params:{proposalId:s.id},className:m,children:a}):e.thread===null?(0,f.jsx)(n,{to:`/c/$`,params:{_splat:e.message.channel},className:m,children:a}):(0,f.jsx)(n,{to:`/thread/$threadId`,params:{threadId:e.thread.id},className:m,children:a})},e.message.id)})})]},t)})})]})}export{g as NeedsYouView};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Kn as e,X as t,Zt as n,k as r,n as i,t as a}from"./format-Dhd2NUB3.js";import{t as o}from"./CliIcon-DL4ZwgZv.js";import{_ as s}from"./index-iplooQqq.js";import{o as c}from"./citizen-BOn5BBRL.js";var l=e();function u({title:e,aside:t,children:n}){return(0,l.jsxs)(`section`,{className:`border-t border-line pt-4 first:border-t-0 first:pt-0`,children:[(0,l.jsxs)(`h3`,{className:`flex items-baseline justify-between gap-2`,children:[(0,l.jsx)(`span`,{className:`text-section`,children:e}),t]}),(0,l.jsx)(`div`,{className:`mt-2`,children:n})]})}function d({members:e,scope:i}){let a=r(),s=t(a.data?.running??[]),u=t(a.data?.pending??[]);return e.length===0?(0,l.jsx)(`p`,{className:`text-meta`,children:`Nobody yet.`}):(0,l.jsx)(`ul`,{className:`-mx-2`,children:e.map(e=>{let t=s.filter(t=>t.agent===e.name).map(e=>e.scope),r=t.includes(i),a=u.some(t=>t.agent===e.name),d=r?`in a turn here`:t.length>0?`in a turn at ${t.map(c).join(` and `)}`:a?`queued`:`resting`;return(0,l.jsx)(`li`,{children:(0,l.jsxs)(n,{to:`/citizen/$name`,params:{name:e.name},search:r&&i!==`society`?{scope:i}:{},className:`flex items-center gap-2 rounded-lg px-2 py-1.5 text-sm transition-colors hover:bg-surface-2/50`,children:[(0,l.jsx)(`span`,{className:`grid size-4 shrink-0 place-items-center`,children:e.cli===null?null:(0,l.jsx)(o,{cli:e.cli,size:13})}),(0,l.jsx)(`span`,{className:`text-fg-primary`,children:e.name}),(0,l.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-xs text-fg-muted`,children:e.role}),(0,l.jsx)(`span`,{className:`shrink-0 text-xs ${t.length>0?`text-emerald-300`:a?`text-amber-300`:`text-fg-muted`}`,children:d})]})},e.name)})})}function f({scope:e,topics:t,now:r}){return t===void 0?(0,l.jsx)(`p`,{className:`text-meta`,children:`Reading…`}):t.length===0?(0,l.jsx)(`p`,{className:`text-meta`,children:`No knowledge yet.`}):(0,l.jsx)(`ul`,{className:`-mx-2`,children:t.toSorted((e,t)=>t.updatedAt.localeCompare(e.updatedAt)).map(t=>(0,l.jsx)(`li`,{children:(0,l.jsxs)(n,{to:`/knowledge/$scope/$topic`,params:{scope:e,topic:t.topic},className:`block rounded-lg px-2 py-1.5 transition-colors hover:bg-surface-2/50`,children:[(0,l.jsxs)(`span`,{className:`flex items-baseline gap-2`,children:[(0,l.jsx)(`span`,{className:`text-sm text-fg-primary`,children:t.topic}),(0,l.jsxs)(`span`,{className:`text-meta`,children:[`by `,t.updatedBy,` `,a(t.updatedAt,r)]})]}),(0,l.jsx)(`span`,{className:`mt-0.5 line-clamp-2 text-sm leading-relaxed text-fg-secondary`,children:(0,l.jsx)(s,{text:i(t.body,240),links:!1})})]})},t.topic))})}export{u as n,f as r,d as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Kn as e}from"./format-Dhd2NUB3.js";var t=e();function n({title:e,subtitle:n,leading:r,trailing:i}){return(0,t.jsxs)(`header`,{className:`flex items-center gap-3 border-b border-line px-4 py-3`,children:[r,(0,t.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,t.jsx)(`h2`,{className:`text-heading truncate`,children:e}),n===void 0?null:(0,t.jsx)(`p`,{className:`truncate text-meta`,children:n})]}),i]})}function r({children:e}){return(0,t.jsx)(`p`,{className:`px-4 py-10 text-center text-meta`,"aria-live":`polite`,children:e})}export{r as n,n as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Kn as e,Xn as t,qn as n}from"./format-Dhd2NUB3.js";var r=t(n(),1),i=e(),a=`mt-1 overflow-y-auto rounded-xl bg-surface-1/95 p-1 shadow-[inset_0_0_0_1px_rgba(255,255,255,0.08),0_16px_32px_-12px_rgba(0,0,0,0.8)] backdrop-blur-xl`;function o(e){return`flex w-full items-start gap-2 rounded-lg px-2.5 py-1.5 text-left transition-colors focus-visible:outline-none ${e?`bg-surface-2/80`:`hover:bg-surface-2/50 focus-visible:bg-surface-2/50`}`}function s(e){return e===void 0?``:`${e.name}${e.id===null?``:` · ${e.id}`}`}function c({label:e,choices:t,value:n,onChange:c,listClassName:l=`inset-x-0`}){let[u,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),p=(0,r.useRef)(null),m=(0,r.useRef)([]),h=t.findIndex(e=>e.value===n);(0,r.useEffect)(()=>{if(!u)return;m.current[Math.max(h,0)]?.focus();let e=e=>{e.target instanceof Node&&f.current?.contains(e.target)===!0||d(!1)};return window.addEventListener(`pointerdown`,e),()=>window.removeEventListener(`pointerdown`,e)},[u,h]);let g=e=>{if(e.key===`Escape`){e.stopPropagation(),d(!1),p.current?.focus();return}if(e.key!==`ArrowDown`&&e.key!==`ArrowUp`)return;e.preventDefault();let n=(m.current.findIndex(e=>e===document.activeElement)+(e.key===`ArrowDown`?1:-1)+t.length)%t.length;m.current[n]?.focus()},_=t[h];return(0,i.jsxs)(`div`,{ref:f,className:`relative min-w-0 flex-1`,children:[(0,i.jsxs)(`button`,{ref:p,type:`button`,"aria-label":`${e}: ${s(_)}`,"aria-expanded":u,onClick:()=>d(!u),onKeyDown:u?g:void 0,className:`flex h-7 w-full items-center gap-1.5 rounded-md bg-surface-2/60 px-2.5 text-xs text-fg-secondary transition-colors hover:bg-surface-2 focus-visible:ring-2 focus-visible:ring-fg-primary/30 focus-visible:outline-none`,children:[(0,i.jsxs)(`span`,{className:`min-w-0 flex-1 truncate text-left`,children:[_?.name,_?.id===null||_===void 0?null:(0,i.jsxs)(`span`,{className:`text-fg-tertiary`,children:[` · `,_.id]})]}),(0,i.jsx)(`span`,{"aria-hidden":`true`,className:`text-[10px] text-fg-muted transition-transform ${u?`rotate-180`:``}`,children:`▾`})]}),u?(0,i.jsx)(`div`,{className:`absolute top-full z-20 max-h-80 ${a} ${l}`,children:t.map((e,t)=>{let r=e.value===n;return(0,i.jsxs)(`button`,{ref:e=>{m.current[t]=e},type:`button`,"aria-current":r?`true`:void 0,onKeyDown:g,onClick:()=>{c(e.value),d(!1),p.current?.focus()},className:o(r),children:[(0,i.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,i.jsxs)(`span`,{className:`block truncate text-xs text-fg-secondary`,children:[e.name,e.id===null?null:(0,i.jsxs)(`span`,{className:`text-fg-tertiary`,children:[` · `,e.id]})]}),e.description===``?null:(0,i.jsx)(`span`,{className:`block truncate text-[11px] text-fg-muted`,children:e.description})]}),(0,i.jsx)(`span`,{"aria-hidden":`true`,className:`w-3 shrink-0 pt-px text-[11px] text-fg-primary`,children:r?`✓`:``})]},e.value)})}):null]})}export{c as n,o as r,a as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Gn as e,K as t,Kn as n,O as r,S as i,Xn as a,Zt as o,c as s,d as c,g as l,j as u,l as d,qn as f,t as p,v as m,x as h,z as g}from"./format-Dhd2NUB3.js";import{n as _,t as v}from"./Button-D4-iu6aX.js";import{i as y,t as b}from"./tasks-D_Fy7dtN.js";import{A as x}from"./index-iplooQqq.js";import{c as S,g as C,h as w,n as T,t as E}from"./Markdown-DPqvK--4.js";import{n as D,r as O}from"./ThreadForms-DwUOktyP.js";import{n as k,r as A}from"./ChannelForms-DjviQfVm.js";import{n as j,t as M}from"./Pane-C9TbEME4.js";import{n as N}from"./Picker-BK48MjLY.js";import{n as P,r as F,t as I}from"./Overview-BGUnf6K1.js";import{i as L,n as R,r as z,t as B}from"./FileTree-BFa_KVI8.js";var V=a(f(),1),H=n();function U({project:e,source:t,folder:n,nested:r,openings:i}){return(0,H.jsx)(L,{nested:r,children:S(n.entries).map(r=>{let a=n.path===``?r.name:`${n.path}/${r.name}`;if(r.kind===`dir`){let n=i.open.has(a);return(0,H.jsxs)(`li`,{children:[(0,H.jsx)(R,{name:r.name,open:n,onToggle:()=>i.toggle(a)}),n?(0,H.jsx)(W,{project:e,source:t,path:a,openings:i}):null]},`dir:${r.name}`)}return(0,H.jsx)(`li`,{children:(0,H.jsxs)(T,{source:t,path:a,className:`group ${z}`,children:[(0,H.jsx)(B,{}),(0,H.jsx)(`span`,{className:`min-w-0 truncate text-fg-secondary group-hover:text-fg-primary`,children:r.name}),r.size===null?null:(0,H.jsx)(`span`,{className:`shrink-0 text-meta whitespace-nowrap`,children:C(r.size)})]})},r.name)})})}function W({project:e,source:n,path:r,openings:i}){let a=s(n,r);if(a.data?.kind===`dir`)return(0,H.jsx)(U,{project:e,source:n,folder:a.data,nested:!0,openings:i});let o;return o=a.data?.kind===`file`||a.error instanceof t&&a.error.status===404?`Not on ${e.defaultBranch} now.`:a.error instanceof t&&a.error.status===503?`${w(e)}, is not connected.`:a.error===null?`Reading…`:a.error.message,(0,H.jsx)(L,{nested:!0,children:(0,H.jsx)(`li`,{className:`py-0.5 pl-[18px] text-meta`,children:o})})}function G({project:e,now:n}){let r={kind:`project`,slug:e.slug},i=s(r,``),a=e.defaultBranch,[o,c]=(0,V.useState)(new Set),l=e=>{c(t=>{let n=new Set(t);return n.delete(e)||n.add(e),n})},u;if(i.data?.kind===`dir`){let{commit:t}=i.data;u=(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(`p`,{className:`text-meta`,children:[a,` · committed by `,t.author,` `,p(t.at,n),` · `,t.id.slice(0,7)]}),i.data.entries.length===0?(0,H.jsxs)(`p`,{className:`mt-2 text-meta`,children:[`Nothing on `,a,` yet.`]}):(0,H.jsx)(U,{project:e,source:r,folder:i.data,nested:!1,openings:{open:o,toggle:l}})]})}else u=i.error instanceof t&&i.error.status===404?(0,H.jsxs)(`p`,{className:`text-meta`,children:[`Nothing on `,a,` yet.`]}):i.error instanceof t&&i.error.status===503?(0,H.jsxs)(`p`,{className:`text-meta`,children:[w(e),`, is not connected, so the project's files cannot be listed now.`]}):i.error===null?(0,H.jsxs)(`p`,{className:`text-meta`,children:[`Reading `,a,`…`]}):(0,H.jsx)(`p`,{className:`text-meta`,children:i.error.message});return(0,H.jsx)(P,{title:`Files`,aside:(0,H.jsx)(T,{source:r,path:``,className:`text-meta underline decoration-line underline-offset-2 hover:text-fg-primary`,children:`Browse the branch`}),children:u})}function K(e,t,n){let r=n.filter(n=>n.status===`active`&&t.members.includes(n.name)&&n.cli!==null&&!e.clis.includes(n.cli)).map(e=>`has no ${e.cli} for ${e.name}`);for(let n of t.requiredCapabilities)e.capabilities.includes(n)||r.push(`lacks ${n}`);return r}function q(e,t,n){return e.map(e=>({value:e.name,name:e.name,id:e.os,description:[e.name===t.runner?`here now`:``,e.status,e.clis.length===0?`offers no CLI yet`:e.clis.join(`, `),e.capabilities.join(`, `),...K(e,t,n)].filter(e=>e!==``).join(` · `)}))}function J({project:n,onDone:i}){let{api:a}=u(),o=e(),s=r(),c=m(),l=n.runner??``,[d,f]=(0,V.useState)(l),[p,h]=(0,V.useState)(null),g=_({mutationFn:e=>a.moveProject(n.slug,d,e),onSuccess:async e=>{await o.invalidateQueries({queryKey:[`projects`]}),e.released?.ok===!1?h({runner:e.project.runner??d,detail:e.released.detail}):i()}}),y=g.error instanceof t&&g.error.code===`SOURCE_AWAY`;return p===null?(0,H.jsxs)(`form`,{"aria-label":`Runner of ${n.slug}`,className:`space-y-2 border-b border-line bg-surface-2/20 p-3`,onSubmit:e=>{e.preventDefault(),g.mutate(!1)},children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-2`,children:[s.data===void 0?(0,H.jsx)(`p`,{className:`min-w-0 flex-1 truncate text-meta`,children:`Reading the runners…`}):(0,H.jsx)(N,{label:`Runner`,choices:q(s.data,n,c.data??[]),value:d,onChange:e=>{f(e),g.reset()}}),(0,H.jsx)(v,{onClick:i,children:`Cancel`}),(0,H.jsx)(v,{variant:`primary`,type:`submit`,disabled:g.isPending||d===l||d===``,children:g.isPending?`Moving…`:`Move here`})]}),(0,H.jsx)(O,{error:g.error}),y&&!g.isPending?(0,H.jsx)(`div`,{className:`flex justify-end`,children:(0,H.jsx)(v,{onClick:()=>g.mutate(!0),children:`Move without them`})}):null]}):(0,H.jsxs)(`div`,{className:`flex items-center gap-2 border-b border-line bg-surface-2/20 p-3`,children:[(0,H.jsxs)(`output`,{className:`block min-w-0 flex-1 text-sm text-fg-secondary`,children:[`On `,p.runner,`. `,p.detail,`.`]}),(0,H.jsx)(v,{onClick:i,children:`Done`})]})}function Y({project:t,onDone:n}){let{api:r}=u(),i=e(),[a,o]=(0,V.useState)(t.name),[s,c]=(0,V.useState)(t.defaultBranch),l={...a.trim()===t.name?{}:{name:a.trim()},...s.trim()===t.defaultBranch?{}:{default_branch:s.trim()}},d=_({mutationFn:()=>r.configureProject(t.slug,l),onSuccess:async()=>{await i.invalidateQueries({queryKey:[`projects`]}),n()}}),f=Object.keys(l).length===0||a.trim()===``||s.trim()===``;return(0,H.jsxs)(`form`,{"aria-label":`Edit ${t.slug}`,className:`space-y-2 border-b border-line bg-surface-2/20 p-3`,onSubmit:e=>{e.preventDefault(),d.mutate()},children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,H.jsx)(`input`,{value:a,maxLength:120,"aria-label":`Project name`,onChange:e=>o(e.target.value),className:`${D} min-w-0 flex-1`}),(0,H.jsx)(`div`,{className:`w-36 shrink-0`,children:(0,H.jsx)(`input`,{value:s,maxLength:100,spellCheck:!1,"aria-label":`Default branch`,onChange:e=>c(e.target.value),className:`${D} font-mono`})}),(0,H.jsx)(v,{onClick:n,children:`Cancel`}),(0,H.jsx)(v,{variant:`primary`,type:`submit`,disabled:d.isPending||f,children:d.isPending?`Saving…`:`Save`})]}),(0,H.jsx)(O,{error:d.error})]})}function X(){let{slug:e}=x({from:`/p/$slug`}),t=i(),n=d(),r=m(),a=g(e),s=c(e),u=l(e),f=h(3e4),[_,S]=(0,V.useState)(!1),[C,w]=(0,V.useState)(!1),[T,D]=(0,V.useState)(!1),O=t.data?.find(t=>t.slug===e);if(O===void 0)return(0,H.jsx)(j,{children:t.data===void 0?`Reading the project…`:`There is no project ${e}.`});let N=(r.data??[]).filter(e=>e.status===`active`&&O.members.includes(e.name)),L=y(a.data??[]),R=s.data?.body.trim()??``;return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(M,{title:O.name,subtitle:`${e} · ${O.repo??`a local repository`} · ${O.defaultBranch}${O.runner===void 0?``:` · on ${O.runner}`}`,trailing:(0,H.jsxs)(H.Fragment,{children:[_||O.archived!==void 0?null:(0,H.jsx)(v,{onClick:()=>S(!0),children:`Edit…`}),C||O.archived!==void 0||O.runner===void 0?null:(0,H.jsx)(v,{onClick:()=>w(!0),children:`Runner…`}),(0,H.jsx)(o,{to:`/p/$slug/tasks`,params:{slug:e},className:`shrink-0 rounded-md px-2 py-1 text-xs text-fg-tertiary hover:bg-surface-2/70 hover:text-fg-primary`,children:`Tasks →`})]})}),_?(0,H.jsx)(Y,{project:O,onDone:()=>S(!1)}):null,C?(0,H.jsx)(J,{project:O,onDone:()=>w(!1)}):null,T?(0,H.jsx)(A,{project:e,onDone:()=>D(!1)}):null,(0,H.jsxs)(`div`,{className:`flex-1 space-y-5 overflow-y-auto px-4 py-4`,children:[O.archived===void 0?null:(0,H.jsxs)(`p`,{className:`rounded-lg bg-surface-2/40 px-3 py-2 text-sm text-fg-secondary`,children:[`Archived `,p(O.archived.at,f),` by `,O.archived.by,`:`,` `,O.archived.reason,`.`]}),(0,H.jsx)(P,{title:`Channels`,aside:O.archived===void 0&&!T?(0,H.jsx)(v,{onClick:()=>D(!0),children:`New channel…`}):null,children:(0,H.jsx)(k,{channels:(n.data??[]).filter(t=>t.project===e),now:f})}),(0,H.jsx)(P,{title:`Members`,children:(0,H.jsx)(I,{members:N,scope:e})}),(0,H.jsx)(P,{title:`Tasks`,children:a.data===void 0?(0,H.jsx)(`p`,{className:`text-meta`,children:`Reading…`}):L.length===0?(0,H.jsx)(`p`,{className:`text-meta`,children:`No tasks yet.`}):(0,H.jsx)(o,{to:`/p/$slug/tasks`,params:{slug:e},className:`flex flex-wrap gap-1.5`,children:L.map(e=>(0,H.jsxs)(`span`,{className:`rounded-md bg-surface-2/60 px-2 py-0.5 text-xs text-fg-secondary`,children:[e.tasks.length,` `,b.find(t=>t.phase===e.phase)?.label.toLowerCase()]},e.phase))})}),(0,H.jsx)(P,{title:`How a task ends`,children:(0,H.jsx)(`p`,{className:`text-sm text-fg-secondary`,children:O.onDone===`merge`?`When its last stage is done, the board merges task/<id> onto ${O.defaultBranch}.`:O.onDone===`ghpr`?`When its last stage is done, the board merges the pull request linked to it into ${O.defaultBranch} on GitHub.`:`When its last stage is done, it is done; nothing is merged.`})}),(0,H.jsx)(P,{title:`Dashboard`,aside:s.data?.updatedBy===void 0?void 0:(0,H.jsxs)(`span`,{className:`text-meta`,children:[`by `,s.data.updatedBy,s.data.updatedAt===void 0?``:` ${p(s.data.updatedAt,f)}`]}),children:s.data===void 0?(0,H.jsx)(`p`,{className:`text-meta`,children:`Reading…`}):R===``?(0,H.jsx)(`p`,{className:`text-meta`,children:`Empty.`}):(0,H.jsx)(E,{text:R})}),(0,H.jsx)(P,{title:`Knowledge`,children:(0,H.jsx)(F,{scope:e,topics:u.data,now:f})}),(0,H.jsx)(G,{project:O,now:f},e)]})]})}export{X as ProjectView};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{B as e,C as t,D as n,Gn as r,Jt as i,K as a,Kn as o,Kt as s,P as c,S as l,V as u,Wt as d,Xn as f,Xt as p,Zt as m,_t as h,bt as g,gt as _,ht as v,j as y,mt as b,qn as x,qt as ee,t as S,v as te,vt as ne,w as re,x as ie,xt as ae,z as C}from"./format-Dhd2NUB3.js";import{n as w,t as T}from"./Button-D4-iu6aX.js";import{t as oe}from"./CliIcon-DL4ZwgZv.js";import{a as se}from"./tasks-D_Fy7dtN.js";import{c as E,d as D,l as O,n as k,o as A,r as j,s as M}from"./governance-CWzi7hzX.js";import{A as N,i as P,o as F,s as I}from"./index-iplooQqq.js";import{t as L}from"./BackLink-BLiSCuKv.js";import{t as R}from"./Markdown-DPqvK--4.js";import{n as z,r as B}from"./ThreadForms-DwUOktyP.js";import{n as V,t as ce}from"./Pane-C9TbEME4.js";import{t as H}from"./StickyList-DafbJutb.js";import{t as U}from"./SkillFileList-BUpKUkaG.js";import{StatusChip as W}from"./ProposalsView-DTGx8NDn.js";import{t as G}from"./SubjectThread-Jyl5YCFL.js";var K=f(x(),1),q=o();function le({proposal:e}){let{api:t}=y(),n=r(),[i,a]=(0,K.useState)(null),[o,s]=(0,K.useState)(``),c=(0,K.useRef)(null);(0,K.useEffect)(()=>{i!==null&&c.current?.focus()},[i]);let l=w({mutationFn:()=>{let n=o.trim();return i===`reject`?t.reject({proposal_id:e.id,reason:n}):t.approve({proposal_id:e.id,...n===``?{}:{reason:n}})},onSuccess:()=>{let t=[[`proposals`],[`proposal`,e.id],[`threads`],[`thread`,e.id]];for(let e of t)n.invalidateQueries({queryKey:e});a(null),s(``)}});if(i===null)return(0,q.jsxs)(`div`,{className:`flex items-center gap-2 border-t border-line px-4 py-3`,children:[(0,q.jsx)(`p`,{className:`min-w-0 flex-1 truncate text-meta`,children:`This proposal waits on you.`}),(0,q.jsx)(T,{onClick:()=>a(`reject`),children:`Reject`}),(0,q.jsx)(T,{variant:`primary`,onClick:()=>a(`approve`),children:`Approve`})]});let u=i===`approve`;return(0,q.jsxs)(`form`,{"aria-label":u?`Approve the proposal`:`Reject the proposal`,className:`space-y-2 border-t border-line bg-surface-2/20 p-3`,onSubmit:e=>{e.preventDefault(),l.mutate()},children:[(0,q.jsx)(`textarea`,{ref:c,value:o,rows:2,placeholder:u?`Why approve? Optional.`:`Why not?`,"aria-label":u?`Reason for approving`:`Reason for rejecting`,onChange:e=>s(e.target.value),className:`${z} resize-none`}),(0,q.jsxs)(`div`,{className:`flex items-center justify-end gap-2`,children:[(0,q.jsx)(T,{onClick:()=>{a(null),l.reset()},children:`Cancel`}),(0,q.jsx)(T,{variant:`primary`,type:`submit`,disabled:l.isPending||!u&&o.trim()===``,children:l.isPending?`Deciding…`:u?`Confirm approval`:`Confirm rejection`})]}),(0,q.jsx)(B,{error:l.error})]})}function J({children:e}){return(0,q.jsx)(`dl`,{className:`mt-2 space-y-1.5`,children:e})}function Y({label:e,children:t}){return(0,q.jsxs)(`div`,{className:`grid grid-cols-[9rem_1fr] gap-3 text-sm`,children:[(0,q.jsx)(`dt`,{className:`text-meta`,children:e}),(0,q.jsx)(`dd`,{className:`min-w-0 break-words text-fg-secondary`,children:t})]})}function X(e){return e.length===0?`none`:e.join(`, `)}function Z({name:e,change:t}){return(0,q.jsxs)(`span`,{className:`inline-block rounded-md px-1.5 py-px font-mono text-[11px] ${t===`added`?`bg-emerald-500/15 text-emerald-300`:t===`removed`?`bg-red-500/15 text-red-300 line-through`:`bg-surface-2/70 text-fg-tertiary`}`,children:[t===`added`?`+ `:t===`removed`?`− `:``,e]})}function Q({children:e}){return(0,q.jsx)(`div`,{className:`mt-2 rounded-xl bg-surface-2/30 px-3.5 py-3 shadow-[inset_0_0_0_1px_rgba(255,255,255,0.06)]`,children:e})}function $({next:e,current:t,compare:n}){let r=t===void 0?null:E(t,e),i=r!==null&&r.verbsAdded.length===0&&r.verbsRemoved.length===0&&r.changes.length===0&&!r.purposeChanged;return(0,q.jsxs)(q.Fragment,{children:[n?r===null?(0,q.jsx)(`p`,{className:`mt-2 text-meta`,children:`A new role: no charter by this name exists yet.`}):i?(0,q.jsx)(`p`,{className:`mt-2 text-meta`,children:`The same as the charter the role has now.`}):(0,q.jsxs)(Q,{children:[(0,q.jsx)(`p`,{className:`text-caps`,children:`Against the charter it has now`}),r.verbsAdded.length+r.verbsRemoved.length===0?null:(0,q.jsxs)(`p`,{className:`mt-2 flex flex-wrap gap-1`,children:[r.verbsAdded.map(e=>(0,q.jsx)(Z,{name:e,change:`added`},e)),r.verbsRemoved.map(e=>(0,q.jsx)(Z,{name:e,change:`removed`},e))]}),r.changes.length===0?null:(0,q.jsx)(J,{children:r.changes.map(e=>(0,q.jsxs)(Y,{label:e.field,children:[e.from,` → `,(0,q.jsx)(`span`,{className:`text-fg-primary`,children:e.to})]},e.field))}),r.purposeChanged?(0,q.jsx)(`p`,{className:`mt-2 text-xs text-fg-secondary`,children:`The purpose is rewritten.`}):null]}):null,(0,q.jsxs)(J,{children:[(0,q.jsx)(Y,{label:`Role`,children:e.name}),(0,q.jsx)(Y,{label:`Purpose`,children:e.purpose}),(0,q.jsx)(Y,{label:`Verbs`,children:(0,q.jsx)(`span`,{className:`flex flex-wrap gap-1`,children:e.verbs.map(e=>(0,q.jsx)(Z,{name:e},e))})}),(0,q.jsx)(Y,{label:`Wake triggers`,children:X(e.wakeTriggers)}),(0,q.jsx)(Y,{label:`Replicas per project`,children:e.maxReplicas}),(0,q.jsx)(Y,{label:`Warm session`,children:e.resident?`yes`:`no`}),(0,q.jsx)(Y,{label:`Society role`,children:e.societyScope?`yes, in no project`:`no`}),(0,q.jsx)(Y,{label:`Reflects`,children:e.reflects?`yes`:`no`})]})]})}function ue({proposal:e,reallocation:t,current:n,compare:r}){let{role:i,changes:a,description:o}=t,s=e.provision?.changed,c=Array.isArray(s)?s.filter(e=>typeof e==`string`):null;return r&&n!=null?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)($,{next:ae(n,a),current:n,compare:!0}),(0,q.jsx)(J,{children:(0,q.jsx)(Y,{label:`Why`,children:o})})]}):(0,q.jsxs)(J,{children:[(0,q.jsx)(Y,{label:`Role`,children:i}),r&&n===null?(0,q.jsx)(Y,{label:`Role now`,children:`none by this name; approving it will fail`}):null,c===null?(0,q.jsxs)(q.Fragment,{children:[a.maxReplicas===void 0?null:(0,q.jsx)(Y,{label:`Replicas per project`,children:a.maxReplicas}),a.backlogThreshold===void 0?null:(0,q.jsx)(Y,{label:`Backlog per member`,children:a.backlogThreshold}),a.wakeTriggers===void 0?null:(0,q.jsx)(Y,{label:`Wake triggers`,children:X(a.wakeTriggers)}),a.verbs===void 0?null:(0,q.jsx)(Y,{label:`Verbs`,children:(0,q.jsx)(`span`,{className:`flex flex-wrap gap-1`,children:a.verbs.map(e=>(0,q.jsx)(Z,{name:e},e))})})]}):(0,q.jsx)(Y,{label:`Changed`,children:c.map(e=>(0,q.jsx)(`span`,{className:`block`,children:e},e))}),(0,q.jsx)(Y,{label:`Why`,children:o})]})}function de({proposal:e,slug:t,reason:n,members:r}){let i=l(),a=C(t),o=i.data?.find(e=>e.slug===t),s=e.status===`proposed`,c=s?(r??[]).filter(e=>e.status===`active`&&e.memberships.includes(t)).map(e=>e.name):e.provision?.members??[],u=(a.data??[]).filter(se).length;return(0,q.jsxs)(J,{children:[(0,q.jsxs)(Y,{label:`Project`,children:[(0,q.jsx)(m,{to:`/p/$slug`,params:{slug:t},className:`hover:text-fg-primary`,children:o?.name??t}),o?.name===void 0||o.name===t?null:` · ${t}`]}),(0,q.jsx)(Y,{label:s?`Members who leave`:`Members who left`,children:Array.isArray(c)?X(c.filter(e=>typeof e==`string`)):`none`}),s?(0,q.jsx)(Y,{label:`Tasks in play`,children:a.data===void 0?`reading…`:u===0?`none`:`${u}: approval is refused`}):null,(0,q.jsx)(Y,{label:`Reason`,children:n})]})}function fe({proposal:e}){let t=e.skillFiles,n=re(e.id,t!==void 0);if(t===void 0)return(0,q.jsx)(`p`,{className:`mt-2 text-sm text-fg-secondary`,children:e.status===`proposed`?`Files not taken yet.`:`The board took no files for it.`});if(n.data===void 0)return(0,q.jsx)(`p`,{className:`mt-2 text-meta`,children:n.isError?`Could not read its files.`:`Loading…`});let r=n.data.find(e=>e.path===`SKILL.md`),i=n.data.filter(e=>e.path!==`SKILL.md`);return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(J,{children:(0,q.jsxs)(Y,{label:`Taken from`,children:[e.proposedBy,`'s home at`,` `,(0,q.jsx)(`span`,{className:`font-mono`,children:t.commit.slice(0,7)})]})}),r===void 0||r.text===null?null:(0,q.jsx)(Q,{children:(0,q.jsx)(R,{text:O(r.text)})}),i.length===0?null:(0,q.jsx)(`div`,{className:`mt-2`,children:(0,q.jsx)(U,{files:i})})]})}function pe({proposal:e,roles:t,members:n}){let r=e.status===`proposed`,{charter:i}=e;switch(e.kind){case`member`:{let e=_.safeParse(i);if(!e.success)break;let t=e.data;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(J,{children:[(0,q.jsx)(Y,{label:`Citizen`,children:(0,q.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,q.jsx)(oe,{cli:t.cli,size:13}),t.name]})}),(0,q.jsx)(Y,{label:`Role`,children:t.role}),(0,q.jsxs)(Y,{label:`CLI and model`,children:[t.cli,` · `,t.model??`cli default`]}),(0,q.jsx)(Y,{label:`Projects`,children:X(t.memberships)}),(0,q.jsx)(Y,{label:`Also follows`,children:X(t.subscriptions)}),t.homeRunner===void 0?null:(0,q.jsx)(Y,{label:`Runs on`,children:t.homeRunner})]}),t.seedInstructions===void 0?null:(0,q.jsxs)(Q,{children:[(0,q.jsx)(`p`,{className:`text-caps`,children:`Seed instructions`}),(0,q.jsx)(`div`,{className:`mt-1.5`,children:(0,q.jsx)(R,{text:t.seedInstructions})})]})]})}case`role`:{let n=M(e);if(n===null)break;return(0,q.jsx)($,{next:n,current:t?.find(e=>e.name===n.name),compare:r})}case`skill`:{let t=g.safeParse(i);if(!t.success)break;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(J,{children:[(0,q.jsx)(Y,{label:`Skill`,children:t.data.name}),(0,q.jsx)(Y,{label:`Summary`,children:t.data.summary})]}),(0,q.jsx)(fe,{proposal:e})]})}case`channel`:{let e=v.safeParse(i);if(!e.success)break;return(0,q.jsxs)(J,{children:[(0,q.jsxs)(Y,{label:`Channel`,children:[`#`,d(e.data.project,e.data.name)]}),(0,q.jsx)(Y,{label:`Purpose`,children:e.data.purpose})]})}case`retirement`:{let e=ne.safeParse(i);if(!e.success)break;let t=n?.find(t=>t.name===e.data.agent);return(0,q.jsxs)(J,{children:[(0,q.jsxs)(Y,{label:`Citizen`,children:[(0,q.jsx)(F,{name:e.data.agent,members:n}),t===void 0?null:` · ${t.role}`]}),(0,q.jsx)(Y,{label:`Holds now`,children:t===void 0?`unknown`:t.claimsHeld===1?`1 stage`:`${t.claimsHeld} stages`}),(0,q.jsx)(Y,{label:`Reason`,children:e.data.reason})]})}case`archive`:{let t=b.safeParse(i);if(!t.success)break;return(0,q.jsx)(de,{proposal:e,slug:t.data.project,reason:t.data.reason,members:n})}case`reallocation`:{let n=h.safeParse(i);if(!n.success)break;return(0,q.jsx)(ue,{proposal:e,reallocation:n.data,current:t===void 0?void 0:t.find(e=>e.name===n.data.role)??null,compare:r})}}return(0,q.jsx)(`pre`,{className:`mt-2 overflow-x-auto rounded-lg bg-surface-2/40 p-3 font-mono text-[11px] text-fg-tertiary`,children:JSON.stringify(i,null,2)})}var me=i({agent:p().optional(),channel:p().optional(),role:p().optional(),skill:p().optional(),replaced:ee().optional(),releasedTasks:s(p()).optional(),project:p().optional()});function he({proposal:e}){let t=me.safeParse(e.provision??{});if(e.provision===void 0||!t.success)return null;let n=t.data,r=`text-fg-primary underline decoration-fg-muted underline-offset-2`;if(e.kind===`member`&&n.agent!==void 0)return(0,q.jsxs)(`p`,{className:`mt-1`,children:[`Created`,` `,(0,q.jsx)(m,{to:`/citizen/$name`,params:{name:n.agent},className:r,children:n.agent}),`.`]});if(e.kind===`channel`&&n.channel!==void 0)return(0,q.jsxs)(`p`,{className:`mt-1`,children:[`Created`,` `,(0,q.jsxs)(m,{to:`/c/$`,params:{_splat:n.channel},className:r,children:[`#`,n.channel]}),`.`]});if(e.kind===`retirement`&&n.agent!==void 0){let e=n.releasedTasks?.length??0;return(0,q.jsxs)(`p`,{className:`mt-1`,children:[`Retired `,n.agent,`; `,e===1?`1 stage went`:`${e} stages went`,` back to open.`]})}return e.kind===`archive`&&n.project!==void 0?(0,q.jsxs)(`p`,{className:`mt-1`,children:[`Archived`,` `,(0,q.jsx)(m,{to:`/p/$slug`,params:{slug:n.project},className:r,children:n.project}),`; its members left and its threads closed.`]}):n.role===void 0?n.skill===void 0?null:(0,q.jsxs)(`p`,{className:`mt-1`,children:[n.replaced===!0?`Replaced`:`Published`,` the society's skill `,n.skill,`.`]}):(0,q.jsxs)(`p`,{className:`mt-1`,children:[n.replaced===!0?`Rewrote`:`Added`,` the role `,n.role,`.`]})}function ge(){let{proposalId:r}=N({from:`/proposal/$proposalId`}),i=t(r),o=te(),s=n(),l=c(),d=u(),f=ie(3e4),p=I(),h=e(d.data?.some(e=>e.id===r)===!0?r:null);if(i.data===void 0)return(0,q.jsx)(V,{children:i.error instanceof a&&i.error.status===404?`There is no proposal ${r}.`:`Reading the proposal…`});let g=i.data,_=g.status===`proposed`,v=o.data?.find(e=>e.name===g.proposedBy)?.role,y=d.data?.find(e=>e.id===g.id),b=g.status===`rejected`?`Rejected`:`Approved`,x=k(g,{members:o.data??[],roles:s.data??[],skills:l.data??[]});return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(ce,{leading:(0,q.jsx)(L,{fallback:(0,q.jsx)(m,{to:`/proposals`,"aria-label":`Back to the proposals`,className:`grid size-7 shrink-0 place-items-center rounded-lg text-fg-tertiary hover:bg-surface-2/70 hover:text-fg-primary`,children:`←`})}),title:A(g),subtitle:`${g.kind} proposal by ${p(g.proposedBy)} ${S(g.createdAt,f)}${_?` · for ${j(g,v)} to decide`:``}`,trailing:(0,q.jsx)(W,{status:g.status})}),(0,q.jsxs)(H,{stick:!1,follow:!1,ids:h.data?.messages.map(e=>e.id),className:`px-4 py-4`,children:[_?(0,q.jsxs)(`p`,{className:`rounded-lg bg-sky-400/10 px-3 py-2 text-xs leading-relaxed text-sky-200`,children:[`If approved: `,x]}):(0,q.jsxs)(`div`,{className:`rounded-lg bg-surface-2/40 px-3 py-2 text-xs leading-relaxed text-fg-secondary`,children:[(0,q.jsxs)(`p`,{children:[b,` by `,p(g.decidedBy??`someone`),g.decidedAt===void 0?``:` ${S(g.decidedAt,f)}`,g.reason===void 0?`.`:`: ${g.reason}`]}),(0,q.jsx)(he,{proposal:g})]}),g.body.trim()===``||y!==void 0?null:(0,q.jsxs)(`section`,{className:`mt-5`,children:[(0,q.jsx)(`h3`,{className:`text-section`,children:`Why`}),(0,q.jsx)(`div`,{className:`mt-2`,children:(0,q.jsx)(R,{text:g.body})})]}),(0,q.jsxs)(`section`,{className:`mt-5 border-t border-line pt-4`,children:[(0,q.jsx)(`h3`,{className:`text-section`,children:_?`What it would make`:g.status===`provisioned`?`What it made`:`What it proposed`}),(0,q.jsx)(pe,{proposal:g,roles:s.data,members:o.data})]}),(0,q.jsxs)(`section`,{"aria-label":`Thread`,className:`mt-5 border-t border-line pt-4`,children:[(0,q.jsx)(`h3`,{className:`text-section`,children:`Thread`}),y===void 0?(0,q.jsx)(`p`,{className:`mt-2 text-meta`,children:d.data===void 0?`Reading the thread…`:`No thread on this proposal.`}):(0,q.jsx)(G,{thread:y,now:f,empty:`Nothing said yet.`})]})]},g.id),y?.state===`open`?(0,q.jsx)(P,{target:{threadId:g.id},placeholder:`Write in the proposal's thread`}):null,D(g)?(0,q.jsx)(le,{proposal:g}):null]})}export{ge as ProposalView};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Kn as e,T as t,Xn as n,Zt as r,qn as i,t as a,x as o}from"./format-Dhd2NUB3.js";import{i as s,o as c,t as l}from"./governance-CWzi7hzX.js";import{s as u}from"./index-iplooQqq.js";import{n as d,t as f}from"./Pane-C9TbEME4.js";var p=n(i(),1),m=e(),h=8,g={proposed:`bg-amber-500/15 text-amber-300`,approved:`bg-emerald-500/15 text-emerald-300`,provisioned:`bg-emerald-500/15 text-emerald-300`,rejected:`bg-red-500/15 text-red-300`,retired:`bg-surface-2 text-fg-muted`};function _({status:e}){return(0,m.jsx)(`span`,{className:`shrink-0 rounded-full px-2 py-0.5 text-[11px] font-medium ${g[e]}`,children:e===`provisioned`?`approved`:e})}function v({proposal:e,now:t}){let n=u(),i=e.decidedBy===void 0||e.decidedAt===void 0?``:` · ${e.status===`rejected`?`rejected`:`approved`} by ${n(e.decidedBy)} ${a(e.decidedAt,t)}`;return(0,m.jsx)(`li`,{children:(0,m.jsxs)(r,{to:`/proposal/$proposalId`,params:{proposalId:e.id},className:`block rounded-xl px-3 py-2.5 transition-colors hover:bg-surface-2/50`,children:[(0,m.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(`span`,{className:`text-title min-w-0 flex-1 truncate`,children:c(e)}),(0,m.jsx)(_,{status:e.status})]}),(0,m.jsxs)(`p`,{className:`mt-1 truncate text-meta`,children:[`proposed by `,n(e.proposedBy),` `,a(e.createdAt,t),i]})]})})}function y(){let e=t(),n=o(3e4),[r,i]=(0,p.useState)(!1),a=s(e.data??[]),c=a.find(e=>e.group===`yours`)?.proposals.length??0;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(f,{title:`Proposals`,subtitle:`${c===0?`nothing`:c} waiting on you · ${e.data?.length??0} in all`}),(0,m.jsx)(`div`,{className:`flex-1 overflow-y-auto px-2 py-2`,children:e.data===void 0?(0,m.jsx)(d,{children:`Reading the proposals…`}):a.length===0?(0,m.jsx)(d,{children:`No proposals yet.`}):a.map(e=>{let t=e.group===`decided`&&!r?e.proposals.slice(0,h):e.proposals;return(0,m.jsxs)(`section`,{className:`mb-3`,children:[(0,m.jsxs)(`h3`,{className:`px-3 pt-2 pb-1 text-[11px] font-semibold tracking-wider text-fg-muted uppercase`,children:[l.find(t=>t.group===e.group)?.label,` ·`,` `,e.proposals.length]}),(0,m.jsx)(`ul`,{children:t.map(e=>(0,m.jsx)(v,{proposal:e,now:n},e.id))}),t.length<e.proposals.length?(0,m.jsxs)(`button`,{type:`button`,onClick:()=>i(!0),className:`px-3 pt-1 text-xs text-fg-tertiary hover:text-fg-primary`,children:[`Show all `,e.proposals.length]}):null]},e.group)})})]})}export{y as ProposalsView,_ as StatusChip};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{At as e,Gn as t,Kn as n,Mt as r,Xn as i,Zt as a,j as o,jt as s,kt as c,qn as l,t as u}from"./format-Dhd2NUB3.js";import{n as d,t as f}from"./Button-D4-iu6aX.js";import{t as p}from"./CliIcon-DL4ZwgZv.js";import{d as m}from"./citizen-BOn5BBRL.js";var h=i(l(),1);function g(e,t){return e===void 0||t-Date.parse(e.observedAt)>=9e5}function _(t){let n=[];for(let r of t)for(let t of r.clis){let i=r.quotas?.[t],a=i===void 0?void 0:n.find(n=>n.cli===t&&n.quota!==void 0&&e(n.quota,i));a===void 0?n.push({cli:t,runners:[r.name],quota:i,connected:r.status===`connected`}):a.runners.push(r.name)}return n}function v(e){let t=Math.max(1,Math.round(e/6e4));if(t<60)return`${t}m`;let n=Math.floor(t/60);return n<24?`${n}h ${t%60}m`:`${Math.floor(n/24)}d ${n%24}h`}function y(e,t){let n=r(e);if(!s(e,new Date(t)))return{name:n,percent:null,label:`reset`,reset:`reset since read`,high:!1};let i=e.usedPercent;return{name:n,percent:i===null?null:Math.min(100,i),label:i===null?`?`:`${Math.floor(i)}%`,reset:e.resetsAt===null?``:`resets in ${v(Date.parse(e.resetsAt)-t)}`,high:i!==null&&i>=80}}function b(e,t){let n=c(e,new Date(t));return n===`limited`?{level:n,words:e.limitedUntil===null?`limited`:`limited for ${v(Date.parse(e.limitedUntil)-t)}`,tone:`text-red-300`}:n===`warning`?{level:n,words:`near a limit`,tone:`text-amber-300`}:{level:n,words:n===`none`?`no plan limits reported`:``,tone:`text-fg-muted`}}function x(e,t){if(e===void 0)return`unknown`;let{level:n,words:r}=b(e,t);return n===`limited`||n===`none`?r:[...e.windows.map(e=>y(e,t)).map(e=>`${e.name} ${e.label}`),...r===``?[]:[r]].join(` · `)||`no windows reported`}var S=n(),C={claude:`bg-claude`,codex:`bg-codex`};function w(e){if(e.credits!==null){if(e.credits.unlimited)return`unlimited credits`;let t=Number(e.credits.balance);return e.credits.balance===null||Number.isNaN(t)?null:`credits ${t.toLocaleString(`en`)}`}let t=e.extraUsage;if(t===null||!t.enabled||t.usedCredits===null)return null;let n=e=>`${(e/100).toFixed(2)}${t.currency===null?``:` ${t.currency}`}`;return`extra usage ${n(t.usedCredits)}${t.monthlyLimit===null?``:` of ${n(t.monthlyLimit)}`}`}function T({cli:e,quota:t,now:n}){let r=b(t,n).level===`limited`?t.limitedBy:null;return(0,S.jsx)(`ul`,{className:`col-span-full mt-1 grid grid-cols-subgrid gap-y-0.5 pl-6`,children:t.windows.map(t=>{let i=y(t,n),a=t.key===r||(i.percent??0)>=100?`bg-red-400`:i.high?`bg-amber-400`:C[e];return(0,S.jsxs)(`li`,{className:`col-span-full grid grid-cols-subgrid items-center text-xs`,children:[(0,S.jsx)(`span`,{className:`text-fg-secondary`,children:i.name}),(0,S.jsx)(`span`,{"aria-hidden":`true`,className:`h-1.5 overflow-hidden rounded-full bg-surface-2`,children:(0,S.jsx)(`span`,{className:`block h-full rounded-full ${a}`,style:{width:`${i.percent??0}%`}})}),(0,S.jsx)(`span`,{className:`text-right text-fg-secondary tabular-nums`,children:i.label}),(0,S.jsx)(`span`,{className:`truncate text-fg-muted`,title:t.resetsAt===null?void 0:t.resetsAt,children:i.reset})]},t.key)})})}function E(e,t,n,r){if(n)return{words:`reading…`,detail:`asking the CLI on the runner`,tone:`text-fg-muted`};let i=e.quota;if(r!==void 0&&i===void 0)return{words:r.includes(`upgrade it`)?`runner too old to read`:`read failed`,detail:r,tone:`text-amber-300`};if(i===void 0)return e.connected?{words:`unknown`,detail:`nothing reported yet`,tone:`text-fg-muted`}:{words:`unknown`,detail:`nothing reported yet, and the runner is away`,tone:`text-fg-muted`};let{words:a,tone:o}=b(i,t),s=`as of ${u(i.observedAt,t)}`,c=i.source===`read`?`read on request`:`reported by a turn`;return{words:a===``?s:`${a} · ${s}`,detail:`${c} at ${i.observedAt}${r===void 0?``:`; the last read failed: ${r}`}`,tone:g(i,t)&&a===``?`text-fg-muted`:o}}function D({runners:e,now:n}){let{api:r}=o(),i=t(),[a,s]=(0,h.useState)(new Set),[c,l]=(0,h.useState)(new Map),u=(0,h.useRef)(new Set),{mutate:m}=d({mutationFn:({runner:e,cli:t})=>r.readQuota(e,t),onMutate:({runner:e,cli:t})=>{s(n=>new Set(n).add(`${e}/${t}`))},onSuccess:(e,{runner:t,cli:n})=>{l(e=>{let r=new Map(e);return r.delete(`${t}/${n}`),r})},onError:(e,{runner:t,cli:n})=>{l(r=>new Map(r).set(`${t}/${n}`,e.message))},onSettled:(e,t,{runner:n,cli:r})=>{s(e=>{let t=new Set(e);return t.delete(`${n}/${r}`),t}),i.invalidateQueries({queryKey:[`runners`]})}});(0,h.useEffect)(()=>{for(let t of e)if(t.status===`connected`)for(let e of t.clis){let n=`${t.name}/${e}`;!u.current.has(n)&&g(t.quotas?.[e],Date.now())&&(u.current.add(n),m({runner:t.name,cli:e}))}},[e,m]);let v=e.filter(e=>e.status===`connected`),y=_(e);return y.length===0?null:(0,S.jsxs)(`section`,{"aria-label":`Plan quota`,className:`mt-3 border-t border-line pt-3`,children:[(0,S.jsxs)(`div`,{className:`flex items-center gap-2 px-2`,children:[(0,S.jsx)(`h2`,{className:`flex-1 text-section text-fg-primary`,children:`Plan quota`}),(0,S.jsx)(f,{className:`-mr-3`,disabled:v.length===0||a.size>0,onClick:()=>{for(let e of v)for(let t of e.clis)m({runner:e.name,cli:t})},children:a.size>0?`Reading…`:`Read again`})]}),(0,S.jsx)(`ul`,{"aria-label":`Quota by runner`,className:`mt-1.5 grid grid-cols-[auto_minmax(3rem,7rem)_auto_minmax(0,1fr)] gap-x-2 gap-y-1`,children:y.map(e=>{let t=e.runners[0]??``,r=`${t}/${e.cli}`,i=E(e,n,a.has(r),c.get(r)),o=e.quota?.plan,s=e.quota===void 0?null:w(e.quota);return(0,S.jsxs)(`li`,{className:`col-span-full grid grid-cols-subgrid rounded-lg px-2 py-1.5`,children:[(0,S.jsxs)(`div`,{className:`col-span-full flex items-center gap-2 text-sm`,children:[(0,S.jsx)(p,{cli:e.cli,size:13}),(0,S.jsx)(`span`,{className:`text-fg-primary`,children:e.runners.join(` · `)}),(0,S.jsxs)(`span`,{className:`text-xs text-fg-muted`,children:[e.cli,o==null?``:` · ${o}`,s===null?``:` · ${s}`]}),(0,S.jsxs)(`span`,{className:`ml-auto text-right text-xs ${i.tone}`,title:i.detail,children:[i.words,(0,S.jsxs)(`span`,{className:`sr-only`,children:[`, `,i.detail]})]})]}),e.quota===void 0||e.quota.windows.length===0?null:(0,S.jsx)(T,{cli:e.cli,quota:e.quota,now:n}),e.runners.length>1?(0,S.jsxs)(`p`,{className:`col-span-full pt-0.5 pl-6 text-meta`,children:[`Same numbers on `,e.runners.join(` and `)]}):null]},`${e.cli}/${t}`)})})]})}function O({member:e,runners:t,placed:n,now:r}){let i=e.cli,o=m(e,n);return i===null||o.length===0?null:(0,S.jsxs)(`p`,{className:`border-b border-line px-4 py-1.5 text-meta`,children:[(0,S.jsxs)(a,{to:`/runners`,className:`hover:text-fg-primary`,children:[i,` quota`]}),o.map(e=>{let n=t.find(t=>t.name===e)?.quotas?.[i],a=n===void 0?``:b(n,r).tone;return(0,S.jsxs)(`span`,{children:[` · `,e,` `,(0,S.jsx)(`span`,{className:a,title:n===void 0?`nothing reported yet`:`as of ${n.observedAt}`,children:x(n,r)})]},e)})]})}function k({member:e,runners:t,placed:n,now:r}){let i=e.cli;if(i===null)return null;let a=m(e,n).flatMap(e=>{let n=t.find(t=>t.name===e)?.quotas?.[i];if(n===void 0)return[];let{level:a,words:o}=b(n,r);return a===`limited`||a===`warning`?[{name:e,level:a,words:o}]:[]});if(a.length===0)return null;let o=a.some(e=>e.level===`limited`),s=a.map(e=>`${i} ${e.words} on ${e.name}`).join(`; `);return(0,S.jsx)(`span`,{title:s,className:`absolute -top-0.5 -right-0.5 size-1.5 rounded-full ${o?`bg-red-400`:`bg-amber-400`}`,children:(0,S.jsxs)(`span`,{className:`sr-only`,children:[`, `,s]})})}export{D as n,k as r,O as t};
|