orcal-ui 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/orcal-ui.js +7 -8
- package/package.json +1 -1
- package/dist/custom-components-main.js +0 -1922
- package/dist/orcal-ui-aa9b729a.js +0 -38
- package/dist/orcal-ui-d01fded2.js +0 -38
package/dist/orcal-ui.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function t(e,t,n,r,o,i
|
|
1
|
+
function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function t(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function n(e){return function(){var n=this,r=arguments;return new Promise(function(o,a){var i=e.apply(n,r);function l(e){t(i,o,a,l,c,"next",e)}function c(e){t(i,o,a,l,c,"throw",e)}l(void 0)})}}function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=d(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(){
|
|
2
2
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
3
|
-
var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,u=Object.create(l.prototype);return c(u,"_invoke",function(n,r,o){var i,l,c,s=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,l=0,c=e,p.n=n,a}};function f(n,r){for(l=n,c=r,t=0;!d&&s&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(l=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(p.n=-1),f(l,c)):p.n=c:p.v=c);try{if(s=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=p.n<0)?c:n.call(r,p))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function s(){}function u(){}function d(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(c(t={},r,function(){return this}),t),f=d.prototype=s.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=d,c(f,"constructor",d),c(d,"constructor",u),u.displayName="GeneratorFunction",c(d,o,"GeneratorFunction"),c(f),c(f,o,"Generator"),c(f,r,function(){return this}),c(f,"toString",function(){return"[object Generator]"}),(l=function(){return{w:i,m:h}})()}function c(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}c=function(e,t,n,r){function i(t,n){c(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},c(e,t,n,r)}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||d(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||d(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,n){if(t){if("string"==typeof t)return e(t,n);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}function p(){}function f(){}const h=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,m=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,g={};function x(e,t){return((t||g).jsx?m:h).test(e)}const v=/[ \t\n\f\r]/g;function y(e){return""===e.replace(v,"")}class b{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function w(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new b(n,r,t)}function k(e){return e.toLowerCase()}b.prototype.normal={},b.prototype.property={},b.prototype.space=void 0;class E{constructor(e,t){this.attribute=t,this.property=e}}E.prototype.attribute="",E.prototype.booleanish=!1,E.prototype.boolean=!1,E.prototype.commaOrSpaceSeparated=!1,E.prototype.commaSeparated=!1,E.prototype.defined=!1,E.prototype.mustUseProperty=!1,E.prototype.number=!1,E.prototype.overloadedBoolean=!1,E.prototype.property="",E.prototype.spaceSeparated=!1,E.prototype.space=void 0;let S=0;const z=M(),R=M(),N=M(),C=M(),I=M(),P=M(),T=M();function M(){return 2**++S}var A=Object.freeze({__proto__:null,boolean:z,booleanish:R,overloadedBoolean:N,number:C,spaceSeparated:I,commaSeparated:P,commaOrSpaceSeparated:T});const O=Object.keys(A);class D extends E{constructor(e,t,n,r){let o=-1;if(super(e,t),L(this,"space",r),"number"==typeof n)for(;++o<O.length;){const e=O[o];L(this,O[o],(n&A[e])===A[e])}}}function L(e,t,n){n&&(e[t]=n)}function j(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new D(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[k(r)]=r,n[k(i.attribute)]=r}return new b(t,n,e.space)}D.prototype.defined=!0;const _=j({properties:{ariaActiveDescendant:null,ariaAtomic:R,ariaAutoComplete:null,ariaBusy:R,ariaChecked:R,ariaColCount:C,ariaColIndex:C,ariaColSpan:C,ariaControls:I,ariaCurrent:null,ariaDescribedBy:I,ariaDetails:null,ariaDisabled:R,ariaDropEffect:I,ariaErrorMessage:null,ariaExpanded:R,ariaFlowTo:I,ariaGrabbed:R,ariaHasPopup:null,ariaHidden:R,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:I,ariaLevel:C,ariaLive:null,ariaModal:R,ariaMultiLine:R,ariaMultiSelectable:R,ariaOrientation:null,ariaOwns:I,ariaPlaceholder:null,ariaPosInSet:C,ariaPressed:R,ariaReadOnly:R,ariaRelevant:null,ariaRequired:R,ariaRoleDescription:I,ariaRowCount:C,ariaRowIndex:C,ariaRowSpan:C,ariaSelected:R,ariaSetSize:C,ariaSort:null,ariaValueMax:C,ariaValueMin:C,ariaValueNow:C,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function F(e,t){return t in e?e[t]:t}function B(e,t){return F(e,t.toLowerCase())}const H=j({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:P,acceptCharset:I,accessKey:I,action:null,allow:null,allowFullScreen:z,allowPaymentRequest:z,allowUserMedia:z,alt:null,as:null,async:z,autoCapitalize:null,autoComplete:I,autoFocus:z,autoPlay:z,blocking:I,capture:null,charSet:null,checked:z,cite:null,className:I,cols:C,colSpan:null,content:null,contentEditable:R,controls:z,controlsList:I,coords:C|P,crossOrigin:null,data:null,dateTime:null,decoding:null,default:z,defer:z,dir:null,dirName:null,disabled:z,download:N,draggable:R,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:z,formTarget:null,headers:I,height:C,hidden:N,high:C,href:null,hrefLang:null,htmlFor:I,httpEquiv:I,id:null,imageSizes:null,imageSrcSet:null,inert:z,inputMode:null,integrity:null,is:null,isMap:z,itemId:null,itemProp:I,itemRef:I,itemScope:z,itemType:I,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:z,low:C,manifest:null,max:null,maxLength:C,media:null,method:null,min:null,minLength:C,multiple:z,muted:z,name:null,nonce:null,noModule:z,noValidate:z,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:z,optimum:C,pattern:null,ping:I,placeholder:null,playsInline:z,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:z,referrerPolicy:null,rel:I,required:z,reversed:z,rows:C,rowSpan:C,sandbox:I,scope:null,scoped:z,seamless:z,selected:z,shadowRootClonable:z,shadowRootDelegatesFocus:z,shadowRootMode:null,shape:null,size:C,sizes:null,slot:null,span:C,spellCheck:R,src:null,srcDoc:null,srcLang:null,srcSet:null,start:C,step:null,style:null,tabIndex:C,target:null,title:null,translate:null,type:null,typeMustMatch:z,useMap:null,value:R,width:C,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:I,axis:null,background:null,bgColor:null,border:C,borderColor:null,bottomMargin:C,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:z,declare:z,event:null,face:null,frame:null,frameBorder:null,hSpace:C,leftMargin:C,link:null,longDesc:null,lowSrc:null,marginHeight:C,marginWidth:C,noResize:z,noHref:z,noShade:z,noWrap:z,object:null,profile:null,prompt:null,rev:null,rightMargin:C,rules:null,scheme:null,scrolling:R,standby:null,summary:null,text:null,topMargin:C,valueType:null,version:null,vAlign:null,vLink:null,vSpace:C,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:z,disableRemotePlayback:z,prefix:null,property:null,results:C,security:null,unselectable:null},space:"html",transform:B}),U=j({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:T,accentHeight:C,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:C,amplitude:C,arabicForm:null,ascent:C,attributeName:null,attributeType:null,azimuth:C,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:C,by:null,calcMode:null,capHeight:C,className:I,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:C,diffuseConstant:C,direction:null,display:null,dur:null,divisor:C,dominantBaseline:null,download:z,dx:null,dy:null,edgeMode:null,editable:null,elevation:C,enableBackground:null,end:null,event:null,exponent:C,externalResourcesRequired:null,fill:null,fillOpacity:C,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:P,g2:P,glyphName:P,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:C,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:C,horizOriginX:C,horizOriginY:C,id:null,ideographic:C,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:C,k:C,k1:C,k2:C,k3:C,k4:C,kernelMatrix:T,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:C,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:C,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:C,overlineThickness:C,paintOrder:null,panose1:null,path:null,pathLength:C,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:I,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:C,pointsAtY:C,pointsAtZ:C,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:T,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:T,rev:T,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:T,requiredFeatures:T,requiredFonts:T,requiredFormats:T,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:C,specularExponent:C,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:C,strikethroughThickness:C,string:null,stroke:null,strokeDashArray:T,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:C,strokeOpacity:C,strokeWidth:null,style:null,surfaceScale:C,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:T,tabIndex:C,tableValues:null,target:null,targetX:C,targetY:C,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:T,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:C,underlineThickness:C,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:C,values:null,vAlphabetic:C,vMathematical:C,vectorEffect:null,vHanging:C,vIdeographic:C,version:null,vertAdvY:C,vertOriginX:C,vertOriginY:C,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:C,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:F}),V=j({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),q=j({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:B}),W=j({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),Y={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"},X=/[A-Z]/g,K=/-[a-z]/g,$=/^data[-\w.:]+$/i;function J(e){return"-"+e.toLowerCase()}function Q(e){return e.charAt(1).toUpperCase()}const Z=w([_,H,V,q,W],"html"),G=w([_,U,V,q,W],"svg");var ee="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function te(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ne={},re=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,oe=/\n/g,ie=/^\s*/,ae=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,le=/^:\s*/,ce=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,se=/^[;\s]*/,ue=/^\s+|\s+$/g,de="";function pe(e){return e?e.replace(ue,de):de}var fe=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(e){var t=e.match(oe);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(){var e={line:n,column:r};return function(t){return t.position=new a(e),s(),t}}function a(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function l(o){var i=new Error(t.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i}function c(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function s(){c(ie)}function u(e){var t;for(e=e||[];t=d();)!1!==t&&e.push(t);return e}function d(){var t=i();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;de!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,de===e.charAt(n-1))return l("End of comment missing");var a=e.slice(2,n-2);return r+=2,o(a),e=e.slice(n),r+=2,t({type:"comment",comment:a})}}function p(){var e=i(),t=c(ae);if(t){if(d(),!c(le))return l("property missing ':'");var n=c(ce),r=e({type:"declaration",property:pe(t[0].replace(re,de)),value:n?pe(n[0].replace(re,de)):de});return c(se),r}}return a.prototype.content=e,s(),function(){var e,t=[];for(u(t);e=p();)!1!==e&&(t.push(e),u(t));return t}()},he=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ne,"__esModule",{value:!0}),ne.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;const r=(0,me.default)(e),o="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;const{property:r,value:i}=e;o?t(r,i,e):i&&(n=n||{},n[r]=i)}),n};const me=he(fe);var ge={};Object.defineProperty(ge,"__esModule",{value:!0}),ge.camelCase=void 0;var xe=/^--[a-zA-Z0-9_-]+$/,ve=/-([a-z])/g,ye=/^[^-]+$/,be=/^-(webkit|moz|ms|o|khtml)-/,we=/^-(ms)-/,ke=function(e,t){return t.toUpperCase()},Ee=function(e,t){return"".concat(t,"-")};ge.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||ye.test(e)||xe.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(we,Ee):e.replace(be,Ee)).replace(ve,ke))};var Se=(ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(ne),ze=ge;function Re(e,t){var n={};return e&&"string"==typeof e?((0,Se.default)(e,function(e,r){e&&r&&(n[(0,ze.camelCase)(e,t)]=r)}),n):n}Re.default=Re;var Ne=te(Re);const Ce=Pe("end"),Ie=Pe("start");function Pe(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function Te(e){return e&&"object"==typeof e?"position"in e||"type"in e?Ae(e.position):"start"in e||"end"in e?Ae(e):"line"in e||"column"in e?Me(e):"":""}function Me(e){return Oe(e&&e.line)+":"+Oe(e&&e.column)}function Ae(e){return Me(e&&e.start)+"-"+Me(e&&e.end)}function Oe(e){return e&&"number"==typeof e?e:1}class De extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.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=r,this.line=a?a.line:void 0,this.name=Te(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=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}De.prototype.file="",De.prototype.name="",De.prototype.reason="",De.prototype.message="",De.prototype.stack="",De.prototype.column=void 0,De.prototype.line=void 0,De.prototype.ancestors=void 0,De.prototype.cause=void 0,De.prototype.fatal=void 0,De.prototype.place=void 0,De.prototype.ruleId=void 0,De.prototype.source=void 0;const Le={}.hasOwnProperty,je=new Map,_e=/[A-Z]/g,Fe=new Set(["table","tbody","thead","tfoot","tr"]),Be=new Set(["td","th"]),He="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ue(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,o,i){const a=Array.isArray(o.children),l=Ie(n);return t(r,o,i,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,o,i){const a=Array.isArray(o.children)?n:t;return i?a(r,o,i):a(r,o)}}(0,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?G:Z,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=Ve(o,e,void 0);return i&&"string"!=typeof i?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function Ve(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=G,e.schema=o);e.ancestors.push(t);const i=Ke(e,t.tagName,!1),a=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&Le.call(t.properties,o)){const i=Xe(e,o,t.properties[o]);if(i){const[o,a]=i;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof a&&Be.has(t.tagName)?r=a:n[o]=a}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let l=Ye(e,t);Fe.has(t.tagName)&&(l=l.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&y(t.value):y(t));var t}));return qe(e,a,i,t),We(a,l),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}$e(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=G,e.schema=o);e.ancestors.push(t);const i=null===t.name?e.Fragment:Ke(e,t.name,!0),a=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];p(t.type);const o=t.expression;p(o.type);const i=o.properties[0];p(i.type),Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else $e(e,t.position);else{const o=r.name;let i;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];p(t.type),i=e.evaluater.evaluateExpression(t.expression)}else $e(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),l=Ye(e,t);return qe(e,a,i,t),We(a,l),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);$e(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return We(r,Ye(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function qe(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function We(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Ye(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:je;for(;++r<t.children.length;){const i=t.children[r];let a;if(e.passKeys){const e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){const t=o.get(e)||0;a=e+"-"+t,o.set(e,t+1)}}const l=Ve(e,i,a);void 0!==l&&n.push(l)}return n}function Xe(e,t,n){const r=function(e,t){const n=k(t);let r=t,o=E;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&$.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(K,Q);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!K.test(e)){let n=e.replace(X,J);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=D}return new o(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return Ne(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const n=t,r=new De("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=He+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)Le.call(e,n)&&(t[Je(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?Y[r.property]||r.property:r.attribute,n]}}function Ke(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=x(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(o&&"Literal"===t.type),optional:!1}:t}r=n}else r=x(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return Le.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);$e(e)}function $e(e,t){const n=new De("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=He+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Je(e){let t=e.replace(_e,Qe);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function Qe(e){return"-"+e.toLowerCase()}const Ze={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"]};var Ge="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};Ge.setTimeout,Ge.clearTimeout;var et=Ge.performance||{};et.now||et.mozNow||et.msNow||et.oNow||et.webkitNow;var tt={exports:{}},nt={};const rt=React;
|
|
3
|
+
var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var l=r&&r.prototype instanceof s?r:s,u=Object.create(l.prototype);return c(u,"_invoke",function(n,r,o){var a,l,c,s=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,c=e,p.n=n,i}};function f(n,r){for(l=n,c=r,t=0;!d&&s&&!o&&t<u.length;t++){var o,a=u[t],f=p.p,h=a[2];n>3?(o=h===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<h&&(o=n<3||a[0]>r||r>h)&&(a[4]=n,a[5]=r,p.n=h,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),l=u,c=h;(t=l<2?e:c)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,c)):p.n=c:p.v=c);try{if(s=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(d=p.n<0)?c:n.call(r,p))!==i)break}catch(t){a=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function s(){}function u(){}function d(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(c(t={},r,function(){return this}),t),f=d.prototype=s.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=d,c(f,"constructor",d),c(d,"constructor",u),u.displayName="GeneratorFunction",c(d,o,"GeneratorFunction"),c(f),c(f,o,"Generator"),c(f,r,function(){return this}),c(f,"toString",function(){return"[object Generator]"}),(l=function(){return{w:a,m:h}})()}function c(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}c=function(e,t,n,r){function a(t,n){c(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},c(e,t,n,r)}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(e,t)||d(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||d(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,n){if(t){if("string"==typeof t)return e(t,n);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}function p(){}function f(){}const h=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,m=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,g={};function x(e,t){return((t||g).jsx?m:h).test(e)}const v=/[ \t\n\f\r]/g;function y(e){return""===e.replace(v,"")}class b{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function w(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new b(n,r,t)}function k(e){return e.toLowerCase()}b.prototype.normal={},b.prototype.property={},b.prototype.space=void 0;class E{constructor(e,t){this.attribute=t,this.property=e}}E.prototype.attribute="",E.prototype.booleanish=!1,E.prototype.boolean=!1,E.prototype.commaOrSpaceSeparated=!1,E.prototype.commaSeparated=!1,E.prototype.defined=!1,E.prototype.mustUseProperty=!1,E.prototype.number=!1,E.prototype.overloadedBoolean=!1,E.prototype.property="",E.prototype.spaceSeparated=!1,E.prototype.space=void 0;let R=0;const S=A(),z=A(),N=A(),C=A(),I=A(),T=A(),P=A();function A(){return 2**++R}var M=Object.freeze({__proto__:null,boolean:S,booleanish:z,overloadedBoolean:N,number:C,spaceSeparated:I,commaSeparated:T,commaOrSpaceSeparated:P});const O=Object.keys(M);class j extends E{constructor(e,t,n,r){let o=-1;if(super(e,t),D(this,"space",r),"number"==typeof n)for(;++o<O.length;){const e=O[o];D(this,O[o],(n&M[e])===M[e])}}}function D(e,t,n){n&&(e[t]=n)}function L(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const a=new j(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[k(r)]=r,n[k(a.attribute)]=r}return new b(t,n,e.space)}j.prototype.defined=!0;const _=L({properties:{ariaActiveDescendant:null,ariaAtomic:z,ariaAutoComplete:null,ariaBusy:z,ariaChecked:z,ariaColCount:C,ariaColIndex:C,ariaColSpan:C,ariaControls:I,ariaCurrent:null,ariaDescribedBy:I,ariaDetails:null,ariaDisabled:z,ariaDropEffect:I,ariaErrorMessage:null,ariaExpanded:z,ariaFlowTo:I,ariaGrabbed:z,ariaHasPopup:null,ariaHidden:z,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:I,ariaLevel:C,ariaLive:null,ariaModal:z,ariaMultiLine:z,ariaMultiSelectable:z,ariaOrientation:null,ariaOwns:I,ariaPlaceholder:null,ariaPosInSet:C,ariaPressed:z,ariaReadOnly:z,ariaRelevant:null,ariaRequired:z,ariaRoleDescription:I,ariaRowCount:C,ariaRowIndex:C,ariaRowSpan:C,ariaSelected:z,ariaSetSize:C,ariaSort:null,ariaValueMax:C,ariaValueMin:C,ariaValueNow:C,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function F(e,t){return t in e?e[t]:t}function B(e,t){return F(e,t.toLowerCase())}const H=L({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:T,acceptCharset:I,accessKey:I,action:null,allow:null,allowFullScreen:S,allowPaymentRequest:S,allowUserMedia:S,alt:null,as:null,async:S,autoCapitalize:null,autoComplete:I,autoFocus:S,autoPlay:S,blocking:I,capture:null,charSet:null,checked:S,cite:null,className:I,cols:C,colSpan:null,content:null,contentEditable:z,controls:S,controlsList:I,coords:C|T,crossOrigin:null,data:null,dateTime:null,decoding:null,default:S,defer:S,dir:null,dirName:null,disabled:S,download:N,draggable:z,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:S,formTarget:null,headers:I,height:C,hidden:N,high:C,href:null,hrefLang:null,htmlFor:I,httpEquiv:I,id:null,imageSizes:null,imageSrcSet:null,inert:S,inputMode:null,integrity:null,is:null,isMap:S,itemId:null,itemProp:I,itemRef:I,itemScope:S,itemType:I,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:S,low:C,manifest:null,max:null,maxLength:C,media:null,method:null,min:null,minLength:C,multiple:S,muted:S,name:null,nonce:null,noModule:S,noValidate:S,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:S,optimum:C,pattern:null,ping:I,placeholder:null,playsInline:S,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:S,referrerPolicy:null,rel:I,required:S,reversed:S,rows:C,rowSpan:C,sandbox:I,scope:null,scoped:S,seamless:S,selected:S,shadowRootClonable:S,shadowRootDelegatesFocus:S,shadowRootMode:null,shape:null,size:C,sizes:null,slot:null,span:C,spellCheck:z,src:null,srcDoc:null,srcLang:null,srcSet:null,start:C,step:null,style:null,tabIndex:C,target:null,title:null,translate:null,type:null,typeMustMatch:S,useMap:null,value:z,width:C,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:I,axis:null,background:null,bgColor:null,border:C,borderColor:null,bottomMargin:C,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:S,declare:S,event:null,face:null,frame:null,frameBorder:null,hSpace:C,leftMargin:C,link:null,longDesc:null,lowSrc:null,marginHeight:C,marginWidth:C,noResize:S,noHref:S,noShade:S,noWrap:S,object:null,profile:null,prompt:null,rev:null,rightMargin:C,rules:null,scheme:null,scrolling:z,standby:null,summary:null,text:null,topMargin:C,valueType:null,version:null,vAlign:null,vLink:null,vSpace:C,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:S,disableRemotePlayback:S,prefix:null,property:null,results:C,security:null,unselectable:null},space:"html",transform:B}),U=L({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",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:P,accentHeight:C,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:C,amplitude:C,arabicForm:null,ascent:C,attributeName:null,attributeType:null,azimuth:C,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:C,by:null,calcMode:null,capHeight:C,className:I,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:C,diffuseConstant:C,direction:null,display:null,dur:null,divisor:C,dominantBaseline:null,download:S,dx:null,dy:null,edgeMode:null,editable:null,elevation:C,enableBackground:null,end:null,event:null,exponent:C,externalResourcesRequired:null,fill:null,fillOpacity:C,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:T,g2:T,glyphName:T,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:C,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:C,horizOriginX:C,horizOriginY:C,id:null,ideographic:C,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:C,k:C,k1:C,k2:C,k3:C,k4:C,kernelMatrix:P,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:C,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:C,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:C,overlineThickness:C,paintOrder:null,panose1:null,path:null,pathLength:C,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:I,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:C,pointsAtY:C,pointsAtZ:C,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:P,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:P,rev:P,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:P,requiredFeatures:P,requiredFonts:P,requiredFormats:P,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:C,specularExponent:C,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:C,strikethroughThickness:C,string:null,stroke:null,strokeDashArray:P,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:C,strokeOpacity:C,strokeWidth:null,style:null,surfaceScale:C,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:P,tabIndex:C,tableValues:null,target:null,targetX:C,targetY:C,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:P,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:C,underlineThickness:C,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:C,values:null,vAlphabetic:C,vMathematical:C,vectorEffect:null,vHanging:C,vIdeographic:C,version:null,vertAdvY:C,vertOriginX:C,vertOriginY:C,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:C,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:F}),V=L({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),q=L({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:B}),W=L({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),Y={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"},X=/[A-Z]/g,K=/-[a-z]/g,$=/^data[-\w.:]+$/i;function J(e){return"-"+e.toLowerCase()}function Q(e){return e.charAt(1).toUpperCase()}const Z=w([_,H,V,q,W],"html"),G=w([_,U,V,q,W],"svg");var ee="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function te(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ne={},re=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,oe=/\n/g,ae=/^\s*/,ie=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,le=/^:\s*/,ce=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,se=/^[;\s]*/,ue=/^\s+|\s+$/g,de="";function pe(e){return e?e.replace(ue,de):de}var fe=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(e){var t=e.match(oe);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function a(){var e={line:n,column:r};return function(t){return t.position=new i(e),s(),t}}function i(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function l(o){var a=new Error(t.source+":"+n+":"+r+": "+o);if(a.reason=o,a.filename=t.source,a.line=n,a.column=r,a.source=e,!t.silent)throw a}function c(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function s(){c(ae)}function u(e){var t;for(e=e||[];t=d();)!1!==t&&e.push(t);return e}function d(){var t=a();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;de!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,de===e.charAt(n-1))return l("End of comment missing");var i=e.slice(2,n-2);return r+=2,o(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}}function p(){var e=a(),t=c(ie);if(t){if(d(),!c(le))return l("property missing ':'");var n=c(ce),r=e({type:"declaration",property:pe(t[0].replace(re,de)),value:n?pe(n[0].replace(re,de)):de});return c(se),r}}return i.prototype.content=e,s(),function(){var e,t=[];for(u(t);e=p();)!1!==e&&(t.push(e),u(t));return t}()},he=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ne,"__esModule",{value:!0}),ne.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;const r=(0,me.default)(e),o="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;const{property:r,value:a}=e;o?t(r,a,e):a&&(n=n||{},n[r]=a)}),n};const me=he(fe);var ge={};Object.defineProperty(ge,"__esModule",{value:!0}),ge.camelCase=void 0;var xe=/^--[a-zA-Z0-9_-]+$/,ve=/-([a-z])/g,ye=/^[^-]+$/,be=/^-(webkit|moz|ms|o|khtml)-/,we=/^-(ms)-/,ke=function(e,t){return t.toUpperCase()},Ee=function(e,t){return"".concat(t,"-")};ge.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||ye.test(e)||xe.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(we,Ee):e.replace(be,Ee)).replace(ve,ke))};var Re=(ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(ne),Se=ge;function ze(e,t){var n={};return e&&"string"==typeof e?((0,Re.default)(e,function(e,r){e&&r&&(n[(0,Se.camelCase)(e,t)]=r)}),n):n}ze.default=ze;var Ne=te(ze);const Ce=Te("end"),Ie=Te("start");function Te(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function Pe(e){return e&&"object"==typeof e?"position"in e||"type"in e?Me(e.position):"start"in e||"end"in e?Me(e):"line"in e||"column"in e?Ae(e):"":""}function Ae(e){return Oe(e&&e.line)+":"+Oe(e&&e.column)}function Me(e){return Ae(e&&e.start)+"-"+Ae(e&&e.end)}function Oe(e){return e&&"number"==typeof e?e:1}class je extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},a=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(a=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const i=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=i?i.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=i?i.line:void 0,this.name=Pe(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=a&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}je.prototype.file="",je.prototype.name="",je.prototype.reason="",je.prototype.message="",je.prototype.stack="",je.prototype.column=void 0,je.prototype.line=void 0,je.prototype.ancestors=void 0,je.prototype.cause=void 0,je.prototype.fatal=void 0,je.prototype.place=void 0,je.prototype.ruleId=void 0,je.prototype.source=void 0;const De={}.hasOwnProperty,Le=new Map,_e=/[A-Z]/g,Fe=new Set(["table","tbody","thead","tfoot","tr"]),Be=new Set(["td","th"]),He="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ue(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,o,a){const i=Array.isArray(o.children),l=Ie(n);return t(r,o,a,i,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,o,a){const i=Array.isArray(o.children)?n:t;return a?i(r,o,a):i(r,o)}}(0,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?G:Z,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},a=Ve(o,e,void 0);return a&&"string"!=typeof a?a:o.create(e,o.Fragment,{children:a||void 0},void 0)}function Ve(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=G,e.schema=o);e.ancestors.push(t);const a=Ke(e,t.tagName,!1),i=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&De.call(t.properties,o)){const a=Xe(e,o,t.properties[o]);if(a){const[o,i]=a;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof i&&Be.has(t.tagName)?r=i:n[o]=i}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let l=Ye(e,t);Fe.has(t.tagName)&&(l=l.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&y(t.value):y(t));var t}));return qe(e,i,a,t),We(i,l),e.ancestors.pop(),e.schema=r,e.create(t,a,i,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}$e(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=G,e.schema=o);e.ancestors.push(t);const a=null===t.name?e.Fragment:Ke(e,t.name,!0),i=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];p(t.type);const o=t.expression;p(o.type);const a=o.properties[0];p(a.type),Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else $e(e,t.position);else{const o=r.name;let a;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];p(t.type),a=e.evaluater.evaluateExpression(t.expression)}else $e(e,t.position);else a=null===r.value||r.value;n[o]=a}return n}(e,t),l=Ye(e,t);return qe(e,i,a,t),We(i,l),e.ancestors.pop(),e.schema=r,e.create(t,a,i,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);$e(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return We(r,Ye(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function qe(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function We(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Ye(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:Le;for(;++r<t.children.length;){const a=t.children[r];let i;if(e.passKeys){const e="element"===a.type?a.tagName:"mdxJsxFlowElement"===a.type||"mdxJsxTextElement"===a.type?a.name:void 0;if(e){const t=o.get(e)||0;i=e+"-"+t,o.set(e,t+1)}}const l=Ve(e,a,i);void 0!==l&&n.push(l)}return n}function Xe(e,t,n){const r=function(e,t){const n=k(t);let r=t,o=E;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&$.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(K,Q);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!K.test(e)){let n=e.replace(X,J);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=j}return new o(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return Ne(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const n=t,r=new je("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=He+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)De.call(e,n)&&(t[Je(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?Y[r.property]||r.property:r.attribute,n]}}function Ke(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=x(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(o&&"Literal"===t.type),optional:!1}:t}r=n}else r=x(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return De.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);$e(e)}function $e(e,t){const n=new je("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=He+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Je(e){let t=e.replace(_e,Qe);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function Qe(e){return"-"+e.toLowerCase()}const Ze={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"]};var Ge="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};Ge.setTimeout,Ge.clearTimeout;var et=Ge.performance||{};et.now||et.mozNow||et.msNow||et.oNow||et.webkitNow;var tt={exports:{}},nt={};const rt=React;
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.min.js
|
|
@@ -9,30 +9,29 @@ var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toS
|
|
|
9
9
|
*
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
|
-
*/var ot;tt.exports=function(){if(ot)return nt;ot=1;var e=rt,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var l,c={},s=null,u=null;for(l in void 0!==a&&(s=""+a),void 0!==n.key&&(s=""+n.key),void 0!==n.ref&&(u=n.ref),n)r.call(n,l)&&!i.hasOwnProperty(l)&&(c[l]=n[l]);if(e&&e.defaultProps)for(l in n=e.defaultProps)void 0===c[l]&&(c[l]=n[l]);return{$$typeof:t,type:e,key:s,ref:u,props:c,_owner:o.current}}return nt.Fragment=n,nt.jsx=a,nt.jsxs=a,nt}();var it=tt.exports;const at={};function lt(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ct(e.children,t,n)}return Array.isArray(e)?ct(e,t,n):""}function ct(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=lt(e[o],t,n);return r.join("")}const st=document.createElement("i");function ut(e){const t="&"+e+";";st.innerHTML=t;const n=st.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}function dt(e,t,n,r){const o=e.length;let i,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function pt(e,t){return e.length>0?(dt(e,e.length,0,t),e):t}const ft={}.hasOwnProperty;function ht(e,t){let n;for(n in t){const r=(ft.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){ft.call(r,i)||(r[i]=[]);const e=o[i];mt(r[i],Array.isArray(e)?e:e?[e]:[])}}}function mt(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);dt(e,0,0,r)}function gt(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function xt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const vt=Pt(/[A-Za-z]/),yt=Pt(/[\dA-Za-z]/),bt=Pt(/[#-'*+\--9=?A-Z^-~]/);function wt(e){return null!==e&&(e<32||127===e)}const kt=Pt(/\d/),Et=Pt(/[\dA-Fa-f]/),St=Pt(/[!-/:-@[-`{-~]/);function zt(e){return null!==e&&e<-2}function Rt(e){return null!==e&&(e<0||32===e)}function Nt(e){return-2===e||-1===e||32===e}const Ct=Pt(/\p{P}|\p{S}/u),It=Pt(/\s/);function Pt(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Tt(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(37===i&&yt(e.charCodeAt(n+1))&&yt(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function Mt(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(Nt(r))return e.enter(n),a(r);return t(r)};function a(r){return Nt(r)&&i++<o?(e.consume(r),a):(e.exit(n),t(r))}}const At={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Mt(e,t,"linePrefix")},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):zt(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const Ot={tokenize:function(e){const t=this,n=[];let r,o,i,a=0;return l;function l(r){if(a<n.length){const o=n[a];return t.containerState=o[1],e.attempt(o[0].continuation,c,s)(r)}return s(r)}function c(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&v();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}x(a);let l=n;for(;l<t.events.length;)t.events[l][1].end={...o},l++;return dt(t.events,i+1,0,t.events.slice(n)),t.events.length=l,s(e)}return l(e)}function s(o){if(a===n.length){if(!r)return p(o);if(r.currentConstruct&&r.currentConstruct.concrete)return h(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Dt,u,d)(o)}function u(e){return r&&v(),x(a),p(e)}function d(e){return t.parser.lazy[t.now().line]=a!==n.length,i=t.now().offset,h(e)}function p(n){return t.containerState={},e.attempt(Dt,f,h)(n)}function f(e){return a++,n.push([t.currentConstruct,t.containerState]),p(e)}function h(n){return null===n?(r&&v(),x(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),x(0),void e.consume(n)):zt(n)?(e.consume(n),g(e.exit("chunkFlow")),a=0,t.interrupt=void 0,l):(e.consume(n),m)}function g(e,n){const l=t.sliceStream(e);if(n&&l.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(l),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,l,c=n;for(;c--;)if("exit"===t.events[c][0]&&"chunkFlow"===t.events[c][1].type){if(o){l=t.events[c][1].end;break}o=!0}for(x(a),e=n;e<t.events.length;)t.events[e][1].end={...l},e++;dt(t.events,c+1,0,t.events.slice(n)),t.events.length=e}}function x(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},Dt={tokenize:function(e,t,n){return Mt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function Lt(e){return null===e||Rt(e)||It(e)?1:Ct(e)?2:void 0}function jt(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const _t={name:"attention",resolveAll:function(e,t){let n,r,o,i,a,l,c,s,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},p={...e[u][1].start};Ft(d,-l),Ft(p,l),i={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},o={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:l>1?"strong":"emphasis",start:{...i.start},end:{...a.end}},e[n][1].end={...i.start},e[u][1].start={...a.end},c=[],e[n][1].end.offset-e[n][1].start.offset&&(c=pt(c,[["enter",e[n][1],t],["exit",e[n][1],t]])),c=pt(c,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),c=pt(c,jt(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),c=pt(c,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(s=2,c=pt(c,[["enter",e[u][1],t],["exit",e[u][1],t]])):s=0,dt(e,n-1,u-n+3,c),u=n+c.length-s-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Lt(r);let i;return function(t){return i=t,e.enter("attentionSequence"),a(t)};function a(l){if(l===i)return e.consume(l),a;const c=e.exit("attentionSequence"),s=Lt(l),u=!s||2===s&&o||n.includes(l),d=!o||2===o&&s||n.includes(r);return c._open=Boolean(42===i?u:u&&(o||!d)),c._close=Boolean(42===i?d:d&&(s||!u)),t(l)}}};function Ft(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Bt={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return vt(t)?(e.consume(t),i):64===t?n(t):c(t)}function i(e){return 43===e||45===e||46===e||yt(e)?(r=1,a(e)):c(e)}function a(t){return 58===t?(e.consume(t),r=0,l):(43===t||45===t||46===t||yt(t))&&r++<32?(e.consume(t),a):(r=0,c(t))}function l(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||wt(r)?n(r):(e.consume(r),l)}function c(t){return 64===t?(e.consume(t),s):bt(t)?(e.consume(t),c):n(t)}function s(e){return yt(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,s):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||yt(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const Ht={partial:!0,tokenize:function(e,t,n){return function(t){return Nt(t)?Mt(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||zt(e)?t(e):n(e)}}};const Ut={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(Nt(t))return Mt(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(Ut,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return Nt(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const Vt={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return St(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const qt={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),o=31,i=yt,s(t))}function c(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=Et,s):(e.enter("characterReferenceValue"),o=7,i=kt,s(t))}function s(l){if(59===l&&a){const o=e.exit("characterReferenceValue");return i!==yt||ut(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return i(l)&&a++<o?(e.consume(l),s):n(l)}}};const Wt={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},Yt={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),c}function c(t){return e.enter("codeFencedFence"),Nt(t)?Mt(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===i?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===i?(o++,e.consume(t),u):o>=l?(e.exit("codeFencedFenceSequence"),Nt(t)?Mt(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||zt(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let i,a=0,l=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(t)}(t)};function c(t){return t===i?(l++,e.consume(t),c):l<3?n(t):(e.exit("codeFencedFenceSequence"),Nt(t)?Mt(e,s,"whitespace")(t):s(t))}function s(n){return null===n||zt(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Wt,f,v)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||zt(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(t)):Nt(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Mt(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){return null===t||zt(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||zt(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(t)):96===t&&t===i?n(t):(e.consume(t),p)}function f(t){return e.attempt(o,v,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&Nt(t)?Mt(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||zt(t)?e.check(Wt,f,v)(t):(e.enter("codeFlowValue"),x(t))}function x(t){return null===t||zt(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),x)}function v(n){return e.exit("codeFenced"),t(n)}}};const Xt={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),Mt(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?l(t):zt(t)?e.attempt(Kt,i,l)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||zt(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function l(n){return e.exit("codeIndented"),t(n)}}},Kt={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):zt(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):Mt(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):zt(e)?o(e):n(e)}}};const $t={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}t=o-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),i++,a):(e.exit("codeTextSequence"),l(t))}function l(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),l):96===t?(o=e.enter("codeTextSequence"),r=0,s(t)):zt(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(t))}function c(t){return null===t||32===t||96===t||zt(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),c)}function s(n){return 96===n?(e.consume(n),r++,s):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",c(n))}}};class Jt{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&Qt(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Qt(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Qt(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);Qt(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Qt(this.left,t.reverse())}}}function Qt(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Zt(e){const t={};let n,r,o,i,a,l,c,s=-1;const u=new Jt(e);for(;++s<u.length;){for(;s in t;)s=t[s];if(n=u.get(s),s&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(s-1)[1].type&&(l=n[1]._tokenizer.events,o=0,o<l.length&&"lineEndingBlank"===l[o][1].type&&(o+=2),o<l.length&&"content"===l[o][1].type))for(;++o<l.length&&"content"!==l[o][1].type;)"chunkText"===l[o][1].type&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Gt(u,s)),s=t[s],c=!0);else if(n[1]._container){for(o=s,r=void 0;o--;)if(i=u.get(o),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if("linePrefix"!==i[1].type&&"listItemIndent"!==i[1].type)break;r&&(n[1].end={...u.get(r)[1].start},a=u.slice(r,s),a.unshift(n),u.splice(r,s-r+1,a))}}return dt(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}function Gt(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const l=a.events,c=[],s={};let u,d,p=-1,f=n,h=0,m=0;const g=[m];for(;f;){for(;e.get(++o)[1]!==f;);i.push(o),f._tokenizer||(u=r.sliceStream(f),f.next||u.push(null),d&&a.defineSkip(f.start),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++p<l.length;)"exit"===l[p][0]&&"enter"===l[p-1][0]&&l[p][1].type===l[p-1][1].type&&l[p][1].start.line!==l[p][1].end.line&&(m=p+1,g.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(a.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),p=g.length;p--;){const t=l.slice(g[p],g[p+1]),n=i.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),p=-1;++p<c.length;)s[h+c[p][0]]=h+c[p][1],h+=c[p][1]-c[p][0]-1;return s}const en={resolve:function(e){return Zt(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):zt(t)?e.check(tn,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},tn={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Mt(e,o,"linePrefix")};function o(o){if(null===o||zt(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}};function nn(e,t,n,r,o,i,a,l,c){const s=c||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d;if(null===t||32===t||41===t||wt(t))return n(t);return e.enter(r),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),h(t)};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(l),d(t)):null===t||60===t||zt(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(o){return u||null!==o&&41!==o&&!Rt(o)?u<s&&40===o?(e.consume(o),u++,h):41===o?(e.consume(o),u--,h):null===o||32===o||40===o||wt(o)?n(o):(e.consume(o),92===o?m:h):(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),t(o))}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function rn(e,t,n,r,o,i){const a=this;let l,c=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),s};function s(d){return c>999||null===d||91===d||93===d&&!l||94===d&&!c&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):zt(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||zt(t)||c++>999?(e.exit("chunkString"),s(t)):(e.consume(t),l||(l=!Nt(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),c++,u):u(t)}}function on(e,t,n,r,o,i){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,l;return n(t)};function l(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),c(n))}function c(t){return t===a?(e.exit(i),l(a)):null===t?n(t):zt(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Mt(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(t))}function s(t){return t===a||null===t||zt(t)?(e.exit("chunkString"),c(t)):(e.consume(t),92===t?u:s)}function u(t){return t===a||92===t?(e.consume(t),s):s(t)}}function an(e,t){let n;return function r(o){if(zt(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(Nt(o))return Mt(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}const ln={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return rn.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=xt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return Rt(t)?an(e,l)(t):l(t)}function l(t){return nn(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function c(t){return e.attempt(cn,s,s)(t)}function s(t){return Nt(t)?Mt(e,u,"whitespace")(t):u(t)}function u(i){return null===i||zt(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},cn={partial:!0,tokenize:function(e,t,n){return function(t){return Rt(t)?an(e,r)(t):n(t)};function r(t){return on(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return Nt(t)?Mt(e,i,"whitespace")(t):i(t)}function i(e){return null===e||zt(e)?t(e):n(e)}}};const sn={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return zt(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const un={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},dt(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||Rt(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||zt(n)?(e.exit("atxHeading"),t(n)):Nt(n)?Mt(e,i,"whitespace")(n):(e.enter("atxHeadingText"),l(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function l(t){return null===t||35===t||Rt(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),l)}}};const dn=["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"],pn=["pre","script","style","textarea"],fn={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let o,i,a,l,c;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),s}(t)};function s(l){return 33===l?(e.consume(l),u):47===l?(e.consume(l),i=!0,f):63===l?(e.consume(l),o=3,r.interrupt?t:O):vt(l)?(e.consume(l),a=String.fromCharCode(l),h):n(l)}function u(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,l=0,p):vt(i)?(e.consume(i),o=4,r.interrupt?t:O):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:O):n(o)}function p(o){const i="CDATA[";return o===i.charCodeAt(l++)?(e.consume(o),6===l?r.interrupt?t:R:p):n(o)}function f(t){return vt(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(l){if(null===l||47===l||62===l||Rt(l)){const c=47===l,s=a.toLowerCase();return c||i||!pn.includes(s)?dn.includes(a.toLowerCase())?(o=6,c?(e.consume(l),m):r.interrupt?t(l):R(l)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(l):i?g(l):x(l)):(o=1,r.interrupt?t(l):R(l))}return 45===l||yt(l)?(e.consume(l),a+=String.fromCharCode(l),h):n(l)}function m(o){return 62===o?(e.consume(o),r.interrupt?t:R):n(o)}function g(t){return Nt(t)?(e.consume(t),g):S(t)}function x(t){return 47===t?(e.consume(t),S):58===t||95===t||vt(t)?(e.consume(t),v):Nt(t)?(e.consume(t),x):S(t)}function v(t){return 45===t||46===t||58===t||95===t||yt(t)?(e.consume(t),v):y(t)}function y(t){return 61===t?(e.consume(t),b):Nt(t)?(e.consume(t),y):x(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),c=t,w):Nt(t)?(e.consume(t),b):k(t)}function w(t){return t===c?(e.consume(t),c=null,E):null===t||zt(t)?n(t):(e.consume(t),w)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||Rt(t)?y(t):(e.consume(t),k)}function E(e){return 47===e||62===e||Nt(e)?x(e):n(e)}function S(t){return 62===t?(e.consume(t),z):n(t)}function z(t){return null===t||zt(t)?R(t):Nt(t)?(e.consume(t),z):n(t)}function R(t){return 45===t&&2===o?(e.consume(t),P):60===t&&1===o?(e.consume(t),T):62===t&&4===o?(e.consume(t),D):63===t&&3===o?(e.consume(t),O):93===t&&5===o?(e.consume(t),A):!zt(t)||6!==o&&7!==o?null===t||zt(t)?(e.exit("htmlFlowData"),N(t)):(e.consume(t),R):(e.exit("htmlFlowData"),e.check(hn,L,N)(t))}function N(t){return e.check(mn,C,L)(t)}function C(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return null===t||zt(t)?N(t):(e.enter("htmlFlowData"),R(t))}function P(t){return 45===t?(e.consume(t),O):R(t)}function T(t){return 47===t?(e.consume(t),a="",M):R(t)}function M(t){if(62===t){const n=a.toLowerCase();return pn.includes(n)?(e.consume(t),D):R(t)}return vt(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),M):R(t)}function A(t){return 93===t?(e.consume(t),O):R(t)}function O(t){return 62===t?(e.consume(t),D):45===t&&2===o?(e.consume(t),O):R(t)}function D(t){return null===t||zt(t)?(e.exit("htmlFlowData"),L(t)):(e.consume(t),D)}function L(n){return e.exit("htmlFlow"),t(n)}}},hn={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Ht,t,n)}}},mn={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(zt(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const gn={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),c):47===t?(e.consume(t),b):63===t?(e.consume(t),v):vt(t)?(e.consume(t),E):n(t)}function c(t){return 45===t?(e.consume(t),s):91===t?(e.consume(t),i=0,f):vt(t)?(e.consume(t),x):n(t)}function s(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):zt(t)?(a=u,M(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?T(e):45===e?d(e):u(e)}function f(t){const r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),6===i?h:f):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):zt(t)?(a=h,M(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?T(t):93===t?(e.consume(t),g):h(t)}function x(t){return null===t||62===t?T(t):zt(t)?(a=x,M(t)):(e.consume(t),x)}function v(t){return null===t?n(t):63===t?(e.consume(t),y):zt(t)?(a=v,M(t)):(e.consume(t),v)}function y(e){return 62===e?T(e):v(e)}function b(t){return vt(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||yt(t)?(e.consume(t),w):k(t)}function k(t){return zt(t)?(a=k,M(t)):Nt(t)?(e.consume(t),k):T(t)}function E(t){return 45===t||yt(t)?(e.consume(t),E):47===t||62===t||Rt(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),T):58===t||95===t||vt(t)?(e.consume(t),z):zt(t)?(a=S,M(t)):Nt(t)?(e.consume(t),S):T(t)}function z(t){return 45===t||46===t||58===t||95===t||yt(t)?(e.consume(t),z):R(t)}function R(t){return 61===t?(e.consume(t),N):zt(t)?(a=R,M(t)):Nt(t)?(e.consume(t),R):S(t)}function N(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,C):zt(t)?(a=N,M(t)):Nt(t)?(e.consume(t),N):(e.consume(t),I)}function C(t){return t===o?(e.consume(t),o=void 0,P):null===t?n(t):zt(t)?(a=C,M(t)):(e.consume(t),C)}function I(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||Rt(t)?S(t):(e.consume(t),I)}function P(e){return 47===e||62===e||Rt(e)?S(e):n(e)}function T(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function M(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),A}function A(t){return Nt(t)?Mt(e,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):O(t)}function O(t){return e.enter("htmlTextData"),a(t)}}};const xn={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&dt(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,o,i,a=e.length,l=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){l=2;break}}else"labelEnd"===n.type&&(o=a);const c={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[r+l+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",c,t],["enter",s,t]],i=pt(i,e.slice(r+1,r+l+3)),i=pt(i,[["enter",u,t]]),i=pt(i,jt(t.parser.constructs.insideSpan.null,e.slice(r+l+4,o-3),t)),i=pt(i,[["exit",u,t],e[o-2],e[o-1],["exit",s,t]]),i=pt(i,e.slice(o+1)),i=pt(i,[["exit",c,t]]),dt(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let o,i,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){o=r.events[a][1];break}return function(t){if(!o)return n(t);if(o._inactive)return u(t);return i=r.parser.defined.includes(xt(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l};function l(t){return 40===t?e.attempt(vn,s,i?s:u)(t):91===t?e.attempt(yn,s,i?c:u)(t):i?s(t):u(t)}function c(t){return e.attempt(bn,s,u)(t)}function s(e){return t(e)}function u(e){return o._balanced=!0,n(e)}}},vn={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return Rt(t)?an(e,o)(t):o(t)}function o(t){return 41===t?s(t):nn(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return Rt(t)?an(e,l)(t):s(t)}function a(e){return n(e)}function l(t){return 34===t||39===t||40===t?on(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):s(t)}function c(t){return Rt(t)?an(e,s)(t):s(t)}function s(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},yn={tokenize:function(e,t,n){const r=this;return function(t){return rn.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(xt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},bn={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const wn={name:"labelStartImage",resolveAll:xn.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const kn={name:"labelStartLink",resolveAll:xn.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const En={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Mt(e,t,"linePrefix")}}};const Sn={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),a(i)):o>=3&&(null===i||zt(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),Nt(t)?Mt(e,i,"whitespace")(t):i(t))}}};const zn={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ht,o,i);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Mt(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!Nt(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Nn,t,a)(n))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Mt(e,e.attempt(zn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:kt(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(Sn,n,c)(t):c(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(t)}return n(t)};function l(t){return kt(t)&&++a<10?(e.consume(t),l):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),c(t)):n(t)}function c(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(Ht,r.interrupt?n:s,e.attempt(Rn,d,u))}function s(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){return Nt(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},Rn={partial:!0,tokenize:function(e,t,n){const r=this;return Mt(e,function(e){const o=r.events[r.events.length-1];return!Nt(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Nn={partial:!0,tokenize:function(e,t,n){const r=this;return Mt(e,function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}};const Cn={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=a;return e.push(["exit",a,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let a,l=r.events.length;for(;l--;)if("lineEnding"!==r.events[l][1].type&&"linePrefix"!==r.events[l][1].type&&"content"!==r.events[l][1].type){a="paragraph"===r.events[l][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),Nt(t)?Mt(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||zt(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const In={tokenize:function(e){const t=this,n=e.attempt(Ht,function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,Mt(e,e.attempt(this.parser.constructs.flow,r,e.attempt(en,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const Pn={resolveAll:On()},Tn=An("string"),Mn=An("text");function An(e){return{resolveAll:On("text"===e?Dn:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return c(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),l;t.consume(e)}function l(e){return c(e)?(t.exit("data"),o(e)):(t.consume(e),l)}function c(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function On(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function Dn(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,a=o.length,l=-1,c=0;for(;a--;){const e=o[a];if("string"==typeof e){for(l=e.length;32===e.charCodeAt(l-1);)c++,l--;if(l)break;l=-1}else if(-2===e)i=!0,c++;else if(-1!==e){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const o={type:n===e.length||i||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?l:r.start._bufferIndex+l,_index:r.start._index+a,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},end:{...r.end}};r.end={...o.start},r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}const Ln={42:zn,43:zn,45:zn,48:zn,49:zn,50:zn,51:zn,52:zn,53:zn,54:zn,55:zn,56:zn,57:zn,62:Ut},jn={91:ln},_n={[-2]:Xt,[-1]:Xt,32:Xt},Fn={35:un,42:Sn,45:[Cn,Sn],60:fn,61:Cn,95:Sn,96:Yt,126:Yt},Bn={38:qt,92:Vt},Hn={[-5]:En,[-4]:En,[-3]:En,33:wn,38:qt,42:_t,60:[Bt,gn],91:kn,92:[sn,Vt],93:xn,95:_t,96:$t},Un={null:[_t,Pn]};var Vn=Object.freeze({__proto__:null,document:Ln,contentInitial:jn,flowInitial:_n,flow:Fn,string:Bn,text:Hn,insideSpan:Un,attentionMarkers:{null:[42,95]},disable:{null:[]}});function qn(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let a=[],l=[];const c={attempt:g(function(e,t){x(e,t.from)}),check:g(m),consume:function(e){zt(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,v()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++));s.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),s.events.push(["enter",n,s]),l.push(n),n},exit:function(e){const t=l.pop();return t.end=p(),s.events.push(["exit",t,s]),t},interrupt:g(m,{interrupt:!0})},s={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,v()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let a;if("string"==typeof i)a=i;else switch(i){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&o)continue;a=" ";break;default:a=String.fromCharCode(i)}o=-2===i,r.push(a)}return r.join("")}(d(e),t)},sliceStream:d,write:function(e){if(a=pt(a,e),f(),null!==a[a.length-1])return[];return x(t,0),s.events=jt(i,s.events,s),s.events}};let u=t.tokenize.call(s,c);return t.resolveAll&&i.push(t),s;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;if(n===o)a=[e[n].slice(r,i)];else{if(a=e.slice(n,o),r>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function p(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:i}}function f(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)h(t.charCodeAt(r._bufferIndex));else h(t)}}function h(e){u=u(e)}function m(e,t){t.restore()}function g(e,t){return function(n,o,i){let a,u,d,f;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return h([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function h(e){return a=e,u=0,0===e.length?i:m(e[u])}function m(e){return function(n){f=function(){const e=p(),t=s.previous,n=s.currentConstruct,o=s.events.length,i=Array.from(l);return{from:o,restore:a};function a(){r=e,s.previous=t,s.currentConstruct=n,s.events.length=o,l=i,v()}}(),d=e,e.partial||(s.currentConstruct=e);if(e.name&&s.parser.constructs.disable.null.includes(e.name))return x();return e.tokenize.call(t?Object.assign(Object.create(s),t):s,c,g,x)(n)}}function g(t){return e(d,f),o}function x(e){return f.restore(),++u<a.length?m(a[u]):i}}}function x(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&dt(s.events,t,s.events.length-t,e.resolve(s.events.slice(t),s)),e.resolveTo&&(s.events=e.resolveTo(s.events,s))}function v(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function Wn(e){const t=function(e){const t={};let n=-1;for(;++n<e.length;)ht(t,e[n]);return t}([Vn,...(e||{}).extensions||[]]),n={constructs:t,content:r(At),defined:[],document:r(Ot),flow:r(In),lazy:{},string:r(Tn),text:r(Mn)};return n;function r(e){return function(t){return qn(n,e,t)}}}const Yn=/[\0\t\n\r]/g;const Xn=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Kn(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return gt(n.slice(t?2:1),t?16:10)}return ut(n)||e}const $n={}.hasOwnProperty;function Jn(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(te),autolinkProtocol:z,autolinkEmail:z,atxHeading:i(Q),blockQuote:i(Y),characterEscape:z,characterReference:z,codeFenced:i(X),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(X,a),codeText:i(K,a),codeTextData:z,data:z,codeFlowValue:z,definition:i($),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(J),hardBreakEscape:i(Z),hardBreakTrailing:i(Z),htmlFlow:i(G,a),htmlFlowData:z,htmlText:i(G,a),htmlTextData:z,image:i(ee),label:a,link:i(te),listItem:i(re),listItemValue:p,listOrdered:i(ne,d),listUnordered:i(ne),paragraph:i(oe),reference:F,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(Q),strong:i(ie),thematicBreak:i(le)},exit:{atxHeading:c(),atxHeadingSequence:w,autolink:c(),autolinkEmail:W,autolinkProtocol:q,blockQuote:c(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:H,characterReferenceMarkerNumeric:H,characterReferenceValue:U,characterReference:V,codeFenced:c(g),codeFencedFence:m,codeFencedFenceInfo:f,codeFencedFenceMeta:h,codeFlowValue:R,codeIndented:c(x),codeText:c(T),codeTextData:R,data:R,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(C),hardBreakTrailing:c(C),htmlFlow:c(I),htmlFlowData:R,htmlText:c(P),htmlTextData:R,image:c(A),label:D,labelText:O,lineEnding:N,link:c(M),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:B,resourceDestinationString:L,resourceTitleString:j,resource:_,setextHeading:c(S),setextHeadingLineSequence:E,setextHeadingText:k,strong:c(),thematicBreak:c()}};Zn(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:l,exit:s,buffer:a,resume:u,data:n},c=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])c.push(d);else{d=o(e,c.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];$n.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},i),e[d][1])}if(i.tokenStack.length>0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||er).call(i,void 0,e[0])}for(r.position={start:Qn(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Qn(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function o(e,t,n){let r,o,i,a,l=t-1,c=-1,s=!1;for(;++l<=n;){const t=e[l];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?c++:c--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||c||i||(i=l),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!c&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===c&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=l;for(o=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",s=!0),t[1].type="lineEnding",o=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||l,0,["exit",r,t[2]]),l++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(l,0,["enter",o,t[2]]),l++,n++,i=void 0,a=!0}}}return e[t][1]._spread=s,n}function i(e,t){return n;function n(n){l.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Qn(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+Te({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||er).call(this,e,r[0])}n.position.end=Qn(e.end)}function u(){return function(e,t){const n=t||at;return lt(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function f(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function h(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function v(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=xt(this.sliceSerialize(e)).toLowerCase()}function y(){const e=this.resume();this.stack[this.stack.length-1].title=e}function b(){const e=this.resume();this.stack[this.stack.length-1].url=e}function w(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function E(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function S(){this.data.setextHeadingSlurpLineEnding=void 0}function z(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ae(),n.position={start:Qn(e.start),end:void 0},t.push(n)),this.stack.push(n)}function R(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Qn(e.end)}function N(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=Qn(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(z.call(this,e),R.call(this,e))}function C(){this.data.atHardBreak=!0}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function P(){const e=this.resume();this.stack[this.stack.length-1].value=e}function T(){const e=this.resume();this.stack[this.stack.length-1].value=e}function M(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function A(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function O(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(Xn,Kn)}(t),n.identifier=xt(t).toLowerCase()}function D(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function L(){const e=this.resume();this.stack[this.stack.length-1].url=e}function j(){const e=this.resume();this.stack[this.stack.length-1].title=e}function _(){this.data.inReference=void 0}function F(){this.data.referenceType="collapsed"}function B(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=xt(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function H(e){this.data.characterReferenceType=e.type}function U(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=gt(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=ut(t)}this.stack[this.stack.length-1].value+=r}function V(e){this.stack.pop().position.end=Qn(e.end)}function q(e){R.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function W(e){R.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function Y(){return{type:"blockquote",children:[]}}function X(){return{type:"code",lang:null,meta:null,value:""}}function K(){return{type:"inlineCode",value:""}}function $(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function J(){return{type:"emphasis",children:[]}}function Q(){return{type:"heading",depth:0,children:[]}}function Z(){return{type:"break"}}function G(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function ie(){return{type:"strong",children:[]}}function ae(){return{type:"text",value:""}}function le(){return{type:"thematicBreak"}}}(n)(function(e){for(;!Zt(e););return e}(Wn(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,a){const l=[];let c,s,u,d,p;for(o=n+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),u=0,n="",r&&(65279===o.charCodeAt(0)&&u++,r=void 0);u<o.length;){if(Yn.lastIndex=u,c=Yn.exec(o),d=c&&void 0!==c.index?c.index:o.length,p=o.charCodeAt(d),!c){n=o.slice(u);break}if(10===p&&u===d&&e)l.push(-3),e=void 0;else switch(e&&(l.push(-5),e=void 0),u<d&&(l.push(o.slice(u,d)),t+=d-u),p){case 0:l.push(65533),t++;break;case 9:for(s=4*Math.ceil(t/4),l.push(-2);t++<s;)l.push(-1);break;case 10:l.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return a&&(e&&l.push(-5),n&&l.push(n),l.push(null)),l}}()(e,t,!0))))}function Qn(e){return{line:e.line,column:e.column,offset:e.offset}}function Zn(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Zn(e,r):Gn(e,r)}}function Gn(e,t){let n;for(n in t)if($n.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function er(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Te({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Te({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Te({start:t.start,end:t.end})+") is still open")}function tr(e){const t=this;t.parser=function(n){return Jn(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function nr(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&"text"===a.type?a.value+=r:o.push({type:"text",value:r}),o}function rr(e){const t=e.spread;return null==t?e.children.length>1:t}function or(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(ir(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(ir(t.slice(o),o>0,!1)),i.join("")}function ir(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const ar={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(r.className=["language-"+o[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=Tt(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let a,l=e.footnoteCounts.get(r);void 0===l?(l=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=i+1,l+=1,e.footnoteCounts.set(r,l);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,c);const s={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,s),e.applyData(t,s)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return nr(e,t);const o={src:Tt(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:Tt(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return nr(e,t);const o={href:Tt(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:Tt(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=rr(n[r])}return t}(n):rr(t),i={},a=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const e=r[l];(o||0!==l||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}const c=r[r.length-1];c&&(o||"element"!==c.type||"p"!==c.tagName)&&a.push({type:"text",value:"\n"});const s={type:"element",tagName:"li",properties:i,children:a};return e.patch(t,s),e.applyData(t,s)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=Ie(t.children[1]),a=Ce(t.children[t.children.length-1]);i&&a&&(r.position={start:i,end:a}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length;let l=-1;const c=[];for(;++l<a;){const n=t.children[l],r={},a=i?i[l]:void 0;a&&(r.align=a);let s={type:"element",tagName:o,properties:r,children:[]};n&&(s.children=e.all(n),e.patch(n,s),s=e.applyData(n,s)),c.push(s)}const s={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,s),e.applyData(t,s)},text:function(e,t){const n={type:"text",value:or(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:lr,yaml:lr,definition:lr,footnoteDefinition:lr};function lr(){}const cr="object"==typeof self?self:globalThis,sr=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,a]=t[o];switch(i){case 0:case-1:return n(a,o);case 1:{const e=n([],o);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),o);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new cr[e](t),o)}case 8:return n(BigInt(a),o);case"BigInt":return n(Object(BigInt(a)),o);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:e}=new Uint8Array(a);return n(new DataView(e),a)}}return n(new cr[i](a),o)};return r})(new Map,e)(0),ur="",{toString:dr}={},{keys:pr}=Object,fr=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=dr.call(e).slice(8,-1);switch(n){case"Array":return[1,ur];case"Object":return[2,ur];case"Date":return[3,ur];case"RegExp":return[4,ur];case"Map":return[5,ur];case"Set":return[6,ur];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},hr=([e,t])=>0===e&&("function"===t||"symbol"===t),mr=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[a,l]=fr(r);switch(a){case 0:{let t=r;switch(l){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);t=null;break;case"undefined":return o([-1],r)}return o([a,t],r)}case 1:{if(l){let e=r;return"DataView"===l?e=new Uint8Array(r.buffer):"ArrayBuffer"===l&&(e=new Uint8Array(r)),o([l,[...e]],r)}const e=[],t=o([a,e],r);for(const t of r)e.push(i(t));return t}case 2:{if(l)switch(l){case"BigInt":return o([l,r.toString()],r);case"Boolean":case"Number":case"String":return o([l,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],c=o([a,n],r);for(const t of pr(r))!e&&hr(fr(r[t]))||n.push([i(t),i(r[t])]);return c}case 3:return o([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([a,{source:e,flags:t}],r)}case 5:{const t=[],n=o([a,t],r);for(const[n,o]of r)(e||!hr(fr(n))&&!hr(fr(o)))&&t.push([i(n),i(o)]);return n}case 6:{const t=[],n=o([a,t],r);for(const n of r)!e&&hr(fr(n))||t.push(i(n));return n}}const{message:c}=r;return o([a,{name:l,message:c}],r)};return i})(!(t||n),!!t,new Map,r)(e),r};var gr="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?sr(mr(e,t)):structuredClone(e):(e,t)=>sr(mr(e,t));function xr(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function vr(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const yr=function(e){if(null==e)return wr;if("function"==typeof e)return br(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=yr(e[n]);return br(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return br(n);function n(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}(e);if("string"==typeof e)return function(e){return br(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function br(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function wr(){return!0}const kr=[],Er=!0,Sr=!1;function zr(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=yr(o),a=r?-1:1;!function e(o,l,c){const s=o&&"object"==typeof o?o:{};if("string"==typeof s.type){const e="string"==typeof s.tagName?s.tagName:"string"==typeof s.name?s.name:void 0;Object.defineProperty(u,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return u;function u(){let s,u,d,p=kr;if((!t||i(o,l,c[c.length-1]||void 0))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[Er,e];return null==e?kr:[e]}(n(o,c)),p[0]===Sr))return p;if("children"in o&&o.children){const t=o;if(t.children&&"skip"!==p[0])for(u=(r?t.children.length:-1)+a,d=c.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(s=e(n,u,d)(),s[0]===Sr)return s;u="number"==typeof s[1]?s[1]:u+a}}return p}}(e,void 0,[])()}function Rr(e,t,n,r){let o,i,a;"function"==typeof t&&"function"!=typeof n?(i=void 0,a=t,o=n):(i=t,a=n,o=r),zr(e,i,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)},o)}const Nr={}.hasOwnProperty,Cr={};function Ir(e,t){e.position&&(t.position=function(e){const t=Ie(e),n=Ce(e);if(t&&n)return{start:t,end:n}}(e))}function Pr(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&o&&Object.assign(n.properties,gr(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function Tr(e,t){const n=t.data||{},r=!("value"in t)||Nr.call(n,"hProperties")||Nr.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function Mr(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function Ar(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function Or(e,t){const n=function(e,t){const n=t||Cr,r=new Map,o=new Map,i=new Map,a={...ar,...n.handlers},l={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=l.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=Ar(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=Ar(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:Pr,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:a,one:function(e,t){const n=e.type,r=l.handlers[n];if(Nr.call(l.handlers,n)&&r)return r(l,e,t);if(l.options.passThrough&&l.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=gr(n);return r.children=l.all(e),r}return gr(e)}return(l.options.unknownHandler||Tr)(l,e,t)},options:n,patch:Ir,wrap:Mr};return Rr(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),l}(e,t),r=n.one(e,void 0),o=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||xr,r=e.options.footnoteBackLabel||vr,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let c=-1;for(;++c<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[c]);if(!o)continue;const i=e.all(o),a=String(o.identifier).toUpperCase(),s=Tt(a.toLowerCase());let u=0;const d=[],p=e.footnoteCounts.get(a);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(c,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+s+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(c,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const f=i[i.length-1];if(f&&"element"===f.type&&"p"===f.tagName){const e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...d)}else i.push(...d);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+s},children:e.wrap(i,!0)};e.patch(o,h),l.push(h)}if(0!==l.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...gr(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}function Dr(e,t){return e&&"run"in e?async function(n,r){const o=Or(n,{file:r,...t});await e.run(o,r)}:function(n,r){return Or(n,{file:r,...e||t})}}function Lr(e){if(e)throw e}var jr=Object.prototype.hasOwnProperty,_r=Object.prototype.toString,Fr=Object.defineProperty,Br=Object.getOwnPropertyDescriptor,Hr=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===_r.call(e)},Ur=function(e){if(!e||"[object Object]"!==_r.call(e))return!1;var t,n=jr.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&jr.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||jr.call(e,t)},Vr=function(e,t){Fr&&"__proto__"===t.name?Fr(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},qr=function(e,t){if("__proto__"===t){if(!jr.call(e,t))return;if(Br)return Br(e,t).value}return e[t]},Wr=function e(){var t,n,r,o,i,a,l=arguments[0],c=1,s=arguments.length,u=!1;for("boolean"==typeof l&&(u=l,l=arguments[1]||{},c=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});c<s;++c)if(null!=(t=arguments[c]))for(n in t)r=qr(l,n),l!==(o=qr(t,n))&&(u&&o&&(Ur(o)||(i=Hr(o)))?(i?(i=!1,a=r&&Hr(r)?r:[]):a=r&&Ur(r)?r:{},Vr(l,{name:n,newValue:e(u,a,o)})):void 0!==o&&Vr(l,{name:n,newValue:o}));return l},Yr=te(Wr);function Xr(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Kr(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...a){const l=e[++n];let c=-1;if(i)r(i);else{for(;++c<t.length;)null!==a[c]&&void 0!==a[c]||(a[c]=t[c]);t=a,l?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let a;r&&t.push(o);try{a=e.apply(this,t)}catch(e){if(r&&n)throw e;return o(e)}r||(a&&a.then&&"function"==typeof a.then?a.then(i,o):a instanceof Error?o(a):i(a))}function o(e,...r){n||(n=!0,t(e,...r))}function i(e){o(null,e)}}(l,o)(...a):r(null,...a)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const $r={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');Jr(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,l=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(o=i):(l=-1,o=a));r===o?o=a:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(Jr(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){Jr(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const l=e.codePointAt(n);if(47!==l)r<0&&(t=!0,r=n+1),46===l?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===a||1===a&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)Jr(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){Jr(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,a=-1,l=0,c=-1;for(;++c<=e.length;){if(c<e.length)n=e.codePointAt(c);else{if(47===n)break;n=47}if(47===n){if(a===c-1||1===l);else if(a!==c-1&&2===l){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=c,l=0;continue}}else if(o.length>0){o="",i=0,a=c,l=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,c):o=e.slice(a+1,c),i=c-a-1;a=c,l=0}else 46===n&&l>-1?l++:l=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function Jr(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Qr={cwd:function(){return"/"}};function Zr(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function Gr(e){if("string"==typeof e)e=new URL(e);else if(!Zr(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const eo=["history","path","basename","stem","extname","dirname"];class to{constructor(e){let t;t=e?Zr(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":Qr.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<eo.length;){const e=eo[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)eo.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?$r.basename(this.path):void 0}set basename(e){ro(e,"basename"),no(e,"basename"),this.path=$r.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?$r.dirname(this.path):void 0}set dirname(e){oo(this.basename,"dirname"),this.path=$r.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?$r.extname(this.path):void 0}set extname(e){if(no(e,"extname"),oo(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=$r.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Zr(e)&&(e=Gr(e)),ro(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?$r.basename(this.path,this.extname):void 0}set stem(e){ro(e,"stem"),no(e,"stem"),this.path=$r.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new De(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function no(e,t){if(e&&e.includes($r.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+$r.sep+"`")}function ro(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function oo(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const io=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},ao={}.hasOwnProperty;class lo extends io{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Kr()}copy(){const e=new lo;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(Yr(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(po("data",this.frozen),this.namespace[e]=t,this):ao.call(this.namespace,e)&&this.namespace[e]||void 0:e?(po("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=mo(e),n=this.parser||this.Parser;return so("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),so("process",this.parser||this.Parser),uo("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=mo(e),a=n.parse(i);function l(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(a,i,function(e,t,r){if(e||!t||!r)return l(e);const o=t,i=n.stringify(o,r);var a;"string"==typeof(a=i)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(a)?r.value=i:r.result=i,l(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),so("processSync",this.parser||this.Parser),uo("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,Lr(e),t=r}),ho("processSync","process",n),t}run(e,t,n){fo(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const a=mo(t);r.run(e,a,function(t,r,a){const l=r||e;t?i(t):o?o(l):n(void 0,l,a)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){Lr(e),n=t,r=!0}),ho("runSync","run",r),n}stringify(e,t){this.freeze();const n=mo(t),r=this.compiler||this.Compiler;return uo("stringify",r),fo(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(po("use",this.frozen),null==e);else if("function"==typeof e)l(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?a(e):i(e)}return this;function o(e){if("function"==typeof e)l(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;l(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(r.settings=Yr(!0,r.settings,e.settings))}function a(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){o(e[t])}}}function l(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const a=n[o][1];Xr(a)&&Xr(r)&&(r=Yr(!0,a,r)),n[o]=[e,r,...i]}}}}const co=(new lo).freeze();function so(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function uo(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function po(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function fo(e){if(!Xr(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function ho(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function mo(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new to(e)}const go=[],xo={allowDangerousHtml:!0},vo=/^(https?|ircs?|mailto|xmpp)$/i,yo=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function bo(e){const t=function(e){const t=e.rehypePlugins||go,n=e.remarkPlugins||go,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...xo}:xo,o=co().use(tr).use(n).use(Dr,r).use(t);return o}(e),n=function(e){const t=e.children||"",n=new to;"string"==typeof t&&(n.value=t);return n}(e);return function(e,t){const n=t.allowedElements,r=t.allowElement,o=t.components,i=t.disallowedElements,a=t.skipHtml,l=t.unwrapDisallowed,c=t.urlTransform||wo;for(const e of yo)Object.hasOwn(t,e.from)&&f((e.from,e.to&&e.to,e.id));return Rr(e,s),Ue(e,{Fragment:it.Fragment,components:o,ignoreInvalidStyle:!0,jsx:it.jsx,jsxs:it.jsxs,passKeys:!0,passNode:!0});function s(e,t,o){if("raw"===e.type&&o&&"number"==typeof t)return a?o.children.splice(t,1):o.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in Ze)if(Object.hasOwn(Ze,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Ze[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=c(String(n||""),t,e))}}if("element"===e.type){let a=n?!n.includes(e.tagName):!!i&&i.includes(e.tagName);if(!a&&r&&"number"==typeof t&&(a=!r(e,t,o)),a&&o&&"number"==typeof t)return l&&e.children?o.children.splice(t,1,...e.children):o.children.splice(t,1),t}}}(t.runSync(t.parse(n),n),e)}function wo(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return-1===t||-1!==o&&t>o||-1!==n&&t>n||-1!==r&&t>r||vo.test(e.slice(0,t))?e:""}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:host,:root{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-600:oklch(66.6% .179 58.318);--color-green-50:oklch(98.2% .018 155.826);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-blue-50:oklch(97% .014 254.604);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-indigo-50:oklch(96.2% .018 272.314);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-indigo-700:oklch(45.7% .24 277.023);--color-violet-200:oklch(89.4% .057 293.283);--color-violet-600:oklch(54.1% .281 293.009);--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-900:oklch(20.8% .042 265.755);--color-zinc-50:oklch(98.5% 0 0);--color-zinc-100:oklch(96.7% .001 286.375);--color-zinc-200:oklch(92% .004 286.32);--color-zinc-300:oklch(87.1% .006 286.286);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-500:oklch(55.2% .016 285.938);--color-zinc-600:oklch(44.2% .017 285.786);--color-zinc-700:oklch(37% .013 285.805);--color-zinc-900:oklch(21% .006 285.885);--color-white:#fff;--spacing:.25rem;--container-2xl:42rem;--text-xs:.75rem;--text-xs--line-height:1.33333;--text-sm:.875rem;--text-sm--line-height:1.42857;--text-base:1rem;--text-base--line-height:1.5;--text-lg:1.125rem;--text-lg--line-height:1.55556;--text-xl:1.25rem;--text-xl--line-height:1.4;--text-3xl:1.875rem;--text-3xl--line-height:1.2;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tighter:-.05em;--tracking-tight:-.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-tight:1.25;--leading-relaxed:1.625;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--blur-sm:8px;--blur-md:12px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,::backdrop,:after,:before{border:0 solid;box-sizing:border-box;margin:0;padding:0}::file-selector-button{border:0 solid;box-sizing:border-box;margin:0;padding:0}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:var(--default-font-feature-settings,normal);-webkit-tap-highlight-color:transparent;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-variation-settings:var(--default-font-variation-settings,normal);line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:var(--default-mono-font-feature-settings,normal);font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:1em;font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}button,input,optgroup,select,textarea{font-feature-settings:inherit;background-color:#0000;border-radius:0;color:inherit;font:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}::file-selector-button{font-feature-settings:inherit;background-color:#0000;border-radius:0;color:inherit;font:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{border-width:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;white-space:nowrap;width:1px}.absolute,.sr-only{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.\\!top-auto{top:auto!important}.top-0{top:calc(var(--spacing)*0)}.top-8{top:calc(var(--spacing)*8)}.top-full{top:100%}.right-8{right:calc(var(--spacing)*8)}.\\!bottom-auto{bottom:auto!important}.bottom-6{bottom:calc(var(--spacing)*6)}.bottom-8{bottom:calc(var(--spacing)*8)}.\\!left-auto{left:auto!important}.left-0{left:calc(var(--spacing)*0)}.left-1{left:calc(var(--spacing)*1)}.left-1\\/2{left:50%}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.my-2{margin-block:calc(var(--spacing)*2)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-1\\.5{margin-top:calc(var(--spacing)*1.5)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-10{margin-top:calc(var(--spacing)*10)}.mt-\\[6px\\]{margin-top:6px}.mt-\\[8px\\]{margin-top:8px}.mt-\\[18px\\]{margin-top:18px}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.ml-2{margin-left:calc(var(--spacing)*2)}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.table{display:table}.table-row{display:table-row}.\\!h-fit{height:-moz-fit-content!important;height:fit-content!important}.h-1{height:calc(var(--spacing)*1)}.h-1\\.5{height:calc(var(--spacing)*1.5)}.h-2{height:calc(var(--spacing)*2)}.h-2\\.5{height:calc(var(--spacing)*2.5)}.h-3{height:calc(var(--spacing)*3)}.h-3\\.5{height:calc(var(--spacing)*3.5)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-16{height:calc(var(--spacing)*16)}.h-\\[8px\\]{height:8px}.h-\\[12px\\]{height:12px}.h-\\[18px\\]{height:18px}.h-\\[36px\\]{height:36px}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-32{max-height:calc(var(--spacing)*32)}.max-h-\\[240px\\]{max-height:240px}.min-h-\\[44px\\]{min-height:44px}.min-h-\\[500px\\]{min-height:500px}.\\!w-fit{width:-moz-fit-content!important;width:fit-content!important}.w-1{width:calc(var(--spacing)*1)}.w-1\\.5{width:calc(var(--spacing)*1.5)}.w-2{width:calc(var(--spacing)*2)}.w-2\\.5{width:calc(var(--spacing)*2.5)}.w-3{width:calc(var(--spacing)*3)}.w-3\\.5{width:calc(var(--spacing)*3.5)}.w-5{width:calc(var(--spacing)*5)}.w-8{width:calc(var(--spacing)*8)}.w-16{width:calc(var(--spacing)*16)}.w-64{width:calc(var(--spacing)*64)}.w-96{width:calc(var(--spacing)*96)}.w-\\[8px\\]{width:8px}.w-\\[12px\\]{width:12px}.w-\\[18px\\]{width:18px}.w-\\[36px\\]{width:36px}.w-\\[92\\%\\]{width:92%}.w-full{width:100%}.w-px{width:1px}.max-w-2xl{max-width:var(--container-2xl)}.max-w-\\[150px\\]{max-width:150px}.max-w-\\[420px\\]{max-width:420px}.max-w-none{max-width:none}.flex-1{flex:1}.flex-shrink,.shrink{flex-shrink:1}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.-translate-x-1{--tw-translate-x:calc(var(--spacing)*-1)}.-translate-x-1,.-translate-x-1\\/2{translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-1\\/2{--tw-translate-x:-50%}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%}.scale-100,.scale-110{scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-110{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-crosshair{cursor:crosshair}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-none{resize:none}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.flex-col{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-\\[4px\\]{gap:4px}.gap-\\[8px\\]{gap:8px}.gap-\\[12px\\]{gap:12px}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-end:calc(var(--spacing)*1*(1 - var(--tw-space-y-reverse)));margin-block-start:calc(var(--spacing)*1*var(--tw-space-y-reverse))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-end:calc(var(--spacing)*2*(1 - var(--tw-space-y-reverse)));margin-block-start:calc(var(--spacing)*2*var(--tw-space-y-reverse))}.self-center{align-self:center}.truncate{text-overflow:ellipsis;white-space:nowrap}.overflow-hidden,.truncate{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\\[6px\\]{border-radius:6px}.rounded-\\[8px\\]{border-radius:8px}.rounded-\\[12px\\]{border-radius:12px}.rounded-full{border-radius:3.40282e+38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t-\\[12px\\]{border-top-left-radius:12px;border-top-right-radius:12px}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-blue-500{border-color:var(--color-blue-500)}.border-green-500{border-color:var(--color-green-500)}.border-slate-200{border-color:var(--color-slate-200)}.border-slate-300{border-color:var(--color-slate-300)}.border-slate-400{border-color:var(--color-slate-400)}.border-zinc-100{border-color:var(--color-zinc-100)}.border-zinc-200{border-color:var(--color-zinc-200)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-green-50{background-color:var(--color-green-50)}.bg-green-500{background-color:var(--color-green-500)}.bg-indigo-50{background-color:var(--color-indigo-50)}.bg-indigo-600{background-color:var(--color-indigo-600)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-600{background-color:var(--color-red-600)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-200{background-color:var(--color-slate-200)}.bg-slate-800{background-color:var(--color-slate-800)}.bg-slate-900{background-color:var(--color-slate-900)}.bg-slate-900\\/40{background-color:#0f172b66}@supports (color:color-mix(in lab,red,red)){.bg-slate-900\\/40{background-color:color-mix(in oklab,var(--color-slate-900)40%,transparent)}}.bg-transparent{background-color:#0000}.bg-violet-600{background-color:var(--color-violet-600)}.bg-white{background-color:var(--color-white)}.bg-white\\/20{background-color:#fff3}@supports (color:color-mix(in lab,red,red)){.bg-white\\/20{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.bg-white\\/80{background-color:#fffc}@supports (color:color-mix(in lab,red,red)){.bg-white\\/80{background-color:color-mix(in oklab,var(--color-white)80%,transparent)}}.bg-white\\/90{background-color:#ffffffe6}@supports (color:color-mix(in lab,red,red)){.bg-white\\/90{background-color:color-mix(in oklab,var(--color-white)90%,transparent)}}.bg-zinc-50{background-color:var(--color-zinc-50)}.bg-zinc-100{background-color:var(--color-zinc-100)}.bg-zinc-200{background-color:var(--color-zinc-200)}.bg-zinc-900{background-color:var(--color-zinc-900)}.bg-grid-slate-200{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'40\' height=\'40\'%3E%3Cpath d=\'M0 0h40v40H0z\' fill=\'none\'/%3E%3Cpath d=\'M40 0H0v40\' fill=\'none\' stroke=\'%23E2E8F0\'/%3E%3C/svg%3E")}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.p-12{padding:calc(var(--spacing)*12)}.p-\\[4px\\]{padding:4px}.p-\\[6px\\]{padding:6px}.p-\\[8px\\]{padding:8px}.p-\\[20px\\]{padding:20px}.px-1{padding-inline:calc(var(--spacing)*1)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\\.5{padding-inline:calc(var(--spacing)*2.5)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-\\[12px\\]{padding-inline:12px}.px-\\[14px\\]{padding-inline:14px}.px-\\[16px\\]{padding-inline:16px}.py-0{padding-block:calc(var(--spacing)*0)}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-\\[8px\\]{padding-block:8px}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[8px\\]{font-size:8px}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[12px\\]{font-size:12px}.text-\\[13px\\]{font-size:13px}.text-\\[14px\\]{font-size:14px}.text-\\[16px\\]{font-size:16px}.text-\\[18px\\]{font-size:18px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\\[0\\.2em\\]{--tw-tracking:.2em;letter-spacing:.2em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-tighter{--tw-tracking:var(--tracking-tighter);letter-spacing:var(--tracking-tighter)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.whitespace-nowrap{white-space:nowrap}.text-amber-600{color:var(--color-amber-600)}.text-blue-500{color:var(--color-blue-500)}.text-green-600{color:var(--color-green-600)}.text-indigo-600{color:var(--color-indigo-600)}.text-red-600{color:var(--color-red-600)}.text-slate-100{color:var(--color-slate-100)}.text-slate-300{color:var(--color-slate-300)}.text-slate-400{color:var(--color-slate-400)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-slate-800{color:var(--color-slate-800)}.text-slate-900{color:var(--color-slate-900)}.text-white{color:var(--color-white)}.text-zinc-300{color:var(--color-zinc-300)}.text-zinc-400{color:var(--color-zinc-400)}.text-zinc-500{color:var(--color-zinc-500)}.text-zinc-600{color:var(--color-zinc-600)}.text-zinc-700{color:var(--color-zinc-700)}.text-zinc-900{color:var(--color-zinc-900)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.italic{font-style:italic}.underline{text-decoration-line:underline}.opacity-40{opacity:.4}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040)}.shadow-2xl,.shadow-lg{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a)}.shadow-sm,.shadow-xl{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-green-500{--tw-shadow-color:oklch(72.3% .219 149.579)}@supports (color:color-mix(in lab,red,red)){.shadow-green-500{--tw-shadow-color:color-mix(in oklab,var(--color-green-500)var(--tw-shadow-alpha),transparent)}}.shadow-green-500\\/30{--tw-shadow-color:#00c7584d}@supports (color:color-mix(in lab,red,red)){.shadow-green-500\\/30{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-green-500)30%,transparent)var(--tw-shadow-alpha),transparent)}}.shadow-violet-200{--tw-shadow-color:oklch(89.4% .057 293.283)}@supports (color:color-mix(in lab,red,red)){.shadow-violet-200{--tw-shadow-color:color-mix(in oklab,var(--color-violet-200)var(--tw-shadow-alpha),transparent)}}.shadow-zinc-200{--tw-shadow-color:oklch(92% .004 286.32)}@supports (color:color-mix(in lab,red,red)){.shadow-zinc-200{--tw-shadow-color:color-mix(in oklab,var(--color-zinc-200)var(--tw-shadow-alpha),transparent)}}.shadow-zinc-200\\/50{--tw-shadow-color:#e4e4e780}@supports (color:color-mix(in lab,red,red)){.shadow-zinc-200\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-zinc-200)50%,transparent)var(--tw-shadow-alpha),transparent)}}.ring-green-500{--tw-ring-color:var(--color-green-500)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md))}.backdrop-blur-md,.backdrop-blur-sm{backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm))}.backdrop-filter{backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.transition-all{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.transition-colors{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.transition-shadow{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.transition-transform{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.duration-700{--tw-duration:.7s;transition-duration:.7s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}@media (hover:hover){.group-hover\\:scale-110:is(:where(.group):hover *){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.group-hover\\:rotate-90:is(:where(.group):hover *){rotate:90deg}.group-hover\\:bg-zinc-200:is(:where(.group):hover *){background-color:var(--color-zinc-200)}.group-hover\\:stroke-red-500:is(:where(.group):hover *){stroke:var(--color-red-500)}.group-hover\\:text-slate-600:is(:where(.group):hover *){color:var(--color-slate-600)}.group-hover\\:text-zinc-500:is(:where(.group):hover *){color:var(--color-zinc-500)}.group-hover\\:text-zinc-900:is(:where(.group):hover *){color:var(--color-zinc-900)}}.placeholder\\:text-slate-400::-moz-placeholder{color:var(--color-slate-400)}.placeholder\\:text-slate-400::placeholder{color:var(--color-slate-400)}.first\\:mt-0:first-child{margin-top:calc(var(--spacing)*0)}.last\\:mb-0:last-child{margin-bottom:calc(var(--spacing)*0)}@media (hover:hover){.hover\\:border-blue-600:hover{border-color:var(--color-blue-600)}.hover\\:border-indigo-500:hover{border-color:var(--color-indigo-500)}.hover\\:border-zinc-200:hover{border-color:var(--color-zinc-200)}.hover\\:bg-amber-50:hover{background-color:var(--color-amber-50)}.hover\\:bg-blue-50:hover{background-color:var(--color-blue-50)}.hover\\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\\:bg-green-600:hover{background-color:var(--color-green-600)}.hover\\:bg-indigo-50:hover{background-color:var(--color-indigo-50)}.hover\\:bg-indigo-700:hover{background-color:var(--color-indigo-700)}.hover\\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\\:bg-red-700:hover{background-color:var(--color-red-700)}.hover\\:bg-slate-50:hover{background-color:var(--color-slate-50)}.hover\\:bg-slate-100:hover{background-color:var(--color-slate-100)}.hover\\:bg-slate-700:hover{background-color:var(--color-slate-700)}.hover\\:bg-zinc-100:hover{background-color:var(--color-zinc-100)}.hover\\:text-amber-600:hover{color:var(--color-amber-600)}.hover\\:text-blue-600:hover{color:var(--color-blue-600)}.hover\\:text-red-500:hover{color:var(--color-red-500)}.hover\\:text-red-600:hover{color:var(--color-red-600)}.hover\\:text-slate-900:hover{color:var(--color-slate-900)}.hover\\:text-zinc-900:hover{color:var(--color-zinc-900)}.hover\\:shadow-\\[0_8px_24px_rgba\\(0\\,0\\,0\\,0\\.08\\)\\]:hover{--tw-shadow:0 8px 24px var(--tw-shadow-color,#00000014);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus\\:ring-0:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}@media (min-width:40rem){.sm\\:block{display:block}}@media (min-width:48rem){.md\\:block{display:block}.md\\:text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(1turn)}}');
|
|
12
|
+
*/var ot;tt.exports=function(){if(ot)return nt;ot=1;var e=rt,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(e,n,i){var l,c={},s=null,u=null;for(l in void 0!==i&&(s=""+i),void 0!==n.key&&(s=""+n.key),void 0!==n.ref&&(u=n.ref),n)r.call(n,l)&&!a.hasOwnProperty(l)&&(c[l]=n[l]);if(e&&e.defaultProps)for(l in n=e.defaultProps)void 0===c[l]&&(c[l]=n[l]);return{$$typeof:t,type:e,key:s,ref:u,props:c,_owner:o.current}}return nt.Fragment=n,nt.jsx=i,nt.jsxs=i,nt}();var at=tt.exports;const it={};function lt(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ct(e.children,t,n)}return Array.isArray(e)?ct(e,t,n):""}function ct(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=lt(e[o],t,n);return r.join("")}const st=document.createElement("i");function ut(e){const t="&"+e+";";st.innerHTML=t;const n=st.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}function dt(e,t,n,r){const o=e.length;let a,i=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);i<r.length;)a=r.slice(i,i+1e4),a.unshift(t,0),e.splice(...a),i+=1e4,t+=1e4}function pt(e,t){return e.length>0?(dt(e,e.length,0,t),e):t}const ft={}.hasOwnProperty;function ht(e,t){let n;for(n in t){const r=(ft.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){ft.call(r,a)||(r[a]=[]);const e=o[a];mt(r[a],Array.isArray(e)?e:e?[e]:[])}}}function mt(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);dt(e,0,0,r)}function gt(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function xt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const vt=Tt(/[A-Za-z]/),yt=Tt(/[\dA-Za-z]/),bt=Tt(/[#-'*+\--9=?A-Z^-~]/);function wt(e){return null!==e&&(e<32||127===e)}const kt=Tt(/\d/),Et=Tt(/[\dA-Fa-f]/),Rt=Tt(/[!-/:-@[-`{-~]/);function St(e){return null!==e&&e<-2}function zt(e){return null!==e&&(e<0||32===e)}function Nt(e){return-2===e||-1===e||32===e}const Ct=Tt(/\p{P}|\p{S}/u),It=Tt(/\s/);function Tt(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Pt(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const a=e.charCodeAt(n);let i="";if(37===a&&yt(e.charCodeAt(n+1))&&yt(e.charCodeAt(n+2)))o=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(i=String.fromCharCode(a));else if(a>55295&&a<57344){const t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(i=String.fromCharCode(a,t),o=1):i="�"}else i=String.fromCharCode(a);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+o+1,i=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function At(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let a=0;return function(r){if(Nt(r))return e.enter(n),i(r);return t(r)};function i(r){return Nt(r)&&a++<o?(e.consume(r),i):(e.exit(n),t(r))}}const Mt={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),At(e,t,"linePrefix")},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):St(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const Ot={tokenize:function(e){const t=this,n=[];let r,o,a,i=0;return l;function l(r){if(i<n.length){const o=n[i];return t.containerState=o[1],e.attempt(o[0].continuation,c,s)(r)}return s(r)}function c(e){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&v();const n=t.events.length;let o,a=n;for(;a--;)if("exit"===t.events[a][0]&&"chunkFlow"===t.events[a][1].type){o=t.events[a][1].end;break}x(i);let l=n;for(;l<t.events.length;)t.events[l][1].end={...o},l++;return dt(t.events,a+1,0,t.events.slice(n)),t.events.length=l,s(e)}return l(e)}function s(o){if(i===n.length){if(!r)return p(o);if(r.currentConstruct&&r.currentConstruct.concrete)return h(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(jt,u,d)(o)}function u(e){return r&&v(),x(i),p(e)}function d(e){return t.parser.lazy[t.now().line]=i!==n.length,a=t.now().offset,h(e)}function p(n){return t.containerState={},e.attempt(jt,f,h)(n)}function f(e){return i++,n.push([t.currentConstruct,t.containerState]),p(e)}function h(n){return null===n?(r&&v(),x(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),x(0),void e.consume(n)):St(n)?(e.consume(n),g(e.exit("chunkFlow")),i=0,t.interrupt=void 0,l):(e.consume(n),m)}function g(e,n){const l=t.sliceStream(e);if(n&&l.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(l),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<a&&(!r.events[e][1].end||r.events[e][1].end.offset>a))return;const n=t.events.length;let o,l,c=n;for(;c--;)if("exit"===t.events[c][0]&&"chunkFlow"===t.events[c][1].type){if(o){l=t.events[c][1].end;break}o=!0}for(x(i),e=n;e<t.events.length;)t.events[e][1].end={...l},e++;dt(t.events,c+1,0,t.events.slice(n)),t.events.length=e}}function x(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},jt={tokenize:function(e,t,n){return At(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function Dt(e){return null===e||zt(e)||It(e)?1:Ct(e)?2:void 0}function Lt(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const a=e[o].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const _t={name:"attention",resolveAll:function(e,t){let n,r,o,a,i,l,c,s,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},p={...e[u][1].start};Ft(d,-l),Ft(p,l),a={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},i={type:l>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},o={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:l>1?"strong":"emphasis",start:{...a.start},end:{...i.end}},e[n][1].end={...a.start},e[u][1].start={...i.end},c=[],e[n][1].end.offset-e[n][1].start.offset&&(c=pt(c,[["enter",e[n][1],t],["exit",e[n][1],t]])),c=pt(c,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",o,t]]),c=pt(c,Lt(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),c=pt(c,[["exit",o,t],["enter",i,t],["exit",i,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(s=2,c=pt(c,[["enter",e[u][1],t],["exit",e[u][1],t]])):s=0,dt(e,n-1,u-n+3,c),u=n+c.length-s-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Dt(r);let a;return function(t){return a=t,e.enter("attentionSequence"),i(t)};function i(l){if(l===a)return e.consume(l),i;const c=e.exit("attentionSequence"),s=Dt(l),u=!s||2===s&&o||n.includes(l),d=!o||2===o&&s||n.includes(r);return c._open=Boolean(42===a?u:u&&(o||!d)),c._close=Boolean(42===a?d:d&&(s||!u)),t(l)}}};function Ft(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Bt={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return vt(t)?(e.consume(t),a):64===t?n(t):c(t)}function a(e){return 43===e||45===e||46===e||yt(e)?(r=1,i(e)):c(e)}function i(t){return 58===t?(e.consume(t),r=0,l):(43===t||45===t||46===t||yt(t))&&r++<32?(e.consume(t),i):(r=0,c(t))}function l(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||wt(r)?n(r):(e.consume(r),l)}function c(t){return 64===t?(e.consume(t),s):bt(t)?(e.consume(t),c):n(t)}function s(e){return yt(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,s):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||yt(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const Ht={partial:!0,tokenize:function(e,t,n){return function(t){return Nt(t)?At(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||St(e)?t(e):n(e)}}};const Ut={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(Nt(t))return At(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(Ut,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return Nt(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const Vt={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return Rt(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const qt={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,a,i=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),o=31,a=yt,s(t))}function c(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=Et,s):(e.enter("characterReferenceValue"),o=7,a=kt,s(t))}function s(l){if(59===l&&i){const o=e.exit("characterReferenceValue");return a!==yt||ut(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return a(l)&&i++<o?(e.consume(l),s):n(l)}}};const Wt={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},Yt={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return i;function i(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),c}function c(t){return e.enter("codeFencedFence"),Nt(t)?At(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===a?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===a?(o++,e.consume(t),u):o>=l?(e.exit("codeFencedFenceSequence"),Nt(t)?At(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||St(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let a,i=0,l=0;return function(t){return function(t){const n=r.events[r.events.length-1];return i=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,a=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(t)}(t)};function c(t){return t===a?(l++,e.consume(t),c):l<3?n(t):(e.exit("codeFencedFenceSequence"),Nt(t)?At(e,s,"whitespace")(t):s(t))}function s(n){return null===n||St(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Wt,f,v)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||St(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(t)):Nt(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),At(e,d,"whitespace")(t)):96===t&&t===a?n(t):(e.consume(t),u)}function d(t){return null===t||St(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||St(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(t)):96===t&&t===a?n(t):(e.consume(t),p)}function f(t){return e.attempt(o,v,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return i>0&&Nt(t)?At(e,g,"linePrefix",i+1)(t):g(t)}function g(t){return null===t||St(t)?e.check(Wt,f,v)(t):(e.enter("codeFlowValue"),x(t))}function x(t){return null===t||St(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),x)}function v(n){return e.exit("codeFenced"),t(n)}}};const Xt={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),At(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?a(e):n(e)}function a(t){return null===t?l(t):St(t)?e.attempt(Kt,a,l)(t):(e.enter("codeFlowValue"),i(t))}function i(t){return null===t||St(t)?(e.exit("codeFlowValue"),a(t)):(e.consume(t),i)}function l(n){return e.exit("codeIndented"),t(n)}}},Kt={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):St(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):At(e,a,"linePrefix",5)(t)}function a(e){const a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):St(e)?o(e):n(e)}}};const $t={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}t=o-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),i(t)};function i(t){return 96===t?(e.consume(t),a++,i):(e.exit("codeTextSequence"),l(t))}function l(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),l):96===t?(o=e.enter("codeTextSequence"),r=0,s(t)):St(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(t))}function c(t){return null===t||32===t||96===t||St(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),c)}function s(n){return 96===n?(e.consume(n),r++,s):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",c(n))}}};class Jt{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&Qt(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Qt(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Qt(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);Qt(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Qt(this.left,t.reverse())}}}function Qt(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Zt(e){const t={};let n,r,o,a,i,l,c,s=-1;const u=new Jt(e);for(;++s<u.length;){for(;s in t;)s=t[s];if(n=u.get(s),s&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(s-1)[1].type&&(l=n[1]._tokenizer.events,o=0,o<l.length&&"lineEndingBlank"===l[o][1].type&&(o+=2),o<l.length&&"content"===l[o][1].type))for(;++o<l.length&&"content"!==l[o][1].type;)"chunkText"===l[o][1].type&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Gt(u,s)),s=t[s],c=!0);else if(n[1]._container){for(o=s,r=void 0;o--;)if(a=u.get(o),"lineEnding"===a[1].type||"lineEndingBlank"===a[1].type)"enter"===a[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),a[1].type="lineEnding",r=o);else if("linePrefix"!==a[1].type&&"listItemIndent"!==a[1].type)break;r&&(n[1].end={...u.get(r)[1].start},i=u.slice(r,s),i.unshift(n),u.splice(r,s-r+1,i))}}return dt(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}function Gt(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const a=[];let i=n._tokenizer;i||(i=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const l=i.events,c=[],s={};let u,d,p=-1,f=n,h=0,m=0;const g=[m];for(;f;){for(;e.get(++o)[1]!==f;);a.push(o),f._tokenizer||(u=r.sliceStream(f),f.next||u.push(null),d&&i.defineSkip(f.start),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(u),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++p<l.length;)"exit"===l[p][0]&&"enter"===l[p-1][0]&&l[p][1].type===l[p-1][1].type&&l[p][1].start.line!==l[p][1].end.line&&(m=p+1,g.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(i.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),p=g.length;p--;){const t=l.slice(g[p],g[p+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),p=-1;++p<c.length;)s[h+c[p][0]]=h+c[p][1],h+=c[p][1]-c[p][0]-1;return s}const en={resolve:function(e){return Zt(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):St(t)?e.check(tn,a,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},tn={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),At(e,o,"linePrefix")};function o(o){if(null===o||St(o))return n(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}};function nn(e,t,n,r,o,a,i,l,c){const s=c||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(a),e.consume(t),e.exit(a),d;if(null===t||32===t||41===t||wt(t))return n(t);return e.enter(r),e.enter(i),e.enter(l),e.enter("chunkString",{contentType:"string"}),h(t)};function d(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(o),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(l),d(t)):null===t||60===t||St(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(o){return u||null!==o&&41!==o&&!zt(o)?u<s&&40===o?(e.consume(o),u++,h):41===o?(e.consume(o),u--,h):null===o||32===o||40===o||wt(o)?n(o):(e.consume(o),92===o?m:h):(e.exit("chunkString"),e.exit(l),e.exit(i),e.exit(r),t(o))}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function rn(e,t,n,r,o,a){const i=this;let l,c=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(a),s};function s(d){return c>999||null===d||91===d||93===d&&!l||94===d&&!c&&"_hiddenFootnoteSupport"in i.parser.constructs?n(d):93===d?(e.exit(a),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):St(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||St(t)||c++>999?(e.exit("chunkString"),s(t)):(e.consume(t),l||(l=!Nt(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),c++,u):u(t)}}function on(e,t,n,r,o,a){let i;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),i=40===t?41:t,l;return n(t)};function l(n){return n===i?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(a),c(n))}function c(t){return t===i?(e.exit(a),l(i)):null===t?n(t):St(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),At(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(t))}function s(t){return t===i||null===t||St(t)?(e.exit("chunkString"),c(t)):(e.consume(t),92===t?u:s)}function u(t){return t===i||92===t?(e.consume(t),s):s(t)}}function an(e,t){let n;return function r(o){if(St(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(Nt(o))return At(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}const ln={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return rn.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function a(t){return o=xt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i):n(t)}function i(t){return zt(t)?an(e,l)(t):l(t)}function l(t){return nn(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function c(t){return e.attempt(cn,s,s)(t)}function s(t){return Nt(t)?At(e,u,"whitespace")(t):u(t)}function u(a){return null===a||St(a)?(e.exit("definition"),r.parser.defined.push(o),t(a)):n(a)}}},cn={partial:!0,tokenize:function(e,t,n){return function(t){return zt(t)?an(e,r)(t):n(t)};function r(t){return on(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return Nt(t)?At(e,a,"whitespace")(t):a(t)}function a(e){return null===e||St(e)?t(e):n(e)}}};const sn={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return St(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const un={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,a=3;"whitespace"===e[a][1].type&&(a+=2);o-2>a&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(a===o-1||o-4>a&&"whitespace"===e[o-2][1].type)&&(o-=a+1===o?2:4);o>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[o][1].end},r={type:"chunkText",start:e[a][1].start,end:e[o][1].end,contentType:"text"},dt(e,a,o-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||zt(t)?(e.exit("atxHeadingSequence"),a(t)):n(t)}function a(n){return 35===n?(e.enter("atxHeadingSequence"),i(n)):null===n||St(n)?(e.exit("atxHeading"),t(n)):Nt(n)?At(e,a,"whitespace")(n):(e.enter("atxHeadingText"),l(n))}function i(t){return 35===t?(e.consume(t),i):(e.exit("atxHeadingSequence"),a(t))}function l(t){return null===t||35===t||zt(t)?(e.exit("atxHeadingText"),a(t)):(e.consume(t),l)}}};const dn=["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"],pn=["pre","script","style","textarea"],fn={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let o,a,i,l,c;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),s}(t)};function s(l){return 33===l?(e.consume(l),u):47===l?(e.consume(l),a=!0,f):63===l?(e.consume(l),o=3,r.interrupt?t:O):vt(l)?(e.consume(l),i=String.fromCharCode(l),h):n(l)}function u(a){return 45===a?(e.consume(a),o=2,d):91===a?(e.consume(a),o=5,l=0,p):vt(a)?(e.consume(a),o=4,r.interrupt?t:O):n(a)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:O):n(o)}function p(o){const a="CDATA[";return o===a.charCodeAt(l++)?(e.consume(o),6===l?r.interrupt?t:z:p):n(o)}function f(t){return vt(t)?(e.consume(t),i=String.fromCharCode(t),h):n(t)}function h(l){if(null===l||47===l||62===l||zt(l)){const c=47===l,s=i.toLowerCase();return c||a||!pn.includes(s)?dn.includes(i.toLowerCase())?(o=6,c?(e.consume(l),m):r.interrupt?t(l):z(l)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(l):a?g(l):x(l)):(o=1,r.interrupt?t(l):z(l))}return 45===l||yt(l)?(e.consume(l),i+=String.fromCharCode(l),h):n(l)}function m(o){return 62===o?(e.consume(o),r.interrupt?t:z):n(o)}function g(t){return Nt(t)?(e.consume(t),g):R(t)}function x(t){return 47===t?(e.consume(t),R):58===t||95===t||vt(t)?(e.consume(t),v):Nt(t)?(e.consume(t),x):R(t)}function v(t){return 45===t||46===t||58===t||95===t||yt(t)?(e.consume(t),v):y(t)}function y(t){return 61===t?(e.consume(t),b):Nt(t)?(e.consume(t),y):x(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),c=t,w):Nt(t)?(e.consume(t),b):k(t)}function w(t){return t===c?(e.consume(t),c=null,E):null===t||St(t)?n(t):(e.consume(t),w)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||zt(t)?y(t):(e.consume(t),k)}function E(e){return 47===e||62===e||Nt(e)?x(e):n(e)}function R(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||St(t)?z(t):Nt(t)?(e.consume(t),S):n(t)}function z(t){return 45===t&&2===o?(e.consume(t),T):60===t&&1===o?(e.consume(t),P):62===t&&4===o?(e.consume(t),j):63===t&&3===o?(e.consume(t),O):93===t&&5===o?(e.consume(t),M):!St(t)||6!==o&&7!==o?null===t||St(t)?(e.exit("htmlFlowData"),N(t)):(e.consume(t),z):(e.exit("htmlFlowData"),e.check(hn,D,N)(t))}function N(t){return e.check(mn,C,D)(t)}function C(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return null===t||St(t)?N(t):(e.enter("htmlFlowData"),z(t))}function T(t){return 45===t?(e.consume(t),O):z(t)}function P(t){return 47===t?(e.consume(t),i="",A):z(t)}function A(t){if(62===t){const n=i.toLowerCase();return pn.includes(n)?(e.consume(t),j):z(t)}return vt(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),A):z(t)}function M(t){return 93===t?(e.consume(t),O):z(t)}function O(t){return 62===t?(e.consume(t),j):45===t&&2===o?(e.consume(t),O):z(t)}function j(t){return null===t||St(t)?(e.exit("htmlFlowData"),D(t)):(e.consume(t),j)}function D(n){return e.exit("htmlFlow"),t(n)}}},hn={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Ht,t,n)}}},mn={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(St(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const gn={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,a,i;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),c):47===t?(e.consume(t),b):63===t?(e.consume(t),v):vt(t)?(e.consume(t),E):n(t)}function c(t){return 45===t?(e.consume(t),s):91===t?(e.consume(t),a=0,f):vt(t)?(e.consume(t),x):n(t)}function s(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):St(t)?(i=u,A(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?P(e):45===e?d(e):u(e)}function f(t){const r="CDATA[";return t===r.charCodeAt(a++)?(e.consume(t),6===a?h:f):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):St(t)?(i=h,A(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?P(t):93===t?(e.consume(t),g):h(t)}function x(t){return null===t||62===t?P(t):St(t)?(i=x,A(t)):(e.consume(t),x)}function v(t){return null===t?n(t):63===t?(e.consume(t),y):St(t)?(i=v,A(t)):(e.consume(t),v)}function y(e){return 62===e?P(e):v(e)}function b(t){return vt(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||yt(t)?(e.consume(t),w):k(t)}function k(t){return St(t)?(i=k,A(t)):Nt(t)?(e.consume(t),k):P(t)}function E(t){return 45===t||yt(t)?(e.consume(t),E):47===t||62===t||zt(t)?R(t):n(t)}function R(t){return 47===t?(e.consume(t),P):58===t||95===t||vt(t)?(e.consume(t),S):St(t)?(i=R,A(t)):Nt(t)?(e.consume(t),R):P(t)}function S(t){return 45===t||46===t||58===t||95===t||yt(t)?(e.consume(t),S):z(t)}function z(t){return 61===t?(e.consume(t),N):St(t)?(i=z,A(t)):Nt(t)?(e.consume(t),z):R(t)}function N(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,C):St(t)?(i=N,A(t)):Nt(t)?(e.consume(t),N):(e.consume(t),I)}function C(t){return t===o?(e.consume(t),o=void 0,T):null===t?n(t):St(t)?(i=C,A(t)):(e.consume(t),C)}function I(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||zt(t)?R(t):(e.consume(t),I)}function T(e){return 47===e||62===e||zt(e)?R(e):n(e)}function P(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function A(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),M}function M(t){return Nt(t)?At(e,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):O(t)}function O(t){return e.enter("htmlTextData"),i(t)}}};const xn={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&dt(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,o,a,i=e.length,l=0;for(;i--;)if(n=e[i][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[i][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[i][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=i,"labelLink"!==n.type)){l=2;break}}else"labelEnd"===n.type&&(o=i);const c={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[r+l+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",c,t],["enter",s,t]],a=pt(a,e.slice(r+1,r+l+3)),a=pt(a,[["enter",u,t]]),a=pt(a,Lt(t.parser.constructs.insideSpan.null,e.slice(r+l+4,o-3),t)),a=pt(a,[["exit",u,t],e[o-2],e[o-1],["exit",s,t]]),a=pt(a,e.slice(o+1)),a=pt(a,[["exit",c,t]]),dt(e,r,e.length,a),e},tokenize:function(e,t,n){const r=this;let o,a,i=r.events.length;for(;i--;)if(("labelImage"===r.events[i][1].type||"labelLink"===r.events[i][1].type)&&!r.events[i][1]._balanced){o=r.events[i][1];break}return function(t){if(!o)return n(t);if(o._inactive)return u(t);return a=r.parser.defined.includes(xt(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l};function l(t){return 40===t?e.attempt(vn,s,a?s:u)(t):91===t?e.attempt(yn,s,a?c:u)(t):a?s(t):u(t)}function c(t){return e.attempt(bn,s,u)(t)}function s(e){return t(e)}function u(e){return o._balanced=!0,n(e)}}},vn={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return zt(t)?an(e,o)(t):o(t)}function o(t){return 41===t?s(t):nn(e,a,i,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function a(t){return zt(t)?an(e,l)(t):s(t)}function i(e){return n(e)}function l(t){return 34===t||39===t||40===t?on(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):s(t)}function c(t){return zt(t)?an(e,s)(t):s(t)}function s(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},yn={tokenize:function(e,t,n){const r=this;return function(t){return rn.call(r,e,o,a,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(xt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function a(e){return n(e)}}},bn={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const wn={name:"labelStartImage",resolveAll:xn.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),a):n(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const kn={name:"labelStartLink",resolveAll:xn.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const En={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),At(e,t,"linePrefix")}}};const Rn={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,a(e)}(t)};function a(a){return a===r?(e.enter("thematicBreakSequence"),i(a)):o>=3&&(null===a||St(a))?(e.exit("thematicBreak"),t(a)):n(a)}function i(t){return t===r?(e.consume(t),o++,i):(e.exit("thematicBreakSequence"),Nt(t)?At(e,a,"whitespace")(t):a(t))}}};const Sn={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ht,o,a);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,At(e,t,"listItemIndent",r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!Nt(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Nn,t,i)(n))}function i(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,At(e,e.attempt(Sn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let a=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,i=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:kt(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(Rn,n,c)(t):c(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(t)}return n(t)};function l(t){return kt(t)&&++i<10?(e.consume(t),l):(!r.interrupt||i<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),c(t)):n(t)}function c(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(Ht,r.interrupt?n:s,e.attempt(zn,d,u))}function s(e){return r.containerState.initialBlankLine=!0,a++,d(e)}function u(t){return Nt(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},zn={partial:!0,tokenize:function(e,t,n){const r=this;return At(e,function(e){const o=r.events[r.events.length-1];return!Nt(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Nn={partial:!0,tokenize:function(e,t,n){const r=this;return At(e,function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}};const Cn={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),o||"definition"!==e[a][1].type||(o=a);const i={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",i,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=i;return e.push(["exit",i,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let i,l=r.events.length;for(;l--;)if("lineEnding"!==r.events[l][1].type&&"linePrefix"!==r.events[l][1].type&&"content"!==r.events[l][1].type){i="paragraph"===r.events[l][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||i))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),a(t)}(t);return n(t)};function a(t){return t===o?(e.consume(t),a):(e.exit("setextHeadingLineSequence"),Nt(t)?At(e,i,"lineSuffix")(t):i(t))}function i(r){return null===r||St(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const In={tokenize:function(e){const t=this,n=e.attempt(Ht,function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,At(e,e.attempt(this.parser.constructs.flow,r,e.attempt(en,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const Tn={resolveAll:On()},Pn=Mn("string"),An=Mn("text");function Mn(e){return{resolveAll:On("text"===e?jn:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,a,i);return a;function a(e){return c(e)?o(e):i(e)}function i(e){if(null!==e)return t.enter("data"),t.consume(e),l;t.consume(e)}function l(e){return c(e)?(t.exit("data"),o(e)):(t.consume(e),l)}function c(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function On(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function jn(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let a,i=o.length,l=-1,c=0;for(;i--;){const e=o[i];if("string"==typeof e){for(l=e.length;32===e.charCodeAt(l-1);)c++,l--;if(l)break;l=-1}else if(-2===e)a=!0,c++;else if(-1!==e){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const o={type:n===e.length||a||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?l:r.start._bufferIndex+l,_index:r.start._index+i,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},end:{...r.end}};r.end={...o.start},r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}const Dn={42:Sn,43:Sn,45:Sn,48:Sn,49:Sn,50:Sn,51:Sn,52:Sn,53:Sn,54:Sn,55:Sn,56:Sn,57:Sn,62:Ut},Ln={91:ln},_n={[-2]:Xt,[-1]:Xt,32:Xt},Fn={35:un,42:Rn,45:[Cn,Rn],60:fn,61:Cn,95:Rn,96:Yt,126:Yt},Bn={38:qt,92:Vt},Hn={[-5]:En,[-4]:En,[-3]:En,33:wn,38:qt,42:_t,60:[Bt,gn],91:kn,92:[sn,Vt],93:xn,95:_t,96:$t},Un={null:[_t,Tn]};var Vn=Object.freeze({__proto__:null,document:Dn,contentInitial:Ln,flowInitial:_n,flow:Fn,string:Bn,text:Hn,insideSpan:Un,attentionMarkers:{null:[42,95]},disable:{null:[]}});function qn(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},a=[];let i=[],l=[];const c={attempt:g(function(e,t){x(e,t.from)}),check:g(m),consume:function(e){St(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,v()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++));s.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),s.events.push(["enter",n,s]),l.push(n),n},exit:function(e){const t=l.pop();return t.end=p(),s.events.push(["exit",t,s]),t},interrupt:g(m,{interrupt:!0})},s={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,v()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const a=e[n];let i;if("string"==typeof a)i=a;else switch(a){case-5:i="\r";break;case-4:i="\n";break;case-3:i="\r\n";break;case-2:i=t?" ":"\t";break;case-1:if(!t&&o)continue;i=" ";break;default:i=String.fromCharCode(a)}o=-2===a,r.push(i)}return r.join("")}(d(e),t)},sliceStream:d,write:function(e){if(i=pt(i,e),f(),null!==i[i.length-1])return[];return x(t,0),s.events=Lt(a,s.events,s),s.events}};let u=t.tokenize.call(s,c);return t.resolveAll&&a.push(t),s;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;let i;if(n===o)i=[e[n].slice(r,a)];else{if(i=e.slice(n,o),r>-1){const e=i[0];"string"==typeof e?i[0]=e.slice(r):i.shift()}a>0&&i.push(e[o].slice(0,a))}return i}(i,e)}function p(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:a}}function f(){let e;for(;r._index<i.length;){const t=i[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)h(t.charCodeAt(r._bufferIndex));else h(t)}}function h(e){u=u(e)}function m(e,t){t.restore()}function g(e,t){return function(n,o,a){let i,u,d,f;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return h([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function h(e){return i=e,u=0,0===e.length?a:m(e[u])}function m(e){return function(n){f=function(){const e=p(),t=s.previous,n=s.currentConstruct,o=s.events.length,a=Array.from(l);return{from:o,restore:i};function i(){r=e,s.previous=t,s.currentConstruct=n,s.events.length=o,l=a,v()}}(),d=e,e.partial||(s.currentConstruct=e);if(e.name&&s.parser.constructs.disable.null.includes(e.name))return x();return e.tokenize.call(t?Object.assign(Object.create(s),t):s,c,g,x)(n)}}function g(t){return e(d,f),o}function x(e){return f.restore(),++u<i.length?m(i[u]):a}}}function x(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&dt(s.events,t,s.events.length-t,e.resolve(s.events.slice(t),s)),e.resolveTo&&(s.events=e.resolveTo(s.events,s))}function v(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function Wn(e){const t=function(e){const t={};let n=-1;for(;++n<e.length;)ht(t,e[n]);return t}([Vn,...(e||{}).extensions||[]]),n={constructs:t,content:r(Mt),defined:[],document:r(Ot),flow:r(In),lazy:{},string:r(Pn),text:r(An)};return n;function r(e){return function(t){return qn(n,e,t)}}}const Yn=/[\0\t\n\r]/g;const Xn=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Kn(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return gt(n.slice(t?2:1),t?16:10)}return ut(n)||e}const $n={}.hasOwnProperty;function Jn(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(te),autolinkProtocol:S,autolinkEmail:S,atxHeading:a(Q),blockQuote:a(Y),characterEscape:S,characterReference:S,codeFenced:a(X),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:a(X,i),codeText:a(K,i),codeTextData:S,data:S,codeFlowValue:S,definition:a($),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:a(J),hardBreakEscape:a(Z),hardBreakTrailing:a(Z),htmlFlow:a(G,i),htmlFlowData:S,htmlText:a(G,i),htmlTextData:S,image:a(ee),label:i,link:a(te),listItem:a(re),listItemValue:p,listOrdered:a(ne,d),listUnordered:a(ne),paragraph:a(oe),reference:F,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:a(Q),strong:a(ae),thematicBreak:a(le)},exit:{atxHeading:c(),atxHeadingSequence:w,autolink:c(),autolinkEmail:W,autolinkProtocol:q,blockQuote:c(),characterEscapeValue:z,characterReferenceMarkerHexadecimal:H,characterReferenceMarkerNumeric:H,characterReferenceValue:U,characterReference:V,codeFenced:c(g),codeFencedFence:m,codeFencedFenceInfo:f,codeFencedFenceMeta:h,codeFlowValue:z,codeIndented:c(x),codeText:c(P),codeTextData:z,data:z,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(C),hardBreakTrailing:c(C),htmlFlow:c(I),htmlFlowData:z,htmlText:c(T),htmlTextData:z,image:c(M),label:j,labelText:O,lineEnding:N,link:c(A),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:B,resourceDestinationString:D,resourceTitleString:L,resource:_,setextHeading:c(R),setextHeadingLineSequence:E,setextHeadingText:k,strong:c(),thematicBreak:c()}};Zn(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const a={stack:[r],tokenStack:[],config:t,enter:l,exit:s,buffer:i,resume:u,data:n},c=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])c.push(d);else{d=o(e,c.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];$n.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){const e=a.tokenStack[a.tokenStack.length-1];(e[1]||er).call(a,void 0,e[0])}for(r.position={start:Qn(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Qn(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function o(e,t,n){let r,o,a,i,l=t-1,c=-1,s=!1;for(;++l<=n;){const t=e[l];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?c++:c--,i=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||i||c||a||(a=l),i=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:i=void 0}if(!c&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===c&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let i=l;for(o=void 0;i--;){const t=e[i];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",s=!0),t[1].type="lineEnding",o=i}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}a&&(!o||a<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||l,0,["exit",r,t[2]]),l++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(l,0,["enter",o,t[2]]),l++,n++,a=void 0,i=!0}}}return e[t][1]._spread=s,n}function a(e,t){return n;function n(n){l.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Qn(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+Pe({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||er).call(this,e,r[0])}n.position.end=Qn(e.end)}function u(){return function(e,t){const n=t||it;return lt(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function f(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function h(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function v(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=xt(this.sliceSerialize(e)).toLowerCase()}function y(){const e=this.resume();this.stack[this.stack.length-1].title=e}function b(){const e=this.resume();this.stack[this.stack.length-1].url=e}function w(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function E(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function R(){this.data.setextHeadingSlurpLineEnding=void 0}function S(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ie(),n.position={start:Qn(e.start),end:void 0},t.push(n)),this.stack.push(n)}function z(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Qn(e.end)}function N(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=Qn(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(S.call(this,e),z.call(this,e))}function C(){this.data.atHardBreak=!0}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function T(){const e=this.resume();this.stack[this.stack.length-1].value=e}function P(){const e=this.resume();this.stack[this.stack.length-1].value=e}function A(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function M(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function O(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(Xn,Kn)}(t),n.identifier=xt(t).toLowerCase()}function j(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function D(){const e=this.resume();this.stack[this.stack.length-1].url=e}function L(){const e=this.resume();this.stack[this.stack.length-1].title=e}function _(){this.data.inReference=void 0}function F(){this.data.referenceType="collapsed"}function B(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=xt(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function H(e){this.data.characterReferenceType=e.type}function U(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=gt(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=ut(t)}this.stack[this.stack.length-1].value+=r}function V(e){this.stack.pop().position.end=Qn(e.end)}function q(e){z.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function W(e){z.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function Y(){return{type:"blockquote",children:[]}}function X(){return{type:"code",lang:null,meta:null,value:""}}function K(){return{type:"inlineCode",value:""}}function $(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function J(){return{type:"emphasis",children:[]}}function Q(){return{type:"heading",depth:0,children:[]}}function Z(){return{type:"break"}}function G(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function ae(){return{type:"strong",children:[]}}function ie(){return{type:"text",value:""}}function le(){return{type:"thematicBreak"}}}(n)(function(e){for(;!Zt(e););return e}(Wn(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,a,i){const l=[];let c,s,u,d,p;for(o=n+("string"==typeof o?o.toString():new TextDecoder(a||void 0).decode(o)),u=0,n="",r&&(65279===o.charCodeAt(0)&&u++,r=void 0);u<o.length;){if(Yn.lastIndex=u,c=Yn.exec(o),d=c&&void 0!==c.index?c.index:o.length,p=o.charCodeAt(d),!c){n=o.slice(u);break}if(10===p&&u===d&&e)l.push(-3),e=void 0;else switch(e&&(l.push(-5),e=void 0),u<d&&(l.push(o.slice(u,d)),t+=d-u),p){case 0:l.push(65533),t++;break;case 9:for(s=4*Math.ceil(t/4),l.push(-2);t++<s;)l.push(-1);break;case 10:l.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return i&&(e&&l.push(-5),n&&l.push(n),l.push(null)),l}}()(e,t,!0))))}function Qn(e){return{line:e.line,column:e.column,offset:e.offset}}function Zn(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Zn(e,r):Gn(e,r)}}function Gn(e,t){let n;for(n in t)if($n.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function er(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Pe({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Pe({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Pe({start:t.start,end:t.end})+") is still open")}function tr(e){const t=this;t.parser=function(n){return Jn(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function nr(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),a=o[0];a&&"text"===a.type?a.value="["+a.value:o.unshift({type:"text",value:"["});const i=o[o.length-1];return i&&"text"===i.type?i.value+=r:o.push({type:"text",value:r}),o}function rr(e){const t=e.spread;return null==t?e.children.length>1:t}function or(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const a=[];for(;r;)a.push(ar(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return a.push(ar(t.slice(o),o>0,!1)),a.join("")}function ar(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const ir={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(r.className=["language-"+o[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=Pt(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let i,l=e.footnoteCounts.get(r);void 0===l?(l=0,e.footnoteOrder.push(r),i=e.footnoteOrder.length):i=a+1,l+=1,e.footnoteCounts.set(r,l);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,c);const s={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,s),e.applyData(t,s)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return nr(e,t);const o={src:Pt(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const a={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){const n={src:Pt(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return nr(e,t);const o={href:Pt(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const a={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){const n={href:Pt(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=rr(n[r])}return t}(n):rr(t),a={},i=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const e=r[l];(o||0!==l||"element"!==e.type||"p"!==e.tagName)&&i.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?i.push(e):i.push(...e.children)}const c=r[r.length-1];c&&(o||"element"!==c.type||"p"!==c.tagName)&&i.push({type:"text",value:"\n"});const s={type:"element",tagName:"li",properties:a,children:i};return e.patch(t,s),e.applyData(t,s)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=Ie(t.children[1]),i=Ce(t.children[t.children.length-1]);a&&i&&(r.position={start:a,end:i}),o.push(r)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,a),e.applyData(t,a)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",a=n&&"table"===n.type?n.align:void 0,i=a?a.length:t.children.length;let l=-1;const c=[];for(;++l<i;){const n=t.children[l],r={},i=a?a[l]:void 0;i&&(r.align=i);let s={type:"element",tagName:o,properties:r,children:[]};n&&(s.children=e.all(n),e.patch(n,s),s=e.applyData(n,s)),c.push(s)}const s={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,s),e.applyData(t,s)},text:function(e,t){const n={type:"text",value:or(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:lr,yaml:lr,definition:lr,footnoteDefinition:lr};function lr(){}const cr="object"==typeof self?self:globalThis,sr=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[a,i]=t[o];switch(a){case 0:case-1:return n(i,o);case 1:{const e=n([],o);for(const t of i)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of i)e[r(t)]=r(n);return e}case 3:return n(new Date(i),o);case 4:{const{source:e,flags:t}=i;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of i)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of i)e.add(r(t));return e}case 7:{const{name:e,message:t}=i;return n(new cr[e](t),o)}case 8:return n(BigInt(i),o);case"BigInt":return n(Object(BigInt(i)),o);case"ArrayBuffer":return n(new Uint8Array(i).buffer,i);case"DataView":{const{buffer:e}=new Uint8Array(i);return n(new DataView(e),i)}}return n(new cr[a](i),o)};return r})(new Map,e)(0),ur="",{toString:dr}={},{keys:pr}=Object,fr=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=dr.call(e).slice(8,-1);switch(n){case"Array":return[1,ur];case"Object":return[2,ur];case"Date":return[3,ur];case"RegExp":return[4,ur];case"Map":return[5,ur];case"Set":return[6,ur];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},hr=([e,t])=>0===e&&("function"===t||"symbol"===t),mr=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},a=r=>{if(n.has(r))return n.get(r);let[i,l]=fr(r);switch(i){case 0:{let t=r;switch(l){case"bigint":i=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);t=null;break;case"undefined":return o([-1],r)}return o([i,t],r)}case 1:{if(l){let e=r;return"DataView"===l?e=new Uint8Array(r.buffer):"ArrayBuffer"===l&&(e=new Uint8Array(r)),o([l,[...e]],r)}const e=[],t=o([i,e],r);for(const t of r)e.push(a(t));return t}case 2:{if(l)switch(l){case"BigInt":return o([l,r.toString()],r);case"Boolean":case"Number":case"String":return o([l,r.valueOf()],r)}if(t&&"toJSON"in r)return a(r.toJSON());const n=[],c=o([i,n],r);for(const t of pr(r))!e&&hr(fr(r[t]))||n.push([a(t),a(r[t])]);return c}case 3:return o([i,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([i,{source:e,flags:t}],r)}case 5:{const t=[],n=o([i,t],r);for(const[n,o]of r)(e||!hr(fr(n))&&!hr(fr(o)))&&t.push([a(n),a(o)]);return n}case 6:{const t=[],n=o([i,t],r);for(const n of r)!e&&hr(fr(n))||t.push(a(n));return n}}const{message:c}=r;return o([i,{name:l,message:c}],r)};return a})(!(t||n),!!t,new Map,r)(e),r};var gr="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?sr(mr(e,t)):structuredClone(e):(e,t)=>sr(mr(e,t));function xr(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function vr(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const yr=function(e){if(null==e)return wr;if("function"==typeof e)return br(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=yr(e[n]);return br(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return br(n);function n(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}(e);if("string"==typeof e)return function(e){return br(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function br(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function wr(){return!0}const kr=[],Er=!0,Rr=!1;function Sr(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const a=yr(o),i=r?-1:1;!function e(o,l,c){const s=o&&"object"==typeof o?o:{};if("string"==typeof s.type){const e="string"==typeof s.tagName?s.tagName:"string"==typeof s.name?s.name:void 0;Object.defineProperty(u,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return u;function u(){let s,u,d,p=kr;if((!t||a(o,l,c[c.length-1]||void 0))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[Er,e];return null==e?kr:[e]}(n(o,c)),p[0]===Rr))return p;if("children"in o&&o.children){const t=o;if(t.children&&"skip"!==p[0])for(u=(r?t.children.length:-1)+i,d=c.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(s=e(n,u,d)(),s[0]===Rr)return s;u="number"==typeof s[1]?s[1]:u+i}}return p}}(e,void 0,[])()}function zr(e,t,n,r){let o,a,i;"function"==typeof t&&"function"!=typeof n?(a=void 0,i=t,o=n):(a=t,i=n,o=r),Sr(e,a,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return i(e,r,n)},o)}const Nr={}.hasOwnProperty,Cr={};function Ir(e,t){e.position&&(t.position=function(e){const t=Ie(e),n=Ce(e);if(t&&n)return{start:t,end:n}}(e))}function Tr(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&o&&Object.assign(n.properties,gr(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function Pr(e,t){const n=t.data||{},r=!("value"in t)||Nr.call(n,"hProperties")||Nr.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function Ar(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function Mr(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function Or(e,t){const n=function(e,t){const n=t||Cr,r=new Map,o=new Map,a=new Map,i={...ir,...n.handlers},l={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=l.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=Mr(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=Mr(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:Tr,definitionById:r,footnoteById:o,footnoteCounts:a,footnoteOrder:[],handlers:i,one:function(e,t){const n=e.type,r=l.handlers[n];if(Nr.call(l.handlers,n)&&r)return r(l,e,t);if(l.options.passThrough&&l.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=gr(n);return r.children=l.all(e),r}return gr(e)}return(l.options.unknownHandler||Pr)(l,e,t)},options:n,patch:Ir,wrap:Ar};return zr(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),l}(e,t),r=n.one(e,void 0),o=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||xr,r=e.options.footnoteBackLabel||vr,o=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let c=-1;for(;++c<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[c]);if(!o)continue;const a=e.all(o),i=String(o.identifier).toUpperCase(),s=Pt(i.toLowerCase());let u=0;const d=[],p=e.footnoteCounts.get(i);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(c,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+s+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(c,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const f=a[a.length-1];if(f&&"element"===f.type&&"p"===f.tagName){const e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...d)}else a.push(...d);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+s},children:e.wrap(a,!0)};e.patch(o,h),l.push(h)}if(0!==l.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...gr(i),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:"\n"}]}}(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&a.children.push({type:"text",value:"\n"},o),a}function jr(e,t){return e&&"run"in e?async function(n,r){const o=Or(n,{file:r,...t});await e.run(o,r)}:function(n,r){return Or(n,{file:r,...e||t})}}function Dr(e){if(e)throw e}var Lr=Object.prototype.hasOwnProperty,_r=Object.prototype.toString,Fr=Object.defineProperty,Br=Object.getOwnPropertyDescriptor,Hr=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===_r.call(e)},Ur=function(e){if(!e||"[object Object]"!==_r.call(e))return!1;var t,n=Lr.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Lr.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Lr.call(e,t)},Vr=function(e,t){Fr&&"__proto__"===t.name?Fr(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},qr=function(e,t){if("__proto__"===t){if(!Lr.call(e,t))return;if(Br)return Br(e,t).value}return e[t]},Wr=function e(){var t,n,r,o,a,i,l=arguments[0],c=1,s=arguments.length,u=!1;for("boolean"==typeof l&&(u=l,l=arguments[1]||{},c=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});c<s;++c)if(null!=(t=arguments[c]))for(n in t)r=qr(l,n),l!==(o=qr(t,n))&&(u&&o&&(Ur(o)||(a=Hr(o)))?(a?(a=!1,i=r&&Hr(r)?r:[]):i=r&&Ur(r)?r:{},Vr(l,{name:n,newValue:e(u,i,o)})):void 0!==o&&Vr(l,{name:n,newValue:o}));return l},Yr=te(Wr);function Xr(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Kr(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(a,...i){const l=e[++n];let c=-1;if(a)r(a);else{for(;++c<t.length;)null!==i[c]&&void 0!==i[c]||(i[c]=t[c]);t=i,l?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let i;r&&t.push(o);try{i=e.apply(this,t)}catch(e){if(r&&n)throw e;return o(e)}r||(i&&i.then&&"function"==typeof i.then?i.then(a,o):i instanceof Error?o(i):a(i))}function o(e,...r){n||(n=!0,t(e,...r))}function a(e){o(null,e)}}(l,o)(...i):r(null,...i)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const $r={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');Jr(e);let n,r=0,o=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let i=-1,l=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1),l>-1&&(e.codePointAt(a)===t.codePointAt(l--)?l<0&&(o=a):(l=-1,o=i));r===o?o=i:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(Jr(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){Jr(e);let t,n=e.length,r=-1,o=0,a=-1,i=0;for(;n--;){const l=e.codePointAt(n);if(47!==l)r<0&&(t=!0,r=n+1),46===l?a<0?a=n:1!==i&&(i=1):a>-1&&(i=-1);else if(t){o=n+1;break}}if(a<0||r<0||0===i||1===i&&a===r-1&&a===o+1)return"";return e.slice(a,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)Jr(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){Jr(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",a=0,i=-1,l=0,c=-1;for(;++c<=e.length;){if(c<e.length)n=e.codePointAt(c);else{if(47===n)break;n=47}if(47===n){if(i===c-1||1===l);else if(i!==c-1&&2===l){if(o.length<2||2!==a||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",a=0):(o=o.slice(0,r),a=o.length-1-o.lastIndexOf("/")),i=c,l=0;continue}}else if(o.length>0){o="",a=0,i=c,l=0;continue}t&&(o=o.length>0?o+"/..":"..",a=2)}else o.length>0?o+="/"+e.slice(i+1,c):o=e.slice(i+1,c),a=c-i-1;i=c,l=0}else 46===n&&l>-1?l++:l=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function Jr(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Qr={cwd:function(){return"/"}};function Zr(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function Gr(e){if("string"==typeof e)e=new URL(e);else if(!Zr(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const eo=["history","path","basename","stem","extname","dirname"];class to{constructor(e){let t;t=e?Zr(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":Qr.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<eo.length;){const e=eo[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)eo.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?$r.basename(this.path):void 0}set basename(e){ro(e,"basename"),no(e,"basename"),this.path=$r.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?$r.dirname(this.path):void 0}set dirname(e){oo(this.basename,"dirname"),this.path=$r.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?$r.extname(this.path):void 0}set extname(e){if(no(e,"extname"),oo(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=$r.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Zr(e)&&(e=Gr(e)),ro(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?$r.basename(this.path,this.extname):void 0}set stem(e){ro(e,"stem"),no(e,"stem"),this.path=$r.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new je(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function no(e,t){if(e&&e.includes($r.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+$r.sep+"`")}function ro(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function oo(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const ao=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},io={}.hasOwnProperty;class lo extends ao{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Kr()}copy(){const e=new lo;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(Yr(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(po("data",this.frozen),this.namespace[e]=t,this):io.call(this.namespace,e)&&this.namespace[e]||void 0:e?(po("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=mo(e),n=this.parser||this.Parser;return so("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),so("process",this.parser||this.Parser),uo("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const a=mo(e),i=n.parse(a);function l(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(i,a,function(e,t,r){if(e||!t||!r)return l(e);const o=t,a=n.stringify(o,r);var i;"string"==typeof(i=a)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(i)?r.value=a:r.result=a,l(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),so("processSync",this.parser||this.Parser),uo("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,Dr(e),t=r}),ho("processSync","process",n),t}run(e,t,n){fo(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,a){const i=mo(t);r.run(e,i,function(t,r,i){const l=r||e;t?a(t):o?o(l):n(void 0,l,i)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){Dr(e),n=t,r=!0}),ho("runSync","run",r),n}stringify(e,t){this.freeze();const n=mo(t),r=this.compiler||this.Compiler;return uo("stringify",r),fo(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(po("use",this.frozen),null==e);else if("function"==typeof e)l(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?i(e):a(e)}return this;function o(e){if("function"==typeof e)l(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;l(t,n)}else a(e)}}function a(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");i(e.plugins),e.settings&&(r.settings=Yr(!0,r.settings,e.settings))}function i(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){o(e[t])}}}function l(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...a]=t;const i=n[o][1];Xr(i)&&Xr(r)&&(r=Yr(!0,i,r)),n[o]=[e,r,...a]}}}}const co=(new lo).freeze();function so(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function uo(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function po(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function fo(e){if(!Xr(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function ho(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function mo(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new to(e)}const go=[],xo={allowDangerousHtml:!0},vo=/^(https?|ircs?|mailto|xmpp)$/i,yo=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function bo(e){const t=function(e){const t=e.rehypePlugins||go,n=e.remarkPlugins||go,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...xo}:xo,o=co().use(tr).use(n).use(jr,r).use(t);return o}(e),n=function(e){const t=e.children||"",n=new to;"string"==typeof t&&(n.value=t);return n}(e);return function(e,t){const n=t.allowedElements,r=t.allowElement,o=t.components,a=t.disallowedElements,i=t.skipHtml,l=t.unwrapDisallowed,c=t.urlTransform||wo;for(const e of yo)Object.hasOwn(t,e.from)&&f((e.from,e.to&&e.to,e.id));return zr(e,s),Ue(e,{Fragment:at.Fragment,components:o,ignoreInvalidStyle:!0,jsx:at.jsx,jsxs:at.jsxs,passKeys:!0,passNode:!0});function s(e,t,o){if("raw"===e.type&&o&&"number"==typeof t)return i?o.children.splice(t,1):o.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in Ze)if(Object.hasOwn(Ze,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Ze[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=c(String(n||""),t,e))}}if("element"===e.type){let i=n?!n.includes(e.tagName):!!a&&a.includes(e.tagName);if(!i&&r&&"number"==typeof t&&(i=!r(e,t,o)),i&&o&&"number"==typeof t)return l&&e.children?o.children.splice(t,1,...e.children):o.children.splice(t,1),t}}}(t.runSync(t.parse(n),n),e)}function wo(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return-1===t||-1!==o&&t>o||-1!==n&&t>n||-1!==r&&t>r||vo.test(e.slice(0,t))?e:""}
|
|
13
13
|
/**
|
|
14
14
|
* @license lucide-react v0.562.0 - ISC
|
|
15
15
|
*
|
|
16
16
|
* This source code is licensed under the ISC license.
|
|
17
17
|
* See the LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/
|
|
19
|
-
const ko=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Eo=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},So=(...e)=>e.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),zo=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};
|
|
18
|
+
*/const ko=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Eo=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ro=(...e)=>e.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),So=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};
|
|
20
19
|
/**
|
|
21
20
|
* @license lucide-react v0.562.0 - ISC
|
|
22
21
|
*
|
|
23
22
|
* This source code is licensed under the ISC license.
|
|
24
23
|
* See the LICENSE file in the root directory of this source tree.
|
|
25
24
|
*/
|
|
26
|
-
var
|
|
25
|
+
var zo={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
|
|
27
26
|
/**
|
|
28
27
|
* @license lucide-react v0.562.0 - ISC
|
|
29
28
|
*
|
|
30
29
|
* This source code is licensed under the ISC license.
|
|
31
30
|
* See the LICENSE file in the root directory of this source tree.
|
|
32
|
-
*/const No=React.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:
|
|
31
|
+
*/const No=React.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...l},c)=>React.createElement("svg",{ref:c,...zo,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:Ro("lucide",o),...!a&&!So(l)&&{"aria-hidden":"true"},...l},[...i.map(([e,t])=>React.createElement(e,t)),...Array.isArray(a)?a:[a]])),Co=(e,t)=>{const n=React.forwardRef(({className:n,...r},o)=>React.createElement(No,{ref:o,iconNode:t,className:Ro(`lucide-${ko(Eo(e))}`,`lucide-${e}`,n),...r}));return n.displayName=Eo(e),n},Io=Co("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]),To=Co("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Po=Co("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Ao=Co("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Mo=Co("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),Oo=Co("circle-dashed",[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]),jo=Co("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),Do=Co("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]),Lo=Co("layout-list",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}],["path",{d:"M14 4h7",key:"3xa0d5"}],["path",{d:"M14 9h7",key:"1icrd9"}],["path",{d:"M14 15h7",key:"1mj8o2"}],["path",{d:"M14 20h7",key:"11slyb"}]]),_o=Co("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),Fo=Co("move",[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m19 9 3 3-3 3",key:"1mg7y2"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m5 9-3 3 3 3",key:"j64kie"}],["path",{d:"m9 5 3-3 3 3",key:"l8vdw6"}]]),Bo=Co("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]),Ho=Co("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]),Uo=Co("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]),Vo=Co("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),qo=Co("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),Wo=Co("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]),Yo=Co("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),Xo=Co("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),Ko=Co("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]),$o=Co("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]),Jo=Co("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),Qo=Co("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]),Zo=Co("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);
|
|
33
32
|
/**
|
|
34
33
|
* @license lucide-react v0.562.0 - ISC
|
|
35
34
|
*
|
|
36
35
|
* This source code is licensed under the ISC license.
|
|
37
36
|
* See the LICENSE file in the root directory of this source tree.
|
|
38
|
-
*/var Jo={Shared:{"Content Creation":["Blog Writer","Tweet Generator","SEO Optimizer"],"Data Analysis":["Market Trends","Sentiment Analyzer","Chart Builder"],Utility:["Translator","Summarizer"]},Users:{user_jdoe:["My Calendar","Email Sorter"],user_alice:["Code Reviewer","Bug Hunter"],team_alpha:["Sprint Planner","Jira Sync"]}},Qo={h1:function(e){var t=e.children;return React.createElement("h1",{className:"text-xl font-bold mb-2 mt-4 first:mt-0"},t)},h2:function(e){var t=e.children;return React.createElement("h2",{className:"text-lg font-semibold mb-2 mt-3 first:mt-0"},t)},h3:function(e){var t=e.children;return React.createElement("h3",{className:"text-base font-semibold mb-1 mt-2 first:mt-0"},t)},p:function(e){var t=e.children;return React.createElement("p",{className:"mb-2 last:mb-0"},t)},ul:function(e){var t=e.children;return React.createElement("ul",{className:"list-disc list-inside my-2 space-y-1"},t)},ol:function(e){var t=e.children;return React.createElement("ol",{className:"list-decimal list-inside my-2 space-y-1"},t)},li:function(e){var t=e.children;return React.createElement("li",{className:"ml-2"},t)},code:function(e){var t=e.inline,n=e.children;return t?React.createElement("code",{className:"bg-slate-200 text-slate-800 px-1 py-0.5 rounded text-xs font-mono"},n):React.createElement("code",null,n)},pre:function(e){var t=e.children;return React.createElement("pre",{className:"bg-slate-800 text-slate-100 p-3 rounded text-xs overflow-x-auto my-2"},t)},strong:function(e){var t=e.children;return React.createElement("strong",null,t)},em:function(e){var t=e.children;return React.createElement("em",null,t)}},Zo=function(e,t,n,r){var o=Math.abs(n-e),i=Math.max(.5*o,50);return"M ".concat(e," ").concat(t," C ").concat(e+i," ").concat(t,", ").concat(n-i," ").concat(r,", ").concat(n," ").concat(r)},Go=function(e,t){if(0===e.length)return!0;if(1===e.length)return!0;var n={};e.forEach(function(e){n[e.id]=[]}),t.forEach(function(e){n[e.source].push(e.target),n[e.target].push(e.source)});var r=new Set,o=[e[0].id];for(r.add(e[0].id);o.length>0;){var i=o.shift();n[i].forEach(function(e){r.has(e)||(r.add(e),o.push(e))})}return r.size===e.length},ei=function(e,t){var n=new Set;return t.forEach(function(e){n.add(e.target)}),e.filter(function(e){return!n.has(e.id)})},ti=function(e,t){if(0===e.length)return!0;var n=Go(e,t),r=ei(e,t);return n&&1===r.length},ni=function(e){e.value;var t=e.onChange,n=e.onClose,r=e.agentTree,o=s(React.useState([]),2),i=o[0],a=o[1],l=r;i.forEach(function(e){l[e]&&(l=l[e])});var c=Array.isArray(l),d=function(e){var r=e.key;c?(t({path:[].concat(u(i),[r])}),n()):a([].concat(u(i),[r]))};return React.createElement("div",{className:"absolute top-full left-0 mt-[8px] bg-white rounded-[8px] shadow-xl border border-slate-200 z-50 animate-in fade-in zoom-in-95 duration-100",style:{width:"256px"}},React.createElement("div",{className:"p-[8px] bg-slate-50 border-b border-slate-200 flex items-center justify-between"},i.length>0?React.createElement("button",{onClick:function(){a(i.slice(0,-1))},className:"text-[12px] font-medium text-blue-500 hover:text-blue-600 flex items-center"},"← Back"):React.createElement("span",{className:"text-[12px] font-semibold text-slate-500 uppercase tracking-wider"},"Select Source"),React.createElement("button",{onClick:n,className:"text-slate-400 hover:text-red-500"},React.createElement($o,{size:14}))),React.createElement("div",{className:"max-h-[240px] overflow-y-auto p-[4px] bg-white text-slate-900"},c?l.map(function(e){return React.createElement("button",{key:e,onClick:function(){return d({key:e})},className:"w-full text-left px-[12px] py-[8px] text-[14px] text-slate-700 hover:bg-blue-50 rounded flex items-center gap-[8px]"},React.createElement("div",{className:"w-[8px] h-[8px] rounded-full bg-green-500"}),e)}):Object.keys(l).map(function(e){return React.createElement("button",{key:e,onClick:function(){return d({key:e})},className:"w-full text-left px-[12px] py-[8px] text-[14px] text-slate-700 hover:bg-slate-100 rounded flex items-center justify-between group"},React.createElement("div",{className:"flex items-center gap-[8px]"},0===i.length?"Shared"===e?"🌍":"🔒":"📁",React.createElement("span",null,e)),React.createElement(Mo,{size:14,className:"text-slate-400 group-hover:text-slate-600"}))}),!c&&0===Object.keys(l).length&&React.createElement("div",{className:"p-2 text-slate-400 text-xs text-center italic"},"No items found")))},ri=function(e){var t=e.activeNode,n=e.nodes,r=e.nodeHeights,o=e.currentMessage;e.pan,e.containerRef;var i=s(React.useState("hidden"),2),l=i[0],c=i[1],u=s(React.useState(null),2),d=u[0],p=u[1],f=React.useRef(null),h=React.useRef(null),m="string"==typeof o?{node:t,message:o}:o,g=null==m?void 0:m.node,x=null==m?void 0:m.message,v=n.find(function(e){return g===e.data.agentPath.join("/")});if(React.useEffect(function(){var e=f.current,t=!!x,n=!!e;t||n?!t&&n?(c("disappearing"),requestAnimationFrame(function(){h.current&&h.current.offsetHeight}),setTimeout(function(){c("hidden"),p(null)},300)):t&&!n?(p(m),c("appearing"),setTimeout(function(){c("visible")},400)):t&&n&&e!==x?(p(m),c("visible")):t&&n&&e===x&&(p(m),"hidden"===l&&c("visible")):(c("hidden"),p(null)),f.current=x},[m,g,x]),!g||null==d||!d.message||"hidden"===l)return null;if(!v)return null;var y=r[v.id]||88,b=v.x,w=v.y+y+20,k=v.x+128,E=v.y+y/2,S=(k-b)/640*100,z=(E-w)/280*100,R={},N="translate(".concat(b,"px, ").concat(w,"px)");return"appearing"===l?R={animation:"popOut-".concat(b,"-").concat(w," 0.4s ease-out forwards")}:"disappearing"===l&&(R={animation:"shrinkIn-".concat(b,"-").concat(w,"-").concat(k,"-").concat(E," 0.3s ease-in forwards")}),React.createElement(React.Fragment,null,React.createElement("style",null,"\n @keyframes popOut-".concat(b,"-").concat(w," {\n 0% {\n transform: translate(").concat(b,"px, ").concat(w,"px) scale(0.3);\n opacity: 0;\n }\n 80% {\n transform: translate(").concat(b,"px, ").concat(w,"px) scale(1.05);\n opacity: 1;\n }\n 100% {\n transform: translate(").concat(b,"px, ").concat(w,"px) scale(1);\n opacity: 1;\n }\n }\n @keyframes shrinkIn-").concat(b,"-").concat(w,"-").concat(k,"-").concat(E," {\n from {\n transform: translate(").concat(b,"px, ").concat(w,"px) scale(1);\n opacity: 1;\n }\n to {\n transform: translate(").concat(k,"px, ").concat(E,"px) scale(0);\n opacity: 0;\n }\n }\n ")),React.createElement("div",{ref:h,className:"absolute pointer-events-none z-20",style:a(a({},"visible"!==l||R.animation?{}:{transform:N}),{},{transformOrigin:"".concat(S,"% ").concat(z,"%"),width:"".concat(640,"px"),maxHeight:"".concat(280,"px")},R)},React.createElement("div",{className:"absolute z-10 pointer-events-auto",style:{left:"".concat(128,"px"),transform:"translateX(-50%)",top:"-12px",width:0,height:0,borderLeft:"12px solid transparent",borderRight:"12px solid transparent",borderBottom:"12px solid ".concat(t?"rgba(255, 255, 255, 0.95)":"#ffffff"),filter:"drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.1))"}}),React.createElement("div",{className:"bg-white rounded-2xl shadow-xl border-slate-300 overflow-hidden pointer-events-auto",style:{backgroundColor:t?"rgba(255, 255, 255, 0.95)":"#ffffff",borderWidth:"3px",maskImage:t?"linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3))":"none",WebkitMaskImage:t?"linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3))":"none"}},React.createElement("div",{className:"p-4 overflow-y-auto text-slate-800 text-sm leading-relaxed",style:{maxHeight:"".concat(280,"px")}},React.createElement(bo,{components:Qo},d.message)))))};function oi(e){var t=e.agentTree,r=void 0===t?Jo:t,o=e.activeNode,i=e.initialNodes,c=void 0===i?[]:i,d=e.initialEdges,p=void 0===d?[]:d,f=e.handleSave,h=e.handleView,m=e.handleEdit,g=e.initialEditable,x=void 0!==g&&g,v=e.currentMessage,y=e.handlePrompt,b=e.isFollowingActive,w=e.showPrompt,k=void 0===w?!o:w,E=s(React.useState(c),2),S=E[0],z=E[1],R=s(React.useState(p),2),N=R[0],C=R[1],I=s(React.useState(""),2),P=I[0],T=I[1],M=s(React.useState(null),2),A=M[0],O=M[1];React.useEffect(function(){O(null)},[v]);var D,L="string"==typeof(D=v)?D:null==D?void 0:D.message,j=L===A?null:v,_=function(){P.trim()&&(y&&y({prompt:P}),T(""))},F=s(React.useState(x),2),B=F[0],H=F[1],U=s(React.useState({nodes:c,edges:p}),2),V=U[0],q=U[1],W=s(React.useState(!1),2),Y=W[0],X=W[1],K=s(React.useState(!0),2),$=K[0],J=K[1];React.useEffect(function(){b&&J(!0)},[b]);var Q=s(React.useState(null),2),Z=Q[0],G=Q[1],ee=s(React.useState(null),2),te=ee[0],ne=ee[1],re=s(React.useState({x:0,y:0}),2),oe=re[0],ie=re[1],ae=s(React.useState(function(){try{var e=sessionStorage.getItem("teambuilder-pan");return e?JSON.parse(e):{x:0,y:0}}catch(e){return{x:0,y:0}}}),2),le=ae[0],ce=ae[1],se=s(React.useState(!1),2),ue=se[0],de=se[1],pe=s(React.useState({x:0,y:0}),2),fe=pe[0],he=pe[1],me=s(React.useState(null),2),ge=me[0],xe=me[1],ve=s(React.useState({}),2),ye=ve[0],be=ve[1],we=React.useRef(null),ke=React.useRef({}),Ee=React.useRef(null),Se=React.useRef(le),ze=React.useRef(!1),Re=React.useRef(!1);React.useEffect(function(){Se.current=le},[le]);var Ne=React.useCallback(function(){if(o&&we.current){var e=S.find(function(e){return o===e.data.agentPath.join("/")});if(e){var t=ye[e.id]||88,n=we.current.clientWidth,r=.3*we.current.clientHeight,i=n/2-(e.x+128),l=r-(e.y+t/2),c=a({},Se.current),s=performance.now();ze.current=!0;var u=function(e){var t=e-s,n=Math.min(t/600,1),r=1-Math.pow(1-n,3),o={x:c.x+(i-c.x)*r,y:c.y+(l-c.y)*r};ce(o),n<1?Ee.current=requestAnimationFrame(u):ze.current=!1};Ee.current&&cancelAnimationFrame(Ee.current),Ee.current=requestAnimationFrame(u)}}},[o,S,ye]);React.useEffect(function(){return function(){Ee.current&&cancelAnimationFrame(Ee.current)}},[]),React.useEffect(function(){$&&o&&Ne()},[o,$,Ne]),React.useEffect(function(){var e=Object.keys(ye).length>0;$&&o&&e&&!Re.current&&(Re.current=!0,Ne())},[ye,$,o,Ne]),React.useEffect(function(){},[o]),React.useEffect(function(){B&&J(!1)},[B]);var Ce=React.useCallback(n(l().m(function e(){var t,n;return l().w(function(e){for(;;)switch(e.n){case 0:if(!f){e.n=1;break}return t=ei(S,N),n=1===t.length?t[0].id:null,e.n=1,f({nodes:S,edges:N,rootNodeId:n});case 1:q({nodes:u(S),edges:u(N)}),H(!1);case 2:return e.a(2)}},e)})),[N,f,S]);React.useEffect(function(){if(Y){var e=function(e){"Escape"===e.key&&X(!1)};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}}},[Y]),React.useEffect(function(){try{sessionStorage.setItem("teambuilder-pan",JSON.stringify(le))}catch(e){}},[le]),React.useEffect(function(){var e={};S.forEach(function(t){var n=ke.current[t.id];n&&(e[t.id]=n.offsetHeight)}),be(e)},[S]);var Ie=function(){G(null),ne(null),de(!1)};return React.createElement("div",{className:"flex flex-col h-full min-h-[500px] w-full bg-slate-100 text-slate-900 font-sans overflow-hidden relative"},React.createElement("div",{className:"border-b border-slate-200 bg-white flex items-center px-[16px] justify-between z-10 shadow-sm",style:{height:"56px"}},React.createElement("div",{className:"flex items-center gap-[8px]"},React.createElement("div",{className:"p-[8px] bg-indigo-600 rounded text-white"},React.createElement(Ko,{size:18})),React.createElement("h1",{className:"font-bold text-[18px] hidden sm:block"},"Team Builder")),React.createElement("div",{className:"flex items-center gap-[12px]"},!B&&(o?React.createElement("button",{onClick:function(){return J(!$)},className:"flex items-center gap-[8px] px-[16px] py-[8px] rounded-[6px] text-[14px] font-medium transition-colors shadow-sm ".concat($?"bg-green-500 hover:bg-green-600 text-white":"bg-blue-500 hover:bg-blue-600 text-white")},$?React.createElement(Po,{size:16}):React.createElement(Fo,{size:16}),"Follow Active Agent"):j?React.createElement("button",{onClick:function(){return O(L)},className:"flex items-center gap-[8px] bg-white border border-slate-200 hover:bg-slate-50 text-slate-700 px-[16px] py-[8px] rounded-[6px] text-[14px] font-medium transition-colors shadow-sm"},React.createElement(Ho,{size:16})," Restart"):React.createElement("div",{className:"text-[12px] text-slate-500 hidden md:block"},"View Only Mode")),B?React.createElement(React.Fragment,null,React.createElement("button",{onClick:function(){JSON.stringify(S)!==JSON.stringify(V.nodes)||JSON.stringify(N)!==JSON.stringify(V.edges)?X(!0):H(!1)},className:"flex items-center gap-[8px] bg-white border border-slate-200 hover:bg-slate-50 text-slate-700 px-[16px] py-[8px] rounded-[6px] text-[14px] font-medium transition-colors shadow-sm"},React.createElement($o,{size:16})," Cancel"),React.createElement("button",{onClick:Ce,className:"flex items-center gap-[8px] bg-white border border-slate-200 hover:bg-slate-50 text-slate-700 px-[16px] py-[8px] rounded-[6px] text-[14px] font-medium transition-colors shadow-sm"},React.createElement(Uo,{size:16})," Save"),React.createElement("button",{onClick:function(){var e,t,n=Math.random().toString(36).substr(2,9),r=-le.x+((null===(e=we.current)||void 0===e?void 0:e.clientWidth)||800)/2-100,o=-le.y+((null===(t=we.current)||void 0===t?void 0:t.clientHeight)||600)/2-50;z([].concat(u(S),[{id:n,x:r,y:o,data:{label:"New Node",agentPath:[]}}]))},className:"flex items-center gap-[8px] bg-indigo-600 hover:bg-indigo-700 text-white px-[16px] py-[8px] rounded-[6px] text-[14px] font-medium transition-colors shadow-sm",style:{color:"#fff"}},React.createElement(Bo,{size:16})," Add Node")):React.createElement("button",{onClick:function(){q({nodes:u(S),edges:u(N)}),H(!0)},className:"flex items-center gap-[8px] bg-white border border-slate-200 hover:bg-slate-50 text-slate-700 px-[16px] py-[8px] rounded-[6px] text-[14px] font-medium transition-colors shadow-sm"},React.createElement(_o,{size:16})," Edit"))),React.createElement("div",{ref:we,className:"flex-1 relative overflow-hidden bg-grid-slate-200",style:{cursor:ue?"grabbing":"grab",backgroundSize:"40px 40px"},onMouseDown:function(e){0===e.button&&(e.target.closest("[data-node]")||(de(!0),he({x:e.clientX-le.x,y:e.clientY-le.y})))},onMouseMove:function(e){var t=we.current.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top,o=n-le.x,i=r-le.y;if(ie({x:o,y:i}),ue)return ce({x:e.clientX-fe.x,y:e.clientY-fe.y}),void($&&!ze.current&&J(!1));Z&&z(function(e){return e.map(function(e){return e.id===Z.id?a(a({},e),{},{x:o-Z.offsetX,y:i-Z.offsetY}):e})})},onMouseUp:Ie,onMouseLeave:Ie},React.createElement("div",{style:{transform:"translate(".concat(le.x,"px, ").concat(le.y,"px)"),width:"100%",height:"100%",position:"absolute",top:0,left:0,pointerEvents:"none"}},React.createElement("svg",{className:"absolute top-0 left-0 overflow-visible w-full h-full pointer-events-none z-0"},React.createElement("defs",null,React.createElement("marker",{id:"arrowhead",markerWidth:"10",markerHeight:"7",refX:"9",refY:"3.5",orient:"auto"},React.createElement("polygon",{points:"0 0, 10 3.5, 0 7",fill:"#64748b"})),React.createElement("marker",{id:"arrowhead-active",markerWidth:"10",markerHeight:"7",refX:"9",refY:"3.5",orient:"auto"},React.createElement("polygon",{points:"0 0, 10 3.5, 0 7",fill:"#6366f1"}))),N.map(function(e){var t=S.find(function(t){return t.id===e.source}),n=S.find(function(t){return t.id===e.target});if(!t||!n)return null;var r=ye[e.source]||88,o=ye[e.target]||88,i=t.x+256,a=t.y+r/2,l=n.x,c=n.y+o/2,s=Zo(i,a,l,c);return React.createElement("g",{key:e.id,className:"pointer-events-auto group"},React.createElement("path",{d:s,strokeWidth:"15",stroke:"transparent",fill:"none",className:B?"cursor-pointer":"",onClick:function(){return t={id:e.id},n=t.id,void(B&&C(N.filter(function(e){return e.id!==n})));var t,n}}),React.createElement("path",{d:s,stroke:"#64748b",strokeWidth:"2",fill:"none",markerEnd:"url(#arrowhead)",className:"group-hover:stroke-red-500 transition-colors"}))}),te&&React.createElement("path",{d:Zo(te.x,te.y,oe.x,oe.y),stroke:"#6366f1",strokeWidth:"2",fill:"none",strokeDasharray:"5,5"})),React.createElement(ri,{activeNode:o,nodes:S,nodeHeights:ye,currentMessage:j,pan:le,containerRef:we}),React.createElement("div",{className:"pointer-events-auto w-full h-full"},S.map(function(e){var t=o===e.data.agentPath.join("/"),n=e.data.agentPath.length>0?e.data.agentPath[e.data.agentPath.length-1]:"Select Agent...",i=e.data.agentPath.slice(0,-1).join(" > "),l=ei(S,N),c=ti(S,N)&&1===l.length&&l[0].id===e.id;return React.createElement("div",{ref:function(t){return ke.current[e.id]=t},"data-node":"true",key:e.id,onMouseDown:function(t){return function(e){var t=e.event,n=e.node;B&&(t.stopPropagation(),t.target.closest("button")||t.target.closest(".nodrag")||G({id:n.id,offsetX:oe.x-n.x,offsetY:oe.y-n.y}))}({event:t,node:e})},style:{transform:"translate(".concat(e.x,"px, ").concat(e.y,"px)"),width:"256px",height:"fit-content",boxSizing:"border-box",fontSize:"14px",lineHeight:"1.5",fontFamily:"sans-serif"},className:"absolute bg-white rounded-[12px] shadow-lg border-2 transition-shadow duration-200 group flex flex-col ".concat(ge===e.id?"z-50":"z-10","\n ").concat(t?"border-green-500 shadow-green-500/30 ring-1 ring-green-500":"border-blue-500 hover:border-blue-600","\n ")},React.createElement("div",{className:"rounded-t-[12px] w-full ".concat(t?"bg-green-500":"bg-slate-100"),style:{height:"8px"}}),React.createElement("div",{className:"flex flex-col",style:{padding:"16px",gap:"12px"}},React.createElement("div",{className:"flex items-start justify-between"},React.createElement("div",{className:"flex flex-col"},i&&React.createElement("span",{className:"text-slate-400 truncate max-w-[150px]",title:i,style:{fontSize:"10px"}},i)),React.createElement("div",{className:"flex gap-[4px]"},B?m&&e.data.agentPath.length>0&&React.createElement("button",{onClick:function(){return m({agentPath:e.data.agentPath.join("/")})},className:"p-[6px] rounded-[6px] text-slate-400 hover:text-amber-600 hover:bg-amber-50 transition-colors",title:"Edit Agent"},React.createElement(Wo,{size:16})):h&&e.data.agentPath.length>0&&React.createElement("button",{onClick:function(){return h({agentPath:e.data.agentPath.join("/")})},className:"p-[6px] rounded-[6px] text-slate-400 hover:text-blue-600 hover:bg-blue-50 transition-colors",title:"View Agent"},React.createElement(Ao,{size:16})),c&&React.createElement("div",{className:"p-[6px] rounded-[6px] transition-all text-indigo-600 bg-indigo-50",title:"Root Node"},React.createElement(Oo,{size:18})),t&&React.createElement("div",{className:"p-[6px] rounded-[6px] transition-all text-green-600 bg-green-50",title:"Active Node"},React.createElement(qo,{size:18,className:"animate-spin"})),B&&React.createElement("button",{onClick:function(){return t={id:e.id},n=t.id,z(S.filter(function(e){return e.id!==n})),C(N.filter(function(e){return e.source!==n&&e.target!==n})),void delete ke.current[n];var t,n},className:"p-[6px] rounded-[6px] text-slate-300 hover:text-red-600 hover:bg-red-50 transition-colors"},React.createElement(Yo,{size:16})))),React.createElement("div",{className:"relative nodrag"},React.createElement("button",{onClick:function(){return xe(ge===e.id?null:e.id)},className:"w-full flex items-center justify-between px-[12px] py-[8px] bg-slate-50 border border-slate-200 rounded-[6px] text-[14px] text-slate-600 hover:bg-slate-100 transition-colors"},React.createElement("span",null,n),React.createElement(To,{size:14})),ge===e.id&&B&&React.createElement(ni,{value:e.data.agentPath,onChange:function(t){var n=t.path;return function(e){var t=e.nodeId,n=e.path;z(S.map(function(e){return e.id===t?a(a({},e),{},{data:a(a({},e.data),{},{agentPath:n})}):e}))}({nodeId:e.id,path:n})},onClose:function(){return xe(null)},agentTree:r}))),B&&React.createElement("div",{className:"absolute group-hover:scale-110 transition-transform pointer-events-none",style:{position:"absolute",left:"-12px",right:"auto",top:"50%",transform:"translateY(-50%)",width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"}},React.createElement("div",{className:"w-[12px] h-[12px] bg-white border-2 border-slate-400 rounded-full hover:border-indigo-500 hover:bg-indigo-50 cursor-crosshair pointer-events-auto",onMouseUp:function(t){return function(e){var t=e.event,n=e.nodeId,r=e.type;if(t.stopPropagation(),te&&"target"===r&&te.nodeId!==n){var o={id:"e".concat(te.nodeId,"-").concat(n,"-").concat(Date.now()),source:te.nodeId,target:n},i=N.find(function(e){return e.source===o.source&&e.target===o.target});i||C([].concat(u(N),[o]))}ne(null)}({event:t,nodeId:e.id,type:"target"})}})),B&&React.createElement("div",{className:"absolute group-hover:scale-110 transition-transform pointer-events-none",style:{position:"absolute",left:"auto",right:"-12px",top:"50%",transform:"translateY(-50%)",width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"}},React.createElement("div",{className:"w-[12px] h-[12px] bg-white border-2 border-slate-400 rounded-full hover:border-indigo-500 hover:bg-indigo-50 cursor-crosshair pointer-events-auto",onMouseDown:function(t){return function(e){var t=e.event,n=e.nodeId,r=e.type;if(B&&(t.stopPropagation(),"source"===r)){var o=S.find(function(e){return e.id===n}),i=ye[n]||88;ne({nodeId:n,x:o.x+256,y:o.y+i/2})}}({event:t,nodeId:e.id,type:"source"})}})))})),!B&&y&&k&&!o&&React.createElement("div",{className:"absolute w-full max-w-2xl px-4 z-30 pointer-events-none",style:{bottom:"24px",left:"50%",transform:"translateX(-50%)"}},React.createElement("div",{className:"bg-white rounded-2xl shadow-xl border border-slate-200 p-2 flex items-end gap-2 pointer-events-auto"},React.createElement("textarea",{value:P,onChange:function(e){return T(e.target.value)},onKeyDown:function(e){"Enter"!==e.key||e.shiftKey||(e.preventDefault(),_())},placeholder:"Message Team Builder...",className:"w-full max-h-32 min-h-[44px] py-3 px-4 bg-transparent border-0 focus:ring-0 resize-none text-slate-800 placeholder:text-slate-400 text-sm focus:outline-none",rows:1}),React.createElement("button",{onClick:_,disabled:!P.trim(),className:"p-2 rounded-xl mb-1 transition-colors ".concat(P.trim()?"bg-slate-900 text-white hover:bg-slate-700":"bg-slate-100 text-slate-300"),style:P.trim()?{color:"white"}:{}},React.createElement(Vo,{size:18})))))),React.createElement("div",{className:"h-8 bg-white border-t border-slate-200 flex items-center px-4 text-xs text-slate-400 justify-between"},React.createElement("div",{className:"flex items-center gap-2"},React.createElement("span",null,"Team: ",S.length," Agents, ",N.length," Connections"),S.length>0&&!ti(S,N)&&React.createElement("div",{className:"flex items-center gap-1 text-amber-600"},React.createElement(Xo,{size:14}),React.createElement("span",null,Go(S,N)?1!==ei(S,N).length?"Warning: Graph must have exactly 1 root node (found ".concat(ei(S,N).length,")"):"Warning: Invalid graph structure":"Warning: Not all nodes are connected"))),React.createElement("div",null,"Active: ",o||"None")),Y&&React.createElement("div",{className:"fixed inset-0 z-50 flex items-center justify-center"},React.createElement("div",{className:"absolute inset-0 bg-slate-900/40 backdrop-blur-sm",onClick:function(){return X(!1)}}),React.createElement("div",{role:"dialog","aria-modal":"true","aria-labelledby":"reset-dialog-title",className:"relative w-[92%] max-w-[420px] rounded-[12px] bg-white shadow-2xl border border-slate-200 p-[20px] animate-in fade-in zoom-in-95 duration-150"},React.createElement("div",{className:"flex items-start gap-[12px]"},React.createElement("div",{className:"flex h-[36px] w-[36px] items-center justify-center rounded-full bg-red-50 text-red-600"},React.createElement(Yo,{size:18})),React.createElement("div",{className:"flex-1"},React.createElement("h2",{id:"reset-dialog-title",className:"text-[16px] font-semibold text-slate-900"},"Discard unsaved changes?"),React.createElement("p",{className:"mt-[6px] text-[13px] text-slate-600"},"This will reset the canvas back to your last saved state."))),React.createElement("div",{className:"mt-[18px] flex items-center justify-end gap-[8px]"},React.createElement("button",{onClick:function(){return X(!1)},className:"px-[12px] py-[8px] text-[13px] font-medium text-slate-700 hover:text-slate-900"},"Keep Editing"),React.createElement("button",{onClick:function(){z(V.nodes),C(V.edges),H(!1),X(!1)},className:"px-[14px] py-[8px] rounded-[6px] bg-red-600 text-white text-[13px] font-medium hover:bg-red-700 transition-colors"},"Reset Changes")))))}var ii={root:"#7c3aed",history:"#2563eb",tech:"#0891b2",training:"#059669",feature:"#d97706",safety:"#dc2626"},ai=function(e){var t=e.data,n=e.title,o=void 0===n?"Wikipedia LLM Explorer":n,i=s(React.useState(null==t?void 0:t.id),2),l=i[0],c=i[1],u=s(React.useState(new Set([null==t?void 0:t.id])),2),d=u[0],p=u[1],f=s(React.useState(1),2),h=f[0],m=f[1],g=s(React.useState({x:0,y:0}),2),x=g[0],v=g[1],y=s(React.useState(!1),2),b=y[0],w=y[1],k=s(React.useState(!0),2),E=k[0],S=k[1],z=React.useRef(null),R=React.useRef({x:0,y:0}),N=React.useMemo(function(){var e=[],n=function(t,r,o,i,l,c){var s=d.has(t.id);if(e.push(a(a({},t),{},{x:r,y:o,isExpanded:s,depth:c})),s&&t.children){var u=t.children.length,p=(l-i)/u,f=240-15*c;t.children.forEach(function(e,t){var a=i+p*t+p/2,l=r+Math.cos(a)*f,s=o+Math.sin(a)*f;n(e,l,s,a-p/2,a+p/2,c+1)})}};return t&&n(t,0,0,0,2*Math.PI,0),e},[d]),C=React.useMemo(function(){var e=function(t){if(t.id===l)return t;if(t.children){var n,o=r(t.children);try{for(o.s();!(n=o.n()).done;){var i=n.value,a=e(i);if(a)return a}}catch(e){o.e(e)}finally{o.f()}}return null};return e(t)},[l]);React.useEffect(function(){var e=N.find(function(e){return e.id===l});e&&(S(!0),v({x:-e.x,y:-e.y}))},[l]);var I=function(e){c(e),p(function(t){var n=new Set(t);return n.has(e)||n.add(e),n})},P=function(){w(!1)},T=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;if(n.children){if(n.children.some(function(t){return t.id===e}))return n;var o,i=r(n.children);try{for(i.s();!(o=i.n()).done;){var a=o.value,l=T(e,a);if(l)return l}}catch(e){i.e(e)}finally{i.f()}}return null};return React.createElement("div",{className:"flex h-screen w-full bg-zinc-50 text-zinc-900 font-sans overflow-hidden transition-colors duration-500",onMouseMove:function(e){if(b){var t=(e.clientX-R.current.x)/h,n=(e.clientY-R.current.y)/h;v(function(e){return{x:e.x+t,y:e.y+n}}),R.current={x:e.clientX,y:e.clientY}}},onMouseUp:P,onMouseLeave:P},React.createElement("div",{className:"w-96 bg-white border-r border-zinc-200 flex flex-col z-20 shadow-xl overflow-hidden"},React.createElement("div",{className:"p-6 border-b border-zinc-100 flex items-center justify-between bg-white/80 backdrop-blur-md sticky top-0"},React.createElement("div",{className:"flex items-center gap-3"},React.createElement("div",{className:"p-2 bg-violet-600 rounded-lg shadow-lg shadow-violet-200"},React.createElement(jo,{size:20,className:"text-white w-5 h-5"})),React.createElement("div",null,React.createElement("h1",{className:"text-lg font-bold tracking-tight text-zinc-900"},"Concept Map"),React.createElement("p",{className:"text-[10px] text-zinc-400 uppercase font-bold tracking-wider"},o)))),React.createElement("div",{className:"flex-1 overflow-y-auto custom-scrollbar bg-white"},C?React.createElement("div",{className:"p-8 animate-in fade-in slide-in-from-left-4 duration-500"},React.createElement("div",{className:"flex items-center gap-2 mb-4"},React.createElement("span",{className:"px-2.5 py-0.5 rounded-full text-[10px] uppercase font-bold tracking-widest border",style:{backgroundColor:"".concat(ii[C.category],"10"),color:ii[C.category],borderColor:"".concat(ii[C.category],"20")}},C.category),T(C.id)&&React.createElement("span",{className:"text-zinc-400 text-xs flex items-center gap-1"},React.createElement(Mo,{size:12,className:"w-3 h-3"}),T(C.id).label)),React.createElement("h2",{className:"text-3xl font-extrabold mb-6 leading-tight tracking-tight text-zinc-900"},C.label),React.createElement("div",{className:"prose prose-zinc max-w-none"},React.createElement(bo,{className:"text-zinc-600 leading-relaxed text-lg mb-8"},C.content)),C.children&&React.createElement("div",{className:"mt-10"},React.createElement("h3",{className:"text-[10px] font-bold text-zinc-400 uppercase tracking-[0.2em] mb-4 flex items-center gap-2"},"Sub-Dimensions ",React.createElement("div",{className:"h-px flex-1 bg-zinc-100"})),React.createElement("div",{className:"grid gap-2"},C.children.map(function(e){return React.createElement("button",{key:e.id,onClick:function(){return I(e.id)},className:"group flex items-center justify-between p-4 rounded-xl bg-zinc-50 hover:bg-zinc-100 border border-zinc-100 hover:border-zinc-200 transition-all duration-300"},React.createElement("div",{className:"flex items-center gap-3"},React.createElement("div",{className:"w-1.5 h-1.5 rounded-full",style:{backgroundColor:ii[e.category]}}),React.createElement("span",{className:"text-sm font-semibold text-zinc-700 group-hover:text-zinc-900 transition-colors"},e.label)),React.createElement(Bo,{size:14,className:"text-zinc-300 group-hover:text-zinc-500 transition-transform group-hover:rotate-90 w-3.5 h-3.5"}))})))):React.createElement("div",{className:"h-full flex flex-col items-center justify-center p-12 text-center"},React.createElement("div",{className:"w-16 h-16 rounded-full bg-zinc-100 flex items-center justify-center mb-6"},React.createElement(Io,{size:32,className:"text-zinc-300 w-8 h-8"})),React.createElement("h3",{className:"text-xl font-bold text-zinc-900 mb-2"},"Select a Topic"),React.createElement("p",{className:"text-zinc-400 text-sm"},"Pick a node on the map to explore its underlying principles and history.")))),React.createElement("div",{ref:z,onMouseDown:function(e){(e.target===z.current||e.target.closest(".pan-area"))&&(w(!0),S(!1),R.current={x:e.clientX,y:e.clientY})},className:"flex-1 relative bg-zinc-50 overflow-hidden select-none cursor-grab ".concat(b?"cursor-grabbing":"")},React.createElement("div",{className:"absolute inset-0 pointer-events-none pan-area"},React.createElement("div",{className:"h-full w-full opacity-40",style:{backgroundImage:"radial-gradient(#e4e4e7 1px, transparent 1px)",backgroundSize:"32px 32px"}})),React.createElement("div",{className:"absolute inset-0 ".concat(E?"transition-transform duration-700 ease-in-out":""),style:{transform:"scale(".concat(h,") translate(calc(50% + ").concat(x.x,"px), calc(50% + ").concat(x.y,"px))"),transformOrigin:"0 0"}},React.createElement("svg",{className:"absolute inset-0 overflow-visible pointer-events-none"},N.map(function(e){var t=N.find(function(t){var n;return null===(n=t.children)||void 0===n?void 0:n.some(function(t){return t.id===e.id})});return t?React.createElement("line",{key:"line-".concat(e.id),x1:t.x,y1:t.y,x2:e.x,y2:e.y,stroke:ii[e.category],strokeWidth:"1.5",strokeOpacity:"0.15",strokeDasharray:"4 4"}):null})),N.map(function(e){return React.createElement("div",{key:e.id,onClick:function(t){t.stopPropagation(),I(e.id)},className:"\n absolute cursor-pointer transition-all duration-300 ease-out\n flex items-center justify-center rounded-full border-2 \n group hover:shadow-[0_8px_24px_rgba(0,0,0,0.08)]\n ".concat(l===e.id?"z-20 scale-110 shadow-xl":"scale-100 z-10","\n "),style:{width:Math.max(90,140-20*e.depth),height:Math.max(90,140-20*e.depth),left:e.x,top:e.y,transform:"translate(-50%, -50%)",backgroundColor:l===e.id?ii[e.category]:"white",borderColor:l===e.id?"transparent":"".concat(ii[e.category],"40")}},React.createElement("div",{className:"flex flex-col items-center p-3 text-center"},React.createElement("span",{className:"\n text-[11px] md:text-xs font-bold leading-tight\n ".concat(l===e.id?"text-white":"text-zinc-700 group-hover:text-zinc-900","\n ")},e.label),e.children&&React.createElement("div",{className:"\n mt-1.5 px-2 py-0.5 rounded-full text-[8px] font-black uppercase tracking-tighter\n ".concat(l===e.id?"bg-white/20 text-white":"bg-zinc-100 text-zinc-400 group-hover:bg-zinc-200","\n ")},d.has(e.id)?"Collapse":"+".concat(e.children.length))))})),React.createElement("div",{className:"absolute bottom-8 right-8 !left-auto !top-auto !w-fit !h-fit flex flex-col gap-3"},React.createElement("div",{className:"flex bg-white/90 backdrop-blur-md border border-zinc-200 rounded-2xl p-1 shadow-lg shadow-zinc-200/50"},React.createElement("button",{onClick:function(){S(!0),m(function(e){return Math.min(e+.2,2)})},className:"p-3 hover:bg-zinc-100 rounded-xl transition-colors text-zinc-400 hover:text-zinc-900",title:"Zoom In"},React.createElement(Bo,{size:18,className:"w-[18px] h-[18px]"})),React.createElement("div",{className:"w-px h-6 bg-zinc-200 self-center"}),React.createElement("button",{onClick:function(){S(!0),m(function(e){return Math.max(e-.2,.5)})},className:"p-3 hover:bg-zinc-100 rounded-xl transition-colors text-zinc-400 hover:text-zinc-900",title:"Zoom Out"},React.createElement(Do,{size:18,className:"w-[18px] h-[18px]"})),React.createElement("div",{className:"w-px h-6 bg-zinc-200 self-center"}),React.createElement("button",{onClick:function(){S(!0),v({x:0,y:0})},className:"p-3 hover:bg-zinc-100 rounded-xl transition-colors text-zinc-400 hover:text-zinc-900",title:"Reset View"},React.createElement(Lo,{size:18,className:"w-[18px] h-[18px]"}))),React.createElement("div",{className:"bg-white/90 backdrop-blur-md border border-zinc-200 rounded-2xl p-4 shadow-lg shadow-zinc-200/50"},React.createElement("h4",{className:"text-[10px] font-bold text-zinc-400 uppercase tracking-widest mb-3"},"Key"),React.createElement("div",{className:"space-y-2"},Object.entries(ii).map(function(e){var t=s(e,2),n=t[0],r=t[1];return React.createElement("div",{key:n,className:"flex items-center gap-3"},React.createElement("div",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:r}}),React.createElement("span",{className:"text-[11px] font-bold text-zinc-500 capitalize"},n))})))),React.createElement("div",{className:"absolute top-8 right-8 !left-auto !bottom-auto !w-fit !h-fit bg-zinc-900 text-white px-4 py-2 rounded-full text-xs font-bold shadow-xl flex items-center gap-2"},React.createElement(Lo,{size:14,className:"text-zinc-400 w-3.5 h-3.5"}),React.createElement("span",{className:"whitespace-nowrap"},"Drag background to pan"))),React.createElement("style",null,"\n .custom-scrollbar::-webkit-scrollbar {\n width: 5px;\n }\n .custom-scrollbar::-webkit-scrollbar-track {\n background: transparent;\n }\n .custom-scrollbar::-webkit-scrollbar-thumb {\n background: #e4e4e7;\n border-radius: 10px;\n }\n .custom-scrollbar::-webkit-scrollbar-thumb:hover {\n background: #d4d4d8;\n }\n .cursor-grab { cursor: grab; }\n .cursor-grabbing { cursor: grabbing; }\n "))},li={v1:{TeamBuilder:function(e){return(0,e.withBindings)(oi)},KnowledgeGraph:function(e){return(0,e.withBindings)(ai)}}};export{li as default};
|
|
37
|
+
*/var Go=function(e){e.value;var t=e.onChange,n=e.onClose,r=e.agentTree,o=s(React.useState([]),2),a=o[0],i=o[1],l=r;a.forEach(function(e){l[e]&&(l=l[e])});var c=Array.isArray(l),d=function(e){var r=e.key;c?(t({path:[].concat(u(a),[r])}),n()):i([].concat(u(a),[r]))};return React.createElement("div",{className:"absolute top-full left-0 mt-[8px] bg-white rounded-[8px] shadow-xl border border-slate-200 z-50 animate-in fade-in zoom-in-95 duration-100",style:{width:"256px"}},React.createElement("div",{className:"p-[8px] bg-slate-50 border-b border-slate-200 flex items-center justify-between"},a.length>0?React.createElement("button",{onClick:function(){i(a.slice(0,-1))},className:"text-[12px] font-medium text-blue-500 hover:text-blue-600 flex items-center"},"← Back"):React.createElement("span",{className:"text-[12px] font-semibold text-slate-500 uppercase tracking-wider"},"Select Source"),React.createElement("button",{onClick:n,className:"text-slate-400 hover:text-red-500"},React.createElement(Zo,{size:14}))),React.createElement("div",{className:"max-h-[240px] overflow-y-auto p-[4px] bg-white text-slate-900"},c?l.map(function(e){return React.createElement("button",{key:e,onClick:function(){return d({key:e})},className:"w-full text-left px-[12px] py-[8px] text-[14px] text-slate-700 hover:bg-blue-50 rounded flex items-center gap-[8px]"},React.createElement("div",{className:"w-[8px] h-[8px] rounded-full bg-green-500"}),e)}):Object.keys(l).map(function(e){return React.createElement("button",{key:e,onClick:function(){return d({key:e})},className:"w-full text-left px-[12px] py-[8px] text-[14px] text-slate-700 hover:bg-slate-100 rounded flex items-center justify-between group"},React.createElement("div",{className:"flex items-center gap-[8px]"},0===a.length?"Shared"===e?"🌍":"🔒":"📁",React.createElement("span",null,e)),React.createElement(Ao,{size:14,className:"text-slate-400 group-hover:text-slate-600"}))}),!c&&0===Object.keys(l).length&&React.createElement("div",{className:"p-2 text-slate-400 text-xs text-center italic"},"No items found")))},ea=function(e){var t=e.node,n=e.isActive,r=e.isRootNode,o=e.isEditing,a=e.agentName,l=e.breadcrumbs,c=e.agentTree,s=e.openSelectorId,u=e.setOpenSelectorId,d=e.updateAgent,p=e.handleView,f=e.handleEdit,h=e.deleteNode,m=e.onNodeDragStart,g=e.nodeRef,x=e.style,v=e.isAbsolute,y=void 0===v||v,b=e.colour,w=e.children;return React.createElement("div",{ref:g,"data-node":"true",onMouseDown:function(e){return m?m({event:e,node:t}):null},style:i({width:"256px",height:"fit-content",boxSizing:"border-box",fontSize:"14px",lineHeight:"1.5",fontFamily:"sans-serif"},x),className:"".concat(y?"absolute":"relative"," bg-white rounded-[12px] shadow-lg border-2 transition-shadow duration-200 group flex flex-col ").concat(s===t.id?"z-50":"z-10","\n ").concat(n?"border-green-500 shadow-green-500/30 ring-1 ring-green-500":"border-blue-500 hover:border-blue-600","\n ")},React.createElement("div",{className:"rounded-t-[12px] w-full ".concat(n?"bg-green-500":"bg-slate-100"),style:{height:"8px"}}),React.createElement("div",{className:"flex flex-col",style:{padding:"16px",gap:"12px"}},React.createElement("div",{className:"flex items-start justify-between"},React.createElement("div",{className:"flex flex-col"},l&&React.createElement("span",{className:"text-slate-400 truncate max-w-[150px]",title:l,style:{fontSize:"10px"}},l)),React.createElement("div",{className:"flex gap-[4px]"},p&&t.data.agentPath.length>0&&React.createElement("button",{onClick:function(){return p({agentPath:t.data.agentPath.join("/")})},className:"p-[6px] rounded-[6px] text-slate-400 hover:text-blue-600 hover:bg-blue-50 transition-colors",title:"View Agent"},React.createElement(jo,{size:16})),o&&f&&t.data.agentPath.length>0&&React.createElement("button",{onClick:function(){return f({agentPath:t.data.agentPath.join("/")})},className:"p-[6px] rounded-[6px] text-slate-400 hover:text-amber-600 hover:bg-amber-50 transition-colors",title:"Edit Agent"},React.createElement(Ko,{size:16})),r&&React.createElement("div",{className:"p-[6px] rounded-[6px] transition-all text-indigo-600 bg-indigo-50",title:"Root Node"},React.createElement(Do,{size:18})),n&&React.createElement("div",{className:"p-[6px] rounded-[6px] transition-all text-green-600 bg-green-50",title:"Active Node"},React.createElement(Xo,{size:18,className:"animate-spin"})),o&&h&&React.createElement("button",{onClick:function(){return h({id:t.id})},className:"p-[6px] rounded-[6px] text-slate-300 hover:text-red-600 hover:bg-red-50 transition-colors"},React.createElement($o,{size:16})))),React.createElement("div",{className:"relative nodrag"},React.createElement("button",{onClick:function(){return u(s===t.id?null:t.id)},className:"w-full flex items-center justify-between px-[12px] py-[8px] bg-slate-50 border border-slate-200 rounded-[6px] text-[14px] text-slate-600 hover:bg-slate-100 transition-colors"},React.createElement("div",{className:"flex items-center gap-[8px] overflow-hidden"},b&&React.createElement("div",{className:"w-[10px] h-[10px] rounded-full shrink-0",style:{backgroundColor:b}}),React.createElement("span",{className:"truncate"},a)),React.createElement(Po,{size:14,className:"shrink-0"})),s===t.id&&o&&React.createElement(Go,{value:t.data.agentPath,onChange:function(e){var n=e.path;return d({nodeId:t.id,path:n})},onClose:function(){return u(null)},agentTree:c}))),w)};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:host,:root{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-600:oklch(66.6% .179 58.318);--color-green-50:oklch(98.2% .018 155.826);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-blue-50:oklch(97% .014 254.604);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-indigo-50:oklch(96.2% .018 272.314);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-indigo-700:oklch(45.7% .24 277.023);--color-violet-200:oklch(89.4% .057 293.283);--color-violet-600:oklch(54.1% .281 293.009);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-900:oklch(20.8% .042 265.755);--color-zinc-50:oklch(98.5% 0 0);--color-zinc-100:oklch(96.7% .001 286.375);--color-zinc-200:oklch(92% .004 286.32);--color-zinc-300:oklch(87.1% .006 286.286);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-500:oklch(55.2% .016 285.938);--color-zinc-600:oklch(44.2% .017 285.786);--color-zinc-700:oklch(37% .013 285.805);--color-zinc-900:oklch(21% .006 285.885);--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-2xl:42rem;--text-xs:.75rem;--text-xs--line-height:1.33333;--text-sm:.875rem;--text-sm--line-height:1.42857;--text-base:1rem;--text-base--line-height:1.5;--text-lg:1.125rem;--text-lg--line-height:1.55556;--text-xl:1.25rem;--text-xl--line-height:1.4;--text-3xl:1.875rem;--text-3xl--line-height:1.2;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tighter:-.05em;--tracking-tight:-.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-tight:1.25;--leading-relaxed:1.625;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--blur-sm:8px;--blur-md:12px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,::backdrop,:after,:before{border:0 solid;box-sizing:border-box;margin:0;padding:0}::file-selector-button{border:0 solid;box-sizing:border-box;margin:0;padding:0}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:var(--default-font-feature-settings,normal);-webkit-tap-highlight-color:transparent;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-variation-settings:var(--default-font-variation-settings,normal);line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:var(--default-mono-font-feature-settings,normal);font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:1em;font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}button,input,optgroup,select,textarea{font-feature-settings:inherit;background-color:#0000;border-radius:0;color:inherit;font:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}::file-selector-button{font-feature-settings:inherit;background-color:#0000;border-radius:0;color:inherit;font:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{border-width:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;white-space:nowrap;width:1px}.absolute,.sr-only{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.\\!top-auto{top:auto!important}.top-0{top:calc(var(--spacing)*0)}.top-8{top:calc(var(--spacing)*8)}.top-full{top:100%}.right-8{right:calc(var(--spacing)*8)}.\\!bottom-auto{bottom:auto!important}.bottom-6{bottom:calc(var(--spacing)*6)}.bottom-8{bottom:calc(var(--spacing)*8)}.\\!left-auto{left:auto!important}.left-0{left:calc(var(--spacing)*0)}.left-1{left:calc(var(--spacing)*1)}.left-1\\/2{left:50%}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.my-2{margin-block:calc(var(--spacing)*2)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-1\\.5{margin-top:calc(var(--spacing)*1.5)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-10{margin-top:calc(var(--spacing)*10)}.mt-\\[6px\\]{margin-top:6px}.mt-\\[8px\\]{margin-top:8px}.mt-\\[18px\\]{margin-top:18px}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.ml-2{margin-left:calc(var(--spacing)*2)}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.table{display:table}.table-row{display:table-row}.\\!h-fit{height:-moz-fit-content!important;height:fit-content!important}.h-1{height:calc(var(--spacing)*1)}.h-1\\.5{height:calc(var(--spacing)*1.5)}.h-2{height:calc(var(--spacing)*2)}.h-2\\.5{height:calc(var(--spacing)*2.5)}.h-3{height:calc(var(--spacing)*3)}.h-3\\.5{height:calc(var(--spacing)*3.5)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-14{height:calc(var(--spacing)*14)}.h-16{height:calc(var(--spacing)*16)}.h-\\[8px\\]{height:8px}.h-\\[10px\\]{height:10px}.h-\\[12px\\]{height:12px}.h-\\[18px\\]{height:18px}.h-\\[36px\\]{height:36px}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-32{max-height:calc(var(--spacing)*32)}.max-h-\\[240px\\]{max-height:240px}.min-h-\\[44px\\]{min-height:44px}.min-h-\\[500px\\]{min-height:500px}.\\!w-fit{width:-moz-fit-content!important;width:fit-content!important}.w-1{width:calc(var(--spacing)*1)}.w-1\\.5{width:calc(var(--spacing)*1.5)}.w-2{width:calc(var(--spacing)*2)}.w-2\\.5{width:calc(var(--spacing)*2.5)}.w-3{width:calc(var(--spacing)*3)}.w-3\\.5{width:calc(var(--spacing)*3.5)}.w-5{width:calc(var(--spacing)*5)}.w-8{width:calc(var(--spacing)*8)}.w-16{width:calc(var(--spacing)*16)}.w-64{width:calc(var(--spacing)*64)}.w-96{width:calc(var(--spacing)*96)}.w-\\[8px\\]{width:8px}.w-\\[10px\\]{width:10px}.w-\\[12px\\]{width:12px}.w-\\[18px\\]{width:18px}.w-\\[36px\\]{width:36px}.w-\\[92\\%\\]{width:92%}.w-full{width:100%}.w-px{width:1px}.max-w-2xl{max-width:var(--container-2xl)}.max-w-\\[120px\\]{max-width:120px}.max-w-\\[150px\\]{max-width:150px}.max-w-\\[420px\\]{max-width:420px}.max-w-none{max-width:none}.max-w-sm{max-width:var(--container-sm)}.flex-1{flex:1}.flex-shrink,.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.-translate-x-1{--tw-translate-x:calc(var(--spacing)*-1)}.-translate-x-1,.-translate-x-1\\/2{translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-1\\/2{--tw-translate-x:-50%}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%}.scale-100,.scale-110{scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-110{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-crosshair{cursor:crosshair}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-none{resize:none}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.content-start{align-content:flex-start}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.gap-\\[4px\\]{gap:4px}.gap-\\[6px\\]{gap:6px}.gap-\\[8px\\]{gap:8px}.gap-\\[12px\\]{gap:12px}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-end:calc(var(--spacing)*1*(1 - var(--tw-space-y-reverse)));margin-block-start:calc(var(--spacing)*1*var(--tw-space-y-reverse))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-end:calc(var(--spacing)*2*(1 - var(--tw-space-y-reverse)));margin-block-start:calc(var(--spacing)*2*var(--tw-space-y-reverse))}.self-center{align-self:center}.truncate{text-overflow:ellipsis;white-space:nowrap}.overflow-hidden,.truncate{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\\[6px\\]{border-radius:6px}.rounded-\\[8px\\]{border-radius:8px}.rounded-\\[12px\\]{border-radius:12px}.rounded-full{border-radius:3.40282e+38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t-\\[12px\\]{border-top-left-radius:12px;border-top-right-radius:12px}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-blue-200{border-color:var(--color-blue-200)}.border-blue-500{border-color:var(--color-blue-500)}.border-green-500{border-color:var(--color-green-500)}.border-slate-100{border-color:var(--color-slate-100)}.border-slate-200{border-color:var(--color-slate-200)}.border-slate-300{border-color:var(--color-slate-300)}.border-slate-400{border-color:var(--color-slate-400)}.border-zinc-100{border-color:var(--color-zinc-100)}.border-zinc-200{border-color:var(--color-zinc-200)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-green-50{background-color:var(--color-green-50)}.bg-green-500{background-color:var(--color-green-500)}.bg-indigo-50{background-color:var(--color-indigo-50)}.bg-indigo-600{background-color:var(--color-indigo-600)}.bg-purple-600{background-color:var(--color-purple-600)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-600{background-color:var(--color-red-600)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-100\\/50{background-color:#f1f5f980}@supports (color:color-mix(in lab,red,red)){.bg-slate-100\\/50{background-color:color-mix(in oklab,var(--color-slate-100)50%,transparent)}}.bg-slate-200{background-color:var(--color-slate-200)}.bg-slate-300{background-color:var(--color-slate-300)}.bg-slate-800{background-color:var(--color-slate-800)}.bg-slate-900{background-color:var(--color-slate-900)}.bg-slate-900\\/40{background-color:#0f172b66}@supports (color:color-mix(in lab,red,red)){.bg-slate-900\\/40{background-color:color-mix(in oklab,var(--color-slate-900)40%,transparent)}}.bg-transparent{background-color:#0000}.bg-violet-600{background-color:var(--color-violet-600)}.bg-white{background-color:var(--color-white)}.bg-white\\/20{background-color:#fff3}@supports (color:color-mix(in lab,red,red)){.bg-white\\/20{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.bg-white\\/80{background-color:#fffc}@supports (color:color-mix(in lab,red,red)){.bg-white\\/80{background-color:color-mix(in oklab,var(--color-white)80%,transparent)}}.bg-white\\/90{background-color:#ffffffe6}@supports (color:color-mix(in lab,red,red)){.bg-white\\/90{background-color:color-mix(in oklab,var(--color-white)90%,transparent)}}.bg-zinc-50{background-color:var(--color-zinc-50)}.bg-zinc-100{background-color:var(--color-zinc-100)}.bg-zinc-200{background-color:var(--color-zinc-200)}.bg-zinc-900{background-color:var(--color-zinc-900)}.bg-grid-slate-200{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'40\' height=\'40\'%3E%3Cpath d=\'M0 0h40v40H0z\' fill=\'none\'/%3E%3Cpath d=\'M40 0H0v40\' fill=\'none\' stroke=\'%23E2E8F0\'/%3E%3C/svg%3E")}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.p-12{padding:calc(var(--spacing)*12)}.p-\\[4px\\]{padding:4px}.p-\\[6px\\]{padding:6px}.p-\\[8px\\]{padding:8px}.p-\\[20px\\]{padding:20px}.px-1{padding-inline:calc(var(--spacing)*1)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\\.5{padding-inline:calc(var(--spacing)*2.5)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-\\[12px\\]{padding-inline:12px}.px-\\[14px\\]{padding-inline:14px}.px-\\[16px\\]{padding-inline:16px}.py-0{padding-block:calc(var(--spacing)*0)}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-\\[8px\\]{padding-block:8px}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[8px\\]{font-size:8px}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[12px\\]{font-size:12px}.text-\\[13px\\]{font-size:13px}.text-\\[14px\\]{font-size:14px}.text-\\[16px\\]{font-size:16px}.text-\\[18px\\]{font-size:18px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\\[0\\.2em\\]{--tw-tracking:.2em;letter-spacing:.2em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-tighter{--tw-tracking:var(--tracking-tighter);letter-spacing:var(--tracking-tighter)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.whitespace-nowrap{white-space:nowrap}.text-amber-600{color:var(--color-amber-600)}.text-blue-500{color:var(--color-blue-500)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-indigo-600{color:var(--color-indigo-600)}.text-purple-600{color:var(--color-purple-600)}.text-red-600{color:var(--color-red-600)}.text-slate-100{color:var(--color-slate-100)}.text-slate-300{color:var(--color-slate-300)}.text-slate-400{color:var(--color-slate-400)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-slate-800{color:var(--color-slate-800)}.text-slate-900{color:var(--color-slate-900)}.text-white{color:var(--color-white)}.text-zinc-300{color:var(--color-zinc-300)}.text-zinc-400{color:var(--color-zinc-400)}.text-zinc-500{color:var(--color-zinc-500)}.text-zinc-600{color:var(--color-zinc-600)}.text-zinc-700{color:var(--color-zinc-700)}.text-zinc-900{color:var(--color-zinc-900)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.italic{font-style:italic}.underline{text-decoration-line:underline}.opacity-20{opacity:.2}.opacity-40{opacity:.4}.opacity-60{opacity:.6}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040)}.shadow-2xl,.shadow-lg{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a)}.shadow-sm,.shadow-xl{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-green-500{--tw-shadow-color:oklch(72.3% .219 149.579)}@supports (color:color-mix(in lab,red,red)){.shadow-green-500{--tw-shadow-color:color-mix(in oklab,var(--color-green-500)var(--tw-shadow-alpha),transparent)}}.shadow-green-500\\/30{--tw-shadow-color:#00c7584d}@supports (color:color-mix(in lab,red,red)){.shadow-green-500\\/30{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-green-500)30%,transparent)var(--tw-shadow-alpha),transparent)}}.shadow-violet-200{--tw-shadow-color:oklch(89.4% .057 293.283)}@supports (color:color-mix(in lab,red,red)){.shadow-violet-200{--tw-shadow-color:color-mix(in oklab,var(--color-violet-200)var(--tw-shadow-alpha),transparent)}}.shadow-zinc-200{--tw-shadow-color:oklch(92% .004 286.32)}@supports (color:color-mix(in lab,red,red)){.shadow-zinc-200{--tw-shadow-color:color-mix(in oklab,var(--color-zinc-200)var(--tw-shadow-alpha),transparent)}}.shadow-zinc-200\\/50{--tw-shadow-color:#e4e4e780}@supports (color:color-mix(in lab,red,red)){.shadow-zinc-200\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-zinc-200)50%,transparent)var(--tw-shadow-alpha),transparent)}}.ring-green-500{--tw-ring-color:var(--color-green-500)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md))}.backdrop-blur-md,.backdrop-blur-sm{backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm))}.backdrop-filter{backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.transition-all{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.transition-colors{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.transition-shadow{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.transition-transform{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.duration-700{--tw-duration:.7s;transition-duration:.7s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}@media (hover:hover){.group-hover\\:scale-110:is(:where(.group):hover *){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.group-hover\\:rotate-90:is(:where(.group):hover *){rotate:90deg}.group-hover\\:bg-zinc-200:is(:where(.group):hover *){background-color:var(--color-zinc-200)}.group-hover\\:stroke-red-500:is(:where(.group):hover *){stroke:var(--color-red-500)}.group-hover\\:text-slate-600:is(:where(.group):hover *){color:var(--color-slate-600)}.group-hover\\:text-zinc-500:is(:where(.group):hover *){color:var(--color-zinc-500)}.group-hover\\:text-zinc-900:is(:where(.group):hover *){color:var(--color-zinc-900)}}.placeholder\\:text-slate-400::-moz-placeholder{color:var(--color-slate-400)}.placeholder\\:text-slate-400::placeholder{color:var(--color-slate-400)}.first\\:mt-0:first-child{margin-top:calc(var(--spacing)*0)}.last\\:mb-0:last-child{margin-bottom:calc(var(--spacing)*0)}@media (hover:hover){.hover\\:border-blue-600:hover{border-color:var(--color-blue-600)}.hover\\:border-indigo-500:hover{border-color:var(--color-indigo-500)}.hover\\:border-purple-300:hover{border-color:var(--color-purple-300)}.hover\\:border-zinc-200:hover{border-color:var(--color-zinc-200)}.hover\\:bg-amber-50:hover{background-color:var(--color-amber-50)}.hover\\:bg-blue-50:hover{background-color:var(--color-blue-50)}.hover\\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\\:bg-green-600:hover{background-color:var(--color-green-600)}.hover\\:bg-indigo-50:hover{background-color:var(--color-indigo-50)}.hover\\:bg-indigo-700:hover{background-color:var(--color-indigo-700)}.hover\\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\\:bg-red-700:hover{background-color:var(--color-red-700)}.hover\\:bg-slate-50:hover{background-color:var(--color-slate-50)}.hover\\:bg-slate-100:hover{background-color:var(--color-slate-100)}.hover\\:bg-slate-700:hover{background-color:var(--color-slate-700)}.hover\\:bg-zinc-100:hover{background-color:var(--color-zinc-100)}.hover\\:text-amber-600:hover{color:var(--color-amber-600)}.hover\\:text-blue-600:hover{color:var(--color-blue-600)}.hover\\:text-red-500:hover{color:var(--color-red-500)}.hover\\:text-red-600:hover{color:var(--color-red-600)}.hover\\:text-slate-900:hover{color:var(--color-slate-900)}.hover\\:text-zinc-900:hover{color:var(--color-zinc-900)}.hover\\:shadow-\\[0_8px_24px_rgba\\(0\\,0\\,0\\,0\\.08\\)\\]:hover{--tw-shadow:0 8px 24px var(--tw-shadow-color,#00000014);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus\\:ring-0:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-purple-500:focus{--tw-ring-color:var(--color-purple-500)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}@media (min-width:40rem){.sm\\:block{display:block}}@media (min-width:48rem){.md\\:block{display:block}.md\\:w-80{width:calc(var(--spacing)*80)}.md\\:flex-row{flex-direction:row}.md\\:text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(1turn)}}');var ta={Shared:{"Content Creation":["Blog Writer","Tweet Generator","SEO Optimizer"],"Data Analysis":["Market Trends","Sentiment Analyzer","Chart Builder"],Utility:["Translator","Summarizer"]},Users:{user_jdoe:["My Calendar","Email Sorter"],user_alice:["Code Reviewer","Bug Hunter"],team_alpha:["Sprint Planner","Jira Sync"]}},na={h1:function(e){var t=e.children;return React.createElement("h1",{className:"text-xl font-bold mb-2 mt-4 first:mt-0"},t)},h2:function(e){var t=e.children;return React.createElement("h2",{className:"text-lg font-semibold mb-2 mt-3 first:mt-0"},t)},h3:function(e){var t=e.children;return React.createElement("h3",{className:"text-base font-semibold mb-1 mt-2 first:mt-0"},t)},p:function(e){var t=e.children;return React.createElement("p",{className:"mb-2 last:mb-0"},t)},ul:function(e){var t=e.children;return React.createElement("ul",{className:"list-disc list-inside my-2 space-y-1"},t)},ol:function(e){var t=e.children;return React.createElement("ol",{className:"list-decimal list-inside my-2 space-y-1"},t)},li:function(e){var t=e.children;return React.createElement("li",{className:"ml-2"},t)},code:function(e){var t=e.inline,n=e.children;return t?React.createElement("code",{className:"bg-slate-200 text-slate-800 px-1 py-0.5 rounded text-xs font-mono"},n):React.createElement("code",null,n)},pre:function(e){var t=e.children;return React.createElement("pre",{className:"bg-slate-800 text-slate-100 p-3 rounded text-xs overflow-x-auto my-2"},t)},strong:function(e){var t=e.children;return React.createElement("strong",null,t)},em:function(e){var t=e.children;return React.createElement("em",null,t)}},ra=function(e,t,n,r){var o=Math.abs(n-e),a=Math.max(.5*o,50);return"M ".concat(e," ").concat(t," C ").concat(e+a," ").concat(t,", ").concat(n-a," ").concat(r,", ").concat(n," ").concat(r)},oa=function(e,t){if(0===e.length)return!0;if(1===e.length)return!0;var n={};e.forEach(function(e){n[e.id]=[]}),t.forEach(function(e){n[e.source].push(e.target),n[e.target].push(e.source)});var r=new Set,o=[e[0].id];for(r.add(e[0].id);o.length>0;){var a=o.shift();n[a].forEach(function(e){r.has(e)||(r.add(e),o.push(e))})}return r.size===e.length},aa=function(e,t){var n=new Set;return t.forEach(function(e){n.add(e.target)}),e.filter(function(e){return!n.has(e.id)})},ia=function(e,t){if(0===e.length)return!0;var n=oa(e,t),r=aa(e,t);return n&&1===r.length},la=function(e){var t=e.activeNode,n=e.nodes,r=e.nodeHeights,o=e.currentMessage;e.pan,e.containerRef;var a=s(React.useState("hidden"),2),l=a[0],c=a[1],u=s(React.useState(null),2),d=u[0],p=u[1],f=React.useRef(null),h=React.useRef(null),m="string"==typeof o?{node:t,message:o}:o,g=null==m?void 0:m.node,x=null==m?void 0:m.message,v=n.find(function(e){return g===e.data.agentPath.join("/")});if(React.useEffect(function(){var e=f.current,t=!!x,n=!!e;t||n?!t&&n?(c("disappearing"),requestAnimationFrame(function(){h.current&&h.current.offsetHeight}),setTimeout(function(){c("hidden"),p(null)},300)):t&&!n?(p(m),c("appearing"),setTimeout(function(){c("visible")},400)):t&&n&&e!==x?(p(m),c("visible")):t&&n&&e===x&&(p(m),"hidden"===l&&c("visible")):(c("hidden"),p(null)),f.current=x},[m,g,x]),!g||null==d||!d.message||"hidden"===l)return null;if(!v)return null;var y=r[v.id]||88,b=v.x,w=v.y+y+20,k=v.x+128,E=v.y+y/2,R=(k-b)/640*100,S=(E-w)/280*100,z={},N="translate(".concat(b,"px, ").concat(w,"px)");return"appearing"===l?z={animation:"popOut-".concat(b,"-").concat(w," 0.4s ease-out forwards")}:"disappearing"===l&&(z={animation:"shrinkIn-".concat(b,"-").concat(w,"-").concat(k,"-").concat(E," 0.3s ease-in forwards")}),React.createElement(React.Fragment,null,React.createElement("style",null,"\n @keyframes popOut-".concat(b,"-").concat(w," {\n 0% {\n transform: translate(").concat(b,"px, ").concat(w,"px) scale(0.3);\n opacity: 0;\n }\n 80% {\n transform: translate(").concat(b,"px, ").concat(w,"px) scale(1.05);\n opacity: 1;\n }\n 100% {\n transform: translate(").concat(b,"px, ").concat(w,"px) scale(1);\n opacity: 1;\n }\n }\n @keyframes shrinkIn-").concat(b,"-").concat(w,"-").concat(k,"-").concat(E," {\n from {\n transform: translate(").concat(b,"px, ").concat(w,"px) scale(1);\n opacity: 1;\n }\n to {\n transform: translate(").concat(k,"px, ").concat(E,"px) scale(0);\n opacity: 0;\n }\n }\n ")),React.createElement("div",{ref:h,className:"absolute pointer-events-none z-20",style:i(i({},"visible"!==l||z.animation?{}:{transform:N}),{},{transformOrigin:"".concat(R,"% ").concat(S,"%"),width:"".concat(640,"px"),maxHeight:"".concat(280,"px")},z)},React.createElement("div",{className:"absolute z-10 pointer-events-auto",style:{left:"".concat(128,"px"),transform:"translateX(-50%)",top:"-12px",width:0,height:0,borderLeft:"12px solid transparent",borderRight:"12px solid transparent",borderBottom:"12px solid ".concat(t?"rgba(255, 255, 255, 0.95)":"#ffffff"),filter:"drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.1))"}}),React.createElement("div",{className:"bg-white rounded-2xl shadow-xl border-slate-300 overflow-hidden pointer-events-auto",style:{backgroundColor:t?"rgba(255, 255, 255, 0.95)":"#ffffff",borderWidth:"3px",maskImage:t?"linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3))":"none",WebkitMaskImage:t?"linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3))":"none"}},React.createElement("div",{className:"p-4 overflow-y-auto text-slate-800 text-sm leading-relaxed",style:{maxHeight:"".concat(280,"px")}},React.createElement(bo,{components:na},d.message)))))};function ca(e){var t=e.agentTree,r=void 0===t?ta:t,o=e.activeNode,a=e.initialNodes,c=void 0===a?[]:a,d=e.initialEdges,p=void 0===d?[]:d,f=e.handleSave,h=e.handleView,m=e.handleEdit,g=e.initialEditable,x=void 0!==g&&g,v=e.currentMessage,y=e.handlePrompt,b=e.isFollowingActive,w=e.showPrompt,k=void 0===w?!o:w,E=s(React.useState(c),2),R=E[0],S=E[1],z=s(React.useState(p),2),N=z[0],C=z[1],I=s(React.useState(""),2),T=I[0],P=I[1],A=s(React.useState(null),2),M=A[0],O=A[1];React.useEffect(function(){O(null)},[v]);var j,D="string"==typeof(j=v)?j:null==j?void 0:j.message,L=D===M?null:v,_=function(){T.trim()&&(y&&y({prompt:T}),P(""))},F=s(React.useState(x),2),B=F[0],H=F[1],U=s(React.useState({nodes:c,edges:p}),2),V=U[0],q=U[1],W=s(React.useState(!1),2),Y=W[0],X=W[1],K=s(React.useState(!0),2),$=K[0],J=K[1];React.useEffect(function(){b&&J(!0)},[b]);var Q=s(React.useState(null),2),Z=Q[0],G=Q[1],ee=s(React.useState(null),2),te=ee[0],ne=ee[1],re=s(React.useState({x:0,y:0}),2),oe=re[0],ae=re[1],ie=s(React.useState(function(){try{var e=sessionStorage.getItem("teambuilder-pan");return e?JSON.parse(e):{x:0,y:0}}catch(e){return{x:0,y:0}}}),2),le=ie[0],ce=ie[1],se=s(React.useState(!1),2),ue=se[0],de=se[1],pe=s(React.useState({x:0,y:0}),2),fe=pe[0],he=pe[1],me=s(React.useState(null),2),ge=me[0],xe=me[1],ve=s(React.useState({}),2),ye=ve[0],be=ve[1],we=React.useRef(null),ke=React.useRef({}),Ee=React.useRef(null),Re=React.useRef(le),Se=React.useRef(!1),ze=React.useRef(!1);React.useEffect(function(){Re.current=le},[le]);var Ne=React.useCallback(function(){if(o&&we.current){var e=R.find(function(e){return o===e.data.agentPath.join("/")});if(e){var t=ye[e.id]||88,n=we.current.clientWidth,r=.3*we.current.clientHeight,a=n/2-(e.x+128),l=r-(e.y+t/2),c=i({},Re.current),s=performance.now();Se.current=!0;var u=function(e){var t=e-s,n=Math.min(t/600,1),r=1-Math.pow(1-n,3),o={x:c.x+(a-c.x)*r,y:c.y+(l-c.y)*r};ce(o),n<1?Ee.current=requestAnimationFrame(u):Se.current=!1};Ee.current&&cancelAnimationFrame(Ee.current),Ee.current=requestAnimationFrame(u)}}},[o,R,ye]);React.useEffect(function(){return function(){Ee.current&&cancelAnimationFrame(Ee.current)}},[]),React.useEffect(function(){$&&o&&Ne()},[o,$,Ne]),React.useEffect(function(){var e=Object.keys(ye).length>0;$&&o&&e&&!ze.current&&(ze.current=!0,Ne())},[ye,$,o,Ne]),React.useEffect(function(){},[o]),React.useEffect(function(){B&&J(!1)},[B]);var Ce=React.useCallback(n(l().m(function e(){var t,n;return l().w(function(e){for(;;)switch(e.n){case 0:if(!f){e.n=1;break}return t=aa(R,N),n=1===t.length?t[0].id:null,e.n=1,f({nodes:R,edges:N,rootNodeId:n});case 1:q({nodes:u(R),edges:u(N)}),H(!1);case 2:return e.a(2)}},e)})),[N,f,R]);React.useEffect(function(){if(Y){var e=function(e){"Escape"===e.key&&X(!1)};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}}},[Y]),React.useEffect(function(){try{sessionStorage.setItem("teambuilder-pan",JSON.stringify(le))}catch(e){}},[le]),React.useEffect(function(){var e={};R.forEach(function(t){var n=ke.current[t.id];n&&(e[t.id]=n.offsetHeight)}),be(e)},[R]);var Ie=function(){G(null),ne(null),de(!1)},Te=function(e){var t=e.event,n=e.node;B&&(t.stopPropagation(),t.target.closest("button")||t.target.closest(".nodrag")||G({id:n.id,offsetX:oe.x-n.x,offsetY:oe.y-n.y}))},Pe=function(e){var t=e.id;S(R.filter(function(e){return e.id!==t})),C(N.filter(function(e){return e.source!==t&&e.target!==t})),delete ke.current[t]},Ae=function(e){var t=e.nodeId,n=e.path;S(R.map(function(e){return e.id===t?i(i({},e),{},{data:i(i({},e.data),{},{agentPath:n})}):e}))};return React.createElement("div",{className:"flex flex-col h-full min-h-[500px] w-full bg-slate-100 text-slate-900 font-sans overflow-hidden relative"},React.createElement("div",{className:"border-b border-slate-200 bg-white flex items-center px-[16px] justify-between z-10 shadow-sm",style:{height:"56px"}},React.createElement("div",{className:"flex items-center gap-[8px]"},React.createElement("div",{className:"p-[8px] bg-indigo-600 rounded text-white"},React.createElement(Qo,{size:18})),React.createElement("h1",{className:"font-bold text-[18px] hidden sm:block"},"Team Builder")),React.createElement("div",{className:"flex items-center gap-[12px]"},!B&&(o?React.createElement("button",{onClick:function(){return J(!$)},className:"flex items-center gap-[8px] px-[16px] py-[8px] rounded-[6px] text-[14px] font-medium transition-colors shadow-sm ".concat($?"bg-green-500 hover:bg-green-600 text-white":"bg-blue-500 hover:bg-blue-600 text-white")},$?React.createElement(To,{size:16}):React.createElement(Uo,{size:16}),"Follow Active Agent"):L?React.createElement("button",{onClick:function(){return O(D)},className:"flex items-center gap-[8px] bg-white border border-slate-200 hover:bg-slate-50 text-slate-700 px-[16px] py-[8px] rounded-[6px] text-[14px] font-medium transition-colors shadow-sm"},React.createElement(qo,{size:16})," Restart"):React.createElement("div",{className:"text-[12px] text-slate-500 hidden md:block"},"View Only Mode")),B?React.createElement(React.Fragment,null,React.createElement("button",{onClick:function(){JSON.stringify(R)!==JSON.stringify(V.nodes)||JSON.stringify(N)!==JSON.stringify(V.edges)?X(!0):H(!1)},className:"flex items-center gap-[8px] bg-white border border-slate-200 hover:bg-slate-50 text-slate-700 px-[16px] py-[8px] rounded-[6px] text-[14px] font-medium transition-colors shadow-sm"},React.createElement(Zo,{size:16})," Cancel"),React.createElement("button",{onClick:Ce,className:"flex items-center gap-[8px] bg-white border border-slate-200 hover:bg-slate-50 text-slate-700 px-[16px] py-[8px] rounded-[6px] text-[14px] font-medium transition-colors shadow-sm"},React.createElement(Wo,{size:16})," Save"),React.createElement("button",{onClick:function(){var e,t,n=Math.random().toString(36).substr(2,9),r=-le.x+((null===(e=we.current)||void 0===e?void 0:e.clientWidth)||800)/2-100,o=-le.y+((null===(t=we.current)||void 0===t?void 0:t.clientHeight)||600)/2-50;S([].concat(u(R),[{id:n,x:r,y:o,data:{label:"New Node",agentPath:[]}}]))},className:"flex items-center gap-[8px] bg-indigo-600 hover:bg-indigo-700 text-white px-[16px] py-[8px] rounded-[6px] text-[14px] font-medium transition-colors shadow-sm",style:{color:"#fff"}},React.createElement(Vo,{size:16})," Add Node")):React.createElement("button",{onClick:function(){q({nodes:u(R),edges:u(N)}),H(!0)},className:"flex items-center gap-[8px] bg-white border border-slate-200 hover:bg-slate-50 text-slate-700 px-[16px] py-[8px] rounded-[6px] text-[14px] font-medium transition-colors shadow-sm"},React.createElement(Ho,{size:16})," Edit"))),React.createElement("div",{ref:we,className:"flex-1 relative overflow-hidden bg-grid-slate-200",style:{cursor:ue?"grabbing":"grab",backgroundSize:"40px 40px"},onMouseDown:function(e){0===e.button&&(e.target.closest("[data-node]")||(de(!0),he({x:e.clientX-le.x,y:e.clientY-le.y})))},onMouseMove:function(e){var t=we.current.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top,o=n-le.x,a=r-le.y;if(ae({x:o,y:a}),ue)return ce({x:e.clientX-fe.x,y:e.clientY-fe.y}),void($&&!Se.current&&J(!1));Z&&S(function(e){return e.map(function(e){return e.id===Z.id?i(i({},e),{},{x:o-Z.offsetX,y:a-Z.offsetY}):e})})},onMouseUp:Ie,onMouseLeave:Ie},React.createElement("div",{style:{transform:"translate(".concat(le.x,"px, ").concat(le.y,"px)"),width:"100%",height:"100%",position:"absolute",top:0,left:0,pointerEvents:"none"}},React.createElement("svg",{className:"absolute top-0 left-0 overflow-visible w-full h-full pointer-events-none z-0"},React.createElement("defs",null,React.createElement("marker",{id:"arrowhead",markerWidth:"10",markerHeight:"7",refX:"9",refY:"3.5",orient:"auto"},React.createElement("polygon",{points:"0 0, 10 3.5, 0 7",fill:"#64748b"})),React.createElement("marker",{id:"arrowhead-active",markerWidth:"10",markerHeight:"7",refX:"9",refY:"3.5",orient:"auto"},React.createElement("polygon",{points:"0 0, 10 3.5, 0 7",fill:"#6366f1"}))),N.map(function(e){var t=R.find(function(t){return t.id===e.source}),n=R.find(function(t){return t.id===e.target});if(!t||!n)return null;var r=ye[e.source]||88,o=ye[e.target]||88,a=t.x+256,i=t.y+r/2,l=n.x,c=n.y+o/2,s=ra(a,i,l,c);return React.createElement("g",{key:e.id,className:"pointer-events-auto group"},React.createElement("path",{d:s,strokeWidth:"15",stroke:"transparent",fill:"none",className:B?"cursor-pointer":"",onClick:function(){return t={id:e.id},n=t.id,void(B&&C(N.filter(function(e){return e.id!==n})));var t,n}}),React.createElement("path",{d:s,stroke:"#64748b",strokeWidth:"2",fill:"none",markerEnd:"url(#arrowhead)",className:"group-hover:stroke-red-500 transition-colors"}))}),te&&React.createElement("path",{d:ra(te.x,te.y,oe.x,oe.y),stroke:"#6366f1",strokeWidth:"2",fill:"none",strokeDasharray:"5,5"})),React.createElement(la,{activeNode:o,nodes:R,nodeHeights:ye,currentMessage:L,pan:le,containerRef:we}),React.createElement("div",{className:"pointer-events-auto w-full h-full"},R.map(function(e){var t=o===e.data.agentPath.join("/"),n=e.data.agentPath.length>0?e.data.agentPath[e.data.agentPath.length-1]:"Select Agent...",a=e.data.agentPath.slice(0,-1).join(" > "),i=aa(R,N),l=ia(R,N)&&1===i.length&&i[0].id===e.id;return React.createElement(ea,{key:e.id,node:e,isActive:t,isRootNode:l,isEditing:B,agentName:n,breadcrumbs:a,agentTree:r,openSelectorId:ge,setOpenSelectorId:xe,updateAgent:Ae,handleView:h,handleEdit:m,deleteNode:Pe,onNodeDragStart:Te,nodeRef:function(t){return ke.current[e.id]=t},style:{transform:"translate(".concat(e.x,"px, ").concat(e.y,"px)")}},B&&React.createElement("div",{className:"absolute group-hover:scale-110 transition-transform pointer-events-none",style:{position:"absolute",left:"-12px",right:"auto",top:"50%",transform:"translateY(-50%)",width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"}},React.createElement("div",{className:"w-[12px] h-[12px] bg-white border-2 border-slate-400 rounded-full hover:border-indigo-500 hover:bg-indigo-50 cursor-crosshair pointer-events-auto",onMouseUp:function(t){return function(e){var t=e.event,n=e.nodeId,r=e.type;if(t.stopPropagation(),te&&"target"===r&&te.nodeId!==n){var o={id:"e".concat(te.nodeId,"-").concat(n,"-").concat(Date.now()),source:te.nodeId,target:n},a=N.find(function(e){return e.source===o.source&&e.target===o.target});a||C([].concat(u(N),[o]))}ne(null)}({event:t,nodeId:e.id,type:"target"})}})),B&&React.createElement("div",{className:"absolute group-hover:scale-110 transition-transform pointer-events-none",style:{position:"absolute",left:"auto",right:"-12px",top:"50%",transform:"translateY(-50%)",width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"}},React.createElement("div",{className:"w-[12px] h-[12px] bg-white border-2 border-slate-400 rounded-full hover:border-indigo-500 hover:bg-indigo-50 cursor-crosshair pointer-events-auto",onMouseDown:function(t){return function(e){var t=e.event,n=e.nodeId,r=e.type;if(B&&(t.stopPropagation(),"source"===r)){var o=R.find(function(e){return e.id===n}),a=ye[n]||88;ne({nodeId:n,x:o.x+256,y:o.y+a/2})}}({event:t,nodeId:e.id,type:"source"})}})))})),!B&&y&&k&&!o&&React.createElement("div",{className:"absolute w-full max-w-2xl px-4 z-30 pointer-events-none",style:{bottom:"24px",left:"50%",transform:"translateX(-50%)"}},React.createElement("div",{className:"bg-white rounded-2xl shadow-xl border border-slate-200 p-2 flex items-end gap-2 pointer-events-auto"},React.createElement("textarea",{value:T,onChange:function(e){return P(e.target.value)},onKeyDown:function(e){"Enter"!==e.key||e.shiftKey||(e.preventDefault(),_())},placeholder:"Message Team Builder...",className:"w-full max-h-32 min-h-[44px] py-3 px-4 bg-transparent border-0 focus:ring-0 resize-none text-slate-800 placeholder:text-slate-400 text-sm focus:outline-none",rows:1}),React.createElement("button",{onClick:_,disabled:!T.trim(),className:"p-2 rounded-xl mb-1 transition-colors ".concat(T.trim()?"bg-slate-900 text-white hover:bg-slate-700":"bg-slate-100 text-slate-300"),style:T.trim()?{color:"white"}:{}},React.createElement(Yo,{size:18})))))),React.createElement("div",{className:"h-8 bg-white border-t border-slate-200 flex items-center px-4 text-xs text-slate-400 justify-between"},React.createElement("div",{className:"flex items-center gap-2"},React.createElement("span",null,"Team: ",R.length," Agents, ",N.length," Connections"),R.length>0&&!ia(R,N)&&React.createElement("div",{className:"flex items-center gap-1 text-amber-600"},React.createElement(Jo,{size:14}),React.createElement("span",null,oa(R,N)?1!==aa(R,N).length?"Warning: Graph must have exactly 1 root node (found ".concat(aa(R,N).length,")"):"Warning: Invalid graph structure":"Warning: Not all nodes are connected"))),React.createElement("div",null,"Active: ",o||"None")),Y&&React.createElement("div",{className:"fixed inset-0 z-50 flex items-center justify-center"},React.createElement("div",{className:"absolute inset-0 bg-slate-900/40 backdrop-blur-sm",onClick:function(){return X(!1)}}),React.createElement("div",{role:"dialog","aria-modal":"true","aria-labelledby":"reset-dialog-title",className:"relative w-[92%] max-w-[420px] rounded-[12px] bg-white shadow-2xl border border-slate-200 p-[20px] animate-in fade-in zoom-in-95 duration-150"},React.createElement("div",{className:"flex items-start gap-[12px]"},React.createElement("div",{className:"flex h-[36px] w-[36px] items-center justify-center rounded-full bg-red-50 text-red-600"},React.createElement($o,{size:18})),React.createElement("div",{className:"flex-1"},React.createElement("h2",{id:"reset-dialog-title",className:"text-[16px] font-semibold text-slate-900"},"Discard unsaved changes?"),React.createElement("p",{className:"mt-[6px] text-[13px] text-slate-600"},"This will reset the canvas back to your last saved state."))),React.createElement("div",{className:"mt-[18px] flex items-center justify-end gap-[8px]"},React.createElement("button",{onClick:function(){return X(!1)},className:"px-[12px] py-[8px] text-[13px] font-medium text-slate-700 hover:text-slate-900"},"Keep Editing"),React.createElement("button",{onClick:function(){S(V.nodes),C(V.edges),H(!1),X(!1)},className:"px-[14px] py-[8px] rounded-[6px] bg-red-600 text-white text-[13px] font-medium hover:bg-red-700 transition-colors"},"Reset Changes")))))}var sa=function(e){var t=e.data,n=e.title,o=void 0===n?"Wikipedia LLM Explorer":n,a=e.categoryColors,l=s(React.useState(null==t?void 0:t.id),2),c=l[0],u=l[1],d=s(React.useState(new Set([null==t?void 0:t.id])),2),p=d[0],f=d[1],h=s(React.useState(1),2),m=h[0],g=h[1],x=s(React.useState({x:0,y:0}),2),v=x[0],y=x[1],b=s(React.useState(!1),2),w=b[0],k=b[1],E=s(React.useState(!0),2),R=E[0],S=E[1],z=!!(a&&Object.keys(a).length>0),N=function(e){return z?null==a?void 0:a[e]:void 0},C=React.useRef(null),I=React.useRef({x:0,y:0}),T=React.useMemo(function(){var e=[],n=function(t,r,o,a,l,c){var s=p.has(t.id);if(e.push(i(i({},t),{},{x:r,y:o,isExpanded:s,depth:c})),s&&t.children){var u=t.children.length,d=(l-a)/u,f=240-15*c;t.children.forEach(function(e,t){var i=a+d*t+d/2,l=r+Math.cos(i)*f,s=o+Math.sin(i)*f;n(e,l,s,i-d/2,i+d/2,c+1)})}};return t&&n(t,0,0,0,2*Math.PI,0),e},[p]),P=React.useMemo(function(){var e=function(t){if(t.id===c)return t;if(t.children){var n,o=r(t.children);try{for(o.s();!(n=o.n()).done;){var a=n.value,i=e(a);if(i)return i}}catch(e){o.e(e)}finally{o.f()}}return null};return e(t)},[c]);React.useEffect(function(){var e=T.find(function(e){return e.id===c});e&&(S(!0),y({x:-e.x,y:-e.y}))},[c]);var A=function(e){u(e),f(function(t){var n=new Set(t);return n.has(e)||n.add(e),n})},M=function(){k(!1)},O=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;if(n.children){if(n.children.some(function(t){return t.id===e}))return n;var o,a=r(n.children);try{for(a.s();!(o=a.n()).done;){var i=o.value,l=O(e,i);if(l)return l}}catch(e){a.e(e)}finally{a.f()}}return null};return React.createElement("div",{className:"flex h-full w-full bg-zinc-50 text-zinc-900 font-sans overflow-hidden transition-colors duration-500",onMouseMove:function(e){if(w){var t=(e.clientX-I.current.x)/m,n=(e.clientY-I.current.y)/m;y(function(e){return{x:e.x+t,y:e.y+n}}),I.current={x:e.clientX,y:e.clientY}}},onMouseUp:M,onMouseLeave:M},React.createElement("div",{className:"w-96 bg-white border-r border-zinc-200 flex flex-col z-20 shadow-xl overflow-hidden"},React.createElement("div",{className:"p-6 border-b border-zinc-100 flex items-center justify-between bg-white/80 backdrop-blur-md sticky top-0"},React.createElement("div",{className:"flex items-center gap-3"},React.createElement("div",{className:"p-2 bg-violet-600 rounded-lg shadow-lg shadow-violet-200"},React.createElement(Bo,{size:20,className:"text-white w-5 h-5"})),React.createElement("div",null,React.createElement("h1",{className:"text-lg font-bold tracking-tight text-zinc-900"},"Concept Map"),React.createElement("p",{className:"text-[10px] text-zinc-400 uppercase font-bold tracking-wider"},o)))),React.createElement("div",{className:"flex-1 overflow-y-auto custom-scrollbar bg-white"},P?React.createElement("div",{className:"p-8 animate-in fade-in slide-in-from-left-4 duration-500"},React.createElement("div",{className:"flex items-center gap-2 mb-4"},React.createElement("span",{className:"px-2.5 py-0.5 rounded-full text-[10px] uppercase font-bold tracking-widest border",style:{backgroundColor:N(P.category)?"".concat(N(P.category),"10"):"transparent",color:N(P.category)||"#18181b",borderColor:N(P.category)?"".concat(N(P.category),"20"):"#d4d4d8"}},P.category),O(P.id)&&React.createElement("span",{className:"text-zinc-400 text-xs flex items-center gap-1"},React.createElement(Ao,{size:12,className:"w-3 h-3"}),O(P.id).label)),React.createElement("h2",{className:"text-3xl font-extrabold mb-6 leading-tight tracking-tight text-zinc-900"},P.label),React.createElement("div",{className:"prose prose-zinc max-w-none"},React.createElement(bo,{className:"text-zinc-600 leading-relaxed text-lg mb-8"},P.content)),P.children&&React.createElement("div",{className:"mt-10"},React.createElement("h3",{className:"text-[10px] font-bold text-zinc-400 uppercase tracking-[0.2em] mb-4 flex items-center gap-2"},"Sub-Dimensions ",React.createElement("div",{className:"h-px flex-1 bg-zinc-100"})),React.createElement("div",{className:"grid gap-2"},P.children.map(function(e){return React.createElement("button",{key:e.id,onClick:function(){return A(e.id)},className:"group flex items-center justify-between p-4 rounded-xl bg-zinc-50 hover:bg-zinc-100 border border-zinc-100 hover:border-zinc-200 transition-all duration-300"},React.createElement("div",{className:"flex items-center gap-3"},React.createElement("div",{className:"w-1.5 h-1.5 rounded-full",style:{backgroundColor:N(e.category)||"#18181b"}}),React.createElement("span",{className:"text-sm font-semibold text-zinc-700 group-hover:text-zinc-900 transition-colors"},e.label)),React.createElement(Vo,{size:14,className:"text-zinc-300 group-hover:text-zinc-500 transition-transform group-hover:rotate-90 w-3.5 h-3.5"}))})))):React.createElement("div",{className:"h-full flex flex-col items-center justify-center p-12 text-center"},React.createElement("div",{className:"w-16 h-16 rounded-full bg-zinc-100 flex items-center justify-center mb-6"},React.createElement(Io,{size:32,className:"text-zinc-300 w-8 h-8"})),React.createElement("h3",{className:"text-xl font-bold text-zinc-900 mb-2"},"Select a Topic"),React.createElement("p",{className:"text-zinc-400 text-sm"},"Pick a node on the map to explore its underlying principles and history.")))),React.createElement("div",{ref:C,onMouseDown:function(e){(e.target===C.current||e.target.closest(".pan-area"))&&(k(!0),S(!1),I.current={x:e.clientX,y:e.clientY})},className:"flex-1 relative bg-zinc-50 overflow-hidden select-none cursor-grab ".concat(w?"cursor-grabbing":"")},React.createElement("div",{className:"absolute inset-0 pointer-events-none pan-area"},React.createElement("div",{className:"h-full w-full opacity-40",style:{backgroundImage:"radial-gradient(#e4e4e7 1px, transparent 1px)",backgroundSize:"32px 32px"}})),React.createElement("div",{className:"absolute inset-0 pointer-events-none ".concat(R?"transition-transform duration-700 ease-in-out":""),style:{transform:"scale(".concat(m,") translate(calc(50% + ").concat(v.x,"px), calc(50% + ").concat(v.y,"px))"),transformOrigin:"0 0"}},React.createElement("svg",{className:"absolute inset-0 overflow-visible pointer-events-none"},T.map(function(e){var t=T.find(function(t){var n;return null===(n=t.children)||void 0===n?void 0:n.some(function(t){return t.id===e.id})});return t?React.createElement("line",{key:"line-".concat(e.id),x1:t.x,y1:t.y,x2:e.x,y2:e.y,stroke:N(e.category)||"#d4d4d8",strokeWidth:"2.5",strokeOpacity:"0.15",strokeDasharray:"4 4"}):null})),T.map(function(e){return React.createElement("div",{key:e.id,onClick:function(t){t.stopPropagation(),A(e.id)},className:"\n absolute cursor-pointer transition-all duration-300 ease-out\n flex items-center justify-center rounded-full border-2 \n group hover:shadow-[0_8px_24px_rgba(0,0,0,0.08)]\n pointer-events-auto\n ".concat(c===e.id?"z-20 scale-110 shadow-xl":"scale-100 z-10","\n "),style:{width:Math.max(90,140-20*e.depth),height:Math.max(90,140-20*e.depth),left:e.x,top:e.y,transform:"translate(-50%, -50%)",backgroundColor:c===e.id&&N(e.category)?N(e.category):"white",borderColor:c===e.id?N(e.category)?"transparent":"#111827":N(e.category)?"".concat(N(e.category),"40"):"#d4d4d8"}},React.createElement("div",{className:"flex flex-col items-center p-3 text-center"},React.createElement("span",{className:"\n text-[11px] md:text-xs font-bold leading-tight\n ".concat(c===e.id&&N(e.category)?"text-white":"text-zinc-700 group-hover:text-zinc-900","\n ")},e.label),e.children&&React.createElement("div",{className:"\n mt-1.5 px-2 py-0.5 rounded-full text-[8px] font-black uppercase tracking-tighter\n ".concat(c===e.id&&N(e.category)?"bg-white/20 text-white":"bg-zinc-100 text-zinc-400 group-hover:bg-zinc-200","\n ")},p.has(e.id)?"Collapse":"+".concat(e.children.length))))})),React.createElement("div",{className:"absolute bottom-8 right-8 !left-auto !top-auto !w-fit !h-fit flex flex-col gap-3"},React.createElement("div",{className:"flex bg-white/90 backdrop-blur-md border border-zinc-200 rounded-2xl p-1 shadow-lg shadow-zinc-200/50"},React.createElement("button",{onClick:function(){S(!0),g(function(e){return Math.min(e+.2,2)})},className:"p-3 hover:bg-zinc-100 rounded-xl transition-colors text-zinc-400 hover:text-zinc-900",title:"Zoom In"},React.createElement(Vo,{size:18,className:"w-[18px] h-[18px]"})),React.createElement("div",{className:"w-px h-6 bg-zinc-200 self-center"}),React.createElement("button",{onClick:function(){S(!0),g(function(e){return Math.max(e-.2,.5)})},className:"p-3 hover:bg-zinc-100 rounded-xl transition-colors text-zinc-400 hover:text-zinc-900",title:"Zoom Out"},React.createElement(_o,{size:18,className:"w-[18px] h-[18px]"})),React.createElement("div",{className:"w-px h-6 bg-zinc-200 self-center"}),React.createElement("button",{onClick:function(){S(!0),y({x:0,y:0})},className:"p-3 hover:bg-zinc-100 rounded-xl transition-colors text-zinc-400 hover:text-zinc-900",title:"Reset View"},React.createElement(Fo,{size:18,className:"w-[18px] h-[18px]"}))),z&&React.createElement("div",{className:"bg-white/90 backdrop-blur-md border border-zinc-200 rounded-2xl p-4 shadow-lg shadow-zinc-200/50"},React.createElement("h4",{className:"text-[10px] font-bold text-zinc-400 uppercase tracking-widest mb-3"},"Key"),React.createElement("div",{className:"space-y-2"},Object.entries(a).map(function(e){var t=s(e,2),n=t[0],r=t[1];return React.createElement("div",{key:n,className:"flex items-center gap-3"},React.createElement("div",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:r}}),React.createElement("span",{className:"text-[11px] font-bold text-zinc-500 capitalize"},n))})))),React.createElement("div",{className:"absolute top-8 right-8 !left-auto !bottom-auto !w-fit !h-fit bg-zinc-900 text-white px-4 py-2 rounded-full text-xs font-bold shadow-xl flex items-center gap-2"},React.createElement(Fo,{size:14,className:"text-zinc-400 w-3.5 h-3.5"}),React.createElement("span",{className:"whitespace-nowrap"},"Drag background to pan"))),React.createElement("style",null,"\n .custom-scrollbar::-webkit-scrollbar {\n width: 5px;\n }\n .custom-scrollbar::-webkit-scrollbar-track {\n background: transparent;\n }\n .custom-scrollbar::-webkit-scrollbar-thumb {\n background: #e4e4e7;\n border-radius: 10px;\n }\n .custom-scrollbar::-webkit-scrollbar-thumb:hover {\n background: #d4d4d8;\n }\n .cursor-grab { cursor: grab; }\n .cursor-grabbing { cursor: grabbing; }\n "))},ua=function(e){var t=e.anim,n=s(React.useState({x:t.startX,y:t.startY}),2),r=n[0],o=n[1];return React.useEffect(function(){var e,n;return e=requestAnimationFrame(function(){n=requestAnimationFrame(function(){o({x:t.endX,y:t.endY})})}),function(){cancelAnimationFrame(e),n&&cancelAnimationFrame(n)}},[t]),React.createElement("div",{className:"pointer-events-none",style:{position:"absolute",left:0,top:0,transform:"translate(".concat(r.x,"px, ").concat(r.y,"px)"),width:"12px",height:"12px",marginLeft:"-6px",marginTop:"-6px",borderRadius:"50%",backgroundColor:t.color,transition:"transform 1s cubic-bezier(0.4, 0, 0.2, 1)",zIndex:100,boxShadow:"0 0 10px ".concat(t.color)}})};function da(e){var t=e.teamName,n=void 0===t?"Decentralised Team":t,r=e.agents,o=void 0===r?[]:r,a=e.taskQueue,l=void 0===a?[]:a,c=e.agentTree,d=void 0===c?{}:c,p=e.activeAgentId,f=void 0===p?null:p,h=e.onAgentUpdate,m=void 0===h?function(){}:h,g=e.onAgentView,x=void 0===g?function(){}:g,v=e.onTaskClick,y=void 0===v?function(){}:v,b=s(React.useState(null),2),w=b[0],k=b[1],E=s(React.useState(!1),2),R=E[0],S=E[1],z=s(React.useState({}),2)[1],N=React.useRef({}),C=React.useRef(null),I=React.useRef(0),T=React.useRef(new Set),P=s(React.useState([]),2),A=P[0],M=P[1];React.useEffect(function(){var e=[];l.forEach(function(t){var n=N.current[t.id];n&&("pending"===n.status&&"in-progress"===t.status?e.push({task:t,type:"pickup"}):"in-progress"===n.status&&"completed"===t.status&&(e.push({task:i(i({},t),{},{assigneeId:n.assigneeId||t.assigneeId}),type:"complete"}),T.current.add(t.id),setTimeout(function(){T.current.delete(t.id),z({})},1e3)))}),e.length>0&&requestAnimationFrame(function(){var t,n=null===(t=C.current)||void 0===t?void 0:t.getBoundingClientRect();if(n){var r=e.map(function(e){var t=e.task,r=e.type,a=document.getElementById("task-".concat(t.id)),i=document.getElementById("agent-".concat(t.assigneeId));if(a||"complete"!==r||(a=document.getElementById("task-queue-sidebar")),a&&i){var l,c=a.getBoundingClientRect(),s=i.getBoundingClientRect(),u=c.left+c.width/2-n.left,d=c.top+c.height/2-n.top,p=s.left+s.width/2-n.left,f=s.top+s.height/2-n.top,h=o.find(function(e){return e.id===t.assigneeId}),m=(null==h||null===(l=h.data)||void 0===l?void 0:l.colour)||"#94a3b8";return{id:I.current++,startX:"pickup"===r?u:p,startY:"pickup"===r?d:f,endX:"pickup"===r?p:u,endY:"pickup"===r?f:d,color:m}}return null}).filter(Boolean);r.length>0&&(M(function(e){return[].concat(u(e),u(r))}),setTimeout(function(){M(function(e){return e.filter(function(e){return!r.find(function(t){return t.id===e.id})})})},1e3))}});var t={};l.forEach(function(e){t[e.id]={status:e.status,assigneeId:e.assigneeId}}),N.current=t},[l,o,R]);var O=R?l:l.filter(function(e){if("completed"!==e.status)return!0;var t=N.current[e.id];return!(!t||"in-progress"!==t.status)||!!T.current.has(e.id)});return React.createElement("div",{ref:C,className:"flex flex-col h-full min-h-[500px] w-full bg-slate-50 text-slate-900 font-sans overflow-hidden relative"},A.map(function(e){return React.createElement(ua,{key:e.id,anim:e})}),React.createElement("div",{className:"border-b border-slate-200 bg-white flex items-center px-4 justify-between shadow-sm h-14 shrink-0"},React.createElement("div",{className:"flex items-center gap-2"},React.createElement("div",{className:"p-2 bg-purple-600 rounded text-white"},React.createElement(Qo,{size:18})),React.createElement("h1",{className:"font-bold text-lg hidden sm:block"},n)),React.createElement("div",{className:"flex items-center gap-4 text-sm font-medium text-slate-600"},React.createElement("span",null,o.length," Active Agents"),React.createElement("span",{className:"w-px h-4 bg-slate-300"}),React.createElement("span",null,l.filter(function(e){return"pending"===e.status}).length," Tasks Pending"))),React.createElement("div",{className:"flex flex-1 overflow-hidden flex-col md:flex-row"},React.createElement("div",{id:"task-queue-sidebar",className:"w-full md:w-80 bg-white border-r border-slate-200 flex flex-col shrink-0 overflow-hidden shadow-sm z-10"},React.createElement("div",{className:"p-4 border-b border-slate-100 bg-slate-50 flex items-center justify-between gap-2"},React.createElement("div",{className:"flex items-center gap-2"},React.createElement(Lo,{size:18,className:"text-slate-500"}),React.createElement("h2",{className:"font-semibold text-slate-700"},"Task Queue")),React.createElement("label",{className:"flex items-center gap-2 text-xs text-slate-500 cursor-pointer"},React.createElement("input",{type:"checkbox",checked:R,onChange:function(e){return S(e.target.checked)},className:"rounded border-slate-300 text-purple-600 focus:ring-purple-500"}),"Show Completed")),React.createElement("div",{className:"flex-1 overflow-y-auto p-3 space-y-2"},0===O.length?React.createElement("div",{className:"text-center p-8 text-slate-400 text-sm"},0===l.length?"No tasks in queue. External events will add tasks here.":"No tasks match current filters."):O.map(function(e){return React.createElement("div",{key:e.id,id:"task-".concat(e.id),onClick:function(){return y(e)},className:"p-3 rounded-lg border cursor-pointer transition-all ".concat("completed"===e.status?"bg-slate-50 border-slate-200 opacity-60":"in-progress"===e.status?"bg-blue-50 border-blue-200 shadow-sm":"bg-white border-slate-200 hover:border-purple-300 shadow-sm")},React.createElement("div",{className:"flex items-start justify-between gap-2 mb-2"},React.createElement("h3",{className:"font-medium text-sm text-slate-800 line-clamp-2"},e.title),"completed"===e.status?React.createElement(Mo,{size:16,className:"text-green-500 shrink-0"}):"in-progress"===e.status?React.createElement(Oo,{size:16,className:"text-blue-500 animate-spin shrink-0"}):React.createElement("div",{className:"w-2 h-2 rounded-full bg-slate-300 mt-1 shrink-0"})),React.createElement("div",{className:"flex items-center justify-end mt-2"},e.assigneeId&&function(t,n){var r=o.find(function(t){return t.id===e.assigneeId}),a=null==r||null===(t=r.data)||void 0===t?void 0:t.colour,i=(null==r||null===(n=r.data)||void 0===n||null===(n=n.agentPath)||void 0===n||null===(n=n.slice(-1))||void 0===n?void 0:n[0])||"Assigned";return React.createElement("div",{className:"flex items-center gap-[6px] text-xs text-slate-500 bg-white px-2 py-0.5 rounded border border-slate-200 max-w-[120px]"},a&&React.createElement("div",{className:"w-[8px] h-[8px] rounded-full shrink-0",style:{backgroundColor:a}}),React.createElement("span",{className:"truncate block"},i))}()))}))),React.createElement("div",{className:"flex-1 overflow-y-auto bg-slate-100/50 p-6"},0===o.length?React.createElement("div",{className:"h-full flex flex-col items-center justify-center text-slate-400"},React.createElement(Qo,{size:48,className:"mb-4 opacity-20"}),React.createElement("p",{className:"text-lg font-medium text-slate-500"},"No Active Agents"),React.createElement("p",{className:"text-sm mt-2 max-w-sm text-center"},"Connect external processes to spawn agents dynamically.")):React.createElement("div",{className:"flex flex-wrap gap-6 items-start content-start"},o.map(function(e){var t,n,r=f===e.id||Array.isArray(f)&&f.includes(e.id),o=(null===(t=e.data)||void 0===t?void 0:t.agentPath)||[],a=o.length>0?o[o.length-1]:"Unassigned Agent",i=o.slice(0,-1).join(" > ");return React.createElement("div",{key:e.id,id:"agent-".concat(e.id),className:"transition-all duration-300 animate-in fade-in zoom-in-95"},React.createElement(ea,{node:e,isActive:r,isRootNode:!1,isEditing:!0,agentName:a,breadcrumbs:i,agentTree:d,openSelectorId:w,setOpenSelectorId:k,updateAgent:function(e){var t=e.nodeId,n=e.path;return m(t,n)},handleView:x,isAbsolute:!1,style:{margin:0},colour:null===(n=e.data)||void 0===n?void 0:n.colour}))})))))}var pa={v1:{TeamBuilder:function(e){return(0,e.withBindings)(ca)},KnowledgeGraph:function(e){return(0,e.withBindings)(sa)},DecentralisedTeam:function(e){var t=e.withBindings;return t?t(da):da}}};export{pa as default};
|