zdashboard 2.11.2 → 2.12.1
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.js +2 -1
- package/dist/cli.js.map +1 -1
- package/dist/web/assets/{CodeViewer-C2VZQ2UQ.js → CodeViewer-Dxlw7RnH.js} +1 -1
- package/dist/web/assets/{FileIcon-C-3sZoQF.js → FileIcon-DEXf9oCF.js} +1 -1
- package/dist/web/assets/{FilterPills-CNr38-5Y.js → FilterPills-BZwzyDRQ.js} +1 -1
- package/dist/web/assets/{Sidebar-9KOG4nkE.js → Sidebar-BLjYbvRT.js} +1 -1
- package/dist/web/assets/{Sidebar-YR3_9vhn.js → Sidebar-CttCg64y.js} +1 -1
- package/dist/web/assets/{Workspace-DG5fZnNW.js → Workspace-B5Nn0L3J.js} +1 -1
- package/dist/web/assets/Workspace-Cf7ZMclE.js +1 -0
- package/dist/web/assets/{Workspace-DH3iHI4T.js → Workspace-Cn_qfesY.js} +1 -1
- package/dist/web/assets/{Workspace-m0Ff-jIC.js → Workspace-D71kFE3G.js} +1 -1
- package/dist/web/assets/{index-Bfe1AHR3.css → index-Bd4-oORn.css} +1 -1
- package/dist/web/assets/{index-DkIxtopr.js → index-DJiq_38M.js} +5 -5
- package/dist/web/assets/{usePluginData-CDskp8Eo.js → usePluginData-BmlgMZle.js} +1 -1
- package/dist/web/assets/{web-BcUVoLfJ.js → web-5OFeHrya.js} +2 -2
- package/dist/web/assets/{web-DkaqJeu-.js → web-C47Nea8q.js} +2 -2
- package/dist/web/assets/{web-DZrX4dAh.js → web-ONYPO1IN.js} +2 -2
- package/dist/web/assets/{web-FIt_7MBb.js → web-vocphEUd.js} +2 -2
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/web/assets/Workspace-B519XBKX.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as tt,j as Ae,d as Ba,g as Jr}from"./vendor-react-CDaMBvJU.js";import{u as qg}from"./vendor-ui-dpI0b3Ao.js";import{f as Vg,v as $g}from"./fetchJson-D-dWeu1j.js";import{u as $S,e as WS,E as Ou,f as KS}from"./index-DkIxtopr.js";const QS=300;function XS(e){const t=tt.useRef(null),n=tt.useRef(e);tt.useEffect(()=>{n.current=e}),WS("files",()=>{t.current&&clearTimeout(t.current),t.current=setTimeout(()=>{t.current=null,n.current()},QS)}),tt.useEffect(()=>()=>{t.current&&clearTimeout(t.current)},[])}function vu(){const[e,t]=tt.useState(0),n=tt.useCallback(()=>t(r=>r+1),[]);return XS(n),[e,n]}function Iu({onClick:e}){const{icon:t}=$S();return Ae.jsxs("button",{type:"button",onClick:e,"aria-label":"刷新",title:"刷新",className:"flex items-center gap-1 px-2 py-0.5 rounded-[var(--radius-md)] border border-border bg-background/80 text-sm hover:bg-muted transition-colors",children:[t("refresh-cw","h-3.5 w-3.5"),Ae.jsx("span",{children:"刷新"})]})}function Ld(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const s=n.slice(a,r).trim();(s||!i)&&t.push(s),a=r+1,r=n.indexOf(",",a)}return t}function Wg(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const ZS=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,JS=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,jS={};function kd(e,t){return(jS.jsx?JS:ZS).test(e)}const eT=/[ \t\n\f\r]/g;function tT(e){return typeof e=="object"?e.type==="text"?Pd(e.value):!1:Pd(e)}function Pd(e){return e.replace(eT,"")===""}class jr{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}jr.prototype.normal={};jr.prototype.property={};jr.prototype.space=void 0;function Kg(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new jr(n,r,t)}function Yr(e){return e.toLowerCase()}class Mt{constructor(t,n){this.attribute=n,this.property=t}}Mt.prototype.attribute="";Mt.prototype.booleanish=!1;Mt.prototype.boolean=!1;Mt.prototype.commaOrSpaceSeparated=!1;Mt.prototype.commaSeparated=!1;Mt.prototype.defined=!1;Mt.prototype.mustUseProperty=!1;Mt.prototype.number=!1;Mt.prototype.overloadedBoolean=!1;Mt.prototype.property="";Mt.prototype.spaceSeparated=!1;Mt.prototype.space=void 0;let nT=0;const Oe=Wn(),at=Wn(),zc=Wn(),ie=Wn(),qe=Wn(),Hn=Wn(),Lt=Wn();function Wn(){return 2**++nT}const qc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Oe,booleanish:at,commaOrSpaceSeparated:Lt,commaSeparated:Hn,number:ie,overloadedBoolean:zc,spaceSeparated:qe},Symbol.toStringTag,{value:"Module"})),Oi=Object.keys(qc);class Du extends Mt{constructor(t,n,r,a){let i=-1;if(super(t,n),Fd(this,"space",a),typeof r=="number")for(;++i<Oi.length;){const s=Oi[i];Fd(this,Oi[i],(r&qc[s])===qc[s])}}}Du.prototype.defined=!0;function Fd(e,t,n){n&&(e[t]=n)}function Er(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new Du(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Yr(r)]=r,n[Yr(i.attribute)]=r}return new jr(t,n,e.space)}const Qg=Er({properties:{ariaActiveDescendant:null,ariaAtomic:at,ariaAutoComplete:null,ariaBusy:at,ariaChecked:at,ariaColCount:ie,ariaColIndex:ie,ariaColSpan:ie,ariaControls:qe,ariaCurrent:null,ariaDescribedBy:qe,ariaDetails:null,ariaDisabled:at,ariaDropEffect:qe,ariaErrorMessage:null,ariaExpanded:at,ariaFlowTo:qe,ariaGrabbed:at,ariaHasPopup:null,ariaHidden:at,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:qe,ariaLevel:ie,ariaLive:null,ariaModal:at,ariaMultiLine:at,ariaMultiSelectable:at,ariaOrientation:null,ariaOwns:qe,ariaPlaceholder:null,ariaPosInSet:ie,ariaPressed:at,ariaReadOnly:at,ariaRelevant:null,ariaRequired:at,ariaRoleDescription:qe,ariaRowCount:ie,ariaRowIndex:ie,ariaRowSpan:ie,ariaSelected:at,ariaSetSize:ie,ariaSort:null,ariaValueMax:ie,ariaValueMin:ie,ariaValueNow:ie,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Xg(e,t){return t in e?e[t]:t}function Zg(e,t){return Xg(e,t.toLowerCase())}const rT=Er({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Hn,acceptCharset:qe,accessKey:qe,action:null,allow:null,allowFullScreen:Oe,allowPaymentRequest:Oe,allowUserMedia:Oe,alpha:Oe,alt:null,as:null,async:Oe,autoCapitalize:null,autoComplete:qe,autoFocus:Oe,autoPlay:Oe,blocking:qe,capture:null,charSet:null,checked:Oe,cite:null,className:qe,closedBy:null,colorSpace:null,cols:ie,colSpan:ie,command:null,commandFor:null,content:null,contentEditable:at,controls:Oe,controlsList:qe,coords:ie|Hn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Oe,defer:Oe,dir:null,dirName:null,disabled:Oe,download:zc,draggable:at,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Oe,formTarget:null,headers:qe,height:ie,hidden:zc,high:ie,href:null,hrefLang:null,htmlFor:qe,httpEquiv:qe,id:null,imageSizes:null,imageSrcSet:null,inert:Oe,inputMode:null,integrity:null,is:null,isMap:Oe,itemId:null,itemProp:qe,itemRef:qe,itemScope:Oe,itemType:qe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Oe,low:ie,manifest:null,max:null,maxLength:ie,media:null,method:null,min:null,minLength:ie,multiple:Oe,muted:Oe,name:null,nonce:null,noModule:Oe,noValidate:Oe,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:Oe,optimum:ie,pattern:null,ping:qe,placeholder:null,playsInline:Oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Oe,referrerPolicy:null,rel:qe,required:Oe,reversed:Oe,rows:ie,rowSpan:ie,sandbox:qe,scope:null,scoped:Oe,seamless:Oe,selected:Oe,shadowRootClonable:Oe,shadowRootCustomElementRegistry:Oe,shadowRootDelegatesFocus:Oe,shadowRootMode:null,shadowRootSerializable:Oe,shape:null,size:ie,sizes:null,slot:null,span:ie,spellCheck:at,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ie,step:null,style:null,tabIndex:ie,target:null,title:null,translate:null,type:null,typeMustMatch:Oe,useMap:null,value:at,width:ie,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:qe,axis:null,background:null,bgColor:null,border:ie,borderColor:null,bottomMargin:ie,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Oe,declare:Oe,event:null,face:null,frame:null,frameBorder:null,hSpace:ie,leftMargin:ie,link:null,longDesc:null,lowSrc:null,marginHeight:ie,marginWidth:ie,noResize:Oe,noHref:Oe,noShade:Oe,noWrap:Oe,object:null,profile:null,prompt:null,rev:null,rightMargin:ie,rules:null,scheme:null,scrolling:at,standby:null,summary:null,text:null,topMargin:ie,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ie,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Oe,disablePictureInPicture:Oe,disableRemotePlayback:Oe,exportParts:Hn,part:qe,prefix:null,property:null,results:ie,security:null,unselectable:null},space:"html",transform:Zg}),aT=Er({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:Lt,accentHeight:ie,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ie,amplitude:ie,arabicForm:null,ascent:ie,attributeName:null,attributeType:null,azimuth:ie,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ie,by:null,calcMode:null,capHeight:ie,className:qe,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:ie,diffuseConstant:ie,direction:null,display:null,dur:null,divisor:ie,dominantBaseline:null,download:Oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:ie,enableBackground:null,end:null,event:null,exponent:ie,externalResourcesRequired:null,fill:null,fillOpacity:ie,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:Hn,g2:Hn,glyphName:Hn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ie,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ie,horizOriginX:ie,horizOriginY:ie,id:null,ideographic:ie,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ie,k:ie,k1:ie,k2:ie,k3:ie,k4:ie,kernelMatrix:Lt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ie,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:ie,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:ie,overlineThickness:ie,paintOrder:null,panose1:null,path:null,pathLength:ie,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:qe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ie,pointsAtY:ie,pointsAtZ:ie,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Lt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Lt,rev:Lt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Lt,requiredFeatures:Lt,requiredFonts:Lt,requiredFormats:Lt,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:ie,specularExponent:ie,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ie,strikethroughThickness:ie,string:null,stroke:null,strokeDashArray:Lt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ie,strokeOpacity:ie,strokeWidth:null,style:null,surfaceScale:ie,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Lt,tabIndex:ie,tableValues:null,target:null,targetX:ie,targetY:ie,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Lt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ie,underlineThickness:ie,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ie,values:null,vAlphabetic:ie,vMathematical:ie,vectorEffect:null,vHanging:ie,vIdeographic:ie,version:null,vertAdvY:ie,vertOriginX:ie,vertOriginY:ie,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ie,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Xg}),Jg=Er({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()}}),jg=Er({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Zg}),ef=Er({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),iT={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"},sT=/[A-Z]/g,Bd=/-[a-z]/g,oT=/^data[-\w.:]+$/i;function ei(e,t){const n=Yr(t);let r=t,a=Mt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&oT.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Bd,cT);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Bd.test(i)){let s=i.replace(sT,lT);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=Du}return new a(r,t)}function lT(e){return"-"+e.toLowerCase()}function cT(e){return e.charAt(1).toUpperCase()}const ea=Kg([Qg,rT,Jg,jg,ef],"html"),Dn=Kg([Qg,aT,Jg,jg,ef],"svg");function Ud(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function tf(e){return e.join(" ").trim()}var xu={},Gd=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,uT=/\n/g,dT=/^\s*/,_T=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,mT=/^:\s*/,pT=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ET=/^[;\s]*/,gT=/^\s+|\s+$/g,fT=`
|
|
1
|
+
import{r as tt,j as Ae,d as Ba,g as Jr}from"./vendor-react-CDaMBvJU.js";import{u as qg}from"./vendor-ui-dpI0b3Ao.js";import{f as Vg,v as $g}from"./fetchJson-D-dWeu1j.js";import{u as $S,e as WS,E as Ou,f as KS}from"./index-DJiq_38M.js";const QS=300;function XS(e){const t=tt.useRef(null),n=tt.useRef(e);tt.useEffect(()=>{n.current=e}),WS("files",()=>{t.current&&clearTimeout(t.current),t.current=setTimeout(()=>{t.current=null,n.current()},QS)}),tt.useEffect(()=>()=>{t.current&&clearTimeout(t.current)},[])}function vu(){const[e,t]=tt.useState(0),n=tt.useCallback(()=>t(r=>r+1),[]);return XS(n),[e,n]}function Iu({onClick:e}){const{icon:t}=$S();return Ae.jsxs("button",{type:"button",onClick:e,"aria-label":"刷新",title:"刷新",className:"flex items-center gap-1 px-2 py-0.5 rounded-[var(--radius-md)] border border-border bg-background/80 text-sm hover:bg-muted transition-colors",children:[t("refresh-cw","h-3.5 w-3.5"),Ae.jsx("span",{children:"刷新"})]})}function Ld(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const s=n.slice(a,r).trim();(s||!i)&&t.push(s),a=r+1,r=n.indexOf(",",a)}return t}function Wg(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const ZS=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,JS=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,jS={};function kd(e,t){return(jS.jsx?JS:ZS).test(e)}const eT=/[ \t\n\f\r]/g;function tT(e){return typeof e=="object"?e.type==="text"?Pd(e.value):!1:Pd(e)}function Pd(e){return e.replace(eT,"")===""}class jr{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}jr.prototype.normal={};jr.prototype.property={};jr.prototype.space=void 0;function Kg(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new jr(n,r,t)}function Yr(e){return e.toLowerCase()}class Mt{constructor(t,n){this.attribute=n,this.property=t}}Mt.prototype.attribute="";Mt.prototype.booleanish=!1;Mt.prototype.boolean=!1;Mt.prototype.commaOrSpaceSeparated=!1;Mt.prototype.commaSeparated=!1;Mt.prototype.defined=!1;Mt.prototype.mustUseProperty=!1;Mt.prototype.number=!1;Mt.prototype.overloadedBoolean=!1;Mt.prototype.property="";Mt.prototype.spaceSeparated=!1;Mt.prototype.space=void 0;let nT=0;const Oe=Wn(),at=Wn(),zc=Wn(),ie=Wn(),qe=Wn(),Hn=Wn(),Lt=Wn();function Wn(){return 2**++nT}const qc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Oe,booleanish:at,commaOrSpaceSeparated:Lt,commaSeparated:Hn,number:ie,overloadedBoolean:zc,spaceSeparated:qe},Symbol.toStringTag,{value:"Module"})),Oi=Object.keys(qc);class Du extends Mt{constructor(t,n,r,a){let i=-1;if(super(t,n),Fd(this,"space",a),typeof r=="number")for(;++i<Oi.length;){const s=Oi[i];Fd(this,Oi[i],(r&qc[s])===qc[s])}}}Du.prototype.defined=!0;function Fd(e,t,n){n&&(e[t]=n)}function Er(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new Du(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Yr(r)]=r,n[Yr(i.attribute)]=r}return new jr(t,n,e.space)}const Qg=Er({properties:{ariaActiveDescendant:null,ariaAtomic:at,ariaAutoComplete:null,ariaBusy:at,ariaChecked:at,ariaColCount:ie,ariaColIndex:ie,ariaColSpan:ie,ariaControls:qe,ariaCurrent:null,ariaDescribedBy:qe,ariaDetails:null,ariaDisabled:at,ariaDropEffect:qe,ariaErrorMessage:null,ariaExpanded:at,ariaFlowTo:qe,ariaGrabbed:at,ariaHasPopup:null,ariaHidden:at,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:qe,ariaLevel:ie,ariaLive:null,ariaModal:at,ariaMultiLine:at,ariaMultiSelectable:at,ariaOrientation:null,ariaOwns:qe,ariaPlaceholder:null,ariaPosInSet:ie,ariaPressed:at,ariaReadOnly:at,ariaRelevant:null,ariaRequired:at,ariaRoleDescription:qe,ariaRowCount:ie,ariaRowIndex:ie,ariaRowSpan:ie,ariaSelected:at,ariaSetSize:ie,ariaSort:null,ariaValueMax:ie,ariaValueMin:ie,ariaValueNow:ie,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Xg(e,t){return t in e?e[t]:t}function Zg(e,t){return Xg(e,t.toLowerCase())}const rT=Er({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Hn,acceptCharset:qe,accessKey:qe,action:null,allow:null,allowFullScreen:Oe,allowPaymentRequest:Oe,allowUserMedia:Oe,alpha:Oe,alt:null,as:null,async:Oe,autoCapitalize:null,autoComplete:qe,autoFocus:Oe,autoPlay:Oe,blocking:qe,capture:null,charSet:null,checked:Oe,cite:null,className:qe,closedBy:null,colorSpace:null,cols:ie,colSpan:ie,command:null,commandFor:null,content:null,contentEditable:at,controls:Oe,controlsList:qe,coords:ie|Hn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Oe,defer:Oe,dir:null,dirName:null,disabled:Oe,download:zc,draggable:at,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Oe,formTarget:null,headers:qe,height:ie,hidden:zc,high:ie,href:null,hrefLang:null,htmlFor:qe,httpEquiv:qe,id:null,imageSizes:null,imageSrcSet:null,inert:Oe,inputMode:null,integrity:null,is:null,isMap:Oe,itemId:null,itemProp:qe,itemRef:qe,itemScope:Oe,itemType:qe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Oe,low:ie,manifest:null,max:null,maxLength:ie,media:null,method:null,min:null,minLength:ie,multiple:Oe,muted:Oe,name:null,nonce:null,noModule:Oe,noValidate:Oe,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:Oe,optimum:ie,pattern:null,ping:qe,placeholder:null,playsInline:Oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Oe,referrerPolicy:null,rel:qe,required:Oe,reversed:Oe,rows:ie,rowSpan:ie,sandbox:qe,scope:null,scoped:Oe,seamless:Oe,selected:Oe,shadowRootClonable:Oe,shadowRootCustomElementRegistry:Oe,shadowRootDelegatesFocus:Oe,shadowRootMode:null,shadowRootSerializable:Oe,shape:null,size:ie,sizes:null,slot:null,span:ie,spellCheck:at,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ie,step:null,style:null,tabIndex:ie,target:null,title:null,translate:null,type:null,typeMustMatch:Oe,useMap:null,value:at,width:ie,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:qe,axis:null,background:null,bgColor:null,border:ie,borderColor:null,bottomMargin:ie,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Oe,declare:Oe,event:null,face:null,frame:null,frameBorder:null,hSpace:ie,leftMargin:ie,link:null,longDesc:null,lowSrc:null,marginHeight:ie,marginWidth:ie,noResize:Oe,noHref:Oe,noShade:Oe,noWrap:Oe,object:null,profile:null,prompt:null,rev:null,rightMargin:ie,rules:null,scheme:null,scrolling:at,standby:null,summary:null,text:null,topMargin:ie,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ie,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Oe,disablePictureInPicture:Oe,disableRemotePlayback:Oe,exportParts:Hn,part:qe,prefix:null,property:null,results:ie,security:null,unselectable:null},space:"html",transform:Zg}),aT=Er({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:Lt,accentHeight:ie,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ie,amplitude:ie,arabicForm:null,ascent:ie,attributeName:null,attributeType:null,azimuth:ie,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ie,by:null,calcMode:null,capHeight:ie,className:qe,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:ie,diffuseConstant:ie,direction:null,display:null,dur:null,divisor:ie,dominantBaseline:null,download:Oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:ie,enableBackground:null,end:null,event:null,exponent:ie,externalResourcesRequired:null,fill:null,fillOpacity:ie,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:Hn,g2:Hn,glyphName:Hn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ie,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ie,horizOriginX:ie,horizOriginY:ie,id:null,ideographic:ie,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ie,k:ie,k1:ie,k2:ie,k3:ie,k4:ie,kernelMatrix:Lt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ie,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:ie,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:ie,overlineThickness:ie,paintOrder:null,panose1:null,path:null,pathLength:ie,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:qe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ie,pointsAtY:ie,pointsAtZ:ie,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Lt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Lt,rev:Lt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Lt,requiredFeatures:Lt,requiredFonts:Lt,requiredFormats:Lt,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:ie,specularExponent:ie,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ie,strikethroughThickness:ie,string:null,stroke:null,strokeDashArray:Lt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ie,strokeOpacity:ie,strokeWidth:null,style:null,surfaceScale:ie,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Lt,tabIndex:ie,tableValues:null,target:null,targetX:ie,targetY:ie,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Lt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ie,underlineThickness:ie,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ie,values:null,vAlphabetic:ie,vMathematical:ie,vectorEffect:null,vHanging:ie,vIdeographic:ie,version:null,vertAdvY:ie,vertOriginX:ie,vertOriginY:ie,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ie,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Xg}),Jg=Er({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()}}),jg=Er({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Zg}),ef=Er({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),iT={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"},sT=/[A-Z]/g,Bd=/-[a-z]/g,oT=/^data[-\w.:]+$/i;function ei(e,t){const n=Yr(t);let r=t,a=Mt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&oT.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Bd,cT);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Bd.test(i)){let s=i.replace(sT,lT);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=Du}return new a(r,t)}function lT(e){return"-"+e.toLowerCase()}function cT(e){return e.charAt(1).toUpperCase()}const ea=Kg([Qg,rT,Jg,jg,ef],"html"),Dn=Kg([Qg,aT,Jg,jg,ef],"svg");function Ud(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function tf(e){return e.join(" ").trim()}var xu={},Gd=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,uT=/\n/g,dT=/^\s*/,_T=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,mT=/^:\s*/,pT=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ET=/^[;\s]*/,gT=/^\s+|\s+$/g,fT=`
|
|
2
2
|
`,Hd="/",Yd="*",Un="",hT="comment",bT="declaration";function ST(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(f){var h=f.match(uT);h&&(n+=h.length);var S=f.lastIndexOf(fT);r=~S?f.length-S:r+f.length}function i(){var f={line:n,column:r};return function(h){return h.position=new s(f),c(),h}}function s(f){this.start=f,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function o(f){var h=new Error(t.source+":"+n+":"+r+": "+f);if(h.reason=f,h.filename=t.source,h.line=n,h.column=r,h.source=e,!t.silent)throw h}function l(f){var h=f.exec(e);if(h){var S=h[0];return a(S),e=e.slice(S.length),h}}function c(){l(dT)}function u(f){var h;for(f=f||[];h=d();)h!==!1&&f.push(h);return f}function d(){var f=i();if(!(Hd!=e.charAt(0)||Yd!=e.charAt(1))){for(var h=2;Un!=e.charAt(h)&&(Yd!=e.charAt(h)||Hd!=e.charAt(h+1));)++h;if(h+=2,Un===e.charAt(h-1))return o("End of comment missing");var S=e.slice(2,h-2);return r+=2,a(S),e=e.slice(h),r+=2,f({type:hT,comment:S})}}function p(){var f=i(),h=l(_T);if(h){if(d(),!l(mT))return o("property missing ':'");var S=l(pT),T=f({type:bT,property:zd(h[0].replace(Gd,Un)),value:S?zd(S[0].replace(Gd,Un)):Un});return l(ET),T}}function m(){var f=[];u(f);for(var h;h=p();)h!==!1&&(f.push(h),u(f));return f}return c(),m()}function zd(e){return e?e.replace(gT,Un):Un}var TT=ST,CT=Ba&&Ba.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xu,"__esModule",{value:!0});xu.default=RT;const NT=CT(TT);function RT(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,NT.default)(e),a=typeof t=="function";return r.forEach(i=>{if(i.type!=="declaration")return;const{property:s,value:o}=i;a?t(s,o,i):o&&(n=n||{},n[s]=o)}),n}var ti={};Object.defineProperty(ti,"__esModule",{value:!0});ti.camelCase=void 0;var AT=/^--[a-zA-Z0-9_-]+$/,yT=/-([a-z])/g,OT=/^[^-]+$/,vT=/^-(webkit|moz|ms|o|khtml)-/,IT=/^-(ms)-/,DT=function(e){return!e||OT.test(e)||AT.test(e)},xT=function(e,t){return t.toUpperCase()},qd=function(e,t){return"".concat(t,"-")},wT=function(e,t){return t===void 0&&(t={}),DT(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(IT,qd):e=e.replace(vT,qd),e.replace(yT,xT))};ti.camelCase=wT;var MT=Ba&&Ba.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},LT=MT(xu),kT=ti;function Vc(e,t){var n={};return!e||typeof e!="string"||(0,LT.default)(e,function(r,a){r&&a&&(n[(0,kT.camelCase)(r,t)]=a)}),n}Vc.default=Vc;var PT=Vc;const FT=Jr(PT),ni=nf("end"),jt=nf("start");function nf(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function BT(e){const t=jt(e),n=ni(e);if(t&&n)return{start:t,end:n}}function wr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Vd(e.position):"start"in e||"end"in e?Vd(e):"line"in e||"column"in e?$c(e):""}function $c(e){return $d(e&&e.line)+":"+$d(e&&e.column)}function Vd(e){return $c(e&&e.start)+"-"+$c(e&&e.end)}function $d(e){return e&&typeof e=="number"?e:1}class St extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},s=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(s=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const 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=a,this.line=o?o.line:void 0,this.name=wr(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=s&&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}}St.prototype.file="";St.prototype.name="";St.prototype.reason="";St.prototype.message="";St.prototype.stack="";St.prototype.column=void 0;St.prototype.line=void 0;St.prototype.ancestors=void 0;St.prototype.cause=void 0;St.prototype.fatal=void 0;St.prototype.place=void 0;St.prototype.ruleId=void 0;St.prototype.source=void 0;const wu={}.hasOwnProperty,UT=new Map,GT=/[A-Z]/g,HT=new Set(["table","tbody","thead","tfoot","tr"]),YT=new Set(["td","th"]),rf="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function zT(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=ZT(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=XT(n,t.jsx,t.jsxs)}const a={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"?Dn:ea,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=af(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function af(e,t,n){if(t.type==="element")return qT(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return VT(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return WT(e,t,n);if(t.type==="mdxjsEsm")return $T(e,t);if(t.type==="root")return KT(e,t,n);if(t.type==="text")return QT(e,t)}function qT(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=Dn,e.schema=a),e.ancestors.push(t);const i=of(e,t.tagName,!1),s=JT(e,t);let o=Lu(e,t);return HT.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!tT(l):!0})),sf(e,s,i,t),Mu(s,o),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function VT(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}zr(e,t.position)}function $T(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);zr(e,t.position)}function WT(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=Dn,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:of(e,t.name,!0),s=jT(e,t),o=Lu(e,t);return sf(e,s,i,t),Mu(s,o),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function KT(e,t,n){const r={};return Mu(r,Lu(e,t)),e.create(t,e.Fragment,r,n)}function QT(e,t){return t.value}function sf(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Mu(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function XT(e,t,n){return r;function r(a,i,s,o){const c=Array.isArray(s.children)?n:t;return o?c(i,s,o):c(i,s)}}function ZT(e,t){return n;function n(r,a,i,s){const o=Array.isArray(i.children),l=jt(r);return t(a,i,s,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function JT(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&wu.call(t.properties,a)){const i=e1(e,a,t.properties[a]);if(i){const[s,o]=i;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&YT.has(t.tagName)?r=o:n[s]=o}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function jT(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const s=i.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else zr(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,i=e.evaluater.evaluateExpression(o.expression)}else zr(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function Lu(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:UT;for(;++r<t.children.length;){const i=t.children[r];let s;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const c=a.get(l)||0;s=l+"-"+c,a.set(l,c+1)}}const o=af(e,i,s);o!==void 0&&n.push(o)}return n}function e1(e,t,n){const r=ei(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Wg(n):tf(n)),r.property==="style"){let a=typeof n=="object"?n:t1(e,String(n));return e.stylePropertyNameCase==="css"&&(a=n1(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?iT[r.property]||r.property:r.attribute,n]}}function t1(e,t){try{return FT(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new St("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=rf+"#cannot-parse-style-attribute",a}}function of(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,s;for(;++i<a.length;){const o=kd(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(i&&o.type==="Literal"),optional:!1}:o}r=s}else r=kd(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return wu.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);zr(e)}function zr(e,t){const n=new St("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=rf+"#cannot-handle-mdx-estrees-without-createevaluater",n}function n1(e){const t={};let n;for(n in e)wu.call(e,n)&&(t[r1(n)]=e[n]);return t}function r1(e){let t=e.replace(GT,a1);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function a1(e){return"-"+e.toLowerCase()}const vi={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"]},i1={};function ku(e,t){const n=i1,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return lf(e,r,a)}function lf(e,t,n){if(s1(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 Wd(e.children,t,n)}return Array.isArray(e)?Wd(e,t,n):""}function Wd(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=lf(e[a],t,n);return r.join("")}function s1(e){return!!(e&&typeof e=="object")}const Kd=document.createElement("i");function Pu(e){const t="&"+e+";";Kd.innerHTML=t;const n=Kd.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function kt(e,t,n,r){const a=e.length;let i=0,s;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);i<r.length;)s=r.slice(i,i+1e4),s.unshift(t,0),e.splice(...s),i+=1e4,t+=1e4}function Ht(e,t){return e.length>0?(kt(e,e.length,0,t),e):t}const Qd={}.hasOwnProperty;function cf(e){const t={};let n=-1;for(;++n<e.length;)o1(t,e[n]);return t}function o1(e,t){let n;for(n in t){const a=(Qd.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let s;if(i)for(s in i){Qd.call(a,s)||(a[s]=[]);const o=i[s];l1(a[s],Array.isArray(o)?o:o?[o]:[])}}}function l1(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);kt(e,0,0,r)}function uf(e,t){const 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 Vt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ot=xn(/[A-Za-z]/),ht=xn(/[\dA-Za-z]/),c1=xn(/[#-'*+\--9=?A-Z^-~]/);function Ua(e){return e!==null&&(e<32||e===127)}const Wc=xn(/\d/),u1=xn(/[\dA-Fa-f]/),d1=xn(/[!-/:-@[-`{-~]/);function Ee(e){return e!==null&&e<-2}function Ve(e){return e!==null&&(e<0||e===32)}function De(e){return e===-2||e===-1||e===32}const ri=xn(new RegExp("\\p{P}|\\p{S}","u")),Vn=xn(/\s/);function xn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function gr(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let s="";if(i===37&&ht(e.charCodeAt(n+1))&&ht(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const o=e.charCodeAt(n+1);i<56320&&o>56319&&o<57344?(s=String.fromCharCode(i,o),a=1):s="�"}else s=String.fromCharCode(i);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+a+1,s=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function Le(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return s;function s(l){return De(l)?(e.enter(n),o(l)):t(l)}function o(l){return De(l)&&i++<a?(e.consume(l),o):(e.exit(n),t(l))}}const _1={tokenize:m1};function m1(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Le(e,t,"linePrefix")}function a(o){return e.enter("paragraph"),i(o)}function i(o){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return Ee(o)?(e.consume(o),e.exit("chunkText"),i):(e.consume(o),s)}}const p1={tokenize:E1},Xd={tokenize:g1};function E1(e){const t=this,n=[];let r=0,a,i,s;return o;function o(R){if(r<n.length){const k=n[r];return t.containerState=k[1],e.attempt(k[0].continuation,l,c)(R)}return c(R)}function l(R){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&N();const k=t.events.length;let F=k,v;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){v=t.events[F][1].end;break}T(r);let H=k;for(;H<t.events.length;)t.events[H][1].end={...v},H++;return kt(t.events,F+1,0,t.events.slice(k)),t.events.length=H,c(R)}return o(R)}function c(R){if(r===n.length){if(!a)return p(R);if(a.currentConstruct&&a.currentConstruct.concrete)return f(R);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Xd,u,d)(R)}function u(R){return a&&N(),T(r),p(R)}function d(R){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,f(R)}function p(R){return t.containerState={},e.attempt(Xd,m,f)(R)}function m(R){return r++,n.push([t.currentConstruct,t.containerState]),p(R)}function f(R){if(R===null){a&&N(),T(0),e.consume(R);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),h(R)}function h(R){if(R===null){S(e.exit("chunkFlow"),!0),T(0),e.consume(R);return}return Ee(R)?(e.consume(R),S(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(R),h)}function S(R,k){const F=t.sliceStream(R);if(k&&F.push(null),R.previous=i,i&&(i.next=R),i=R,a.defineSkip(R.start),a.write(F),t.parser.lazy[R.start.line]){let v=a.events.length;for(;v--;)if(a.events[v][1].start.offset<s&&(!a.events[v][1].end||a.events[v][1].end.offset>s))return;const H=t.events.length;let Y=H,V,P;for(;Y--;)if(t.events[Y][0]==="exit"&&t.events[Y][1].type==="chunkFlow"){if(V){P=t.events[Y][1].end;break}V=!0}for(T(r),v=H;v<t.events.length;)t.events[v][1].end={...P},v++;kt(t.events,Y+1,0,t.events.slice(H)),t.events.length=v}}function T(R){let k=n.length;for(;k-- >R;){const F=n[k];t.containerState=F[1],F[0].exit.call(t,e)}n.length=R}function N(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function g1(e,t,n){return Le(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function lr(e){if(e===null||Ve(e)||Vn(e))return 1;if(ri(e))return 2}function ai(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const Kc={name:"attention",resolveAll:f1,tokenize:h1};function f1(e,t){let n=-1,r,a,i,s,o,l,c,u;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},p={...e[n][1].start};Zd(d,-l),Zd(p,l),s={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},i={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:l>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Ht(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Ht(c,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",i,t]]),c=Ht(c,ai(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Ht(c,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=Ht(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,kt(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function h1(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=lr(r);let i;return s;function s(l){return i=l,e.enter("attentionSequence"),o(l)}function o(l){if(l===i)return e.consume(l),o;const c=e.exit("attentionSequence"),u=lr(l),d=!u||u===2&&a||n.includes(l),p=!a||a===2&&u||n.includes(r);return c._open=!!(i===42?d:d&&(a||!p)),c._close=!!(i===42?p:p&&(u||!d)),t(l)}}function Zd(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const b1={name:"autolink",tokenize:S1};function S1(e,t,n){let r=0;return a;function a(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(m){return Ot(m)?(e.consume(m),s):m===64?n(m):c(m)}function s(m){return m===43||m===45||m===46||ht(m)?(r=1,o(m)):c(m)}function o(m){return m===58?(e.consume(m),r=0,l):(m===43||m===45||m===46||ht(m))&&r++<32?(e.consume(m),o):(r=0,c(m))}function l(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||Ua(m)?n(m):(e.consume(m),l)}function c(m){return m===64?(e.consume(m),u):c1(m)?(e.consume(m),c):n(m)}function u(m){return ht(m)?d(m):n(m)}function d(m){return m===46?(e.consume(m),r=0,u):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):p(m)}function p(m){if((m===45||ht(m))&&r++<63){const f=m===45?p:d;return e.consume(m),f}return n(m)}}const ta={partial:!0,tokenize:T1};function T1(e,t,n){return r;function r(i){return De(i)?Le(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||Ee(i)?t(i):n(i)}}const df={continuation:{tokenize:N1},exit:R1,name:"blockQuote",tokenize:C1};function C1(e,t,n){const r=this;return a;function a(s){if(s===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),i}return n(s)}function i(s){return De(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function N1(e,t,n){const r=this;return a;function a(s){return De(s)?Le(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return e.attempt(df,t,n)(s)}}function R1(e){e.exit("blockQuote")}const _f={name:"characterEscape",tokenize:A1};function A1(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return d1(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const mf={name:"characterReference",tokenize:y1};function y1(e,t,n){const r=this;let a=0,i,s;return o;function o(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,s=ht,u(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,s=u1,u):(e.enter("characterReferenceValue"),i=7,s=Wc,u(d))}function u(d){if(d===59&&a){const p=e.exit("characterReferenceValue");return s===ht&&!Pu(r.sliceSerialize(p))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&a++<i?(e.consume(d),u):n(d)}}const Jd={partial:!0,tokenize:v1},jd={concrete:!0,name:"codeFenced",tokenize:O1};function O1(e,t,n){const r=this,a={partial:!0,tokenize:F};let i=0,s=0,o;return l;function l(v){return c(v)}function c(v){const H=r.events[r.events.length-1];return i=H&&H[1].type==="linePrefix"?H[2].sliceSerialize(H[1],!0).length:0,o=v,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(v)}function u(v){return v===o?(s++,e.consume(v),u):s<3?n(v):(e.exit("codeFencedFenceSequence"),De(v)?Le(e,d,"whitespace")(v):d(v))}function d(v){return v===null||Ee(v)?(e.exit("codeFencedFence"),r.interrupt?t(v):e.check(Jd,h,k)(v)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===null||Ee(v)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(v)):De(v)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Le(e,m,"whitespace")(v)):v===96&&v===o?n(v):(e.consume(v),p)}function m(v){return v===null||Ee(v)?d(v):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(v))}function f(v){return v===null||Ee(v)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(v)):v===96&&v===o?n(v):(e.consume(v),f)}function h(v){return e.attempt(a,k,S)(v)}function S(v){return e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),T}function T(v){return i>0&&De(v)?Le(e,N,"linePrefix",i+1)(v):N(v)}function N(v){return v===null||Ee(v)?e.check(Jd,h,k)(v):(e.enter("codeFlowValue"),R(v))}function R(v){return v===null||Ee(v)?(e.exit("codeFlowValue"),N(v)):(e.consume(v),R)}function k(v){return e.exit("codeFenced"),t(v)}function F(v,H,Y){let V=0;return P;function P(ne){return v.enter("lineEnding"),v.consume(ne),v.exit("lineEnding"),$}function $(ne){return v.enter("codeFencedFence"),De(ne)?Le(v,X,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ne):X(ne)}function X(ne){return ne===o?(v.enter("codeFencedFenceSequence"),ue(ne)):Y(ne)}function ue(ne){return ne===o?(V++,v.consume(ne),ue):V>=s?(v.exit("codeFencedFenceSequence"),De(ne)?Le(v,ce,"whitespace")(ne):ce(ne)):Y(ne)}function ce(ne){return ne===null||Ee(ne)?(v.exit("codeFencedFence"),H(ne)):Y(ne)}}}function v1(e,t,n){const r=this;return a;function a(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Ii={name:"codeIndented",tokenize:D1},I1={partial:!0,tokenize:x1};function D1(e,t,n){const r=this;return a;function a(c){return e.enter("codeIndented"),Le(e,i,"linePrefix",5)(c)}function i(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?s(c):n(c)}function s(c){return c===null?l(c):Ee(c)?e.attempt(I1,s,l)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||Ee(c)?(e.exit("codeFlowValue"),s(c)):(e.consume(c),o)}function l(c){return e.exit("codeIndented"),t(c)}}function x1(e,t,n){const r=this;return a;function a(s){return r.parser.lazy[r.now().line]?n(s):Ee(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):Le(e,i,"linePrefix",5)(s)}function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):Ee(s)?a(s):n(s)}}const w1={name:"codeText",previous:L1,resolve:M1,tokenize:k1};function M1(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function L1(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function k1(e,t,n){let r=0,a,i;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),o(d)}function o(d){return d===96?(e.consume(d),r++,o):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(i=e.enter("codeTextSequence"),a=0,u(d)):Ee(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||Ee(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),c)}function u(d){return d===96?(e.consume(d),a++,u):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(i.type="codeTextData",c(d))}}class P1{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&Ar(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ar(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ar(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Ar(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ar(this.left,n.reverse())}}}function Ar(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function pf(e){const t={};let n=-1,r,a,i,s,o,l,c;const u=new P1(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type==="chunkFlow"&&u.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,F1(u,n)),n=t[n],c=!0);else if(r[1]._container){for(i=n,a=void 0;i--;)if(s=u.get(i),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(a&&(u.get(a)[1].type="lineEndingBlank"),s[1].type="lineEnding",a=i);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;a&&(r[1].end={...u.get(a)[1].start},o=u.slice(a,n),o.unshift(r),u.splice(a,n-a+1,o))}}return kt(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}function F1(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const i=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,l=[],c={};let u,d,p=-1,m=n,f=0,h=0;const S=[h];for(;m;){for(;e.get(++a)[1]!==m;);i.push(a),m._tokenizer||(u=r.sliceStream(m),m.next||u.push(null),d&&s.defineSkip(m.start),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(u),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=m,m=m.next}for(m=n;++p<o.length;)o[p][0]==="exit"&&o[p-1][0]==="enter"&&o[p][1].type===o[p-1][1].type&&o[p][1].start.line!==o[p][1].end.line&&(h=p+1,S.push(h),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(s.events=[],m?(m._tokenizer=void 0,m.previous=void 0):S.pop(),p=S.length;p--;){const T=o.slice(S[p],S[p+1]),N=i.pop();l.push([N,N+T.length-1]),e.splice(N,2,T)}for(l.reverse(),p=-1;++p<l.length;)c[f+l[p][0]]=f+l[p][1],f+=l[p][1]-l[p][0]-1;return c}const B1={resolve:G1,tokenize:H1},U1={partial:!0,tokenize:Y1};function G1(e){return pf(e),e}function H1(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(o)}function a(o){return o===null?i(o):Ee(o)?e.check(U1,s,i)(o):(e.consume(o),a)}function i(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function Y1(e,t,n){const r=this;return a;function a(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Le(e,i,"linePrefix")}function i(s){if(s===null||Ee(s))return n(s);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Ef(e,t,n,r,a,i,s,o,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return d;function d(T){return T===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(T),e.exit(i),p):T===null||T===32||T===41||Ua(T)?n(T):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),h(T))}function p(T){return T===62?(e.enter(i),e.consume(T),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),m(T))}function m(T){return T===62?(e.exit("chunkString"),e.exit(o),p(T)):T===null||T===60||Ee(T)?n(T):(e.consume(T),T===92?f:m)}function f(T){return T===60||T===62||T===92?(e.consume(T),m):m(T)}function h(T){return!u&&(T===null||T===41||Ve(T))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(T)):u<c&&T===40?(e.consume(T),u++,h):T===41?(e.consume(T),u--,h):T===null||T===32||T===40||Ua(T)?n(T):(e.consume(T),T===92?S:h)}function S(T){return T===40||T===41||T===92?(e.consume(T),h):h(T)}}function gf(e,t,n,r,a,i){const s=this;let o=0,l;return c;function c(m){return e.enter(r),e.enter(a),e.consume(m),e.exit(a),e.enter(i),u}function u(m){return o>999||m===null||m===91||m===93&&!l||m===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(m):m===93?(e.exit(i),e.enter(a),e.consume(m),e.exit(a),e.exit(r),t):Ee(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===null||m===91||m===93||Ee(m)||o++>999?(e.exit("chunkString"),u(m)):(e.consume(m),l||(l=!De(m)),m===92?p:d)}function p(m){return m===91||m===92||m===93?(e.consume(m),o++,d):d(m)}}function ff(e,t,n,r,a,i){let s;return o;function o(p){return p===34||p===39||p===40?(e.enter(r),e.enter(a),e.consume(p),e.exit(a),s=p===40?41:p,l):n(p)}function l(p){return p===s?(e.enter(a),e.consume(p),e.exit(a),e.exit(r),t):(e.enter(i),c(p))}function c(p){return p===s?(e.exit(i),l(s)):p===null?n(p):Ee(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Le(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===s||p===null||Ee(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?d:u)}function d(p){return p===s||p===92?(e.consume(p),u):u(p)}}function Mr(e,t){let n;return r;function r(a){return Ee(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):De(a)?Le(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const z1={name:"definition",tokenize:V1},q1={partial:!0,tokenize:$1};function V1(e,t,n){const r=this;let a;return i;function i(m){return e.enter("definition"),s(m)}function s(m){return gf.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function o(m){return a=Vt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),l):n(m)}function l(m){return Ve(m)?Mr(e,c)(m):c(m)}function c(m){return Ef(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function u(m){return e.attempt(q1,d,d)(m)}function d(m){return De(m)?Le(e,p,"whitespace")(m):p(m)}function p(m){return m===null||Ee(m)?(e.exit("definition"),r.parser.defined.push(a),t(m)):n(m)}}function $1(e,t,n){return r;function r(o){return Ve(o)?Mr(e,a)(o):n(o)}function a(o){return ff(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function i(o){return De(o)?Le(e,s,"whitespace")(o):s(o)}function s(o){return o===null||Ee(o)?t(o):n(o)}}const W1={name:"hardBreakEscape",tokenize:K1};function K1(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return Ee(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const Q1={name:"headingAtx",resolve:X1,tokenize:Z1};function X1(e,t){let n=e.length-2,r=3,a,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},kt(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function Z1(e,t,n){let r=0;return a;function a(u){return e.enter("atxHeading"),i(u)}function i(u){return e.enter("atxHeadingSequence"),s(u)}function s(u){return u===35&&r++<6?(e.consume(u),s):u===null||Ve(u)?(e.exit("atxHeadingSequence"),o(u)):n(u)}function o(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||Ee(u)?(e.exit("atxHeading"),t(u)):De(u)?Le(e,o,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),o(u))}function c(u){return u===null||u===35||Ve(u)?(e.exit("atxHeadingText"),o(u)):(e.consume(u),c)}}const J1=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],e_=["pre","script","style","textarea"],j1={concrete:!0,name:"htmlFlow",resolveTo:nC,tokenize:rC},eC={partial:!0,tokenize:iC},tC={partial:!0,tokenize:aC};function nC(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function rC(e,t,n){const r=this;let a,i,s,o,l;return c;function c(w){return u(w)}function u(w){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(w),d}function d(w){return w===33?(e.consume(w),p):w===47?(e.consume(w),i=!0,h):w===63?(e.consume(w),a=3,r.interrupt?t:y):Ot(w)?(e.consume(w),s=String.fromCharCode(w),S):n(w)}function p(w){return w===45?(e.consume(w),a=2,m):w===91?(e.consume(w),a=5,o=0,f):Ot(w)?(e.consume(w),a=4,r.interrupt?t:y):n(w)}function m(w){return w===45?(e.consume(w),r.interrupt?t:y):n(w)}function f(w){const fe="CDATA[";return w===fe.charCodeAt(o++)?(e.consume(w),o===fe.length?r.interrupt?t:X:f):n(w)}function h(w){return Ot(w)?(e.consume(w),s=String.fromCharCode(w),S):n(w)}function S(w){if(w===null||w===47||w===62||Ve(w)){const fe=w===47,be=s.toLowerCase();return!fe&&!i&&e_.includes(be)?(a=1,r.interrupt?t(w):X(w)):J1.includes(s.toLowerCase())?(a=6,fe?(e.consume(w),T):r.interrupt?t(w):X(w)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(w):i?N(w):R(w))}return w===45||ht(w)?(e.consume(w),s+=String.fromCharCode(w),S):n(w)}function T(w){return w===62?(e.consume(w),r.interrupt?t:X):n(w)}function N(w){return De(w)?(e.consume(w),N):P(w)}function R(w){return w===47?(e.consume(w),P):w===58||w===95||Ot(w)?(e.consume(w),k):De(w)?(e.consume(w),R):P(w)}function k(w){return w===45||w===46||w===58||w===95||ht(w)?(e.consume(w),k):F(w)}function F(w){return w===61?(e.consume(w),v):De(w)?(e.consume(w),F):R(w)}function v(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),l=w,H):De(w)?(e.consume(w),v):Y(w)}function H(w){return w===l?(e.consume(w),l=null,V):w===null||Ee(w)?n(w):(e.consume(w),H)}function Y(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||Ve(w)?F(w):(e.consume(w),Y)}function V(w){return w===47||w===62||De(w)?R(w):n(w)}function P(w){return w===62?(e.consume(w),$):n(w)}function $(w){return w===null||Ee(w)?X(w):De(w)?(e.consume(w),$):n(w)}function X(w){return w===45&&a===2?(e.consume(w),x):w===60&&a===1?(e.consume(w),z):w===62&&a===4?(e.consume(w),de):w===63&&a===3?(e.consume(w),y):w===93&&a===5?(e.consume(w),re):Ee(w)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(eC,he,ue)(w)):w===null||Ee(w)?(e.exit("htmlFlowData"),ue(w)):(e.consume(w),X)}function ue(w){return e.check(tC,ce,he)(w)}function ce(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),ne}function ne(w){return w===null||Ee(w)?ue(w):(e.enter("htmlFlowData"),X(w))}function x(w){return w===45?(e.consume(w),y):X(w)}function z(w){return w===47?(e.consume(w),s="",W):X(w)}function W(w){if(w===62){const fe=s.toLowerCase();return e_.includes(fe)?(e.consume(w),de):X(w)}return Ot(w)&&s.length<8?(e.consume(w),s+=String.fromCharCode(w),W):X(w)}function re(w){return w===93?(e.consume(w),y):X(w)}function y(w){return w===62?(e.consume(w),de):w===45&&a===2?(e.consume(w),y):X(w)}function de(w){return w===null||Ee(w)?(e.exit("htmlFlowData"),he(w)):(e.consume(w),de)}function he(w){return e.exit("htmlFlow"),t(w)}}function aC(e,t,n){const r=this;return a;function a(s){return Ee(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):n(s)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function iC(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(ta,t,n)}}const sC={name:"htmlText",tokenize:oC};function oC(e,t,n){const r=this;let a,i,s;return o;function o(y){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(y),l}function l(y){return y===33?(e.consume(y),c):y===47?(e.consume(y),F):y===63?(e.consume(y),R):Ot(y)?(e.consume(y),Y):n(y)}function c(y){return y===45?(e.consume(y),u):y===91?(e.consume(y),i=0,f):Ot(y)?(e.consume(y),N):n(y)}function u(y){return y===45?(e.consume(y),m):n(y)}function d(y){return y===null?n(y):y===45?(e.consume(y),p):Ee(y)?(s=d,z(y)):(e.consume(y),d)}function p(y){return y===45?(e.consume(y),m):d(y)}function m(y){return y===62?x(y):y===45?p(y):d(y)}function f(y){const de="CDATA[";return y===de.charCodeAt(i++)?(e.consume(y),i===de.length?h:f):n(y)}function h(y){return y===null?n(y):y===93?(e.consume(y),S):Ee(y)?(s=h,z(y)):(e.consume(y),h)}function S(y){return y===93?(e.consume(y),T):h(y)}function T(y){return y===62?x(y):y===93?(e.consume(y),T):h(y)}function N(y){return y===null||y===62?x(y):Ee(y)?(s=N,z(y)):(e.consume(y),N)}function R(y){return y===null?n(y):y===63?(e.consume(y),k):Ee(y)?(s=R,z(y)):(e.consume(y),R)}function k(y){return y===62?x(y):R(y)}function F(y){return Ot(y)?(e.consume(y),v):n(y)}function v(y){return y===45||ht(y)?(e.consume(y),v):H(y)}function H(y){return Ee(y)?(s=H,z(y)):De(y)?(e.consume(y),H):x(y)}function Y(y){return y===45||ht(y)?(e.consume(y),Y):y===47||y===62||Ve(y)?V(y):n(y)}function V(y){return y===47?(e.consume(y),x):y===58||y===95||Ot(y)?(e.consume(y),P):Ee(y)?(s=V,z(y)):De(y)?(e.consume(y),V):x(y)}function P(y){return y===45||y===46||y===58||y===95||ht(y)?(e.consume(y),P):$(y)}function $(y){return y===61?(e.consume(y),X):Ee(y)?(s=$,z(y)):De(y)?(e.consume(y),$):V(y)}function X(y){return y===null||y===60||y===61||y===62||y===96?n(y):y===34||y===39?(e.consume(y),a=y,ue):Ee(y)?(s=X,z(y)):De(y)?(e.consume(y),X):(e.consume(y),ce)}function ue(y){return y===a?(e.consume(y),a=void 0,ne):y===null?n(y):Ee(y)?(s=ue,z(y)):(e.consume(y),ue)}function ce(y){return y===null||y===34||y===39||y===60||y===61||y===96?n(y):y===47||y===62||Ve(y)?V(y):(e.consume(y),ce)}function ne(y){return y===47||y===62||Ve(y)?V(y):n(y)}function x(y){return y===62?(e.consume(y),e.exit("htmlTextData"),e.exit("htmlText"),t):n(y)}function z(y){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),W}function W(y){return De(y)?Le(e,re,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(y):re(y)}function re(y){return e.enter("htmlTextData"),s(y)}}const Fu={name:"labelEnd",resolveAll:dC,resolveTo:_C,tokenize:mC},lC={tokenize:pC},cC={tokenize:EC},uC={tokenize:gC};function dC(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&kt(e,0,e.length,n),e}function _C(e,t){let n=e.length,r=0,a,i,s,o;for(;n--;)if(a=e[n][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(s=n);const l={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[i][1].start},end:{...e[s][1].end}},u={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",l,t],["enter",c,t]],o=Ht(o,e.slice(i+1,i+r+3)),o=Ht(o,[["enter",u,t]]),o=Ht(o,ai(t.parser.constructs.insideSpan.null,e.slice(i+r+4,s-3),t)),o=Ht(o,[["exit",u,t],e[s-2],e[s-1],["exit",c,t]]),o=Ht(o,e.slice(s+1)),o=Ht(o,[["exit",l,t]]),kt(e,i,e.length,o),e}function mC(e,t,n){const r=this;let a=r.events.length,i,s;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){i=r.events[a][1];break}return o;function o(p){return i?i._inactive?d(p):(s=r.parser.defined.includes(Vt(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):n(p)}function l(p){return p===40?e.attempt(lC,u,s?u:d)(p):p===91?e.attempt(cC,u,s?c:d)(p):s?u(p):d(p)}function c(p){return e.attempt(uC,u,d)(p)}function u(p){return t(p)}function d(p){return i._balanced=!0,n(p)}}function pC(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),a}function a(d){return Ve(d)?Mr(e,i)(d):i(d)}function i(d){return d===41?u(d):Ef(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return Ve(d)?Mr(e,l)(d):u(d)}function o(d){return n(d)}function l(d){return d===34||d===39||d===40?ff(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):u(d)}function c(d){return Ve(d)?Mr(e,u)(d):u(d)}function u(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function EC(e,t,n){const r=this;return a;function a(o){return gf.call(r,e,i,s,"reference","referenceMarker","referenceString")(o)}function i(o){return r.parser.defined.includes(Vt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function gC(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const fC={name:"labelStartImage",resolveAll:Fu.resolveAll,tokenize:hC};function hC(e,t,n){const r=this;return a;function a(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),i}function i(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):n(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const bC={name:"labelStartLink",resolveAll:Fu.resolveAll,tokenize:SC};function SC(e,t,n){const r=this;return a;function a(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),i}function i(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Di={name:"lineEnding",tokenize:TC};function TC(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Le(e,t,"linePrefix")}}const wa={name:"thematicBreak",tokenize:CC};function CC(e,t,n){let r=0,a;return i;function i(c){return e.enter("thematicBreak"),s(c)}function s(c){return a=c,o(c)}function o(c){return c===a?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||Ee(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===a?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),De(c)?Le(e,o,"whitespace")(c):o(c))}}const xt={continuation:{tokenize:yC},exit:vC,name:"list",tokenize:AC},NC={partial:!0,tokenize:IC},RC={partial:!0,tokenize:OC};function AC(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,s=0;return o;function o(m){const f=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(f==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:Wc(m)){if(r.containerState.type||(r.containerState.type=f,e.enter(f,{_container:!0})),f==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(wa,n,c)(m):c(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(m)}return n(m)}function l(m){return Wc(m)&&++s<10?(e.consume(m),l):(!r.interrupt||s<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),c(m)):n(m)}function c(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(ta,r.interrupt?n:u,e.attempt(NC,p,d))}function u(m){return r.containerState.initialBlankLine=!0,i++,p(m)}function d(m){return De(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),p):n(m)}function p(m){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function yC(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(ta,a,i);function a(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Le(e,t,"listItemIndent",r.containerState.size+1)(o)}function i(o){return r.containerState.furtherBlankLines||!De(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(RC,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Le(e,e.attempt(xt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function OC(e,t,n){const r=this;return Le(e,a,"listItemIndent",r.containerState.size+1);function a(i){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(i):n(i)}}function vC(e){e.exit(this.containerState.type)}function IC(e,t,n){const r=this;return Le(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const s=r.events[r.events.length-1];return!De(i)&&s&&s[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const t_={name:"setextUnderline",resolveTo:DC,tokenize:xC};function DC(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",s,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function xC(e,t,n){const r=this;let a;return i;function i(c){let u=r.events.length,d;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){d=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),a=c,s(c)):n(c)}function s(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===a?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),De(c)?Le(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||Ee(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const wC={tokenize:MC};function MC(e){const t=this,n=e.attempt(ta,r,e.attempt(this.parser.constructs.flowInitial,a,Le(e,e.attempt(this.parser.constructs.flow,a,e.attempt(B1,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const LC={resolveAll:bf()},kC=hf("string"),PC=hf("text");function hf(e){return{resolveAll:bf(e==="text"?FC:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,s,o);return s;function s(u){return c(u)?i(u):o(u)}function o(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),i(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const d=a[u];let p=-1;if(d)for(;++p<d.length;){const m=d[p];if(!m.previous||m.previous.call(r,r.previous))return!0}return!1}}}function bf(e){return t;function t(n,r){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type==="data"&&(i=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(n,r):n}}function FC(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let i=a.length,s=-1,o=0,l;for(;i--;){const c=a[i];if(typeof c=="string"){for(s=c.length;c.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(c===-2)l=!0,o++;else if(c!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const c={type:n===e.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:r.start._bufferIndex+s,_index:r.start._index+i,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const BC={42:xt,43:xt,45:xt,48:xt,49:xt,50:xt,51:xt,52:xt,53:xt,54:xt,55:xt,56:xt,57:xt,62:df},UC={91:z1},GC={[-2]:Ii,[-1]:Ii,32:Ii},HC={35:Q1,42:wa,45:[t_,wa],60:j1,61:t_,95:wa,96:jd,126:jd},YC={38:mf,92:_f},zC={[-5]:Di,[-4]:Di,[-3]:Di,33:fC,38:mf,42:Kc,60:[b1,sC],91:bC,92:[W1,_f],93:Fu,95:Kc,96:w1},qC={null:[Kc,LC]},VC={null:[42,95]},$C={null:[]},WC=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:VC,contentInitial:UC,disable:$C,document:BC,flow:HC,flowInitial:GC,insideSpan:qC,string:YC,text:zC},Symbol.toStringTag,{value:"Module"}));function KC(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},i=[];let s=[],o=[];const l={attempt:H(F),check:H(v),consume:N,enter:R,exit:k,interrupt:H(v,{interrupt:!0})},c={code:null,containerState:{},defineSkip:h,events:[],now:f,parser:e,previous:null,sliceSerialize:p,sliceStream:m,write:d};let u=t.tokenize.call(c,l);return t.resolveAll&&i.push(t),c;function d($){return s=Ht(s,$),S(),s[s.length-1]!==null?[]:(Y(t,0),c.events=ai(i,c.events,c),c.events)}function p($,X){return XC(m($),X)}function m($){return QC(s,$)}function f(){const{_bufferIndex:$,_index:X,line:ue,column:ce,offset:ne}=r;return{_bufferIndex:$,_index:X,line:ue,column:ce,offset:ne}}function h($){a[$.line]=$.column,P()}function S(){let $;for(;r._index<s.length;){const X=s[r._index];if(typeof X=="string")for($=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===$&&r._bufferIndex<X.length;)T(X.charCodeAt(r._bufferIndex));else T(X)}}function T($){u=u($)}function N($){Ee($)?(r.line++,r.column=1,r.offset+=$===-3?2:1,P()):$!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=$}function R($,X){const ue=X||{};return ue.type=$,ue.start=f(),c.events.push(["enter",ue,c]),o.push(ue),ue}function k($){const X=o.pop();return X.end=f(),c.events.push(["exit",X,c]),X}function F($,X){Y($,X.from)}function v($,X){X.restore()}function H($,X){return ue;function ue(ce,ne,x){let z,W,re,y;return Array.isArray(ce)?he(ce):"tokenize"in ce?he([ce]):de(ce);function de(Ne){return Re;function Re(Te){const Ie=Te!==null&&Ne[Te],ke=Te!==null&&Ne.null,Fe=[...Array.isArray(Ie)?Ie:Ie?[Ie]:[],...Array.isArray(ke)?ke:ke?[ke]:[]];return he(Fe)(Te)}}function he(Ne){return z=Ne,W=0,Ne.length===0?x:w(Ne[W])}function w(Ne){return Re;function Re(Te){return y=V(),re=Ne,Ne.partial||(c.currentConstruct=Ne),Ne.name&&c.parser.constructs.disable.null.includes(Ne.name)?be():Ne.tokenize.call(X?Object.assign(Object.create(c),X):c,l,fe,be)(Te)}}function fe(Ne){return $(re,y),ne}function be(Ne){return y.restore(),++W<z.length?w(z[W]):x}}}function Y($,X){$.resolveAll&&!i.includes($)&&i.push($),$.resolve&&kt(c.events,X,c.events.length-X,$.resolve(c.events.slice(X),c)),$.resolveTo&&(c.events=$.resolveTo(c.events,c))}function V(){const $=f(),X=c.previous,ue=c.currentConstruct,ce=c.events.length,ne=Array.from(o);return{from:ce,restore:x};function x(){r=$,c.previous=X,c.currentConstruct=ue,c.events.length=ce,o=ne,P()}}function P(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function QC(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let s;if(n===a)s=[e[n].slice(r,i)];else{if(s=e.slice(n,a),r>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}i>0&&s.push(e[a].slice(0,i))}return s}function XC(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=`
|
|
3
3
|
`;break}case-3:{s=`\r
|
|
4
4
|
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&a)continue;s=" ";break}default:s=String.fromCharCode(i)}a=i===-2,r.push(s)}return r.join("")}function ZC(e){const r={constructs:cf([WC,...(e||{}).extensions||[]]),content:a(_1),defined:[],document:a(p1),flow:a(wC),lazy:{},string:a(kC),text:a(PC)};return r;function a(i){return s;function s(o){return KC(r,i,o)}}}function JC(e){for(;!pf(e););return e}const n_=/[\0\t\n\r]/g;function jC(){let e=1,t="",n=!0,r;return a;function a(i,s,o){const l=[];let c,u,d,p,m;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(s||void 0).decode(i)),d=0,t="",n&&(i.charCodeAt(0)===65279&&d++,n=void 0);d<i.length;){if(n_.lastIndex=d,c=n_.exec(i),p=c&&c.index!==void 0?c.index:i.length,m=i.charCodeAt(p),!c){t=i.slice(d);break}if(m===10&&d===p&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<p&&(l.push(i.slice(d,p)),e+=p-d),m){case 0:{l.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,l.push(-2);e++<u;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}d=p+1}return o&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const eN=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tN(e){return e.replace(eN,nN)}function nN(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return uf(n.slice(i?2:1),i?16:10)}return Pu(n)||e}const Sf={}.hasOwnProperty;function rN(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),aN(n)(JC(ZC(n).document().write(jC()(e,t,!0))))}function aN(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(pt),autolinkProtocol:V,autolinkEmail:V,atxHeading:i(Be),blockQuote:i(ke),characterEscape:V,characterReference:V,codeFenced:i(Fe),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(Fe,s),codeText:i(We,s),codeTextData:V,data:V,codeFlowValue:V,definition:i(He),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(ut),hardBreakEscape:i(we),hardBreakTrailing:i(we),htmlFlow:i(nt,s),htmlFlowData:V,htmlText:i(nt,s),htmlTextData:V,image:i(j),label:s,link:i(pt),listItem:i(ge),listItemValue:p,listOrdered:i(ye,d),listUnordered:i(ye),paragraph:i(Et),reference:w,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(Be),strong:i(Ke),thematicBreak:i(dt)},exit:{atxHeading:l(),atxHeadingSequence:F,autolink:l(),autolinkEmail:Ie,autolinkProtocol:Te,blockQuote:l(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:be,characterReferenceMarkerNumeric:be,characterReferenceValue:Ne,characterReference:Re,codeFenced:l(S),codeFencedFence:h,codeFencedFenceInfo:m,codeFencedFenceMeta:f,codeFlowValue:P,codeIndented:l(T),codeText:l(ne),codeTextData:P,data:P,definition:l(),definitionDestinationString:k,definitionLabelString:N,definitionTitleString:R,emphasis:l(),hardBreakEscape:l(X),hardBreakTrailing:l(X),htmlFlow:l(ue),htmlFlowData:P,htmlText:l(ce),htmlTextData:P,image:l(z),label:re,labelText:W,lineEnding:$,link:l(x),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:fe,resourceDestinationString:y,resourceTitleString:de,resource:he,setextHeading:l(Y),setextHeadingLineSequence:H,setextHeadingText:v,strong:l(),thematicBreak:l()}};Tf(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(O){let B={type:"root",children:[]};const Q={stack:[B],tokenStack:[],config:t,enter:o,exit:c,buffer:s,resume:u,data:n},Z=[];let pe=-1;for(;++pe<O.length;)if(O[pe][1].type==="listOrdered"||O[pe][1].type==="listUnordered")if(O[pe][0]==="enter")Z.push(pe);else{const Pe=Z.pop();pe=a(O,Pe,pe)}for(pe=-1;++pe<O.length;){const Pe=t[O[pe][0]];Sf.call(Pe,O[pe][1].type)&&Pe[O[pe][1].type].call(Object.assign({sliceSerialize:O[pe][2].sliceSerialize},Q),O[pe][1])}if(Q.tokenStack.length>0){const Pe=Q.tokenStack[Q.tokenStack.length-1];(Pe[1]||r_).call(Q,void 0,Pe[0])}for(B.position={start:fn(O.length>0?O[0][1].start:{line:1,column:1,offset:0}),end:fn(O.length>0?O[O.length-2][1].end:{line:1,column:1,offset:0})},pe=-1;++pe<t.transforms.length;)B=t.transforms[pe](B)||B;return B}function a(O,B,Q){let Z=B-1,pe=-1,Pe=!1,Nt,gt,En,gn;for(;++Z<=Q;){const ft=O[Z];switch(ft[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ft[0]==="enter"?pe++:pe--,gn=void 0;break}case"lineEndingBlank":{ft[0]==="enter"&&(Nt&&!gn&&!pe&&!En&&(En=Z),gn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:gn=void 0}if(!pe&&ft[0]==="enter"&&ft[1].type==="listItemPrefix"||pe===-1&&ft[0]==="exit"&&(ft[1].type==="listUnordered"||ft[1].type==="listOrdered")){if(Nt){let an=Z;for(gt=void 0;an--;){const Gt=O[an];if(Gt[1].type==="lineEnding"||Gt[1].type==="lineEndingBlank"){if(Gt[0]==="exit")continue;gt&&(O[gt][1].type="lineEndingBlank",Pe=!0),Gt[1].type="lineEnding",gt=an}else if(!(Gt[1].type==="linePrefix"||Gt[1].type==="blockQuotePrefix"||Gt[1].type==="blockQuotePrefixWhitespace"||Gt[1].type==="blockQuoteMarker"||Gt[1].type==="listItemIndent"))break}En&&(!gt||En<gt)&&(Nt._spread=!0),Nt.end=Object.assign({},gt?O[gt][1].start:ft[1].end),O.splice(gt||Z,0,["exit",Nt,ft[2]]),Z++,Q++}if(ft[1].type==="listItemPrefix"){const an={type:"listItem",_spread:!1,start:Object.assign({},ft[1].start),end:void 0};Nt=an,O.splice(Z,0,["enter",an,ft[2]]),Z++,Q++,En=void 0,gn=!0}}}return O[B][1]._spread=Pe,Q}function i(O,B){return Q;function Q(Z){o.call(this,O(Z),Z),B&&B.call(this,Z)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(O,B,Q){this.stack[this.stack.length-1].children.push(O),this.stack.push(O),this.tokenStack.push([B,Q||void 0]),O.position={start:fn(B.start),end:void 0}}function l(O){return B;function B(Q){O&&O.call(this,Q),c.call(this,Q)}}function c(O,B){const Q=this.stack.pop(),Z=this.tokenStack.pop();if(Z)Z[0].type!==O.type&&(B?B.call(this,O,Z[0]):(Z[1]||r_).call(this,O,Z[0]));else throw new Error("Cannot close `"+O.type+"` ("+wr({start:O.start,end:O.end})+"): it’s not open");Q.position.end=fn(O.end)}function u(){return ku(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(O){if(this.data.expectingFirstListItemValue){const B=this.stack[this.stack.length-2];B.start=Number.parseInt(this.sliceSerialize(O),10),this.data.expectingFirstListItemValue=void 0}}function m(){const O=this.resume(),B=this.stack[this.stack.length-1];B.lang=O}function f(){const O=this.resume(),B=this.stack[this.stack.length-1];B.meta=O}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const O=this.resume(),B=this.stack[this.stack.length-1];B.value=O.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function T(){const O=this.resume(),B=this.stack[this.stack.length-1];B.value=O.replace(/(\r?\n|\r)$/g,"")}function N(O){const B=this.resume(),Q=this.stack[this.stack.length-1];Q.label=B,Q.identifier=Vt(this.sliceSerialize(O)).toLowerCase()}function R(){const O=this.resume(),B=this.stack[this.stack.length-1];B.title=O}function k(){const O=this.resume(),B=this.stack[this.stack.length-1];B.url=O}function F(O){const B=this.stack[this.stack.length-1];if(!B.depth){const Q=this.sliceSerialize(O).length;B.depth=Q}}function v(){this.data.setextHeadingSlurpLineEnding=!0}function H(O){const B=this.stack[this.stack.length-1];B.depth=this.sliceSerialize(O).codePointAt(0)===61?1:2}function Y(){this.data.setextHeadingSlurpLineEnding=void 0}function V(O){const Q=this.stack[this.stack.length-1].children;let Z=Q[Q.length-1];(!Z||Z.type!=="text")&&(Z=Ct(),Z.position={start:fn(O.start),end:void 0},Q.push(Z)),this.stack.push(Z)}function P(O){const B=this.stack.pop();B.value+=this.sliceSerialize(O),B.position.end=fn(O.end)}function $(O){const B=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Q=B.children[B.children.length-1];Q.position.end=fn(O.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(B.type)&&(V.call(this,O),P.call(this,O))}function X(){this.data.atHardBreak=!0}function ue(){const O=this.resume(),B=this.stack[this.stack.length-1];B.value=O}function ce(){const O=this.resume(),B=this.stack[this.stack.length-1];B.value=O}function ne(){const O=this.resume(),B=this.stack[this.stack.length-1];B.value=O}function x(){const O=this.stack[this.stack.length-1];if(this.data.inReference){const B=this.data.referenceType||"shortcut";O.type+="Reference",O.referenceType=B,delete O.url,delete O.title}else delete O.identifier,delete O.label;this.data.referenceType=void 0}function z(){const O=this.stack[this.stack.length-1];if(this.data.inReference){const B=this.data.referenceType||"shortcut";O.type+="Reference",O.referenceType=B,delete O.url,delete O.title}else delete O.identifier,delete O.label;this.data.referenceType=void 0}function W(O){const B=this.sliceSerialize(O),Q=this.stack[this.stack.length-2];Q.label=tN(B),Q.identifier=Vt(B).toLowerCase()}function re(){const O=this.stack[this.stack.length-1],B=this.resume(),Q=this.stack[this.stack.length-1];if(this.data.inReference=!0,Q.type==="link"){const Z=O.children;Q.children=Z}else Q.alt=B}function y(){const O=this.resume(),B=this.stack[this.stack.length-1];B.url=O}function de(){const O=this.resume(),B=this.stack[this.stack.length-1];B.title=O}function he(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function fe(O){const B=this.resume(),Q=this.stack[this.stack.length-1];Q.label=B,Q.identifier=Vt(this.sliceSerialize(O)).toLowerCase(),this.data.referenceType="full"}function be(O){this.data.characterReferenceType=O.type}function Ne(O){const B=this.sliceSerialize(O),Q=this.data.characterReferenceType;let Z;Q?(Z=uf(B,Q==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Z=Pu(B);const pe=this.stack[this.stack.length-1];pe.value+=Z}function Re(O){const B=this.stack.pop();B.position.end=fn(O.end)}function Te(O){P.call(this,O);const B=this.stack[this.stack.length-1];B.url=this.sliceSerialize(O)}function Ie(O){P.call(this,O);const B=this.stack[this.stack.length-1];B.url="mailto:"+this.sliceSerialize(O)}function ke(){return{type:"blockquote",children:[]}}function Fe(){return{type:"code",lang:null,meta:null,value:""}}function We(){return{type:"inlineCode",value:""}}function He(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ut(){return{type:"emphasis",children:[]}}function Be(){return{type:"heading",depth:0,children:[]}}function we(){return{type:"break"}}function nt(){return{type:"html",value:""}}function j(){return{type:"image",title:null,url:"",alt:null}}function pt(){return{type:"link",title:null,url:"",children:[]}}function ye(O){return{type:"list",ordered:O.type==="listOrdered",start:null,spread:O._spread,children:[]}}function ge(O){return{type:"listItem",spread:O._spread,checked:null,children:[]}}function Et(){return{type:"paragraph",children:[]}}function Ke(){return{type:"strong",children:[]}}function Ct(){return{type:"text",value:""}}function dt(){return{type:"thematicBreak"}}}function fn(e){return{line:e.line,column:e.column,offset:e.offset}}function Tf(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Tf(e,r):iN(e,r)}}function iN(e,t){let n;for(n in t)if(Sf.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function r_(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+wr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+wr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+wr({start:t.start,end:t.end})+") is still open")}function sN(e){const t=this;t.parser=n;function n(r){return rN(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function oN(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function lN(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as o}from"./vendor-react-CDaMBvJU.js";import{u as r}from"./index-
|
|
1
|
+
import{j as o}from"./vendor-react-CDaMBvJU.js";import{u as r}from"./index-DJiq_38M.js";function a({className:s=""}){return o.jsx("span",{"data-testid":"refresh-spinner",role:"status","aria-label":"刷新中",className:`inline-block h-3 w-3 flex-none shrink-0 animate-spin rounded-[var(--radius-full)] border border-muted-foreground/25 border-t-muted-foreground ${s}`})}const i={".md":"md",".markdown":"md",".mdx":"md",".ts":"ts",".tsx":"tsx",".js":"js",".jsx":"jsx",".mjs":"mjs",".cjs":"mjs",".mts":"mjs",".cts":"mjs",".css":"css",".scss":"css",".less":"css",".html":"html",".htm":"html",".json":"json",".yaml":"json",".yml":"json",".toml":"json",".csv":"csv",".tsv":"csv",".sh":"sh",".bash":"sh",".zsh":"sh",".sql":"sh",".py":"py",".go":"py",".rs":"py",".java":"py",".svg":"svg",".png":"svg",".jpg":"svg",".jpeg":"svg",".gif":"svg",".webp":"svg",".ico":"svg"};function c(s){const e=s.toLowerCase();if(e==="justfile"||e==="makefile")return e;const n=s.lastIndexOf("."),t=n>=0?s.slice(n).toLowerCase():"";return i[t]??"unknown"}function u({name:s,active:e}){const{icon:n}=r(),t=n(c(s));return t?o.jsx("span",{className:`h-3.5 w-3.5 shrink-0 inline-flex items-center justify-center ${e?"text-primary":"text-muted-foreground"}`,children:t}):null}export{u as F,a as R};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e}from"./vendor-react-CDaMBvJU.js";import{d as n}from"./index-
|
|
1
|
+
import{j as e}from"./vendor-react-CDaMBvJU.js";import{d as n}from"./index-DJiq_38M.js";function b({items:l,value:d,onChange:p,ariaLabel:c,renderExtra:o,renderLabel:a,className:t,...u}){return e.jsx("div",{role:"group","aria-label":c,className:n("inline-flex items-center gap-1.5 flex-wrap",t),...u,children:l.map(r=>{const s=r.key===d;return e.jsxs("button",{type:"button","aria-pressed":s,onClick:()=>p(r.key),className:n("inline-flex items-center gap-1.5 h-7 px-2.5 rounded-[var(--radius-full)] border text-xs transition-colors",s?"bg-primary text-primary-foreground border-primary":"border-border text-muted-foreground hover:text-foreground hover:border-muted-foreground/40",r.className),children:[r.renderLabel?r.renderLabel(r):a?a(r):e.jsx("span",{children:r.label}),r.badge&&e.jsx("span",{className:"opacity-80",children:r.badge}),r.renderExtra?r.renderExtra(r):o==null?void 0:o(r)]},r.key)})})}export{b as F};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as u,j as e}from"./vendor-react-CDaMBvJU.js";import{R as b,F as k}from"./FileIcon-
|
|
1
|
+
import{r as u,j as e}from"./vendor-react-CDaMBvJU.js";import{R as b,F as k}from"./FileIcon-DEXf9oCF.js";import{b as j,u as f,S,E as N,c as m,s as v,r as G}from"./index-DJiq_38M.js";import{u as O}from"./usePluginData-BmlgMZle.js";import{a as R}from"./fetchJson-D-dWeu1j.js";import"./vendor-ui-dpI0b3Ao.js";const x="zd-design-groups";function E(o){return!o||typeof o!="object"||Array.isArray(o)?!1:Object.values(o).every(r=>typeof r=="boolean")}const _=()=>G(x,{},E),w={page:"monitor",component:"blocks",icon:"shapes",token:"palette",md:"book-open",video:"video",audio:"audio-lines",pdf:"file-text",font:"type"},I=[{key:"page",label:"页面"},{key:"component",label:"组件"},{key:"icon",label:"图标"},{key:"token",label:"Tokens"},{key:"md",label:"文档"},{key:"video",label:"视频"},{key:"audio",label:"音频"},{key:"pdf",label:"PDF"},{key:"font",label:"字体"}];function T(){const o=j(),r=o.params,c=r.get("asset"),d=r.get("type"),a=r.get("folder");f();const t=O("design:/__design/assets",()=>R("/__design/assets",{cache:"no-store"}),{subscribe:"files"}),i=u.useMemo(()=>{const s=t.data;return s?I.map(l=>({...l,items:(s[l.key]??[]).filter(y=>!a||y.path.startsWith(a))})).filter(l=>l.items.length>0):[]},[t.data,a]),n=s=>o.navigate({type:s.type,asset:s.path}),[p,g]=u.useState(_),h=s=>{const l={...p,[s]:!(p[s]??!0)};g(l),v(x,JSON.stringify(l))};return e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsxs("div",{className:"p-3 text-xs text-muted-foreground truncate flex-none flex items-center gap-2",children:["设计资产",t.refreshing&&e.jsx(b,{})]}),t.loading&&!t.data&&e.jsx(S,{rows:6,className:"mx-3"}),t.error&&e.jsx(N,{message:t.error,onRetry:t.reload}),!t.error&&(t.data||!t.loading)&&i.length===0&&(a?e.jsx(m,{title:"无匹配结果",hint:`目录过滤 "${a}" 无匹配资产,调整或清空后重试`}):e.jsx(m,{title:"未发现 .zdev/design 资产",hint:"运行 zdesign 生成"})),i.map(s=>e.jsx(P,{group:s,open:p[s.key]??!0,onToggle:()=>h(s.key),current:c&&d===s.key?c:null,onSelect:n},s.key))]})}function P({group:o,open:r,onToggle:c,current:d,onSelect:a}){const{icon:t}=f(),i=w[o.key];return e.jsxs("div",{className:"mb-1.5 px-1",children:[e.jsxs("button",{onClick:c,"aria-expanded":r,className:"w-full flex items-center gap-1.5 pt-2 pb-1 text-sm font-semibold uppercase tracking-wide text-muted-foreground hover:text-foreground rounded-md",children:[t("chevron-right",`h-3 w-3 shrink-0 transition-transform ${r?"rotate-90":""}`),i&&t(i,"h-3.5 w-3.5 shrink-0"),e.jsx("span",{className:"truncate",children:o.label}),e.jsx("span",{className:"ml-auto shrink-0 rounded-full bg-muted px-1.5 font-mono text-xs font-normal",children:o.items.length})]}),r&&o.items.map(n=>e.jsxs("button",{onClick:()=>a(n),className:`w-full text-left flex items-center gap-2 px-2.5 py-1.5 text-xs hover:bg-muted rounded-md ${d===n.path?"bg-primary/10 text-foreground font-medium":"text-muted-foreground"}`,children:[e.jsx(k,{name:n.name,active:d===n.path}),e.jsx("span",{className:"truncate",children:n.name}),n.ext&&e.jsx("span",{className:"ml-auto font-mono text-xs text-muted-foreground/60",children:n.ext})]},n.path))]})}export{T as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as L,j as e}from"./vendor-react-CDaMBvJU.js";import{b as O,u as I,S as P,E as M,c as _,r as K,s as U}from"./index-
|
|
1
|
+
import{r as L,j as e}from"./vendor-react-CDaMBvJU.js";import{b as O,u as I,S as P,E as M,c as _,r as K,s as U}from"./index-DJiq_38M.js";import{R as V,F as Y}from"./FileIcon-DEXf9oCF.js";import{u as B}from"./usePluginData-BmlgMZle.js";import{a as b}from"./fetchJson-D-dWeu1j.js";import"./vendor-ui-dpI0b3Ao.js";function h(r,n){return!n||r.name.toLowerCase().includes(n)?!0:(r.children??[]).some(l=>h(l,n))}const $="zd-view-collapse";function G(r){if(!r||typeof r!="object"||Array.isArray(r))return!1;const n=r;return Array.isArray(n.wt)&&n.wt.every(l=>typeof l=="string")&&typeof n.root=="boolean"}const H=()=>K($,{wt:[],root:!1},G);function F(r){U($,JSON.stringify(r))}async function Q(){const r=await b("/__worktrees",{cache:"no-store"}),n={};await Promise.all(r.map(async i=>{const a=await b(`/__files?wt=${encodeURIComponent(i.path)}`,{cache:"no-store"});n[i.path]=a.tree??[]}));const l=await b("/__files",{cache:"no-store"});return{worktrees:r,wtTrees:n,rootTree:l.tree??[]}}function v({node:r,depth:n,filter:l,current:i,onSelectFile:a}){const{icon:f}=I(),d=r.children??[],x=!!l&&r.name.toLowerCase().includes(l)?d:d.filter(s=>h(s,l)),[p,g]=L.useState(!r.defaultCollapsed),o=l?!0:p;return!x.length&&l?null:e.jsxs("div",{children:[(()=>{const s=r.name.match(/^([a-z]+)(?: \((\d+)\))?$/),j=s?f(s[1]):void 0;return e.jsxs("button",{onClick:()=>g(u=>!u),"aria-expanded":o,className:"w-full flex items-center gap-1.5 px-2 py-1 text-sm text-foreground hover:bg-muted rounded-md mx-1",style:{paddingLeft:8+n*14,width:"calc(100% - 8px)"},children:[e.jsx("span",{className:`h-3 w-3 shrink-0 inline-flex items-center justify-center text-muted-foreground transition-transform ${o?"rotate-90":""}`,children:f("chevron-right")}),j?e.jsx("span",{className:"h-3.5 w-3.5 shrink-0 inline-flex items-center justify-center text-muted-foreground",children:j}):e.jsx("span",{className:"h-3.5 w-3.5 shrink-0 inline-flex items-center justify-center text-muted-foreground transition-colors",children:f(o?"folder-open":"folder")}),e.jsx("span",{className:"font-medium truncate",children:s?s[1]:r.name}),(s==null?void 0:s[2])&&e.jsx("span",{className:"ml-auto mr-1 shrink-0 rounded-full bg-muted px-1.5 text-xs font-mono text-muted-foreground",children:s[2]})]})})(),o&&x.map(s=>s.kind==="dir"?e.jsx(v,{node:s,depth:n+1,filter:l,current:i,onSelectFile:a},s.name+n):e.jsxs("button",{onClick:()=>s.path&&a(s.path),className:`w-full flex items-center gap-1.5 pr-2 py-1 text-sm hover:bg-muted rounded-md mx-1 ${i===s.path?"bg-primary/10 text-foreground font-medium":"text-muted-foreground"}`,style:{paddingLeft:20+n*14,width:"calc(100% - 8px)"},children:[e.jsx(Y,{name:s.name,active:i===s.path}),e.jsx("span",{className:"truncate",children:s.name})]},s.path))]})}function re(){var C,E,R;const r=O(),n=r.params,l=n.get("file"),i=n.get("wt"),a=(n.get("filter")??"").toLowerCase(),f=n.get("card")==="dirty",{icon:d}=I(),[m,x]=L.useState(H),p=new Set(m.wt),g=m.root,o=B("view:sidebar-trees",Q,{subscribe:"files"}),s=((C=o.data)==null?void 0:C.worktrees)??[],j=((E=o.data)==null?void 0:E.wtTrees)??{},u=((R=o.data)==null?void 0:R.rootTree)??[],A=t=>{const c=new Set(m.wt);c.has(t)?c.delete(t):c.add(t);const w={...m,wt:[...c]};x(w),F(w)},W=()=>{const t={...m,root:!m.root};x(t),F(t)},D=t=>{r.navigate({filter:t.trim()?t:null},{replace:!0})},N=s.length>0,z=!!a&&(s.some(t=>(j[t.path]??[]).some(c=>h(c,a)))||u.some(t=>h(t,a))),k=!a&&!!o.data&&!N&&u.length===0,S=!!a&&!!o.data&&!z;return e.jsx("div",{className:"p-2 flex flex-col h-full",children:e.jsxs("div",{className:"flex-1 min-h-0 flex flex-col",children:[e.jsxs("div",{className:"w-full flex items-center gap-2",children:[e.jsx("input",{value:a,onChange:t=>D(t.target.value),placeholder:"过滤…","data-testid":"view-filter-input",className:"w-full h-7 px-2 text-xs rounded border border-border bg-background focus:border-primary"}),o.refreshing&&e.jsx(V,{})]}),e.jsxs("div",{className:"py-1 flex-1 min-h-0 overflow-auto flex flex-col","data-testid":"view-tree-scroller",children:[o.loading&&!o.data&&e.jsx(P,{rows:6,className:"mx-1 mt-1"}),o.error&&e.jsx(M,{message:o.error,onRetry:o.reload}),k&&e.jsx(_,{title:"暂无可展示的规格文件",hint:"约定扫描目录:openspec / docs / .zdev/apply"}),S&&e.jsx(_,{title:"无匹配结果",hint:"调整或清空过滤词后重试"}),!!o.data&&!o.error&&!k&&!S&&e.jsxs(e.Fragment,{children:[N&&s.map(t=>{const w=(j[t.path]??[]).filter(y=>h(y,a));if(!w.length&&a)return null;const T=f&&t.dirty;return e.jsxs("div",{className:"mb-1",children:[e.jsxs("button",{onClick:()=>A(t.path),"aria-expanded":!p.has(t.path),"data-drill-dirty":T?"true":void 0,className:`w-full flex items-center gap-1 px-2 py-1.5 text-sm font-medium text-foreground hover:bg-muted rounded-md ${T?"bg-warning/10 ring-1 ring-warning":""}`,children:[e.jsx("span",{className:"h-3 w-3 shrink-0 inline-flex items-center justify-center text-muted-foreground transition-transform",children:d("chevron-right",p.has(t.path)?"":"rotate-90")}),e.jsx("span",{className:"h-3 w-3 shrink-0 inline-flex items-center justify-center text-muted-foreground",children:d("git-branch")}),e.jsx("span",{className:"truncate",children:t.branch}),t.dirty&&e.jsx("span",{className:"ml-auto flex-none h-2 w-2 rounded-full bg-destructive shrink-0",title:"有未提交变更"})]}),!p.has(t.path)&&e.jsx("div",{className:"ml-2",children:w.map(y=>e.jsx(v,{node:y,depth:1,filter:a,current:i===t.path?l:null,onSelectFile:J=>r.navigate({wt:t.path,file:J})},y.name))})]},t.path)}),u.length>0&&(!a||u.some(t=>h(t,a)))&&e.jsxs("div",{className:"mb-1",children:[e.jsxs("button",{onClick:W,"aria-expanded":!g,className:"w-full flex items-center gap-1 px-2 py-1.5 text-sm font-medium text-foreground hover:bg-muted rounded-md",children:[e.jsx("span",{className:`h-3 w-3 shrink-0 inline-flex items-center justify-center text-muted-foreground transition-transform ${g?"":"rotate-90"}`,children:d("chevron-right")}),e.jsx("span",{className:"h-3 w-3 shrink-0 inline-flex items-center justify-center text-muted-foreground",children:d("git-branch")}),e.jsx("span",{children:"当前分支"})]}),!g&&e.jsx("div",{className:"ml-2",children:u.filter(t=>h(t,a)).map(t=>e.jsx(v,{node:t,depth:1,filter:a,current:i?null:l,onSelectFile:c=>r.navigate({wt:null,file:c})},t.name))})]})]})]})]})})}export{re as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,r as h}from"./vendor-react-CDaMBvJU.js";import{F as M}from"./FilterPills-
|
|
1
|
+
import{j as e,r as h}from"./vendor-react-CDaMBvJU.js";import{F as M}from"./FilterPills-BZwzyDRQ.js";import{E as A,u as k,a as P,b as $,P as L,c as U,r as T,s as W}from"./index-DJiq_38M.js";import{u as v,R as y,C as z,M as D,I as H}from"./CodeViewer-Dxlw7RnH.js";import{f as J,v as K}from"./fetchJson-D-dWeu1j.js";import{m as w}from"./web-C47Nea8q.js";import"./vendor-ui-dpI0b3Ao.js";import"./client-Cw4K1Nx3.js";function X({path:t}){const[s,a]=v(),c="/__design/asset?path="+encodeURIComponent(t)+(s?"&v="+s:"");return e.jsxs("div",{className:"relative h-full",children:[e.jsx("div",{className:"absolute right-3 top-3 z-10",children:e.jsx(y,{onClick:a})}),e.jsx("iframe",{src:c,title:"预览",className:"w-full h-full border-0 bg-white"})]})}const C=/^(#|rgb|rgba|hsl|hsla|oklch|oklab|color\()/i,R=/font|family|type/i;function B(t){const s=t.match(/--[A-Za-z0-9_-]+\s*:\s*[^;}\n]+/g)??[];if(!s.length)return[];const a=r=>{const o=r.indexOf(":"),x=r.slice(0,o).trim(),g=r.slice(o+1).trim();return{name:x,value:g}},c=r=>/^(#([0-9a-fA-F]{3,8})\b|rgb|rgba|hsl|hsla|oklch|oklab|color\()/i.test(r),i=r=>R.test(r),u=s.map(a),d=u.filter(r=>c(r.value)),m=u.filter(r=>!c(r.value)&&i(r.name)),l=u.filter(r=>!c(r.value)&&!i(r.name)),n=[];return d.length&&n.push({label:`配色 · ${d.length}`,items:d}),m.length&&n.push({label:`字体 · ${m.length}`,items:m}),l.length&&n.push({label:`其他 · ${l.length}`,items:l}),n}function G({path:t}){const[s,a]=h.useState(null),[c,i]=h.useState(null),[u,d]=v(),m=h.useRef(null);return h.useEffect(()=>{let l=!1;const n=m.current!==t;m.current=t,n?(a(null),i(null)):s===null&&i(null);async function r(){try{const o=await J("/__design/asset?path="+encodeURIComponent(t),{cache:"no-store"});if(l)return;a(B(o)),i(null)}catch(o){l||i(K(o))}}return r(),()=>{l=!0}},[t,u]),c&&s===null?e.jsx("div",{className:"h-full flex flex-col p-4",children:e.jsx(A,{message:c,onRetry:d})}):s===null?e.jsx("p",{className:"p-3 text-xs text-muted-foreground",children:"解析中…"}):s.length?e.jsxs("div",{className:"relative p-8 flex flex-col gap-7",children:[e.jsx("div",{className:"absolute right-6 top-4 z-10",children:e.jsx(y,{onClick:d})}),s.map(l=>{const n=l.items.some(o=>C.test(o.value)),r=l.items.some(o=>R.test(o.name));return e.jsxs("section",{children:[e.jsx("div",{className:"mb-3 text-sm font-semibold uppercase text-muted-foreground",children:l.label}),n?e.jsx("div",{className:"grid gap-3",style:{gridTemplateColumns:"repeat(auto-fill, minmax(var(--token-card-min-w), 1fr))"},children:l.items.filter(o=>C.test(o.value)).map(({name:o,value:x})=>e.jsxs("div",{className:"overflow-hidden rounded-lg border bg-background",children:[e.jsx("div",{className:"h-[var(--design-preview-h)] border-b",style:{background:x}}),e.jsx("div",{className:"px-2.5 pt-2 font-mono text-sm break-all",children:o}),e.jsx("div",{className:"px-2.5 pb-2 text-xs text-muted-foreground",children:x})]},o))}):r?e.jsx("div",{className:"grid gap-3",style:{gridTemplateColumns:"repeat(auto-fill, minmax(var(--token-card-min-w), 1fr))"},children:l.items.map(({name:o,value:x})=>e.jsxs("div",{className:"overflow-hidden rounded-lg border bg-background",children:[e.jsx("div",{className:"grid h-[var(--design-preview-h)] place-items-center text-2xl",style:{fontFamily:x},children:"Aa"}),e.jsx("div",{className:"px-2.5 font-mono text-sm",children:o})]},o))}):e.jsx("div",{className:"flex flex-col gap-1",children:l.items.map(({name:o,value:x})=>e.jsxs("div",{className:"flex justify-between gap-3 px-2.5 py-1.5 rounded border bg-background text-xs",children:[e.jsx("span",{className:"font-mono",children:o}),e.jsx("span",{className:"text-muted-foreground",children:x})]},o))})]},l.label)})]}):e.jsx("p",{className:"p-3 text-xs",children:"未发现 CSS 变量"})}const p=t=>"/__design/asset?path="+encodeURIComponent(t);function V(){const[t,s]=v();return{bust:a=>t?`${a}&v=${t}`:a,refresh:s}}function j({onClick:t}){return e.jsx("div",{className:"absolute right-3 top-3 z-10",children:e.jsx(y,{onClick:t})})}function Y({path:t}){return e.jsx(D,{path:t,resolve:p})}function Z({path:t}){return e.jsx(H,{path:t,resolve:p})}function q({path:t}){return e.jsx(z,{path:t,resolve:p})}function Q({path:t}){const{bust:s,refresh:a}=V();return e.jsxs("div",{className:"relative grid place-items-center p-8",children:[e.jsx(j,{onClick:a}),e.jsx("video",{src:s(p(t)),controls:!0,className:"max-w-full max-h-[80vh] rounded border"})]})}function ee({path:t}){const{bust:s,refresh:a}=V();return e.jsxs("div",{className:"relative grid place-items-center p-8",children:[e.jsx(j,{onClick:a}),e.jsx("audio",{src:s(p(t)),controls:!0,className:"w-full max-w-2xl"})]})}function te({path:t}){const{bust:s,refresh:a}=V();return e.jsxs("div",{className:"relative grid place-items-center p-8 h-full",children:[e.jsx(j,{onClick:a}),e.jsx("iframe",{src:s(p(t)),title:"PDF",className:"w-full h-full max-h-[80vh] rounded border bg-white"})]})}function se({path:t}){const[s,a]=v(),c=h.useRef(null),[i,u]=h.useState("");return h.useEffect(()=>{let d=!1;const m=c.current!==t;c.current=t;let l="",n=null;return m&&u(""),fetch(p(t)).then(r=>r.blob()).then(async r=>{var o;if(!d){if(l=URL.createObjectURL(r),n=new FontFace("zd-font-preview",`url(${l})`),await n.load(),d){(o=n.dispose)==null||o.call(n);return}document.fonts.add(n),u(t.split("/").pop()??t)}}).catch(()=>{d||u(t.split("/").pop()??t)}),()=>{var r;if(d=!0,n)try{document.fonts.delete(n),(r=n.dispose)==null||r.call(n)}catch{}l&&URL.revokeObjectURL(l)}},[t,s]),e.jsxs("div",{className:"relative h-full overflow-auto p-8 grid gap-6 place-content-center text-center",children:[e.jsx(j,{onClick:a}),e.jsx("div",{className:"text-xs text-muted-foreground font-mono break-all",children:t}),e.jsx("div",{className:"text-5xl",style:{fontFamily:i?"'zd-font-preview', serif":"serif"},children:"Aa 字体预览 0123"})]})}function ne({path:t}){const{icon:s}=k();return e.jsx("div",{className:"grid place-items-center h-full text-center text-muted-foreground",children:e.jsxs("div",{children:[s("image-off","h-10 w-10 mx-auto mb-3 opacity-50"),e.jsx("p",{children:"该格式无法预览"}),e.jsx("p",{className:"mt-1 font-mono text-xs break-all",children:t})]})})}const re={page:X,icon:Z,token:G,md:Y,video:Q,audio:ee,pdf:te,component:q,font:se};function oe(t){return re[t]??ne}const E="zd-design-viewport",le={mode:0,w:1024,h:768},ae=[0,768,375],S=280,F=3e3,_=400,I=3e3;function ie(t){if(!t||typeof t!="object")return!1;const s=t,a=ae.includes(s.mode)||s.mode==="custom",c=typeof s.w=="number"&&Number.isFinite(s.w)&&s.w>=S&&s.w<=F,i=typeof s.h=="number"&&Number.isFinite(s.h)&&s.h>=_&&s.h<=I;return a&&c&&i}const ce=()=>T(E,{...le},ie);function N(t){W(E,JSON.stringify(t))}function de({mode:t,onMode:s,w:a,h:c,onW:i,onH:u}){const{icon:d}=k(),m=[{v:0,icon:d("monitor","h-3.5 w-3.5"),label:"桌面"},{v:768,icon:d("tablet","h-3.5 w-3.5"),label:"768"},{v:375,icon:d("smartphone","h-3.5 w-3.5"),label:"375"},{v:"custom",icon:d("sliders-horizontal","h-3.5 w-3.5"),label:"自定义"}],l="w-[var(--design-input-w)] h-7 px-1 text-center text-xs rounded border border-border bg-background text-foreground [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none focus:border-primary";return e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"flex items-center gap-1 rounded-md border border-border p-0.5 bg-muted",children:e.jsx(M,{items:m.map(n=>({key:String(n.v),label:n.label,renderLabel:()=>e.jsxs(e.Fragment,{children:[n.icon,e.jsx("span",{className:"hidden sm:inline",children:n.label})]})})),value:String(t),onChange:n=>s(n==="0"?0:n==="custom"?"custom":Number(n)),ariaLabel:"视口模式"})}),e.jsxs("span",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[e.jsx("input",{type:"number",value:a,min:S,max:F,step:8,onChange:n=>i(Number(n.target.value)),"aria-label":"自定义宽度",className:l}),e.jsx("span",{className:"text-muted-foreground/70",children:"×"}),e.jsx("input",{type:"number",value:c,min:_,max:I,step:8,onChange:n=>u(Number(n.target.value)),"aria-label":"自定义高度",className:l}),e.jsx("span",{className:"text-sm text-muted-foreground/70",children:"px"})]})]})}function ve({params:t}){const{icon:s}=k(),a=P(w.mode,"h-5 w-5");$();const c=t.get("type")??"",i=t.get("asset"),[u,d]=h.useState(ce),m=b=>{const f={...u,mode:b};d(f),N(f)},l=b=>{const f={...u,w:b};d(f),N(f)},n=b=>{const f={...u,h:b};d(f),N(f)},{mode:r,w:o,h:x}=u,g=i?oe(c):null,O=r===0?"桌面":r==="custom"?`${o} × ${x}`:`${r}px`;return e.jsx(L,{manifest:w,icon:a,breadcrumb:["插件",w.mode,...c?[c]:[],...i?[i]:[]],children:e.jsx("div",{className:"mx-auto h-full flex flex-col bg-background border rounded-lg shadow-sm overflow-hidden",children:i&&g?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"h-[var(--design-toolbar-h)] flex-none flex items-center justify-between px-3.5 border-b bg-background text-xs",children:[e.jsx("span",{className:"font-mono truncate",children:i}),e.jsx("span",{className:"text-muted-foreground ml-3 flex-none",children:O}),e.jsx(de,{mode:r,onMode:m,w:o,h:x,onW:l,onH:n})]}),e.jsx("div",{className:"flex-1 min-h-0 overflow-auto",children:c==="page"?e.jsx("div",{className:"mx-auto bg-background overflow-hidden",style:{maxWidth:r===0?void 0:r==="custom"?o:r,height:r==="custom"?x:"100%"},children:e.jsx(g,{path:i})}):e.jsx("div",{className:"mx-auto max-w-5xl h-full overflow-auto",children:e.jsx(g,{path:i})})})]}):e.jsx(U,{icon:s("palette","h-6 w-6"),title:"从左侧选择一个资产预览",hint:"点左侧折叠钮展开资产树 · 改文件即时刷新"})})})}export{ve as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e,r as u}from"./vendor-react-CDaMBvJU.js";import{u as C,R as M,C as g,M as O,I as W}from"./CodeViewer-Dxlw7RnH.js";import{u as w,R as L,a as R,P as V,c as _}from"./index-DJiq_38M.js";import{m as I}from"./web-5OFeHrya.js";import"./vendor-ui-dpI0b3Ao.js";import"./fetchJson-D-dWeu1j.js";import"./client-Cw4K1Nx3.js";function T({path:t,resolve:n}){const[o,r]=C(),m=t.split("/").pop(),c=n?n(t):"/"+encodeURI(t),d=o?`${c}${c.includes("?")?"&":"?"}v=${o}`:c;return e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsxs("div",{className:"flex-none px-4 py-2 border-b text-xs flex items-center gap-3",children:[e.jsx("span",{className:"font-mono text-foreground",children:m}),e.jsx("div",{className:"ml-auto",children:e.jsx(M,{onClick:r})})]}),e.jsx("iframe",{src:d,title:m,className:"flex-1 min-h-0 w-full bg-background"})]})}function U({path:t}){const{icon:n}=w();return e.jsx("div",{className:"grid place-items-center h-full text-center text-muted-foreground",children:e.jsxs("div",{children:[n("file-question","h-10 w-10 mx-auto mb-3 opacity-50"),e.jsx("p",{children:"该格式无法预览"}),e.jsx("p",{className:"mt-1 font-mono text-xs break-all",children:t})]})})}const b=176,j=400,p=176,v="zd-outline-w",$=t=>Math.min(j,Math.max(b,t));function q(){try{const t=localStorage.getItem(v);if(t===null)return p;const n=Number(t);return Number.isFinite(n)&&n>=b&&n<=j?n:p}catch{return p}}function A({containerRef:t}){const{icon:n}=w(),[o,r]=u.useState([]),[m,c]=u.useState(null),[d,N]=u.useState(q),S=(s,l)=>{const i=$(s);if(N(i),l)try{localStorage.setItem(v,String(i))}catch{}},k=()=>{N(p);try{localStorage.removeItem(v)}catch{}};u.useEffect(()=>{const s=t.current;if(!s)return;let l=!1;const i=()=>{if(l)return;const x=s.querySelectorAll("h1[id], h2[id], h3[id]"),h=[];x.forEach(f=>{var y;h.push({id:f.id,text:((y=f.textContent)==null?void 0:y.trim())??"",level:parseInt(f.tagName[1],10)})}),r(h)};i();const a=new MutationObserver(i);return a.observe(s,{childList:!0,subtree:!0,characterData:!0}),()=>{l=!0,a.disconnect()}},[t]),u.useEffect(()=>{const s=t.current;if(!s||!o.length)return;const l=new IntersectionObserver(i=>{const a=i.filter(x=>x.isIntersecting);if(a.length){const x=a.reduce((h,f)=>h.boundingClientRect.top<f.boundingClientRect.top?h:f);c(x.target.id)}},{root:s,rootMargin:"-60px 0px -70% 0px",threshold:0});return o.forEach(({id:i})=>{const a=s.querySelector(`#${CSS.escape(i)}`);a&&l.observe(a)}),()=>l.disconnect()},[o,t]);const E=s=>{var i;const l=(i=t.current)==null?void 0:i.querySelector(`#${CSS.escape(s)}`);l==null||l.scrollIntoView({behavior:"smooth",block:"start"})};return o.length?e.jsxs("nav",{className:"hidden md:flex shrink-0 border-l py-2 overflow-hidden",style:{width:`${d}px`},"aria-label":"文档大纲",children:[e.jsx(L,{orientation:"vertical",invert:!0,min:b,max:j,value:d,onChange:S,onReset:k,label:"调整大纲宽度",className:"flex-none w-1.5 cursor-col-resize self-stretch"}),e.jsxs("div",{className:"flex-1 min-w-0 min-h-0 overflow-y-auto pl-3",children:[e.jsxs("div",{className:"flex items-center gap-1 mb-2 text-sm font-medium text-muted-foreground uppercase tracking-wider",children:[n("file-text","h-3 w-3"),e.jsx("span",{children:"大纲"})]}),e.jsx("ul",{className:"space-y-0.5",children:o.map(s=>e.jsx("li",{children:e.jsx("button",{type:"button",title:s.text,onClick:()=>E(s.id),className:`w-full text-left text-sm leading-snug py-0.5 px-1.5 rounded line-clamp-2 transition-colors ${m===s.id?"bg-primary/10 text-foreground font-medium":"text-muted-foreground hover:bg-muted/70"}`,style:{paddingLeft:6+Math.min(s.level-1,2)*10},children:s.text||s.id})},s.id))})]})]}):null}function F(t){const n=t.slice(t.lastIndexOf("/")+1).toLowerCase();if(n==="justfile"||n==="makefile")return g;const o=n.lastIndexOf("."),r=o>=0?n.slice(o):"";return r===".md"||r===".markdown"?O:[".svg",".png",".jpg",".jpeg",".gif",".webp",".ico"].includes(r)?W:[".pdf",".html",".htm"].includes(r)?T:[".sql",".txt",".csv",".tsv",".json",".yaml",".yml",".xml",".py",".js",".ts",".java",".go",".rs",".rb",".php",".c",".cpp",".h",".cs",".swift",".kt",".scala",".sh",".bash",".zsh",".fish",".env",".gitignore",".dockerfile"].includes(r)?g:o===-1?g:U}function Y({params:t}){const{icon:n}=w(),o=R(I.mode,"h-5 w-5"),r=t.get("file"),m=t.get("wt"),c=u.useRef(null),d=r?F(r):null;return u.useEffect(()=>{c.current&&(c.current.scrollTop=0)},[r]),e.jsx(V,{manifest:I,icon:o,breadcrumb:["插件",m??"当前分支",...r?[r]:[]],children:e.jsx("div",{className:"mx-auto h-full max-w-5xl bg-background border rounded-lg shadow-sm overflow-hidden flex flex-col",children:r&&d?e.jsxs("div",{className:"flex-1 min-h-0 flex overflow-hidden",children:[e.jsx("div",{ref:c,className:"flex-1 min-h-0 overflow-auto",children:e.jsx(d,{path:r})}),e.jsx(A,{containerRef:c})]}):e.jsx(_,{icon:n("eye","h-6 w-6"),title:"从左侧选择文件预览",hint:"支持 Markdown、图片、代码等格式"})})})}export{Y as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e}from"./vendor-react-CDaMBvJU.js";import{d as p,u as h,a as j,b as v,E as N,S as y,f as w,P as _}from"./index-
|
|
1
|
+
import{j as e}from"./vendor-react-CDaMBvJU.js";import{d as p,u as h,a as j,b as v,E as N,S as y,f as w,P as _}from"./index-DJiq_38M.js";import{u}from"./usePluginData-BmlgMZle.js";import{a as m}from"./fetchJson-D-dWeu1j.js";import{m as n}from"./web-ONYPO1IN.js";import"./vendor-ui-dpI0b3Ao.js";import"./client-Cw4K1Nx3.js";function k({value:i,className:l}){const r=Math.max(0,Math.min(100,i));return e.jsx("div",{className:p("rounded-[var(--radius-full)] bg-muted overflow-hidden",l),role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuetext":`${r}%`,children:e.jsx("div",{className:"h-full rounded-[var(--radius-full)] bg-primary transition-all",style:{width:`${r}%`}})})}function B(i){var d,c;const{icon:l}=h(),r=j(n.mode,"h-5 w-5"),x=v(),a=u("stats:/__stats/data",()=>m("/__stats/data",{cache:"no-store"}),{subscribe:"files"}),o=u("stats:/__detect",()=>m("/__detect",{cache:"no-store"}));if(a.error)return e.jsx("div",{className:"h-full flex flex-col",children:e.jsx(N,{message:a.error,onRetry:a.reload})});if(!a.data)return e.jsx("div",{className:"h-full p-6",children:e.jsx(y,{rows:8})});const t=a.data,f=Math.max(...t.byExt.map(s=>s.count),1),b=[{label:"文件",value:String(t.files),iconName:"file-text",drill:null},{label:"目录",value:String(t.dirs),iconName:"folder-tree",drill:null},{label:"总大小",value:w(t.totalSize),iconName:null,drill:null},{label:"Worktree",value:String(t.worktrees),iconName:"git-branch",drill:"worktree"},{label:"未提交",value:String(t.dirty??0),iconName:null,drill:"dirty"}],g=s=>x.navigate({p:"view",card:s});return e.jsx(_,{manifest:n,icon:r,breadcrumb:["插件",n.mode],children:e.jsxs("div",{className:"mx-auto h-full max-w-6xl overflow-auto rounded-lg border bg-background p-6 shadow-sm",children:[e.jsx("p",{className:"text-xs text-muted-foreground mb-5",children:"后端 fs 扫描 + 前端渲染 · 改文件即时刷新 · 点击卡片跳转"}),e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-3 mb-6",children:b.map(s=>e.jsxs("button",{type:"button",onClick:()=>s.drill&&g(s.drill),disabled:!s.drill,title:s.drill?`点击跳转至 ${s.label}`:void 0,className:`rounded-lg border bg-background p-4 text-left transition-colors ${s.drill?"hover:bg-muted/70 cursor-pointer":"cursor-default opacity-80"}`,children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:"text-xl font-bold",children:s.value}),s.iconName&&l(s.iconName,"h-4 w-4 text-muted-foreground/50")]}),e.jsx("div",{className:"text-sm text-muted-foreground mt-1",children:s.label})]},s.label))}),e.jsx("h2",{className:"text-xs font-medium text-muted-foreground mb-3",children:"文件类型 Top 10"}),e.jsx("div",{className:"space-y-2",children:t.byExt.map(s=>e.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[e.jsx("span",{className:"w-16 font-mono text-foreground truncate",children:s.ext}),e.jsx(k,{value:parseFloat((s.count/f*100).toFixed(1)),className:"flex-1 h-2"}),e.jsx("span",{className:"w-8 text-right font-mono text-muted-foreground",children:s.count})]},s.ext))}),e.jsxs("div",{className:"mt-5 flex items-center gap-2 text-xs",children:[o.error?e.jsx("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded border text-muted-foreground border-border",children:"justfile 探测失败"}):e.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded border ${(d=o.data)!=null&&d.hasJust?"text-success border-success/30 bg-success/10":"text-muted-foreground border-border"}`,children:["justfile ",(c=o.data)!=null&&c.hasJust?"✓":"✗"]}),typeof t.dirty=="number"&&e.jsx("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded border ${t.dirty?"text-warning border-warning/30 bg-warning/10":"text-success border-success/30 bg-success/10"}`,children:t.dirty?`${t.dirty} 未提交`:"clean"}),e.jsxs("span",{className:"text-muted-foreground",children:["root: ",t.root]})]})]})})}export{B as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as h,d as S,j as f}from"./vendor-react-CDaMBvJU.js";import{u as ht,S as Le,E as gt,c as mt,B as $,a as pt,b as xt,P as Dt}from"./index-DkIxtopr.js";import{F as Me}from"./FilterPills-CNr38-5Y.js";import{u as te}from"./vendor-ui-dpI0b3Ao.js";import{u as bt}from"./usePluginData-CDskp8Eo.js";import{a as $e}from"./fetchJson-D-dWeu1j.js";import{m as ge}from"./web-FIt_7MBb.js";import"./client-Cw4K1Nx3.js";function x(t){const e=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&e==="[object Date]"?new t.constructor(+t):typeof t=="number"||e==="[object Number]"||typeof t=="string"||e==="[object String]"?new Date(t):new Date(NaN)}function re(t,e){return t instanceof Date?new t.constructor(e):new Date(e)}function Ft(t,e){const s=x(t);return isNaN(e)?re(t,NaN):(e&&s.setDate(s.getDate()+e),s)}function vt(t,e){const s=x(t);if(isNaN(e))return re(t,NaN);if(!e)return s;const r=s.getDate(),n=re(t,s.getTime());n.setMonth(s.getMonth()+e+1,0);const i=n.getDate();return r>=i?n:(s.setFullYear(n.getFullYear(),n.getMonth(),r),s)}function W(t,e){const{years:s=0,months:r=0,weeks:n=0,days:i=0,hours:c=0,minutes:o=0,seconds:d=0}=e,a=x(t),m=r||s?vt(a,r+s*12):a,_=i||n?Ft(m,i+n*7):m,v=o+c*60,b=(d+v*60)*1e3;return re(t,_.getTime()+b)}const yt=864e5,Et=6e4,Ct=36e5;function Ie(t){const e=x(t);return e.setHours(0,0,0,0),e}function Be(t){const e=x(t),s=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return s.setUTCFullYear(e.getFullYear()),+t-+s}function jt(t,e){const s=Ie(t),r=Ie(e),n=+s-Be(s),i=+r-Be(r);return Math.round((n-i)/yt)}function G(t,e){const s=x(t),r=x(e),n=s.getTime()-r.getTime();return n<0?-1:n>0?1:n}function wt(t,e){const s=x(t),r=x(e),n=s.getFullYear()-r.getFullYear(),i=s.getMonth()-r.getMonth();return n*12+i}function At(t,e){const s=x(t),r=x(e);return s.getFullYear()-r.getFullYear()}function zt(t,e){const s=x(t),r=x(e),n=Pe(s,r),i=Math.abs(jt(s,r));s.setDate(s.getDate()-n*i);const c=+(Pe(s,r)===-n),o=n*(i-c);return o===0?0:o}function Pe(t,e){const s=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return s<0?-1:s>0?1:s}function ye(t){return e=>{const r=(t?Math[t]:Math.trunc)(e);return r===0?0:r}}function Ee(t,e){return+x(t)-+x(e)}function kt(t,e,s){const r=Ee(t,e)/Ct;return ye(s==null?void 0:s.roundingMethod)(r)}function Nt(t,e,s){const r=Ee(t,e)/Et;return ye(s==null?void 0:s.roundingMethod)(r)}function Rt(t){const e=x(t);return e.setHours(23,59,59,999),e}function St(t){const e=x(t),s=e.getMonth();return e.setFullYear(e.getFullYear(),s+1,0),e.setHours(23,59,59,999),e}function Ot(t){const e=x(t);return+Rt(e)==+St(e)}function Tt(t,e){const s=x(t),r=x(e),n=G(s,r),i=Math.abs(wt(s,r));let c;if(i<1)c=0;else{s.getMonth()===1&&s.getDate()>27&&s.setDate(30),s.setMonth(s.getMonth()-n*i);let o=G(s,r)===-n;Ot(x(t))&&i===1&&G(t,r)===1&&(o=!1),c=n*(i-Number(o))}return c===0?0:c}function Lt(t,e,s){const r=Ee(t,e)/1e3;return ye(s==null?void 0:s.roundingMethod)(r)}function Mt(t,e){const s=x(t),r=x(e),n=G(s,r),i=Math.abs(At(s,r));s.setFullYear(1584),r.setFullYear(1584);const c=G(s,r)===-n,o=n*(i-+c);return o===0?0:o}function $t(t){const e=x(t.start),s=x(t.end),r={},n=Mt(s,e);n&&(r.years=n);const i=W(e,{years:r.years}),c=Tt(s,i);c&&(r.months=c);const o=W(i,{months:r.months}),d=zt(s,o);d&&(r.days=d);const a=W(o,{days:r.days}),m=kt(s,a);m&&(r.hours=m);const _=W(a,{hours:r.hours}),v=Nt(s,_);v&&(r.minutes=v);const y=W(_,{minutes:r.minutes}),b=Lt(s,y);return b&&(r.seconds=b),r}const It=40,se=1e3;function Ze(t,e,s,r=It){return t-e-s<r}function Bt(t){return/^\[(ERROR|FATAL)\]/.test(t)||/^ERROR\b/.test(t)?"error":/^\[(WARN|WARNING)\]/.test(t)||/^WARN(ING)?\b/.test(t)?"warn":/^\[DEBUG\]/.test(t)||/^DEBUG\b/.test(t)?"info":/^\[(INFO|DOWNLOAD|PROGRESS)\]/.test(t)||/^INFO\b/.test(t)?"success":"plain"}function Fe(t){switch(Bt(t)){case"error":return"text-destructive";case"warn":return"text-warning";case"info":return"text-info";case"success":return"text-success";default:return"text-terminal-fg"}}function Pt(t,e){if(!e)return null;const s=t.toLowerCase(),r=e.toLowerCase(),n=[];let i=0,c=!1;for(;i<t.length;){const o=s.indexOf(r,i);if(o<0){n.push({text:t.slice(i),hit:!1});break}o>i&&n.push({text:t.slice(i,o),hit:!1}),n.push({text:t.slice(o,o+r.length),hit:!0}),c=!0,i=o+r.length}return c?n:null}var et={};const N=[[{color:"0, 0, 0",class:"ansi-black"},{color:"187, 0, 0",class:"ansi-red"},{color:"0, 187, 0",class:"ansi-green"},{color:"187, 187, 0",class:"ansi-yellow"},{color:"0, 0, 187",class:"ansi-blue"},{color:"187, 0, 187",class:"ansi-magenta"},{color:"0, 187, 187",class:"ansi-cyan"},{color:"255,255,255",class:"ansi-white"}],[{color:"85, 85, 85",class:"ansi-bright-black"},{color:"255, 85, 85",class:"ansi-bright-red"},{color:"0, 255, 0",class:"ansi-bright-green"},{color:"255, 255, 85",class:"ansi-bright-yellow"},{color:"85, 85, 255",class:"ansi-bright-blue"},{color:"255, 85, 255",class:"ansi-bright-magenta"},{color:"85, 255, 255",class:"ansi-bright-cyan"},{color:"255, 255, 255",class:"ansi-bright-white"}]],Zt=/(https?:\/\/(?:[A-Za-z0-9#;/?:@=+$',_.!~*()[\]-]|&|%[A-Fa-f0-9]{2})+)/gm;class I{static escapeForHtml(e){return new I().escapeForHtml(e)}static linkify(e){return new I().linkify(e)}static ansiToHtml(e,s){return new I().ansiToHtml(e,s)}static ansiToJson(e,s){return new I().ansiToJson(e,s)}static ansiToText(e){return new I().ansiToText(e)}constructor(){this.fg=this.bg=this.fg_truecolor=this.bg_truecolor=null,this.bright=0,this.decorations=[]}setupPalette(){this.PALETTE_COLORS=[];for(let n=0;n<2;++n)for(let i=0;i<8;++i)this.PALETTE_COLORS.push(N[n][i].color);let e=[0,95,135,175,215,255],s=(n,i,c)=>e[n]+", "+e[i]+", "+e[c];for(let n=0;n<6;++n)for(let i=0;i<6;++i)for(let c=0;c<6;++c)this.PALETTE_COLORS.push(s(n,i,c));let r=8;for(let n=0;n<24;++n,r+=10)this.PALETTE_COLORS.push(r+", "+r+", "+r)}escapeForHtml(e){return e.replace(/[&<>\"]/gm,s=>s=="&"?"&":s=='"'?""":s=="<"?"<":s==">"?">":"")}linkify(e){return e.replace(Zt,s=>`<a href="${s}">${s}</a>`)}ansiToHtml(e,s){return this.process(e,s,!0)}ansiToJson(e,s){return s=s||{},s.json=!0,s.clearLine=!1,this.process(e,s,!0)}ansiToText(e){return this.process(e,{},!1)}process(e,s,r){let n=this,i=e.split(/\033\[/),c=i.shift();s==null&&(s={}),s.clearLine=/\r/.test(e);let o=i.map(d=>this.processChunk(d,s,r));if(s&&s.json){let d=n.processChunkJson("");return d.content=c,d.clearLine=s.clearLine,o.unshift(d),s.remove_empty&&(o=o.filter(a=>!a.isEmpty())),o}else o.unshift(c);return o.join("")}processChunkJson(e,s,r){s=typeof s>"u"?{}:s;let n=s.use_classes=typeof s.use_classes<"u"&&s.use_classes,i=s.key=n?"class":"color",c={content:e,fg:null,bg:null,fg_truecolor:null,bg_truecolor:null,isInverted:!1,clearLine:s.clearLine,decoration:null,decorations:[],was_processed:!1,isEmpty:()=>!c.content},o=e.match(/^([!\x3c-\x3f]*)([\d;]*)([\x20-\x2c]*[\x40-\x7e])([\s\S]*)/m);if(!o)return c;c.content=o[4];let d=o[2].split(";");if(o[1]!==""||o[3]!=="m"||!r)return c;let a=this;for(;d.length>0;){let m=d.shift(),_=parseInt(m);if(isNaN(_)||_===0)a.fg=a.bg=null,a.decorations=[];else if(_===1)a.decorations.push("bold");else if(_===2)a.decorations.push("dim");else if(_===3)a.decorations.push("italic");else if(_===4)a.decorations.push("underline");else if(_===5)a.decorations.push("blink");else if(_===7)a.decorations.push("reverse");else if(_===8)a.decorations.push("hidden");else if(_===9)a.decorations.push("strikethrough");else if(_===21)a.removeDecoration("bold");else if(_===22)a.removeDecoration("bold"),a.removeDecoration("dim");else if(_===23)a.removeDecoration("italic");else if(_===24)a.removeDecoration("underline");else if(_===25)a.removeDecoration("blink");else if(_===27)a.removeDecoration("reverse");else if(_===28)a.removeDecoration("hidden");else if(_===29)a.removeDecoration("strikethrough");else if(_===39)a.fg=null;else if(_===49)a.bg=null;else if(_>=30&&_<38)a.fg=N[0][_%10][i];else if(_>=90&&_<98)a.fg=N[1][_%10][i];else if(_>=40&&_<48)a.bg=N[0][_%10][i];else if(_>=100&&_<108)a.bg=N[1][_%10][i];else if(_===38||_===48){let v=_===38;if(d.length>=1){let y=d.shift();if(y==="5"&&d.length>=1){let b=parseInt(d.shift());if(b>=0&&b<=255)if(!n)this.PALETTE_COLORS||a.setupPalette(),v?a.fg=this.PALETTE_COLORS[b]:a.bg=this.PALETTE_COLORS[b];else{let w=b>=16?"ansi-palette-"+b:N[b>7?1:0][b%8].class;v?a.fg=w:a.bg=w}}else if(y==="2"&&d.length>=3){let b=parseInt(d.shift()),w=parseInt(d.shift()),B=parseInt(d.shift());if(b>=0&&b<=255&&w>=0&&w<=255&&B>=0&&B<=255){let A=b+", "+w+", "+B;n?v?(a.fg="ansi-truecolor",a.fg_truecolor=A):(a.bg="ansi-truecolor",a.bg_truecolor=A):v?a.fg=A:a.bg=A}}}}}return a.fg===null&&a.bg===null&&a.decorations.length===0||(c.fg=a.fg,c.bg=a.bg,c.fg_truecolor=a.fg_truecolor,c.bg_truecolor=a.bg_truecolor,c.decorations=a.decorations,c.decoration=a.decorations.slice(-1).pop()||null,c.was_processed=!0),c}processChunk(e,s,r){s=s||{};let n=this.processChunkJson(e,s,r),i=s.use_classes;if(n.decorations=n.decorations.filter(_=>{if(_==="reverse"){n.fg||(n.fg=N[0][7][i?"class":"color"]),n.bg||(n.bg=N[0][0][i?"class":"color"]);let v=n.fg;n.fg=n.bg,n.bg=v;let y=n.fg_truecolor;return n.fg_truecolor=n.bg_truecolor,n.bg_truecolor=y,n.isInverted=!0,!1}return!0}),s.json)return n;if(n.isEmpty())return"";if(!n.was_processed)return n.content;let c=[],o=[],d=[],a={},m=_=>{let v=[],y;for(y in _)_.hasOwnProperty(y)&&v.push("data-"+y+'="'+this.escapeForHtml(_[y])+'"');return v.length>0?" "+v.join(" "):""};return n.isInverted&&(a["ansi-is-inverted"]="true"),n.fg&&(i?(c.push(n.fg+"-fg"),n.fg_truecolor!==null&&(a["ansi-truecolor-fg"]=n.fg_truecolor,n.fg_truecolor=null)):c.push("color:rgb("+n.fg+")")),n.bg&&(i?(c.push(n.bg+"-bg"),n.bg_truecolor!==null&&(a["ansi-truecolor-bg"]=n.bg_truecolor,n.bg_truecolor=null)):c.push("background-color:rgb("+n.bg+")")),n.decorations.forEach(_=>{if(i){o.push("ansi-"+_);return}_==="bold"?o.push("font-weight:bold"):_==="dim"?o.push("opacity:0.5"):_==="italic"?o.push("font-style:italic"):_==="hidden"?o.push("visibility:hidden"):_==="strikethrough"?d.push("line-through"):d.push(_)}),d.length&&o.push("text-decoration:"+d.join(" ")),i?'<span class="'+c.concat(o).join(" ")+'"'+m(a)+">"+n.content+"</span>":'<span style="'+c.concat(o).join(";")+'"'+m(a)+">"+n.content+"</span>"}removeDecoration(e){const s=this.decorations.indexOf(e);s>=0&&this.decorations.splice(s,1)}}var Ht=I,ie={exports:{}};function Ce(t){if(!t)return"";if(!/\r/.test(t))return t;for(t=t.replace(/\r+\n/gm,`
|
|
1
|
+
import{r as h,d as S,j as f}from"./vendor-react-CDaMBvJU.js";import{u as ht,S as Le,E as gt,c as mt,B as $,a as pt,b as xt,P as Dt}from"./index-DJiq_38M.js";import{F as Me}from"./FilterPills-BZwzyDRQ.js";import{u as te}from"./vendor-ui-dpI0b3Ao.js";import{u as bt}from"./usePluginData-BmlgMZle.js";import{a as $e}from"./fetchJson-D-dWeu1j.js";import{m as ge}from"./web-vocphEUd.js";import"./client-Cw4K1Nx3.js";function x(t){const e=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&e==="[object Date]"?new t.constructor(+t):typeof t=="number"||e==="[object Number]"||typeof t=="string"||e==="[object String]"?new Date(t):new Date(NaN)}function re(t,e){return t instanceof Date?new t.constructor(e):new Date(e)}function Ft(t,e){const s=x(t);return isNaN(e)?re(t,NaN):(e&&s.setDate(s.getDate()+e),s)}function vt(t,e){const s=x(t);if(isNaN(e))return re(t,NaN);if(!e)return s;const r=s.getDate(),n=re(t,s.getTime());n.setMonth(s.getMonth()+e+1,0);const i=n.getDate();return r>=i?n:(s.setFullYear(n.getFullYear(),n.getMonth(),r),s)}function W(t,e){const{years:s=0,months:r=0,weeks:n=0,days:i=0,hours:c=0,minutes:o=0,seconds:d=0}=e,a=x(t),m=r||s?vt(a,r+s*12):a,_=i||n?Ft(m,i+n*7):m,v=o+c*60,b=(d+v*60)*1e3;return re(t,_.getTime()+b)}const yt=864e5,Et=6e4,Ct=36e5;function Ie(t){const e=x(t);return e.setHours(0,0,0,0),e}function Be(t){const e=x(t),s=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return s.setUTCFullYear(e.getFullYear()),+t-+s}function jt(t,e){const s=Ie(t),r=Ie(e),n=+s-Be(s),i=+r-Be(r);return Math.round((n-i)/yt)}function G(t,e){const s=x(t),r=x(e),n=s.getTime()-r.getTime();return n<0?-1:n>0?1:n}function wt(t,e){const s=x(t),r=x(e),n=s.getFullYear()-r.getFullYear(),i=s.getMonth()-r.getMonth();return n*12+i}function At(t,e){const s=x(t),r=x(e);return s.getFullYear()-r.getFullYear()}function zt(t,e){const s=x(t),r=x(e),n=Pe(s,r),i=Math.abs(jt(s,r));s.setDate(s.getDate()-n*i);const c=+(Pe(s,r)===-n),o=n*(i-c);return o===0?0:o}function Pe(t,e){const s=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return s<0?-1:s>0?1:s}function ye(t){return e=>{const r=(t?Math[t]:Math.trunc)(e);return r===0?0:r}}function Ee(t,e){return+x(t)-+x(e)}function kt(t,e,s){const r=Ee(t,e)/Ct;return ye(s==null?void 0:s.roundingMethod)(r)}function Nt(t,e,s){const r=Ee(t,e)/Et;return ye(s==null?void 0:s.roundingMethod)(r)}function Rt(t){const e=x(t);return e.setHours(23,59,59,999),e}function St(t){const e=x(t),s=e.getMonth();return e.setFullYear(e.getFullYear(),s+1,0),e.setHours(23,59,59,999),e}function Ot(t){const e=x(t);return+Rt(e)==+St(e)}function Tt(t,e){const s=x(t),r=x(e),n=G(s,r),i=Math.abs(wt(s,r));let c;if(i<1)c=0;else{s.getMonth()===1&&s.getDate()>27&&s.setDate(30),s.setMonth(s.getMonth()-n*i);let o=G(s,r)===-n;Ot(x(t))&&i===1&&G(t,r)===1&&(o=!1),c=n*(i-Number(o))}return c===0?0:c}function Lt(t,e,s){const r=Ee(t,e)/1e3;return ye(s==null?void 0:s.roundingMethod)(r)}function Mt(t,e){const s=x(t),r=x(e),n=G(s,r),i=Math.abs(At(s,r));s.setFullYear(1584),r.setFullYear(1584);const c=G(s,r)===-n,o=n*(i-+c);return o===0?0:o}function $t(t){const e=x(t.start),s=x(t.end),r={},n=Mt(s,e);n&&(r.years=n);const i=W(e,{years:r.years}),c=Tt(s,i);c&&(r.months=c);const o=W(i,{months:r.months}),d=zt(s,o);d&&(r.days=d);const a=W(o,{days:r.days}),m=kt(s,a);m&&(r.hours=m);const _=W(a,{hours:r.hours}),v=Nt(s,_);v&&(r.minutes=v);const y=W(_,{minutes:r.minutes}),b=Lt(s,y);return b&&(r.seconds=b),r}const It=40,se=1e3;function Ze(t,e,s,r=It){return t-e-s<r}function Bt(t){return/^\[(ERROR|FATAL)\]/.test(t)||/^ERROR\b/.test(t)?"error":/^\[(WARN|WARNING)\]/.test(t)||/^WARN(ING)?\b/.test(t)?"warn":/^\[DEBUG\]/.test(t)||/^DEBUG\b/.test(t)?"info":/^\[(INFO|DOWNLOAD|PROGRESS)\]/.test(t)||/^INFO\b/.test(t)?"success":"plain"}function Fe(t){switch(Bt(t)){case"error":return"text-destructive";case"warn":return"text-warning";case"info":return"text-info";case"success":return"text-success";default:return"text-terminal-fg"}}function Pt(t,e){if(!e)return null;const s=t.toLowerCase(),r=e.toLowerCase(),n=[];let i=0,c=!1;for(;i<t.length;){const o=s.indexOf(r,i);if(o<0){n.push({text:t.slice(i),hit:!1});break}o>i&&n.push({text:t.slice(i,o),hit:!1}),n.push({text:t.slice(o,o+r.length),hit:!0}),c=!0,i=o+r.length}return c?n:null}var et={};const N=[[{color:"0, 0, 0",class:"ansi-black"},{color:"187, 0, 0",class:"ansi-red"},{color:"0, 187, 0",class:"ansi-green"},{color:"187, 187, 0",class:"ansi-yellow"},{color:"0, 0, 187",class:"ansi-blue"},{color:"187, 0, 187",class:"ansi-magenta"},{color:"0, 187, 187",class:"ansi-cyan"},{color:"255,255,255",class:"ansi-white"}],[{color:"85, 85, 85",class:"ansi-bright-black"},{color:"255, 85, 85",class:"ansi-bright-red"},{color:"0, 255, 0",class:"ansi-bright-green"},{color:"255, 255, 85",class:"ansi-bright-yellow"},{color:"85, 85, 255",class:"ansi-bright-blue"},{color:"255, 85, 255",class:"ansi-bright-magenta"},{color:"85, 255, 255",class:"ansi-bright-cyan"},{color:"255, 255, 255",class:"ansi-bright-white"}]],Zt=/(https?:\/\/(?:[A-Za-z0-9#;/?:@=+$',_.!~*()[\]-]|&|%[A-Fa-f0-9]{2})+)/gm;class I{static escapeForHtml(e){return new I().escapeForHtml(e)}static linkify(e){return new I().linkify(e)}static ansiToHtml(e,s){return new I().ansiToHtml(e,s)}static ansiToJson(e,s){return new I().ansiToJson(e,s)}static ansiToText(e){return new I().ansiToText(e)}constructor(){this.fg=this.bg=this.fg_truecolor=this.bg_truecolor=null,this.bright=0,this.decorations=[]}setupPalette(){this.PALETTE_COLORS=[];for(let n=0;n<2;++n)for(let i=0;i<8;++i)this.PALETTE_COLORS.push(N[n][i].color);let e=[0,95,135,175,215,255],s=(n,i,c)=>e[n]+", "+e[i]+", "+e[c];for(let n=0;n<6;++n)for(let i=0;i<6;++i)for(let c=0;c<6;++c)this.PALETTE_COLORS.push(s(n,i,c));let r=8;for(let n=0;n<24;++n,r+=10)this.PALETTE_COLORS.push(r+", "+r+", "+r)}escapeForHtml(e){return e.replace(/[&<>\"]/gm,s=>s=="&"?"&":s=='"'?""":s=="<"?"<":s==">"?">":"")}linkify(e){return e.replace(Zt,s=>`<a href="${s}">${s}</a>`)}ansiToHtml(e,s){return this.process(e,s,!0)}ansiToJson(e,s){return s=s||{},s.json=!0,s.clearLine=!1,this.process(e,s,!0)}ansiToText(e){return this.process(e,{},!1)}process(e,s,r){let n=this,i=e.split(/\033\[/),c=i.shift();s==null&&(s={}),s.clearLine=/\r/.test(e);let o=i.map(d=>this.processChunk(d,s,r));if(s&&s.json){let d=n.processChunkJson("");return d.content=c,d.clearLine=s.clearLine,o.unshift(d),s.remove_empty&&(o=o.filter(a=>!a.isEmpty())),o}else o.unshift(c);return o.join("")}processChunkJson(e,s,r){s=typeof s>"u"?{}:s;let n=s.use_classes=typeof s.use_classes<"u"&&s.use_classes,i=s.key=n?"class":"color",c={content:e,fg:null,bg:null,fg_truecolor:null,bg_truecolor:null,isInverted:!1,clearLine:s.clearLine,decoration:null,decorations:[],was_processed:!1,isEmpty:()=>!c.content},o=e.match(/^([!\x3c-\x3f]*)([\d;]*)([\x20-\x2c]*[\x40-\x7e])([\s\S]*)/m);if(!o)return c;c.content=o[4];let d=o[2].split(";");if(o[1]!==""||o[3]!=="m"||!r)return c;let a=this;for(;d.length>0;){let m=d.shift(),_=parseInt(m);if(isNaN(_)||_===0)a.fg=a.bg=null,a.decorations=[];else if(_===1)a.decorations.push("bold");else if(_===2)a.decorations.push("dim");else if(_===3)a.decorations.push("italic");else if(_===4)a.decorations.push("underline");else if(_===5)a.decorations.push("blink");else if(_===7)a.decorations.push("reverse");else if(_===8)a.decorations.push("hidden");else if(_===9)a.decorations.push("strikethrough");else if(_===21)a.removeDecoration("bold");else if(_===22)a.removeDecoration("bold"),a.removeDecoration("dim");else if(_===23)a.removeDecoration("italic");else if(_===24)a.removeDecoration("underline");else if(_===25)a.removeDecoration("blink");else if(_===27)a.removeDecoration("reverse");else if(_===28)a.removeDecoration("hidden");else if(_===29)a.removeDecoration("strikethrough");else if(_===39)a.fg=null;else if(_===49)a.bg=null;else if(_>=30&&_<38)a.fg=N[0][_%10][i];else if(_>=90&&_<98)a.fg=N[1][_%10][i];else if(_>=40&&_<48)a.bg=N[0][_%10][i];else if(_>=100&&_<108)a.bg=N[1][_%10][i];else if(_===38||_===48){let v=_===38;if(d.length>=1){let y=d.shift();if(y==="5"&&d.length>=1){let b=parseInt(d.shift());if(b>=0&&b<=255)if(!n)this.PALETTE_COLORS||a.setupPalette(),v?a.fg=this.PALETTE_COLORS[b]:a.bg=this.PALETTE_COLORS[b];else{let w=b>=16?"ansi-palette-"+b:N[b>7?1:0][b%8].class;v?a.fg=w:a.bg=w}}else if(y==="2"&&d.length>=3){let b=parseInt(d.shift()),w=parseInt(d.shift()),B=parseInt(d.shift());if(b>=0&&b<=255&&w>=0&&w<=255&&B>=0&&B<=255){let A=b+", "+w+", "+B;n?v?(a.fg="ansi-truecolor",a.fg_truecolor=A):(a.bg="ansi-truecolor",a.bg_truecolor=A):v?a.fg=A:a.bg=A}}}}}return a.fg===null&&a.bg===null&&a.decorations.length===0||(c.fg=a.fg,c.bg=a.bg,c.fg_truecolor=a.fg_truecolor,c.bg_truecolor=a.bg_truecolor,c.decorations=a.decorations,c.decoration=a.decorations.slice(-1).pop()||null,c.was_processed=!0),c}processChunk(e,s,r){s=s||{};let n=this.processChunkJson(e,s,r),i=s.use_classes;if(n.decorations=n.decorations.filter(_=>{if(_==="reverse"){n.fg||(n.fg=N[0][7][i?"class":"color"]),n.bg||(n.bg=N[0][0][i?"class":"color"]);let v=n.fg;n.fg=n.bg,n.bg=v;let y=n.fg_truecolor;return n.fg_truecolor=n.bg_truecolor,n.bg_truecolor=y,n.isInverted=!0,!1}return!0}),s.json)return n;if(n.isEmpty())return"";if(!n.was_processed)return n.content;let c=[],o=[],d=[],a={},m=_=>{let v=[],y;for(y in _)_.hasOwnProperty(y)&&v.push("data-"+y+'="'+this.escapeForHtml(_[y])+'"');return v.length>0?" "+v.join(" "):""};return n.isInverted&&(a["ansi-is-inverted"]="true"),n.fg&&(i?(c.push(n.fg+"-fg"),n.fg_truecolor!==null&&(a["ansi-truecolor-fg"]=n.fg_truecolor,n.fg_truecolor=null)):c.push("color:rgb("+n.fg+")")),n.bg&&(i?(c.push(n.bg+"-bg"),n.bg_truecolor!==null&&(a["ansi-truecolor-bg"]=n.bg_truecolor,n.bg_truecolor=null)):c.push("background-color:rgb("+n.bg+")")),n.decorations.forEach(_=>{if(i){o.push("ansi-"+_);return}_==="bold"?o.push("font-weight:bold"):_==="dim"?o.push("opacity:0.5"):_==="italic"?o.push("font-style:italic"):_==="hidden"?o.push("visibility:hidden"):_==="strikethrough"?d.push("line-through"):d.push(_)}),d.length&&o.push("text-decoration:"+d.join(" ")),i?'<span class="'+c.concat(o).join(" ")+'"'+m(a)+">"+n.content+"</span>":'<span style="'+c.concat(o).join(";")+'"'+m(a)+">"+n.content+"</span>"}removeDecoration(e){const s=this.decorations.indexOf(e);s>=0&&this.decorations.splice(s,1)}}var Ht=I,ie={exports:{}};function Ce(t){if(!t)return"";if(!/\r/.test(t))return t;for(t=t.replace(/\r+\n/gm,`
|
|
2
2
|
`);/\r./.test(t);)t=t.replace(/^([^\r\n]*)\r+([^\r\n]+)/gm,function(e,s,r){return r+s.slice(r.length)});return t}function qt(t){for(var e=0,s=0;s<t.length;s++)t[e].length<=t[s].length&&(e=s);return e}function He(t){if(!/\r/.test(t))return t;for(var e=t.split("\r"),s=[];e.length>0;){var r=qt(e);s.push(e[r]),e=e.slice(r+1)}return s.join("\r")}function Yt(t){if(!t)return"";if(!/\r/.test(t))return t;if(!/\n/.test(t))return He(t);t=t.replace(/\r+\n/gm,`
|
|
3
3
|
`);var e=t.lastIndexOf(`
|
|
4
4
|
`);return Ce(t.slice(0,e))+`
|