@pipedream/connect-react 2.4.0 → 2.5.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/connect-react.es.js +1629 -1620
- package/dist/connect-react.umd.d.ts +9 -7
- package/dist/connect-react.umd.js +11 -11
- package/package.json +2 -2
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
(function($,B){typeof exports=="object"&&typeof module<"u"?B(exports,require("react/jsx-runtime"),require("react"),require("@tanstack/react-query"),require("@emotion/react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","@tanstack/react-query","@emotion/react","react-dom"],B):($=typeof globalThis<"u"?globalThis:$||self,B($["connect-react"]={},$["react/jsx-runtime"],$.React,$.reactQuery,$["@emotion/react"],$.ReactDOM))})(this,function($,B,x,st,U,Ga){"use strict";function Va(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ge=Va(x);function Mm(){}function zm(){}function Oa(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Na=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Da=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,La={};function ci(e,t){return(La.jsx?Da:Na).test(e)}const Ma=/[ \t\n\f\r]/g;function za(e){return typeof e=="object"?e.type==="text"?di(e.value):!1:di(e)}function di(e){return e.replace(Ma,"")===""}class Ht{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}Ht.prototype.normal={},Ht.prototype.property={},Ht.prototype.space=void 0;function pi(e,t){const n={},i={};for(const r of e)Object.assign(n,r.property),Object.assign(i,r.normal);return new Ht(n,i,t)}function Un(e){return e.toLowerCase()}class He{constructor(t,n){this.attribute=n,this.property=t}}He.prototype.attribute="",He.prototype.booleanish=!1,He.prototype.boolean=!1,He.prototype.commaOrSpaceSeparated=!1,He.prototype.commaSeparated=!1,He.prototype.defined=!1,He.prototype.mustUseProperty=!1,He.prototype.number=!1,He.prototype.overloadedBoolean=!1,He.prototype.property="",He.prototype.spaceSeparated=!1,He.prototype.space=void 0;let Ra=0;const ae=xt(),Fe=xt(),qn=xt(),L=xt(),be=xt(),Tt=xt(),Ze=xt();function xt(){return 2**++Ra}const Qn=Object.freeze(Object.defineProperty({__proto__:null,boolean:ae,booleanish:Fe,commaOrSpaceSeparated:Ze,commaSeparated:Tt,number:L,overloadedBoolean:qn,spaceSeparated:be},Symbol.toStringTag,{value:"Module"})),$n=Object.keys(Qn);class Kn extends He{constructor(t,n,i,r){let o=-1;if(super(t,n),fi(this,"space",r),typeof i=="number")for(;++o<$n.length;){const l=$n[o];fi(this,$n[o],(i&Qn[l])===Qn[l])}}}Kn.prototype.defined=!0;function fi(e,t,n){n&&(e[t]=n)}function Gt(e){const t={},n={};for(const[i,r]of Object.entries(e.properties)){const o=new Kn(i,e.transform(e.attributes||{},i),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(o.mustUseProperty=!0),t[i]=o,n[Un(i)]=i,n[Un(o.attribute)]=i}return new Ht(t,n,e.space)}const gi=Gt({properties:{ariaActiveDescendant:null,ariaAtomic:Fe,ariaAutoComplete:null,ariaBusy:Fe,ariaChecked:Fe,ariaColCount:L,ariaColIndex:L,ariaColSpan:L,ariaControls:be,ariaCurrent:null,ariaDescribedBy:be,ariaDetails:null,ariaDisabled:Fe,ariaDropEffect:be,ariaErrorMessage:null,ariaExpanded:Fe,ariaFlowTo:be,ariaGrabbed:Fe,ariaHasPopup:null,ariaHidden:Fe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:be,ariaLevel:L,ariaLive:null,ariaModal:Fe,ariaMultiLine:Fe,ariaMultiSelectable:Fe,ariaOrientation:null,ariaOwns:be,ariaPlaceholder:null,ariaPosInSet:L,ariaPressed:Fe,ariaReadOnly:Fe,ariaRelevant:null,ariaRequired:Fe,ariaRoleDescription:be,ariaRowCount:L,ariaRowIndex:L,ariaRowSpan:L,ariaSelected:Fe,ariaSetSize:L,ariaSort:null,ariaValueMax:L,ariaValueMin:L,ariaValueNow:L,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function hi(e,t){return t in e?e[t]:t}function mi(e,t){return hi(e,t.toLowerCase())}const Ha=Gt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Tt,acceptCharset:be,accessKey:be,action:null,allow:null,allowFullScreen:ae,allowPaymentRequest:ae,allowUserMedia:ae,alt:null,as:null,async:ae,autoCapitalize:null,autoComplete:be,autoFocus:ae,autoPlay:ae,blocking:be,capture:null,charSet:null,checked:ae,cite:null,className:be,cols:L,colSpan:null,content:null,contentEditable:Fe,controls:ae,controlsList:be,coords:L|Tt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ae,defer:ae,dir:null,dirName:null,disabled:ae,download:qn,draggable:Fe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ae,formTarget:null,headers:be,height:L,hidden:qn,high:L,href:null,hrefLang:null,htmlFor:be,httpEquiv:be,id:null,imageSizes:null,imageSrcSet:null,inert:ae,inputMode:null,integrity:null,is:null,isMap:ae,itemId:null,itemProp:be,itemRef:be,itemScope:ae,itemType:be,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ae,low:L,manifest:null,max:null,maxLength:L,media:null,method:null,min:null,minLength:L,multiple:ae,muted:ae,name:null,nonce:null,noModule:ae,noValidate:ae,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:ae,optimum:L,pattern:null,ping:be,placeholder:null,playsInline:ae,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ae,referrerPolicy:null,rel:be,required:ae,reversed:ae,rows:L,rowSpan:L,sandbox:be,scope:null,scoped:ae,seamless:ae,selected:ae,shadowRootClonable:ae,shadowRootDelegatesFocus:ae,shadowRootMode:null,shape:null,size:L,sizes:null,slot:null,span:L,spellCheck:Fe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:L,step:null,style:null,tabIndex:L,target:null,title:null,translate:null,type:null,typeMustMatch:ae,useMap:null,value:Fe,width:L,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:be,axis:null,background:null,bgColor:null,border:L,borderColor:null,bottomMargin:L,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ae,declare:ae,event:null,face:null,frame:null,frameBorder:null,hSpace:L,leftMargin:L,link:null,longDesc:null,lowSrc:null,marginHeight:L,marginWidth:L,noResize:ae,noHref:ae,noShade:ae,noWrap:ae,object:null,profile:null,prompt:null,rev:null,rightMargin:L,rules:null,scheme:null,scrolling:Fe,standby:null,summary:null,text:null,topMargin:L,valueType:null,version:null,vAlign:null,vLink:null,vSpace:L,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ae,disableRemotePlayback:ae,prefix:null,property:null,results:L,security:null,unselectable:null},space:"html",transform:mi}),Xa=Gt({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:Ze,accentHeight:L,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:L,amplitude:L,arabicForm:null,ascent:L,attributeName:null,attributeType:null,azimuth:L,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:L,by:null,calcMode:null,capHeight:L,className:be,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:L,diffuseConstant:L,direction:null,display:null,dur:null,divisor:L,dominantBaseline:null,download:ae,dx:null,dy:null,edgeMode:null,editable:null,elevation:L,enableBackground:null,end:null,event:null,exponent:L,externalResourcesRequired:null,fill:null,fillOpacity:L,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:Tt,g2:Tt,glyphName:Tt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:L,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:L,horizOriginX:L,horizOriginY:L,id:null,ideographic:L,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:L,k:L,k1:L,k2:L,k3:L,k4:L,kernelMatrix:Ze,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:L,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:L,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:L,overlineThickness:L,paintOrder:null,panose1:null,path:null,pathLength:L,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:be,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:L,pointsAtY:L,pointsAtZ:L,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ze,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ze,rev:Ze,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ze,requiredFeatures:Ze,requiredFonts:Ze,requiredFormats:Ze,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:L,specularExponent:L,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:L,strikethroughThickness:L,string:null,stroke:null,strokeDashArray:Ze,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:L,strokeOpacity:L,strokeWidth:null,style:null,surfaceScale:L,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ze,tabIndex:L,tableValues:null,target:null,targetX:L,targetY:L,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ze,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:L,underlineThickness:L,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:L,values:null,vAlphabetic:L,vMathematical:L,vectorEffect:null,vHanging:L,vIdeographic:L,version:null,vertAdvY:L,vertOriginX:L,vertOriginY:L,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:L,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:hi}),bi=Gt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),yi=Gt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:mi}),Ii=Gt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Wa={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"},Za=/[A-Z]/g,vi=/-[a-z]/g,ja=/^data[-\w.:]+$/i;function Ja(e,t){const n=Un(t);let i=t,r=He;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&ja.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(vi,_a);i="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!vi.test(o)){let l=o.replace(Za,Ya);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}r=Kn}return new r(i,t)}function Ya(e){return"-"+e.toLowerCase()}function _a(e){return e.charAt(1).toUpperCase()}const Ua=pi([gi,Ha,bi,yi,Ii],"html"),er=pi([gi,Xa,bi,yi,Ii],"svg");function qa(e){return e.join(" ").trim()}var ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nr={},Ci=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Qa=/\n/g,$a=/^\s*/,Ka=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,es=/^:\s*/,ts=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ns=/^[;\s]*/,rs=/^\s+|\s+$/g,is=`
|
|
2
|
-
`,xi="/",Ai="*",At="",os="comment",ls="declaration";function as(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,i=1;function r(y){var b=y.match(Qa);b&&(n+=b.length);var C=y.lastIndexOf(is);i=~C?y.length-C:i+y.length}function o(){var y={line:n,column:i};return function(b){return b.position=new l(y),u(),b}}function l(y){this.start=y,this.end={line:n,column:i},this.source=t.source}l.prototype.content=e;function a(y){var b=new Error(t.source+":"+n+":"+i+": "+y);if(b.reason=y,b.filename=t.source,b.line=n,b.column=i,b.source=e,!t.silent)throw b}function s(y){var b=y.exec(e);if(b){var C=b[0];return r(C),e=e.slice(C.length),b}}function u(){s($a)}function c(y){var b;for(y=y||[];b=d();)b!==!1&&y.push(b);return y}function d(){var y=o();if(!(xi!=e.charAt(0)||Ai!=e.charAt(1))){for(var b=2;At!=e.charAt(b)&&(Ai!=e.charAt(b)||xi!=e.charAt(b+1));)++b;if(b+=2,At===e.charAt(b-1))return a("End of comment missing");var C=e.slice(2,b-2);return i+=2,r(C),e=e.slice(b),i+=2,y({type:os,comment:C})}}function f(){var y=o(),b=s(Ka);if(b){if(d(),!s(es))return a("property missing ':'");var C=s(ts),I=y({type:ls,property:Si(b[0].replace(Ci,At)),value:C?Si(C[0].replace(Ci,At)):At});return s(ns),I}}function p(){var y=[];c(y);for(var b;b=f();)b!==!1&&(y.push(b),c(y));return y}return u(),p()}function Si(e){return e?e.replace(rs,At):At}var ss=as,us=ht&&ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(nr,"__esModule",{value:!0}),nr.default=ds;const cs=us(ss);function ds(e,t){let n=null;if(!e||typeof e!="string")return n;const i=(0,cs.default)(e),r=typeof t=="function";return i.forEach(o=>{if(o.type!=="declaration")return;const{property:l,value:a}=o;r?t(l,a,o):a&&(n=n||{},n[l]=a)}),n}var ln={};Object.defineProperty(ln,"__esModule",{value:!0}),ln.camelCase=void 0;var ps=/^--[a-zA-Z0-9_-]+$/,fs=/-([a-z])/g,gs=/^[^-]+$/,hs=/^-(webkit|moz|ms|o|khtml)-/,ms=/^-(ms)-/,bs=function(e){return!e||gs.test(e)||ps.test(e)},ys=function(e,t){return t.toUpperCase()},wi=function(e,t){return"".concat(t,"-")},Is=function(e,t){return t===void 0&&(t={}),bs(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(ms,wi):e=e.replace(hs,wi),e.replace(fs,ys))};ln.camelCase=Is;var vs=ht&&ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Cs=vs(nr),xs=ln;function rr(e,t){var n={};return!e||typeof e!="string"||(0,Cs.default)(e,function(i,r){i&&r&&(n[(0,xs.camelCase)(i,t)]=r)}),n}rr.default=rr;var As=rr;const Ss=tr(As),Ei=ki("end"),ir=ki("start");function ki(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function ws(e){const t=ir(e),n=Ei(e);if(t&&n)return{start:t,end:n}}function Xt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Bi(e.position):"start"in e||"end"in e?Bi(e):"line"in e||"column"in e?or(e):""}function or(e){return Pi(e&&e.line)+":"+Pi(e&&e.column)}function Bi(e){return or(e&&e.start)+"-"+or(e&&e.end)}function Pi(e){return e&&typeof e=="number"?e:1}class Me extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let r="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?r=t:!o.cause&&t&&(l=!0,r=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof i=="string"){const s=i.indexOf(":");s===-1?o.ruleId=i:(o.source=i.slice(0,s),o.ruleId=i.slice(s+1))}if(!o.place&&o.ancestors&&o.ancestors){const s=o.ancestors[o.ancestors.length-1];s&&(o.place=s.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=Xt(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Me.prototype.file="",Me.prototype.name="",Me.prototype.reason="",Me.prototype.message="",Me.prototype.stack="",Me.prototype.column=void 0,Me.prototype.line=void 0,Me.prototype.ancestors=void 0,Me.prototype.cause=void 0,Me.prototype.fatal=void 0,Me.prototype.place=void 0,Me.prototype.ruleId=void 0,Me.prototype.source=void 0;const lr={}.hasOwnProperty,Es=new Map,ks=/[A-Z]/g,Bs=new Set(["table","tbody","thead","tfoot","tr"]),Ps=new Set(["td","th"]),Fi="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Fs(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=Ms(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=Ls(n,t.jsx,t.jsxs)}const r={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?er:Ua,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Ti(r,e,void 0);return o&&typeof o!="string"?o:r.create(e,r.Fragment,{children:o||void 0},void 0)}function Ti(e,t,n){if(t.type==="element")return Ts(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Gs(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Os(e,t,n);if(t.type==="mdxjsEsm")return Vs(e,t);if(t.type==="root")return Ns(e,t,n);if(t.type==="text")return Ds(e,t)}function Ts(e,t,n){const i=e.schema;let r=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(r=er,e.schema=r),e.ancestors.push(t);const o=Vi(e,t.tagName,!1),l=zs(e,t);let a=sr(e,t);return Bs.has(t.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!za(s):!0})),Gi(e,l,o,t),ar(l,a),e.ancestors.pop(),e.schema=i,e.create(t,o,l,n)}function Gs(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Wt(e,t.position)}function Vs(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Wt(e,t.position)}function Os(e,t,n){const i=e.schema;let r=i;t.name==="svg"&&i.space==="html"&&(r=er,e.schema=r),e.ancestors.push(t);const o=t.name===null?e.Fragment:Vi(e,t.name,!0),l=Rs(e,t),a=sr(e,t);return Gi(e,l,o,t),ar(l,a),e.ancestors.pop(),e.schema=i,e.create(t,o,l,n)}function Ns(e,t,n){const i={};return ar(i,sr(e,t)),e.create(t,e.Fragment,i,n)}function Ds(e,t){return t.value}function Gi(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function ar(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Ls(e,t,n){return i;function i(r,o,l,a){const u=Array.isArray(l.children)?n:t;return a?u(o,l,a):u(o,l)}}function Ms(e,t){return n;function n(i,r,o,l){const a=Array.isArray(o.children),s=ir(i);return t(r,o,l,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function zs(e,t){const n={};let i,r;for(r in t.properties)if(r!=="children"&&lr.call(t.properties,r)){const o=Hs(e,r,t.properties[r]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&Ps.has(t.tagName)?i=a:n[l]=a}}if(i){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function Rs(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const o=i.data.estree.body[0];o.type;const l=o.expression;l.type;const a=l.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Wt(e,t.position);else{const r=i.name;let o;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const a=i.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else Wt(e,t.position);else o=i.value===null?!0:i.value;n[r]=o}return n}function sr(e,t){const n=[];let i=-1;const r=e.passKeys?new Map:Es;for(;++i<t.children.length;){const o=t.children[i];let l;if(e.passKeys){const s=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(s){const u=r.get(s)||0;l=s+"-"+u,r.set(s,u+1)}}const a=Ti(e,o,l);a!==void 0&&n.push(a)}return n}function Hs(e,t,n){const i=Ja(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?Oa(n):qa(n)),i.property==="style"){let r=typeof n=="object"?n:Xs(e,String(n));return e.stylePropertyNameCase==="css"&&(r=Ws(r)),["style",r]}return[e.elementAttributeNameCase==="react"&&i.space?Wa[i.property]||i.property:i.attribute,n]}}function Xs(e,t){try{return Ss(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,r=new Me("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Fi+"#cannot-parse-style-attribute",r}}function Vi(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const r=t.split(".");let o=-1,l;for(;++o<r.length;){const a=ci(r[o])?{type:"Identifier",name:r[o]}:{type:"Literal",value:r[o]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}i=l}else i=ci(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const r=i.value;return lr.call(e.components,r)?e.components[r]:r}if(e.evaluater)return e.evaluater.evaluateExpression(i);Wt(e)}function Wt(e,t){const n=new Me("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=Fi+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Ws(e){const t={};let n;for(n in e)lr.call(e,n)&&(t[Zs(n)]=e[n]);return t}function Zs(e){let t=e.replace(ks,js);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function js(e){return"-"+e.toLowerCase()}const ur={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"]},Js={};function Ys(e,t){const n=Js,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Oi(e,i,r)}function Oi(e,t,n){if(_s(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ni(e.children,t,n)}return Array.isArray(e)?Ni(e,t,n):""}function Ni(e,t,n){const i=[];let r=-1;for(;++r<e.length;)i[r]=Oi(e[r],t,n);return i.join("")}function _s(e){return!!(e&&typeof e=="object")}const an={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
3
|
-
`,Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},Us={}.hasOwnProperty;function Di(e){return Us.call(an,e)?an[e]:!1}function tt(e,t,n,i){const r=e.length;let o=0,l;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,n=n>0?n:0,i.length<1e4)l=Array.from(i),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<i.length;)l=i.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function _e(e,t){return e.length>0?(tt(e,e.length,0,t),e):t}const Li={}.hasOwnProperty;function qs(e){const t={};let n=-1;for(;++n<e.length;)Qs(t,e[n]);return t}function Qs(e,t){let n;for(n in t){const r=(Li.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let l;if(o)for(l in o){Li.call(r,l)||(r[l]=[]);const a=o[l];$s(r[l],Array.isArray(a)?a:a?[a]:[])}}}function $s(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);tt(e,0,0,i)}function Mi(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Vt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const nt=mt(/[A-Za-z]/),je=mt(/[\dA-Za-z]/),Ks=mt(/[#-'*+\--9=?A-Z^-~]/);function cr(e){return e!==null&&(e<32||e===127)}const dr=mt(/\d/),eu=mt(/[\dA-Fa-f]/),tu=mt(/[!-/:-@[-`{-~]/);function oe(e){return e!==null&&e<-2}function Xe(e){return e!==null&&(e<0||e===32)}function he(e){return e===-2||e===-1||e===32}const nu=mt(new RegExp("\\p{P}|\\p{S}","u")),ru=mt(/\s/);function mt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ot(e){const t=[];let n=-1,i=0,r=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&je(e.charCodeAt(n+1))&&je(e.charCodeAt(n+2)))r=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),r=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(i,n),encodeURIComponent(l)),i=n+r+1,l=""),r&&(n+=r,r=0)}return t.join("")+e.slice(i)}function ye(e,t,n,i){const r=i?i-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(s){return he(s)?(e.enter(n),a(s)):t(s)}function a(s){return he(s)&&o++<r?(e.consume(s),a):(e.exit(n),t(s))}}const iu={tokenize:ou};function ou(e){const t=e.attempt(this.parser.constructs.contentInitial,i,r);let n;return t;function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ye(e,t,"linePrefix")}function r(a){return e.enter("paragraph"),o(a)}function o(a){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return oe(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const lu={tokenize:au},zi={tokenize:su};function au(e){const t=this,n=[];let i=0,r,o,l;return a;function a(S){if(i<n.length){const k=n[i];return t.containerState=k[1],e.attempt(k[0].continuation,s,u)(S)}return u(S)}function s(S){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&T();const k=t.events.length;let E=k,A;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){A=t.events[E][1].end;break}I(i);let M=k;for(;M<t.events.length;)t.events[M][1].end={...A},M++;return tt(t.events,E+1,0,t.events.slice(k)),t.events.length=M,u(S)}return a(S)}function u(S){if(i===n.length){if(!r)return f(S);if(r.currentConstruct&&r.currentConstruct.concrete)return y(S);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(zi,c,d)(S)}function c(S){return r&&T(),I(i),f(S)}function d(S){return t.parser.lazy[t.now().line]=i!==n.length,l=t.now().offset,y(S)}function f(S){return t.containerState={},e.attempt(zi,p,y)(S)}function p(S){return i++,n.push([t.currentConstruct,t.containerState]),f(S)}function y(S){if(S===null){r&&T(),I(0),e.consume(S);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),b(S)}function b(S){if(S===null){C(e.exit("chunkFlow"),!0),I(0),e.consume(S);return}return oe(S)?(e.consume(S),C(e.exit("chunkFlow")),i=0,t.interrupt=void 0,a):(e.consume(S),b)}function C(S,k){const E=t.sliceStream(S);if(k&&E.push(null),S.previous=o,o&&(o.next=S),o=S,r.defineSkip(S.start),r.write(E),t.parser.lazy[S.start.line]){let A=r.events.length;for(;A--;)if(r.events[A][1].start.offset<l&&(!r.events[A][1].end||r.events[A][1].end.offset>l))return;const M=t.events.length;let F=M,O,w;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){if(O){w=t.events[F][1].end;break}O=!0}for(I(i),A=M;A<t.events.length;)t.events[A][1].end={...w},A++;tt(t.events,F+1,0,t.events.slice(M)),t.events.length=A}}function I(S){let k=n.length;for(;k-- >S;){const E=n[k];t.containerState=E[1],E[0].exit.call(t,e)}n.length=S}function T(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}function su(e,t,n){return ye(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ri(e){if(e===null||Xe(e)||ru(e))return 1;if(nu(e))return 2}function pr(e,t,n){const i=[];let r=-1;for(;++r<e.length;){const o=e[r].resolveAll;o&&!i.includes(o)&&(t=o(t,n),i.push(o))}return t}const fr={name:"attention",resolveAll:uu,tokenize:cu};function uu(e,t){let n=-1,i,r,o,l,a,s,u,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[i][1].end},f={...e[n][1].start};Hi(d,-s),Hi(f,s),l={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[i][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},o={type:s>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},r={type:s>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[i][1].end={...l.start},e[n][1].start={...a.end},u=[],e[i][1].end.offset-e[i][1].start.offset&&(u=_e(u,[["enter",e[i][1],t],["exit",e[i][1],t]])),u=_e(u,[["enter",r,t],["enter",l,t],["exit",l,t],["enter",o,t]]),u=_e(u,pr(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),u=_e(u,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=_e(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,tt(e,i-1,n-i+3,u),n=i+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function cu(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,r=Ri(i);let o;return l;function l(s){return o=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===o)return e.consume(s),a;const u=e.exit("attentionSequence"),c=Ri(s),d=!c||c===2&&r||n.includes(s),f=!r||r===2&&c||n.includes(i);return u._open=!!(o===42?d:d&&(r||!f)),u._close=!!(o===42?f:f&&(c||!d)),t(s)}}function Hi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const du={name:"autolink",tokenize:pu};function pu(e,t,n){let i=0;return r;function r(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return nt(p)?(e.consume(p),l):p===64?n(p):u(p)}function l(p){return p===43||p===45||p===46||je(p)?(i=1,a(p)):u(p)}function a(p){return p===58?(e.consume(p),i=0,s):(p===43||p===45||p===46||je(p))&&i++<32?(e.consume(p),a):(i=0,u(p))}function s(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||cr(p)?n(p):(e.consume(p),s)}function u(p){return p===64?(e.consume(p),c):Ks(p)?(e.consume(p),u):n(p)}function c(p){return je(p)?d(p):n(p)}function d(p){return p===46?(e.consume(p),i=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):f(p)}function f(p){if((p===45||je(p))&&i++<63){const y=p===45?f:d;return e.consume(p),y}return n(p)}}const sn={partial:!0,tokenize:fu};function fu(e,t,n){return i;function i(o){return he(o)?ye(e,r,"linePrefix")(o):r(o)}function r(o){return o===null||oe(o)?t(o):n(o)}}const Xi={continuation:{tokenize:hu},exit:mu,name:"blockQuote",tokenize:gu};function gu(e,t,n){const i=this;return r;function r(l){if(l===62){const a=i.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return he(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function hu(e,t,n){const i=this;return r;function r(l){return he(l)?ye(e,o,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Xi,t,n)(l)}}function mu(e){e.exit("blockQuote")}const Wi={name:"characterEscape",tokenize:bu};function bu(e,t,n){return i;function i(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),r}function r(o){return tu(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Zi={name:"characterReference",tokenize:yu};function yu(e,t,n){const i=this;let r=0,o,l;return a;function a(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),s}function s(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,l=je,c(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=eu,c):(e.enter("characterReferenceValue"),o=7,l=dr,c(d))}function c(d){if(d===59&&r){const f=e.exit("characterReferenceValue");return l===je&&!Di(i.sliceSerialize(f))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(d)&&r++<o?(e.consume(d),c):n(d)}}const ji={partial:!0,tokenize:vu},Ji={concrete:!0,name:"codeFenced",tokenize:Iu};function Iu(e,t,n){const i=this,r={partial:!0,tokenize:E};let o=0,l=0,a;return s;function s(A){return u(A)}function u(A){const M=i.events[i.events.length-1];return o=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,a=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(A)}function c(A){return A===a?(l++,e.consume(A),c):l<3?n(A):(e.exit("codeFencedFenceSequence"),he(A)?ye(e,d,"whitespace")(A):d(A))}function d(A){return A===null||oe(A)?(e.exit("codeFencedFence"),i.interrupt?t(A):e.check(ji,b,k)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(A))}function f(A){return A===null||oe(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(A)):he(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ye(e,p,"whitespace")(A)):A===96&&A===a?n(A):(e.consume(A),f)}function p(A){return A===null||oe(A)?d(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(A))}function y(A){return A===null||oe(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(A)):A===96&&A===a?n(A):(e.consume(A),y)}function b(A){return e.attempt(r,k,C)(A)}function C(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),I}function I(A){return o>0&&he(A)?ye(e,T,"linePrefix",o+1)(A):T(A)}function T(A){return A===null||oe(A)?e.check(ji,b,k)(A):(e.enter("codeFlowValue"),S(A))}function S(A){return A===null||oe(A)?(e.exit("codeFlowValue"),T(A)):(e.consume(A),S)}function k(A){return e.exit("codeFenced"),t(A)}function E(A,M,F){let O=0;return w;function w(W){return A.enter("lineEnding"),A.consume(W),A.exit("lineEnding"),N}function N(W){return A.enter("codeFencedFence"),he(W)?ye(A,V,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):V(W)}function V(W){return W===a?(A.enter("codeFencedFenceSequence"),H(W)):F(W)}function H(W){return W===a?(O++,A.consume(W),H):O>=l?(A.exit("codeFencedFenceSequence"),he(W)?ye(A,q,"whitespace")(W):q(W)):F(W)}function q(W){return W===null||oe(W)?(A.exit("codeFencedFence"),M(W)):F(W)}}}function vu(e,t,n){const i=this;return r;function r(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return i.parser.lazy[i.now().line]?n(l):t(l)}}const gr={name:"codeIndented",tokenize:xu},Cu={partial:!0,tokenize:Au};function xu(e,t,n){const i=this;return r;function r(u){return e.enter("codeIndented"),ye(e,o,"linePrefix",5)(u)}function o(u){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?l(u):n(u)}function l(u){return u===null?s(u):oe(u)?e.attempt(Cu,l,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||oe(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),t(u)}}function Au(e,t,n){const i=this;return r;function r(l){return i.parser.lazy[i.now().line]?n(l):oe(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r):ye(e,o,"linePrefix",5)(l)}function o(l){const a=i.events[i.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):oe(l)?r(l):n(l)}}const Su={name:"codeText",previous:Eu,resolve:wu,tokenize:ku};function wu(e){let t=e.length-4,n=3,i,r;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)r===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(r=i):(i===t||e[i][1].type==="lineEnding")&&(e[r][1].type="codeTextData",i!==r+2&&(e[r][1].end=e[i-1][1].end,e.splice(r+2,i-r-2),t-=i-r-2,i=r+2),r=void 0);return e}function Eu(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ku(e,t,n){let i=0,r,o;return l;function l(d){return e.enter("codeText"),e.enter("codeTextSequence"),a(d)}function a(d){return d===96?(e.consume(d),i++,a):(e.exit("codeTextSequence"),s(d))}function s(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),s):d===96?(o=e.enter("codeTextSequence"),r=0,c(d)):oe(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(d))}function u(d){return d===null||d===32||d===96||oe(d)?(e.exit("codeTextData"),s(d)):(e.consume(d),u)}function c(d){return d===96?(e.consume(d),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(o.type="codeTextData",u(d))}}class Bu{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const r=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return i&&Zt(this.left,i),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Zt(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Zt(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Zt(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Zt(this.left,n.reverse())}}}function Zt(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 Yi(e){const t={};let n=-1,i,r,o,l,a,s,u;const c=new Bu(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(i=c.get(n),n&&i[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(s=i[1]._tokenizer.events,o=0,o<s.length&&s[o][1].type==="lineEndingBlank"&&(o+=2),o<s.length&&s[o][1].type==="content"))for(;++o<s.length&&s[o][1].type!=="content";)s[o][1].type==="chunkText"&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,Pu(c,n)),n=t[n],u=!0);else if(i[1]._container){for(o=n,r=void 0;o--;)if(l=c.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(r&&(c.get(r)[1].type="lineEndingBlank"),l[1].type="lineEnding",r=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;r&&(i[1].end={...c.get(r)[1].start},a=c.slice(r,n),a.unshift(i),c.splice(r,n-r+1,a))}}return tt(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function Pu(e,t){const n=e.get(t)[1],i=e.get(t)[2];let r=t-1;const o=[];let l=n._tokenizer;l||(l=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,s=[],u={};let c,d,f=-1,p=n,y=0,b=0;const C=[b];for(;p;){for(;e.get(++r)[1]!==p;);o.push(r),p._tokenizer||(c=i.sliceStream(p),p.next||c.push(null),d&&l.defineSkip(p.start),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(c),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<a.length;)a[f][0]==="exit"&&a[f-1][0]==="enter"&&a[f][1].type===a[f-1][1].type&&a[f][1].start.line!==a[f][1].end.line&&(b=f+1,C.push(b),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(l.events=[],p?(p._tokenizer=void 0,p.previous=void 0):C.pop(),f=C.length;f--;){const I=a.slice(C[f],C[f+1]),T=o.pop();s.push([T,T+I.length-1]),e.splice(T,2,I)}for(s.reverse(),f=-1;++f<s.length;)u[y+s[f][0]]=y+s[f][1],y+=s[f][1]-s[f][0]-1;return u}const Fu={resolve:Gu,tokenize:Vu},Tu={partial:!0,tokenize:Ou};function Gu(e){return Yi(e),e}function Vu(e,t){let n;return i;function i(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(a)}function r(a){return a===null?o(a):oe(a)?e.check(Tu,l,o)(a):(e.consume(a),r)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function l(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}function Ou(e,t,n){const i=this;return r;function r(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),ye(e,o,"linePrefix")}function o(l){if(l===null||oe(l))return n(l);const a=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):e.interrupt(i.parser.constructs.flow,n,t)(l)}}function _i(e,t,n,i,r,o,l,a,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return d;function d(I){return I===60?(e.enter(i),e.enter(r),e.enter(o),e.consume(I),e.exit(o),f):I===null||I===32||I===41||cr(I)?n(I):(e.enter(i),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),b(I))}function f(I){return I===62?(e.enter(o),e.consume(I),e.exit(o),e.exit(r),e.exit(i),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(I))}function p(I){return I===62?(e.exit("chunkString"),e.exit(a),f(I)):I===null||I===60||oe(I)?n(I):(e.consume(I),I===92?y:p)}function y(I){return I===60||I===62||I===92?(e.consume(I),p):p(I)}function b(I){return!c&&(I===null||I===41||Xe(I))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(i),t(I)):c<u&&I===40?(e.consume(I),c++,b):I===41?(e.consume(I),c--,b):I===null||I===32||I===40||cr(I)?n(I):(e.consume(I),I===92?C:b)}function C(I){return I===40||I===41||I===92?(e.consume(I),b):b(I)}}function Ui(e,t,n,i,r,o){const l=this;let a=0,s;return u;function u(p){return e.enter(i),e.enter(r),e.consume(p),e.exit(r),e.enter(o),c}function c(p){return a>999||p===null||p===91||p===93&&!s||p===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?n(p):p===93?(e.exit(o),e.enter(r),e.consume(p),e.exit(r),e.exit(i),t):oe(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||oe(p)||a++>999?(e.exit("chunkString"),c(p)):(e.consume(p),s||(s=!he(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),a++,d):d(p)}}function qi(e,t,n,i,r,o){let l;return a;function a(f){return f===34||f===39||f===40?(e.enter(i),e.enter(r),e.consume(f),e.exit(r),l=f===40?41:f,s):n(f)}function s(f){return f===l?(e.enter(r),e.consume(f),e.exit(r),e.exit(i),t):(e.enter(o),u(f))}function u(f){return f===l?(e.exit(o),s(l)):f===null?n(f):oe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),ye(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===l||f===null||oe(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===l||f===92?(e.consume(f),c):c(f)}}function jt(e,t){let n;return i;function i(r){return oe(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,i):he(r)?ye(e,i,n?"linePrefix":"lineSuffix")(r):t(r)}}const Nu={name:"definition",tokenize:Lu},Du={partial:!0,tokenize:Mu};function Lu(e,t,n){const i=this;let r;return o;function o(p){return e.enter("definition"),l(p)}function l(p){return Ui.call(i,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return r=Vt(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):n(p)}function s(p){return Xe(p)?jt(e,u)(p):u(p)}function u(p){return _i(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(Du,d,d)(p)}function d(p){return he(p)?ye(e,f,"whitespace")(p):f(p)}function f(p){return p===null||oe(p)?(e.exit("definition"),i.parser.defined.push(r),t(p)):n(p)}}function Mu(e,t,n){return i;function i(a){return Xe(a)?jt(e,r)(a):n(a)}function r(a){return qi(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return he(a)?ye(e,l,"whitespace")(a):l(a)}function l(a){return a===null||oe(a)?t(a):n(a)}}const zu={name:"hardBreakEscape",tokenize:Ru};function Ru(e,t,n){return i;function i(o){return e.enter("hardBreakEscape"),e.consume(o),r}function r(o){return oe(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Hu={name:"headingAtx",resolve:Xu,tokenize:Wu};function Xu(e,t){let n=e.length-2,i=3,r,o;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(r={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},o={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},tt(e,i,n-i+1,[["enter",r,t],["enter",o,t],["exit",o,t],["exit",r,t]])),e}function Wu(e,t,n){let i=0;return r;function r(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),l(c)}function l(c){return c===35&&i++<6?(e.consume(c),l):c===null||Xe(c)?(e.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||oe(c)?(e.exit("atxHeading"),t(c)):he(c)?ye(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||Xe(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const Zu=["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"],Qi=["pre","script","style","textarea"],ju={concrete:!0,name:"htmlFlow",resolveTo:_u,tokenize:Uu},Ju={partial:!0,tokenize:Qu},Yu={partial:!0,tokenize:qu};function _u(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Uu(e,t,n){const i=this;let r,o,l,a,s;return u;function u(m){return c(m)}function c(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),d}function d(m){return m===33?(e.consume(m),f):m===47?(e.consume(m),o=!0,b):m===63?(e.consume(m),r=3,i.interrupt?t:g):nt(m)?(e.consume(m),l=String.fromCharCode(m),C):n(m)}function f(m){return m===45?(e.consume(m),r=2,p):m===91?(e.consume(m),r=5,a=0,y):nt(m)?(e.consume(m),r=4,i.interrupt?t:g):n(m)}function p(m){return m===45?(e.consume(m),i.interrupt?t:g):n(m)}function y(m){const pe="CDATA[";return m===pe.charCodeAt(a++)?(e.consume(m),a===pe.length?i.interrupt?t:V:y):n(m)}function b(m){return nt(m)?(e.consume(m),l=String.fromCharCode(m),C):n(m)}function C(m){if(m===null||m===47||m===62||Xe(m)){const pe=m===47,te=l.toLowerCase();return!pe&&!o&&Qi.includes(te)?(r=1,i.interrupt?t(m):V(m)):Zu.includes(l.toLowerCase())?(r=6,pe?(e.consume(m),I):i.interrupt?t(m):V(m)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(m):o?T(m):S(m))}return m===45||je(m)?(e.consume(m),l+=String.fromCharCode(m),C):n(m)}function I(m){return m===62?(e.consume(m),i.interrupt?t:V):n(m)}function T(m){return he(m)?(e.consume(m),T):w(m)}function S(m){return m===47?(e.consume(m),w):m===58||m===95||nt(m)?(e.consume(m),k):he(m)?(e.consume(m),S):w(m)}function k(m){return m===45||m===46||m===58||m===95||je(m)?(e.consume(m),k):E(m)}function E(m){return m===61?(e.consume(m),A):he(m)?(e.consume(m),E):S(m)}function A(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),s=m,M):he(m)?(e.consume(m),A):F(m)}function M(m){return m===s?(e.consume(m),s=null,O):m===null||oe(m)?n(m):(e.consume(m),M)}function F(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||Xe(m)?E(m):(e.consume(m),F)}function O(m){return m===47||m===62||he(m)?S(m):n(m)}function w(m){return m===62?(e.consume(m),N):n(m)}function N(m){return m===null||oe(m)?V(m):he(m)?(e.consume(m),N):n(m)}function V(m){return m===45&&r===2?(e.consume(m),J):m===60&&r===1?(e.consume(m),le):m===62&&r===4?(e.consume(m),ue):m===63&&r===3?(e.consume(m),g):m===93&&r===5?(e.consume(m),G):oe(m)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(Ju,_,H)(m)):m===null||oe(m)?(e.exit("htmlFlowData"),H(m)):(e.consume(m),V)}function H(m){return e.check(Yu,q,_)(m)}function q(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),W}function W(m){return m===null||oe(m)?H(m):(e.enter("htmlFlowData"),V(m))}function J(m){return m===45?(e.consume(m),g):V(m)}function le(m){return m===47?(e.consume(m),l="",se):V(m)}function se(m){if(m===62){const pe=l.toLowerCase();return Qi.includes(pe)?(e.consume(m),ue):V(m)}return nt(m)&&l.length<8?(e.consume(m),l+=String.fromCharCode(m),se):V(m)}function G(m){return m===93?(e.consume(m),g):V(m)}function g(m){return m===62?(e.consume(m),ue):m===45&&r===2?(e.consume(m),g):V(m)}function ue(m){return m===null||oe(m)?(e.exit("htmlFlowData"),_(m)):(e.consume(m),ue)}function _(m){return e.exit("htmlFlow"),t(m)}}function qu(e,t,n){const i=this;return r;function r(l){return oe(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return i.parser.lazy[i.now().line]?n(l):t(l)}}function Qu(e,t,n){return i;function i(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(sn,t,n)}}const $u={name:"htmlText",tokenize:Ku};function Ku(e,t,n){const i=this;let r,o,l;return a;function a(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),s}function s(g){return g===33?(e.consume(g),u):g===47?(e.consume(g),E):g===63?(e.consume(g),S):nt(g)?(e.consume(g),F):n(g)}function u(g){return g===45?(e.consume(g),c):g===91?(e.consume(g),o=0,y):nt(g)?(e.consume(g),T):n(g)}function c(g){return g===45?(e.consume(g),p):n(g)}function d(g){return g===null?n(g):g===45?(e.consume(g),f):oe(g)?(l=d,le(g)):(e.consume(g),d)}function f(g){return g===45?(e.consume(g),p):d(g)}function p(g){return g===62?J(g):g===45?f(g):d(g)}function y(g){const ue="CDATA[";return g===ue.charCodeAt(o++)?(e.consume(g),o===ue.length?b:y):n(g)}function b(g){return g===null?n(g):g===93?(e.consume(g),C):oe(g)?(l=b,le(g)):(e.consume(g),b)}function C(g){return g===93?(e.consume(g),I):b(g)}function I(g){return g===62?J(g):g===93?(e.consume(g),I):b(g)}function T(g){return g===null||g===62?J(g):oe(g)?(l=T,le(g)):(e.consume(g),T)}function S(g){return g===null?n(g):g===63?(e.consume(g),k):oe(g)?(l=S,le(g)):(e.consume(g),S)}function k(g){return g===62?J(g):S(g)}function E(g){return nt(g)?(e.consume(g),A):n(g)}function A(g){return g===45||je(g)?(e.consume(g),A):M(g)}function M(g){return oe(g)?(l=M,le(g)):he(g)?(e.consume(g),M):J(g)}function F(g){return g===45||je(g)?(e.consume(g),F):g===47||g===62||Xe(g)?O(g):n(g)}function O(g){return g===47?(e.consume(g),J):g===58||g===95||nt(g)?(e.consume(g),w):oe(g)?(l=O,le(g)):he(g)?(e.consume(g),O):J(g)}function w(g){return g===45||g===46||g===58||g===95||je(g)?(e.consume(g),w):N(g)}function N(g){return g===61?(e.consume(g),V):oe(g)?(l=N,le(g)):he(g)?(e.consume(g),N):O(g)}function V(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),r=g,H):oe(g)?(l=V,le(g)):he(g)?(e.consume(g),V):(e.consume(g),q)}function H(g){return g===r?(e.consume(g),r=void 0,W):g===null?n(g):oe(g)?(l=H,le(g)):(e.consume(g),H)}function q(g){return g===null||g===34||g===39||g===60||g===61||g===96?n(g):g===47||g===62||Xe(g)?O(g):(e.consume(g),q)}function W(g){return g===47||g===62||Xe(g)?O(g):n(g)}function J(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),t):n(g)}function le(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),se}function se(g){return he(g)?ye(e,G,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g):G(g)}function G(g){return e.enter("htmlTextData"),l(g)}}const hr={name:"labelEnd",resolveAll:rc,resolveTo:ic,tokenize:oc},ec={tokenize:lc},tc={tokenize:ac},nc={tokenize:sc};function rc(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const r=i.type==="labelImage"?4:2;i.type="data",t+=r}}return e.length!==n.length&&tt(e,0,e.length,n),e}function ic(e,t){let n=e.length,i=0,r,o,l,a;for(;n--;)if(r=e[n][1],o){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[n][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(o=n,r.type!=="labelLink")){i=2;break}}else r.type==="labelEnd"&&(l=n);const s={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},c={type:"labelText",start:{...e[o+i+2][1].end},end:{...e[l-2][1].start}};return a=[["enter",s,t],["enter",u,t]],a=_e(a,e.slice(o+1,o+i+3)),a=_e(a,[["enter",c,t]]),a=_e(a,pr(t.parser.constructs.insideSpan.null,e.slice(o+i+4,l-3),t)),a=_e(a,[["exit",c,t],e[l-2],e[l-1],["exit",u,t]]),a=_e(a,e.slice(l+1)),a=_e(a,[["exit",s,t]]),tt(e,o,e.length,a),e}function oc(e,t,n){const i=this;let r=i.events.length,o,l;for(;r--;)if((i.events[r][1].type==="labelImage"||i.events[r][1].type==="labelLink")&&!i.events[r][1]._balanced){o=i.events[r][1];break}return a;function a(f){return o?o._inactive?d(f):(l=i.parser.defined.includes(Vt(i.sliceSerialize({start:o.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),s):n(f)}function s(f){return f===40?e.attempt(ec,c,l?c:d)(f):f===91?e.attempt(tc,c,l?u:d)(f):l?c(f):d(f)}function u(f){return e.attempt(nc,c,d)(f)}function c(f){return t(f)}function d(f){return o._balanced=!0,n(f)}}function lc(e,t,n){return i;function i(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),r}function r(d){return Xe(d)?jt(e,o)(d):o(d)}function o(d){return d===41?c(d):_i(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function l(d){return Xe(d)?jt(e,s)(d):c(d)}function a(d){return n(d)}function s(d){return d===34||d===39||d===40?qi(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return Xe(d)?jt(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function ac(e,t,n){const i=this;return r;function r(a){return Ui.call(i,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return i.parser.defined.includes(Vt(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function l(a){return n(a)}}function sc(e,t,n){return i;function i(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),r}function r(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const uc={name:"labelStartImage",resolveAll:hr.resolveAll,tokenize:cc};function cc(e,t,n){const i=this;return r;function r(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):n(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(a):t(a)}}const dc={name:"labelStartLink",resolveAll:hr.resolveAll,tokenize:pc};function pc(e,t,n){const i=this;return r;function r(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(l):t(l)}}const mr={name:"lineEnding",tokenize:fc};function fc(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),ye(e,t,"linePrefix")}}const un={name:"thematicBreak",tokenize:gc};function gc(e,t,n){let i=0,r;return o;function o(u){return e.enter("thematicBreak"),l(u)}function l(u){return r=u,a(u)}function a(u){return u===r?(e.enter("thematicBreakSequence"),s(u)):i>=3&&(u===null||oe(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===r?(e.consume(u),i++,s):(e.exit("thematicBreakSequence"),he(u)?ye(e,a,"whitespace")(u):a(u))}}const We={continuation:{tokenize:yc},exit:vc,name:"list",tokenize:bc},hc={partial:!0,tokenize:Cc},mc={partial:!0,tokenize:Ic};function bc(e,t,n){const i=this,r=i.events[i.events.length-1];let o=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,l=0;return a;function a(p){const y=i.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!i.containerState.marker||p===i.containerState.marker:dr(p)){if(i.containerState.type||(i.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(un,n,u)(p):u(p);if(!i.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return n(p)}function s(p){return dr(p)&&++l<10?(e.consume(p),s):(!i.interrupt||l<2)&&(i.containerState.marker?p===i.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||p,e.check(sn,i.interrupt?n:c,e.attempt(hc,f,d))}function c(p){return i.containerState.initialBlankLine=!0,o++,f(p)}function d(p){return he(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return i.containerState.size=o+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function yc(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(sn,r,o);function r(a){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,ye(e,t,"listItemIndent",i.containerState.size+1)(a)}function o(a){return i.containerState.furtherBlankLines||!he(a)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,l(a)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(mc,t,l)(a))}function l(a){return i.containerState._closeFlow=!0,i.interrupt=void 0,ye(e,e.attempt(We,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Ic(e,t,n){const i=this;return ye(e,r,"listItemIndent",i.containerState.size+1);function r(o){const l=i.events[i.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===i.containerState.size?t(o):n(o)}}function vc(e){e.exit(this.containerState.type)}function Cc(e,t,n){const i=this;return ye(e,r,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(o){const l=i.events[i.events.length-1];return!he(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const $i={name:"setextUnderline",resolveTo:xc,tokenize:Ac};function xc(e,t){let n=e.length,i,r,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(r=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",l,t]),e.splice(o+1,0,["exit",e[i][1],t]),e[i][1].end={...e[o][1].end}):e[i][1]=l,e.push(["exit",l,t]),e}function Ac(e,t,n){const i=this;let r;return o;function o(u){let c=i.events.length,d;for(;c--;)if(i.events[c][1].type!=="lineEnding"&&i.events[c][1].type!=="linePrefix"&&i.events[c][1].type!=="content"){d=i.events[c][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||d)?(e.enter("setextHeadingLine"),r=u,l(u)):n(u)}function l(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===r?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),he(u)?ye(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||oe(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Sc={tokenize:wc};function wc(e){const t=this,n=e.attempt(sn,i,e.attempt(this.parser.constructs.flowInitial,r,ye(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Fu,r)),"linePrefix")));return n;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Ec={resolveAll:eo()},kc=Ki("string"),Bc=Ki("text");function Ki(e){return{resolveAll:eo(e==="text"?Pc:void 0),tokenize:t};function t(n){const i=this,r=this.parser.constructs[e],o=n.attempt(r,l,a);return l;function l(c){return u(c)?o(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),s}function s(c){return u(c)?(n.exit("data"),o(c)):(n.consume(c),s)}function u(c){if(c===null)return!0;const d=r[c];let f=-1;if(d)for(;++f<d.length;){const p=d[f];if(!p.previous||p.previous.call(i,i.previous))return!0}return!1}}}function eo(e){return t;function t(n,i){let r=-1,o;for(;++r<=n.length;)o===void 0?n[r]&&n[r][1].type==="data"&&(o=r,r++):(!n[r]||n[r][1].type!=="data")&&(r!==o+2&&(n[o][1].end=n[r-1][1].end,n.splice(o+2,r-o-2),r=o+2),o=void 0);return e?e(n,i):n}}function Pc(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],r=t.sliceStream(i);let o=r.length,l=-1,a=0,s;for(;o--;){const u=r[o];if(typeof u=="string"){for(l=u.length;u.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(u===-2)s=!0,a++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||s||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:i.start._bufferIndex+l,_index:i.start._index+o,line:i.end.line,column:i.end.column-a,offset:i.end.offset-a},end:{...i.end}};i.end={...u.start},i.start.offset===i.end.offset?Object.assign(i,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const Fc=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Nu},disable:{null:[]},document:{42:We,43:We,45:We,48:We,49:We,50:We,51:We,52:We,53:We,54:We,55:We,56:We,57:We,62:Xi},flow:{35:Hu,42:un,45:[$i,un],60:ju,61:$i,95:un,96:Ji,126:Ji},flowInitial:{[-2]:gr,[-1]:gr,32:gr},insideSpan:{null:[fr,Ec]},string:{38:Zi,92:Wi},text:{[-5]:mr,[-4]:mr,[-3]:mr,33:uc,38:Zi,42:fr,60:[du,$u],91:dc,92:[zu,Wi],93:hr,95:fr,96:Su}},Symbol.toStringTag,{value:"Module"}));function Tc(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const r={},o=[];let l=[],a=[];const s={attempt:M(E),check:M(A),consume:T,enter:S,exit:k,interrupt:M(A,{interrupt:!0})},u={code:null,containerState:{},defineSkip:b,events:[],now:y,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d};let c=t.tokenize.call(u,s);return t.resolveAll&&o.push(t),u;function d(N){return l=_e(l,N),C(),l[l.length-1]!==null?[]:(F(t,0),u.events=pr(o,u.events,u),u.events)}function f(N,V){return Vc(p(N),V)}function p(N){return Gc(l,N)}function y(){const{_bufferIndex:N,_index:V,line:H,column:q,offset:W}=i;return{_bufferIndex:N,_index:V,line:H,column:q,offset:W}}function b(N){r[N.line]=N.column,w()}function C(){let N;for(;i._index<l.length;){const V=l[i._index];if(typeof V=="string")for(N=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===N&&i._bufferIndex<V.length;)I(V.charCodeAt(i._bufferIndex));else I(V)}}function I(N){c=c(N)}function T(N){oe(N)?(i.line++,i.column=1,i.offset+=N===-3?2:1,w()):N!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===l[i._index].length&&(i._bufferIndex=-1,i._index++)),u.previous=N}function S(N,V){const H=V||{};return H.type=N,H.start=y(),u.events.push(["enter",H,u]),a.push(H),H}function k(N){const V=a.pop();return V.end=y(),u.events.push(["exit",V,u]),V}function E(N,V){F(N,V.from)}function A(N,V){V.restore()}function M(N,V){return H;function H(q,W,J){let le,se,G,g;return Array.isArray(q)?_(q):"tokenize"in q?_([q]):ue(q);function ue(ne){return ke;function ke(fe){const Ge=fe!==null&&ne[fe],de=fe!==null&&ne.null,ve=[...Array.isArray(Ge)?Ge:Ge?[Ge]:[],...Array.isArray(de)?de:de?[de]:[]];return _(ve)(fe)}}function _(ne){return le=ne,se=0,ne.length===0?J:m(ne[se])}function m(ne){return ke;function ke(fe){return g=O(),G=ne,ne.partial||(u.currentConstruct=ne),ne.name&&u.parser.constructs.disable.null.includes(ne.name)?te():ne.tokenize.call(V?Object.assign(Object.create(u),V):u,s,pe,te)(fe)}}function pe(ne){return N(G,g),W}function te(ne){return g.restore(),++se<le.length?m(le[se]):J}}}function F(N,V){N.resolveAll&&!o.includes(N)&&o.push(N),N.resolve&&tt(u.events,V,u.events.length-V,N.resolve(u.events.slice(V),u)),N.resolveTo&&(u.events=N.resolveTo(u.events,u))}function O(){const N=y(),V=u.previous,H=u.currentConstruct,q=u.events.length,W=Array.from(a);return{from:q,restore:J};function J(){i=N,u.previous=V,u.currentConstruct=H,u.events.length=q,a=W,w()}}function w(){i.line in r&&i.column<2&&(i.column=r[i.line],i.offset+=r[i.line]-1)}}function Gc(e,t){const n=t.start._index,i=t.start._bufferIndex,r=t.end._index,o=t.end._bufferIndex;let l;if(n===r)l=[e[n].slice(i,o)];else{if(l=e.slice(n,r),i>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(i):l.shift()}o>0&&l.push(e[r].slice(0,o))}return l}function Vc(e,t){let n=-1;const i=[];let r;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
|
|
1
|
+
(function($,k){typeof exports=="object"&&typeof module<"u"?k(exports,require("react/jsx-runtime"),require("react"),require("@tanstack/react-query"),require("@emotion/react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","@tanstack/react-query","@emotion/react","react-dom"],k):($=typeof globalThis<"u"?globalThis:$||self,k($["connect-react"]={},$["react/jsx-runtime"],$.React,$.reactQuery,$["@emotion/react"],$.ReactDOM))})(this,function($,k,A,st,U,Ga){"use strict";function Va(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ge=Va(A);function Mm(){}function zm(){}function Oa(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Na=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Da=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,La={};function ci(e,t){return(La.jsx?Da:Na).test(e)}const Ma=/[ \t\n\f\r]/g;function za(e){return typeof e=="object"?e.type==="text"?di(e.value):!1:di(e)}function di(e){return e.replace(Ma,"")===""}class Ht{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}Ht.prototype.normal={},Ht.prototype.property={},Ht.prototype.space=void 0;function pi(e,t){const n={},i={};for(const r of e)Object.assign(n,r.property),Object.assign(i,r.normal);return new Ht(n,i,t)}function Un(e){return e.toLowerCase()}class He{constructor(t,n){this.attribute=n,this.property=t}}He.prototype.attribute="",He.prototype.booleanish=!1,He.prototype.boolean=!1,He.prototype.commaOrSpaceSeparated=!1,He.prototype.commaSeparated=!1,He.prototype.defined=!1,He.prototype.mustUseProperty=!1,He.prototype.number=!1,He.prototype.overloadedBoolean=!1,He.prototype.property="",He.prototype.spaceSeparated=!1,He.prototype.space=void 0;let Ra=0;const ae=xt(),Fe=xt(),qn=xt(),L=xt(),be=xt(),Tt=xt(),Ze=xt();function xt(){return 2**++Ra}const Qn=Object.freeze(Object.defineProperty({__proto__:null,boolean:ae,booleanish:Fe,commaOrSpaceSeparated:Ze,commaSeparated:Tt,number:L,overloadedBoolean:qn,spaceSeparated:be},Symbol.toStringTag,{value:"Module"})),$n=Object.keys(Qn);class Kn extends He{constructor(t,n,i,r){let o=-1;if(super(t,n),fi(this,"space",r),typeof i=="number")for(;++o<$n.length;){const l=$n[o];fi(this,$n[o],(i&Qn[l])===Qn[l])}}}Kn.prototype.defined=!0;function fi(e,t,n){n&&(e[t]=n)}function Gt(e){const t={},n={};for(const[i,r]of Object.entries(e.properties)){const o=new Kn(i,e.transform(e.attributes||{},i),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(o.mustUseProperty=!0),t[i]=o,n[Un(i)]=i,n[Un(o.attribute)]=i}return new Ht(t,n,e.space)}const gi=Gt({properties:{ariaActiveDescendant:null,ariaAtomic:Fe,ariaAutoComplete:null,ariaBusy:Fe,ariaChecked:Fe,ariaColCount:L,ariaColIndex:L,ariaColSpan:L,ariaControls:be,ariaCurrent:null,ariaDescribedBy:be,ariaDetails:null,ariaDisabled:Fe,ariaDropEffect:be,ariaErrorMessage:null,ariaExpanded:Fe,ariaFlowTo:be,ariaGrabbed:Fe,ariaHasPopup:null,ariaHidden:Fe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:be,ariaLevel:L,ariaLive:null,ariaModal:Fe,ariaMultiLine:Fe,ariaMultiSelectable:Fe,ariaOrientation:null,ariaOwns:be,ariaPlaceholder:null,ariaPosInSet:L,ariaPressed:Fe,ariaReadOnly:Fe,ariaRelevant:null,ariaRequired:Fe,ariaRoleDescription:be,ariaRowCount:L,ariaRowIndex:L,ariaRowSpan:L,ariaSelected:Fe,ariaSetSize:L,ariaSort:null,ariaValueMax:L,ariaValueMin:L,ariaValueNow:L,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function hi(e,t){return t in e?e[t]:t}function mi(e,t){return hi(e,t.toLowerCase())}const Ha=Gt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Tt,acceptCharset:be,accessKey:be,action:null,allow:null,allowFullScreen:ae,allowPaymentRequest:ae,allowUserMedia:ae,alt:null,as:null,async:ae,autoCapitalize:null,autoComplete:be,autoFocus:ae,autoPlay:ae,blocking:be,capture:null,charSet:null,checked:ae,cite:null,className:be,cols:L,colSpan:null,content:null,contentEditable:Fe,controls:ae,controlsList:be,coords:L|Tt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ae,defer:ae,dir:null,dirName:null,disabled:ae,download:qn,draggable:Fe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ae,formTarget:null,headers:be,height:L,hidden:qn,high:L,href:null,hrefLang:null,htmlFor:be,httpEquiv:be,id:null,imageSizes:null,imageSrcSet:null,inert:ae,inputMode:null,integrity:null,is:null,isMap:ae,itemId:null,itemProp:be,itemRef:be,itemScope:ae,itemType:be,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ae,low:L,manifest:null,max:null,maxLength:L,media:null,method:null,min:null,minLength:L,multiple:ae,muted:ae,name:null,nonce:null,noModule:ae,noValidate:ae,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:ae,optimum:L,pattern:null,ping:be,placeholder:null,playsInline:ae,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ae,referrerPolicy:null,rel:be,required:ae,reversed:ae,rows:L,rowSpan:L,sandbox:be,scope:null,scoped:ae,seamless:ae,selected:ae,shadowRootClonable:ae,shadowRootDelegatesFocus:ae,shadowRootMode:null,shape:null,size:L,sizes:null,slot:null,span:L,spellCheck:Fe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:L,step:null,style:null,tabIndex:L,target:null,title:null,translate:null,type:null,typeMustMatch:ae,useMap:null,value:Fe,width:L,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:be,axis:null,background:null,bgColor:null,border:L,borderColor:null,bottomMargin:L,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ae,declare:ae,event:null,face:null,frame:null,frameBorder:null,hSpace:L,leftMargin:L,link:null,longDesc:null,lowSrc:null,marginHeight:L,marginWidth:L,noResize:ae,noHref:ae,noShade:ae,noWrap:ae,object:null,profile:null,prompt:null,rev:null,rightMargin:L,rules:null,scheme:null,scrolling:Fe,standby:null,summary:null,text:null,topMargin:L,valueType:null,version:null,vAlign:null,vLink:null,vSpace:L,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ae,disableRemotePlayback:ae,prefix:null,property:null,results:L,security:null,unselectable:null},space:"html",transform:mi}),Xa=Gt({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:Ze,accentHeight:L,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:L,amplitude:L,arabicForm:null,ascent:L,attributeName:null,attributeType:null,azimuth:L,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:L,by:null,calcMode:null,capHeight:L,className:be,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:L,diffuseConstant:L,direction:null,display:null,dur:null,divisor:L,dominantBaseline:null,download:ae,dx:null,dy:null,edgeMode:null,editable:null,elevation:L,enableBackground:null,end:null,event:null,exponent:L,externalResourcesRequired:null,fill:null,fillOpacity:L,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:Tt,g2:Tt,glyphName:Tt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:L,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:L,horizOriginX:L,horizOriginY:L,id:null,ideographic:L,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:L,k:L,k1:L,k2:L,k3:L,k4:L,kernelMatrix:Ze,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:L,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:L,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:L,overlineThickness:L,paintOrder:null,panose1:null,path:null,pathLength:L,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:be,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:L,pointsAtY:L,pointsAtZ:L,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ze,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ze,rev:Ze,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ze,requiredFeatures:Ze,requiredFonts:Ze,requiredFormats:Ze,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:L,specularExponent:L,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:L,strikethroughThickness:L,string:null,stroke:null,strokeDashArray:Ze,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:L,strokeOpacity:L,strokeWidth:null,style:null,surfaceScale:L,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ze,tabIndex:L,tableValues:null,target:null,targetX:L,targetY:L,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ze,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:L,underlineThickness:L,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:L,values:null,vAlphabetic:L,vMathematical:L,vectorEffect:null,vHanging:L,vIdeographic:L,version:null,vertAdvY:L,vertOriginX:L,vertOriginY:L,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:L,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:hi}),bi=Gt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),yi=Gt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:mi}),Ii=Gt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Wa={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"},Za=/[A-Z]/g,vi=/-[a-z]/g,ja=/^data[-\w.:]+$/i;function Ja(e,t){const n=Un(t);let i=t,r=He;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&ja.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(vi,_a);i="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!vi.test(o)){let l=o.replace(Za,Ya);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}r=Kn}return new r(i,t)}function Ya(e){return"-"+e.toLowerCase()}function _a(e){return e.charAt(1).toUpperCase()}const Ua=pi([gi,Ha,bi,yi,Ii],"html"),er=pi([gi,Xa,bi,yi,Ii],"svg");function qa(e){return e.join(" ").trim()}var ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nr={},Ci=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Qa=/\n/g,$a=/^\s*/,Ka=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,es=/^:\s*/,ts=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ns=/^[;\s]*/,rs=/^\s+|\s+$/g,is=`
|
|
2
|
+
`,xi="/",Ai="*",At="",os="comment",ls="declaration";function as(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,i=1;function r(b){var y=b.match(Qa);y&&(n+=y.length);var x=b.lastIndexOf(is);i=~x?b.length-x:i+b.length}function o(){var b={line:n,column:i};return function(y){return y.position=new l(b),u(),y}}function l(b){this.start=b,this.end={line:n,column:i},this.source=t.source}l.prototype.content=e;function a(b){var y=new Error(t.source+":"+n+":"+i+": "+b);if(y.reason=b,y.filename=t.source,y.line=n,y.column=i,y.source=e,!t.silent)throw y}function s(b){var y=b.exec(e);if(y){var x=y[0];return r(x),e=e.slice(x.length),y}}function u(){s($a)}function c(b){var y;for(b=b||[];y=d();)y!==!1&&b.push(y);return b}function d(){var b=o();if(!(xi!=e.charAt(0)||Ai!=e.charAt(1))){for(var y=2;At!=e.charAt(y)&&(Ai!=e.charAt(y)||xi!=e.charAt(y+1));)++y;if(y+=2,At===e.charAt(y-1))return a("End of comment missing");var x=e.slice(2,y-2);return i+=2,r(x),e=e.slice(y),i+=2,b({type:os,comment:x})}}function f(){var b=o(),y=s(Ka);if(y){if(d(),!s(es))return a("property missing ':'");var x=s(ts),I=b({type:ls,property:Si(y[0].replace(Ci,At)),value:x?Si(x[0].replace(Ci,At)):At});return s(ns),I}}function p(){var b=[];c(b);for(var y;y=f();)y!==!1&&(b.push(y),c(b));return b}return u(),p()}function Si(e){return e?e.replace(rs,At):At}var ss=as,us=ht&&ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(nr,"__esModule",{value:!0}),nr.default=ds;const cs=us(ss);function ds(e,t){let n=null;if(!e||typeof e!="string")return n;const i=(0,cs.default)(e),r=typeof t=="function";return i.forEach(o=>{if(o.type!=="declaration")return;const{property:l,value:a}=o;r?t(l,a,o):a&&(n=n||{},n[l]=a)}),n}var ln={};Object.defineProperty(ln,"__esModule",{value:!0}),ln.camelCase=void 0;var ps=/^--[a-zA-Z0-9_-]+$/,fs=/-([a-z])/g,gs=/^[^-]+$/,hs=/^-(webkit|moz|ms|o|khtml)-/,ms=/^-(ms)-/,bs=function(e){return!e||gs.test(e)||ps.test(e)},ys=function(e,t){return t.toUpperCase()},wi=function(e,t){return"".concat(t,"-")},Is=function(e,t){return t===void 0&&(t={}),bs(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(ms,wi):e=e.replace(hs,wi),e.replace(fs,ys))};ln.camelCase=Is;var vs=ht&&ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Cs=vs(nr),xs=ln;function rr(e,t){var n={};return!e||typeof e!="string"||(0,Cs.default)(e,function(i,r){i&&r&&(n[(0,xs.camelCase)(i,t)]=r)}),n}rr.default=rr;var As=rr;const Ss=tr(As),Ei=ki("end"),ir=ki("start");function ki(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function ws(e){const t=ir(e),n=Ei(e);if(t&&n)return{start:t,end:n}}function Xt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Bi(e.position):"start"in e||"end"in e?Bi(e):"line"in e||"column"in e?or(e):""}function or(e){return Pi(e&&e.line)+":"+Pi(e&&e.column)}function Bi(e){return or(e&&e.start)+"-"+or(e&&e.end)}function Pi(e){return e&&typeof e=="number"?e:1}class Me extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let r="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?r=t:!o.cause&&t&&(l=!0,r=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof i=="string"){const s=i.indexOf(":");s===-1?o.ruleId=i:(o.source=i.slice(0,s),o.ruleId=i.slice(s+1))}if(!o.place&&o.ancestors&&o.ancestors){const s=o.ancestors[o.ancestors.length-1];s&&(o.place=s.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=Xt(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Me.prototype.file="",Me.prototype.name="",Me.prototype.reason="",Me.prototype.message="",Me.prototype.stack="",Me.prototype.column=void 0,Me.prototype.line=void 0,Me.prototype.ancestors=void 0,Me.prototype.cause=void 0,Me.prototype.fatal=void 0,Me.prototype.place=void 0,Me.prototype.ruleId=void 0,Me.prototype.source=void 0;const lr={}.hasOwnProperty,Es=new Map,ks=/[A-Z]/g,Bs=new Set(["table","tbody","thead","tfoot","tr"]),Ps=new Set(["td","th"]),Fi="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Fs(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=Ms(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=Ls(n,t.jsx,t.jsxs)}const r={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?er:Ua,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Ti(r,e,void 0);return o&&typeof o!="string"?o:r.create(e,r.Fragment,{children:o||void 0},void 0)}function Ti(e,t,n){if(t.type==="element")return Ts(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Gs(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Os(e,t,n);if(t.type==="mdxjsEsm")return Vs(e,t);if(t.type==="root")return Ns(e,t,n);if(t.type==="text")return Ds(e,t)}function Ts(e,t,n){const i=e.schema;let r=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(r=er,e.schema=r),e.ancestors.push(t);const o=Vi(e,t.tagName,!1),l=zs(e,t);let a=sr(e,t);return Bs.has(t.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!za(s):!0})),Gi(e,l,o,t),ar(l,a),e.ancestors.pop(),e.schema=i,e.create(t,o,l,n)}function Gs(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Wt(e,t.position)}function Vs(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Wt(e,t.position)}function Os(e,t,n){const i=e.schema;let r=i;t.name==="svg"&&i.space==="html"&&(r=er,e.schema=r),e.ancestors.push(t);const o=t.name===null?e.Fragment:Vi(e,t.name,!0),l=Rs(e,t),a=sr(e,t);return Gi(e,l,o,t),ar(l,a),e.ancestors.pop(),e.schema=i,e.create(t,o,l,n)}function Ns(e,t,n){const i={};return ar(i,sr(e,t)),e.create(t,e.Fragment,i,n)}function Ds(e,t){return t.value}function Gi(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function ar(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Ls(e,t,n){return i;function i(r,o,l,a){const u=Array.isArray(l.children)?n:t;return a?u(o,l,a):u(o,l)}}function Ms(e,t){return n;function n(i,r,o,l){const a=Array.isArray(o.children),s=ir(i);return t(r,o,l,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function zs(e,t){const n={};let i,r;for(r in t.properties)if(r!=="children"&&lr.call(t.properties,r)){const o=Hs(e,r,t.properties[r]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&Ps.has(t.tagName)?i=a:n[l]=a}}if(i){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function Rs(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const o=i.data.estree.body[0];o.type;const l=o.expression;l.type;const a=l.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Wt(e,t.position);else{const r=i.name;let o;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const a=i.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else Wt(e,t.position);else o=i.value===null?!0:i.value;n[r]=o}return n}function sr(e,t){const n=[];let i=-1;const r=e.passKeys?new Map:Es;for(;++i<t.children.length;){const o=t.children[i];let l;if(e.passKeys){const s=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(s){const u=r.get(s)||0;l=s+"-"+u,r.set(s,u+1)}}const a=Ti(e,o,l);a!==void 0&&n.push(a)}return n}function Hs(e,t,n){const i=Ja(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?Oa(n):qa(n)),i.property==="style"){let r=typeof n=="object"?n:Xs(e,String(n));return e.stylePropertyNameCase==="css"&&(r=Ws(r)),["style",r]}return[e.elementAttributeNameCase==="react"&&i.space?Wa[i.property]||i.property:i.attribute,n]}}function Xs(e,t){try{return Ss(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,r=new Me("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Fi+"#cannot-parse-style-attribute",r}}function Vi(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const r=t.split(".");let o=-1,l;for(;++o<r.length;){const a=ci(r[o])?{type:"Identifier",name:r[o]}:{type:"Literal",value:r[o]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}i=l}else i=ci(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const r=i.value;return lr.call(e.components,r)?e.components[r]:r}if(e.evaluater)return e.evaluater.evaluateExpression(i);Wt(e)}function Wt(e,t){const n=new Me("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=Fi+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Ws(e){const t={};let n;for(n in e)lr.call(e,n)&&(t[Zs(n)]=e[n]);return t}function Zs(e){let t=e.replace(ks,js);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function js(e){return"-"+e.toLowerCase()}const ur={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"]},Js={};function Ys(e,t){const n=Js,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Oi(e,i,r)}function Oi(e,t,n){if(_s(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ni(e.children,t,n)}return Array.isArray(e)?Ni(e,t,n):""}function Ni(e,t,n){const i=[];let r=-1;for(;++r<e.length;)i[r]=Oi(e[r],t,n);return i.join("")}function _s(e){return!!(e&&typeof e=="object")}const an={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
3
|
+
`,Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},Us={}.hasOwnProperty;function Di(e){return Us.call(an,e)?an[e]:!1}function tt(e,t,n,i){const r=e.length;let o=0,l;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,n=n>0?n:0,i.length<1e4)l=Array.from(i),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<i.length;)l=i.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function _e(e,t){return e.length>0?(tt(e,e.length,0,t),e):t}const Li={}.hasOwnProperty;function qs(e){const t={};let n=-1;for(;++n<e.length;)Qs(t,e[n]);return t}function Qs(e,t){let n;for(n in t){const r=(Li.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let l;if(o)for(l in o){Li.call(r,l)||(r[l]=[]);const a=o[l];$s(r[l],Array.isArray(a)?a:a?[a]:[])}}}function $s(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);tt(e,0,0,i)}function Mi(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Vt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const nt=mt(/[A-Za-z]/),je=mt(/[\dA-Za-z]/),Ks=mt(/[#-'*+\--9=?A-Z^-~]/);function cr(e){return e!==null&&(e<32||e===127)}const dr=mt(/\d/),eu=mt(/[\dA-Fa-f]/),tu=mt(/[!-/:-@[-`{-~]/);function oe(e){return e!==null&&e<-2}function Xe(e){return e!==null&&(e<0||e===32)}function he(e){return e===-2||e===-1||e===32}const nu=mt(new RegExp("\\p{P}|\\p{S}","u")),ru=mt(/\s/);function mt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ot(e){const t=[];let n=-1,i=0,r=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&je(e.charCodeAt(n+1))&&je(e.charCodeAt(n+2)))r=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),r=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(i,n),encodeURIComponent(l)),i=n+r+1,l=""),r&&(n+=r,r=0)}return t.join("")+e.slice(i)}function ye(e,t,n,i){const r=i?i-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(s){return he(s)?(e.enter(n),a(s)):t(s)}function a(s){return he(s)&&o++<r?(e.consume(s),a):(e.exit(n),t(s))}}const iu={tokenize:ou};function ou(e){const t=e.attempt(this.parser.constructs.contentInitial,i,r);let n;return t;function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ye(e,t,"linePrefix")}function r(a){return e.enter("paragraph"),o(a)}function o(a){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return oe(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const lu={tokenize:au},zi={tokenize:su};function au(e){const t=this,n=[];let i=0,r,o,l;return a;function a(S){if(i<n.length){const E=n[i];return t.containerState=E[1],e.attempt(E[0].continuation,s,u)(S)}return u(S)}function s(S){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&T();const E=t.events.length;let P=E,v;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){v=t.events[P][1].end;break}I(i);let M=E;for(;M<t.events.length;)t.events[M][1].end={...v},M++;return tt(t.events,P+1,0,t.events.slice(E)),t.events.length=M,u(S)}return a(S)}function u(S){if(i===n.length){if(!r)return f(S);if(r.currentConstruct&&r.currentConstruct.concrete)return b(S);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(zi,c,d)(S)}function c(S){return r&&T(),I(i),f(S)}function d(S){return t.parser.lazy[t.now().line]=i!==n.length,l=t.now().offset,b(S)}function f(S){return t.containerState={},e.attempt(zi,p,b)(S)}function p(S){return i++,n.push([t.currentConstruct,t.containerState]),f(S)}function b(S){if(S===null){r&&T(),I(0),e.consume(S);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),y(S)}function y(S){if(S===null){x(e.exit("chunkFlow"),!0),I(0),e.consume(S);return}return oe(S)?(e.consume(S),x(e.exit("chunkFlow")),i=0,t.interrupt=void 0,a):(e.consume(S),y)}function x(S,E){const P=t.sliceStream(S);if(E&&P.push(null),S.previous=o,o&&(o.next=S),o=S,r.defineSkip(S.start),r.write(P),t.parser.lazy[S.start.line]){let v=r.events.length;for(;v--;)if(r.events[v][1].start.offset<l&&(!r.events[v][1].end||r.events[v][1].end.offset>l))return;const M=t.events.length;let F=M,O,w;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){if(O){w=t.events[F][1].end;break}O=!0}for(I(i),v=M;v<t.events.length;)t.events[v][1].end={...w},v++;tt(t.events,F+1,0,t.events.slice(M)),t.events.length=v}}function I(S){let E=n.length;for(;E-- >S;){const P=n[E];t.containerState=P[1],P[0].exit.call(t,e)}n.length=S}function T(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}function su(e,t,n){return ye(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ri(e){if(e===null||Xe(e)||ru(e))return 1;if(nu(e))return 2}function pr(e,t,n){const i=[];let r=-1;for(;++r<e.length;){const o=e[r].resolveAll;o&&!i.includes(o)&&(t=o(t,n),i.push(o))}return t}const fr={name:"attention",resolveAll:uu,tokenize:cu};function uu(e,t){let n=-1,i,r,o,l,a,s,u,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[i][1].end},f={...e[n][1].start};Hi(d,-s),Hi(f,s),l={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[i][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},o={type:s>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},r={type:s>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[i][1].end={...l.start},e[n][1].start={...a.end},u=[],e[i][1].end.offset-e[i][1].start.offset&&(u=_e(u,[["enter",e[i][1],t],["exit",e[i][1],t]])),u=_e(u,[["enter",r,t],["enter",l,t],["exit",l,t],["enter",o,t]]),u=_e(u,pr(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),u=_e(u,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=_e(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,tt(e,i-1,n-i+3,u),n=i+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function cu(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,r=Ri(i);let o;return l;function l(s){return o=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===o)return e.consume(s),a;const u=e.exit("attentionSequence"),c=Ri(s),d=!c||c===2&&r||n.includes(s),f=!r||r===2&&c||n.includes(i);return u._open=!!(o===42?d:d&&(r||!f)),u._close=!!(o===42?f:f&&(c||!d)),t(s)}}function Hi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const du={name:"autolink",tokenize:pu};function pu(e,t,n){let i=0;return r;function r(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return nt(p)?(e.consume(p),l):p===64?n(p):u(p)}function l(p){return p===43||p===45||p===46||je(p)?(i=1,a(p)):u(p)}function a(p){return p===58?(e.consume(p),i=0,s):(p===43||p===45||p===46||je(p))&&i++<32?(e.consume(p),a):(i=0,u(p))}function s(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||cr(p)?n(p):(e.consume(p),s)}function u(p){return p===64?(e.consume(p),c):Ks(p)?(e.consume(p),u):n(p)}function c(p){return je(p)?d(p):n(p)}function d(p){return p===46?(e.consume(p),i=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):f(p)}function f(p){if((p===45||je(p))&&i++<63){const b=p===45?f:d;return e.consume(p),b}return n(p)}}const sn={partial:!0,tokenize:fu};function fu(e,t,n){return i;function i(o){return he(o)?ye(e,r,"linePrefix")(o):r(o)}function r(o){return o===null||oe(o)?t(o):n(o)}}const Xi={continuation:{tokenize:hu},exit:mu,name:"blockQuote",tokenize:gu};function gu(e,t,n){const i=this;return r;function r(l){if(l===62){const a=i.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return he(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function hu(e,t,n){const i=this;return r;function r(l){return he(l)?ye(e,o,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Xi,t,n)(l)}}function mu(e){e.exit("blockQuote")}const Wi={name:"characterEscape",tokenize:bu};function bu(e,t,n){return i;function i(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),r}function r(o){return tu(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Zi={name:"characterReference",tokenize:yu};function yu(e,t,n){const i=this;let r=0,o,l;return a;function a(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),s}function s(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,l=je,c(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=eu,c):(e.enter("characterReferenceValue"),o=7,l=dr,c(d))}function c(d){if(d===59&&r){const f=e.exit("characterReferenceValue");return l===je&&!Di(i.sliceSerialize(f))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(d)&&r++<o?(e.consume(d),c):n(d)}}const ji={partial:!0,tokenize:vu},Ji={concrete:!0,name:"codeFenced",tokenize:Iu};function Iu(e,t,n){const i=this,r={partial:!0,tokenize:P};let o=0,l=0,a;return s;function s(v){return u(v)}function u(v){const M=i.events[i.events.length-1];return o=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,a=v,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(v)}function c(v){return v===a?(l++,e.consume(v),c):l<3?n(v):(e.exit("codeFencedFenceSequence"),he(v)?ye(e,d,"whitespace")(v):d(v))}function d(v){return v===null||oe(v)?(e.exit("codeFencedFence"),i.interrupt?t(v):e.check(ji,y,E)(v)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(v))}function f(v){return v===null||oe(v)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(v)):he(v)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ye(e,p,"whitespace")(v)):v===96&&v===a?n(v):(e.consume(v),f)}function p(v){return v===null||oe(v)?d(v):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(v))}function b(v){return v===null||oe(v)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(v)):v===96&&v===a?n(v):(e.consume(v),b)}function y(v){return e.attempt(r,E,x)(v)}function x(v){return e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),I}function I(v){return o>0&&he(v)?ye(e,T,"linePrefix",o+1)(v):T(v)}function T(v){return v===null||oe(v)?e.check(ji,y,E)(v):(e.enter("codeFlowValue"),S(v))}function S(v){return v===null||oe(v)?(e.exit("codeFlowValue"),T(v)):(e.consume(v),S)}function E(v){return e.exit("codeFenced"),t(v)}function P(v,M,F){let O=0;return w;function w(W){return v.enter("lineEnding"),v.consume(W),v.exit("lineEnding"),N}function N(W){return v.enter("codeFencedFence"),he(W)?ye(v,V,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):V(W)}function V(W){return W===a?(v.enter("codeFencedFenceSequence"),H(W)):F(W)}function H(W){return W===a?(O++,v.consume(W),H):O>=l?(v.exit("codeFencedFenceSequence"),he(W)?ye(v,q,"whitespace")(W):q(W)):F(W)}function q(W){return W===null||oe(W)?(v.exit("codeFencedFence"),M(W)):F(W)}}}function vu(e,t,n){const i=this;return r;function r(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return i.parser.lazy[i.now().line]?n(l):t(l)}}const gr={name:"codeIndented",tokenize:xu},Cu={partial:!0,tokenize:Au};function xu(e,t,n){const i=this;return r;function r(u){return e.enter("codeIndented"),ye(e,o,"linePrefix",5)(u)}function o(u){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?l(u):n(u)}function l(u){return u===null?s(u):oe(u)?e.attempt(Cu,l,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||oe(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),t(u)}}function Au(e,t,n){const i=this;return r;function r(l){return i.parser.lazy[i.now().line]?n(l):oe(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r):ye(e,o,"linePrefix",5)(l)}function o(l){const a=i.events[i.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):oe(l)?r(l):n(l)}}const Su={name:"codeText",previous:Eu,resolve:wu,tokenize:ku};function wu(e){let t=e.length-4,n=3,i,r;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)r===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(r=i):(i===t||e[i][1].type==="lineEnding")&&(e[r][1].type="codeTextData",i!==r+2&&(e[r][1].end=e[i-1][1].end,e.splice(r+2,i-r-2),t-=i-r-2,i=r+2),r=void 0);return e}function Eu(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ku(e,t,n){let i=0,r,o;return l;function l(d){return e.enter("codeText"),e.enter("codeTextSequence"),a(d)}function a(d){return d===96?(e.consume(d),i++,a):(e.exit("codeTextSequence"),s(d))}function s(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),s):d===96?(o=e.enter("codeTextSequence"),r=0,c(d)):oe(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(d))}function u(d){return d===null||d===32||d===96||oe(d)?(e.exit("codeTextData"),s(d)):(e.consume(d),u)}function c(d){return d===96?(e.consume(d),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(o.type="codeTextData",u(d))}}class Bu{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const r=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return i&&Zt(this.left,i),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Zt(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Zt(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Zt(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Zt(this.left,n.reverse())}}}function Zt(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 Yi(e){const t={};let n=-1,i,r,o,l,a,s,u;const c=new Bu(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(i=c.get(n),n&&i[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(s=i[1]._tokenizer.events,o=0,o<s.length&&s[o][1].type==="lineEndingBlank"&&(o+=2),o<s.length&&s[o][1].type==="content"))for(;++o<s.length&&s[o][1].type!=="content";)s[o][1].type==="chunkText"&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,Pu(c,n)),n=t[n],u=!0);else if(i[1]._container){for(o=n,r=void 0;o--;)if(l=c.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(r&&(c.get(r)[1].type="lineEndingBlank"),l[1].type="lineEnding",r=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;r&&(i[1].end={...c.get(r)[1].start},a=c.slice(r,n),a.unshift(i),c.splice(r,n-r+1,a))}}return tt(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function Pu(e,t){const n=e.get(t)[1],i=e.get(t)[2];let r=t-1;const o=[];let l=n._tokenizer;l||(l=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,s=[],u={};let c,d,f=-1,p=n,b=0,y=0;const x=[y];for(;p;){for(;e.get(++r)[1]!==p;);o.push(r),p._tokenizer||(c=i.sliceStream(p),p.next||c.push(null),d&&l.defineSkip(p.start),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(c),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<a.length;)a[f][0]==="exit"&&a[f-1][0]==="enter"&&a[f][1].type===a[f-1][1].type&&a[f][1].start.line!==a[f][1].end.line&&(y=f+1,x.push(y),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(l.events=[],p?(p._tokenizer=void 0,p.previous=void 0):x.pop(),f=x.length;f--;){const I=a.slice(x[f],x[f+1]),T=o.pop();s.push([T,T+I.length-1]),e.splice(T,2,I)}for(s.reverse(),f=-1;++f<s.length;)u[b+s[f][0]]=b+s[f][1],b+=s[f][1]-s[f][0]-1;return u}const Fu={resolve:Gu,tokenize:Vu},Tu={partial:!0,tokenize:Ou};function Gu(e){return Yi(e),e}function Vu(e,t){let n;return i;function i(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(a)}function r(a){return a===null?o(a):oe(a)?e.check(Tu,l,o)(a):(e.consume(a),r)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function l(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}function Ou(e,t,n){const i=this;return r;function r(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),ye(e,o,"linePrefix")}function o(l){if(l===null||oe(l))return n(l);const a=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):e.interrupt(i.parser.constructs.flow,n,t)(l)}}function _i(e,t,n,i,r,o,l,a,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return d;function d(I){return I===60?(e.enter(i),e.enter(r),e.enter(o),e.consume(I),e.exit(o),f):I===null||I===32||I===41||cr(I)?n(I):(e.enter(i),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),y(I))}function f(I){return I===62?(e.enter(o),e.consume(I),e.exit(o),e.exit(r),e.exit(i),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(I))}function p(I){return I===62?(e.exit("chunkString"),e.exit(a),f(I)):I===null||I===60||oe(I)?n(I):(e.consume(I),I===92?b:p)}function b(I){return I===60||I===62||I===92?(e.consume(I),p):p(I)}function y(I){return!c&&(I===null||I===41||Xe(I))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(i),t(I)):c<u&&I===40?(e.consume(I),c++,y):I===41?(e.consume(I),c--,y):I===null||I===32||I===40||cr(I)?n(I):(e.consume(I),I===92?x:y)}function x(I){return I===40||I===41||I===92?(e.consume(I),y):y(I)}}function Ui(e,t,n,i,r,o){const l=this;let a=0,s;return u;function u(p){return e.enter(i),e.enter(r),e.consume(p),e.exit(r),e.enter(o),c}function c(p){return a>999||p===null||p===91||p===93&&!s||p===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?n(p):p===93?(e.exit(o),e.enter(r),e.consume(p),e.exit(r),e.exit(i),t):oe(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||oe(p)||a++>999?(e.exit("chunkString"),c(p)):(e.consume(p),s||(s=!he(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),a++,d):d(p)}}function qi(e,t,n,i,r,o){let l;return a;function a(f){return f===34||f===39||f===40?(e.enter(i),e.enter(r),e.consume(f),e.exit(r),l=f===40?41:f,s):n(f)}function s(f){return f===l?(e.enter(r),e.consume(f),e.exit(r),e.exit(i),t):(e.enter(o),u(f))}function u(f){return f===l?(e.exit(o),s(l)):f===null?n(f):oe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),ye(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===l||f===null||oe(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===l||f===92?(e.consume(f),c):c(f)}}function jt(e,t){let n;return i;function i(r){return oe(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,i):he(r)?ye(e,i,n?"linePrefix":"lineSuffix")(r):t(r)}}const Nu={name:"definition",tokenize:Lu},Du={partial:!0,tokenize:Mu};function Lu(e,t,n){const i=this;let r;return o;function o(p){return e.enter("definition"),l(p)}function l(p){return Ui.call(i,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return r=Vt(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):n(p)}function s(p){return Xe(p)?jt(e,u)(p):u(p)}function u(p){return _i(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(Du,d,d)(p)}function d(p){return he(p)?ye(e,f,"whitespace")(p):f(p)}function f(p){return p===null||oe(p)?(e.exit("definition"),i.parser.defined.push(r),t(p)):n(p)}}function Mu(e,t,n){return i;function i(a){return Xe(a)?jt(e,r)(a):n(a)}function r(a){return qi(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return he(a)?ye(e,l,"whitespace")(a):l(a)}function l(a){return a===null||oe(a)?t(a):n(a)}}const zu={name:"hardBreakEscape",tokenize:Ru};function Ru(e,t,n){return i;function i(o){return e.enter("hardBreakEscape"),e.consume(o),r}function r(o){return oe(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Hu={name:"headingAtx",resolve:Xu,tokenize:Wu};function Xu(e,t){let n=e.length-2,i=3,r,o;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(r={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},o={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},tt(e,i,n-i+1,[["enter",r,t],["enter",o,t],["exit",o,t],["exit",r,t]])),e}function Wu(e,t,n){let i=0;return r;function r(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),l(c)}function l(c){return c===35&&i++<6?(e.consume(c),l):c===null||Xe(c)?(e.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||oe(c)?(e.exit("atxHeading"),t(c)):he(c)?ye(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||Xe(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const Zu=["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"],Qi=["pre","script","style","textarea"],ju={concrete:!0,name:"htmlFlow",resolveTo:_u,tokenize:Uu},Ju={partial:!0,tokenize:Qu},Yu={partial:!0,tokenize:qu};function _u(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Uu(e,t,n){const i=this;let r,o,l,a,s;return u;function u(m){return c(m)}function c(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),d}function d(m){return m===33?(e.consume(m),f):m===47?(e.consume(m),o=!0,y):m===63?(e.consume(m),r=3,i.interrupt?t:g):nt(m)?(e.consume(m),l=String.fromCharCode(m),x):n(m)}function f(m){return m===45?(e.consume(m),r=2,p):m===91?(e.consume(m),r=5,a=0,b):nt(m)?(e.consume(m),r=4,i.interrupt?t:g):n(m)}function p(m){return m===45?(e.consume(m),i.interrupt?t:g):n(m)}function b(m){const pe="CDATA[";return m===pe.charCodeAt(a++)?(e.consume(m),a===pe.length?i.interrupt?t:V:b):n(m)}function y(m){return nt(m)?(e.consume(m),l=String.fromCharCode(m),x):n(m)}function x(m){if(m===null||m===47||m===62||Xe(m)){const pe=m===47,te=l.toLowerCase();return!pe&&!o&&Qi.includes(te)?(r=1,i.interrupt?t(m):V(m)):Zu.includes(l.toLowerCase())?(r=6,pe?(e.consume(m),I):i.interrupt?t(m):V(m)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(m):o?T(m):S(m))}return m===45||je(m)?(e.consume(m),l+=String.fromCharCode(m),x):n(m)}function I(m){return m===62?(e.consume(m),i.interrupt?t:V):n(m)}function T(m){return he(m)?(e.consume(m),T):w(m)}function S(m){return m===47?(e.consume(m),w):m===58||m===95||nt(m)?(e.consume(m),E):he(m)?(e.consume(m),S):w(m)}function E(m){return m===45||m===46||m===58||m===95||je(m)?(e.consume(m),E):P(m)}function P(m){return m===61?(e.consume(m),v):he(m)?(e.consume(m),P):S(m)}function v(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),s=m,M):he(m)?(e.consume(m),v):F(m)}function M(m){return m===s?(e.consume(m),s=null,O):m===null||oe(m)?n(m):(e.consume(m),M)}function F(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||Xe(m)?P(m):(e.consume(m),F)}function O(m){return m===47||m===62||he(m)?S(m):n(m)}function w(m){return m===62?(e.consume(m),N):n(m)}function N(m){return m===null||oe(m)?V(m):he(m)?(e.consume(m),N):n(m)}function V(m){return m===45&&r===2?(e.consume(m),J):m===60&&r===1?(e.consume(m),le):m===62&&r===4?(e.consume(m),ue):m===63&&r===3?(e.consume(m),g):m===93&&r===5?(e.consume(m),G):oe(m)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(Ju,_,H)(m)):m===null||oe(m)?(e.exit("htmlFlowData"),H(m)):(e.consume(m),V)}function H(m){return e.check(Yu,q,_)(m)}function q(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),W}function W(m){return m===null||oe(m)?H(m):(e.enter("htmlFlowData"),V(m))}function J(m){return m===45?(e.consume(m),g):V(m)}function le(m){return m===47?(e.consume(m),l="",se):V(m)}function se(m){if(m===62){const pe=l.toLowerCase();return Qi.includes(pe)?(e.consume(m),ue):V(m)}return nt(m)&&l.length<8?(e.consume(m),l+=String.fromCharCode(m),se):V(m)}function G(m){return m===93?(e.consume(m),g):V(m)}function g(m){return m===62?(e.consume(m),ue):m===45&&r===2?(e.consume(m),g):V(m)}function ue(m){return m===null||oe(m)?(e.exit("htmlFlowData"),_(m)):(e.consume(m),ue)}function _(m){return e.exit("htmlFlow"),t(m)}}function qu(e,t,n){const i=this;return r;function r(l){return oe(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return i.parser.lazy[i.now().line]?n(l):t(l)}}function Qu(e,t,n){return i;function i(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(sn,t,n)}}const $u={name:"htmlText",tokenize:Ku};function Ku(e,t,n){const i=this;let r,o,l;return a;function a(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),s}function s(g){return g===33?(e.consume(g),u):g===47?(e.consume(g),P):g===63?(e.consume(g),S):nt(g)?(e.consume(g),F):n(g)}function u(g){return g===45?(e.consume(g),c):g===91?(e.consume(g),o=0,b):nt(g)?(e.consume(g),T):n(g)}function c(g){return g===45?(e.consume(g),p):n(g)}function d(g){return g===null?n(g):g===45?(e.consume(g),f):oe(g)?(l=d,le(g)):(e.consume(g),d)}function f(g){return g===45?(e.consume(g),p):d(g)}function p(g){return g===62?J(g):g===45?f(g):d(g)}function b(g){const ue="CDATA[";return g===ue.charCodeAt(o++)?(e.consume(g),o===ue.length?y:b):n(g)}function y(g){return g===null?n(g):g===93?(e.consume(g),x):oe(g)?(l=y,le(g)):(e.consume(g),y)}function x(g){return g===93?(e.consume(g),I):y(g)}function I(g){return g===62?J(g):g===93?(e.consume(g),I):y(g)}function T(g){return g===null||g===62?J(g):oe(g)?(l=T,le(g)):(e.consume(g),T)}function S(g){return g===null?n(g):g===63?(e.consume(g),E):oe(g)?(l=S,le(g)):(e.consume(g),S)}function E(g){return g===62?J(g):S(g)}function P(g){return nt(g)?(e.consume(g),v):n(g)}function v(g){return g===45||je(g)?(e.consume(g),v):M(g)}function M(g){return oe(g)?(l=M,le(g)):he(g)?(e.consume(g),M):J(g)}function F(g){return g===45||je(g)?(e.consume(g),F):g===47||g===62||Xe(g)?O(g):n(g)}function O(g){return g===47?(e.consume(g),J):g===58||g===95||nt(g)?(e.consume(g),w):oe(g)?(l=O,le(g)):he(g)?(e.consume(g),O):J(g)}function w(g){return g===45||g===46||g===58||g===95||je(g)?(e.consume(g),w):N(g)}function N(g){return g===61?(e.consume(g),V):oe(g)?(l=N,le(g)):he(g)?(e.consume(g),N):O(g)}function V(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),r=g,H):oe(g)?(l=V,le(g)):he(g)?(e.consume(g),V):(e.consume(g),q)}function H(g){return g===r?(e.consume(g),r=void 0,W):g===null?n(g):oe(g)?(l=H,le(g)):(e.consume(g),H)}function q(g){return g===null||g===34||g===39||g===60||g===61||g===96?n(g):g===47||g===62||Xe(g)?O(g):(e.consume(g),q)}function W(g){return g===47||g===62||Xe(g)?O(g):n(g)}function J(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),t):n(g)}function le(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),se}function se(g){return he(g)?ye(e,G,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g):G(g)}function G(g){return e.enter("htmlTextData"),l(g)}}const hr={name:"labelEnd",resolveAll:rc,resolveTo:ic,tokenize:oc},ec={tokenize:lc},tc={tokenize:ac},nc={tokenize:sc};function rc(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const r=i.type==="labelImage"?4:2;i.type="data",t+=r}}return e.length!==n.length&&tt(e,0,e.length,n),e}function ic(e,t){let n=e.length,i=0,r,o,l,a;for(;n--;)if(r=e[n][1],o){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[n][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(o=n,r.type!=="labelLink")){i=2;break}}else r.type==="labelEnd"&&(l=n);const s={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},c={type:"labelText",start:{...e[o+i+2][1].end},end:{...e[l-2][1].start}};return a=[["enter",s,t],["enter",u,t]],a=_e(a,e.slice(o+1,o+i+3)),a=_e(a,[["enter",c,t]]),a=_e(a,pr(t.parser.constructs.insideSpan.null,e.slice(o+i+4,l-3),t)),a=_e(a,[["exit",c,t],e[l-2],e[l-1],["exit",u,t]]),a=_e(a,e.slice(l+1)),a=_e(a,[["exit",s,t]]),tt(e,o,e.length,a),e}function oc(e,t,n){const i=this;let r=i.events.length,o,l;for(;r--;)if((i.events[r][1].type==="labelImage"||i.events[r][1].type==="labelLink")&&!i.events[r][1]._balanced){o=i.events[r][1];break}return a;function a(f){return o?o._inactive?d(f):(l=i.parser.defined.includes(Vt(i.sliceSerialize({start:o.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),s):n(f)}function s(f){return f===40?e.attempt(ec,c,l?c:d)(f):f===91?e.attempt(tc,c,l?u:d)(f):l?c(f):d(f)}function u(f){return e.attempt(nc,c,d)(f)}function c(f){return t(f)}function d(f){return o._balanced=!0,n(f)}}function lc(e,t,n){return i;function i(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),r}function r(d){return Xe(d)?jt(e,o)(d):o(d)}function o(d){return d===41?c(d):_i(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function l(d){return Xe(d)?jt(e,s)(d):c(d)}function a(d){return n(d)}function s(d){return d===34||d===39||d===40?qi(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return Xe(d)?jt(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function ac(e,t,n){const i=this;return r;function r(a){return Ui.call(i,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return i.parser.defined.includes(Vt(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function l(a){return n(a)}}function sc(e,t,n){return i;function i(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),r}function r(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const uc={name:"labelStartImage",resolveAll:hr.resolveAll,tokenize:cc};function cc(e,t,n){const i=this;return r;function r(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):n(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(a):t(a)}}const dc={name:"labelStartLink",resolveAll:hr.resolveAll,tokenize:pc};function pc(e,t,n){const i=this;return r;function r(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(l):t(l)}}const mr={name:"lineEnding",tokenize:fc};function fc(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),ye(e,t,"linePrefix")}}const un={name:"thematicBreak",tokenize:gc};function gc(e,t,n){let i=0,r;return o;function o(u){return e.enter("thematicBreak"),l(u)}function l(u){return r=u,a(u)}function a(u){return u===r?(e.enter("thematicBreakSequence"),s(u)):i>=3&&(u===null||oe(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===r?(e.consume(u),i++,s):(e.exit("thematicBreakSequence"),he(u)?ye(e,a,"whitespace")(u):a(u))}}const We={continuation:{tokenize:yc},exit:vc,name:"list",tokenize:bc},hc={partial:!0,tokenize:Cc},mc={partial:!0,tokenize:Ic};function bc(e,t,n){const i=this,r=i.events[i.events.length-1];let o=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,l=0;return a;function a(p){const b=i.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!i.containerState.marker||p===i.containerState.marker:dr(p)){if(i.containerState.type||(i.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(un,n,u)(p):u(p);if(!i.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return n(p)}function s(p){return dr(p)&&++l<10?(e.consume(p),s):(!i.interrupt||l<2)&&(i.containerState.marker?p===i.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||p,e.check(sn,i.interrupt?n:c,e.attempt(hc,f,d))}function c(p){return i.containerState.initialBlankLine=!0,o++,f(p)}function d(p){return he(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return i.containerState.size=o+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function yc(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(sn,r,o);function r(a){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,ye(e,t,"listItemIndent",i.containerState.size+1)(a)}function o(a){return i.containerState.furtherBlankLines||!he(a)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,l(a)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(mc,t,l)(a))}function l(a){return i.containerState._closeFlow=!0,i.interrupt=void 0,ye(e,e.attempt(We,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Ic(e,t,n){const i=this;return ye(e,r,"listItemIndent",i.containerState.size+1);function r(o){const l=i.events[i.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===i.containerState.size?t(o):n(o)}}function vc(e){e.exit(this.containerState.type)}function Cc(e,t,n){const i=this;return ye(e,r,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(o){const l=i.events[i.events.length-1];return!he(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const $i={name:"setextUnderline",resolveTo:xc,tokenize:Ac};function xc(e,t){let n=e.length,i,r,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(r=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",l,t]),e.splice(o+1,0,["exit",e[i][1],t]),e[i][1].end={...e[o][1].end}):e[i][1]=l,e.push(["exit",l,t]),e}function Ac(e,t,n){const i=this;let r;return o;function o(u){let c=i.events.length,d;for(;c--;)if(i.events[c][1].type!=="lineEnding"&&i.events[c][1].type!=="linePrefix"&&i.events[c][1].type!=="content"){d=i.events[c][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||d)?(e.enter("setextHeadingLine"),r=u,l(u)):n(u)}function l(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===r?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),he(u)?ye(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||oe(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Sc={tokenize:wc};function wc(e){const t=this,n=e.attempt(sn,i,e.attempt(this.parser.constructs.flowInitial,r,ye(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Fu,r)),"linePrefix")));return n;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Ec={resolveAll:eo()},kc=Ki("string"),Bc=Ki("text");function Ki(e){return{resolveAll:eo(e==="text"?Pc:void 0),tokenize:t};function t(n){const i=this,r=this.parser.constructs[e],o=n.attempt(r,l,a);return l;function l(c){return u(c)?o(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),s}function s(c){return u(c)?(n.exit("data"),o(c)):(n.consume(c),s)}function u(c){if(c===null)return!0;const d=r[c];let f=-1;if(d)for(;++f<d.length;){const p=d[f];if(!p.previous||p.previous.call(i,i.previous))return!0}return!1}}}function eo(e){return t;function t(n,i){let r=-1,o;for(;++r<=n.length;)o===void 0?n[r]&&n[r][1].type==="data"&&(o=r,r++):(!n[r]||n[r][1].type!=="data")&&(r!==o+2&&(n[o][1].end=n[r-1][1].end,n.splice(o+2,r-o-2),r=o+2),o=void 0);return e?e(n,i):n}}function Pc(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],r=t.sliceStream(i);let o=r.length,l=-1,a=0,s;for(;o--;){const u=r[o];if(typeof u=="string"){for(l=u.length;u.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(u===-2)s=!0,a++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||s||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:i.start._bufferIndex+l,_index:i.start._index+o,line:i.end.line,column:i.end.column-a,offset:i.end.offset-a},end:{...i.end}};i.end={...u.start},i.start.offset===i.end.offset?Object.assign(i,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const Fc=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Nu},disable:{null:[]},document:{42:We,43:We,45:We,48:We,49:We,50:We,51:We,52:We,53:We,54:We,55:We,56:We,57:We,62:Xi},flow:{35:Hu,42:un,45:[$i,un],60:ju,61:$i,95:un,96:Ji,126:Ji},flowInitial:{[-2]:gr,[-1]:gr,32:gr},insideSpan:{null:[fr,Ec]},string:{38:Zi,92:Wi},text:{[-5]:mr,[-4]:mr,[-3]:mr,33:uc,38:Zi,42:fr,60:[du,$u],91:dc,92:[zu,Wi],93:hr,95:fr,96:Su}},Symbol.toStringTag,{value:"Module"}));function Tc(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const r={},o=[];let l=[],a=[];const s={attempt:M(P),check:M(v),consume:T,enter:S,exit:E,interrupt:M(v,{interrupt:!0})},u={code:null,containerState:{},defineSkip:y,events:[],now:b,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d};let c=t.tokenize.call(u,s);return t.resolveAll&&o.push(t),u;function d(N){return l=_e(l,N),x(),l[l.length-1]!==null?[]:(F(t,0),u.events=pr(o,u.events,u),u.events)}function f(N,V){return Vc(p(N),V)}function p(N){return Gc(l,N)}function b(){const{_bufferIndex:N,_index:V,line:H,column:q,offset:W}=i;return{_bufferIndex:N,_index:V,line:H,column:q,offset:W}}function y(N){r[N.line]=N.column,w()}function x(){let N;for(;i._index<l.length;){const V=l[i._index];if(typeof V=="string")for(N=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===N&&i._bufferIndex<V.length;)I(V.charCodeAt(i._bufferIndex));else I(V)}}function I(N){c=c(N)}function T(N){oe(N)?(i.line++,i.column=1,i.offset+=N===-3?2:1,w()):N!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===l[i._index].length&&(i._bufferIndex=-1,i._index++)),u.previous=N}function S(N,V){const H=V||{};return H.type=N,H.start=b(),u.events.push(["enter",H,u]),a.push(H),H}function E(N){const V=a.pop();return V.end=b(),u.events.push(["exit",V,u]),V}function P(N,V){F(N,V.from)}function v(N,V){V.restore()}function M(N,V){return H;function H(q,W,J){let le,se,G,g;return Array.isArray(q)?_(q):"tokenize"in q?_([q]):ue(q);function ue(ne){return ke;function ke(fe){const Ge=fe!==null&&ne[fe],de=fe!==null&&ne.null,ve=[...Array.isArray(Ge)?Ge:Ge?[Ge]:[],...Array.isArray(de)?de:de?[de]:[]];return _(ve)(fe)}}function _(ne){return le=ne,se=0,ne.length===0?J:m(ne[se])}function m(ne){return ke;function ke(fe){return g=O(),G=ne,ne.partial||(u.currentConstruct=ne),ne.name&&u.parser.constructs.disable.null.includes(ne.name)?te():ne.tokenize.call(V?Object.assign(Object.create(u),V):u,s,pe,te)(fe)}}function pe(ne){return N(G,g),W}function te(ne){return g.restore(),++se<le.length?m(le[se]):J}}}function F(N,V){N.resolveAll&&!o.includes(N)&&o.push(N),N.resolve&&tt(u.events,V,u.events.length-V,N.resolve(u.events.slice(V),u)),N.resolveTo&&(u.events=N.resolveTo(u.events,u))}function O(){const N=b(),V=u.previous,H=u.currentConstruct,q=u.events.length,W=Array.from(a);return{from:q,restore:J};function J(){i=N,u.previous=V,u.currentConstruct=H,u.events.length=q,a=W,w()}}function w(){i.line in r&&i.column<2&&(i.column=r[i.line],i.offset+=r[i.line]-1)}}function Gc(e,t){const n=t.start._index,i=t.start._bufferIndex,r=t.end._index,o=t.end._bufferIndex;let l;if(n===r)l=[e[n].slice(i,o)];else{if(l=e.slice(n,r),i>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(i):l.shift()}o>0&&l.push(e[r].slice(0,o))}return l}function Vc(e,t){let n=-1;const i=[];let r;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
|
|
4
4
|
`;break}case-3:{l=`\r
|
|
5
|
-
`;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&r)continue;l=" ";break}default:l=String.fromCharCode(o)}r=o===-2,i.push(l)}return i.join("")}function Oc(e){const i={constructs:qs([Fc,...(e||{}).extensions||[]]),content:r(iu),defined:[],document:r(lu),flow:r(Sc),lazy:{},string:r(kc),text:r(Bc)};return i;function r(o){return l;function l(a){return Tc(i,o,a)}}}function Nc(e){for(;!Yi(e););return e}const to=/[\0\t\n\r]/g;function Dc(){let e=1,t="",n=!0,i;return r;function r(o,l,a){const s=[];let u,c,d,f,p;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(to.lastIndex=d,u=to.exec(o),f=u&&u.index!==void 0?u.index:o.length,p=o.charCodeAt(f),!u){t=o.slice(d);break}if(p===10&&d===f&&i)s.push(-3),i=void 0;else switch(i&&(s.push(-5),i=void 0),d<f&&(s.push(o.slice(d,f)),e+=f-d),p){case 0:{s.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,s.push(-2);e++<c;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:i=!0,e=1}d=f+1}return a&&(i&&s.push(-5),t&&s.push(t),s.push(null)),s}}const Lc={}.hasOwnProperty;function Mc(e){return Lc.call(an,e)?an[e]:!1}const zc=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Rc(e){return e.replace(zc,Hc)}function Hc(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),o=r===120||r===88;return Mi(n.slice(o?2:1),o?16:10)}return Mc(n)||e}const no={}.hasOwnProperty;function Xc(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Wc(n)(Nc(Oc(n).document().write(Dc()(e,t,!0))))}function Wc(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(zt),autolinkProtocol:O,autolinkEmail:O,atxHeading:o(De),blockQuote:o(de),characterEscape:O,characterReference:O,codeFenced:o(ve),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(ve,l),codeText:o(Ce,l),codeTextData:O,data:O,codeFlowValue:O,definition:o(Ve),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(Be),hardBreakEscape:o(Ae),hardBreakTrailing:o(Ae),htmlFlow:o(Je,l),htmlFlowData:O,htmlText:o(Je,l),htmlTextData:O,image:o(wt),label:l,link:o(zt),listItem:o(Z),listItemValue:f,listOrdered:o(z,d),listUnordered:o(z),paragraph:o(ie),reference:m,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(De),strong:o(ee),thematicBreak:o(xe)},exit:{atxHeading:s(),atxHeadingSequence:E,autolink:s(),autolinkEmail:Ge,autolinkProtocol:fe,blockQuote:s(),characterEscapeValue:w,characterReferenceMarkerHexadecimal:te,characterReferenceMarkerNumeric:te,characterReferenceValue:ne,characterReference:ke,codeFenced:s(C),codeFencedFence:b,codeFencedFenceInfo:p,codeFencedFenceMeta:y,codeFlowValue:w,codeIndented:s(I),codeText:s(W),codeTextData:w,data:w,definition:s(),definitionDestinationString:k,definitionLabelString:T,definitionTitleString:S,emphasis:s(),hardBreakEscape:s(V),hardBreakTrailing:s(V),htmlFlow:s(H),htmlFlowData:w,htmlText:s(q),htmlTextData:w,image:s(le),label:G,labelText:se,lineEnding:N,link:s(J),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:pe,resourceDestinationString:g,resourceTitleString:ue,resource:_,setextHeading:s(F),setextHeadingLineSequence:M,setextHeadingText:A,strong:s(),thematicBreak:s()}};ro(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(P){let R={type:"root",children:[]};const X={stack:[R],tokenStack:[],config:t,enter:a,exit:u,buffer:l,resume:c,data:n},j=[];let Q=-1;for(;++Q<P.length;)if(P[Q][1].type==="listOrdered"||P[Q][1].type==="listUnordered")if(P[Q][0]==="enter")j.push(Q);else{const me=j.pop();Q=r(P,me,Q)}for(Q=-1;++Q<P.length;){const me=t[P[Q][0]];no.call(me,P[Q][1].type)&&me[P[Q][1].type].call(Object.assign({sliceSerialize:P[Q][2].sliceSerialize},X),P[Q][1])}if(X.tokenStack.length>0){const me=X.tokenStack[X.tokenStack.length-1];(me[1]||io).call(X,void 0,me[0])}for(R.position={start:bt(P.length>0?P[0][1].start:{line:1,column:1,offset:0}),end:bt(P.length>0?P[P.length-2][1].end:{line:1,column:1,offset:0})},Q=-1;++Q<t.transforms.length;)R=t.transforms[Q](R)||R;return R}function r(P,R,X){let j=R-1,Q=-1,me=!1,lt,$e,yt,at;for(;++j<=X;){const ze=P[j];switch(ze[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ze[0]==="enter"?Q++:Q--,at=void 0;break}case"lineEndingBlank":{ze[0]==="enter"&&(lt&&!at&&!Q&&!yt&&(yt=j),at=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:at=void 0}if(!Q&&ze[0]==="enter"&&ze[1].type==="listItemPrefix"||Q===-1&&ze[0]==="exit"&&(ze[1].type==="listUnordered"||ze[1].type==="listOrdered")){if(lt){let pt=j;for($e=void 0;pt--;){const Ke=P[pt];if(Ke[1].type==="lineEnding"||Ke[1].type==="lineEndingBlank"){if(Ke[0]==="exit")continue;$e&&(P[$e][1].type="lineEndingBlank",me=!0),Ke[1].type="lineEnding",$e=pt}else if(!(Ke[1].type==="linePrefix"||Ke[1].type==="blockQuotePrefix"||Ke[1].type==="blockQuotePrefixWhitespace"||Ke[1].type==="blockQuoteMarker"||Ke[1].type==="listItemIndent"))break}yt&&(!$e||yt<$e)&&(lt._spread=!0),lt.end=Object.assign({},$e?P[$e][1].start:ze[1].end),P.splice($e||j,0,["exit",lt,ze[2]]),j++,X++}if(ze[1].type==="listItemPrefix"){const pt={type:"listItem",_spread:!1,start:Object.assign({},ze[1].start),end:void 0};lt=pt,P.splice(j,0,["enter",pt,ze[2]]),j++,X++,yt=void 0,at=!0}}}return P[R][1]._spread=me,X}function o(P,R){return X;function X(j){a.call(this,P(j),j),R&&R.call(this,j)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(P,R,X){this.stack[this.stack.length-1].children.push(P),this.stack.push(P),this.tokenStack.push([R,X||void 0]),P.position={start:bt(R.start),end:void 0}}function s(P){return R;function R(X){P&&P.call(this,X),u.call(this,X)}}function u(P,R){const X=this.stack.pop(),j=this.tokenStack.pop();if(j)j[0].type!==P.type&&(R?R.call(this,P,j[0]):(j[1]||io).call(this,P,j[0]));else throw new Error("Cannot close `"+P.type+"` ("+Xt({start:P.start,end:P.end})+"): it’s not open");X.position.end=bt(P.end)}function c(){return Ys(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(P){if(this.data.expectingFirstListItemValue){const R=this.stack[this.stack.length-2];R.start=Number.parseInt(this.sliceSerialize(P),10),this.data.expectingFirstListItemValue=void 0}}function p(){const P=this.resume(),R=this.stack[this.stack.length-1];R.lang=P}function y(){const P=this.resume(),R=this.stack[this.stack.length-1];R.meta=P}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const P=this.resume(),R=this.stack[this.stack.length-1];R.value=P.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function I(){const P=this.resume(),R=this.stack[this.stack.length-1];R.value=P.replace(/(\r?\n|\r)$/g,"")}function T(P){const R=this.resume(),X=this.stack[this.stack.length-1];X.label=R,X.identifier=Vt(this.sliceSerialize(P)).toLowerCase()}function S(){const P=this.resume(),R=this.stack[this.stack.length-1];R.title=P}function k(){const P=this.resume(),R=this.stack[this.stack.length-1];R.url=P}function E(P){const R=this.stack[this.stack.length-1];if(!R.depth){const X=this.sliceSerialize(P).length;R.depth=X}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function M(P){const R=this.stack[this.stack.length-1];R.depth=this.sliceSerialize(P).codePointAt(0)===61?1:2}function F(){this.data.setextHeadingSlurpLineEnding=void 0}function O(P){const X=this.stack[this.stack.length-1].children;let j=X[X.length-1];(!j||j.type!=="text")&&(j=Se(),j.position={start:bt(P.start),end:void 0},X.push(j)),this.stack.push(j)}function w(P){const R=this.stack.pop();R.value+=this.sliceSerialize(P),R.position.end=bt(P.end)}function N(P){const R=this.stack[this.stack.length-1];if(this.data.atHardBreak){const X=R.children[R.children.length-1];X.position.end=bt(P.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(R.type)&&(O.call(this,P),w.call(this,P))}function V(){this.data.atHardBreak=!0}function H(){const P=this.resume(),R=this.stack[this.stack.length-1];R.value=P}function q(){const P=this.resume(),R=this.stack[this.stack.length-1];R.value=P}function W(){const P=this.resume(),R=this.stack[this.stack.length-1];R.value=P}function J(){const P=this.stack[this.stack.length-1];if(this.data.inReference){const R=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=R,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function le(){const P=this.stack[this.stack.length-1];if(this.data.inReference){const R=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=R,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function se(P){const R=this.sliceSerialize(P),X=this.stack[this.stack.length-2];X.label=Rc(R),X.identifier=Vt(R).toLowerCase()}function G(){const P=this.stack[this.stack.length-1],R=this.resume(),X=this.stack[this.stack.length-1];if(this.data.inReference=!0,X.type==="link"){const j=P.children;X.children=j}else X.alt=R}function g(){const P=this.resume(),R=this.stack[this.stack.length-1];R.url=P}function ue(){const P=this.resume(),R=this.stack[this.stack.length-1];R.title=P}function _(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function pe(P){const R=this.resume(),X=this.stack[this.stack.length-1];X.label=R,X.identifier=Vt(this.sliceSerialize(P)).toLowerCase(),this.data.referenceType="full"}function te(P){this.data.characterReferenceType=P.type}function ne(P){const R=this.sliceSerialize(P),X=this.data.characterReferenceType;let j;X?(j=Mi(R,X==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):j=Di(R);const Q=this.stack[this.stack.length-1];Q.value+=j}function ke(P){const R=this.stack.pop();R.position.end=bt(P.end)}function fe(P){w.call(this,P);const R=this.stack[this.stack.length-1];R.url=this.sliceSerialize(P)}function Ge(P){w.call(this,P);const R=this.stack[this.stack.length-1];R.url="mailto:"+this.sliceSerialize(P)}function de(){return{type:"blockquote",children:[]}}function ve(){return{type:"code",lang:null,meta:null,value:""}}function Ce(){return{type:"inlineCode",value:""}}function Ve(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Be(){return{type:"emphasis",children:[]}}function De(){return{type:"heading",depth:0,children:[]}}function Ae(){return{type:"break"}}function Je(){return{type:"html",value:""}}function wt(){return{type:"image",title:null,url:"",alt:null}}function zt(){return{type:"link",title:null,url:"",children:[]}}function z(P){return{type:"list",ordered:P.type==="listOrdered",start:null,spread:P._spread,children:[]}}function Z(P){return{type:"listItem",spread:P._spread,checked:null,children:[]}}function ie(){return{type:"paragraph",children:[]}}function ee(){return{type:"strong",children:[]}}function Se(){return{type:"text",value:""}}function xe(){return{type:"thematicBreak"}}}function bt(e){return{line:e.line,column:e.column,offset:e.offset}}function ro(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?ro(e,i):Zc(e,i)}}function Zc(e,t){let n;for(n in t)if(no.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function io(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Xt({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Xt({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Xt({start:t.start,end:t.end})+") is still open")}function jc(e){const t=this;t.parser=n;function n(i){return Xc(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Jc(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Yc(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
5
|
+
`;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&r)continue;l=" ";break}default:l=String.fromCharCode(o)}r=o===-2,i.push(l)}return i.join("")}function Oc(e){const i={constructs:qs([Fc,...(e||{}).extensions||[]]),content:r(iu),defined:[],document:r(lu),flow:r(Sc),lazy:{},string:r(kc),text:r(Bc)};return i;function r(o){return l;function l(a){return Tc(i,o,a)}}}function Nc(e){for(;!Yi(e););return e}const to=/[\0\t\n\r]/g;function Dc(){let e=1,t="",n=!0,i;return r;function r(o,l,a){const s=[];let u,c,d,f,p;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(to.lastIndex=d,u=to.exec(o),f=u&&u.index!==void 0?u.index:o.length,p=o.charCodeAt(f),!u){t=o.slice(d);break}if(p===10&&d===f&&i)s.push(-3),i=void 0;else switch(i&&(s.push(-5),i=void 0),d<f&&(s.push(o.slice(d,f)),e+=f-d),p){case 0:{s.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,s.push(-2);e++<c;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:i=!0,e=1}d=f+1}return a&&(i&&s.push(-5),t&&s.push(t),s.push(null)),s}}const Lc={}.hasOwnProperty;function Mc(e){return Lc.call(an,e)?an[e]:!1}const zc=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Rc(e){return e.replace(zc,Hc)}function Hc(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),o=r===120||r===88;return Mi(n.slice(o?2:1),o?16:10)}return Mc(n)||e}const no={}.hasOwnProperty;function Xc(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Wc(n)(Nc(Oc(n).document().write(Dc()(e,t,!0))))}function Wc(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(zt),autolinkProtocol:O,autolinkEmail:O,atxHeading:o(De),blockQuote:o(de),characterEscape:O,characterReference:O,codeFenced:o(ve),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(ve,l),codeText:o(Ce,l),codeTextData:O,data:O,codeFlowValue:O,definition:o(Ve),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(Be),hardBreakEscape:o(Ae),hardBreakTrailing:o(Ae),htmlFlow:o(Je,l),htmlFlowData:O,htmlText:o(Je,l),htmlTextData:O,image:o(wt),label:l,link:o(zt),listItem:o(Z),listItemValue:f,listOrdered:o(z,d),listUnordered:o(z),paragraph:o(ie),reference:m,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(De),strong:o(ee),thematicBreak:o(xe)},exit:{atxHeading:s(),atxHeadingSequence:P,autolink:s(),autolinkEmail:Ge,autolinkProtocol:fe,blockQuote:s(),characterEscapeValue:w,characterReferenceMarkerHexadecimal:te,characterReferenceMarkerNumeric:te,characterReferenceValue:ne,characterReference:ke,codeFenced:s(x),codeFencedFence:y,codeFencedFenceInfo:p,codeFencedFenceMeta:b,codeFlowValue:w,codeIndented:s(I),codeText:s(W),codeTextData:w,data:w,definition:s(),definitionDestinationString:E,definitionLabelString:T,definitionTitleString:S,emphasis:s(),hardBreakEscape:s(V),hardBreakTrailing:s(V),htmlFlow:s(H),htmlFlowData:w,htmlText:s(q),htmlTextData:w,image:s(le),label:G,labelText:se,lineEnding:N,link:s(J),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:pe,resourceDestinationString:g,resourceTitleString:ue,resource:_,setextHeading:s(F),setextHeadingLineSequence:M,setextHeadingText:v,strong:s(),thematicBreak:s()}};ro(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(B){let R={type:"root",children:[]};const X={stack:[R],tokenStack:[],config:t,enter:a,exit:u,buffer:l,resume:c,data:n},j=[];let Q=-1;for(;++Q<B.length;)if(B[Q][1].type==="listOrdered"||B[Q][1].type==="listUnordered")if(B[Q][0]==="enter")j.push(Q);else{const me=j.pop();Q=r(B,me,Q)}for(Q=-1;++Q<B.length;){const me=t[B[Q][0]];no.call(me,B[Q][1].type)&&me[B[Q][1].type].call(Object.assign({sliceSerialize:B[Q][2].sliceSerialize},X),B[Q][1])}if(X.tokenStack.length>0){const me=X.tokenStack[X.tokenStack.length-1];(me[1]||io).call(X,void 0,me[0])}for(R.position={start:bt(B.length>0?B[0][1].start:{line:1,column:1,offset:0}),end:bt(B.length>0?B[B.length-2][1].end:{line:1,column:1,offset:0})},Q=-1;++Q<t.transforms.length;)R=t.transforms[Q](R)||R;return R}function r(B,R,X){let j=R-1,Q=-1,me=!1,lt,$e,yt,at;for(;++j<=X;){const ze=B[j];switch(ze[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ze[0]==="enter"?Q++:Q--,at=void 0;break}case"lineEndingBlank":{ze[0]==="enter"&&(lt&&!at&&!Q&&!yt&&(yt=j),at=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:at=void 0}if(!Q&&ze[0]==="enter"&&ze[1].type==="listItemPrefix"||Q===-1&&ze[0]==="exit"&&(ze[1].type==="listUnordered"||ze[1].type==="listOrdered")){if(lt){let pt=j;for($e=void 0;pt--;){const Ke=B[pt];if(Ke[1].type==="lineEnding"||Ke[1].type==="lineEndingBlank"){if(Ke[0]==="exit")continue;$e&&(B[$e][1].type="lineEndingBlank",me=!0),Ke[1].type="lineEnding",$e=pt}else if(!(Ke[1].type==="linePrefix"||Ke[1].type==="blockQuotePrefix"||Ke[1].type==="blockQuotePrefixWhitespace"||Ke[1].type==="blockQuoteMarker"||Ke[1].type==="listItemIndent"))break}yt&&(!$e||yt<$e)&&(lt._spread=!0),lt.end=Object.assign({},$e?B[$e][1].start:ze[1].end),B.splice($e||j,0,["exit",lt,ze[2]]),j++,X++}if(ze[1].type==="listItemPrefix"){const pt={type:"listItem",_spread:!1,start:Object.assign({},ze[1].start),end:void 0};lt=pt,B.splice(j,0,["enter",pt,ze[2]]),j++,X++,yt=void 0,at=!0}}}return B[R][1]._spread=me,X}function o(B,R){return X;function X(j){a.call(this,B(j),j),R&&R.call(this,j)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(B,R,X){this.stack[this.stack.length-1].children.push(B),this.stack.push(B),this.tokenStack.push([R,X||void 0]),B.position={start:bt(R.start),end:void 0}}function s(B){return R;function R(X){B&&B.call(this,X),u.call(this,X)}}function u(B,R){const X=this.stack.pop(),j=this.tokenStack.pop();if(j)j[0].type!==B.type&&(R?R.call(this,B,j[0]):(j[1]||io).call(this,B,j[0]));else throw new Error("Cannot close `"+B.type+"` ("+Xt({start:B.start,end:B.end})+"): it’s not open");X.position.end=bt(B.end)}function c(){return Ys(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(B){if(this.data.expectingFirstListItemValue){const R=this.stack[this.stack.length-2];R.start=Number.parseInt(this.sliceSerialize(B),10),this.data.expectingFirstListItemValue=void 0}}function p(){const B=this.resume(),R=this.stack[this.stack.length-1];R.lang=B}function b(){const B=this.resume(),R=this.stack[this.stack.length-1];R.meta=B}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){const B=this.resume(),R=this.stack[this.stack.length-1];R.value=B.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function I(){const B=this.resume(),R=this.stack[this.stack.length-1];R.value=B.replace(/(\r?\n|\r)$/g,"")}function T(B){const R=this.resume(),X=this.stack[this.stack.length-1];X.label=R,X.identifier=Vt(this.sliceSerialize(B)).toLowerCase()}function S(){const B=this.resume(),R=this.stack[this.stack.length-1];R.title=B}function E(){const B=this.resume(),R=this.stack[this.stack.length-1];R.url=B}function P(B){const R=this.stack[this.stack.length-1];if(!R.depth){const X=this.sliceSerialize(B).length;R.depth=X}}function v(){this.data.setextHeadingSlurpLineEnding=!0}function M(B){const R=this.stack[this.stack.length-1];R.depth=this.sliceSerialize(B).codePointAt(0)===61?1:2}function F(){this.data.setextHeadingSlurpLineEnding=void 0}function O(B){const X=this.stack[this.stack.length-1].children;let j=X[X.length-1];(!j||j.type!=="text")&&(j=Se(),j.position={start:bt(B.start),end:void 0},X.push(j)),this.stack.push(j)}function w(B){const R=this.stack.pop();R.value+=this.sliceSerialize(B),R.position.end=bt(B.end)}function N(B){const R=this.stack[this.stack.length-1];if(this.data.atHardBreak){const X=R.children[R.children.length-1];X.position.end=bt(B.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(R.type)&&(O.call(this,B),w.call(this,B))}function V(){this.data.atHardBreak=!0}function H(){const B=this.resume(),R=this.stack[this.stack.length-1];R.value=B}function q(){const B=this.resume(),R=this.stack[this.stack.length-1];R.value=B}function W(){const B=this.resume(),R=this.stack[this.stack.length-1];R.value=B}function J(){const B=this.stack[this.stack.length-1];if(this.data.inReference){const R=this.data.referenceType||"shortcut";B.type+="Reference",B.referenceType=R,delete B.url,delete B.title}else delete B.identifier,delete B.label;this.data.referenceType=void 0}function le(){const B=this.stack[this.stack.length-1];if(this.data.inReference){const R=this.data.referenceType||"shortcut";B.type+="Reference",B.referenceType=R,delete B.url,delete B.title}else delete B.identifier,delete B.label;this.data.referenceType=void 0}function se(B){const R=this.sliceSerialize(B),X=this.stack[this.stack.length-2];X.label=Rc(R),X.identifier=Vt(R).toLowerCase()}function G(){const B=this.stack[this.stack.length-1],R=this.resume(),X=this.stack[this.stack.length-1];if(this.data.inReference=!0,X.type==="link"){const j=B.children;X.children=j}else X.alt=R}function g(){const B=this.resume(),R=this.stack[this.stack.length-1];R.url=B}function ue(){const B=this.resume(),R=this.stack[this.stack.length-1];R.title=B}function _(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function pe(B){const R=this.resume(),X=this.stack[this.stack.length-1];X.label=R,X.identifier=Vt(this.sliceSerialize(B)).toLowerCase(),this.data.referenceType="full"}function te(B){this.data.characterReferenceType=B.type}function ne(B){const R=this.sliceSerialize(B),X=this.data.characterReferenceType;let j;X?(j=Mi(R,X==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):j=Di(R);const Q=this.stack[this.stack.length-1];Q.value+=j}function ke(B){const R=this.stack.pop();R.position.end=bt(B.end)}function fe(B){w.call(this,B);const R=this.stack[this.stack.length-1];R.url=this.sliceSerialize(B)}function Ge(B){w.call(this,B);const R=this.stack[this.stack.length-1];R.url="mailto:"+this.sliceSerialize(B)}function de(){return{type:"blockquote",children:[]}}function ve(){return{type:"code",lang:null,meta:null,value:""}}function Ce(){return{type:"inlineCode",value:""}}function Ve(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Be(){return{type:"emphasis",children:[]}}function De(){return{type:"heading",depth:0,children:[]}}function Ae(){return{type:"break"}}function Je(){return{type:"html",value:""}}function wt(){return{type:"image",title:null,url:"",alt:null}}function zt(){return{type:"link",title:null,url:"",children:[]}}function z(B){return{type:"list",ordered:B.type==="listOrdered",start:null,spread:B._spread,children:[]}}function Z(B){return{type:"listItem",spread:B._spread,checked:null,children:[]}}function ie(){return{type:"paragraph",children:[]}}function ee(){return{type:"strong",children:[]}}function Se(){return{type:"text",value:""}}function xe(){return{type:"thematicBreak"}}}function bt(e){return{line:e.line,column:e.column,offset:e.offset}}function ro(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?ro(e,i):Zc(e,i)}}function Zc(e,t){let n;for(n in t)if(no.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function io(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Xt({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Xt({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Xt({start:t.start,end:t.end})+") is still open")}function jc(e){const t=this;t.parser=n;function n(i){return Xc(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Jc(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Yc(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
6
6
|
`}]}function _c(e,t){const n=t.value?t.value+`
|
|
7
7
|
`:"",i={};t.lang&&(i.className=["language-"+t.lang]);let r={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(r.data={meta:t.meta}),e.patch(t,r),r=e.applyData(t,r),r={type:"element",tagName:"pre",properties:{},children:[r]},e.patch(t,r),r}function Uc(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function qc(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Qc(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),r=Ot(i.toLowerCase()),o=e.footnoteOrder.indexOf(i);let l,a=e.footnoteCounts.get(i);a===void 0?(a=0,e.footnoteOrder.push(i),l=e.footnoteOrder.length):l=o+1,a+=1,e.footnoteCounts.set(i,a);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+r,id:n+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function $c(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Kc(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function oo(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const r=e.all(t),o=r[0];o&&o.type==="text"?o.value="["+o.value:r.unshift({type:"text",value:"["});const l=r[r.length-1];return l&&l.type==="text"?l.value+=i:r.push({type:"text",value:i}),r}function ed(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return oo(e,t);const r={src:Ot(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)}function td(e,t){const n={src:Ot(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function nd(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function rd(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return oo(e,t);const r={href:Ot(i.url||"")};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function id(e,t){const n={href:Ot(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function od(e,t,n){const i=e.all(t),r=n?ld(n):lo(t),o={},l=[];if(typeof t.checked=="boolean"){const c=i[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},i.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<i.length;){const c=i[a];(r||a!==0||c.type!=="element"||c.tagName!=="p")&&l.push({type:"text",value:`
|
|
8
8
|
`}),c.type==="element"&&c.tagName==="p"&&!r?l.push(...c.children):l.push(c)}const s=i[i.length-1];s&&(r||s.type!=="element"||s.tagName!=="p")&&l.push({type:"text",value:`
|
|
9
|
-
`});const u={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,u),e.applyData(t,u)}function ld(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=lo(n[i])}return t}function lo(e){const t=e.spread;return t??e.children.length>1}function ad(e,t){const n={},i=e.all(t);let r=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++r<i.length;){const l=i[r];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function sd(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ud(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function cd(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dd(e,t){const n=e.all(t),i=n.shift(),r=[];if(i){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],l),r.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=ir(t.children[1]),s=Ei(t.children[t.children.length-1]);a&&s&&(l.position={start:a,end:s}),r.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function pd(e,t,n){const i=n?n.children:void 0,o=(i?i.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,a=l?l.length:t.children.length;let s=-1;const u=[];for(;++s<a;){const d=t.children[s],f={},p=l?l[s]:void 0;p&&(f.align=p);let
|
|
9
|
+
`});const u={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,u),e.applyData(t,u)}function ld(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=lo(n[i])}return t}function lo(e){const t=e.spread;return t??e.children.length>1}function ad(e,t){const n={},i=e.all(t);let r=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++r<i.length;){const l=i[r];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function sd(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ud(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function cd(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dd(e,t){const n=e.all(t),i=n.shift(),r=[];if(i){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],l),r.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=ir(t.children[1]),s=Ei(t.children[t.children.length-1]);a&&s&&(l.position={start:a,end:s}),r.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function pd(e,t,n){const i=n?n.children:void 0,o=(i?i.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,a=l?l.length:t.children.length;let s=-1;const u=[];for(;++s<a;){const d=t.children[s],f={},p=l?l[s]:void 0;p&&(f.align=p);let b={type:"element",tagName:o,properties:f,children:[]};d&&(b.children=e.all(d),e.patch(d,b),b=e.applyData(d,b)),u.push(b)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function fd(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const ao=9,so=32;function gd(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),r=0;const o=[];for(;i;)o.push(uo(t.slice(r,i.index),r>0,!0),i[0]),r=i.index+i[0].length,i=n.exec(t);return o.push(uo(t.slice(r),r>0,!1)),o.join("")}function uo(e,t,n){let i=0,r=e.length;if(t){let o=e.codePointAt(i);for(;o===ao||o===so;)i++,o=e.codePointAt(i)}if(n){let o=e.codePointAt(r-1);for(;o===ao||o===so;)r--,o=e.codePointAt(r-1)}return r>i?e.slice(i,r):""}function hd(e,t){const n={type:"text",value:gd(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function md(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const bd={blockquote:Jc,break:Yc,code:_c,delete:Uc,emphasis:qc,footnoteReference:Qc,heading:$c,html:Kc,imageReference:ed,image:td,inlineCode:nd,linkReference:rd,link:id,listItem:od,list:ad,paragraph:sd,root:ud,strong:cd,table:dd,tableCell:fd,tableRow:pd,text:hd,thematicBreak:md,toml:cn,yaml:cn,definition:cn,footnoteDefinition:cn};function cn(){}const co=-1,dn=0,Jt=1,pn=2,br=3,yr=4,Ir=5,vr=6,po=7,fo=8,go=typeof self=="object"?self:globalThis,yd=(e,t)=>{const n=(r,o)=>(e.set(o,r),r),i=r=>{if(e.has(r))return e.get(r);const[o,l]=t[r];switch(o){case dn:case co:return n(l,r);case Jt:{const a=n([],r);for(const s of l)a.push(i(s));return a}case pn:{const a=n({},r);for(const[s,u]of l)a[i(s)]=i(u);return a}case br:return n(new Date(l),r);case yr:{const{source:a,flags:s}=l;return n(new RegExp(a,s),r)}case Ir:{const a=n(new Map,r);for(const[s,u]of l)a.set(i(s),i(u));return a}case vr:{const a=n(new Set,r);for(const s of l)a.add(i(s));return a}case po:{const{name:a,message:s}=l;return n(new go[a](s),r)}case fo:return n(BigInt(l),r);case"BigInt":return n(Object(BigInt(l)),r);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:a}=new Uint8Array(l);return n(new DataView(a),l)}}return n(new go[o](l),r)};return i},ho=e=>yd(new Map,e)(0),Nt="",{toString:Id}={},{keys:vd}=Object,Yt=e=>{const t=typeof e;if(t!=="object"||!e)return[dn,t];const n=Id.call(e).slice(8,-1);switch(n){case"Array":return[Jt,Nt];case"Object":return[pn,Nt];case"Date":return[br,Nt];case"RegExp":return[yr,Nt];case"Map":return[Ir,Nt];case"Set":return[vr,Nt];case"DataView":return[Jt,n]}return n.includes("Array")?[Jt,n]:n.includes("Error")?[po,n]:[pn,n]},fn=([e,t])=>e===dn&&(t==="function"||t==="symbol"),Cd=(e,t,n,i)=>{const r=(l,a)=>{const s=i.push(l)-1;return n.set(a,s),s},o=l=>{if(n.has(l))return n.get(l);let[a,s]=Yt(l);switch(a){case dn:{let c=l;switch(s){case"bigint":a=fo,c=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);c=null;break;case"undefined":return r([co],l)}return r([a,c],l)}case Jt:{if(s){let f=l;return s==="DataView"?f=new Uint8Array(l.buffer):s==="ArrayBuffer"&&(f=new Uint8Array(l)),r([s,[...f]],l)}const c=[],d=r([a,c],l);for(const f of l)c.push(o(f));return d}case pn:{if(s)switch(s){case"BigInt":return r([s,l.toString()],l);case"Boolean":case"Number":case"String":return r([s,l.valueOf()],l)}if(t&&"toJSON"in l)return o(l.toJSON());const c=[],d=r([a,c],l);for(const f of vd(l))(e||!fn(Yt(l[f])))&&c.push([o(f),o(l[f])]);return d}case br:return r([a,l.toISOString()],l);case yr:{const{source:c,flags:d}=l;return r([a,{source:c,flags:d}],l)}case Ir:{const c=[],d=r([a,c],l);for(const[f,p]of l)(e||!(fn(Yt(f))||fn(Yt(p))))&&c.push([o(f),o(p)]);return d}case vr:{const c=[],d=r([a,c],l);for(const f of l)(e||!fn(Yt(f)))&&c.push(o(f));return d}}const{message:u}=l;return r([a,{name:s,message:u}],l)};return o},mo=(e,{json:t,lossy:n}={})=>{const i=[];return Cd(!(t||n),!!t,new Map,i)(e),i},gn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ho(mo(e,t)):structuredClone(e):(e,t)=>ho(mo(e,t));function xd(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 Ad(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Sd(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||xd,i=e.options.footnoteBackLabel||Ad,r=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[s]);if(!u)continue;const c=e.all(u),d=String(u.identifier).toUpperCase(),f=Ot(d.toLowerCase());let p=0;const b=[],y=e.footnoteCounts.get(d);for(;y!==void 0&&++p<=y;){b.length>0&&b.push({type:"text",value:" "});let T=typeof n=="string"?n:n(s,p);typeof T=="string"&&(T={type:"text",value:T}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(s,p),className:["data-footnote-backref"]},children:Array.isArray(T)?T:[T]})}const x=c[c.length-1];if(x&&x.type==="element"&&x.tagName==="p"){const T=x.children[x.children.length-1];T&&T.type==="text"?T.value+=" ":x.children.push({type:"text",value:" "}),x.children.push(...b)}else c.push(...b);const I={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(u,I),a.push(I)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...gn(l),id:"footnote-label"},children:[{type:"text",value:r}]},{type:"text",value:`
|
|
10
10
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
|
11
|
-
`}]}}const bo=function(e){if(e==null)return Bd;if(typeof e=="function")return hn(e);if(typeof e=="object")return Array.isArray(e)?wd(e):Ed(e);if(typeof e=="string")return kd(e);throw new Error("Expected function, string, or object as test")};function wd(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=bo(e[n]);return hn(i);function i(...r){let o=-1;for(;++o<t.length;)if(t[o].apply(this,r))return!0;return!1}}function Ed(e){const t=e;return hn(n);function n(i){const r=i;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}function kd(e){return hn(t);function t(n){return n&&n.type===e}}function hn(e){return t;function t(n,i,r){return!!(Pd(n)&&e.call(this,n,typeof i=="number"?i:void 0,r||void 0))}}function Bd(){return!0}function Pd(e){return e!==null&&typeof e=="object"&&"type"in e}function Um(e){return e}const yo=[],Fd=!0,Io=!1,Td="skip";function Gd(e,t,n,i){let r;typeof t=="function"&&typeof n!="function"?(i=n,n=t):r=t;const o=bo(r),l=i?-1:1;a(e,void 0,[])();function a(s,u,c){const d=s&&typeof s=="object"?s:{};if(typeof d.type=="string"){const p=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(s.type+(p?"<"+p+">":""))+")"})}return f;function f(){let p=yo,y,
|
|
11
|
+
`}]}}const bo=function(e){if(e==null)return Bd;if(typeof e=="function")return hn(e);if(typeof e=="object")return Array.isArray(e)?wd(e):Ed(e);if(typeof e=="string")return kd(e);throw new Error("Expected function, string, or object as test")};function wd(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=bo(e[n]);return hn(i);function i(...r){let o=-1;for(;++o<t.length;)if(t[o].apply(this,r))return!0;return!1}}function Ed(e){const t=e;return hn(n);function n(i){const r=i;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}function kd(e){return hn(t);function t(n){return n&&n.type===e}}function hn(e){return t;function t(n,i,r){return!!(Pd(n)&&e.call(this,n,typeof i=="number"?i:void 0,r||void 0))}}function Bd(){return!0}function Pd(e){return e!==null&&typeof e=="object"&&"type"in e}function Um(e){return e}const yo=[],Fd=!0,Io=!1,Td="skip";function Gd(e,t,n,i){let r;typeof t=="function"&&typeof n!="function"?(i=n,n=t):r=t;const o=bo(r),l=i?-1:1;a(e,void 0,[])();function a(s,u,c){const d=s&&typeof s=="object"?s:{};if(typeof d.type=="string"){const p=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(s.type+(p?"<"+p+">":""))+")"})}return f;function f(){let p=yo,b,y,x;if((!t||o(s,u,c[c.length-1]||void 0))&&(p=Vd(n(s,c)),p[0]===Io))return p;if("children"in s&&s.children){const I=s;if(I.children&&p[0]!==Td)for(y=(i?I.children.length:-1)+l,x=c.concat(I);y>-1&&y<I.children.length;){const T=I.children[y];if(b=a(T,y,x)(),b[0]===Io)return b;y=typeof b[1]=="number"?b[1]:y+l}}return p}}}function Vd(e){return Array.isArray(e)?e:typeof e=="number"?[Fd,e]:e==null?yo:[e]}function vo(e,t,n,i){let r,o,l;typeof t=="function"&&typeof n!="function"?(o=void 0,l=t,r=n):(o=t,l=n,r=i),Gd(e,o,a,r);function a(s,u){const c=u[u.length-1],d=c?c.children.indexOf(s):void 0;return l(s,d,c)}}const Cr={}.hasOwnProperty,Od={};function Nd(e,t){const n=t||Od,i=new Map,r=new Map,o=new Map,l={...bd,...n.handlers},a={all:u,applyData:Ld,definitionById:i,footnoteById:r,footnoteCounts:o,footnoteOrder:[],handlers:l,one:s,options:n,patch:Dd,wrap:zd};return vo(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const d=c.type==="definition"?i:r,f=String(c.identifier).toUpperCase();d.has(f)||d.set(f,c)}}),a;function s(c,d){const f=c.type,p=a.handlers[f];if(Cr.call(a.handlers,f)&&p)return p(a,c,d);if(a.options.passThrough&&a.options.passThrough.includes(f)){if("children"in c){const{children:y,...x}=c,I=gn(x);return I.children=a.all(c),I}return gn(c)}return(a.options.unknownHandler||Md)(a,c,d)}function u(c){const d=[];if("children"in c){const f=c.children;let p=-1;for(;++p<f.length;){const b=a.one(f[p],c);if(b){if(p&&f[p-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=Co(b.value)),!Array.isArray(b)&&b.type==="element")){const y=b.children[0];y&&y.type==="text"&&(y.value=Co(y.value))}Array.isArray(b)?d.push(...b):d.push(b)}}}return d}}function Dd(e,t){e.position&&(t.position=ws(e))}function Ld(e,t){let n=t;if(e&&e.data){const i=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const l="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:l}}n.type==="element"&&o&&Object.assign(n.properties,gn(o)),"children"in n&&n.children&&r!==null&&r!==void 0&&(n.children=r)}return n}function Md(e,t){const n=t.data||{},i="value"in t&&!(Cr.call(n,"hProperties")||Cr.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function zd(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
|
|
12
12
|
`});++i<e.length;)i&&n.push({type:"text",value:`
|
|
13
13
|
`}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
14
14
|
`}),n}function Co(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function xo(e,t){const n=Nd(e,t),i=n.one(e,void 0),r=Sd(n),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return r&&o.children.push({type:"text",value:`
|
|
15
|
-
`},r),o}function Rd(e,t){return e&&"run"in e?async function(n,i){const r=xo(n,{file:i,...t});await e.run(r,i)}:function(n,i){return xo(n,{file:i,...e||t})}}function Ao(e){if(e)throw e}var mn=Object.prototype.hasOwnProperty,So=Object.prototype.toString,wo=Object.defineProperty,Eo=Object.getOwnPropertyDescriptor,ko=function(t){return typeof Array.isArray=="function"?Array.isArray(t):So.call(t)==="[object Array]"},Bo=function(t){if(!t||So.call(t)!=="[object Object]")return!1;var n=mn.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&mn.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!i)return!1;var r;for(r in t);return typeof r>"u"||mn.call(t,r)},Po=function(t,n){wo&&n.name==="__proto__"?wo(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Fo=function(t,n){if(n==="__proto__")if(mn.call(t,n)){if(Eo)return Eo(t,n).value}else return;return t[n]},Hd=function e(){var t,n,i,r,o,l,a=arguments[0],s=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},s=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});s<u;++s)if(t=arguments[s],t!=null)for(n in t)i=Fo(a,n),r=Fo(t,n),a!==r&&(c&&r&&(Bo(r)||(o=ko(r)))?(o?(o=!1,l=i&&ko(i)?i:[]):l=i&&Bo(i)?i:{},Po(a,{name:n,newValue:e(c,l,r)})):typeof r<"u"&&Po(a,{name:n,newValue:r}));return a};const xr=tr(Hd);function Ar(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Xd(){const e=[],t={run:n,use:i};return t;function n(...r){let o=-1;const l=r.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...r);function a(s,...u){const c=e[++o];let d=-1;if(s){l(s);return}for(;++d<r.length;)(u[d]===null||u[d]===void 0)&&(u[d]=r[d]);r=u,c?Wd(c,a)(...u):l(null,...u)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}}function Wd(e,t){let n;return i;function i(...l){const a=e.length>l.length;let s;a&&l.push(r);try{s=e.apply(this,l)}catch(u){const c=u;if(a&&n)throw c;return r(c)}a||(s&&s.then&&typeof s.then=="function"?s.then(o,r):s instanceof Error?r(s):o(s))}function r(l,...a){n||(n=!0,t(l,...a))}function o(l){r(null,l)}}const rt={basename:Zd,dirname:jd,extname:Jd,join:Yd,sep:"/"};function Zd(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');_t(e);let n=0,i=-1,r=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(o){n=r+1;break}}else i<0&&(o=!0,i=r+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let l=-1,a=t.length-1;for(;r--;)if(e.codePointAt(r)===47){if(o){n=r+1;break}}else l<0&&(o=!0,l=r+1),a>-1&&(e.codePointAt(r)===t.codePointAt(a--)?a<0&&(i=r):(a=-1,i=l));return n===i?i=l:i<0&&(i=e.length),e.slice(n,i)}function jd(e){if(_t(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Jd(e){_t(e);let t=e.length,n=-1,i=0,r=-1,o=0,l;for(;t--;){const a=e.codePointAt(t);if(a===47){if(l){i=t+1;break}continue}n<0&&(l=!0,n=t+1),a===46?r<0?r=t:o!==1&&(o=1):r>-1&&(o=-1)}return r<0||n<0||o===0||o===1&&r===n-1&&r===i+1?"":e.slice(r,n)}function Yd(...e){let t=-1,n;for(;++t<e.length;)_t(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":_d(n)}function _d(e){_t(e);const t=e.codePointAt(0)===47;let n=Ud(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Ud(e,t){let n="",i=0,r=-1,o=0,l=-1,a,s;for(;++l<=e.length;){if(l<e.length)a=e.codePointAt(l);else{if(a===47)break;a=47}if(a===47){if(!(r===l-1||o===1))if(r!==l-1&&o===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",i=0):(n=n.slice(0,s),i=n.length-1-n.lastIndexOf("/")),r=l,o=0;continue}}else if(n.length>0){n="",i=0,r=l,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(r+1,l):n=e.slice(r+1,l),i=l-r-1;r=l,o=0}else a===46&&o>-1?o++:o=-1}return n}function _t(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const qd={cwd:Qd};function Qd(){return"/"}function Sr(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function $d(e){if(typeof e=="string")e=new URL(e);else if(!Sr(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(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Kd(e)}function Kd(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const r=new TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(t)}const wr=["history","path","basename","stem","extname","dirname"];class To{constructor(t){let n;t?Sr(t)?n={path:t}:typeof t=="string"||ep(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":qd.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<wr.length;){const o=wr[i];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let r;for(r in n)wr.includes(r)||(this[r]=n[r])}get basename(){return typeof this.path=="string"?rt.basename(this.path):void 0}set basename(t){kr(t,"basename"),Er(t,"basename"),this.path=rt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?rt.dirname(this.path):void 0}set dirname(t){Go(this.basename,"dirname"),this.path=rt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?rt.extname(this.path):void 0}set extname(t){if(Er(t,"extname"),Go(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=rt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Sr(t)&&(t=$d(t)),kr(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?rt.basename(this.path,this.extname):void 0}set stem(t){kr(t,"stem"),Er(t,"stem"),this.path=rt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const r=this.message(t,n,i);throw r.fatal=!0,r}info(t,n,i){const r=this.message(t,n,i);return r.fatal=void 0,r}message(t,n,i){const r=new Me(t,n,i);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Er(e,t){if(e&&e.includes(rt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+rt.sep+"`")}function kr(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Go(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function ep(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const tp=function(e){const i=this.constructor.prototype,r=i[e],o=function(){return r.apply(o,arguments)};return Object.setPrototypeOf(o,i),o},np={}.hasOwnProperty;class Br extends tp{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=Xd()}copy(){const t=new Br;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(xr(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Tr("data",this.frozen),this.namespace[t]=n,this):np.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Tr("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const r=n.call(t,...i);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=bn(t),i=this.parser||this.Parser;return Pr("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),Pr("process",this.parser||this.Parser),Fr("process",this.compiler||this.Compiler),n?r(void 0,n):new Promise(r);function r(o,l){const a=bn(t),s=i.parse(a);i.run(s,a,function(c,d,f){if(c||!d||!f)return u(c);const p=d,y=i.stringify(p,f);op(y)?f.value=y:f.result=y,u(c,f)});function u(c,d){c||!d?l(c):o?o(d):n(void 0,d)}}}processSync(t){let n=!1,i;return this.freeze(),Pr("processSync",this.parser||this.Parser),Fr("processSync",this.compiler||this.Compiler),this.process(t,r),Oo("processSync","process",n),i;function r(o,l){n=!0,Ao(o),i=l}}run(t,n,i){Vo(t),this.freeze();const r=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?o(void 0,i):new Promise(o);function o(l,a){const s=bn(n);r.run(t,s,u);function u(c,d,f){const p=d||t;c?a(c):l?l(p):i(void 0,p,f)}}}runSync(t,n){let i=!1,r;return this.run(t,n,o),Oo("runSync","run",i),r;function o(l,a){Ao(l),r=a,i=!0}}stringify(t,n){this.freeze();const i=bn(n),r=this.compiler||this.Compiler;return Fr("stringify",r),Vo(t),r(t,i)}use(t,...n){const i=this.attachers,r=this.namespace;if(Tr("use",this.frozen),t!=null)if(typeof t=="function")s(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...d]=u;s(c,d)}else l(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function l(u){if(!("plugins"in u)&&!("settings"in u))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(u.plugins),u.settings&&(r.settings=xr(!0,r.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const d=u[c];o(d)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,c){let d=-1,f=-1;for(;++d<i.length;)if(i[d][0]===u){f=d;break}if(f===-1)i.push([u,...c]);else if(c.length>0){let[p,...y]=c;const b=i[f][1];Ar(b)&&Ar(p)&&(p=xr(!0,b,p)),i[f]=[u,p,...y]}}}}const rp=new Br().freeze();function Pr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Fr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Tr(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 Vo(e){if(!Ar(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Oo(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function bn(e){return ip(e)?e:new To(e)}function ip(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function op(e){return typeof e=="string"||lp(e)}function lp(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ap="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",No=[],Do={allowDangerousHtml:!0},sp=/^(https?|ircs?|mailto|xmpp)$/i,up=[{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:"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 Lo(e){const t=cp(e),n=dp(e);return pp(t.runSync(t.parse(n),n),e)}function cp(e){const t=e.rehypePlugins||No,n=e.remarkPlugins||No,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Do}:Do;return rp().use(jc).use(n).use(Rd,i).use(t)}function dp(e){const t=e.children||"",n=new To;return typeof t=="string"&&(n.value=t),n}function pp(e,t){const n=t.allowedElements,i=t.allowElement,r=t.components,o=t.disallowedElements,l=t.skipHtml,a=t.unwrapDisallowed,s=t.urlTransform||fp;for(const c of up)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+ap+c.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),vo(e,u),Fs(e,{Fragment:B.Fragment,components:r,ignoreInvalidStyle:!0,jsx:B.jsx,jsxs:B.jsxs,passKeys:!0,passNode:!0});function u(c,d,f){if(c.type==="raw"&&f&&typeof d=="number")return l?f.children.splice(d,1):f.children[d]={type:"text",value:c.value},d;if(c.type==="element"){let p;for(p in ur)if(Object.hasOwn(ur,p)&&Object.hasOwn(c.properties,p)){const y=c.properties[p],b=ur[p];(b===null||b.includes(c.tagName))&&(c.properties[p]=s(String(y||""),p,c))}}if(c.type==="element"){let p=n?!n.includes(c.tagName):o?o.includes(c.tagName):!1;if(!p&&i&&typeof d=="number"&&(p=!i(c,d,f)),p&&f&&typeof d=="number")return a&&c.children?f.children.splice(d,1,...c.children):f.children.splice(d,1),d}}}function fp(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),r=e.indexOf("/");return t===-1||r!==-1&&t>r||n!==-1&&t>n||i!==-1&&t>i||sp.test(e.slice(0,t))?e:""}function yn({prop:e}){const t={width:"100%",background:"#e2e3e5",borderRadius:"5px",paddingTop:"2px",paddingLeft:"10px",paddingRight:"10px",paddingBottom:"2px"},n={...t,background:"#fff3cd"},i={...t,background:"#d1ecf1"},r={...t,background:"#f8d7da"},o={...t,background:"#fffff2"};let l={};switch(e.alertType){case"info":l=i;break;case"neutral":l=o;break;case"warning":l=n;break;case"error":l=r;break;default:l=t}return B.jsx("div",{className:`pd-alert-${e.alertType}`,style:l,children:B.jsx(Lo,{components:{a:({...a})=>B.jsx("a",{...a,target:"_blank",rel:"noopener noreferrer"})},children:e.content})})}var In={exports:{}};In.exports,function(e,t){var n=200,i="__lodash_hash_undefined__",r=1,o=2,l=9007199254740991,a="[object Arguments]",s="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",y="[object GeneratorFunction]",b="[object Map]",C="[object Number]",I="[object Null]",T="[object Object]",S="[object Promise]",k="[object Proxy]",E="[object RegExp]",A="[object Set]",M="[object String]",F="[object Symbol]",O="[object Undefined]",w="[object WeakMap]",N="[object ArrayBuffer]",V="[object DataView]",H="[object Float32Array]",q="[object Float64Array]",W="[object Int8Array]",J="[object Int16Array]",le="[object Int32Array]",se="[object Uint8Array]",G="[object Uint8ClampedArray]",g="[object Uint16Array]",ue="[object Uint32Array]",_=/[\\^$.*+?()[\]{}|]/g,m=/^\[object .+?Constructor\]$/,pe=/^(?:0|[1-9]\d*)$/,te={};te[H]=te[q]=te[W]=te[J]=te[le]=te[se]=te[G]=te[g]=te[ue]=!0,te[a]=te[s]=te[N]=te[c]=te[V]=te[d]=te[f]=te[p]=te[b]=te[C]=te[T]=te[E]=te[A]=te[M]=te[w]=!1;var ne=typeof ht=="object"&&ht&&ht.Object===Object&&ht,ke=typeof self=="object"&&self&&self.Object===Object&&self,fe=ne||ke||Function("return this")(),Ge=t&&!t.nodeType&&t,de=Ge&&!0&&e&&!e.nodeType&&e,ve=de&&de.exports===Ge,Ce=ve&&ne.process,Ve=function(){try{return Ce&&Ce.binding&&Ce.binding("util")}catch{}}(),Be=Ve&&Ve.isTypedArray;function De(h,v){for(var D=-1,Y=h==null?0:h.length,Ie=0,ce=[];++D<Y;){var Pe=h[D];v(Pe,D,h)&&(ce[Ie++]=Pe)}return ce}function Ae(h,v){for(var D=-1,Y=v.length,Ie=h.length;++D<Y;)h[Ie+D]=v[D];return h}function Je(h,v){for(var D=-1,Y=h==null?0:h.length;++D<Y;)if(v(h[D],D,h))return!0;return!1}function wt(h,v){for(var D=-1,Y=Array(h);++D<h;)Y[D]=v(D);return Y}function zt(h){return function(v){return h(v)}}function z(h,v){return h.has(v)}function Z(h,v){return h==null?void 0:h[v]}function ie(h){var v=-1,D=Array(h.size);return h.forEach(function(Y,Ie){D[++v]=[Ie,Y]}),D}function ee(h,v){return function(D){return h(v(D))}}function Se(h){var v=-1,D=Array(h.size);return h.forEach(function(Y){D[++v]=Y}),D}var xe=Array.prototype,P=Function.prototype,R=Object.prototype,X=fe["__core-js_shared__"],j=P.toString,Q=R.hasOwnProperty,me=function(){var h=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}(),lt=R.toString,$e=RegExp("^"+j.call(Q).replace(_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=ve?fe.Buffer:void 0,at=fe.Symbol,ze=fe.Uint8Array,pt=R.propertyIsEnumerable,Ke=xe.splice,Et=at?at.toStringTag:void 0,va=Object.getOwnPropertySymbols,Xh=yt?yt.isBuffer:void 0,Wh=ee(Object.keys,Object),ii=Rt(fe,"DataView"),tn=Rt(fe,"Map"),oi=Rt(fe,"Promise"),li=Rt(fe,"Set"),ai=Rt(fe,"WeakMap"),nn=Rt(Object,"create"),Zh=Pt(ii),jh=Pt(tn),Jh=Pt(oi),Yh=Pt(li),_h=Pt(ai),Ca=at?at.prototype:void 0,si=Ca?Ca.valueOf:void 0;function kt(h){var v=-1,D=h==null?0:h.length;for(this.clear();++v<D;){var Y=h[v];this.set(Y[0],Y[1])}}function Uh(){this.__data__=nn?nn(null):{},this.size=0}function qh(h){var v=this.has(h)&&delete this.__data__[h];return this.size-=v?1:0,v}function Qh(h){var v=this.__data__;if(nn){var D=v[h];return D===i?void 0:D}return Q.call(v,h)?v[h]:void 0}function $h(h){var v=this.__data__;return nn?v[h]!==void 0:Q.call(v,h)}function Kh(h,v){var D=this.__data__;return this.size+=this.has(h)?0:1,D[h]=nn&&v===void 0?i:v,this}kt.prototype.clear=Uh,kt.prototype.delete=qh,kt.prototype.get=Qh,kt.prototype.has=$h,kt.prototype.set=Kh;function ft(h){var v=-1,D=h==null?0:h.length;for(this.clear();++v<D;){var Y=h[v];this.set(Y[0],Y[1])}}function em(){this.__data__=[],this.size=0}function tm(h){var v=this.__data__,D=Zn(v,h);if(D<0)return!1;var Y=v.length-1;return D==Y?v.pop():Ke.call(v,D,1),--this.size,!0}function nm(h){var v=this.__data__,D=Zn(v,h);return D<0?void 0:v[D][1]}function rm(h){return Zn(this.__data__,h)>-1}function im(h,v){var D=this.__data__,Y=Zn(D,h);return Y<0?(++this.size,D.push([h,v])):D[Y][1]=v,this}ft.prototype.clear=em,ft.prototype.delete=tm,ft.prototype.get=nm,ft.prototype.has=rm,ft.prototype.set=im;function Bt(h){var v=-1,D=h==null?0:h.length;for(this.clear();++v<D;){var Y=h[v];this.set(Y[0],Y[1])}}function om(){this.size=0,this.__data__={hash:new kt,map:new(tn||ft),string:new kt}}function lm(h){var v=jn(this,h).delete(h);return this.size-=v?1:0,v}function am(h){return jn(this,h).get(h)}function sm(h){return jn(this,h).has(h)}function um(h,v){var D=jn(this,h),Y=D.size;return D.set(h,v),this.size+=D.size==Y?0:1,this}Bt.prototype.clear=om,Bt.prototype.delete=lm,Bt.prototype.get=am,Bt.prototype.has=sm,Bt.prototype.set=um;function Wn(h){var v=-1,D=h==null?0:h.length;for(this.__data__=new Bt;++v<D;)this.add(h[v])}function cm(h){return this.__data__.set(h,i),this}function dm(h){return this.__data__.has(h)}Wn.prototype.add=Wn.prototype.push=cm,Wn.prototype.has=dm;function It(h){var v=this.__data__=new ft(h);this.size=v.size}function pm(){this.__data__=new ft,this.size=0}function fm(h){var v=this.__data__,D=v.delete(h);return this.size=v.size,D}function gm(h){return this.__data__.get(h)}function hm(h){return this.__data__.has(h)}function mm(h,v){var D=this.__data__;if(D instanceof ft){var Y=D.__data__;if(!tn||Y.length<n-1)return Y.push([h,v]),this.size=++D.size,this;D=this.__data__=new Bt(Y)}return D.set(h,v),this.size=D.size,this}It.prototype.clear=pm,It.prototype.delete=fm,It.prototype.get=gm,It.prototype.has=hm,It.prototype.set=mm;function bm(h,v){var D=Jn(h),Y=!D&&Gm(h),Ie=!D&&!Y&&ui(h),ce=!D&&!Y&&!Ie&&Fa(h),Pe=D||Y||Ie||ce,Oe=Pe?wt(h.length,String):[],Le=Oe.length;for(var we in h)Q.call(h,we)&&!(Pe&&(we=="length"||Ie&&(we=="offset"||we=="parent")||ce&&(we=="buffer"||we=="byteLength"||we=="byteOffset")||km(we,Le)))&&Oe.push(we);return Oe}function Zn(h,v){for(var D=h.length;D--;)if(Ea(h[D][0],v))return D;return-1}function ym(h,v,D){var Y=v(h);return Jn(h)?Y:Ae(Y,D(h))}function rn(h){return h==null?h===void 0?O:I:Et&&Et in Object(h)?wm(h):Tm(h)}function xa(h){return on(h)&&rn(h)==a}function Aa(h,v,D,Y,Ie){return h===v?!0:h==null||v==null||!on(h)&&!on(v)?h!==h&&v!==v:Im(h,v,D,Y,Aa,Ie)}function Im(h,v,D,Y,Ie,ce){var Pe=Jn(h),Oe=Jn(v),Le=Pe?s:vt(h),we=Oe?s:vt(v);Le=Le==a?T:Le,we=we==a?T:we;var Ye=Le==T,et=we==T,Re=Le==we;if(Re&&ui(h)){if(!ui(v))return!1;Pe=!0,Ye=!1}if(Re&&!Ye)return ce||(ce=new It),Pe||Fa(h)?Sa(h,v,D,Y,Ie,ce):Am(h,v,Le,D,Y,Ie,ce);if(!(D&r)){var Ue=Ye&&Q.call(h,"__wrapped__"),qe=et&&Q.call(v,"__wrapped__");if(Ue||qe){var Ct=Ue?h.value():h,gt=qe?v.value():v;return ce||(ce=new It),Ie(Ct,gt,D,Y,ce)}}return Re?(ce||(ce=new It),Sm(h,v,D,Y,Ie,ce)):!1}function vm(h){if(!Pa(h)||Pm(h))return!1;var v=ka(h)?$e:m;return v.test(Pt(h))}function Cm(h){return on(h)&&Ba(h.length)&&!!te[rn(h)]}function xm(h){if(!Fm(h))return Wh(h);var v=[];for(var D in Object(h))Q.call(h,D)&&D!="constructor"&&v.push(D);return v}function Sa(h,v,D,Y,Ie,ce){var Pe=D&r,Oe=h.length,Le=v.length;if(Oe!=Le&&!(Pe&&Le>Oe))return!1;var we=ce.get(h);if(we&&ce.get(v))return we==v;var Ye=-1,et=!0,Re=D&o?new Wn:void 0;for(ce.set(h,v),ce.set(v,h);++Ye<Oe;){var Ue=h[Ye],qe=v[Ye];if(Y)var Ct=Pe?Y(qe,Ue,Ye,v,h,ce):Y(Ue,qe,Ye,h,v,ce);if(Ct!==void 0){if(Ct)continue;et=!1;break}if(Re){if(!Je(v,function(gt,Ft){if(!z(Re,Ft)&&(Ue===gt||Ie(Ue,gt,D,Y,ce)))return Re.push(Ft)})){et=!1;break}}else if(!(Ue===qe||Ie(Ue,qe,D,Y,ce))){et=!1;break}}return ce.delete(h),ce.delete(v),et}function Am(h,v,D,Y,Ie,ce,Pe){switch(D){case V:if(h.byteLength!=v.byteLength||h.byteOffset!=v.byteOffset)return!1;h=h.buffer,v=v.buffer;case N:return!(h.byteLength!=v.byteLength||!ce(new ze(h),new ze(v)));case c:case d:case C:return Ea(+h,+v);case f:return h.name==v.name&&h.message==v.message;case E:case M:return h==v+"";case b:var Oe=ie;case A:var Le=Y&r;if(Oe||(Oe=Se),h.size!=v.size&&!Le)return!1;var we=Pe.get(h);if(we)return we==v;Y|=o,Pe.set(h,v);var Ye=Sa(Oe(h),Oe(v),Y,Ie,ce,Pe);return Pe.delete(h),Ye;case F:if(si)return si.call(h)==si.call(v)}return!1}function Sm(h,v,D,Y,Ie,ce){var Pe=D&r,Oe=wa(h),Le=Oe.length,we=wa(v),Ye=we.length;if(Le!=Ye&&!Pe)return!1;for(var et=Le;et--;){var Re=Oe[et];if(!(Pe?Re in v:Q.call(v,Re)))return!1}var Ue=ce.get(h);if(Ue&&ce.get(v))return Ue==v;var qe=!0;ce.set(h,v),ce.set(v,h);for(var Ct=Pe;++et<Le;){Re=Oe[et];var gt=h[Re],Ft=v[Re];if(Y)var Ta=Pe?Y(Ft,gt,Re,v,h,ce):Y(gt,Ft,Re,h,v,ce);if(!(Ta===void 0?gt===Ft||Ie(gt,Ft,D,Y,ce):Ta)){qe=!1;break}Ct||(Ct=Re=="constructor")}if(qe&&!Ct){var Yn=h.constructor,_n=v.constructor;Yn!=_n&&"constructor"in h&&"constructor"in v&&!(typeof Yn=="function"&&Yn instanceof Yn&&typeof _n=="function"&&_n instanceof _n)&&(qe=!1)}return ce.delete(h),ce.delete(v),qe}function wa(h){return ym(h,Nm,Em)}function jn(h,v){var D=h.__data__;return Bm(v)?D[typeof v=="string"?"string":"hash"]:D.map}function Rt(h,v){var D=Z(h,v);return vm(D)?D:void 0}function wm(h){var v=Q.call(h,Et),D=h[Et];try{h[Et]=void 0;var Y=!0}catch{}var Ie=lt.call(h);return Y&&(v?h[Et]=D:delete h[Et]),Ie}var Em=va?function(h){return h==null?[]:(h=Object(h),De(va(h),function(v){return pt.call(h,v)}))}:Dm,vt=rn;(ii&&vt(new ii(new ArrayBuffer(1)))!=V||tn&&vt(new tn)!=b||oi&&vt(oi.resolve())!=S||li&&vt(new li)!=A||ai&&vt(new ai)!=w)&&(vt=function(h){var v=rn(h),D=v==T?h.constructor:void 0,Y=D?Pt(D):"";if(Y)switch(Y){case Zh:return V;case jh:return b;case Jh:return S;case Yh:return A;case _h:return w}return v});function km(h,v){return v=v??l,!!v&&(typeof h=="number"||pe.test(h))&&h>-1&&h%1==0&&h<v}function Bm(h){var v=typeof h;return v=="string"||v=="number"||v=="symbol"||v=="boolean"?h!=="__proto__":h===null}function Pm(h){return!!me&&me in h}function Fm(h){var v=h&&h.constructor,D=typeof v=="function"&&v.prototype||R;return h===D}function Tm(h){return lt.call(h)}function Pt(h){if(h!=null){try{return j.call(h)}catch{}try{return h+""}catch{}}return""}function Ea(h,v){return h===v||h!==h&&v!==v}var Gm=xa(function(){return arguments}())?xa:function(h){return on(h)&&Q.call(h,"callee")&&!pt.call(h,"callee")},Jn=Array.isArray;function Vm(h){return h!=null&&Ba(h.length)&&!ka(h)}var ui=Xh||Lm;function Om(h,v){return Aa(h,v)}function ka(h){if(!Pa(h))return!1;var v=rn(h);return v==p||v==y||v==u||v==k}function Ba(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=l}function Pa(h){var v=typeof h;return h!=null&&(v=="object"||v=="function")}function on(h){return h!=null&&typeof h=="object"}var Fa=Be?zt(Be):Cm;function Nm(h){return Vm(h)?bm(h):xm(h)}function Dm(){return[]}function Lm(){return!1}e.exports=Om}(In,In.exports);var gp=In.exports;const Mo=tr(gp),zo=x.createContext(void 0),ut=()=>{const e=x.useContext(zo);if(!e)throw new Error("Must be used inside FrontendClientProvider");return e},hp=({children:e,client:t})=>{const n=new st.QueryClient({defaultOptions:{queries:{staleTime:36e5,refetchOnWindowFocus:!1}}});return B.jsx(st.QueryClientProvider,{client:n,children:B.jsx(zo.Provider,{value:t,children:e})})};function Ro(e){return typeof e=="object"&&e&&"__lv"in e?e.__lv.value:e}function mp(e){if(typeof e=="object"&&e&&"selectedOptions"in e&&Array.isArray(e.selectedOptions)){const t=e.selectedOptions,n=[];for(const i of t)if(typeof i=="object"&&i&&"emitValue"in i){const r=i.emitValue;typeof r=="object"&&r&&"__lv"in r?n.push(r.__lv.value):n.push(r)}else return[];return n}return e&&typeof e=="object"&&Array.isArray(e.__lv)?e.__lv:Array.isArray(e)?e:[]}function bp(e){const t=mp(e.value);if(!e.prop.default&&typeof t>"u")return["required"];if(!e.prop.default&&Array.isArray(t)&&!t.length)return["empty array"]}function yp(e){const t=Ro(e.value);if(t==null||typeof t>"u")return["required"]}function Ip(e){const{prop:t,value:n}=e,i=Ro(n);if(!t.default&&(i==null||typeof i>"u"))return["required"];const r=typeof i=="number"?i:parseInt(String(i));if(Number.isNaN(r))return["not a number"];const o=[];return typeof t.min=="number"&&r<t.min&&o.push("number too small"),typeof t.max=="number"&&r>t.max&&o.push("number too big"),o}function vp(e){const{prop:t,value:n}=e;if(!t.default&&(n==null||typeof n>"u"))return["required"]}function Cp(e){const t=e.authType==="oauth",n=JSON.parse(e.customFieldsJson||"[]");if("extracted_custom_fields_names"in e&&e.extracted_custom_fields_names){const i=(e.extracted_custom_fields_names||[]).map(r=>({name:r}));n.push(...i)}return n.map(i=>({...i,optional:i.optional||t}))}function xp(e){const{app:t,value:n}=e;if(!t)return["app field not registered"];if(!t.authType)return;if(!n)return["no app configured"];if(typeof n!="object")return["not an app"];const i=n;if("authProvisionId"in i&&!i.authProvisionId){const r=[];if(t.authType==="oauth"&&!i.oauth_access_token&&r.push("missing oauth token"),t.authType==="oauth"||t.authType==="keys"){const o=Cp(t),l=i;for(const a of o)!a.optional&&!l[a.name]&&r.push(`missing custom field: ${a.name}`)}return r}}const Ap=(e,t)=>{if(e!==void 0&&e!=="")return t!==void 0&&t!==""?{resolvedId:e,warningType:"both"}:{resolvedId:e};if(t!==void 0&&t!=="")return{resolvedId:t,warningType:"deprecated"};throw new Error("Either externalUserId or userId must be provided")};function it(e,t){return e.type===t}function Gr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&"value"in e&&(typeof e.value=="string"||typeof e.value=="number")}function Ne(e){if(e==null)return{label:"",value:""};if(typeof e!="object")return{label:String(e),value:e};if("__lv"in e)return Ne(e.__lv);if("lv"in e)return Ne(e.lv);if("value"in e){const{label:t,value:n}=e;return{label:String(t||n),value:n}}return{label:String(e),value:e}}function Vr(e){return!e||typeof e!="object"||!("__lv"in e)?!1:e.__lv!=null}function Ho(e){return!Array.isArray(e)||e.length===0?!1:e.every(t=>Vr(t))}function Sp(e){return Vr(e)||Ho(e)}const Ut=["$.service.db","$.interface.http","$.interface.apphook","$.interface.timer","dir"],Or=x.createContext(void 0),qt=()=>{const e=x.useContext(Or);if(!e)throw new Error("Must be used inside provider");return e},Xo=({children:e,props:t})=>{const n=ut(),i=x.useId(),{component:r,configuredProps:o,propNames:l,externalUserId:a,userId:s,sdkResponse:u,enableDebugging:c,oauthAppConfig:d}=t,{resolvedId:f,warningType:p}=x.useMemo(()=>Ap(a,s),[a,s]);x.useEffect(()=>{process.env.NODE_ENV!=="production"&&(p==="both"?console.warn("[connect-react] Both externalUserId and userId provided. Using externalUserId. Please remove userId to avoid this warning."):p==="deprecated"&&console.warn("[connect-react] userId is deprecated. Please use externalUserId instead."))},[p]);const y=r.key,[b,C]=x.useState(0),[I,T]=x.useState({}),[S,k]=x.useState(!1),[E,A]=x.useState({}),[M,F]=x.useState([]),[O,w]=x.useState({});x.useEffect(()=>{w({})},[r.key]);const N=z=>O[z.name];let V=o||{};const[H,q]=x.useState(V),W=t.onUpdateConfiguredProps||q;t.onUpdateConfiguredProps||(V=H);const[J,le]=x.useState(),se=x.useRef();J&&(se.current=J);const[G,g]=x.useState(),ue={externalUserId:f,id:y,configuredProps:V,dynamicPropsId:J==null?void 0:J.id},_={externalUserId:f,id:y,dynamicPropsId:J==null?void 0:J.id,reloadTriggerProps:Object.fromEntries(Object.entries(V).filter(([z])=>{const Z=((J==null?void 0:J.configurableProps)||t.component.configurableProps||[]).find(ie=>ie.name===z);return Z&&"reloadProps"in Z&&Z.reloadProps}))},{isFetching:m}=st.useQuery({queryKey:["dynamicProps",_],queryFn:async()=>{var z;try{const Z=await n.components.reloadProps(ue),{dynamicProps:ie,observations:ee,errors:Se}=Z,xe=ie;return ee&&ee.filter(P=>P.k==="error").length>0?wt(ee):wt(Se),g(void 0),ie&&xe&&((z=t.onUpdateDynamicProps)==null||z.call(t,ie),le(xe)),[]}finally{g(void 0)}},enabled:G!=null,refetchOnMount:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1,staleTime:1/0}),[pe,te]=x.useState([]);x.useEffect(()=>{Ae()},[V]);const ne=x.useMemo(()=>{const z=se.current||J;let Z=(z==null?void 0:z.configurableProps)||t.component.configurableProps||[];if(l!=null&&l.length){const ie=[];for(const ee of Z)l.findIndex(Se=>ee.name===Se)>=0&&ie.push(ee);Z=ie}return G!=null&&m&&(Z=Array.isArray(Z)?Z.slice(0,G+1):Z),Z},[J==null?void 0:J.configurableProps,t.component.configurableProps,l,G,m]),ke=(z,Z)=>{const ie=[];if(z.optional||z.hidden||z.disabled||Ut.includes(z.type))return[];if(it(z,"app")){const ee=I[z.name];if(ee){const Se="app"in ee.extra?ee.extra.app:void 0;ie.push(...xp({value:Z,app:Se})??[])}else ie.push("field not registered")}else it(z,"boolean")?ie.push(...yp({value:Z})??[]):it(z,"integer")?ie.push(...Ip({prop:z,value:Z})??[]):it(z,"string")?ie.push(...vp({prop:z,value:Z})??[]):it(z,"string[]")&&ie.push(...bp({prop:z,value:Z})??[]);return ie},fe=z=>{let Z;for(let ie=0;ie<ne.length;ie++){const ee=ne[ie];if(ee.hidden||ee.optional&&!N(ee))continue;if(z[ee.name]===void 0&&Z==null&&(ee.type==="app"||ee.remoteOptions)){Z=ie;break}}C(Z)},Ge=z=>{W(z),fe(z),de(z)},de=z=>{const Z={};for(let ie=0;ie<ne.length;ie++){const ee=ne[ie],Se=z[ee.name],xe=ke(ee,Se);xe.length&&(Z[ee.name]=xe)}A(Z)},ve=(z,Z)=>z.type!=="integer"||typeof Z=="number"||Sp(Z)?Z:void 0;x.useEffect(()=>{fe(V)},[r.key,ne,O]),x.useEffect(()=>{fe(V)},[V,ne,O]),x.useEffect(()=>{de(V)},[V,G,b]),x.useEffect(()=>{wt(u)},[u]),x.useEffect(()=>{var Z,ie;const z={};for(const ee of ne){if(ee.hidden||Ut.includes(ee.type))continue;if(ee.optional&&!N(ee)){const xe=V[ee.name],P=se.current||J,X=(((Z=P==null?void 0:P.configurableProps)==null?void 0:Z.some(j=>j.name===ee.name))??!1)&&!((ie=t.component.configurableProps)!=null&&ie.some(j=>j.name===ee.name));if(xe!==void 0){z[ee.name]=xe;continue}if(X)continue;continue}const Se=V[ee.name];if(Se===void 0)"default"in ee&&ee.default!=null&&(z[ee.name]=ee.default);else{const xe=ve(ee,Se);xe===void 0?delete z[ee.name]:z[ee.name]=xe}}Mo(z,V)||Ge(z)},[ne,O]);const[Ce,Ve]=x.useState(f);x.useEffect(()=>{Ce!==f&&(Ge({}),Ve(f))},[f]);const Be=(z,Z)=>{const ie=ne[z],ee={...V};Z===void 0?delete ee[ie.name]:ee[ie.name]=Z,W(ee),ie.reloadProps&&g(z);const Se=ke(ie,Z),xe={...E};Se.length?xe[ie.name]=Se:delete xe[ie.name],A(xe)},De=(z,Z)=>{const ie={...O};Z?ie[z.name]=!0:delete ie[z.name];const ee=ne.findIndex(Se=>Se.name===z.name);Z?(o==null?void 0:o[z.name])!==void 0?Be(ee,o[z.name]):"default"in z&&z.default!=null&&Be(ee,z.default):Be(ee,void 0),w(ie)};x.useEffect(()=>{const z=[];for(const Z of ne){if(!Z.optional||N(Z))continue;const ie=V[Z.name],ee=o==null?void 0:o[Z.name];ie===void 0&&ee===void 0||z.push(Z)}z.length&&z.forEach(Z=>De(Z,!0))},[r.key,ne,V,O,o]);const Ae=()=>{const z=[];for(const Z of ne){if(!Z||Z.optional||Z.hidden||Ut.includes(Z.type))continue;const ie=V[Z.name];ke(Z,ie).length&&z.push(Z.name)}z&&pe&&Mo(z,pe)||te(z)},Je=z=>{T(Z=>(Z[z.prop.name]=z,Z)),Ae()},wt=z=>{if(!z)return;let Z=[...M];const ie=(X,j)=>{try{const Q=JSON.parse(X),me={name:Q.name,message:Q.message};me.name&&me.message&&j.push(me)}catch{}},ee=(X,j)=>{const Q={name:X.name,message:X.message};Q.name&&Q.message&&j.push(Q)},Se=(X,j)=>{if(!(!("err"in X)||!X.err)&&X.err.name&&X.err.message){const Q={name:X.err.name,message:X.err.message};j.push(Q)}},xe=(X,j)=>{if(Array.isArray(X)&&X.length>0)for(let Q=0;Q<X.length;Q++)X[Q].k==="error"&&Se(X[Q],j)},P=(X,j)=>{j.push({name:X.error,message:JSON.stringify(X.details)})},R=(X,j)=>{var Q;try{const me=(Q=JSON.parse(X.message))==null?void 0:Q.data;me&&"os"in me?xe(me.os,j):me&&"observations"in me?xe(me.observations,j):me&&"error"in me&&"details"in me&&P(me,j)}catch{}};if(Array.isArray(z)&&z.length>0)for(let X=0;X<z.length;X++){const j=z[X];typeof j=="string"?ie(j,Z):typeof j=="object"&&"name"in j&&"message"in j&&"stack"in j?ee(j,Z):typeof j=="object"&&j.k==="error"&&Se(j,Z)}else typeof z=="object"&&z&&"observations"in z?xe(z.observations,Z):typeof z=="object"&&z&&"os"in z?xe(z.os,Z):typeof z=="object"&&"message"in z?R(z,Z):Z=[];F(Z)},zt={id:i,isValid:!Object.keys(E).length,props:t,externalUserId:f,userId:f,component:r,configurableProps:ne,configuredProps:V,dynamicProps:J,dynamicPropsQueryIsFetching:m,errors:E,fields:I,optionalPropIsEnabled:N,optionalPropSetEnabled:De,propsNeedConfiguring:pe,queryDisabledIdx:b,registerField:Je,setConfiguredProp:Be,setSubmitting:k,submitting:S,sdkErrors:M,enableDebugging:c,oauthAppConfig:d};return B.jsx(Or.Provider,{value:zt,children:e})};function St(e){"@babel/helpers - typeof";return St=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},St(e)}function wp(e,t){if(St(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(St(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wo(e){var t=wp(e,"string");return St(t)=="symbol"?t:t+""}function Qt(e,t,n){return(t=Wo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zo(Object(n),!0).forEach(function(i){Qt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zo(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Ep(e){if(Array.isArray(e))return e}function kp(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,r,o,l,a=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(a.push(i.value),a.length!==t);s=!0);}catch(c){u=!0,r=c}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw r}}return a}}function Nr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function jo(e,t){if(e){if(typeof e=="string")return Nr(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nr(e,t):void 0}}function Bp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
16
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ct(e,t){return Ep(e)||kp(e,t)||jo(e,t)||Bp()}function Pp(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}function ot(e,t){if(e==null)return{};var n,i,r=Pp(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Fp=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Jo(e){var t=e.defaultInputValue,n=t===void 0?"":t,i=e.defaultMenuIsOpen,r=i===void 0?!1:i,o=e.defaultValue,l=o===void 0?null:o,a=e.inputValue,s=e.menuIsOpen,u=e.onChange,c=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,p=e.value,
|
|
17
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dt(e){return Lp(e)||Mp(e)||jo(e)||zp()}function Rp(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const Hp=Math.min,Xp=Math.max,Cn=Math.round,xn=Math.floor,An=e=>({x:e,y:e});function Wp(e){const{x:t,y:n,width:i,height:r}=e;return{width:i,height:r,top:n,left:t,right:t+i,bottom:n+r,x:t,y:n}}function Sn(){return typeof window<"u"}function Uo(e){return Qo(e)?(e.nodeName||"").toLowerCase():"#document"}function dt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qo(e){var t;return(t=(Qo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Qo(e){return Sn()?e instanceof Node||e instanceof dt(e).Node:!1}function Zp(e){return Sn()?e instanceof Element||e instanceof dt(e).Element:!1}function Lr(e){return Sn()?e instanceof HTMLElement||e instanceof dt(e).HTMLElement:!1}function $o(e){return!Sn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof dt(e).ShadowRoot}const jp=new Set(["inline","contents"]);function Ko(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=Mr(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!jp.has(r)}function Jp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Yp=new Set(["html","body","#document"]);function _p(e){return Yp.has(Uo(e))}function Mr(e){return dt(e).getComputedStyle(e)}function Up(e){if(Uo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$o(e)&&e.host||qo(e);return $o(t)?t.host:t}function el(e){const t=Up(e);return _p(t)?e.ownerDocument?e.ownerDocument.body:e.body:Lr(t)&&Ko(t)?t:el(t)}function wn(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=el(e),o=r===((i=e.ownerDocument)==null?void 0:i.body),l=dt(r);if(o){const a=zr(l);return t.concat(l,l.visualViewport||[],Ko(r)?r:[],a&&n?wn(a):[])}return t.concat(r,wn(r,[],n))}function zr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qp(e){const t=Mr(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=Lr(e),o=r?e.offsetWidth:n,l=r?e.offsetHeight:i,a=Cn(n)!==o||Cn(i)!==l;return a&&(n=o,i=l),{width:n,height:i,$:a}}function Rr(e){return Zp(e)?e:e.contextElement}function tl(e){const t=Rr(e);if(!Lr(t))return An(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:o}=qp(t);let l=(o?Cn(n.width):n.width)/i,a=(o?Cn(n.height):n.height)/r;return(!l||!Number.isFinite(l))&&(l=1),(!a||!Number.isFinite(a))&&(a=1),{x:l,y:a}}const Qp=An(0);function $p(e){const t=dt(e);return!Jp()||!t.visualViewport?Qp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Kp(e,t,n){return!1}function nl(e,t,n,i){t===void 0&&(t=!1);const r=e.getBoundingClientRect(),o=Rr(e);let l=An(1);t&&(l=tl(e));const a=Kp()?$p(o):An(0);let s=(r.left+a.x)/l.x,u=(r.top+a.y)/l.y,c=r.width/l.x,d=r.height/l.y;if(o){const f=dt(o),p=i;let y=f,b=zr(y);for(;b&&i&&p!==y;){const C=tl(b),I=b.getBoundingClientRect(),T=Mr(b),S=I.left+(b.clientLeft+parseFloat(T.paddingLeft))*C.x,k=I.top+(b.clientTop+parseFloat(T.paddingTop))*C.y;s*=C.x,u*=C.y,c*=C.x,d*=C.y,s+=S,u+=k,y=dt(b),b=zr(y)}}return Wp({width:c,height:d,x:s,y:u})}function rl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ef(e,t){let n=null,i;const r=qo(e);function o(){var a;clearTimeout(i),(a=n)==null||a.disconnect(),n=null}function l(a,s){a===void 0&&(a=!1),s===void 0&&(s=1),o();const u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(a||t(),!f||!p)return;const y=xn(d),b=xn(r.clientWidth-(c+f)),C=xn(r.clientHeight-(d+p)),I=xn(c),S={rootMargin:-y+"px "+-b+"px "+-C+"px "+-I+"px",threshold:Xp(0,Hp(1,s))||1};let k=!0;function E(A){const M=A[0].intersectionRatio;if(M!==s){if(!k)return l();M?l(!1,M):i=setTimeout(()=>{l(!1,1e-7)},1e3)}M===1&&!rl(u,e.getBoundingClientRect())&&l(),k=!1}try{n=new IntersectionObserver(E,{...S,root:r.ownerDocument})}catch{n=new IntersectionObserver(E,S)}n.observe(e)}return l(!0),o}function tf(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:s=!1}=i,u=Rr(e),c=r||o?[...u?wn(u):[],...wn(t)]:[];c.forEach(I=>{r&&I.addEventListener("scroll",n,{passive:!0}),o&&I.addEventListener("resize",n)});const d=u&&a?ef(u,n):null;let f=-1,p=null;l&&(p=new ResizeObserver(I=>{let[T]=I;T&&T.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var S;(S=p)==null||S.observe(t)})),n()}),u&&!s&&p.observe(u),p.observe(t));let y,b=s?nl(e):null;s&&C();function C(){const I=nl(e);b&&!rl(b,I)&&n(),b=I,y=requestAnimationFrame(C)}return n(),()=>{var I;c.forEach(T=>{r&&T.removeEventListener("scroll",n),o&&T.removeEventListener("resize",n)}),d==null||d(),(I=p)==null||I.disconnect(),p=null,s&&cancelAnimationFrame(y)}}var Hr=x.useLayoutEffect,nf=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],En=function(){};function rf(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function of(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];var o=[].concat(i);if(t&&e)for(var l in t)t.hasOwnProperty(l)&&t[l]&&o.push("".concat(rf(e,l)));return o.filter(function(a){return a}).map(function(a){return String(a).trim()}).join(" ")}var kn=function(t){return gf(t)?t.filter(Boolean):St(t)==="object"&&t!==null?[t]:[]},il=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=ot(t,nf);return K({},n)},Ee=function(t,n,i){var r=t.cx,o=t.getStyles,l=t.getClassNames,a=t.className;return{css:o(n,t),className:r(i??{},l(n,t),a)}};function Bn(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function lf(e){return Bn(e)?window.innerHeight:e.clientHeight}function ol(e){return Bn(e)?window.pageYOffset:e.scrollTop}function Pn(e,t){if(Bn(e)){window.scrollTo(0,t);return}e.scrollTop=t}function af(e){var t=getComputedStyle(e),n=t.position==="absolute",i=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),!(n&&t.position==="static")&&i.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}function sf(e,t,n,i){return n*((e=e/i-1)*e*e+1)+t}function Fn(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:En,r=ol(e),o=t-r,l=10,a=0;function s(){a+=l;var u=sf(a,r,o,n);Pn(e,u),a<n?window.requestAnimationFrame(s):i(e)}s()}function ll(e,t){var n=e.getBoundingClientRect(),i=t.getBoundingClientRect(),r=t.offsetHeight/3;i.bottom+r>n.bottom?Pn(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):i.top-r<n.top&&Pn(e,Math.max(t.offsetTop-r,0))}function uf(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function al(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function cf(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var sl=!1,df={get passive(){return sl=!0}},Tn=typeof window<"u"?window:{};Tn.addEventListener&&Tn.removeEventListener&&(Tn.addEventListener("p",En,df),Tn.removeEventListener("p",En,!1));var pf=sl;function ff(e){return e!=null}function gf(e){return Array.isArray(e)}function $t(e,t,n){return e?t:n}function qm(e){return e}function Qm(e){return e}var hf=function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];var o=Object.entries(t).filter(function(l){var a=ct(l,1),s=a[0];return!i.includes(s)});return o.reduce(function(l,a){var s=ct(a,2),u=s[0],c=s[1];return l[u]=c,l},{})},mf=["children","innerProps"],bf=["children","innerProps"];function yf(e){var t=e.maxHeight,n=e.menuEl,i=e.minHeight,r=e.placement,o=e.shouldScroll,l=e.isFixedPosition,a=e.controlHeight,s=af(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=s.getBoundingClientRect(),d=c.height,f=n.getBoundingClientRect(),p=f.bottom,y=f.height,b=f.top,C=n.offsetParent.getBoundingClientRect(),I=C.top,T=l?window.innerHeight:lf(s),S=ol(s),k=parseInt(getComputedStyle(n).marginBottom,10),E=parseInt(getComputedStyle(n).marginTop,10),A=I-E,M=T-b,F=A+S,O=d-S-b,w=p-T+S+k,N=S+b-E,V=160;switch(r){case"auto":case"bottom":if(M>=y)return{placement:"bottom",maxHeight:t};if(O>=y&&!l)return o&&Fn(s,w,V),{placement:"bottom",maxHeight:t};if(!l&&O>=i||l&&M>=i){o&&Fn(s,w,V);var H=l?M-k:O-k;return{placement:"bottom",maxHeight:H}}if(r==="auto"||l){var q=t,W=l?A:F;return W>=i&&(q=Math.min(W-k-a,t)),{placement:"top",maxHeight:q}}if(r==="bottom")return o&&Pn(s,w),{placement:"bottom",maxHeight:t};break;case"top":if(A>=y)return{placement:"top",maxHeight:t};if(F>=y&&!l)return o&&Fn(s,N,V),{placement:"top",maxHeight:t};if(!l&&F>=i||l&&A>=i){var J=t;return(!l&&F>=i||l&&A>=i)&&(J=l?A-E:F-E),o&&Fn(s,N,V),{placement:"top",maxHeight:J}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return u}function If(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var ul=function(t){return t==="auto"?"bottom":t},vf=function(t,n){var i,r=t.placement,o=t.theme,l=o.borderRadius,a=o.spacing,s=o.colors;return K((i={label:"menu"},Qt(i,If(r),"100%"),Qt(i,"position","absolute"),Qt(i,"width","100%"),Qt(i,"zIndex",1),i),n?{}:{backgroundColor:s.neutral0,borderRadius:l,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},cl=x.createContext(null),Cf=function(t){var n=t.children,i=t.minMenuHeight,r=t.maxMenuHeight,o=t.menuPlacement,l=t.menuPosition,a=t.menuShouldScrollIntoView,s=t.theme,u=x.useContext(cl)||{},c=u.setPortalPlacement,d=x.useRef(null),f=x.useState(r),p=ct(f,2),y=p[0],b=p[1],C=x.useState(null),I=ct(C,2),T=I[0],S=I[1],k=s.spacing.controlHeight;return Hr(function(){var E=d.current;if(E){var A=l==="fixed",M=a&&!A,F=yf({maxHeight:r,menuEl:E,minHeight:i,placement:o,shouldScroll:M,isFixedPosition:A,controlHeight:k});b(F.maxHeight),S(F.placement),c==null||c(F.placement)}},[r,o,l,a,i,c,k]),n({ref:d,placerProps:K(K({},t),{},{placement:T||ul(o),maxHeight:y})})},xf=function(t){var n=t.children,i=t.innerRef,r=t.innerProps;return U.jsx("div",re({},Ee(t,"menu",{menu:!0}),{ref:i},r),n)},Af=xf,Sf=function(t,n){var i=t.maxHeight,r=t.theme.spacing.baseUnit;return K({maxHeight:i,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:r,paddingTop:r})},wf=function(t){var n=t.children,i=t.innerProps,r=t.innerRef,o=t.isMulti;return U.jsx("div",re({},Ee(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},i),n)},dl=function(t,n){var i=t.theme,r=i.spacing.baseUnit,o=i.colors;return K({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px")})},Ef=dl,kf=dl,Bf=function(t){var n=t.children,i=n===void 0?"No options":n,r=t.innerProps,o=ot(t,mf);return U.jsx("div",re({},Ee(K(K({},o),{},{children:i,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),i)},Pf=function(t){var n=t.children,i=n===void 0?"Loading...":n,r=t.innerProps,o=ot(t,bf);return U.jsx("div",re({},Ee(K(K({},o),{},{children:i,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),i)},Ff=function(t){var n=t.rect,i=t.offset,r=t.position;return{left:n.left,position:r,top:i,width:n.width,zIndex:1}},Tf=function(t){var n=t.appendTo,i=t.children,r=t.controlElement,o=t.innerProps,l=t.menuPlacement,a=t.menuPosition,s=x.useRef(null),u=x.useRef(null),c=x.useState(ul(l)),d=ct(c,2),f=d[0],p=d[1],y=x.useMemo(function(){return{setPortalPlacement:p}},[]),b=x.useState(null),C=ct(b,2),I=C[0],T=C[1],S=x.useCallback(function(){if(r){var M=uf(r),F=a==="fixed"?0:window.pageYOffset,O=M[f]+F;(O!==(I==null?void 0:I.offset)||M.left!==(I==null?void 0:I.rect.left)||M.width!==(I==null?void 0:I.rect.width))&&T({offset:O,rect:M})}},[r,a,f,I==null?void 0:I.offset,I==null?void 0:I.rect.left,I==null?void 0:I.rect.width]);Hr(function(){S()},[S]);var k=x.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),r&&s.current&&(u.current=tf(r,s.current,S,{elementResize:"ResizeObserver"in window}))},[r,S]);Hr(function(){k()},[k]);var E=x.useCallback(function(M){s.current=M,k()},[k]);if(!n&&a!=="fixed"||!I)return null;var A=U.jsx("div",re({ref:E},Ee(K(K({},t),{},{offset:I.offset,position:a,rect:I.rect}),"menuPortal",{"menu-portal":!0}),o),i);return U.jsx(cl.Provider,{value:y},n?Ga.createPortal(A,n):A)},Gf=function(t){var n=t.isDisabled,i=t.isRtl;return{label:"container",direction:i?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},Vf=function(t){var n=t.children,i=t.innerProps,r=t.isDisabled,o=t.isRtl;return U.jsx("div",re({},Ee(t,"container",{"--is-disabled":r,"--is-rtl":o}),i),n)},Of=function(t,n){var i=t.theme.spacing,r=t.isMulti,o=t.hasValue,l=t.selectProps.controlShouldRenderValue;return K({alignItems:"center",display:r&&o&&l?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(i.baseUnit/2,"px ").concat(i.baseUnit*2,"px")})},Nf=function(t){var n=t.children,i=t.innerProps,r=t.isMulti,o=t.hasValue;return U.jsx("div",re({},Ee(t,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),i),n)},Df=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Lf=function(t){var n=t.children,i=t.innerProps;return U.jsx("div",re({},Ee(t,"indicatorsContainer",{indicators:!0}),i),n)},pl,Mf=["size"],zf=["innerProps","isRtl","size"];function Rf(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Hf=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcn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W4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:Rf},fl=function(t){var n=t.size,i=ot(t,Mf);return U.jsx("svg",re({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Hf},i))},Xr=function(t){return U.jsx(fl,re({size:20},t),U.jsx("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},gl=function(t){return U.jsx(fl,re({size:20},t),U.jsx("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},hl=function(t,n){var i=t.isFocused,r=t.theme,o=r.spacing.baseUnit,l=r.colors;return K({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:i?l.neutral60:l.neutral20,padding:o*2,":hover":{color:i?l.neutral80:l.neutral40}})},Xf=hl,Wf=function(t){var n=t.children,i=t.innerProps;return U.jsx("div",re({},Ee(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),i),n||U.jsx(gl,null))},Zf=hl,jf=function(t){var n=t.children,i=t.innerProps;return U.jsx("div",re({},Ee(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),i),n||U.jsx(Xr,null))},Jf=function(t,n){var i=t.isDisabled,r=t.theme,o=r.spacing.baseUnit,l=r.colors;return K({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:i?l.neutral10:l.neutral20,marginBottom:o*2,marginTop:o*2})},Yf=function(t){var n=t.innerProps;return U.jsx("span",re({},n,Ee(t,"indicatorSeparator",{"indicator-separator":!0})))},_f=U.keyframes(pl||(pl=Rp([`
|
|
15
|
+
`},r),o}function Rd(e,t){return e&&"run"in e?async function(n,i){const r=xo(n,{file:i,...t});await e.run(r,i)}:function(n,i){return xo(n,{file:i,...e||t})}}function Ao(e){if(e)throw e}var mn=Object.prototype.hasOwnProperty,So=Object.prototype.toString,wo=Object.defineProperty,Eo=Object.getOwnPropertyDescriptor,ko=function(t){return typeof Array.isArray=="function"?Array.isArray(t):So.call(t)==="[object Array]"},Bo=function(t){if(!t||So.call(t)!=="[object Object]")return!1;var n=mn.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&mn.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!i)return!1;var r;for(r in t);return typeof r>"u"||mn.call(t,r)},Po=function(t,n){wo&&n.name==="__proto__"?wo(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Fo=function(t,n){if(n==="__proto__")if(mn.call(t,n)){if(Eo)return Eo(t,n).value}else return;return t[n]},Hd=function e(){var t,n,i,r,o,l,a=arguments[0],s=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},s=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});s<u;++s)if(t=arguments[s],t!=null)for(n in t)i=Fo(a,n),r=Fo(t,n),a!==r&&(c&&r&&(Bo(r)||(o=ko(r)))?(o?(o=!1,l=i&&ko(i)?i:[]):l=i&&Bo(i)?i:{},Po(a,{name:n,newValue:e(c,l,r)})):typeof r<"u"&&Po(a,{name:n,newValue:r}));return a};const xr=tr(Hd);function Ar(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Xd(){const e=[],t={run:n,use:i};return t;function n(...r){let o=-1;const l=r.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...r);function a(s,...u){const c=e[++o];let d=-1;if(s){l(s);return}for(;++d<r.length;)(u[d]===null||u[d]===void 0)&&(u[d]=r[d]);r=u,c?Wd(c,a)(...u):l(null,...u)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}}function Wd(e,t){let n;return i;function i(...l){const a=e.length>l.length;let s;a&&l.push(r);try{s=e.apply(this,l)}catch(u){const c=u;if(a&&n)throw c;return r(c)}a||(s&&s.then&&typeof s.then=="function"?s.then(o,r):s instanceof Error?r(s):o(s))}function r(l,...a){n||(n=!0,t(l,...a))}function o(l){r(null,l)}}const rt={basename:Zd,dirname:jd,extname:Jd,join:Yd,sep:"/"};function Zd(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');_t(e);let n=0,i=-1,r=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(o){n=r+1;break}}else i<0&&(o=!0,i=r+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let l=-1,a=t.length-1;for(;r--;)if(e.codePointAt(r)===47){if(o){n=r+1;break}}else l<0&&(o=!0,l=r+1),a>-1&&(e.codePointAt(r)===t.codePointAt(a--)?a<0&&(i=r):(a=-1,i=l));return n===i?i=l:i<0&&(i=e.length),e.slice(n,i)}function jd(e){if(_t(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Jd(e){_t(e);let t=e.length,n=-1,i=0,r=-1,o=0,l;for(;t--;){const a=e.codePointAt(t);if(a===47){if(l){i=t+1;break}continue}n<0&&(l=!0,n=t+1),a===46?r<0?r=t:o!==1&&(o=1):r>-1&&(o=-1)}return r<0||n<0||o===0||o===1&&r===n-1&&r===i+1?"":e.slice(r,n)}function Yd(...e){let t=-1,n;for(;++t<e.length;)_t(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":_d(n)}function _d(e){_t(e);const t=e.codePointAt(0)===47;let n=Ud(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Ud(e,t){let n="",i=0,r=-1,o=0,l=-1,a,s;for(;++l<=e.length;){if(l<e.length)a=e.codePointAt(l);else{if(a===47)break;a=47}if(a===47){if(!(r===l-1||o===1))if(r!==l-1&&o===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",i=0):(n=n.slice(0,s),i=n.length-1-n.lastIndexOf("/")),r=l,o=0;continue}}else if(n.length>0){n="",i=0,r=l,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(r+1,l):n=e.slice(r+1,l),i=l-r-1;r=l,o=0}else a===46&&o>-1?o++:o=-1}return n}function _t(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const qd={cwd:Qd};function Qd(){return"/"}function Sr(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function $d(e){if(typeof e=="string")e=new URL(e);else if(!Sr(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(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Kd(e)}function Kd(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const r=new TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(t)}const wr=["history","path","basename","stem","extname","dirname"];class To{constructor(t){let n;t?Sr(t)?n={path:t}:typeof t=="string"||ep(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":qd.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<wr.length;){const o=wr[i];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let r;for(r in n)wr.includes(r)||(this[r]=n[r])}get basename(){return typeof this.path=="string"?rt.basename(this.path):void 0}set basename(t){kr(t,"basename"),Er(t,"basename"),this.path=rt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?rt.dirname(this.path):void 0}set dirname(t){Go(this.basename,"dirname"),this.path=rt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?rt.extname(this.path):void 0}set extname(t){if(Er(t,"extname"),Go(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=rt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Sr(t)&&(t=$d(t)),kr(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?rt.basename(this.path,this.extname):void 0}set stem(t){kr(t,"stem"),Er(t,"stem"),this.path=rt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const r=this.message(t,n,i);throw r.fatal=!0,r}info(t,n,i){const r=this.message(t,n,i);return r.fatal=void 0,r}message(t,n,i){const r=new Me(t,n,i);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Er(e,t){if(e&&e.includes(rt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+rt.sep+"`")}function kr(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Go(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function ep(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const tp=function(e){const i=this.constructor.prototype,r=i[e],o=function(){return r.apply(o,arguments)};return Object.setPrototypeOf(o,i),o},np={}.hasOwnProperty;class Br extends tp{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=Xd()}copy(){const t=new Br;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(xr(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Tr("data",this.frozen),this.namespace[t]=n,this):np.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Tr("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const r=n.call(t,...i);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=bn(t),i=this.parser||this.Parser;return Pr("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),Pr("process",this.parser||this.Parser),Fr("process",this.compiler||this.Compiler),n?r(void 0,n):new Promise(r);function r(o,l){const a=bn(t),s=i.parse(a);i.run(s,a,function(c,d,f){if(c||!d||!f)return u(c);const p=d,b=i.stringify(p,f);op(b)?f.value=b:f.result=b,u(c,f)});function u(c,d){c||!d?l(c):o?o(d):n(void 0,d)}}}processSync(t){let n=!1,i;return this.freeze(),Pr("processSync",this.parser||this.Parser),Fr("processSync",this.compiler||this.Compiler),this.process(t,r),Oo("processSync","process",n),i;function r(o,l){n=!0,Ao(o),i=l}}run(t,n,i){Vo(t),this.freeze();const r=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?o(void 0,i):new Promise(o);function o(l,a){const s=bn(n);r.run(t,s,u);function u(c,d,f){const p=d||t;c?a(c):l?l(p):i(void 0,p,f)}}}runSync(t,n){let i=!1,r;return this.run(t,n,o),Oo("runSync","run",i),r;function o(l,a){Ao(l),r=a,i=!0}}stringify(t,n){this.freeze();const i=bn(n),r=this.compiler||this.Compiler;return Fr("stringify",r),Vo(t),r(t,i)}use(t,...n){const i=this.attachers,r=this.namespace;if(Tr("use",this.frozen),t!=null)if(typeof t=="function")s(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...d]=u;s(c,d)}else l(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function l(u){if(!("plugins"in u)&&!("settings"in u))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(u.plugins),u.settings&&(r.settings=xr(!0,r.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const d=u[c];o(d)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,c){let d=-1,f=-1;for(;++d<i.length;)if(i[d][0]===u){f=d;break}if(f===-1)i.push([u,...c]);else if(c.length>0){let[p,...b]=c;const y=i[f][1];Ar(y)&&Ar(p)&&(p=xr(!0,y,p)),i[f]=[u,p,...b]}}}}const rp=new Br().freeze();function Pr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Fr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Tr(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 Vo(e){if(!Ar(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Oo(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function bn(e){return ip(e)?e:new To(e)}function ip(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function op(e){return typeof e=="string"||lp(e)}function lp(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ap="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",No=[],Do={allowDangerousHtml:!0},sp=/^(https?|ircs?|mailto|xmpp)$/i,up=[{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:"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 Lo(e){const t=cp(e),n=dp(e);return pp(t.runSync(t.parse(n),n),e)}function cp(e){const t=e.rehypePlugins||No,n=e.remarkPlugins||No,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Do}:Do;return rp().use(jc).use(n).use(Rd,i).use(t)}function dp(e){const t=e.children||"",n=new To;return typeof t=="string"&&(n.value=t),n}function pp(e,t){const n=t.allowedElements,i=t.allowElement,r=t.components,o=t.disallowedElements,l=t.skipHtml,a=t.unwrapDisallowed,s=t.urlTransform||fp;for(const c of up)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+ap+c.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),vo(e,u),Fs(e,{Fragment:k.Fragment,components:r,ignoreInvalidStyle:!0,jsx:k.jsx,jsxs:k.jsxs,passKeys:!0,passNode:!0});function u(c,d,f){if(c.type==="raw"&&f&&typeof d=="number")return l?f.children.splice(d,1):f.children[d]={type:"text",value:c.value},d;if(c.type==="element"){let p;for(p in ur)if(Object.hasOwn(ur,p)&&Object.hasOwn(c.properties,p)){const b=c.properties[p],y=ur[p];(y===null||y.includes(c.tagName))&&(c.properties[p]=s(String(b||""),p,c))}}if(c.type==="element"){let p=n?!n.includes(c.tagName):o?o.includes(c.tagName):!1;if(!p&&i&&typeof d=="number"&&(p=!i(c,d,f)),p&&f&&typeof d=="number")return a&&c.children?f.children.splice(d,1,...c.children):f.children.splice(d,1),d}}}function fp(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),r=e.indexOf("/");return t===-1||r!==-1&&t>r||n!==-1&&t>n||i!==-1&&t>i||sp.test(e.slice(0,t))?e:""}function yn({prop:e}){const t={width:"100%",background:"#e2e3e5",borderRadius:"5px",paddingTop:"2px",paddingLeft:"10px",paddingRight:"10px",paddingBottom:"2px"},n={...t,background:"#fff3cd"},i={...t,background:"#d1ecf1"},r={...t,background:"#f8d7da"},o={...t,background:"#fffff2"};let l={};switch(e.alertType){case"info":l=i;break;case"neutral":l=o;break;case"warning":l=n;break;case"error":l=r;break;default:l=t}return k.jsx("div",{className:`pd-alert-${e.alertType}`,style:l,children:k.jsx(Lo,{components:{a:({...a})=>k.jsx("a",{...a,target:"_blank",rel:"noopener noreferrer"})},children:e.content})})}var In={exports:{}};In.exports,function(e,t){var n=200,i="__lodash_hash_undefined__",r=1,o=2,l=9007199254740991,a="[object Arguments]",s="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",b="[object GeneratorFunction]",y="[object Map]",x="[object Number]",I="[object Null]",T="[object Object]",S="[object Promise]",E="[object Proxy]",P="[object RegExp]",v="[object Set]",M="[object String]",F="[object Symbol]",O="[object Undefined]",w="[object WeakMap]",N="[object ArrayBuffer]",V="[object DataView]",H="[object Float32Array]",q="[object Float64Array]",W="[object Int8Array]",J="[object Int16Array]",le="[object Int32Array]",se="[object Uint8Array]",G="[object Uint8ClampedArray]",g="[object Uint16Array]",ue="[object Uint32Array]",_=/[\\^$.*+?()[\]{}|]/g,m=/^\[object .+?Constructor\]$/,pe=/^(?:0|[1-9]\d*)$/,te={};te[H]=te[q]=te[W]=te[J]=te[le]=te[se]=te[G]=te[g]=te[ue]=!0,te[a]=te[s]=te[N]=te[c]=te[V]=te[d]=te[f]=te[p]=te[y]=te[x]=te[T]=te[P]=te[v]=te[M]=te[w]=!1;var ne=typeof ht=="object"&&ht&&ht.Object===Object&&ht,ke=typeof self=="object"&&self&&self.Object===Object&&self,fe=ne||ke||Function("return this")(),Ge=t&&!t.nodeType&&t,de=Ge&&!0&&e&&!e.nodeType&&e,ve=de&&de.exports===Ge,Ce=ve&&ne.process,Ve=function(){try{return Ce&&Ce.binding&&Ce.binding("util")}catch{}}(),Be=Ve&&Ve.isTypedArray;function De(h,C){for(var D=-1,Y=h==null?0:h.length,Ie=0,ce=[];++D<Y;){var Pe=h[D];C(Pe,D,h)&&(ce[Ie++]=Pe)}return ce}function Ae(h,C){for(var D=-1,Y=C.length,Ie=h.length;++D<Y;)h[Ie+D]=C[D];return h}function Je(h,C){for(var D=-1,Y=h==null?0:h.length;++D<Y;)if(C(h[D],D,h))return!0;return!1}function wt(h,C){for(var D=-1,Y=Array(h);++D<h;)Y[D]=C(D);return Y}function zt(h){return function(C){return h(C)}}function z(h,C){return h.has(C)}function Z(h,C){return h==null?void 0:h[C]}function ie(h){var C=-1,D=Array(h.size);return h.forEach(function(Y,Ie){D[++C]=[Ie,Y]}),D}function ee(h,C){return function(D){return h(C(D))}}function Se(h){var C=-1,D=Array(h.size);return h.forEach(function(Y){D[++C]=Y}),D}var xe=Array.prototype,B=Function.prototype,R=Object.prototype,X=fe["__core-js_shared__"],j=B.toString,Q=R.hasOwnProperty,me=function(){var h=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}(),lt=R.toString,$e=RegExp("^"+j.call(Q).replace(_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=ve?fe.Buffer:void 0,at=fe.Symbol,ze=fe.Uint8Array,pt=R.propertyIsEnumerable,Ke=xe.splice,Et=at?at.toStringTag:void 0,va=Object.getOwnPropertySymbols,Xh=yt?yt.isBuffer:void 0,Wh=ee(Object.keys,Object),ii=Rt(fe,"DataView"),tn=Rt(fe,"Map"),oi=Rt(fe,"Promise"),li=Rt(fe,"Set"),ai=Rt(fe,"WeakMap"),nn=Rt(Object,"create"),Zh=Pt(ii),jh=Pt(tn),Jh=Pt(oi),Yh=Pt(li),_h=Pt(ai),Ca=at?at.prototype:void 0,si=Ca?Ca.valueOf:void 0;function kt(h){var C=-1,D=h==null?0:h.length;for(this.clear();++C<D;){var Y=h[C];this.set(Y[0],Y[1])}}function Uh(){this.__data__=nn?nn(null):{},this.size=0}function qh(h){var C=this.has(h)&&delete this.__data__[h];return this.size-=C?1:0,C}function Qh(h){var C=this.__data__;if(nn){var D=C[h];return D===i?void 0:D}return Q.call(C,h)?C[h]:void 0}function $h(h){var C=this.__data__;return nn?C[h]!==void 0:Q.call(C,h)}function Kh(h,C){var D=this.__data__;return this.size+=this.has(h)?0:1,D[h]=nn&&C===void 0?i:C,this}kt.prototype.clear=Uh,kt.prototype.delete=qh,kt.prototype.get=Qh,kt.prototype.has=$h,kt.prototype.set=Kh;function ft(h){var C=-1,D=h==null?0:h.length;for(this.clear();++C<D;){var Y=h[C];this.set(Y[0],Y[1])}}function em(){this.__data__=[],this.size=0}function tm(h){var C=this.__data__,D=Zn(C,h);if(D<0)return!1;var Y=C.length-1;return D==Y?C.pop():Ke.call(C,D,1),--this.size,!0}function nm(h){var C=this.__data__,D=Zn(C,h);return D<0?void 0:C[D][1]}function rm(h){return Zn(this.__data__,h)>-1}function im(h,C){var D=this.__data__,Y=Zn(D,h);return Y<0?(++this.size,D.push([h,C])):D[Y][1]=C,this}ft.prototype.clear=em,ft.prototype.delete=tm,ft.prototype.get=nm,ft.prototype.has=rm,ft.prototype.set=im;function Bt(h){var C=-1,D=h==null?0:h.length;for(this.clear();++C<D;){var Y=h[C];this.set(Y[0],Y[1])}}function om(){this.size=0,this.__data__={hash:new kt,map:new(tn||ft),string:new kt}}function lm(h){var C=jn(this,h).delete(h);return this.size-=C?1:0,C}function am(h){return jn(this,h).get(h)}function sm(h){return jn(this,h).has(h)}function um(h,C){var D=jn(this,h),Y=D.size;return D.set(h,C),this.size+=D.size==Y?0:1,this}Bt.prototype.clear=om,Bt.prototype.delete=lm,Bt.prototype.get=am,Bt.prototype.has=sm,Bt.prototype.set=um;function Wn(h){var C=-1,D=h==null?0:h.length;for(this.__data__=new Bt;++C<D;)this.add(h[C])}function cm(h){return this.__data__.set(h,i),this}function dm(h){return this.__data__.has(h)}Wn.prototype.add=Wn.prototype.push=cm,Wn.prototype.has=dm;function It(h){var C=this.__data__=new ft(h);this.size=C.size}function pm(){this.__data__=new ft,this.size=0}function fm(h){var C=this.__data__,D=C.delete(h);return this.size=C.size,D}function gm(h){return this.__data__.get(h)}function hm(h){return this.__data__.has(h)}function mm(h,C){var D=this.__data__;if(D instanceof ft){var Y=D.__data__;if(!tn||Y.length<n-1)return Y.push([h,C]),this.size=++D.size,this;D=this.__data__=new Bt(Y)}return D.set(h,C),this.size=D.size,this}It.prototype.clear=pm,It.prototype.delete=fm,It.prototype.get=gm,It.prototype.has=hm,It.prototype.set=mm;function bm(h,C){var D=Jn(h),Y=!D&&Gm(h),Ie=!D&&!Y&&ui(h),ce=!D&&!Y&&!Ie&&Fa(h),Pe=D||Y||Ie||ce,Oe=Pe?wt(h.length,String):[],Le=Oe.length;for(var we in h)Q.call(h,we)&&!(Pe&&(we=="length"||Ie&&(we=="offset"||we=="parent")||ce&&(we=="buffer"||we=="byteLength"||we=="byteOffset")||km(we,Le)))&&Oe.push(we);return Oe}function Zn(h,C){for(var D=h.length;D--;)if(Ea(h[D][0],C))return D;return-1}function ym(h,C,D){var Y=C(h);return Jn(h)?Y:Ae(Y,D(h))}function rn(h){return h==null?h===void 0?O:I:Et&&Et in Object(h)?wm(h):Tm(h)}function xa(h){return on(h)&&rn(h)==a}function Aa(h,C,D,Y,Ie){return h===C?!0:h==null||C==null||!on(h)&&!on(C)?h!==h&&C!==C:Im(h,C,D,Y,Aa,Ie)}function Im(h,C,D,Y,Ie,ce){var Pe=Jn(h),Oe=Jn(C),Le=Pe?s:vt(h),we=Oe?s:vt(C);Le=Le==a?T:Le,we=we==a?T:we;var Ye=Le==T,et=we==T,Re=Le==we;if(Re&&ui(h)){if(!ui(C))return!1;Pe=!0,Ye=!1}if(Re&&!Ye)return ce||(ce=new It),Pe||Fa(h)?Sa(h,C,D,Y,Ie,ce):Am(h,C,Le,D,Y,Ie,ce);if(!(D&r)){var Ue=Ye&&Q.call(h,"__wrapped__"),qe=et&&Q.call(C,"__wrapped__");if(Ue||qe){var Ct=Ue?h.value():h,gt=qe?C.value():C;return ce||(ce=new It),Ie(Ct,gt,D,Y,ce)}}return Re?(ce||(ce=new It),Sm(h,C,D,Y,Ie,ce)):!1}function vm(h){if(!Pa(h)||Pm(h))return!1;var C=ka(h)?$e:m;return C.test(Pt(h))}function Cm(h){return on(h)&&Ba(h.length)&&!!te[rn(h)]}function xm(h){if(!Fm(h))return Wh(h);var C=[];for(var D in Object(h))Q.call(h,D)&&D!="constructor"&&C.push(D);return C}function Sa(h,C,D,Y,Ie,ce){var Pe=D&r,Oe=h.length,Le=C.length;if(Oe!=Le&&!(Pe&&Le>Oe))return!1;var we=ce.get(h);if(we&&ce.get(C))return we==C;var Ye=-1,et=!0,Re=D&o?new Wn:void 0;for(ce.set(h,C),ce.set(C,h);++Ye<Oe;){var Ue=h[Ye],qe=C[Ye];if(Y)var Ct=Pe?Y(qe,Ue,Ye,C,h,ce):Y(Ue,qe,Ye,h,C,ce);if(Ct!==void 0){if(Ct)continue;et=!1;break}if(Re){if(!Je(C,function(gt,Ft){if(!z(Re,Ft)&&(Ue===gt||Ie(Ue,gt,D,Y,ce)))return Re.push(Ft)})){et=!1;break}}else if(!(Ue===qe||Ie(Ue,qe,D,Y,ce))){et=!1;break}}return ce.delete(h),ce.delete(C),et}function Am(h,C,D,Y,Ie,ce,Pe){switch(D){case V:if(h.byteLength!=C.byteLength||h.byteOffset!=C.byteOffset)return!1;h=h.buffer,C=C.buffer;case N:return!(h.byteLength!=C.byteLength||!ce(new ze(h),new ze(C)));case c:case d:case x:return Ea(+h,+C);case f:return h.name==C.name&&h.message==C.message;case P:case M:return h==C+"";case y:var Oe=ie;case v:var Le=Y&r;if(Oe||(Oe=Se),h.size!=C.size&&!Le)return!1;var we=Pe.get(h);if(we)return we==C;Y|=o,Pe.set(h,C);var Ye=Sa(Oe(h),Oe(C),Y,Ie,ce,Pe);return Pe.delete(h),Ye;case F:if(si)return si.call(h)==si.call(C)}return!1}function Sm(h,C,D,Y,Ie,ce){var Pe=D&r,Oe=wa(h),Le=Oe.length,we=wa(C),Ye=we.length;if(Le!=Ye&&!Pe)return!1;for(var et=Le;et--;){var Re=Oe[et];if(!(Pe?Re in C:Q.call(C,Re)))return!1}var Ue=ce.get(h);if(Ue&&ce.get(C))return Ue==C;var qe=!0;ce.set(h,C),ce.set(C,h);for(var Ct=Pe;++et<Le;){Re=Oe[et];var gt=h[Re],Ft=C[Re];if(Y)var Ta=Pe?Y(Ft,gt,Re,C,h,ce):Y(gt,Ft,Re,h,C,ce);if(!(Ta===void 0?gt===Ft||Ie(gt,Ft,D,Y,ce):Ta)){qe=!1;break}Ct||(Ct=Re=="constructor")}if(qe&&!Ct){var Yn=h.constructor,_n=C.constructor;Yn!=_n&&"constructor"in h&&"constructor"in C&&!(typeof Yn=="function"&&Yn instanceof Yn&&typeof _n=="function"&&_n instanceof _n)&&(qe=!1)}return ce.delete(h),ce.delete(C),qe}function wa(h){return ym(h,Nm,Em)}function jn(h,C){var D=h.__data__;return Bm(C)?D[typeof C=="string"?"string":"hash"]:D.map}function Rt(h,C){var D=Z(h,C);return vm(D)?D:void 0}function wm(h){var C=Q.call(h,Et),D=h[Et];try{h[Et]=void 0;var Y=!0}catch{}var Ie=lt.call(h);return Y&&(C?h[Et]=D:delete h[Et]),Ie}var Em=va?function(h){return h==null?[]:(h=Object(h),De(va(h),function(C){return pt.call(h,C)}))}:Dm,vt=rn;(ii&&vt(new ii(new ArrayBuffer(1)))!=V||tn&&vt(new tn)!=y||oi&&vt(oi.resolve())!=S||li&&vt(new li)!=v||ai&&vt(new ai)!=w)&&(vt=function(h){var C=rn(h),D=C==T?h.constructor:void 0,Y=D?Pt(D):"";if(Y)switch(Y){case Zh:return V;case jh:return y;case Jh:return S;case Yh:return v;case _h:return w}return C});function km(h,C){return C=C??l,!!C&&(typeof h=="number"||pe.test(h))&&h>-1&&h%1==0&&h<C}function Bm(h){var C=typeof h;return C=="string"||C=="number"||C=="symbol"||C=="boolean"?h!=="__proto__":h===null}function Pm(h){return!!me&&me in h}function Fm(h){var C=h&&h.constructor,D=typeof C=="function"&&C.prototype||R;return h===D}function Tm(h){return lt.call(h)}function Pt(h){if(h!=null){try{return j.call(h)}catch{}try{return h+""}catch{}}return""}function Ea(h,C){return h===C||h!==h&&C!==C}var Gm=xa(function(){return arguments}())?xa:function(h){return on(h)&&Q.call(h,"callee")&&!pt.call(h,"callee")},Jn=Array.isArray;function Vm(h){return h!=null&&Ba(h.length)&&!ka(h)}var ui=Xh||Lm;function Om(h,C){return Aa(h,C)}function ka(h){if(!Pa(h))return!1;var C=rn(h);return C==p||C==b||C==u||C==E}function Ba(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=l}function Pa(h){var C=typeof h;return h!=null&&(C=="object"||C=="function")}function on(h){return h!=null&&typeof h=="object"}var Fa=Be?zt(Be):Cm;function Nm(h){return Vm(h)?bm(h):xm(h)}function Dm(){return[]}function Lm(){return!1}e.exports=Om}(In,In.exports);var gp=In.exports;const Mo=tr(gp),zo=A.createContext(void 0),ut=()=>{const e=A.useContext(zo);if(!e)throw new Error("Must be used inside FrontendClientProvider");return e},hp=({children:e,client:t})=>{const[n]=A.useState(()=>new st.QueryClient({defaultOptions:{queries:{staleTime:36e5,refetchOnWindowFocus:!1}}}));return k.jsx(st.QueryClientProvider,{client:n,children:k.jsx(zo.Provider,{value:t,children:e})})};function Ro(e){return typeof e=="object"&&e&&"__lv"in e?e.__lv.value:e}function mp(e){if(typeof e=="object"&&e&&"selectedOptions"in e&&Array.isArray(e.selectedOptions)){const t=e.selectedOptions,n=[];for(const i of t)if(typeof i=="object"&&i&&"emitValue"in i){const r=i.emitValue;typeof r=="object"&&r&&"__lv"in r?n.push(r.__lv.value):n.push(r)}else return[];return n}return e&&typeof e=="object"&&Array.isArray(e.__lv)?e.__lv:Array.isArray(e)?e:[]}function bp(e){const t=mp(e.value);if(!e.prop.default&&typeof t>"u")return["required"];if(!e.prop.default&&Array.isArray(t)&&!t.length)return["empty array"]}function yp(e){const t=Ro(e.value);if(t==null||typeof t>"u")return["required"]}function Ip(e){const{prop:t,value:n}=e,i=Ro(n);if(!t.default&&(i==null||typeof i>"u"))return["required"];const r=typeof i=="number"?i:parseInt(String(i));if(Number.isNaN(r))return["not a number"];const o=[];return typeof t.min=="number"&&r<t.min&&o.push("number too small"),typeof t.max=="number"&&r>t.max&&o.push("number too big"),o}function vp(e){const{prop:t,value:n}=e;if(!t.default&&(n==null||typeof n>"u"))return["required"]}function Cp(e){const t=e.authType==="oauth",n=JSON.parse(e.customFieldsJson||"[]");if("extracted_custom_fields_names"in e&&e.extracted_custom_fields_names){const i=(e.extracted_custom_fields_names||[]).map(r=>({name:r}));n.push(...i)}return n.map(i=>({...i,optional:i.optional||t}))}function xp(e){const{app:t,value:n}=e;if(!t)return["app field not registered"];if(!t.authType)return;if(!n)return["no app configured"];if(typeof n!="object")return["not an app"];const i=n;if("authProvisionId"in i&&!i.authProvisionId){const r=[];if(t.authType==="oauth"&&!i.oauth_access_token&&r.push("missing oauth token"),t.authType==="oauth"||t.authType==="keys"){const o=Cp(t),l=i;for(const a of o)!a.optional&&!l[a.name]&&r.push(`missing custom field: ${a.name}`)}return r}}const Ap=(e,t)=>{if(e!==void 0&&e!=="")return t!==void 0&&t!==""?{resolvedId:e,warningType:"both"}:{resolvedId:e};if(t!==void 0&&t!=="")return{resolvedId:t,warningType:"deprecated"};throw new Error("Either externalUserId or userId must be provided")};function it(e,t){return e.type===t}function Gr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&"value"in e&&(typeof e.value=="string"||typeof e.value=="number")}function Ne(e){if(e==null)return{label:"",value:""};if(typeof e!="object")return{label:String(e),value:e};if("__lv"in e)return Ne(e.__lv);if("lv"in e)return Ne(e.lv);if("value"in e){const{label:t,value:n}=e;return{label:String(t||n),value:n}}return{label:String(e),value:e}}function Vr(e){return!e||typeof e!="object"||!("__lv"in e)?!1:e.__lv!=null}function Ho(e){return!Array.isArray(e)||e.length===0?!1:e.every(t=>Vr(t))}function Sp(e){return Vr(e)||Ho(e)}const Ut=["$.service.db","$.interface.http","$.interface.apphook","$.interface.timer","dir"],Or=A.createContext(void 0),qt=()=>{const e=A.useContext(Or);if(!e)throw new Error("Must be used inside provider");return e},Xo=({children:e,props:t})=>{const n=ut(),i=A.useId(),{component:r,configuredProps:o,propNames:l,externalUserId:a,userId:s,sdkResponse:u,enableDebugging:c,oauthAppConfig:d}=t,{resolvedId:f,warningType:p}=A.useMemo(()=>Ap(a,s),[a,s]);A.useEffect(()=>{process.env.NODE_ENV!=="production"&&(p==="both"?console.warn("[connect-react] Both externalUserId and userId provided. Using externalUserId. Please remove userId to avoid this warning."):p==="deprecated"&&console.warn("[connect-react] userId is deprecated. Please use externalUserId instead."))},[p]);const b=r.key,[y,x]=A.useState(0),[I,T]=A.useState({}),[S,E]=A.useState(!1),[P,v]=A.useState({}),[M,F]=A.useState([]),[O,w]=A.useState({});A.useEffect(()=>{w({})},[r.key]);const N=z=>O[z.name];let V=o||{};const[H,q]=A.useState(V),W=t.onUpdateConfiguredProps||q;t.onUpdateConfiguredProps||(V=H);const[J,le]=A.useState(),se=A.useRef();J&&(se.current=J);const[G,g]=A.useState(),ue={externalUserId:f,id:b,configuredProps:V,dynamicPropsId:J==null?void 0:J.id},_={externalUserId:f,id:b,dynamicPropsId:J==null?void 0:J.id,reloadTriggerProps:Object.fromEntries(Object.entries(V).filter(([z])=>{const Z=((J==null?void 0:J.configurableProps)||t.component.configurableProps||[]).find(ie=>ie.name===z);return Z&&"reloadProps"in Z&&Z.reloadProps}))},{isFetching:m}=st.useQuery({queryKey:["dynamicProps",_],queryFn:async()=>{var z;try{const Z=await n.components.reloadProps(ue),{dynamicProps:ie,observations:ee,errors:Se}=Z,xe=ie;return ee&&ee.filter(B=>B.k==="error").length>0?wt(ee):wt(Se),g(void 0),ie&&xe&&((z=t.onUpdateDynamicProps)==null||z.call(t,ie),le(xe)),[]}finally{g(void 0)}},enabled:G!=null,refetchOnMount:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1,staleTime:1/0}),[pe,te]=A.useState([]);A.useEffect(()=>{Ae()},[V]);const ne=A.useMemo(()=>{const z=se.current||J;let Z=(z==null?void 0:z.configurableProps)||t.component.configurableProps||[];if(l!=null&&l.length){const ie=[];for(const ee of Z)l.findIndex(Se=>ee.name===Se)>=0&&ie.push(ee);Z=ie}return G!=null&&m&&(Z=Array.isArray(Z)?Z.slice(0,G+1):Z),Z},[J==null?void 0:J.configurableProps,t.component.configurableProps,l,G,m]),ke=(z,Z)=>{const ie=[];if(z.optional||z.hidden||z.disabled||Ut.includes(z.type))return[];if(it(z,"app")){const ee=I[z.name];if(ee){const Se="app"in ee.extra?ee.extra.app:void 0;ie.push(...xp({value:Z,app:Se})??[])}else ie.push("field not registered")}else it(z,"boolean")?ie.push(...yp({value:Z})??[]):it(z,"integer")?ie.push(...Ip({prop:z,value:Z})??[]):it(z,"string")?ie.push(...vp({prop:z,value:Z})??[]):it(z,"string[]")&&ie.push(...bp({prop:z,value:Z})??[]);return ie},fe=z=>{let Z;for(let ie=0;ie<ne.length;ie++){const ee=ne[ie];if(ee.hidden||ee.optional&&!N(ee))continue;if(z[ee.name]===void 0&&Z==null&&(ee.type==="app"||ee.remoteOptions)){Z=ie;break}}x(Z)},Ge=z=>{W(z),fe(z),de(z)},de=z=>{const Z={};for(let ie=0;ie<ne.length;ie++){const ee=ne[ie],Se=z[ee.name],xe=ke(ee,Se);xe.length&&(Z[ee.name]=xe)}v(Z)},ve=(z,Z)=>z.type!=="integer"||typeof Z=="number"||Sp(Z)?Z:void 0;A.useEffect(()=>{fe(V)},[r.key,ne,O]),A.useEffect(()=>{fe(V)},[V,ne,O]),A.useEffect(()=>{de(V)},[V,G,y]),A.useEffect(()=>{wt(u)},[u]),A.useEffect(()=>{var Z,ie;const z={};for(const ee of ne){if(ee.hidden||Ut.includes(ee.type))continue;if(ee.optional&&!N(ee)){const xe=V[ee.name],B=se.current||J,X=(((Z=B==null?void 0:B.configurableProps)==null?void 0:Z.some(j=>j.name===ee.name))??!1)&&!((ie=t.component.configurableProps)!=null&&ie.some(j=>j.name===ee.name));if(xe!==void 0){z[ee.name]=xe;continue}if(X)continue;continue}const Se=V[ee.name];if(Se===void 0)"default"in ee&&ee.default!=null&&(z[ee.name]=ee.default);else{const xe=ve(ee,Se);xe===void 0?delete z[ee.name]:z[ee.name]=xe}}Mo(z,V)||Ge(z)},[ne,O]);const[Ce,Ve]=A.useState(f);A.useEffect(()=>{Ce!==f&&(Ge({}),Ve(f))},[f]);const Be=(z,Z)=>{const ie=ne[z],ee={...V};Z===void 0?delete ee[ie.name]:ee[ie.name]=Z,W(ee),ie.reloadProps&&g(z);const Se=ke(ie,Z),xe={...P};Se.length?xe[ie.name]=Se:delete xe[ie.name],v(xe)},De=(z,Z)=>{const ie={...O};Z?ie[z.name]=!0:delete ie[z.name];const ee=ne.findIndex(Se=>Se.name===z.name);Z?(o==null?void 0:o[z.name])!==void 0?Be(ee,o[z.name]):"default"in z&&z.default!=null&&Be(ee,z.default):Be(ee,void 0),w(ie)};A.useEffect(()=>{const z=[];for(const Z of ne){if(!Z.optional||N(Z))continue;const ie=V[Z.name],ee=o==null?void 0:o[Z.name];ie===void 0&&ee===void 0||z.push(Z)}z.length&&z.forEach(Z=>De(Z,!0))},[r.key,ne,V,O,o]);const Ae=()=>{const z=[];for(const Z of ne){if(!Z||Z.optional||Z.hidden||Ut.includes(Z.type))continue;const ie=V[Z.name];ke(Z,ie).length&&z.push(Z.name)}z&&pe&&Mo(z,pe)||te(z)},Je=z=>{T(Z=>(Z[z.prop.name]=z,Z)),Ae()},wt=z=>{if(!z)return;let Z=[...M];const ie=(X,j)=>{try{const Q=JSON.parse(X),me={name:Q.name,message:Q.message};me.name&&me.message&&j.push(me)}catch{}},ee=(X,j)=>{const Q={name:X.name,message:X.message};Q.name&&Q.message&&j.push(Q)},Se=(X,j)=>{if(!(!("err"in X)||!X.err)&&X.err.name&&X.err.message){const Q={name:X.err.name,message:X.err.message};j.push(Q)}},xe=(X,j)=>{if(Array.isArray(X)&&X.length>0)for(let Q=0;Q<X.length;Q++)X[Q].k==="error"&&Se(X[Q],j)},B=(X,j)=>{j.push({name:X.error,message:JSON.stringify(X.details)})},R=(X,j)=>{var Q;try{const me=(Q=JSON.parse(X.message))==null?void 0:Q.data;me&&"os"in me?xe(me.os,j):me&&"observations"in me?xe(me.observations,j):me&&"error"in me&&"details"in me&&B(me,j)}catch{}};if(Array.isArray(z)&&z.length>0)for(let X=0;X<z.length;X++){const j=z[X];typeof j=="string"?ie(j,Z):typeof j=="object"&&"name"in j&&"message"in j&&"stack"in j?ee(j,Z):typeof j=="object"&&j.k==="error"&&Se(j,Z)}else typeof z=="object"&&z&&"observations"in z?xe(z.observations,Z):typeof z=="object"&&z&&"os"in z?xe(z.os,Z):typeof z=="object"&&"message"in z?R(z,Z):Z=[];F(Z)},zt={id:i,isValid:!Object.keys(P).length,props:t,externalUserId:f,userId:f,component:r,configurableProps:ne,configuredProps:V,dynamicProps:J,dynamicPropsQueryIsFetching:m,errors:P,fields:I,optionalPropIsEnabled:N,optionalPropSetEnabled:De,propsNeedConfiguring:pe,queryDisabledIdx:y,registerField:Je,setConfiguredProp:Be,setSubmitting:E,submitting:S,sdkErrors:M,enableDebugging:c,oauthAppConfig:d};return k.jsx(Or.Provider,{value:zt,children:e})};function St(e){"@babel/helpers - typeof";return St=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},St(e)}function wp(e,t){if(St(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(St(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wo(e){var t=wp(e,"string");return St(t)=="symbol"?t:t+""}function Qt(e,t,n){return(t=Wo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zo(Object(n),!0).forEach(function(i){Qt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zo(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Ep(e){if(Array.isArray(e))return e}function kp(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,r,o,l,a=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(a.push(i.value),a.length!==t);s=!0);}catch(c){u=!0,r=c}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw r}}return a}}function Nr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function jo(e,t){if(e){if(typeof e=="string")return Nr(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nr(e,t):void 0}}function Bp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
16
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ct(e,t){return Ep(e)||kp(e,t)||jo(e,t)||Bp()}function Pp(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}function ot(e,t){if(e==null)return{};var n,i,r=Pp(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Fp=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Jo(e){var t=e.defaultInputValue,n=t===void 0?"":t,i=e.defaultMenuIsOpen,r=i===void 0?!1:i,o=e.defaultValue,l=o===void 0?null:o,a=e.inputValue,s=e.menuIsOpen,u=e.onChange,c=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,p=e.value,b=ot(e,Fp),y=A.useState(a!==void 0?a:n),x=ct(y,2),I=x[0],T=x[1],S=A.useState(s!==void 0?s:r),E=ct(S,2),P=E[0],v=E[1],M=A.useState(p!==void 0?p:l),F=ct(M,2),O=F[0],w=F[1],N=A.useCallback(function(se,G){typeof u=="function"&&u(se,G),w(se)},[u]),V=A.useCallback(function(se,G){var g;typeof c=="function"&&(g=c(se,G)),T(g!==void 0?g:se)},[c]),H=A.useCallback(function(){typeof f=="function"&&f(),v(!0)},[f]),q=A.useCallback(function(){typeof d=="function"&&d(),v(!1)},[d]),W=a!==void 0?a:I,J=s!==void 0?s:P,le=p!==void 0?p:O;return K(K({},b),{},{inputValue:W,menuIsOpen:J,onChange:N,onInputChange:V,onMenuClose:q,onMenuOpen:H,value:le})}function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},re.apply(null,arguments)}function Tp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yo(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Wo(i.key),i)}}function Gp(e,t,n){return t&&Yo(e.prototype,t),n&&Yo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dr(e,t){return Dr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Dr(e,t)}function Vp(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dr(e,t)}function vn(e){return vn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vn(e)}function _o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_o=function(){return!!e})()}function Op(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Np(e,t){if(t&&(St(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Op(e)}function Dp(e){var t=_o();return function(){var n,i=vn(e);if(t){var r=vn(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return Np(this,n)}}function Lp(e){if(Array.isArray(e))return Nr(e)}function Mp(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zp(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
17
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dt(e){return Lp(e)||Mp(e)||jo(e)||zp()}function Rp(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const Hp=Math.min,Xp=Math.max,Cn=Math.round,xn=Math.floor,An=e=>({x:e,y:e});function Wp(e){const{x:t,y:n,width:i,height:r}=e;return{width:i,height:r,top:n,left:t,right:t+i,bottom:n+r,x:t,y:n}}function Sn(){return typeof window<"u"}function Uo(e){return Qo(e)?(e.nodeName||"").toLowerCase():"#document"}function dt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qo(e){var t;return(t=(Qo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Qo(e){return Sn()?e instanceof Node||e instanceof dt(e).Node:!1}function Zp(e){return Sn()?e instanceof Element||e instanceof dt(e).Element:!1}function Lr(e){return Sn()?e instanceof HTMLElement||e instanceof dt(e).HTMLElement:!1}function $o(e){return!Sn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof dt(e).ShadowRoot}const jp=new Set(["inline","contents"]);function Ko(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=Mr(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!jp.has(r)}function Jp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Yp=new Set(["html","body","#document"]);function _p(e){return Yp.has(Uo(e))}function Mr(e){return dt(e).getComputedStyle(e)}function Up(e){if(Uo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$o(e)&&e.host||qo(e);return $o(t)?t.host:t}function el(e){const t=Up(e);return _p(t)?e.ownerDocument?e.ownerDocument.body:e.body:Lr(t)&&Ko(t)?t:el(t)}function wn(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=el(e),o=r===((i=e.ownerDocument)==null?void 0:i.body),l=dt(r);if(o){const a=zr(l);return t.concat(l,l.visualViewport||[],Ko(r)?r:[],a&&n?wn(a):[])}return t.concat(r,wn(r,[],n))}function zr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qp(e){const t=Mr(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=Lr(e),o=r?e.offsetWidth:n,l=r?e.offsetHeight:i,a=Cn(n)!==o||Cn(i)!==l;return a&&(n=o,i=l),{width:n,height:i,$:a}}function Rr(e){return Zp(e)?e:e.contextElement}function tl(e){const t=Rr(e);if(!Lr(t))return An(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:o}=qp(t);let l=(o?Cn(n.width):n.width)/i,a=(o?Cn(n.height):n.height)/r;return(!l||!Number.isFinite(l))&&(l=1),(!a||!Number.isFinite(a))&&(a=1),{x:l,y:a}}const Qp=An(0);function $p(e){const t=dt(e);return!Jp()||!t.visualViewport?Qp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Kp(e,t,n){return!1}function nl(e,t,n,i){t===void 0&&(t=!1);const r=e.getBoundingClientRect(),o=Rr(e);let l=An(1);t&&(l=tl(e));const a=Kp()?$p(o):An(0);let s=(r.left+a.x)/l.x,u=(r.top+a.y)/l.y,c=r.width/l.x,d=r.height/l.y;if(o){const f=dt(o),p=i;let b=f,y=zr(b);for(;y&&i&&p!==b;){const x=tl(y),I=y.getBoundingClientRect(),T=Mr(y),S=I.left+(y.clientLeft+parseFloat(T.paddingLeft))*x.x,E=I.top+(y.clientTop+parseFloat(T.paddingTop))*x.y;s*=x.x,u*=x.y,c*=x.x,d*=x.y,s+=S,u+=E,b=dt(y),y=zr(b)}}return Wp({width:c,height:d,x:s,y:u})}function rl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ef(e,t){let n=null,i;const r=qo(e);function o(){var a;clearTimeout(i),(a=n)==null||a.disconnect(),n=null}function l(a,s){a===void 0&&(a=!1),s===void 0&&(s=1),o();const u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(a||t(),!f||!p)return;const b=xn(d),y=xn(r.clientWidth-(c+f)),x=xn(r.clientHeight-(d+p)),I=xn(c),S={rootMargin:-b+"px "+-y+"px "+-x+"px "+-I+"px",threshold:Xp(0,Hp(1,s))||1};let E=!0;function P(v){const M=v[0].intersectionRatio;if(M!==s){if(!E)return l();M?l(!1,M):i=setTimeout(()=>{l(!1,1e-7)},1e3)}M===1&&!rl(u,e.getBoundingClientRect())&&l(),E=!1}try{n=new IntersectionObserver(P,{...S,root:r.ownerDocument})}catch{n=new IntersectionObserver(P,S)}n.observe(e)}return l(!0),o}function tf(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:s=!1}=i,u=Rr(e),c=r||o?[...u?wn(u):[],...wn(t)]:[];c.forEach(I=>{r&&I.addEventListener("scroll",n,{passive:!0}),o&&I.addEventListener("resize",n)});const d=u&&a?ef(u,n):null;let f=-1,p=null;l&&(p=new ResizeObserver(I=>{let[T]=I;T&&T.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var S;(S=p)==null||S.observe(t)})),n()}),u&&!s&&p.observe(u),p.observe(t));let b,y=s?nl(e):null;s&&x();function x(){const I=nl(e);y&&!rl(y,I)&&n(),y=I,b=requestAnimationFrame(x)}return n(),()=>{var I;c.forEach(T=>{r&&T.removeEventListener("scroll",n),o&&T.removeEventListener("resize",n)}),d==null||d(),(I=p)==null||I.disconnect(),p=null,s&&cancelAnimationFrame(b)}}var Hr=A.useLayoutEffect,nf=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],En=function(){};function rf(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function of(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];var o=[].concat(i);if(t&&e)for(var l in t)t.hasOwnProperty(l)&&t[l]&&o.push("".concat(rf(e,l)));return o.filter(function(a){return a}).map(function(a){return String(a).trim()}).join(" ")}var kn=function(t){return gf(t)?t.filter(Boolean):St(t)==="object"&&t!==null?[t]:[]},il=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=ot(t,nf);return K({},n)},Ee=function(t,n,i){var r=t.cx,o=t.getStyles,l=t.getClassNames,a=t.className;return{css:o(n,t),className:r(i??{},l(n,t),a)}};function Bn(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function lf(e){return Bn(e)?window.innerHeight:e.clientHeight}function ol(e){return Bn(e)?window.pageYOffset:e.scrollTop}function Pn(e,t){if(Bn(e)){window.scrollTo(0,t);return}e.scrollTop=t}function af(e){var t=getComputedStyle(e),n=t.position==="absolute",i=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),!(n&&t.position==="static")&&i.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}function sf(e,t,n,i){return n*((e=e/i-1)*e*e+1)+t}function Fn(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:En,r=ol(e),o=t-r,l=10,a=0;function s(){a+=l;var u=sf(a,r,o,n);Pn(e,u),a<n?window.requestAnimationFrame(s):i(e)}s()}function ll(e,t){var n=e.getBoundingClientRect(),i=t.getBoundingClientRect(),r=t.offsetHeight/3;i.bottom+r>n.bottom?Pn(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):i.top-r<n.top&&Pn(e,Math.max(t.offsetTop-r,0))}function uf(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function al(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function cf(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var sl=!1,df={get passive(){return sl=!0}},Tn=typeof window<"u"?window:{};Tn.addEventListener&&Tn.removeEventListener&&(Tn.addEventListener("p",En,df),Tn.removeEventListener("p",En,!1));var pf=sl;function ff(e){return e!=null}function gf(e){return Array.isArray(e)}function $t(e,t,n){return e?t:n}function qm(e){return e}function Qm(e){return e}var hf=function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];var o=Object.entries(t).filter(function(l){var a=ct(l,1),s=a[0];return!i.includes(s)});return o.reduce(function(l,a){var s=ct(a,2),u=s[0],c=s[1];return l[u]=c,l},{})},mf=["children","innerProps"],bf=["children","innerProps"];function yf(e){var t=e.maxHeight,n=e.menuEl,i=e.minHeight,r=e.placement,o=e.shouldScroll,l=e.isFixedPosition,a=e.controlHeight,s=af(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=s.getBoundingClientRect(),d=c.height,f=n.getBoundingClientRect(),p=f.bottom,b=f.height,y=f.top,x=n.offsetParent.getBoundingClientRect(),I=x.top,T=l?window.innerHeight:lf(s),S=ol(s),E=parseInt(getComputedStyle(n).marginBottom,10),P=parseInt(getComputedStyle(n).marginTop,10),v=I-P,M=T-y,F=v+S,O=d-S-y,w=p-T+S+E,N=S+y-P,V=160;switch(r){case"auto":case"bottom":if(M>=b)return{placement:"bottom",maxHeight:t};if(O>=b&&!l)return o&&Fn(s,w,V),{placement:"bottom",maxHeight:t};if(!l&&O>=i||l&&M>=i){o&&Fn(s,w,V);var H=l?M-E:O-E;return{placement:"bottom",maxHeight:H}}if(r==="auto"||l){var q=t,W=l?v:F;return W>=i&&(q=Math.min(W-E-a,t)),{placement:"top",maxHeight:q}}if(r==="bottom")return o&&Pn(s,w),{placement:"bottom",maxHeight:t};break;case"top":if(v>=b)return{placement:"top",maxHeight:t};if(F>=b&&!l)return o&&Fn(s,N,V),{placement:"top",maxHeight:t};if(!l&&F>=i||l&&v>=i){var J=t;return(!l&&F>=i||l&&v>=i)&&(J=l?v-P:F-P),o&&Fn(s,N,V),{placement:"top",maxHeight:J}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return u}function If(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var ul=function(t){return t==="auto"?"bottom":t},vf=function(t,n){var i,r=t.placement,o=t.theme,l=o.borderRadius,a=o.spacing,s=o.colors;return K((i={label:"menu"},Qt(i,If(r),"100%"),Qt(i,"position","absolute"),Qt(i,"width","100%"),Qt(i,"zIndex",1),i),n?{}:{backgroundColor:s.neutral0,borderRadius:l,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},cl=A.createContext(null),Cf=function(t){var n=t.children,i=t.minMenuHeight,r=t.maxMenuHeight,o=t.menuPlacement,l=t.menuPosition,a=t.menuShouldScrollIntoView,s=t.theme,u=A.useContext(cl)||{},c=u.setPortalPlacement,d=A.useRef(null),f=A.useState(r),p=ct(f,2),b=p[0],y=p[1],x=A.useState(null),I=ct(x,2),T=I[0],S=I[1],E=s.spacing.controlHeight;return Hr(function(){var P=d.current;if(P){var v=l==="fixed",M=a&&!v,F=yf({maxHeight:r,menuEl:P,minHeight:i,placement:o,shouldScroll:M,isFixedPosition:v,controlHeight:E});y(F.maxHeight),S(F.placement),c==null||c(F.placement)}},[r,o,l,a,i,c,E]),n({ref:d,placerProps:K(K({},t),{},{placement:T||ul(o),maxHeight:b})})},xf=function(t){var n=t.children,i=t.innerRef,r=t.innerProps;return U.jsx("div",re({},Ee(t,"menu",{menu:!0}),{ref:i},r),n)},Af=xf,Sf=function(t,n){var i=t.maxHeight,r=t.theme.spacing.baseUnit;return K({maxHeight:i,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:r,paddingTop:r})},wf=function(t){var n=t.children,i=t.innerProps,r=t.innerRef,o=t.isMulti;return U.jsx("div",re({},Ee(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},i),n)},dl=function(t,n){var i=t.theme,r=i.spacing.baseUnit,o=i.colors;return K({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px")})},Ef=dl,kf=dl,Bf=function(t){var n=t.children,i=n===void 0?"No options":n,r=t.innerProps,o=ot(t,mf);return U.jsx("div",re({},Ee(K(K({},o),{},{children:i,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),i)},Pf=function(t){var n=t.children,i=n===void 0?"Loading...":n,r=t.innerProps,o=ot(t,bf);return U.jsx("div",re({},Ee(K(K({},o),{},{children:i,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),i)},Ff=function(t){var n=t.rect,i=t.offset,r=t.position;return{left:n.left,position:r,top:i,width:n.width,zIndex:1}},Tf=function(t){var n=t.appendTo,i=t.children,r=t.controlElement,o=t.innerProps,l=t.menuPlacement,a=t.menuPosition,s=A.useRef(null),u=A.useRef(null),c=A.useState(ul(l)),d=ct(c,2),f=d[0],p=d[1],b=A.useMemo(function(){return{setPortalPlacement:p}},[]),y=A.useState(null),x=ct(y,2),I=x[0],T=x[1],S=A.useCallback(function(){if(r){var M=uf(r),F=a==="fixed"?0:window.pageYOffset,O=M[f]+F;(O!==(I==null?void 0:I.offset)||M.left!==(I==null?void 0:I.rect.left)||M.width!==(I==null?void 0:I.rect.width))&&T({offset:O,rect:M})}},[r,a,f,I==null?void 0:I.offset,I==null?void 0:I.rect.left,I==null?void 0:I.rect.width]);Hr(function(){S()},[S]);var E=A.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),r&&s.current&&(u.current=tf(r,s.current,S,{elementResize:"ResizeObserver"in window}))},[r,S]);Hr(function(){E()},[E]);var P=A.useCallback(function(M){s.current=M,E()},[E]);if(!n&&a!=="fixed"||!I)return null;var v=U.jsx("div",re({ref:P},Ee(K(K({},t),{},{offset:I.offset,position:a,rect:I.rect}),"menuPortal",{"menu-portal":!0}),o),i);return U.jsx(cl.Provider,{value:b},n?Ga.createPortal(v,n):v)},Gf=function(t){var n=t.isDisabled,i=t.isRtl;return{label:"container",direction:i?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},Vf=function(t){var n=t.children,i=t.innerProps,r=t.isDisabled,o=t.isRtl;return U.jsx("div",re({},Ee(t,"container",{"--is-disabled":r,"--is-rtl":o}),i),n)},Of=function(t,n){var i=t.theme.spacing,r=t.isMulti,o=t.hasValue,l=t.selectProps.controlShouldRenderValue;return K({alignItems:"center",display:r&&o&&l?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(i.baseUnit/2,"px ").concat(i.baseUnit*2,"px")})},Nf=function(t){var n=t.children,i=t.innerProps,r=t.isMulti,o=t.hasValue;return U.jsx("div",re({},Ee(t,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),i),n)},Df=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Lf=function(t){var n=t.children,i=t.innerProps;return U.jsx("div",re({},Ee(t,"indicatorsContainer",{indicators:!0}),i),n)},pl,Mf=["size"],zf=["innerProps","isRtl","size"];function Rf(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Hf=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3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AgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:Rf},fl=function(t){var n=t.size,i=ot(t,Mf);return U.jsx("svg",re({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Hf},i))},Xr=function(t){return U.jsx(fl,re({size:20},t),U.jsx("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},gl=function(t){return U.jsx(fl,re({size:20},t),U.jsx("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},hl=function(t,n){var i=t.isFocused,r=t.theme,o=r.spacing.baseUnit,l=r.colors;return K({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:i?l.neutral60:l.neutral20,padding:o*2,":hover":{color:i?l.neutral80:l.neutral40}})},Xf=hl,Wf=function(t){var n=t.children,i=t.innerProps;return U.jsx("div",re({},Ee(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),i),n||U.jsx(gl,null))},Zf=hl,jf=function(t){var n=t.children,i=t.innerProps;return U.jsx("div",re({},Ee(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),i),n||U.jsx(Xr,null))},Jf=function(t,n){var i=t.isDisabled,r=t.theme,o=r.spacing.baseUnit,l=r.colors;return K({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:i?l.neutral10:l.neutral20,marginBottom:o*2,marginTop:o*2})},Yf=function(t){var n=t.innerProps;return U.jsx("span",re({},n,Ee(t,"indicatorSeparator",{"indicator-separator":!0})))},_f=U.keyframes(pl||(pl=Rp([`
|
|
18
18
|
0%, 80%, 100% { opacity: 0; }
|
|
19
19
|
40% { opacity: 1; }
|
|
20
|
-
`]))),Uf=function(t,n){var i=t.isFocused,r=t.size,o=t.theme,l=o.colors,a=o.spacing.baseUnit;return K({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},n?{}:{color:i?l.neutral60:l.neutral20,padding:a*2})},Wr=function(t){var n=t.delay,i=t.offset;return U.jsx("span",{css:U.css({animation:"".concat(_f," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:i?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sI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5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},qf=function(t){var n=t.innerProps,i=t.isRtl,r=t.size,o=r===void 0?4:r,l=ot(t,zf);return U.jsx("div",re({},Ee(K(K({},l),{},{innerProps:n,isRtl:i,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),U.jsx(Wr,{delay:0,offset:i}),U.jsx(Wr,{delay:160,offset:!0}),U.jsx(Wr,{delay:320,offset:!i}))},Qf=function(t,n){var i=t.isDisabled,r=t.isFocused,o=t.theme,l=o.colors,a=o.borderRadius,s=o.spacing;return K({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:i?l.neutral5:l.neutral0,borderColor:i?l.neutral10:r?l.primary:l.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(l.primary):void 0,"&:hover":{borderColor:r?l.primary:l.neutral30}})},$f=function(t){var n=t.children,i=t.isDisabled,r=t.isFocused,o=t.innerRef,l=t.innerProps,a=t.menuIsOpen;return U.jsx("div",re({ref:o},Ee(t,"control",{control:!0,"control--is-disabled":i,"control--is-focused":r,"control--menu-is-open":a}),l,{"aria-disabled":i||void 0}),n)},Kf=$f,eg=["data"],tg=function(t,n){var i=t.theme.spacing;return n?{}:{paddingBottom:i.baseUnit*2,paddingTop:i.baseUnit*2}},ng=function(t){var n=t.children,i=t.cx,r=t.getStyles,o=t.getClassNames,l=t.Heading,a=t.headingProps,s=t.innerProps,u=t.label,c=t.theme,d=t.selectProps;return U.jsx("div",re({},Ee(t,"group",{group:!0}),s),U.jsx(l,re({},a,{selectProps:d,theme:c,getStyles:r,getClassNames:o,cx:i}),u),U.jsx("div",null,n))},rg=function(t,n){var i=t.theme,r=i.colors,o=i.spacing;return K({label:"group",cursor:"default",display:"block"},n?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},ig=function(t){var n=il(t);n.data;var i=ot(n,eg);return U.jsx("div",re({},Ee(t,"groupHeading",{"group-heading":!0}),i))},og=ng,lg=["innerRef","isDisabled","isHidden","inputClassName"],ag=function(t,n){var i=t.isDisabled,r=t.value,o=t.theme,l=o.spacing,a=o.colors;return K(K({visibility:i?"hidden":"visible",transform:r?"translateZ(0)":""},sg),n?{}:{margin:l.baseUnit/2,paddingBottom:l.baseUnit/2,paddingTop:l.baseUnit/2,color:a.neutral80})},ml={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},sg={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":K({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ml)},ug=function(t){return K({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},ml)},cg=function(t){var n=t.cx,i=t.value,r=il(t),o=r.innerRef,l=r.isDisabled,a=r.isHidden,s=r.inputClassName,u=ot(r,lg);return U.jsx("div",re({},Ee(t,"input",{"input-container":!0}),{"data-value":i||""}),U.jsx("input",re({className:n({input:!0},s),ref:o,style:ug(a),disabled:l},u)))},dg=cg,pg=function(t,n){var i=t.theme,r=i.spacing,o=i.borderRadius,l=i.colors;return K({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:l.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},fg=function(t,n){var i=t.theme,r=i.borderRadius,o=i.colors,l=t.cropWithEllipsis;return K({overflow:"hidden",textOverflow:l||l===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},gg=function(t,n){var i=t.theme,r=i.spacing,o=i.borderRadius,l=i.colors,a=t.isFocused;return K({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:a?l.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:l.dangerLight,color:l.danger}})},bl=function(t){var n=t.children,i=t.innerProps;return U.jsx("div",i,n)},hg=bl,mg=bl;function bg(e){var t=e.children,n=e.innerProps;return U.jsx("div",re({role:"button"},n),t||U.jsx(Xr,{size:14}))}var yg=function(t){var n=t.children,i=t.components,r=t.data,o=t.innerProps,l=t.isDisabled,a=t.removeProps,s=t.selectProps,u=i.Container,c=i.Label,d=i.Remove;return U.jsx(u,{data:r,innerProps:K(K({},Ee(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":l})),o),selectProps:s},U.jsx(c,{data:r,innerProps:K({},Ee(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},n),U.jsx(d,{data:r,innerProps:K(K({},Ee(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},a),selectProps:s}))},Ig=yg,vg=function(t,n){var i=t.isDisabled,r=t.isFocused,o=t.isSelected,l=t.theme,a=l.spacing,s=l.colors;return K({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:i?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(a.baseUnit*2,"px ").concat(a.baseUnit*3,"px"),":active":{backgroundColor:i?void 0:o?s.primary:s.primary50}})},Cg=function(t){var n=t.children,i=t.isDisabled,r=t.isFocused,o=t.isSelected,l=t.innerRef,a=t.innerProps;return U.jsx("div",re({},Ee(t,"option",{option:!0,"option--is-disabled":i,"option--is-focused":r,"option--is-selected":o}),{ref:l,"aria-disabled":i},a),n)},xg=Cg,Ag=function(t,n){var i=t.theme,r=i.spacing,o=i.colors;return K({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},Sg=function(t){var n=t.children,i=t.innerProps;return U.jsx("div",re({},Ee(t,"placeholder",{placeholder:!0}),i),n)},wg=Sg,Eg=function(t,n){var i=t.isDisabled,r=t.theme,o=r.spacing,l=r.colors;return K({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:i?l.neutral40:l.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},kg=function(t){var n=t.children,i=t.isDisabled,r=t.innerProps;return U.jsx("div",re({},Ee(t,"singleValue",{"single-value":!0,"single-value--is-disabled":i}),r),n)},Bg=kg,Lt={ClearIndicator:jf,Control:Kf,DropdownIndicator:Wf,DownChevron:gl,CrossIcon:Xr,Group:og,GroupHeading:ig,IndicatorsContainer:Lf,IndicatorSeparator:Yf,Input:dg,LoadingIndicator:qf,Menu:Af,MenuList:wf,MenuPortal:Tf,LoadingMessage:Pf,NoOptionsMessage:Bf,MultiValue:Ig,MultiValueContainer:hg,MultiValueLabel:mg,MultiValueRemove:bg,Option:xg,Placeholder:wg,SelectContainer:Vf,SingleValue:Bg,ValueContainer:Nf},Pg=function(t){return K(K({},Lt),t.components)},yl=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Fg(e,t){return!!(e===t||yl(e)&&yl(t))}function Tg(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Fg(e[n],t[n]))return!1;return!0}function Gg(e,t){t===void 0&&(t=Tg);var n=null;function i(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var l=e.apply(this,r);return n={lastResult:l,lastArgs:r,lastThis:this},l}return i.clear=function(){n=null},i}function Vg(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var Og=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:Vg},Ng=function(t){return U.jsx("span",re({css:Og},t))},Il=Ng,Dg={guidance:function(t){var n=t.isSearchable,i=t.isMulti,r=t.tabSelectsValue,o=t.context,l=t.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return l?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(i?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,i=t.label,r=i===void 0?"":i,o=t.labels,l=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return l?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(t){var n=t.context,i=t.focused,r=t.options,o=t.label,l=o===void 0?"":o,a=t.selectValue,s=t.isDisabled,u=t.isSelected,c=t.isAppleDevice,d=function(b,C){return b&&b.length?"".concat(b.indexOf(C)+1," of ").concat(b.length):""};if(n==="value"&&a)return"value ".concat(l," focused, ").concat(d(a,i),".");if(n==="menu"&&c){var f=s?" disabled":"",p="".concat(u?" selected":"").concat(f);return"".concat(l).concat(p,", ").concat(d(r,i),".")}return""},onFilter:function(t){var n=t.inputValue,i=t.resultsMessage;return"".concat(i).concat(n?" for search term "+n:"",".")}},Lg=function(t){var n=t.ariaSelection,i=t.focusedOption,r=t.focusedValue,o=t.focusableOptions,l=t.isFocused,a=t.selectValue,s=t.selectProps,u=t.id,c=t.isAppleDevice,d=s.ariaLiveMessages,f=s.getOptionLabel,p=s.inputValue,y=s.isMulti,b=s.isOptionDisabled,C=s.isSearchable,I=s.menuIsOpen,T=s.options,S=s.screenReaderStatus,k=s.tabSelectsValue,E=s.isLoading,A=s["aria-label"],M=s["aria-live"],F=x.useMemo(function(){return K(K({},Dg),d||{})},[d]),O=x.useMemo(function(){var W="";if(n&&F.onChange){var J=n.option,le=n.options,se=n.removedValue,G=n.removedValues,g=n.value,ue=function(fe){return Array.isArray(fe)?null:fe},_=se||J||ue(g),m=_?f(_):"",pe=le||G||void 0,te=pe?pe.map(f):[],ne=K({isDisabled:_&&b(_,a),label:m,labels:te},n);W=F.onChange(ne)}return W},[n,F,b,a,f]),w=x.useMemo(function(){var W="",J=i||r,le=!!(i&&a&&a.includes(i));if(J&&F.onFocus){var se={focused:J,label:f(J),isDisabled:b(J,a),isSelected:le,options:o,context:J===i?"menu":"value",selectValue:a,isAppleDevice:c};W=F.onFocus(se)}return W},[i,r,f,b,F,o,a,c]),N=x.useMemo(function(){var W="";if(I&&T.length&&!E&&F.onFilter){var J=S({count:o.length});W=F.onFilter({inputValue:p,resultsMessage:J})}return W},[o,p,I,F,T,S,E]),V=(n==null?void 0:n.action)==="initial-input-focus",H=x.useMemo(function(){var W="";if(F.guidance){var J=r?"value":I?"menu":"input";W=F.guidance({"aria-label":A,context:J,isDisabled:i&&b(i,a),isMulti:y,isSearchable:C,tabSelectsValue:k,isInitialFocus:V})}return W},[A,i,r,y,b,C,I,F,a,k,V]),q=U.jsx(x.Fragment,null,U.jsx("span",{id:"aria-selection"},O),U.jsx("span",{id:"aria-focused"},w),U.jsx("span",{id:"aria-results"},N),U.jsx("span",{id:"aria-guidance"},H));return U.jsx(x.Fragment,null,U.jsx(Il,{id:u},V&&q),U.jsx(Il,{"aria-live":M,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},l&&!V&&q))},Mg=Lg,Zr=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],zg=new RegExp("["+Zr.map(function(e){return e.letters}).join("")+"]","g"),vl={},jr=0;jr<Zr.length;jr++)for(var Jr=Zr[jr],Yr=0;Yr<Jr.letters.length;Yr++)vl[Jr.letters[Yr]]=Jr.base;var Cl=function(t){return t.replace(zg,function(n){return vl[n]})},Rg=Gg(Cl),xl=function(t){return t.replace(/^\s+|\s+$/g,"")},Hg=function(t){return"".concat(t.label," ").concat(t.value)},Xg=function(t){return function(n,i){if(n.data.__isNew__)return!0;var r=K({ignoreCase:!0,ignoreAccents:!0,stringify:Hg,trim:!0,matchFrom:"any"},t),o=r.ignoreCase,l=r.ignoreAccents,a=r.stringify,s=r.trim,u=r.matchFrom,c=s?xl(i):i,d=s?xl(a(n)):a(n);return o&&(c=c.toLowerCase(),d=d.toLowerCase()),l&&(c=Rg(c),d=Cl(d)),u==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},Wg=["innerRef"];function Zg(e){var t=e.innerRef,n=ot(e,Wg),i=hf(n,"onExited","in","enter","exit","appear");return U.jsx("input",re({ref:t},i,{css:U.css({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0Vs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c29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var jg=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function Jg(e){var t=e.isEnabled,n=e.onBottomArrive,i=e.onBottomLeave,r=e.onTopArrive,o=e.onTopLeave,l=x.useRef(!1),a=x.useRef(!1),s=x.useRef(0),u=x.useRef(null),c=x.useCallback(function(C,I){if(u.current!==null){var T=u.current,S=T.scrollTop,k=T.scrollHeight,E=T.clientHeight,A=u.current,M=I>0,F=k-E-S,O=!1;F>I&&l.current&&(i&&i(C),l.current=!1),M&&a.current&&(o&&o(C),a.current=!1),M&&I>F?(n&&!l.current&&n(C),A.scrollTop=k,O=!0,l.current=!0):!M&&-I>S&&(r&&!a.current&&r(C),A.scrollTop=0,O=!0,a.current=!0),O&&jg(C)}},[n,i,r,o]),d=x.useCallback(function(C){c(C,C.deltaY)},[c]),f=x.useCallback(function(C){s.current=C.changedTouches[0].clientY},[]),p=x.useCallback(function(C){var I=s.current-C.changedTouches[0].clientY;c(C,I)},[c]),y=x.useCallback(function(C){if(C){var I=pf?{passive:!1}:!1;C.addEventListener("wheel",d,I),C.addEventListener("touchstart",f,I),C.addEventListener("touchmove",p,I)}},[p,f,d]),b=x.useCallback(function(C){C&&(C.removeEventListener("wheel",d,!1),C.removeEventListener("touchstart",f,!1),C.removeEventListener("touchmove",p,!1))},[p,f,d]);return x.useEffect(function(){if(t){var C=u.current;return y(C),function(){b(C)}}},[t,y,b]),function(C){u.current=C}}var Al=["boxSizing","height","overflow","paddingRight","position"],Sl={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function wl(e){e.cancelable&&e.preventDefault()}function El(e){e.stopPropagation()}function kl(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Bl(){return"ontouchstart"in window||navigator.maxTouchPoints}var Pl=!!(typeof window<"u"&&window.document&&window.document.createElement),Kt=0,Mt={capture:!1,passive:!1};function Yg(e){var t=e.isEnabled,n=e.accountForScrollbars,i=n===void 0?!0:n,r=x.useRef({}),o=x.useRef(null),l=x.useCallback(function(s){if(Pl){var u=document.body,c=u&&u.style;if(i&&Al.forEach(function(y){var b=c&&c[y];r.current[y]=b}),i&&Kt<1){var d=parseInt(r.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,p=window.innerWidth-f+d||0;Object.keys(Sl).forEach(function(y){var b=Sl[y];c&&(c[y]=b)}),c&&(c.paddingRight="".concat(p,"px"))}u&&Bl()&&(u.addEventListener("touchmove",wl,Mt),s&&(s.addEventListener("touchstart",kl,Mt),s.addEventListener("touchmove",El,Mt))),Kt+=1}},[i]),a=x.useCallback(function(s){if(Pl){var u=document.body,c=u&&u.style;Kt=Math.max(Kt-1,0),i&&Kt<1&&Al.forEach(function(d){var f=r.current[d];c&&(c[d]=f)}),u&&Bl()&&(u.removeEventListener("touchmove",wl,Mt),s&&(s.removeEventListener("touchstart",kl,Mt),s.removeEventListener("touchmove",El,Mt)))}},[i]);return x.useEffect(function(){if(t){var s=o.current;return l(s),function(){a(s)}}},[t,l,a]),function(s){o.current=s}}function _g(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Ug=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},qg=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;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KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:_g};function Qg(e){var t=e.children,n=e.lockEnabled,i=e.captureEnabled,r=i===void 0?!0:i,o=e.onBottomArrive,l=e.onBottomLeave,a=e.onTopArrive,s=e.onTopLeave,u=Jg({isEnabled:r,onBottomArrive:o,onBottomLeave:l,onTopArrive:a,onTopLeave:s}),c=Yg({isEnabled:n}),d=function(p){u(p),c(p)};return U.jsx(x.Fragment,null,n&&U.jsx("div",{onClick:Ug,css:qg}),t(d))}function $g(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Kg=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:$g},eh=function(t){var n=t.name,i=t.onFocus;return U.jsx("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:i,css:Kg,value:"",onChange:function(){}})},th=eh;function _r(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function nh(){return _r(/^iPhone/i)}function Fl(){return _r(/^Mac/i)}function rh(){return _r(/^iPad/i)||Fl()&&navigator.maxTouchPoints>1}function ih(){return nh()||rh()}function oh(){return Fl()||ih()}var lh=function(t){return t.label},Tl=function(t){return t.label},Gl=function(t){return t.value},ah=function(t){return!!t.isDisabled},sh={clearIndicator:Zf,container:Gf,control:Qf,dropdownIndicator:Xf,group:tg,groupHeading:rg,indicatorsContainer:Df,indicatorSeparator:Jf,input:ag,loadingIndicator:Uf,loadingMessage:kf,menu:vf,menuList:Sf,menuPortal:Ff,multiValue:pg,multiValueLabel:fg,multiValueRemove:gg,noOptionsMessage:Ef,option:vg,placeholder:Ag,singleValue:Eg,valueContainer:Of};function uh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=K({},e);return Object.keys(t).forEach(function(i){var r=i;e[r]?n[r]=function(o,l){return t[r](e[r](o,l),l)}:n[r]=t[r]}),n}var ch={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},dh=4,Vl=4,ph=38,fh=Vl*2,gh={baseUnit:Vl,controlHeight:ph,menuGutter:fh},en={borderRadius:dh,colors:ch,spacing:gh},hh={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:al(),captureMenuScroll:!al(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Xg(),formatGroupLabel:lh,getOptionLabel:Tl,getOptionValue:Gl,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:ah,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!cf(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Ol(e,t,n,i){var r=zl(e,t,n),o=Rl(e,t,n),l=Ml(e,t),a=Vn(e,t);return{type:"option",data:t,isDisabled:r,isSelected:o,label:l,value:a,index:i}}function Gn(e,t){return e.options.map(function(n,i){if("options"in n){var r=n.options.map(function(l,a){return Ol(e,l,t,a)}).filter(function(l){return Ll(e,l)});return r.length>0?{type:"group",data:n,options:r,index:i}:void 0}var o=Ol(e,n,t,i);return Ll(e,o)?o:void 0}).filter(ff)}function Nl(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Dt(n.options.map(function(i){return i.data}))):t.push(n.data),t},[])}function Dl(e,t){return e.reduce(function(n,i){return i.type==="group"?n.push.apply(n,Dt(i.options.map(function(r){return{data:r.data,id:"".concat(t,"-").concat(i.index,"-").concat(r.index)}}))):n.push({data:i.data,id:"".concat(t,"-").concat(i.index)}),n},[])}function mh(e,t){return Nl(Gn(e,t))}function Ll(e,t){var n=e.inputValue,i=n===void 0?"":n,r=t.data,o=t.isSelected,l=t.label,a=t.value;return(!Xl(e)||!o)&&Hl(e,{label:l,value:a,data:r},i)}function bh(e,t){var n=e.focusedValue,i=e.selectValue,r=i.indexOf(n);if(r>-1){var o=t.indexOf(n);if(o>-1)return n;if(r<t.length)return t[r]}return null}function yh(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Ur=function(t,n){var i,r=(i=t.find(function(o){return o.data===n}))===null||i===void 0?void 0:i.id;return r||null},Ml=function(t,n){return t.getOptionLabel(n)},Vn=function(t,n){return t.getOptionValue(n)};function zl(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function Rl(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var i=Vn(e,t);return n.some(function(r){return Vn(e,r)===i})}function Hl(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Xl=function(t){var n=t.hideSelectedOptions,i=t.isMulti;return n===void 0?i:n},Ih=1,qr=function(e){Vp(n,e);var t=Dp(n);function n(i){var r;if(Tp(this,n),r=t.call(this,i),r.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(s){r.controlRef=s},r.focusedOptionRef=null,r.getFocusedOptionRef=function(s){r.focusedOptionRef=s},r.menuListRef=null,r.getMenuListRef=function(s){r.menuListRef=s},r.inputRef=null,r.getInputRef=function(s){r.inputRef=s},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(s,u){var c=r.props,d=c.onChange,f=c.name;u.name=f,r.ariaOnChange(s,u),d(s,u)},r.setValue=function(s,u,c){var d=r.props,f=d.closeMenuOnSelect,p=d.isMulti,y=d.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:y}),f&&(r.setState({inputIsHiddenAfterUpdate:!p}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(s,{action:u,option:c})},r.selectOption=function(s){var u=r.props,c=u.blurInputOnSelect,d=u.isMulti,f=u.name,p=r.state.selectValue,y=d&&r.isOptionSelected(s,p),b=r.isOptionDisabled(s,p);if(y){var C=r.getOptionValue(s);r.setValue(p.filter(function(I){return r.getOptionValue(I)!==C}),"deselect-option",s)}else if(!b)d?r.setValue([].concat(Dt(p),[s]),"select-option",s):r.setValue(s,"select-option");else{r.ariaOnChange(s,{action:"select-option",option:s,name:f});return}c&&r.blurInput()},r.removeValue=function(s){var u=r.props.isMulti,c=r.state.selectValue,d=r.getOptionValue(s),f=c.filter(function(y){return r.getOptionValue(y)!==d}),p=$t(u,f,f[0]||null);r.onChange(p,{action:"remove-value",removedValue:s}),r.focusInput()},r.clearValue=function(){var s=r.state.selectValue;r.onChange($t(r.props.isMulti,[],null),{action:"clear",removedValues:s})},r.popValue=function(){var s=r.props.isMulti,u=r.state.selectValue,c=u[u.length-1],d=u.slice(0,u.length-1),f=$t(s,d,d[0]||null);c&&r.onChange(f,{action:"pop-value",removedValue:c})},r.getFocusedOptionId=function(s){return Ur(r.state.focusableOptionsWithIds,s)},r.getFocusableOptionsWithIds=function(){return Dl(Gn(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];return of.apply(void 0,[r.props.classNamePrefix].concat(u))},r.getOptionLabel=function(s){return Ml(r.props,s)},r.getOptionValue=function(s){return Vn(r.props,s)},r.getStyles=function(s,u){var c=r.props.unstyled,d=sh[s](u,c);d.boxSizing="border-box";var f=r.props.styles[s];return f?f(d,u):d},r.getClassNames=function(s,u){var c,d;return(c=(d=r.props.classNames)[s])===null||c===void 0?void 0:c.call(d,u)},r.getElementId=function(s){return"".concat(r.state.instancePrefix,"-").concat(s)},r.getComponents=function(){return Pg(r.props)},r.buildCategorizedOptions=function(){return Gn(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return Nl(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(s,u){r.setState({ariaSelection:K({value:s},u)})},r.onMenuMouseDown=function(s){s.button===0&&(s.stopPropagation(),s.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(s){r.blockOptionHover=!1},r.onControlMouseDown=function(s){if(!s.defaultPrevented){var u=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&r.onMenuClose():u&&r.openMenu("first"):(u&&(r.openAfterFocus=!0),r.focusInput()),s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&s.preventDefault()}},r.onDropdownIndicatorMouseDown=function(s){if(!(s&&s.type==="mousedown"&&s.button!==0)&&!r.props.isDisabled){var u=r.props,c=u.isMulti,d=u.menuIsOpen;r.focusInput(),d?(r.setState({inputIsHiddenAfterUpdate:!c}),r.onMenuClose()):r.openMenu("first"),s.preventDefault()}},r.onClearIndicatorMouseDown=function(s){s&&s.type==="mousedown"&&s.button!==0||(r.clearValue(),s.preventDefault(),r.openAfterFocus=!1,s.type==="touchend"?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(s){typeof r.props.closeMenuOnScroll=="boolean"?s.target instanceof HTMLElement&&Bn(s.target)&&r.props.onMenuClose():typeof r.props.closeMenuOnScroll=="function"&&r.props.closeMenuOnScroll(s)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(s){var u=s.touches,c=u&&u.item(0);c&&(r.initialTouchX=c.clientX,r.initialTouchY=c.clientY,r.userIsDragging=!1)},r.onTouchMove=function(s){var u=s.touches,c=u&&u.item(0);if(c){var d=Math.abs(c.clientX-r.initialTouchX),f=Math.abs(c.clientY-r.initialTouchY),p=5;r.userIsDragging=d>p||f>p}},r.onTouchEnd=function(s){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(s.target)&&r.menuListRef&&!r.menuListRef.contains(s.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(s){r.userIsDragging||r.onControlMouseDown(s)},r.onClearIndicatorTouchEnd=function(s){r.userIsDragging||r.onClearIndicatorMouseDown(s)},r.onDropdownIndicatorTouchEnd=function(s){r.userIsDragging||r.onDropdownIndicatorMouseDown(s)},r.handleInputChange=function(s){var u=r.props.inputValue,c=s.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(c,{action:"input-change",prevInputValue:u}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(s){r.props.onFocus&&r.props.onFocus(s),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(s){var u=r.props.inputValue;if(r.menuListRef&&r.menuListRef.contains(document.activeElement)){r.inputRef.focus();return}r.props.onBlur&&r.props.onBlur(s),r.onInputChange("",{action:"input-blur",prevInputValue:u}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1})},r.onOptionHover=function(s){if(!(r.blockOptionHover||r.state.focusedOption===s)){var u=r.getFocusableOptions(),c=u.indexOf(s);r.setState({focusedOption:s,focusedOptionId:c>-1?r.getFocusedOptionId(s):null})}},r.shouldHideSelectedOptions=function(){return Xl(r.props)},r.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),r.focus()},r.onKeyDown=function(s){var u=r.props,c=u.isMulti,d=u.backspaceRemovesValue,f=u.escapeClearsValue,p=u.inputValue,y=u.isClearable,b=u.isDisabled,C=u.menuIsOpen,I=u.onKeyDown,T=u.tabSelectsValue,S=u.openMenuOnFocus,k=r.state,E=k.focusedOption,A=k.focusedValue,M=k.selectValue;if(!b&&!(typeof I=="function"&&(I(s),s.defaultPrevented))){switch(r.blockOptionHover=!0,s.key){case"ArrowLeft":if(!c||p)return;r.focusValue("previous");break;case"ArrowRight":if(!c||p)return;r.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(A)r.removeValue(A);else{if(!d)return;c?r.popValue():y&&r.clearValue()}break;case"Tab":if(r.isComposing||s.shiftKey||!C||!T||!E||S&&r.isOptionSelected(E,M))return;r.selectOption(E);break;case"Enter":if(s.keyCode===229)break;if(C){if(!E||r.isComposing)return;r.selectOption(E);break}return;case"Escape":C?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:p}),r.onMenuClose()):y&&f&&r.clearValue();break;case" ":if(p)return;if(!C){r.openMenu("first");break}if(!E)return;r.selectOption(E);break;case"ArrowUp":C?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":C?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!C)return;r.focusOption("pageup");break;case"PageDown":if(!C)return;r.focusOption("pagedown");break;case"Home":if(!C)return;r.focusOption("first");break;case"End":if(!C)return;r.focusOption("last");break;default:return}s.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++Ih),r.state.selectValue=kn(i.value),i.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),l=r.buildFocusableOptions(),a=l.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=l[a],r.state.focusedOptionId=Ur(o,l[a])}return r}return Gp(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&ll(this.menuListRef,this.focusedOptionRef),oh()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(r){var o=this.props,l=o.isDisabled,a=o.menuIsOpen,s=this.state.isFocused;(s&&!l&&r.isDisabled||s&&a&&!r.menuIsOpen)&&this.focusInput(),s&&l&&!r.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!s&&!l&&r.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(ll(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(r,o){this.props.onInputChange(r,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(r){var o=this,l=this.state,a=l.selectValue,s=l.isFocused,u=this.buildFocusableOptions(),c=r==="first"?0:u.length-1;if(!this.props.isMulti){var d=u.indexOf(a[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(r){var o=this.state,l=o.selectValue,a=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=l.indexOf(a);a||(s=-1);var u=l.length-1,c=-1;if(l.length){switch(r){case"previous":s===0?c=0:s===-1?c=u:c=s-1;break;case"next":s>-1&&s<u&&(c=s+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:l[c]})}}}},{key:"focusOption",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,l=this.state.focusedOption,a=this.getFocusableOptions();if(a.length){var s=0,u=a.indexOf(l);l||(u=-1),r==="up"?s=u>0?u-1:a.length-1:r==="down"?s=(u+1)%a.length:r==="pageup"?(s=u-o,s<0&&(s=0)):r==="pagedown"?(s=u+o,s>a.length-1&&(s=a.length-1)):r==="last"&&(s=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(a[s])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(en):K(K({},en),this.props.theme):en}},{key:"getCommonProps",value:function(){var r=this.clearValue,o=this.cx,l=this.getStyles,a=this.getClassNames,s=this.getValue,u=this.selectOption,c=this.setValue,d=this.props,f=d.isMulti,p=d.isRtl,y=d.options,b=this.hasValue();return{clearValue:r,cx:o,getStyles:l,getClassNames:a,getValue:s,hasValue:b,isMulti:f,isRtl:p,options:y,selectOption:u,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var r=this.state.selectValue;return r.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var r=this.props,o=r.isClearable,l=r.isMulti;return o===void 0?l:o}},{key:"isOptionDisabled",value:function(r,o){return zl(this.props,r,o)}},{key:"isOptionSelected",value:function(r,o){return Rl(this.props,r,o)}},{key:"filterOption",value:function(r,o){return Hl(this.props,r,o)}},{key:"formatOptionLabel",value:function(r,o){if(typeof this.props.formatOptionLabel=="function"){var l=this.props.inputValue,a=this.state.selectValue;return this.props.formatOptionLabel(r,{context:o,inputValue:l,selectValue:a})}else return this.getOptionLabel(r)}},{key:"formatGroupLabel",value:function(r){return this.props.formatGroupLabel(r)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var r=this.props,o=r.isDisabled,l=r.isSearchable,a=r.inputId,s=r.inputValue,u=r.tabIndex,c=r.form,d=r.menuIsOpen,f=r.required,p=this.getComponents(),y=p.Input,b=this.state,C=b.inputIsHidden,I=b.ariaSelection,T=this.commonProps,S=a||this.getElementId("input"),k=K(K(K({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!l&&{"aria-readonly":!0}),this.hasValue()?(I==null?void 0:I.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return l?ge.createElement(y,re({},T,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:S,innerRef:this.getInputRef,isDisabled:o,isHidden:C,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:s},k)):ge.createElement(Zg,re({id:S,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:En,onFocus:this.onInputFocus,disabled:o,tabIndex:u,inputMode:"none",form:c,value:""},k))}},{key:"renderPlaceholderOrValue",value:function(){var r=this,o=this.getComponents(),l=o.MultiValue,a=o.MultiValueContainer,s=o.MultiValueLabel,u=o.MultiValueRemove,c=o.SingleValue,d=o.Placeholder,f=this.commonProps,p=this.props,y=p.controlShouldRenderValue,b=p.isDisabled,C=p.isMulti,I=p.inputValue,T=p.placeholder,S=this.state,k=S.selectValue,E=S.focusedValue,A=S.isFocused;if(!this.hasValue()||!y)return I?null:ge.createElement(d,re({},f,{key:"placeholder",isDisabled:b,isFocused:A,innerProps:{id:this.getElementId("placeholder")}}),T);if(C)return k.map(function(F,O){var w=F===E,N="".concat(r.getOptionLabel(F),"-").concat(r.getOptionValue(F));return ge.createElement(l,re({},f,{components:{Container:a,Label:s,Remove:u},isFocused:w,isDisabled:b,key:N,index:O,removeProps:{onClick:function(){return r.removeValue(F)},onTouchEnd:function(){return r.removeValue(F)},onMouseDown:function(H){H.preventDefault()}},data:F}),r.formatOptionLabel(F,"value"))});if(I)return null;var M=k[0];return ge.createElement(c,re({},f,{data:M,isDisabled:b}),this.formatOptionLabel(M,"value"))}},{key:"renderClearIndicator",value:function(){var r=this.getComponents(),o=r.ClearIndicator,l=this.commonProps,a=this.props,s=a.isDisabled,u=a.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||s||!this.hasValue()||u)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return ge.createElement(o,re({},l,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var r=this.getComponents(),o=r.LoadingIndicator,l=this.commonProps,a=this.props,s=a.isDisabled,u=a.isLoading,c=this.state.isFocused;if(!o||!u)return null;var d={"aria-hidden":"true"};return ge.createElement(o,re({},l,{innerProps:d,isDisabled:s,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var r=this.getComponents(),o=r.DropdownIndicator,l=r.IndicatorSeparator;if(!o||!l)return null;var a=this.commonProps,s=this.props.isDisabled,u=this.state.isFocused;return ge.createElement(l,re({},a,{isDisabled:s,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var r=this.getComponents(),o=r.DropdownIndicator;if(!o)return null;var l=this.commonProps,a=this.props.isDisabled,s=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return ge.createElement(o,re({},l,{innerProps:u,isDisabled:a,isFocused:s}))}},{key:"renderMenu",value:function(){var r=this,o=this.getComponents(),l=o.Group,a=o.GroupHeading,s=o.Menu,u=o.MenuList,c=o.MenuPortal,d=o.LoadingMessage,f=o.NoOptionsMessage,p=o.Option,y=this.commonProps,b=this.state.focusedOption,C=this.props,I=C.captureMenuScroll,T=C.inputValue,S=C.isLoading,k=C.loadingMessage,E=C.minMenuHeight,A=C.maxMenuHeight,M=C.menuIsOpen,F=C.menuPlacement,O=C.menuPosition,w=C.menuPortalTarget,N=C.menuShouldBlockScroll,V=C.menuShouldScrollIntoView,H=C.noOptionsMessage,q=C.onMenuScrollToTop,W=C.onMenuScrollToBottom;if(!M)return null;var J=function(m,pe){var te=m.type,ne=m.data,ke=m.isDisabled,fe=m.isSelected,Ge=m.label,de=m.value,ve=b===ne,Ce=ke?void 0:function(){return r.onOptionHover(ne)},Ve=ke?void 0:function(){return r.selectOption(ne)},Be="".concat(r.getElementId("option"),"-").concat(pe),De={id:Be,onClick:Ve,onMouseMove:Ce,onMouseOver:Ce,tabIndex:-1,role:"option","aria-selected":r.state.isAppleDevice?void 0:fe};return ge.createElement(p,re({},y,{innerProps:De,data:ne,isDisabled:ke,isSelected:fe,key:Be,label:Ge,type:te,value:de,isFocused:ve,innerRef:ve?r.getFocusedOptionRef:void 0}),r.formatOptionLabel(m.data,"menu"))},le;if(this.hasOptions())le=this.getCategorizedOptions().map(function(_){if(_.type==="group"){var m=_.data,pe=_.options,te=_.index,ne="".concat(r.getElementId("group"),"-").concat(te),ke="".concat(ne,"-heading");return ge.createElement(l,re({},y,{key:ne,data:m,options:pe,Heading:a,headingProps:{id:ke,data:_.data},label:r.formatGroupLabel(_.data)}),_.options.map(function(fe){return J(fe,"".concat(te,"-").concat(fe.index))}))}else if(_.type==="option")return J(_,"".concat(_.index))});else if(S){var se=k({inputValue:T});if(se===null)return null;le=ge.createElement(d,y,se)}else{var G=H({inputValue:T});if(G===null)return null;le=ge.createElement(f,y,G)}var g={minMenuHeight:E,maxMenuHeight:A,menuPlacement:F,menuPosition:O,menuShouldScrollIntoView:V},ue=ge.createElement(Cf,re({},y,g),function(_){var m=_.ref,pe=_.placerProps,te=pe.placement,ne=pe.maxHeight;return ge.createElement(s,re({},y,g,{innerRef:m,innerProps:{onMouseDown:r.onMenuMouseDown,onMouseMove:r.onMenuMouseMove},isLoading:S,placement:te}),ge.createElement(Qg,{captureEnabled:I,onTopArrive:q,onBottomArrive:W,lockEnabled:N},function(ke){return ge.createElement(u,re({},y,{innerRef:function(Ge){r.getMenuListRef(Ge),ke(Ge)},innerProps:{role:"listbox","aria-multiselectable":y.isMulti,id:r.getElementId("listbox")},isLoading:S,maxHeight:ne,focusedOption:b}),le)}))});return w||O==="fixed"?ge.createElement(c,re({},y,{appendTo:w,controlElement:this.controlRef,menuPlacement:F,menuPosition:O}),ue):ue}},{key:"renderFormField",value:function(){var r=this,o=this.props,l=o.delimiter,a=o.isDisabled,s=o.isMulti,u=o.name,c=o.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!a)return ge.createElement(th,{name:u,onFocus:this.onValueInputFocus});if(!(!u||a))if(s)if(l){var f=d.map(function(b){return r.getOptionValue(b)}).join(l);return ge.createElement("input",{name:u,type:"hidden",value:f})}else{var p=d.length>0?d.map(function(b,C){return ge.createElement("input",{key:"i-".concat(C),name:u,type:"hidden",value:r.getOptionValue(b)})}):ge.createElement("input",{name:u,type:"hidden",value:""});return ge.createElement("div",null,p)}else{var y=d[0]?this.getOptionValue(d[0]):"";return ge.createElement("input",{name:u,type:"hidden",value:y})}}},{key:"renderLiveRegion",value:function(){var r=this.commonProps,o=this.state,l=o.ariaSelection,a=o.focusedOption,s=o.focusedValue,u=o.isFocused,c=o.selectValue,d=this.getFocusableOptions();return ge.createElement(Mg,re({},r,{id:this.getElementId("live-region"),ariaSelection:l,focusedOption:a,focusedValue:s,isFocused:u,selectValue:c,focusableOptions:d,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var r=this.getComponents(),o=r.Control,l=r.IndicatorsContainer,a=r.SelectContainer,s=r.ValueContainer,u=this.props,c=u.className,d=u.id,f=u.isDisabled,p=u.menuIsOpen,y=this.state.isFocused,b=this.commonProps=this.getCommonProps();return ge.createElement(a,re({},b,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:y}),this.renderLiveRegion(),ge.createElement(o,re({},b,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:y,menuIsOpen:p}),ge.createElement(s,re({},b,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),ge.createElement(l,re({},b,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(r,o){var l=o.prevProps,a=o.clearFocusValueOnUpdate,s=o.inputIsHiddenAfterUpdate,u=o.ariaSelection,c=o.isFocused,d=o.prevWasFocused,f=o.instancePrefix,p=r.options,y=r.value,b=r.menuIsOpen,C=r.inputValue,I=r.isMulti,T=kn(y),S={};if(l&&(y!==l.value||p!==l.options||b!==l.menuIsOpen||C!==l.inputValue)){var k=b?mh(r,T):[],E=b?Dl(Gn(r,T),"".concat(f,"-option")):[],A=a?bh(o,T):null,M=yh(o,k),F=Ur(E,M);S={selectValue:T,focusedOption:M,focusedOptionId:F,focusableOptionsWithIds:E,focusedValue:A,clearFocusValueOnUpdate:!1}}var O=s!=null&&r!==l?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},w=u,N=c&&d;return c&&!N&&(w={value:$t(I,T,T[0]||null),options:T,action:"initial-input-focus"},N=!d),(u==null?void 0:u.action)==="initial-input-focus"&&(w=null),K(K(K({},S),O),{},{prevProps:r,ariaSelection:w,prevWasFocused:N})}}]),n}(x.Component);qr.defaultProps=hh;var vh=x.forwardRef(function(e,t){var n=Jo(e);return ge.createElement(qr,re({ref:t},n))}),On=vh;const Ch=en,Nn={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},boxShadow:{button:"rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px",card:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",dropdown:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",input:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},spacing:{baseUnit:4,controlHeight:32,menuGutter:8}},Wl={colors:{},spacing:{baseUnit:4,controlHeight:32,menuGutter:8},boxShadow:{button:"none",input:"none",card:"none",dropdown:"none"}};function Zl(e){if(!e)return en;const t=typeof e=="function"?e(Nn):e,{colors:n,spacing:i,borderRadius:r}=Dn(Ch,t);return{borderRadius:r,colors:n,spacing:i}}function Dn(e,...t){const n={borderRadius:e.borderRadius,colors:{...e.colors},spacing:{...e.spacing},boxShadow:{...e.boxShadow}};for(const i of t)i&&(n.borderRadius=i.borderRadius??n.borderRadius,Object.assign(n.boxShadow,i.boxShadow),Object.assign(n.colors,i.colors),Object.assign(n.spacing,i.spacing));return n}const xh=({...e})=>{const[t,n]=x.useState(!1),i={textDecoration:"underline",textUnderlineOffset:"3px",color:"inherit",transition:"opacity 0.2s ease",opacity:t?.7:1};return B.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"2px"},children:[B.jsx("a",{...e,target:"_blank",rel:"noopener noreferrer",style:i,onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1)}),B.jsx("span",{style:{fontSize:"0.7em",opacity:.7},children:"↗"})]})};function jl(e){const{field:t,markdown:n}=e,{prop:i}=t,{getClassNames:r,getStyles:o,theme:l}=Te(),a=x.useMemo(()=>({color:l.colors.neutral50,fontWeight:400,fontSize:"0.75rem",gridArea:"description",textWrap:"balance",lineHeight:"1.5"}),[l.colors.neutral50]),s=x.useMemo(()=>({a:xh}),[]),u=e;return i.type==="app"?B.jsx("p",{className:r("description",u),style:o("description",a,u),children:"Credentials are encrypted."}):i.description?B.jsxs("div",{className:r("description",u),style:o("description",a,u),children:[" ",B.jsx(Lo,{components:s,children:n})]}):null}function Jl(e){const{field:t}=e,{enableDebugging:n,errors:i={},prop:r={}}=t;if(!n||!i[r.name])return null;const o=i[r.name].map(s=>({type:"alert",alertType:"error",content:s,name:r.name})),l={display:"grid",gridTemplateColumns:"max-content"},a=()=>B.jsx(B.Fragment,{children:o.map((s,u)=>B.jsx(yn,{prop:s},u))});return B.jsx("div",{className:"pd-errors",style:l,children:B.jsx(a,{})})}function Yl(e){const{text:t,field:n}=e,{id:i}=n,{getProps:r,theme:o}=Te(),l={color:o.colors.neutral90,fontWeight:450,gridArea:"label",lineHeight:"1.5"};return B.jsx("label",{htmlFor:i,...r("label",l,e),children:t})}const _l=e=>{const{onChange:t}=e,{getProps:n,theme:i}=Te(),r={backgroundColor:i.colors.primary,borderRadius:i.borderRadius,border:"solid 1px",borderColor:i.colors.primary25,color:i.colors.primary25,padding:"0.5rem",fontSize:"0.8125rem",fontWeight:"450",gridArea:"control",cursor:"pointer",width:"100%"};return B.jsx("button",{onClick:t,type:"button",...n("loadMoreButton",r,e),children:"Load More"})},Ul=e=>{const{prop:t,enabled:n,onClick:i}=e,{getProps:r,theme:o}=Te(),l={color:o.colors.neutral60,display:"inline-flex",alignItems:"center",padding:`${o.spacing.baseUnit}px ${o.spacing.baseUnit*1.5}px ${o.spacing.baseUnit}px ${o.spacing.baseUnit*2.5}px`,border:`1px solid ${o.colors.neutral30}`,borderRadius:o.borderRadius,cursor:"pointer",fontSize:"0.8125rem",fontWeight:450,gap:o.spacing.baseUnit*2,textWrap:"nowrap"};return B.jsxs("button",{onClick:i,type:"button",...r("optionalFieldButton",l,e),children:[B.jsx("span",{children:n?"-":"+"}),B.jsx("span",{style:{marginRight:8},children:t.label||t.name})]})},ql={Description:jl,Errors:Jl,Label:Yl,OptionalFieldButton:Ul,Button:_l},Ln=x.createContext({classNames:{},classNamePrefix:"",components:{},styles:{},theme:Nn,unstyled:!1});function Ah(){const e=x.useContext(Ln)??{},t=Zl(e.theme??{});function n(){return e.classNamePrefix??""}function i(a){var c;const s=`${(e==null?void 0:e.classNamePrefix)??"pd-"}${a}`,u={...((c=e.classNames)==null?void 0:c[a])??{}};return typeof(u==null?void 0:u.container)=="function"&&(u.container=typeof(u==null?void 0:u.container)=="function"?(...d)=>{var f;return[(f=u==null?void 0:u.container)==null?void 0:f.call(u,...d),s].join(" ")}:()=>s),u}function r(a,s){var u;return{...Lt,...s??{},...((u=e==null?void 0:e.components)==null?void 0:u[a])??{}}}function o(a,s){var c;const u=(c=e.styles)==null?void 0:c[a];return uh(u??{},s??{})}function l(a,s){return{classNamePrefix:n(),classNames:i(a),components:r(a,s==null?void 0:s.components),styles:o(a,s==null?void 0:s.styles),theme:t}}return{getClassNamePrefix:n,getClassNames:i,getComponents:r,getProps:l,getStyles:o,theme:t}}function Te(){const e=x.useContext(Ln)??{},t=e.theme,n=e.unstyled?Wl:Nn,i=typeof t=="function"?Dn(n,t(n)):Dn(n,t);function r(s,u){var f;const c=`${(e==null?void 0:e.classNamePrefix)??"pd-"}${s.toLowerCase()}`,d=(f=e.classNames)==null?void 0:f[s];if(typeof d=="function"){const p=d,y={...u??{},theme:i};return[c,p(y)].filter(Boolean).join(" ")}return[c,d].filter(Boolean).join(" ")}function o(){return{...ql,...(e==null?void 0:e.components)??{}}}function l(s,u,c){var f;const d=(f=e.styles)==null?void 0:f[s];if(typeof d=="function"){const p=d,y={...c??{},theme:i};return p(u,y)}return d?{...u,...d}:u}function a(s,u,c){return{className:r(s,c),style:l(s,u,c)}}return{getClassNames:r,getComponents:o,getProps:a,getStyles:l,select:Ah(),theme:i}}const Sh=({children:e,...t})=>B.jsx(Ln.Provider,{value:t,children:e}),Qr=x.createContext(void 0),Qe=()=>{const e=x.useContext(Qr);if(!e)throw new Error("Must be used inside FormFieldContext.Provider");return e},Ql=(e,t)=>{const n=ut(),i={externalUserId:e.external_user_id,app:e.app,oauthAppId:e.oauth_app_id},r=st.useQuery({...t==null?void 0:t.useQueryOpts,queryKey:["accounts",e],queryFn:async()=>(await n.accounts.list(i)).data});return{...r,accounts:r.data||[]}};function Mn(e){const t=e.neutral0??"#ffffff",n=e.neutral20??"hsl(0, 0%, 80%)",i=e.neutral60??"hsl(0, 0%, 40%)",r=e.neutral80??"hsl(0, 0%, 20%)",o=e.optionHover??e.neutral20??"hsl(0, 0%, 80%)",l=e.optionSelected??e.neutral30??"hsl(0, 0%, 70%)",a=e.optionSelectedHover??e.neutral40??"hsl(0, 0%, 60%)",s=e.appIconBackground??e.neutral0??"#ffffff";return{surface:t,border:n,text:i,textStrong:r,hoverBg:o,selectedBg:l,selectedHoverBg:a,appIconBg:s}}function zn(e){const{colors:{surface:t,border:n,text:i,textStrong:r,hoverBg:o,selectedBg:l,selectedHoverBg:a},boxShadow:s}=e;return{control:u=>({...u,backgroundColor:t,borderColor:n,color:i,boxShadow:s.input}),menu:u=>({...u,backgroundColor:t,boxShadow:s.dropdown}),menuList:u=>({...u,backgroundColor:t}),singleValue:u=>({...u,color:i,fontSize:"0.875rem"}),input:u=>({...u,color:i,fontSize:"0.875rem"}),option:(u,c)=>{let d=t;return c.isSelected&&c.isFocused?d=a:c.isSelected?d=l:c.isFocused&&(d=o),{...u,backgroundColor:d,color:r,fontSize:"0.875rem",":active":{...u[":active"],backgroundColor:c.isDisabled?void 0:a}}}}}const wh=e=>B.jsx(Lt.Option,{...e,children:e.data.name});function $l({app:e}){const t=ut(),{externalUserId:n,oauthAppConfig:i}=qt(),r=Qe(),{id:o,prop:l,value:a,onChange:s}=r,{getProps:u,select:c,theme:d}=Te(),f=x.useMemo(()=>Mn(d.colors),[d.colors]),p=x.useMemo(()=>zn({colors:{surface:f.surface,border:f.border,text:f.text,textStrong:f.textStrong,hoverBg:f.hoverBg,selectedBg:f.selectedBg,selectedHoverBg:f.selectedHoverBg},boxShadow:d.boxShadow}),[f,d.boxShadow]),y={color:d.colors.neutral60,gridArea:"control"},b={backgroundColor:d.colors.primary,borderRadius:d.borderRadius,border:"solid 1px",borderColor:d.colors.primary25,color:d.colors.primary25,padding:"0.25rem 0.5rem",gridArea:"control"},C={components:{Option:wh},styles:{...p,control:(w,N)=>{var V;return{...((V=p.control)==null?void 0:V.call(p,w,N))??w,gridArea:"control"}}}},I=c.getProps("controlAppSelect",C),T=i==null?void 0:i[e.nameSlug],{isLoading:S,accounts:k,refetch:E}=Ql({external_user_id:n,app:e.nameSlug,oauth_app_id:T},{useQueryOpts:{enabled:!!e,suspense:!!e}}),A=async()=>{t.connectAccount({app:l.app,oauthAppId:T,onSuccess:async w=>{await E(),s({authProvisionId:w.id})},onError:()=>{}})},M={id:"_new",name:`Connect new ${e.name} account...`},F=x.useMemo(()=>[...k,M],[k]),O=x.useMemo(()=>{if(a!=null&&a.authProvisionId){for(const w of k)if(a.authProvisionId===w.id)return w}return M},[k,a]);return B.jsx("div",{...u("controlApp",y,{app:e,...r}),children:S?`Loading ${e.name} accounts...`:k.length?B.jsx(On,{instanceId:o,value:O,options:F,...I,classNamePrefix:"react-select",required:!0,placeholder:`Select ${e.name} account...`,isLoading:S,isClearable:!0,isSearchable:!0,getOptionLabel:w=>w.name??"",getOptionValue:w=>w.id,menuPortalTarget:typeof document<"u"?document.body:null,menuPosition:"fixed",styles:{...I.styles,menuPortal:w=>({...w,zIndex:99999})},onChange:w=>{w?w.id==="_new"?A():s({authProvisionId:w.id}):s(void 0)}}):B.jsxs("button",{type:"button",...u("connectButton",b,{app:e,...r}),onClick:()=>A(),children:["Connect ",e.name]})})}const $r=e=>({color:e.colors.neutral80,backgroundColor:e.colors.neutral20,border:"1px solid",borderColor:e.colors.neutral20,padding:6,borderRadius:e.borderRadius,boxShadow:e.boxShadow.input,flex:1}),Rn=e=>({color:e.colors.neutral80,backgroundColor:"transparent",display:"inline-flex",alignItems:"center",padding:`${e.spacing.baseUnit}px ${e.spacing.baseUnit*1.5}px ${e.spacing.baseUnit}px ${e.spacing.baseUnit*2.5}px`,border:`1px solid ${e.colors.neutral30}`,borderRadius:e.borderRadius,cursor:"pointer",fontSize:"0.8125rem",fontWeight:450,gap:e.spacing.baseUnit*2,textWrap:"nowrap"}),Kr=e=>({...Rn(e),flex:"0 0 auto",padding:"6px 8px"}),ei=()=>({gridArea:"control",display:"flex",flexDirection:"column",gap:"0.5rem"}),ti=()=>({display:"flex",gap:"0.5rem",alignItems:"center"});function Eh(){var M;const e=Qe(),{onChange:t,prop:n,value:i}=e,{getProps:r,theme:o}=Te(),l=()=>{if(!i||!Array.isArray(i))return[""];const F=i.map(O=>typeof O=="string"?O:JSON.stringify(O));return F.length>0?F:[""]},[a,s]=x.useState(l),u=x.useRef(a);x.useEffect(()=>{u.current=a},[a]);const c=()=>Array.isArray(i)?i.map(F=>typeof F=="string"?F:JSON.stringify(F)).filter(F=>F.trim()!==""):[],d=F=>F.filter(O=>O.trim()!==""),f=(F,O)=>{if(F.length!==O.length)return!1;for(let w=0;w<F.length;w+=1)if(F[w]!==O[w])return!1;return!0};x.useEffect(()=>{const F=c(),O=d(u.current);f(O,F)||s(l())},[i]),x.useEffect(()=>{s(l())},[n.name]);const p=F=>{const O=F.filter(w=>w.trim()!=="");if(O.length===0){t(void 0);return}t(O)},y=(F,O)=>{const w=[...a];w[F]=O,s(w),p(w)},b=()=>{const F=[...a,""];s(F)},C=F=>{const O=a.filter((w,N)=>N!==F);s(O.length>0?O:[""]),p(O)},I=ei(),T=ti(),S=$r(o),k=Rn(o),E=Kr(o),A=((M=a[a.length-1])==null?void 0:M.trim())||a.length>1;return B.jsxs("div",{...r("controlArray",I,e),children:[a.map((F,O)=>B.jsxs("div",{style:T,children:[B.jsx("input",{type:"text",value:F,onChange:w=>y(O,w.target.value),placeholder:"",style:S,required:!n.optional&&O===0}),a.length>1&&B.jsx("button",{type:"button",onClick:()=>C(O),style:E,"aria-label":"Remove value",children:"×"})]},O)),A&&B.jsxs("button",{type:"button",onClick:b,style:{...k,alignSelf:"flex-start",paddingRight:`${o.spacing.baseUnit*2}px`},children:[B.jsx("span",{children:"+"}),B.jsx("span",{children:"Add more"})]})]})}function Kl(){const e=Qe(),{id:t,value:n,onChange:i}=e,{getProps:r}=Te(),o={width:"16px",height:"16px",gridArea:"control",margin:"0 0.5rem 0 0"};return B.jsx("input",{id:t,type:"checkbox",...r("controlBoolean",o,e),checked:n??!1,onChange:l=>i(l.target.checked)})}function ea(){const e=Qe(),{id:t,onChange:n,prop:i,value:r}=e,{getProps:o,theme:l}=Te(),a={color:l.colors.neutral60,display:"block",border:"1px solid",borderColor:l.colors.neutral20,padding:6,width:"100%",borderRadius:l.borderRadius,gridArea:"control",boxShadow:l.boxShadow.input};let s="off",u="text",c=p=>p;switch(i.type){case"string":break;case"integer":u="number",c=p=>p?parseInt(p):void 0;break;default:throw new Error("unexpected prop.type for ControlInput: "+i.type)}"secret"in i&&i.secret&&(u="password",s="new-password");const d=it(i,"integer")?i.min:void 0,f=it(i,"integer")?i.max:void 0;return B.jsx("input",{id:t,type:u,name:i.name,value:String(r??""),onChange:p=>n(c(p.target.value)),...o("controlInput",a,e),min:d,max:f,autoComplete:s,"data-lpignore":"true","data-1p-ignore":"true",required:!i.optional})}const kh=["GET","POST","PUT","PATCH","DELETE"],Hn=e=>{const t=(e??[]).map(n=>({key:n.name??"",value:n.value??"",disabled:n.disabled}));return t.length>0?t:[{key:"",value:""}]},ta=e=>e.filter(t=>t.key.trim()!=="").map(t=>{const n={name:t.key,value:t.value};return t.disabled!==void 0&&(n.disabled=t.disabled),n}),Bh=[{value:"application/json",label:"JSON"},{value:"application/x-www-form-urlencoded",label:"Form URL Encoded"},{value:"text/plain",label:"Text"},{value:"none",label:"None"}];function na(){const e=Qe(),{onChange:t,prop:n,value:i}=e,{getProps:r,theme:o}=Te(),l=()=>{if("default"in n&&n.default&&typeof n.default=="object")return n.default},a=()=>{const G=i,g=l();return Hn((G==null?void 0:G.headers)??(g==null?void 0:g.headers))},s=()=>{const G=i,g=l();return Hn((G==null?void 0:G.params)??(g==null?void 0:g.params))},u=()=>{var ue,_;const G=i,g=l();return((ue=G==null?void 0:G.body)==null?void 0:ue.raw)??((_=g==null?void 0:g.body)==null?void 0:_.raw)??""},c=()=>{var ue,_;const G=i,g=l();return((ue=G==null?void 0:G.body)==null?void 0:ue.contentType)??((_=g==null?void 0:g.body)==null?void 0:_.contentType)??"application/json"},d=()=>{const G=i,g=l();return{url:(G==null?void 0:G.url)??(g==null?void 0:g.url)??"",method:(G==null?void 0:G.method)??(g==null?void 0:g.method)??"GET",headers:a(),params:s(),body:u(),bodyContentType:c()}},[f,p]=x.useState(d);x.useEffect(()=>{var m,pe,te,ne;const G=i,g=l(),ue=Hn((G==null?void 0:G.headers)??(g==null?void 0:g.headers)),_=Hn((G==null?void 0:G.params)??(g==null?void 0:g.params));p({url:(G==null?void 0:G.url)??(g==null?void 0:g.url)??"",method:(G==null?void 0:G.method)??(g==null?void 0:g.method)??"GET",headers:ue,params:_,body:((m=G==null?void 0:G.body)==null?void 0:m.raw)??((pe=g==null?void 0:g.body)==null?void 0:pe.raw)??"",bodyContentType:((te=G==null?void 0:G.body)==null?void 0:te.contentType)??((ne=g==null?void 0:g.body)==null?void 0:ne.contentType)??"application/json"})},[i]);const y=G=>{const g=ta(G.headers),ue=ta(G.params),_={contentType:G.bodyContentType,type:"raw",mode:"raw"};return G.bodyContentType!=="none"&&G.body.trim()&&(_.raw=G.body),{url:G.url,method:G.method,headers:g,params:ue,body:_}},b=G=>{const g={...f,url:G};p(g),t(y(g))},C=G=>{const g={...f,method:G};p(g),t(y(g))},I=(G,g,ue)=>{const _=[...f.headers];_[G]={..._[G],[g]:ue};const m={...f,headers:_};p(m),t(y(m))},T=()=>{const G=[...f.headers,{key:"",value:""}];p({...f,headers:G})},S=G=>{const g=f.headers.filter((m,pe)=>pe!==G),ue=g.length>0?g:[{key:"",value:""}],_={...f,headers:ue};p(_),t(y(_))},k=G=>{const g={...f,bodyContentType:G};p(g),t(y(g))},E=G=>{const g={...f,body:G};p(g),t(y(g))},A=ei(),M=ti(),F=$r(o),O=Rn(o),w=Kr(o),N={display:"flex",flexDirection:"column",gap:`${o.spacing.baseUnit}px`},V={fontSize:"0.75rem",fontWeight:500,color:o.colors.neutral70},H={...F,cursor:"pointer"},q={...F,cursor:"pointer",flex:"none",width:"85px",borderTopRightRadius:0,borderBottomRightRadius:0,borderRight:"none"},W={...F,borderTopLeftRadius:0,borderBottomLeftRadius:0,flex:1},J={...F,resize:"vertical",minHeight:"80px",fontFamily:"monospace"},le={display:"flex",alignItems:"stretch"},se=`http-request-${n.name}`;return B.jsxs("div",{...r("controlHttpRequest",A,e),children:[B.jsxs("div",{style:N,children:[B.jsx("span",{style:V,children:"URL"}),B.jsxs("div",{style:le,children:[B.jsx("select",{value:f.method,onChange:G=>C(G.target.value),style:q,"aria-label":"HTTP method",children:kh.map(G=>B.jsx("option",{value:G,children:G},G))}),B.jsx("input",{type:"text",value:f.url,onChange:G=>b(G.target.value),placeholder:"https://api.example.com/endpoint",style:W,required:!n.optional,"aria-label":"URL"})]})]}),B.jsxs("div",{style:N,children:[B.jsx("span",{style:V,children:"Headers"}),f.headers.map((G,g)=>B.jsxs("div",{style:M,children:[B.jsx("input",{type:"text",value:G.key,onChange:ue=>I(g,"key",ue.target.value),placeholder:"Header name",style:F,"aria-label":`Header ${g+1} name`}),B.jsx("input",{type:"text",value:G.value,onChange:ue=>I(g,"value",ue.target.value),placeholder:"Header value",style:F,"aria-label":`Header ${g+1} value`}),f.headers.length>1&&B.jsx("button",{type:"button",onClick:()=>S(g),style:w,"aria-label":`Remove header ${g+1}`,children:"x"})]},g)),B.jsxs("button",{type:"button",onClick:T,style:{...O,alignSelf:"flex-start",paddingRight:`${o.spacing.baseUnit*2}px`},children:[B.jsx("span",{children:"+"}),B.jsx("span",{children:"Add header"})]})]}),B.jsxs("div",{style:N,children:[B.jsx("label",{htmlFor:`${se}-body-type`,style:V,children:"Body"}),B.jsx("select",{id:`${se}-body-type`,value:f.bodyContentType,onChange:G=>k(G.target.value),style:H,children:Bh.map(G=>B.jsx("option",{value:G.value,children:G.label},G.value))}),f.bodyContentType!=="none"&&B.jsx("textarea",{value:f.body,onChange:G=>E(G.target.value),placeholder:f.bodyContentType==="application/json"?'{"key": "value"}':"Request body",style:J,rows:4,"aria-label":"Request body"})]})]})}function Ph(){const e=Qe(),{onChange:t,prop:n,value:i}=e,{getProps:r,theme:o}=Te(),l=S=>{if(S===null||typeof S!="object"||S instanceof Date||S instanceof Function||S instanceof RegExp)return!1;const k=Object.getPrototypeOf(S);return k===Object.prototype||k===null},a=()=>{if(!i||typeof i!="object"||Array.isArray(i))return[{key:"",value:""}];if(!l(i))return[{key:"",value:""}];const S=Object.entries(i).map(([k,E])=>({key:k,value:typeof E=="string"?E:(()=>{try{return JSON.stringify(E)}catch{return String(E)}})()}));return S.length>0?S:[{key:"",value:""}]},[s,u]=x.useState(a);x.useEffect(()=>{if(!i||typeof i!="object"||Array.isArray(i)){u([{key:"",value:""}]);return}if(!l(i)){u([{key:"",value:""}]);return}const S=Object.entries(i).map(([k,E])=>({key:k,value:typeof E=="string"?E:(()=>{try{return JSON.stringify(E)}catch{return String(E)}})()}));u(S.length>0?S:[{key:"",value:""}])},[i]);const c=S=>{const k=S.filter(A=>A.key.trim()!=="");if(k.length===0){t(void 0);return}const E={};k.forEach(A=>{if(A.key.trim())try{E[A.key]=JSON.parse(A.value)}catch{E[A.key]=A.value}}),t(E)},d=(S,k,E)=>{const A=[...s];A[S]={...A[S],[k]:E},u(A),c(A)},f=()=>{const S=[...s,{key:"",value:""}];u(S)},p=S=>{const k=s.filter((E,A)=>A!==S);u(k.length>0?k:[{key:"",value:""}]),c(k)},y=ei(),b=ti(),C=$r(o),I=Rn(o),T=Kr(o);return B.jsxs("div",{...r("controlObject",y,e),children:[s.map((S,k)=>B.jsxs("div",{style:b,children:[B.jsx("input",{type:"text",value:S.key,onChange:E=>d(k,"key",E.target.value),placeholder:"Key",style:C,required:!n.optional&&k===0}),B.jsx("input",{type:"text",value:S.value,onChange:E=>d(k,"value",E.target.value),placeholder:"Value",style:C}),s.length>1&&B.jsx("button",{type:"button",onClick:()=>p(k),style:T,"aria-label":"Remove pair",children:"×"})]},k)),B.jsxs("button",{type:"button",onClick:f,style:{...I,alignSelf:"flex-start",paddingRight:`${o.spacing.baseUnit*2}px`},children:[B.jsx("span",{children:"+"}),B.jsx("span",{children:"Add more"})]})]})}var Fh=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],ra=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=String(t).toLowerCase(),o=String(i.getOptionValue(n)).toLowerCase(),l=String(i.getOptionLabel(n)).toLowerCase();return o===r||l===r},ni={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,n,i,r){return!(!t||n.some(function(o){return ra(t,o,r)})||i.some(function(o){return ra(t,o,r)}))},getNewOptionData:function(t,n){return{label:n,value:t,__isNew__:!0}}};function Th(e){var t=e.allowCreateWhileLoading,n=t===void 0?!1:t,i=e.createOptionPosition,r=i===void 0?"last":i,o=e.formatCreateLabel,l=o===void 0?ni.formatCreateLabel:o,a=e.isValidNewOption,s=a===void 0?ni.isValidNewOption:a,u=e.getNewOptionData,c=u===void 0?ni.getNewOptionData:u,d=e.onCreateOption,f=e.options,p=f===void 0?[]:f,y=e.onChange,b=ot(e,Fh),C=b.getOptionValue,I=C===void 0?Gl:C,T=b.getOptionLabel,S=T===void 0?Tl:T,k=b.inputValue,E=b.isLoading,A=b.isMulti,M=b.value,F=b.name,O=x.useMemo(function(){return s(k,kn(M),p,{getOptionValue:I,getOptionLabel:S})?c(k,l(k)):void 0},[l,c,S,I,k,s,p,M]),w=x.useMemo(function(){return(n||!E)&&O?r==="first"?[O].concat(Dt(p)):[].concat(Dt(p),[O]):p},[n,r,E,O,p]),N=x.useCallback(function(V,H){if(H.action!=="select-option")return y(V,H);var q=Array.isArray(V)?V:[V];if(q[q.length-1]===O){if(d)d(k);else{var W=c(k,k),J={action:"create-option",name:F,option:W};y($t(A,[].concat(Dt(kn(M)),[W]),W),J)}return}y(V,H)},[c,k,A,F,O,d,y,M]);return K(K({},b),{},{options:w,onChange:N})}var Gh=x.forwardRef(function(e,t){var n=Jo(e),i=Th(n);return ge.createElement(qr,re({ref:t},i))}),Vh=Gh;function Xn({isCreatable:e,options:t,selectProps:n,showLoadMoreButton:i,onLoadMore:r,components:o}){const l=Qe(),{id:a,prop:s,value:u,onChange:c}=l,{select:d,theme:f}=Te(),p=x.useMemo(()=>Mn(f.colors),[f.colors]),y=x.useMemo(()=>zn({colors:{surface:p.surface,border:p.border,text:p.text,textStrong:p.textStrong,hoverBg:p.hoverBg,selectedBg:p.selectedBg,selectedHoverBg:p.selectedHoverBg},boxShadow:f.boxShadow}),[p,f.boxShadow]),[b,C]=x.useState(t),[I,T]=x.useState(u);x.useEffect(()=>{const H=t.map(Ne);C(H)},[t]),x.useEffect(()=>{T(u)},[u]);const S=x.useMemo(()=>{if(I==null)return null;if(Vr(I)){const H=I.__lv;return Array.isArray(H)?H.map(q=>Ne(q)):Ne(H)}if(Ho(I))return I.map(H=>Ne(H));if(Array.isArray(I)){if(!Gr(I[0]))return I.map(H=>b.find(q=>q.value===H)||Ne(H))}else if(!Gr(I))if((b==null?void 0:b[0])&&Gr(b[0])){for(const q of b)if(q.value===I)return q}else return Ne(I);return null},[I,b]),k=d.getProps("controlSelect",{styles:y}),E=x.useRef(r);x.useEffect(()=>{E.current=r},[r]);const A=x.useRef(i);A.current=i;const M=x.useMemo(()=>{const H={...k.components??{},...o??{}},q=H.MenuList??Lt.MenuList,W=({children:J,...le})=>B.jsxs(q,{...le,children:[J,A.current&&B.jsx("div",{className:"pt-4",children:B.jsx(_l,{onChange:()=>{var se;return(se=E.current)==null?void 0:se.call(E)}})})]});return W.displayName="CustomMenuList",{...H,MenuList:W}},[o,k.components]),F=H=>{const q=Ne(H);let W=q;const J=b.map(Ne),le=[q,...J];C(le),s.type.endsWith("[]")&&(Array.isArray(I)?W=[...I.map(Ne),q]:W=[q]),T(W),O(W)},O=H=>{if(H)if(Array.isArray(H))typeof H[0]=="object"&&H[0]&&"value"in H[0]?c({__lv:H}):c(H);else if(typeof H=="object"&&H&&"value"in H)c({__lv:H});else throw new Error("unhandled option type");else c(void 0)},w={onCreateOption:s.remoteOptions?F:void 0},N=e?Vh:On,V=b.map(Ne);return B.jsx(N,{inputId:a,instanceId:a,options:V,value:S,isMulti:s.type.endsWith("[]"),isClearable:!0,required:!s.optional,getOptionLabel:H=>Ne(H).label,getOptionValue:H=>String(Ne(H).value),onChange:O,classNamePrefix:k.classNamePrefix||"react-select",classNames:k.classNames,theme:k.theme,...n,...w,menuPortalTarget:typeof document<"u"?document.body:null,menuPosition:"fixed",styles:{...k.styles,...(n==null?void 0:n.styles)??{},container:H=>({...H,gridArea:"control"}),menuPortal:H=>({...H,zIndex:99999})},components:M})}const Oh=e=>typeof e=="object"&&e!==null&&"query"in e&&typeof e.query=="string";function ia(){var d;const e=Qe(),{id:t,onChange:n,prop:i,value:r}=e;if(!it(i,"sql"))throw new Error("ControlSql used with non-sql prop");const{getProps:o,theme:l}=Te(),a=((d=i.auth)==null?void 0:d.app)||"postgresql";let s="";Oh(r)?s=r.query:typeof r=="string"&&(s=r);const u=f=>{n({app:a,query:f,params:[]})},c={color:l.colors.neutral60,display:"block",border:"1px solid",borderColor:l.colors.neutral20,padding:6,width:"100%",borderRadius:l.borderRadius,gridArea:"control",boxShadow:l.boxShadow.input,fontSize:"0.875rem",fontFamily:"monospace",minHeight:"120px",resize:"vertical"};return B.jsx("textarea",{id:t,name:i.name,value:s,onChange:f=>u(f.target.value),placeholder:"SELECT * FROM table_name",required:!i.optional,...o("controlSql",c,e)})}const ri=e=>Ne(e).value??null;function oa({queryEnabled:e}){const t=ut(),{externalUserId:n,component:i,configurableProps:r,configuredProps:o,dynamicProps:l,props:{disableQueryDisabling:a}}=qt(),{idx:s,prop:u,onChange:c}=Qe(),[d,f]=x.useState(""),[p,y]=x.useState(0),[b,C]=x.useState(void 0),[I,T]=x.useState(void 0),[S,k]=x.useState(!0),[E,A]=x.useState([]),[M,F]=x.useState(new Set),O=x.useMemo(()=>{const de={};for(let ve=0;ve<s;ve++){const Ce=r[ve];de[Ce.name]=o[Ce.name]}return de},[s,r,o]),w=x.useMemo(()=>{const de=r.find(ve=>ve.type==="app");return de?o[de.name]:void 0},[r,o]),N=x.useMemo(()=>{const de={externalUserId:n,page:p,prevContext:b,id:i.key,propName:u.name,configuredProps:O,dynamicPropsId:l==null?void 0:l.id};return u.useQuery&&(de.query=d||""),de},[n,p,b,i.key,u.name,u.useQuery,O,l==null?void 0:l.id,d]),V=x.useMemo(()=>N,[N]),[H,q]=x.useState(),W=()=>{y(de=>de+1),C(I)},J=JSON.stringify(V),le=JSON.stringify(w),se=x.useRef(),G=x.useRef(),g=x.useMemo(()=>{const{page:de,prevContext:ve,...Ce}=N;return JSON.stringify(Ce)},[N]),ue=x.useMemo(()=>r.some(de=>de.type==="app"),[r]),_=x.useMemo(()=>!(!e||ue&&!w),[e,ue,w]),{data:m,isFetching:pe,refetch:te,dataUpdatedAt:ne}=st.useQuery({queryKey:["componentConfigure",V],queryFn:async()=>{const de=await t.components.configureProp(N),{options:ve,stringOptions:Ce,errors:Ve}=de;if(Ve!=null&&Ve.length){let Ae;try{Ae=JSON.parse(Ve[0])}catch{Ae={name:"Error",message:Ve[0]}}return{error:Ae,options:[],context:de.context}}const Be=(Ce==null?void 0:Ce.map(Ae=>({label:Ae,value:Ae})))??[];return{error:void 0,options:[...ve??[],...Be],context:de.context}},enabled:_});x.useEffect(()=>{if(!m)return;if(m.error){q(m.error);return}q(void 0),T(m.context);const de=p===0;let ve=!1;F(Ce=>{const Ve=de?new Set:Ce,Be=new Set(Ve);for(const De of m.options){const Ae=ri(De);if(Ae===null){console.warn("Skipping invalid option:",De);continue}Be.has(Ae)||(Be.add(Ae),ve=!0)}return Be}),A(Ce=>{const Ve=de?[]:Ce,Be=[],De=new Set;if(!de)for(const Ae of Ve){const Je=ri(Ae);Je!==null&&De.add(Je)}for(const Ae of m.options){const Je=ri(Ae);Je!==null&&(De.has(Je)||(De.add(Je),Be.push(Ae)))}return Be.length?[...Ve,...Be]:Ce}),ve||k(!1)},[m,p,ne,J]),x.useEffect(()=>{if(!se.current){se.current=g;return}se.current!==g&&(y(0),C(void 0),T(void 0),k(!0),A([]),F(new Set)),se.current=g},[g]),x.useEffect(()=>{G.current&&G.current!==le&&(c(void 0),w!=null&&_&&te()),G.current=le},[le,c,_,w,te]);const ke=x.useMemo(()=>!pe&&!H&&S,[pe,H,S]),fe=H?H.message:a?"Click to configure":_?void 0:"Configure props above first",Ge=a?!1:!_;return B.jsx(Xn,{isCreatable:!0,showLoadMoreButton:ke,onLoadMore:W,options:E.map(Ne),selectProps:{isLoading:pe,placeholder:fe,isDisabled:Ge,inputValue:u.useQuery?d:void 0,onInputChange(de){u.useQuery&&(f(de),te())},onMenuOpen(){a&&!_&&te()}}})}function la(e){const{field:t,form:n}=e,{queryDisabledIdx:i}=n,{prop:r,idx:o}=t,l="app"in t.extra?t.extra.app:void 0;if(r.remoteOptions||r.type==="$.discord.channel"||r.type==="$.discord.channel[]")return B.jsx(oa,{queryEnabled:i==null||i>=o});if("options"in r&&Array.isArray(r.options)&&r.options.length>0){const a=r.options.map(Ne);return B.jsx(Xn,{options:a,components:{IndicatorSeparator:()=>null}})}if(r.type.endsWith("[][]"))throw new Error("Unsupported property type: "+r.type);if(r.type.endsWith("[]"))return!("options"in r)||!r.options?B.jsx(Eh,{}):B.jsx(Xn,{isCreatable:!0,options:[],components:{IndicatorSeparator:()=>null}});switch(r.type){case"app":return B.jsx($l,{app:l});case"boolean":return B.jsx(Kl,{});case"string":case"integer":return B.jsx(ea,{});case"object":return B.jsx(Ph,{});case"sql":return B.jsx(ia,{});case"http_request":return B.jsx(na,{});default:throw new Error("Unsupported property type: "+r.type)}}function aa(e){const{form:t,field:n}=e,{prop:i}=n,{getProps:r,getComponents:o}=Te(),l={display:"grid",gridTemplateAreas:n.prop.type=="boolean"?'"control label" "description description" "error error"':'"label label" "control control" "description description" "error error"',gridTemplateColumns:"min-content auto",gap:"0.25rem 0",alignItems:"center",fontSize:"0.875rem"},{Label:a,Description:s,Errors:u}=o(),c="app"in n.extra?n.extra.app:void 0;if(c&&!c.authType)return null;let d=i.label||i.name;c&&(d=`Connect ${c.name} account`);const f=e;return B.jsxs("div",{...r("field",l,f),children:[B.jsx(a,{text:d,field:n,form:t}),B.jsx(la,{field:n,form:t}),B.jsx(s,{markdown:i.description,field:n,form:t}),B.jsx(u,{field:n,form:t})]})}const sa=(e,t)=>{var r;const n=ut(),i=st.useQuery({queryKey:["app",e],queryFn:()=>n.apps.retrieve(e),...t==null?void 0:t.useQueryOpts});return{...i,app:(r=i.data)==null?void 0:r.data}};function ua({prop:e,idx:t}){const n=qt(),{id:i,configuredProps:r,registerField:o,setConfiguredProp:l,errors:a,enableDebugging:s}=n;let u;it(e,"app")&&(u=e.app);const{app:c}=sa(u||"",{useQueryOpts:{enabled:!!u,suspense:!!u}}),d=`pd${i}${e.name}`,f=x.useCallback(y=>{l(t,y)},[t,e.name,l]),p={id:d,prop:e,idx:t,value:r[e.name],onChange:f,extra:{app:c},errors:a,enableDebugging:s};return x.useEffect(()=>{o(p)},[e.name,o]),B.jsx(Qr.Provider,{value:p,children:B.jsx(aa,{field:p,form:n})})}class ca extends x.Component{constructor(){super(...arguments),this.state={err:void 0}}static getDerivedStateFromError(t){return{err:t}}render(){const{err:t}=this.state;return t?this.props.fallback(t):this.props.children}}function da(e){const{form:t}=e,{propsNeedConfiguring:n,submitting:i}=t,{getProps:r,theme:o}=Te(),l=a=>{var s;return{width:"fit-content",textTransform:"capitalize",backgroundColor:a?o.colors.neutral10:o.colors.primary,color:a?o.colors.neutral40:o.colors.neutral0,padding:`${o.spacing.baseUnit*1.75}px ${o.spacing.baseUnit*16}px`,borderRadius:o.borderRadius,boxShadow:(s=o.boxShadow)==null?void 0:s.button,cursor:"pointer",fontSize:"0.875rem",opacity:i?.5:void 0,margin:"0.5rem 0 0 0"}};return B.jsx("input",{type:"submit",value:i?"Submitting...":"Submit",...r("controlSubmit",l(!!n.length||i),e),disabled:!!n.length||i})}const Nh=["ConfigurationError"];function pa(){const e=qt(),{configurableProps:t,dynamicPropsQueryIsFetching:n,isValid:i,optionalPropIsEnabled:r,optionalPropSetEnabled:o,props:l,setSubmitting:a,sdkErrors:s,submitting:u,enableDebugging:c}=e,d=c||s.filter(w=>Nh.includes(w.name)).length>0,{hideOptionalProps:f,onSubmit:p}=l,[y,b]=x.useState([]);x.useEffect(()=>{u?b([]):s&&s.length&&b(s.map(w=>({type:"alert",alertType:"error",content:`# ${w.name}
|
|
21
|
-
${w.message}`,name:w.name})))},[s,u]);const{getComponents:
|
|
20
|
+
`]))),Uf=function(t,n){var i=t.isFocused,r=t.size,o=t.theme,l=o.colors,a=o.spacing.baseUnit;return K({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},n?{}:{color:i?l.neutral60:l.neutral20,padding:a*2})},Wr=function(t){var n=t.delay,i=t.offset;return U.jsx("span",{css:U.css({animation:"".concat(_f," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:i?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0V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HRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},qf=function(t){var n=t.innerProps,i=t.isRtl,r=t.size,o=r===void 0?4:r,l=ot(t,zf);return U.jsx("div",re({},Ee(K(K({},l),{},{innerProps:n,isRtl:i,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),U.jsx(Wr,{delay:0,offset:i}),U.jsx(Wr,{delay:160,offset:!0}),U.jsx(Wr,{delay:320,offset:!i}))},Qf=function(t,n){var i=t.isDisabled,r=t.isFocused,o=t.theme,l=o.colors,a=o.borderRadius,s=o.spacing;return K({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:i?l.neutral5:l.neutral0,borderColor:i?l.neutral10:r?l.primary:l.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(l.primary):void 0,"&:hover":{borderColor:r?l.primary:l.neutral30}})},$f=function(t){var n=t.children,i=t.isDisabled,r=t.isFocused,o=t.innerRef,l=t.innerProps,a=t.menuIsOpen;return U.jsx("div",re({ref:o},Ee(t,"control",{control:!0,"control--is-disabled":i,"control--is-focused":r,"control--menu-is-open":a}),l,{"aria-disabled":i||void 0}),n)},Kf=$f,eg=["data"],tg=function(t,n){var i=t.theme.spacing;return n?{}:{paddingBottom:i.baseUnit*2,paddingTop:i.baseUnit*2}},ng=function(t){var n=t.children,i=t.cx,r=t.getStyles,o=t.getClassNames,l=t.Heading,a=t.headingProps,s=t.innerProps,u=t.label,c=t.theme,d=t.selectProps;return U.jsx("div",re({},Ee(t,"group",{group:!0}),s),U.jsx(l,re({},a,{selectProps:d,theme:c,getStyles:r,getClassNames:o,cx:i}),u),U.jsx("div",null,n))},rg=function(t,n){var i=t.theme,r=i.colors,o=i.spacing;return K({label:"group",cursor:"default",display:"block"},n?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},ig=function(t){var n=il(t);n.data;var i=ot(n,eg);return U.jsx("div",re({},Ee(t,"groupHeading",{"group-heading":!0}),i))},og=ng,lg=["innerRef","isDisabled","isHidden","inputClassName"],ag=function(t,n){var i=t.isDisabled,r=t.value,o=t.theme,l=o.spacing,a=o.colors;return K(K({visibility:i?"hidden":"visible",transform:r?"translateZ(0)":""},sg),n?{}:{margin:l.baseUnit/2,paddingBottom:l.baseUnit/2,paddingTop:l.baseUnit/2,color:a.neutral80})},ml={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},sg={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":K({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ml)},ug=function(t){return K({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},ml)},cg=function(t){var n=t.cx,i=t.value,r=il(t),o=r.innerRef,l=r.isDisabled,a=r.isHidden,s=r.inputClassName,u=ot(r,lg);return U.jsx("div",re({},Ee(t,"input",{"input-container":!0}),{"data-value":i||""}),U.jsx("input",re({className:n({input:!0},s),ref:o,style:ug(a),disabled:l},u)))},dg=cg,pg=function(t,n){var i=t.theme,r=i.spacing,o=i.borderRadius,l=i.colors;return K({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:l.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},fg=function(t,n){var i=t.theme,r=i.borderRadius,o=i.colors,l=t.cropWithEllipsis;return K({overflow:"hidden",textOverflow:l||l===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},gg=function(t,n){var i=t.theme,r=i.spacing,o=i.borderRadius,l=i.colors,a=t.isFocused;return K({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:a?l.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:l.dangerLight,color:l.danger}})},bl=function(t){var n=t.children,i=t.innerProps;return U.jsx("div",i,n)},hg=bl,mg=bl;function bg(e){var t=e.children,n=e.innerProps;return U.jsx("div",re({role:"button"},n),t||U.jsx(Xr,{size:14}))}var yg=function(t){var n=t.children,i=t.components,r=t.data,o=t.innerProps,l=t.isDisabled,a=t.removeProps,s=t.selectProps,u=i.Container,c=i.Label,d=i.Remove;return U.jsx(u,{data:r,innerProps:K(K({},Ee(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":l})),o),selectProps:s},U.jsx(c,{data:r,innerProps:K({},Ee(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},n),U.jsx(d,{data:r,innerProps:K(K({},Ee(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},a),selectProps:s}))},Ig=yg,vg=function(t,n){var i=t.isDisabled,r=t.isFocused,o=t.isSelected,l=t.theme,a=l.spacing,s=l.colors;return K({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:i?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(a.baseUnit*2,"px ").concat(a.baseUnit*3,"px"),":active":{backgroundColor:i?void 0:o?s.primary:s.primary50}})},Cg=function(t){var n=t.children,i=t.isDisabled,r=t.isFocused,o=t.isSelected,l=t.innerRef,a=t.innerProps;return U.jsx("div",re({},Ee(t,"option",{option:!0,"option--is-disabled":i,"option--is-focused":r,"option--is-selected":o}),{ref:l,"aria-disabled":i},a),n)},xg=Cg,Ag=function(t,n){var i=t.theme,r=i.spacing,o=i.colors;return K({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},Sg=function(t){var n=t.children,i=t.innerProps;return U.jsx("div",re({},Ee(t,"placeholder",{placeholder:!0}),i),n)},wg=Sg,Eg=function(t,n){var i=t.isDisabled,r=t.theme,o=r.spacing,l=r.colors;return K({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:i?l.neutral40:l.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},kg=function(t){var n=t.children,i=t.isDisabled,r=t.innerProps;return U.jsx("div",re({},Ee(t,"singleValue",{"single-value":!0,"single-value--is-disabled":i}),r),n)},Bg=kg,Lt={ClearIndicator:jf,Control:Kf,DropdownIndicator:Wf,DownChevron:gl,CrossIcon:Xr,Group:og,GroupHeading:ig,IndicatorsContainer:Lf,IndicatorSeparator:Yf,Input:dg,LoadingIndicator:qf,Menu:Af,MenuList:wf,MenuPortal:Tf,LoadingMessage:Pf,NoOptionsMessage:Bf,MultiValue:Ig,MultiValueContainer:hg,MultiValueLabel:mg,MultiValueRemove:bg,Option:xg,Placeholder:wg,SelectContainer:Vf,SingleValue:Bg,ValueContainer:Nf},Pg=function(t){return K(K({},Lt),t.components)},yl=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Fg(e,t){return!!(e===t||yl(e)&&yl(t))}function Tg(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Fg(e[n],t[n]))return!1;return!0}function Gg(e,t){t===void 0&&(t=Tg);var n=null;function i(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var l=e.apply(this,r);return n={lastResult:l,lastArgs:r,lastThis:this},l}return i.clear=function(){n=null},i}function Vg(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var Og=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:Vg},Ng=function(t){return U.jsx("span",re({css:Og},t))},Il=Ng,Dg={guidance:function(t){var n=t.isSearchable,i=t.isMulti,r=t.tabSelectsValue,o=t.context,l=t.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return l?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(i?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,i=t.label,r=i===void 0?"":i,o=t.labels,l=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return l?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(t){var n=t.context,i=t.focused,r=t.options,o=t.label,l=o===void 0?"":o,a=t.selectValue,s=t.isDisabled,u=t.isSelected,c=t.isAppleDevice,d=function(y,x){return y&&y.length?"".concat(y.indexOf(x)+1," of ").concat(y.length):""};if(n==="value"&&a)return"value ".concat(l," focused, ").concat(d(a,i),".");if(n==="menu"&&c){var f=s?" disabled":"",p="".concat(u?" selected":"").concat(f);return"".concat(l).concat(p,", ").concat(d(r,i),".")}return""},onFilter:function(t){var n=t.inputValue,i=t.resultsMessage;return"".concat(i).concat(n?" for search term "+n:"",".")}},Lg=function(t){var n=t.ariaSelection,i=t.focusedOption,r=t.focusedValue,o=t.focusableOptions,l=t.isFocused,a=t.selectValue,s=t.selectProps,u=t.id,c=t.isAppleDevice,d=s.ariaLiveMessages,f=s.getOptionLabel,p=s.inputValue,b=s.isMulti,y=s.isOptionDisabled,x=s.isSearchable,I=s.menuIsOpen,T=s.options,S=s.screenReaderStatus,E=s.tabSelectsValue,P=s.isLoading,v=s["aria-label"],M=s["aria-live"],F=A.useMemo(function(){return K(K({},Dg),d||{})},[d]),O=A.useMemo(function(){var W="";if(n&&F.onChange){var J=n.option,le=n.options,se=n.removedValue,G=n.removedValues,g=n.value,ue=function(fe){return Array.isArray(fe)?null:fe},_=se||J||ue(g),m=_?f(_):"",pe=le||G||void 0,te=pe?pe.map(f):[],ne=K({isDisabled:_&&y(_,a),label:m,labels:te},n);W=F.onChange(ne)}return W},[n,F,y,a,f]),w=A.useMemo(function(){var W="",J=i||r,le=!!(i&&a&&a.includes(i));if(J&&F.onFocus){var se={focused:J,label:f(J),isDisabled:y(J,a),isSelected:le,options:o,context:J===i?"menu":"value",selectValue:a,isAppleDevice:c};W=F.onFocus(se)}return W},[i,r,f,y,F,o,a,c]),N=A.useMemo(function(){var W="";if(I&&T.length&&!P&&F.onFilter){var J=S({count:o.length});W=F.onFilter({inputValue:p,resultsMessage:J})}return W},[o,p,I,F,T,S,P]),V=(n==null?void 0:n.action)==="initial-input-focus",H=A.useMemo(function(){var W="";if(F.guidance){var J=r?"value":I?"menu":"input";W=F.guidance({"aria-label":v,context:J,isDisabled:i&&y(i,a),isMulti:b,isSearchable:x,tabSelectsValue:E,isInitialFocus:V})}return W},[v,i,r,b,y,x,I,F,a,E,V]),q=U.jsx(A.Fragment,null,U.jsx("span",{id:"aria-selection"},O),U.jsx("span",{id:"aria-focused"},w),U.jsx("span",{id:"aria-results"},N),U.jsx("span",{id:"aria-guidance"},H));return U.jsx(A.Fragment,null,U.jsx(Il,{id:u},V&&q),U.jsx(Il,{"aria-live":M,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},l&&!V&&q))},Mg=Lg,Zr=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],zg=new RegExp("["+Zr.map(function(e){return e.letters}).join("")+"]","g"),vl={},jr=0;jr<Zr.length;jr++)for(var Jr=Zr[jr],Yr=0;Yr<Jr.letters.length;Yr++)vl[Jr.letters[Yr]]=Jr.base;var Cl=function(t){return t.replace(zg,function(n){return vl[n]})},Rg=Gg(Cl),xl=function(t){return t.replace(/^\s+|\s+$/g,"")},Hg=function(t){return"".concat(t.label," ").concat(t.value)},Xg=function(t){return function(n,i){if(n.data.__isNew__)return!0;var r=K({ignoreCase:!0,ignoreAccents:!0,stringify:Hg,trim:!0,matchFrom:"any"},t),o=r.ignoreCase,l=r.ignoreAccents,a=r.stringify,s=r.trim,u=r.matchFrom,c=s?xl(i):i,d=s?xl(a(n)):a(n);return o&&(c=c.toLowerCase(),d=d.toLowerCase()),l&&(c=Rg(c),d=Cl(d)),u==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},Wg=["innerRef"];function Zg(e){var t=e.innerRef,n=ot(e,Wg),i=hf(n,"onExited","in","enter","exit","appear");return U.jsx("input",re({ref:t},i,{css:U.css({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingUR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gdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var jg=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function Jg(e){var t=e.isEnabled,n=e.onBottomArrive,i=e.onBottomLeave,r=e.onTopArrive,o=e.onTopLeave,l=A.useRef(!1),a=A.useRef(!1),s=A.useRef(0),u=A.useRef(null),c=A.useCallback(function(x,I){if(u.current!==null){var T=u.current,S=T.scrollTop,E=T.scrollHeight,P=T.clientHeight,v=u.current,M=I>0,F=E-P-S,O=!1;F>I&&l.current&&(i&&i(x),l.current=!1),M&&a.current&&(o&&o(x),a.current=!1),M&&I>F?(n&&!l.current&&n(x),v.scrollTop=E,O=!0,l.current=!0):!M&&-I>S&&(r&&!a.current&&r(x),v.scrollTop=0,O=!0,a.current=!0),O&&jg(x)}},[n,i,r,o]),d=A.useCallback(function(x){c(x,x.deltaY)},[c]),f=A.useCallback(function(x){s.current=x.changedTouches[0].clientY},[]),p=A.useCallback(function(x){var I=s.current-x.changedTouches[0].clientY;c(x,I)},[c]),b=A.useCallback(function(x){if(x){var I=pf?{passive:!1}:!1;x.addEventListener("wheel",d,I),x.addEventListener("touchstart",f,I),x.addEventListener("touchmove",p,I)}},[p,f,d]),y=A.useCallback(function(x){x&&(x.removeEventListener("wheel",d,!1),x.removeEventListener("touchstart",f,!1),x.removeEventListener("touchmove",p,!1))},[p,f,d]);return A.useEffect(function(){if(t){var x=u.current;return b(x),function(){y(x)}}},[t,b,y]),function(x){u.current=x}}var Al=["boxSizing","height","overflow","paddingRight","position"],Sl={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function wl(e){e.cancelable&&e.preventDefault()}function El(e){e.stopPropagation()}function kl(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Bl(){return"ontouchstart"in window||navigator.maxTouchPoints}var Pl=!!(typeof window<"u"&&window.document&&window.document.createElement),Kt=0,Mt={capture:!1,passive:!1};function Yg(e){var t=e.isEnabled,n=e.accountForScrollbars,i=n===void 0?!0:n,r=A.useRef({}),o=A.useRef(null),l=A.useCallback(function(s){if(Pl){var u=document.body,c=u&&u.style;if(i&&Al.forEach(function(b){var y=c&&c[b];r.current[b]=y}),i&&Kt<1){var d=parseInt(r.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,p=window.innerWidth-f+d||0;Object.keys(Sl).forEach(function(b){var y=Sl[b];c&&(c[b]=y)}),c&&(c.paddingRight="".concat(p,"px"))}u&&Bl()&&(u.addEventListener("touchmove",wl,Mt),s&&(s.addEventListener("touchstart",kl,Mt),s.addEventListener("touchmove",El,Mt))),Kt+=1}},[i]),a=A.useCallback(function(s){if(Pl){var u=document.body,c=u&&u.style;Kt=Math.max(Kt-1,0),i&&Kt<1&&Al.forEach(function(d){var f=r.current[d];c&&(c[d]=f)}),u&&Bl()&&(u.removeEventListener("touchmove",wl,Mt),s&&(s.removeEventListener("touchstart",kl,Mt),s.removeEventListener("touchmove",El,Mt)))}},[i]);return A.useEffect(function(){if(t){var s=o.current;return l(s),function(){a(s)}}},[t,l,a]),function(s){o.current=s}}function _g(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Ug=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},qg=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiY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7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:_g};function Qg(e){var t=e.children,n=e.lockEnabled,i=e.captureEnabled,r=i===void 0?!0:i,o=e.onBottomArrive,l=e.onBottomLeave,a=e.onTopArrive,s=e.onTopLeave,u=Jg({isEnabled:r,onBottomArrive:o,onBottomLeave:l,onTopArrive:a,onTopLeave:s}),c=Yg({isEnabled:n}),d=function(p){u(p),c(p)};return U.jsx(A.Fragment,null,n&&U.jsx("div",{onClick:Ug,css:qg}),t(d))}function $g(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Kg=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:$g},eh=function(t){var n=t.name,i=t.onFocus;return U.jsx("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:i,css:Kg,value:"",onChange:function(){}})},th=eh;function _r(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function nh(){return _r(/^iPhone/i)}function Fl(){return _r(/^Mac/i)}function rh(){return _r(/^iPad/i)||Fl()&&navigator.maxTouchPoints>1}function ih(){return nh()||rh()}function oh(){return Fl()||ih()}var lh=function(t){return t.label},Tl=function(t){return t.label},Gl=function(t){return t.value},ah=function(t){return!!t.isDisabled},sh={clearIndicator:Zf,container:Gf,control:Qf,dropdownIndicator:Xf,group:tg,groupHeading:rg,indicatorsContainer:Df,indicatorSeparator:Jf,input:ag,loadingIndicator:Uf,loadingMessage:kf,menu:vf,menuList:Sf,menuPortal:Ff,multiValue:pg,multiValueLabel:fg,multiValueRemove:gg,noOptionsMessage:Ef,option:vg,placeholder:Ag,singleValue:Eg,valueContainer:Of};function uh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=K({},e);return Object.keys(t).forEach(function(i){var r=i;e[r]?n[r]=function(o,l){return t[r](e[r](o,l),l)}:n[r]=t[r]}),n}var ch={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},dh=4,Vl=4,ph=38,fh=Vl*2,gh={baseUnit:Vl,controlHeight:ph,menuGutter:fh},en={borderRadius:dh,colors:ch,spacing:gh},hh={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:al(),captureMenuScroll:!al(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Xg(),formatGroupLabel:lh,getOptionLabel:Tl,getOptionValue:Gl,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:ah,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!cf(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Ol(e,t,n,i){var r=zl(e,t,n),o=Rl(e,t,n),l=Ml(e,t),a=Vn(e,t);return{type:"option",data:t,isDisabled:r,isSelected:o,label:l,value:a,index:i}}function Gn(e,t){return e.options.map(function(n,i){if("options"in n){var r=n.options.map(function(l,a){return Ol(e,l,t,a)}).filter(function(l){return Ll(e,l)});return r.length>0?{type:"group",data:n,options:r,index:i}:void 0}var o=Ol(e,n,t,i);return Ll(e,o)?o:void 0}).filter(ff)}function Nl(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Dt(n.options.map(function(i){return i.data}))):t.push(n.data),t},[])}function Dl(e,t){return e.reduce(function(n,i){return i.type==="group"?n.push.apply(n,Dt(i.options.map(function(r){return{data:r.data,id:"".concat(t,"-").concat(i.index,"-").concat(r.index)}}))):n.push({data:i.data,id:"".concat(t,"-").concat(i.index)}),n},[])}function mh(e,t){return Nl(Gn(e,t))}function Ll(e,t){var n=e.inputValue,i=n===void 0?"":n,r=t.data,o=t.isSelected,l=t.label,a=t.value;return(!Xl(e)||!o)&&Hl(e,{label:l,value:a,data:r},i)}function bh(e,t){var n=e.focusedValue,i=e.selectValue,r=i.indexOf(n);if(r>-1){var o=t.indexOf(n);if(o>-1)return n;if(r<t.length)return t[r]}return null}function yh(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Ur=function(t,n){var i,r=(i=t.find(function(o){return o.data===n}))===null||i===void 0?void 0:i.id;return r||null},Ml=function(t,n){return t.getOptionLabel(n)},Vn=function(t,n){return t.getOptionValue(n)};function zl(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function Rl(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var i=Vn(e,t);return n.some(function(r){return Vn(e,r)===i})}function Hl(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Xl=function(t){var n=t.hideSelectedOptions,i=t.isMulti;return n===void 0?i:n},Ih=1,qr=function(e){Vp(n,e);var t=Dp(n);function n(i){var r;if(Tp(this,n),r=t.call(this,i),r.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(s){r.controlRef=s},r.focusedOptionRef=null,r.getFocusedOptionRef=function(s){r.focusedOptionRef=s},r.menuListRef=null,r.getMenuListRef=function(s){r.menuListRef=s},r.inputRef=null,r.getInputRef=function(s){r.inputRef=s},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(s,u){var c=r.props,d=c.onChange,f=c.name;u.name=f,r.ariaOnChange(s,u),d(s,u)},r.setValue=function(s,u,c){var d=r.props,f=d.closeMenuOnSelect,p=d.isMulti,b=d.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:b}),f&&(r.setState({inputIsHiddenAfterUpdate:!p}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(s,{action:u,option:c})},r.selectOption=function(s){var u=r.props,c=u.blurInputOnSelect,d=u.isMulti,f=u.name,p=r.state.selectValue,b=d&&r.isOptionSelected(s,p),y=r.isOptionDisabled(s,p);if(b){var x=r.getOptionValue(s);r.setValue(p.filter(function(I){return r.getOptionValue(I)!==x}),"deselect-option",s)}else if(!y)d?r.setValue([].concat(Dt(p),[s]),"select-option",s):r.setValue(s,"select-option");else{r.ariaOnChange(s,{action:"select-option",option:s,name:f});return}c&&r.blurInput()},r.removeValue=function(s){var u=r.props.isMulti,c=r.state.selectValue,d=r.getOptionValue(s),f=c.filter(function(b){return r.getOptionValue(b)!==d}),p=$t(u,f,f[0]||null);r.onChange(p,{action:"remove-value",removedValue:s}),r.focusInput()},r.clearValue=function(){var s=r.state.selectValue;r.onChange($t(r.props.isMulti,[],null),{action:"clear",removedValues:s})},r.popValue=function(){var s=r.props.isMulti,u=r.state.selectValue,c=u[u.length-1],d=u.slice(0,u.length-1),f=$t(s,d,d[0]||null);c&&r.onChange(f,{action:"pop-value",removedValue:c})},r.getFocusedOptionId=function(s){return Ur(r.state.focusableOptionsWithIds,s)},r.getFocusableOptionsWithIds=function(){return Dl(Gn(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];return of.apply(void 0,[r.props.classNamePrefix].concat(u))},r.getOptionLabel=function(s){return Ml(r.props,s)},r.getOptionValue=function(s){return Vn(r.props,s)},r.getStyles=function(s,u){var c=r.props.unstyled,d=sh[s](u,c);d.boxSizing="border-box";var f=r.props.styles[s];return f?f(d,u):d},r.getClassNames=function(s,u){var c,d;return(c=(d=r.props.classNames)[s])===null||c===void 0?void 0:c.call(d,u)},r.getElementId=function(s){return"".concat(r.state.instancePrefix,"-").concat(s)},r.getComponents=function(){return Pg(r.props)},r.buildCategorizedOptions=function(){return Gn(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return Nl(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(s,u){r.setState({ariaSelection:K({value:s},u)})},r.onMenuMouseDown=function(s){s.button===0&&(s.stopPropagation(),s.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(s){r.blockOptionHover=!1},r.onControlMouseDown=function(s){if(!s.defaultPrevented){var u=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&r.onMenuClose():u&&r.openMenu("first"):(u&&(r.openAfterFocus=!0),r.focusInput()),s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&s.preventDefault()}},r.onDropdownIndicatorMouseDown=function(s){if(!(s&&s.type==="mousedown"&&s.button!==0)&&!r.props.isDisabled){var u=r.props,c=u.isMulti,d=u.menuIsOpen;r.focusInput(),d?(r.setState({inputIsHiddenAfterUpdate:!c}),r.onMenuClose()):r.openMenu("first"),s.preventDefault()}},r.onClearIndicatorMouseDown=function(s){s&&s.type==="mousedown"&&s.button!==0||(r.clearValue(),s.preventDefault(),r.openAfterFocus=!1,s.type==="touchend"?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(s){typeof r.props.closeMenuOnScroll=="boolean"?s.target instanceof HTMLElement&&Bn(s.target)&&r.props.onMenuClose():typeof r.props.closeMenuOnScroll=="function"&&r.props.closeMenuOnScroll(s)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(s){var u=s.touches,c=u&&u.item(0);c&&(r.initialTouchX=c.clientX,r.initialTouchY=c.clientY,r.userIsDragging=!1)},r.onTouchMove=function(s){var u=s.touches,c=u&&u.item(0);if(c){var d=Math.abs(c.clientX-r.initialTouchX),f=Math.abs(c.clientY-r.initialTouchY),p=5;r.userIsDragging=d>p||f>p}},r.onTouchEnd=function(s){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(s.target)&&r.menuListRef&&!r.menuListRef.contains(s.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(s){r.userIsDragging||r.onControlMouseDown(s)},r.onClearIndicatorTouchEnd=function(s){r.userIsDragging||r.onClearIndicatorMouseDown(s)},r.onDropdownIndicatorTouchEnd=function(s){r.userIsDragging||r.onDropdownIndicatorMouseDown(s)},r.handleInputChange=function(s){var u=r.props.inputValue,c=s.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(c,{action:"input-change",prevInputValue:u}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(s){r.props.onFocus&&r.props.onFocus(s),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(s){var u=r.props.inputValue;if(r.menuListRef&&r.menuListRef.contains(document.activeElement)){r.inputRef.focus();return}r.props.onBlur&&r.props.onBlur(s),r.onInputChange("",{action:"input-blur",prevInputValue:u}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1})},r.onOptionHover=function(s){if(!(r.blockOptionHover||r.state.focusedOption===s)){var u=r.getFocusableOptions(),c=u.indexOf(s);r.setState({focusedOption:s,focusedOptionId:c>-1?r.getFocusedOptionId(s):null})}},r.shouldHideSelectedOptions=function(){return Xl(r.props)},r.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),r.focus()},r.onKeyDown=function(s){var u=r.props,c=u.isMulti,d=u.backspaceRemovesValue,f=u.escapeClearsValue,p=u.inputValue,b=u.isClearable,y=u.isDisabled,x=u.menuIsOpen,I=u.onKeyDown,T=u.tabSelectsValue,S=u.openMenuOnFocus,E=r.state,P=E.focusedOption,v=E.focusedValue,M=E.selectValue;if(!y&&!(typeof I=="function"&&(I(s),s.defaultPrevented))){switch(r.blockOptionHover=!0,s.key){case"ArrowLeft":if(!c||p)return;r.focusValue("previous");break;case"ArrowRight":if(!c||p)return;r.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(v)r.removeValue(v);else{if(!d)return;c?r.popValue():b&&r.clearValue()}break;case"Tab":if(r.isComposing||s.shiftKey||!x||!T||!P||S&&r.isOptionSelected(P,M))return;r.selectOption(P);break;case"Enter":if(s.keyCode===229)break;if(x){if(!P||r.isComposing)return;r.selectOption(P);break}return;case"Escape":x?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:p}),r.onMenuClose()):b&&f&&r.clearValue();break;case" ":if(p)return;if(!x){r.openMenu("first");break}if(!P)return;r.selectOption(P);break;case"ArrowUp":x?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":x?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!x)return;r.focusOption("pageup");break;case"PageDown":if(!x)return;r.focusOption("pagedown");break;case"Home":if(!x)return;r.focusOption("first");break;case"End":if(!x)return;r.focusOption("last");break;default:return}s.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++Ih),r.state.selectValue=kn(i.value),i.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),l=r.buildFocusableOptions(),a=l.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=l[a],r.state.focusedOptionId=Ur(o,l[a])}return r}return Gp(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&ll(this.menuListRef,this.focusedOptionRef),oh()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(r){var o=this.props,l=o.isDisabled,a=o.menuIsOpen,s=this.state.isFocused;(s&&!l&&r.isDisabled||s&&a&&!r.menuIsOpen)&&this.focusInput(),s&&l&&!r.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!s&&!l&&r.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(ll(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(r,o){this.props.onInputChange(r,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(r){var o=this,l=this.state,a=l.selectValue,s=l.isFocused,u=this.buildFocusableOptions(),c=r==="first"?0:u.length-1;if(!this.props.isMulti){var d=u.indexOf(a[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(r){var o=this.state,l=o.selectValue,a=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=l.indexOf(a);a||(s=-1);var u=l.length-1,c=-1;if(l.length){switch(r){case"previous":s===0?c=0:s===-1?c=u:c=s-1;break;case"next":s>-1&&s<u&&(c=s+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:l[c]})}}}},{key:"focusOption",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,l=this.state.focusedOption,a=this.getFocusableOptions();if(a.length){var s=0,u=a.indexOf(l);l||(u=-1),r==="up"?s=u>0?u-1:a.length-1:r==="down"?s=(u+1)%a.length:r==="pageup"?(s=u-o,s<0&&(s=0)):r==="pagedown"?(s=u+o,s>a.length-1&&(s=a.length-1)):r==="last"&&(s=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(a[s])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(en):K(K({},en),this.props.theme):en}},{key:"getCommonProps",value:function(){var r=this.clearValue,o=this.cx,l=this.getStyles,a=this.getClassNames,s=this.getValue,u=this.selectOption,c=this.setValue,d=this.props,f=d.isMulti,p=d.isRtl,b=d.options,y=this.hasValue();return{clearValue:r,cx:o,getStyles:l,getClassNames:a,getValue:s,hasValue:y,isMulti:f,isRtl:p,options:b,selectOption:u,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var r=this.state.selectValue;return r.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var r=this.props,o=r.isClearable,l=r.isMulti;return o===void 0?l:o}},{key:"isOptionDisabled",value:function(r,o){return zl(this.props,r,o)}},{key:"isOptionSelected",value:function(r,o){return Rl(this.props,r,o)}},{key:"filterOption",value:function(r,o){return Hl(this.props,r,o)}},{key:"formatOptionLabel",value:function(r,o){if(typeof this.props.formatOptionLabel=="function"){var l=this.props.inputValue,a=this.state.selectValue;return this.props.formatOptionLabel(r,{context:o,inputValue:l,selectValue:a})}else return this.getOptionLabel(r)}},{key:"formatGroupLabel",value:function(r){return this.props.formatGroupLabel(r)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var r=this.props,o=r.isDisabled,l=r.isSearchable,a=r.inputId,s=r.inputValue,u=r.tabIndex,c=r.form,d=r.menuIsOpen,f=r.required,p=this.getComponents(),b=p.Input,y=this.state,x=y.inputIsHidden,I=y.ariaSelection,T=this.commonProps,S=a||this.getElementId("input"),E=K(K(K({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!l&&{"aria-readonly":!0}),this.hasValue()?(I==null?void 0:I.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return l?ge.createElement(b,re({},T,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:S,innerRef:this.getInputRef,isDisabled:o,isHidden:x,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:s},E)):ge.createElement(Zg,re({id:S,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:En,onFocus:this.onInputFocus,disabled:o,tabIndex:u,inputMode:"none",form:c,value:""},E))}},{key:"renderPlaceholderOrValue",value:function(){var r=this,o=this.getComponents(),l=o.MultiValue,a=o.MultiValueContainer,s=o.MultiValueLabel,u=o.MultiValueRemove,c=o.SingleValue,d=o.Placeholder,f=this.commonProps,p=this.props,b=p.controlShouldRenderValue,y=p.isDisabled,x=p.isMulti,I=p.inputValue,T=p.placeholder,S=this.state,E=S.selectValue,P=S.focusedValue,v=S.isFocused;if(!this.hasValue()||!b)return I?null:ge.createElement(d,re({},f,{key:"placeholder",isDisabled:y,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),T);if(x)return E.map(function(F,O){var w=F===P,N="".concat(r.getOptionLabel(F),"-").concat(r.getOptionValue(F));return ge.createElement(l,re({},f,{components:{Container:a,Label:s,Remove:u},isFocused:w,isDisabled:y,key:N,index:O,removeProps:{onClick:function(){return r.removeValue(F)},onTouchEnd:function(){return r.removeValue(F)},onMouseDown:function(H){H.preventDefault()}},data:F}),r.formatOptionLabel(F,"value"))});if(I)return null;var M=E[0];return ge.createElement(c,re({},f,{data:M,isDisabled:y}),this.formatOptionLabel(M,"value"))}},{key:"renderClearIndicator",value:function(){var r=this.getComponents(),o=r.ClearIndicator,l=this.commonProps,a=this.props,s=a.isDisabled,u=a.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||s||!this.hasValue()||u)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return ge.createElement(o,re({},l,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var r=this.getComponents(),o=r.LoadingIndicator,l=this.commonProps,a=this.props,s=a.isDisabled,u=a.isLoading,c=this.state.isFocused;if(!o||!u)return null;var d={"aria-hidden":"true"};return ge.createElement(o,re({},l,{innerProps:d,isDisabled:s,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var r=this.getComponents(),o=r.DropdownIndicator,l=r.IndicatorSeparator;if(!o||!l)return null;var a=this.commonProps,s=this.props.isDisabled,u=this.state.isFocused;return ge.createElement(l,re({},a,{isDisabled:s,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var r=this.getComponents(),o=r.DropdownIndicator;if(!o)return null;var l=this.commonProps,a=this.props.isDisabled,s=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return ge.createElement(o,re({},l,{innerProps:u,isDisabled:a,isFocused:s}))}},{key:"renderMenu",value:function(){var r=this,o=this.getComponents(),l=o.Group,a=o.GroupHeading,s=o.Menu,u=o.MenuList,c=o.MenuPortal,d=o.LoadingMessage,f=o.NoOptionsMessage,p=o.Option,b=this.commonProps,y=this.state.focusedOption,x=this.props,I=x.captureMenuScroll,T=x.inputValue,S=x.isLoading,E=x.loadingMessage,P=x.minMenuHeight,v=x.maxMenuHeight,M=x.menuIsOpen,F=x.menuPlacement,O=x.menuPosition,w=x.menuPortalTarget,N=x.menuShouldBlockScroll,V=x.menuShouldScrollIntoView,H=x.noOptionsMessage,q=x.onMenuScrollToTop,W=x.onMenuScrollToBottom;if(!M)return null;var J=function(m,pe){var te=m.type,ne=m.data,ke=m.isDisabled,fe=m.isSelected,Ge=m.label,de=m.value,ve=y===ne,Ce=ke?void 0:function(){return r.onOptionHover(ne)},Ve=ke?void 0:function(){return r.selectOption(ne)},Be="".concat(r.getElementId("option"),"-").concat(pe),De={id:Be,onClick:Ve,onMouseMove:Ce,onMouseOver:Ce,tabIndex:-1,role:"option","aria-selected":r.state.isAppleDevice?void 0:fe};return ge.createElement(p,re({},b,{innerProps:De,data:ne,isDisabled:ke,isSelected:fe,key:Be,label:Ge,type:te,value:de,isFocused:ve,innerRef:ve?r.getFocusedOptionRef:void 0}),r.formatOptionLabel(m.data,"menu"))},le;if(this.hasOptions())le=this.getCategorizedOptions().map(function(_){if(_.type==="group"){var m=_.data,pe=_.options,te=_.index,ne="".concat(r.getElementId("group"),"-").concat(te),ke="".concat(ne,"-heading");return ge.createElement(l,re({},b,{key:ne,data:m,options:pe,Heading:a,headingProps:{id:ke,data:_.data},label:r.formatGroupLabel(_.data)}),_.options.map(function(fe){return J(fe,"".concat(te,"-").concat(fe.index))}))}else if(_.type==="option")return J(_,"".concat(_.index))});else if(S){var se=E({inputValue:T});if(se===null)return null;le=ge.createElement(d,b,se)}else{var G=H({inputValue:T});if(G===null)return null;le=ge.createElement(f,b,G)}var g={minMenuHeight:P,maxMenuHeight:v,menuPlacement:F,menuPosition:O,menuShouldScrollIntoView:V},ue=ge.createElement(Cf,re({},b,g),function(_){var m=_.ref,pe=_.placerProps,te=pe.placement,ne=pe.maxHeight;return ge.createElement(s,re({},b,g,{innerRef:m,innerProps:{onMouseDown:r.onMenuMouseDown,onMouseMove:r.onMenuMouseMove},isLoading:S,placement:te}),ge.createElement(Qg,{captureEnabled:I,onTopArrive:q,onBottomArrive:W,lockEnabled:N},function(ke){return ge.createElement(u,re({},b,{innerRef:function(Ge){r.getMenuListRef(Ge),ke(Ge)},innerProps:{role:"listbox","aria-multiselectable":b.isMulti,id:r.getElementId("listbox")},isLoading:S,maxHeight:ne,focusedOption:y}),le)}))});return w||O==="fixed"?ge.createElement(c,re({},b,{appendTo:w,controlElement:this.controlRef,menuPlacement:F,menuPosition:O}),ue):ue}},{key:"renderFormField",value:function(){var r=this,o=this.props,l=o.delimiter,a=o.isDisabled,s=o.isMulti,u=o.name,c=o.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!a)return ge.createElement(th,{name:u,onFocus:this.onValueInputFocus});if(!(!u||a))if(s)if(l){var f=d.map(function(y){return r.getOptionValue(y)}).join(l);return ge.createElement("input",{name:u,type:"hidden",value:f})}else{var p=d.length>0?d.map(function(y,x){return ge.createElement("input",{key:"i-".concat(x),name:u,type:"hidden",value:r.getOptionValue(y)})}):ge.createElement("input",{name:u,type:"hidden",value:""});return ge.createElement("div",null,p)}else{var b=d[0]?this.getOptionValue(d[0]):"";return ge.createElement("input",{name:u,type:"hidden",value:b})}}},{key:"renderLiveRegion",value:function(){var r=this.commonProps,o=this.state,l=o.ariaSelection,a=o.focusedOption,s=o.focusedValue,u=o.isFocused,c=o.selectValue,d=this.getFocusableOptions();return ge.createElement(Mg,re({},r,{id:this.getElementId("live-region"),ariaSelection:l,focusedOption:a,focusedValue:s,isFocused:u,selectValue:c,focusableOptions:d,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var r=this.getComponents(),o=r.Control,l=r.IndicatorsContainer,a=r.SelectContainer,s=r.ValueContainer,u=this.props,c=u.className,d=u.id,f=u.isDisabled,p=u.menuIsOpen,b=this.state.isFocused,y=this.commonProps=this.getCommonProps();return ge.createElement(a,re({},y,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:b}),this.renderLiveRegion(),ge.createElement(o,re({},y,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:b,menuIsOpen:p}),ge.createElement(s,re({},y,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),ge.createElement(l,re({},y,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(r,o){var l=o.prevProps,a=o.clearFocusValueOnUpdate,s=o.inputIsHiddenAfterUpdate,u=o.ariaSelection,c=o.isFocused,d=o.prevWasFocused,f=o.instancePrefix,p=r.options,b=r.value,y=r.menuIsOpen,x=r.inputValue,I=r.isMulti,T=kn(b),S={};if(l&&(b!==l.value||p!==l.options||y!==l.menuIsOpen||x!==l.inputValue)){var E=y?mh(r,T):[],P=y?Dl(Gn(r,T),"".concat(f,"-option")):[],v=a?bh(o,T):null,M=yh(o,E),F=Ur(P,M);S={selectValue:T,focusedOption:M,focusedOptionId:F,focusableOptionsWithIds:P,focusedValue:v,clearFocusValueOnUpdate:!1}}var O=s!=null&&r!==l?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},w=u,N=c&&d;return c&&!N&&(w={value:$t(I,T,T[0]||null),options:T,action:"initial-input-focus"},N=!d),(u==null?void 0:u.action)==="initial-input-focus"&&(w=null),K(K(K({},S),O),{},{prevProps:r,ariaSelection:w,prevWasFocused:N})}}]),n}(A.Component);qr.defaultProps=hh;var vh=A.forwardRef(function(e,t){var n=Jo(e);return ge.createElement(qr,re({ref:t},n))}),On=vh;const Ch=en,Nn={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},boxShadow:{button:"rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px",card:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",dropdown:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",input:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},spacing:{baseUnit:4,controlHeight:32,menuGutter:8}},Wl={colors:{},spacing:{baseUnit:4,controlHeight:32,menuGutter:8},boxShadow:{button:"none",input:"none",card:"none",dropdown:"none"}};function Zl(e){if(!e)return en;const t=typeof e=="function"?e(Nn):e,{colors:n,spacing:i,borderRadius:r}=Dn(Ch,t);return{borderRadius:r,colors:n,spacing:i}}function Dn(e,...t){const n={borderRadius:e.borderRadius,colors:{...e.colors},spacing:{...e.spacing},boxShadow:{...e.boxShadow}};for(const i of t)i&&(n.borderRadius=i.borderRadius??n.borderRadius,Object.assign(n.boxShadow,i.boxShadow),Object.assign(n.colors,i.colors),Object.assign(n.spacing,i.spacing));return n}const xh=({...e})=>{const[t,n]=A.useState(!1),i={textDecoration:"underline",textUnderlineOffset:"3px",color:"inherit",transition:"opacity 0.2s ease",opacity:t?.7:1};return k.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"2px"},children:[k.jsx("a",{...e,target:"_blank",rel:"noopener noreferrer",style:i,onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1)}),k.jsx("span",{style:{fontSize:"0.7em",opacity:.7},children:"↗"})]})};function jl(e){const{field:t,markdown:n}=e,{prop:i}=t,{getClassNames:r,getStyles:o,theme:l}=Te(),a=A.useMemo(()=>({color:l.colors.neutral50,fontWeight:400,fontSize:"0.75rem",gridArea:"description",textWrap:"balance",lineHeight:"1.5"}),[l.colors.neutral50]),s=A.useMemo(()=>({a:xh}),[]),u=e;return i.type==="app"?k.jsx("p",{className:r("description",u),style:o("description",a,u),children:"Credentials are encrypted."}):i.description?k.jsxs("div",{className:r("description",u),style:o("description",a,u),children:[" ",k.jsx(Lo,{components:s,children:n})]}):null}function Jl(e){const{field:t}=e,{enableDebugging:n,errors:i={},prop:r={}}=t;if(!n||!i[r.name])return null;const o=i[r.name].map(s=>({type:"alert",alertType:"error",content:s,name:r.name})),l={display:"grid",gridTemplateColumns:"max-content"},a=()=>k.jsx(k.Fragment,{children:o.map((s,u)=>k.jsx(yn,{prop:s},u))});return k.jsx("div",{className:"pd-errors",style:l,children:k.jsx(a,{})})}function Yl(e){const{text:t,field:n}=e,{id:i}=n,{getProps:r,theme:o}=Te(),l={color:o.colors.neutral90,fontWeight:450,gridArea:"label",lineHeight:"1.5"};return k.jsx("label",{htmlFor:i,...r("label",l,e),children:t})}const _l=e=>{const{onChange:t}=e,{getProps:n,theme:i}=Te(),r={backgroundColor:i.colors.primary,borderRadius:i.borderRadius,border:"solid 1px",borderColor:i.colors.primary25,color:i.colors.primary25,padding:"0.5rem",fontSize:"0.8125rem",fontWeight:"450",gridArea:"control",cursor:"pointer",width:"100%"};return k.jsx("button",{onClick:t,type:"button",...n("loadMoreButton",r,e),children:"Load More"})},Ul=e=>{const{prop:t,enabled:n,onClick:i}=e,{getProps:r,theme:o}=Te(),l={color:o.colors.neutral60,display:"inline-flex",alignItems:"center",padding:`${o.spacing.baseUnit}px ${o.spacing.baseUnit*1.5}px ${o.spacing.baseUnit}px ${o.spacing.baseUnit*2.5}px`,border:`1px solid ${o.colors.neutral30}`,borderRadius:o.borderRadius,cursor:"pointer",fontSize:"0.8125rem",fontWeight:450,gap:o.spacing.baseUnit*2,textWrap:"nowrap"};return k.jsxs("button",{onClick:i,type:"button",...r("optionalFieldButton",l,e),children:[k.jsx("span",{children:n?"-":"+"}),k.jsx("span",{style:{marginRight:8},children:t.label||t.name})]})},ql={Description:jl,Errors:Jl,Label:Yl,OptionalFieldButton:Ul,Button:_l},Ln=A.createContext({classNames:{},classNamePrefix:"",components:{},styles:{},theme:Nn,unstyled:!1});function Ah(){const e=A.useContext(Ln)??{},t=Zl(e.theme??{});function n(){return e.classNamePrefix??""}function i(a){var c;const s=`${(e==null?void 0:e.classNamePrefix)??"pd-"}${a}`,u={...((c=e.classNames)==null?void 0:c[a])??{}};return typeof(u==null?void 0:u.container)=="function"&&(u.container=typeof(u==null?void 0:u.container)=="function"?(...d)=>{var f;return[(f=u==null?void 0:u.container)==null?void 0:f.call(u,...d),s].join(" ")}:()=>s),u}function r(a,s){var u;return{...Lt,...s??{},...((u=e==null?void 0:e.components)==null?void 0:u[a])??{}}}function o(a,s){var c;const u=(c=e.styles)==null?void 0:c[a];return uh(u??{},s??{})}function l(a,s){return{classNamePrefix:n(),classNames:i(a),components:r(a,s==null?void 0:s.components),styles:o(a,s==null?void 0:s.styles),theme:t}}return{getClassNamePrefix:n,getClassNames:i,getComponents:r,getProps:l,getStyles:o,theme:t}}function Te(){const e=A.useContext(Ln)??{},t=e.theme,n=e.unstyled?Wl:Nn,i=typeof t=="function"?Dn(n,t(n)):Dn(n,t);function r(s,u){var f;const c=`${(e==null?void 0:e.classNamePrefix)??"pd-"}${s.toLowerCase()}`,d=(f=e.classNames)==null?void 0:f[s];if(typeof d=="function"){const p=d,b={...u??{},theme:i};return[c,p(b)].filter(Boolean).join(" ")}return[c,d].filter(Boolean).join(" ")}function o(){return{...ql,...(e==null?void 0:e.components)??{}}}function l(s,u,c){var f;const d=(f=e.styles)==null?void 0:f[s];if(typeof d=="function"){const p=d,b={...c??{},theme:i};return p(u,b)}return d?{...u,...d}:u}function a(s,u,c){return{className:r(s,c),style:l(s,u,c)}}return{getClassNames:r,getComponents:o,getProps:a,getStyles:l,select:Ah(),theme:i}}const Sh=({children:e,...t})=>k.jsx(Ln.Provider,{value:t,children:e}),Qr=A.createContext(void 0),Qe=()=>{const e=A.useContext(Qr);if(!e)throw new Error("Must be used inside FormFieldContext.Provider");return e},Ql=(e,t)=>{const n=ut(),i={externalUserId:e.external_user_id,app:e.app,oauthAppId:e.oauth_app_id},r=st.useQuery({...t==null?void 0:t.useQueryOpts,queryKey:["accounts",e],queryFn:async()=>(await n.accounts.list(i)).data});return{...r,accounts:r.data||[]}};function Mn(e){const t=e.neutral0??"#ffffff",n=e.neutral20??"hsl(0, 0%, 80%)",i=e.neutral60??"hsl(0, 0%, 40%)",r=e.neutral80??"hsl(0, 0%, 20%)",o=e.optionHover??e.neutral20??"hsl(0, 0%, 80%)",l=e.optionSelected??e.neutral30??"hsl(0, 0%, 70%)",a=e.optionSelectedHover??e.neutral40??"hsl(0, 0%, 60%)",s=e.appIconBackground??e.neutral0??"#ffffff";return{surface:t,border:n,text:i,textStrong:r,hoverBg:o,selectedBg:l,selectedHoverBg:a,appIconBg:s}}function zn(e){const{colors:{surface:t,border:n,text:i,textStrong:r,hoverBg:o,selectedBg:l,selectedHoverBg:a},boxShadow:s}=e;return{control:u=>({...u,backgroundColor:t,borderColor:n,color:i,boxShadow:s.input}),menu:u=>({...u,backgroundColor:t,boxShadow:s.dropdown}),menuList:u=>({...u,backgroundColor:t}),singleValue:u=>({...u,color:i,fontSize:"0.875rem"}),input:u=>({...u,color:i,fontSize:"0.875rem"}),option:(u,c)=>{let d=t;return c.isSelected&&c.isFocused?d=a:c.isSelected?d=l:c.isFocused&&(d=o),{...u,backgroundColor:d,color:r,fontSize:"0.875rem",":active":{...u[":active"],backgroundColor:c.isDisabled?void 0:a}}}}}const wh=e=>k.jsx(Lt.Option,{...e,children:e.data.name});function $l({app:e}){const t=ut(),{externalUserId:n,oauthAppConfig:i}=qt(),r=Qe(),{id:o,prop:l,value:a,onChange:s}=r,{getProps:u,select:c,theme:d}=Te(),f=A.useMemo(()=>Mn(d.colors),[d.colors]),p=A.useMemo(()=>zn({colors:{surface:f.surface,border:f.border,text:f.text,textStrong:f.textStrong,hoverBg:f.hoverBg,selectedBg:f.selectedBg,selectedHoverBg:f.selectedHoverBg},boxShadow:d.boxShadow}),[f,d.boxShadow]),b={color:d.colors.neutral60,gridArea:"control"},y={backgroundColor:d.colors.primary,borderRadius:d.borderRadius,border:"solid 1px",borderColor:d.colors.primary25,color:d.colors.primary25,padding:"0.25rem 0.5rem",gridArea:"control"},x={components:{Option:wh},styles:{...p,control:(w,N)=>{var V;return{...((V=p.control)==null?void 0:V.call(p,w,N))??w,gridArea:"control"}}}},I=c.getProps("controlAppSelect",x),T=i==null?void 0:i[e.nameSlug],{isLoading:S,accounts:E,refetch:P}=Ql({external_user_id:n,app:e.nameSlug,oauth_app_id:T},{useQueryOpts:{enabled:!!e,suspense:!!e}}),v=async()=>{t.connectAccount({app:l.app,oauthAppId:T,onSuccess:async w=>{await P(),s({authProvisionId:w.id})},onError:()=>{}})},M={id:"_new",name:`Connect new ${e.name} account...`},F=A.useMemo(()=>[...E,M],[E]),O=A.useMemo(()=>{if(a!=null&&a.authProvisionId){for(const w of E)if(a.authProvisionId===w.id)return w}return M},[E,a]);return k.jsx("div",{...u("controlApp",b,{app:e,...r}),children:S?`Loading ${e.name} accounts...`:E.length?k.jsx(On,{instanceId:o,value:O,options:F,...I,classNamePrefix:"react-select",required:!0,placeholder:`Select ${e.name} account...`,isLoading:S,isClearable:!0,isSearchable:!0,getOptionLabel:w=>w.name??"",getOptionValue:w=>w.id,menuPortalTarget:typeof document<"u"?document.body:null,menuPosition:"fixed",styles:{...I.styles,menuPortal:w=>({...w,zIndex:99999})},onChange:w=>{w?w.id==="_new"?v():s({authProvisionId:w.id}):s(void 0)}}):k.jsxs("button",{type:"button",...u("connectButton",y,{app:e,...r}),onClick:()=>v(),children:["Connect ",e.name]})})}const $r=e=>({color:e.colors.neutral80,backgroundColor:e.colors.neutral0,borderWidth:1,borderStyle:"solid",borderColor:e.colors.neutral20,padding:6,borderRadius:e.borderRadius,boxShadow:e.boxShadow.input,flex:1}),Rn=e=>({color:e.colors.neutral80,backgroundColor:"transparent",display:"inline-flex",alignItems:"center",padding:`${e.spacing.baseUnit}px ${e.spacing.baseUnit*1.5}px ${e.spacing.baseUnit}px ${e.spacing.baseUnit*2.5}px`,borderWidth:1,borderStyle:"solid",borderColor:e.colors.neutral30,borderRadius:e.borderRadius,cursor:"pointer",fontSize:"0.8125rem",fontWeight:450,gap:e.spacing.baseUnit*2,textWrap:"nowrap"}),Kr=e=>({...Rn(e),flex:"0 0 auto",padding:"6px 8px"}),ei=()=>({gridArea:"control",display:"flex",flexDirection:"column",gap:"0.5rem"}),ti=()=>({display:"flex",gap:"0.5rem",alignItems:"center"});function Eh(){var M;const e=Qe(),{onChange:t,prop:n,value:i}=e,{getProps:r,theme:o}=Te(),l=()=>{if(!i||!Array.isArray(i))return[""];const F=i.map(O=>typeof O=="string"?O:JSON.stringify(O));return F.length>0?F:[""]},[a,s]=A.useState(l),u=A.useRef(a);A.useEffect(()=>{u.current=a},[a]);const c=()=>Array.isArray(i)?i.map(F=>typeof F=="string"?F:JSON.stringify(F)).filter(F=>F.trim()!==""):[],d=F=>F.filter(O=>O.trim()!==""),f=(F,O)=>{if(F.length!==O.length)return!1;for(let w=0;w<F.length;w+=1)if(F[w]!==O[w])return!1;return!0};A.useEffect(()=>{const F=c(),O=d(u.current);f(O,F)||s(l())},[i]),A.useEffect(()=>{s(l())},[n.name]);const p=F=>{const O=F.filter(w=>w.trim()!=="");if(O.length===0){t(void 0);return}t(O)},b=(F,O)=>{const w=[...a];w[F]=O,s(w),p(w)},y=()=>{const F=[...a,""];s(F)},x=F=>{const O=a.filter((w,N)=>N!==F);s(O.length>0?O:[""]),p(O)},I=ei(),T=ti(),S=$r(o),E=Rn(o),P=Kr(o),v=((M=a[a.length-1])==null?void 0:M.trim())||a.length>1;return k.jsxs("div",{...r("controlArray",I,e),children:[a.map((F,O)=>k.jsxs("div",{style:T,children:[k.jsx("input",{type:"text",value:F,onChange:w=>b(O,w.target.value),placeholder:"",style:S,required:!n.optional&&O===0}),a.length>1&&k.jsx("button",{type:"button",onClick:()=>x(O),style:P,"aria-label":"Remove value",children:"×"})]},O)),v&&k.jsxs("button",{type:"button",onClick:y,style:{...E,alignSelf:"flex-start",paddingRight:`${o.spacing.baseUnit*2}px`},children:[k.jsx("span",{children:"+"}),k.jsx("span",{children:"Add more"})]})]})}function Kl(){const e=Qe(),{id:t,value:n,onChange:i}=e,{getProps:r}=Te(),o={width:"16px",height:"16px",gridArea:"control",margin:"0 0.5rem 0 0"};return k.jsx("input",{id:t,type:"checkbox",...r("controlBoolean",o,e),checked:n??!1,onChange:l=>i(l.target.checked)})}function ea(){const e=Qe(),{id:t,onChange:n,prop:i,value:r}=e,{getProps:o,theme:l}=Te(),a={color:l.colors.neutral60,display:"block",border:"1px solid",borderColor:l.colors.neutral20,padding:6,width:"100%",borderRadius:l.borderRadius,gridArea:"control",boxShadow:l.boxShadow.input};let s="off",u="text",c=p=>p;switch(i.type){case"string":break;case"integer":u="number",c=p=>p?parseInt(p):void 0;break;default:throw new Error("unexpected prop.type for ControlInput: "+i.type)}"secret"in i&&i.secret&&(u="password",s="new-password");const d=it(i,"integer")?i.min:void 0,f=it(i,"integer")?i.max:void 0;return k.jsx("input",{id:t,type:u,name:i.name,value:String(r??""),onChange:p=>n(c(p.target.value)),...o("controlInput",a,e),min:d,max:f,autoComplete:s,"data-lpignore":"true","data-1p-ignore":"true",required:!i.optional})}const kh=["GET","POST","PUT","PATCH","DELETE"],Hn=e=>{const t=(e??[]).map(n=>({key:n.name??"",value:n.value??"",disabled:n.disabled}));return t.length>0?t:[{key:"",value:""}]},ta=e=>e.filter(t=>t.key.trim()!=="").map(t=>{const n={name:t.key,value:t.value};return t.disabled!==void 0&&(n.disabled=t.disabled),n}),Bh=[{value:"application/json",label:"JSON"},{value:"application/x-www-form-urlencoded",label:"Form URL Encoded"},{value:"text/plain",label:"Text"},{value:"none",label:"None"}];function na(){const e=Qe(),{onChange:t,prop:n,value:i}=e,{getProps:r,theme:o}=Te(),l=()=>{if("default"in n&&n.default&&typeof n.default=="object")return n.default},a=()=>{const G=i,g=l();return Hn((G==null?void 0:G.headers)??(g==null?void 0:g.headers))},s=()=>{const G=i,g=l();return Hn((G==null?void 0:G.params)??(g==null?void 0:g.params))},u=()=>{var ue,_;const G=i,g=l();return((ue=G==null?void 0:G.body)==null?void 0:ue.raw)??((_=g==null?void 0:g.body)==null?void 0:_.raw)??""},c=()=>{var ue,_;const G=i,g=l();return((ue=G==null?void 0:G.body)==null?void 0:ue.contentType)??((_=g==null?void 0:g.body)==null?void 0:_.contentType)??"application/json"},d=()=>{const G=i,g=l();return{url:(G==null?void 0:G.url)??(g==null?void 0:g.url)??"",method:(G==null?void 0:G.method)??(g==null?void 0:g.method)??"GET",headers:a(),params:s(),body:u(),bodyContentType:c()}},[f,p]=A.useState(d);A.useEffect(()=>{var m,pe,te,ne;const G=i,g=l(),ue=Hn((G==null?void 0:G.headers)??(g==null?void 0:g.headers)),_=Hn((G==null?void 0:G.params)??(g==null?void 0:g.params));p({url:(G==null?void 0:G.url)??(g==null?void 0:g.url)??"",method:(G==null?void 0:G.method)??(g==null?void 0:g.method)??"GET",headers:ue,params:_,body:((m=G==null?void 0:G.body)==null?void 0:m.raw)??((pe=g==null?void 0:g.body)==null?void 0:pe.raw)??"",bodyContentType:((te=G==null?void 0:G.body)==null?void 0:te.contentType)??((ne=g==null?void 0:g.body)==null?void 0:ne.contentType)??"application/json"})},[i]);const b=G=>{const g=ta(G.headers),ue=ta(G.params),_={contentType:G.bodyContentType,type:"raw",mode:"raw"};return G.bodyContentType!=="none"&&G.body.trim()&&(_.raw=G.body),{url:G.url,method:G.method,headers:g,params:ue,body:_}},y=G=>{const g={...f,url:G};p(g),t(b(g))},x=G=>{const g={...f,method:G};p(g),t(b(g))},I=(G,g,ue)=>{const _=[...f.headers];_[G]={..._[G],[g]:ue};const m={...f,headers:_};p(m),t(b(m))},T=()=>{const G=[...f.headers,{key:"",value:""}];p({...f,headers:G})},S=G=>{const g=f.headers.filter((m,pe)=>pe!==G),ue=g.length>0?g:[{key:"",value:""}],_={...f,headers:ue};p(_),t(b(_))},E=G=>{const g={...f,bodyContentType:G};p(g),t(b(g))},P=G=>{const g={...f,body:G};p(g),t(b(g))},v=ei(),M=ti(),F=$r(o),O=Rn(o),w=Kr(o),N={display:"flex",flexDirection:"column",gap:`${o.spacing.baseUnit}px`},V={fontSize:"0.75rem",fontWeight:500,color:o.colors.neutral70},H={...F,cursor:"pointer"},q={...F,cursor:"pointer",flex:"none",width:"85px",borderTopRightRadius:0,borderBottomRightRadius:0,borderRightWidth:0},W={...F,borderTopLeftRadius:0,borderBottomLeftRadius:0,flex:1},J={...F,resize:"vertical",minHeight:"80px",fontFamily:"monospace"},le={display:"flex",alignItems:"stretch"},se=`http-request-${n.name}`;return k.jsxs("div",{...r("controlHttpRequest",v,e),children:[k.jsxs("div",{style:N,children:[k.jsx("span",{style:V,children:"URL"}),k.jsxs("div",{style:le,children:[k.jsx("select",{value:f.method,onChange:G=>x(G.target.value),style:q,"aria-label":"HTTP method",children:kh.map(G=>k.jsx("option",{value:G,children:G},G))}),k.jsx("input",{type:"text",value:f.url,onChange:G=>y(G.target.value),placeholder:"https://api.example.com/endpoint",style:W,required:!n.optional,"aria-label":"URL"})]})]}),k.jsxs("div",{style:N,children:[k.jsx("span",{style:V,children:"Headers"}),f.headers.map((G,g)=>k.jsxs("div",{style:M,children:[k.jsx("input",{type:"text",value:G.key,onChange:ue=>I(g,"key",ue.target.value),placeholder:"Header name",style:F,"aria-label":`Header ${g+1} name`}),k.jsx("input",{type:"text",value:G.value,onChange:ue=>I(g,"value",ue.target.value),placeholder:"Header value",style:F,"aria-label":`Header ${g+1} value`}),f.headers.length>1&&k.jsx("button",{type:"button",onClick:()=>S(g),style:w,"aria-label":`Remove header ${g+1}`,children:"x"})]},g)),k.jsxs("button",{type:"button",onClick:T,style:{...O,alignSelf:"flex-start",paddingRight:`${o.spacing.baseUnit*2}px`},children:[k.jsx("span",{children:"+"}),k.jsx("span",{children:"Add header"})]})]}),k.jsxs("div",{style:N,children:[k.jsx("label",{htmlFor:`${se}-body-type`,style:V,children:"Body"}),k.jsx("select",{id:`${se}-body-type`,value:f.bodyContentType,onChange:G=>E(G.target.value),style:H,children:Bh.map(G=>k.jsx("option",{value:G.value,children:G.label},G.value))}),f.bodyContentType!=="none"&&k.jsx("textarea",{value:f.body,onChange:G=>P(G.target.value),placeholder:f.bodyContentType==="application/json"?'{"key": "value"}':"Request body",style:J,rows:4,"aria-label":"Request body"})]})]})}function Ph(){const e=Qe(),{onChange:t,prop:n,value:i}=e,{getProps:r,theme:o}=Te(),l=S=>{if(S===null||typeof S!="object"||S instanceof Date||S instanceof Function||S instanceof RegExp)return!1;const E=Object.getPrototypeOf(S);return E===Object.prototype||E===null},a=()=>{if(!i||typeof i!="object"||Array.isArray(i))return[{key:"",value:""}];if(!l(i))return[{key:"",value:""}];const S=Object.entries(i).map(([E,P])=>({key:E,value:typeof P=="string"?P:(()=>{try{return JSON.stringify(P)}catch{return String(P)}})()}));return S.length>0?S:[{key:"",value:""}]},[s,u]=A.useState(a);A.useEffect(()=>{if(!i||typeof i!="object"||Array.isArray(i)){u([{key:"",value:""}]);return}if(!l(i)){u([{key:"",value:""}]);return}const S=Object.entries(i).map(([E,P])=>({key:E,value:typeof P=="string"?P:(()=>{try{return JSON.stringify(P)}catch{return String(P)}})()}));u(S.length>0?S:[{key:"",value:""}])},[i]);const c=S=>{const E=S.filter(v=>v.key.trim()!=="");if(E.length===0){t(void 0);return}const P={};E.forEach(v=>{if(v.key.trim())try{P[v.key]=JSON.parse(v.value)}catch{P[v.key]=v.value}}),t(P)},d=(S,E,P)=>{const v=[...s];v[S]={...v[S],[E]:P},u(v),c(v)},f=()=>{const S=[...s,{key:"",value:""}];u(S)},p=S=>{const E=s.filter((P,v)=>v!==S);u(E.length>0?E:[{key:"",value:""}]),c(E)},b=ei(),y=ti(),x=$r(o),I=Rn(o),T=Kr(o);return k.jsxs("div",{...r("controlObject",b,e),children:[s.map((S,E)=>k.jsxs("div",{style:y,children:[k.jsx("input",{type:"text",value:S.key,onChange:P=>d(E,"key",P.target.value),placeholder:"Key",style:x,required:!n.optional&&E===0}),k.jsx("input",{type:"text",value:S.value,onChange:P=>d(E,"value",P.target.value),placeholder:"Value",style:x}),s.length>1&&k.jsx("button",{type:"button",onClick:()=>p(E),style:T,"aria-label":"Remove pair",children:"×"})]},E)),k.jsxs("button",{type:"button",onClick:f,style:{...I,alignSelf:"flex-start",paddingRight:`${o.spacing.baseUnit*2}px`},children:[k.jsx("span",{children:"+"}),k.jsx("span",{children:"Add more"})]})]})}var Fh=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],ra=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=String(t).toLowerCase(),o=String(i.getOptionValue(n)).toLowerCase(),l=String(i.getOptionLabel(n)).toLowerCase();return o===r||l===r},ni={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,n,i,r){return!(!t||n.some(function(o){return ra(t,o,r)})||i.some(function(o){return ra(t,o,r)}))},getNewOptionData:function(t,n){return{label:n,value:t,__isNew__:!0}}};function Th(e){var t=e.allowCreateWhileLoading,n=t===void 0?!1:t,i=e.createOptionPosition,r=i===void 0?"last":i,o=e.formatCreateLabel,l=o===void 0?ni.formatCreateLabel:o,a=e.isValidNewOption,s=a===void 0?ni.isValidNewOption:a,u=e.getNewOptionData,c=u===void 0?ni.getNewOptionData:u,d=e.onCreateOption,f=e.options,p=f===void 0?[]:f,b=e.onChange,y=ot(e,Fh),x=y.getOptionValue,I=x===void 0?Gl:x,T=y.getOptionLabel,S=T===void 0?Tl:T,E=y.inputValue,P=y.isLoading,v=y.isMulti,M=y.value,F=y.name,O=A.useMemo(function(){return s(E,kn(M),p,{getOptionValue:I,getOptionLabel:S})?c(E,l(E)):void 0},[l,c,S,I,E,s,p,M]),w=A.useMemo(function(){return(n||!P)&&O?r==="first"?[O].concat(Dt(p)):[].concat(Dt(p),[O]):p},[n,r,P,O,p]),N=A.useCallback(function(V,H){if(H.action!=="select-option")return b(V,H);var q=Array.isArray(V)?V:[V];if(q[q.length-1]===O){if(d)d(E);else{var W=c(E,E),J={action:"create-option",name:F,option:W};b($t(v,[].concat(Dt(kn(M)),[W]),W),J)}return}b(V,H)},[c,E,v,F,O,d,b,M]);return K(K({},y),{},{options:w,onChange:N})}var Gh=A.forwardRef(function(e,t){var n=Jo(e),i=Th(n);return ge.createElement(qr,re({ref:t},i))}),Vh=Gh;function Xn({isCreatable:e,options:t,selectProps:n,showLoadMoreButton:i,onLoadMore:r,components:o}){const l=Qe(),{id:a,prop:s,value:u,onChange:c}=l,{select:d,theme:f}=Te(),p=A.useMemo(()=>Mn(f.colors),[f.colors]),b=A.useMemo(()=>zn({colors:{surface:p.surface,border:p.border,text:p.text,textStrong:p.textStrong,hoverBg:p.hoverBg,selectedBg:p.selectedBg,selectedHoverBg:p.selectedHoverBg},boxShadow:f.boxShadow}),[p,f.boxShadow]),[y,x]=A.useState(t),[I,T]=A.useState(u);A.useEffect(()=>{const H=t.map(Ne);x(H)},[t]),A.useEffect(()=>{T(u)},[u]);const S=A.useMemo(()=>{if(I==null)return null;if(Vr(I)){const H=I.__lv;return Array.isArray(H)?H.map(q=>Ne(q)):Ne(H)}if(Ho(I))return I.map(H=>Ne(H));if(Array.isArray(I)){if(!Gr(I[0]))return I.map(H=>y.find(q=>q.value===H)||Ne(H))}else if(!Gr(I))if((y==null?void 0:y[0])&&Gr(y[0])){for(const q of y)if(q.value===I)return q}else return Ne(I);return null},[I,y]),E=d.getProps("controlSelect",{styles:b}),P=A.useRef(r);A.useEffect(()=>{P.current=r},[r]);const v=A.useRef(i);v.current=i;const M=A.useMemo(()=>{const H={...E.components??{},...o??{}},q=H.MenuList??Lt.MenuList,W=({children:J,...le})=>k.jsxs(q,{...le,children:[J,v.current&&k.jsx("div",{className:"pt-4",children:k.jsx(_l,{onChange:()=>{var se;return(se=P.current)==null?void 0:se.call(P)}})})]});return W.displayName="CustomMenuList",{...H,MenuList:W}},[o,E.components]),F=H=>{const q=Ne(H);let W=q;const J=y.map(Ne),le=[q,...J];x(le),s.type.endsWith("[]")&&(Array.isArray(I)?W=[...I.map(Ne),q]:W=[q]),T(W),O(W)},O=H=>{if(H)if(Array.isArray(H))typeof H[0]=="object"&&H[0]&&"value"in H[0]?c({__lv:H}):c(H);else if(typeof H=="object"&&H&&"value"in H)c({__lv:H});else throw new Error("unhandled option type");else c(void 0)},w={onCreateOption:s.remoteOptions?F:void 0},N=e?Vh:On,V=y.map(Ne);return k.jsx(N,{inputId:a,instanceId:a,options:V,value:S,isMulti:s.type.endsWith("[]"),isClearable:!0,required:!s.optional,getOptionLabel:H=>Ne(H).label,getOptionValue:H=>String(Ne(H).value),onChange:O,classNamePrefix:E.classNamePrefix||"react-select",classNames:E.classNames,theme:E.theme,...n,...w,menuPortalTarget:typeof document<"u"?document.body:null,menuPosition:"fixed",styles:{...E.styles,...(n==null?void 0:n.styles)??{},container:H=>({...H,gridArea:"control"}),menuPortal:H=>({...H,zIndex:99999})},components:M})}const Oh=e=>typeof e=="object"&&e!==null&&"query"in e&&typeof e.query=="string";function ia(){var d;const e=Qe(),{id:t,onChange:n,prop:i,value:r}=e;if(!it(i,"sql"))throw new Error("ControlSql used with non-sql prop");const{getProps:o,theme:l}=Te(),a=((d=i.auth)==null?void 0:d.app)||"postgresql";let s="";Oh(r)?s=r.query:typeof r=="string"&&(s=r);const u=f=>{n({app:a,query:f,params:[]})},c={color:l.colors.neutral60,display:"block",border:"1px solid",borderColor:l.colors.neutral20,padding:6,width:"100%",borderRadius:l.borderRadius,gridArea:"control",boxShadow:l.boxShadow.input,fontSize:"0.875rem",fontFamily:"monospace",minHeight:"120px",resize:"vertical"};return k.jsx("textarea",{id:t,name:i.name,value:s,onChange:f=>u(f.target.value),placeholder:"SELECT * FROM table_name",required:!i.optional,...o("controlSql",c,e)})}const ri=e=>Ne(e).value??null;function oa({queryEnabled:e}){const t=ut(),{externalUserId:n,component:i,configurableProps:r,configuredProps:o,dynamicProps:l,props:{disableQueryDisabling:a}}=qt(),{idx:s,prop:u,onChange:c}=Qe(),[d,f]=A.useState(""),[p,b]=A.useState(0),[y,x]=A.useState(void 0),[I,T]=A.useState(void 0),[S,E]=A.useState(!0),[P,v]=A.useState([]),[M,F]=A.useState(new Set),O=A.useMemo(()=>{const de={};for(let ve=0;ve<s;ve++){const Ce=r[ve];de[Ce.name]=o[Ce.name]}return de},[s,r,o]),w=A.useMemo(()=>{const de=r.find(ve=>ve.type==="app");return de?o[de.name]:void 0},[r,o]),N=A.useMemo(()=>{const de={externalUserId:n,page:p,prevContext:y,id:i.key,propName:u.name,configuredProps:O,dynamicPropsId:l==null?void 0:l.id};return u.useQuery&&(de.query=d||""),de},[n,p,y,i.key,u.name,u.useQuery,O,l==null?void 0:l.id,d]),V=A.useMemo(()=>N,[N]),[H,q]=A.useState(),W=()=>{b(de=>de+1),x(I)},J=JSON.stringify(V),le=JSON.stringify(w),se=A.useRef(),G=A.useRef(),g=A.useMemo(()=>{const{page:de,prevContext:ve,...Ce}=N;return JSON.stringify(Ce)},[N]),ue=A.useMemo(()=>r.some(de=>de.type==="app"),[r]),_=A.useMemo(()=>!(!e||ue&&!w),[e,ue,w]),{data:m,isFetching:pe,refetch:te,dataUpdatedAt:ne}=st.useQuery({queryKey:["componentConfigure",V],queryFn:async()=>{const de=await t.components.configureProp(N),{options:ve,stringOptions:Ce,errors:Ve}=de;if(Ve!=null&&Ve.length){let Ae;try{Ae=JSON.parse(Ve[0])}catch{Ae={name:"Error",message:Ve[0]}}return{error:Ae,options:[],context:de.context}}const Be=(Ce==null?void 0:Ce.map(Ae=>({label:Ae,value:Ae})))??[];return{error:void 0,options:[...ve??[],...Be],context:de.context}},enabled:_});A.useEffect(()=>{if(!m)return;if(m.error){q(m.error);return}q(void 0),T(m.context);const de=p===0;let ve=!1;F(Ce=>{const Ve=de?new Set:Ce,Be=new Set(Ve);for(const De of m.options){const Ae=ri(De);if(Ae===null){console.warn("Skipping invalid option:",De);continue}Be.has(Ae)||(Be.add(Ae),ve=!0)}return Be}),v(Ce=>{const Ve=de?[]:Ce,Be=[],De=new Set;if(!de)for(const Ae of Ve){const Je=ri(Ae);Je!==null&&De.add(Je)}for(const Ae of m.options){const Je=ri(Ae);Je!==null&&(De.has(Je)||(De.add(Je),Be.push(Ae)))}return Be.length?[...Ve,...Be]:Ce}),ve||E(!1)},[m,p,ne,J]),A.useEffect(()=>{if(!se.current){se.current=g;return}se.current!==g&&(b(0),x(void 0),T(void 0),E(!0),v([]),F(new Set)),se.current=g},[g]),A.useEffect(()=>{G.current&&G.current!==le&&(c(void 0),w!=null&&_&&te()),G.current=le},[le,c,_,w,te]);const ke=A.useMemo(()=>!pe&&!H&&S,[pe,H,S]),fe=H?H.message:a?"Click to configure":_?void 0:"Configure props above first",Ge=a?!1:!_;return k.jsx(Xn,{isCreatable:!0,showLoadMoreButton:ke,onLoadMore:W,options:P.map(Ne),selectProps:{isLoading:pe,placeholder:fe,isDisabled:Ge,inputValue:u.useQuery?d:void 0,onInputChange(de){u.useQuery&&(f(de),te())},onMenuOpen(){a&&!_&&te()}}})}function la(e){const{field:t,form:n}=e,{queryDisabledIdx:i}=n,{prop:r,idx:o}=t,l="app"in t.extra?t.extra.app:void 0;if(r.remoteOptions||r.type==="$.discord.channel"||r.type==="$.discord.channel[]")return k.jsx(oa,{queryEnabled:i==null||i>=o});if("options"in r&&Array.isArray(r.options)&&r.options.length>0){const a=r.options.map(Ne);return k.jsx(Xn,{options:a,components:{IndicatorSeparator:()=>null}})}if(r.type.endsWith("[][]"))throw new Error("Unsupported property type: "+r.type);if(r.type.endsWith("[]"))return!("options"in r)||!r.options?k.jsx(Eh,{}):k.jsx(Xn,{isCreatable:!0,options:[],components:{IndicatorSeparator:()=>null}});switch(r.type){case"app":return k.jsx($l,{app:l});case"boolean":return k.jsx(Kl,{});case"string":case"integer":return k.jsx(ea,{});case"object":return k.jsx(Ph,{});case"sql":return k.jsx(ia,{});case"http_request":return k.jsx(na,{});default:throw new Error("Unsupported property type: "+r.type)}}function aa(e){const{form:t,field:n}=e,{prop:i}=n,{getProps:r,getComponents:o}=Te(),l={display:"grid",gridTemplateAreas:n.prop.type=="boolean"?'"control label" "description description" "error error"':'"label label" "control control" "description description" "error error"',gridTemplateColumns:"min-content auto",gap:"0.25rem 0",alignItems:"center",fontSize:"0.875rem"},{Label:a,Description:s,Errors:u}=o(),c="app"in n.extra?n.extra.app:void 0;if(c&&!c.authType)return null;let d=i.label||i.name;c&&(d=`Connect ${c.name} account`);const f=e;return k.jsxs("div",{...r("field",l,f),children:[k.jsx(a,{text:d,field:n,form:t}),k.jsx(la,{field:n,form:t}),k.jsx(s,{markdown:i.description,field:n,form:t}),k.jsx(u,{field:n,form:t})]})}const sa=(e,t)=>{var r;const n=ut(),i=st.useQuery({queryKey:["app",e],queryFn:()=>n.apps.retrieve(e),...t==null?void 0:t.useQueryOpts});return{...i,app:(r=i.data)==null?void 0:r.data}};function ua({prop:e,idx:t}){const n=qt(),{id:i,configuredProps:r,registerField:o,setConfiguredProp:l,errors:a,enableDebugging:s}=n;let u;it(e,"app")&&(u=e.app);const{app:c}=sa(u||"",{useQueryOpts:{enabled:!!u,suspense:!!u}}),d=`pd${i}${e.name}`,f=A.useCallback(b=>{l(t,b)},[t,e.name,l]),p={id:d,prop:e,idx:t,value:r[e.name],onChange:f,extra:{app:c},errors:a,enableDebugging:s};return A.useEffect(()=>{o(p)},[e.name,o]),k.jsx(Qr.Provider,{value:p,children:k.jsx(aa,{field:p,form:n})})}class ca extends A.Component{constructor(){super(...arguments),this.state={err:void 0}}static getDerivedStateFromError(t){return{err:t}}render(){const{err:t}=this.state;return t?this.props.fallback(t):this.props.children}}function da(e){const{form:t}=e,{propsNeedConfiguring:n,submitting:i}=t,{getProps:r,theme:o}=Te(),l=a=>{var s;return{width:"fit-content",textTransform:"capitalize",backgroundColor:a?o.colors.neutral10:o.colors.primary,color:a?o.colors.neutral40:o.colors.neutral0,padding:`${o.spacing.baseUnit*1.75}px ${o.spacing.baseUnit*16}px`,borderRadius:o.borderRadius,boxShadow:(s=o.boxShadow)==null?void 0:s.button,cursor:"pointer",fontSize:"0.875rem",opacity:i?.5:void 0,margin:"0.5rem 0 0 0"}};return k.jsx("input",{type:"submit",value:i?"Submitting...":"Submit",...r("controlSubmit",l(!!n.length||i),e),disabled:!!n.length||i})}const Nh=["ConfigurationError"];function pa(){const e=qt(),{configurableProps:t,dynamicPropsQueryIsFetching:n,isValid:i,optionalPropIsEnabled:r,optionalPropSetEnabled:o,props:l,setSubmitting:a,sdkErrors:s,submitting:u,enableDebugging:c}=e,d=c||s.filter(w=>Nh.includes(w.name)).length>0,{hideOptionalProps:f,onSubmit:p}=l,[b,y]=A.useState([]);A.useEffect(()=>{u?y([]):s&&s.length&&y(s.map(w=>({type:"alert",alertType:"error",content:`# ${w.name}
|
|
21
|
+
${w.message}`,name:w.name})))},[s,u]);const{getComponents:x,getProps:I,theme:T}=Te(),{OptionalFieldButton:S}=x(),E={display:"flex",flexDirection:"column",gap:"1.5rem"},P={display:"flex",flexWrap:"wrap",gap:"0.375rem"},v={fontWeight:600,textTransform:"capitalize",color:T.colors.neutral60,fontSize:"0.875rem",lineHeight:"1.375",margin:"0 0 0.5rem 0"},M=async w=>{if(p&&(w.preventDefault(),i)){a(!0);try{await p(e)}finally{a(!1)}}},F=[],O=[];for(let w=0;w<t.length;w++){const N=t[w];if(!N.hidden&&!Ut.includes(N.type)){if(N.optional){const V=r(N);if(O.push([N,V]),!V)continue}F.push([N,w])}}return k.jsx(ca,{fallback:w=>k.jsxs("p",{style:{color:"red"},children:["Error: ",w&&typeof w=="object"&&"message"in w&&typeof w.message=="string"?w.message:"Unknown"]}),children:k.jsx(A.Suspense,{fallback:k.jsx("p",{children:"Loading form..."}),children:k.jsxs("form",{...I("componentForm",E,l),onSubmit:M,children:[F.map(([w,N])=>it(w,"alert")?k.jsx(yn,{prop:w},w.name):k.jsx(ua,{prop:w,idx:N},w.name)),n&&k.jsx("p",{children:"Loading dynamic props..."}),!f&&O.length?k.jsxs("div",{children:[k.jsx("div",{...I("heading",v,l),children:"Optional Props"}),k.jsx("div",{...I("optionalFields",P,l),children:O.map(([w,N])=>k.jsx(S,{prop:w,enabled:N,onClick:()=>o(w,!N)},w.name))})]}):null,d&&(b==null?void 0:b.map((w,N)=>k.jsx(yn,{prop:w},N))),p&&k.jsx(da,{form:e})]})})})}function fa(e){return k.jsx(Xo,{props:e,children:k.jsx(pa,{})})}const ga=({key:e},t)=>{var r;const n=ut(),i=st.useQuery({queryKey:["component",e],queryFn:()=>n.components.retrieve(e),enabled:!!e,...t==null?void 0:t.useQueryOpts});return{...i,component:(r=i.data)==null?void 0:r.data}};function Dh(e){const{isLoading:t,error:n,component:i}=ga({key:e.componentKey});if(!e.componentKey)throw new Error("componentKey required");return t?k.jsx("p",{children:"Loading..."}):n?k.jsxs("p",{children:["Error: ",n.message]}):i?k.jsx(fa,{component:i,...e}):k.jsx("p",{children:"Component not found"})}function Lh(){const e=Qe(),{id:t,onChange:n,value:i}=e,{getProps:r,theme:o}=Te(),l={display:"block",gridArea:"control",width:"100%",fontSize:"0.875rem",boxShadow:o.boxShadow.input};let a=i;return typeof a=="object"&&(a=JSON.stringify(a)),k.jsx("textarea",{id:t,value:a,onChange:s=>n(s.target.value),...r("controlAny",l,e)})}const ha=e=>{if(!e||typeof e!="object")return!1;const t=e;return typeof t.hasNextPage=="function"&&typeof t.getNextPage=="function"},ma=e=>{const t=Object.getPrototypeOf(e);return Object.assign(Object.create(t??Object.prototype),e)};function Mh(){const e=A.useRef(!1);return A.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function ba(){const[e,t]=A.useState([]),[n,i]=A.useState(!1),[r,o]=A.useState(!1),[l,a]=A.useState(),s=A.useRef(null),u=A.useRef(),c=Mh(),d=A.useCallback((p,b)=>{var T;const y=ma(p),x=(((T=u.current)==null?void 0:T.version)??0)+1;u.current={version:x},s.current=y;const I=y.data?y.data.slice():[];t(I),i(y.hasNextPage()),o(!1),a(void 0)},[]),f=A.useCallback(async()=>{var x,I,T;const p=u.current,b=s.current;if(!p||!b||!n||r)return;const y=p.version;o(!0);try{const S=await b.getNextPage();if(!c.current||y!==(((x=u.current)==null?void 0:x.version)??0))return;const E=ma(S);s.current=E,t(P=>!E.data||E.data.length===0?P:P.concat(E.data)),i(E.hasNextPage()),a(void 0)}catch(S){if(!c.current||y!==(((I=u.current)==null?void 0:I.version)??0))return;a(S instanceof Error?S:new Error(String(S)))}finally{c.current&&y===(((T=u.current)==null?void 0:T.version)??0)&&o(!1)}},[n,r,c]);return{items:e,hasMore:n,isLoadingMore:r,loadMoreError:l,loadMore:f,resetWithPage:d}}const ya=e=>{const t=ut(),{items:n,hasMore:i,isLoadingMore:r,loadMore:o,loadMoreError:l,resetWithPage:a}=ba(),s=A.useRef(),u=st.useQuery({queryKey:["apps",e],queryFn:()=>t.apps.list({limit:50,...e})});return A.useEffect(()=>{const c=JSON.stringify(e??null),d=s.current!==u.data;!u.data||!ha(u.data)||!d||(s.current=u.data,a(u.data,c))},[u.data,e,a]),{...u,apps:n,isLoadingMore:r,hasMore:i,loadMore:o,loadMoreError:l}};function zh({value:e,onChange:t,appsOptions:n}){const[i,r]=A.useState(""),[o,l]=A.useState(""),a=A.useId();A.useEffect(()=>{const w=setTimeout(()=>{l(i)},300);return()=>clearTimeout(w)},[i]);const{isLoading:s,isLoadingMore:u,hasMore:c,loadMore:d,apps:f}=ya({...n??{},q:o}),{Option:p,SingleValue:b,MenuList:y}=Lt,{select:x,theme:I}=Te(),T=A.useRef(u);T.current=u;const S=A.useMemo(()=>(f==null?void 0:f.find(w=>w.nameSlug===(e==null?void 0:e.nameSlug)))||(e!=null&&e.nameSlug?e:null),[f,e==null?void 0:e.nameSlug]),E=A.useCallback(()=>{c&&!u&&d()},[c,u,d]),P=A.useMemo(()=>Mn(I.colors),[I.colors]),M={styles:A.useMemo(()=>zn({colors:{surface:P.surface,border:P.border,text:P.text,textStrong:P.textStrong,hoverBg:P.hoverBg,selectedBg:P.selectedBg,selectedHoverBg:P.selectedHoverBg},boxShadow:I.boxShadow}),[P,I.boxShadow])},F=x.getProps("selectApp",M),O=A.useMemo(()=>({Option:w=>k.jsx(p,{...w,children:k.jsxs("div",{style:{display:"flex",gap:10},children:[k.jsx("img",{src:`https://pipedream.com/s.v0/${w.data.id}/logo/48`,style:{height:24,width:24,backgroundColor:P.appIconBg,borderRadius:6,padding:2},alt:w.data.name}),k.jsx("span",{style:{whiteSpace:"nowrap"},children:w.data.name})]})}),SingleValue:w=>k.jsx(b,{...w,children:k.jsxs("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[k.jsx("img",{src:`https://pipedream.com/s.v0/${w.data.id}/logo/48`,style:{height:24,width:24,backgroundColor:P.appIconBg,borderRadius:6,padding:2},alt:w.data.name}),k.jsx("span",{style:{whiteSpace:"nowrap"},children:w.data.name})]})}),MenuList:w=>k.jsxs(y,{...w,children:[w.children,T.current&&k.jsx("div",{style:{padding:"8px 12px",textAlign:"center",color:"#666",fontSize:"14px"},children:"Loading more apps..."})]}),IndicatorSeparator:()=>null}),[p,b,y,P.appIconBg]);return k.jsx(On,{instanceId:a,className:"react-select-container text-sm",...F,classNamePrefix:"react-select",components:{...F.components,...O},options:f||[],getOptionLabel:w=>w.name||w.nameSlug,getOptionValue:w=>w.nameSlug,value:S,onChange:w=>t==null?void 0:t(w||void 0),onInputChange:(w,{action:N})=>{N==="input-change"&&r(w)},onMenuScrollToBottom:E,isLoading:s,menuPortalTarget:typeof document<"u"?document.body:null,menuPosition:"fixed",styles:{...F.styles??{},menuPortal:w=>({...w,zIndex:99999})}})}const Ia=e=>{const t=ut(),{items:n,hasMore:i,isLoadingMore:r,loadMore:o,loadMoreError:l,resetWithPage:a}=ba(),s=A.useRef(),u=st.useQuery({queryKey:["components",e],queryFn:()=>t.components.list({limit:50,...e})});return A.useEffect(()=>{const c=JSON.stringify(e??null),d=s.current!==u.data;!u.data||!ha(u.data)||!d||(s.current=u.data,a(u.data,c))},[u.data,e,a]),{...u,components:n,isLoadingMore:r,hasMore:i,loadMore:o,loadMoreError:l}};function Rh({app:e,componentType:t,value:n,onChange:i,componentsOptions:r}){const o=A.useId(),{isLoading:l,isLoadingMore:a,hasMore:s,loadMore:u,components:c}=Ia({...r??{},app:e==null?void 0:e.nameSlug,componentType:t}),{MenuList:d}=Lt,{select:f,theme:p}=Te(),b=A.useMemo(()=>Mn(p.colors),[p.colors]),y=A.useMemo(()=>zn({colors:{surface:b.surface,border:b.border,text:b.text,textStrong:b.textStrong,hoverBg:b.hoverBg,selectedBg:b.selectedBg,selectedHoverBg:b.selectedHoverBg},boxShadow:p.boxShadow}),[b,p.boxShadow]),x=A.useRef(a);x.current=a;const I=A.useMemo(()=>(c==null?void 0:c.find(v=>v.key===(n==null?void 0:n.key)))||null,[c,n==null?void 0:n.key]),T=A.useCallback(()=>{s&&!a&&u()},[s,a,u]),S={styles:y},E=f.getProps("selectComponent",S),P=A.useMemo(()=>({MenuList:v=>k.jsxs(d,{...v,children:[v.children,x.current&&k.jsxs("div",{style:{padding:"8px 12px",textAlign:"center",color:"#666",fontSize:"14px"},children:["Loading more ",t==="action"?"actions":"triggers","..."]})]}),IndicatorSeparator:()=>null}),[t,d]);return k.jsx(On,{instanceId:o,className:"react-select-container text-sm",...E,classNamePrefix:"react-select",options:c,getOptionLabel:v=>v.name||v.key,getOptionValue:v=>v.key,value:I,onChange:v=>i==null?void 0:i(v||void 0),onMenuScrollToBottom:T,isLoading:l,components:{...E.components,...P},menuPortalTarget:typeof document<"u"?document.body:null,menuPosition:"fixed",styles:{...E.styles??{},menuPortal:v=>({...v,zIndex:99999})}})}const Hh={buildTime:new Date().toISOString(),source:"local-development"};$.Alert=yn,$.ComponentForm=fa,$.ComponentFormContainer=Dh,$.Control=la,$.ControlAny=Lh,$.ControlApp=$l,$.ControlBoolean=Kl,$.ControlHttpRequest=na,$.ControlInput=ea,$.ControlSelect=Xn,$.ControlSql=ia,$.ControlSubmit=da,$.CustomizationContext=Ln,$.CustomizeProvider=Sh,$.DEBUG_INFO=Hh,$.Description=jl,$.ErrorBoundary=ca,$.Errors=Jl,$.Field=aa,$.FormContext=Or,$.FormContextProvider=Xo,$.FormFieldContext=Qr,$.FrontendClientProvider=hp,$.InternalComponentForm=pa,$.InternalField=ua,$.Label=Yl,$.OptionalFieldButton=Ul,$.RemoteOptionsContainer=oa,$.SelectApp=zh,$.SelectComponent=Rh,$.defaultComponents=ql,$.defaultTheme=Nn,$.getReactSelectTheme=Zl,$.mergeTheme=Dn,$.skippablePropTypes=Ut,$.unstyledTheme=Wl,$.useAccounts=Ql,$.useApp=sa,$.useApps=ya,$.useComponent=ga,$.useComponents=Ia,$.useCustomize=Te,$.useFormContext=qt,$.useFormFieldContext=Qe,$.useFrontendClient=ut,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})});
|