@ian2018cs/agenthub 0.1.87 → 0.1.88
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/assets/index-GDRRo6D8.js +200 -0
- package/dist/assets/index-XUGiJSMZ.css +32 -0
- package/dist/assets/{vendor-codemirror-sVRjxPVQ.js → vendor-codemirror-B2saKA4-.js} +1 -1
- package/dist/assets/{vendor-icons-CTLfTCYl.js → vendor-icons-BLTKkQIn.js} +87 -77
- package/dist/assets/{vendor-markdown-CjscLcYM.js → vendor-markdown-Ok8-Lurq.js} +1 -1
- package/dist/assets/{vendor-react-Bv0Nkan8.js → vendor-react-C_uEg43g.js} +1 -1
- package/dist/assets/{vendor-syntax-BKENXTeY.js → vendor-syntax-CEC-Nb_2.js} +1 -1
- package/dist/index.html +7 -7
- package/package.json +1 -1
- package/server/database/db.js +56 -1
- package/server/index.js +24 -2
- package/server/routes/share.js +116 -0
- package/server/services/builtin-tools/index.js +3 -0
- package/server/services/builtin-tools/user-info.js +32 -0
- package/server/services/share-renderer.js +105 -0
- package/dist/assets/index-B8xBmKbu.css +0 -32
- package/dist/assets/index-BJaZDc8y.js +0 -199
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as mt}from"./vendor-codemirror-sVRjxPVQ.js";import{g as yr}from"./vendor-react-Bv0Nkan8.js";import{k as dn}from"./vendor-katex-DK8hFnhL.js";function yn(e){const n=[],t=String(e||"");let r=t.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=t.length,o=!0);const l=t.slice(i,r).trim();(l||!o)&&n.push(l),i=r+1,r=t.indexOf(",",i)}return n}function $i(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const qi=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hi=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ui={};function xn(e,n){return(Ui.jsx?Hi:qi).test(e)}const Vi=/[ \t\n\f\r]/g;function Wi(e){return typeof e=="object"?e.type==="text"?kn(e.value):!1:kn(e)}function kn(e){return e.replace(Vi,"")===""}class Xe{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}Xe.prototype.normal={};Xe.prototype.property={};Xe.prototype.space=void 0;function xr(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new Xe(t,r,n)}function We(e){return e.toLowerCase()}class ee{constructor(n,t){this.attribute=t,this.property=n}}ee.prototype.attribute="";ee.prototype.booleanish=!1;ee.prototype.boolean=!1;ee.prototype.commaOrSpaceSeparated=!1;ee.prototype.commaSeparated=!1;ee.prototype.defined=!1;ee.prototype.mustUseProperty=!1;ee.prototype.number=!1;ee.prototype.overloadedBoolean=!1;ee.prototype.property="";ee.prototype.spaceSeparated=!1;ee.prototype.space=void 0;let Yi=0;const N=Ee(),W=Ee(),vt=Ee(),E=Ee(),V=Ee(),Le=Ee(),ne=Ee();function Ee(){return 2**++Yi}const Mt=Object.freeze(Object.defineProperty({__proto__:null,boolean:N,booleanish:W,commaOrSpaceSeparated:ne,commaSeparated:Le,number:E,overloadedBoolean:vt,spaceSeparated:V},Symbol.toStringTag,{value:"Module"})),gt=Object.keys(Mt);class Vt extends ee{constructor(n,t,r,i){let o=-1;if(super(n,t),bn(this,"space",i),typeof r=="number")for(;++o<gt.length;){const l=gt[o];bn(this,gt[o],(r&Mt[l])===Mt[l])}}}Vt.prototype.defined=!0;function bn(e,n,t){t&&(e[n]=t)}function Me(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const o=new Vt(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),n[r]=o,t[We(r)]=r,t[We(o.attribute)]=r}return new Xe(n,t,e.space)}const kr=Me({properties:{ariaActiveDescendant:null,ariaAtomic:W,ariaAutoComplete:null,ariaBusy:W,ariaChecked:W,ariaColCount:E,ariaColIndex:E,ariaColSpan:E,ariaControls:V,ariaCurrent:null,ariaDescribedBy:V,ariaDetails:null,ariaDisabled:W,ariaDropEffect:V,ariaErrorMessage:null,ariaExpanded:W,ariaFlowTo:V,ariaGrabbed:W,ariaHasPopup:null,ariaHidden:W,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:V,ariaLevel:E,ariaLive:null,ariaModal:W,ariaMultiLine:W,ariaMultiSelectable:W,ariaOrientation:null,ariaOwns:V,ariaPlaceholder:null,ariaPosInSet:E,ariaPressed:W,ariaReadOnly:W,ariaRelevant:null,ariaRequired:W,ariaRoleDescription:V,ariaRowCount:E,ariaRowIndex:E,ariaRowSpan:E,ariaSelected:W,ariaSetSize:E,ariaSort:null,ariaValueMax:E,ariaValueMin:E,ariaValueNow:E,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function br(e,n){return n in e?e[n]:n}function wr(e,n){return br(e,n.toLowerCase())}const Gi=Me({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Le,acceptCharset:V,accessKey:V,action:null,allow:null,allowFullScreen:N,allowPaymentRequest:N,allowUserMedia:N,alt:null,as:null,async:N,autoCapitalize:null,autoComplete:V,autoFocus:N,autoPlay:N,blocking:V,capture:null,charSet:null,checked:N,cite:null,className:V,cols:E,colSpan:null,content:null,contentEditable:W,controls:N,controlsList:V,coords:E|Le,crossOrigin:null,data:null,dateTime:null,decoding:null,default:N,defer:N,dir:null,dirName:null,disabled:N,download:vt,draggable:W,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:N,formTarget:null,headers:V,height:E,hidden:vt,high:E,href:null,hrefLang:null,htmlFor:V,httpEquiv:V,id:null,imageSizes:null,imageSrcSet:null,inert:N,inputMode:null,integrity:null,is:null,isMap:N,itemId:null,itemProp:V,itemRef:V,itemScope:N,itemType:V,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:N,low:E,manifest:null,max:null,maxLength:E,media:null,method:null,min:null,minLength:E,multiple:N,muted:N,name:null,nonce:null,noModule:N,noValidate:N,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:N,optimum:E,pattern:null,ping:V,placeholder:null,playsInline:N,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:N,referrerPolicy:null,rel:V,required:N,reversed:N,rows:E,rowSpan:E,sandbox:V,scope:null,scoped:N,seamless:N,selected:N,shadowRootClonable:N,shadowRootDelegatesFocus:N,shadowRootMode:null,shape:null,size:E,sizes:null,slot:null,span:E,spellCheck:W,src:null,srcDoc:null,srcLang:null,srcSet:null,start:E,step:null,style:null,tabIndex:E,target:null,title:null,translate:null,type:null,typeMustMatch:N,useMap:null,value:W,width:E,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:V,axis:null,background:null,bgColor:null,border:E,borderColor:null,bottomMargin:E,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:N,declare:N,event:null,face:null,frame:null,frameBorder:null,hSpace:E,leftMargin:E,link:null,longDesc:null,lowSrc:null,marginHeight:E,marginWidth:E,noResize:N,noHref:N,noShade:N,noWrap:N,object:null,profile:null,prompt:null,rev:null,rightMargin:E,rules:null,scheme:null,scrolling:W,standby:null,summary:null,text:null,topMargin:E,valueType:null,version:null,vAlign:null,vLink:null,vSpace:E,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:N,disableRemotePlayback:N,prefix:null,property:null,results:E,security:null,unselectable:null},space:"html",transform:wr}),Xi=Me({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",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:ne,accentHeight:E,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:E,amplitude:E,arabicForm:null,ascent:E,attributeName:null,attributeType:null,azimuth:E,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:E,by:null,calcMode:null,capHeight:E,className:V,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:E,diffuseConstant:E,direction:null,display:null,dur:null,divisor:E,dominantBaseline:null,download:N,dx:null,dy:null,edgeMode:null,editable:null,elevation:E,enableBackground:null,end:null,event:null,exponent:E,externalResourcesRequired:null,fill:null,fillOpacity:E,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:Le,g2:Le,glyphName:Le,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:E,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:E,horizOriginX:E,horizOriginY:E,id:null,ideographic:E,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:E,k:E,k1:E,k2:E,k3:E,k4:E,kernelMatrix:ne,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:E,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:E,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:E,overlineThickness:E,paintOrder:null,panose1:null,path:null,pathLength:E,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:V,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:E,pointsAtY:E,pointsAtZ:E,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ne,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ne,rev:ne,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ne,requiredFeatures:ne,requiredFonts:ne,requiredFormats:ne,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:E,specularExponent:E,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:E,strikethroughThickness:E,string:null,stroke:null,strokeDashArray:ne,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:E,strokeOpacity:E,strokeWidth:null,style:null,surfaceScale:E,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ne,tabIndex:E,tableValues:null,target:null,targetX:E,targetY:E,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ne,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:E,underlineThickness:E,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:E,values:null,vAlphabetic:E,vMathematical:E,vectorEffect:null,vHanging:E,vIdeographic:E,version:null,vertAdvY:E,vertOriginX:E,vertOriginY:E,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:E,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:br}),Sr=Me({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Cr=Me({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:wr}),Er=Me({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),Qi={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"},Ki=/[A-Z]/g,wn=/-[a-z]/g,Ji=/^data[-\w.:]+$/i;function Ir(e,n){const t=We(n);let r=n,i=ee;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Ji.test(n)){if(n.charAt(4)==="-"){const o=n.slice(5).replace(wn,el);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=n.slice(4);if(!wn.test(o)){let l=o.replace(Ki,Zi);l.charAt(0)!=="-"&&(l="-"+l),n="data"+l}}i=Vt}return new i(r,n)}function Zi(e){return"-"+e.toLowerCase()}function el(e){return e.charAt(1).toUpperCase()}const Ar=xr([kr,Gi,Sr,Cr,Er],"html"),st=xr([kr,Xi,Sr,Cr,Er],"svg");function Sn(e){const n=String(e||"").trim();return n?n.split(/[ \t\n\r\f]+/g):[]}function tl(e){return e.join(" ").trim()}var Pe={},dt,Cn;function nl(){if(Cn)return dt;Cn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,u=`
|
|
1
|
+
import{j as mt}from"./vendor-codemirror-B2saKA4-.js";import{g as yr}from"./vendor-react-C_uEg43g.js";import{k as dn}from"./vendor-katex-DK8hFnhL.js";function yn(e){const n=[],t=String(e||"");let r=t.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=t.length,o=!0);const l=t.slice(i,r).trim();(l||!o)&&n.push(l),i=r+1,r=t.indexOf(",",i)}return n}function $i(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const qi=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hi=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ui={};function xn(e,n){return(Ui.jsx?Hi:qi).test(e)}const Vi=/[ \t\n\f\r]/g;function Wi(e){return typeof e=="object"?e.type==="text"?kn(e.value):!1:kn(e)}function kn(e){return e.replace(Vi,"")===""}class Xe{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}Xe.prototype.normal={};Xe.prototype.property={};Xe.prototype.space=void 0;function xr(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new Xe(t,r,n)}function We(e){return e.toLowerCase()}class ee{constructor(n,t){this.attribute=t,this.property=n}}ee.prototype.attribute="";ee.prototype.booleanish=!1;ee.prototype.boolean=!1;ee.prototype.commaOrSpaceSeparated=!1;ee.prototype.commaSeparated=!1;ee.prototype.defined=!1;ee.prototype.mustUseProperty=!1;ee.prototype.number=!1;ee.prototype.overloadedBoolean=!1;ee.prototype.property="";ee.prototype.spaceSeparated=!1;ee.prototype.space=void 0;let Yi=0;const N=Ee(),W=Ee(),vt=Ee(),E=Ee(),V=Ee(),Le=Ee(),ne=Ee();function Ee(){return 2**++Yi}const Mt=Object.freeze(Object.defineProperty({__proto__:null,boolean:N,booleanish:W,commaOrSpaceSeparated:ne,commaSeparated:Le,number:E,overloadedBoolean:vt,spaceSeparated:V},Symbol.toStringTag,{value:"Module"})),gt=Object.keys(Mt);class Vt extends ee{constructor(n,t,r,i){let o=-1;if(super(n,t),bn(this,"space",i),typeof r=="number")for(;++o<gt.length;){const l=gt[o];bn(this,gt[o],(r&Mt[l])===Mt[l])}}}Vt.prototype.defined=!0;function bn(e,n,t){t&&(e[n]=t)}function Me(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const o=new Vt(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),n[r]=o,t[We(r)]=r,t[We(o.attribute)]=r}return new Xe(n,t,e.space)}const kr=Me({properties:{ariaActiveDescendant:null,ariaAtomic:W,ariaAutoComplete:null,ariaBusy:W,ariaChecked:W,ariaColCount:E,ariaColIndex:E,ariaColSpan:E,ariaControls:V,ariaCurrent:null,ariaDescribedBy:V,ariaDetails:null,ariaDisabled:W,ariaDropEffect:V,ariaErrorMessage:null,ariaExpanded:W,ariaFlowTo:V,ariaGrabbed:W,ariaHasPopup:null,ariaHidden:W,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:V,ariaLevel:E,ariaLive:null,ariaModal:W,ariaMultiLine:W,ariaMultiSelectable:W,ariaOrientation:null,ariaOwns:V,ariaPlaceholder:null,ariaPosInSet:E,ariaPressed:W,ariaReadOnly:W,ariaRelevant:null,ariaRequired:W,ariaRoleDescription:V,ariaRowCount:E,ariaRowIndex:E,ariaRowSpan:E,ariaSelected:W,ariaSetSize:E,ariaSort:null,ariaValueMax:E,ariaValueMin:E,ariaValueNow:E,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function br(e,n){return n in e?e[n]:n}function wr(e,n){return br(e,n.toLowerCase())}const Gi=Me({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Le,acceptCharset:V,accessKey:V,action:null,allow:null,allowFullScreen:N,allowPaymentRequest:N,allowUserMedia:N,alt:null,as:null,async:N,autoCapitalize:null,autoComplete:V,autoFocus:N,autoPlay:N,blocking:V,capture:null,charSet:null,checked:N,cite:null,className:V,cols:E,colSpan:null,content:null,contentEditable:W,controls:N,controlsList:V,coords:E|Le,crossOrigin:null,data:null,dateTime:null,decoding:null,default:N,defer:N,dir:null,dirName:null,disabled:N,download:vt,draggable:W,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:N,formTarget:null,headers:V,height:E,hidden:vt,high:E,href:null,hrefLang:null,htmlFor:V,httpEquiv:V,id:null,imageSizes:null,imageSrcSet:null,inert:N,inputMode:null,integrity:null,is:null,isMap:N,itemId:null,itemProp:V,itemRef:V,itemScope:N,itemType:V,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:N,low:E,manifest:null,max:null,maxLength:E,media:null,method:null,min:null,minLength:E,multiple:N,muted:N,name:null,nonce:null,noModule:N,noValidate:N,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:N,optimum:E,pattern:null,ping:V,placeholder:null,playsInline:N,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:N,referrerPolicy:null,rel:V,required:N,reversed:N,rows:E,rowSpan:E,sandbox:V,scope:null,scoped:N,seamless:N,selected:N,shadowRootClonable:N,shadowRootDelegatesFocus:N,shadowRootMode:null,shape:null,size:E,sizes:null,slot:null,span:E,spellCheck:W,src:null,srcDoc:null,srcLang:null,srcSet:null,start:E,step:null,style:null,tabIndex:E,target:null,title:null,translate:null,type:null,typeMustMatch:N,useMap:null,value:W,width:E,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:V,axis:null,background:null,bgColor:null,border:E,borderColor:null,bottomMargin:E,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:N,declare:N,event:null,face:null,frame:null,frameBorder:null,hSpace:E,leftMargin:E,link:null,longDesc:null,lowSrc:null,marginHeight:E,marginWidth:E,noResize:N,noHref:N,noShade:N,noWrap:N,object:null,profile:null,prompt:null,rev:null,rightMargin:E,rules:null,scheme:null,scrolling:W,standby:null,summary:null,text:null,topMargin:E,valueType:null,version:null,vAlign:null,vLink:null,vSpace:E,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:N,disableRemotePlayback:N,prefix:null,property:null,results:E,security:null,unselectable:null},space:"html",transform:wr}),Xi=Me({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",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:ne,accentHeight:E,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:E,amplitude:E,arabicForm:null,ascent:E,attributeName:null,attributeType:null,azimuth:E,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:E,by:null,calcMode:null,capHeight:E,className:V,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:E,diffuseConstant:E,direction:null,display:null,dur:null,divisor:E,dominantBaseline:null,download:N,dx:null,dy:null,edgeMode:null,editable:null,elevation:E,enableBackground:null,end:null,event:null,exponent:E,externalResourcesRequired:null,fill:null,fillOpacity:E,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:Le,g2:Le,glyphName:Le,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:E,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:E,horizOriginX:E,horizOriginY:E,id:null,ideographic:E,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:E,k:E,k1:E,k2:E,k3:E,k4:E,kernelMatrix:ne,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:E,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:E,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:E,overlineThickness:E,paintOrder:null,panose1:null,path:null,pathLength:E,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:V,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:E,pointsAtY:E,pointsAtZ:E,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ne,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ne,rev:ne,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ne,requiredFeatures:ne,requiredFonts:ne,requiredFormats:ne,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:E,specularExponent:E,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:E,strikethroughThickness:E,string:null,stroke:null,strokeDashArray:ne,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:E,strokeOpacity:E,strokeWidth:null,style:null,surfaceScale:E,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ne,tabIndex:E,tableValues:null,target:null,targetX:E,targetY:E,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ne,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:E,underlineThickness:E,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:E,values:null,vAlphabetic:E,vMathematical:E,vectorEffect:null,vHanging:E,vIdeographic:E,version:null,vertAdvY:E,vertOriginX:E,vertOriginY:E,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:E,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:br}),Sr=Me({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Cr=Me({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:wr}),Er=Me({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),Qi={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"},Ki=/[A-Z]/g,wn=/-[a-z]/g,Ji=/^data[-\w.:]+$/i;function Ir(e,n){const t=We(n);let r=n,i=ee;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Ji.test(n)){if(n.charAt(4)==="-"){const o=n.slice(5).replace(wn,el);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=n.slice(4);if(!wn.test(o)){let l=o.replace(Ki,Zi);l.charAt(0)!=="-"&&(l="-"+l),n="data"+l}}i=Vt}return new i(r,n)}function Zi(e){return"-"+e.toLowerCase()}function el(e){return e.charAt(1).toUpperCase()}const Ar=xr([kr,Gi,Sr,Cr,Er],"html"),st=xr([kr,Xi,Sr,Cr,Er],"svg");function Sn(e){const n=String(e||"").trim();return n?n.split(/[ \t\n\r\f]+/g):[]}function tl(e){return e.join(" ").trim()}var Pe={},dt,Cn;function nl(){if(Cn)return dt;Cn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,u=`
|
|
2
2
|
`,s="/",f="*",c="",p="comment",h="declaration";dt=function(y,C){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];C=C||{};var x=1,k=1;function I(D){var T=D.match(n);T&&(x+=T.length);var L=D.lastIndexOf(u);k=~L?D.length-L:k+D.length}function v(){var D={line:x,column:k};return function(T){return T.position=new M(D),q(),T}}function M(D){this.start=D,this.end={line:x,column:k},this.source=C.source}M.prototype.content=y;function S(D){var T=new Error(C.source+":"+x+":"+k+": "+D);if(T.reason=D,T.filename=C.source,T.line=x,T.column=k,T.source=y,!C.silent)throw T}function _(D){var T=D.exec(y);if(T){var L=T[0];return I(L),y=y.slice(L.length),T}}function q(){_(t)}function O(D){var T;for(D=D||[];T=b();)T!==!1&&D.push(T);return D}function b(){var D=v();if(!(s!=y.charAt(0)||f!=y.charAt(1))){for(var T=2;c!=y.charAt(T)&&(f!=y.charAt(T)||s!=y.charAt(T+1));)++T;if(T+=2,c===y.charAt(T-1))return S("End of comment missing");var L=y.slice(2,T-2);return k+=2,I(L),y=y.slice(T),k+=2,D({type:p,comment:L})}}function P(){var D=v(),T=_(r);if(T){if(b(),!_(i))return S("property missing ':'");var L=_(o),Y=D({type:h,property:d(T[0].replace(e,c)),value:L?d(L[0].replace(e,c)):c});return _(l),Y}}function z(){var D=[];O(D);for(var T;T=P();)T!==!1&&(D.push(T),O(D));return D}return q(),z()};function d(y){return y?y.replace(a,c):c}return dt}var En;function rl(){if(En)return Pe;En=1;var e=Pe&&Pe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.default=t;var n=e(nl());function t(r,i){var o=null;if(!r||typeof r!="string")return o;var l=(0,n.default)(r),a=typeof i=="function";return l.forEach(function(u){if(u.type==="declaration"){var s=u.property,f=u.value;a?i(s,f,u):f&&(o=o||{},o[s]=f)}}),o}return Pe}var Be={},In;function il(){if(In)return Be;In=1,Object.defineProperty(Be,"__esModule",{value:!0}),Be.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(s){return!s||t.test(s)||e.test(s)},l=function(s,f){return f.toUpperCase()},a=function(s,f){return"".concat(f,"-")},u=function(s,f){return f===void 0&&(f={}),o(s)?s:(s=s.toLowerCase(),f.reactCompat?s=s.replace(i,a):s=s.replace(r,a),s.replace(n,l))};return Be.camelCase=u,Be}var je,An;function ll(){if(An)return je;An=1;var e=je&&je.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(rl()),t=il();function r(i,o){var l={};return!i||typeof i!="string"||(0,n.default)(i,function(a,u){a&&u&&(l[(0,t.camelCase)(a,o)]=u)}),l}return r.default=r,je=r,je}var ol=ll();const al=yr(ol),Tr=Fr("end"),Wt=Fr("start");function Fr(e){return n;function n(t){const r=t&&t.position&&t.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 ul(e){const n=Wt(e),t=Tr(e);if(n&&t)return{start:n,end:t}}function He(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Tn(e.position):"start"in e||"end"in e?Tn(e):"line"in e||"column"in e?Ot(e):""}function Ot(e){return Fn(e&&e.line)+":"+Fn(e&&e.column)}function Tn(e){return Ot(e&&e.start)+"-"+Ot(e&&e.end)}function Fn(e){return e&&typeof e=="number"?e:1}class K extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",o={},l=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof n=="string"?i=n:!o.cause&&n&&(l=!0,i=n.message,o.cause=n),!o.ruleId&&!o.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?o.ruleId=r:(o.source=r.slice(0,u),o.ruleId=r.slice(u+1))}if(!o.place&&o.ancestors&&o.ancestors){const u=o.ancestors[o.ancestors.length-1];u&&(o.place=u.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=He(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}K.prototype.file="";K.prototype.name="";K.prototype.reason="";K.prototype.message="";K.prototype.stack="";K.prototype.column=void 0;K.prototype.line=void 0;K.prototype.ancestors=void 0;K.prototype.cause=void 0;K.prototype.fatal=void 0;K.prototype.place=void 0;K.prototype.ruleId=void 0;K.prototype.source=void 0;const Yt={}.hasOwnProperty,sl=new Map,cl=/[A-Z]/g,fl=new Set(["table","tbody","thead","tfoot","tr"]),hl=new Set(["td","th"]),Pr="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function pl(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=wl(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=bl(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?st:Ar,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},o=zr(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function zr(e,n,t){if(n.type==="element")return ml(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return gl(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return yl(e,n,t);if(n.type==="mdxjsEsm")return dl(e,n);if(n.type==="root")return xl(e,n,t);if(n.type==="text")return kl(e,n)}function ml(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=st,e.schema=i),e.ancestors.push(n);const o=Lr(e,n.tagName,!1),l=Sl(e,n);let a=Xt(e,n);return fl.has(n.tagName)&&(a=a.filter(function(u){return typeof u=="string"?!Wi(u):!0})),Dr(e,l,o,n),Gt(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function gl(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ye(e,n.position)}function dl(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Ye(e,n.position)}function yl(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=st,e.schema=i),e.ancestors.push(n);const o=n.name===null?e.Fragment:Lr(e,n.name,!0),l=Cl(e,n),a=Xt(e,n);return Dr(e,l,o,n),Gt(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function xl(e,n,t){const r={};return Gt(r,Xt(e,n)),e.create(n,e.Fragment,r,t)}function kl(e,n){return n.value}function Dr(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Gt(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function bl(e,n,t){return r;function r(i,o,l,a){const s=Array.isArray(l.children)?t:n;return a?s(o,l,a):s(o,l)}}function wl(e,n){return t;function t(r,i,o,l){const a=Array.isArray(o.children),u=Wt(r);return n(i,o,l,a,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function Sl(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&Yt.call(n.properties,i)){const o=El(e,i,n.properties[i]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&hl.has(n.tagName)?r=a:t[l]=a}}if(r){const o=t.style||(t.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Cl(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const a=l.properties[0];a.type,Object.assign(t,e.evaluater.evaluateExpression(a.argument))}else Ye(e,n.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else Ye(e,n.position);else o=r.value===null?!0:r.value;t[i]=o}return t}function Xt(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:sl;for(;++r<n.children.length;){const o=n.children[r];let l;if(e.passKeys){const u=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(u){const s=i.get(u)||0;l=u+"-"+s,i.set(u,s+1)}}const a=zr(e,o,l);a!==void 0&&t.push(a)}return t}function El(e,n,t){const r=Ir(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?$i(t):tl(t)),r.property==="style"){let i=typeof t=="object"?t:Il(e,String(t));return e.stylePropertyNameCase==="css"&&(i=Al(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Qi[r.property]||r.property:r.attribute,t]}}function Il(e,n){try{return al(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new K("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Pr+"#cannot-parse-style-attribute",i}}function Lr(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let o=-1,l;for(;++o<i.length;){const a=xn(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=l}else r=xn(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return Yt.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ye(e)}function Ye(e,n){const t=new K("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=Pr+"#cannot-handle-mdx-estrees-without-createevaluater",t}function Al(e){const n={};let t;for(t in e)Yt.call(e,t)&&(n[Tl(t)]=e[t]);return n}function Tl(e){let n=e.replace(cl,Fl);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Fl(e){return"-"+e.toLowerCase()}const yt={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"]},Pl={};function Qt(e,n){const t=Pl,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return vr(e,r,i)}function vr(e,n,t){if(zl(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Pn(e.children,n,t)}return Array.isArray(e)?Pn(e,n,t):""}function Pn(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=vr(e[i],n,t);return r.join("")}function zl(e){return!!(e&&typeof e=="object")}const zn=document.createElement("i");function Kt(e){const n="&"+e+";";zn.innerHTML=n;const t=zn.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function re(e,n,t,r){const i=e.length;let o=0,l;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)l=Array.from(r),l.unshift(n,t),e.splice(...l);else for(t&&e.splice(n,t);o<r.length;)l=r.slice(o,o+1e4),l.unshift(n,0),e.splice(...l),o+=1e4,n+=1e4}function ie(e,n){return e.length>0?(re(e,e.length,0,n),e):n}const Dn={}.hasOwnProperty;function Mr(e){const n={};let t=-1;for(;++t<e.length;)Dl(n,e[t]);return n}function Dl(e,n){let t;for(t in n){const i=(Dn.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let l;if(o)for(l in o){Dn.call(i,l)||(i[l]=[]);const a=o[l];Ll(i[l],Array.isArray(a)?a:a?[a]:[])}}}function Ll(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);re(e,0,0,r)}function Or(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function se(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const J=ke(/[A-Za-z]/),Q=ke(/[\dA-Za-z]/),vl=ke(/[#-'*+\--9=?A-Z^-~]/);function lt(e){return e!==null&&(e<32||e===127)}const Rt=ke(/\d/),Ml=ke(/[\dA-Fa-f]/),Ol=ke(/[!-/:-@[-`{-~]/);function F(e){return e!==null&&e<-2}function U(e){return e!==null&&(e<0||e===32)}function j(e){return e===-2||e===-1||e===32}const ct=ke(new RegExp("\\p{P}|\\p{S}","u")),Ce=ke(/\s/);function ke(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Oe(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const o=e.charCodeAt(t);let l="";if(o===37&&Q(e.charCodeAt(t+1))&&Q(e.charCodeAt(t+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(t+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(n.push(e.slice(r,t),encodeURIComponent(l)),r=t+i+1,l=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function B(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(u){return j(u)?(e.enter(t),a(u)):n(u)}function a(u){return j(u)&&o++<i?(e.consume(u),a):(e.exit(t),n(u))}}const Rl={tokenize:_l};function _l(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),B(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const u=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=u),t=u,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return F(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const Nl={tokenize:Bl},Ln={tokenize:jl};function Bl(e){const n=this,t=[];let r=0,i,o,l;return a;function a(I){if(r<t.length){const v=t[r];return n.containerState=v[1],e.attempt(v[0].continuation,u,s)(I)}return s(I)}function u(I){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&k();const v=n.events.length;let M=v,S;for(;M--;)if(n.events[M][0]==="exit"&&n.events[M][1].type==="chunkFlow"){S=n.events[M][1].end;break}x(r);let _=v;for(;_<n.events.length;)n.events[_][1].end={...S},_++;return re(n.events,M+1,0,n.events.slice(v)),n.events.length=_,s(I)}return a(I)}function s(I){if(r===t.length){if(!i)return p(I);if(i.currentConstruct&&i.currentConstruct.concrete)return d(I);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Ln,f,c)(I)}function f(I){return i&&k(),x(r),p(I)}function c(I){return n.parser.lazy[n.now().line]=r!==t.length,l=n.now().offset,d(I)}function p(I){return n.containerState={},e.attempt(Ln,h,d)(I)}function h(I){return r++,t.push([n.currentConstruct,n.containerState]),p(I)}function d(I){if(I===null){i&&k(),x(0),e.consume(I);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),y(I)}function y(I){if(I===null){C(e.exit("chunkFlow"),!0),x(0),e.consume(I);return}return F(I)?(e.consume(I),C(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(I),y)}function C(I,v){const M=n.sliceStream(I);if(v&&M.push(null),I.previous=o,o&&(o.next=I),o=I,i.defineSkip(I.start),i.write(M),n.parser.lazy[I.start.line]){let S=i.events.length;for(;S--;)if(i.events[S][1].start.offset<l&&(!i.events[S][1].end||i.events[S][1].end.offset>l))return;const _=n.events.length;let q=_,O,b;for(;q--;)if(n.events[q][0]==="exit"&&n.events[q][1].type==="chunkFlow"){if(O){b=n.events[q][1].end;break}O=!0}for(x(r),S=_;S<n.events.length;)n.events[S][1].end={...b},S++;re(n.events,q+1,0,n.events.slice(_)),n.events.length=S}}function x(I){let v=t.length;for(;v-- >I;){const M=t[v];n.containerState=M[1],M[0].exit.call(n,e)}t.length=I}function k(){i.write([null]),o=void 0,i=void 0,n.containerState._closeFlow=void 0}}function jl(e,n,t){return B(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ve(e){if(e===null||U(e)||Ce(e))return 1;if(ct(e))return 2}function ft(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(n=o(n,t),r.push(o))}return n}const _t={name:"attention",resolveAll:$l,tokenize:ql};function $l(e,n){let t=-1,r,i,o,l,a,u,s,f;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[t][1].start};vn(c,-u),vn(p,u),l={type:u>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:u>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:p},o={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:u>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[r][1].end={...l.start},e[t][1].start={...a.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=ie(s,[["enter",e[r][1],n],["exit",e[r][1],n]])),s=ie(s,[["enter",i,n],["enter",l,n],["exit",l,n],["enter",o,n]]),s=ie(s,ft(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),s=ie(s,[["exit",o,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,s=ie(s,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,re(e,r-1,t-r+3,s),t=r+s.length-f-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function ql(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=ve(r);let o;return l;function l(u){return o=u,e.enter("attentionSequence"),a(u)}function a(u){if(u===o)return e.consume(u),a;const s=e.exit("attentionSequence"),f=ve(u),c=!f||f===2&&i||t.includes(u),p=!i||i===2&&f||t.includes(r);return s._open=!!(o===42?c:c&&(i||!p)),s._close=!!(o===42?p:p&&(f||!c)),n(u)}}function vn(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Hl={name:"autolink",tokenize:Ul};function Ul(e,n,t){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return J(h)?(e.consume(h),l):h===64?t(h):s(h)}function l(h){return h===43||h===45||h===46||Q(h)?(r=1,a(h)):s(h)}function a(h){return h===58?(e.consume(h),r=0,u):(h===43||h===45||h===46||Q(h))&&r++<32?(e.consume(h),a):(r=0,s(h))}function u(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):h===null||h===32||h===60||lt(h)?t(h):(e.consume(h),u)}function s(h){return h===64?(e.consume(h),f):vl(h)?(e.consume(h),s):t(h)}function f(h){return Q(h)?c(h):t(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):p(h)}function p(h){if((h===45||Q(h))&&r++<63){const d=h===45?p:c;return e.consume(h),d}return t(h)}}const Qe={partial:!0,tokenize:Vl};function Vl(e,n,t){return r;function r(o){return j(o)?B(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||F(o)?n(o):t(o)}}const Rr={continuation:{tokenize:Yl},exit:Gl,name:"blockQuote",tokenize:Wl};function Wl(e,n,t){const r=this;return i;function i(l){if(l===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return t(l)}function o(l){return j(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(l))}}function Yl(e,n,t){const r=this;return i;function i(l){return j(l)?B(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Rr,n,t)(l)}}function Gl(e){e.exit("blockQuote")}const _r={name:"characterEscape",tokenize:Xl};function Xl(e,n,t){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Ol(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(o)}}const Nr={name:"characterReference",tokenize:Ql};function Ql(e,n,t){const r=this;let i=0,o,l;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),u}function u(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,l=Q,f(c))}function s(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=Ml,f):(e.enter("characterReferenceValue"),o=7,l=Rt,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return l===Q&&!Kt(r.sliceSerialize(p))?t(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return l(c)&&i++<o?(e.consume(c),f):t(c)}}const Mn={partial:!0,tokenize:Jl},On={concrete:!0,name:"codeFenced",tokenize:Kl};function Kl(e,n,t){const r=this,i={partial:!0,tokenize:M};let o=0,l=0,a;return u;function u(S){return s(S)}function s(S){const _=r.events[r.events.length-1];return o=_&&_[1].type==="linePrefix"?_[2].sliceSerialize(_[1],!0).length:0,a=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(S)}function f(S){return S===a?(l++,e.consume(S),f):l<3?t(S):(e.exit("codeFencedFenceSequence"),j(S)?B(e,c,"whitespace")(S):c(S))}function c(S){return S===null||F(S)?(e.exit("codeFencedFence"),r.interrupt?n(S):e.check(Mn,y,v)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===null||F(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(S)):j(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),B(e,h,"whitespace")(S)):S===96&&S===a?t(S):(e.consume(S),p)}function h(S){return S===null||F(S)?c(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(S))}function d(S){return S===null||F(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(S)):S===96&&S===a?t(S):(e.consume(S),d)}function y(S){return e.attempt(i,v,C)(S)}function C(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),x}function x(S){return o>0&&j(S)?B(e,k,"linePrefix",o+1)(S):k(S)}function k(S){return S===null||F(S)?e.check(Mn,y,v)(S):(e.enter("codeFlowValue"),I(S))}function I(S){return S===null||F(S)?(e.exit("codeFlowValue"),k(S)):(e.consume(S),I)}function v(S){return e.exit("codeFenced"),n(S)}function M(S,_,q){let O=0;return b;function b(L){return S.enter("lineEnding"),S.consume(L),S.exit("lineEnding"),P}function P(L){return S.enter("codeFencedFence"),j(L)?B(S,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):z(L)}function z(L){return L===a?(S.enter("codeFencedFenceSequence"),D(L)):q(L)}function D(L){return L===a?(O++,S.consume(L),D):O>=l?(S.exit("codeFencedFenceSequence"),j(L)?B(S,T,"whitespace")(L):T(L)):q(L)}function T(L){return L===null||F(L)?(S.exit("codeFencedFence"),_(L)):q(L)}}}function Jl(e,n,t){const r=this;return i;function i(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}const xt={name:"codeIndented",tokenize:eo},Zl={partial:!0,tokenize:to};function eo(e,n,t){const r=this;return i;function i(s){return e.enter("codeIndented"),B(e,o,"linePrefix",5)(s)}function o(s){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(s):t(s)}function l(s){return s===null?u(s):F(s)?e.attempt(Zl,l,u)(s):(e.enter("codeFlowValue"),a(s))}function a(s){return s===null||F(s)?(e.exit("codeFlowValue"),l(s)):(e.consume(s),a)}function u(s){return e.exit("codeIndented"),n(s)}}function to(e,n,t){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?t(l):F(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):B(e,o,"linePrefix",5)(l)}function o(l){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(l):F(l)?i(l):t(l)}}const no={name:"codeText",previous:io,resolve:ro,tokenize:lo};function ro(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function io(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function lo(e,n,t){let r=0,i,o;return l;function l(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),u(c))}function u(c){return c===null?t(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),u):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):F(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):(e.enter("codeTextData"),s(c))}function s(c){return c===null||c===32||c===96||F(c)?(e.exit("codeTextData"),u(c)):(e.consume(c),s)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(c)):(o.type="codeTextData",s(c))}}class oo{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&$e(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),$e(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),$e(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);$e(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);$e(this.left,t.reverse())}}}function $e(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Br(e){const n={};let t=-1,r,i,o,l,a,u,s;const f=new oo(e);for(;++t<f.length;){for(;t in n;)t=n[t];if(r=f.get(t),t&&r[1].type==="chunkFlow"&&f.get(t-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,o=0,o<u.length&&u[o][1].type==="lineEndingBlank"&&(o+=2),o<u.length&&u[o][1].type==="content"))for(;++o<u.length&&u[o][1].type!=="content";)u[o][1].type==="chunkText"&&(u[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,ao(f,t)),t=n[t],s=!0);else if(r[1]._container){for(o=t,i=void 0;o--;)if(l=f.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},a=f.slice(i,t),a.unshift(r),f.splice(i,t-i+1,a))}}return re(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!s}function ao(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const o=[];let l=t._tokenizer;l||(l=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,u=[],s={};let f,c,p=-1,h=t,d=0,y=0;const C=[y];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=t;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(y=p+1,C.push(y),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):C.pop(),p=C.length;p--;){const x=a.slice(C[p],C[p+1]),k=o.pop();u.push([k,k+x.length-1]),e.splice(k,2,x)}for(u.reverse(),p=-1;++p<u.length;)s[d+u[p][0]]=d+u[p][1],d+=u[p][1]-u[p][0]-1;return s}const uo={resolve:co,tokenize:fo},so={partial:!0,tokenize:ho};function co(e){return Br(e),e}function fo(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):F(a)?e.check(so,l,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function l(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function ho(e,n,t){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),B(e,o,"linePrefix")}function o(l){if(l===null||F(l))return t(l);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(l):e.interrupt(r.parser.constructs.flow,t,n)(l)}}function jr(e,n,t,r,i,o,l,a,u){const s=u||Number.POSITIVE_INFINITY;let f=0;return c;function c(x){return x===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(x),e.exit(o),p):x===null||x===32||x===41||lt(x)?t(x):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),y(x))}function p(x){return x===62?(e.enter(o),e.consume(x),e.exit(o),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(x))}function h(x){return x===62?(e.exit("chunkString"),e.exit(a),p(x)):x===null||x===60||F(x)?t(x):(e.consume(x),x===92?d:h)}function d(x){return x===60||x===62||x===92?(e.consume(x),h):h(x)}function y(x){return!f&&(x===null||x===41||U(x))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),n(x)):f<s&&x===40?(e.consume(x),f++,y):x===41?(e.consume(x),f--,y):x===null||x===32||x===40||lt(x)?t(x):(e.consume(x),x===92?C:y)}function C(x){return x===40||x===41||x===92?(e.consume(x),y):y(x)}}function $r(e,n,t,r,i,o){const l=this;let a=0,u;return s;function s(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),f}function f(h){return a>999||h===null||h===91||h===93&&!u||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?t(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):F(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||F(h)||a++>999?(e.exit("chunkString"),f(h)):(e.consume(h),u||(u=!j(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}}function qr(e,n,t,r,i,o){let l;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),l=p===40?41:p,u):t(p)}function u(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):(e.enter(o),s(p))}function s(p){return p===l?(e.exit(o),u(l)):p===null?t(p):F(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),B(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===l||p===null||F(p)?(e.exit("chunkString"),s(p)):(e.consume(p),p===92?c:f)}function c(p){return p===l||p===92?(e.consume(p),f):f(p)}}function Ue(e,n){let t;return r;function r(i){return F(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):j(i)?B(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const po={name:"definition",tokenize:go},mo={partial:!0,tokenize:yo};function go(e,n,t){const r=this;let i;return o;function o(h){return e.enter("definition"),l(h)}function l(h){return $r.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=se(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),u):t(h)}function u(h){return U(h)?Ue(e,s)(h):s(h)}function s(h){return jr(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(mo,c,c)(h)}function c(h){return j(h)?B(e,p,"whitespace")(h):p(h)}function p(h){return h===null||F(h)?(e.exit("definition"),r.parser.defined.push(i),n(h)):t(h)}}function yo(e,n,t){return r;function r(a){return U(a)?Ue(e,i)(a):t(a)}function i(a){return qr(e,o,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return j(a)?B(e,l,"whitespace")(a):l(a)}function l(a){return a===null||F(a)?n(a):t(a)}}const xo={name:"hardBreakEscape",tokenize:ko};function ko(e,n,t){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return F(o)?(e.exit("hardBreakEscape"),n(o)):t(o)}}const bo={name:"headingAtx",resolve:wo,tokenize:So};function wo(e,n){let t=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},o={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},re(e,r,t-r+1,[["enter",i,n],["enter",o,n],["exit",o,n],["exit",i,n]])),e}function So(e,n,t){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||U(f)?(e.exit("atxHeadingSequence"),a(f)):t(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),u(f)):f===null||F(f)?(e.exit("atxHeading"),n(f)):j(f)?B(e,a,"whitespace")(f):(e.enter("atxHeadingText"),s(f))}function u(f){return f===35?(e.consume(f),u):(e.exit("atxHeadingSequence"),a(f))}function s(f){return f===null||f===35||U(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),s)}}const Co=["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"],Rn=["pre","script","style","textarea"],Eo={concrete:!0,name:"htmlFlow",resolveTo:To,tokenize:Fo},Io={partial:!0,tokenize:zo},Ao={partial:!0,tokenize:Po};function To(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Fo(e,n,t){const r=this;let i,o,l,a,u;return s;function s(g){return f(g)}function f(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),c}function c(g){return g===33?(e.consume(g),p):g===47?(e.consume(g),o=!0,y):g===63?(e.consume(g),i=3,r.interrupt?n:m):J(g)?(e.consume(g),l=String.fromCharCode(g),C):t(g)}function p(g){return g===45?(e.consume(g),i=2,h):g===91?(e.consume(g),i=5,a=0,d):J(g)?(e.consume(g),i=4,r.interrupt?n:m):t(g)}function h(g){return g===45?(e.consume(g),r.interrupt?n:m):t(g)}function d(g){const ae="CDATA[";return g===ae.charCodeAt(a++)?(e.consume(g),a===ae.length?r.interrupt?n:z:d):t(g)}function y(g){return J(g)?(e.consume(g),l=String.fromCharCode(g),C):t(g)}function C(g){if(g===null||g===47||g===62||U(g)){const ae=g===47,be=l.toLowerCase();return!ae&&!o&&Rn.includes(be)?(i=1,r.interrupt?n(g):z(g)):Co.includes(l.toLowerCase())?(i=6,ae?(e.consume(g),x):r.interrupt?n(g):z(g)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(g):o?k(g):I(g))}return g===45||Q(g)?(e.consume(g),l+=String.fromCharCode(g),C):t(g)}function x(g){return g===62?(e.consume(g),r.interrupt?n:z):t(g)}function k(g){return j(g)?(e.consume(g),k):b(g)}function I(g){return g===47?(e.consume(g),b):g===58||g===95||J(g)?(e.consume(g),v):j(g)?(e.consume(g),I):b(g)}function v(g){return g===45||g===46||g===58||g===95||Q(g)?(e.consume(g),v):M(g)}function M(g){return g===61?(e.consume(g),S):j(g)?(e.consume(g),M):I(g)}function S(g){return g===null||g===60||g===61||g===62||g===96?t(g):g===34||g===39?(e.consume(g),u=g,_):j(g)?(e.consume(g),S):q(g)}function _(g){return g===u?(e.consume(g),u=null,O):g===null||F(g)?t(g):(e.consume(g),_)}function q(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||U(g)?M(g):(e.consume(g),q)}function O(g){return g===47||g===62||j(g)?I(g):t(g)}function b(g){return g===62?(e.consume(g),P):t(g)}function P(g){return g===null||F(g)?z(g):j(g)?(e.consume(g),P):t(g)}function z(g){return g===45&&i===2?(e.consume(g),Y):g===60&&i===1?(e.consume(g),G):g===62&&i===4?(e.consume(g),oe):g===63&&i===3?(e.consume(g),m):g===93&&i===5?(e.consume(g),he):F(g)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Io,pe,D)(g)):g===null||F(g)?(e.exit("htmlFlowData"),D(g)):(e.consume(g),z)}function D(g){return e.check(Ao,T,pe)(g)}function T(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),L}function L(g){return g===null||F(g)?D(g):(e.enter("htmlFlowData"),z(g))}function Y(g){return g===45?(e.consume(g),m):z(g)}function G(g){return g===47?(e.consume(g),l="",le):z(g)}function le(g){if(g===62){const ae=l.toLowerCase();return Rn.includes(ae)?(e.consume(g),oe):z(g)}return J(g)&&l.length<8?(e.consume(g),l+=String.fromCharCode(g),le):z(g)}function he(g){return g===93?(e.consume(g),m):z(g)}function m(g){return g===62?(e.consume(g),oe):g===45&&i===2?(e.consume(g),m):z(g)}function oe(g){return g===null||F(g)?(e.exit("htmlFlowData"),pe(g)):(e.consume(g),oe)}function pe(g){return e.exit("htmlFlow"),n(g)}}function Po(e,n,t){const r=this;return i;function i(l){return F(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):t(l)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}function zo(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Qe,n,t)}}const Do={name:"htmlText",tokenize:Lo};function Lo(e,n,t){const r=this;let i,o,l;return a;function a(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),u}function u(m){return m===33?(e.consume(m),s):m===47?(e.consume(m),M):m===63?(e.consume(m),I):J(m)?(e.consume(m),q):t(m)}function s(m){return m===45?(e.consume(m),f):m===91?(e.consume(m),o=0,d):J(m)?(e.consume(m),k):t(m)}function f(m){return m===45?(e.consume(m),h):t(m)}function c(m){return m===null?t(m):m===45?(e.consume(m),p):F(m)?(l=c,G(m)):(e.consume(m),c)}function p(m){return m===45?(e.consume(m),h):c(m)}function h(m){return m===62?Y(m):m===45?p(m):c(m)}function d(m){const oe="CDATA[";return m===oe.charCodeAt(o++)?(e.consume(m),o===oe.length?y:d):t(m)}function y(m){return m===null?t(m):m===93?(e.consume(m),C):F(m)?(l=y,G(m)):(e.consume(m),y)}function C(m){return m===93?(e.consume(m),x):y(m)}function x(m){return m===62?Y(m):m===93?(e.consume(m),x):y(m)}function k(m){return m===null||m===62?Y(m):F(m)?(l=k,G(m)):(e.consume(m),k)}function I(m){return m===null?t(m):m===63?(e.consume(m),v):F(m)?(l=I,G(m)):(e.consume(m),I)}function v(m){return m===62?Y(m):I(m)}function M(m){return J(m)?(e.consume(m),S):t(m)}function S(m){return m===45||Q(m)?(e.consume(m),S):_(m)}function _(m){return F(m)?(l=_,G(m)):j(m)?(e.consume(m),_):Y(m)}function q(m){return m===45||Q(m)?(e.consume(m),q):m===47||m===62||U(m)?O(m):t(m)}function O(m){return m===47?(e.consume(m),Y):m===58||m===95||J(m)?(e.consume(m),b):F(m)?(l=O,G(m)):j(m)?(e.consume(m),O):Y(m)}function b(m){return m===45||m===46||m===58||m===95||Q(m)?(e.consume(m),b):P(m)}function P(m){return m===61?(e.consume(m),z):F(m)?(l=P,G(m)):j(m)?(e.consume(m),P):O(m)}function z(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),i=m,D):F(m)?(l=z,G(m)):j(m)?(e.consume(m),z):(e.consume(m),T)}function D(m){return m===i?(e.consume(m),i=void 0,L):m===null?t(m):F(m)?(l=D,G(m)):(e.consume(m),D)}function T(m){return m===null||m===34||m===39||m===60||m===61||m===96?t(m):m===47||m===62||U(m)?O(m):(e.consume(m),T)}function L(m){return m===47||m===62||U(m)?O(m):t(m)}function Y(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),n):t(m)}function G(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),le}function le(m){return j(m)?B(e,he,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):he(m)}function he(m){return e.enter("htmlTextData"),l(m)}}const Jt={name:"labelEnd",resolveAll:Ro,resolveTo:_o,tokenize:No},vo={tokenize:Bo},Mo={tokenize:jo},Oo={tokenize:$o};function Ro(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&re(e,0,e.length,t),e}function _o(e,n){let t=e.length,r=0,i,o,l,a;for(;t--;)if(i=e[t][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=t);const u={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return a=[["enter",u,n],["enter",s,n]],a=ie(a,e.slice(o+1,o+r+3)),a=ie(a,[["enter",f,n]]),a=ie(a,ft(n.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),n)),a=ie(a,[["exit",f,n],e[l-2],e[l-1],["exit",s,n]]),a=ie(a,e.slice(l+1)),a=ie(a,[["exit",u,n]]),re(e,o,e.length,a),e}function No(e,n,t){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(p){return o?o._inactive?c(p):(l=r.parser.defined.includes(se(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),u):t(p)}function u(p){return p===40?e.attempt(vo,f,l?f:c)(p):p===91?e.attempt(Mo,f,l?s:c)(p):l?f(p):c(p)}function s(p){return e.attempt(Oo,f,c)(p)}function f(p){return n(p)}function c(p){return o._balanced=!0,t(p)}}function Bo(e,n,t){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return U(c)?Ue(e,o)(c):o(c)}function o(c){return c===41?f(c):jr(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return U(c)?Ue(e,u)(c):f(c)}function a(c){return t(c)}function u(c){return c===34||c===39||c===40?qr(e,s,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function s(c){return U(c)?Ue(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),n):t(c)}}function jo(e,n,t){const r=this;return i;function i(a){return $r.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(se(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function l(a){return t(a)}}function $o(e,n,t){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),n):t(o)}}const qo={name:"labelStartImage",resolveAll:Jt.resolveAll,tokenize:Ho};function Ho(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):t(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const Uo={name:"labelStartLink",resolveAll:Jt.resolveAll,tokenize:Vo};function Vo(e,n,t){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(l):n(l)}}const kt={name:"lineEnding",tokenize:Wo};function Wo(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),B(e,n,"linePrefix")}}const it={name:"thematicBreak",tokenize:Yo};function Yo(e,n,t){let r=0,i;return o;function o(s){return e.enter("thematicBreak"),l(s)}function l(s){return i=s,a(s)}function a(s){return s===i?(e.enter("thematicBreakSequence"),u(s)):r>=3&&(s===null||F(s))?(e.exit("thematicBreak"),n(s)):t(s)}function u(s){return s===i?(e.consume(s),r++,u):(e.exit("thematicBreakSequence"),j(s)?B(e,a,"whitespace")(s):a(s))}}const Z={continuation:{tokenize:Ko},exit:Zo,name:"list",tokenize:Qo},Go={partial:!0,tokenize:ea},Xo={partial:!0,tokenize:Jo};function Qo(e,n,t){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return a;function a(h){const d=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(d==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Rt(h)){if(r.containerState.type||(r.containerState.type=d,e.enter(d,{_container:!0})),d==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(it,t,s)(h):s(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(h)}return t(h)}function u(h){return Rt(h)&&++l<10?(e.consume(h),u):(!r.interrupt||l<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),s(h)):t(h)}function s(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Qe,r.interrupt?t:f,e.attempt(Go,p,c))}function f(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function c(h){return j(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):t(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(h)}}function Ko(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Qe,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,B(e,n,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!j(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Xo,n,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,B(e,e.attempt(Z,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Jo(e,n,t){const r=this;return B(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?n(o):t(o)}}function Zo(e){e.exit(this.containerState.type)}function ea(e,n,t){const r=this;return B(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!j(o)&&l&&l[1].type==="listItemPrefixWhitespace"?n(o):t(o)}}const _n={name:"setextUnderline",resolveTo:ta,tokenize:na};function ta(e,n){let t=e.length,r,i,o;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!o&&e[t][1].type==="definition"&&(o=t);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,n]),e.splice(o+1,0,["exit",e[r][1],n]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,n]),e}function na(e,n,t){const r=this;let i;return o;function o(s){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=s,l(s)):t(s)}function l(s){return e.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(e.consume(s),a):(e.exit("setextHeadingLineSequence"),j(s)?B(e,u,"lineSuffix")(s):u(s))}function u(s){return s===null||F(s)?(e.exit("setextHeadingLine"),n(s)):t(s)}}const ra={tokenize:ia};function ia(e){const n=this,t=e.attempt(Qe,r,e.attempt(this.parser.constructs.flowInitial,i,B(e,e.attempt(this.parser.constructs.flow,i,e.attempt(uo,i)),"linePrefix")));return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const la={resolveAll:Ur()},oa=Hr("string"),aa=Hr("text");function Hr(e){return{resolveAll:Ur(e==="text"?ua:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],o=t.attempt(i,l,a);return l;function l(f){return s(f)?o(f):a(f)}function a(f){if(f===null){t.consume(f);return}return t.enter("data"),t.consume(f),u}function u(f){return s(f)?(t.exit("data"),o(f)):(t.consume(f),u)}function s(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p<c.length;){const h=c[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function Ur(e){return n;function n(t,r){let i=-1,o;for(;++i<=t.length;)o===void 0?t[i]&&t[i][1].type==="data"&&(o=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==o+2&&(t[o][1].end=t[i-1][1].end,t.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(t,r):t}}function ua(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let o=i.length,l=-1,a=0,u;for(;o--;){const s=i[o];if(typeof s=="string"){for(l=s.length;s.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(s===-2)u=!0,a++;else if(s!==-1){o++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const s={type:t===e.length||u||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...s.start},r.start.offset===r.end.offset?Object.assign(r,s):(e.splice(t,0,["enter",s,n],["exit",s,n]),t+=2)}t++}return e}const sa={42:Z,43:Z,45:Z,48:Z,49:Z,50:Z,51:Z,52:Z,53:Z,54:Z,55:Z,56:Z,57:Z,62:Rr},ca={91:po},fa={[-2]:xt,[-1]:xt,32:xt},ha={35:bo,42:it,45:[_n,it],60:Eo,61:_n,95:it,96:On,126:On},pa={38:Nr,92:_r},ma={[-5]:kt,[-4]:kt,[-3]:kt,33:qo,38:Nr,42:_t,60:[Hl,Do],91:Uo,92:[xo,_r],93:Jt,95:_t,96:no},ga={null:[_t,la]},da={null:[42,95]},ya={null:[]},xa=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:da,contentInitial:ca,disable:ya,document:sa,flow:ha,flowInitial:fa,insideSpan:ga,string:pa,text:ma},Symbol.toStringTag,{value:"Module"}));function ka(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},o=[];let l=[],a=[];const u={attempt:_(M),check:_(S),consume:k,enter:I,exit:v,interrupt:_(S,{interrupt:!0})},s={code:null,containerState:{},defineSkip:y,events:[],now:d,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:c};let f=n.tokenize.call(s,u);return n.resolveAll&&o.push(n),s;function c(P){return l=ie(l,P),C(),l[l.length-1]!==null?[]:(q(n,0),s.events=ft(o,s.events,s),s.events)}function p(P,z){return wa(h(P),z)}function h(P){return ba(l,P)}function d(){const{_bufferIndex:P,_index:z,line:D,column:T,offset:L}=r;return{_bufferIndex:P,_index:z,line:D,column:T,offset:L}}function y(P){i[P.line]=P.column,b()}function C(){let P;for(;r._index<l.length;){const z=l[r._index];if(typeof z=="string")for(P=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===P&&r._bufferIndex<z.length;)x(z.charCodeAt(r._bufferIndex));else x(z)}}function x(P){f=f(P)}function k(P){F(P)?(r.line++,r.column=1,r.offset+=P===-3?2:1,b()):P!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=P}function I(P,z){const D=z||{};return D.type=P,D.start=d(),s.events.push(["enter",D,s]),a.push(D),D}function v(P){const z=a.pop();return z.end=d(),s.events.push(["exit",z,s]),z}function M(P,z){q(P,z.from)}function S(P,z){z.restore()}function _(P,z){return D;function D(T,L,Y){let G,le,he,m;return Array.isArray(T)?pe(T):"tokenize"in T?pe([T]):oe(T);function oe(X){return Re;function Re(ye){const Ae=ye!==null&&X[ye],Te=ye!==null&&X.null,Ze=[...Array.isArray(Ae)?Ae:Ae?[Ae]:[],...Array.isArray(Te)?Te:Te?[Te]:[]];return pe(Ze)(ye)}}function pe(X){return G=X,le=0,X.length===0?Y:g(X[le])}function g(X){return Re;function Re(ye){return m=O(),he=X,X.partial||(s.currentConstruct=X),X.name&&s.parser.constructs.disable.null.includes(X.name)?be():X.tokenize.call(z?Object.assign(Object.create(s),z):s,u,ae,be)(ye)}}function ae(X){return P(he,m),L}function be(X){return m.restore(),++le<G.length?g(G[le]):Y}}}function q(P,z){P.resolveAll&&!o.includes(P)&&o.push(P),P.resolve&&re(s.events,z,s.events.length-z,P.resolve(s.events.slice(z),s)),P.resolveTo&&(s.events=P.resolveTo(s.events,s))}function O(){const P=d(),z=s.previous,D=s.currentConstruct,T=s.events.length,L=Array.from(a);return{from:T,restore:Y};function Y(){r=P,s.previous=z,s.currentConstruct=D,s.events.length=T,a=L,b()}}function b(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function ba(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,o=n.end._bufferIndex;let l;if(t===i)l=[e[t].slice(r,o)];else{if(l=e.slice(t,i),r>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function wa(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const o=e[t];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
|
|
3
3
|
`;break}case-3:{l=`\r
|
|
4
4
|
`;break}case-2:{l=n?" ":" ";break}case-1:{if(!n&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function Sa(e){const r={constructs:Mr([xa,...(e||{}).extensions||[]]),content:i(Rl),defined:[],document:i(Nl),flow:i(ra),lazy:{},string:i(oa),text:i(aa)};return r;function i(o){return l;function l(a){return ka(r,o,a)}}}function Ca(e){for(;!Br(e););return e}const Nn=/[\0\t\n\r]/g;function Ea(){let e=1,n="",t=!0,r;return i;function i(o,l,a){const u=[];let s,f,c,p,h;for(o=n+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,n="",t&&(o.charCodeAt(0)===65279&&c++,t=void 0);c<o.length;){if(Nn.lastIndex=c,s=Nn.exec(o),p=s&&s.index!==void 0?s.index:o.length,h=o.charCodeAt(p),!s){n=o.slice(c);break}if(h===10&&c===p&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),c<p&&(u.push(o.slice(c,p)),e+=p-c),h){case 0:{u.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,u.push(-2);e++<f;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}c=p+1}return a&&(r&&u.push(-5),n&&u.push(n),u.push(null)),u}}const Ia=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Aa(e){return e.replace(Ia,Ta)}function Ta(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),o=i===120||i===88;return Or(t.slice(o?2:1),o?16:10)}return Kt(t)||e}const Vr={}.hasOwnProperty;function Fa(e,n,t){return typeof n!="string"&&(t=n,n=void 0),Pa(t)(Ca(Sa(t).document().write(Ea()(e,n,!0))))}function Pa(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(mn),autolinkProtocol:O,autolinkEmail:O,atxHeading:o(fn),blockQuote:o(Te),characterEscape:O,characterReference:O,codeFenced:o(Ze),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(Ze,l),codeText:o(Li,l),codeTextData:O,data:O,codeFlowValue:O,definition:o(vi),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(Mi),hardBreakEscape:o(hn),hardBreakTrailing:o(hn),htmlFlow:o(pn,l),htmlFlowData:O,htmlText:o(pn,l),htmlTextData:O,image:o(Oi),label:l,link:o(mn),listItem:o(Ri),listItemValue:p,listOrdered:o(gn,c),listUnordered:o(gn),paragraph:o(_i),reference:g,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(fn),strong:o(Ni),thematicBreak:o(ji)},exit:{atxHeading:u(),atxHeadingSequence:M,autolink:u(),autolinkEmail:Ae,autolinkProtocol:ye,blockQuote:u(),characterEscapeValue:b,characterReferenceMarkerHexadecimal:be,characterReferenceMarkerNumeric:be,characterReferenceValue:X,characterReference:Re,codeFenced:u(C),codeFencedFence:y,codeFencedFenceInfo:h,codeFencedFenceMeta:d,codeFlowValue:b,codeIndented:u(x),codeText:u(L),codeTextData:b,data:b,definition:u(),definitionDestinationString:v,definitionLabelString:k,definitionTitleString:I,emphasis:u(),hardBreakEscape:u(z),hardBreakTrailing:u(z),htmlFlow:u(D),htmlFlowData:b,htmlText:u(T),htmlTextData:b,image:u(G),label:he,labelText:le,lineEnding:P,link:u(Y),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ae,resourceDestinationString:m,resourceTitleString:oe,resource:pe,setextHeading:u(q),setextHeadingLineSequence:_,setextHeadingText:S,strong:u(),thematicBreak:u()}};Wr(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(w){let A={type:"root",children:[]};const R={stack:[A],tokenStack:[],config:n,enter:a,exit:s,buffer:l,resume:f,data:t},$=[];let H=-1;for(;++H<w.length;)if(w[H][1].type==="listOrdered"||w[H][1].type==="listUnordered")if(w[H][0]==="enter")$.push(H);else{const ue=$.pop();H=i(w,ue,H)}for(H=-1;++H<w.length;){const ue=n[w[H][0]];Vr.call(ue,w[H][1].type)&&ue[w[H][1].type].call(Object.assign({sliceSerialize:w[H][2].sliceSerialize},R),w[H][1])}if(R.tokenStack.length>0){const ue=R.tokenStack[R.tokenStack.length-1];(ue[1]||Bn).call(R,void 0,ue[0])}for(A.position={start:xe(w.length>0?w[0][1].start:{line:1,column:1,offset:0}),end:xe(w.length>0?w[w.length-2][1].end:{line:1,column:1,offset:0})},H=-1;++H<n.transforms.length;)A=n.transforms[H](A)||A;return A}function i(w,A,R){let $=A-1,H=-1,ue=!1,we,me,_e,Ne;for(;++$<=R;){const te=w[$];switch(te[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{te[0]==="enter"?H++:H--,Ne=void 0;break}case"lineEndingBlank":{te[0]==="enter"&&(we&&!Ne&&!H&&!_e&&(_e=$),Ne=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ne=void 0}if(!H&&te[0]==="enter"&&te[1].type==="listItemPrefix"||H===-1&&te[0]==="exit"&&(te[1].type==="listUnordered"||te[1].type==="listOrdered")){if(we){let Fe=$;for(me=void 0;Fe--;){const ge=w[Fe];if(ge[1].type==="lineEnding"||ge[1].type==="lineEndingBlank"){if(ge[0]==="exit")continue;me&&(w[me][1].type="lineEndingBlank",ue=!0),ge[1].type="lineEnding",me=Fe}else if(!(ge[1].type==="linePrefix"||ge[1].type==="blockQuotePrefix"||ge[1].type==="blockQuotePrefixWhitespace"||ge[1].type==="blockQuoteMarker"||ge[1].type==="listItemIndent"))break}_e&&(!me||_e<me)&&(we._spread=!0),we.end=Object.assign({},me?w[me][1].start:te[1].end),w.splice(me||$,0,["exit",we,te[2]]),$++,R++}if(te[1].type==="listItemPrefix"){const Fe={type:"listItem",_spread:!1,start:Object.assign({},te[1].start),end:void 0};we=Fe,w.splice($,0,["enter",Fe,te[2]]),$++,R++,_e=void 0,Ne=!0}}}return w[A][1]._spread=ue,R}function o(w,A){return R;function R($){a.call(this,w($),$),A&&A.call(this,$)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(w,A,R){this.stack[this.stack.length-1].children.push(w),this.stack.push(w),this.tokenStack.push([A,R||void 0]),w.position={start:xe(A.start),end:void 0}}function u(w){return A;function A(R){w&&w.call(this,R),s.call(this,R)}}function s(w,A){const R=this.stack.pop(),$=this.tokenStack.pop();if($)$[0].type!==w.type&&(A?A.call(this,w,$[0]):($[1]||Bn).call(this,w,$[0]));else throw new Error("Cannot close `"+w.type+"` ("+He({start:w.start,end:w.end})+"): it’s not open");R.position.end=xe(w.end)}function f(){return Qt(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(w){if(this.data.expectingFirstListItemValue){const A=this.stack[this.stack.length-2];A.start=Number.parseInt(this.sliceSerialize(w),10),this.data.expectingFirstListItemValue=void 0}}function h(){const w=this.resume(),A=this.stack[this.stack.length-1];A.lang=w}function d(){const w=this.resume(),A=this.stack[this.stack.length-1];A.meta=w}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const w=this.resume(),A=this.stack[this.stack.length-1];A.value=w.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const w=this.resume(),A=this.stack[this.stack.length-1];A.value=w.replace(/(\r?\n|\r)$/g,"")}function k(w){const A=this.resume(),R=this.stack[this.stack.length-1];R.label=A,R.identifier=se(this.sliceSerialize(w)).toLowerCase()}function I(){const w=this.resume(),A=this.stack[this.stack.length-1];A.title=w}function v(){const w=this.resume(),A=this.stack[this.stack.length-1];A.url=w}function M(w){const A=this.stack[this.stack.length-1];if(!A.depth){const R=this.sliceSerialize(w).length;A.depth=R}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function _(w){const A=this.stack[this.stack.length-1];A.depth=this.sliceSerialize(w).codePointAt(0)===61?1:2}function q(){this.data.setextHeadingSlurpLineEnding=void 0}function O(w){const R=this.stack[this.stack.length-1].children;let $=R[R.length-1];(!$||$.type!=="text")&&($=Bi(),$.position={start:xe(w.start),end:void 0},R.push($)),this.stack.push($)}function b(w){const A=this.stack.pop();A.value+=this.sliceSerialize(w),A.position.end=xe(w.end)}function P(w){const A=this.stack[this.stack.length-1];if(this.data.atHardBreak){const R=A.children[A.children.length-1];R.position.end=xe(w.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(A.type)&&(O.call(this,w),b.call(this,w))}function z(){this.data.atHardBreak=!0}function D(){const w=this.resume(),A=this.stack[this.stack.length-1];A.value=w}function T(){const w=this.resume(),A=this.stack[this.stack.length-1];A.value=w}function L(){const w=this.resume(),A=this.stack[this.stack.length-1];A.value=w}function Y(){const w=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";w.type+="Reference",w.referenceType=A,delete w.url,delete w.title}else delete w.identifier,delete w.label;this.data.referenceType=void 0}function G(){const w=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";w.type+="Reference",w.referenceType=A,delete w.url,delete w.title}else delete w.identifier,delete w.label;this.data.referenceType=void 0}function le(w){const A=this.sliceSerialize(w),R=this.stack[this.stack.length-2];R.label=Aa(A),R.identifier=se(A).toLowerCase()}function he(){const w=this.stack[this.stack.length-1],A=this.resume(),R=this.stack[this.stack.length-1];if(this.data.inReference=!0,R.type==="link"){const $=w.children;R.children=$}else R.alt=A}function m(){const w=this.resume(),A=this.stack[this.stack.length-1];A.url=w}function oe(){const w=this.resume(),A=this.stack[this.stack.length-1];A.title=w}function pe(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function ae(w){const A=this.resume(),R=this.stack[this.stack.length-1];R.label=A,R.identifier=se(this.sliceSerialize(w)).toLowerCase(),this.data.referenceType="full"}function be(w){this.data.characterReferenceType=w.type}function X(w){const A=this.sliceSerialize(w),R=this.data.characterReferenceType;let $;R?($=Or(A,R==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):$=Kt(A);const H=this.stack[this.stack.length-1];H.value+=$}function Re(w){const A=this.stack.pop();A.position.end=xe(w.end)}function ye(w){b.call(this,w);const A=this.stack[this.stack.length-1];A.url=this.sliceSerialize(w)}function Ae(w){b.call(this,w);const A=this.stack[this.stack.length-1];A.url="mailto:"+this.sliceSerialize(w)}function Te(){return{type:"blockquote",children:[]}}function Ze(){return{type:"code",lang:null,meta:null,value:""}}function Li(){return{type:"inlineCode",value:""}}function vi(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Mi(){return{type:"emphasis",children:[]}}function fn(){return{type:"heading",depth:0,children:[]}}function hn(){return{type:"break"}}function pn(){return{type:"html",value:""}}function Oi(){return{type:"image",title:null,url:"",alt:null}}function mn(){return{type:"link",title:null,url:"",children:[]}}function gn(w){return{type:"list",ordered:w.type==="listOrdered",start:null,spread:w._spread,children:[]}}function Ri(w){return{type:"listItem",spread:w._spread,checked:null,children:[]}}function _i(){return{type:"paragraph",children:[]}}function Ni(){return{type:"strong",children:[]}}function Bi(){return{type:"text",value:""}}function ji(){return{type:"thematicBreak"}}}function xe(e){return{line:e.line,column:e.column,offset:e.offset}}function Wr(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?Wr(e,r):za(e,r)}}function za(e,n){let t;for(t in n)if(Vr.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function Bn(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+He({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+He({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+He({start:n.start,end:n.end})+") is still open")}function Da(e){const n=this;n.parser=t;function t(r){return Fa(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function La(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function va(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
|
|
@@ -56,4 +56,4 @@ Error generating stack: `+u.message+`
|
|
|
56
56
|
* LICENSE.md file in the root directory of this source tree.
|
|
57
57
|
*
|
|
58
58
|
* @license MIT
|
|
59
|
-
*/function Bi(){return Bi=Object.assign?Object.assign.bind():function(o){for(var c=1;c<arguments.length;c++){var s=arguments[c];for(var h in s)Object.prototype.hasOwnProperty.call(s,h)&&(o[h]=s[h])}return o},Bi.apply(this,arguments)}function ap(o,c){if(o==null)return{};var s={},h=Object.keys(o),g,w;for(w=0;w<h.length;w++)g=h[w],!(c.indexOf(g)>=0)&&(s[g]=o[g]);return s}function cp(o){return!!(o.metaKey||o.altKey||o.ctrlKey||o.shiftKey)}function fp(o,c){return o.button===0&&(!c||c==="_self")&&!cp(o)}const dp=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],pp="6";try{window.__reactRouterVersion=pp}catch{}const hp="startTransition",Xa=fd[hp];function Ep(o){let{basename:c,children:s,future:h,window:g}=o,w=F.useRef();w.current==null&&(w.current=yd({window:g,v5Compat:!0}));let C=w.current,[z,P]=F.useState({action:C.action,location:C.location}),{v7_startTransition:O}=h||{},B=F.useCallback(N=>{O&&Xa?Xa(()=>P(N)):P(N)},[P,O]);return F.useLayoutEffect(()=>C.listen(B),[C,B]),F.useEffect(()=>ip(h),[h]),F.createElement(sp,{basename:c,children:s,location:z.location,navigationType:z.action,navigator:C,future:h})}const mp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Cp=F.forwardRef(function(c,s){let{onClick:h,relative:g,reloadDocument:w,replace:C,state:z,target:P,to:O,preventScrollReset:B,viewTransition:N}=c,W=ap(c,dp),{basename:re}=F.useContext(fn),G,A=!1;if(typeof O=="string"&&vp.test(O)&&(G=O,mp))try{let ee=new URL(window.location.href),ie=O.startsWith("//")?new URL(ee.protocol+O):new URL(O),Ce=Vi(ie.pathname,re);ie.origin===ee.origin&&Ce!=null?O=Ce+ie.search+ie.hash:A=!0}catch{}let L=Hd(O,{relative:g}),le=yp(O,{replace:C,state:z,target:P,preventScrollReset:B,relative:g,viewTransition:N});function ue(ee){h&&h(ee),ee.defaultPrevented||le(ee)}return F.createElement("a",Bi({},W,{href:G||L,onClick:A||w?h:ue,ref:s,target:P}))});var Ga;(function(o){o.UseScrollRestoration="useScrollRestoration",o.UseSubmit="useSubmit",o.UseSubmitFetcher="useSubmitFetcher",o.UseFetcher="useFetcher",o.useViewTransitionState="useViewTransitionState"})(Ga||(Ga={}));var Za;(function(o){o.UseFetcher="useFetcher",o.UseFetchers="useFetchers",o.UseScrollRestoration="useScrollRestoration"})(Za||(Za={}));function yp(o,c){let{target:s,replace:h,state:g,preventScrollReset:w,relative:C,viewTransition:z}=c===void 0?{}:c,P=Qd(),O=Ul(),B=oc(o,{relative:C});return F.useCallback(N=>{if(fp(N,s)){N.preventDefault();let W=h!==void 0?h:Fl(O)===Fl(B);P(o,{replace:W,state:g,preventScrollReset:w,relative:C,viewTransition:z})}},[O,P,B,h,g,s,o,w,C,z])}export{Ep as B,Cp as L,cd as R,F as a,md as b,gp as c,wp as d,
|
|
59
|
+
*/function Bi(){return Bi=Object.assign?Object.assign.bind():function(o){for(var c=1;c<arguments.length;c++){var s=arguments[c];for(var h in s)Object.prototype.hasOwnProperty.call(s,h)&&(o[h]=s[h])}return o},Bi.apply(this,arguments)}function ap(o,c){if(o==null)return{};var s={},h=Object.keys(o),g,w;for(w=0;w<h.length;w++)g=h[w],!(c.indexOf(g)>=0)&&(s[g]=o[g]);return s}function cp(o){return!!(o.metaKey||o.altKey||o.ctrlKey||o.shiftKey)}function fp(o,c){return o.button===0&&(!c||c==="_self")&&!cp(o)}const dp=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],pp="6";try{window.__reactRouterVersion=pp}catch{}const hp="startTransition",Xa=fd[hp];function Ep(o){let{basename:c,children:s,future:h,window:g}=o,w=F.useRef();w.current==null&&(w.current=yd({window:g,v5Compat:!0}));let C=w.current,[z,P]=F.useState({action:C.action,location:C.location}),{v7_startTransition:O}=h||{},B=F.useCallback(N=>{O&&Xa?Xa(()=>P(N)):P(N)},[P,O]);return F.useLayoutEffect(()=>C.listen(B),[C,B]),F.useEffect(()=>ip(h),[h]),F.createElement(sp,{basename:c,children:s,location:z.location,navigationType:z.action,navigator:C,future:h})}const mp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Cp=F.forwardRef(function(c,s){let{onClick:h,relative:g,reloadDocument:w,replace:C,state:z,target:P,to:O,preventScrollReset:B,viewTransition:N}=c,W=ap(c,dp),{basename:re}=F.useContext(fn),G,A=!1;if(typeof O=="string"&&vp.test(O)&&(G=O,mp))try{let ee=new URL(window.location.href),ie=O.startsWith("//")?new URL(ee.protocol+O):new URL(O),Ce=Vi(ie.pathname,re);ie.origin===ee.origin&&Ce!=null?O=Ce+ie.search+ie.hash:A=!0}catch{}let L=Hd(O,{relative:g}),le=yp(O,{replace:C,state:z,target:P,preventScrollReset:B,relative:g,viewTransition:N});function ue(ee){h&&h(ee),ee.defaultPrevented||le(ee)}return F.createElement("a",Bi({},W,{href:G||L,onClick:A||w?h:ue,ref:s,target:P}))});var Ga;(function(o){o.UseScrollRestoration="useScrollRestoration",o.UseSubmit="useSubmit",o.UseSubmitFetcher="useSubmitFetcher",o.UseFetcher="useFetcher",o.useViewTransitionState="useViewTransitionState"})(Ga||(Ga={}));var Za;(function(o){o.UseFetcher="useFetcher",o.UseFetchers="useFetchers",o.UseScrollRestoration="useScrollRestoration"})(Za||(Za={}));function yp(o,c){let{target:s,replace:h,state:g,preventScrollReset:w,relative:C,viewTransition:z}=c===void 0?{}:c,P=Qd(),O=Ul(),B=oc(o,{relative:C});return F.useCallback(N=>{if(fp(N,s)){N.preventDefault();let W=h!==void 0?h:Fl(O)===Fl(B);P(o,{replace:W,state:g,preventScrollReset:w,relative:C,viewTransition:z})}},[O,P,B,h,g,s,o,w,C,z])}export{Ep as B,Cp as L,cd as R,F as a,md as b,gp as c,wp as d,Sp as e,kp as f,Ja as g,op as h,qa as r,Qd as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{R as ae,c as Ie,g as Yp}from"./vendor-react-
|
|
1
|
+
import{R as ae,c as Ie,g as Yp}from"./vendor-react-C_uEg43g.js";import{_ as Kp,a as Xp}from"./vendor-codemirror-B2saKA4-.js";function Zp(e,t){if(e==null)return{};var r,a,n=Kp(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function To(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function Qp(e){if(Array.isArray(e))return To(e)}function Jp(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eg(e,t){if(e){if(typeof e=="string")return To(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?To(e,t):void 0}}function tg(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ao(e){return Qp(e)||Jp(e)||eg(e)||tg()}function Se(e){"@babel/helpers - typeof";return Se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Se(e)}function rg(e,t){if(Se(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(Se(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ag(e){var t=rg(e,"string");return Se(t)=="symbol"?t:t+""}function wp(e,t,r){return(t=ag(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qo(Object(r),!0).forEach(function(a){wp(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qo(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function ng(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var Ue={};function ig(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return Ue[t]||(Ue[t]=ng(e)),Ue[t]}function og(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,a=e.filter(function(i){return i!=="token"}),n=ig(a);return n.reduce(function(i,o){return me(me({},i),r[o])},t)}function Go(e){return e.join(" ")}function sg(e,t){var r=0;return function(a){return r+=1,a.map(function(n,i){return kp({node:n,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(i)})})}}function kp(e){var t=e.node,r=e.stylesheet,a=e.style,n=a===void 0?{}:a,i=e.useInlineStyles,o=e.key,s=t.properties,l=t.type,c=t.tagName,u=t.value;if(l==="text")return u;if(c){var p=sg(r,i),m;if(!i)m=me(me({},s),{},{className:Go(s.className)});else{var f=Object.keys(r).reduce(function(R,b){return b.split(".").forEach(function(g){R.includes(g)||R.push(g)}),R},[]),T=s.className&&s.className.includes("token")?["token"]:[],h=s.className&&T.concat(s.className.filter(function(R){return!f.includes(R)}));m=me(me({},s),{},{className:Go(h)||void 0,style:og(s.className,Object.assign({},s.style,n),r)})}var A=p(t.children);return ae.createElement(c,Xp({key:o},m),A)}}const lg=function(e,t){var r=e.listLanguages();return r.indexOf(t)!==-1};var ug=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function $o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$o(Object(r),!0).forEach(function(a){wp(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$o(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}var cg=/\n/g;function dg(e){return e.match(cg)}function pg(e){var t=e.lines,r=e.startingLineNumber,a=e.style;return t.map(function(n,i){var o=i+r;return ae.createElement("span",{key:"line-".concat(i),className:"react-syntax-highlighter-line-number",style:typeof a=="function"?a(o):a},"".concat(o,`
|
|
3
3
|
`))})}function gg(e){var t=e.codeString,r=e.codeStyle,a=e.containerStyle,n=a===void 0?{float:"left",paddingRight:"10px"}:a,i=e.numberStyle,o=i===void 0?{}:i,s=e.startingLineNumber;return ae.createElement("code",{style:Object.assign({},r,n)},pg({lines:t.replace(/\n$/,"").split(`
|
|
4
4
|
`),style:o,startingLineNumber:s}))}function bg(e){return"".concat(e.toString().length,".25em")}function Cp(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function Op(e,t,r){var a={display:"inline-block",minWidth:bg(r),paddingRight:"1em",textAlign:"right",userSelect:"none"},n=typeof e=="function"?e(t):e,i=ne(ne({},a),n);return i}function _e(e){var t=e.children,r=e.lineNumber,a=e.lineNumberStyle,n=e.largestLineNumber,i=e.showInlineLineNumbers,o=e.lineProps,s=o===void 0?{}:o,l=e.className,c=l===void 0?[]:l,u=e.showLineNumbers,p=e.wrapLongLines,m=e.wrapLines,f=m===void 0?!1:m,T=f?ne({},typeof s=="function"?s(r):s):{};if(T.className=T.className?[].concat(Ao(T.className.trim().split(/\s+/)),Ao(c)):c,r&&i){var h=Op(a,r,n);t.unshift(Cp(r,h))}return p&u&&(T.style=ne({display:"flex"},T.style)),{type:"element",tagName:"span",properties:T,children:t}}function Lp(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=0;a<e.length;a++){var n=e[a];if(n.type==="text")r.push(_e({children:[n],className:Ao(new Set(t))}));else if(n.children){var i=t.concat(n.properties.className);Lp(n.children,i).forEach(function(o){return r.push(o)})}}return r}function mg(e,t,r,a,n,i,o,s,l){var c,u=Lp(e.value),p=[],m=-1,f=0;function T(S,d){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return _e({children:S,lineNumber:d,lineNumberStyle:s,largestLineNumber:o,showInlineLineNumbers:n,lineProps:r,className:y,showLineNumbers:a,wrapLongLines:l,wrapLines:t})}function h(S,d){if(a&&d&&n){var y=Op(s,d,o);S.unshift(Cp(d,y))}return S}function A(S,d){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||y.length>0?T(S,d,y):h(S,d)}for(var R=function(){var d=u[f],y=d.children[0].value,_=dg(y);if(_){var v=y.split(`
|
package/dist/index.html
CHANGED
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
|
|
26
26
|
<!-- Prevent zoom on iOS -->
|
|
27
27
|
<meta name="format-detection" content="telephone=no" />
|
|
28
|
-
<script type="module" crossorigin src="/assets/index-
|
|
29
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-react-
|
|
30
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-codemirror-
|
|
28
|
+
<script type="module" crossorigin src="/assets/index-GDRRo6D8.js"></script>
|
|
29
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-react-C_uEg43g.js">
|
|
30
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-codemirror-B2saKA4-.js">
|
|
31
31
|
<link rel="modulepreload" crossorigin href="/assets/vendor-utils-00TdZexr.js">
|
|
32
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-icons-
|
|
32
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-icons-BLTKkQIn.js">
|
|
33
33
|
<link rel="modulepreload" crossorigin href="/assets/vendor-katex-DK8hFnhL.js">
|
|
34
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-markdown-
|
|
35
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-syntax-
|
|
34
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-markdown-Ok8-Lurq.js">
|
|
35
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-syntax-CEC-Nb_2.js">
|
|
36
36
|
<link rel="modulepreload" crossorigin href="/assets/vendor-xterm-CvdiG4-n.js">
|
|
37
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
37
|
+
<link rel="stylesheet" crossorigin href="/assets/index-XUGiJSMZ.css">
|
|
38
38
|
</head>
|
|
39
39
|
<body>
|
|
40
40
|
<div id="root"></div>
|
package/package.json
CHANGED
package/server/database/db.js
CHANGED
|
@@ -353,6 +353,24 @@ const runMigrations = () => {
|
|
|
353
353
|
`);
|
|
354
354
|
db.exec('CREATE INDEX IF NOT EXISTS idx_cron_tasks_user ON cron_tasks(user_uuid)');
|
|
355
355
|
|
|
356
|
+
// 会话分享表
|
|
357
|
+
db.exec(`
|
|
358
|
+
CREATE TABLE IF NOT EXISTS session_shares (
|
|
359
|
+
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
360
|
+
user_uuid TEXT NOT NULL,
|
|
361
|
+
session_id TEXT NOT NULL,
|
|
362
|
+
project_name TEXT NOT NULL,
|
|
363
|
+
share_mode TEXT NOT NULL DEFAULT 'realtime',
|
|
364
|
+
status TEXT NOT NULL DEFAULT 'active',
|
|
365
|
+
session_title TEXT,
|
|
366
|
+
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
|
|
367
|
+
updated_at DATETIME DEFAULT CURRENT_TIMESTAMP,
|
|
368
|
+
UNIQUE(user_uuid, session_id)
|
|
369
|
+
)
|
|
370
|
+
`);
|
|
371
|
+
db.exec('CREATE INDEX IF NOT EXISTS idx_session_shares_session ON session_shares(session_id)');
|
|
372
|
+
db.exec('CREATE INDEX IF NOT EXISTS idx_session_shares_user ON session_shares(user_uuid)');
|
|
373
|
+
|
|
356
374
|
// 聊天图片持久化关联表
|
|
357
375
|
db.exec(`
|
|
358
376
|
CREATE TABLE IF NOT EXISTS message_images (
|
|
@@ -1572,6 +1590,42 @@ const cronDb = {
|
|
|
1572
1590
|
},
|
|
1573
1591
|
};
|
|
1574
1592
|
|
|
1593
|
+
// Share database operations
|
|
1594
|
+
const shareDb = {
|
|
1595
|
+
getShare: (userUuid, sessionId) => {
|
|
1596
|
+
return db.prepare('SELECT * FROM session_shares WHERE user_uuid = ? AND session_id = ?').get(userUuid, sessionId);
|
|
1597
|
+
},
|
|
1598
|
+
|
|
1599
|
+
getShareBySessionId: (sessionId) => {
|
|
1600
|
+
return db.prepare('SELECT * FROM session_shares WHERE session_id = ?').get(sessionId);
|
|
1601
|
+
},
|
|
1602
|
+
|
|
1603
|
+
upsertShare: (data) => {
|
|
1604
|
+
const now = new Date().toISOString();
|
|
1605
|
+
db.prepare(`
|
|
1606
|
+
INSERT INTO session_shares (user_uuid, session_id, project_name, share_mode, status, session_title, created_at, updated_at)
|
|
1607
|
+
VALUES (?, ?, ?, ?, 'active', ?, ?, ?)
|
|
1608
|
+
ON CONFLICT(user_uuid, session_id) DO UPDATE SET
|
|
1609
|
+
share_mode = excluded.share_mode,
|
|
1610
|
+
status = 'active',
|
|
1611
|
+
session_title = excluded.session_title,
|
|
1612
|
+
updated_at = excluded.updated_at
|
|
1613
|
+
`).run(data.userUuid, data.sessionId, data.projectName, data.shareMode, data.sessionTitle || null, now, now);
|
|
1614
|
+
},
|
|
1615
|
+
|
|
1616
|
+
stopShare: (userUuid, sessionId) => {
|
|
1617
|
+
const now = new Date().toISOString();
|
|
1618
|
+
db.prepare('UPDATE session_shares SET status = ?, updated_at = ? WHERE user_uuid = ? AND session_id = ?')
|
|
1619
|
+
.run('stopped', now, userUuid, sessionId);
|
|
1620
|
+
},
|
|
1621
|
+
|
|
1622
|
+
updateToStatic: (userUuid, sessionId) => {
|
|
1623
|
+
const now = new Date().toISOString();
|
|
1624
|
+
db.prepare('UPDATE session_shares SET share_mode = ?, updated_at = ? WHERE user_uuid = ? AND session_id = ?')
|
|
1625
|
+
.run('static', now, userUuid, sessionId);
|
|
1626
|
+
},
|
|
1627
|
+
};
|
|
1628
|
+
|
|
1575
1629
|
export {
|
|
1576
1630
|
db,
|
|
1577
1631
|
initializeDatabase,
|
|
@@ -1583,5 +1637,6 @@ export {
|
|
|
1583
1637
|
feishuDb,
|
|
1584
1638
|
imageDb,
|
|
1585
1639
|
agentSubmissionDb,
|
|
1586
|
-
cronDb
|
|
1640
|
+
cronDb,
|
|
1641
|
+
shareDb
|
|
1587
1642
|
};
|
package/server/index.js
CHANGED
|
@@ -85,7 +85,8 @@ import mcpReposRoutes from './routes/mcp-repos.js';
|
|
|
85
85
|
import settingsRoutes from './routes/settings.js';
|
|
86
86
|
import agentsRoutes from './routes/agents.js';
|
|
87
87
|
import cronRoutes from './routes/cron.js';
|
|
88
|
-
import
|
|
88
|
+
import shareRoutes from './routes/share.js';
|
|
89
|
+
import { initializeDatabase, userDb, imageDb, feishuDb, shareDb } from './database/db.js';
|
|
89
90
|
import { validateApiKey, authenticateToken, authenticateWebSocket } from './middleware/auth.js';
|
|
90
91
|
import { getUserPaths, initCodexDirectories, initGeminiDirectories } from './services/user-directories.js';
|
|
91
92
|
import { startUsageScanner } from './services/usage-scanner.js';
|
|
@@ -94,6 +95,7 @@ import { saveImage, getImagePath } from './services/image-storage.js';
|
|
|
94
95
|
import { WebhookWriter } from './services/builtin-tools/WebhookWriter.js';
|
|
95
96
|
import { SessionWriter } from './services/builtin-tools/SessionWriter.js';
|
|
96
97
|
import { startImageCleanup } from './services/image-cleanup.js';
|
|
98
|
+
import { extractShareMessages, saveStaticSnapshot } from './services/share-renderer.js';
|
|
97
99
|
|
|
98
100
|
// File system watcher for projects folder - per user
|
|
99
101
|
const userWatchers = new Map(); // Map<userUuid, { watcher, clients: Set<ws> }>
|
|
@@ -530,6 +532,9 @@ app.use('/api/agents', authenticateToken, agentsRoutes);
|
|
|
530
532
|
// Cron Tasks API Routes (protected)
|
|
531
533
|
app.use('/api/cron-tasks', authenticateToken, cronRoutes);
|
|
532
534
|
|
|
535
|
+
// Share Routes — GET public endpoints are auth-optional, POST/DELETE/info are protected (handled per route)
|
|
536
|
+
app.use('/api/share', shareRoutes);
|
|
537
|
+
|
|
533
538
|
// Static files served after API routes
|
|
534
539
|
// Add cache control: HTML files should not be cached, but assets can be cached
|
|
535
540
|
app.use(express.static(path.join(__dirname, '../dist'), {
|
|
@@ -647,8 +652,25 @@ app.put('/api/projects/:projectName/rename', authenticateToken, async (req, res)
|
|
|
647
652
|
app.delete('/api/projects/:projectName/sessions/:sessionId', authenticateToken, async (req, res) => {
|
|
648
653
|
try {
|
|
649
654
|
const { projectName, sessionId } = req.params;
|
|
655
|
+
const userUuid = req.user.uuid;
|
|
650
656
|
console.log(`[API] Deleting session: ${sessionId} from project: ${projectName}`);
|
|
651
|
-
|
|
657
|
+
|
|
658
|
+
// 若该会话是实时分享状态,删除前自动转为静态快照
|
|
659
|
+
try {
|
|
660
|
+
const share = shareDb.getShareBySessionId(sessionId);
|
|
661
|
+
if (share && share.status === 'active' && share.share_mode === 'realtime') {
|
|
662
|
+
const rawMessages = await getSessionMessages(projectName, sessionId, null, 0, userUuid);
|
|
663
|
+
const messages = extractShareMessages(rawMessages);
|
|
664
|
+
saveStaticSnapshot(messages, userUuid, sessionId, share.session_title);
|
|
665
|
+
shareDb.updateToStatic(userUuid, sessionId);
|
|
666
|
+
console.log(`[share] Session ${sessionId} realtime share converted to static before deletion`);
|
|
667
|
+
}
|
|
668
|
+
} catch (shareErr) {
|
|
669
|
+
console.error(`[share] Failed to convert share to static before deletion:`, shareErr);
|
|
670
|
+
// 不阻断删除流程
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
await deleteSession(projectName, sessionId, userUuid);
|
|
652
674
|
console.log(`[API] Session ${sessionId} deleted successfully`);
|
|
653
675
|
res.json({ success: true });
|
|
654
676
|
} catch (error) {
|