https://nvrka.com/_next/static/chunks/38110-a0f145a3f1237361.js?dpl=dpl_pUW8SvW2miwCggdYE6vnbxLexMYE
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[38110],{141:(e,t,n)=>{"use strict";n.d(t,{o:()=>eb});var r={};n.r(r),n.d(r,{boolean:()=>h,booleanish:()=>p,commaOrSpaceSeparated:()=>b,commaSeparated:()=>v,number:()=>g,overloadedBoolean:()=>m,spaceSeparated:()=>y});var i=n(84401),o=n(21363),l=n(73617),a=n(68601);class s{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function u(e,t){let n={},r={},i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new s(n,r,t)}function c(e){return e.toLowerCase()}s.prototype.property={},s.prototype.normal={},s.prototype.space=null;class d{constructor(e,t){this.property=e,this.attribute=t}}d.prototype.space=null,d.prototype.boolean=!1,d.prototype.booleanish=!1,d.prototype.overloadedBoolean=!1,d.prototype.number=!1,d.prototype.commaSeparated=!1,d.prototype.spaceSeparated=!1,d.prototype.commaOrSpaceSeparated=!1,d.prototype.mustUseProperty=!1,d.prototype.defined=!1;let f=0,h=w(),p=w(),m=w(),g=w(),y=w(),v=w(),b=w();function w(){return 2**++f}let x=Object.keys(r);class k extends d{constructor(e,t,n,i){let o=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",i),"number"==typeof n)for(;++o<x.length;){let e=x[o];!function(e,t,n){n&&(e[t]=n)}(this,x[o],(n&r[e])===r[e])}}}k.prototype.defined=!0;let C={}.hasOwnProperty;function S(e){let t,n={},r={};for(t in e.properties)if(C.call(e.properties,t)){let i=e.properties[t],o=new k(t,e.transform(e.attributes||{},t),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(t)&&(o.mustUseProperty=!0),n[t]=o,r[c(t)]=t,r[c(o.attribute)]=t}return new s(n,r,e.space)}let E=S({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),M=S({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function T(e,t){return t in e?e[t]:t}function R(e,t){return T(e,t.toLowerCase())}let A=S({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:R,properties:{xmlns:null,xmlnsXLink:null}}),O=S({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:p,ariaAutoComplete:null,ariaBusy:p,ariaChecked:p,ariaColCount:g,ariaColIndex:g,ariaColSpan:g,ariaControls:y,ariaCurrent:null,ariaDescribedBy:y,ariaDetails:null,ariaDisabled:p,ariaDropEffect:y,ariaErrorMessage:null,ariaExpanded:p,ariaFlowTo:y,ariaGrabbed:p,ariaHasPopup:null,ariaHidden:p,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:y,ariaLevel:g,ariaLive:null,ariaModal:p,ariaMultiLine:p,ariaMultiSelectable:p,ariaOrientation:null,ariaOwns:y,ariaPlaceholder:null,ariaPosInSet:g,ariaPressed:p,ariaReadOnly:p,ariaRelevant:null,ariaRequired:p,ariaRoleDescription:y,ariaRowCount:g,ariaRowIndex:g,ariaRowSpan:g,ariaSelected:p,ariaSetSize:g,ariaSort:null,ariaValueMax:g,ariaValueMin:g,ariaValueNow:g,ariaValueText:null,role:null}}),N=S({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:R,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:v,acceptCharset:y,accessKey:y,action:null,allow:null,allowFullScreen:h,allowPaymentRequest:h,allowUserMedia:h,alt:null,as:null,async:h,autoCapitalize:null,autoComplete:y,autoFocus:h,autoPlay:h,blocking:y,capture:null,charSet:null,checked:h,cite:null,className:y,cols:g,colSpan:null,content:null,contentEditable:p,controls:h,controlsList:y,coords:g|v,crossOrigin:null,data:null,dateTime:null,decoding:null,default:h,defer:h,dir:null,dirName:null,disabled:h,download:m,draggable:p,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:h,formTarget:null,headers:y,height:g,hidden:h,high:g,href:null,hrefLang:null,htmlFor:y,httpEquiv:y,id:null,imageSizes:null,imageSrcSet:null,inert:h,inputMode:null,integrity:null,is:null,isMap:h,itemId:null,itemProp:y,itemRef:y,itemScope:h,itemType:y,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:h,low:g,manifest:null,max:null,maxLength:g,media:null,method:null,min:null,minLength:g,multiple:h,muted:h,name:null,nonce:null,noModule:h,noValidate:h,onAbort:null,onAfterPrint:null,onAuxCl
1ick: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:h,optimum:g,pattern:null,ping:y,placeholder:null,playsInline:h,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:h,referrerPolicy:null,rel:y,required:h,reversed:h,rows:g,rowSpan:g,sandbox:y,scope:null,scoped:h,seamless:h,selected:h,shadowRootClonable:h,shadowRootDelegatesFocus:h,shadowRootMode:null,shape:null,size:g,sizes:null,slot:null,span:g,spellCheck:p,src:null,srcDoc:null,srcLang:null,srcSet:null,start:g,step:null,style:null,tabIndex:g,target:null,title:null,translate:null,type:null,typeMustMatch:h,useMap:null,value:p,width:g,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:y,axis:null,background:null,bgColor:null,border:g,borderColor:null,bottomMargin:g,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:h,declare:h,event:null,face:null,frame:null,frameBorder:null,hSpace:g,leftMargin:g,link:null,longDesc:null,lowSrc:null,marginHeight:g,marginWidth:g,noResize:h,noHref:h,noShade:h,noWrap:h,object:null,profile:null,prompt:null,rev:null,rightMargin:g,rules:null,scheme:null,scrolling:p,standby:null,summary:null,text:null,topMargin:g,valueType:null,version:null,vAlign:null,vLink:null,vSpace:g,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:h,disableRemotePlayback:h,prefix:null,property:null,results:g,security:null,unselectable:null}}),P=S({space:"svg",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
1-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"},transform:T,properties:{about:b,accentHeight:g,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:g,amplitude:g,arabicForm:null,ascent:g,attributeName:null,attributeType:null,azimuth:g,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:g,by:null,calcMode:null,capHeight:g,className:y,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:g,diffuseConstant:g,direction:null,display:null,dur:null,divisor:g,dominantBaseline:null,download:h,dx:null,dy:null,edgeMode:null,editable:null,elevation:g,enableBackground:null,end:null,event:null,exponent:g,externalResourcesRequired:null,fill:null,fillOpacity:g,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:v,g2:v,glyphName:v,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:g,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:g,horizOriginX:g,horizOriginY:g,id:null,ideographic:g,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:g,k:g,k1:g,k2:g,k3:g,k4:g,kernelMatrix:b,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:g,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:g,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,on
1Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:g,overlineThickness:g,paintOrder:null,panose1:null,path:null,pathLength:g,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:y,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:g,pointsAtY:g,pointsAtZ:g,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:b,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:b,rev:b,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:b,requiredFeatures:b,requiredFonts:b,requiredFormats:b,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:g,specularExponent:g,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:g,strikethroughThickness:g,string:null,stroke:null,strokeDashArray:b,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:g,strokeOpacity:g,strokeWidth:null,style:null,surfaceScale:g,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:b,tabIndex:g,tableValues:null,target:null,targetX:g,targetY:g,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:b,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:g,underlineThickness:g,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:g,values:null,vAlphabetic:g,vMathematical:g,vectorEffect:null,vHanging:g,vIdeographic:g,version:null,vertAdvY:g,vertOriginX:g,vertOriginY:g,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:g,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),L=u([M,E,A,O,N],"html"),I=u([M,E,A,O,P],"svg"),D=/^data[-\w.:]+$/i,_=/-[a-z]/g,j=/[A-Z]/g;function F(e){return"-"+e.toLowerCase()}function z(e){return e.charAt(1).toUpperCase()}let H={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"};var B=n(98400),$=n(53102);let U=$.default||$;var V=n(28845),W=n(13166);let q={}.hasOwnProperty,K=new Map,G=/[A-Z]/g,Y=/-([a-z])/g,J=new Set(["table","tbody","thead","tfoot","tr"]),X=new Set(["td","th"]),Z="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Q(e,t,n){return"element"===t.type?function(e,t,n){let r=e.schema;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(e.schema=I),e.ancestors.push(t);let i=er(e,t.tagName,!1),l=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&q.call(t.properties,r)){let l=function(e,t,n){let r=function(e,t){let n=c(t),r=t,i=d;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&D.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(_,z);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!_.test(e)){let n=e.replace(j,F);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=k}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?(0,o.A)(n):(0,B.A)(n)),"style"===r.property){let t="object"==typeof n?n:function(e,t){let n={};try{U(t,function(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(Y,eo)),n[r]=t})}catch(t){if(!e.ignoreInvalidStyle){let n=new W.o("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Z+"#cannot-parse-style-attribute",n}}return n}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)q.call(e,t)&&(n[function(e){let t=e.replace(G,el);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?H[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(l){let[r,o]=l;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof o&&X.has(t.tagName)?n=o:i[r]=o}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(e,t),s=en(e,t);return J.has(t.tagName)&&(s=s.filter(function(e){return"string"!=typeof e||!(0,a.m)(e)})),ee(e,l,i,t),et(l,s),e.ancestors.pop(),e.schema=r,e.create(t,i,l,n)}
1(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return(0,i.ok)("ExpressionStatement"===n.type),e.evaluater.evaluateExpression(n.expression)}ei(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let r=e.schema;"svg"===t.name&&"html"===r.space&&(e.schema=I),e.ancestors.push(t);let o=null===t.name?e.Fragment:er(e,t.name,!0),l=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];(0,i.ok)("ExpressionStatement"===t.type);let o=t.expression;(0,i.ok)("ObjectExpression"===o.type);let l=o.properties[0];(0,i.ok)("SpreadElement"===l.type),Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else ei(e,t.position);else{let o,l=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];(0,i.ok)("ExpressionStatement"===t.type),o=e.evaluater.evaluateExpression(t.expression)}else ei(e,t.position);else o=null===r.value||r.value;n[l]=o}return n}(e,t),a=en(e,t);return ee(e,l,o,t),et(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ei(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let r={};return et(r,en(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?t.value:void 0}function ee(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function et(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function en(e,t){let n=[],r=-1,i=e.passKeys?new Map:K;for(;++r<t.children.length;){let o,l=t.children[r];if(e.passKeys){let e="element"===l.type?l.tagName:"mdxJsxFlowElement"===l.type||"mdxJsxTextElement"===l.type?l.name:void 0;if(e){let t=i.get(e)||0;o=e+"-"+t,i.set(e,t+1)}}let a=Q(e,l,o);void 0!==a&&n.push(a)}return n}function er(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),o=-1;for(;++o<n.length;){let t=(0,l.UU)(n[o])?{type:"Identifier",name:n[o]}:{type:"Literal",value:n[o]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(o&&"Literal"===t.type),optional:!1}:t}(0,i.ok)(e,"always a result"),r=e}else r=(0,l.UU)(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return q.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);ei(e)}function ei(e,t){let n=new W.o("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=Z+"#cannot-handle-mdx-estrees-without-createevaluater",n}function eo(e,t){return t.toUpperCase()}function el(e){return"-"+e.toLowerCase()}let ea={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var es=n(38476),eu=n(83494),ec=n(39237);function ed(e,t){return e&&"run"in e?async function(n,r){let i=(0,ec._)(n,{file:r,...t});await e.run(i,r)}:function(n,r){return(0,ec._)(n,{file:r,...t||e})}}var ef=n(96328),eh=n(97343),ep=n(88682);let em=[],eg={allowDangerousHtml:!0},ey=/^(https?|ircs?|mailto|xmpp)$/i,ev=[{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 eb(e){let t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,l=e.components,a=e.disallowedElements,s=e.rehypePlugins||em,u=e.remarkPlugins||em,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...eg}:eg,d=e.skipHtml,f=e.unwrapDisallowed,h=e.urlTransform||ew,p=(0,ef.l)().use(eu.A).use(u).use(ed,c).use(s),m=new ep.T;for(let n of("string"==typeof r?m.value=r:(0,i.HB)("Unexpected value `"+r+"` for `children` prop, expected `string`"),t&&a&&(0,i.HB)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),ev))Object.hasOwn(e,n.from)&&(0,i.HB)("Unexpected `"+n.from+"` prop, "+(n.to?"use `"+n.to+"` instead":"remove it")+" (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#"+n.id+"> for more info)");let g=p.parse(m),y=p.runSync(g,m);return o&&(y={type:"element",tagName:"div",properties:{className:o},children:"root"===y.type?y.children:[y]}),(0,eh.YR)(y,function(e,r,i){if("raw"===e.type&&i&&"number"==typeof r)return d?i.children.splice(r,1):i.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in ea)if(Object.hasOwn(ea,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=ea[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=h(String(n||""),t,e))}}if("element"===e.type){let o=t?!t.includes(e.tagName):!!a&&a.includes(e.tagName);if(!o&&n&&"number"==typeof r&&(o=!n(e,r,i)),o&&i&&"number"==typeof r)return f&&e.children?i.children.splice(r,1,...e.children):i.children.splice(r,1),r}}),function(e,t){var n,r,i,o;let l;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let a=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=a,r=t.jsxDEV,l=function(e,t,i,o){let l=Array.isArray(i.children),a=(0,V.PW)(e);return r(t,i,o,l,{columnNumber:a?a.column-1:void 0,fileName:n,lineNumber:a?a.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");
1if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=t.jsx,o=t.jsxs,l=function(e,t,n,r){let l=Array.isArray(n.children)?o:i;return r?l(t,n,r):l(t,n)}}let s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:l,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?I:L,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},u=Q(s,e,void 0);return u&&"string"!=typeof u?u:s.create(e,s.Fragment,{children:u||void 0},void 0)}(y,{Fragment:es.Fragment,components:l,ignoreInvalidStyle:!0,jsx:es.jsx,jsxs:es.jsxs,passKeys:!0,passNode:!0})}function ew(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||ey.test(e.slice(0,t))?e:""}},494:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});let r={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function i(e={}){let t,n,o,l=!1,a=!0,s=!1,u=0;function c(){if(o||!a)return;l||n.emit("autoplay:play");let{ownerWindow:e}=n.internalEngine();e.clearInterval(u),u=e.setInterval(m,t.delay),l=!0}function d(){if(o)return;l&&n.emit("autoplay:stop");let{ownerWindow:e}=n.internalEngine();e.clearInterval(u),u=0,l=!1}function f(){if(h())return a=l,d();a&&c()}function h(){let{ownerDocument:e}=n.internalEngine();return"hidden"===e.visibilityState}function p(e){void 0!==e&&(s=e),a=!0,c()}function m(){let{index:e}=n.internalEngine(),r=e.clone().add(1).get(),i=n.scrollSnapList().length-1;t.stopOnLastSnap&&r===i&&d(),n.canScrollNext()?n.scrollNext(s):n.scrollTo(0,s)}return{name:"autoplay",options:e,init:function(l,u){n=l;let{mergeOptions:p,optionsAtMedia:m}=u,g=p(r,i.globalOptions);if(t=m(p(g,e)),n.scrollSnapList().length<=1)return;s=t.jump,o=!1;let{eventStore:y,ownerDocument:v}=n.internalEngine(),b=n.rootNode(),w=t.rootNode&&t.rootNode(b)||b,x=n.containerNode();n.on("pointerDown",d),t.stopOnInteraction||n.on("pointerUp",c),t.stopOnMouseEnter&&(y.add(w,"mouseenter",()=>{a=!1,d()}),t.stopOnInteraction||y.add(w,"mouseleave",()=>{a=!0,c()})),t.stopOnFocusIn&&(y.add(x,"focusin",d),t.stopOnInteraction||y.add(x,"focusout",c)),y.add(v,"visibilitychange",f),t.playOnInit&&!h()&&c()},destroy:function(){n.off("pointerDown",d).off("pointerUp",c),d(),o=!0,l=!1},play:p,stop:function(){l&&d()},reset:function(){l&&p()},isPlaying:function(){return l}}}i.globalOptions=void 0},664:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r,i,o,l,a=n(35164),s=n(79392),u=n(16335),c=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function d(e){var t;if(!(t=c.exec(e)))throw Error("invalid format: "+e);return new f({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function f(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function h(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function p(e){return(e=h(Math.abs(e)))?e[1]:NaN}function m(e,t){var n=h(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}d.prototype=f.prototype,f.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};let g={"%":(e,t)=>
1(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>m(100*e,t),r:m,s:function(e,t){var n=h(e,t);if(!n)return e+"";var i=n[0],o=n[1],l=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=i.length;return l===a?i:l>a?i+Array(l-a+1).join("0"):l>0?i.slice(0,l)+"."+i.slice(l):"0."+Array(1-l).join("0")+h(e,Math.max(0,t+l-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function y(e){return e}var v=Array.prototype.map,b=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];o=(i=function(e){var t,n,i,o=void 0===e.grouping||void 0===e.thousands?y:(t=v.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],l=0,a=t[0],s=0;i>0&&a>0&&(s+a+1>r&&(a=Math.max(1,r-s)),o.push(e.substring(i-=a,i+a)),!((s+=a+1)>r));)a=t[l=(l+1)%t.length];return o.reverse().join(n)}),l=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",u=void 0===e.numerals?y:(i=v.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return i[+e]})}),c=void 0===e.percent?"%":e.percent+"",f=void 0===e.minus?"â":e.minus+"",h=void 0===e.nan?"NaN":e.nan+"";function m(e){var t=(e=d(e)).fill,n=e.align,i=e.sign,p=e.symbol,m=e.zero,y=e.width,v=e.comma,w=e.precision,x=e.trim,k=e.type;"n"===k?(v=!0,k="g"):g[k]||(void 0===w&&(w=12),x=!0,k="g"),(m||"0"===t&&"="===n)&&(m=!0,t="0",n="=");var C="$"===p?l:"#"===p&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",S="$"===p?a:/[%p]/.test(k)?c:"",E=g[k],M=/[defgprs%]/.test(k);function T(e){var l,a,c,d=C,p=S;if("c"===k)p=E(e)+p,e="";else{var g=(e*=1)<0||1/e<0;
1if(e=isNaN(e)?h:E(Math.abs(e),w),x&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),g&&0==+e&&"+"!==i&&(g=!1),d=(g?"("===i?i:f:"-"===i||"("===i?"":i)+d,p=("s"===k?b[8+r/3]:"")+p+(g&&"("===i?")":""),M){for(l=-1,a=e.length;++l<a;)if(48>(c=e.charCodeAt(l))||c>57){p=(46===c?s+e.slice(l+1):e.slice(l))+p,e=e.slice(0,l);break}}}v&&!m&&(e=o(e,1/0));var T=d.length+e.length+p.length,R=T<y?Array(y-T+1).join(t):"";switch(v&&m&&(e=o(R+e,R.length?y-p.length:1/0),R=""),n){case"<":e=d+e+p+R;break;case"=":e=d+R+e+p;break;case"^":e=R.slice(0,T=R.length>>1)+d+e+p+R.slice(T);break;default:e=R+d+e+p}return u(e)}return w=void 0===w?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w)),T.toString=function(){return e+""},T}return{format:m,formatPrefix:function(e,t){var n=m(((e=d(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(p(t)/3))),i=Math.pow(10,-r),o=b[8+r/3];return function(e){return n(i*e)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,l=i.formatPrefix;var w=(0,n(86356).A)("domain","range","reverse","clamp","interpolate","nice","round","zero");function x(e){return w(function e(){var t,n=(0,s.Ay)();return n.copy=function(){return(0,s.C)(n,e())},u.C.apply(n,arguments),t=n.domain,n.ticks=function(e){var n=t();return(0,a.Ay)(n[0],n[n.length-1],null==e?10:e)},n.tickFormat=function(e,n){var r=t();return function(e,t,n,r){var i,s,u=(0,a.sG)(e,t,n);switch((r=d(null==r?",f":r)).type){case"s":var c=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(s=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(p(c)/3)))-p(Math.abs(u))))||(r.precision=s),l(r,c);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(s=Math.max(0,p(Math.abs(Math.max(Math.abs(e),Math.abs(t)))-(i=Math.abs(i=u)))-p(i))+1)||(r.precision=s-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(s=Math.max(0,-p(Math.abs(u))))||(r.precision=s-("%"===r.type)*2)}return o(r)}(r[0],r[r.length-1],null==e?10:e,n)},n.nice=function(e){null==e&&(e=10);var r,i,o=t(),l=0,s=o.length-1,u=o[l],c=o[s],d=10;for(c<u&&(i=u,u=c,c=i,i=l,l=s,s=i);d-- >0;){if((i=(0,a.lq)(u,c,e))===r)return o[l]=u,o[s]=c,t(o);if(i>0)u=Math.floor(u/i)*i,c=Math.ceil(c/i)*i;else if(i<0)u=Math.ceil(u*i)/i,c=Math.floor(c*i)/i;else break;r=i}return n},n}(),e)}},1183:(e,t,n)=>{"use strict";n.d(t,{R0:()=>eg});var r,i,o=n(8760),l=n(4033),a=n(7964),s=n(91759),u=n(5875),c=n(10761);if("undefined"!=typeof WeakMap){let e=new WeakMap;r=t=>e.get(t),i=(t,n)=>(e.set(t,n),n)}else{let e=[],t=0;r=t=>{for(let n=0;n<e.length;n+=2)if(e[n]==t)return e[n+1]},i=(n,r)=>(10==t&&(t=0),e[t++]=n,e[t++]=r)}var d=class{constructor(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r}findCell(e){for(let t=0;t<this.map.length;t++){let n=this.map[t];if(n!=e)continue;let r=t%this.width,i=t/this.width|0,o=r+1,l=i+1;for(let e=1;o<this.width&&this.map[t+e]==n;e++)o++;for(let e=1;l<this.height&&this.map[t+this.width*e]==n;e++)l++;return{left:r,top:i,right:o,bottom:l}}throw RangeError(`No cell with offset ${e} found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw RangeError(`No cell with offset ${e} found`)}nextCell(e,t,n){let{left:r,right:i,top:o,bottom:l}=this.findCell(e);return"horiz"==t?(n<0?0==r:i==this.width)?null:this.map[o*this.width+(n<0?r-1:i)]:(n<0?0==o:l==this.height)?null:this.map[r+this.width*(n<0?o-1:l)]}rectBetween(e,t){let{left:n,right:r,top:i,bottom:o}=this.findCell(e),{left:l,right:a,top:s,bottom:u}=this.findCell(t);return{left:Math.min(n,l),top:Math.min(i,s),right:Math.max(r,a),bottom:Math.max(o,u)}}cellsInRect(e){let t=[],n={};for(let r=e.top;r<e.bottom;r++)for(let i=e.left;i<e.right;i++){let o=r*this.width+i,l=this.map[o];!n[l]&&(n[l]=!0,i==e.left&&i&&this.map[o-1]==l||r==e.top&&r&&this.map[o-this.width]==l||t.push(l))}return t}positionAt(e,t,n){for(let r=0,i=0;;r++){let o=i+n.child(r).nodeSize;if(r==e){let n=t+e*this.width,r=(e+1)*this.width;for(;n<r&&this.map[n]<i;)n++;return n==r?o-1:this.map[n]}i=o}}static get(e){return r(e)||i(e,function(e){if("table"!=e.type.spec.tableRole)throw RangeError("Not a table node: "+e.type.n
1ame);let t=function(e){let t=-1,n=!1;for(let r=0;r<e.childCount;r++){let i=e.child(r),o=0;if(n)for(let t=0;t<r;t++){let n=e.child(t);for(let e=0;e<n.childCount;e++){let i=n.child(e);t+i.attrs.rowspan>r&&(o+=i.attrs.colspan)}}for(let e=0;e<i.childCount;e++){let t=i.child(e);o+=t.attrs.colspan,t.attrs.rowspan>1&&(n=!0)}-1==t?t=o:t!=o&&(t=Math.max(t,o))}return t}(e),n=e.childCount,r=[],i=0,o=null,l=[];for(let e=0,i=t*n;e<i;e++)r[e]=0;for(let a=0,s=0;a<n;a++){let u=e.child(a);s++;for(let e=0;;e++){for(;i<r.length&&0!=r[i];)i++;if(e==u.childCount)break;let c=u.child(e),{colspan:d,rowspan:f,colwidth:h}=c.attrs;for(let e=0;e<f;e++){if(e+a>=n){(o||(o=[])).push({type:"overlong_rowspan",pos:s,n:f-e});break}let u=i+e*t;for(let e=0;e<d;e++){0==r[u+e]?r[u+e]=s:(o||(o=[])).push({type:"collision",row:a,pos:s,n:d-e});let n=h&&h[e];if(n){let r=(u+e)%t*2,i=l[r];null==i||i!=n&&1==l[r+1]?(l[r]=n,l[r+1]=1):i==n&&l[r+1]++}}}i+=d,s+=c.nodeSize}let c=(a+1)*t,d=0;for(;i<c;)0==r[i++]&&d++;d&&(o||(o=[])).push({type:"missing",row:a,n:d}),s++}(0===t||0===n)&&(o||(o=[])).push({type:"zero_sized"});let a=new d(t,n,r,o),s=!1;for(let e=0;!s&&e<l.length;e+=2)null!=l[e]&&l[e+1]<n&&(s=!0);return s&&function(e,t,n){e.problems||(e.problems=[]);let r={};for(let i=0;i<e.map.length;i++){let o=e.map[i];if(r[o])continue;r[o]=!0;let l=n.nodeAt(o);if(!l)throw RangeError(`No cell with offset ${o} found`);let a=null,s=l.attrs;for(let n=0;n<s.colspan;n++){let r=t[2*((i+n)%e.width)];null==r||s.colwidth&&s.colwidth[n]==r||((a||(a=function(e){if(e.colwidth)return e.colwidth.slice();let t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}(s)))[n]=r)}a&&e.problems.unshift({type:"colwidth mismatch",pos:o,colwidth:a})}}(a,l,e),a}(e))}};function f(e){let t=e.cached.tableNodeTypes;if(!t)for(let n in t=e.cached.tableNodeTypes={},e.nodes){let r=e.nodes[n],i=r.spec.tableRole;i&&(t[i]=r)}return t}var h=new l.hs("selectingCells");function p(e){for(let t=e.depth-1;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}function m(e){let t=e.selection.$head;for(let e=t.depth;e>0;e--)if("row"==t.node(e).type.spec.tableRole)return!0;return!1}function g(e){let t=e.selection;if("$anchorCell"in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if("node"in t&&t.node&&"cell"==t.node.type.spec.tableRole)return t.$anchor;let n=p(t.$head)||function(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){let r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n)}for(let t=e.nodeBefore,n=e.pos;t;t=t.lastChild,n--){let r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n-t.nodeSize)}}(t.$head);if(n)return n;throw RangeError(`No cell found around position ${t.head}`)}function y(e){return"row"==e.parent.type.spec.tableRole&&!!e.nodeAfter}function v(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function b(e,t,n){let r=e.node(-1),i=d.get(r),o=e.start(-1),l=i.nextCell(e.pos-o,t,n);return null==l?null:e.node(0).resolve(o+l)}function w(e,t,n=1){let r={...e,colspan:e.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some(e=>e>0)||(r.colwidth=null)),r}function x(e,t,n=1){let r={...e,colspan:e.colspan+n};if(r.colwidth){r.colwidth=r.colwidth.slice();for(let e=0;e<n;e++)r.colwidth.splice(t,0,0)}return r}var k=class e extends l.LN{constructor(e,t=e){let n=e.node(-1),r=d.get(n),i=e.start(-1),o=r.rectBetween(e.pos-i,t.pos-i),a=e.node(0),s=r.cellsInRect(o).filter(e=>e!=t.pos-i);s.unshift(t.pos-i);let u=s.map(e=>{let t=n.nodeAt(e);if(!t)throw RangeError(`No cell with offset ${e} found`);let r=i+e+1;return new l.yn(a.resolve(r),a.resolve(r+t.content.size))});super(u[0].$from,u[0].$to,u),this.$anchorCell=e,this.$headCell=t}map(t,n){let r=t.resolve(n.map(this.$anchorCell.pos)),i=t.resolve(n.map(this.$headCell.pos));if(y(r)&&y(i)&&v(r,i)){let t=this.$anchorCell.node(-1)!=r.node(-1);return t&&this.isRowSelection()?e.rowSelection(r,i):t&&this.isColSelection()?e.colSelection(r,i):new e(r,i)}return l.U3.between(r,i)}content(){let e=this.$anchorCell.node(-1),t=d.get(e),n=this.$anchorCell.start(-1),r=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),i={},o=[];for(let n=r.top;n<r.bottom;n++){let l=[];for(let o=n*t.width+r.left,a=r.left;a<r.right;a++,o++){let n=t.map[o];if(i[n])continue;i[n]=!0;let a=t.findCell(n),s=e.nodeAt(n);if(!s)throw RangeError(`No cell with offset ${n} found`);let u=r.left-a.left,c=a.right-r.right;if(u>0||c>0){let e=s.attrs;if(u>0&&(e=w(e,0,u)),c>0&&(e=w(e,e.colspan-c,c)),a.left<r.left){if(!(s=s.type.createAndFill(e)))throw RangeError(`Could not create cell with attrs ${JSON.stringify(e)}`)}else s=s.type.create(e,s.content)}if(a.top<r.top||a.bottom>r.bottom){let e={...s.attrs,rowspan:Math.min(a.bottom,r.bottom)-Math.max(a.top,r.top)};s=a.top<r.top?s.type.createAndFill(e):s.type.create(e,s.content)}l.push(s)}o.push(e.child(n).copy(a.FK.from(l)))}let l=this.isColSelection()&&this.isRowSelection()?e:o;return new a.Ji(a.FK.from(l),1,1)}replace(e,t=a.Ji.empty){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:o,$to:l}=r[i],s=e.mapping.slice(n);e.replace(s.map(o.pos),s.map(l.pos),i?a.Ji.empty:t)}let i=l.LN.findFrom(e.doc.resolve(e.mapping.slice(n).map(this.to)),-1);i&&e.setSelection(i)}replaceWith(e,t){this.replace(e,new a.Ji(a.FK.from(t),0,0))}forEachCell(e){let t=this.$anchorCell.node(-1),n=d.get(t),r=this.$anchorCell.start(-1),i=n.cells
1InRect(n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r));for(let n=0;n<i.length;n++)e(t.nodeAt(i[n]),r+i[n])}isColSelection(){let e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);return!(Math.min(e,t)>0)&&Math.max(e+this.$anchorCell.nodeAfter.attrs.rowspan,t+this.$headCell.nodeAfter.attrs.rowspan)==this.$headCell.node(-1).childCount}static colSelection(t,n=t){let r=t.node(-1),i=d.get(r),o=t.start(-1),l=i.findCell(t.pos-o),a=i.findCell(n.pos-o),s=t.node(0);return l.top<=a.top?(l.top>0&&(t=s.resolve(o+i.map[l.left])),a.bottom<i.height&&(n=s.resolve(o+i.map[i.width*(i.height-1)+a.right-1]))):(a.top>0&&(n=s.resolve(o+i.map[a.left])),l.bottom<i.height&&(t=s.resolve(o+i.map[i.width*(i.height-1)+l.right-1]))),new e(t,n)}isRowSelection(){let e=this.$anchorCell.node(-1),t=d.get(e),n=this.$anchorCell.start(-1),r=t.colCount(this.$anchorCell.pos-n),i=t.colCount(this.$headCell.pos-n);return!(Math.min(r,i)>0)&&Math.max(r+this.$anchorCell.nodeAfter.attrs.colspan,i+this.$headCell.nodeAfter.attrs.colspan)==t.width}eq(t){return t instanceof e&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,n=t){let r=t.node(-1),i=d.get(r),o=t.start(-1),l=i.findCell(t.pos-o),a=i.findCell(n.pos-o),s=t.node(0);return l.left<=a.left?(l.left>0&&(t=s.resolve(o+i.map[l.top*i.width])),a.right<i.width&&(n=s.resolve(o+i.map[i.width*(a.top+1)-1]))):(a.left>0&&(n=s.resolve(o+i.map[a.top*i.width])),l.right<i.width&&(t=s.resolve(o+i.map[i.width*(l.top+1)-1]))),new e(t,n)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,n){return new e(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){return new e(t.resolve(n),t.resolve(r))}getBookmark(){return new C(this.$anchorCell.pos,this.$headCell.pos)}};k.prototype.visible=!1,l.LN.jsonID("cell",k);var C=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){let t=e.resolve(this.anchor),n=e.resolve(this.head);return"row"==t.parent.type.spec.tableRole&&"row"==n.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&n.index()<n.parent.childCount&&v(t,n)?new k(t,n):l.LN.near
1(n,1)}};function S(e){if(!(e.selection instanceof k))return null;let t=[];return e.selection.forEachCell((e,n)=>{t.push(s.NZ.node(n,n+e.nodeSize,{class:"selectedCell"}))}),s.zF.create(e.doc,t)}var E=new l.hs("fix-tables");function M(e,t){let n,r=(t,r)=>{"table"==t.type.spec.tableRole&&(n=function(e,t,n,r){let i,o,l=d.get(t);if(!l.problems)return r;r||(r=e.tr);let a=[];for(let e=0;e<l.height;e++)a.push(0);for(let e=0;e<l.problems.length;e++){let i=l.problems[e];if("collision"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;let o=e.attrs;for(let e=0;e<o.rowspan;e++)a[i.row+e]+=i.n;r.setNodeMarkup(r.mapping.map(n+1+i.pos),null,w(o,o.colspan-i.n,i.n))}else if("missing"==i.type)a[i.row]+=i.n;else if("overlong_rowspan"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;r.setNodeMarkup(r.mapping.map(n+1+i.pos),null,{...e.attrs,rowspan:e.attrs.rowspan-i.n})}else if("colwidth mismatch"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;r.setNodeMarkup(r.mapping.map(n+1+i.pos),null,{...e.attrs,colwidth:i.colwidth})}else if("zero_sized"==i.type){let e=r.mapping.map(n);r.delete(e,e+t.nodeSize)}}for(let e=0;e<a.length;e++)a[e]&&(null==i&&(i=e),o=e);for(let s=0,u=n+1;s<l.height;s++){let n=t.child(s),l=u+n.nodeSize,c=a[s];if(c>0){let t="cell";n.firstChild&&(t=n.firstChild.type.spec.tableRole);let a=[];for(let n=0;n<c;n++){let n=f(e.schema)[t].createAndFill();n&&a.push(n)}let d=(0==s||i==s-1)&&o==s?u+1:l-1;r.insert(r.mapping.map(d),a)}u=l}return r.setMeta(E,{fixTables:!0})}(e,t,r,n))};return t?t.doc!=e.doc&&function e(t,n,r,i){let o=t.childCount,l=n.childCount;t:for(let a=0,s=0;a<l;a++){let l=n.child(a);for(let e=s,n=Math.min(o,a+3);e<n;e++)if(t.child(e)==l){s=e+1,r+=l.nodeSize;continue t}i(l,r),s<o&&t.child(s).sameMarkup(l)?e(t.child(s),l,r+1,i):l.nodesBetween(0,l.content.size,i,r+1),r+=l.nodeSize}}(t.doc,e.doc,0,r):e.doc.descendants(r),n}function T(e){let t=e.selection,n=g(e),r=n.node(-1),i=n.start(-1),o=d.get(r);return{...t instanceof k?o.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):o.findCell(n.pos-i),tableStart:i,map:o,table:r}}function R(e,{map:t,tableStart:n,table:r},i){let o=i>0?-1:0;(function(e,t,n){let r=f(t.type.schema).header_cell;for(let i=0;i<e.height;i++)if(t.nodeAt(e.map[n+i*e.width]).type!=r)return!1;return!0})(t,r,i+o)&&(o=0==i||i==t.width?null:0);for(let l=0;l<t.height;l++){let a=l*t.width+i;if(i>0&&i<t.width&&t.map[a-1]==t.map[a]){let o=t.map[a],s=r.nodeAt(o);e.setNodeMarkup(e.mapping.map(n+o),null,x(s.attrs,i-t.colCount(o))),l+=s.attrs.rowspan-1}else{let s=null==o?f(r.type.schema).cell:r.nodeAt(t.map[a+o]).type,u=t.positionAt(l,i,r);e.insert(e.mapping.map(n+u),s.createAndFill())}}return e}function A(e,{map:t,tableStart:n,table:r},i){var o;let l=n;for(let e=0;e<i;e++)l+=r.child(e).nodeSize;let a=[],s=i>0?-1:0;(function(e,t,n){var r;let i=f(t.type.schema).header_cell;for(let o=0;o<e.width;o++)if((null==(r=t.nodeAt(e.map[o+n*e.width]))?void 0:r.type)!=i)return!1;return!0})(t,r,i+s)&&(s=0==i||i==t.height?null:0);for(let l=0,u=t.width*i;l<t.width;l++,u++)if(i>0&&i<t.height&&t.map[u]==t.map[u-t.width]){let i=t.map[u],o=r.nodeAt(i).attrs;e.setNodeMarkup(n+i,null,{...o,rowspan:o.rowspan+1}),l+=o.colspan-1}else{let e=null==s?f(r.type.schema).cell:null==(o=r.nodeAt(t.map[u+s*t.width]))?void 0:o.type,n=null==e?void 0:e.createAndFill();n&&a.push(n)}return e.insert(l,f(r.type.schema).row.create(null,a)),e}function O(e){let t=e.content;return 1==t.childCount&&t.child(0).isTextblock&&0==t.child(0).childCount}function N(e,t){let n=e.selection;if(!(n instanceof k)||n.$anchorCell.pos==n.$headCell.pos)return!1;let r=T(e),{map:i}=r;if(function({width:e,height:t,map:n},r){let i=r.top*e+r.left,o=i,l=(r.bottom-1)*e+r.left,a=i+(r.right-r.left-1);for(let t=r.top;t<r.bottom;t++){if(r.left>0&&n[o]==n[o-1]||r.right<e&&n[a]==n[a+1])return!0;o+=e,a+=e}for(let o=r.left;o<r.right;o++){if(r.top>0&&n[i]==n[i-e]||r.bottom<t&&n[l]==n[l+e])return!0;i++,l++}return!1}(i,r))return!1;if(t){let n,o,l=e.tr,s={},u=a.FK.empty;for(let e=r.top;e<r.bottom;e++)for(let t=r.left;t<r.right;t++){let a=i.map[e*i.width+t],c=r.table.nodeAt(a);if(!s[a]&&c)if(s[a]=!0,null==n)n=a,o=c;else{O(c)||(u=u.append(c.content));let e=l.mapping.map(a+r.tableStart);l.delete(e,e+c.nodeSize)}}if(null==n||null==o)return!0;
1if(l.setNodeMarkup(n+r.tableStart,null,{...x(o.attrs,o.attrs.colspan,r.right-r.left-o.attrs.colspan),rowspan:r.bottom-r.top}),u.size){let e=n+1+o.content.size,t=O(o)?n+1:e;l.replaceWith(t+r.tableStart,e+r.tableStart,u)}l.setSelection(new k(l.doc.resolve(n+r.tableStart))),t(l)}return!0}function P(e,t){var n;let r=f(e.schema);return(n=({node:e})=>r[e.type.spec.tableRole],(e,t)=>{var r;let i,o,l=e.selection;if(l instanceof k){if(l.$anchorCell.pos!=l.$headCell.pos)return!1;i=l.$anchorCell.nodeAfter,o=l.$anchorCell.pos}else{if(!(i=function(e){for(let t=e.depth;t>0;t--){let n=e.node(t).type.spec.tableRole;if("cell"===n||"header_cell"===n)return e.node(t)}return null}(l.$from)))return!1;o=null==(r=p(l.$from))?void 0:r.pos}if(null==i||null==o||1==i.attrs.colspan&&1==i.attrs.rowspan)return!1;if(t){let r,a=i.attrs,s=[],u=a.colwidth;a.rowspan>1&&(a={...a,rowspan:1}),a.colspan>1&&(a={...a,colspan:1});let c=T(e),d=e.tr;for(let e=0;e<c.right-c.left;e++)s.push(u?{...a,colwidth:u&&u[e]?[u[e]]:null}:a);for(let e=c.top;e<c.bottom;e++){let t=c.map.positionAt(e,c.left,c.table);e==c.top&&(t+=i.nodeSize);for(let o=c.left,l=0;o<c.right;o++,l++)(o!=c.left||e!=c.top)&&d.insert(r=d.mapping.map(t+c.tableStart,1),n({node:i,row:e,col:o}).createAndFill(s[l]))}d.setNodeMarkup(o,n({node:i,row:c.top,col:c.left}),s[0]),l instanceof k&&d.setSelection(new k(d.doc.resolve(l.$anchorCell.pos),r?d.doc.resolve(r):void 0)),t(d)}return!0})(e,t)}function L(e,t,n){let r=t.map.cellsInRect({left:0,top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1});for(let e=0;e<r.length;e++){let i=t.table.nodeAt(r[e]);if(i&&i.type!==n.header_cell)return!1}return!0}function I(e,t){if((t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic)return function(t,n){if(!m(t))return!1;if(n){let r=f(t.schema),i=T(t),o=t.tr,l=i.map.cellsInRect("column"==e?{left:i.left,top:0,right:i.right,bottom:i.map.height}:"row"==e?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),a=l.map(e=>i.table.nodeAt(e));for(let e=0;e<l.length;e++)a[e].type==r.header_cell&&o.setNodeMarkup(i.tableStart+l[e],r.cell,a[e].attrs);if(0==o.steps.length)for(let e=0;e<l.length;e++)o.setNodeMarkup(i.tableStart+l[e],r.header_cell,a[e].attrs);n(o)}return!0};return function(t,n){if(!m(t))return!1;if(n){let r=f(t.schema),i=T(t),o=t.tr,l=L("row",i,r),a=L("column",i,r),s=+!!("column"===e?l:"row"===e&&a),u="column"==e?{left:0,top:s,right:1,bottom:i.map.height}:"row"==e?{left:s,top:0,right:i.map.width,bottom:1}:i,c="column"==e?a?r.cell:r.header_cell:"row"==e?l?r.cell:r.header_cell:r.cell;i.map.cellsInRect(u).forEach(e=>{let t=e+i.tableStart,n=o.doc.nodeAt(t);n&&o.setNodeMarkup(t,c,n.attrs)}),n(o)}return!0}}I("row",{useDeprecatedLogic:!0}),I("column",{useDeprecatedLogic:!0});var D=I("cell",{useDeprecatedLogic:!0});function _(e){return function(t,n){if(!m(t))return!1;let r=function(e,t){if(t<0){let t=e.nodeBefore;if(t)return e.pos-t.nodeSize;for(let t=e.index(-1)-1,n=e.before();t>=0;t--){let r=e.node(-1).child(t),i=r.lastChild;if(i)return n-1-i.nodeSize;n-=r.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;let t=e.node(-1);for(let n=e.indexAfter(-1),r=e.after();n<t.childCount;n++){let e=t.child(n);if(e.childCount)return r+1;r+=e.nodeSize}}return null}(g(t),e);if(null==r)return!1;if(n){let e=t.doc.resolve(r);n(t.tr.setSelection(l.U3.between(e,e.node(0).resolve(e.pos+e.nodeAfter.nodeSize))).scrollIntoView())}return!0}}function j(e,t){let n=e.selection;if(!(n instanceof k))return!1;if(t){let r=e.tr,i=f(e.schema).cell.createAndFill().content;n.forEachCell((e,t)=>{e.content.eq(i)||r.replace(r.mapping.map(t+1),r.mapping.map(t+e.nodeSize-1),new a.Ji(i,0,0))}),r.docChanged&&t(r)}return!0}function F(e,t){let n=e.createAndFill();return new c.dL(n).replace(0,n.content.size,t).doc}function z(e,t,n,r,i,o,l,a){if(0==l||l==t.height)return!1;let s=!1;for(let u=i;u<o;u++){let i=l*t.width+u,o=t.map[i];if(t.map[i-t.width]==o){s=!0;let i=n.nodeAt(o),{top:c,left:d}=t.findCell(o);e.setNodeMarkup(e.mapping.slice(a).map(o+r),null,{...i.attrs,rowspan:l-c}),e.insert(e.mapping.slice(a).map(t.positionAt(l,d,n)),i.type.createAndFill({...i.attrs,rowspan:c+i.attrs.rowspan-l})),u+=i.attrs.colspan-1}}return s}function H(e,t,n,r,i,o,l,a){if(0==l||l==t.width)return!1;let s=!1;for(let u=i;u<o;u++){let i=u*t.width+l,o=t.map[i];if(t.map[i-1]==o){s=!0;let i=n.nodeAt(o),c=t.colCount(o),d=e.mapping.slice(a).map(o+r);e.setNodeMarkup(d,null,w(i.attrs,l-c,i.attrs.colspan-(l-c))),e.insert(d+i.nodeSize,i.type.createAndFill(w(i.attrs,0,l-c))),u+=i.attrs.rowspan-1}}return s}function B(e,t,n,r,i){let o=n?e.doc.nodeAt(n-1):e.doc;if(!o)throw Error("No table found");let l=d.get(o),{top:s,left:u}=r,c=u+i.width,h=s+i.height,p=e.tr,m=0;function g(){if(!(o=n?p.doc.nodeAt(n-1):p.doc))throw Error("No table found");l=d.get(o),m=p.mapping.maps.length}(function(e,t,n,r,i,o,l){let s,u,c=f(e.doc.type.schema);if(i>t.width)for(let o=0,l=0;o<t.height;o++){let a,d=n.child(o);l+=d.nodeSize;let f=[];a=null==d.lastChild||d.lastChild.type==c.cell?s||(s=c.cell.createAndFill()):u||(u=c.header_cell.createAndFill());for(let e=t.width;e<i;e++)f.push(a);e.insert(e.mapping.slice(0).map(l-1+r),f)}if(o>t.height){let d=[];for(let e=0,r=(t.height-1)*t.width;e<Math.max(t.width,i);e++){let i=!(e>=t.width)&&n.nodeAt(t.map[r+e]).type==c.header_cell;d.push(i?u||(u=c.header_cell.createAndFill()):s||(s=c.cell.createAndFill()))}let f=c.row.create(null,a.FK.from(d)),h=[];for(let e=t.height;e<o;e++)h.push(f);e.insert(e.mapping.slice(l).map(r+n.nodeSize-2),h)}return!!(s||u)})(p,l,o,n,c,h,0)&&g(),z(p,l,o,n,u,c,s,m)&&g(),z(p,l,o,n,u,c,h,m)&&g(),H(p,l,o,n,s,h,u,m)&&g(),H(p,l,o,n,s,h,c,m)&&g();for(let e=s;e<h;e++){let t=l.positionAt(e,u,o),r=l.positionAt(e,c,o);p.replace(p.mapping.slice(m).map(t+n),p.mapping.slice(m).map(r+n),new a.Ji(i.rows[e-s],0,0))}g(),p.setSelection(new k(p.doc.resolve(n+l.positionAt(s,u,o)),p.doc.resolve(n+l.positionAt(h-1,c-1,o)))),t(p)}var $=(0,u.K)({ArrowLeft:V("horiz",-1),ArrowRight:V("horiz",1),ArrowUp:V("vert",-1),ArrowDown:V("vert",1),"Shift-ArrowLeft":W("horiz",-1),"Shift-ArrowRight":W("horiz",1),"Shift-ArrowUp":W("vert",
1-1),"Shift-ArrowDown":W("vert",1),Backspace:j,"Mod-Backspace":j,Delete:j,"Mod-Delete":j});function U(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function V(e,t){return(n,r,i)=>{if(!i)return!1;let o=n.selection;if(o instanceof k)return U(n,r,l.LN.near(o.$headCell,t));if("horiz"!=e&&!o.empty)return!1;let a=Y(i,e,t);if(null==a)return!1;if("horiz"==e)return U(n,r,l.LN.near(n.doc.resolve(o.head+t),t));{let i,o=n.doc.resolve(a),s=b(o,e,t);return i=s?l.LN.near(s,1):t<0?l.LN.near(n.doc.resolve(o.before(-1)),-1):l.LN.near(n.doc.resolve(o.after(-1)),1),U(n,r,i)}}}function W(e,t){return(n,r,i)=>{let o;if(!i)return!1;let l=n.selection;if(l instanceof k)o=l;else{let r=Y(i,e,t);if(null==r)return!1;o=new k(n.doc.resolve(r))}let a=b(o.$headCell,e,t);return!!a&&U(n,r,new k(o.$anchorCell,a))}}function q(e,t){let n=p(e.state.doc.resolve(t));return!!n&&(e.dispatch(e.state.tr.setSelection(new k(n))),!0)}function K(e,t,n){if(!m(e.state))return!1;let r=function(e){if(!e.size)return null;let{content:t,openStart:n,openEnd:r}=e;for(;1==t.childCount&&(n>0&&r>0||"table"==t.child(0).type.spec.tableRole);)n--,r--,t=t.child(0).content;let i=t.child(0),o=i.type.spec.tableRole,l=i.type.schema,s=[];if("row"==o)for(let e=0;e<t.childCount;e++){let i=t.child(e).content,o=e?0:Math.max(0,n-1),u=e<t.childCount-1?0:Math.max(0,r-1);(o||u)&&(i=F(f(l).row,new a.Ji(i,o,u)).content),s.push(i)}else{if("cell"!=o&&"header_cell"!=o)return null;s.push(n||r?F(f(l).row,new a.Ji(t,n,r)).content:t)}return function(e,t){let n=[];for(let e=0;e<t.length;e++){let r=t[e];for(let t=r.childCount-1;t>=0;t--){let{rowspan:i,colspan:o}=r.child(t).attrs;for(let t=e;t<e+i;t++)n[t]=(n[t]||0)+o}}let r=0;for(let e=0;e<n.length;e++)r=Math.max(r,n[e]);for(let i=0;i<n.length;i++)if(i>=t.length&&t.push(a.FK.empty),n[i]<r){let o=f(e).cell.createAndFill(),l=[];for(let e=n[i];e<r;e++)l.push(o);t[i]=t[i].append(a.FK.from(l))}return{height:t.length,width:r,rows:t}}(l,s)}(n),i=e.state.selection;if(i instanceof k){r||(r={width:1,height:1,rows:[a.FK.from(F(f(e.state.schema).cell,n))]});let t=i.$anchorCell.node(-1),o=i.$anchorCell.start(-1),l=d.get(t).rectBetween(i.$anchorCell.pos-o,i.$headCell.pos-o);return r=function({width:e,height:t,rows:n},r,i){if(e!=r){let t=[],i=[];for(let e=0;e<n.length;e++){let o=n[e],l=[];for(let n=t[e]||0,i=0;n<r;i++){let a=o.child(i%o.childCount);n+a.attrs.colspan>r&&(a=a.type.createChecked(w(a.attrs,a.attrs.colspan,n+a.attrs.colspan-r),a.content)),l.push(a),n+=a.attrs.colspan;for(let n=1;n<a.attrs.rowspan;n++)t[e+n]=(t[e+n]||0)+a.attrs.colspan}i.push(a.FK.from(l))}n=i,e=r}if(t!=i){let e=[];for(let r=0,o=0;r<i;r++,o++){let l=[],s=n[o%t];for(let e=0;e<s.childCount;e++){let t=s.child(e);r+t.attrs.rowspan>i&&(t=t.type.create({...t.attrs,rowspan:Math.max(1,i-t.attrs.rowspan)},t.content)),l.push(t)}e.push(a.FK.from(l))}n=e,t=i}return{width:e,height:t,rows:n}}(r,l.right-l.left,l.bottom-l.top),B(e.state,e.dispatch,o,l,r),!0}if(!r)return!1;{let t=g(e.state),n=t.start(-1);return B(e.state,e.dispatch,n,d.get(t.node(-1)).findCell(t.pos-n),r),!0}}function G(e,t){var n;let r;if(t.ctrlKey||t.metaKey)return;let i=J(e,t.target);if(t.shiftKey&&e.state.selection instanceof k)o(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&i&&null!=(r=p(e.state.selection.$anchor))&&(null==(n=X(e,t))?void 0:n.pos)!=r.pos)o(r,t),t.preventDefault();else if(!i)return;function o(t,n){let r=X(e,n),i=null==h.getState(e.state);if(!r||!v(t,r))if(!i)return;else r=t;let o=new k(t,r);if(i||!e.state.selection.eq(o)){let n=e.state.tr.setSelection(o);i&&n.setMeta(h,t.pos),e.dispatch(n)}}function l(){e.root.removeEventListener("mouseup",l),e.root.removeEventListener("dragstart",l),e.root.removeEventListener("mousemove",a),null!=h.getState(e.state)&&e.dispatch(e.state.tr.setMeta(h,-1))}function a(n){let r,a=h.getState(e.state);if(null!=a)r=e.state.doc.resolve(a);else if(J(e,n.target)!=i&&!(r=X(e,t)))return l();r&&o(r,n)}e.root.addEventListener("mouseup",l),e.root.addEventListener("dragstart",l),e.root.addEventListener("mousemove",a)}function Y(e,t,n){if(!(e.state.selection instanceof l.U3))return null;let{$head:r}=e.state.selection;for(let i=r.depth-1;i>=0;i--){let o=r.node(i);if((n<0?r.index(i):r.indexAfter(i))!=(n<0?0:o.childCount))break;if("cell"==o.type.spec.tableRole||"header_cell"==o.type.spec.tableRole){let o=r.before(i),l="vert"==t?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(l)?o:null}}return null}function J(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t;return null}function X(e,t){let n=e.posAtCoords({left:t.clientX,top:t.clientY});return n&&n?p(e.state.doc.resolve(n.pos)):null}var Z=class{constructor(e,t){this.node=e,this.defaultCellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.table.style.setProperty("--default-cell-min-width",`${t}px`),this.colgroup=this.table.appendChild(document.createElement("colgroup")),Q(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type==this.node.type&&(this.node=e,Q(e,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))}};function Q(e,t,n,r,i,o){var l;let a=0,s=!0,u=t.firstChild,c=e.firstChild;if(c){for(let e=0,n=0;e<c.childCount;e++){let{colspan:l,colwidth:d}=c.child(e).attrs;for(let e=0;e<l;e++,n++){let l=i==n?o:d&&d[e],c=l?l+"px":"";if(a+=l||r,l||(s=!1),u)u.style.width!=c&&(u.style.width=c),u=u.nextSibling;else{let e=document.createElement("col");e.style.width=c,t.appendChild(e)}}}for(;u;){let e=u.nextSibling;null==(l=u.parentNode)||l.removeChild(u),u=e}s?(n.style.width=a+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=a+"px")}}var ee=new l.hs("tableColumnResizing"),et=class e{constructor(e,t){this.activeHandle=e,this.dragging=t}apply(t){let n=t.getMeta(ee);if(n&&null!=n.setHandle)return new e(n.setHandle,!1);if(n&&void 0!==n.setDragging)return new e(this.activeHandle,n.setDragging);if(this.activeHandle>-1&&t.docChanged){let n=t.mapping.map(this.activeHandle,-1);return y(t.doc.resolve(n))||(n=-1),new e(n,this.dragging)}return this}};function en(e,t,n,r){let i=e.posAtCoords({left:t.clientX+("right"==n?-r:r),top:t.clientY});if(!i)return -1;let{pos:o}=i,l=p(e.state.doc.resolve(o));if(!l)return -1;if("right"==n)return l.pos;let a=d.get(l.node(-1)),s=l.start(-1),u=a.map.indexOf(l.pos-s);return u%a.width==0?-1:s+a.map[u-1]}function er(e,t,n){let r=t.clientX-e.startX;return Math.max(n,e.startWidth+r)}function ei(e,t){e.dispatch(e.state.tr.setMeta(ee,{setHandle:t}))}function eo(e,t,n,r){let i=e.state.doc.resolve(t),o=i.node(-1),l=i.start(-1),a=d.get(o).colCount(i.pos-l)+i.nodeAfter.attrs.colspan-1,s=e.domAtPos(i.start(-1)).node;for(;s&&"TABLE"!=s.nodeName;)s=s.parentNode;s&&Q(o,s.firstChild,s,r,a,n)}var el=o.bP.create({name:"tableCell",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{var t,n;let r=e.getAttribute("colwidth"),i=r?r.split(",").map(e=>parseInt(e,10)):null;if(!i){let r=null==(t=e.closest("table"))?void 0:t.querySelectorAll("colgroup > col"),i=Array.from((null==(n=e.parentElement)?void 0:n.children)||[]).indexOf(e);if(i&&i>-1&&r&&r[i]){let e=r[i].getAttribute("width");return e?[parseInt(e,10)]:null}}return i}}}),tableRole:"cell",isolating:!0,parseHTML:()=>[{tag:"td"}],renderHTML({HTMLAttributes:e}){return["td",(0,o.KV)(this.options.HTMLAttributes,e),0]}}),ea=o.bP.create({name:"tableHeader",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{let t=e.getAttribute("colwidth");return t?t.split(",").map(e=>parseInt(e,10)):null}}}),tableRole:"header_cell",isolating:!0,parseHTML:()=>[{tag:"th"}],renderHTML({HTMLAttributes:e}){return["th",(0,o.KV)(this.options.HTMLAttributes,e),0]}}),es=o.bP.create({name:"tableRow",addOptions:()=>({HTMLAttributes:{}}),content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML:()=>[{tag:"tr"}],renderHTML({HTMLAttributes:e}){return["tr",(0,o.KV)(this.options.HTMLAttributes,e),0]}});function eu(e,t){return t?["width",`${Math.max(t,e)}px`]:["min-width",`${e}px`]}function ec(e,t,n,r,i,o){var l;let a=0,s=!0,u=t.firstChild,c=e.firstChild;if(null!==c)for(let e=0,n=0;e<c.childCount;e+=1){let{colspan:l,colwidth:d}=c.child(e).attrs;for(let e=0;e<l;e+=1,n+=1){let l=i===n?o:d&&d[e],c=l?`${l}px`:"";if(a+=l||r,l||(s=!1),u){if(u.style.width!==c){let[e,t]=eu(r,l);u.style.setProperty(e,t)}u=u.nextSibling}else{let e=document.createElement("col"),[n,i]=eu(r,l);e.style.setProperty(n,i),t.appendChild(e)}}}for(;u;){let e=u.nextSibling;null==(l=u.parentNode)||l.removeChild(u),u=e}let d=e.attrs.style&&"string"==typeof e.attrs.style&&/\bwidth\s*:/i.test(e.attrs.style);s&&!d?(n.style.width=`${a}px`,n.style.minWidth=""):(n.style.width="",n.style.minWidth=`${a}px`)}var ed=class{constructor(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),e.attrs.style&&(this.table.style.cssText=e.attrs.style),this.colgroup=this.table.appendChild(document.createElement("colgroup")),ec(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type===this.node.type&&(this.node=e,ec(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){let t=e.target,n=this.dom.contains(t),r=this.contentDOM.contains(t);return!!n&&!r&&("attributes"===e.type||"childList"===e.type||"characterData"===e.type)}};function ef(e,t){return t?e.createChecked(null,t):e.createAndFill()}var eh=({editor:e})=>{let{selection:t}=e.state;if(!(t instanceof k))return!1;let n=0,r=(0,o.eL)(t.ranges[0].$from,e=>
1"table"===e.type.name);return null==r||r.node.descendants(e=>{if("table"===e.type.name)return!1;["tableCell","tableHeader"].includes(e.type.name)&&(n+=1)}),n===t.ranges.length&&(e.commands.deleteTable(),!0)},ep=function(e,t,n={}){var r;let i=null!=(r=n.cellLineSeparator)?r:"\x1f";if(!e||!e.content||0===e.content.length)return"";let o=[];e.content.forEach(e=>{let n=[];e.content&&e.content.forEach(e=>{let r=((e.content&&Array.isArray(e.content)&&e.content.length>1?e.content.map(e=>t.renderChildren(e)).join(i):e.content?t.renderChildren(e.content):"")||"").replace(/\s+/g," ").trim(),o="tableHeader"===e.type;n.push({text:r,isHeader:o})}),o.push(n)});let l=o.reduce((e,t)=>Math.max(e,t.length),0);if(0===l)return"";let a=Array(l).fill(0);o.forEach(e=>{var t;for(let n=0;n<l;n+=1){let r=((null==(t=e[n])?void 0:t.text)||"").length;r>a[n]&&(a[n]=r),a[n]<3&&(a[n]=3)}});let s=(e,t)=>e+" ".repeat(Math.max(0,t-e.length)),u=o[0],c=u.some(e=>e.isHeader),d="\n",f=Array(l).fill(0).map((e,t)=>c&&u[t]&&u[t].text||"");return d+=`| ${f.map((e,t)=>s(e,a[t])).join(" | ")} | 2| ${a.map(e=>"-".repeat(Math.max(3,e))).join(" | ")} | 3`,(c?o.slice(1):o).forEach(e=>{d+=`| ${Array(l).fill(0).map((t,n)=>s(e[n]&&e[n].text||"",a[n])).join(" | ")} | 4`}),d},em=o.bP.create({name:"table",addOptions:()=>({HTMLAttributes:{},resizable:!1,renderWrapper:!1,handleWidth:5,cellMinWidth:25,View:ed,lastColumnResizable:!0,allowTableNodeSelection:!1}),content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:()=>[{tag:"table"}],renderHTML({node:e,HTMLAttributes:t}){let{colgroup:n,tableWidth:r,tableMinWidth:i}=function(e,t,n,r){let i=0,o=!0,l=[],a=e.firstChild;if(!a)return{};for(let e=0,n=0;e<a.childCount;e+=1){let{colspan:r,colwidth:s}=a.child(e).attrs;for(let e=0;e<r;e+=1,n+=1){let r=void 0===n?void 0:s&&s[e];i+=r||t,r||(o=!1);let[a,u]=eu(t,r);l.push(["col",{style:`${a}: ${u}`}])}}return{colgroup:["colgroup",{},...l],tableWidth:o?`${i}px`:"",tableMinWidth:o?"":`${i}px`}}(e,this.options.cellMinWidth),l=t.style,a=["table",(0,o.KV)(this.options.HTMLAttributes,t,{style:l||(r?`width: ${r}`:`min-width: ${i}`)}),n,["tbody",0]];return this.options.renderWrapper?["div",{class:"tableWrapper"},a]:a},parseMarkdown:(e,t)=>{let n=[];if(e.header){let r=[];e.header.forEach(e=>{r.push(t.createNode("tableHeader",{},[{type:"paragraph",content:t.parseInline(e.tokens)}]))}),n.push(t.createNode("tableRow",{},r))}return e.rows&&e.rows.forEach(e=>{let r=[];e.forEach(e=>{r.push(t.createNode("tableCell",{},[{type:"paragraph",content:t.parseInline(e.tokens)}]))}),n.push(t.createNode("tableRow",{},r))}),t.createNode("table",void 0,n)},renderMarkdown:(e,t)=>ep(e,t),addCommands:()=>({insertTable:({rows:e=3,cols:t=3,withHeaderRow:n=!0}={})=>({tr:r,dispatch:i,editor:o})=>{let a=function(e,t,n,r,i){let o=function(e){if(e.cached.tableNodeTypes)return e.cached.tableNodeTypes;let t={};return Object.keys(e.nodes).forEach(n=>{let r=e.nodes[n];r.spec.tableRole&&(t[r.spec.tableRole]=r)}),e.cached.tableNodeTypes=t,t}(e),l=[],a=[];for(let e=0;e<n;e+=1){let e=ef(o.cell,void 0);if(e&&a.push(e),r){let e=ef(o.header_cell,void 0);e&&l.push(e)}}let s=[];for(let e=0;e<t;e+=1)s.push(o.row.createChecked(null,r&&0===e?l:a));return o.table.createChecked(null,s)}(o.schema,e,t,n);if(i){let e=r.selection.from+1;r.replaceSelectionWith(a).scrollIntoView().setSelection(l.U3.near(r.doc.resolve(e)))}return!0},addColumnBefore:()=>({state:e,dispatch:t})=>(function(e,t){if(!m(e))return!1;if(t){let n=T(e);t(R(e.tr,n,n.left))}return!0})(e,t),addColumnAfter:()=>({state:e,dispatch:t})=>(function(e,t){if(!m(e))return!1;if(t){let n=T(e);t(R(e.tr,n,n.right))}return!0})(e,t),deleteColumn:()=>({state:e,dispatch:t})=>(function(e,t){if(!m(e))return!1;if(t){let n=T(e),r=e.tr;if(0==n.left&&n.right==n.map.width)return!1;for(let e=n.right-1;!function(e,{map:t,table:n,tableStart:r},i){let o=e.mapping.maps.length;for(let l=0;l<t.height;){let a=l*t.width+i,s=t.map[a],u=n.nodeAt(s),c=u.attrs;if(i>0&&t.map[a-1]==s||i<t.width-1&&t.map[a+1]==s)e.setNodeMarkup(e.mapping.slice(o).map(r+s),null,w(c,i-t.colCount(s)));else{let t=e.mapping.slice(o).map(r+s);e.delete(t,t+u.nodeSize)}l+=c.rowspan}
4}(r,n,e),e!=n.left;e--){let e=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!e)throw RangeError("No table found");n.table=e,n.map=d.get(e)}t(r)}return!0})(e,t),addRowBefore:()=>({state:e,dispatch:t})=>(function(e,t){if(!m(e))return!1;if(t){let n=T(e);t(A(e.tr,n,n.top))}return!0})(e,t),addRowAfter:()=>({state:e,dispatch:t})=>(function(e,t){if(!m(e))return!1;if(t){let n=T(e);t(A(e.tr,n,n.bottom))}return!0})(e,t),deleteRow:()=>({state:e,dispatch:t})=>(function(e,t){if(!m(e))return!1;if(t){let n=T(e),r=e.tr;if(0==n.top&&n.bottom==n.map.height)return!1;for(let e=n.bottom-1;!function(e,{map:t,table:n,tableStart:r},i){let o=0;for(let e=0;e<i;e++)o+=n.child(e).nodeSize;let l=o+n.child(i).nodeSize,a=e.mapping.maps.length;e.delete(o+r,l+r);let s=new Set;for(let o=0,l=i*t.width;o<t.width;o++,l++){let u=t.map[l];if(!s.has(u)){if(s.add(u),i>0&&u==t.map[l-t.width]){let t=n.nodeAt(u).attrs;e.setNodeMarkup(e.mapping.slice(a).map(u+r),null,{...t,rowspan:t.rowspan-1}),o+=t.colspan-1}else if(i<t.height&&u==t.map[l+t.width]){let l=n.nodeAt(u),s=l.attrs,c=l.type.create({...s,rowspan:l.attrs.rowspan-1},l.content),d=t.positionAt(i+1,o,n);e.insert(e.mapping.slice(a).map(r+d),c),o+=s.colspan-1}}}}(r,n,e),e!=n.top;e--){let e=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!e)throw RangeError("No table found");n.table=e,n.map=d.get(n.table)}t(r)}return!0})(e,t),deleteTable:()=>({state:e,dispatch:t})=>(function(e,t){let n=e.selection.$anchor;for(let r=n.depth;r>0;r--)if("table"==n.node(r).type.spec.tableRole)return t&&t(e.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0;return!1})(e,t),mergeCells:()=>({state:e,dispatch:t})=>N(e,t),splitCell:()=>({state:e,dispatch:t})=>P(e,t),toggleHeaderColumn:()=>({state:e,dispatch:t})=>I("column")(e,t),toggleHeaderRow:()=>({state:e,dispatch:t})=>I("row")(e,t),toggleHeaderCell:()=>({state:e,dispatch:t})=>D(e,t),mergeOrSplit:()=>({state:e,dispatch:t})=>!!N(e,t)||P(e,t),setCellAttribute:(e,t)=>({state:n,dispatch:r})=>(function(e,t){return function(n,r){if(!m(n))return!1;let i=g(n);if(i.nodeAfter.attrs[e]===t)return!1;if(r){let o=n.tr;n.selection instanceof k?n.selection.forEachCell((n,r)=>{n.attrs[e]!==t&&o.setNodeMarkup(r,null,{...n.attrs,[e]:t})}):o.setNodeMarkup(i.pos,null,{...i.nodeAfter.attrs,[e]:t}),r(o)}return!0}})(e,t)(n,r),goToNextCell:()=>({state:e,dispatch:t})=>_(1)(e,t),goToPreviousCell:()=>({state:e,dispatch:t})=>_(-1)(e,t),fixTables:()=>({state:e,dispatch:t})=>(t&&M(e),!0),setCellSelection:e=>({tr:t,dispatch:n})=>{if(n){let n=k.create(t.doc,e.anchorCell,e.headCell);t.setSelection(n)}return!0}}),addKeyboardShortcuts(){return{Tab:()=>!!this.editor.commands.goToNextCell()||!!this.editor.can().addRowAfter()&&this.editor.chain().addRowAfter().goToNextCell().run(),"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:eh,"Mod-Backspace":eh,Delete:eh,"Mod-Delete":eh}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[function({handleWidth:e=5,cellMinWidth:t=25,defaultCellMinWidth:n=100,View:r=Z,lastColumnResizable:i=!0}={}){let o=new l.k_({key:ee,state:{init(e,t){var i,l;let a=null==(l=null==(i=o.spec)?void 0:i.props)?void 0:l.nodeViews,s=f(t.schema).table.name;return r&&a&&(a[s]=(e,t)=>new r(e,n,t)),new et(-1,!1)},apply:(e,t)=>t.apply(e)},props:{attributes:e=>{let t=ee.getState(e);return t&&t.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(t,n)=>{!function(e,t,n,r){if(!e.editable)return;let i=ee.getState(e.state);if(i&&!i.dragging){let o=function(e){for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.classList&&e.classList.contains("ProseMirror")?null:e.parentNode;return e}(t.target),l=-1;if(o){let{left:r,right:i}=o.getBoundingClientRect();t.clientX-r<=n?l=en(e,t,"left",n):i-t.clientX<=n&&(l=en(e,t,"right",n))}if(l!=i.activeHandle){if(!r&&-1!==l){let t=e.state.doc.resolve(l),n=t.node(-1),r=d.get(n),i=t.start(-1);if(r.colCount(t.pos-i)+t.nodeAfter.attrs.colspan-1==r.width-1)return}ei(e,l)}}}(t,n,e,i)},mouseleave:e=>{!function(e){if(!e.editable)return;let t=ee.getState(e.state);t&&t.activeHandle>-1&&!t.dragging&&ei(e,-1)}(e)},mousedown:(e,r)=>{!function(e,t,n,r){var i;if(!e.editable)return;let o=null!=(i=e.dom.ownerDocument.defaultView)?i:window,l=ee.getState(e.state);if(!l||-1==l.activeHandle||l.dragging)return;let a=e.state.doc.nodeAt(l.activeHandle),s=function(e,t,{colspan:n,colwidth:r}){let i=r&&r[r.length-1];if(i)return i;let o=e.domAtPos(t),l=o.node.childNodes[o.offset].offsetWidth,a=n;if(r)for(let e=0;e<n;e++)r[e]&&(l-=r[e],a--);return l/a}(e,l.activeHandle,a.attrs);function u(t){o.removeEventListener("mouseup",u),o.removeEventListener("mousemove",c);let r=ee.getState(e.state);(null==r?void 0:r.dragging)&&(function(e,t,n){let r=e.state.doc.resolve(t),i=r.no
4de(-1),o=d.get(i),l=r.start(-1),a=o.colCount(r.pos-l)+r.nodeAfter.attrs.colspan-1,s=e.state.tr;for(let e=0;e<o.height;e++){let t=e*o.width+a;if(e&&o.map[t]==o.map[t-o.width])continue;let r=o.map[t],u=i.nodeAt(r).attrs,c=1==u.colspan?0:a-o.colCount(r);if(u.colwidth&&u.colwidth[c]==n)continue;let d=u.colwidth?u.colwidth.slice():Array(u.colspan).fill(0);d[c]=n,s.setNodeMarkup(l+r,null,{...u,colwidth:d})}s.docChanged&&e.dispatch(s)}(e,r.activeHandle,er(r.dragging,t,n)),e.dispatch(e.state.tr.setMeta(ee,{setDragging:null})))}function c(t){if(!t.which)return u(t);let i=ee.getState(e.state);if(i&&i.dragging){let o=er(i.dragging,t,n);eo(e,i.activeHandle,o,r)}}e.dispatch(e.state.tr.setMeta(ee,{setDragging:{startX:t.clientX,startWidth:s}})),eo(e,l.activeHandle,s,r),o.addEventListener("mouseup",u),o.addEventListener("mousemove",c),t.preventDefault()}(e,r,t,n)}},decorations:e=>{let t=ee.getState(e);if(t&&t.activeHandle>-1)return function(e,t){var n;let r=[],i=e.doc.resolve(t),o=i.node(-1);if(!o)return s.zF.empty;let l=d.get(o),a=i.start(-1),u=l.colCount(i.pos-a)+i.nodeAfter.attrs.colspan-1;for(let t=0;t<l.height;t++){let i=u+t*l.width;if((u==l.width-1||l.map[i]!=l.map[i+1])&&(0==t||l.map[i]!=l.map[i-l.width])){let t=l.map[i],u=a+t+o.nodeAt(t).nodeSize-1,c=document.createElement("div");c.className="column-resize-handle",(null==(n=ee.getState(e))?void 0:n.dragging)&&r.push(s.NZ.node(a+t,a+t+o.nodeAt(t).nodeSize,{class:"column-resize-dragging"})),r.push(s.NZ.widget(u,c))}}return s.zF.create(e.doc,r)}(e,t.activeHandle)},nodeViews:{}}});return o}({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,defaultCellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],function({allowTableNodeSelection:e=!1}={}){return new l.k_({key:h,state:{init:()=>null,apply(e,t){let n=e.getMeta(h);if(null!=n)return -1==n?null:n;if(null==t||!e.docChanged)return t;let{deleted:r,pos:i}=e.mapping.mapResult(t);return r?null:i}},props:{decorations:S,handleDOMEvents:{mousedown:G},createSelectionBetween:e=>null!=h.getState(e.state)?e.state.selection:null,handleTripleClick:q,handleKeyDown:$,handlePaste:K},appendTransaction:(t,n,r)=>(function(e,t,n){let r,i,o=(t||e).selection,a=(t||e).doc;if(o instanceof l.nh&&(i=o.node.type.spec.tableRole)){if("cell"==i||"header_cell"==i)r=k.create(a,o.from);else if("row"==i){let e=a.resolve(o.from+1);r=k.rowSelection(e,e)}else if(!n){let e=d.get(o.node),t=o.from+1,n=t+e.map[e.width*e.height-1];r=k.create(a,t+1,n)}}else o instanceof l.U3&&function({$from:e,$to:t}){if(e.pos==t.pos||e.pos<t.pos-6)return!1;let n=e.pos,r=t.pos,i=e.depth;for(;i>=0&&!(e.after(i+1)<e.end(i));i--,n++);for(let e=t.depth;e>=0&&!(t.before(e+1)>t.start(e));e--,r--);return n==r&&/row|table/.test(e.node(i).type.spec.tableRole)}(o)?r=l.U3.create(a,o.from):o instanceof l.U3&&function({$from:e,$to:t}){let n,r;for(let t=e.depth;t>0;t--){let r=e.node(t);if("cell"===r.type.spec.tableRole||"header_cell"===r.type.spec.tableRole){n=r;break}}for(let e=t.depth;e>0;e--){let n=t.node(e);if("cell"===n.type.spec.tableRole||"header_cell"===n.type.spec.tableRole){r=n;break}}return n!==r&&0===t.parentOffset}(o)&&(r=l.U3.create(a,o.$from.start(),o.$from.end()));return r&&(t||(t=e.tr)).setSelection(r),t})(r,M(r,n),e)})}({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(e){let t={name:e.name,options:e.options,storage:e.storage};return{tableRole:(0,o.gk)((0,o.iI)(e,"tableRole",t))}}}),eg=o.YY.create({name:"tableKit",addExtensions(){let e=[];return!1!==this.options.table&&e.push(em.configure(this.options.table)),!1!==this.options.tableCell&&e.push(el.configure(this.options.tableCell)),!1!==this.options.tableHeader&&e.push(ea.configure(this.options.tableHeader)),!1!==this.options.tableRow&&e.push(es.configure(this.options.tableRow)),e}})},1265:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(90953).A)("SquareDashed",[["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M21 19a2 2 0 0 1-2 2",key:"1j7049"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M21 9v1",key:"mxsmne"}],["path",{d:"M3 14v1",key:"vnatye"}],["path",{d:"M21 14v1",key:"169vum"}]])},3035:(e,t,n)=>{"use strict";n.d(t,{A:()=>q});var r,i,o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function l(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}Object.create;Object.create;var a=("function"==typeof SuppressedError&&SuppressedError,n(38848)),s="right-scroll-bar-position",u="width-before-scroll-bar";function c(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var d="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,f=new WeakMap;function h(e){return e}var p=function(e){void 0===e&&(e={});var t,n,r,i=(void 0===t&&(t=h),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;
4n=[],i.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},l=function(){return Promise.resolve().then(o)};l(),n={push:function(e){t.push(e),l()},filter:function(e){return t=t.filter(e),n}}}});return i.options=o({async:!0,ssr:!1},e),i}(),m=function(){},g=a.forwardRef(function(e,t){var n,r,i,s,u=a.useRef(null),h=a.useState({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:m}),g=h[0],y=h[1],v=e.forwardProps,b=e.children,w=e.className,x=e.removeScrollBar,k=e.enabled,C=e.shards,S=e.sideCar,E=e.noRelative,M=e.noIsolation,T=e.inert,R=e.allowPinchZoom,A=e.as,O=e.gapMode,N=l(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=(n=[u,t],r=function(e){return n.forEach(function(t){return c(t,e)})},(i=(0,a.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,s=i.facade,d(function(){var e=f.get(s);if(e){var t=new Set(e),r=new Set(n),i=s.current;t.forEach(function(e){r.has(e)||c(e,null)}),r.forEach(function(e){t.has(e)||c(e,i)})}f.set(s,n)},[n]),s),L=o(o({},N),g);return a.createElement(a.Fragment,null,k&&a.createElement(S,{sideCar:p,removeScrollBar:x,shards:C,noRelative:E,noIsolation:M,inert:T,setCallbacks:y,allowPinchZoom:!!R,lockRef:u,gapMode:O}),v?a.cloneElement(a.Children.only(b),o(o({},L),{ref:P})):a.createElement(void 0===A?"div":A,o({},L,{className:w,ref:P}),b))});g.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},g.classNames={fullWidth:u,zeroRight:s};var y=function(e){var t=e.sideCar,n=l(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return a.createElement(r,o({},n))};y.isSideCarExport=!0;var v=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,l;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),l=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(l)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},b=function(){var e=v();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},w=function(){var e=b();return function(t){return e(t.styles,t.dynamic),null}},x={left:0,top:0,right:0,gap:0},k=function(e){return parseInt(e||"",10)||0},C=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[k(n),k(r),k(i)]},S=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return x;var t=C(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},E=w(),M="data-scroll-locked",T=function(e,t,n,r){var i=e.left,o=e.top,l=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body[").concat(M,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(l,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(s," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(u," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(s," .").concat(s," {\n right: 0 ").concat(r,";\n }\n \n .").concat(u," .").concat(u," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(M,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},R=function(){var e=parseInt(document.body.getAttribute(M)||"0",10);return isFinite(e)?e:0},A=function(){a.useEffect(function(){return document.body.setAttribute(M,(R()+1).toString()),function(){var e=R()-1;e<=0?document.body.removeAttribute(M):document.body.setAttribute(M,e.toString())}},[])},O=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;A();var o=a.useMemo(function(){return S(i)},[i]);return a.createElement(E,{styles:T(o,!t,i,n?"":"!important")})},N=!1;if("undefined"!=typeof window)try{var P=Object.defineProperty({},"passive",{get:function(){return N=!0,!0}});window.addEventListener("test",P,P),window.removeEventListener("test",P,P)}catch(e){N=!1}var L=!!N&&{passive:!1},I=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},D=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),_(e,r)){var i=j(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},_=function(e,t){return"v"===e?I(t,"overflowY"):I(t,"overflowX")},j=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},F=function(e,t,n,r,i){var o,l=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),a=l*r,s=n.target,u=t.contains(s),c=!1,d=a>0,f=0,h=0;
4do{if(!s)break;var p=j(e,s),m=p[0],g=p[1]-p[2]-l*m;(m||g)&&_(e,s)&&(f+=g,h+=m);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return d&&(i&&1>Math.abs(f)||!i&&a>f)?c=!0:!d&&(i&&1>Math.abs(h)||!i&&-a>h)&&(c=!0),c},z=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},H=function(e){return[e.deltaX,e.deltaY]},B=function(e){return e&&"current"in e?e.current:e},$=0,U=[];let V=(r=function(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),i=a.useState($++)[0],o=a.useState(w)[0],l=a.useRef(e);a.useEffect(function(){l.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(B),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=a.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!l.current.allowPinchZoom;var i,o=z(e),a=n.current,s="deltaX"in e?e.deltaX:a[0]-o[0],u="deltaY"in e?e.deltaY:a[1]-o[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=D(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=D(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=i),!i)return!0;var h=r.current||i;return F(h,t,e,"h"===h?s:u,!0)},[]),u=a.useCallback(function(e){if(U.length&&U[U.length-1]===o){var n="deltaY"in e?H(e):z(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(l.current.shards||[]).map(B).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=a.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),d=a.useCallback(function(e){n.current=z(e),r.current=void 0},[]),f=a.useCallback(function(t){c(t.type,H(t),t.target,s(t,e.lockRef.current))},[]),h=a.useCallback(function(t){c(t.type,z(t),t.target,s(t,e.lockRef.current))},[]);a.useEffect(function(){return U.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",u,L),document.addEventListener("touchmove",u,L),document.addEventListener("touchstart",d,L),function(){U=U.filter(function(e){return e!==o}),document.removeEventListener("wheel",u,L),document.removeEventListener("touchmove",u,L),document.removeEventListener("touchstart",d,L)}},[]);var p=e.removeScrollBar,m=e.inert;return a.createElement(a.Fragment,null,m?a.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?a.createElement(O,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},p.useMedium(r),y);var W=a.forwardRef(function(e,t){return a.createElement(g,o({},e,{ref:t,sideCar:V}))});W.classNames=g.classNames;let q=W},3328:(e,t,n)=>{"use strict";e.exports=n(77002)},4033:(e,t,n)=>{"use strict";n.d(t,{$t:()=>C,LN:()=>l,U3:()=>c,hs:()=>T,i5:()=>p,k_:()=>S,nh:()=>f,yn:()=>a});var r=n(7964),i=n(10761);let o=Object.create(null);class l{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new a(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=r.Ji.empty){let n=t.content.lastChild,i=null;for(let e=0;e<t.openEnd;e++)i=n,n=n.lastChild;let o=e.steps.length,l=this.ranges;for(let a=0;a<l.length;a++){let{$from:s,$to:u}=l[a],c=e.mapping.slice(o);e.replaceRange(c.map(s.pos),c.map(u.pos),a?r.Ji.empty:t),0==a&&y(e,o,(n?n.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:o,$to:l}=r[i],a=e.mapping.slice(n),s=a.map(o.pos),u=a.map(l.pos);i?e.deleteRange(s,u):(e.replaceRangeWith(s,u,t),y(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new c(e):g(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let r=e.depth-1;r>=0;r--){let i=t<0?g(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):g(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(i)return i}return null}
4static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new p(e.node(0))}static atStart(e){return g(e,e,0,0,1)||new p(e)}static atEnd(e){return g(e,e,e.content.size,e.childCount,-1)||new p(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError("Invalid input for Selection.fromJSON");let n=o[t.type];if(!n)throw RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in o)throw RangeError("Duplicate use of selection JSON ID "+e);return o[e]=t,t.prototype.jsonID=e,t}getBookmark(){return c.between(this.$anchor,this.$head).getBookmark()}}l.prototype.visible=!0;class a{constructor(e,t){this.$from=e,this.$to=t}}let s=!1;function u(e){s||e.parent.inlineContent||(s=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class c extends l{constructor(e,t=e){u(e),u(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let n=e.resolve(t.map(this.head));if(!n.parent.inlineContent)return l.near(n);let r=e.resolve(t.map(this.anchor));return new c(r.parent.inlineContent?r:n,n)}replace(e,t=r.Ji.empty){if(super.replace(e,t),t==r.Ji.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof c&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new d(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw RangeError("Invalid input for TextSelection.fromJSON");return new c(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(e,t,n){let r=e.pos-t.pos;if((!n||r)&&(n=r>=0?1:-1),!t.parent.inlineContent){let e=l.findFrom(t,n,!0)||l.findFrom(t,-n,!0);if(!e)return l.near(t,n);t=e.$head}return e.parent.inlineContent||(0==r?e=t:(e=(l.findFrom(e,-n,!0)||l.findFrom(e,n,!0)).$anchor).pos<t.pos!=r<0&&(e=t)),new c(e,t)}}l.jsonID("text",c);class d{constructor(e,t){this.anchor=e,this.head=t}map(e){return new d(e.map(this.anchor),e.map(this.head))}resolve(e){return c.between(e.resolve(this.anchor),e.resolve(this.head))}}class f extends l{constructor(e){let t=e.nodeAfter;super(e,e.node(0).resolve(e.pos+t.nodeSize)),this.node=t}map(e,t){let{deleted:n,pos:r}=t.mapResult(this.anchor),i=e.resolve(r);return n?l.near(i):new f(i)}content(){return new r.Ji(r.FK.from(this.node),0,0)}eq(e){return e instanceof f&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new h(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw RangeError("Invalid input for NodeSelection.fromJSON");return new f(e.resolve(t.anchor))}static create(e,t){return new f(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}f.prototype.visible=!1,l.jsonID("node",f);class h{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:n}=e.mapResult(this.anchor);return t?new d(n,n):new h(n)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&f.isSelectable(n)?new f(t):l.near(t)}}class p extends l{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=r.Ji.empty){if(t==r.Ji.empty){e.delete(0,e.doc.content.size);let t=l.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new p(e)}map(e){return new p(e)}eq(e){return e instanceof p}getBookmark(){return m}}l.jsonID("all",p);let m={map(){return this},resolve:e=>new p(e)};function g(e,t,n,r,i,o=!1){if(t.inlineContent)return c.create(e,n);for(let l=r-(i>0?0:1);i>0?l<t.childCount:l>=0;l+=i){let r=t.child(l);if(r.isAtom){if(!o&&f.isSelectable(r))return f.create(e,n-(i<0?r.nodeSize:0))}else{let t=g(e,r,n+i,i<0?r.childCount:0,i,o);if(t)return t}n+=r.nodeSize*i}return null}function y(e,t,n){let r,o=e.steps.length-1;if(o<t)return;let a=e.steps[o];(a instanceof i.Ln||a instanceof i.Wg)&&(e.mapping.maps[o].forEach((e,t,n,i)=>{null==r&&(r=i)}),e.setSelection(l.near(e.doc.resolve(r),n)))}class v extends i.dL{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(1|this.updated)&-3,this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=2,this}ensureMarks(e){return r.CU.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(e,t){super.addStep(e,t),this.updated=-3&this.updated,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||r.CU.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n){let r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(null==n&&(n=t),n=null==n?t:n,!e)return this.deleteRange(t,n);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=n==t?e.marks():e.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,i)),this.selection.empty||this.setSelection(l.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function b(e,t){return t&&e?e.bind(t):e}
4class w{constructor(e,t,n){this.name=e,this.init=b(t.init,n),this.apply=b(t.apply,n)}}let x=[new w("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new w("selection",{init:(e,t)=>e.selection||l.atStart(t.doc),apply:e=>e.selection}),new w("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,n,r)=>r.selection.$cursor?e.storedMarks:null}),new w("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t})];class k{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=x.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new w(e.key,e.spec.state,e))})}}class C{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=t){let t=this.config.plugins[n];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],n=this.applyInner(e),r=null;for(;;){let i=!1;for(let o=0;o<this.config.plugins.length;o++){let l=this.config.plugins[o];if(l.spec.appendTransaction){let a=r?r[o].n:0,s=r?r[o].state:this,u=a<t.length&&l.spec.appendTransaction.call(l,a?t.slice(a):t,s,n);if(u&&n.filterTransaction(u,o)){if(u.setMeta("appendedTransaction",e),!r){r=[];for(let e=0;e<this.config.plugins.length;e++)r.push(e<o?{state:n,n:t.length}:{state:this,n:0})}t.push(u),n=n.applyInner(u),i=!0}r&&(r[o]={state:n,n:t.length})}}if(!i)return{state:n,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw RangeError("Applying a mismatched transaction");let t=new C(this.config),n=this.config.fields;for(let r=0;r<n.length;r++){let i=n[r];t[i.name]=i.apply(e,this[i.name],this,t)}return t}get tr(){return new v(this)}static create(e){let t=new k(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new C(t);for(let r=0;r<t.fields.length;r++)n[t.fields[r].name]=t.fields[r].init(e,n);return n}reconfigure(e){let t=new k(this.schema,e.plugins),n=t.fields,r=new C(t);for(let t=0;t<n.length;t++){let i=n[t].name;r[i]=this.hasOwnProperty(i)?this[i]:n[t].init(e,r)}return r}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&"object"==typeof e)for(let n in e){if("doc"==n||"selection"==n)throw RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],i=r.spec.state;i&&i.toJSON&&(t[n]=i.toJSON.call(r,this[r.key]))}return t}static fromJSON(e,t,n){if(!t)throw RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw RangeError("Required config field 'schema' missing");let i=new k(e.schema,e.plugins),o=new C(i);return i.fields.forEach(i=>{if("doc"==i.name)o.doc=r.bP.fromJSON(e.schema,t.doc);else if("selection"==i.name)o.selection=l.fromJSON(o.doc,t.selection);else if("storedMarks"==i.name)t.storedMarks&&(o.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let r in n){let l=n[r],a=l.spec.state;if(l.key==i.name&&a&&a.fromJSON&&Object.prototype.hasOwnProperty.call(t,r)){o[i.name]=a.fromJSON.call(l,e,t[r],o);return}}o[i.name]=i.init(e,o)}}),o}}class S{constructor(e){this.spec=e,this.props={},e.props&&function e(t,n,r){for(let i in t){let o=t[i];o instanceof Function?o=o.bind(n):"handleDOMEvents"==i&&(o=e(o,n,{})),r[i]=o}return r}(e.props,this,this.props),this.key=e.key?e.key.key:M("plugin")}getState(e){return e[this.key]}}let E=Object.create(null);function M(e){return e in E?e+"$"+ ++E[e]:(E[e]=0,e+"$")}class T{constructor(e="key"){this.key=M(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}},4083:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=n(38848),i=r.useLayoutEffect,o=r.useEffect;function l(e){let{headManager:t,reduceComponentsToState:n}=e;function l(){if(t&&t.mountedInstances){let i=r.Children.toArray(Array.from(t.mountedInstances).filter(
4Boolean));t.updateHead(n(i,e))}}return i(()=>{var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),()=>{var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children)}}),i(()=>(t&&(t._pendingUpdate=l),()=>{t&&(t._pendingUpdate=l)})),o(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},4510:(e,t)=>{"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:o,objectFit:l}=e,a=r?40*r:t,s=i?40*i:n,u=a&&s?"viewBox='0 0 "+a+" "+s+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===l?"xMidYMid":"cover"===l?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},4529:(e,t,n)=>{"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{mK:()=>r}),"undefined"!=typeof window&&window.document&&window.document.createElement},5461:(e,t,n)=>{"use strict";n.d(t,{hO:()=>s,sG:()=>a});var r=n(38848),i=n(91505),o=n(31054),l=n(38476),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,o.TL)(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:i,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(i?n:t,{...o,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function s(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},5875:(e,t,n)=>{"use strict";n.d(t,{K:()=>p,w:()=>h});for(var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},o="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),l="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),a=0;a<10;a++)r[48+a]=r[96+a]=String(a);for(var a=1;a<=24;a++)r[a+111]="F"+a;for(var a=65;a<=90;a++)r[a]=String.fromCharCode(a+32),i[a]=String.fromCharCode(a);for(var s in r)i.hasOwnProperty(s)||(i[s]=r[s]);var u=n(4033);let c="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),d="undefined"!=typeof navigator&&/Win/.test(navigator.platform);function f(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function h(e){return new u.k_({props:{handleKeyDown:p(e)}})}function p(e){let t=function(e){let t=Object.create(null);for(let n in e)t[function(e){let t,n,r,i,o=e.split(/-(?!$)/),l=o[o.length-1];"Space"==l&&(l=" ");for(let e=0;e<o.length-1;e++){let l=o[e];if(/^(cmd|meta|m)$/i.test(l))i=!0;else if(/^a(lt)?$/i.test(l))t=!0;else if(/^(c|ctrl|control)$/i.test(l))n=!0;else if(/^s(hift)?$/i.test(l))r=!0;else if(/^mod$/i.test(l))c?i=!0:n=!0;else throw Error("Unrecognized modifier name: "+l)}return t&&(l="Alt-"+l),n&&(l="Ctrl-"+l),i&&(l="Meta-"+l),r&&(l="Shift-"+l),l}(n)]=e[n];return t}(e);return function(e,n){var a;let s=("Esc"==(a=!(o&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||l&&n.shiftKey&&n.key&&1==n.key.length||"Unidentified"==n.key)&&n.key||(n.shiftKey?i:r)[n.keyCode]||n.key||"Unidentified")&&(a="Escape"),"Del"==a&&(a="Delete"),"Left"==a&&(a="ArrowLeft"),"Up"==a&&(a="ArrowUp"),"Right"==a&&(a="ArrowRight"),"Down"==a&&(a="ArrowDown"),a),u,c=t[f(s,n)];if(c&&c(e.state,e.dispatch,e))return!0;
4if(1==s.length&&" "!=s){if(n.shiftKey){let r=t[f(s,n,!1)];if(r&&r(e.state,e.dispatch,e))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(d&&n.ctrlKey&&n.altKey)&&(u=r[n.keyCode])&&u!=s){let r=t[f(u,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1}}},6026:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(8760),i=n(7964),o=n(4033),l=n(91759);function a(e){var t;let{char:n,allowSpaces:i,allowToIncludeChar:o,allowedPrefixes:l,startOfLine:a,$position:s}=e,u=i&&!o,c=(0,r.GG)(n),d=RegExp(`\\s${c}$`),f=a?"^":"",h=o?"":c,p=u?RegExp(`${f}${c}.*?(?=\\s${h}|$)`,"gm"):RegExp(`${f}(?:^)?${c}[^\\s${h}]*`,"gm"),m=(null==(t=s.nodeBefore)?void 0:t.isText)&&s.nodeBefore.text;if(!m)return null;let g=s.pos-m.length,y=Array.from(m.matchAll(p)).pop();if(!y||void 0===y.input||void 0===y.index)return null;let v=y.input.slice(Math.max(0,y.index-1),y.index),b=RegExp(`^[${null==l?void 0:l.join("")}\0]?$`).test(v);if(null!==l&&!b)return null;let w=g+y.index,x=w+y[0].length;return(u&&d.test(m.slice(x-1,x+1))&&(y[0]+=" ",x+=1),w<s.pos&&x>=s.pos)?{range:{from:w,to:x},query:y[0].slice(n.length),text:y[0]}:null}var s=new o.hs("suggestion");function u({pluginKey:e=s,editor:t,char:n="@",allowSpaces:r=!1,allowToIncludeChar:i=!1,allowedPrefixes:u=[" "],startOfLine:c=!1,decorationTag:d="span",decorationClass:f="suggestion",decorationContent:h="",decorationEmptyClass:p="is-empty",command:m=()=>null,items:g=()=>[],render:y=()=>({}),allow:v=()=>!0,findSuggestionMatch:b=a}){let w,x=null==y?void 0:y(),k=new o.k_({key:e,view(){return{update:async(e,n)=>{var r,i,o,l,a,s,u;let c=null==(r=this.key)?void 0:r.getState(n),d=null==(i=this.key)?void 0:i.getState(e.state),f=c.active&&d.active&&c.range.from!==d.range.from,h=!c.active&&d.active,p=c.active&&!d.active,y=!h&&!p&&c.query!==d.query,v=h||f&&y,b=y||f,k=p||f&&y;if(!v&&!b&&!k)return;let C=k&&!v?c:d,S=e.dom.querySelector(`[data-decoration-id="${C.decorationId}"]`);w={editor:t,range:C.range,query:C.query,text:C.text,items:[],command:e=>m({editor:t,range:C.range,props:e}),decorationNode:S,clientRect:S?()=>{var n;let{decorationId:r}=null==(n=this.key)?void 0:n.getState(t.state),i=e.dom.querySelector(`[data-decoration-id="${r}"]`);return(null==i?void 0:i.getBoundingClientRect())||null}:null},v&&(null==(o=null==x?void 0:x.onBeforeStart)||o.call(x,w)),b&&(null==(l=null==x?void 0:x.onBeforeUpdate)||l.call(x,w)),(b||v)&&(w.items=await g({editor:t,query:C.query})),k&&(null==(a=null==x?void 0:x.onExit)||a.call(x,w)),b&&(null==(s=null==x?void 0:x.onUpdate)||s.call(x,w)),v&&(null==(u=null==x?void 0:x.onStart)||u.call(x,w))},destroy:()=>{var e;w&&(null==(e=null==x?void 0:x.onExit)||e.call(x,w))}}},state:{init:()=>({active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}),apply(e,o,l,a){let{isEditable:s}=t,{composing:d}=t.view,{selection:f}=e,{empty:h,from:p}=f,m={...o};if(m.composing=d,s&&(h||t.view.composing)){(p<o.range.from||p>o.range.to)&&!d&&!o.composing&&(m.active=!1);let e=b({char:n,allowSpaces:r,allowToIncludeChar:i,allowedPrefixes:u,startOfLine:c,$position:f.$from}),l=`id_${Math.floor(0xffffffff*Math.random())}`;e&&v({editor:t,state:a,range:e.range,isActive:o.active})?(m.active=!0,m.decorationId=o.decorationId?o.decorationId:l,m.range=e.range,m.query=e.query,m.text=e.text):m.active=!1}else m.active=!1;return m.active||(m.decorationId=null,m.range={from:0,to:0},m.query=null,m.text=null),m}},props:{handleKeyDown(e,t){var n;let{active:r,range:i}=k.getState(e.state);return!!r&&((null==(n=null==x?void 0:x.onKeyDown)?void 0:n.call(x,{view:e,event:t,range:i}))||!1)},decorations(e){let{active:t,range:n,decorationId:r,query:i}=k.getState(e);if(!t)return null;let o=!(null==i?void 0:i.length),a=[f];return o&&a.push(p),l.zF.create(e.doc,[l.NZ.inline(n.from,n.to,{nodeName:d,class:a.join(" "),"data-decoration-id":r,"data-decoration-content":h})])}}});return k}function c(e){return(e.options.suggestions.length?e.options.suggestions:[e.options.suggestion]).map(t=>(function({editor:e,overrideSuggestionOptions:t,extensionName:n,char:r="@"}){return{editor:e,char:r,pluginKey:new o.hs,command:({editor:e,range:t,props:i})=>{var o,l,a;let s=e.view.state.selection.$to.nodeAfter;(null==(o=null==s?void 0:s.text)?void 0:o.startsWith(" "))&&(t.to+=1),e.chain().focus().insertContentAt(t,[{type:n,attrs:{...i,mentionSuggestionChar:r}},{type:"text",text:" "}]).run(),null==(a=null==(l=e.view.dom.ownerDocument.defaultView)?void 0:l.getSelection())||a.collapseToEnd()},allow:({state:e,range:t})=>
4{let r=e.doc.resolve(t.from),i=e.schema.nodes[n];return!!r.parent.type.contentMatch.matchType(i)},...t}})({editor:e.editor,overrideSuggestionOptions:t,extensionName:e.name,char:t.char}))}function d(e,t){let n=c(e),r=n.find(e=>e.char===t);return r||(n.length?n[0]:null)}var f=r.bP.create({name:"mention",priority:101,addOptions:()=>({HTMLAttributes:{},renderText({node:e,suggestion:t}){var n,r;return`${null!=(n=null==t?void 0:t.char)?n:"@"}${null!=(r=e.attrs.label)?r:e.attrs.id}`},deleteTriggerWithBackspace:!1,renderHTML({options:e,node:t,suggestion:n}){var i,o;return["span",(0,r.KV)(this.HTMLAttributes,e.HTMLAttributes),`${null!=(i=null==n?void 0:n.char)?i:"@"}${null!=(o=t.attrs.label)?o:t.attrs.id}`]},suggestions:[],suggestion:{}}),group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes:()=>({id:{default:null,parseHTML:e=>e.getAttribute("data-id"),renderHTML:e=>e.id?{"data-id":e.id}:{}},label:{default:null,parseHTML:e=>e.getAttribute("data-label"),renderHTML:e=>e.label?{"data-label":e.label}:{}},mentionSuggestionChar:{default:"@",parseHTML:e=>e.getAttribute("data-mention-suggestion-char"),renderHTML:e=>({"data-mention-suggestion-char":e.mentionSuggestionChar})}}),parseHTML(){return[{tag:`span[data-type="${this.name}"]`}]},renderHTML({node:e,HTMLAttributes:t}){let n=d(this,e.attrs.mentionSuggestionChar);if(void 0!==this.options.renderLabel)return console.warn("renderLabel is deprecated use renderText and renderHTML instead"),["span",(0,r.KV)({"data-type":this.name},this.options.HTMLAttributes,t),this.options.renderLabel({options:this.options,node:e,suggestion:n})];let i={...this.options};i.HTMLAttributes=(0,r.KV)({"data-type":this.name},this.options.HTMLAttributes,t);let o=this.options.renderHTML({options:i,node:e,suggestion:n});return"string"==typeof o?["span",(0,r.KV)({"data-type":this.name},this.options.HTMLAttributes,t),o]:o},...(0,r.ur)({nodeName:"mention",name:"@",selfClosing:!0,allowedAttributes:["id","label",{name:"mentionSuggestionChar",skipIfDefault:"@"}],parseAttributes:e=>{let t={},n=/(\w+)=(?:"([^"]*)"|'([^']*)')/g,r=n.exec(e);for(;null!==r;){let[,i,o,l]=r,a=null!=o?o:l;t["char"===i?"mentionSuggestionChar":i]=a,r=n.exec(e)}return t},serializeAttributes:e=>Object.entries(e).filter(([,e])=>null!=e).map(([e,t])=>`${"mentionSuggestionChar"===e?"char":e}="${t}"`).join(" ")}),renderText({node:e}){let t={options:this.options,node:e,suggestion:d(this,e.attrs.mentionSuggestionChar)};return void 0!==this.options.renderLabel?(console.warn("renderLabel is deprecated use renderText and renderHTML instead"),this.options.renderLabel(t)):this.options.renderText(t)},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command(({tr:e,state:t})=>{let n=!1,{selection:r}=t,{empty:o,anchor:l}=r;if(!o)return!1;let a=new i.bP,s=0;return t.doc.nodesBetween(l-1,l,(e,t)=>{if(e.type.name===this.name)return n=!0,a=e,s=t,!1}),n&&e.insertText(this.options.deleteTriggerWithBackspace?"":a.attrs.mentionSuggestionChar,s,s+a.nodeSize),n})}},addProseMirrorPlugins(){return c(this).map(u)}})},6126:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return m},defaultHead:function(){return d}});let r=n(71685),i=n(5142),o=n(38476),l=i._(n(38848)),a=r._(n(4083)),s=n(35938),u=n(14456),c=n(34150);function d(e){void 0===e&&(e=!1);let t=[(0,o.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,o.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}n(93124);let h=["name","httpEquiv","charSet","itemProp"];function p(e,t){let{inAmpMode:n}=t;return e.reduce(f,[]).reverse().concat(d(n).reverse()).filter(function(){let e=new Set,t=new Set,n=new Set,r={};return i=>{let o=!0,l=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){l=!0;let t=i.key.slice(i.key.indexOf("$")+1);e.has(t)?o=!1:e.add(t)}switch(i.type){case"title":case"base":t.has(i.type)?o=!1:t.add(i.type);break;case"meta":for(let e=0,t=h.length;e<t;e++){let t=h[e];if(i.props.hasOwnProperty(t))if("charSet"===t)n.has(t)?o=!1:n.add(t);else{let e=i.props[t],n=r[t]||new Set;("name"!==t||!l)&&n.has(e)?o=!1:(n.add(e),r[t]=n)}}}return o}}()).reverse().map((e,t)=>{let n=e.key||t;return l.default.cloneElement(e,{key:n})})}let m=function(e){let{children:t}=e,n=(0,l.useContext)(s.AmpStateContext),r=(0,l.useContext)(u.HeadManagerContext);return(0,o.jsx)(a.default,{reduceComponentsToState:p,headManager:r,inAmpMode:(0,c.isInAmpMode)(n),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
4dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7964:(e,t,n)=>{"use strict";function r(e){this.content=e}n.d(t,{S4:()=>H,ZF:()=>Y,FK:()=>i,CU:()=>s,sX:()=>j,bP:()=>C,u$:()=>x,vI:()=>u,Sj:()=>F,Ji:()=>c}),r.prototype={constructor:r,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return -1},get:function(e){var t=this.find(e);return -1==t?void 0:this.content[t+1]},update:function(e,t,n){var i=n&&n!=e?this.remove(n):this,o=i.find(e),l=i.content.slice();return -1==o?l.push(n||e,t):(l[o+1]=t,n&&(l[o]=n)),new r(l)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new r(n)},addToStart:function(e,t){return new r([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new r(n)},addBefore:function(e,t,n){var i=this.remove(t),o=i.content.slice(),l=i.find(e);return o.splice(-1==l?o.length:l,0,t,n),new r(o)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=r.from(e)).size?new r(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=r.from(e)).size?new r(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=r.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},r.from=function(e){if(e instanceof r)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new r(t)};class i{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let o=0,l=0;l<t;o++){let a=this.content[o],s=l+a.nodeSize;if(s>e&&!1!==n(a,r+l,i||null,o)&&a.content.size){let i=l+1;a.nodesBetween(Math.max(0,e-i),Math.min(a.content.size,t-i),n,r+i)}l=s}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i="",o=!0;return this.nodesBetween(e,t,(l,a)=>{let s=l.isText?l.text.slice(Math.max(e,a)-a,t-a):l.isLeaf?r?"function"==typeof r?r(l):r:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&s||l.isTextblock)&&n&&(o?o=!1:i+=n),i+=s},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,n=e.firstChild,r=this.content.slice(),o=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),o=1);o<e.content.length;o++)r.push(e.content[o]);return new i(r,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let n=[],r=0;if(t>e)for(let i=0,o=0;o<t;i++){let l=this.content[i],a=o+l.nodeSize;a>e&&((o<e||a>t)&&(l=l.isText?l.cut(Math.max(0,e-o),Math.min(l.text.length,t-o)):l.cut(Math.max(0,e-o-1),Math.min(l.content.size,t-o-1))),n.push(l),r+=l.nodeSize),o=a}return new i(n,r)}cutByIndex(e,t){return e==t?i.empty:0==e&&t==this.content.length?this:new i(this.content.slice(e,t))}replaceChild(e,t){let n=this.content[e];if(n==t)return this;let r=this.content.slice(),o=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new i(r,o)}addToStart(e){return new i([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new i(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return function e(t,n,r){for(let i=0;;i++){if(i==t.childCount||i==n.childCount)return t.childCount==n.childCount?null:r;let o=t.child(i),l=n.child(i);if(o==l){r+=o.nodeSize;continue}if(!o.sameMarkup(l))return r;if(o.isText&&o.text!=l.text){for(let e=0;o.text[e]==l.text[e];e++)r++;return r}if(o.content.size||l.content.size){let t=e(o.content,l.content,r+1);if(null!=t)return t}r+=o.nodeSize}}(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return function e(t,n,r,i){for(let o=t.childCount,l=n.childCount;;){if(0==o||0==l)return o==l?null:{a:r,b:i};let a=t.child(--o),s=n.child(--l),u=a.nodeSize;if(a==s){r-=u,i-=u;continue}if(!a.sameMarkup(s))return{a:r,b:i};if(a.isText&&a.text!=s.text){let e=0,t=Math.min(a.text.length,s.text.length);for(;e<t&&a.text[a.text.length-e-1]==s.text[s.text.length-e-1];)e++,r--,i--;return{a:r,b:i}}if(a.content.size||s.content.size){let t=e(a.content,s.content,r-1,i-1);if(t)return t}r-=u,i-=u}}(this,e,t,n)}findIndex(e){if(0==e)return l(0,e);if(e==this.size)return l(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=n+this.child(t).nodeSize;if(r>=e){if(r==e)return l(t+1,r);return l(t,n)}n=r}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return i.empty;if(!Array.isArray(t))throw RangeError("Invalid input for Fragment.fromJSON");return new i(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return i.empty;let t,n=0;for(let r=0;r<e.length;r++){let i=e[r];n+=i.nodeSize,r&&i.isText&&e[r-1].sameMarkup(i)?(t||(t=e.slice(0,r)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new i(t||e,n)}static from(e){if(!e)return i.empty;if(e instanceof i)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new i([e],e.nodeSize);throw RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}i.empty=new i([],0);let o={index:0,offset:0};function l(e,t){return o.index=e,o.offset=t,o}function a(e,t){if(e===t)return!0;
vendor: 6,820 bytes, line 4
4if(!(e&&"object"==typeof e)||!(t&&"object"==typeof t))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!a(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!a(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}class s{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,r));else{if(i.type.excludes(this.type))return e;!n&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(i)}}return t||(t=e.slice()),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&a(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError("Invalid input for Mark.fromJSON");let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return s.none;if(e instanceof s)return[e];let t=e.slice();return t.sort((e,t)=>e.type.rank-t.type.rank),t}}s.none=[];class u extends Error{}class c{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let n=function e(t,n,r,i){let{index:o,offset:l}=t.findIndex(n),a=t.maybeChild(o);if(l==n||a.isText)return i&&!i.canReplace(o,o,r)?null:t.cut(0,n).append(r).append(t.cut(n));let s=e(a.content,n-l-1,r);return s&&t.replaceChild(o,a.copy(s))}(this.content,e+this.openStart,t);return n&&new c(n,this.openStart,this.openEnd)}removeBetween(e,t){return new c(function e(t,n,r){let{index:i,offset:o}=t.findIndex(n),l=t.maybeChild(i),{index:a,offset:s}=t.findIndex(r);if(o==n||l.isText){if(s!=r&&!t.child(a).isText)throw RangeError("Removing non-flat range");return t.cut(0,n).append(t.cut(r))}if(i!=a)throw RangeError("Removing non-flat range");return t.replaceChild(i,l.copy(e(l.content,n-o-1,r-o-1)))}(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return c.empty;let n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw RangeError("Invalid input for Slice.fromJSON");return new c(i.fromJSON(e,t.content),n,r)}static maxOpen(e,t=!0){let n=0,r=0;for(let r=e.firstChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.firstChild)n++;for(let n=e.lastChild;n&&!n.isLeaf&&(t||!n.type.spec.isolating);n=n.lastChild)r++;return new c(e,n,r)}}function d(e,t){if(!t.type.compatibleContent(e.type))throw new u("Cannot join "+t.type.name+" onto "+e.type.name)}function f(e,t,n){let r=e.node(n);return d(r,t.node(n)),r}function h(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function p(e,t,n,r){let i=(t||e).node(n),o=0,l=t?t.index(n):i.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(h(e.nodeAfter,r),o++));for(let e=o;e<l;e++)h(i.child(e),r);t&&t.depth==n&&t.textOffset&&h(t.nodeBefore,r)}function m(e,t){return e.type.checkContent(t),e.copy(t)}function g(e,t,n){let r=[];return p(null,e,n,r),e.depth>n&&h(m(f(e,t,n+1),g(e,t,n+1)),r),p(t,null,n,r),new i(r)}c.empty=new c(i.empty,0,0);class y{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return s.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var o=0;o<i.length;o++)!1!==i[o].type.spec.inclusive||r&&i[o].isInSet(r.marks)||(i=i[o--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)!1!==n[i].type.spec.inclusive||r&&n[i].isInSet(r.marks)||(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new x(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw RangeError("Position "+t+" out of range");let n=[],r=0,i=t;for(let t=e;;){let{index:e,offset:o}=t.content.findIndex(i),l=i-o;if(n.push(t,e,r+o),!l||(t=t.child(e)).isText)break;
4i=l-1,r+=o+1}return new y(t,n,i)}static resolveCached(e,t){let n=w.get(e);if(n)for(let e=0;e<n.elts.length;e++){let r=n.elts[e];if(r.pos==t)return r}else w.set(e,n=new v);let r=n.elts[n.i]=y.resolve(e,t);return n.i=(n.i+1)%b,r}}class v{constructor(){this.elts=[],this.i=0}}let b=12,w=new WeakMap;class x{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}let k=Object.create(null);class C{constructor(e,t,n,r=s.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||i.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&a(this.attrs,t||e.defaultAttrs||k)&&s.sameSet(this.marks,n||s.none)}copy(e=null){return e==this.content?this:new C(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new C(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return c.empty;let r=this.resolve(e),i=this.resolve(t),o=n?0:r.sharedDepth(t),l=r.start(o);return new c(r.node(o).content.cut(r.pos-l,i.pos-l),r.depth-o,i.depth-o)}replace(e,t,n){var r=this.resolve(e),o=this.resolve(t);if(n.openStart>r.depth)throw new u("Inserted content deeper than insertion position");if(r.depth-n.openStart!=o.depth-n.openEnd)throw new u("Inconsistent open depths");return function e(t,n,r,o){let l=t.index(o),a=t.node(o);if(l==n.index(o)&&o<t.depth-r.openStart){let i=e(t,n,r,o+1);return a.copy(a.content.replaceChild(l,i))}if(!r.content.size)return m(a,g(t,n,o));if(r.openStart||r.openEnd||t.depth!=o||n.depth!=o){let{start:e,end:l}=function(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(i.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}(r,t);return m(a,function e(t,n,r,o,l){let a=t.depth>l&&f(t,n,l+1),s=o.depth>l&&f(r,o,l+1),u=[];return p(null,t,l,u),a&&s&&n.index(l)==r.index(l)?(d(a,s),h(m(a,e(t,n,r,o,l+1)),u)):(a&&h(m(a,g(t,n,l+1)),u),p(n,r,l,u),s&&h(m(s,g(r,o,l+1)),u)),p(o,null,l,u),new i(u)}(t,e,l,n,o))}{let e=t.parent,i=e.content;return m(e,i.cut(0,t.parentOffset).append(r.content).append(i.cut(n.parentOffset)))}}(r,o,n,0)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(!(t=t.maybeChild(n)))return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return y.resolveCached(this,e)}resolveNoCache(e){return y.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}
4toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),E(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,n=i.empty,r=0,o=n.childCount){let l=this.contentMatchAt(e).matchFragment(n,r,o),a=l&&l.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(let e=r;e<o;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),o=i&&i.matchFragment(this.content,t);return!!o&&o.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=s.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!s.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){let n;if(!t)throw RangeError("Invalid input for Node.fromJSON");if(t.marks){if(!Array.isArray(t.marks))throw RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw RangeError("Invalid text node in JSON");return e.text(t.text,n)}let r=i.fromJSON(e,t.content),o=e.nodeType(t.type).create(t.attrs,r,n);return o.type.checkAttrs(o.attrs),o}}C.prototype.text=void 0;class S extends C{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):E(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new S(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new S(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function E(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class M{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){var n;let r,i=new T(e,t);if(null==i.next)return M.empty;let o=function e(t){let n=[];do n.push(function(t){let n=[];do n.push(function(t){let n=function(t){if(t.eat("(")){let n=e(t);return t.eat(")")||t.err("Missing closing paren"),n}if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=(function(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return 0==i.length&&e.err("No node type or group '"+t+"' found"),i})(t,t.next).map(e=>(null==t.inline?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e}));return t.pos++,1==e.length?e[0]:{type:"choice",exprs:e}}}(t);for(;;)if(t.eat("+"))n={type:"plus",expr:n};else if(t.eat("*"))n={type:"star",expr:n};else if(t.eat("?"))n={type:"opt",expr:n};else if(t.eat("{"))n=function(e,t){let n=R(e),r=n;return e.eat(",")&&(r="}"!=e.next?R(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}(t,n);else break;return n}(t));while(t.next&&")"!=t.next&&"|"!=t.next);return 1==n.length?n[0]:{type:"seq",exprs:n}}(t));while(t.eat("|"));return 1==n.length?n[0]:{type:"choice",exprs:n}}(i);i.next&&i.err("Unexpected trailing text");let l=(n=function(e){let t=[[]];return i(function e(t,o){if("choice"==t.type)return t.exprs.reduce((t,n)=>t.concat(e(n,o)),[]);if("seq"==t.type)for(let r=0;;r++){let l=e(t.exprs[r],o);if(r==t.exprs.length-1)return l;i(l,o=n())}else if("star"==t.type){let l=n();return r(o,l),i(e(t.expr,l),l),[r(l)]}else if("plus"==t.type){let l=n();return i(e(t.expr,o),l),i(e(t.expr,l),l),[r(l)]}else if("opt"==t.type)return[r(o)].concat(e(t.expr,o));else if("range"==t.type){let l=o;for(let r=0;r<t.min;r++){let r=n();i(e(t.expr,l),r),l=r}if(-1==t.max)i(e(t.expr,l),l);else for(let o=t.min;o<t.max;o++){let o=n();r(l,o),i(e(t.expr,l),o),l=o}return[r(l)]}else if("name"==t.type)return[r(o,void 0,t.value)];else throw Error("Unknown expr type")}(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}
vendor: 5,547 bytes, line 4
4function i(e,t){e.forEach(e=>e.to=t)}}(o),r=Object.create(null),function e(t){let i=[];t.forEach(e=>{n[e].forEach(({term:e,to:t})=>{let r;if(e){for(let t=0;t<i.length;t++)i[t][0]==e&&(r=i[t][1]);O(n,t).forEach(t=>{r||i.push([e,r=[]]),-1==r.indexOf(t)&&r.push(t)})}})});let o=r[t.join(",")]=new M(t.indexOf(n.length-1)>-1);for(let t=0;t<i.length;t++){let n=i[t][1].sort(A);o.next.push({type:i[t][0],next:r[n.join(",")]||e(n)})}return o}(O(n,0)));return function(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],i=!e.validEnd,o=[];for(let t=0;t<e.next.length;t++){let{type:n,next:l}=e.next[t];o.push(n.name),i&&!(n.isText||n.hasRequiredAttrs())&&(i=!1),-1==r.indexOf(l)&&r.push(l)}i&&t.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(l,i),l}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];return function o(l,a){let s=l.matchFragment(e,n);if(s&&(!t||s.validEnd))return i.from(a.map(e=>e.createAndFill()));for(let e=0;e<l.next.length;e++){let{type:t,next:n}=l.next[e];if(!(t.isText||t.hasRequiredAttrs())&&-1==r.indexOf(n)){r.push(n);let e=o(n,a.concat(t));if(e)return e}}return null}(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:o,next:l}=i.next[e];o.isLeaf||o.hasRequiredAttrs()||o.name in t||r.type&&!l.validEnd||(n.push({match:o.contentMatch,type:o,via:r}),t[o.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];return!function t(n){e.push(n);for(let r=0;r<n.next.length;r++)-1==e.indexOf(n.next[r].next)&&t(n.next[r].next)}(this),e.map((t,n)=>{let r=n+(t.validEnd?"*":" ")+" ";for(let n=0;n<t.next.length;n++)r+=(n?", ":"")+t.next[n].type.name+"->"+e.indexOf(t.next[n].next);return r}).join("\n")}}M.empty=new M(!0);class T{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+" (in content expression '"+this.string+"')")}}function R(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function A(e,t){return t-e}function O(e,t){let n=[];return function t(r){let i=e[r];if(1==i.length&&!i[0].term)return t(i[0].to);n.push(r);for(let e=0;e<i.length;e++){let{term:r,to:o}=i[e];r||-1!=n.indexOf(o)||t(o)}}(t),n.sort(A)}function N(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function P(e,t){let n=Object.create(null);for(let r in e){let i=t&&t[r];if(void 0===i){let t=e[r];if(t.hasDefault)i=t.default;else throw RangeError("No value supplied for attribute "+r)}n[r]=i}return n}function L(e,t,n,r){for(let r in t)if(!(r in e))throw RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let n in e){let r=e[n];r.validate&&r.validate(t[n])}}function I(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new _(e,r,t[r]);return n}class D{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=I(e,n.attrs),this.defaultAttrs=N(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==M.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:P(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error("NodeType.create can't construct text nodes");return new C(this,this.computeAttrs(e),i.from(t),s.setFrom(n))}createChecked(e=null,t,n){return t=i.from(t),this.checkContent(t),new C(this,this.computeAttrs(e),t,s.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),(t=i.from(t)).size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),o=r&&r.fillBefore(i.empty,!0);return o?new C(this,e,t.append(o),s.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);
4if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){L(this.attrs,e,"node",this.name)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){let t;if(null==this.markSet)return e;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:s.none:e}static compile(e,t){let n=Object.create(null);e.forEach((e,r)=>n[e]=new D(e,t,r));let r=t.spec.topNode||"doc";if(!n[r])throw RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw RangeError("Every schema needs a 'text' type");for(let e in n.text.attrs)throw RangeError("The text node type should not have attributes");return n}}class _{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,"default"),this.default=n.default,this.validate="string"==typeof n.validate?function(e,t,n){let r=n.split("|");return n=>{let i=null===n?"null":typeof n;if(0>r.indexOf(i))throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}}(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}}class j{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=I(e,r.attrs),this.excluded=null;let i=N(this.attrs);this.instance=i?new s(this,i):null}create(e=null){return!e&&this.instance?this.instance:new s(this,P(this.attrs,e))}static compile(e,t){let n=Object.create(null),r=0;return e.forEach((e,i)=>n[e]=new j(e,r++,t,i)),n}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){L(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class F{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=r.from(e.nodes),t.marks=r.from(e.marks||{}),this.nodes=D.compile(this.spec.nodes,this),this.marks=j.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+" can not be both a node and a mark");let t=this.nodes[e],r=t.spec.content||"",i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=M.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError("Multiple linebreak nodes defined");if(!t.isInline||!t.isLeaf)throw RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=t}t.markSet="_"==i?null:i?z(this,i.split(" ")):""!=i&&t.inlineContent?null:[]}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=null==n?[t]:""==n?[]:z(this,n.split(" "))}this.nodeFromJSON=e=>C.fromJSON(this,e),this.markFromJSON=e=>s.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if("string"==typeof e)e=this.nodeType(e);else if(e instanceof D){if(e.schema!=this)throw RangeError("Node type from different schema used ("+e.name+")")}else throw RangeError("Invalid node type: "+e);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new S(n,n.defaultAttrs,e,s.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError("Unknown node type: "+e);return t}}function z(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],o=e.marks[i],l=o;if(o)n.push(o);else for(let t in e.marks){let r=e.marks[t];("_"==i||r.spec.group&&r.spec.group.split(" ").indexOf(i)>-1)&&n.push(l=r)}if(!l)throw SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}class H{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];
4t.forEach(e=>{if(null!=e.tag)this.tags.push(e);else if(null!=e.style){let t=/[^=]*/.exec(e.style)[0];0>n.indexOf(t)&&n.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new q(this,t,!1);return n.addAll(e,s.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new q(this,t,!0);return n.addAll(e,s.none,t.from,t.to),c.maxOpen(n.finish())}matchTag(e,t,n){for(let o=n?this.tags.indexOf(n)+1:0;o<this.tags.length;o++){var r,i;let n=this.tags[o];if(r=e,i=n.tag,(r.matches||r.msMatchesSelector||r.webkitMatchesSelector||r.mozMatchesSelector).call(r,i)&&(void 0===n.namespace||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(!1===t)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let r=this.styles[i],o=r.style;if(0==o.indexOf(e)&&(!r.context||n.matchesContext(r.context))&&(!(o.length>e.length)||61==o.charCodeAt(e.length)&&o.slice(e.length+1)==t)){if(r.getAttrs){let e=r.getAttrs(t);if(!1===e)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=null==e.priority?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((null==e.priority?50:e.priority)<n)break}t.splice(r,0,e)}for(let t in e.marks){let r=e.marks[t].spec.parseDOM;r&&r.forEach(e=>{n(e=K(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach(e=>{n(e=K(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new H(e,H.schemaRules(e)))}}let B={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},$={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},U={ol:!0,ul:!0};function V(e,t,n){return null!=t?!!t|2*("full"===t):e&&"pre"==e.whitespace?3:-5&n}class W{constructor(e,t,n,r,i,o){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=o,this.content=[],this.activeMarks=s.none,this.match=i||(4&o?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(i.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,n;return(n=t.findWrapping(e.type))?(this.match=t,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let e=this.content[this.content.length-1],t;e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))&&(e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=e.withText(e.text.slice(0,e.text.length-t[0].length)))}let t=i.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(i.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!B.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class q{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r=t.topNode,i,o=V(null,t.preserveWhitespace,0)|4*!!n;i=r?new W(r.type,r.attrs,s.none,!0,t.topMatch||r.type.contentMatch,o):n?new W(null,null,s.none,!0,null,o):new W(e.schema.topNodeType,null,s.none,!0,null,o),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){3==e.nodeType?this.addTextNode(e,t):1==e.nodeType&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,i=2&r.options?"full":this.localPreserveWS||(1&r.options)>0;if("full"===i||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(i)n="full"!==i?n.replace(/\r?\n|\r/g," "):n.replace(/\r\n?/g,"\n");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],i=e.previousSibling;(!t||i&&"BR"==i.nodeName||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}n&&this.insertNode(this.parser.schema.text(n),t,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,t,n){let r=this.localPreserveWS,i=this.top;("PRE"==e.tagName||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let o=e.nodeName.toLowerCase(),l;U.hasOwnProperty(o)&&this.parser.normalizeLists&&function(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&U.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):"li"==e?n=t:e&&(n=null)}}(e);let a=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(l=this.parser.matchTag(e,this,n));
vendor: 1,316 bytes, line 4
4e:if(a?a.ignore:$.hasOwnProperty(o))this.findInside(e),this.ignoreFallback(e,t);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(e=a.skip);let n,r=this.needsBlock;if(B.hasOwnProperty(o))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),n=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break e}let l=a&&a.skip?t:this.readStyles(e,t);l&&this.addAll(e,l),n&&this.sync(i),this.needsBlock=r}else{let n=this.readStyles(e,t);n&&this.addElementByRule(e,a,n,!1===a.consuming?l:void 0)}this.localPreserveWS=r}leafFallback(e,t){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"),t)}ignoreFallback(e,t){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let n=e.style;if(n&&n.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let r=this.parser.matchedStyles[e],i=n.getPropertyValue(r);if(i)for(let e;;){let n=this.parser.matchStyle(r,i,this,e);if(!n)break;if(n.ignore)return null;if(t=n.clearMark?t.filter(e=>!n.clearMark(e)):t.concat(this.parser.schema.marks[n.mark].create(n.attrs)),!1===n.consuming)e=n;else break}}return t}addElementByRule(e,t,n,r){let i,o;
vendor: 4,107 bytes, line 4
4if(t.node)if((o=this.parser.schema.nodes[t.node]).isLeaf)this.insertNode(o.create(t.attrs),n,"BR"==e.nodeName)||this.leafFallback(e,n);else{let e=this.enter(o,t.attrs||null,n,t.preserveWhitespace);e&&(i=!0,n=e)}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let l=this.top;if(o&&o.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,n,!1));else{let r=e;"string"==typeof t.contentElement?r=e.querySelector(t.contentElement):"function"==typeof t.contentElement?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}i&&this.sync(l)&&this.open--}addAll(e,t,n,r){let i=n||0;for(let o=n?e.childNodes[n]:e.firstChild,l=null==r?null:e.childNodes[r];o!=l;o=o.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(o,t);this.findAtPoint(e,i)}findPlace(e,t,n){let r,i;for(let t=this.open,o=0;t>=0;t--){let l=this.nodes[t],a=l.findWrapping(e);if(a&&(!r||r.length>a.length+o)&&(r=a,i=l,!a.length))break;if(l.solid){if(n)break;o+=2}}if(!r)return null;this.sync(i);for(let e=0;e<r.length;e++)t=this.enterInner(r[e],null,t,!1);return t}insertNode(e,t,n){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let r=this.findPlace(e,t,n);if(r){this.closeExtra();let t=this.top;t.match&&(t.match=t.match.matchType(e.type));let n=s.none;for(let i of r.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):G(i.type,e.type))&&(n=i.addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n,r){let i=this.findPlace(e.create(t),n,!1);return i&&(i=this.enterInner(e,t,n,!0,r)),i}enterInner(e,t,n,r=!1,i){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(e);let l=V(e,i,o.options);4&o.options&&0==o.content.length&&(l|=4);let a=s.none;return n=n.filter(t=>(o.type?!o.type.allowsMarkType(t.type):!G(t.type,e))||(a=t.addToSet(a),!1)),this.nodes.push(new W(e,t,a,r,null,l)),this.open++,n}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=1);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)null==this.find[r].pos&&1==e.nodeType&&e.contains(this.find[r].node)&&t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+ +!r,o=(e,l)=>{for(;e>=0;e--){let a=t[e];if(""==a){if(e==t.length-1||0==e)continue;for(;l>=i;l--)if(o(e-1,l))return!0;return!1}{let e=l>0||0==l&&r?this.nodes[l].type:n&&l>=i?n.node(l-i).type:null;if(!e||e.name!=a&&!e.isInGroup(a))return!1;l--}}return!0};return o(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];
4if(t.isTextblock&&t.defaultAttrs)return t}}}function K(e){let t={};for(let n in e)t[n]=e[n];return t}function G(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let o=[],l=e=>{o.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:i}=e.edge(n);if(r==t||0>o.indexOf(i)&&l(i))return!0}};if(l(i.contentMatch))return!0}}class Y{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||(n=X(t).createDocumentFragment());let r=n,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let n=0,o=0;for(;n<i.length&&o<e.marks.length;){let t=e.marks[o];if(!this.marks[t.type.name]){o++;continue}if(!t.eq(i[n][0])||!1===t.type.spec.spanning)break;n++,o++}for(;n<i.length;)r=i.pop()[1];for(;o<e.marks.length;){let n=e.marks[o++],l=this.serializeMark(n,e.isInline,t);l&&(i.push([n,r]),r.appendChild(l.dom),r=l.contentDOM||l.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,t){let{dom:n,contentDOM:r}=Q(X(t),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&Q(X(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return Q(e,t,n,r)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Y(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=J(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return J(e.marks)}}function J(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function X(e){return e.document||window.document}let Z=new WeakMap;function Q(e,t,n,r){let i,o,l;if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let a=t[0],s;if("string"!=typeof a)throw RangeError("Invalid array passed to renderSpec");if(r&&(void 0===(o=Z.get(r))&&Z.set(r,(l=null,!function e(t){if(t&&"object"==typeof t)if(Array.isArray(t))if("string"==typeof t[0])l||(l=[]),l.push(t);else for(let n=0;n<t.length;n++)e(t[n]);else for(let n in t)e(t[n])}(r),o=l)),s=o)&&s.indexOf(t)>-1)throw RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let u=a.indexOf(" ");u>0&&(n=a.slice(0,u),a=a.slice(u+1));let c=n?e.createElementNS(n,a):e.createElement(a),d=t[1],f=1;if(d&&"object"==typeof d&&null==d.nodeType&&!Array.isArray(d)){for(let e in f=2,d)if(null!=d[e]){let t=e.indexOf(" ");t>0?c.setAttributeNS(e.slice(0,t),e.slice(t+1),d[e]):"style"==e&&c.style?c.style.cssText=d[e]:c.setAttribute(e,d[e])}}for(let o=f;o<t.length;o++){let l=t[o];if(0===l){if(o<t.length-1||o>f)throw RangeError("Content hole must be the only child of its parent node");return{dom:c,contentDOM:c}}{let{dom:t,contentDOM:o}=Q(e,l,n,r);if(c.appendChild(t),o){if(i)throw RangeError("Multiple content holes");i=o}}}return{dom:c,contentDOM:i}}},8781:(e,t,n)=>{"use strict";e.exports=n(86514)},8867:(e,t,n)=>{"use strict";n.d(t,{hv:()=>e2,wj:()=>G,W5:()=>e$,cq:()=>en});var r,i=n(38476),o=n(38848),l=n(9046),a=n(41844),s=n(14955),u=n(74800),c=n(97118),d=n(69906),f=n(10276);function h(e,t,n){let r=(0,f.a)(e,null==n?void 0:n.in),i=r.getFullYear(),o=r.getDate(),l=(0,d.w)((null==n?void 0:n.in)||e,0);l.setFullYear(i,t,15),l.setHours(0,0,0,0);let a=function(e,t){let n=(0,f.a)(e,void 0),r=n.getFullYear(),i=n.getMonth(),o=(0,d.w)(n,0);return o.setFullYear(r,i+1,0),o.setHours(0,0,0,0),o.getDate()}(l);return r.setMonth(t,Math.min(o,a)),r}function p(e,t,n){let r=(0,f.a)(e,null==n?void 0:n.in);return isNaN(+r)?(0,d.w)((null==n?void 0:n.in)||e,NaN):(r.setFullYear(t),r)}var m=n(79087),g=n(42400),y=n(94427),v=n(56539),b=n(55766),w=n(13595),x=n(65518),k=n(89983),C=n(22491);function S(e,t){return+(0,f.a)(e)>+(0,f.a)(t)}var E=n(46742),M=n(88e3),T=n(36433),R=n(30889),A=n(69310),O=n(63763);function N(e,t){var n,r,i,o,l,a,s,u;
4let c=(0,O.q)(),d=null!=(u=null!=(s=null!=(a=null!=(l=null==t?void 0:t.weekStartsOn)?l:null==t||null==(r=t.locale)||null==(n=r.options)?void 0:n.weekStartsOn)?a:c.weekStartsOn)?s:null==(o=c.locale)||null==(i=o.options)?void 0:i.weekStartsOn)?u:0,h=(0,f.a)(e,null==t?void 0:t.in),p=h.getDay();return h.setDate(h.getDate()+((p<d?-7:0)+6-(p-d))),h.setHours(23,59,59,999),h}function P(e,t){return N(e,{...t,weekStartsOn:1})}var L=n(23721),I=n(78922),D=n(46131),_=n(58698),j=n(85986),F=function(){return(F=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function z(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function H(e){return"multiple"===e.mode}function B(e){return"range"===e.mode}function $(e){return"single"===e.mode}"function"==typeof SuppressedError&&SuppressedError;var U={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"},V=Object.freeze({__proto__:null,formatCaption:function(e,t){return(0,l.GP)(e,"LLLL y",t)},formatDay:function(e,t){return(0,l.GP)(e,"d",t)},formatMonthCaption:function(e,t){return(0,l.GP)(e,"LLLL",t)},formatWeekNumber:function(e){return"".concat(e)},formatWeekdayName:function(e,t){return(0,l.GP)(e,"cccccc",t)},formatYearCaption:function(e,t){return(0,l.GP)(e,"yyyy",t)}}),W=Object.freeze({__proto__:null,labelDay:function(e,t,n){return(0,l.GP)(e,"do MMMM (EEEE)",n)},labelMonthDropdown:function(){return"Month: "},labelNext:function(){return"Go to next month"},labelPrevious:function(){return"Go to previous month"},labelWeekNumber:function(e){return"Week n. ".concat(e)},labelWeekday:function(e,t){return(0,l.GP)(e,"cccc",t)},labelYearDropdown:function(){return"Year: "}}),q=(0,o.createContext)(void 0);function K(e){var t,n,r,o,l,c,d,f,h=e.initialProps,p={captionLayout:"buttons",classNames:U,formatters:V,labels:W,locale:j.c,modifiersClassNames:{},modifiers:{},numberOfMonths:1,styles:{},today:new Date,mode:"default"},m=(t=h.fromYear,n=h.toYear,r=h.fromMonth,o=h.toMonth,l=h.fromDate,c=h.toDate,r?l=(0,a.w)(r):t&&(l=new Date(t,0,1)),o?c=(0,s.p)(o):n&&(c=new Date(n,11,31)),{fromDate:l?(0,u.o)(l):void 0,toDate:c?(0,u.o)(c):void 0}),g=m.fromDate,y=m.toDate,v=null!=(d=h.captionLayout)?d:p.captionLayout;"buttons"===v||g&&y||(v="buttons"),($(h)||H(h)||B(h))&&(f=h.onSelect);var b=F(F(F({},p),h),{captionLayout:v,classNames:F(F({},p.classNames),h.classNames),components:F({},h.components),formatters:F(F({},p.formatters),h.formatters),fromDate:g,labels:F(F({},p.labels),h.labels),mode:h.mode||p.mode,modifiers:F(F({},p.modifiers),h.modifiers),modifiersClassNames:F(F({},p.modifiersClassNames),h.modifiersClassNames),onSelect:f,styles:F(F({},p.styles),h.styles),toDate:y});return(0,i.jsx)(q.Provider,{value:b,children:e.children})}function G(){var e=(0,o.useContext)(q);if(!e)throw Error("useDayPicker must be used within a DayPickerProvider.");return e}function Y(e){var t=G(),n=t.locale,r=t.classNames,o=t.styles,l=t.formatters.formatCaption;return(0,i.jsx)("div",{className:r.caption_label,style:o.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:l(e.displayMonth,{locale:n})})}function J(e){return(0,i.jsx)("svg",F({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:(0,i.jsx)("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.7
478175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function X(e){var t,n,r=e.onChange,o=e.value,l=e.children,a=e.caption,s=e.className,u=e.style,c=G(),d=null!=(n=null==(t=c.components)?void 0:t.IconDropdown)?n:J;return(0,i.jsxs)("div",{className:s,style:u,children:[(0,i.jsx)("span",{className:c.classNames.vhidden,children:e["aria-label"]}),(0,i.jsx)("select",{name:e.name,"aria-label":e["aria-label"],className:c.classNames.dropdown,style:c.styles.dropdown,value:o,onChange:r,children:l}),(0,i.jsxs)("div",{className:c.classNames.caption_label,style:c.styles.caption_label,"aria-hidden":"true",children:[a,(0,i.jsx)(d,{className:c.classNames.dropdown_icon,style:c.styles.dropdown_icon})]})]})}function Z(e){var t,n=G(),r=n.fromDate,o=n.toDate,l=n.styles,s=n.locale,u=n.formatters.formatMonthCaption,d=n.classNames,f=n.components,p=n.labels.labelMonthDropdown;if(!r||!o)return(0,i.jsx)(i.Fragment,{});var m=[];if(function(e,t,n){let[r,i]=(0,c.x)(void 0,e,t);return r.getFullYear()===i.getFullYear()}(r,o))for(var g=(0,a.w)(r),y=r.getMonth();y<=o.getMonth();y++)m.push(h(g,y));else for(var g=(0,a.w)(new Date),y=0;y<=11;y++)m.push(h(g,y));var v=null!=(t=null==f?void 0:f.Dropdown)?t:X;return(0,i.jsx)(v,{name:"months","aria-label":p(),className:d.dropdown_month,style:l.dropdown_month,onChange:function(t){var n=Number(t.target.value),r=h((0,a.w)(e.displayMonth),n);e.onChange(r)},value:e.displayMonth.getMonth(),caption:u(e.displayMonth,{locale:s}),children:m.map(function(e){return(0,i.jsx)("option",{value:e.getMonth(),children:u(e,{locale:s})},e.getMonth())})})}function Q(e){var t,n=e.displayMonth,r=G(),o=r.fromDate,l=r.toDate,s=r.locale,u=r.styles,c=r.classNames,d=r.components,f=r.formatters.formatYearCaption,h=r.labels.labelYearDropdown,g=[];if(!o||!l)return(0,i.jsx)(i.Fragment,{});for(var y=o.getFullYear(),v=l.getFullYear(),b=y;b<=v;b++)g.push(p((0,m.D)(new Date),b));var w=null!=(t=null==d?void 0:d.Dropdown)?t:X;return(0,i.jsx)(w,{name:"years","aria-label":h(),className:c.dropdown_year,style:u.dropdown_year,onChange:function(t){var r=p((0,a.w)(n),Number(t.target.value));e.onChange(r)},value:n.getFullYear(),caption:f(n,{locale:s}),children:g.map(function(e){return(0,i.jsx)("option",{value:e.getFullYear(),children:f(e,{locale:s})},e.getFullYear())})})}var ee=(0,o.createContext)(void 0);function et(e){var t,n,r,l,s,u,c,d,f,h,p,m,w,x,k,C,S=G(),E=(k=(r=(n=t=G()).month,l=n.defaultMonth,s=n.today,u=r||l||s||new Date,c=n.toDate,d=n.fromDate,f=n.numberOfMonths,c&&0>(0,g.U)(c,u)&&(u=(0,y.P)(c,-1*((void 0===f?1:f)-1))),d&&0>(0,g.U)(u,d)&&(u=d),h=(0,a.w)(u),p=t.month,w=(m=(0,o.useState)(h))[0],x=[void 0===p?w:p,m[1]])[0],C=x[1],[k,function(e){if(!t.disableNavigation){var n,r=(0,a.w)(e);C(r),null==(n=t.onMonthChange)||n.call(t,r)}}]),M=E[0],T=E[1],R=function(e,t){for(var n=t.reverseMonths,r=t.numberOfMonths,i=(0,a.w)(e),o=(0,a.w)((0,y.P)(i,r)),l=(0,g.U)(o,i),s=[],u=0;u<l;u++){var c=(0,y.P)(i,u);s.push(c)}return n&&(s=s.reverse()),s}(M,S),A=function(e,t){if(!t.disableNavigation){var n=t.toDate,r=t.pagedNavigation,i=t.numberOfMonths,o=void 0===i?1:i,l=(0,a.w)(e);if(!n||!((0,g.U)(n,e)<o))return(0,y.P)(l,r?o:1)}}(M,S),O=function(e,t){if(!t.disableNavigation){var n=t.fromDate,r=t.pagedNavigation,i=t.numberOfMonths,o=(0,a.w)(e);if(!n||!(0>=(0,g.U)(o,n)))return(0,y.P)(o,-(r?void 0===i?1:i:1))}}(M,S),N=function(e){return R.some(function(t){return(0,v.t)(e,t)})};return(0,i.jsx)(ee.Provider,{value:{currentMonth:M,displayMonths:R,goToMonth:T,goToDate:function(e,t){N(e)||(t&&(0,b.Y)(e,t)?T((0,y.P)(e,1+-1*S.numberOfMonths)):T(e))},previousMonth:O,nextMonth:A,isDateDisplayed:N},children:e.children})}function en(){var e=(0,o.useContext)(ee);if(!e)throw Error("useNavigation must be used within a NavigationProvider");return e}function er(e){var t,n=G(),r=n.classNames,o=n.styles,l=n.components,a=en().goToMonth,s=function(t){a((0,y.P)(t,e.displayIndex?-e.dis
4playIndex:0))},u=null!=(t=null==l?void 0:l.CaptionLabel)?t:Y,c=(0,i.jsx)(u,{id:e.id,displayMonth:e.displayMonth});return(0,i.jsxs)("div",{className:r.caption_dropdowns,style:o.caption_dropdowns,children:[(0,i.jsx)("div",{className:r.vhidden,children:c}),(0,i.jsx)(Z,{onChange:s,displayMonth:e.displayMonth}),(0,i.jsx)(Q,{onChange:s,displayMonth:e.displayMonth})]})}function ei(e){return(0,i.jsx)("svg",F({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:(0,i.jsx)("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function eo(e){return(0,i.jsx)("svg",F({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:(0,i.jsx)("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var el=(0,o.forwardRef)(function(e,t){var n=G(),r=n.classNames,o=n.styles,l=[r.button_reset,r.button];e.className&&l.push(e.className);var a=l.join(" "),s=F(F({},o.button_reset),o.button);return e.style&&Object.assign(s,e.style),(0,i.jsx)("button",F({},e,{ref:t,type:"button",className:a,style:s}))});function ea(e){var t,n,r=G(),o=r.dir,l=r.locale,a=r.classNames,s=r.styles,u=r.labels,c=u.labelPrevious,d=u.labelNext,f=r.components;if(!e.nextMonth&&!e.previousMonth)return(0,i.jsx)(i.Fragment,{});var h=c(e.previousMonth,{locale:l}),p=[a.nav_button,a.nav_button_previous].join(" "),m=d(e.nextMonth,{locale:l}),g=[a.nav_button,a.nav_button_next].join(" "),y=null!=(t=null==f?void 0:f.IconRight)?t:eo,v=null!=(n=null==f?void 0:f.IconLeft)?n:ei;return(0,i.jsxs)("div",{className:a.nav,style:s.nav,children:[!e.hidePrevious&&(0,i.jsx)(el,{name:"previous-month","aria-label":h,className:p,style:s.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:"rtl"===o?(0,i.jsx)(y,{className:a.nav_icon,style:s.nav_icon}):(0,i.jsx)(v,{className:a.nav_icon,style:s.nav_icon})}),!e.hideNext&&(0,i.jsx)(el,{name:"next-month","aria-label":m,className:g,style:s.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:"rtl"===o?(0,i.jsx)(v,{className:a.nav_icon,style:s.nav_icon}):(0,i.jsx)(y,{className:a.nav_icon,style:s.nav_icon})})]})}function es(e){var t=G().numberOfMonths,n=en(),r=n.previousMonth,o=n.nextMonth,l=n.goToMonth,a=n.displayMonths,s=a.findIndex(function(t){return(0,v.t)(e.displayMonth,t)}),u=0===s,c=s===a.length-1;return(0,i.jsx)(ea,{displayMonth:e.displayMonth,hideNext:t>1&&(u||!c),hidePrevious:t>1&&(c||!u),nextMonth:o,previousMonth:r,onPreviousClick:function(){r&&l(r)},onNextClick:function(){o&&l(o)}})}function eu(e){var t,n,r=G(),o=r.classNames,l=r.disableNavigation,a=r.styles,s=r.captionLayout,u=r.components,c=null!=(t=null==u?void 0:u.CaptionLabel)?t:Y;return n=l?(0,i.jsx)(c,{id:e.id,displayMonth:e.displayMonth}):"dropdown"===s?(0,i.jsx)(er,{displayMonth:e.displayMonth,id:e.id}):"dropdown-buttons"===s?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(er,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),(0,i.jsx)(es,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),(0,i.jsx)(es,{displayMonth:e.displayMonth,id:e.id})]}),(0,i.jsx)("div",{className:o.caption,style:a.caption,children:n})}function ec(e){var t=G(),n=t.footer,r=t.styles,o=t.classNames.tfoot;return n?(0,i.jsx)("tfoot",{className:o,style:r.tfoot,children:(0,i.jsx)("tr",{children:(0,i.jsx)("td",{colSpan:8,children:n})})}):(0,i.jsx)(i.Fragment,{})}
4function ed(){var e=G(),t=e.classNames,n=e.styles,r=e.showWeekNumber,o=e.locale,l=e.weekStartsOn,a=e.ISOWeek,s=e.formatters.formatWeekdayName,u=e.labels.labelWeekday,c=function(e,t,n){for(var r=n?(0,w.b)(new Date):(0,x.k)(new Date,{locale:e,weekStartsOn:t}),i=[],o=0;o<7;o++){var l=(0,k.f)(r,o);i.push(l)}return i}(o,l,a);return(0,i.jsxs)("tr",{style:n.head_row,className:t.head_row,children:[r&&(0,i.jsx)("td",{style:n.head_cell,className:t.head_cell}),c.map(function(e,r){return(0,i.jsx)("th",{scope:"col",className:t.head_cell,style:n.head_cell,"aria-label":u(e,{locale:o}),children:s(e,{locale:o})},r)})]})}function ef(){var e,t=G(),n=t.classNames,r=t.styles,o=t.components,l=null!=(e=null==o?void 0:o.HeadRow)?e:ed;return(0,i.jsx)("thead",{style:r.head,className:n.head,children:(0,i.jsx)(l,{})})}function eh(e){var t=G(),n=t.locale,r=t.formatters.formatDay;return(0,i.jsx)(i.Fragment,{children:r(e.date,{locale:n})})}var ep=(0,o.createContext)(void 0);function em(e){return H(e.initialProps)?(0,i.jsx)(eg,{initialProps:e.initialProps,children:e.children}):(0,i.jsx)(ep.Provider,{value:{selected:void 0,modifiers:{disabled:[]}},children:e.children})}function eg(e){var t=e.initialProps,n=e.children,r=t.selected,o=t.min,l=t.max,a={disabled:[]};return r&&a.disabled.push(function(e){var t=l&&r.length>l-1,n=r.some(function(t){return(0,C.r)(t,e)});return!!(t&&!n)}),(0,i.jsx)(ep.Provider,{value:{selected:r,onDayClick:function(e,n,i){var a,s;if((null==(a=t.onDayClick)||a.call(t,e,n,i),!n.selected||!o||(null==r?void 0:r.length)!==o)&&!(!n.selected&&l&&(null==r?void 0:r.length)===l)){var u=r?z([],r,!0):[];if(n.selected){var c=u.findIndex(function(t){return(0,C.r)(e,t)});u.splice(c,1)}else u.push(e);null==(s=t.onSelect)||s.call(t,u,e,n,i)}},modifiers:a},children:n})}function ey(){var e=(0,o.useContext)(ep);if(!e)throw Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}var ev=(0,o.createContext)(void 0);function eb(e){return B(e.initialProps)?(0,i.jsx)(ew,{initialProps:e.initialProps,children:e.children}):(0,i.jsx)(ev.Provider,{value:{selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}},children:e.children})}function ew(e){var t=e.initialProps,n=e.children,r=t.selected,o=r||{},l=o.from,a=o.to,s=t.min,u=t.max,c={range_start:[],range_end:[],range_middle:[],disabled:[]};if(l?(c.range_start=[l],a?(c.range_end=[a],(0,C.r)(l,a)||(c.range_middle=[{after:l,before:a}])):c.range_end=[l]):a&&(c.range_start=[a],c.range_end=[a]),s&&(l&&!a&&c.disabled.push({after:(0,E.e)(l,s-1),before:(0,k.f)(l,s-1)}),l&&a&&c.disabled.push({after:l,before:(0,k.f)(l,s-1)}),!l&&a&&c.disabled.push({after:(0,E.e)(a,s-1),before:(0,k.f)(a,s-1)})),u){if(l&&!a&&(c.disabled.push({before:(0,k.f)(l,-u+1)}),c.disabled.push({after:(0,k.f)(l,u-1)})),l&&a){var d=u-((0,M.m)(a,l)+1);c.disabled.push({before:(0,E.e)(l,d)}),c.disabled.push({after:(0,k.f)(a,d)})}!l&&a&&(c.disabled.push({before:(0,k.f)(a,-u+1)}),c.disabled.push({after:(0,k.f)(a,u-1)}))}return(0,i.jsx)(ev.Provider,{value:{selected:r,onDayClick:function(e,n,i){null==(u=t.onDayClick)||u.call(t,e,n,i);var o,l,a,s,u,c,d=(o=e,a=(l=r||{}).from,s=l.to,a&&s?(0,C.r)(s,o)&&(0,C.r)(a,o)?void 0:(0,C.r)(s,o)?{from:s,to:void 0}:(0,C.r)(a,o)?void 0:S(a,o)?{from:o,to:s}:{from:a,to:o}:s?S(o,s)?{from:s,to:o}:{from:o,to:s}:a?(0,b.Y)(o,a)?{from:o,to:a}:{from:a,to:o}:{from:o,to:void 0});null==(c=t.onSelect)||c.call(t,d,e,n,i)},modifiers:c},children:n})}function ex(){var e=(0,o.useContext)(ev);if(!e)throw Error("useSelectRange must be used within a SelectRangeProvider");return e}function ek(e){return Array.isArray(e)?z([],e,!0):void 0!==e?[e]:[]}!function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"}(r||(r={}));var eC=r.Selected,eS=r.Disabled,eE=r.Hidden,eM=r.Today,eT=r.RangeEnd,eR=r.RangeMiddle,eA=r.RangeStart,eO=r.Outside,eN=(0,o.createContext)(void 0);function eP(e){var t,n,r,o,l=G(),a=ey(),s=ex(),u=((t={})[eC]=ek(l.selected),t[eS]=ek(l.disabled),t[eE]=ek(l.hidden),t[eM]=[l.today],t[eT]=[],t[eR]=[],t[eA]=[],t[eO]=[],n=t,l.fromDate&&n[eS].push({before:l.fromDate}),l.toDate&&n[eS].push({after:l.toDate}),H(l)?n[eS]=n[eS].concat(a.modifiers[eS]):B(l)&&(n[eS]=n[eS].concat(s.modifiers[eS]),n[eA]=s.modifiers[eA],n[eR]=s.modifiers[eR],n[eT]=s.modifiers[eT]),n),c=(r=l.modifiers,o={},Object.entries(r).forEach(function(e){var t=e[0],n=e[1];o[t]=ek(n)}),o),d=F(F({},u),c);return(0,i.jsx)(eN.Provider,{value:d,children:e.children})}function eL(){var e=(0,o.useContext)(eN);if(!e)throw Error("useModifiers must be used within a ModifiersProvider");return e}function eI(e,t,n){var r=Object.keys(t).reduce(function(n,r){return t[r].some(function(t){if("boolean"==typeof t)return t;if((0,T.$)(t))return(0,C.r)(e,t);if(Array.isArray(t)&&t.every(T.$))return t.includes(e);if(t&&"object"==typeof t&&"from"in t)return r=t.from,i=t.to,r&&i?(0>(0,M.m)(i,r)&&(r=(n=[i,r])[0],i=n[1]),(0,M.m)(e,r)>=0&&(0,M.m)(i,e)>=0):i?(0,C.r)(i,e):!!r&&(0,C.r)(r,e);if(t&&"object"==typeof t&&"dayOfWeek"in t)return t.dayOfWeek.includes(e.getDay());if(t&&"object"==typeof t&&"before"in t&&"after"in t){var n,r,i,o=(0,M.m)(t.before,e),l=(0,M.m)(t.after,e),a=o>0,s=l<0;return S(t.before,t.after)?s&&a:a||s}return t&&"object"==typeof t&&"after"in t?(0,M.m)(e,t.after)>0:t&&"object"==typeof t&&"before"in t?(0,M.m)(t.before,e)>0:"function"==typeof t&&t(e)})&&n.push(r),n},[]),i={};return r.forEach(function(e){return i[e]=!0}),n&&!(0,v.t)(e,n)&&(i.outside=!0),i}var eD=(0,o.createContext)(void 0);function e_(e){var t=en(),n=eL(),r=(0,o.useState)(),l=r[0],u=r[1],c=(0,o.useState)(),h=c[0],p=c[1],m=function(e,t){for(var n,r,i=(0,a.w)(e[0]),o=(0,s.p)(e[e.length-1]),l=i;l<=o;){var u=eI(l,t);if(!(!u.disabled&&!u.hidden)){l=(0,k.f)(l,1);continue}if(u.selected)return l;u.today&&!r&&(r=l),n||(n=l),l=(0,k.f)(l,1)}return r||n}(t.displayMonths,n),g=(null!=l?l:h&&t.isDateDisplayed(h))?h:m,v=function(e){u(e)},b=G(),S=function(e,r){if(l){var i=function e(t,n){var r=n.moveBy,i=n.direction,o=n.context,l=n.modifiers,a=n.retry,s=void 0===a?{count:0,lastFocused:t}:a,u=o.weekStartsOn,c=o.fromDate,h=o.toDate,p=o.locale,m=({day:k.f,week:R.J,month:y.P,year:A.e,startOfWeek:function(e){return o.ISOWeek?(0,w.b)(e):(0,x.k)(e,{locale:p,weekStartsOn:u})},endOfWeek:function(e){return o.ISOWeek?P(e):N(e,{locale:p,weekStartsOn:u})}})[r](t,"after"===i?1:-1);if("before"===i&&c){let e,t;t=void 0,[c,m].forEach(n=>{t||"object"!=typeof n||(t=d.w.bind(null,n));let r=(0,f.a)(n,t);(!e||e<r||isNaN(+r))&&(e=r)}),m=(0,d.w)(t,e||NaN)}else{let e,t;"after"===i&&h&&(t=void 0,[h,m].forEach(n=>{t||"object"!=typeof n||(t=d.w.bind(null,n));let r=(0,f.a)(n,t);(!e||e>r||isNaN(+r))&&(e=r)}),m=(0,d.w)(t,e||NaN))}var g=!0;if(l){var v=eI(m,l);g=!v.disabled&&!v.hidden}return g?m:s.count>365?s.lastFocused:e(m,{moveBy:r,direction:i,context:o,modifiers:l,retry:F(F({}
4,s),{count:s.count+1})})}(l,{moveBy:e,direction:r,context:b,modifiers:n});(0,C.r)(l,i)||(t.goToDate(i,l),v(i))}};return(0,i.jsx)(eD.Provider,{value:{focusedDay:l,focusTarget:g,blur:function(){p(l),u(void 0)},focus:v,focusDayAfter:function(){return S("day","after")},focusDayBefore:function(){return S("day","before")},focusWeekAfter:function(){return S("week","after")},focusWeekBefore:function(){return S("week","before")},focusMonthBefore:function(){return S("month","before")},focusMonthAfter:function(){return S("month","after")},focusYearBefore:function(){return S("year","before")},focusYearAfter:function(){return S("year","after")},focusStartOfWeek:function(){return S("startOfWeek","before")},focusEndOfWeek:function(){return S("endOfWeek","after")}},children:e.children})}function ej(){var e=(0,o.useContext)(eD);if(!e)throw Error("useFocusContext must be used within a FocusProvider");return e}var eF=(0,o.createContext)(void 0);function ez(e){return $(e.initialProps)?(0,i.jsx)(eH,{initialProps:e.initialProps,children:e.children}):(0,i.jsx)(eF.Provider,{value:{selected:void 0},children:e.children})}function eH(e){var t=e.initialProps,n=e.children,r={selected:t.selected,onDayClick:function(e,n,r){var i,o,l;if(null==(i=t.onDayClick)||i.call(t,e,n,r),n.selected&&!t.required){null==(o=t.onSelect)||o.call(t,void 0,e,n,r);return}null==(l=t.onSelect)||l.call(t,e,e,n,r)}};return(0,i.jsx)(eF.Provider,{value:r,children:n})}function eB(){var e=(0,o.useContext)(eF);if(!e)throw Error("useSelectSingle must be used within a SelectSingleProvider");return e}function e$(e,t,n){var l,a,s,u,c,d,f,h,p,m,g,y,v,b,w,x,k,S,E,M,T,R,A,O,N,P,L=G(),I=ej(),D=eI(e,eL(),t),_=(l=G(),a=eB(),s=ey(),u=ex(),d=(c=ej()).focusDayAfter,f=c.focusDayBefore,h=c.focusWeekAfter,p=c.focusWeekBefore,m=c.blur,g=c.focus,y=c.focusMonthBefore,v=c.focusMonthAfter,b=c.focusYearBefore,w=c.focusYearAfter,x=c.focusStartOfWeek,k=c.focusEndOfWeek,{onClick:function(t){var n,r,i,o;$(l)?null==(n=a.onDayClick)||n.call(a,e,D,t):H(l)?null==(r=s.onDayClick)||r.call(s,e,D,t):B(l)?null==(i=u.onDayClick)||i.call(u,e,D,t):null==(o=l.onDayClick)||o.call(l,e,D,t)},onFocus:function(t){var n;g(e),null==(n=l.onDayFocus)||n.call(l,e,D,t)},onBlur:function(t){var n;m(),null==(n=l.onDayBlur)||n.call(l,e,D,t)},onKeyDown:function(t){var n;switch(t.key){case"ArrowLeft":t.preventDefault(),t.stopPropagation(),"rtl"===l.dir?d():f();break;case"ArrowRight":t.preventDefault(),t.stopPropagation(),"rtl"===l.dir?f():d();break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),h();break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),p();break;case"PageUp":t.preventDefault(),t.stopPropagation(),t.shiftKey?b():y();break;case"PageDown":t.preventDefault(),t.stopPropagation(),t.shiftKey?w():v();break;case"Home":t.preventDefault(),t.stopPropagation(),x();break;case"End":t.preventDefault(),t.stopPropagation(),k()}null==(n=l.onDayKeyDown)||n.call(l,e,D,t)},onKeyUp:function(t){var n;null==(n=l.onDayKeyUp)||n.call(l,e,D,t)},onMouseEnter:function(t){var n;null==(n=l.onDayMouseEnter)||n.call(l,e,D,t)},onMouseLeave:function(t){var n;null==(n=l.onDayMouseLeave)||n.call(l,e,D,t)},onPointerEnter:function(t){var n;null==(n=l.onDayPointerEnter)||n.call(l,e,D,t)},onPointerLeave:function(t){var n;null==(n=l.onDayPointerLeave)||n.call(l,e,D,t)},onTouchCancel:function(t){var n;null==(n=l.onDayTouchCancel)||n.call(l,e,D,t)},onTouchEnd:function(t){var n;null==(n=l.onDayTouchEnd)||n.call(l,e,D,t)},onTouchMove:function(t){var n;null==(n=l.onDayTouchMove)||n.call(l,e,D,t)},onTouchStart:function(t){var n;null==(n=l.onDayTouchStart)||n.call(l,e,D,t)}}),j=(S=G(),E=eB(),M=ey(),T=ex(),$(S)?E.selected:H(S)?M.selected:B(S)?T.selected:void 0),z=!!(L.onDayClick||"default"!==L.mode);(0,o.useEffect)(function(){var t;!D.outside&&I.focusedDay&&z&&(0,C.r)(I.focusedDay,e)&&(null==(t=n.current)||t.focus())},[I.focusedDay,e,n,z,D.outside]);var U=(R=[L.classNames.day],Object.keys(D).forEach(function(e){var t=L.modifiersClassNames[e];if(t)R.push(t);else if(Object.values(r).includes(e)){var n=L.classNames["day_".concat(e)];n&&R.push(n)}}),R).join(" "),V=(A=F({}
4,L.styles.day),Object.keys(D).forEach(function(e){var t;A=F(F({},A),null==(t=L.modifiersStyles)?void 0:t[e])}),A),W=!!(D.outside&&!L.showOutsideDays||D.hidden),q=null!=(P=null==(N=L.components)?void 0:N.DayContent)?P:eh,K={style:V,className:U,children:(0,i.jsx)(q,{date:e,displayMonth:t,activeModifiers:D}),role:"gridcell"},Y=I.focusTarget&&(0,C.r)(I.focusTarget,e)&&!D.outside,J=I.focusedDay&&(0,C.r)(I.focusedDay,e),X=F(F(F({},K),((O={disabled:D.disabled,role:"gridcell"})["aria-selected"]=D.selected,O.tabIndex=J||Y?0:-1,O)),_);return{isButton:z,isHidden:W,activeModifiers:D,selectedDays:j,buttonProps:X,divProps:K}}function eU(e){var t=(0,o.useRef)(null),n=e$(e.date,e.displayMonth,t);return n.isHidden?(0,i.jsx)("div",{role:"gridcell"}):n.isButton?(0,i.jsx)(el,F({name:"day",ref:t},n.buttonProps)):(0,i.jsx)("div",F({},n.divProps))}function eV(e){var t=e.number,n=e.dates,r=G(),o=r.onWeekNumberClick,l=r.styles,a=r.classNames,s=r.locale,u=r.labels.labelWeekNumber,c=(0,r.formatters.formatWeekNumber)(Number(t),{locale:s});if(!o)return(0,i.jsx)("span",{className:a.weeknumber,style:l.weeknumber,children:c});var d=u(Number(t),{locale:s});return(0,i.jsx)(el,{name:"week-number","aria-label":d,className:a.weeknumber,style:l.weeknumber,onClick:function(e){o(t,n,e)},children:c})}function eW(e){var t,n,r,o=G(),l=o.styles,a=o.classNames,s=o.showWeekNumber,u=o.components,c=null!=(t=null==u?void 0:u.Day)?t:eU,d=null!=(n=null==u?void 0:u.WeekNumber)?n:eV;return s&&(r=(0,i.jsx)("td",{className:a.cell,style:l.cell,children:(0,i.jsx)(d,{number:e.weekNumber,dates:e.dates})})),(0,i.jsxs)("tr",{className:a.row,style:l.row,children:[r,e.dates.map(function(t){return(0,i.jsx)("td",{className:a.cell,style:l.cell,role:"presentation",children:(0,i.jsx)(c,{displayMonth:e.displayMonth,date:t})},Math.trunc((0,f.a)(t)/1e3))})]})}function eq(e,t,n){for(var r=(null==n?void 0:n.ISOWeek)?P(t):N(t,n),i=(null==n?void 0:n.ISOWeek)?(0,w.b)(e):(0,x.k)(e,n),o=(0,M.m)(r,i),l=[],a=0;a<=o;a++)l.push((0,k.f)(i,a));return l.reduce(function(e,t){var r=(null==n?void 0:n.ISOWeek)?(0,L.s)(t):(0,I.N)(t,n),i=e.find(function(e){return e.weekNumber===r});return i?i.dates.push(t):e.push({weekNumber:r,dates:[t]}),e},[])}function eK(e){var t,n,r,o=G(),l=o.locale,u=o.classNames,d=o.styles,h=o.hideHead,p=o.fixedWeeks,m=o.components,g=o.weekStartsOn,y=o.firstWeekContainsDate,v=o.ISOWeek,b=function(e,t){var n=eq((0,a.w)(e),(0,s.p)(e),t);if(null==t?void 0:t.useFixedWeeks){var r=function(e,t){let n=(0,f.a)(e,null==t?void 0:t.in);return function(e,t,n){let[r,i]=(0,c.x)(null==n?void 0:n.in,e,t),o=(0,x.k)(r,n),l=(0,x.k)(i,n);return Math.round((o-(0,D.G)(o)-(l-(0,D.G)(l)))/_.my)}(function(e,t){let n=(0,f.a)(e,null==t?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(0,0,0,0),(0,f.a)(n,null==t?void 0:t.in)}(n,t),(0,a.w)(n,t),t)+1}(e,t);if(r<6){var i=n[n.length-1],o=i.dates[i.dates.length-1],l=(0,R.J)(o,6-r),u=eq((0,R.J)(o,1),l,t);n.push.apply(n,u)}}return n}(e.displayMonth,{useFixedWeeks:!!p,ISOWeek:v,locale:l,weekStartsOn:g,firstWeekContainsDate:y}),w=null!=(t=null==m?void 0:m.Head)?t:ef,k=null!=(n=null==m?void 0:m.Row)?n:eW,C=null!=(r=null==m?void 0:m.Footer)?r:ec;return(0,i.jsxs)("table",{id:e.id,className:u.table,style:d.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!h&&(0,i.jsx)(w,{}),(0,i.jsx)("tbody",{className:u.tbody,style:d.tbody,children:b.map(function(t){return(0,i.jsx)(k,{displayMonth:e.displayMonth,dates:t.dates,weekNumber:t.weekNumber},t.weekNumber)})}),(0,i.jsx)(C,{displayMonth:e.displayMonth})]})}var eG="undefined"!=typeof window&&window.document&&window.document.createElement?o.useLayoutEffect:o.useEffect,eY=!1,eJ=0;function eX(){return"react-day-picker-".concat(++eJ)}function eZ(e){var t,n,r,l,a,s,u,c,d=G(),f=d.dir,h=d.classNames,p=d.styles,m=d.components,g=en().displayMonths,y=(r=null!=(t=d.id?"".concat(d.id,"-").concat(e.displayIndex):void 0)?t:eY?eX():null,a=(l=(0,o.useState)(r))[0],s=l[1],eG(function(){null===a&&s(eX())},[]),(0,o.useEffect)(function(){!1===eY&&(eY=!0)},[]),null!=(n=null!=t?t:a)?n:void 0),v=d.id?"".concat(d.id,"-grid-").concat(e.displayIndex):void 0,b=[h.month],w=p.month,x=0===e.displayIndex,k=e.displayIndex===g.length-1,C=!x&&!k;"rtl"===f&&(k=(u=[x,k])[0],x=u[1]),x&&(b.push(h.caption_start),w=F(F({},w),p.caption_start)),k&&(b.push(h.caption_end),w=F(F({},w),p.caption_end)),C&&(b.push(h.caption_between),w=F(F({},w),p.caption_between));var S=null!=(c=null==m?void 0:m.Caption)?c:eu;return(0,i.jsxs)("div",{className:b.join(" "),style:w,children:[(0,i.jsx)(S,{id:y,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),(0,i.jsx)(eK,{id:v,"aria-labelledby":y,displayMonth:e.displayMonth})]},e.displayIndex)}function eQ(e){var t=G(),n=t.classNames,r=t.styles;return(0,i.jsx)("div",{className:n.months,style:r.months,children:e.children})}function e0(e){var t,n,r=e.initialProps,l=G(),a=ej(),s=en(),u=(0,o.useState)(!1),c=u[0],d=u[1];(0,o.useEffect)(function(){l.initialFocus&&a.focusTarget&&(c||(a.focus(a.focusTarget),d(!0)))},[l.initialFocus,c,a.focus,a.focusTarget,a]);var f=[l.classNames.root,l.className];l.numberOfMonths>1&&f.push(l.classNames.multiple_months),l.showWeekNumber&&f.push(l.classNames.with_weeknumber);var h=F(F({},l.styles.root),l.style),p=Object.keys(r).filter(function(e){return e.startsWith("data-")}).reduce(function(e,t){var n;return F(F({},e),((n={})[t]=r[t],n))},{}),m=null!=(n=null==(t=r.components)?void 0:t.Months)?n:eQ;return(0,i.jsx)("div",F({className:f.join(" "),style:h,dir:l.dir,id:l.id,nonce:r.nonce,title:r.title,lang:r.lang},p,{children:(0,i.jsx)(m,{children:s.displayMonths.map(function(e,t){return(0,i.jsx)(eZ,{displayIndex:t,displayMonth:e},t)})})}))}function e1(e){var t=e.children,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}(e,["children"]);return(0,i.jsx)(K,{initialProps:n,children:(0,i.jsx)(et,{children:(0,i.jsx)(ez,{initialProps:n,children:(0,i.jsx)(em,{initialProps:n,children:(0,i.jsx)(eb,{initialProps:n,children:(0,i.jsx)(eP,{children:(0,i.jsx)(e_,{children:t})})})})})})})}function e2(e){return(0,i.jsx)(e1,F({},e,{children:(0,i.jsx)(e0,{initialProps:e})}))}},9046:(e,t,n)=>{"use strict";n.d(t,{GP:()=>N});var r=n(85986),i=n(63763),o=n(88e3),l=n(79087),a=n(10276),s=n(23721),u=n(18429),c=n(78922),d=n(41898);function f(e,t){let n=Math.abs(e).toString().padStart(t,"0");return(e<0?"-":"")+n}
4let h={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return f("yy"===t?r%100:r,t.length)},M(e,t){let n=e.getMonth();return"M"===t?String(n+1):f(n+1,2)},d:(e,t)=>f(e.getDate(),t.length),a(e,t){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>f(e.getHours()%12||12,t.length),H:(e,t)=>f(e.getHours(),t.length),m:(e,t)=>f(e.getMinutes(),t.length),s:(e,t)=>f(e.getSeconds(),t.length),S(e,t){let n=t.length;return f(Math.trunc(e.getMilliseconds()*Math.pow(10,n-3)),t.length)}},p={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},m={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){let t=e.getFullYear();return n.ordinalNumber(t>0?t:1-t,{unit:"year"})}return h.y(e,t)},Y:function(e,t,n,r){let i=(0,d.h)(e,r),o=i>0?i:1-i;return"YY"===t?f(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):f(o,t.length)},R:function(e,t){return f((0,u.p)(e),t.length)},u:function(e,t){return f(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return f(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return f(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){let r=e.getMonth();switch(t){case"M":case"MM":return h.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){let r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return f(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){let i=(0,c.N)(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):f(i,t.length)},I:function(e,t,n){let r=(0,s.s)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):f(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):h.d(e,t)},D:function(e,t,n){let r=function(e,t){let n=(0,a.a)(e,void 0);return(0,o.m)(n,(0,l.D)(n))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):f(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){let i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return f(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){let i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return f(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){let r=e.getDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return f(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){let r,i=e.getHours();switch(r=12===i?p.noon:0===i?p.midnight:i/12>
4=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){let r,i=e.getHours();switch(r=i>=17?p.evening:i>=12?p.afternoon:i>=4?p.morning:p.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return h.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):h.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):f(r,t.length)},k:function(e,t,n){let r=e.getHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):f(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):h.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):h.s(e,t)},S:function(e,t){return h.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return y(r);case"XXXX":case"XX":return v(r);default:return v(r,":")}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"x":return y(r);case"xxxx":case"xx":return v(r);default:return v(r,":")}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+g(r,":");default:return"GMT"+v(r,":")}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+g(r,":");default:return"GMT"+v(r,":")}},t:function(e,t,n){return f(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return f(+e,t.length)}};function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+t+f(o,2)}function y(e,t){return e%60==0?(e>0?"-":"+")+f(Math.abs(e)/60,2):v(e,t)}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Math.abs(e);return(e>0?"-":"+")+f(Math.trunc(n/60),2)+t+f(n%60,2)}let b=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},w=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},x={p:w,P:(e,t)=>{let n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return b(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",b(i,t)).replace("{{time}}",w(o,t))}},k=/^D+$/,C=/^Y+$/,S=["D","DD","YY","YYYY"];var E=n(36433);let M=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,T=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,R=/^'([^]*?)'?$/,A=/''/g,O=/[a-zA-Z]/;function N(e,t,n){var o,l,s,u,c,d,f,h,p,g,y,v,b,w,N,P,L,I;let D=(0,i.q)(),_=null!=(g=null!=(p=null==n?void 0:n.locale)?p:D.locale)?g:r.c,j=null!=(w=null!=(b=null!=(v=null!=(y=null==n?void 0:n.firstWeekContainsDate)?y:null==n||null==(l=n.locale)||null==(o=l.options)?void 0:o.firstWeekContainsDate)?v:D.firstWeekContainsDate)?b:null==(u=D.locale)||null==(s=u.options)?void 0:s.firstWeekContainsDate)?w:1,F=null!=(I=null!=(L=null!=(P=null!=(N=null==n?void 0:n.weekStartsOn)?N:null==n||null==(d=n.locale)||null==(c=d.options)?void 0:c.weekStartsOn)?P:D.weekStartsOn)?L:null==(h=D.locale)||null==(f=h.options)?void 0:f.weekStartsOn)?I:0,z=(0,a.a)(e,null==n?void 0:n.in);if(!(0,E.$)(z)&&"number"!=typeof z||isNaN(+(0,a.a)(z)))throw RangeError("Invalid time value");let H=t.match(T).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,x[t])(e,_.formatLong):e}).join("").match(M).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t)return{isToken:!1,value:function(e){let t=e.match(R);return t?t[1].replace(A,"'"):e}(e)};if(m[t])return{isToken:!0,value:e};
4if(t.match(O))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});_.localize.preprocessor&&(H=_.localize.preprocessor(z,H));let B={firstWeekContainsDate:j,weekStartsOn:F,locale:_};return H.map(r=>{if(!r.isToken)return r.value;let i=r.value;return(!(null==n?void 0:n.useAdditionalWeekYearTokens)&&C.test(i)||!(null==n?void 0:n.useAdditionalDayOfYearTokens)&&k.test(i))&&function(e,t,n){let r=function(e,t,n){let r="Y"===e[0]?"years":"days of the month";return"Use `".concat(e.toLowerCase(),"` instead of `").concat(e,"` (in `").concat(t,"`) for formatting ").concat(r," to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}(e,t,n);if(console.warn(r),S.includes(e))throw RangeError(r)}(i,t,String(e)),(0,m[i[0]])(z,i,_.localize,B)}).join("")}},9120:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>a,lG:()=>o,uN:()=>l});var r=n(35129);function i(e,t){return function(n){return e+n*t}}function o(e,t){var n=t-e;return n?i(e,n>180||n<-180?n-360*Math.round(n/360):n):(0,r.A)(isNaN(e)?t:e)}function l(e){return 1==(e*=1)?a:function(t,n){var i,o,l;return n-t?(i=t,o=n,i=Math.pow(i,l=e),o=Math.pow(o,l)-i,l=1/l,function(e){return Math.pow(i+e*o,l)}):(0,r.A)(isNaN(t)?n:t)}}function a(e,t){var n=t-e;return n?i(e,n):(0,r.A)(isNaN(e)?t:e)}},10094:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return o}});let r=n(92697),i=n(40336);function o(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,i.hasBasePath)(n.pathname)}catch(e){return!1}}},10276:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var r=n(69906);function i(e,t){return(0,r.w)(t||e,e)}},10521:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(90953).A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},10575:(e,t,n)=>{"use strict";n.d(t,{C1:()=>C,bL:()=>x});var r=n(38848),i=n(25300),o=n(89486),l=n(4529),a=n(67821),s=n(60117),u=n(48949),c=n(94205),d=n(5461),f=n(38476),h="Checkbox",[p,m]=(0,o.A)(h),[g,y]=p(h);function v(e){let{__scopeCheckbox:t,checked:n,children:i,defaultChecked:o,disabled:l,form:s,name:u,onCheckedChange:c,required:d,value:p="on",internal_do_not_use_render:m}=e,[y,v]=(0,a.i)({prop:n,defaultProp:null!=o&&o,onChange:c,caller:h}),[b,w]=r.useState(null),[x,k]=r.useState(null),C=r.useRef(!1),S=!b||!!s||!!b.closest("form"),E={checked:y,disabled:l,setChecked:v,control:b,setControl:w,name:u,form:s,value:p,hasConsumerStoppedPropagationRef:C,required:d,defaultChecked:!M(o)&&o,isFormControl:S,bubbleInput:x,setBubbleInput:k};return(0,f.jsx)(g,{scope:t,...E,children:"function"==typeof m?m(E):i})}var b="CheckboxTrigger",w=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,onKeyDown:o,onClick:a,...s}=e,{control:u,value:c,disabled:h,checked:p,required:m,setControl:g,setChecked:v,hasConsumerStoppedPropagationRef:w,isFormControl:x,bubbleInput:k}=y(b,n),C=(0,i.s)(t,g),S=r.useRef(p);return r.useEffect(()=>{let e=null==u?void 0:u.form;if(e){let t=()=>v(S.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[u,v]),(0,f.jsx)(d.sG.button,{type:"button",role:"checkbox","aria-checked":M(p)?"mixed":p,"aria-required":m,"data-state":T(p),"data-disabled":h?"":void 0,disabled:h,value:c,...s,ref:C,onKeyDown:(0,l.mK)(o,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,l.mK)(a,e=>{v(e=>!!M(e)||!e),k&&x&&(w.current=e.isPropagationStopped(),w.current||e.stopPropagation())})})});w.displayName=b;var x=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:o,required:l,disabled:a,value:s,onCheckedChange:u,form:c,...d}=e;return(0,f.jsx)(v,{__scopeCheckbox:n,checked:i,defaultChecked:o,disabled:a,required:l,onCheckedChange:u,name:r,form:c,value:s,internal_do_not_use_render:e=>{let{isFormControl:r}=e;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(w,{...d,ref:t,__scopeCheckbox:n}),r&&(0,f.jsx)(E,{__scopeCheckbox:n})]})}})});x.displayName=h;var k="CheckboxIndicator",C=r.forwardRef((e,t)=>
4{let{__scopeCheckbox:n,forceMount:r,...i}=e,o=y(k,n);return(0,f.jsx)(c.C,{present:r||M(o.checked)||!0===o.checked,children:(0,f.jsx)(d.sG.span,{"data-state":T(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});C.displayName=k;var S="CheckboxBubbleInput",E=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,...o}=e,{control:l,hasConsumerStoppedPropagationRef:a,checked:c,defaultChecked:h,required:p,disabled:m,name:g,value:v,form:b,bubbleInput:w,setBubbleInput:x}=y(S,n),k=(0,i.s)(t,x),C=(0,s.Z)(c),E=(0,u.X)(l);r.useEffect(()=>{if(!w)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!a.current;if(C!==c&&e){let n=new Event("click",{bubbles:t});w.indeterminate=M(c),e.call(w,!M(c)&&c),w.dispatchEvent(n)}},[w,C,c,a]);let T=r.useRef(!M(c)&&c);return(0,f.jsx)(d.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:null!=h?h:T.current,required:p,disabled:m,name:g,value:v,form:b,...o,tabIndex:-1,ref:k,style:{...o.style,...E,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function M(e){return"indeterminate"===e}function T(e){return M(e)?"indeterminate":e?"checked":"unchecked"}E.displayName=S},10761:(e,t,n)=>{"use strict";n.d(t,{$L:()=>A,Ln:()=>m,N0:()=>T,Um:()=>R,Wg:()=>g,X9:()=>l,Ys:()=>f,dL:()=>H,jP:()=>b,n9:()=>E,oM:()=>w,zy:()=>S});var r=n(7964);class i{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class o{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&o.empty)return o.empty}recover(e){let t=0,n=65535&e;if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*n]+t+(e-(65535&e))/65536}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,o=this.inverted?2:1,l=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let s=this.ranges[a]-(this.inverted?r:0);if(s>e)break;let u=this.ranges[a+o],c=this.ranges[a+l],d=s+u;if(e<=d){let o=u?e==s?-1:e==d?1:t:t,l=s+r+(o<0?0:c);if(n)return l;let f=e==(t<0?s:d)?null:a/3+(e-s)*65536,h=e==s?2:e==d?1:4;return(t<0?e!=s:e!=d)&&(h|=8),new i(l,h,f)}r+=c-u}return n?e+r:new i(e+r,0,null)}touches(e,t){let n=0,r=65535&t,i=this.inverted?2:1,o=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let l=this.ranges[t]-(this.inverted?n:0);if(l>e)break;let a=this.ranges[t+i];if(e<=l+a&&t==3*r)return!0;n+=this.ranges[t+o]-a}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let o=this.ranges[r],l=o-(this.inverted?i:0),a=o+(this.inverted?0:i),s=this.ranges[r+t],u=this.ranges[r+n];e(l,l+s,a,a+u),i+=u-s}}invert(){return new o(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?o.empty:new o(e<0?[0,-e,0]:[0,0,e])}}o.empty=new o([]);class l{constructor(e,t,n=0,r=e?e.length:0){this.mirror=t,this.from=n,this.to=r,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new l(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),null!=t&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,n=this._maps.length;t<e._maps.length;t++){let r=e.getMirror(t);this.appendMap(e._maps[t],null!=r&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this._maps.length+e._maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),null!=r&&r>t?n-r-1:void 0)}}invert(){let e=new l;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this._maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let n=this.from;n<this.to;n++){let i=this._maps[n].mapResult(e,t);if(null!=i.recover){let t=this.getMirror(n);if(null!=t&&t>n&&t<this.to){n=t,e=this._maps[t].recover(i.recover);continue}}r|=i.delInfo,e=i.pos}return n?e:new i(e,r,null)}}let a=Object.create(null);class s{getMap(){return o.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError("Invalid input for Step.fromJSON");let n=a[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in a)throw RangeError("Duplicate use of step JSON ID "+e);return a[e]=t,t.prototype.jsonID=e,t}}class u{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new u(e,null)}static fail(e){return new u(null,e)}static fromReplace(e,t,n,i){try{return u.ok(e.replace(t,n,i))}catch(e){if(e instanceof r.vI)return u.fail(e.message);throw e}}}
vendor: 7,116 bytes, line 4
4function c(e,t,n){let i=[];for(let r=0;r<e.childCount;r++){let o=e.child(r);o.content.size&&(o=o.copy(c(o.content,t,o))),o.isInline&&(o=t(o,n,r)),i.push(o)}return r.FK.fromArray(i)}class d extends s{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),i=n.node(n.sharedDepth(this.to)),o=new r.Ji(c(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,i),t.openStart,t.openEnd);return u.fromReplace(e,this.from,this.to,o)}invert(){return new f(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new d(t.pos,n.pos,this.mark)}merge(e){return e instanceof d&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new d(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new d(t.from,t.to,e.markFromJSON(t.mark))}}s.jsonID("addMark",d);class f extends s{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new r.Ji(c(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return u.fromReplace(e,this.from,this.to,n)}invert(){return new d(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new f(t.pos,n.pos,this.mark)}merge(e){return e instanceof f&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new f(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new f(t.from,t.to,e.markFromJSON(t.mark))}}s.jsonID("removeMark",f);class h extends s{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return u.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return u.fromReplace(e,this.pos,this.pos+1,new r.Ji(r.FK.from(n),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let n=0;n<t.marks.length;n++)if(!t.marks[n].isInSet(e))return new h(this.pos,t.marks[n]);return new h(this.pos,this.mark)}}return new p(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new h(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new h(t.pos,e.markFromJSON(t.mark))}}s.jsonID("addNodeMark",h);class p extends s{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return u.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return u.fromReplace(e,this.pos,this.pos+1,new r.Ji(r.FK.from(n),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new h(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new p(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new p(t.pos,e.markFromJSON(t.mark))}}s.jsonID("removeNodeMark",p);class m extends s{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&y(e,this.from,this.to)?u.fail("Structure replace would overwrite content"):u.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new o([this.from,this.to-this.from,this.slice.size])}invert(e){return new m(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deletedAcross&&n.deletedAcross?null:new m(t.pos,Math.max(t.pos,n.pos),this.slice,this.structure)}merge(e){if(!(e instanceof m)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart)if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;else{let t=this.slice.size+e.slice.size==0?r.Ji.empty:new r.Ji(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new m(e.from,this.to,t,this.structure)}{let t=this.slice.size+e.slice.size==0?r.Ji.empty:new r.Ji(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new m(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new m(t.from,t.to,r.Ji.fromJSON(e,t.slice),!!t.structure)}}s.jsonID("replace",m);class g extends s{constructor(e,t,n,r,i,o,l=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=o,this.structure=l}apply(e){if(this.structure&&(y(e,this.from,this.gapFrom)||y(e,this.gapTo,this.to)))return u.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return u.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,t.content);return n?u.fromReplace(e,this.from,this.to,n):u.fail("Content does not fit in gap")}getMap(){return new o([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new g(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),r=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?n.pos:e.map(this.gapTo,1);return t.deletedAcross&&n.deletedAcross||r<t.pos||i>n.pos?null:new g(t.pos,n.pos,r,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new g(t.from,t.to,t.gapFrom,t.gapTo,r.Ji.fromJSON(e,t.slice),t.insert,!!t.structure)}}function y(e,t,n){let r=e.resolve(t),i=n-t,o=r.depth;for(;i>0&&o>
40&&r.indexAfter(o)==r.node(o).childCount;)o--,i--;if(i>0){let e=r.node(o).maybeChild(r.indexAfter(o));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function v(e,t,n,i=n.contentMatch,o=!0){let l=e.doc.nodeAt(t),a=[],s=t+1;for(let t=0;t<l.childCount;t++){let u=l.child(t),c=s+u.nodeSize,d=i.matchType(u.type);if(d){i=d;for(let t=0;t<u.marks.length;t++)n.allowsMarkType(u.marks[t].type)||e.step(new f(s,c,u.marks[t]));if(o&&u.isText&&"pre"!=n.whitespace){let e,t=/\r?\n|\r/g,i;for(;e=t.exec(u.text);)i||(i=new r.Ji(r.FK.from(n.schema.text(" ",n.allowedMarks(u.marks))),0,0)),a.push(new m(s+e.index,s+e.index+e[0].length,i))}}else a.push(new m(s,c,r.Ji.empty));s=c}if(!i.validEnd){let t=i.fillBefore(r.FK.empty,!0);e.replace(s,s,new r.Ji(t,0,0))}for(let t=a.length-1;t>=0;t--)e.step(a[t])}function b(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth;;--n){let r=e.$from.node(n),i=e.$from.index(n),o=e.$to.indexAfter(n);if(n<e.depth&&r.canReplace(i,o,t))return n;if(0==n||r.type.spec.isolating||!((0==i||r.canReplace(i,r.childCount))&&(o==r.childCount||r.canReplace(0,o))))break}return null}function w(e,t,n=null,r=e){let i=function(e,t){let{parent:n,startIndex:r,endIndex:i}=e,o=n.contentMatchAt(r).findWrapping(t);if(!o)return null;let l=o.length?o[0]:t;return n.canReplaceWith(r,i,l)?o:null}(e,t),o=i&&function(e,t){let{parent:n,startIndex:r,endIndex:i}=e,o=n.child(r),l=t.contentMatch.findWrapping(o.type);if(!l)return null;let a=(l.length?l[l.length-1]:t).contentMatch;for(let e=r;a&&e<i;e++)a=a.matchType(n.child(e).type);return a&&a.validEnd?l:null}(r,t);return o?i.map(x).concat({type:t,attrs:n}).concat(o.map(x)):null}function x(e){return{type:e,attrs:null}}function k(e,t,n,r){t.forEach((i,o)=>{if(i.isText){let l,a=/\r?\n|\r/g;for(;l=a.exec(i.text);){let i=e.mapping.slice(r).map(n+1+o+l.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function C(e,t,n,r){t.forEach((i,o)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(r).map(n+1+o);e.replaceWith(i,i+1,t.type.schema.text("\n"))}})}function S(e,t,n=1,r){let i=e.resolve(t),o=i.depth-n,l=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!l.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let e=i.depth-1,t=n-2;e>o;e--,t--){let n=i.node(e),o=i.index(e);if(n.type.spec.isolating)return!1;let l=n.content.cutByIndex(o,n.childCount),a=r&&r[t+1];a&&(l=l.replaceChild(0,a.type.create(a.attrs)));let s=r&&r[t]||n;if(!n.canReplace(o+1,n.childCount)||!s.type.validContent(l))return!1}let a=i.indexAfter(o),s=r&&r[0];return i.node(o).canReplaceWith(a,a,s?s.type:i.node(o+1).type)}function E(e,t){let n=e.resolve(t),r=n.index();return M(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function M(e,t){return!!(e&&t&&!e.isLeaf&&function(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let i=0;i<t.childCount;i++){let o=t.child(i),l=o.type==r?e.type.schema.nodes.text:o.type;if(!(n=n.matchType(l))||!e.type.allowsMarks(o.marks))return!1}return n.validEnd}(e,t))}function T(e,t,n=-1){let r=e.resolve(t);for(let e=r.depth;;e--){let i,o,l=r.index(e);if(e==r.depth?(i=r.nodeBefore,o=r.nodeAfter):n>0?(i=r.node(e+1),l++,o=r.node(e).maybeChild(l)):(i=r.node(e).maybeChild(l-1),o=r.node(e+1)),i&&!i.isTextblock&&M(i,o)&&r.node(e).canReplace(l,l+1))return t;if(0==e)break;t=n<0?r.before(e):r.after(e)}}function R(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let i=n.content;for(let e=0;e<n.openStart;e++)i=i.firstChild.content;for(let e=1;e<=(0==n.openStart&&n.size?2:1);e++)for(let t=r.depth;t>=0;t--){let n=t==r.depth?0:r.pos<=(r.start(t+1)+r.end(t+1))/2?-1:1,o=r.index(t)+ +(n>0),l=r.node(t),a=!1;if(1==e)a=l.canReplace(o,o,i);else{let e=l.contentMatchAt(o).findWrapping(i.firstChild.type);a=e&&l.canReplaceWith(o,o,e[0])}if(a)return 0==n?r.pos:n<0?r.before(t+1):r.after(t+1)}return null}function A(e,t,n=t,i=r.Ji.empty){if(t==n&&!i.size)return null;let o=e.resolve(t),l=e.resolve(n);return O(o,l,i)?new m(t,n,i):new N(o,l,i).fit()}function O(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}s.jsonID("replaceAround",g);class N{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=r.FK.empty;for(let t=0;t<=e.depth;t++){let n=e.node(t);this.frontier.push({type:n.type,match:n.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=r.FK.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,i=this.close(e<0?this.$to:n.doc.resolve(e));if(!i)return null;let o=this.placed,l=n.depth,a=i.depth;for(;l&&a&&1==o.childCount;)o=o.firstChild.content,l--,a--;let s=new r.Ji(o,l,a);return e>-1?new g(n.pos,e,this.$to.pos,this.$to.end(),s,t):s.size||n.pos!=this.$to.pos?new m(n.pos,i.pos,s):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let i=t.firstChild;if(t.childCount>1&&(r=0),i.type.spec.isolating&&r<=n){e=n;break}t=i.content}for(let t=1;t<=2;t++)for(let n=1==t?e:this.unplaced.openStart;n>=0;n--){let e=null,i=(n?(e=I(this.unplaced.content,n-1).firstChild).content:this.unplaced.content).firstChild;for(let o=this.depth;o>=0;o--){let{type:l,match:a}=this.frontier[o],s,u=null;if(1==t&&(i?a.matchType(i.type)||(u=a.fillBefore(r.FK.from(i),!1)):e&&l.compatibleContent(e.type)))return{sliceDepth:n,frontierDepth:o,parent:e,inject:u};if(2==t&&i&&(s=a.findWrapping(i.type)))return{sliceDepth:n,frontierDepth:o,parent:e,wrap:s};if(e&&a.matchType(e.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced,i=I(e,t);return!!i.childCount&&!i.firstChild.isLeaf&&(this.unplaced=new r.Ji(e,t+1,Math.max(n,i.size+t>=e.size-n?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,i=I(e,t);if(i.childCount<=1&&t>0){let o=e.size-t<=t+i.size;this.unplaced=new r.Ji(P(e,t-1,1),t-1,o?t-1:n)}else this.unplaced=new r.Ji(P(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:i,wrap:o}){for(;this.depth>t;)this.closeFrontierNode();if(o)for(let e=0;e<o.length;e++)this.openFrontierNode(o[e]);let l=this.unplaced,a=n?n.content:l.content,s=l.openStart-e,u=0,c=[],{match:d,type:f}=this.frontier[t];if(i){for(let e=0;e<i.childCount;e++)c.push(i.child(e));d=d.matchFragment(i)}let h=a.size+e-(l.content.size-l.openEnd);for(;u<a.childCount;){let e=a.child(u),t=d.matchType(e.type);if(!t)break;(++u>
41||0==s||e.content.size)&&(d=t,c.push(function e(t,n,i){if(n<=0)return t;let o=t.content;return n>1&&(o=o.replaceChild(0,e(o.firstChild,n-1,1==o.childCount?i-1:0))),n>0&&(o=t.type.contentMatch.fillBefore(o).append(o),i<=0&&(o=o.append(t.type.contentMatch.matchFragment(o).fillBefore(r.FK.empty,!0)))),t.copy(o)}(e.mark(f.allowedMarks(e.marks)),1==u?s:0,u==a.childCount?h:-1)))}let p=u==a.childCount;p||(h=-1),this.placed=L(this.placed,t,r.FK.from(c)),this.frontier[t].match=d,p&&h<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=a;e<h;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=p?0==e?r.Ji.empty:new r.Ji(P(l.content,e-1,1),e-1,h<0?l.openEnd:e-1):new r.Ji(P(l.content,e,u),l.openStart,l.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return -1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!D(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return -1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){n:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),o=D(e,t,r,n,i);if(o){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],i=D(e,n,r,t,!0);if(!i||i.childCount)continue n}return{depth:t,fit:o,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=L(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,n){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=L(this.placed,this.depth,r.FK.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(r.FK.empty,!0);e.childCount&&(this.placed=L(this.placed,this.frontier.length,e))}}function P(e,t,n){return 0==t?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(P(e.firstChild.content,t-1,n)))}function L(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(L(e.lastChild.content,t-1,n)))}function I(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function D(e,t,n,r,i){let o=e.node(t),l=i?e.indexAfter(t):e.index(t);if(l==o.childCount&&!n.compatibleContent(o.type))return null;let a=r.fillBefore(o.content,!0,l);return a&&!function(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}(n,o.content,l)?a:null}function _(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let r=e.start(i);if(r<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(r==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==r-1)&&n.push(i)}return n}class j extends s{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return u.fail("No node at attribute step's position");let n=Object.create(null);for(let e in t.attrs)n[e]=t.attrs[e];n[this.attr]=this.value;let i=t.type.create(n,null,t.marks);return u.fromReplace(e,this.pos,this.pos+1,new r.Ji(r.FK.from(i),0,+!t.isLeaf))}getMap(){return o.empty}invert(e){return new j(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new j(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new j(t.pos,t.attr,t.value)}}s.jsonID("attr",j);class F extends s{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;let n=e.type.create(t,e.content,e.marks);return u.ok(n)}getMap(){return o.empty}invert(e){return new F(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw RangeError("Invalid input for DocAttrStep.fromJSON");return new F(t.attr,t.value)}}s.jsonID("docAttr",F);
4let z=class extends Error{};(z=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n}).prototype=Object.create(Error.prototype),z.prototype.constructor=z,z.prototype.name="TransformError";class H{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new l}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new z(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=r.Ji.empty){let i=A(this.doc,e,t,n);return i&&this.step(i),this}replaceWith(e,t,n){return this.replace(e,t,new r.Ji(r.FK.from(n),0,0))}delete(e,t){return this.replace(e,t,r.Ji.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return!function(e,t,n,i){if(!i.size)return e.deleteRange(t,n);let o=e.doc.resolve(t),l=e.doc.resolve(n);if(O(o,l,i))return e.step(new m(t,n,i));let a=_(o,e.doc.resolve(n));0==a[a.length-1]&&a.pop();let s=-(o.depth+1);a.unshift(s);for(let e=o.depth,t=o.pos-1;e>0;e--,t--){let n=o.node(e).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;a.indexOf(e)>-1?s=e:o.before(e)==t&&a.splice(1,0,-e)}let u=a.indexOf(s),c=[],d=i.openStart;for(let e=i.content,t=0;;t++){let n=e.firstChild;if(c.push(n),t==i.openStart)break;e=n.content}for(let e=d-1;e>=0;e--){var f;let t=c[e],n=(f=t.type).spec.defining||f.spec.definingForContent;if(n&&!t.sameMarkup(o.node(Math.abs(s)-1)))d=e;else if(n||!t.type.isTextblock)break}for(let t=i.openStart;t>=0;t--){let s=(t+d+1)%(i.openStart+1),f=c[s];if(f)for(let t=0;t<a.length;t++){let c=a[(t+u)%a.length],d=!0;c<0&&(d=!1,c=-c);let h=o.node(c-1),p=o.index(c-1);if(h.canReplaceWith(p,p,f.type,f.marks))return e.replace(o.before(c),d?l.after(c):n,new r.Ji(function e(t,n,i,o,l){if(n<i){let r=t.firstChild;t=t.replaceChild(0,r.copy(e(r.content,n+1,i,o,r)))}if(n>o){let e=l.contentMatchAt(0),n=e.fillBefore(t).append(t);t=n.append(e.matchFragment(n).fillBefore(r.FK.empty,!0))}return t}(i.content,0,i.openStart,s),s,i.openEnd))}}let h=e.steps.length;for(let r=a.length-1;r>=0&&(e.replace(t,n,i),!(e.steps.length>h));r--){let e=a[r];e<0||(t=o.before(e),n=l.after(e))}}(this,e,t,n),this}replaceRangeWith(e,t,n){var i=e,o=t;if(!n.isInline&&i==o&&this.doc.resolve(i).parent.content.size){let e=function(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(let e=r.depth-1;e>=0;e--){let t=r.index(e);if(r.node(e).canReplaceWith(t,t,n))return r.before(e+1);if(t>0)return null}if(r.parentOffset==r.parent.content.size)for(let e=r.depth-1;e>=0;e--){let t=r.indexAfter(e);if(r.node(e).canReplaceWith(t,t,n))return r.after(e+1);if(t<r.node(e).childCount)break}return null}(this.doc,i,n.type);null!=e&&(i=o=e)}return this.replaceRange(i,o,new r.Ji(r.FK.from(n),0,0)),this}deleteRange(e,t){return!function(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n),o=_(r,i);for(let t=0;t<o.length;t++){let n=o[t],l=t==o.length-1;if(l&&0==n||r.node(n).type.contentMatch.validEnd)return e.delete(r.start(n),i.end(n));if(n>0&&(l||r.node(n-1).canReplace(r.index(n-1),i.indexAfter(n-1))))return e.delete(r.before(n),i.after(n))}for(let o=1;o<=r.depth&&o<=i.depth;o++)if(t-r.start(o)==r.depth-o&&n>r.end(o)&&i.end(o)-n!=i.depth-o&&r.start(o-1)==i.start(o-1)&&r.node(o-1).canReplace(r.index(o-1),i.index(o-1)))return e.delete(r.before(o),n);e.delete(t,n)}(this,e,t),this}lift(e,t){return!function(e,t,n){let{$from:i,$to:o,depth:l}=t,a=i.before(l+1),s=o.after(l+1),u=a,c=s,d=r.FK.empty,f=0;for(let e=l,t=!1;e>n;e--)t||i.index(e)>0?(t=!0,d=r.FK.from(i.node(e).copy(d)),f++):u--;let h=r.FK.empty,p=0;for(let e=l,t=!1;e>n;e--)t||o.after(e+1)<o.end(e)?(t=!0,h=r.FK.from(o.node(e).copy(h)),p++):c++;e.step(new g(u,c,a,s,new r.Ji(d.append(h),f,p),d.size-f,!0))}(this,e,t),this}join(e,t=1){return!function(e,t,n){let i=null,{linebreakReplacement:o}=e.doc.type.schema,l=e.doc.resolve(t-n),a=l.node().type;if(o&&a.inlineContent){let e="pre"==a.whitespace,t=!!a.contentMatch.matchType(o);e&&!t?i=!1:!e&&t&&(i=!0)}let s=e.steps.length;if(!1===i){let r=e.doc.resolve(t+n);C(e,r.node(),r.before(),s)}a.inlineContent&&v(e,t+n-1,a,l.node().contentMatchAt(l.index()),null==i);let u=e.mapping.slice(s),c=u.map(t-n);if(e.step(new m(c,u.map(t+n,-1),r.Ji.empty,!0)),!0===i){let t=e.doc.resolve(c);k(e,t.node(),t.before(),e.steps.length)}}(this,e,t),this}wrap(e,t){return!function(e,t,n){let i=r.FK.empty;for(let e=n.length-1;e>=0;e--){if(i.size){let t=n[e].type.contentMatch.matchFragment(i);if(!t||!t.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=r.FK.from(n[e].type.create(n[e].attrs,i))}let o=t.start,l=t.end;e.step(new g(o,l,o,l,new r.Ji(i,0,0),n.length,!0))}(this,e,t),this}setBlockType(e,t=e,n,i=null){var o=this;if(!n.isTextblock)throw RangeError("Type given to setBlockType should be a textblock");let l=o.steps.length;return o.doc.nodesBetween(e,t,(e,t)=>{var a,s,u;
4let c,d,f="function"==typeof i?i(e):i;if(e.isTextblock&&!e.hasMarkup(n,f)&&(a=o.doc,s=o.mapping.slice(l).map(t),u=n,d=(c=a.resolve(s)).index(),c.parent.canReplaceWith(d,d+1,u))){let i=null;if(n.schema.linebreakReplacement){let e="pre"==n.whitespace,t=!!n.contentMatch.matchType(n.schema.linebreakReplacement);e&&!t?i=!1:!e&&t&&(i=!0)}!1===i&&C(o,e,t,l),v(o,o.mapping.slice(l).map(t,1),n,void 0,null===i);let a=o.mapping.slice(l),s=a.map(t,1),u=a.map(t+e.nodeSize,1);return o.step(new g(s,u,s+1,u-1,new r.Ji(r.FK.from(n.create(f,null,e.marks)),0,0),1,!0)),!0===i&&k(o,e,t,l),!1}}),this}setNodeMarkup(e,t,n=null,i){return!function(e,t,n,i,o){let l=e.doc.nodeAt(t);if(!l)throw RangeError("No node at given position");n||(n=l.type);let a=n.create(i,null,o||l.marks);if(l.isLeaf)return e.replaceWith(t,t+l.nodeSize,a);if(!n.validContent(l.content))throw RangeError("Invalid content for node type "+n.name);e.step(new g(t,t+l.nodeSize,t+1,t+l.nodeSize-1,new r.Ji(r.FK.from(a),0,0),1,!0))}(this,e,t,n,i),this}setNodeAttribute(e,t,n){return this.step(new j(e,t,n)),this}setDocAttribute(e,t){return this.step(new F(e,t)),this}addNodeMark(e,t){return this.step(new h(e,t)),this}removeNodeMark(e,t){let n=this.doc.nodeAt(e);if(!n)throw RangeError("No node at position "+e);if(t instanceof r.CU)t.isInSet(n.marks)&&this.step(new p(e,t));else{let r=n.marks,i,o=[];for(;i=t.isInSet(r);)o.push(new p(e,i)),r=i.removeFromSet(r);for(let e=o.length-1;e>=0;e--)this.step(o[e])}return this}split(e,t=1,n){return!function(e,t,n=1,i){let o=e.doc.resolve(t),l=r.FK.empty,a=r.FK.empty;for(let e=o.depth,t=o.depth-n,s=n-1;e>t;e--,s--){l=r.FK.from(o.node(e).copy(l));let t=i&&i[s];a=r.FK.from(t?t.type.create(t.attrs,a):o.node(e).copy(a))}e.step(new m(t,t,new r.Ji(l.append(a),n,n),!0))}(this,e,t,n),this}addMark(e,t,n){var r;let i,o,l,a;return r=this,l=[],a=[],r.doc.nodesBetween(e,t,(r,s,u)=>{if(!r.isInline)return;let c=r.marks;if(!n.isInSet(c)&&u.type.allowsMarkType(n.type)){let u=Math.max(s,e),h=Math.min(s+r.nodeSize,t),p=n.addToSet(c);for(let e=0;e<c.length;e++)c[e].isInSet(p)||(i&&i.to==u&&i.mark.eq(c[e])?i.to=h:l.push(i=new f(u,h,c[e])));o&&o.to==u?o.to=h:a.push(o=new d(u,h,n))}}),l.forEach(e=>r.step(e)),a.forEach(e=>r.step(e)),this}removeMark(e,t,n){var i;let o,l;return i=this,o=[],l=0,i.doc.nodesBetween(e,t,(i,a)=>{if(!i.isInline)return;l++;let s=null;if(n instanceof r.sX){let e=i.marks,t;for(;t=n.isInSet(e);)(s||(s=[])).push(t),e=t.removeFromSet(e)}else n?n.isInSet(i.marks)&&(s=[n]):s=i.marks;if(s&&s.length){let n=Math.min(a+i.nodeSize,t);for(let t=0;t<s.length;t++){let r=s[t],i;for(let e=0;e<o.length;e++){let t=o[e];t.step==l-1&&r.eq(o[e].style)&&(i=t)}i?(i.to=n,i.step=l):o.push({style:r,from:Math.max(a,e),to:n,step:l})}}}),o.forEach(e=>i.step(new f(e.from,e.to,e.style))),this}clearIncompatible(e,t,n){return v(this,e,t,n),this}}},11005:(e,t,n)=>{"use strict";n.d(t,{Eq:()=>u});var r=new WeakMap,i=new WeakMap,o={},l=0,a=function(e){return e&&(e.host||a(e.parentNode))},s=function(e,t,n,s){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=a(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});o[n]||(o[n]=new WeakMap);var c=o[n],d=[],f=new Set,h=new Set(u),p=function(e){!e||f.has(e)||(f.add(e),p(e.parentNode))};u.forEach(p);var m=function(e){!e||h.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))m(e);else try{var t=e.getAttribute(s),o=null!==t&&"false"!==t,l=(r.get(e)||0)+1,a=(c.get(e)||0)+1;r.set(e,l),c.set(e,a),d.push(e),1===l&&o&&i.set(e,!0),1===a&&e.setAttribute(n,"true"),o||e.setAttribute(s,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),f.clear(),l++,function(){d.forEach(function(e){var t=r.get(e)-1,o=c.get(e)-1;r.set(e,t),c.set(e,o),t||(i.has(e)||e.removeAttribute(s),i.delete(e)),o||e.removeAttribute(n)}),--l||(r=new WeakMap,r=new WeakMap,i=new WeakMap,o={})}},u=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),s(r,i,n,"aria-hidden")):function(){return null}}},11519:(e,t,n)=>{"use strict";n.d(t,{I:()=>l});var r=n(38848),i=n(74598),o=n(90677);function l(){o.r.current||(0,i.U)();let[e]=(0,r.useState)(o.O.current);return e}},11690:(e,t,n)=>{var r=n(98983),i="object"==typeof self&&self&&self.Object===Object&&self;e.exports=r||i||Function("return this")()}
4,12854:(e,t,n)=>{var r=n(88506),i=n(90303),o=n(85793),l=Math.max,a=Math.min;e.exports=function(e,t,n){var s,u,c,d,f,h,p=0,m=!1,g=!1,y=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var n=s,r=u;return s=u=void 0,p=t,d=e.apply(r,n)}function b(e){var n=e-h,r=e-p;return void 0===h||n>=t||n<0||g&&r>=c}function w(){var e,n,r,o=i();if(b(o))return x(o);f=setTimeout(w,(e=o-h,n=o-p,r=t-e,g?a(r,c-n):r))}function x(e){return(f=void 0,y&&s)?v(e):(s=u=void 0,d)}function k(){var e,n=i(),r=b(n);if(s=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(w,t),m?v(e):d;if(g)return clearTimeout(f),f=setTimeout(w,t),v(h)}return void 0===f&&(f=setTimeout(w,t)),d}return t=o(t)||0,r(n)&&(m=!!n.leading,c=(g="maxWait"in n)?l(o(n.maxWait)||0,t):c,y="trailing"in n?!!n.trailing:y),k.cancel=function(){void 0!==f&&clearTimeout(f),p=0,s=h=u=f=void 0},k.flush=function(){return void 0===f?d:x(i())},k}},13166:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var r=n(22948);class i extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let i="",o={},l=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?i=e:!o.cause&&e&&(l=!0,i=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){let e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}let a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=(0,r.L)(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&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}i.prototype.file="",i.prototype.name="",i.prototype.reason="",i.prototype.message="",i.prototype.stack="",i.prototype.column=void 0,i.prototype.line=void 0,i.prototype.ancestors=void 0,i.prototype.cause=void 0,i.prototype.fatal=void 0,i.prototype.place=void 0,i.prototype.ruleId=void 0,i.prototype.source=void 0},13595:(e,t,n)=>{"use strict";n.d(t,{b:()=>i});var r=n(65518);function i(e,t){return(0,r.k)(e,{...t,weekStartsOn:1})}},14367:(e,t,n)=>{"use strict";n.d(t,{Oh:()=>o});var r=n(38848),i=0;function o(){r.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=n[0])?e:l()),document.body.insertAdjacentElement("beforeend",null!=(t=n[1])?t:l()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function l(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},14763:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var r=n(38848);function i(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function o(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(n=>{let r=e[n],l=t[n];return"function"==typeof r?`${r}`==`${l}`:i(r)&&i(l)?o(r,l):r===l})}function l(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function a(e){return"number"==typeof e}function s(e){return"string"==typeof e}function u(e){return"boolean"==typeof e}function c(e){return"[object Object]"===Object.prototype.toString.call(e)}function d(e){return Math.abs(e)}function f(e){return Math.sign(e)}function h(e){return y(e).map(Number)}function p(e){return e[m(e)]}function m(e){return Math.max(0,e.length-1)}function g(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function y(e){return Object.keys(e)}function v(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function b(){let e=[],t={add:function(n,r,i,o={passive:!0}){let l;return"addEventListener"in n?(n.addEventListener(r,i,o),l=()=>n.removeEventListener(r,i,o)):(n.addListener(i),l=()=>n.removeListener(i)),e.push(l),t},clear:function(){e=e.filter(e=>e())}};return t}function w(e=0,t=0){let n=d(e-t);function r(n){return n<e||n>t}return{length:n,max:t,min:e,constrain:function(n){return r(n)?n<e?e:t:n},reachedAny:r,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e}
4,removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function x(e){let t=e;function n(e){return a(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function k(e,t){let n="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},r=t.style,i=!1;return{clear:function(){!i&&(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){i||(r.transform=n(e.direction(t)))},toggleActive:function(e){i=!e}}}let C={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function S(e,t,n){let r,i,o,l,E,M=e.ownerDocument,T=M.defaultView,R=function(e){function t(e,t){return function e(t,n){return[t,n].reduce((t,n)=>(y(n).forEach(r=>{let i=t[r],o=n[r],l=c(i)&&c(o);t[r]=l?e(i,o):o}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){let r=n.breakpoints||{},i=y(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{});return t(n,i)},optionsMediaQueries:function(t){return t.map(e=>y(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(T),A=(E=[],{init:function(e,t){return(E=t.filter(({options:e})=>!1!==R.optionsAtMedia(e).active)).forEach(t=>t.init(e,R)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){E=E.filter(e=>e.destroy())}}),O=b(),N=function(){let e,t={},n={init:function(t){e=t},emit:function(r){return(t[r]||[]).forEach(t=>t(e,r)),n},off:function(e,r){return t[e]=(t[e]||[]).filter(e=>e!==r),n},on:function(e,r){return t[e]=(t[e]||[]).concat([r]),n},clear:function(){t={}}};return n}(),{mergeOptions:P,optionsAtMedia:L,optionsMediaQueries:I}=R,{on:D,off:_,emit:j}=N,F=!1,z=P(C,S.globalOptions),H=P(z),B=[];function $(t,n){if(F)return;H=L(z=P(z,t)),B=n||B;let{container:c,slides:C}=H;o=(s(c)?e.querySelector(c):c)||e.children[0];let S=s(C)?o.querySelectorAll(C):C;l=[].slice.call(S||o.children),r=function t(n){let r=function(e,t,n,r,i,o,l){let c,C,{align:S,axis:E,direction:M,startIndex:T,loop:R,duration:A,dragFree:O,dragThreshold:N,inViewThreshold:P,slidesToScroll:L,skipSnaps:I,containScroll:D,watchResize:_,watchSlides:j,watchDrag:F}=o,z={measure:function(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}},H=z.measure(t),B=n.map(z.measure),$=function(e,t){let n="rtl"===t,r="y"===e,i=!r&&n?-1:1;return{scroll:r?"y":"x",cross:r?"x":"y",startEdge:r?"top":n?"right":"left",endEdge:r?"bottom":n?"left":"right",measureSize:function(e){let{height:t,width:n}=e;return r?t:n},direction:function(e){return e*i}}}(E,M),U=$.measureSize(H),V={measure:function(e){return e/100*U}},W=function(e,t){let n={start:function(){return 0},center:function(e){return(t-e)/2},end:function(e){return t-e}};return{measure:function(r,i){return s(e)?n[e](r):e(t,r,i)}}}(S,U),q=!R&&!!D,{slideSizes:K,slideSizesWithGaps:G,startGap:Y,endGap:J}=function(e,t,n,r,i,o){let{measureSize:l,startEdge:a,endEdge:s}=e,u=n[0]&&i,c=function(){if(!u)return 0;let e=n[0];return d(t[a]-e[a])}(),f=u?parseFloat(o.getComputedStyle(p(r)).getPropertyValue(`margin-${s}`)):0,h=n.map(l),g=n.map((e,t,n)=>{let r=t===m(n);return t?r?h[t]+f:n[t+1][a]-e[a]:h[t]+c}).map(d);return{slideSizes:h,slideSizesWithGaps:g,startGap:c,endGap:f}}($,H,B,n,R||!!D,i),X=function(e,t,n,r,i,o,l,s,u){let{startEdge:c,endEdge:f,direction:g}=e,y=a(n);return{groupSlides:function(e){return y?h(e).filter(e=>e%n==0).map(t=>e.slice(t,t+n)):e.length?h(e).reduce((n,a,u)=>{let h=p(n)||0,y=a===m(e),v=i[c]-o[h][c],b=i[c]-o[a][f],w=r||0!==h?0:g(l),x=d(b-(!r&&y?g(s):0)-(v+w));return u&&x>t+2&&n.push(a),y&&n.push(e.length),n},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}}}($,U,L,R,H,B,Y,J,0),{snaps:Z,snapsAligned:Q}=function(e,t,n,r,i){let{startEdge:o,endEdge:l}=e,{groupSlides:a}=i,s=a(r).map(e=>p(e)[l]-e[0][o]).map(d).map(t.measure),u=r.map(e=>n[o]-e[o]).map(e=>-d(e)),c=a(u).map(e=>e[0]).map((e,t)=>e+s[t]);return{snaps:u,snapsAligned:c}}
4($,W,H,B,X),ee=-p(Z)+p(G),{snapsContained:et,scrollContainLimit:en}=function(e,t,n,r,i){let o=w(-t+e,0),l=n.map((e,t)=>{let{min:r,max:i}=o,l=o.constrain(e),a=t===m(n);return t?a||function(e,t){return 1>d(e-t)}(r,l)?r:function(e,t){return 1>d(e-t)}(i,l)?i:l:i}).map(e=>parseFloat(e.toFixed(3))),a=function(){let e=l[0],t=p(l);return w(l.lastIndexOf(e),l.indexOf(t)+1)}();return{snapsContained:function(){if(t<=e+2)return[o.max];if("keepSnaps"===r)return l;let{min:n,max:i}=a;return l.slice(n,i)}(),scrollContainLimit:a}}(U,ee,Q,D,0),er=q?et:Q,{limit:ei}=function(e,t,n){let r=t[0];return{limit:w(n?r-e:p(t),r)}}(ee,er,R),eo=function e(t,n,r){let{constrain:i}=w(0,t),o=t+1,l=a(n);function a(e){return r?d((o+e)%o):i(e)}function s(){return e(t,l,r)}let u={get:function(){return l},set:function(e){return l=a(e),u},add:function(e){return s().set(l+e)},clone:s};return u}(m(er),T,R),el=eo.clone(),ea=h(n),es=function(e,t,n,r){let i=b(),o=1e3/60,l=null,a=0,s=0;function u(e){if(!s)return;l||(l=e);let i=e-l;for(l=e,a+=i;a>=o;)n(o),a-=o;r(a/o),s&&t.requestAnimationFrame(u)}function c(){t.cancelAnimationFrame(s),l=null,a=0,s=0}
4return{init:function(){i.add(e,"visibilitychange",()=>{e.hidden&&(l=null,a=0)})},destroy:function(){c(),i.clear()},start:function(){s||(s=t.requestAnimationFrame(u))},stop:c,update:()=>n(o),render:r}}(r,i,e=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}},i)=>{r||n.constrain(e.pointerDown()),t.seek(i)})(ek,e),e=>(({scrollBody:e,translate:t,location:n,offsetLocation:r,scrollLooper:i,slideLooper:o,dragHandler:l,animation:a,eventHandler:s,scrollBounds:u,options:{loop:c}},d)=>{let f=e.settled(),h=!u.shouldConstrain(),p=c?f:f&&h;p&&!l.pointerDown()&&(a.stop(),s.emit("settle")),p||s.emit("scroll");let m=n.get()*d+ed.get()*(1-d);r.set(m),c&&(i.loop(e.direction()),o.loop()),t.to(r.get())})(ek,e)),eu=er[eo.get()],ec=x(eu),ed=x(eu),ef=x(eu),eh=x(eu),ep=function(e,t,n,r,i,o){let l=0,a=0,s=i,u=.68,c=e.get(),h=0;function p(e){return s=e,g}function m(e){return u=e,g}let g={direction:function(){return a},duration:function(){return s},velocity:function(){return l},seek:function(t){let i=t/1e3,o=s*i,d=r.get()-e.get(),p=0;return s?(n.set(e),l+=d/o,l*=u,c+=l,e.add(l*i),p=c-h):(l=0,n.set(r),e.set(r),p=d),a=f(p),h=c,g},settled:function(){return .001>d(r.get()-t.get())},useBaseFriction:function(){return m(.68)},useBaseDuration:function(){return p(i)},useFriction:m,useDuration:p};return g}(ec,ef,ed,eh,A,.68),em=function(e,t,n,r,i){let{reachedAny:o,removeOffset:l,constrain:a}=r;function s(e){return e.concat().sort((e,t)=>d(e)-d(t))[0]}function u(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return s(i);let o=i.filter(e=>f(e)===r);return o.length?s(o):p(i)-n}return{byDistance:function(n,r){let s=i.get()+n,{index:c,distance:f}=function(n){let r=e?l(n):a(n),{index:i}=t.map((e,t)=>({diff:u(e-r,0),index:t})).sort((e,t)=>d(e.diff)-d(t.diff))[0];return{index:i,distance:r}}(s),h=!e&&o(s);if(!r||h)return{index:c,distance:n};let p=n+u(t[c]-f,0);return{index:c,distance:p}},byIndex:function(e,n){let r=u(t[e]-i.get(),n);return{index:e,distance:r}},shortcut:u}}(R,er,ee,ei,eh),eg=function(e,t,n,r,i,o,l){function a(i){let a=i.distance,s=i.index!==t.get();
4o.add(a),a&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),s&&(n.set(t.get()),t.set(i.index),l.emit("select"))}return{distance:function(e,t){a(i.byDistance(e,t))},index:function(e,n){let r=t.clone().set(e);a(i.byIndex(r.get(),n))}}}(es,eo,el,ep,em,eh,l),ey=function(e){let{max:t,length:n}=e;return{get:function(e){return n?-((e-t)/n):0}}}(ei),ev=b(),eb=function(e,t,n,r){let i,o={},l=null,a=null,s=!1;return{init:function(){i=new IntersectionObserver(e=>{s||(e.forEach(e=>{o[t.indexOf(e.target)]=e}),l=null,a=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(e=>i.observe(e))},destroy:function(){i&&i.disconnect(),s=!0},get:function(e=!0){if(e&&l)return l;if(!e&&a)return a;let t=y(o).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:i}=o[r];return(e&&i||!e&&!i)&&t.push(r),t},[]);return e&&(l=t),e||(a=t),t}}}(t,n,l,P),{slideRegistry:ew}=function(e,t,n,r,i,o){let{groupSlides:l}=i,{min:a,max:s}=r;return{slideRegistry:function(){let r=l(o);return 1===n.length?[o]:e&&"keepSnaps"!==t?r.slice(a,s).map((e,t,n)=>{let r=t===m(n);return t?r?g(m(o)-p(n)[0]+1,p(n)[0]):e:g(p(n[0])+1)}):r}()}}(q,D,er,en,X,ea),ex=function(e,t,n,r,i,o,l){let s=0;function u(e){"Tab"===e.code&&(s=new Date().getTime())}function c(u){o.add(u,"focus",()=>{if(new Date().getTime()-s>10)return;e.scrollLeft=0;let o=t.indexOf(u),c=n.findIndex(e=>e.includes(o));a(c)&&(i.useDuration(0),r.index(c,0),l.emit("slideFocus"))},{passive:!0,capture:!0})}return{init:function(){o.add(document,"keydown",u,!1),t.forEach(c)}}}(e,n,ew,eg,ep,ev,l),ek={ownerDocument:r,ownerWindow:i,eventHandler:l,containerRect:H,slideRects:B,animation:es,axis:$,dragHandler:function(e,t,n,r,i,o,l,a,s,c,h,p,m,g,y,x,k,C,S){let{cross:E,direction:M}=e,T=["INPUT","SELECT","TEXTAREA"],R={passive:!1},A=b(),O=b(),N=w(50,225).constrain(g.measure(20)),P={mouse:300,touch:400},L={mouse:500,touch:600},I=y?43:25,D=!1,_=0,j=0,F=!1,z=!1,H=!1,B=!1;function $(e){if(!v(e,r)&&e.touches.length>=2)return U(e);let t=o.readPoint(e),n=o.readPoint(e,E),l=d(t-_),s=d(n-j);if(!z&&!B&&(!e.cancelable||!(z=l>s)))return U(e);let u=o.pointerMove(e);l>x&&(H=!0),c.useFriction(.3).useDuration(.75),a.start(),i.add(M(u)),e.preventDefault()}function U(e){let t=h.byDistance(0,!1).index!==p.get(),n=o.pointerUp(e)*(y?L:P)[B?"mouse":"touch"],r=function(e,t){let n=p.add(-1*f(e)),r=h.byDistance(e,!y).distance;return y||d(e)<N?r:k&&t?.5*r:h.byIndex(n.get(),0).distance}(M(n),t),i=function(e,t){var n,r;if(0===e||0===t||d(e)<=d(t))return 0;let i=(n=d(e),r=d(t),d(n-r));return d(i/e)}(n,r);z=!1,F=!1,O.clear(),c.useDuration(I-10*i).useFriction(.68+i/50),s.distance(r,!y),B=!1,m.emit("pointerUp")}function V(e){H&&(e.stopPropagation(),e.preventDefault(),H=!1)}return{init:function(e){S&&A.add(t,"dragstart",e=>e.preventDefault(),R).add(t,"touchmove",()=>void 0,R).add(t,"touchend",()=>void 0).add(t,"touchstart",a).add(t,"mousedown",a).add(t,"touchcancel",U).add(t,"contextmenu",U).add(t,"click",V,!0);function a(a){(u(S)||S(e,a))&&function(e){let a=v(e,r);if((B=a,H=y&&a&&!e.buttons&&D,D=d(i.get()-l.get())>=2,!a||0===e.button)&&!function(e){let t=e.nodeName||"";return T.includes(t)}(e.target)){F=!0,o.pointerDown(e),c.useFriction(0).useDuration(0),i.set(l);let r=B?n:t;O.add(r,"touchmove",$,R).add(r,"touchend",U).add(r,"mousemove",$,R).add(r,"mouseup",U),_=o.readPoint(e),j=o.readPoint(e,E),m.emit("pointerDown")}}(a)}},destroy:function(){A.clear(),O.clear()},pointerDown:function(){return F}}}($,e,r,i,eh,function(e,t){let n,r;function i(e){return e.timeStamp}function o(n,r){let i=r||e.scroll,o=`client${"x"===i?"X":"Y"}`;return(v(n,t)?n:n.touches[0])[o]}return{pointerDown:function(e){return n=e,r=e,o(e)},pointerMove:function(e){let t=o(e)-o(r),l=i(e)-i(n)>170;return r=e,l&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;let t=o(r)-o(n),l=i(e)-i(n),a=i(e)-i(r)>170,s=t/l;return l&&!a&&d(s)>.1?s:0},readPoint:o}}($,i),ec,es,eg,ep,em,eo,l,V,O,N,I,0,F),eventStore:ev,percentOfView:V,index:eo,indexPrevious:el,limit:ei,location:ec,offsetLocation:ef,previousLocation:ed,options:o,resizeHandler:function(e,t,n,r,i,o,l){let a,s,c=[],f=!1;function h(e){return i.measureSize(l.measure(e))}return{init:function(i){o&&(s=h(e),c=r.map(h),a=new ResizeObserver(l=>{!f&&(u(o)||o(i,l))&&function(o){for(let l of o){let o=l.target===e,a=r.indexOf(l.target),u=o?s:c[a];if(d(h(o?e:r[a])-u)>=.5){n.requestAnimationFrame(()=>{i.reInit(),t.emit("resize")});break}}}(l)}
4),[e].concat(r).forEach(e=>a.observe(e)))},destroy:function(){a&&a.disconnect(),f=!0}}}(t,l,i,n,$,_,z),scrollBody:ep,scrollBounds:function(e,t,n,r,i){let o=i.measure(10),l=i.measure(50),a=w(.1,.99),s=!1;function u(){return!s&&!!e.reachedAny(n.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:u,constrain:function(i){if(!u())return;let s=e.reachedMin(t.get())?"min":"max",c=d(e[s]-t.get()),f=n.get()-t.get(),h=a.constrain(c/l);n.subtract(f*h),!i&&d(f)<o&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(e){s=!e}}}(ei,ef,eh,ep,V),scrollLooper:function(e,t,n,r){let{reachedMin:i,reachedMax:o}=w(t.min+.1,t.max+.1);return{loop:function(t){if(!(1===t?o(n.get()):-1===t&&i(n.get())))return;let l=-1*t*e;r.forEach(e=>e.add(l))}}}(ee,ei,ef,[ec,ef,ed,eh]),scrollProgress:ey,scrollSnapList:er.map(ey.get),scrollSnaps:er,scrollTarget:em,scrollTo:eg,slideLooper:function(e,t,n,r,i,o,l,a,s){let u=h(i),c=h(i).reverse(),d=m(p(c,l[0]),n,!1).concat(m(p(u,t-l[0]-1),-n,!0));function f(e,t){return e.reduce((e,t)=>e-i[t],t)}function p(e,t){return e.reduce((e,n)=>f(e,t)>0?e.concat([n]):e,[])}function m(i,l,u){let c=o.map((e,n)=>({start:e-r[n]+.5+l,end:e+t-.5+l}));return i.map(t=>{let r=u?0:-n,i=u?n:0,o=c[t][u?"end":"start"];return{index:t,loopPoint:o,slideLocation:x(-1),translate:k(e,s[t]),target:()=>a.get()>o?r:i}})}return{canLoop:function(){return d.every(({index:e})=>.1>=f(u.filter(t=>t!==e),t))},clear:function(){d.forEach(e=>e.translate.clear())},loop:function(){d.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})},loopPoints:d}}($,U,ee,K,G,Z,er,ef,n),slideFocus:ex,slidesHandler:(C=!1,{init:function(e){j&&(c=new MutationObserver(t=>{!C&&(u(j)||j(e,t))&&function(t){for(let n of t)if("childList"===n.type){e.reInit(),l.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){c&&c.disconnect(),C=!0}}),slidesInView:eb,slideIndexes:ea,slideRegistry:ew,slidesToScroll:X,target:eh,translate:k($,t)};return ek}(e,o,l,M,T,n,N);return n.loop&&!r.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):r}(H),I([z,...B.map(({options:e})=>e)]).forEach(e=>O.add(e,"change",U)),H.active&&(r.translate.to(r.location.get()),r.animation.init(),r.slidesInView.init(),r.slideFocus.init(),r.eventHandler.init(K),r.resizeHandler.init(K),r.slidesHandler.init(K),r.options.loop&&r.slideLooper.loop(),o.offsetParent&&l.length&&r.dragHandler.init(K),i=A.init(K,B))}function U(e,t){let n=q();V(),$(P({startIndex:n},e),t),N.emit("reInit")}function V(){r.dragHandler.destroy(),r.eventStore.clear(),r.translate.clear(),r.slideLooper.clear(),r.resizeHandler.destroy(),r.slidesHandler.destroy(),r.slidesInView.destroy(),r.animation.destroy(),A.destroy(),O.clear()}function W(e,t,n){H.active&&!F&&(r.scrollBody.useBaseFriction().useDuration(!0===t?0:H.duration),r.scrollTo.index(e,n||0))}function q(){return r.index.get()}let K={canScrollNext:function(){return r.index.add(1).get()!==q()},canScrollPrev:function(){return r.index.add(-1).get()!==q()},containerNode:function(){return o},internalEngine:function(){return r},destroy:function(){F||(F=!0,O.clear(),V(),N.emit("destroy"),N.clear())},off:_,on:D,emit:j,plugins:function(){return i},previousScrollSnap:function(){return r.indexPrevious.get()},reInit:U,rootNode:function(){return e},scrollNext:function(e){W(r.index.add(1).get(),e,-1)},scrollPrev:function(e){W(r.index.add(-1).get(),e,1)},scrollProgress:function(){return r.scrollProgress.get(r.location.get())},scrollSnapList:function(){return r.scrollSnapList},scrollTo:W,selectedScrollSnap:q,slideNodes:function(){return l},slidesInView:function(){return r.slidesInView.get()},slidesNotInView:function(){return r.slidesInView.get(!1)}};return $(t,n),setTimeout(()=>N.emit("init"),0),K}function E(e={},t=[]){let n=(0,r.useRef)(e),i=(0,r.useRef)(t),[a,s]=(0,r.useState)(),[u,c]=(0,r.useState)(),d=(0,r.useCallback)(()=>{a&&a.reInit(n.current,i.current)},[a]);return(0,r.useEffect)(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&u){S.globalOptions=E.globalOptions;let e=S(u,n.current,i.current);return s(e),()=>e.destroy()}s(void 0)},[u,s]),(0,r.useEffect)(()=>{o(n.current,e)||(n.current=e,d())},[e,d]),(0,r.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let n=l(e),r=l(t);return n.every((e,t)=>o(e,r[t]))}(i.current,t)&&(i.current=t,d())},[t,d]),[c,a]}S.globalOptions=void 0,E.globalOptions=void 0},14955:(e,t,n)=>{"use strict";n.d(t,{p:()=>i});var r=n(10276);function i(e,t){let n=(0,r.a)(e,null==t?void 0:t.in),i=n.getMonth();return n.setFullYear(n.getFullYear(),i+1,0),n.setHours(23,59,59,999),n}},15266:(e,t)=>{"use strict";
4Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{VALID_LOADERS:function(){return n},imageConfigDefault:function(){return r}});let n=["default","imgix","cloudinary","akamai","custom"],r={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:void 0,unoptimized:!1}},15381:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(38848);function i(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},15752:(e,t,n)=>{"use strict";function r(){return"undefined"!=typeof window}function i(e){return a(e)?(e.nodeName||"").toLowerCase():"#document"}function o(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function l(e){var t;return null==(t=(a(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function a(e){return!!r()&&(e instanceof Node||e instanceof o(e).Node)}function s(e){return!!r()&&(e instanceof Element||e instanceof o(e).Element)}function u(e){return!!r()&&(e instanceof HTMLElement||e instanceof o(e).HTMLElement)}function c(e){return!!r()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof o(e).ShadowRoot)}function d(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=v(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function f(e){return["table","td","th"].includes(i(e))}function h(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function p(e){let t=g(),n=s(e)?v(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function m(e){let t=w(e);for(;u(t)&&!y(t);){if(p(t))return t;if(h(t))break;t=w(t)}return null}function g(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function y(e){return["html","body","#document"].includes(i(e))}function v(e){return o(e).getComputedStyle(e)}function b(e){return s(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function w(e){if("html"===i(e))return e;let t=e.assignedSlot||e.parentNode||c(e)&&e.host||l(e);return c(t)?t.host:t}function x(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}n.d(t,{$4:()=>w,CP:()=>b,L9:()=>v,Lv:()=>f,Ng:()=>c,Tc:()=>g,Tf:()=>h,ZU:()=>d,_m:()=>x,ep:()=>l,eu:()=>y,gJ:()=>m,mq:()=>i,sQ:()=>p,sb:()=>u,v9:()=>function e(t,n,r){var i;void 0===n&&(n=[]),void 0===r&&(r=!0);let l=function e(t){let n=w(t);return y(n)?t.ownerDocument?t.ownerDocument.body:t.body:u(n)&&d(n)?n:e(n)}(t),a=l===(null==(i=t.ownerDocument)?void 0:i.body),s=o(l);if(a){let t=x(s);return n.concat(s,s.visualViewport||[],d(l)?l:[],t&&r?e(t):[])}return n.concat(l,e(l,[],r))},vq:()=>s,zk:()=>o})},16089:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},l=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;else if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(t=arguments[f],null!=t)for(n in t)r=s(d,n),d!==(i=s(t,n))&&(p&&i&&(l(i)||(u=o(i)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&l(r)?r:{},a(d,{name:n,newValue:e(p,c,i)})):void 0!==i&&a(d,{name:n,newValue:i}));return d}},16270:(e,t,n)=>{e.exports=n(11690).Symbol},16335:(e,t,n)=>{"use strict";function r(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}n.d(t,{C:()=>r})},16617:(e,t,n)=>{"use strict";n.d(t,{A:()=>
4o});var r=n(43684);function i(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function o(e){let t,n,o;function a(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{let t=i+o>>>1;0>n(e[t],r)?i=t+1:o=t}while(i<o)}return i}return 2!==e.length?(t=r.A,n=(t,n)=>(0,r.A)(e(t),n),o=(t,n)=>e(t)-n):(t=e===r.A||e===i?e:l,n=e,o=e),{left:a,center:function(e,t,n=0,r=e.length){let i=a(e,t,n,r-1);return i>n&&o(e[i-1],t)>-o(e[i],t)?i-1:i},right:function(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{let t=i+o>>>1;0>=n(e[t],r)?i=t+1:o=t}while(i<o)}return i}}}function l(){return 0}},16820:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return g},useLinkStatus:function(){return v}});let r=n(5142),i=n(38476),o=r._(n(38848)),l=n(60939),a=n(82317),s=n(98148),u=n(92697),c=n(22175);n(93124);let d=n(21564),f=n(10094),h=n(77084);n(90370);let p=n(17727);function m(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}function g(e){var t;let n,r,l,[g,v]=(0,o.useOptimistic)(d.IDLE_LINK_STATUS),b=(0,o.useRef)(null),{href:w,as:x,children:k,prefetch:C=null,passHref:S,replace:E,shallow:M,scroll:T,onClick:R,onMouseEnter:A,onTouchStart:O,legacyBehavior:N=!1,onNavigate:P,ref:L,unstable_dynamicOnHover:I,...D}=e;n=k,N&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let _=o.default.useContext(a.AppRouterContext),j=!1!==C,F=!1!==C?null===(t=C)||"auto"===t?p.FetchStrategy.PPR:p.FetchStrategy.Full:p.FetchStrategy.PPR,{href:z,as:H}=o.default.useMemo(()=>{let e=m(w);return{href:e,as:x?m(x):e}},[w,x]);N&&(r=o.default.Children.only(n));let B=N?r&&"object"==typeof r&&r.ref:L,$=o.default.useCallback(e=>(null!==_&&(b.current=(0,d.mountLinkInstance)(e,z,_,F,j,v)),()=>{b.current&&((0,d.unmountLinkForCurrentNavigation)(b.current),b.current=null),(0,d.unmountPrefetchableInstance)(e)}),[j,z,_,F,v]),U={ref:(0,s.useMergedRef)($,B),onClick(e){N||"function"!=typeof R||R(e),N&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),_&&(e.defaultPrevented||function(e,t,n,r,i,l,a){let{nodeName:s}=e.currentTarget;if(!("A"===s.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,f.isLocalURL)(t)){i&&(e.preventDefault(),location.replace(t));return}if(e.preventDefault(),a){let e=!1;if(a({preventDefault:()=>{e=!0}}),e)return}o.default.startTransition(()=>{(0,h.dispatchNavigateAction)(n||t,i?"replace":"push",null==l||l,r.current)})}}(e,z,H,b,E,T,P))},onMouseEnter(e){N||"function"!=typeof A||A(e),N&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),_&&j&&(0,d.onNavigationIntent)(e.currentTarget,!0===I)},onTouchStart:function(e){N||"function"!=typeof O||O(e),N&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),_&&j&&(0,d.onNavigationIntent)(e.currentTarget,!0===I)}};return(0,u.isAbsoluteUrl)(H)?U.href=H:N&&!S&&("a"!==r.type||"href"in r.props)||(U.href=(0,c.addBasePath)(H)),l=N?o.default.cloneElement(r,U):(0,i.jsx)("a",{...D,...U,children:n}),(0,i.jsx)(y.Provider,{value:g,children:l})}let y=(0,o.createContext)(d.IDLE_LINK_STATUS),v=()=>(0,o.useContext)(y);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},17966:(e,t,n)=>{"use strict";n.d(t,{F:()=>o});let r=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,i=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r);else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}(e))&&(r&&(r+=" "),r+=t);return r},o=(e,t)=>n=>{var o;if((null==t?void 0:t.variants)==null)return i(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:l,defaultVariants:a}=t,s=Object.keys(l).map(e=>{let t=null==n?void 0:n[e],i=null==a?void 0:a[e];if(null===t)return null;let o=r(t)||r(i);return l[e][o]}),u=n&&Object.entries(n).reduce((e,t)=>
4{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return i(e,s,null==t||null==(o=t.compoundVariants)?void 0:o.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...u}[t]):({...a,...u})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},18090:(e,t,n)=>{"use strict";function r(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function i(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}n.d(t,{A:()=>r,X:()=>i})},18429:(e,t,n)=>{"use strict";n.d(t,{p:()=>l});var r=n(69906),i=n(13595),o=n(10276);function l(e,t){let n=(0,o.a)(e,null==t?void 0:t.in),l=n.getFullYear(),a=(0,r.w)(n,0);a.setFullYear(l+1,0,4),a.setHours(0,0,0,0);let s=(0,i.b)(a),u=(0,r.w)(n,0);u.setFullYear(l,0,4),u.setHours(0,0,0,0);let c=(0,i.b)(u);return n.getTime()>=s.getTime()?l+1:n.getTime()>=c.getTime()?l:l-1}},19891:(e,t,n)=>{"use strict";n.d(t,{R6:()=>o,Ui:()=>i});var r=n(88050);let i=(0,r.f)(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());i.range;let o=(0,r.f)(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());o.range},20290:(e,t,n)=>{"use strict";n.d(t,{A:()=>el});var r=n(8760),i=(e,t)=>{if("slot"===e)return 0;if(e instanceof Function)return e(t);let{children:n,...r}=null!=t?t:{};if("svg"===e)throw Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[e,r,n]},o=/^\s*>\s$/,l=r.bP.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:e}){return i("blockquote",{...(0,r.KV)(this.options.HTMLAttributes,e),children:i("slot",{})})},parseMarkdown:(e,t)=>t.createNode("blockquote",void 0,t.parseChildren(e.tokens||[])),renderMarkdown:(e,t)=>{if(!e.content)return"";let n=[];return e.content.forEach(e=>{let r=t.renderChildren([e]).split("\n").map(e=>""===e.trim()?">":`> ${e}`);n.push(r.join("\n"))}),n.join(` 5> 6`)},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}}
6,addInputRules(){return[(0,r.tG)({find:o,type:this.type})]}}),a=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,s=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,u=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,c=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,d=r.CU.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!==e.style.fontWeight&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return i("strong",{...(0,r.KV)(this.options.HTMLAttributes,e),children:i("slot",{})})},markdownTokenName:"strong",parseMarkdown:(e,t)=>t.applyMark("bold",t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`**${t.renderChildren(e)}**`,addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}}
6,addInputRules(){return[(0,r.OX)({find:a,type:this.type}),(0,r.OX)({find:u,type:this.type})]},addPasteRules(){return[(0,r.Zc)({find:s,type:this.type}),(0,r.Zc)({find:c,type:this.type})]}}),f=/(^|[^`])`([^`]+)`(?!`)$/,h=/(^|[^`])`([^`]+)`(?!`)/g,p=r.CU.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:e}){return["code",(0,r.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"codespan",parseMarkdown:(e,t)=>t.applyMark("code",[{type:"text",text:e.text||""}]),renderMarkdown:(e,t)=>e.content?`\`${t.renderChildren(e.content)}\``:"",addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[(0,r.OX)({find:f,type:this.type})]},addPasteRules(){return[(0,r.Zc)({find:h,type:this.type})]}}),m=n(4033),g=/^```([a-z]+)?[\s\n]$/,y=/^~~~([a-z]+)?[\s\n]$/,v=r.bP.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:4,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;let{languageClassPrefix:n}=this.options;if(!n)return null;let r=[...(null==(t=e.firstElementChild)?void 0:t.classList)||[]].filter(e=>e.startsWith(n)).map(e=>e.replace(n,""))[0];return r||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:e,HTMLAttributes:t}){return["pre",(0,r.KV)(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},markdownTokenName:"code",parseMarkdown:(e,t)=>{var n;return(null==(n=e.raw)?void 0:n.startsWith("```"))===!1&&"indented"!==e.codeBlockStyle?[]:t.createNode("codeBlock",{language:e.lang||null},e.text?[t.createTextNode(e.text)]:[])},renderMarkdown:(e,t)=>{var n;let r=(null==(n=e.attrs)?void 0:n.language)||"";return e.content?[`\`\`\`${r}`,t.renderChildren(e.content),"```"].join("\n"):`\`\`\`${r} 7 8\`\`\``},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:e,$anchor:t}=this.editor.state.selection,n=1===t.pos;return!!e&&t.parent.type.name===this.name&&(!!n||!t.parent.textContent.length)&&this.editor.commands.clearNodes()},Tab:({editor:e})=>{var t;if(!this.options.enableTabIndentation)return!1;let n=null!=(t=this.options.tabSize)?t:4,{state:r}=e,{selection:i}=r,{$from:o,empty:l}=i;if(o.parent.type!==this.type)return!1;let a=" ".repeat(n);return l?e.commands.insertContent(a):e.commands.command(({tr:e})=>{let{from:t,to:n}=i,o=r.doc.textBetween(t,n,"\n","\n").split("\n").map(e=>a+e).join("\n");return e.replaceWith(t,n,r.schema.text(o)),!0})},"Shift-Tab":({editor:e})=>{var t;if(!this.options.enableTabIndentation)return!1;let n=null!=(t=this.options.tabSize)?t:4,{state:r}=e,{selection:i}=r,{$from:o,empty:l}=i;return o.parent.type===this.type&&(l?e.commands.command(({tr:e})=>{var t;let{pos:i}=o,l=o.start(),a=o.end(),s=r.doc.textBetween(l,a,"\n","\n").split("\n"),u=0,c=0,d=i-l;for(let e=0;e<s.length;e+=1){if(c+s[e].length>=d){u=e;break}c+=s[e].length+1}let f=Math.min(((null==(t=s[u].match(/^ */))?void 0:t[0])||"").length,n);if(0===f)return!0;let h=l;for(let e=0;e<u;e+=1)h+=s[e].length+1;return e.delete(h,h+f),i-h<=f&&e.setSelection(m.U3.create(e.doc,h)),!0}):e.commands.command(({tr:e})=>{let{from:t,to:o}=i,l=r.doc.textBetween(t,o,"\n","\n").split("\n").map(e=>{var t;let r=Math.min(((null==(t=e.match(/^ */))?void 0:t[0])||"").length,n);return e.slice(r)}).join("\n");return e.replaceWith(t,o,r.schema.text(l)),!0}))},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;let{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;let o=r.parentOffset===r.parent.nodeSize-2,l=r.parent.textContent.endsWith("\n\n");return!!o&&!!l&&e.chain().command(({tr:e})=>(e.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>
8{if(!this.options.exitOnArrowDown)return!1;let{state:t}=e,{selection:n,doc:r}=t,{$from:i,empty:o}=n;if(!o||i.parent.type!==this.type||i.parentOffset!==i.parent.nodeSize-2)return!1;let l=i.after();return void 0!==l&&(r.nodeAt(l)?e.commands.command(({tr:e})=>(e.setSelection(m.LN.near(r.resolve(l))),!0)):e.commands.exitCode())}}},addInputRules(){return[(0,r.JJ)({find:g,type:this.type,getAttributes:e=>({language:e[1]})}),(0,r.JJ)({find:y,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new m.k_({key:new m.hs("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;let n=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("vscode-editor-data"),i=r?JSON.parse(r):void 0,o=null==i?void 0:i.mode;if(!n||!o)return!1;let{tr:l,schema:a}=e.state,s=a.text(n.replace(/\r\n?/g,"\n"));return l.replaceSelectionWith(this.type.create({language:o},s)),l.selection.$from.parent.type!==this.type&&l.setSelection(m.U3.near(l.doc.resolve(Math.max(0,l.selection.from-2)))),l.setMeta("paste",!0),e.dispatch(l),!0}}})]}}),b=r.bP.create({name:"doc",topNode:!0,content:"block+",renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n\n"):""}),w=r.bP.create({name:"hardBreak",markdownTokenName:"br",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:e}){return["br",(0,r.KV)(this.options.HTMLAttributes,e)]},renderText:()=>"\n",renderMarkdown:()=>` 9`,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{let{selection:e,storedMarks:i}=n;if(e.$from.parent.type.spec.isolating)return!1;let{keepMarks:o}=this.options,{splittableMarks:l}=r.extensionManager,a=i||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&a&&o){let t=a.filter(e=>l.includes(e.type.name));e.ensureMarks(t)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),x=r.bP.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){let n=this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0];return[`h${n}`,(0,r.KV)(this.options.HTMLAttributes,t),0]},parseMarkdown:(e,t)=>t.createNode("heading",{level:e.depth||1},t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>{var n;let r=(null==(n=e.attrs)?void 0:n.level)?parseInt(e.attrs.level,10):1,i="#".repeat(r);return e.content?`${i} ${t.renderChildren(e.content)}`:""},addCommands(){return{setHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.setNode(this.name,e),toggleHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,...{[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}}),{})},addInputRules(){return this.options.levels.map(e=>(0,r.JJ)({find:RegExp(`^(#{${Math.min(...this.options.levels)},${e}}
9)\\s$`),type:this.type,getAttributes:{level:e}}))}}),k=r.bP.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{},nextNodeType:"paragraph"}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:e}){return["hr",(0,r.KV)(this.options.HTMLAttributes,e)]},markdownTokenName:"hr",parseMarkdown:(e,t)=>t.createNode("horizontalRule"),renderMarkdown:()=>"---",addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!(0,r.AB)(t,t.schema.nodes[this.name]))return!1;let{selection:n}=t,{$to:i}=n,o=e();return(0,r.BQ)(n)?o.insertContentAt(i.pos,{type:this.name}):o.insertContent({type:this.name}),o.command(({state:e,tr:t,dispatch:n})=>{if(n){let{$to:n}=t.selection,r=n.end();if(n.nodeAfter)n.nodeAfter.isTextblock?t.setSelection(m.U3.create(t.doc,n.pos+1)):n.nodeAfter.isBlock?t.setSelection(m.nh.create(t.doc,n.pos)):t.setSelection(m.U3.create(t.doc,n.pos));else{let i=e.schema.nodes[this.options.nextNodeType]||n.parent.type.contentMatch.defaultType,o=null==i?void 0:i.create();o&&(t.insert(r,o),t.setSelection(m.U3.create(t.doc,r+1)))}t.scrollIntoView()}return!0}).run()}}},addInputRules(){return[(0,r.jT)({find:/^(?:---|â-|___\s|\*\*\*\s)$/,type:this.t
9ype})]}}),C=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,S=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,E=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,M=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,T=r.CU.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>"normal"!==e.style.fontStyle&&null},{style:"font-style=normal",clearMark:e=>e.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:e}){return["em",(0,r.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},markdownTokenName:"em",parseMarkdown:(e,t)=>t.applyMark("italic",t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`*${t.renderChildren(e)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[(0,r.OX)({find:C,type:this.t
9ype}),(0,r.OX)({find:E,type:this.type})]},addPasteRules(){return[(0,r.Zc)({find:S,type:this.type}),(0,r.Zc)({find:M,type:this.type})]}}),R=n(87245),A=Object.defineProperty,O="textStyle",N=/^\s*([-+*])\s$/,P=r.bP.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:e}){return["ul",(0,r.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>"list"!==e.type||e.ordered?[]:{type:"bulletList",content:e.items?t.parseChildren(e.items):[]},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(O)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}}
9,addInputRules(){let e=(0,r.tG)({find:N,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,r.tG)({find:N,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(O),editor:this.editor})),[e]}}),L=r.bP.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",(0,r.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list_item",parseMarkdown:(e,t)=>{if("list_item"!==e.type)return[];let n=[];if(e.tokens&&e.tokens.length>0)if(e.tokens.some(e=>"paragraph"===e.type))n=t.parseChildren(e.tokens);else{let r=e.tokens[0];if(r&&"text"===r.type&&r.tokens&&r.tokens.length>0){if(n=[{type:"paragraph",content:t.parseInline(r.tokens)}],e.tokens.length>1){let r=e.tokens.slice(1),i=t.parseChildren(r);n.push(...i)}}else n=t.parseChildren(e.tokens)}return 0===n.length&&(n=[{type:"paragraph",content:[]}]),{type:"listItem",content:n}},renderMarkdown:(e,t,n)=>(0,r.kj)(e,t,e=>"bulletList"===e.parentType?"- ":"orderedList"===e.parentType?`${e.index+1}. `:"- ",n),addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}});((e,t)=>{for(var n in t)A(e,n,{get:t[n],enumerable:!0})})({},{findListItemPos:()=>I,getNextListDepth:()=>D,handleBackspace:()=>z,handleDelete:()=>$,hasListBefore:()=>_,hasListItemAfter:()=>U,hasListItemBefore:()=>j,listItemHasSubList:()=>F,nextListIsDeeper:()=>H,nextListIsHigher:()=>B});var I=(e,t)=>{let{$from:n}=t.selection,i=(0,r.Pg)(e,t.schema),o=n.depth,l=n.pos,a=null;for(;o>0&&null===a;)n.node(o).type===i?a=o:(o-=1,l-=1);return null===a?null:{$pos:t.doc.resolve(l),depth:a}},D=(e,t)=>{let n=I(e,t);if(!n)return!1;let[,i]=(0,r.fl)(t,e,n.$pos.pos+4);return i},_=(e,t,n)=>{let{$anchor:r}=e.selection,i=Math.max(0,r.pos-2),o=e.doc.resolve(i).node();return!!o&&!!n.includes(o.type.name)},j=(e,t)=>{var n;let{$anchor:r}=t.selection,i=t.doc.resolve(r.pos-2);return 0!==i.index()&&(null==(n=i.nodeBefore)?void 0:n.type.name)===e},F=(e,t,n)=>{if(!n)return!1;let i=(0,r.Pg)(e,t.schema),o=!1;return n.descendants(e=>{e.type===i&&(o=!0)}),o},z=(e,t,n)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!(0,r.rU)(e.state,t)&&_(e.state,t,n)){let{$anchor:n}=e.state.selection,r=e.state.doc.resolve(n.before()-1),i=[];r.node().descendants((e,n)=>{e.type.name===t&&i.push({node:e,pos:n})});let o=i.at(-1);if(!o)return!1;let l=e.state.doc.resolve(r.start()+o.pos+1);return e.chain().cut({from:n.start()-1,to:n.end()+1},l.end()).joinForward().run()}if(!(0,r.rU)(e.state,t)||!(0,r.J_)(e.state))return!1;let i=I(t,e.state);if(!i)return!1;let o=e.state.doc.resolve(i.$pos.pos-2).node(i.depth),l=F(t,e.state,o);return j(t,e.state)&&!l?e.commands.joinItemBackward():e.chain().liftListItem(t).run()},H=(e,t)=>{let n=D(e,t),r=I(e,t);return!!r&&!!n&&n>r.depth},B=(e,t)=>{let n=D(e,t),r=I(e,t);return!!r&&!!n&&n<r.depth},$=(e,t)=>{if(!(0,r.rU)(e.state,t)||!(0,r.QN)(e.state,t))return!1;let{selection:n}=e.state,{$from:i,$to:o}=n;return!(!n.empty&&i.sameParent(o))&&(H(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():B(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward())},U=(e,t)=>{var n;let{$anchor:r}=t.selection,i=t.doc.resolve(r.pos-r.parentOffset-2);return i.index()!==i.parent.childCount-1&&(null==(n=i.nodeAfter)?void 0:n.type.name)===e},V=r.YY.create({name:"listKeymap",addOptions:()=>({listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}),addKeyboardShortcuts(){return{Delete:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{void 0!==e.state.schema.nodes[n]&&$(e,n)&&(t=!0)}),t},"Mod-Delete":({editor:e})=>{let t=!1;
9return this.options.listTypes.forEach(({itemName:n})=>{void 0!==e.state.schema.nodes[n]&&$(e,n)&&(t=!0)}),t},Backspace:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{void 0!==e.state.schema.nodes[n]&&z(e,n,r)&&(t=!0)}),t},"Mod-Backspace":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{void 0!==e.state.schema.nodes[n]&&z(e,n,r)&&(t=!0)}),t}}}}),W=/^(\s*)(\d+)\.\s+(.*)$/,q=/^\s/,K="textStyle",G=/^(\d+)\.\s$/,Y=r.bP.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:null,parseHTML:e=>e.getAttribute("type")}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:e}){let{start:t,...n}=e;return 1===t?["ol",(0,r.KV)(this.options.HTMLAttributes,n),0]:["ol",(0,r.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>{if("list"!==e.type||!e.ordered)return[];let n=e.start||1,r=e.items?function(e,t){return e.map(e=>{if("list_item"!==e.type)return t.parseChildren([e])[0];let n=[];return e.tokens&&e.tokens.length>0&&e.tokens.forEach(e=>{if("paragraph"===e.type||"list"===e.type||"blockquote"===e.type||"code"===e.type)n.push(...t.parseChildren([e]));else if("text"===e.type&&e.tokens){let r=t.parseChildren([e]);n.push({type:"paragraph",content:r})}else{let r=t.parseChildren([e]);r.length>0&&n.push(...r)}}),{type:"listItem",content:n}})}(e.items,t):[];return 1!==n?{type:"orderedList",attrs:{start:n},content:r}:{type:"orderedList",content:r}},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownTokenizer:{name:"orderedList",level:"block",start:e=>{let t=e.match(/^(\s*)(\d+)\.\s+/),n=null==t?void 0:t.index;return void 0!==n?n:-1},tokenize:(e,t,n)=>{var r;let i=e.split("\n"),[o,l]=function(e){let t=[],n=0,r=0;for(;n<e.length;){let i=e[n],o=i.match(W);if(!o)break;let[,l,a,s]=o,u=l.length,c=s,d=n+1,f=[i];for(;d<e.length;){let t=e[d];if(t.match(W))break;if(""===t.trim())f.push(t),c+="\n",d+=1;else if(t.match(q))f.push(t),c+=` 10${t.slice(u+2)}`,d+=1;else break}t.push({indent:u,number:parseInt(a,10),content:c.trim(),raw:f.join("\n")}),r=d,n=d}return[t,r]}(i);if(0===o.length)return;let a=function e(t,n,r){var i;let o=[],l=0;for(;l<t.length;){let a=t[l];if(a.indent===n){let s=a.content.split("\n"),u=(null==(i=s[0])?void 0:i.trim())||"",c=[];u&&c.push({type:"paragraph",raw:u,tokens:r.inlineTokens(u)});let d=s.slice(1).join("\n").trim();if(d){let e=r.blockTokens(d);c.push(...e)}let f=l+1,h=[];for(;f<t.length&&t[f].indent>n;)h.push(t[f]),f+=1;if(h.length>0){let t=Math.min(...h.map(e=>e.indent)),n=e(h,t,r);c.push({type:"list",ordered:!0,start:h[0].number,items:n,raw:h.map(e=>e.raw).join("\n")})}o.push({type:"list_item",raw:a.raw,tokens:c}),l=f}else l+=1}return o}(o,0,n);if(0!==a.length)return{type:"list",ordered:!0,start:(null==(r=o[0])?void 0:r.number)||1,items:a,raw:i.slice(0,l).join("\n")}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(K)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=(0,r.tG)({find:G,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,r.tG)({find:G,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(K)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}}),J=/^\s*(\[([( |x])?\])\s$/,X=r.bP.create({name:"taskItem",addOptions:()=>({nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}),content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes:()=>({checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{let t=e.getAttribute("data-checked");return""===t||"true"===t},renderHTML:e=>({"data-checked":e.checked})}}),parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:e,HTMLAttributes:t}){return["li",(0,r.KV)(this.options.HTMLAttributes,t,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:e.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(e,t)=>{let n=[];if(e.tokens&&e.tokens.length>0?n.push(t.createNode("paragraph",{},t.parseInline(e.tokens))):e.text?n.push(t.createNode("paragraph",{},[t.createNode("text",{text:e.text})])):n.push(t.createNode("paragraph",{},[])),e.nestedTokens&&e.nestedTokens.length>0){let r=t.parseChildren(e.nestedTokens);n.push(...r)}return t.createNode("taskItem",{checked:e.checked||!1},n)},renderMarkdown:(e,t)=>{var n;let i=(null==(n=e.attrs)?void 0:n.checked)?"x":" ",o=`- [${i}] `;return(0,r.kj)(e,t,o)},addKeyboardShortcuts(){let e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:n,editor:i})=>{let o=document.createElement("li"),l=document.createElement("label"),a=document.createElement("span"),s=document.createElement("input"),u=document.createElement("div"),c=e=>{var t,n;s.ariaLabel=(null==(n=null==(t=this.options.a11y)?void 0:t.checkboxLabel)?void 0:n.call(t,e,s.checked))||`Task item checkbox for ${e.textContent||"empty task item"}`};c(e),l.contentEditable="false",s.type="checkbox",s.addEventListener("mousedown",e=>e.preventDefault()),s.addEventListener("change",t=>{if(!i.isEditable&&!this.options.onReadOnlyChecked){s.checked=!s.checked;return}let{checked:r}=t.target;i.isEditable&&"function"==typeof n&&i.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:e})=>{let t=n();if("number"!=typeof t)return!1;let i=e.doc.nodeAt(t);return e.setNodeMarkup(t,void 0,{...null==i?void 0:i.attrs,checked:r}),!0}).run(),i.isEditable||!this.options.onReadOnlyChecked||this.options.onReadOnlyChecked(e,r)||(s.checked=!s.checked)}
10),Object.entries(this.options.HTMLAttributes).forEach(([e,t])=>{o.setAttribute(e,t)}),o.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,l.append(s,a),o.append(l,u),Object.entries(t).forEach(([e,t])=>{o.setAttribute(e,t)});let d=new Set(Object.keys(t));return{dom:o,contentDOM:u,update:e=>{if(e.type!==this.type)return!1;o.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,c(e);let t=i.extensionManager.attributes,n=(0,r.zU)(e,t),l=new Set(Object.keys(n)),a=this.options.HTMLAttributes;return d.forEach(e=>{l.has(e)||(e in a?o.setAttribute(e,a[e]):o.removeAttribute(e))}),Object.entries(n).forEach(([e,t])=>{null==t?e in a?o.setAttribute(e,a[e]):o.removeAttribute(e):o.setAttribute(e,t)}),d=l,!0}}}},addInputRules(){return[(0,r.tG)({find:J,type:this.type,getAttributes:e=>({checked:"x"===e[e.length-1]})})]}}),Z=r.bP.create({name:"taskList",addOptions:()=>({itemTypeName:"taskItem",HTMLAttributes:{}}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return["ul",(0,r.KV)(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(e,t)=>t.createNode("taskList",{},t.parseChildren(e.items||[])),renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownTokenizer:{name:"taskList",level:"block",start(e){var t;let n=null==(t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))?void 0:t.index;return void 0!==n?n:-1},tokenize(e,t,n){let i=e=>{let t=(0,r.Dd)(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:"x"===e[3].toLowerCase()}),createToken:(e,t)=>({type:"taskItem",raw:"",mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:i},n);return t?[{type:"taskList",raw:t.raw,items:t.items}]:n.blockTokens(e)},o=(0,r.Dd)(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:"x"===e[3].toLowerCase()}),createToken:(e,t)=>({type:"taskItem",raw:"",mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:i},n);if(o)return{type:"taskList",raw:o.raw,items:o.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});r.YY.create({name:"listKit",addExtensions(){let e=[];return!1!==this.options.bulletList&&e.push(P.configure(this.options.bulletList)),!1!==this.options.listItem&&e.push(L.configure(this.options.listItem)),!1!==this.options.listKeymap&&e.push(V.configure(this.options.listKeymap)),!1!==this.options.orderedList&&e.push(Y.configure(this.options.orderedList)),!1!==this.options.taskItem&&e.push(X.configure(this.options.taskItem)),!1!==this.options.taskList&&e.push(Z.configure(this.options.taskList)),e}});var Q=r.bP.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:e}){return["p",(0,r.KV)(this.options.HTMLAttributes,e),0]},parseMarkdown:(e,t)=>{let n=e.tokens||[];return 1===n.length&&"image"===n[0].type?t.parseChildren([n[0]]):t.createNode("paragraph",void 0,t.parseInline(n))},renderMarkdown:(e,t)=>e&&Array.isArray(e.content)?t.renderChildren(e.content):"",addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),ee=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,et=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,en=r.CU.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("line-through")&&{}}],renderHTML({HTMLAttributes:e}){return["s",(0,r.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"del",parseMarkdown:(e,t)=>t.applyMark("strike",t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`~~${t.renderChildren(e)}~~`,addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}}
10,addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[(0,r.OX)({find:ee,type:this.type})]},addPasteRules(){return[(0,r.Zc)({find:et,type:this.type})]}}),er=r.bP.create({name:"text",group:"inline",parseMarkdown:e=>({type:"text",text:e.text||""}),renderMarkdown:e=>e.text||""}),ei=r.CU.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("underline")&&{}}],renderHTML({HTMLAttributes:e}){return["u",(0,r.KV)(this.options.HTMLAttributes,e),0]},parseMarkdown(e,t){return t.applyMark(this.name||"underline",t.parseInline(e.tokens||[]))},renderMarkdown:(e,t)=>`++${t.renderChildren(e)}++`,markdownTokenizer:{name:"underline",level:"inline",start:e=>e.indexOf("++"),tokenize(e,t,n){let r=/^(\+\+)([\s\S]+?)(\+\+)/.exec(e);if(!r)return;let i=r[2].trim();return{type:"underline",raw:r[0],text:i,tokens:n.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),eo=n(38540),el=r.YY.create({name:"starterKit",addExtensions(){var e,t,n,r;let i=[];return!1!==this.options.bold&&i.push(d.configure(this.options.bold)),!1!==this.options.blockquote&&i.push(l.configure(this.options.blockquote)),!1!==this.options.bulletList&&i.push(P.configure(this.options.bulletList)),!1!==this.options.code&&i.push(p.configure(this.options.code)),!1!==this.options.codeBlock&&i.push(v.configure(this.options.codeBlock)),!1!==this.options.document&&i.push(b.configure(this.options.document)),!1!==this.options.dropcursor&&i.push(eo.QO.configure(this.options.dropcursor)),!1!==this.options.gapcursor&&i.push(eo.vR.configure(this.options.gapcursor)),!1!==this.options.hardBreak&&i.push(w.configure(this.options.hardBreak)),!1!==this.options.heading&&i.push(x.configure(this.options.heading)),!1!==this.options.undoRedo&&i.push(eo.lb.configure(this.options.undoRedo)),!1!==this.options.horizontalRule&&i.push(k.configure(this.options.horizontalRule)),!1!==this.options.italic&&i.push(T.configure(this.options.italic)),!1!==this.options.listItem&&i.push(L.configure(this.options.listItem)),!1!==this.options.listKeymap&&i.push(V.configure(null==(e=this.options)?void 0:e.listKeymap)),!1!==this.options.link&&i.push(R.N_.configure(null==(t=this.options)?void 0:t.link)),!1!==this.options.orderedList&&i.push(Y.configure(this.options.orderedList)),!1!==this.options.paragraph&&i.push(Q.configure(this.options.paragraph)),!1!==this.options.strike&&i.push(en.configure(this.options.strike)),!1!==this.options.text&&i.push(er.configure(this.options.text)),!1!==this.options.underline&&i.push(ei.configure(null==(n=this.options)?void 0:n.underline)),!1!==this.options.trailingNode&&i.push(eo.JU.c
10onfigure(null==(r=this.options)?void 0:r.trailingNode)),i}})},21363:(e,t,n)=>{"use strict";function r(e){let t=[],n=String(e||""),r=n.indexOf(","),i=0,o=!1;for(;!o;){-1===r&&(r=n.length,o=!0);let e=n.slice(i,r).trim();(e||!o)&&t.push(e),i=r+1,r=n.indexOf(",",i)}return t}function i(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}n.d(t,{A:()=>i,q:()=>r})},21670:(e,t,n)=>{"use strict";function r(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function i(e,t){var n=r(e,t,"get");return n.get?n.get.call(e):n.value}function o(e,t,n){var i=r(e,t,"set");if(i.set)i.set.call(e,n);else{if(!i.writable)throw TypeError("attempted to set read only private field");i.value=n}return n}n.d(t,{N:()=>f});var l,a=n(38848),s=n(89486),u=n(25300),c=n(31054),d=n(38476);function f(e){let t=e+"CollectionProvider",[n,r]=(0,s.A)(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=e=>{let{scope:t,children:n}=e,r=a.useRef(null),o=a.useRef(new Map).current;return(0,d.jsx)(i,{scope:t,itemMap:o,collectionRef:r,children:n})};l.displayName=t;let f=e+"CollectionSlot",h=(0,c.TL)(f),p=a.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(f,n),l=(0,u.s)(t,i.collectionRef);return(0,d.jsx)(h,{ref:l,children:r})});p.displayName=f;let m=e+"CollectionItemSlot",g="data-radix-collection-item",y=(0,c.TL)(m),v=a.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,l=a.useRef(null),s=(0,u.s)(t,l),c=o(m,n);return a.useEffect(()=>(c.itemMap.set(l,{ref:l,...i}),()=>void c.itemMap.delete(l))),(0,d.jsx)(y,{...{[g]:""},ref:s,children:r})});return v.displayName=m,[{Provider:l,Slot:p,ItemSlot:v},function(t){let n=o(e+"CollectionConsumer",t);return a.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(g,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}var h=new WeakMap;function p(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=function(e,t){let n=e.length,r=m(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}(e,t);return -1===n?void 0:e[n]}function m(e){return e!=e||0===e?0:Math.trunc(e)}l=new WeakMap,class e extends Map{set(e,t){return h.get(this)&&(this.has(e)?i(this,l)[i(this,l).indexOf(e)]=e:i(this,l).push(e)),super.set(e,t),this}insert(e,t,n){let r,o=this.has(t),a=i(this,l).length,s=m(e),u=s>=0?s:a+s,c=u<0||u>=a?-1:u;if(c===this.size||o&&c===this.size-1||-1===c)return this.set(t,n),this;let d=this.size+ +!o;s<0&&u++;let f=[...i(this,l)],h=!1;for(let e=u;e<d;e++)if(u===e){let i=f[e];f[e]===t&&(i=f[e+1]),o&&this.delete(t),r=this.get(i),this.set(t,n)}else{h||f[e-1]!==t||(h=!0);let n=f[h?e:e-1],i=r;r=this.get(n),this.delete(n),this.set(n,i)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=i(this,l).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=i(this,l).indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=i(this,l).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=i(this,l).indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return o(this,l,[]),super.clear()}delete(e){let t=super.delete(e);return t&&i(this,l).splice(i(this,l).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=p(i(this,l),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=p(i(this,l),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return i(this,l).indexOf(e)}keyAt(e){return p(i(this,l),e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i]=t,o=0,l=null!=i?i:this.at(0);for(let e of this)l=0===o&&1===t.length?e:Reflect.apply(r,this,[l,e,o,this]),o++;return l}reduceRight(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i]=t,o=null!=i?i:this.at(-1);for(let e=this.size-1;e>=0;e--){let n=this.at(e);o=e===this.size-1&&1===t.length?n:Reflect.apply(r,this,[o,n,e,this])}return o}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=[...this.entries()];return i.splice(...n),new e(i)}
10slice(t,n){let r=new e,i=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}constructor(e){super(e),function(e,t,n){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,n)}(this,l,{writable:!0,value:void 0}),o(this,l,[...super.keys()]),h.set(this,!0)}}},22491:(e,t,n)=>{"use strict";n.d(t,{r:()=>o});var r=n(97118),i=n(74800);function o(e,t,n){let[o,l]=(0,r.x)(null==n?void 0:n.in,e,t);return+(0,i.o)(o)==+(0,i.o)(l)}},22948:(e,t,n)=>{"use strict";function r(e){return e&&"object"==typeof e?"position"in e||"type"in e?o(e.position):"start"in e||"end"in e?o(e):"line"in e||"column"in e?i(e):"":""}function i(e){return l(e&&e.line)+":"+l(e&&e.column)}function o(e){return i(e&&e.start)+"-"+i(e&&e.end)}function l(e){return e&&"number"==typeof e?e:1}n.d(t,{L:()=>r})},23438:(e,t,n)=>{"use strict";n.d(t,{o:()=>c});var r=n(38476),i=n(38848),o=n(36232);let l=(0,i.createContext)(null);var a=n(9789),s=n(64857);let u=e=>!e.isLayoutDirty&&e.willUpdate(!1),c=e=>{let{children:t,id:n,inherit:c=!0}=e,d=(0,i.useContext)(o.L),f=(0,i.useContext)(l),[h,p]=function(){let e=function(){let e=(0,i.useRef)(!1);return(0,s.E)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}(),[t,n]=(0,i.useState)(0),r=(0,i.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,i.useCallback)(()=>a.Gt.postRender(r),[r]),t]}(),m=(0,i.useRef)(null),g=d.id||f;null===m.current&&((e=>!0==(!0===e)||"id"===e)(c)&&g&&(n=n?g+"-"+n:g),m.current={id:n,group:!0===c&&d.group||function(){let e=new Set,t=new WeakMap,n=()=>e.forEach(u);return{add:r=>{e.add(r),t.set(r,r.addEventListener("willUpdate",n))},remove:r=>{e.delete(r);let i=t.get(r);i&&(i(),t.delete(r)),n()},dirty:n}}()});let y=(0,i.useMemo)(()=>({...m.current,forceRender:h}),[p]);return(0,r.jsx)(o.L.Provider,{value:y,children:t})}},23660:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(90953).A)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},23721:(e,t,n)=>{"use strict";n.d(t,{s:()=>s});var r=n(58698),i=n(13595),o=n(69906),l=n(18429),a=n(10276);function s(e,t){let n=(0,a.a)(e,null==t?void 0:t.in);return Math.round(((0,i.b)(n)-function(e,t){let n=(0,l.p)(e,void 0),r=(0,o.w)(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),(0,i.b)(r)}(n))/r.my)+1}},24369:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(90953).A)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]])},25300:(e,t,n)=>{"use strict";n.d(t,{s:()=>l,t:()=>o});var r=n(38848);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():i(e[t],null)}}}}function l(...e){return r.useCallback(o(...e),e)}},25332:(e,t,n)=>{"use strict";n.d(t,{b:()=>i});var r=n(10276);function i(e,t){return(0,r.a)(e)-(0,r.a)(t)}},25617:(e,t)=>{"use strict";function n(e){let t={};for(let[n,r]of e.entries()){let e=t[n];void 0===e?t[n]=r:Array.isArray(e)?e.push(r):t[n]=[e,r]}return t}function r(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;for(let[n,i]of Object.entries(e))if(Array.isArray(i))for(let e of i)t.append(n,r(e));else t.set(n,r(i));return t}function o(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(let t of n){for(let n of t.keys())e.delete(n);for(let[n,r]of t.entries())e.append(n,r)}return e}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{assign:function(){return o},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return i}})},25697:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(90953).A)("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",ke
10y:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]])},25829:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g;function u(e){return e?e.replace(s,""):""}e.exports=function(e,s){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];s=s||{};var c=1,d=1;function f(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function h(){var e={line:c,column:d};return function(t){return t.position=new p(e),y(r),t}}function p(e){this.start=e,this.end={line:c,column:d},this.source=s.source}p.prototype.content=e;var m=[];function g(t){var n=Error(s.source+":"+c+":"+d+": "+t);if(n.reason=t,n.filename=s.source,n.line=c,n.column=d,n.source=e,s.silent)m.push(n);else throw n}function y(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function v(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return d+=2,f(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}y(r);var w,x=[];for(v(x);w=function(){var e=h(),n=y(i);if(n){if(b(),!y(o))return g("property missing ':'");var r=y(l),s=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return y(a),s}}();)!1!==w&&(x.push(w),v(x));return x}},27382:(e,t,n)=>{"use strict";function r(e,t,n){let r=[],i=-1;for(;++i<e.length;){let o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}n.d(t,{W:()=>r})},27839:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(90953).A)("ListFilter",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M10 18h4",key:"1ulq68"}]])},27911:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(38848),i=n(64299),o=n.n(i),l=n(56026),a=n(93430),s=["x","x0","x1","y","y1","y0","yScale","data","defined","className","curve","innerRef","children"];function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e){var t=e.x,n=e.x0,i=e.x1,c=e.y,d=e.y1,f=e.y0,h=e.yScale,p=e.data,m=e.defined,g=e.className,y=e.curve,v=e.innerRef,b=e.children,w=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,s),x=(0,a.Wc)({x:t,x0:n,x1:i,defined:void 0===m?function(){return!0}:m,curve:y});return(null==f?x.y0(h.range()[0]):(0,l.A)(x.y0,f),c&&!d&&(0,l.A)(x.y1,c),d&&!c&&(0,l.A)(x.y1,d),b)?r.createElement(r.Fragment,null,b({path:x})):r.createElement("path",u({ref:v,className:o()("visx-area-closed",g),d:x(void 0===p?[]:p)||""},w))}},28845:(e,t,n)=>{"use strict";n.d(t,{G1:()=>l,PW:()=>i,Y:()=>r});let r=o("end"),i=o("start");function o(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function l(e){let t=i(e),n=r(e);if(t&&n)return{start:t,end:n}}},28864:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>w,Gw:()=>E,KI:()=>L,Q1:()=>i,Qh:()=>S,Uw:()=>l,b:()=>C,ef:()=>o});var r=n(18090);function i(){}var o=.7,l=1.4285714285714286,a="\\s*([+-]?\\d+)\\s*",s="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,d=RegExp(`^rgb\\(${a},${a},${a}\\)$`),f=RegExp(`^rgb\\(${u},${u},${u}\\)$`),h=RegExp(`^rgba\\(${a},${a},${a},${s}\\)$`),p=RegExp(`^rgba\\(${u},${u},${u},${s}\\)$`),m=RegExp(`^hsl\\(${s},${u},${u}\\)$`),g=RegExp(`^hsla\\(${s},${u},${u},${s}\\)$`),y={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function v(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function w(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=c.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?x(t):3===n?
10new E(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?k(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?k(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=d.exec(e))?new E(t[1],t[2],t[3],1):(t=f.exec(e))?new E(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h.exec(e))?k(t[1],t[2],t[3],t[4]):(t=p.exec(e))?k(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?N(t[1],t[2]/100,t[3]/100,1):(t=g.exec(e))?N(t[1],t[2]/100,t[3]/100,t[4]):y.hasOwnProperty(e)?x(y[e]):"transparent"===e?new E(NaN,NaN,NaN,0):null}function x(e){return new E(e>>16&255,e>>8&255,255&e,1)}function k(e,t,n,r){return r<=0&&(e=t=n=NaN),new E(e,t,n,r)}function C(e){return(e instanceof i||(e=w(e)),e)?new E((e=e.rgb()).r,e.g,e.b,e.opacity):new E}function S(e,t,n,r){return 1==arguments.length?C(e):new E(e,t,n,null==r?1:r)}function E(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function M(){return`#${O(this.r)}${O(this.g)}${O(this.b)}`}function T(){let e=R(this.opacity);return`${1===e?"rgb(":"rgba("}${A(this.r)}, ${A(this.g)}, ${A(this.b)}${1===e?")":`, ${e})`}`}function R(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function A(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function O(e){return((e=A(e))<16?"0":"")+e.toString(16)}function N(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new I(e,t,n,r)}function P(e){if(e instanceof I)return new I(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=w(e)),!e)return new I;if(e instanceof I)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),l=Math.max(t,n,r),a=NaN,s=l-o,u=(l+o)/2;return s?(a=t===l?(n-r)/s+(n<r)*6:n===l?(r-t)/s+2:(t-n)/s+4,s/=u<.5?l+o:2-l-o,a*=60):s=u>0&&u<1?0:a,new I(a,s,u,e.opacity)}function L(e,t,n,r){return 1==arguments.length?P(e):new I(e,t,n,null==r?1:r)}function I(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function D(e){return(e=(e||0)%360)<0?e+360:e}function _(e){return Math.max(0,Math.min(1,e||0))}function j(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}(0,r.A)(i,w,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:v,formatHex:v,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return P(this).formatHsl()},formatRgb:b,toString:b}),(0,r.A)(E,S,(0,r.X)(i,{brighter(e){return e=null==e?l:Math.pow(l,e),new E(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?o:Math.pow(o,e),new E(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new E(A(this.r),A(this.g),A(this.b),R(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:M,formatHex:M,formatHex8:function(){return`#${O(this.r)}${O(this.g)}${O(this.b)}${O((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:T,toString:T})),(0,r.A)(I,L,(0,r.X)(i,{brighter(e){return e=null==e?l:Math.pow(l,e),new I(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?o:Math.pow(o,e),new I(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new E(j(e>=240?e-240:e+120,i,r),j(e,i,r),j(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new I(D(this.h),_(this.s),_(this.l),R(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=R(this.opacity);return`${1===e?"hsl(":"hsla("}${D(this.h)}, ${100*_(this.s)}%, ${100*_(this.l)}%${1===e?")":`, ${e})`}`}}))},29638:(e,t,n)=>{"use strict";n.d(t,{oz:()=>eb});var r=n(8760);function i(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var o=i(),l={exec:()=>null};function a(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(s.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var s={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine
vendor: 4,129 bytes, line 10
10:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},u=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,c=/(?:[*+-]|\d{1,9}[.)])/,d=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,f=a(d).replace(/bull/g,c).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),h=a(d).replace(/bull/g,c).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),p=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,m=/(?!\s*\])(?:\\.|[^\[\]\\])+/,g=a(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",m).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),y=a(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,c).getRegex(),v="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",b=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,w=a("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",b).replace("tag",v).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),x=a(p).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v).getRegex(),k={blockquote:a(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",x).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:g,fences:/^ {0,3}(`{3,}
vendor: 9,040 bytes, lines 10-12
10(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:u,html:w,lheading:f,list:y,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:x,table:l,text:/^[^\n]+/},C=a("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v).getRegex(),S={...k,lheading:h,table:C,paragraph:a(p).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",C).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v).getRegex()},E={...k,html:a(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",b).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:l,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:a(p).replace("hr",u).replace("heading"," *#{1,6} *[^\n]").replace("lheading",f).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},M=/^( {2,}|\\)\n(?!\s*$)/,T=/[\p{P}\p{S}]/u,R=/[\s\p{P}\p{S}]/u,A=/[^\s\p{P}\p{S}]/u,O=a(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,R).getRegex(),N=/(?!~)[\p{P}\p{S}]/u,P=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,L=a(P,"u").replace(/punct/g,T).getRegex(),I=a(P,"u").replace(/punct/g,N).getRegex(),D="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",_=a(D,"gu").replace(/notPunctSpace/g,A).replace(/punctSpace/g,R).replace(/punct/g,T).getRegex(),j=a(D,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,N).getRegex(),F=a("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,A).replace(/punctSpace/g,R).replace(/punct/g,T).getRegex(),z=a(/\\(punct)/,"gu").replace(/punct/g,T).getRegex(),H=a(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),B=a(b).replace("(?:--\x3e|$)","--\x3e").getRegex(),$=a("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",B).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),U=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,V=a(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",U).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),W=a(/^!?\[(label)\]\[(ref)\]/).replace("label",U).replace("ref",m).getRegex(),q=a(/^!?\[(ref)\](?:\[\])?/).replace("ref",m).getRegex(),K=a("reflink|nolink(?!\\()","g").replace("reflink",W).replace("nolink",q).getRegex(),G={_backpedal:l,anyPunctuation:z,autolink:H,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,br:M,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:l,emStrongLDelim:L,emStrongRDelimAst:_,emStrongRDelimUnd:F,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:V,nolink:q,punctuation:O,reflink:W,reflinkSearch:K,tag:$,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:l},Y={...G,link:a(/^!?\[(label)\]\((.*?)\)/).replace("label",U).getRegex(),reflink:a(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",U).getRegex()},J={...G,emStrongRDelimAst:j,emStrongLDelim:I,url:a(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},X={...J,br:a(M).replace("{2,}","*").getRegex(),text:a(J.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Z={normal:k,gfm:S,pedantic:E},Q={normal:G,gfm:J,breaks:X,pedantic:Y},ee={"&":"&","<":"<",">":">",'"':""","'":"'"},et=e=>ee[e];function en(e,t){if(t){if(s.escapeTest.test(e))return e.replace(s.escapeReplace,et)}else if(s.escapeTestNoEncode.test(e))return e.replace(s.escapeReplaceNoEncode,et);return e}function er(e){try{e=encodeURI(e).replace(s.percentDecode,"%")}catch{return null}return e}function ei(e,t){let n=e.replace(s.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(s.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(s.slashPipe,"|");return n}function eo(e,t,n){let r=e.length;if(0===r)return"";let i=0;for(;i<r;){let o=e.charAt(r-i-1);if(o!==t||n)if(o!==t&&n)i++;else break;else i++}return e.slice(0,r-i)}function el(e,t,n,r,i){let o=t.href,l=t.title||null,a=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let s={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:o,title:l,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,s}var ea=class{options;rules;lexer;constructor(e){this.options=e||o}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:eo(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let i=r[1];return t.split("\n").map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=eo(e,"#");this.options.pedantic?e=t.trim():(!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:eo(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=eo(t[0],"\n").split("\n"),n="",r="",i=[];for(;e.length>0;){let t,o=!1,l=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))l.push(e[t]),o=!0;else if(o)break;else l.push(e[t]);e=e.slice(t);let a=l.join("\n"),s=a.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n} 11${a}`:a,r=r?`${r} 12${s}`:s;let u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(s,i,!0),this.lexer.state.top=u,0===e.length)break;let c=i.at(-1);if(c?.type==="code")break;if(c?.type==="blockquote"){let t=c.raw+"\n"+e.join("\n"),o=this.blockquote(t);i[i.length-1]=o,n=n.substring(0,n.length-c.raw.length)+o.raw,r=r.substring(0,r.length-c.text.length)+o.text;break}if(c?.type==="list"){let t=c.raw+"\n"+e.join("\n"),o=this.list(t);i[i.length-1]=o,n=n.substring(0,n.length-c.raw.length)+o.raw,r=r.substring(0,r.length-c.raw.length)+o.raw,e=t.substring(i.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);
12if(t){let n=t[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let o=this.rules.other.listItemRegex(n),l=!1;for(;e;){let n,r=!1,a="",s="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;a=t[0],e=e.substring(a.length);let u=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),c=e.split("\n",1)[0],d=!u.trim(),f=0;if(this.options.pedantic?(f=2,s=u.trimStart()):d?f=t[1].length+1:(f=(f=t[2].search(this.rules.other.nonSpaceChar))>4?1:f,s=u.slice(f),f+=t[1].length),d&&this.rules.other.blankLine.test(c)&&(a+=c+"\n",e=e.substring(c.length+1),r=!0),!r){let t=this.rules.other.nextBulletRegex(f),n=this.rules.other.hrRegex(f),r=this.rules.other.fencesBeginRegex(f),i=this.rules.other.headingBeginRegex(f),o=this.rules.other.htmlBeginRegex(f);for(;e;){let l,h=e.split("\n",1)[0];if(c=h,l=this.options.pedantic?c=c.replace(this.rules.other.listReplaceNesting," "):c.replace(this.rules.other.tabCharGlobal," "),r.test(c)||i.test(c)||o.test(c)||t.test(c)||n.test(c))break;if(l.search(this.rules.other.nonSpaceChar)>=f||!c.trim())s+="\n"+l.slice(f);else{if(d||u.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||r.test(u)||i.test(u)||n.test(u))break;s+="\n"+c}d||c.trim()||(d=!0),a+=h+"\n",e=e.substring(h.length+1),u=l.slice(f)}}!i.loose&&(l?i.loose=!0:this.rules.other.doubleBlankLine.test(a)&&(l=!0));let h=null;this.options.gfm&&(h=this.rules.other.listIsTask.exec(s))&&(n="[ ] "!==h[0],s=s.replace(this.rules.other.listReplaceTask,"")),i.items.push({type:"list_item",raw:a,task:!!h,checked:n,loose:!1,text:s,tokens:[]}),i.raw+=a}let a=i.items.at(-1);if(!a)return;a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter(e=>"space"===e.type);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=ei(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],o={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?o.align.push("right"):this.rules.other.tableAlignCenter.test(e)?o.align.push("center"):this.rules.other.tableAlignLeft.test(e)?o.align.push("left"):o.align.push(null);for(let e=0;e<n.length;e++)o.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:o.align[e]});for(let e of i)o.rows.push(ei(e,o.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:o.align[t]})));return o}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=eo(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(")"))return -1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if("("===e[r])n++;else if(e[r]===t[1]&&--n<0)return r;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),el(t,{href:n?n.replace(this.rules.inline.anyPunctuation,"$1"):n,title:r?r.replace(this.rules.inline.anyPunctuation,"$1"):r},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return el(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,o,l=n,a=0,s="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(s.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=s.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(o=[...i].length,r[3]||r[4]){l+=o;continue}if((r[5]||r[6])&&n%3&&!((n+o)%3)){a+=o;continue}if((l-=o)>0)continue;o=Math.min(o,o+l+a);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+o);if(Math.min(n,o)%2){let e=s.slice(1,-1);return{type:"em",raw:s,text:e,tokens:this.lexer.inlineTokens(e)}}let u=s.slice(2,-2);return{type:"strong",raw:s,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return n="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])n="mailto:"+(e=t[0]);else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},es=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||o,this.options.tokenizer=this.options.tokenizer||new ea,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:s,block:Z.normal,inline:Q.normal};this.options.pedantic?(t.block=Z.pedantic,t.inline=Q.pedantic):this.options.gfm&&(t.block=Z.gfm,this.options.breaks?t.inline=Q.breaks:t.inline=Q.gfm),this.tokenizer.rules=t}static get rules(){return{block:Z,inline:Q}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(s.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;
12e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(s.tabCharGlobal," ").replace(s.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);1===r.raw.length&&void 0!==n?n.raw+="\n":t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if((r=this.tokenizer.fences(e))||(r=this.tokenizer.heading(e))||(r=this.tokenizer.hr(e))||(r=this.tokenizer.blockquote(e))||(r=this.tokenizer.list(e))||(r=this.tokenizer.html(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+="\n"+r.raw,n.text+="\n"+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if((r=this.tokenizer.table(e))||(r=this.tokenizer.lheading(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t,n=1/0,r=e.slice(1);this.options.extensions.startBlock.forEach(e=>{"number"==typeof(t=e.call({lexer:this},r))&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(i=e.substring(0,n+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let o=t.at(-1);n&&o?.type==="paragraph"?(o.raw+="\n"+r.raw,o.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="text"?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(n));)e.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,r.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(n));)n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let i=!1,o="";for(;e;){let r;if(i||(o=""),i=!1,this.options.extensions?.inline?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if((r=this.tokenizer.escape(e))||(r=this.tokenizer.tag(e))||(r=this.tokenizer.link(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);"text"===r.type&&n?.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if((r=this.tokenizer.emStrong(e,n,o))||(r=this.tokenizer.codespan(e))||(r=this.tokenizer.br(e))||(r=this.tokenizer.del(e))||(r=this.tokenizer.autolink(e))||!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let l=e;if(this.options.extensions?.startInline){let t,n=1/0,r=e.slice(1);this.options.extensions.startInline.forEach(e=>{"number"==typeof(t=e.call({lexer:this},r))&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(l=e.substring(0,n+1))}if(r=this.tokenizer.inlineText(l)){e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(o=r.raw.slice(-1)),i=!0;let n=t.at(-1);n?.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},eu=class{options;parser;constructor(e){this.options=e||o}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(s.notSpaceStart)?.[0],i=e.replace(s.endingNewline,"")+"\n";return r?'<pre><code class="language-'+en(r)+'">'+(n?i:en(i,!0))+"</code></pre>\n":"<pre><code>"+(n?i:en(i,!0))+"</code></pre>\n"}blockquote({tokens:e}){let t=this.parser.parse(e);return`<blockquote> 13${t}</blockquote> 14`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}> 15`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+i+">\n"}listitem(e){let t="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+en(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li> 16`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p> 17`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n="";for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+r+"</table>\n"}tablerow({text:e}){return`<tr> 18${e}</tr> 19`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}> 20`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${en(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=er(e);if(null===i)return r;let o='<a href="'+(e=i)+'"';return t&&(o+=' title="'+en(t)+'"'),o+=">"+r+"</a>"}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=er(e);if(null===i)return en(n);e=i;let o=`<img src="${e}" alt="${n}"`;return t&&(o+=` title="${en(t)}"`),o+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:en(e.text)}},ec=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},ed=class e{options;renderer;textRenderer;constructor(e){this.options=e||o,this.options.renderer=this.options.renderer||new eu,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ec}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(i.type)){n+=e||"";continue}}switch(i.type){case"space":n+=this.renderer.space(i);continue;case"hr":n+=this.renderer.hr(i);continue;case"heading":n+=this.renderer.heading(i);continue;case"code":n+=this.renderer.code(i);continue;case"table":n+=this.renderer.table(i);continue;case"blockquote":n+=this.renderer.blockquote(i);continue;case"list":n+=this.renderer.list(i);continue;case"html":n+=this.renderer.html(i);continue;case"paragraph":n+=this.renderer.paragraph(i);continue;case"text":{let o=i,l=this.renderer.text(o);for(;r+1<e.length&&"text"===e[r+1].type;)o=e[++r],l+="\n"+this.renderer.text(o);t?n+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l,escaped:!0}]}):n+=l;continue}default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}parseInline(e,t=this.renderer){let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=e||"";continue}}switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}},ef=class{options;block;constructor(e){this.options=e||o}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?es.lex:es.lexInline}provideParser(){return this.block?ed.parse:ed.parseInline}},eh=new class{defaults=i();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ed;Renderer=eu;TextRenderer=ec;Lexer=es;Tokenizer=ea;Hooks=ef;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":for(let e of r.header)n=n.concat(this.walkTokens(e.tokens,t));for(let e of r.rows)for(let r of e)n=n.concat(this.walkTokens(r.tokens,t));break;case"list":n=n.concat(this.walkTokens(r.items,t));break;default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};
20return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new eu(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=e.renderer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new ea(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=e.tokenizer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new ef;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=e.hooks[n],i=t[n];ef.passThroughHooks.has(n)?t[n]=e=>{if(this.defaults.async)return Promise.resolve(r.call(t,e)).then(e=>i.call(t,e));let n=r.call(t,e);return i.call(t,n)}:t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return es.lex(e,t??this.defaults)}parser(e,t){return ed.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},o=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return o(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(null==t)return o(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return o(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));i.hooks&&(i.hooks.options=i,i.hooks.block=e);let l=i.hooks?i.hooks.provideLexer():e?es.lex:es.lexInline,a=i.hooks?i.hooks.provideParser():e?ed.parse:ed.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(t):t).then(e=>l(e,i)).then(e=>i.hooks?i.hooks.processAllTokens(e):e).then(e=>i.walkTokens?Promise.all(this.walkTokens(e,i.walkTokens)).then(()=>e):e).then(e=>a(e,i)).then(e=>i.hooks?i.hooks.postprocess(e):e).catch(o);try{i.hooks&&(t=i.hooks.preprocess(t));let e=l(t,i);i.hooks&&(e=i.hooks.processAllTokens(e)),i.walkTokens&&this.walkTokens(e,i.walkTokens);let n=a(e,i);return i.hooks&&(n=i.hooks.postprocess(n)),n}catch(e){return o(e)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+en(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function ep(e,t){return eh.parse(e,t)}function em(e,t){let n=t.split("\n").flatMap(e=>[e,""]).map(t=>`${e}${t}`).join("\n");return n.slice(0,n.length-1)}function eg(e){let t=(e.raw||e.text||"").match(/^(\s*)[-+*]\s+\[([ xX])\]\s+/);return t?{isTask:!0,checked:"x"===t[2].toLowerCase(),indentLevel:t[1].length}:{isTask:!1,indentLevel:0}}function ey(e,t){return"string"!=typeof e?"json":t}ep.options=ep.setOptions=function(e){return eh.setOptions(e),ep.defaults=eh.defaults,o=ep.defaults,ep},ep.getDefaults=i,ep.defaults=o,ep.use=function(...e){return eh.use(...e),ep.defaults=eh.defaults,o=ep.defaults,ep},ep.walkTokens=function(e,t){return eh.walkTokens(e,t)},ep.parseInline=eh.parseInline,ep.Parser=ed,ep.parser=ed.parse,ep.Renderer=eu,ep.TextRenderer=ec,ep.Lexer=es,ep.lexer=es.lex,ep.Tokenizer=ea,ep.Hooks=ef,ep.parse=ep,ep.options,ep.setOptions,ep.use,ep.walkTokens,ep.parseInline,ed.parse,es.lex;var ev=class{constructor(e){var t,n,i,o,l;this.baseExtensions=[],this.extensions=[],this.lastParseResult=null,this.markedInstance=null!=(t=null==e?void 0:e.marked)?t:ep,this.lexer=new this.markedInstance.Lexer,this.indentStyle=null!=(i=null==(n=null==e?void 0:e.indentation)?void 0:n.style)?i:"space",this.indentSize=null!=(l=null==(o=null==e?void 0:e.indentation)?void 0:o.size)?l:2,this.baseExtensions=(null==e?void 0:e.extensions)||[],(null==e?void 0:e.markedOptions)&&"function"==typeof this.markedInstance.setOptions&&this.markedInstance.setOptions(e.markedOptions),this.registry=new Map,this.nodeTypeRegistry=new Map,(null==e?void 0:e.extensions)&&(this.baseExtensions=e.extensions,(0,r.tp)(e.extensions).forEac
20h(e=>this.registerExtension(e,!1))),this.lexer=new this.markedInstance.Lexer}get instance(){return this.markedInstance}get indentCharacter(){return"space"===this.indentStyle?" ":" "}get indentString(){return this.indentCharacter.repeat(this.indentSize)}hasMarked(){return!!this.markedInstance}registerExtension(e,t=!0){var n,i;this.extensions.push(e);let o=e.name,l=(0,r.iI)(e,"markdownTokenName")||o,a=(0,r.iI)(e,"parseMarkdown"),s=(0,r.iI)(e,"renderMarkdown"),u=(0,r.iI)(e,"markdownTokenizer"),c=null!=(n=(0,r.iI)(e,"markdownOptions"))?n:null,d={tokenName:l,nodeName:o,parseMarkdown:a,renderMarkdown:s,isIndenting:null!=(i=null==c?void 0:c.indentsContent)&&i,tokenizer:u};if(l&&a){let e=this.registry.get(l)||[];e.push(d),this.registry.set(l,e)}if(s){let e=this.nodeTypeRegistry.get(o)||[];e.push(d),this.nodeTypeRegistry.set(o,e)}u&&this.hasMarked()&&(this.registerTokenizer(u),t&&(this.lexer=new this.markedInstance.Lexer))}registerTokenizer(e){if(!this.hasMarked())return;let{name:t,start:n,level:r="inline",tokenize:i}=e,o={inlineTokens:e=>this.lexer.inlineTokens(e),blockTokens:e=>this.lexer.blockTokens(e)};this.markedInstance.use({extensions:[{name:t,level:r,start:n?"function"==typeof n?n:e=>e.indexOf(n):e=>{let t=i(e,[],o);return t&&t.raw?e.indexOf(t.raw):-1},tokenizer:(e,n)=>{let r=i(e,n,o);if(r&&r.type)return{...r,type:r.type||t,raw:r.raw||"",tokens:r.tokens||[]}},childTokens:[]}]})}getHandlersForToken(e){try{return this.registry.get(e)||[]}catch{return[]}}getHandlerForToken(e){let t=this.getHandlersForToken(e);if(t.length>0)return t[0];let n=this.getHandlersForNodeType(e);return n.length>0?n[0]:void 0}getHandlersForNodeType(e){try{return this.nodeTypeRegistry.get(e)||[]}catch{return[]}}serialize(e){return e?(Array.isArray(e),this.renderNodes(e,e)):""}parse(e){if(!this.hasMarked())throw Error("No marked instance available for parsing");let t=this.markedInstance.lexer(e);return{type:"doc",content:this.parseTokens(t)}}parseTokens(e){return e.map(e=>this.parseToken(e)).filter(e=>null!==e).flatMap(e=>Array.isArray(e)?e:[e])}parseToken(e){if(!e.type)return null;if("list"===e.type)return this.parseListToken(e);let t=this.getHandlersForToken(e.type),n=this.createParseHelpers();if(t.find(t=>{if(!t.parseMarkdown)return!1;let r=t.parseMarkdown(e,n),i=this.normalizeParseResult(r);return!(!i||Array.isArray(i)&&!(i.length>0))&&(this.lastParseResult=i,!0)})&&this.lastParseResult){let e=this.lastParseResult;return this.lastParseResult=null,e}return this.parseFallbackToken(e)}parseListToken(e){if(!e.items||0===e.items.length)return this.parseTokenWithHandlers(e);let t=e.items.some(e=>eg(e).isTask),n=e.items.some(e=>!eg(e).isTask);if(!t||!n||0===this.getHandlersForToken("taskList").length)return this.parseTokenWithHandlers(e);let r=[],i=[],o=null;for(let t=0;t<e.items.length;t+=1){let n=e.items[t],{isTask:l,checked:a,indentLevel:s}=eg(n),u=n;if(l){let e=(n.raw||n.text||"").split("\n"),t=e[0].match(/^\s*[-+*]\s+\[([ xX])\]\s+(.*)$/),r=t?t[2]:"",i=[];if(e.length>1&&e.slice(1).join("\n").trim()){let t=e.slice(1),n=t.filter(e=>e.trim());if(n.length>0){let e=Math.min(...n.map(e=>e.length-e.trimStart().length)),r=t.map(t=>t.trim()?t.slice(e):"").join("\n").trim();r&&(i=this.markedInstance.lexer(`${r} 21`))}}u={type:"taskItem",raw:"",mainContent:r,indentLevel:s,checked:null!=a&&a,text:r,tokens:this.lexer.inlineTokens(r),nestedTokens:i}}let c=l?"taskList":"list";o!==c?(i.length>0&&r.push({type:o,items:i}),i=[u],o=c):i.push(u)}i.length>0&&r.push({type:o,items:i});let l=[];for(let t=0;t<r.length;t+=1){let n=r[t],i={...e,type:n.type,items:n.items},o=this.parseToken(i);o&&(Array.isArray(o)?l.push(...o):l.push(o))}return l.length>0?l:null}parseTokenWithHandlers(e){if(!e.type)return null;let t=this.getHandlersForToken(e.type),n=this.createParseHelpers();if(t.find(t=>{if(!t.parseMarkdown)return!1;let r=t.parseMarkdown(e,n),i=this.normalizeParseResult(r);return!(!i||Array.isArray(i)&&!(i.length>0))&&(this.lastParseResult=i,!0)})&&this.lastParseResult){let e=this.lastParseResult;return this.lastParseResult=null,e}return this.parseFallbackToken(e)}createParseHelpers(){return{parseInline:e=>this.parseInlineTokens(e),parseChildren:e=>this.parseTokens(e),createTextNode:(e,t)=>({type:"text",text:e,marks:t||void 0}),createNode:(e,t,n)=>{let r={type:e,attrs:t||void 0,content:n||void 0};return t&&0!==Object.keys(t).length||delete r.attrs,r},applyMark:(e,t,n)=>({mark:e,content:t,attrs:n&&Object.keys(n).length>0?n:void 0})}}escapeRegex(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}parseInlineTokens(e){var t,n,r,i;let o=[];for(let l=0;l<e.length;l+=1){let a=e[l];
21if("text"===a.type)o.push({type:"text",text:a.text||""});else if("html"===a.type){let s=(null!=(n=null!=(t=a.raw)?t:a.text)?n:"").toString(),u=/^<\/[\s]*[\w-]+/i.test(s),c=s.match(/^<[\s]*([\w-]+)(\s|>|\/|$)/i);if(!u&&c&&!/\/>$/.test(s)){let t=c[1],n=this.escapeRegex(t),a=RegExp(`^<\\/\\s*${n}\\b`,"i"),u=-1,d=[s];for(let t=l+1;t<e.length;t+=1){let n=e[t],o=(null!=(i=null!=(r=n.raw)?r:n.text)?i:"").toString();if(d.push(o),"html"===n.type&&a.test(o)){u=t;break}}if(-1!==u){let e=d.join(""),t={type:"html",raw:e,text:e,block:!1},n=this.parseHTMLToken(t);if(n){let e=this.normalizeParseResult(n);Array.isArray(e)?o.push(...e):e&&o.push(e)}l=u;continue}}let d=this.parseHTMLToken(a);if(d){let e=this.normalizeParseResult(d);Array.isArray(e)?o.push(...e):e&&o.push(e)}}else if(a.type){let e=this.getHandlerForToken(a.type);if(e&&e.parseMarkdown){let t=this.createParseHelpers(),n=e.parseMarkdown(a,t);if(this.isMarkResult(n)){let e=this.applyMarkToContent(n.mark,n.content,n.attrs);o.push(...e)}else{let e=this.normalizeParseResult(n);Array.isArray(e)?o.push(...e):e&&o.push(e)}}else a.tokens&&o.push(...this.parseInlineTokens(a.tokens))}}return o}applyMarkToContent(e,t,n){return t.map(t=>{if("text"===t.type){let r=t.marks||[],i=n?{type:e,attrs:n}:{type:e};return{...t,marks:[...r,i]}}return{...t,content:t.content?this.applyMarkToContent(e,t.content,n):void 0}})}isMarkResult(e){return e&&"object"==typeof e&&"mark"in e}normalizeParseResult(e){return e?this.isMarkResult(e)?e.content:e:null}parseFallbackToken(e){switch(e.type){case"paragraph":return{type:"paragraph",content:e.tokens?this.parseInlineTokens(e.tokens):[]};case"heading":return{type:"heading",attrs:{level:e.depth||1},content:e.tokens?this.parseInlineTokens(e.tokens):[]};case"text":return{type:"text",text:e.text||""};case"html":return this.parseHTMLToken(e);case"space":return null;default:if(e.tokens)return this.parseTokens(e.tokens);return null}}parseHTMLToken(e){let t=e.text||e.raw||"";if(!t.trim())return null;try{let n=(0,r.yQ)(t,this.baseExtensions);if("doc"===n.type&&n.content){if(e.block)return n.content;if(1===n.content.length&&"paragraph"===n.content[0].type&&n.content[0].content)return n.content[0].content;return n.content}return n}catch(e){throw Error(`Failed to parse HTML in markdown: ${e}`)}}renderNodeToMarkdown(e,t,n=0,r=0){var i;if("text"===e.type)return e.text||"";if(!e.type)return"";let o=this.getHandlerForToken(e.type);if(!o)return"";let l={index:n,level:r,parentType:null==t?void 0:t.type,meta:{}};return(null==(i=o.renderMarkdown)?void 0:i.call(o,e,{renderChildren:(t,i)=>{let l=o.isIndenting?r+1:r;return!Array.isArray(t)&&t.content?this.renderNodes(t.content,e,i||"",n,l):this.renderNodes(t,e,i||"",n,l)},indent:e=>this.indentString+e,wrapInBlock:em},l))||""}renderNodes(e,t,n="",r=0,i=0){return Array.isArray(e)?this.renderNodesWithMarkBoundaries(e,t,n,i):e.type?this.renderNodeToMarkdown(e,t,r,i):""}renderNodesWithMarkBoundaries(e,t,n="",r=0){let i=[],o=new Map;return e.forEach((n,l)=>{let a=l<e.length-1?e[l+1]:null;if(n.type)if("text"===n.type){let e=n.text||"",t=new Map((n.marks||[]).map(e=>[e.type,e])),r=function(e,t){let n=[];return Array.from(e.keys()).forEach(e=>{t.has(e)||n.push(e)}),n}(o,t),l=function(e,t){let n=[];return Array.from(t.entries()).forEach(([t,r])=>{e.has(t)||n.push({type:t,mark:r})}),n}(o,t);r.forEach(t=>{let n=o.get(t),r=this.getMarkClosing(t,n);r&&(e+=r),o.delete(t)});let s="";if(l.length>0){let t=e.match(/^(\s+)/);t&&(s=t[1],e=e.slice(s.length))}l.forEach(({type:t,mark:n})=>{let r=this.getMarkOpening(t,n);r&&(e=r+e),o.set(t,n)}),e=s+e;let u=function(e,t,n,r){let i=!n,o=n&&"text"===n.type&&(!n.marks||0===n.marks.length),l=n&&"text"===n.type&&n.marks&&!r(t,new Map(n.marks.map(e=>[e.type,e]))),a=[];if(i||o||l)if(n&&"text"===n.type&&n.marks){let t=new Map(n.marks.map(e=>[e.type,e]));Array.from(e.keys()).forEach(e=>{t.has(e)||a.push(e)})}else(i||o)&&a.push(...Array.from(e.keys()));return a}(o,t,a,this.markSetsEqual.bind(this)),c="";if(u.length>0){let t=e.match(/(\s+)$/);t&&(c=t[1],e=e.slice(0,-c.length))}u.forEach(t=>{let n=o.get(t),r=this.getMarkClosing(t,n);r&&(e+=r),o.delete(t)}),e+=c,i.push(e)}else{var s,u;let e,a,c=new Map(o),d=(s=this.getMarkClosing.bind(this),e="",Array.from(o.keys()).reverse().forEac
21h(t=>{let n=o.get(t),r=s(t,n);r&&(e=r+e)}),o.clear(),e),f=this.renderNodeToMarkdown(n,t,l,r),h="hardBreak"===n.type?"":(u=this.getMarkOpening.bind(this),a="",Array.from(c.entries()).forEach(([e,t])=>{let n=u(e,t);n&&(a+=n),o.set(e,t)}),a);i.push(d+f+h)}}),i.join(n)}getMarkOpening(e,t){let n=this.getHandlersForNodeType(e),r=n.length>0?n[0]:void 0;if(!r||!r.renderMarkdown)return"";let i="î__TIPTAP_MARKDOWN_PLACEHOLDER__î",o={type:e,attrs:t.attrs||{},content:[{type:"text",text:i}]};try{let e=r.renderMarkdown(o,{renderChildren:()=>i,indent:e=>e,wrapInBlock:(e,t)=>e+t},{index:0,level:0,parentType:"text",meta:{}}),t=e.indexOf(i);return t>=0?e.substring(0,t):""}catch(t){throw Error(`Failed to get mark opening for ${e}: ${t}`)}}getMarkClosing(e,t){let n=this.getHandlersForNodeType(e),r=n.length>0?n[0]:void 0;if(!r||!r.renderMarkdown)return"";let i="î__TIPTAP_MARKDOWN_PLACEHOLDER__î",o={type:e,attrs:t.attrs||{},content:[{type:"text",text:i}]};try{let e=r.renderMarkdown(o,{renderChildren:()=>i,indent:e=>e,wrapInBlock:(e,t)=>e+t},{index:0,level:0,parentType:"text",meta:{}}),t=e.indexOf(i),n=t+i.length;return t>=0?e.substring(n):""}catch(t){throw Error(`Failed to get mark closing for ${e}: ${t}`)}}markSetsEqual(e,t){return e.size===t.size&&Array.from(e.keys()).every(e=>t.has(e))}},eb=r.YY.create({name:"markdown",addOptions:()=>({indentation:{style:"space",size:2},marked:void 0,markedOptions:{}}),addCommands(){return{setContent:(e,t)=>{if(!(null==t?void 0:t.contentType)||"markdown"!==ey(e,null==t?void 0:t.contentType)||!this.editor.markdown)return r.Pi.setContent(e,t);let n=this.editor.markdown.parse(e);return r.Pi.setContent(n,t)},insertContent:(e,t)=>{if(!(null==t?void 0:t.contentType)||"markdown"!==ey(e,null==t?void 0:t.contentType)||!this.editor.markdown)return r.Pi.insertContent(e,t);let n=this.editor.markdown.parse(e);return r.Pi.insertContent(n,t)},insertContentAt:(e,t,n)=>{if(!(null==n?void 0:n.contentType)||"markdown"!==ey(t,null==n?void 0:n.contentType)||!this.editor.markdown)return r.Pi.insertContentAt(e,t,n);let i=this.editor.markdown.parse(t);return r.Pi.insertContentAt(e,i,n)}}},addStorage(){return{manager:new ev({indentation:this.options.indentation,marked:this.options.marked,markedOptions:this.options.markedOptions,extensions:[]})}},onBeforeCreate(){if(this.editor.markdown)return void console.error("[tiptap][markdown]: There is already a `markdown` property on the editor instance. This might lead to unexpected behavior.");if(this.storage.manager=new ev({indentation:this.options.indentation,marked:this.options.marked,markedOptions:this.options.markedOptions,extensions:this.editor.extensionManager.baseExtensions}),this.editor.markdown=this.storage.manager,this.editor.getMarkdown=()=>this.storage.manager.serialize(this.editor.getJSON()),!this.editor.options.contentType||"markdown"!==ey(this.editor.options.content,this.editor.options.contentType))return;if(!this.editor.markdown)throw Error('[tiptap][markdown]: The `contentType` option is set to "markdown", but the Markdown extension is not added to the editor. Please add the Markdown extension to use this feature.');if(void 0===this.editor.options.content||"string"!=typeof this.editor.options.content)throw Error('[tiptap][markdown]: The `contentType` option is set to "markdown", but the initial content is not a string. Please provide the initial content as a markdown string.');let e=this.editor.markdown.parse(this.editor.options.content);this.editor.options.content=e}})},30013:(e,t,n)=>{"use strict";n.d(t,{BN:()=>h,ER:()=>p,Ej:()=>g,UE:()=>v,UU:()=>m,cY:()=>f,jD:()=>y,we:()=>d});var r=n(79268),i=n(38848),o=n(91505),l="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function a(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!a(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!a(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function s(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u(e,t){let n=s(e);return Math.round(t*n)/n}function c(e){let t=i.useRef(e);return l(()=>{t.current=e}),t}function d(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:f,elements:{reference:h,floating:p}={},transform:m=!0,whileElementsMounted:g,open:y}=e,[v,b]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[w,x]=i.useState(d);a(w,d)||x(d);let[k,C]=i.useState(null),[S,E]=i.useState(null),M=i.useCallback(e=>
21{e!==O.current&&(O.current=e,C(e))},[]),T=i.useCallback(e=>{e!==N.current&&(N.current=e,E(e))},[]),R=h||k,A=p||S,O=i.useRef(null),N=i.useRef(null),P=i.useRef(v),L=null!=g,I=c(g),D=c(f),_=i.useCallback(()=>{if(!O.current||!N.current)return;let e={placement:t,strategy:n,middleware:w};D.current&&(e.platform=D.current),(0,r.rD)(O.current,N.current,e).then(e=>{let t={...e,isPositioned:!0};j.current&&!a(P.current,t)&&(P.current=t,o.flushSync(()=>{b(t)}))})},[w,t,n,D]);l(()=>{!1===y&&P.current.isPositioned&&(P.current.isPositioned=!1,b(e=>({...e,isPositioned:!1})))},[y]);let j=i.useRef(!1);l(()=>(j.current=!0,()=>{j.current=!1}),[]),l(()=>{if(R&&(O.current=R),A&&(N.current=A),R&&A){if(I.current)return I.current(R,A,_);_()}},[R,A,_,I,L]);let F=i.useMemo(()=>({reference:O,floating:N,setReference:M,setFloating:T}),[M,T]),z=i.useMemo(()=>({reference:R,floating:A}),[R,A]),H=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!z.floating)return e;let t=u(z.floating,v.x),r=u(z.floating,v.y);return m?{...e,transform:"translate("+t+"px, "+r+"px)",...s(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,m,z.floating,v.x,v.y]);return i.useMemo(()=>({...v,update:_,refs:F,elements:z,floatingStyles:H}),[v,_,F,z,H])}let f=(e,t)=>({...(0,r.cY)(e),options:[e,t]}),h=(e,t)=>({...(0,r.BN)(e),options:[e,t]}),p=(e,t)=>({...(0,r.ER)(e),options:[e,t]}),m=(e,t)=>({...(0,r.UU)(e),options:[e,t]}),g=(e,t)=>({...(0,r.Ej)(e),options:[e,t]}),y=(e,t)=>({...(0,r.jD)(e),options:[e,t]}),v=(e,t)=>
21({...(e=>({name:"arrow",options:e,fn(t){let{element:n,padding:i}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,r.UE)({element:n.current,padding:i}).fn(t):{}:n?(0,r.UE)({element:n,padding:i}).fn(t):{}}}))(e),options:[e,t]})},30598:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>o});var r=n(8760),i=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,o=r.bP.create({name:"image",addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{},resize:!1}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes:()=>({src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",(0,r.KV)(this.options.HTMLAttributes,e)]},parseMarkdown:(e,t)=>t.createNode("image",{src:e.href,title:e.title,alt:e.text}),renderMarkdown:e=>{var t,n,r,i,o,l;let a=null!=(n=null==(t=e.attrs)?void 0:t.src)?n:"",s=null!=(i=null==(r=e.attrs)?void 0:r.alt)?i:"",u=null!=(l=null==(o=e.attrs)?void 0:o.title)?l:"";return u?``:``},addNodeView(){if(!this.options.resize||!this.options.resize.enabled||"undefined"==typeof document)return null;let{directions:e,minWidth:t,minHeight:n,alwaysPreserveAspectRatio:i}=this.options.resize;return({node:o,getPos:l,HTMLAttributes:a,editor:s})=>{let u=document.createElement("img");Object.entries(a).forEach(([e,t])=>{if(null!=t)switch(e){case"width":case"height":break;default:u.setAttribute(e,t)}}),u.src=a.src;let c=new r.Nz({element:u,editor:s,node:o,getPos:l,onResize:(e,t)=>
21{u.style.width=`${e}px`,u.style.height=`${t}px`},onCommit:(e,t)=>{let n=l();void 0!==n&&this.editor.chain().setNodeSelection(n).updateAttributes(this.name,{width:e,height:t}).run()},onUpdate:(e,t,n)=>e.type===o.type,options:{directions:e,min:{width:t,height:n},preserveAspectRatio:!0===i}}),d=c.dom;return d.style.visibility="hidden",d.style.pointerEvents="none",u.onload=()=>{d.style.visibility="",d.style.pointerEvents=""},c}},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[(0,r.jT)({find:i,type:this.type,getAttributes:e=>{let[,,t,n,r]=e;return{src:n,alt:t,title:r}}})]}})},30837:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return w}});let r=n(71685),i=n(5142),o=n(38476),l=i._(n(38848)),a=r._(n(91505)),s=r._(n(6126)),u=n(63365),c=n(15266),d=n(76334);n(93124);let f=n(55999),h=r._(n(47951)),p=n(98148),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(e,t,n,r,i,o,l){let a=null==e?void 0:e.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}}))}function y(e){return l.use?{fetchPriority:e}:{fetchpriority:e}}let v=(0,l.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:i,height:a,width:s,decoding:u,className:c,style:d,fetchPriority:f,placeholder:h,loading:m,unoptimized:v,fill:b,onLoadRef:w,onLoadingCompleteRef:x,setBlurComplete:k,setShowAltText:C,sizesInput:S,onLoad:E,onError:M,...T}=e,R=(0,l.useCallback)(e=>{e&&(M&&(e.src=e.src),e.complete&&g(e,h,w,x,k,v,S))},[n,h,w,x,k,M,v,S]),A=(0,p.useMergedRef)(t,R);return(0,o.jsx)("img",{...T,...y(f),loading:m,width:s,height:a,decoding:u,"data-nimg":b?"fill":"1",className:c,style:d,sizes:i,srcSet:r,src:n,ref:A,onLoad:e=>{g(e.currentTarget,h,w,x,k,v,S)},onError:e=>{C(!0),"empty"!==h&&k(!0),M&&M(e)}})});function b(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...y(n.fetchPriority)};return t&&a.default.preload?(a.default.preload(n.src,r),null):(0,o.jsx)(s.default,{children:(0,o.jsx)("link",{rel:"preload",href:n.srcSet?void 0:n.src,...r},"__nimg-"+n.src+n.srcSet+n.sizes)})}let w=(0,l.forwardRef)((e,t)=>{let n=(0,l.useContext)(f.RouterContext),r=(0,l.useContext)(d.ImageConfigContext),i=(0,l.useMemo)(()=>{var e;let t=m||r||c.imageConfigDefault,n=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),i=t.deviceSizes.sort((e,t)=>e-t),o=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:n,deviceSizes:i,qualities:o}},[r]),{onLoad:a,onLoadingComplete:s}=e,p=(0,l.useRef)(a);(0,l.useEffect)(()=>{p.current=a},[a]);let g=(0,l.useRef)(s);(0,l.useEffect)(()=>{g.current=s},[s]);let[y,w]=(0,l.useState)(!1),[x,k]=(0,l.useState)(!1),{props:C,meta:S}=(0,u.getImgProps)(e,{defaultLoader:h.default,imgConf:i,blurComplete:y,showAltText:x});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v,{...C,unoptimized:S.unoptimized,placeholder:S.placeholder,fill:S.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:w,setShowAltText:k,sizesInput:e.sizes,ref:t}),S.priority?(0,o.jsx)(b,{isAppRouter:!n,imgAttributes:C}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},30889:(e,t,n)=>{"use strict";n.d(t,{J:()=>i});var r=n(89983);function i(e,t,n){return(0,r.f)(e,7*t,n)}}
21,31052:(e,t,n)=>{"use strict";n.d(t,{Q6:()=>V,bL:()=>$,zi:()=>W,CC:()=>U});var r=n(38848);function i(e,[t,n]){return Math.min(n,Math.max(t,e))}var o=n(4529),l=n(25300),a=n(89486),s=n(67821),u=n(46229),c=n(60117),d=n(48949),f=n(5461),h=n(21670),p=n(38476),m=["PageUp","PageDown"],g=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],y={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},v="Slider",[b,w,x]=(0,h.N)(v),[k,C]=(0,a.A)(v,[x]),[S,E]=k(v),M=r.forwardRef((e,t)=>{let{name:n,min:l=0,max:a=100,step:u=1,orientation:c="horizontal",disabled:d=!1,minStepsBetweenThumbs:f=0,defaultValue:h=[l],value:y,onValueChange:v=()=>{},onValueCommit:w=()=>{},inverted:x=!1,form:k,...C}=e,E=r.useRef(new Set),M=r.useRef(0),T="horizontal"===c,[R=[],N]=(0,s.i)({prop:y,defaultProp:h,onChange:e=>{var t;null==(t=[...E.current][M.current])||t.focus(),v(e)}}),P=r.useRef(R);function L(e,t){let{commit:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{commit:!1},r=(String(u).split(".")[1]||"").length,o=i(function(e,t){let n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-l)/u)*u+l,r),[l,a]);N(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}(e,o,t);if(!function(e,t){if(t>0)return Math.min(...e.slice(0,-1).map((t,n)=>e[n+1]-t))>=t;return!0}(r,f*u))return e;{M.current=r.indexOf(o);let t=String(r)!==String(e);return t&&n&&w(r),t?r:e}})}return(0,p.jsx)(S,{scope:e.__scopeSlider,name:n,disabled:d,min:l,max:a,valueIndexToChangeRef:M,thumbs:E.current,values:R,orientation:c,form:k,children:(0,p.jsx)(b.Provider,{scope:e.__scopeSlider,children:(0,p.jsx)(b.Slot,{scope:e.__scopeSlider,children:(0,p.jsx)(T?A:O,{"aria-disabled":d,"data-disabled":d?"":void 0,...C,ref:t,onPointerDown:(0,o.mK)(C.onPointerDown,()=>{d||(P.current=R)}),min:l,max:a,inverted:x,onSlideStart:d?void 0:function(e){let t=function(e,t){if(1===e.length)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}(R,e);L(e,t)},onSlideMove:d?void 0:function(e){L(e,M.current)},onSlideEnd:d?void 0:function(){let e=P.current[M.current];R[M.current]!==e&&w(R)},onHomeKeyDown:()=>!d&&L(l,0,{commit:!0}),onEndKeyDown:()=>!d&&L(a,R.length-1,{commit:!0}),onStepKeyDown:e=>{let{event:t,direction:n}=e;if(!d){let e=m.includes(t.key)||t.shiftKey&&g.includes(t.key),r=M.current;L(R[r]+u*(e?10:1)*n,r,{commit:!0})}}})})})})});M.displayName=v;var[T,R]=k(v,{startEdge:"left",endEdge:"right",size:"width",direction:1}),A=r.forwardRef((e,t)=>{let{min:n,max:i,dir:o,inverted:a,onSlideStart:s,onSlideMove:c,onSlideEnd:d,onStepKeyDown:f,...h}=e,[m,g]=r.useState(null),v=(0,l.s)(t,e=>g(e)),b=r.useRef(void 0),w=(0,u.jH)(o),x="ltr"===w,k=x&&!a||!x&&a;function C(e){let t=b.current||m.getBoundingClientRect(),r=B([0,t.width],k?[n,i]:[i,n]);return b.current=t,r(e-t.left)}return(0,p.jsx)(T,{scope:e.__scopeSlider,startEdge:k?"left":"right",endEdge:k?"right":"left",direction:k?1:-1,size:"width",children:(0,p.jsx)(N,{dir:w,"data-orientation":"horizontal",...h,ref:v,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=C(e.clientX);null==s||s(t)},onSlideMove:e=>{let t=C(e.clientX);null==c||c(t)},onSlideEnd:()=>{b.current=void 0,null==d||d()},onStepKeyDown:e=>{let t=y[k?"from-left":"from-right"].includes(e.key);null==f||f({event:e,direction:t?-1:1})}})})}),O=r.forwardRef((e,t)=>{let{min:n,max:i,inverted:o,onSlideStart:a,onSlideMove:s,onSlideEnd:u,onStepKeyDown:c,...d}=e,f=r.useRef(null),h=(0,l.s)(t,f),m=r.useRef(void 0),g=!o;function v(e){let t=m.current||f.current.getBoundingClientRect(),r=B([0,t.height],g?[i,n]:[n,i]);return m.current=t,r(e-t.top)}return(0,p.jsx)(T,{scope:e.__scopeSlider,startEdge:g?"bottom":"top",endEdge:g?"top":"bottom",size:"height",direction:g?1:-1,children:(0,p.jsx)(N,{"data-orientation":"vertical",...d,ref:h,style:{...d.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=v(e.clientY);null==a||a(t)},onSlideMove:e=>{let t=v(e.clientY);null==s||s(t)},onSlideEnd:()=>{m.current=void 0,null==u||u()},onStepKeyDown:e=>
21{let t=y[g?"from-bottom":"from-top"].includes(e.key);null==c||c({event:e,direction:t?-1:1})}})})}),N=r.forwardRef((e,t)=>{let{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:l,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:u,...c}=e,d=E(v,n);return(0,p.jsx)(f.sG.span,{...c,ref:t,onKeyDown:(0,o.mK)(e.onKeyDown,e=>{"Home"===e.key?(a(e),e.preventDefault()):"End"===e.key?(s(e),e.preventDefault()):m.concat(g).includes(e.key)&&(u(e),e.preventDefault())}),onPointerDown:(0,o.mK)(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),d.thumbs.has(t)?t.focus():r(e)}),onPointerMove:(0,o.mK)(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&i(e)}),onPointerUp:(0,o.mK)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),l(e))})})}),P="SliderTrack",L=r.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,i=E(P,n);return(0,p.jsx)(f.sG.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...r,ref:t})});L.displayName=P;var I="SliderRange",D=r.forwardRef((e,t)=>{let{__scopeSlider:n,...i}=e,o=E(I,n),a=R(I,n),s=r.useRef(null),u=(0,l.s)(t,s),c=o.values.length,d=o.values.map(e=>H(e,o.min,o.max)),h=c>1?Math.min(...d):0,m=100-Math.max(...d);return(0,p.jsx)(f.sG.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...i,ref:u,style:{...e.style,[a.startEdge]:h+"%",[a.endEdge]:m+"%"}})});D.displayName=I;var _="SliderThumb",j=r.forwardRef((e,t)=>{let n=w(e.__scopeSlider),[i,o]=r.useState(null),a=(0,l.s)(t,e=>o(e)),s=r.useMemo(()=>i?n().findIndex(e=>e.ref.current===i):-1,[n,i]);return(0,p.jsx)(F,{...e,ref:a,index:s})}),F=r.forwardRef((e,t)=>{let{__scopeSlider:n,index:i,name:a,...s}=e,u=E(_,n),c=R(_,n),[h,m]=r.useState(null),g=(0,l.s)(t,e=>m(e)),y=!h||u.form||!!h.closest("form"),v=(0,d.X)(h),w=u.values[i],x=void 0===w?0:H(w,u.min,u.max),k=function(e,t){return t>2?"Value ".concat(e+1," of ").concat(t):2===t?["Minimum","Maximum"][e]:void 0}(i,u.values.length),C=null==v?void 0:v[c.size],S=C?function(e,t,n){let r=e/2,i=B([0,50],[0,r]);return(r-i(t)*n)*n}(C,x,c.direction):0;return r.useEffect(()=>{if(h)return u.thumbs.add(h),()=>{u.thumbs.delete(h)}},[h,u.thumbs]),(0,p.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[c.startEdge]:"calc(".concat(x,"% + ").concat(S,"px)")},children:[(0,p.jsx)(b.ItemSlot,{scope:e.__scopeSlider,children:(0,p.jsx)(f.sG.span,{role:"slider","aria-label":e["aria-label"]||k,"aria-valuemin":u.min,"aria-valuenow":w,"aria-valuemax":u.max,"aria-orientation":u.orientation,"data-orientation":u.orientation,"data-disabled":u.disabled?"":void 0,tabIndex:u.disabled?void 0:0,...s,ref:g,style:void 0===w?{display:"none"}:e.style,onFocus:(0,o.mK)(e.onFocus,()=>{u.valueIndexToChangeRef.current=i})})}),y&&(0,p.jsx)(z,{name:null!=a?a:u.name?u.name+(u.values.length>1?"[]":""):void 0,form:u.form,value:w},i)]})});j.displayName=_;var z=r.forwardRef((e,t)=>{let{__scopeSlider:n,value:i,...o}=e,a=r.useRef(null),s=(0,l.s)(a,t),u=(0,c.Z)(i);return r.useEffect(()=>{let e=a.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(u!==i&&t){let n=new Event("input",{bubbles:!0});t.call(e,i),e.dispatchEvent(n)}},[u,i]),(0,p.jsx)(f.sG.input,{style:{display:"none"},...o,ref:s,defaultValue:i})});function H(e,t,n){return i(100/(n-t)*(e-t),[0,100])}function B(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}z.displayName="RadioBubbleInput";var $=M,U=L,V=D,W=j},31054:(e,t,n)=>{"use strict";n.d(t,{Dc:()=>s,TL:()=>l});var r=n(38848),i=n(25300),o=n(38476);function l(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(r.isValidElement(n)){var l;let e,a,s=(l=n,(a=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(a=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),u=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>
21{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(u.ref=t?(0,i.t)(t,s):s),r.cloneElement(n,u)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:i,...l}=e,a=r.Children.toArray(i),s=a.find(u);if(s){let e=s.props.children,i=a.map(t=>t!==s?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,o.jsx)(t,{...l,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,i):null})}return(0,o.jsx)(t,{...l,ref:n,children:i})});return n.displayName=`${e}.Slot`,n}var a=Symbol("radix.slottable");function s(e){let t=({children:e})=>(0,o.jsx)(o.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=a,t}function u(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===a}},31946:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(90953).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},33265:(e,t,n)=>{"use strict";n.d(t,{Ag:()=>o,pz:()=>l});var r=n(88050),i=n(61947);let o=(0,r.f)(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.Tt-e.getMinutes()*i.rR)},(e,t)=>{e.setTime(+e+t*i.JJ)},(e,t)=>(t-e)/i.JJ,e=>e.getHours());o.range;let l=(0,r.f)(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*i.JJ)},(e,t)=>(t-e)/i.JJ,e=>e.getUTCHours());l.range},33463:(e,t,n)=>{"use strict";function r(e,t){return e*=1,t*=1,function(n){return Math.round(e*(1-n)+t*n)}}n.d(t,{A:()=>r})},34150:(e,t)=>{"use strict";function n(e){let{ampFirst:t=!1,hybrid:n=!1,hasQuery:r=!1}=void 0===e?{}:e;return t||n&&r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return n}})},34279:(e,t,n)=>{e.exports=n(74233)()},34418:(e,t,n)=>{"use strict";function r(e,t,n,r){let i,o=e.length,l=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);l<r.length;)(i=r.slice(l,l+1e4)).unshift(t,0),e.splice(...i),l+=1e4,t+=1e4}function i(e,t){return e.length>0?(r(e,e.length,0,t),e):t}n.d(t,{V:()=>i,m:()=>r})},35129:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=e=>()=>e}
21,35164:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>a,lq:()=>s,sG:()=>u});let r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function l(e,t,n){let a,s,u,c=(t-e)/Math.max(0,n),d=Math.floor(Math.log10(c)),f=c/Math.pow(10,d),h=f>=r?10:f>=i?5:f>=o?2:1;return(d<0?(a=Math.round(e*(u=Math.pow(10,-d)/h)),s=Math.round(t*u),a/u<e&&++a,s/u>t&&--s,u=-u):(a=Math.round(e/(u=Math.pow(10,d)*h)),s=Math.round(t/u),a*u<e&&++a,s*u>t&&--s),s<a&&.5<=n&&n<2)?l(e,t,2*n):[a,s,u]}function a(e,t,n){if(t*=1,e*=1,!((n*=1)>0))return[];if(e===t)return[e];let r=t<e,[i,o,a]=r?l(t,e,n):l(e,t,n);if(!(o>=i))return[];let s=o-i+1,u=Array(s);if(r)if(a<0)for(let e=0;e<s;++e)u[e]=-((o-e)/a);else for(let e=0;e<s;++e)u[e]=(o-e)*a;else if(a<0)for(let e=0;e<s;++e)u[e]=-((i+e)/a);else for(let e=0;e<s;++e)u[e]=(i+e)*a;return u}function s(e,t,n){return l(e*=1,t*=1,n*=1)[2]}function u(e,t,n){t*=1,e*=1,n*=1;let r=t<e,i=r?s(t,e,n):s(e,t,n);return(r?-1:1)*(i<0?-(1/i):i)}},35938:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return r}});let r=n(71685)._(n(38848)).default.createContext({})},36358:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(38848),i=n(91505),o=n(5461),l=n(57495),a=n(38476),s=r.forwardRef((e,t)=>{var n,s;let{container:u,...c}=e,[d,f]=r.useState(!1);(0,l.N)(()=>f(!0),[]);let h=u||d&&(null==(s=globalThis)||null==(n=s.document)?void 0:n.body);return h?i.createPortal((0,a.jsx)(o.sG.div,{...c,ref:t}),h):null});s.displayName="Portal"},36433:(e,t,n)=>{"use strict";function r(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}n.d(t,{$:()=>r})},37999:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(34279),i=n.n(r),o=n(38848),l=n(64299),a=n.n(l),s=["top","left","transform","className","children","innerRef"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e){var t=e.top,n=e.left,r=e.transform,i=e.className,l=e.children,c=e.innerRef,d=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,s);return o.createElement("g",u({ref:c,className:a()("visx-group",i),transform:r||"translate("+(void 0===n?0:n)+", "+(void 0===t?0:t)+")"},d),l)}c.propTypes={top:i().number,left:i().number,transform:i().string,className:i().string,children:i().node,innerRef:i().oneOfType([i().string,i().func,i().object])}},38251:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(90953).A)("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]])},38540:(e,t,n)=>{"use strict";n.d(t,{QO:()=>I,vR:()=>D,Or:()=>_,JU:()=>F,lb:()=>z});var r=n(8760),i=n(4033),o=n(10761);class l{constructor(e,t){var n;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!=(n=t.width)?n:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(t=>{let n=e=>{this[t](e)};return e.dom.addEventListener(t,n),{name:t,handler:n}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t,n=this.editorView.state.doc.resolve(this.cursorPos),r=!n.parent.inlineContent,i,o=this.editorView.dom,l=o.getBoundingClientRect(),a=l.width/o.offsetWidth,s=l.height/o.offsetHeight;if(r){let e=n.nodeBefore,t=n.nodeAfter;if(e||t){let n=this.editorView.nodeDOM(this.cursorPos-(e?e.nodeSize:0));
21if(n){let r=n.getBoundingClientRect(),o=e?r.bottom:r.top;e&&t&&(o=(o+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let l=this.width/2*s;i={left:r.left,right:r.right,top:o-l,bottom:o+l}}}}if(!i){let e=this.editorView.coordsAtPos(this.cursorPos),t=this.width/2*a;i={left:e.left-t,right:e.left+t,top:e.top,bottom:e.bottom}}let u=this.editorView.dom.offsetParent;if(!this.element&&(this.element=u.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",r),this.element.classList.toggle("prosemirror-dropcursor-inline",!r),u&&(u!=document.body||"static"!=getComputedStyle(u).position)){let n=u.getBoundingClientRect(),r=n.width/u.offsetWidth,i=n.height/u.offsetHeight;e=n.left-u.scrollLeft*r,t=n.top-u.scrollTop*i}else e=-pageXOffset,t=-pageYOffset;this.element.style.left=(i.left-e)/a+"px",this.element.style.top=(i.top-t)/s+"px",this.element.style.width=(i.right-i.left)/a+"px",this.element.style.height=(i.bottom-i.top)/s+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),r=n&&n.type.spec.disableDropCursor,i="function"==typeof r?r(this.editorView,t,e):r;if(t&&!i){let e=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=(0,o.Um)(this.editorView.state.doc,e,this.editorView.dragging.slice);null!=t&&(e=t)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}var a=n(91759),s=n(5875),u=n(7964);class c extends i.LN{constructor(e){super(e,e)}map(e,t){let n=e.resolve(t.map(this.head));return c.valid(n)?new c(n):i.LN.near(n)}content(){return u.Ji.empty}eq(e){return e instanceof c&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for GapCursor.fromJSON");return new c(e.resolve(t.pos))}getBookmark(){return new d(this.anchor)}static valid(e){let t=e.parent;if(t.isTextblock||!function(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(0==n){if(r.type.spec.isolating)return!0;continue}for(let e=r.child(n-1);;e=e.lastChild){if(0==e.childCount&&!e.inlineContent||e.isAtom||e.type.spec.isolating)return!0;if(e.inlineContent)return!1}}return!0}(e)||!function(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let e=r.child(n);;e=e.firstChild){if(0==e.childCount&&!e.inlineContent||e.isAtom||e.type.spec.isolating)return!0;if(e.inlineContent)return!1}}return!0}(e))return!1;let n=t.type.spec.allowGapCursor;if(null!=n)return n;let r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(e,t,n=!1){r:for(;;){if(!n&&c.valid(e))return e;let r=e.pos,o=null;for(let n=e.depth;;n--){let i=e.node(n);if(t>0?e.indexAfter(n)<i.childCount:e.index(n)>0){o=i.child(t>0?e.indexAfter(n):e.index(n)-1);break}if(0==n)return null;r+=t;let l=e.doc.resolve(r);if(c.valid(l))return l}for(;;){let l=t>0?o.firstChild:o.lastChild;if(!l){if(o.isAtom&&!o.isText&&!i.nh.isSelectable(o)){e=e.doc.resolve(r+o.nodeSize*t),n=!1;continue r}break}o=l,r+=t;let a=e.doc.resolve(r);if(c.valid(a))return a}return null}}}c.prototype.visible=!1,c.findFrom=c.findGapCursorFrom,i.LN.jsonID("gapcursor",c);class d{constructor(e){this.pos=e}map(e){return new d(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return c.valid(t)?new c(t):i.LN.near(t)}}let f=(0,s.K)({ArrowLeft:h("horiz",-1),ArrowRight:h("horiz",1),ArrowUp:h("vert",-1),ArrowDown:h("vert",1)});function h(e,t){let n="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,r,o){let l=e.selection,a=t>0?l.$to:l.$from,s=l.empty;if(l instanceof i.U3){if(!o.endOfTextblock(n)||0==a.depth)return!1;s=!1,a=e.doc.resolve(t>0?a.after():a.before())}let u=c.findGapCursorFrom(a,t,s);return!!u&&(r&&r(e.tr.setSelection(new c(u))),!0)}}function p(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!c.valid(r))return!1;
21let o=e.posAtCoords({left:n.clientX,top:n.clientY});return!(o&&o.inside>-1&&i.nh.isSelectable(e.state.doc.nodeAt(o.inside)))&&(e.dispatch(e.state.tr.setSelection(new c(r))),!0)}function m(e,t){if("insertCompositionText"!=t.inputType||!(e.state.selection instanceof c))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let o=u.FK.empty;for(let e=r.length-1;e>=0;e--)o=u.FK.from(r[e].createAndFill(null,o));let l=e.state.tr.replace(n.pos,n.pos,new u.Ji(o,0,0));return l.setSelection(i.U3.near(l.doc.resolve(n.pos+1))),e.dispatch(l),!1}function g(e){if(!(e.selection instanceof c))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",a.zF.create(e.doc,[a.NZ.widget(e.selection.head,t,{key:"gapcursor"})])}var y=function(){};y.prototype.append=function(e){return e.length?(e=y.from(e),!this.length&&e||e.length<200&&this.leafAppend(e)||this.length<200&&e.leafPrepend(this)||this.appendInner(e)):this},y.prototype.prepend=function(e){return e.length?y.from(e).append(this):this},y.prototype.appendInner=function(e){return new b(this,e)},y.prototype.slice=function(e,t){return(void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t)?y.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},y.prototype.get=function(e){if(!(e<0)&&!(e>=this.length))return this.getInner(e)},y.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},y.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var r=[];return this.forEach(function(t,n){return r.push(e(t,n))},t,n),r},y.from=function(e){return e instanceof y?e:e&&e.length?new v(e):y.empty};var v=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var i=t;i<n;i++)if(!1===e(this.values[i],r+i))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var i=t-1;i>=n;i--)if(!1===e(this.values[i],r+i))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=200)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=200)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(y);y.empty=new v([]);var b=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var i=this.left.length;if(t<i&&!1===this.left.forEachInner(e,t,Math.min(n,i),r)||n>i&&!1===this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,n)-i,r+i))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){var i=this.left.length;if(t>i&&!1===this.right.forEachInvertedInner(e,t-i,Math.max(n,i)-i,r+i)||n<i&&!1===this.left.forEachInvertedInner(e,Math.min(t,i),n,r))return!1},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(y);class w{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){let n,r,i,o;if(0==this.eventCount)return null;let l=this.items.length;for(;;l--)if(this.items.get(l-1).selection){--l;break}t&&(r=(n=this.remapping(l,this.items.length)).maps.length);let a=e.tr,s=[],u=[];
21return this.items.forEach((e,t)=>{if(!e.step){n||(r=(n=this.remapping(l,t+1)).maps.length),r--,u.push(e);return}if(n){u.push(new x(e.map));let t=e.step.map(n.slice(r)),i;t&&a.maybeStep(t).doc&&(i=a.mapping.maps[a.mapping.maps.length-1],s.push(new x(i,void 0,void 0,s.length+u.length))),r--,i&&n.appendMap(i,r)}else a.maybeStep(e.step);if(e.selection)return i=n?e.selection.map(n.slice(r)):e.selection,o=new w(this.items.slice(0,l).append(u.reverse().concat(s)),this.eventCount-1),!1},this.items.length,0),{remaining:o,transform:a,selection:i}}addTransform(e,t,n,r){var i,o;let l,a=[],s=this.eventCount,u=this.items,c=!r&&u.length?u.get(u.length-1):null;for(let n=0;n<e.steps.length;n++){let i=e.steps[n].invert(e.docs[n]),o=new x(e.mapping.maps[n],i,t),l;(l=c&&c.merge(o))&&(o=l,n?a.pop():u=u.slice(0,u.length-1)),a.push(o),t&&(s++,t=void 0),r||(c=o)}let d=s-n.depth;return d>C&&(i=u,o=d,i.forEach((e,t)=>{if(e.selection&&0==o--)return l=t,!1}),u=i.slice(l),s-=d),new w(u.append(a),s)}remapping(e,t){let n=new o.X9;return this.items.forEach((t,r)=>{let i=null!=t.mirrorOffset&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,i)},e,t),n}addMaps(e){return 0==this.eventCount?this:new w(this.items.append(e.map(e=>new x(e))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-t),i=e.mapping,o=e.steps.length,l=this.eventCount;this.items.forEach(e=>{e.selection&&l--},r);let a=t;this.items.forEach(t=>{let r=i.getMirror(--a);if(null==r)return;o=Math.min(o,r);let s=i.maps[r];if(t.step){let o=e.steps[r].invert(e.docs[r]),u=t.selection&&t.selection.map(i.slice(a+1,r));u&&l++,n.push(new x(s,o,u))}else n.push(new x(s))},r);let s=[];for(let e=t;e<o;e++)s.push(new x(i.maps[e]));let u=new w(this.items.slice(0,r).append(s).append(n),l);return u.emptyItemCount()>500&&(u=u.compress(this.items.length-n.length)),u}emptyItemCount(){let e=0;return this.items.forEach(t=>{!t.step&&e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),n=t.maps.length,r=[],i=0;return this.items.forEach((o,l)=>{if(l>=e)r.push(o),o.selection&&i++;else if(o.step){let e=o.step.map(t.slice(n)),l=e&&e.getMap();if(n--,l&&t.appendMap(l,n),e){let a=o.selection&&o.selection.map(t.slice(n));a&&i++;let s=new x(l.invert(),e,a),u,c=r.length-1;(u=r.length&&r[c].merge(s))?r[c]=u:r.push(s)}}else o.map&&n--},this.items.length,0),new w(y.from(r.reverse()),i)}}w.empty=new w(y.empty,0);class x{constructor(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new x(t.getMap().invert(),t,this.selection)}}}class k{constructor(e,t,n,r,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}}let C=20;function S(e){let t=[];for(let n=e.length-1;n>=0&&0==t.length;n--)e[n].forEach((e,n,r,i)=>t.push(r,i));return t}function E(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let i=t.map(e[r],1),o=t.map(e[r+1],-1);i<=o&&n.push(i,o)}return n}let M=!1,T=null;function R(e){let t=e.plugins;if(T!=t){M=!1,T=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){M=!0;break}}return M}let A=new i.hs("history"),O=new i.hs("closeHistory");function N(e,t){return(n,r)=>{let i=A.getState(n);if(!i||0==(e?i.undone:i.done).eventCount)return!1;if(r){let o=function(e,t,n){let r=R(t),i=A.get(t).spec.config,o=(n?e.undone:e.done).popEvent(t,r);if(!o)return null;let l=o.selection.resolve(o.transform.doc),a=(n?e.done:e.undone).addTransform(o.transform,t.selection.getBookmark(),i,r),s=new k(n?a:o.remaining,n?o.remaining:a,null,0,-1);return o.transform.setSelection(l).setMeta(A,{redo:n,historyState:s})}(i,n,e);o&&r(t?o.scrollIntoView():o)}return!0}}let P=N(!1,!0),L=N(!0,!0);N(!1,!1),N(!0,!1),r.YY.create({name:"characterCount",addOptions:()=>({limit:null,mode:"textSize",textCounter:e=>e.length,wordCounter:e=>e.split(" ").filter(e=>""!==e).length}),addStorage:()=>({characters:()=>0,words:()=>0}),onBeforeCreate(){this.storage.characters=e=>{let t=(null==e?void 0:e.node)||this.editor.state.doc;if("textSize"===((null==e?void 0:e.mode)||this.options.mode)){let e=t.textBetween(0,t.content.size,void 0," ");return this.options.textCounter(e)}return t.nodeSize},this.storage.words=e=>{let t=(null==e?void 0:e.node)||this.editor.state.doc,n=t.textBetween(0,t.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let e=!1;return[new i.k_({key:new i.hs("characterCount"),appendTransaction:(t,n,r)=>{if(e)return;let i=this.options.limit;if(null==i||0===i){e=!0;return}let o=this.storage.characters({node:r.doc});if(o>i){console.warn(`[CharacterCount] Initial content exceeded limit of ${i} characters. Content was automatically trimmed.`);let t=r.tr.deleteRange(0,o-i);return e=!0,t}e=!0},filterTransaction:(e,t)=>{let n=this.options.limit;if(!e.docChanged||0===n||null==n)return!0;let r=this.storage.characters({node:t.doc}),i=this.storage.characters({node:e.doc});if(i<=n||r>n&&i>n&&i<=r)return!0;
21if(r>n&&i>n&&i>r||!e.getMeta("paste"))return!1;let o=e.selection.$head.pos;return e.deleteRange(o-(i-n),o),!(this.storage.characters({node:e.doc})>n)}})]}});var I=r.YY.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[function(e={}){return new i.k_({view:t=>new l(t,e)})}(this.options)]}});r.YY.create({name:"focus",addOptions:()=>({className:"has-focus",mode:"all"}),addProseMirrorPlugins(){return[new i.k_({key:new i.hs("focus"),props:{decorations:({doc:e,selection:t})=>{let{isEditable:n,isFocused:r}=this.editor,{anchor:i}=t,o=[];if(!n||!r)return a.zF.create(e,[]);let l=0;"deepest"===this.options.mode&&e.descendants((e,t)=>{if(!e.isText){if(!(i>=t&&i<=t+e.nodeSize-1))return!1;l+=1}});let s=0;return e.descendants((e,t)=>!e.isText&&!!(i>=t&&i<=t+e.nodeSize-1)&&((s+=1,"deepest"===this.options.mode&&l-s>0||"shallowest"===this.options.mode&&s>1)?"deepest"===this.options.mode:void o.push(a.NZ.node(t,t+e.nodeSize,{class:this.options.className})))),a.zF.create(e,o)}}})]}});var D=r.YY.create({name:"gapCursor",addProseMirrorPlugins:()=>[new i.k_({props:{decorations:g,createSelectionBetween:(e,t,n)=>t.pos==n.pos&&c.valid(n)?new c(n):null,handleClick:p,handleKeyDown:f,handleDOMEvents:{beforeinput
21:m}}})],extendNodeSchema(e){var t;let n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:null!=(t=(0,r.gk)((0,r.iI)(e,"allowGapCursor",n)))?t:null}}}),_=r.YY.create({name:"placeholder",addOptions:()=>({emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something â¦",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}),addProseMirrorPlugins(){return[new i.k_({key:new i.hs("placeholder"),props:{decorations:({doc:e,selection:t})=>{let n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:i}=t,o=[];if(!n)return null;let l=this.editor.isEmpty;return e.descendants((e,t)=>{let n=i>=t&&i<=t+e.nodeSize,s=!e.isLeaf&&(0,r.Op)(e);if((n||!this.options.showOnlyCurrent)&&s){let r=[this.options.emptyNodeClass];l&&r.push(this.options.emptyEditorClass);let i=a.NZ.node(t,t+e.nodeSize,{class:r.join(" "),"data-placeholder":"function"==typeof this.options.placeholder?this.options.placeholder({editor:this.editor,node:e,pos:t,hasAnchor:n}):this.options.placeholder});o.push(i)}return this.options.includeChildren}),a.zF.create(e,o)}}})]}});function j({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||(null==t?void 0:t.type)===e}r.YY.create({name:"selection",addOptions:()=>({className:"selection"}),addProseMirrorPlugins(){let{editor:e,options:t}=this;return[new i.k_({key:new i.hs("selection"),props:{decorations:n=>n.selection.empty||e.isFocused||!e.isEditable||(0,r.BQ)(n.selection)||e.view.dragging?null:a.zF.create(n.doc,[a.NZ.inline(n.selection.from,n.selection.to,{class:t.className})])}})]}});var F=r.YY.create({name:"trailingNode",addOptions:()=>({node:void 0,notAfter:[]}),addProseMirrorPlugins(){var e;let t=new i.hs(this.name),n=this.options.node||(null==(e=this.editor.schema.topNodeType.contentMatch.defaultType)?void 0:e.name)||"paragraph",r=Object.entries(this.editor.schema.nodes).map(([,e])=>e).filter(e=>(this.options.notAfter||[]).concat(n).includes(e.name));return[new i.k_({key:t,appendTransaction:(e,r,i)=>{let{doc:o,tr:l,schema:a}=i,s=t.getState(i),u=o.content.size,c=a.nodes[n];if(s)return l.insert(u,c.create())},state:{init:(e,t)=>!j({node:t.tr.doc.lastChild,types:r}),apply:(e,t)=>!e.docChanged||e.getMeta("__uniqueIDTransaction")?t:!j({node:e.doc.lastChild,types:r})}})]}}),z=r.YY.create({name:"undoRedo",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:e,dispatch:t})=>P(e,t),redo:()=>({state:e,dispatch:t})=>L(e,t)}),addProseMirrorPlugins(){return[function(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new i.k_({key:A,state:{init:()=>new k(w.empty,w.empty,null,0,-1),apply:(t,n,r)=>(function(e,t,n,r){let i=n.getMeta(A),o;if(i)return i.historyState;n.getMeta(O)&&(e=new k(e.done,e.undone,null,0,-1));let l=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(l&&l.getMeta(A))if(l.getMeta(A).redo)return new k(e.done.addTransform(n,void 0,r,R(t)),e.undone,S(n.mapping.maps),e.prevTime,e.prevComposition);else return new k(e.done,e.undone.addTransform(n,void 0,r,R(t)),null,e.prevTime,e.prevComposition);if(!1===n.getMeta("addToHistory")||l&&!1===l.getMeta("addToHistory"))if(o=n.getMeta("rebased"))return new k(e.done.rebased(n,o),e.undone.rebased(n,o),E(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);else return new k(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),E(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);{let i=n.getMeta("composition"),o=0==e.prevTime||!l&&e.prevComposition!=i&&(e.prevTime<(n.time||0)-r.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((e,r)=>{for(let i=0;i<t.length;i+=2)e<=t[i+1]&&r>=t[i]&&(n=!0)}),n}(n,e.prevRanges)),a=l?E(e.prevRanges,n.mapping):S(n.mapping.maps);return new k(e.done.addTransform(n,o?t.selection.getBookmark():void 0,r,R(t)),w.empty,a,n.time,null==i?e.prevComposition:i)}})(n,r,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r="historyUndo"==n?P:"historyRedo"==n?L:null;return!!r&&(t.preventDefault(),r(e.state,e.dispatch))}}}})}(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-Ñ":()=>this.editor.commands.undo(),"Shift-Mod-Ñ":()=>this.editor.commands.redo()}}})},38541:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},39237:(e,t,n)=>{"use strict";n.d(t,{_:()=>k});var r=n(84401),i=n(40194),o=n(50713);function l(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let l=e.charCodeAt(n),a="";if(37===l&&(0,o.lV)(e.charCodeAt(n+1))&&(0,o.lV)(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(a=String.fromCharCode(l));else if(l>55295&&l<57344){let t=e.charCodeAt(n+1);l<56320&&t>56319&&t<57344?(a=String.fromCharCode(l,t),i=1):a="�"}else a=String.fromCharCode(l);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function a(e,t){let n=[{type:"text",value:"â©"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function s(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}var u=n(97343),c=n(28845);function d(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});let l=i[i.length-1];return l&&"text"===l.type?l.value+=r:i.push({type:"text",value:r}),i}function f(e){let t=e.spread;return null==t?e.children.length>1:t}function h(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let p={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i={type:"element",tagName:"pre",properties:{},children:[i=e.applyData(t,i)]},e.patch(t,i),i},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}
21,footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),o=l(i.toLowerCase()),a=e.footnoteOrder.indexOf(i),s=e.footnoteCounts.get(i);void 0===s?(s=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=a+1,s+=1,e.footnoteCounts.set(i,s);let u={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,u);let c={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return d(e,t);let i={src:l(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){let n={src:l(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return d(e,t);let i={href:l(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){let n={href:l(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=f(n[r])}return t}(n):f(t),o={},l=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.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<r.length;){let e=r[a];(i||0!==a||"element"!==e.type||"p"!==e.tagName)&&l.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?l.push(e):l.push(...e.children)}let s=r[r.length-1];s&&(i||"element"!==s.type||"p"!==s.tagName)&&l.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=(0,c.PW)(t.children[1]),l=(0,c.Y)(t.children[t.children.length-1]);o&&l&&(r.position={start:o,end:l}),i.push(r)}let o={type:"element",tagName:"table",properties:{}
21,children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,l=o?o.length:t.children.length,a=-1,s=[];for(;++a<l;){let n=t.children[a],r={},l=o?o[a]:void 0;l&&(r.align=l);let u={type:"element",tagName:i,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),s.push(u)}let u={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,o=[];for(;r;)o.push(h(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(h(t.slice(i),i>0,!1)),o.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:m,yaml:m,definition:m,footnoteDefinition:m};function m(){}let g={}.hasOwnProperty,y={};function v(e,t){e.position&&(t.position=(0,c.G1)(e))}function b(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&o&&Object.assign(n.properties,(0,i.Ay)(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function w(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function x(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function k(e,t){let n=function(e,t){let n=t||y,r=new Map,o=new Map,l={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=l.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=x(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=x(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:b,definitionById:r,footnoteById:o,footnoteCounts:new Map,footnoteOrder:[],handlers:{...p,...n.handlers},one:function(e,t){let n=e.type,r=l.handlers[n];if(g.call(l.handlers,n)&&r)return r(l,e,t);if(l.options.passThrough&&l.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=(0,i.Ay)(n);return r.children=l.all(e),r}return(0,i.Ay)(e)}return(l.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(g.call(n,"hProperties")||g.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(l,e,t)},options:n,patch:v,wrap:w};return(0,u.YR)(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),l}(e,t),o=n.one(e,void 0),c=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||a,r=e.options.footnoteBackLabel||s,o=e.options.footnoteLabel||"Footnotes",u=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[],f=-1;for(;++f<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[f]);if(!i)continue;let o=e.all(i),a=String(i.identifier).toUpperCase(),s=l(a.toLowerCase()),u=0,c=[],h=e.footnoteCounts.get(a);for(;void 0!==h&&++u<=h;){c.length>0&&c.push({type:"text",value:" "});let e="string"==typeof n?n:n(f,u);"string"==typeof e&&(e={type:"text",value:e}),c.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+s+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(f,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let p=o[o.length-1];if(p&&"element"===p.type&&"p"===p.tagName){let e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...c)}else o.push(...c);let m={type:"element",tagName:"li",properties:{id:t+"fn-"+s},children:e.wrap(o,!0)};e.patch(i,m),d.push(m)}if(0!==d.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...(0,i.Ay)(c),id:"footnote-label"},children:[{type:"text",value:o}]}
21,{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:"\n"}]}}(n),d=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return c&&((0,r.ok)("children"in d),d.children.push({type:"text",value:"\n"},c)),d}},39245:(e,t,n)=>{"use strict";function r(e,t){return"function"==typeof e?e(t):e}function i(e,t){return n=>{t.setState(t=>({...t,[e]:r(n,t[e])}))}}function o(e){return e instanceof Function}function l(e,t,n){let r,i=[];return o=>{let l,a;n.key&&n.debug&&(l=Date.now());let s=e(o);if(!(s.length!==i.length||s.some((e,t)=>i[t]!==e)))return r;if(i=s,n.key&&n.debug&&(a=Date.now()),r=t(...s),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){let e=Math.round((Date.now()-l)*100)/100,t=Math.round((Date.now()-a)*100)/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%câ± ${i(t,5)} /${i(e,5)} ms`,` 22 font-size: .6rem; 23 font-weight: bold; 24 color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return r}}function a(e,t,n,r){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:r}}n.d(t,{HT:()=>V,ZR:()=>U});let s="debugHeaders";function u(e,t,n){var r;let i={id:null!=(r=n.id)?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(i),e},getContext:()=>({table:e,header:i,column:t})};return e._features.forEach(t=>{null==t.createHeader||t.createHeader(i,e)}),i}function c(e,t,n,r){var i,o;let l=0,a=function(e,t){void 0===t&&(t=1),l=Math.max(l,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;null!=(n=e.columns)&&n.length&&a(e.columns,t+1)},0)};a(e);let s=[],c=(e,t)=>{let i={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},o=[];e.forEach(e=>{let l,a=[...o].reverse()[0],s=e.column.depth===i.depth,c=!1;if(s&&e.column.parent?l=e.column.parent:(l=e.column,c=!0),a&&(null==a?void 0:a.column)===l)a.subHeaders.push(e);else{let i=u(n,l,{id:[r,t,l.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:c,placeholderId:c?`${o.filter(e=>e.column===l).length}`:void 0,depth:t,index:o.length});i.subHeaders.push(e),o.push(i)}i.headers.push(e),e.headerGroup=i}),s.push(i),t>0&&c(o,t-1)};c(t.map((e,t)=>u(n,e,{depth:l,index:t})),l-1),s.reverse();let d=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,r=[0];return e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:i}=e;t+=n,r.push(i)})):t=1,n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return d(null!=(i=null==(o=s[0])?void 0:o.headers)?i:[]),s}let d=(e,t,n,r,i,o,s)=>{let u={id:t,index:r,original:n,depth:i,parentId:s,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(u._valuesCache.hasOwnProperty(t))return u._valuesCache[t];let n=e.getColumn(t);if(null!=n&&n.accessorFn)return u._valuesCache[t]=n.accessorFn(u.original,r),u._valuesCache[t]},getUniqueValues:t=>{if(u._uniqueValuesCache.hasOwnProperty(t))return u._uniqueValuesCache[t];let n=e.getColumn(t);if(null!=n&&n.accessorFn)return n.columnDef.getUniqueValues?u._uniqueValuesCache[t]=n.columnDef.getUniqueValues(u.original,r):u._uniqueValuesCache[t]=[u.getValue(t)],u._uniqueValuesCache[t]},renderValue:t=>{var n;return null!=(n=u.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=o?o:[],getLeafRows:()=>(function(e,t){let n=[],r=e=>{e.forEach(e=>{n.push(e);let i=t(e);null!=i&&i.length&&r(i)})};return r(e),n})(u.subRows,e=>e.subRows),getParentRow:()=>u.parentId?e.getRow(u.parentId,!0):void 0,getParentRows:()=>{let e=[],t=u;for(;;){let n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:l(()=>[e.getAllLeafColumns()],t=>t.map(t=>(function(e,t,n,r){let i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>{var t;return null!=(t=i.getValue())?t:e.options.renderFallbackValue},getContext:l(()=>[e,n,t,i],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),a(e.options,"debugCells","cell.getContext"))};
24return e._features.forEach(r=>{null==r.createCell||r.createCell(i,n,t,e)},{}),i})(e,u,t,t.id)),a(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:l(()=>[u.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),a(e.options,"debugRows","getAllCellsByColumnId"))};for(let t=0;t<e._features.length;t++){let n=e._features[t];null==n||null==n.createRow||n.createRow(u,e)}return u},f=(e,t,n)=>{var r;let i=n.toLowerCase();return!!(null==(r=e.getValue(t))||null==(r=r.toString())||null==(r=r.toLowerCase())?void 0:r.includes(i))};f.autoRemove=e=>k(e);let h=(e,t,n)=>{var r;return!!(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};h.autoRemove=e=>k(e);let p=(e,t,n)=>{var r;return(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.toLowerCase())===(null==n?void 0:n.toLowerCase())};p.autoRemove=e=>k(e);let m=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};m.autoRemove=e=>k(e)||!(null!=e&&e.length);let g=(e,t,n)=>!n.some(n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))});g.autoRemove=e=>k(e)||!(null!=e&&e.length);let y=(e,t,n)=>n.some(n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)});y.autoRemove=e=>k(e)||!(null!=e&&e.length);let v=(e,t,n)=>e.getValue(t)===n;v.autoRemove=e=>k(e);let b=(e,t,n)=>e.getValue(t)==n;b.autoRemove=e=>k(e);let w=(e,t,n)=>{let[r,i]=n,o=e.getValue(t);return o>=r&&o<=i};w.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,i="number"!=typeof n?parseFloat(n):n,o=null===t||Number.isNaN(r)?-1/0:r,l=null===n||Number.isNaN(i)?1/0:i;if(o>l){let e=o;o=l,l=e}return[o,l]},w.autoRemove=e=>k(e)||k(e[0])&&k(e[1]);let x={includesString:f,includesStringSensitive:h,equalsString:p,arrIncludes:m,arrIncludesAll:g,arrIncludesSome:y,equals:v,weakEquals:b,inNumberRange:w};function k(e){return null==e||""===e}function C(e,t,n){return!!e&&!!e.autoRemove&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}
24let S={sum:(e,t,n)=>n.reduce((t,n)=>{let r=n.getValue(e);return t+("number"==typeof r?r:0)},0),min:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)}),r},max:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(r<n||void 0===r&&n>=n)&&(r=n)}),r},extent:(e,t,n)=>{let r,i;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=i=n):(r>n&&(r=n),i<n&&(i=n)))}),[r,i]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(t=>{let i=t.getValue(e);null!=i&&(i*=1)>=i&&(++n,r+=i)}),n)return r/n},median:(e,t)=>{if(!t.length)return;let n=t.map(t=>t.getValue(e));if(!function(e){return Array.isArray(e)&&e.every(e=>"number"==typeof e)}(n))return;if(1===n.length)return n[0];let r=Math.floor(n.length/2),i=n.sort((e,t)=>e-t);return n.length%2!=0?i[r]:(i[r-1]+i[r])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},E=()=>({left:[],right:[]}),M={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},T=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),R=null;function A(e){return"touchstart"===e.type}function O(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}let N=()=>({pageIndex:0,pageSize:10}),P=()=>({top:[],bottom:[]}),L=(e,t,n,r,i)=>{var o;let l=i.getRow(t,!0);n?(l.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),l.getCanSelect()&&(e[t]=!0)):delete e[t],r&&null!=(o=l.subRows)&&o.length&&l.getCanSelectSubRows()&&l.subRows.forEach(t=>L(e,t.id,n,r,i))};function I(e,t){let n=e.getState().rowSelection,r=[],i={},o=function(e,t){return e.map(e=>{var t;let l=D(e,n);if(l&&(r.push(e),i[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:o(e.subRows)}),l)return e}).filter(Boolean)};return{rows:o(t.rows),flatRows:r,rowsById:i}}function D(e,t){var n;return null!=(n=t[e.id])&&n}function _(e,t,n){var r;if(!(null!=(r=e.subRows)&&r.length))return!1;let i=!0,o=!1;return e.subRows.forEach(e=>{if((!o||i)&&(e.getCanSelect()&&(D(e,t)?o=!0:i=!1),e.subRows&&e.subRows.length)){let n=_(e,t);"all"===n?o=!0:("some"===n&&(o=!0),i=!1)}}),i?"all":!!o&&"some"}let j=/([0-9]+)/gm;function F(e,t){return e===t?0:e>t?1:-1}function z(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function H(e,t){let n=e.split(j).filter(Boolean),r=t.split(j).filter(Boolean);for(;n.length&&r.length;){let e=n.shift(),t=r.shift(),i=parseInt(e,10),o=parseInt(t,10),l=[i,o].sort();if(isNaN(l[0])){if(e>t)return 1;if(t>e)return -1;continue}if(isNaN(l[1]))return isNaN(i)?-1:1;if(i>o)return 1;if(o>i)return -1}return n.length-r.length}let B={alphanumeric:(e,t,n)=>H(z(e.getValue(n)).toLowerCase(),z(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>H(z(e.getValue(n)),z(t.getValue(n))),text:(e,t,n)=>F(z(e.getValue(n)).toLowerCase(),z(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>F(z(e.getValue(n)),z(t.getValue(n))),datetime:(e,t,n)=>{let r=e.getValue(n),i=t.getValue(n);return r>i?1:r<i?-1:0},basic:(e,t,n)=>F(e.getValue(n),t.getValue(n))},$=[{createTable:e=>{e.getHeaderGroups=l(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{var o,l;let a=null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[],s=null!=(l=null==i?void 0:i.map(e=>n.find(t=>t.id===e)).filter(Boolean))?l:[];return c(t,[...a,...n.filter(e=>!(null!=r&&r.includes(e.id))&&!(null!=i&&i.includes(e.id))),...s],e)},a(e.options,s,"getHeaderGroups")),e.getCenterHeaderGroups=l(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>c(t,n=n.filter(e=>!(null!=r&&r.includes(e.id))&&!(null!=i&&i.includes(e.id))),e,"center"),a(e.options,s,"getCenterHeaderGroups")),e.getLeftHeaderGroups=l(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var i;return c(t,null!=(i=null==r?void 0:r.map(e=>n.find(t=>
24t.id===e)).filter(Boolean))?i:[],e,"left")},a(e.options,s,"getLeftHeaderGroups")),e.getRightHeaderGroups=l(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var i;return c(t,null!=(i=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[],e,"right")},a(e.options,s,"getRightHeaderGroups")),e.getFooterGroups=l(()=>[e.getHeaderGroups()],e=>[...e].reverse(),a(e.options,s,"getFooterGroups")),e.getLeftFooterGroups=l(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),a(e.options,s,"getLeftFooterGroups")),e.getCenterFooterGroups=l(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),a(e.options,s,"getCenterFooterGroups")),e.getRightFooterGroups=l(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),a(e.options,s,"getRightFooterGroups")),e.getFlatHeaders=l(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),a(e.options,s,"getFlatHeaders")),e.getLeftFlatHeaders=l(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),a(e.options,s,"getLeftFlatHeaders")),e.getCenterFlatHeaders=l(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),a(e.options,s,"getCenterFlatHeaders")),e.getRightFlatHeaders=l(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),a(e.options,s,"getRightFlatHeaders")),e.getCenterLeafHeaders=l(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),a(e.options,s,"getCenterLeafHeaders")),e.getLeftLeafHeaders=l(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),a(e.options,s,"getLeftLeafHeaders")),e.getRightLeafHeaders=l(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),a(e.options,s,"getRightLeafHeaders")),e.getLeafHeaders=l(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var r,i,o,l,a,s;return[...null!=(r=null==(i=e[0])?void 0:i.headers)?r:[],...null!=(o=null==(l=t[0])?void 0:l.headers)?o:[],...null!=(a=null==(s=n[0])?void 0:s.headers)?a:[]].map(e=>e.getLeafHeaders()).flat()},a(e.options,s,"getLeafHeaders"))}},{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:i("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;let i=e.columns;return null==(n=i.length?i.some(e=>e.getIsVisible()):null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},e.getCanHide=()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=l(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),a(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=l(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],a(t.options,"debugRows","getVisibleCells"))},createTable:e=>{let t=(t,n)=>l(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),a(e.options,"debugColumns",t));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:i("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=l(e=>[O(t,e)],t=>t.findIndex(t=>t.id===e.id),a(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;return(null==(r=O(t,n)[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;let i=O(t,n);return(null==(r=i[i.length-1])?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=l(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>r=>{let i=[];if(null!=e&&e.length){let t=[...e],n=[...r];for(;n.length&&t.length;){let e=t.shift(),r=n.findIndex(t=>t.id===e);r>-1&&i.push(n.splice(r,1)[0])}i=[...i,...n]}else i=r;return function(e,t,n){if(!(null!=t&&t.length)||!n)return e;let r=e.filter(e=>!t.includes(e.id));return"remove"===n?r:[...t.map(t=>e.find(e=>
24e.id===t)).filter(Boolean),...r]}(i,t,n)},a(e.options,"debugTable","_getOrderColumnsFn"))}},{getInitialState:e=>({columnPinning:E(),...e}),getDefaultOptions:e=>({onColumnPinningChange:i("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{let r=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,i,o,l,a,s;return"right"===n?{left:(null!=(o=null==e?void 0:e.left)?o:[]).filter(e=>!(null!=r&&r.includes(e))),right:[...(null!=(l=null==e?void 0:e.right)?l:[]).filter(e=>!(null!=r&&r.includes(e))),...r]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter(e=>!(null!=r&&r.includes(e))),...r],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter(e=>!(null!=r&&r.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=r&&r.includes(e))),right:(null!=(i=null==e?void 0:e.right)?i:[]).filter(e=>!(null!=r&&r.includes(e)))}})},e.getCanPin=()=>e.getLeafColumns().some(e=>{var n,r,i;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=null!=(i=t.options.enableColumnPinning)?i:t.options.enablePinning)||r)}),e.getIsPinned=()=>{let n=e.getLeafColumns().map(e=>e.id),{left:r,right:i}=t.getState().columnPinning,o=n.some(e=>null==r?void 0:r.includes(e)),l=n.some(e=>null==i?void 0:i.includes(e));return o?"left":!!l&&"right"},e.getPinnedIndex=()=>{var n,r;let i=e.getIsPinned();return i?null!=(n=null==(r=t.getState().columnPinning)||null==(r=r[i])?void 0:r.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=l(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{let r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.column.id))},a(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=l(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"})),a(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=l(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"})),a(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?E():null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:E())},e.getIsSomeColumnsPinned=t=>{var n,r,i;let o=e.getState().columnPinning;return t?!!(null==(n=o[t])?void 0:n.length):!!((null==(r=o.left)?void 0:r.length)||(null==(i=o.right)?void 0:i.length))},e.getLeftLeafColumns=l(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),a(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=l(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),a(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=l(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{let r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.id))},a(e.options,"debugColumns","getCenterLeafColumns"))}},{createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.i
24d),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},{getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:i("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{let n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?x.includesString:"number"==typeof r?x.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?x.equals:Array.isArray(r)?x.arrIncludes:x.weakEquals},e.getFilterFn=()=>{var n,r;return o(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:x[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,i;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(i=t.options.enableFilters)||i)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find(t=>t.id===e.id))?void 0:n.value},e.getFilterIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.setFilterValue=n=>{t.setColumnFilters(t=>{var i,o;let l=e.getFilterFn(),a=null==t?void 0:t.find(t=>t.id===e.id),s=r(n,a?a.value:void 0);if(C(l,s,e))return null!=(i=null==t?void 0:t.filter(t=>t.id!==e.id))?i:[];let u={id:e.id,value:s};return a?null!=(o=null==t?void 0:t.map(t=>t.id===e.id?u:t))?o:[]:null!=t&&t.length?[...t,u]:[u]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{let n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var i;return null==(i=r(t,e))?void 0:i.filter(e=>{let t=n.find(t=>t.id===e.id);return!(t&&C(t.getFilterFn(),e.value,t))&&!0})})},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel)?e.getPreFilteredRowModel():e._getFilteredRowModel()}},{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:i("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;let r=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof r||"number"==typeof r}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,i,o;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(i=t.options.enableFilters)||i)&&(null==(o=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||o)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>x.includesString,e.getGlobalFilterFn=()=>{var t,n;let{globalFilterFn:r}=e.options;return o(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:x[r]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)}
24,e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:i("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{let n=t.getFilteredRowModel().flatRows.slice(10),r=!1;for(let t of n){let n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return B.datetime;if("string"==typeof n&&(r=!0,n.split(j).length>1))return B.alphanumeric}return r?B.text:B.basic},e.getAutoSortDir=()=>{let n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw Error();return o(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:B[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{let i=e.getNextSortingOrder(),o=null!=n;t.setSorting(l=>{let a,s=null==l?void 0:l.find(t=>t.id===e.id),u=null==l?void 0:l.findIndex(t=>t.id===e.id),c=[],d=o?n:"desc"===i;if("toggle"!=(a=null!=l&&l.length&&e.getCanMultiSort()&&r?s?"toggle":"add":null!=l&&l.length&&u!==l.length-1?"replace":s?"toggle":"replace")||o||i||(a="remove"),"add"===a){var f;(c=[...l,{id:e.id,desc:d}]).splice(0,c.length-(null!=(f=t.options.maxMultiSortColCount)?f:Number.MAX_SAFE_INTEGER))}else c="toggle"===a?l.map(t=>t.id===e.id?{...t,desc:d}:t):"remove"===a?l.filter(t=>t.id!==e.id):[{id:e.id,desc:d}];return c})},e.getFirstSortDir=()=>{var n,r;return(null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var r,i;let o=e.getFirstSortDir(),l=e.getIsSorted();return l?(l===o||null!=(r=t.options.enableSortingRemoval)&&!r||!!n&&null!=(i=t.options.enableMultiRemove)&&!i)&&("desc"===l?"asc":"desc"):o},e.getCanSort=()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;let r=null==(n=t.getState().sorting)?void 0:n.find(t=>t.id===e.id);return!!r&&(r.desc?"desc":"asc")},e.getSortIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.clearSorting=()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{let n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel)?e.getPreSortedRowModel():e._getSortedRowModel()}},{getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:i("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},e.getCanGroup=()=>{var n,r;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(r=t.options.enableGrouping)||r)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{let t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{let n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?S.sum:"[object Date]"===Object.prototype.toString.call(r)?S.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw Error();return o(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:S[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel)?e.getPreGroupedRowModel():e._getGroupedRowModel()},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];let r=t.getColumn(n);return null!=r&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!(null!=(t=n.subRows)&&t.length)}}},{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:i("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,i;if(!t)return void e._queue(()=>{t=!0});if(null!=(r=null!=(i=e.options.autoResetAll)?i:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{let t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{let t=e.getState().expanded;return"boolean"==typeof t?!0===t:!(!Object.keys(t).length||e.getRowModel().flatRows.some(e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEac
24h(e=>{let n=e.split(".");t=Math.max(t,n.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel)?e.getPreExpandedRowModel():e._getExpandedRowModel()},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var i;let o=!0===r||!!(null!=r&&r[e.id]),l={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach(e=>{l[e]=!0}):l=r,n=null!=(i=n)?i:!o,!o&&n)return{...l,[e.id]:!0};if(o&&!n){let{[e.id]:t,...n}=l;return n}return r})},e.getIsExpanded=()=>{var n;let r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},e.getCanExpand=()=>{var n,r,i;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!!(null!=(i=e.subRows)&&i.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)n=(r=t.getRow(r.parentId,!0)).getIsExpanded();return n},e.getToggleExpandedHandler=()=>{let t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},{getInitialState:e=>({...e,pagination:{...N(),...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:i("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,i;if(!t)return void e._queue(()=>{t=!0});if(null!=(r=null!=(i=e.options.autoResetAll)?i:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>r(t,e)),e.resetPagination=t=>{var n;e.setPagination(t?N():null!=(n=e.initialState.pagination)?n:N())},e.setPageIndex=t=>{e.setPagination(n=>{let i=r(t,n.pageIndex);return i=Math.max(0,Math.min(i,void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1)),{...n,pageIndex:i}})},e.resetPageIndex=t=>{var n,r;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageIndex)?n:0)},e.resetPageSize=t=>{var n,r;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination(e=>{let n=Math.max(1,r(t,e.pageSize)),i=Math.floor(e.pageSize*e.pageIndex/n);return{...e,pageIndex:i,pageSize:n}})},e.setPageCount=t=>e.setPagination(n=>{var i;let o=r(t,null!=(i=e.options.pageCount)?i:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}}),e.getPageOptions=l(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...Array(e)].fill(null).map((e,t)=>t)),t},a(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{let{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return -1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel)?e.getPrePaginationRowModel():e._getPaginationRowModel(),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},{getInitialState:e=>({rowPinning:P(),...e}),getDefaultOptions:e=>({onRowPinningChange:i("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,i)=>{let o=r?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],l=new Set([...i?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],e.id,...o]);t.setRowPinning(e=>{var t,r,i,o,a,s;return"bottom"===n?{top:(null!=(i=null==e?void 0:e.top)?i:[]).filter(e=>!(null!=l&&l.has(e))),bottom:[...(null!=(o=null==e?void 0:e.bottom)?o:[]).filter(e=>!(null!=l&&l.has(e))),...Array.from(l)]}:"top"===n?{top:[...(null!=(a=null==e?void 0:e.top)?a:[]).filter(e=>!(null!=l&&l.has(e))),...Array.from(l)],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter(e=>!(null!=l&&l.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=l&&l.has(e))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter(e=>!(null!=l&&l.has(e)))}})},e.getCanPin=()=>{var n;let{enableRowPinning:r,enablePinning:i}=t.options;return"function"==typeof r?r(e):null==(n=null!=r?r:i)||n},e.getIsPinned=()=>{let n=[e.id],{top:r,bottom:i}=t.getState().rowPinning,o=n.some(e=>null==r?void 0:r.includes(e)),l=n.some(e=>null==i?void 0:i.includes(e));return o?"top":!!l&&"bottom"},e.getPinnedIndex=()=>{var n,r;let i=e.getIsPinned();if(!i)return -1;let o=null==(n=t._getPinnedRows(i))?void 0:n.map(e=>{let{id:t}=e;return t});return null!=(r=null==o?void 0:o.indexOf(e.id))?r:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?P():null!=(n=null==(r=e.initialState)?void 0:r.rowPinning)?n:P())},e.getIsSomeRowsPinned=t=>{var n,r,i;let o=e.getState().rowPinning;return t?!!(null==(n=o[t])?void 0:n.length):!!((null==(r=o.top)?void 0:r.length)||(null==(i=o.bottom)?void 0:i.length))},e._getPinnedRows=l(t=>[e.getRowModel().rows,e.getState().rowPinning[t],t],(t,n,r)=>{var i;return(null==(i=e.options.keepPinnedRows)||i?(null!=n?n:[]).map(t=>{let n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(null!=n?n:[]).map(e=>t.find(t=>
24t.id===e))).filter(Boolean).map(e=>({...e,position:r}))},a(e.options,"debugRows","_getPinnedRows")),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=l(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{let r=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter(e=>!r.has(e.id))},a(e.options,"debugRows","getCenterRows"))}},{getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:i("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();let r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(e=>{e.getCanSelect()&&(r[e.id]=!0)}):i.forEach(e=>{delete r[e.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{let r=void 0!==t?t:!e.getIsAllPageRowsSelected(),i={...n};return e.getRowModel().rows.forEach(t=>{L(i,t.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=l(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?I(e,n):{rows:[],flatRows:[],rowsById:{}},a(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=l(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?I(e,n):{rows:[],flatRows:[],rowsById:{}},a(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=l(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?I(e,n):{rows:[],flatRows:[],rowsById:{}},a(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState(),r=!!(t.length&&Object.keys(n).length);return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState(),r=!!t.length;return r&&t.some(e=>!n[e.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;let n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{let i=e.getIsSelected();t.setRowSelection(o=>{var l;if(n=void 0!==n?n:!i,e.getCanSelect()&&i===n)return o;let a={...o};return L(a,e.id,n,null==(l=null==r?void 0:r.selectChildren)||l,t),a})},e.getIsSelected=()=>{let{rowSelection:n}=t.getState();return D(e,n)},e.getIsSomeSelected=()=>{let{rowSelection:n}=t.getState();return"some"===_(e,n)},e.getIsAllSubRowsSelected=()=>{let{rowSelection:n}=t.getState();return"all"===_(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{let t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},{getDefaultColumnDef:()=>M,getInitialState:e=>({columnSizing:{},columnSizingInfo:T(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:i("columnSizing",e),onColumnSizingInfoChange:i("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,i;let o=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:M.minSize,null!=(r=null!=o?o:e.columnDef.size)?r:M.size),null!=(i=e.columnDef.maxSize)?i:M.maxSize)},e.getStart=l(e=>[e,O(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>
24e+t.getSize(),0),a(t.options,"debugColumns","getStart")),e.getAfter=l(e=>[e,O(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),a(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:n,...r}=t;return r})},e.getCanResize=()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0,n=e=>{if(e.subHeaders.length)e.subHeaders.forEach(n);else{var r;t+=null!=(r=e.column.getSize())?r:0}};return n(e),t},e.getStart=()=>{if(e.index>0){let t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{let r=t.getColumn(e.column.id),i=null==r?void 0:r.getCanResize();return o=>{if(!r||!i||(null==o.persist||o.persist(),A(o)&&o.touches&&o.touches.length>1))return;let l=e.getSize(),a=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[r.id,r.getSize()]],s=A(o)?Math.round(o.touches[0].clientX):o.clientX,u={},c=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo(e=>{var r,i;let o="rtl"===t.options.columnResizeDirection?-1:1,l=(n-(null!=(r=null==e?void 0:e.startOffset)?r:0))*o,a=Math.max(l/(null!=(i=null==e?void 0:e.startSize)?i:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;u[t]=Math.round(100*Math.max(n+n*a,0))/100}),{...e,deltaOffset:l,deltaPercentage:a}}),("onChange"===t.options.columnResizeMode||"end"===e)&&t.setColumnSizing(e=>({...e,...u})))},d=e=>c("move",e),f=e=>{c("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=n||"undefined"!=typeof document?document:null,p={moveHandler:e=>d(e.clientX),upHandler:e=>{null==h||h.removeEventListener("mousemove",p.moveHandler),null==h||h.removeEventListener("mouseup",p.upHandler),f(e.clientX)}},m={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==h||h.removeEventListener("touchmove",m.moveHandler),null==h||h.removeEventListener("touchend",m.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(null==(t=e.touches[0])?void 0:t.clientX)}},g=!!function(){if("boolean"==typeof R)return R;let e=!1;try{let t=()=>{};window.addEventListener("test",t,{get passive(){return e=!0,!1}}),window.removeEventListener("test",t)}catch(t){e=!1}return R=e}()&&{passive:!1};A(o)?(null==h||h.addEventListener("touchmove",m.moveHandler,g),null==h||h.addEventListener("touchend",m.upHandler,g)):(null==h||h.addEventListener("mousemove",p.moveHandler,g),null==h||h.addEventListener("mouseup",p.upHandler,g)),t.setColumnSizingInfo(e=>({...e,startOffset:s,startSize:l,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?T():null!=(n=e.initialState.columnSizingInfo)?n:T())},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}}];function U(e){var t,n;let i=[...$,...null!=(t=e._features)?t:[]],o={_features:i},s=o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(o)),{}),u={...null!=(n=e.initialState)?n:{}};
24o._features.forEach(e=>{var t;u=null!=(t=null==e.getInitialState?void 0:e.getInitialState(u))?t:u});let c=[],d=!1,f={_features:i,options:{...s,...e},initialState:u,_queue:e=>{c.push(e),d||(d=!0,Promise.resolve().then(()=>{for(;c.length;)c.shift()();d=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{var t;t=r(e,o.options),o.options=o.options.mergeOptions?o.options.mergeOptions(s,t):{...s,...t}},getState:()=>o.options.state,setState:e=>{null==o.options.onStateChange||o.options.onStateChange(e)},_getRowId:(e,t,n)=>{var r;return null!=(r=null==o.options.getRowId?void 0:o.options.getRowId(e,t,n))?r:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?o.getPrePaginationRowModel():o.getRowModel()).rowsById[e];if(!n&&!(n=o.getCoreRowModel().rowsById[e]))throw Error();return n},_getDefaultColumnDef:l(()=>[o.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},a(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>o.options.columns,getAllColumns:l(()=>[o._getColumnDefs()],e=>{let t=function(e,n,r){return void 0===r&&(r=0),e.map(e=>{let i=function(e,t,n,r){var i,o;let s,u={...e._getDefaultColumnDef(),...t}
24,c=u.accessorKey,d=null!=(i=null!=(o=u.id)?o:c?c.replace(".","_"):void 0)?i:"string"==typeof u.header?u.header:void 0;if(u.accessorFn?s=u.accessorFn:c&&(s=c.includes(".")?e=>{let t=e;for(let e of c.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[u.accessorKey]),!d)throw Error();let f={id:`${String(d)}`,accessorFn:s,parent:r,depth:n,columnDef:u,columns:[],getFlatColumns:l(()=>[!0],()=>{var e;return[f,...null==(e=f.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},a(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:l(()=>[e._getOrderColumnsFn()],e=>{var t;return null!=(t=f.columns)&&t.length?e(f.columns.flatMap(e=>e.getLeafColumns())):[f]},a(e.options,"debugColumns","column.getLeafColumns"))};for(let t of e._features)null==t.createColumn||t.createColumn(f,e);return f}(o,e,r,n);return i.columns=e.columns?t(e.columns,i,r+1):[],i})};return t(e)},a(e,"debugColumns","getAllColumns")),getAllFlatColumns:l(()=>[o.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),a(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:l(()=>[o.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),a(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:l(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),a(e,"debugColumns","getAllLeafColumns")),getColumn:e=>o._getAllFlatColumnsById()[e]};Object.assign(o,f);for(let e=0;e<o._features.length;e++){let t=o._features[e];null==t||null==t.createTable||t.createTable(o)}return o}function V(){return e=>l(()=>[e.options.data],t=>{let n={rows:[],flatRows:[],rowsById:{}},r=function(t,i,o){void 0===i&&(i=0);let l=[];for(let s=0;s<t.length;s++){let u=d(e,e._getRowId(t[s],s,o),t[s],s,i,void 0,null==o?void 0:o.id);if(n.flatRows.push(u),n.rowsById[u.id]=u,l.push(u),e.options.getSubRows){var a;u.originalSubRows=e.options.getSubRows(t[s],s),null!=(a=u.originalSubRows)&&a.length&&(u.subRows=r(u.originalSubRows,i+1,u))}}return l};return n.rows=r(t),n},a(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}},39429:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},40194:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>c});let r="object"==typeof self?self:globalThis,i=e=>((e,t)=>{let n=(t,n)=>(e.set(n,t),t),i=o=>{if(e.has(o))return e.get(o);let[l,a]=t[o];switch(l){case 0:case -1:return n(a,o);case 1:{let e=n([],o);for(let t of a)e.push(i(t));return e}case 2:{let e=n({},o);for(let[t,n]of a)e[i(t)]=i(n);return e}case 3:return n(new Date(a),o);case 4:{let{source:e,flags:t}=a;return n(new RegExp(e,t),o)}case 5:{let e=n(new Map,o);for(let[t,n]of a)e.set(i(t),i(n));return e}case 6:{let e=n(new Set,o);for(let t of a)e.add(i(t));return e}case 7:{let{name:e,message:t}=a;return n(new r[e](t),o)}case 8:return n(BigInt(a),o);case"BigInt":return n(Object(BigInt(a)),o)}return n(new r[l](a),o)};return i})(new Map,e)(0),{toString:o}={},{keys:l}=Object,a=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=o.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},s=([e,t])=>0===e&&("function"===t||"symbol"===t),u=(e,{json:t,lossy:n}={})=>{let r=[];return((e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},o=r=>{if(n.has(r))return n.get(r);let[u,c]=a(r);switch(u){case 0:{let t=r;switch(c){case"bigint":u=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+c);t=null;break;case"undefined":return i([-1],r)}return i([u,t],r)}case 1:{if(c)return i([c,[...r]],r);let e=[],t=i([u,e],r);for(let t of r)e.push(o(t));return t}case 2:{if(c)switch(c){case"BigInt":return i([c,r.toString()],r);case"Boolean":case"Number":case"String":return i([c,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());let n=[],d=i([u,n],r);for(let t of l(r))(e||!s(a(r[t])))&&n.push([o(t),o(r[t])]);return d}case 3:return i([u,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([u,{source:e,flags:t}],r)}case 5:{let t=[],n=i([u,t],r);
24for(let[n,i]of r)(e||!(s(a(n))||s(a(i))))&&t.push([o(n),o(i)]);return n}case 6:{let t=[],n=i([u,t],r);for(let n of r)(e||!s(a(n)))&&t.push(o(n));return n}}let{message:d}=r;return i([u,{name:c,message:d}],r)};return o})(!(t||n),!!t,new Map,r)(e),r},c="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?i(u(e,t)):structuredClone(e):(e,t)=>i(u(e,t))},40718:(e,t,n)=>{"use strict";n.d(t,{Mb:()=>o,he:()=>i});var r=n(88050);let i=(0,r.f)(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());i.every=e=>isFinite(e=Math.floor(e))&&e>0?(0,r.f)(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null,i.range;let o=(0,r.f)(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());o.every=e=>isFinite(e=Math.floor(e))&&e>0?(0,r.f)(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null,o.range},41241:(e,t,n)=>{"use strict";function r(e){this._context=e}function i(e){var t,n,r=e.length-1,i=Array(r),o=Array(r),l=Array(r);for(i[0]=0,o[0]=2,l[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,l[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,l[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,l[t]-=n*l[t-1];for(i[r-1]=l[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(l[t]-i[t+1])/o[t];for(t=0,o[r-1]=(e[r]+i[r-1])/2;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function o(e){return new r(e)}n.d(t,{A:()=>o}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=i(e),o=i(t),l=0,a=1;a<n;++l,++a)this._context.bezierCurveTo(r[0][l],o[0][l],r[1][l],o[1][l],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}}},41844:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});var r=n(10276);function i(e,t){let n=(0,r.a)(e,null==t?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}},41898:(e,t,n)=>{"use strict";n.d(t,{h:()=>a});var r=n(63763),i=n(69906),o=n(65518),l=n(10276);function a(e,t){var n,a,s,u,c,d,f,h;let p=(0,l.a)(e,null==t?void 0:t.in),m=p.getFullYear(),g=(0,r.q)(),y=null!=(h=null!=(f=null!=(d=null!=(c=null==t?void 0:t.firstWeekContainsDate)?c:null==t||null==(a=t.locale)||null==(n=a.options)?void 0:n.firstWeekContainsDate)?d:g.firstWeekContainsDate)?f:null==(u=g.locale)||null==(s=u.options)?void 0:s.firstWeekContainsDate)?h:1,v=(0,i.w)((null==t?void 0:t.in)||e,0);v.setFullYear(m+1,0,y),v.setHours(0,0,0,0);let b=(0,o.k)(v,t),w=(0,i.w)((null==t?void 0:t.in)||e,0);w.setFullYear(m,0,y),w.setHours(0,0,0,0);let x=(0,o.k)(w,t);return+p>=+b?m+1:+p>=+x?m:m-1}},42400:(e,t,n)=>{"use strict";n.d(t,{U:()=>i});var r=n(97118);function i(e,t,n){let[i,o]=(0,r.x)(null==n?void 0:n.in,e,t);return 12*(i.getFullYear()-o.getFullYear())+(i.getMonth()-o.getMonth())}},42419:(e,t,n)=>{"use strict";function r(e){return t=>{let n=(e?Math[e]:Math.trunc)(t);return 0===n?0:n}}n.d(t,{u:()=>r})},43393:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(90953).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},43642:(e,t,n)=>{"use strict";n.d(t,{B8:()=>eh,LM:()=>ev,N_:()=>eg,UC:()=>ey,bL:()=>ef,l9:()=>em,q7:()=>ep});var r=n(38848),i=n(91505),o=n(89486),l=n(4529),a=n(5461),s=n(67821),u=n(25300),c=n(46229),d=n(94205),f=n(85857),h=n(21670),p=n(76937),m=n(60117),g=n(57495),y=n(15381),v=n(57215),b=n(38476),w="NavigationMenu",[x,k,C]=(0,h.N)(w),[S,E,M]=(0,h.N)(w),[T,R]=(0,o.A)(w,[C,M]),[A,O]=T(w),[N,P]=T(w),L=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:i,onValueChange:o,defaultValue:l,delayDuration:d=200,skipDelayDuration:f=300,orientation:h="horizontal",dir:p,...m}=e,[g,y]=r.useState(null),v=(0,u.s)(t,e=>y(e)),x=(0,c.jH)(p),k=r.useRef(0),C=r.useRef(0),S=r.useRef(0),[E,M]=r.useState(!0),[T,R]=(0,s.i)({prop:i,onChange:e=>{let t=f>0;""!==e?(window.clearTimeout(S.current),t&&M(!1)):(window.clearTimeout(S.current),S.current=window.setTimeout(()=>M(!0),f)),null==o||o(e)},defaultProp:null!=l?l:"",caller:w}),A=r.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>R(""),150)},[R]),O=r.useCallback(e=>{window.clearTimeout(C.current),R(e)},[R]),N=r.useCallback(e=>{T===e?window.clearTimeout(C.current):k.current=window.setTimeout(()=>{window.clearTimeout(C.current),R(e)},d)},[T,R,d]);return r.useEffect(()=>()=>{window.clearTimeout(k.current),window.clearTimeout(C.current),window.clearTimeout(S.current)},[]),(0,b.jsx)(D,{scope:n,isRootMenu:!0,value:T,dir:x,orientation:h,rootNavigationMenu:g,onTriggerEnter:e=>{window.clearTimeout(k.current),E?N(e):O(e)},onTriggerLeave:()=>{window.clearTimeout(k.current),A()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:A,onItemSelect:e=>{R(t=>t===e?"":e)},onItemDismiss:()=>R(""),children:(0,b.jsx)(a.sG.nav,{"aria-label":"Main","data-orientation":h,dir:x,...m,ref:v})})});L.displayName=w;var I="NavigationMenuSub";r.forwardRef((e,t)=>
24{let{__scopeNavigationMenu:n,value:r,onValueChange:i,defaultValue:o,orientation:l="horizontal",...u}=e,c=O(I,n),[d,f]=(0,s.i)({prop:r,onChange:i,defaultProp:null!=o?o:"",caller:I});return(0,b.jsx)(D,{scope:n,isRootMenu:!1,value:d,dir:c.dir,orientation:l,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:e=>f(e),onItemSelect:e=>f(e),onItemDismiss:()=>f(""),children:(0,b.jsx)(a.sG.div,{"data-orientation":l,...u,ref:t})})}).displayName=I;var D=e=>{let{scope:t,isRootMenu:n,rootNavigationMenu:i,dir:o,orientation:l,children:a,value:s,onItemSelect:u,onItemDismiss:c,onTriggerEnter:d,onTriggerLeave:h,onContentEnter:p,onContentLeave:g}=e,[v,w]=r.useState(null),[k,C]=r.useState(new Map),[S,E]=r.useState(null);return(0,b.jsx)(A,{scope:t,isRootMenu:n,rootNavigationMenu:i,value:s,previousValue:(0,m.Z)(s),baseId:(0,f.B)(),dir:o,orientation:l,viewport:v,onViewportChange:w,indicatorTrack:S,onIndicatorTrackChange:E,onTriggerEnter:(0,y.c)(d),onTriggerLeave:(0,y.c)(h),onContentEnter:(0,y.c)(p),onContentLeave:(0,y.c)(g),onItemSelect:(0,y.c)(u),onItemDismiss:(0,y.c)(c),onViewportContentChange:r.useCallback((e,t)=>{C(n=>(n.set(e,t),new Map(n)))},[]),onViewportContentRemove:r.useCallback(e=>{C(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,b.jsx)(x.Provider,{scope:t,children:(0,b.jsx)(N,{scope:t,items:k,children:a})})})},_="NavigationMenuList",j=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=O(_,n),o=(0,b.jsx)(a.sG.ul,{"data-orientation":i.orientation,...r,ref:t});return(0,b.jsx)(a.sG.div,{style:{position:"relative"},ref:i.onIndicatorTrackChange,children:(0,b.jsx)(x.Slot,{scope:n,children:i.isRootMenu?(0,b.jsx)(en,{asChild:!0,children:o}):o})})});j.displayName=_;var F="NavigationMenuItem",[z,H]=T(F),B=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:i,...o}=e,l=(0,f.B)(),s=r.useRef(null),u=r.useRef(null),c=r.useRef(null),d=r.useRef(()=>{}),h=r.useRef(!1),p=r.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"start";if(s.current){d.current();let t=eo(s.current);t.length&&el("start"===e?t:t.reverse())}},[]),m=r.useCallback(()=>{if(s.current){let e=eo(s.current);e.length&&(d.current=function(e){return e.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})}}(e))}},[]);return(0,b.jsx)(z,{scope:n,value:i||l||"LEGACY_REACT_AUTO_VALUE",triggerRef:u,contentRef:s,focusProxyRef:c,wasEscapeCloseRef:h,onEntryKeyDown:p,onFocusProxyEnter:p,onRootContentClose:m,onContentFocusOutside:m,children:(0,b.jsx)(a.sG.li,{...o,ref:t})})});B.displayName=F;var $="NavigationMenuTrigger",U=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,disabled:i,...o}=e,s=O($,e.__scopeNavigationMenu),c=H($,e.__scopeNavigationMenu),d=r.useRef(null),f=(0,u.s)(d,c.triggerRef,t),h=eu(s.baseId,c.value),p=ec(s.baseId,c.value),m=r.useRef(!1),g=r.useRef(!1),y=c.value===s.value;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(x.ItemSlot,{scope:n,value:c.value,children:(0,b.jsx)(ei,{asChild:!0,children:(0,b.jsx)(a.sG.button,{id:h,disabled:i,"data-disabled":i?"":void 0,"data-state":es(y),"aria-expanded":y,"aria-controls":p,...o,ref:f,onPointerEnter:(0,l.mK)(e.onPointerEnter,()=>{g.current=!1,c.wasEscapeCloseRef.current=!1}),onPointerMove:(0,l.mK)(e.onPointerMove,ed(()=>{i||g.current||c.wasEscapeCloseRef.current||m.current||(s.onTriggerEnter(c.value),m.current=!0)})),onPointerLeave:(0,l.mK)(e.onPointerLeave,ed(()=>{i||(s.onTriggerLeave(),m.current=!1)})),onClick:(0,l.mK)(e.onClick,()=>{s.onItemSelect(c.value),g.current=y}),onKeyDown:(0,l.mK)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===s.dir?"ArrowLeft":"ArrowRight"}[s.orientation];y&&e.key===t&&(c.onEntryKeyDown(),e.preventDefault())})})})}),y&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(v.bL,{"aria-hidden":!0,tabIndex:0,ref:c.focusProxyRef,onFocus:e=>{let t=c.contentRef.current,n=e.relatedTarget,r=n===d.current,i=null==t?void 0:t.contains(n);(r||!i)&&c.onFocusProxyEnter(r?"start":"end")}}),s.viewport&&(0,b.jsx)("span",{"aria-owns":p})]})]})});U.displayName=$;var V="navigationMenu.linkSelect",W=r.forwardRef((e,t)=>
24{let{__scopeNavigationMenu:n,active:r,onSelect:i,...o}=e;return(0,b.jsx)(ei,{asChild:!0,children:(0,b.jsx)(a.sG.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...o,ref:t,onClick:(0,l.mK)(e.onClick,e=>{let t=e.target,n=new CustomEvent(V,{bubbles:!0,cancelable:!0});if(t.addEventListener(V,e=>null==i?void 0:i(e),{once:!0}),(0,a.hO)(t,n),!n.defaultPrevented&&!e.metaKey){let e=new CustomEvent(X,{bubbles:!0,cancelable:!0});(0,a.hO)(t,e)}},{checkForDefaultPrevented:!1})})})});W.displayName="NavigationMenuLink";var q="NavigationMenuIndicator";r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=O(q,e.__scopeNavigationMenu),l=!!o.value;return o.indicatorTrack?i.createPortal((0,b.jsx)(d.C,{present:n||l,children:(0,b.jsx)(K,{...r,ref:t})}),o.indicatorTrack):null}).displayName=q;var K=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...i}=e,o=O(q,n),l=k(n),[s,u]=r.useState(null),[c,d]=r.useState(null),f="horizontal"===o.orientation,h=!!o.value;r.useEffect(()=>{var e;let t=null==(e=l().find(e=>e.value===o.value))?void 0:e.ref.current;t&&u(t)},[l,o.value]);let p=()=>{s&&d({size:f?s.offsetWidth:s.offsetHeight,offset:f?s.offsetLeft:s.offsetTop})};return ea(s,p),ea(o.indicatorTrack,p),c?(0,b.jsx)(a.sG.div,{"aria-hidden":!0,"data-state":h?"visible":"hidden","data-orientation":o.orientation,...i,ref:t,style:{position:"absolute",...f?{left:0,width:c.size+"px",transform:"translateX(".concat(c.offset,"px)")}:{top:0,height:c.size+"px",transform:"translateY(".concat(c.offset,"px)")},...i.style}}):null}),G="NavigationMenuContent",Y=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=O(G,e.__scopeNavigationMenu),o=H(G,e.__scopeNavigationMenu),a=(0,u.s)(o.contentRef,t),s=o.value===i.value,c={value:o.value,triggerRef:o.triggerRef,focusProxyRef:o.focusProxyRef,wasEscapeCloseRef:o.wasEscapeCloseRef,onContentFocusOutside:o.onContentFocusOutside,onRootContentClose:o.onRootContentClose,...r};return i.viewport?(0,b.jsx)(J,{forceMount:n,...c,ref:a}):(0,b.jsx)(d.C,{present:n||s,children:(0,b.jsx)(Z,{"data-state":es(s),...c,ref:a,onPointerEnter:(0,l.mK)(e.onPointerEnter,i.onContentEnter),onPointerLeave:(0,l.mK)(e.onPointerLeave,ed(i.onContentLeave)),style:{pointerEvents:!s&&i.isRootMenu?"none":void 0,...c.style}})})});Y.displayName=G;var J=r.forwardRef((e,t)=>{let{onViewportContentChange:n,onViewportContentRemove:r}=O(G,e.__scopeNavigationMenu);return(0,g.N)(()=>{n(e.value,{ref:t,...e})},[e,t,n]),(0,g.N)(()=>()=>r(e.value),[e.value,r]),null}),X="navigationMenu.rootContentDismiss",Z=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:i,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:s,onRootContentClose:c,onContentFocusOutside:d,...f}=e,h=O(G,n),m=r.useRef(null),g=(0,u.s)(m,t),y=eu(h.baseId,i),v=ec(h.baseId,i),w=k(n),x=r.useRef(null),{onItemDismiss:C}=h;r.useEffect(()=>{let e=m.current;if(h.isRootMenu&&e){let t=()=>{var t;C(),c(),e.contains(document.activeElement)&&(null==(t=o.current)||t.focus())};return e.addEventListener(X,t),()=>e.removeEventListener(X,t)}},[h.isRootMenu,e.value,o,C,c]);let S=r.useMemo(()=>{let e=w().map(e=>e.value);"rtl"===h.dir&&e.reverse();let t=e.indexOf(h.value),n=e.indexOf(h.previousValue),r=i===h.value,o=n===e.indexOf(i);if(!r&&!o)return x.current;let l=(()=>{if(t!==n){if(r&&-1!==n)return t>n?"from-end":"from-start";if(o&&-1!==t)return t>n?"to-start":"to-end"}return null})();return x.current=l,l},[h.previousValue,h.value,h.dir,w,i]);return(0,b.jsx)(en,{asChild:!0,children:(0,b.jsx)(p.qW,{id:v,"aria-labelledby":y,"data-motion":S,"data-orientation":h.orientation,...f,ref:g,disableOutsidePointerEvents:!1,onDismiss:()=>{var e;let t=new Event(X,{bubbles:!0,cancelable:!0});null==(e=m.current)||e.dispatchEvent(t)},onFocusOutside:(0,l.mK)(e.onFocusOutside,e=>{var t;d();let n=e.target;(null==(t=h.rootNavigationMenu)?void 0:t.contains(n))&&e.preventDefault()}),onPointerDownOutside:(0,l.mK)(e.onPointerDownOutside,e=>{var t;let n=e.target,r=w().some(e=>{var t;return null==(t=e.ref.current)?void 0:t.contains(n)}),i=h.isRootMenu&&(null==(t=h.viewport)?void 0:t.contains(n));(r||i||!h.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,l.mK)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=eo(e.currentTarget),r=document.activeElement,i=t.findIndex(e=>e===r);if(el(e.shiftKey?t.slice(0,i).reverse():t.slice(i+1,t.length)))e.preventDefault();else{var n;null==(n=a.current)||n.focus()}}}),onEscapeKeyDown:(0,l.mK)(e.onEscapeKeyDown,e=>{s.current=!0})})})}),Q="NavigationMenuViewport",ee=r.forwardRef((e,t)=>
24{let{forceMount:n,...r}=e,i=!!O(Q,e.__scopeNavigationMenu).value;return(0,b.jsx)(d.C,{present:n||i,children:(0,b.jsx)(et,{...r,ref:t})})});ee.displayName=Q;var et=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,children:i,...o}=e,s=O(Q,n),c=(0,u.s)(t,s.onViewportChange),f=P(G,e.__scopeNavigationMenu),[h,p]=r.useState(null),[m,g]=r.useState(null),y=h?(null==h?void 0:h.width)+"px":void 0,v=h?(null==h?void 0:h.height)+"px":void 0,w=!!s.value,x=w?s.value:s.previousValue;return ea(m,()=>{m&&p({width:m.offsetWidth,height:m.offsetHeight})}),(0,b.jsx)(a.sG.div,{"data-state":es(w),"data-orientation":s.orientation,...o,ref:c,style:{pointerEvents:!w&&s.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":y,"--radix-navigation-menu-viewport-height":v,...o.style},onPointerEnter:(0,l.mK)(e.onPointerEnter,s.onContentEnter),onPointerLeave:(0,l.mK)(e.onPointerLeave,ed(s.onContentLeave)),children:Array.from(f.items).map(e=>{let[t,{ref:n,forceMount:r,...i}]=e,o=x===t;return(0,b.jsx)(d.C,{present:r||o,children:(0,b.jsx)(Z,{...i,ref:(0,u.t)(n,e=>{o&&e&&g(e)})})},t)})})}),en=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=O("FocusGroup",n);return(0,b.jsx)(S.Provider,{scope:n,children:(0,b.jsx)(S.Slot,{scope:n,children:(0,b.jsx)(a.sG.div,{dir:i.dir,...r,ref:t})})})}),er=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],ei=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=E(n),o=O("FocusGroupItem",n);return(0,b.jsx)(S.ItemSlot,{scope:n,children:(0,b.jsx)(a.sG.button,{...r,ref:t,onKeyDown:(0,l.mK)(e.onKeyDown,e=>{if(["Home","End",...er].includes(e.key)){let t=i().map(e=>e.ref.current);if(["rtl"===o.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),er.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>el(t)),e.preventDefault()}})})})});function eo(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function el(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function ea(e,t){let n=(0,y.c)(t);(0,g.N)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}function es(e){return e?"open":"closed"}function eu(e,t){return"".concat(e,"-trigger-").concat(t)}function ec(e,t){return"".concat(e,"-content-").concat(t)}function ed(e){return t=>"mouse"===t.pointerType?e(t):void 0}var ef=L,eh=j,ep=B,em=U,eg=W,ey=Y,ev=ee},43684:(e,t,n)=>{"use strict";function r(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}n.d(t,{A:()=>r})},45147:(e,t,n)=>{var r=n(16270),i=n(64448),o=n(38541),l=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":l&&l in Object(e)?i(e):o(e)}},45413:(e,t,n)=>{"use strict";n.d(t,{b:()=>a});var r=n(38848),i=n(5461),o=n(38476),l=r.forwardRef((e,t)=>(0,o.jsx)(i.sG.label,{...e,ref:t,onMouseDown:t=>{var n;t.target.closest("button, input, select, textarea")||(null==(n=e.onMouseDown)||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));l.displayName="Label";var a=l},46131:(e,t,n)=>{"use strict";n.d(t,{G:()=>i});var r=n(10276);function i(e){let t=(0,r.a)(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-n}},46229:(e,t,n)=>{"use strict";n.d(t,{jH:()=>o});var r=n(38848);n(38476);var i=r.createContext(void 0);function o(e){let t=r.useContext(i);return e||t||"ltr"}},46324:(e,t,n)=>{"use strict";n.d(t,{UC:()=>el,Y9:()=>ei,q7:()=>er,bL:()=>en,l9:()=>eo});var r=n(38848),i=n(89486),o=n(21670),l=n(25300),a=n(4529),s=n(67821),u=n(5461),c=n(57495),d=n(94205),f=n(85857),h=n(38476),p="Collapsible",[m,g]=(0,i.A)(p),[y,v]=m(p),b=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:i,defaultOpen:o,disabled:l,onOpenChange:a,...c}=e,[d,m]=(0,s.i)({prop:i,defaultProp:null!=o&&o,onChange:a,caller:p});return(0,h.jsx)(y,{scope:n,disabled:l,contentId:(0,f.B)(),open:d,onOpenToggle:r.useCallback(()=>m(e=>!e),[m]),children:(0,h.jsx)(u.sG.div,{"data-state":E(d),"data-disabled":l?"":void 0,...c,ref:t})})});b.displayName=p;var w="CollapsibleTrigger",x=r.forwardRef((e,t)=>
24{let{__scopeCollapsible:n,...r}=e,i=v(w,n);return(0,h.jsx)(u.sG.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":E(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:(0,a.mK)(e.onClick,i.onOpenToggle)})});x.displayName=w;var k="CollapsibleContent",C=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=v(k,e.__scopeCollapsible);return(0,h.jsx)(d.C,{present:n||i.open,children:e=>{let{present:n}=e;return(0,h.jsx)(S,{...r,ref:t,present:n})}})});C.displayName=k;var S=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:i,children:o,...a}=e,s=v(k,n),[d,f]=r.useState(i),p=r.useRef(null),m=(0,l.s)(t,p),g=r.useRef(0),y=g.current,b=r.useRef(0),w=b.current,x=s.open||d,C=r.useRef(x),S=r.useRef(void 0);return r.useEffect(()=>{let e=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,c.N)(()=>{let e=p.current;if(e){S.current=S.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();g.current=t.height,b.current=t.width,C.current||(e.style.transitionDuration=S.current.transitionDuration,e.style.animationName=S.current.animationName),f(i)}},[s.open,i]),(0,h.jsx)(u.sG.div,{"data-state":E(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!x,...a,ref:m,style:{"--radix-collapsible-content-height":y?"".concat(y,"px"):void 0,"--radix-collapsible-content-width":w?"".concat(w,"px"):void 0,...e.style},children:x&&o})});function E(e){return e?"open":"closed"}var M=n(46229),T="Accordion",R=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[A,O,N]=(0,o.N)(T),[P,L]=(0,i.A)(T,[N,g]),I=g(),D=r.forwardRef((e,t)=>{let{type:n,...r}=e;return(0,h.jsx)(A.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,h.jsx)(B,{...r,ref:t}):(0,h.jsx)(H,{...r,ref:t})})});D.displayName=T;var[_,j]=P(T),[F,z]=P(T,{collapsible:!1}),H=r.forwardRef((e,t)=>{let{value:n,defaultValue:i,onValueChange:o=()=>{},collapsible:l=!1,...a}=e,[u,c]=(0,s.i)({prop:n,defaultProp:null!=i?i:"",onChange:o,caller:T});return(0,h.jsx)(_,{scope:e.__scopeAccordion,value:r.useMemo(()=>u?[u]:[],[u]),onItemOpen:c,onItemClose:r.useCallback(()=>l&&c(""),[l,c]),children:(0,h.jsx)(F,{scope:e.__scopeAccordion,collapsible:l,children:(0,h.jsx)(V,{...a,ref:t})})})}),B=r.forwardRef((e,t)=>{let{value:n,defaultValue:i,onValueChange:o=()=>{},...l}=e,[a,u]=(0,s.i)({prop:n,defaultProp:null!=i?i:[],onChange:o,caller:T}),c=r.useCallback(e=>u(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[u]),d=r.useCallback(e=>u(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[u]);return(0,h.jsx)(_,{scope:e.__scopeAccordion,value:a,onItemOpen:c,onItemClose:d,children:(0,h.jsx)(F,{scope:e.__scopeAccordion,collapsible:!0,children:(0,h.jsx)(V,{...l,ref:t})})})}),[$,U]=P(T),V=r.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:i,dir:o,orientation:s="vertical",...c}=e,d=r.useRef(null),f=(0,l.s)(d,t),p=O(n),m="ltr"===(0,M.jH)(o),g=(0,a.mK)(e.onKeyDown,e=>{var t;if(!R.includes(e.key))return;let n=e.target,r=p().filter(e=>{var t;return!(null==(t=e.ref.current)?void 0:t.disabled)}),i=r.findIndex(e=>e.ref.current===n),o=r.length;if(-1===i)return;e.preventDefault();let l=i,a=o-1,u=()=>{(l=i+1)>a&&(l=0)},c=()=>{(l=i-1)<0&&(l=a)};switch(e.key){case"Home":l=0;break;case"End":l=a;break;case"ArrowRight":"horizontal"===s&&(m?u():c());break;case"ArrowDown":"vertical"===s&&u();break;case"ArrowLeft":"horizontal"===s&&(m?c():u());break;case"ArrowUp":"vertical"===s&&c()}null==(t=r[l%o].ref.current)||t.focus()});return(0,h.jsx)($,{scope:n,disabled:i,direction:o,orientation:s,children:(0,h.jsx)(A.Slot,{scope:n,children:(0,h.jsx)(u.sG.div,{...c,"data-orientation":s,ref:f,onKeyDown:i?void 0:g})})})}),W="AccordionItem",[q,K]=P(W),G=r.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...i}=e,o=U(W,n),l=j(W,n),a=I(n),s=(0,f.B)(),u=r&&l.value.includes(r)||!1,c=o.disabled||e.disabled;return(0,h.jsx)(q,{scope:n,open:u,disabled:c,triggerId:s,children:(0,h.jsx)(b,{"data-orientation":o.orientation,"data-state":et(u),...a,...i,ref:t,disabled:c,open:u,onOpenChange:e=>{e?l.onItemOpen(r):l.onItemClose(r)}})})});G.displayName=W;var Y="AccordionHeader",J=r.forwardRef((e,t)=>
24{let{__scopeAccordion:n,...r}=e,i=U(T,n),o=K(Y,n);return(0,h.jsx)(u.sG.h3,{"data-orientation":i.orientation,"data-state":et(o.open),"data-disabled":o.disabled?"":void 0,...r,ref:t})});J.displayName=Y;var X="AccordionTrigger",Z=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=U(T,n),o=K(X,n),l=z(X,n),a=I(n);return(0,h.jsx)(A.ItemSlot,{scope:n,children:(0,h.jsx)(x,{"aria-disabled":o.open&&!l.collapsible||void 0,"data-orientation":i.orientation,id:o.triggerId,...a,...r,ref:t})})});Z.displayName=X;var Q="AccordionContent",ee=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=U(T,n),o=K(Q,n),l=I(n);return(0,h.jsx)(C,{role:"region","aria-labelledby":o.triggerId,"data-orientation":i.orientation,...l,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function et(e){return e?"open":"closed"}ee.displayName=Q;var en=D,er=G,ei=J,eo=Z,el=ee},46742:(e,t,n)=>{"use strict";n.d(t,{e:()=>i});var r=n(89983);function i(e,t,n){return(0,r.f)(e,-t,n)}},47257:(e,t,n)=>{"use strict";var r=n(38848),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,l=r.useEffect,a=r.useLayoutEffect,s=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return a(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),l(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},47951:(e,t)=>{"use strict";function n(e){var t;let{config:n,src:r,width:i,quality:o}=e,l=o||(null==(t=n.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return n.path+"?url="+encodeURIComponent(r)+"&w="+i+"&q="+l+(r.startsWith("/_next/static/media/")&&1?"&dpl=dpl_pUW8SvW2miwCggdYE6vnbxLexMYE":"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},48226:(e,t,n)=>{"use strict";e.exports=n(47257)},48949:(e,t,n)=>{"use strict";n.d(t,{X:()=>o});var r=n(38848),i=n(57495);function o(e){let[t,n]=r.useState(void 0);return(0,i.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}},49489:(e,t,n)=>{"use strict";n.d(t,{W:()=>u});var r=n(97118),i=n(75581),o=n(42400),l=n(61643),a=n(14955),s=n(10276);function u(e,t,n){let[u,c,d]=(0,r.x)(null==n?void 0:n.in,e,e,t),f=(0,i.z)(c,d),h=Math.abs((0,o.U)(c,d));if(h<1)return 0;1===c.getMonth()&&c.getDate()>27&&c.setDate(30),c.setMonth(c.getMonth()-f*h);let p=(0,i.z)(c,d)===-f;(function(e,t){let n=(0,s.a)(e,void 0);return+(0,l.D)(n,void 0)==+(0,a.p)(n,t)})(u)&&1===h&&1===(0,i.z)(u,d)&&(p=!1);let m=f*(h-p);return 0===m?0:m}},49710:(e,t,n)=>{"use strict";function r(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}n.d(t,{B:()=>r})},50713:(e,t,n)=>{"use strict";n.d(t,{BM:()=>a,CW:()=>r,Ee:()=>d,HP:()=>c,JQ:()=>l,Ny:()=>p,On:()=>f,cx:()=>o,es:()=>h,lV:()=>i,ok:()=>s,ol:()=>u});let r=m(/[A-Za-z]/),i=m(/[\dA-Za-z]/),o=m(/[#-'*+\--9=?A-Z^-~]/);function l(e){return null!==e&&(e<32||127===e)}let a=m(/\d/),s=m(/[\dA-Fa-f]/),u=m(/[!-/:-@[-`{-~]/);function c(e){return null!==e&&e<-2}function d(e){return null!==e&&(e<0||32===e)}function f(e){return -2===e||-1===e||32===e}let h=m(/\p{P}|\p{S}/u),p=m(/\s/);function m(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}},50882:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(90953).A)("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]])},51539:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},53102:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esMo
24dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(25829));t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,i.default)(e),o="function"==typeof t;return r.forEach(function(e){if("declaration"===e.type){var r=e.property,i=e.value;o?t(r,i,e):i&&((n=n||{})[r]=i)}}),n}},53136:(e,t,n)=>{"use strict";n.d(t,{N:()=>b});var r=n(38476),i=n(38848),o=n(36232),l=n(63728),a=n(64857),s=n(21446),u=n(1381),c=n(31431);function d(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class f extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,n=(0,u.s)(e)&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function h(e){let{children:t,isPresent:n,anchorX:o,root:l}=e,a=(0,i.useId)(),s=(0,i.useRef)(null),u=(0,i.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:h}=(0,i.useContext)(c.Q),p=function(...e){return i.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=d(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():d(e[t],null)}}}}(...e),e)}(s,null==t?void 0:t.ref);return(0,i.useInsertionEffect)(()=>{let{width:e,height:t,top:r,left:i,right:c}=u.current;if(n||!s.current||!e||!t)return;s.current.dataset.motionPopId=a;let d=document.createElement("style");h&&(d.nonce=h);let f=null!=l?l:document.head;return f.appendChild(d),d.sheet&&d.sheet.insertRule('\n [data-motion-pop-id="'.concat(a,'"] {\n position: absolute !important;\n width: ').concat(e,"px !important;\n height: ").concat(t,"px !important;\n ").concat("left"===o?"left: ".concat(i):"right: ".concat(c),"px !important;\n top: ").concat(r,"px !important;\n }\n ")),()=>{f.contains(d)&&f.removeChild(d)}},[n]),(0,r.jsx)(f,{isPresent:n,childRef:s,sizeRef:u,children:i.cloneElement(t,{ref:p})})}let p=e=>{let{children:t,initial:n,isPresent:o,onExitComplete:a,custom:u,presenceAffectsLayout:c,mode:d,anchorX:f,root:p}=e,g=(0,l.M)(m),y=(0,i.useId)(),v=!0,b=(0,i.useMemo)(()=>(v=!1,{id:y,initial:n,isPresent:o,custom:u,onExitComplete:e=>{for(let t of(g.set(e,!0),g.values()))if(!t)return;a&&a()},register:e=>(g.set(e,!1),()=>g.delete(e))}),[o,g,a]);return c&&v&&(b={...b}),(0,i.useMemo)(()=>{g.forEach((e,t)=>g.set(t,!1))},[o]),i.useEffect(()=>{o||g.size||!a||a()},[o]),"popLayout"===d&&(t=(0,r.jsx)(h,{isPresent:o,anchorX:f,root:p,children:t})),(0,r.jsx)(s.t.Provider,{value:b,children:t})};function m(){return new Map}var g=n(45713);let y=e=>e.key||"";function v(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}let b=e=>{let{children:t,custom:n,initial:s=!0,onExitComplete:u,presenceAffectsLayout:c=!0,mode:d="sync",propagate:f=!1,anchorX:h="left",root:m}=e,[b,w]=(0,g.xQ)(f),x=(0,i.useMemo)(()=>v(t),[t]),k=f&&!b?[]:x.map(y),C=(0,i.useRef)(!0),S=(0,i.useRef)(x),E=(0,l.M)(()=>new Map),[M,T]=(0,i.useState)(x),[R,A]=(0,i.useState)(x);(0,a.E)(()=>{C.current=!1,S.current=x;for(let e=0;e<R.length;e++){let t=y(R[e]);k.includes(t)?E.delete(t):!0!==E.get(t)&&E.set(t,!1)}},[R,k.length,k.join("-")]);let O=[];if(x!==M){let e=[...x];for(let t=0;t<R.length;t++){let n=R[t],r=y(n);k.includes(r)||(e.splice(t,0,n),O.push(n))}return"wait"===d&&O.length&&(e=O),A(v(e)),T(x),null}let{forceRender:N}=(0,i.useContext)(o.L);return(0,r.jsx)(r.Fragment,{children:R.map(e=>{let t=y(e),i=(!f||!!b)&&(x===R||k.includes(t));return(0,r.jsx)(p,{isPresent:i,initial:(!C.current||!!s)&&void 0,custom:n,presenceAffectsLayout:c,mode:d,root:m,onExitComplete:i?void 0:()=>{if(!E.has(t))return;E.set(t,!0);let e=!0;E.forEach(t=>{t||(e=!1)}),e&&(null==N||N(),A(S.current),f&&(null==w||w()),u&&u())},anchorX:h,children:e},t)})})}},54625:(e,t,n)=>{"use strict";let r;n.d(t,{_s:()=>j});var i=n(98513),o=n(38848);let l=o.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{}
24,openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),a=()=>{let e=o.useContext(l);if(!e)throw Error("useDrawerContext must be used within a Drawer.Root");return e};function s(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function u(){return c(/^iPhone/)||c(/^iPad/)||c(/^Mac/)&&navigator.maxTouchPoints>1}function c(e){return"undefined"!=typeof window&&null!=window.navigator?e.test(window.navigator.platform):void 0}!function(e){if(!e||"undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}("[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(\n[data-state=closed]\n){opacity:0}
24[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}");let d="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function f(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];for(let e of t)"function"==typeof e&&e(...n)}}let h="undefined"!=typeof document&&window.visualViewport;function p(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function m(e){for(p(e)&&(e=e.parentElement);e&&!p(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}let g=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),y=0;function v(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function b(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=m(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;e.getBoundingClientRect().bottom>t.getBoundingClientRect().bottom+24&&(t.scrollTop+=r-n)}e=t.parentElement}}function w(e){return e instanceof HTMLInputElement&&!g.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function x(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.useCallback(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>t.forEach(t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)})}(...t),t)}let k=new WeakMap;function C(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(t=>{let[n,i]=t;if(n.startsWith("--"))return void e.style.setProperty(n,i);r[n]=e.style[n],e.style[n]=i}),n||k.set(e,r)}let S=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function E(e,t){if(!e)return null;let n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform,i=r.match(/^matrix3d\((.+)\)$/);return i?parseFloat(i[1].split(", ")[S(t)?13:12]):(i=r.match(/^matrix\((.+)\)$/))?parseFloat(i[1].split(", ")[S(t)?5:4]):null}function M(e,t){if(!e)return()=>{};let n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}let T={DURATION:.5,EASE:[.32,.72,0,1]},R="vaul-dragging";function A(e){let t=o.useRef(e);return o.useEffect(()=>{t.current=e}),o.useMemo(()=>function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current.call(t,...n)},[])}function O(e){let{prop:t,defaultProp:n,onChange:r=()=>{}}=e,[i,l]=function(e){let{defaultProp:t,onChange:n}=e,r=o.useState(t),[i]=r,l=o.useRef(i),a=A(n);return o.useEffect(()=>{l.current!==i&&(a(i),l.current=i)},[i,l,a]),r}({defaultProp:n,onChange:r}
24),a=void 0!==t,s=a?t:i,u=A(r);return[s,o.useCallback(e=>{if(a){let n="function"==typeof e?e(t):e;n!==t&&u(n)}else l(e)},[a,t,l,u])]}let N=()=>()=>{},P=null;function L(e){var t,n;let{open:a,onOpenChange:c,children:p,onDrag:g,onRelease:x,snapPoints:M,shouldScaleBackground:A=!1,setBackgroundColorOnScale:N=!0,closeThreshold:L=.25,scrollLockTimeout:I=100,dismissible:D=!0,handleOnly:_=!1,fadeFromIndex:j=M&&M.length-1,activeSnapPoint:F,setActiveSnapPoint:z,fixed:H,modal:B=!0,onClose:$,nested:U,noBodyStyles:V=!1,direction:W="bottom",defaultOpen:q=!1,disablePreventScroll:K=!0,snapToSequentialPoint:G=!1,preventScrollRestoration:Y=!1,repositionInputs:J=!0,onAnimationEnd:X,container:Z,autoFocus:Q=!1}=e,[ee=!1,et]=O({defaultProp:q,prop:a,onChange:e=>{null==c||c(e),e||U||eP(),setTimeout(()=>{null==X||X(e)},1e3*T.DURATION),e&&!B&&"undefined"!=typeof window&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),e||(document.body.style.pointerEvents="auto")}}),[en,er]=o.useState(!1),[ei,eo]=o.useState(!1),[el,ea]=o.useState(!1),es=o.useRef(null),eu=o.useRef(null),ec=o.useRef(null),ed=o.useRef(null),ef=o.useRef(null),eh=o.useRef(!1),ep=o.useRef(null),em=o.useRef(0),eg=o.useRef(!1),ey=o.useRef(!q),ev=o.useRef(0),eb=o.useRef(null),ew=o.useRef((null==(t=eb.current)?void 0:t.getBoundingClientRect().height)||0),ex=o.useRef((null==(n=eb.current)?void 0:n.getBoundingClientRect().width)||0),ek=o.useRef(0),eC=o.useCallback(e=>{M&&e===eR.length-1&&(eu.current=new Date)},[]),{activeSnapPoint:eS,activeSnapPointIndex:eE,setActiveSnapPoint:eM,onRelease:eT,snapPointsOffset:eR,onDrag:eA,shouldFade:eO,getPercentageDragged:eN}=function(e){let{activeSnapPointProp:t,setActiveSnapPointProp:n,snapPoints:r,drawerRef:i,overlayRef:l,fadeFromIndex:a,onSnapPointChange:s,direction:u="bottom",container:c,snapToSequentialPoint:d}=e,[f,h]=O({prop:t,defaultProp:null==r?void 0:r[0],onChange:n}),[p,m]=o.useState("undefined"!=typeof window?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);o.useEffect(()=>{function e(){m({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let g=o.useMemo(()=>f===(null==r?void 0:r[r.length-1])||null,[r,f]),y=o.useMemo(()=>{var e;return null!=(e=null==r?void 0:r.findIndex(e=>e===f))?e:null},[r,f]),v=r&&r.length>0&&(a||0===a)&&!Number.isNaN(a)&&r[a]===f||!r,b=o.useMemo(()=>{var e;let t=c?{width:c.getBoundingClientRect().width,height:c.getBoundingClientRect().height}:"undefined"!=typeof window?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};return null!=(e=null==r?void 0:r.map(e=>{let n="string"==typeof e,r=0;if(n&&(r=parseInt(e,10)),S(u)){let i=n?r:p?e*t.height:0;return p?"bottom"===u?t.height-i:-t.height+i:i}let i=n?r:p?e*t.width:0;return p?"right"===u?t.width-i:-t.width+i:i}))?e:[]},[r,p,c]),w=o.useMemo(()=>null!==y?null==b?void 0:b[y]:null,[b,y]),x=o.useCallback(e=>{var t;let n=null!=(t=null==b?void 0:b.findIndex(t=>t===e))?t:null;s(n),C(i.current,{transition:"transform ".concat(T.DURATION,"s cubic-bezier(").concat(T.EASE.join(","),")"),transform:S(u)?"translate3d(0, ".concat(e,"px, 0)"):"translate3d(".concat(e,"px, 0, 0)")}),b&&n!==b.length-1&&void 0!==a&&n!==a&&n<a?C(l.current,{transition:"opacity ".concat(T.DURATION,"s cubic-bezier(").concat(T.EASE.join(","),")"),opacity:"0"}):C(l.current,{transition:"opacity ".concat(T.DURATION,"s cubic-bezier(").concat(T.EASE.join(","),")"),opacity:"1"}),h(null==r?void 0:r[Math.max(n,0)])},[i.current,r,b,a,l,h]);return o.useEffect(()=>{if(f||t){var e;let n=null!=(e=null==r?void 0:r.findIndex(e=>e===t||e===f))?e:-1;b&&-1!==n&&"number"==typeof b[n]&&x(b[n])}},[f,t,r,b,x]),{isLastSnapPoint:g,activeSnapPoint:f,shouldFade:v,getPercentageDragged:function(e,t){if(!r||"number"!=typeof y||!b||void 0===a)return null;let n=y===a-1;if(y>=a&&t)return 0;if(n&&!t)return 1;if(!v&&!n)return null;let i=n?y+1:y-1,o=e/Math.abs(n?b[i]-b[i-1]:b[i+1]-b[i]);return n?1-o:o},setActiveSnapPoint:h,activeSnapPointIndex:y,onRelease:function(e){let{draggedDistance:t,closeDrawer:n,velocity:i,dismissible:o}=e;if(void 0===a)return;let s="bottom"===u||"right"===u?(null!=w?w:0)-t:(null!=w?w:0)+t,c=y===a-1,f=0===y,h=t>0;if(c&&C(l.current,{transition:"opacity ".concat(T.DURATION,"s cubic-bezier(").concat(T.EASE.join(","),")")}),!d&&i>2&&!h)return void(o?n():x(b[0]));if(!d&&i>2&&h&&b&&r)return void x(b[r.length-1]);let p=null==b?void 0:b.reduce((e,t)=>
24"number"!=typeof e||"number"!=typeof t?e:Math.abs(t-s)<Math.abs(e-s)?t:e),m=S(u)?window.innerHeight:window.innerWidth;if(i>.4&&Math.abs(t)<.4*m){let e=h?1:-1;return e>0&&g&&r?void x(b[r.length-1]):void(f&&e<0&&o&&n(),null===y||x(b[y+e]))}x(p)},onDrag:function(e){let{draggedDistance:t}=e;if(null===w)return;let n="bottom"===u||"right"===u?w-t:w+t;("bottom"!==u&&"right"!==u||!(n<b[b.length-1]))&&(("top"===u||"left"===u)&&n>b[b.length-1]||C(i.current,{transform:S(u)?"translate3d(0, ".concat(n,"px, 0)"):"translate3d(".concat(n,"px, 0, 0)")}))},snapPointsOffset:b}}({snapPoints:M,activeSnapPointProp:F,setActiveSnapPointProp:z,drawerRef:eb,fadeFromIndex:j,overlayRef:es,onSnapPointChange:eC,direction:W,container:Z,snapToSequentialPoint:G});!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{isDisabled:t}=e;d(()=>{if(!t){var e,n,i;let t,o,l,a,s,c,d;return 1==++y&&u()&&(l=0,a=window.pageXOffset,s=window.pageYOffset,c=f((e=document.documentElement,n="paddingRight",i="".concat(window.innerWidth-document.documentElement.clientWidth,"px"),t=e.style[n],e.style[n]=i,()=>{e.style[n]=t})),window.scrollTo(0,0),d=f(v(document,"touchstart",e=>{((o=m(e.target))!==document.documentElement||o!==document.body)&&(l=e.changedTouches[0].pageY)},{passive:!1,capture:!0}),v(document,"touchmove",e=>{if(!o||o===document.documentElement||o===document.body)return void e.preventDefault();let t=e.changedTouches[0].pageY,n=o.scrollTop,r=o.scrollHeight-o.clientHeight;0!==r&&((n<=0&&t>l||n>=r&&t<l)&&e.preventDefault(),l=t)},{passive:!1,capture:!0}),v(document,"touchend",e=>{let t=e.target;w(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame(()=>{t.style.transform=""}))},{passive:!1,capture:!0}),v(document,"focus",e=>{let t=e.target;w(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{t.style.transform="",h&&(h.height<window.innerHeight?requestAnimationFrame(()=>{b(t)}):h.addEventListener("resize",()=>b(t),{once:!0}))}))},!0),v(window,"scroll",()=>{window.scrollTo(0,0)})),r=()=>{c(),d(),window.scrollTo(a,s)}),()=>{0==--y&&(null==r||r())}}},[t])}({isDisabled:!ee||ei||!B||el||!en||!J||!K});let{restorePositionSetting:eP}=function(e){let{isOpen:t,modal:n,nested:r,hasBeenOpened:i,preventScrollRestoration:l,noBodyStyles:a}=e,[u,c]=o.useState(()=>"undefined"!=typeof window?window.location.href:""),d=o.useRef(0),f=o.useCallback(()=>{if(s()&&null===P&&t&&!a){P={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};let{scrollX:e,innerHeight:t}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:"".concat(-d.current,"px"),left:"".concat(-e,"px"),right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{let e=t-window.innerHeight;e&&d.current>=t&&(document.body.style.top="".concat(-(d.current+e),"px"))}),300)}},[t]),h=o.useCallback(()=>{if(s()&&null!==P&&!a){let e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,P),window.requestAnimationFrame(()=>{if(l&&u!==window.location.href)return void c(window.location.href);window.scrollTo(t,e)}),P=null}},[u]);return o.useEffect(()=>{function e(){d.current=window.scrollY}return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),o.useEffect(()=>{if(n)return()=>{"undefined"!=typeof document&&(document.querySelector("[data-vaul-drawer]")||h())}},[n,h]),o.useEffect(()=>{!r&&i&&(t?(window.matchMedia("(display-mode: standalone)").matches||f(),n||window.setTimeout(()=>{h()},500)):h())},[t,i,u,n,r,f,h]),{restorePositionSetting:h}}({isOpen:ee,modal:B,nested:null!=U&&U,hasBeenOpened:en,preventScrollRestoration:Y,noBodyStyles:V});function eL(){return(window.innerWidth-26)/window.innerWidth}function eI(e,t){var n;let r=e,i=null==(n=window.getSelection())?void 0:n.toString(),o=eb.current?E(eb.current,W):null,l=new Date;if("SELECT"===r.tagName||r.hasAttribute("data-vaul-no-drag")||r.closest("[data-vaul-no-drag]"))return!1;
24if("right"===W||"left"===W)return!0;if(eu.current&&l.getTime()-eu.current.getTime()<500)return!1;if(null!==o&&("bottom"===W?o>0:o<0))return!0;if(i&&i.length>0)return!1;if(ef.current&&l.getTime()-ef.current.getTime()<I&&0===o||t)return ef.current=l,!1;for(;r;){if(r.scrollHeight>r.clientHeight){if(0!==r.scrollTop)return ef.current=new Date,!1;if("dialog"===r.getAttribute("role"))break}r=r.parentNode}return!0}function eD(e){ei&&eb.current&&(eb.current.classList.remove(R),eh.current=!1,eo(!1),ed.current=new Date),null==$||$(),e||et(!1),setTimeout(()=>{M&&eM(M[0])},1e3*T.DURATION)}function e_(){if(!eb.current)return;let e=document.querySelector("[data-vaul-drawer-wrapper]"),t=E(eb.current,W);C(eb.current,{transform:"translate3d(0, 0, 0)",transition:"transform ".concat(T.DURATION,"s cubic-bezier(").concat(T.EASE.join(","),")")}),C(es.current,{transition:"opacity ".concat(T.DURATION,"s cubic-bezier(").concat(T.EASE.join(","),")"),opacity:"1"}),A&&t&&t>0&&ee&&C(e,{borderRadius:"".concat(8,"px"),overflow:"hidden",...S(W)?{transform:"scale(".concat(eL(),") translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)"),transformOrigin:"top"}:{transform:"scale(".concat(eL(),") translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)"),transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:"".concat(T.DURATION,"s"),transitionTimingFunction:"cubic-bezier(".concat(T.EASE.join(","),")")},!0)}return o.useEffect(()=>{window.requestAnimationFrame(()=>{ey.current=!0})},[]),o.useEffect(()=>{var e;function t(){if(eb.current&&J&&(w(document.activeElement)||eg.current)){var e;let t=(null==(e=window.visualViewport)?void 0:e.height)||0,n=window.innerHeight,r=n-t,i=eb.current.getBoundingClientRect().height||0;ek.current||(ek.current=i);let o=eb.current.getBoundingClientRect().top;if(Math.abs(ev.current-r)>60&&(eg.current=!eg.current),M&&M.length>0&&eR&&eE&&(r+=eR[eE]||0),ev.current=r,i>t||eg.current){let e=eb.current.getBoundingClientRect().height,l=e;e>t&&(l=t-(i>.8*n?o:26)),H?eb.current.style.height="".concat(e-Math.max(r,0),"px"):eb.current.style.height="".concat(Math.max(l,t-o),"px")}else!function(){let e=navigator.userAgent;return"undefined"!=typeof window&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}()&&(eb.current.style.height="".concat(ek.current,"px"));M&&M.length>0&&!eg.current?eb.current.style.bottom="0px":eb.current.style.bottom="".concat(Math.max(r,0),"px")}}return null==(e=window.visualViewport)||e.addEventListener("resize",t),()=>{var e;return null==(e=window.visualViewport)?void 0:e.removeEventListener("resize",t)}},[eE,M,eR]),o.useEffect(()=>(ee&&(C(document.documentElement,{scrollBehavior:"auto"}),eu.current=new Date),()=>{!function(e,t){if(!e||!(e instanceof HTMLElement))return;let n=k.get(e);n&&(e.style[t]=n[t])}(document.documentElement,"scrollBehavior")}),[ee]),o.useEffect(()=>{B||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[B]),o.createElement(i.bL,{defaultOpen:q,onOpenChange:e=>{(D||e)&&(e?er(!0):eD(!0),et(e))},open:ee},o.createElement(l.Provider,{value:{activeSnapPoint:eS,snapPoints:M,setActiveSnapPoint:eM,drawerRef:eb,overlayRef:es,onOpenChange:c,onPress:function(e){var t,n;(D||M)&&(!eb.current||eb.current.contains(e.target))&&(ew.current=(null==(t=eb.current)?void 0:t.getBoundingClientRect().height)||0,ex.current=(null==(n=eb.current)?void 0:n.getBoundingClientRect().width)||0,eo(!0),ec.current=new Date,u()&&window.addEventListener("touchend",()=>eh.current=!1,{once:!0}),e.target.setPointerCapture(e.pointerId),em.current=S(W)?e.pageY:e.pageX)},onRelease:function(e){var t,n;if(!ei||!eb.current)return;eb.current.classList.remove(R),eh.current=!1,eo(!1),ed.current=new Date;let r=E(eb.current,W);
24if(!e||!eI(e.target,!1)||!r||Number.isNaN(r)||null===ec.current)return;let i=ed.current.getTime()-ec.current.getTime(),o=em.current-(S(W)?e.pageY:e.pageX),l=Math.abs(o)/i;if(l>.05&&(ea(!0),setTimeout(()=>{ea(!1)},200)),M){eT({draggedDistance:o*("bottom"===W||"right"===W?1:-1),closeDrawer:eD,velocity:l,dismissible:D}),null==x||x(e,!0);return}if("bottom"===W||"right"===W?o>0:o<0){e_(),null==x||x(e,!0);return}if(l>.4){eD(),null==x||x(e,!1);return}let a=Math.min(null!=(t=eb.current.getBoundingClientRect().height)?t:0,window.innerHeight),s=Math.min(null!=(n=eb.current.getBoundingClientRect().width)?n:0,window.innerWidth);if(Math.abs(r)>=("left"===W||"right"===W?s:a)*L){eD(),null==x||x(e,!1);return}null==x||x(e,!0),e_()},onDrag:function(e){if(eb.current&&ei){let t="bottom"===W||"right"===W?1:-1,n=(em.current-(S(W)?e.pageY:e.pageX))*t,r=n>0,i=M&&!D&&!r;if(i&&0===eE)return;let o=Math.abs(n),l=document.querySelector("[data-vaul-drawer-wrapper]"),a=o/("bottom"===W||"top"===W?ew.current:ex.current),s=eN(o,r);if(null!==s&&(a=s),i&&a>=1||!eh.current&&!eI(e.target,r))return;if(eb.current.classList.add(R),eh.current=!0,C(eb.current,{transition:"none"}),C(es.current,{transition:"none"}),M&&eA({draggedDistance:n}),r&&!M){let e=Math.min(-(8*(Math.log(n+1)-2)*1),0)*t;C(eb.current,{transform:S(W)?"translate3d(0, ".concat(e,"px, 0)"):"translate3d(".concat(e,"px, 0, 0)")});return}let u=1-a;if((eO||j&&eE===j-1)&&(null==g||g(e,a),C(es.current,{opacity:"".concat(u),transition:"none"},!0)),l&&es.current&&A){let e=Math.min(eL()+a*(1-eL()),1),t=8-8*a,n=Math.max(0,14-14*a);C(l,{borderRadius:"".concat(t,"px"),transform:S(W)?"scale(".concat(e,") translate3d(0, ").concat(n,"px, 0)"):"scale(".concat(e,") translate3d(").concat(n,"px, 0, 0)"),transition:"none"},!0)}if(!M){let e=o*t;C(eb.current,{transform:S(W)?"translate3d(0, ".concat(e,"px, 0)"):"translate3d(".concat(e,"px, 0, 0)")})}}},dismissible:D,shouldAnimate:ey,handleOnly:_,isOpen:ee,isDragging:ei,shouldFade:eO,closeDrawer:eD,onNestedDrag:function(e,t){if(t<0)return;let n=(window.innerWidth-16)/window.innerWidth,r=n+t*(1-n),i=-16+16*t;C(eb.current,{transform:S(W)?"scale(".concat(r,") translate3d(0, ").concat(i,"px, 0)"):"scale(".concat(r,") translate3d(").concat(i,"px, 0, 0)"),transition:"none"})},onNestedOpenChange:function(e){let t=e?(window.innerWidth-16)/window.innerWidth:1,n=e?-16:0;ep.current&&window.clearTimeout(ep.current),C(eb.current,{transition:"transform ".concat(T.DURATION,"s cubic-bezier(").concat(T.EASE.join(","),")"),transform:S(W)?"scale(".concat(t,") translate3d(0, ").concat(n,"px, 0)"):"scale(".concat(t,") translate3d(").concat(n,"px, 0, 0)")}),!e&&eb.current&&(ep.current=setTimeout(()=>{let e=E(eb.current,W);C(eb.current,{transition:"none",transform:S(W)?"translate3d(0, ".concat(e,"px, 0)"):"translate3d(".concat(e,"px, 0, 0)")})},500))},onNestedRelease:function(e,t){let n=S(W)?window.innerHeight:window.innerWidth,r=t?(n-16)/n:1,i=t?-16:0;t&&C(eb.current,{transition:"transform ".concat(T.DURATION,"s cubic-bezier(").concat(T.EASE.join(","),")"),transform:S(W)?"scale(".concat(r,") translate3d(0, ").concat(i,"px, 0)"):"scale(".concat(r,") translate3d(").concat(i,"px, 0, 0)")})},keyboardIsOpen:eg,modal:B,snapPointsOffset:eR,activeSnapPointIndex:eE,direction:W,shouldScaleBackground:A,setBackgroundColorOnScale:N,noBodyStyles:V,container:Z,autoFocus:Q}},p))}let I=o.forwardRef(function(e,t){let{...n}=e,{overlayRef:r,snapPoints:l,onRelease:s,shouldFade:u,isOpen:c,modal:d,shouldAnimate:f}=a(),h=x(t,r),p=l&&l.length>0;if(!d)return null;let m=o.useCallback(e=>s(e),[s]);return o.createElement(i.hJ,{onMouseUp:m,ref:h,"data-vaul-overlay":"","data-vaul-snap-points":c&&p?"true":"false","data-vaul-snap-points-overlay":c&&u?"true":"false","data-vaul-animate":(null==f?void 0:f.current)?"true":"false",...n})});I.displayName="Drawer.Overlay";let D=o.forwardRef(function(e,t){let{onPointerDownOutside:n,style:r,onOpenAutoFocus:l,...s}=e,{drawerRef:u,onPress:c,onRelease:d,onDrag:f,keyboardIsOpen:h,snapPointsOffset:p,activeSnapPointIndex:m,modal:g,isOpen:y,direction:v,snapPoints:b,container:w,handleOnly:k,shouldAnimate:C,autoFocus:E}=a(),[R,A]=o.useState(!1),O=x(t,u),P=o.useRef(null),L=o.useRef(null),I=o.useRef(!1),D=b&&b.length>
240,{direction:_,isOpen:j,shouldScaleBackground:F,setBackgroundColorOnScale:z,noBodyStyles:H}=a(),B=o.useRef(null),$=(0,o.useMemo)(()=>document.body.style.backgroundColor,[]);function U(){return(window.innerWidth-26)/window.innerWidth}o.useEffect(()=>{if(j&&F){B.current&&clearTimeout(B.current);let e=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!e)return;!function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n]}(z&&!H?M(document.body,{background:"black"}):N,M(e,{transformOrigin:S(_)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:"".concat(T.DURATION,"s"),transitionTimingFunction:"cubic-bezier(".concat(T.EASE.join(","),")")}));let t=M(e,{borderRadius:"".concat(8,"px"),overflow:"hidden",...S(_)?{transform:"scale(".concat(U(),") translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)")}:{transform:"scale(".concat(U(),") translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)")}});return()=>{t(),B.current=window.setTimeout(()=>{$?document.body.style.background=$:document.body.style.removeProperty("background")},1e3*T.DURATION)}}},[j,F,$]);let V=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(I.current)return!0;let r=Math.abs(e.y),i=Math.abs(e.x),o=i>r,l=["bottom","right"].includes(t)?1:-1;if("left"===t||"right"===t){if(!(e.x*l<0)&&i>=0&&i<=n)return o}else if(!(e.y*l<0)&&r>=0&&r<=n)return!o;return I.current=!0,!0};function W(e){P.current=null,I.current=!1,d(e)}return o.useEffect(()=>{D&&window.requestAnimationFrame(()=>{A(!0)})},[]),o.createElement(i.UC,{"data-vaul-drawer-direction":v,"data-vaul-drawer":"","data-vaul-delayed-snap-points":R?"true":"false","data-vaul-snap-points":y&&D?"true":"false","data-vaul-custom-container":w?"true":"false","data-vaul-animate":(null==C?void 0:C.current)?"true":"false",...s,ref:O,style:p&&p.length>0?{"--snap-point-height":"".concat(p[null!=m?m:0],"px"),...r}:r,onPointerDown:e=>{k||(null==s.onPointerDown||s.onPointerDown.call(s,e),P.current={x:e.pageX,y:e.pageY},c(e))},onOpenAutoFocus:e=>{null==l||l(e),E||e.preventDefault()},onPointerDownOutside:e=>{if(null==n||n(e),!g||e.defaultPrevented)return void e.preventDefault();h.current&&(h.current=!1)},onFocusOutside:e=>{if(!g)return void e.preventDefault()},onPointerMove:e=>{if(L.current=e,k||(null==s.onPointerMove||s.onPointerMove.call(s,e),!P.current))return;let t=e.pageY-P.current.y,n=e.pageX-P.current.x,r="touch"===e.pointerType?10:2;V({x:n,y:t},v,r)?f(e):(Math.abs(n)>r||Math.abs(t)>r)&&(P.current=null)},onPointerUp:e=>{null==s.onPointerUp||s.onPointerUp.call(s,e),P.current=null,I.current=!1,d(e)},onPointerOut:e=>{null==s.onPointerOut||s.onPointerOut.call(s,e),W(L.current)},onContextMenu:e=>{null==s.onContextMenu||s.onContextMenu.call(s,e),L.current&&W(L.current)}})});D.displayName="Drawer.Content";let _=o.forwardRef(function(e,t){let{preventCycle:n=!1,children:r,...i}=e,{closeDrawer:l,isDragging:s,snapPoints:u,activeSnapPoint:c,setActiveSnapPoint:d,dismissible:f,handleOnly:h,isOpen:p,onPress:m,onDrag:g}=a(),y=o.useRef(null),v=o.useRef(!1);function b(){y.current&&window.clearTimeout(y.current),v.current=!1}return o.createElement("div",{onClick:function(){if(v.current)return void b();window.setTimeout(()=>{!function(){if(s||n||v.current)return b();if(b(),!u||0===u.length){f||l();return}if(c===u[u.length-1]&&f)return l();let e=u.findIndex(e=>e===c);-1!==e&&d(u[e+1])}()},120)},onPointerCancel:b,onPointerDown:e=>{h&&m(e),y.current=window.setTimeout(()=>{v.current=!0},250)},onPointerMove:e=>{h&&g(e)},ref:t,"data-vaul-drawer-visible":p?"true":"false","data-vaul-handle":"","aria-hidden":"true",...i},o.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},r))});_.displayName="Drawer.Handle";let j={Root:L,NestedRoot:function(e){let{onDrag:t,onOpenChange:n,open:r,...i}=e,{onNestedDrag:l,onNestedOpenChange:s,onNestedRelease:u}=a();if(!l)throw Error("Drawer.NestedRoot must be placed in another drawer");return o.createElement(L,{nested:!0,open:r,onClose:()=>{s(!1)},onDrag:(e,n)=>{l(e,n),null==t||t(e,n)},onOpenChange:e=>{e&&s(e),null==n||n(e)},onRelease:u,...i})},Content:D,Overlay:I,Trigger:i.l9,Portal:function(e){let t=a(),{container:n=t.container,...r}=e;return o.createElement(i.ZL,{container:n,...r})},Handle:_,Close:i.bm,Title:i.hE,Description:i.VY}},55225:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(90953).A)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},55520:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});var r=n(50713);function i(e){return null===e||(0,r.Ee)(e)||(0,r.Ny)(e)?1:(0,r.es)(e)?2:void 0}},55766:(e,t,n)=>{"use strict";n.d(t,{Y:()=>i});var r=n(10276);function i(e,t){return+(0,r.a)(e)<+(0,r.a)(t)}}
24,55999:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});let r=n(71685)._(n(38848)).default.createContext(null)},56026:(e,t,n)=>{"use strict";function r(e,t){e(t)}n.d(t,{A:()=>r})},56083:(e,t,n)=>{"use strict";n.d(t,{R:()=>o});var r=n(88050),i=n(61947);let o=(0,r.f)(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*i.Tt)},(e,t)=>(t-e)/i.Tt,e=>e.getUTCSeconds());o.range},56178:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(90953).A)("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},56539:(e,t,n)=>{"use strict";n.d(t,{t:()=>i});var r=n(97118);function i(e,t,n){let[i,o]=(0,r.x)(null==n?void 0:n.in,e,t);return i.getFullYear()===o.getFullYear()&&i.getMonth()===o.getMonth()}},57215:(e,t,n)=>{"use strict";n.d(t,{bL:()=>s});var r=n(38848),i=n(5461),o=n(38476),l=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),a=r.forwardRef((e,t)=>(0,o.jsx)(i.sG.span,{...e,ref:t,style:{...l,...e.style}}));a.displayName="VisuallyHidden";var s=a},57495:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(38848),i=globalThis?.document?r.useLayoutEffect:()=>{}},57564:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(90953).A)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},58698:(e,t,n)=>{"use strict";n.d(t,{Cg:()=>o,F6:()=>s,Nw:()=>a,_P:()=>u,my:()=>r,s0:()=>l,w4:()=>i});let r=6048e5,i=864e5,o=6e4,l=36e5,a=43200,s=1440,u=Symbol.for("constructDateFrom")},58737:(e,t,n)=>{"use strict";n.d(t,{uB:()=>P,wo:()=>_});var r=/[\\\/_+.#"@\[\(\{&]/,i=/[\\\/_+.#"@\[\(\{&]/g,o=/[\s-]/,l=/[\s-]/g;function a(e){return e.toLowerCase().replace(l," ")}var s=n(98513),u=n(38848),c=n(5461),d=n(85857),f=n(25300),h='[cmdk-group=""]',p='[cmdk-group-items=""]',m='[cmdk-item=""]',g="".concat(m,':not([aria-disabled="true"])'),y="cmdk-item-select",v="data-value",b=(e,t,n)=>(function(e,t,n){return function e(t,n,a,s,u,c,d){if(c===n.length)return u===t.length?1:.99;var f=`${u},${c}`;if(void 0!==d[f])return d[f];for(var h,p,m,g,y=s.charAt(c),v=a.indexOf(y,u),b=0;v>=0;)(h=e(t,n,a,s,v+1,c+1,d))>b&&(v===u?h*=1:r.test(t.charAt(v-1))?(h*=.8,(m=t.slice(u,v-1).match(i))&&u>0&&(h*=Math.pow(.999,m.length))):o.test(t.charAt(v-1))?(h*=.9,(g=t.slice(u,v-1).match(l))&&u>0&&(h*=Math.pow(.999,g.length))):(h*=.17,u>0&&(h*=Math.pow(.999,v-u))),t.charAt(v)!==n.charAt(c)&&(h*=.9999)),(h<.1&&a.charAt(v-1)===s.charAt(c+1)||s.charAt(c+1)===s.charAt(c)&&a.charAt(v-1)!==s.charAt(c))&&.1*(p=e(t,n,a,s,v+1,c+2,d))>h&&(h=.1*p),h>b&&(b=h),v=a.indexOf(y,v+1);return d[f]=b,b}(e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,t,a(e),a(t),0,0,{})})(e,t,n),w=u.createContext(void 0),x=()=>u.useContext(w),k=u.createContext(void 0),C=()=>u.useContext(k),S=u.createContext(void 0),E=u.forwardRef((e,t)=>{let n=D(()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=D(()=>new Set),i=D(()=>new Map),o=D(()=>new Map),l=D(()=>new Set),a=L(e),{label:s,children:f,value:x,onValueChange:C,filter:S,shouldFilter:E,loop:M,disablePointerSelection:T=!1,vimBindings:R=!0,...A}=e,O=(0,d.B)(),N=(0,d.B)(),P=(0,d.B)(),_=u.useRef(null),j=F();I(()=>
24{if(void 0!==x){let e=x.trim();n.current.value=e,B.emit()}},[x]),I(()=>{j(6,K)},[]);let B=u.useMemo(()=>({subscribe:e=>(l.current.add(e),()=>l.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var i,o,l,s;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)q(),V(),j(1,W);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(P);e?e.focus():null==(i=document.getElementById(O))||i.focus()}if(j(7,()=>{var e;n.current.selectedItemId=null==(e=G())?void 0:e.id,B.emit()}),r||j(5,K),(null==(o=a.current)?void 0:o.value)!==void 0){null==(s=(l=a.current).onValueChange)||s.call(l,null!=t?t:"");return}}B.emit()}},emit:()=>{l.current.forEach(e=>e())}}),[]),$=u.useMemo(()=>({value:(e,t,r)=>{var i;t!==(null==(i=o.current.get(e))?void 0:i.value)&&(o.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,U(t,r)),j(2,()=>{V(),B.emit()}))},item:(e,t)=>(r.current.add(e),t&&(i.current.has(t)?i.current.get(t).add(e):i.current.set(t,new Set([e]))),j(3,()=>{q(),V(),n.current.value||W(),B.emit()}),()=>{o.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=G();j(4,()=>{q(),(null==t?void 0:t.getAttribute("id"))===e&&W(),B.emit()})}),group:e=>(i.current.has(e)||i.current.set(e,new Set),()=>{o.current.delete(e),i.current.delete(e)}),filter:()=>a.current.shouldFilter,label:s||e["aria-label"],getDisablePointerSelection:()=>a.current.disablePointerSelection,listId:O,inputId:P,labelId:N,listInnerRef:_}),[]);function U(e,t){var r,i;let o=null!=(i=null==(r=a.current)?void 0:r.filter)?i:b;return e?o(e,n.current.search,t):0}function V(){if(!n.current.search||!1===a.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let r=i.current.get(n),o=0;r.forEach(t=>{o=Math.max(e.get(t),o)}),t.push([n,o])});let r=_.current;Y().sort((t,n)=>{var r,i;let o=t.getAttribute("id"),l=n.getAttribute("id");return(null!=(r=e.get(l))?r:0)-(null!=(i=e.get(o))?i:0)}).forEach(e=>{let t=e.closest(p);t?t.appendChild(e.parentElement===t?e:e.closest("".concat(p," > *"))):r.appendChild(e.parentElement===r?e:e.closest("".concat(p," > *")))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let n=null==(t=_.current)?void 0:t.querySelector("".concat(h,"[").concat(v,'="').concat(encodeURIComponent(e[0]),'"]'));null==n||n.parentElement.appendChild(n)})}function W(){let e=Y().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(v);B.setState("value",t||void 0)}function q(){var e,t,l,s;if(!n.current.search||!1===a.current.shouldFilter){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let u=0;for(let i of r.current){let r=U(null!=(t=null==(e=o.current.get(i))?void 0:e.value)?t:"",null!=(s=null==(l=o.current.get(i))?void 0:l.keywords)?s:[]);n.current.filtered.items.set(i,r),r>0&&u++}for(let[e,t]of i.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=u}function K(){var e,t,n;let r=G();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(h))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function G(){var e;return null==(e=_.current)?void 0:e.querySelector("".concat(m,'[aria-selected="true"]'))}function Y(){var e;return Array.from((null==(e=_.current)?void 0:e.querySelectorAll(g))||[])}function J(e){let t=Y()[e];t&&B.setState("value",t.getAttribute(v))}function X(e){var t;let n=G(),r=Y(),i=r.findIndex(e=>e===n),o=r[i+e];null!=(t=a.current)&&t.loop&&(o=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),o&&B.setState("value",o.getAttribute(v))}function Z(e){let t=G(),n=null==t?void 0:t.closest(h),r;for(;n&&!r;)r=null==(n=e>0?function(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}(n,h):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,h))?void 0:n.querySelector(g);r?B.setState("value",r.getAttribute(v)):X(e)}let Q=()=>J(Y().length-1),ee=e=>{e.preventDefault(),e.metaKey?Q():e.altKey?Z(1):X(1)},et=e=>
24{e.preventDefault(),e.metaKey?J(0):e.altKey?Z(-1):X(-1)};return u.createElement(c.sG.div,{ref:t,tabIndex:-1,...A,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=A.onKeyDown)||t.call(A,e);let n=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||n))switch(e.key){case"n":case"j":R&&e.ctrlKey&&ee(e);break;case"ArrowDown":ee(e);break;case"p":case"k":R&&e.ctrlKey&&et(e);break;case"ArrowUp":et(e);break;case"Home":e.preventDefault(),J(0);break;case"End":e.preventDefault(),Q();break;case"Enter":{e.preventDefault();let t=G();if(t){let e=new Event(y);t.dispatchEvent(e)}}}}},u.createElement("label",{"cmdk-label":"",htmlFor:$.inputId,id:$.labelId,style:H},s),z(e,e=>u.createElement(k.Provider,{value:B},u.createElement(w.Provider,{value:$},e))))}),M=u.forwardRef((e,t)=>{var n,r;let i=(0,d.B)(),o=u.useRef(null),l=u.useContext(S),a=x(),s=L(e),h=null!=(r=null==(n=s.current)?void 0:n.forceMount)?r:null==l?void 0:l.forceMount;I(()=>{if(!h)return a.item(i,null==l?void 0:l.id)},[h]);let p=j(i,o,[e.value,e.children,o],e.keywords),m=C(),g=_(e=>e.value&&e.value===p.current),v=_(e=>!!h||!1===a.filter()||!e.search||e.filtered.items.get(i)>0);function b(){var e,t;w(),null==(t=(e=s.current).onSelect)||t.call(e,p.current)}function w(){m.setState("value",p.current,!0)}if(u.useEffect(()=>{let t=o.current;if(!(!t||e.disabled))return t.addEventListener(y,b),()=>t.removeEventListener(y,b)},[v,e.onSelect,e.disabled]),!v)return null;let{disabled:k,value:E,onSelect:M,forceMount:T,keywords:R,...A}=e;return u.createElement(c.sG.div,{ref:(0,f.t)(o,t),...A,id:i,"cmdk-item":"",role:"option","aria-disabled":!!k,"aria-selected":!!g,"data-disabled":!!k,"data-selected":!!g,onPointerMove:k||a.getDisablePointerSelection()?void 0:w,onClick:k?void 0:b},e.children)}),T=u.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:i,...o}=e,l=(0,d.B)(),a=u.useRef(null),s=u.useRef(null),h=(0,d.B)(),p=x(),m=_(e=>!!i||!1===p.filter()||!e.search||e.filtered.groups.has(l));I(()=>p.group(l),[]),j(l,a,[e.value,e.heading,s]);let g=u.useMemo(()=>({id:l,forceMount:i}),[i]);return u.createElement(c.sG.div,{ref:(0,f.t)(a,t),...o,"cmdk-group":"",role:"presentation",hidden:!m||void 0},n&&u.createElement("div",{ref:s,"cmdk-group-heading":"","aria-hidden":!0,id:h},n),z(e,e=>u.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?h:void 0},u.createElement(S.Provider,{value:g},e))))}),R=u.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,i=u.useRef(null),o=_(e=>!e.search);return n||o?u.createElement(c.sG.div,{ref:(0,f.t)(i,t),...r,"cmdk-separator":"",role:"separator"}):null}),A=u.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,i=null!=e.value,o=C(),l=_(e=>e.search),a=_(e=>e.selectedItemId),s=x();return u.useEffect(()=>{null!=e.value&&o.setState("search",e.value)},[e.value]),u.createElement(c.sG.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":s.listId,"aria-labelledby":s.labelId,"aria-activedescendant":a,id:s.inputId,type:"text",value:i?e.value:l,onChange:e=>{i||o.setState("search",e.target.value),null==n||n(e.target.value)}})}),O=u.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...i}=e,o=u.useRef(null),l=u.useRef(null),a=_(e=>e.selectedItemId),s=x();return u.useEffect(()=>{if(l.current&&o.current){let e=l.current,t=o.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.offsetHeight;t.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),u.createElement(c.sG.div,{ref:(0,f.t)(o,t),...i,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":a,"aria-label":r,id:s.listId},z(e,e=>u.createElement("div",{ref:(0,f.t)(l,s.listInnerRef),"cmdk-list-sizer":""},e)))}),N=u.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:o,container:l,...a}=e;return u.createElement(s.bL,{open:n,onOpenChange:r},u.createElement(s.ZL,{container:l},u.createElement(s.hJ,{"cmdk-overlay":"",className:i}),u.createElement(s.UC,{"aria-label":e.label,"cmdk-dialog":"",className:o},u.createElement(E,{ref:t,...a}))))}),P=Object.assign(E,{List:O,Item:M,Input:A,Group:T,Separator:R,Dialog:N,Empty:u.forwardRef((e,t)=>
24_(e=>0===e.filtered.count)?u.createElement(c.sG.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:u.forwardRef((e,t)=>{let{progress:n,children:r,label:i="Loading...",...o}=e;return u.createElement(c.sG.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},z(e,e=>u.createElement("div",{"aria-hidden":!0},e)))})});function L(e){let t=u.useRef(e);return I(()=>{t.current=e}),t}var I="undefined"==typeof window?u.useEffect:u.useLayoutEffect;function D(e){let t=u.useRef();return void 0===t.current&&(t.current=e()),t}function _(e){let t=C(),n=()=>e(t.snapshot());return u.useSyncExternalStore(t.subscribe,n,n)}function j(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=u.useRef(),o=x();return I(()=>{var l;let a=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():i.current}})(),s=r.map(e=>e.trim());o.value(e,a,s),null==(l=t.current)||l.setAttribute(v,a),i.current=a}),i}var F=()=>{let[e,t]=u.useState(),n=D(()=>new Map);return I(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function z(e,t){let n,{asChild:r,children:i}=e;return r&&u.isValidElement(i)?u.cloneElement("function"==typeof(n=i.type)?n(i.props):"render"in n?n.render(i.props):i,{ref:i.ref},t(i.props.children)):t(i)}var H={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},59075:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(90953).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},59249:(e,t,n)=>{"use strict";n.d(t,{bL:()=>k,zi:()=>C});var r=n(38848),i=n(4529),o=n(25300),l=n(89486),a=n(67821),s=n(60117),u=n(48949),c=n(5461),d=n(38476),f="Switch",[h,p]=(0,l.A)(f),[m,g]=h(f),y=r.forwardRef((e,t)=>{let{__scopeSwitch:n,name:l,checked:s,defaultChecked:u,required:h,disabled:p,value:g="on",onCheckedChange:y,form:v,...b}=e,[k,C]=r.useState(null),S=(0,o.s)(t,e=>C(e)),E=r.useRef(!1),M=!k||v||!!k.closest("form"),[T,R]=(0,a.i)({prop:s,defaultProp:null!=u&&u,onChange:y,caller:f});return(0,d.jsxs)(m,{scope:n,checked:T,disabled:p,children:[(0,d.jsx)(c.sG.button,{type:"button",role:"switch","aria-checked":T,"aria-required":h,"data-state":x(T),"data-disabled":p?"":void 0,disabled:p,value:g,...b,ref:S,onClick:(0,i.mK)(e.onClick,e=>{R(e=>!e),M&&(E.current=e.isPropagationStopped(),E.current||e.stopPropagation())})}),M&&(0,d.jsx)(w,{control:k,bubbles:!E.current,name:l,value:g,checked:T,required:h,disabled:p,form:v,style:{transform:"translateX(-100%)"}})]})});y.displayName=f;var v="SwitchThumb",b=r.forwardRef((e,t)=>{let{__scopeSwitch:n,...r}=e,i=g(v,n);return(0,d.jsx)(c.sG.span,{"data-state":x(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:t})});b.displayName=v;var w=r.forwardRef((e,t)=>{let{__scopeSwitch:n,control:i,checked:l,bubbles:a=!0,...c}=e,f=r.useRef(null),h=(0,o.s)(f,t),p=(0,s.Z)(l),m=(0,u.X)(i);return r.useEffect(()=>{let e=f.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(p!==l&&t){let n=new Event("click",{bubbles:a});t.call(e,l),e.dispatchEvent(n)}},[p,l,a]),(0,d.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:l,...c,tabIndex:-1,ref:h,style:{...c.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function x(e){return e?"checked":"unchecked"}w.displayName="SwitchBubbleInput";var k=y,C=b},59908:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(90953).A)("ChevronsLeft",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]])},60092:(e,t,n)=>{"use strict";n.d(t,{default:()=>i.a});var r=n(84067),i=n.n(r)},60117:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(38848);function i(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}}
24,60939:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return o},formatWithValidation:function(){return a},urlObjectKeys:function(){return l}});let r=n(5142)._(n(25617)),i=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:n}=e,o=e.protocol||"",l=e.pathname||"",a=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:n&&(u=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(r.urlQueryToSearchParams(s)));let c=e.search||s&&"?"+s||"";return o&&!o.endsWith(":")&&(o+=":"),e.slashes||(!o||i.test(o))&&!1!==u?(u="//"+(u||""),l&&"/"!==l[0]&&(l="/"+l)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),c&&"?"!==c[0]&&(c="?"+c),""+o+u+(l=l.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+a}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function a(e){return o(e)}},61643:(e,t,n)=>{"use strict";n.d(t,{D:()=>i});var r=n(10276);function i(e,t){let n=(0,r.a)(e,null==t?void 0:t.in);return n.setHours(23,59,59,999),n}},61947:(e,t,n)=>{"use strict";n.d(t,{Fq:()=>a,JJ:()=>o,MP:()=>u,Nm:()=>l,Pv:()=>s,Tt:()=>r,rR:()=>i});let r=1e3,i=6e4,o=36e5,l=864e5,a=6048e5,s=2592e6,u=31536e6},62094:(e,t,n)=>{"use strict";n.d(t,{$Z:()=>B,VR:()=>J,gu:()=>et,NV:()=>Q,hG:()=>G,er:()=>V});var r=n(38848),i=n(91505),o=n(48226),l=n(38476),a=n(8760);let{getOwnPropertyNames:s,getOwnPropertySymbols:u}=Object,{hasOwnProperty:c}=Object.prototype;function d(e,t){return function(n,r,i){return e(n,r,i)&&t(n,r,i)}}function f(e){return function(t,n,r){if(!t||!n||"object"!=typeof t||"object"!=typeof n)return e(t,n,r);let{cache:i}=r,o=i.get(t),l=i.get(n);if(o&&l)return o===n&&l===t;i.set(t,n),i.set(n,t);let a=e(t,n,r);return i.delete(t),i.delete(n),a}}function h(e){return s(e).concat(u(e))}let p=Object.hasOwn||((e,t)=>c.call(e,t));function m(e,t){return e===t||!e&&!t&&e!=e&&t!=t}let{getOwnPropertyDescriptor:g,keys:y}=Object;function v(e,t){return e.byteLength===t.byteLength&&O(new Uint8Array(e),new Uint8Array(t))}function b(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function w(e,t){return e.byteLength===t.byteLength&&O(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function x(e,t){return m(e.getTime(),t.getTime())}function k(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function C(e,t){return e===t}function S(e,t,n){let r,i,o=e.size;if(o!==t.size)return!1;if(!o)return!0;let l=Array(o),a=e.entries(),s=0;for(;(r=a.next())&&!r.done;){let o=t.entries(),a=!1,u=0;for(;(i=o.next())&&!i.done;){if(l[u]){u++;continue}let o=r.value,c=i.value;if(n.equals(o[0],c[0],s,u,e,t,n)&&n.equals(o[1],c[1],o[0],c[0],e,t,n)){a=l[u]=!0;break}u++}if(!a)return!1;s++}return!0}function E(e,t,n){let r=y(e),i=r.length;if(y(t).length!==i)return!1;for(;i-- >0;)if(!P(e,t,n,r[i]))return!1;return!0}function M(e,t,n){let r,i,o,l=h(e),a=l.length;if(h(t).length!==a)return!1;for(;a-- >0;)if(!P(e,t,n,r=l[a])||(i=g(e,r),o=g(t,r),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable)))return!1;return!0}function T(e,t){return m(e.valueOf(),t.valueOf())}function R(e,t){return e.source===t.source&&e.flags===t.flags}function A(e,t,n){let r,i,o=e.size;if(o!==t.size)return!1;if(!o)return!0;let l=Array(o),a=e.values();for(;(r=a.next())&&!r.done;){let o=t.values(),a=!1,s=0;for(;(i=o.next())&&!i.done;){if(!l[s]&&n.equals(r.value,i.value,r.value,i.value,e,t,n)){a=l[s]=!0;break}s++}if(!a)return!1}return!0}function O(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function N(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function P(e,t,n,r){return("_owner"===r||"__o"===r||"__v"===r)&&(!!e.$$typeof||!!t.$$typeof)||p(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}let L={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array
24]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},I=Object.prototype.toString,D=_();function _(e={}){let{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,o=function({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:o,areMapsEqual:l,areNumbersEqual:a,areObjectsEqual:s,arePrimitiveWrappersEqual:u,areRegExpsEqual:c,areSetsEqual:d,areTypedArraysEqual:f,areUrlsEqual:h,unknownTagComparators:p}){return function(m,g,y){if(m===g)return!0;if(null==m||null==g)return!1;let v=typeof m;if(v!==typeof g)return!1;if("object"!==v)return"number"===v?a(m,g,y):"function"===v&&o(m,g,y);let b=m.constructor;if(b!==g.constructor)return!1;if(b===Object)return s(m,g,y);if(Array.isArray(m))return t(m,g,y);if(b===Date)return r(m,g,y);if(b===RegExp)return c(m,g,y);if(b===Map)return l(m,g,y);if(b===Set)return d(m,g,y);let w=I.call(m);if("[object Date]"===w)return r(m,g,y);if("[object RegExp]"===w)return c(m,g,y);if("[object Map]"===w)return l(m,g,y);if("[object Set]"===w)return d(m,g,y);if("[object Object]"===w)return"function"!=typeof m.then&&"function"!=typeof g.then&&s(m,g,y);if("[object URL]"===w)return h(m,g,y);if("[object Error]"===w)return i(m,g,y);if("[object Arguments]"===w)return s(m,g,y);if(L[w])return f(m,g,y);if("[object ArrayBuffer]"===w)return e(m,g,y);if("[object DataView]"===w)return n(m,g,y);if("[object Boolean]"===w||"[object Number]"===w||"[object String]"===w)return u(m,g,y);if(p){let e=p[w];if(!e){let t=null!=m?m[Symbol.toStringTag]:void 0;t&&(e=p[t])}if(e)return e(m,g,y)}return!1}}(function({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:v,areArraysEqual:n?M:b,areDataViewsEqual:w,areDatesEqual:x,areErrorsEqual:k,areFunctionsEqual:C,areMapsEqual:n?d(S,M):S,areNumbersEqual:m,areObjectsEqual:n?M:E,arePrimitiveWrappersEqual:T,areRegExpsEqual:R,areSetsEqual:n?d(A,M):A,areTypedArraysEqual:n?d(O,M):O,areUrlsEqual:N,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){let e=f(r.areArraysEqual),t=f(r.areMapsEqual),n=f(r.areObjectsEqual),i=f(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:n,areSetsEqual:i})}return r}(e)),l=n?n(o):function(e,t,n,r,i,l,a){return o(e,t,a)};return function({circular:e,comparator:t,createState:n,equals:r,strict:i}){if(n)return function(o,l){let{cache:a=e?new WeakMap:void 0,meta:s}=n();return t(o,l,{cache:a,equals:r,meta:s,strict:i})};if(e)return function(e,n){return t(e,n,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};let o={cache:void 0,equals:r,meta:void 0,strict:i};return function(e,n){return t(e,n,o)}}({circular:t,comparator:o,createState:r,equals:l,strict:i})}_({strict:!0}),_({circular:!0}),_({circular:!0,strict:!0}),_({createInternalComparator:()=>m}),_({strict:!0,createInternalComparator:()=>m}),_({circular:!0,createInternalComparator:()=>m}),_({circular:!0,createInternalComparator:()=>m,strict:!0});var j=n(3328),F=({contentComponent:e})=>{let t=(0,o.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getServerSnapshot);return(0,l.jsx)(l.Fragment,{children:Object.values(t)})},z=class extends r.Component{constructor(e){var t;super(e),this.editorContentRef=r.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!(null==(t=e.editor)?void 0:t.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var e;let t=this.props.editor;if(t&&!t.isDestroyed&&(null==(e=t.view.dom)?void 0:e.parentNode)){if(t.contentComponent)return;let e=this.editorContentRef.current;e.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:e}),t.contentComponent=function(){let e=new Set,t={};return{subscribe:t=>(e.add(t),()=>{e.delete(t)}),getSnapshot:()=>t,getServerSnapshot:()=>t,setRenderer(n,r){t={...t,[n]:i.createPortal(r.reactElement,r.element,n)},e.forEach(e=>e())},removeRenderer(n){let r={...t};delete r[n],t=r,e.forEach(e=>e())}}}(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=t.contentComponent.subscribe(()=>{this.setState(e=>e.hasContentComponentInitialized?e:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),t.createNodeViews(),this.initialized=!0}}componentWillUnmount(){var e;let t=this.props.editor;if(t){this.initialized=!1,t.isDestroyed||t.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),t.contentComponent=null;try{if(!(null==(e=t.view.dom)?void 0:e.parentNode))return;let n=document.createElement("div");n.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:n})}catch{}}}render(){let{editor:e,innerRef:t,...n}=this.props;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{ref:((...e)=>t=>
24{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})})(t,this.editorContentRef),...n}),(null==e?void 0:e.contentComponent)&&(0,l.jsx)(F,{contentComponent:e.contentComponent})]})}},H=(0,r.forwardRef)((e,t)=>{let n=r.useMemo(()=>Math.floor(0xffffffff*Math.random()).toString(),[e.editor]);return r.createElement(z,{key:n,innerRef:t,...e})}),B=r.memo(H),$="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,U=class{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber||(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){let e=()=>{this.transactionNumber+=1,this.subscribers.forEach(e=>e())},t=this.editor;return t.on("transaction",e),()=>{t.off("transaction",e)}}}};function V(e){var t;let[n]=(0,r.useState)(()=>new U(e.editor)),i=(0,j.useSyncExternalStoreWithSelector)(n.subscribe,n.getSnapshot,n.getServerSnapshot,e.selector,null!=(t=e.equalityFn)?t:D);return $(()=>n.watch(e.editor),[e.editor,n]),(0,r.useDebugValue)(i),i}var W="undefined"==typeof window,q=W||!!("undefined"!=typeof window&&window.next),K=class e{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(e=>e())}getInitialEditor(){if(void 0===this.options.current.immediatelyRender)return W||q?null:this.createEditor();return this.options.current.immediatelyRender,this.options.current.immediatelyRender?this.createEditor():null}createEditor(){let e={...this.options.current,onBeforeCreate:(...e)=>{var t,n;return null==(n=(t=this.options.current).onBeforeCreate)?void 0:n.call(t,...e)},onBlur:(...e)=>{var t,n;return null==(n=(t=this.options.current).onBlur)?void 0:n.call(t,...e)},onCreate:(...e)=>{var t,n;return null==(n=(t=this.options.current).onCreate)?void 0:n.call(t,...e)},onDestroy:(...e)=>{var t,n;return null==(n=(t=this.options.current).onDestroy)?void 0:n.call(t,...e)},onFocus:(...e)=>{var t,n;return null==(n=(t=this.options.current).onFocus)?void 0:n.call(t,...e)},onSelectionUpdate:(...e)=>{var t,n;return null==(n=(t=this.options.current).onSelectionUpdate)?void 0:n.call(t,...e)},onTransaction:(...e)=>{var t,n;return null==(n=(t=this.options.current).onTransaction)?void 0:n.call(t,...e)},onUpdate:(...e)=>{var t,n;return null==(n=(t=this.options.current).onUpdate)?void 0:n.call(t,...e)},onContentError:(...e)=>{var t,n;return null==(n=(t=this.options.current).onContentError)?void 0:n.call(t,...e)},onDrop:(...e)=>{var t,n;return null==(n=(t=this.options.current).onDrop)?void 0:n.call(t,...e)},onPaste:(...e)=>{var t,n;return null==(n=(t=this.options.current).onPaste)?void 0:n.call(t,...e)},onDelete:(...e)=>{var t,n;return null==(n=(t=this.options.current).onDelete)?void 0:n.call(t,...e)}};return new a.KE(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,t){return Object.keys(e).every(n=>!!["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(n)||("extensions"===n&&e.extensions&&t.extensions?e.extensions.length===t.extensions.length&&e.extensions.every((e,n)=>{var r;return e===(null==(r=t.extensions)?void 0:r[n])}):e[n]===t[n]))}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&0===t.length?e.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){
24if(null===this.previousDeps){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((t,n)=>t===e[n]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){let e=this.instanceId,t=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){t&&t.setOptions(this.options.current);return}t&&!t.isDestroyed&&(t.destroy(),this.instanceId===e&&this.setEditor(null))},1)}};function G(e={},t=[]){let n=(0,r.useRef)(e);n.current=e;let[i]=(0,r.useState)(()=>new K(n)),l=(0,o.useSyncExternalStore)(i.subscribe,i.getEditor,i.getServerSnapshot);return(0,r.useDebugValue)(l),(0,r.useEffect)(i.onRender(t)),V({editor:l,selector:({transactionNumber:t})=>!1===e.shouldRerenderOnTransaction||void 0===e.shouldRerenderOnTransaction?null:e.immediatelyRender&&0===t?0:t+1}),l}(0,r.createContext)({editor:null}).Consumer;var Y=(0,r.createContext)({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),J=r.forwardRef((e,t)=>{let{onDragStart:n}=(0,r.useContext)(Y),i=e.as||"div";return(0,l.jsx)(i,{...e,ref:t,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...e.style}})});function X(e){return!!("function"==typeof e&&e.prototype&&e.prototype.isReactComponent)}function Z(e){return!!("object"==typeof e&&e.$$typeof&&("Symbol(react.forward_ref)"===e.$$typeof.toString()||"react.forward_ref"===e.$$typeof.description))}var Q=class{constructor(e,{editor:t,props:n={},as:r="div",className:o=""}){this.ref=null,this.destroyed=!1,this.id=Math.floor(0xffffffff*Math.random()).toString(),this.component=e,this.editor=t,this.props=n,this.element=document.createElement(r),this.element.classList.add("react-renderer"),o&&this.element.classList.add(...o.split(" ")),this.editor.isInitialized?(0,i.flushSync)(()=>{this.render()}):queueMicrotask(()=>{this.destroyed||this.render()})}render(){var e;if(this.destroyed)return;let t=this.component,n=this.props,i=this.editor,o=function(){try{if(r.version)return parseInt(r.version.split(".")[0],10)>=19}catch{}return!1}(),a=function(e){if(X(e)||Z(e))return!0;if("object"==typeof e&&e.$$typeof&&("Symbol(react.memo)"===e.$$typeof.toString()||"react.memo"===e.$$typeof.description)){let t=e.type;if(t)return X(t)||Z(t)}return!1}(t),s={...n};s.ref&&!(o||a)&&delete s.ref,!s.ref&&(o||a)&&(s.ref=e=>{this.ref=e}),this.reactElement=(0,l.jsx)(t,{...s}),null==(e=null==i?void 0:i.contentComponent)||e.setRenderer(this.id,this)}updateProps(e={}){this.destroyed||(this.props={...this.props,...e},this.render())}destroy(){var e;this.destroyed=!0;let t=this.editor;null==(e=null==t?void 0:t.contentComponent)||e.removeRenderer(this.id);try{this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}catch{}}updateAttributes(e){Object.keys(e).forEach(t=>{this.element.setAttribute(t,e[t])})}};r.createContext({markViewContentRef:()=>{}}),a.Db;var ee=class extends a.Yv{constructor(e,t,n){if(super(e,t,n),this.selectionRafId=null,!this.node.isLeaf){this.options.contentDOMElementTag?this.contentDOMElement=document.createElement(this.options.contentDOMElementTag):this.contentDOMElement=document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement.dataset.nodeViewContentReact="",this.contentDOMElement.dataset.nodeViewWrapper="",this.contentDOMElement.style.whiteSpace="inherit";let e=this.dom.querySelector("[data-node-view-content]");if(!e)return;e.appendChild(this.contentDOMElement)}}mount(){let e={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,extension:this.extension,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(e={})=>this.updateAttributes(e),deleteNode:()=>this.deleteNode(),ref:(0,r.createRef)()};if(!this.component.displayName){let e;this.component.displayName=(e=this.extension.name).charAt(0).toUpperCase()+e.substring(1)}let t={onDragStart:this.onDragStart.bind(this),nodeViewContentRef:e=>{e&&this.contentDOMElement&&e.firstChild!==this.contentDOMElement&&(e.hasAttribute("data-node-view-wrapper")&&e.removeAttribute("data-node-view-wrapper"),e.appendChild(this.contentDOMElement))}},n=this.component,i=(0,r.memo)(e=>(0,l.jsx)(Y.Provider,{value:t,children:(0,r.createElement)(n,e)}));i.displayName="ReactNodeView";let o=this.node.isInline?"span":"div";this.options.as&&(o=this.options.as);let{className:a=""}=this.options;this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.renderer=new Q(i,{editor:this.editor,props:e,as:o,className:`node-${this.node.type.n
24ame} ${a}`.trim()}),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.updateElementAttributes()}get dom(){var e;if(this.renderer.element.firstElementChild&&!(null==(e=this.renderer.element.firstElementChild)?void 0:e.hasAttribute("data-node-view-wrapper")))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.contentDOMElement}handleSelectionUpdate(){this.selectionRafId&&(cancelAnimationFrame(this.selectionRafId),this.selectionRafId=null),this.selectionRafId=requestAnimationFrame(()=>{this.selectionRafId=null;let{from:e,to:t}=this.editor.state.selection,n=this.getPos();if("number"==typeof n)if(e<=n&&t>=n+this.node.nodeSize){if(this.renderer.props.selected)return;this.selectNode()}else{if(!this.renderer.props.selected)return;this.deselectNode()}})}update(e,t,n){let r=e=>{this.renderer.updateProps(e),"function"==typeof this.options.attrs&&this.updateElementAttributes()};if(e.type!==this.node.type)return!1;if("function"==typeof this.options.update){let i=this.node,o=this.decorations,l=this.innerDecorations;return this.node=e,this.decorations=t,this.innerDecorations=n,this.options.update({oldNode:i,oldDecorations:o,newNode:e,newDecorations:t,oldInnerDecorations:l,innerDecorations:n,updateProps:()=>r({node:e,decorations:t,innerDecorations:n})})}return e===this.node&&this.decorations===t&&this.innerDecorations===n||(this.node=e,this.decorations=t,this.innerDecorations=n,r({node:e,decorations:t,innerDecorations:n}),!0)}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element.classList.remove("ProseMirror-selectednode")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate),this.contentDOMElement=null,this.selectionRafId&&(cancelAnimationFrame(this.selectionRafId),this.selectionRafId=null)}updateElementAttributes(){if(this.options.attrs){let e={};if("function"==typeof this.options.attrs){let t=this.editor.extensionManager.attributes,n=(0,a.zU)(this.node,t);e=this.options.attrs({node:this.node,HTMLAttributes:n})}else e=this.options.attrs;this.renderer.updateAttributes(e)}}};function et(e,t){return n=>n.editor.contentComponent?new ee(e,n,t):{}}},62849:(e,t,n)=>{"use strict";n.d(t,{I6:()=>eF,JY:()=>eC,ZV:()=>e_,cL:()=>eD,qw:()=>ej});let r="numeric",i="ascii",o="alpha",l="asciinumeric",a="alphanumeric",s="domain",u="emoji",c="whitespace";function d(e,t,n){for(let c in t[r]&&(t[l]=!0,t[a]=!0),t[i]&&(t[l]=!0,t[o]=!0),t[l]&&(t[a]=!0),t[o]&&(t[a]=!0),t[a]&&(t[s]=!0),t[u]&&(t[s]=!0),t){let t=(c in n||(n[c]=[]),n[c]);0>t.indexOf(e)&&t.push(e)}}function f(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}f.groups={},f.prototype={accepts(){return!!this.t},go(e){let t=this.j[e];if(t)return t;for(let t=0;t<this.jr.length;t++){let n=this.jr[t][0],r=this.jr[t][1];if(r&&n.test(e))return r}return this.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let i=0;i<e.length;i++)this.tt(e[i],t,n,r)},tr(e,t,n,r){let i;return r=r||f.groups,t&&t.j?i=t:(i=new f(t),n&&r&&d(t,n,r)),this.jr.push([e,i]),i},ts(e,t,n,r){let i=this,o=e.length;if(!o)return i;for(let t=0;t<o-1;t++)i=i.tt(e[t]);return i.tt(e[o-1],t,n,r)},tt(e,t,n,r){if(r=r||f.groups,t&&t.j)return this.j[e]=t,t;let i,o=this.go(e);return o?(Object.assign((i=new f).j,o.j),i.jr.push.apply(i.jr,o.jr),i.jd=o.jd,i.t=o.t):i=new f,t&&(r&&(i.t&&"string"==typeof i.t?d(t,Object.assign(function(e,t){let n={};for(let r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}(i.t,r),n),r):n&&d(t,n,r)),i.t=t),this.j[e]=i,i}};let h=(e,t,n,r,i)=>e.ta(t,n,r,i),p=(e,t,n,r,i)=>e.tr(t,n,r,i),m=(e,t,n,r,i)=>e.ts(t,n,r,i),g=(e,t,n,r,i)=>e.tt(t,n,r,i),y="WORD",v="UWORD",b="ASCIINUMERICAL",w="ALPHANUMERICAL",x="LOCALHOST",k="UTLD",C="SCHEME",S="SLASH_SCHEME",E="OPENBRACE",M="CLOSEBRACE",T="OPENBRACKET",R="CLOSEBRACKET",A="OPENPAREN",O="CLOSEPAREN",N="OPENANGLEBRACKET",P="CLOSEANGLEBRACKET",L="FULLWIDTHLEFTPAREN",I="FULLWIDTHRIGHTPAREN",D="LEFTCORNERBRACKET",_="RIGHTCORNERBRACKET",j="LEFTWHITECORNERBRACKET",F="RIGHTWHITECORNERBRACKET",z="FULLWIDTHLESSTHAN",H="FULLWIDTHGREATERTHAN",B="AMPERSAND",$="APOSTROPHE",U="ASTERISK",V="BACKSLASH",W="BACKTICK",q="CARET",K="COLON",G="COMMA",Y="DOLLAR",J="EQUALS",X="EXCLAMATION",Z="HYPHEN",Q="PERCENT",ee="PIPE",et="PLUS",en="POUND",er="QUERY",ei="QUOTE",eo="FULLWIDTHMIDDLEDOT",el="SEMI",ea="SLASH",es="TILDE",eu="UNDERSCORE",ec="EMOJI";var ed=Object.freeze({__proto__:null,ALPHANUMERICAL:w,AMPERSAND:B,APOSTROPHE:$,ASCIINUMERICAL:b,ASTERISK:U,AT:"AT",BACKSLASH:V,BACKTICK:W,CARET:q,CLOSEANGLEBRACKET:P,CLOSEBRACE:M,CLOSEBRACKET:R,CLOSEPAREN:O,COLON:K,COMMA:G,DOLLAR:Y,DOT:"DOT",EMOJI:ec,EQUALS:J,EXCLAMATION:X,FULLWIDTHGREATERTHAN:H,FULLWIDTHLEFTPAREN:L,FULLWIDTHLESSTHAN:z,FULLWIDTHMIDDLEDOT:eo,FULLWIDTHRIGHTPAREN:I,HYPHEN:Z,LEFTCORNERBRACKET:D,LEFTWHITECORNERBRACKET:j,LOCALHOST:x,NL:"NL",NUM:"NUM",OPENANGLEBRACKET:N,OPENBRACE:E,OPENBRACKET:T,OPENPAREN:A,PERCENT:Q,PIPE:ee,PLUS:et,POUND:en,QUERY:er,QUOTE:ei,RIGHTCORNERBRACKET:_,RIGHTWHITECORNERBRACKET:F,SCHEME:C,SEMI:el,SLASH:ea,SLASH_SCHEME:S,SYM:"SYM",TILDE:es,TLD:"TLD",UNDERSCORE:eu,UTLD:k,UWORD:v,WORD:y,WS:"WS"});let ef=/[a-z]/,eh=/\p{L}/u,ep=/\p{Emoji}/u,em=/\d/,eg=/\s/,ey=null,ev=null;function eb(e,t){let n=function(e){let t=[],n=e.length,r=0;for(;r<n;){let i,o=e.charCodeAt(r),l=o<55296||o>56319||r+1===n||(i=e.charCodeAt(r+1))<56320||i>57343?e[r]:e.slice(r,r+2);t.push(l),r+=l.length}return t}(t.replace(/[A-Z]/g,e=>e.toLowerCase())),r=n.length,i=[],o=0,l=0;for(;l<r;){let a=e,s=null,u=0,c=null,d=-1,f=-1;for(;l<r&&(s=a.go(n[l]));)(a=s).accepts()?(d=0,f=0,c=a):d>=0&&(d+=n[l].length,f++),u+=n[l].length,o+=n[l].length,l++;o-=d,l-=f,u-=d,i.push({t:c.t,v:t.slice(o-u,o),s:o-u,e:o})}return i}function ew(e,t,n,r,i){let o,l=t.length;for(let n=0;n<l-1;n++){let l=t[n];e.j[l]?o=e.j[l]:((o=new f(r)).jr=i.slice(),e.j[l]=o),e=o}return(o=new f(n)).jr=i.slice(),e.j[t[l-1]]=o,o}function ex(e){let t=[],n=[],r=0;for(;r<e.length;){let i=0;for(;"0123456789".indexOf(e[r+i])>=0;)i++;if(i>0){t.push(n.join(""));for(let t=parseInt(e.substring(r,r+i),10);t>0;t--)n.pop();r+=i}else n.push(e[r]),r++}return t}let ek={defaultProtocol:"http",events:null,format:eS,formatHref:eS,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function eC(e,t=null){let n=Object.assign({},ek);e&&(n=Object.assign(n,e instanceof eC?e.o:e));let r=n.ignoreTags,i=[];for(let e=0;e<r.length;e++)i.push(r[e].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=i}function eS(e){return e}function eE(e,t){this.t="token",this.v=e,this.tk=t}
24function eM(e,t){class n extends eE{constructor(t,n){super(t,n),this.t=e}}for(let e in t)n.prototype[e]=t[e];return n.t=e,n}eC.prototype={o:ek,ignoreTags:[],defaultRender:e=>e,check(e){return this.get("validate",e.toString(),e)},get(e,t,n){let r=null!=t,i=this.o[e];return i&&("object"==typeof i?"function"==typeof(i=n.t in i?i[n.t]:ek[e])&&r&&(i=i(t,n)):"function"==typeof i&&r&&(i=i(t,n.t,n))),i},getObj(e,t,n){let r=this.o[e];return"function"==typeof r&&null!=t&&(r=r(t,n.t,n)),r},render(e){let t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}},eE.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"â¦":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=ek.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){let t=this.toHref(e.get("defaultProtocol")),n=e.get("formatHref",t,this),r=e.get("tagName",t,this),i=this.toFormattedString(e),o={},l=e.get("className",t,this),a=e.get("target",t,this),s=e.get("rel",t,this),u=e.getObj("attributes",t,this),c=e.getObj("events",t,this);return o.href=n,l&&(o.class=l),a&&(o.target=a),s&&(o.rel=s),u&&Object.assign(o,u),{tagName:r,attributes:o,content:i,eventListeners:c}}};let eT=eM("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),eR=eM("text"),eA=eM("nl"),eO=eM("url",{isLink:!0,toHref(e=ek.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==x&&e[1].t===K}}),eN=e=>new f(e);function eP(e,t,n){let r=n[0].s,i=n[n.length-1].e;return new e(t.slice(r,i),n)}let eL="undefined"!=typeof console&&console&&console.warn||(()=>{}),eI={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function eD(){return f.groups={},eI.scanner=null,eI.parser=null,eI.tokenQueue=[],eI.pluginQueue=[],eI.customSchemes=[],eI.initialized=!1,eI}function e_(e,t=!1){if(eI.initialized&&eL(`linkifyjs: already initialized - will not register custom scheme "${e}" until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw Error(`linkifyjs: incorrect scheme format. 251. Must only contain digits, lowercase ASCII letters or "-" 262. Cannot start or end with "-" 273. "-" cannot repeat`);eI.customSchemes.push([e,t])}function ej(e){return eI.initialized||function(){eI.scanner=function(e=[]){let t={};f.groups=t;let n=new f;null==ey&&(ey=ex("aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2
27ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xf6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2")),null==ev&&(ev=ex("ελ1Ï
2бг1ел3деÑи4еÑ2каÑолик6ом3мÐ
27ºÐ´2он1Ñква6онлайн5Ñг3ÑÑÑ2Ñ2ÑайÑ3Ñб3ÑкÑ3Òаз3Õ°Õ¡Õµ3×שר××5×§××3Ø§Ø¨ÙØ¸Ø¨Ù5راÙ
ÙÙ5ÙØ§Ø±Ø¯Ù4Ø¨ØØ±ÙÙ5جزائر5Ø³Ø¹ÙØ¯ÙØ©6عÙÙØ§Ù5Ù
غرب5Ù
ارات5ÛØ±Ø§Ù5بارت2زار4ÙØªÙ3ھارت5تÙÙØ³4Ø³ÙØ¯Ø§Ù3Ø±ÙØ©5Ø´Ø¨ÙØ©4عراÙ2ب2Ù
اÙ4ÙÙØ³Ø·ÙÙ6ÙØ·Ø±3ÙØ§Ø«ÙÙÙÙ6ÙÙ
3Ù
صر2ÙÙØ³Ùا5ÙØ±ÙتاÙÙØ§7ÙØ¹4ÙÙ
راÙ5پاکستاÙ7ÚØ§Ø±Øª4à¤à¥à¤®3नà¥à¤3à¤à¤¾à¤°à¤¤0मà¥3à¥à¤¤5सà¤à¤à¤ न5বাà¦à¦²à¦¾5à¦à¦¾à¦°à¦¤2ৰত4à¨à¨¾à¨°à¨¤4àªàª¾àª°àª¤4à¬à¬¾à¬°à¬¤4à®à®¨à¯à®¤à®¿à®¯à®¾6லà®à¯à®à¯6à®à®¿à®à¯à®à®ªà¯à®ªà¯à®°à¯11à°à°¾à°°à°¤à±5à²à²¾à²°à²¤4à´à´¾à´°à´¤à´5à¶½à¶à¶à·4à¸à¸à¸¡3à¹à¸à¸¢3ລາວ3áá2ã¿ããª3ã¢ãã¾ã³4ã¯ã©ã¦ã4ã°ã¼ã°ã«4ã³ã 2ã¹ãã¢3ã»ã¼ã«3ãã¡ãã·ã§ã³6ãã¤ã³ã4ä¸ç2ä¸ä¿¡1å½1å1æç½3äºé©¬é3ä¼ä¸2ä½å±±2ä¿¡æ¯2å¥åº·2å
«å¦2å
¬å¸1ç2å°æ¹¾1ç£2åå1åº1æ 2åé0大é
åº5å¨çº¿2大æ¿2天主æ3娱ä¹2å®¶é»2广ä¸2å¾®å2æ
å2æç±ä½ 3ææº2æè2æ¿å¡1åº2æ°å å¡2é»2æ¶å°2æ¸ç±2æºæ2淡马é¡3游æ2æ¾³é2ç¹ç2ç§»å¨2ç»ç»æºæ4ç½å1åº1ç«1ç»2èé2è°·æ2è´ç©2é販2éå¢2é»è¨çç§4é£å©æµ¦3é£å2é¤å
2馿 ¼éæ3港2ë·ë·1ì»´2ì¼ì±2íêµ2")),g(n,"'",$),g(n,"{",E),g(n,"}",M),g(n,"[",T),g(n,"]",R),g(n,"(",A),g(n,")",O),g(n,"<",N),g(n,">",P),g(n,"ï¼",L),g(n,"ï¼",I),g(n,"ã",D),g(n,"ã",_),g(n,"ã",j),g(n,"ã",F),g(n,"ï¼",z),g(n,"ï¼",H),g(n,"&",B),g(n,"*",U),g(n,"@","AT"),g(n,"`",W),g(n,"^",q),g(n,":",K),g(n,",",G),g(n,"$",Y),g(n,".","DOT"),g(n,"=",J),g(n,"!",X),g(n,"-",Z),g(n,"%",Q),g(n,"|",ee),g(n,"+",et),g(n,"#",en),g(n,"?",er),g(n,'"',ei),g(n,"/",ea),g(n,";",el),g(n,"~",es),g(n,"_",eu),g(n,"\\",V),g(n,"ã»",eo);let h=p(n,em,"NUM",{[r]:!0});p(h,em,h);let eb=p(h,ef,b,{[l]:!0}),ek=p(h,eh,w,{[a]:!0}),eC=p(n,ef,y,{[i]:!0});p(eC,em,eb),p(eC,ef,eC),p(eb,em,eb),p(eb,ef,eb);let eS=p(n,eh,v,{[o]:!0});p(eS,ef),p(eS,em,ek),p(eS,eh,eS),p(ek,em,ek),p(ek,ef),p(ek,eh,ek);let eE=g(n,"\n","NL",{[c]:!0}),eM=g(n,"\r","WS",{[c]:!0}),eT=p(n,eg,"WS",{[c]:!0});g(n,"",eT),g(eM,"\n",eE),g(eM,"",eT),p(eM,eg,eT),g(eT,"\r"),g(eT,"\n"),p(eT,eg,eT),g(eT,"",eT);let eR=p(n,ep,ec,{[u]:!0});g(eR,"#"),p(eR,ep,eR),g(eR,"ï¸",eR);let eA=g(eR,"â");g(eA,"#"),p(eA,ep,eR);let eO=[[ef,eC],[em,eb]],eN=[[ef,null],[eh,eS],[em,ek]];for(let e=0;e<ey.length;e++)ew(n,ey[e],"TLD",y,eO);for(let e=0;e<ev.length;e++)ew(n,ev[e],k,v,eN);d("TLD",{tld:!0,ascii:!0},t),d(k,{utld:!0,alpha:!0},t),ew(n,"file",C,y,eO),ew(n,"mailto",C,y,eO),ew(n,"http",S,y,eO),ew(n,"https",S,y,eO),ew(n,"ftp",S,y,eO),ew(n,"ftps",S,y,eO),d(C,{scheme:!0,ascii:!0},t),d(S,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let t=0;t<e.length;t++){let o=e[t][0],a=e[t][1]?{scheme:!0}:{slashscheme:!0};o.indexOf("-")>=0?a[s]=!0:ef.test(o)?em.test(o)?a[l]=!0:a[i]=!0:a[r]=!0,m(n,o,o,a)}return m(n,"localhost",x,{ascii:!0}),n.jd=new f("SYM"),{start:n,tokens:Object.assign({groups:t},ed)}}(eI.customSchemes);for(let e=0;e<eI.tokenQueue.length;e++)eI.tokenQueue[e][1]({scanner:eI.scanner});eI.parser=function({groups:e}){let t=e.domain.concat([B,U,"AT",V,W,q,Y,J,Z,"NUM",Q,ee,et,en,ea,"SYM",es,eu]),n=[$,K,G,"DOT",X,Q,er,ei,el,N,P,E,M,R,T,A,O,L,I,D,_,j,F,z,H],r=[B,$,U,V,W,q,Y,J,Z,E,M,Q,ee,et,en,er,ea,"SYM",es,eu],i=eN(),o=g(i,es);h(o,r,o),h(o,e.domain,o);let l=eN(),a=eN(),s=eN();h(i,e.domain,l),h(i,e.scheme,a),h(i,e.slashscheme,s),h(l,r,o),h(l,e.domain,l);let u=g(l,"AT");g(o,"AT",u),g(a,"AT",u),g(s,"AT",u);let c=g(o,"DOT");h(c,r,o),h(c,e.domain,o);let d=eN();h(u,e.domain,d),h(d,e.domain,d);let f=g(d,"DOT");h(f,e.domain,d);let p=eN(eT);h(f,e.tld,p),h(f,e.utld,p),g(u,x,p);let m=g(d,Z);g(m,Z,m),h(m,e.domain,d),h(p,e.domain,d),g(p,"DOT",f),g(p,Z,m),h(g(p,K),e.numeric,eT);let y=g(l,Z),v=g(l,"DOT");g(y,Z,y),h(y,e.domain,l),h(v,r,o),h(v,e.domain,l);let b=eN(eO);h(v,e.tld,b),h(v,e.utld,b),h(b,e.domain,l),h(b,r,o),g(b,"DOT",v),g(b,Z,y),g(b,"AT",u);let w=g(b,K),k=eN(eO);h(w,e.numeric,k);let C=eN(eO),S=eN();h(C,t,C),h(C,n,S),h(S,t,C),h(S,n,S),g(b,ea,C),g(k,ea,C);let eo=g(a,K),ec=g(s,K),ef=g(ec,ea),eh=g(ef,ea);h(a,e.domain,l),g(a,"DOT",v),g(a,Z,y),h(s,e.domain,l),g(s,"DOT",v),g(s,Z,y),h(eo,e.domain,C),g(eo,ea,C),g(eo,er,C),h(eh,e.domain,C),h(eh,t,C),g(eh,ea,C);let ep=[[E,M],[T,R],[A,O],[N,P],[L,I],[D,_],[j,F],[z,H]];for(let e=0;e<ep.length;e++){let[r,i]=ep[e],o=g(C,r);g(S,r,o),g(o,i,C);let l=eN(eO);h(o,t,l);let a=eN();h(o,n),h(l,t,l),h(l,n,a),h(a,t,l),h(a,n,a),g(l,i,C),g(a,i,C)}return g(i,x,b),g(i,"NL",eA),{start:i,tokens:ed}}(eI.scanner.tokens);for(let e=0;e<eI.pluginQueue.length;e++)eI.pluginQueue[e][1]({scanner:eI.scanner,parser:eI.parser});eI.initialized=!0}(),function(e,t,n){let r=n.length,i=0,o=[],l=[];for(;i<r;){let a=e,s=null,u=null,c=0,d=null,f=-1;for(;i<r&&!(s=a.go(n[i].t));)l.push(n[i++]);for(;i<r&&(u=s||a.go(n[i].t));)s=null,(a=u).accepts()?(f=0,d=a):f>=0&&f++,i++,c++;if(f<0)(i-=c)<r&&(l.push(n[i]),i++);else{l.length>0&&(o.push(eP(eR,t,l)),l=[]),i-=f,c-=f;let e=d.t,r=n.slice(i-c,i);o.push(eP(e,t,r))}}return l.length>0&&o.push(eP(eR,t,l)),o}(eI.parser.start,e,eb(eI.scanner.start,e))}function eF(e,t=null,n=null){if(t&&"object"==typeof t){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}let r=new eC(n),i=ej(e),o=[];for(let e=0;e<i.length;e++){let n=i[e];n.isLink&&(!t||n.t===t)&&r.check(n)&&o.push(n.toFormattedObject(r))}return o}ej.scan=eb},63365:(e,t,n)=>{"use strict";
27Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),n(93124);let r=n(4510),i=n(15266),o=["-moz-initial","fill","none","scale-down",void 0];function l(e){return void 0!==e.default}function a(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s(e,t){var n,s;let u,c,d,{src:f,sizes:h,unoptimized:p=!1,priority:m=!1,loading:g,className:y,quality:v,width:b,height:w,fill:x=!1,style:k,overrideSrc:C,onLoad:S,onLoadingComplete:E,placeholder:M="empty",blurDataURL:T,fetchPriority:R,decoding:A="async",layout:O,objectFit:N,objectPosition:P,lazyBoundary:L,lazyRoot:I,...D}=e,{imgConf:_,showAltText:j,blurComplete:F,defaultLoader:z}=t,H=_||i.imageConfigDefault;if("allSizes"in H)u=H;else{let e=[...H.deviceSizes,...H.imageSizes].sort((e,t)=>e-t),t=H.deviceSizes.sort((e,t)=>e-t),r=null==(n=H.qualities)?void 0:n.sort((e,t)=>e-t);u={...H,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===z)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let B=D.loader||z;delete D.loader,delete D.srcSet;let $="__next_img_default"in B;if($){if("custom"===u.loader)throw Object.defineProperty(Error('Image with src "'+f+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=B;B=t=>{let{config:n,...r}=t;return e(r)}}if(O){"fill"===O&&(x=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[O];e&&(k={...k,...e});let t={responsive:"100vw",fill:"100vw"}[O];t&&!h&&(h=t)}let U="",V=a(b),W=a(w);if((s=f)&&"object"==typeof s&&(l(s)||void 0!==s.src)){let e=l(f)?f.default:f;if(!e.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(c=e.blurWidth,d=e.blurHeight,T=T||e.blurDataURL,U=e.src,!x)if(V||W){if(V&&!W){let t=V/e.width;W=Math.round(e.height*t)}else if(!V&&W){let t=W/e.height;V=Math.round(e.width*t)}}else V=e.width,W=e.height}let q=!m&&("lazy"===g||void 0===g);(!(f="string"==typeof f?f:U)||f.startsWith("data:")||f.startsWith("blob:"))&&(p=!0,q=!1),u.unoptimized&&(p=!0),$&&!u.dangerouslyAllowSVG&&f.split("?",1)[0].endsWith(".svg")&&(p=!0);let K=a(v),G=Object.assign(x?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:N,objectPosition:P}:{},j?{}:{color:"transparent"},k),Y=F||"empty"===M?null:"blur"===M?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:V,heightInt:W,blurWidth:c,blurHeight:d,blurDataURL:T||"",objectFit:G.objectFit})+'")':'url("'+M+'")',J=o.includes(G.objectFit)?"fill"===G.objectFit?"100% 100%":"cover":G.objectFit,X=Y?{backgroundSize:J,backgroundPosition:G.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Y}:{},Z=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:o,sizes:l,loader:a}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:s,kind:u}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,l),c=s.length-1;return{sizes:l||"w"!==u?l:"100vw",srcSet:s.map((e,r)=>a({config:t,src:n,quality:o,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:a({config:t,src:n,quality:o,width:s[c]})}}({config:u,src:f,unoptimized:p,width:V,quality:K,sizes:h,loader:B});return{props:{...D,loading:q?"lazy":g,fetchPriority:R,width:V,height:W,decoding:A,className:y,style:{...G,...X},sizes:Z.sizes,srcSet:Z.srcSet,src:C||Z.src},meta:{unoptimized:p,priority:m,placeholder:M,fill:x}}}},63763:(e,t,n)=>{"use strict";n.d(t,{q:()=>i});let r={};function i(){return r}},64299:(e,t)=>
27{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var l=i.apply(null,n);l&&e.push(l)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var a in n)r.call(n,a)&&n[a]&&e.push(a)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=(function(){return i}).apply(t,[]))||(e.exports=n)}()},64448:(e,t,n)=>{var r=n(16270),i=Object.prototype,o=i.hasOwnProperty,l=i.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var i=l.call(e);return r&&(t?e[a]=n:delete e[a]),i}},65016:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(90953).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},65518:(e,t,n)=>{"use strict";n.d(t,{k:()=>o});var r=n(63763),i=n(10276);function o(e,t){var n,o,l,a,s,u,c,d;let f=(0,r.q)(),h=null!=(d=null!=(c=null!=(u=null!=(s=null==t?void 0:t.weekStartsOn)?s:null==t||null==(o=t.locale)||null==(n=o.options)?void 0:n.weekStartsOn)?u:f.weekStartsOn)?c:null==(a=f.locale)||null==(l=a.options)?void 0:l.weekStartsOn)?d:0,p=(0,i.a)(e,null==t?void 0:t.in),m=p.getDay();return p.setDate(p.getDate()-(7*(m<h)+m-h)),p.setHours(0,0,0,0),p}},67299:(e,t,n)=>{"use strict";n.d(t,{TW:()=>a,UA:()=>o,dA:()=>l});var r=n(88050),i=n(61947);let o=(0,r.f)(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.rR)/i.Nm,e=>e.getDate()-1);o.range;let l=(0,r.f)(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/i.Nm,e=>e.getUTCDate()-1);l.range;let a=(0,r.f)(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/i.Nm,e=>Math.floor(e/i.Nm));a.range},67639:(e,t,n)=>{var r=n(51539),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},67821:(e,t,n)=>{"use strict";n.d(t,{i:()=>a});var r,i=n(38848),o=n(57495),l=(r||(r=n.t(i,2)))[" useInsertionEffect ".trim().toString()]||o.N;function a({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,a,s]=function({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),o=i.useRef(n),a=i.useRef(t);return l(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}({defaultProp:t,onChange:n}),u=void 0!==e,c=u?e:o;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,r])}return[c,i.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&s.current?.(n)}else a(t)},[u,e,a,s])]}Symbol("RADIX:SYNC_STATE")},68430:(e,t,n)=>{"use strict";n.d(t,{O:()=>o});var r=n(42419),i=n(25332);function o(e,t,n){let o=(0,i.b)(e,t)/1e3;return(0,r.u)(null==n?void 0:n.roundingMethod)(o)}},68601:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});let r=/[ \t\n\f\r]/g;function i(e){return"object"==typeof e?"text"===e.type&&o(e.value):o(e)}function o(e){return""===e.replace(r,"")}},69310:(e,t,n)=>{"use strict";n.d(t,{e:()=>i});var r=n(94427);function i(e,t,n){return(0,r.P)(e,12*t,n)}},69781:(e,t,n)=>{"use strict";n.d(t,{Mz:()=>V,UC:()=>K,ZL:()=>q,bL:()=>U,l9:()=>W});var r=n(38848),i=n(4529),o=n(25300),l=n(89486),a=n(76937),s=n(14367),u=n(88310),c=n(85857),d=n(90501),f=n(36358),h=n(94205),p=n(5461),m=n(31054),g=n(67821),y=n(11005),v=n(3035),b=n(38476),w="Popover",[x,k]=(0,l.A)(w,[d.Bk]),C=(0,d.Bk)(),[S,E]=x(w),M=e=>{let{__scopePopover:t,children:n,open:i,defaultOpen:o,onOpenChange:l,modal:a=!1}=e,s=C(t),u=r.useRef(null),[f,h]=r.useState(!1),[p,m]=(0,g.i)({prop:i,defaultProp:null!=o&&o,onChange:l,caller:w});return(0,b.jsx)(d.bL,{...s,children:(0,b.jsx)(S,{scope:t,contentId:(0,c.B)(),triggerRef:u,open:p,onOpenChange:m,onOpenToggle:r.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:f,onCustomAnchorAdd:r.useCallback(()=>h(!0),[]),onCustomAnchorRemove:r.useCallback(()=>h(!1),[]),modal:a,children:n})})};M.displayName=w;var T="PopoverAnchor",R=r.forwardRef((e,t)=>
27{let{__scopePopover:n,...i}=e,o=E(T,n),l=C(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=o;return r.useEffect(()=>(a(),()=>s()),[a,s]),(0,b.jsx)(d.Mz,{...l,...i,ref:t})});R.displayName=T;var A="PopoverTrigger",O=r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,l=E(A,n),a=C(n),s=(0,o.s)(t,l.triggerRef),u=(0,b.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":$(l.open),...r,ref:s,onClick:(0,i.mK)(e.onClick,l.onOpenToggle)});return l.hasCustomAnchor?u:(0,b.jsx)(d.Mz,{asChild:!0,...a,children:u})});O.displayName=A;var N="PopoverPortal",[P,L]=x(N,{forceMount:void 0}),I=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=E(N,t);return(0,b.jsx)(P,{scope:t,forceMount:n,children:(0,b.jsx)(h.C,{present:n||o.open,children:(0,b.jsx)(f.Z,{asChild:!0,container:i,children:r})})})};I.displayName=N;var D="PopoverContent",_=r.forwardRef((e,t)=>{let n=L(D,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=E(D,e.__scopePopover);return(0,b.jsx)(h.C,{present:r||o.open,children:o.modal?(0,b.jsx)(F,{...i,ref:t}):(0,b.jsx)(z,{...i,ref:t})})});_.displayName=D;var j=(0,m.TL)("PopoverContent.RemoveScroll"),F=r.forwardRef((e,t)=>{let n=E(D,e.__scopePopover),l=r.useRef(null),a=(0,o.s)(t,l),s=r.useRef(!1);return r.useEffect(()=>{let e=l.current;if(e)return(0,y.Eq)(e)},[]),(0,b.jsx)(v.A,{as:j,allowPinchZoom:!0,children:(0,b.jsx)(H,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.mK)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),s.current||null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,i.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;s.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),z=r.forwardRef((e,t)=>{let n=E(D,e.__scopePopover),i=r.useRef(!1),o=r.useRef(!1);return(0,b.jsx)(H,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,l;null==(r=e.onCloseAutoFocus)||r.call(e,t),t.defaultPrevented||(i.current||null==(l=n.triggerRef.current)||l.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{var r,l;null==(r=e.onInteractOutside)||r.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let a=t.target;(null==(l=n.triggerRef.current)?void 0:l.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),H=r.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:h,onInteractOutside:p,...m}=e,g=E(D,n),y=C(n);return(0,s.Oh)(),(0,b.jsx)(u.n,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,b.jsx)(a.qW,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:p,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:h,onDismiss:()=>g.onOpenChange(!1),children:(0,b.jsx)(d.UC,{"data-state":$(g.open),role:"dialog",id:g.contentId,...y,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),B="PopoverClose";function $(e){return e?"open":"closed"}r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=E(B,n);return(0,b.jsx)(p.sG.button,{type:"button",...r,ref:t,onClick:(0,i.mK)(e.onClick,()=>o.onOpenChange(!1))})}).displayName=B,r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=C(n);return(0,b.jsx)(d.i3,{...i,...r,ref:t})}).displayName="PopoverArrow";var U=M,V=R,W=O,q=I,K=_},69906:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});var r=n(58698);function i(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&r._P in e?e[r._P](t):e instanceof Date?new e.constructor(t):new Date(t)}},72376:(e,t,n)=>{"use strict";n.d(t,{$f:()=>O,G2:()=>b,I$:()=>S,Im:()=>P,Qv:()=>s,Sd:()=>y,Z1:()=>E,_G:()=>c,_e:()=>h,bh:()=>w,eB:()=>u,eT:()=>g,ec:()=>N,hy:()=>T,ic:()=>l,iz:()=>M,pC:()=>k,yY:()=>x,y_:()=>L});var r=n(10761),i=n(7964),o=n(4033);let l=(e,t)=>
27!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function a(e,t){let{$cursor:n}=e.selection;return n&&(t?t.endOfTextblock("backward",e):!(n.parentOffset>0))?n:null}let s=(e,t,n)=>{let l=a(e,n);if(!l)return!1;let s=p(l);if(!s){let n=l.blockRange(),i=n&&(0,r.jP)(n);return null!=i&&(t&&t(e.tr.lift(n,i).scrollIntoView()),!0)}let u=s.nodeBefore;if(R(e,s,t,-1))return!0;if(0==l.parent.content.size&&(f(u,"end")||o.nh.isSelectable(u)))for(let n=l.depth;;n--){let a=(0,r.$L)(e.doc,l.before(n),l.after(n),i.Ji.empty);if(a&&a.slice.size<a.to-a.from){if(t){let n=e.tr.step(a);n.setSelection(f(u,"end")?o.LN.findFrom(n.doc.resolve(n.mapping.map(s.pos,-1)),-1):o.nh.create(n.doc,s.pos-u.nodeSize)),t(n.scrollIntoView())}return!0}if(1==n||l.node(n-1).childCount>1)break}return!!u.isAtom&&s.depth==l.depth-1&&(t&&t(e.tr.delete(s.pos-u.nodeSize,s.pos).scrollIntoView()),!0)},u=(e,t,n)=>{let r=a(e,n);if(!r)return!1;let i=p(r);return!!i&&d(e,i,t)},c=(e,t,n)=>{let r=m(e,n);if(!r)return!1;let i=v(r);return!!i&&d(e,i,t)};function d(e,t,n){let l=t.nodeBefore,a=t.pos-1;for(;!l.isTextblock;a--){if(l.type.spec.isolating)return!1;let e=l.lastChild;if(!e)return!1;l=e}let s=t.nodeAfter,u=t.pos+1;for(;!s.isTextblock;u++){if(s.type.spec.isolating)return!1;let e=s.firstChild;if(!e)return!1;s=e}let c=(0,r.$L)(e.doc,a,u,i.Ji.empty);if(!c||c.from!=a||c instanceof r.Ln&&c.slice.size>=u-a)return!1;if(n){let t=e.tr.step(c);t.setSelection(o.U3.create(t.doc,a)),n(t.scrollIntoView())}return!0}function f(e,t,n=!1){for(let r=e;r;r="start"==t?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&1!=r.childCount)break}return!1}let h=(e,t,n)=>{let{$head:r,empty:i}=e.selection,l=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;l=p(r)}let a=l&&l.nodeBefore;return!!a&&!!o.nh.isSelectable(a)&&(t&&t(e.tr.setSelection(o.nh.create(e.doc,l.pos-a.nodeSize)).scrollIntoView()),!0)};function p(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function m(e,t){let{$cursor:n}=e.selection;return n&&(t?t.endOfTextblock("forward",e):!(n.parentOffset<n.parent.content.size))?n:null}let g=(e,t,n)=>{let l=m(e,n);if(!l)return!1;let a=v(l);if(!a)return!1;let s=a.nodeAfter;if(R(e,a,t,1))return!0;if(0==l.parent.content.size&&(f(s,"start")||o.nh.isSelectable(s))){let n=(0,r.$L)(e.doc,l.before(),l.after(),i.Ji.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(f(s,"start")?o.LN.findFrom(r.doc.resolve(r.mapping.map(a.pos)),1):o.nh.create(r.doc,r.mapping.map(a.pos))),t(r.scrollIntoView())}return!0}}return!!s.isAtom&&a.depth==l.depth-1&&(t&&t(e.tr.delete(a.pos,a.pos+s.nodeSize).scrollIntoView()),!0)},y=(e,t,n)=>{let{$head:r,empty:i}=e.selection,l=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)return!1;l=v(r)}let a=l&&l.nodeAfter;return!!a&&!!o.nh.isSelectable(a)&&(t&&t(e.tr.setSelection(o.nh.create(e.doc,l.pos)).scrollIntoView()),!0)};function v(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}let b=(e,t)=>{let n=e.selection,i=n instanceof o.nh,l;if(i){if(n.node.isTextblock||!(0,r.n9)(e.doc,n.from))return!1;l=n.from}else if(null==(l=(0,r.N0)(e.doc,n.from,-1)))return!1;if(t){let n=e.tr.join(l);i&&n.setSelection(o.nh.create(n.doc,l-e.doc.resolve(l).nodeBefore.nodeSize)),t(n.scrollIntoView())}return!0},w=(e,t)=>{let n=e.selection,i;if(n instanceof o.nh){if(n.node.isTextblock||!(0,r.n9)(e.doc,n.to))return!1;i=n.to}else if(null==(i=(0,r.N0)(e.doc,n.to,1)))return!1;return t&&t(e.tr.join(i).scrollIntoView()),!0},x=(e,t)=>{let{$from:n,$to:i}=e.selection,o=n.blockRange(i),l=o&&(0,r.jP)(o);return null!=l&&(t&&t(e.tr.lift(o,l).scrollIntoView()),!0)},k=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!!n.parent.type.spec.code&&!!n.sameParent(r)&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function C(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}let S=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),l=n.indexAfter(-1),a=C(i.contentMatchAt(l));if(!a||!i.canReplaceWith(l,l,a))return!1;if(t){let r=n.after(),i=e.tr.replaceWith(r,r,a.createAndFill());i.setSelection(o.LN.near(i.doc.resolve(r),1)),t(i.scrollIntoView())}return!0},E=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof o.i5||r.parent.inlineContent||i.parent.inlineContent)return!1;let l=C(i.parent.contentMatchAt(i.indexAfter()));if(!l||!l.isTextblock)return!1;if(t){let n=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,a=e.tr.insert(n,l.createAndFill());a.setSelection(o.U3.create(a.doc,n+1)),t(a.scrollIntoView())}return!0},M=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let i=n.before();if((0,r.zy)(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}let i=n.blockRange(),o=i&&(0,r.jP)(i);return null!=o&&(t&&t(e.tr.lift(i,o).scrollIntoView()),!0)},T=(e,t)=>
27{let{$from:n,to:r}=e.selection,i,l=n.sharedDepth(r);return 0!=l&&(i=n.before(l),t&&t(e.tr.setSelection(o.nh.create(e.doc,i))),!0)};function R(e,t,n,l){let a,s,u,c=t.nodeBefore,d=t.nodeAfter,h,p,m=c.type.spec.isolating||d.type.spec.isolating;if(!m&&(a=t.nodeBefore,s=t.nodeAfter,u=t.index(),a&&s&&a.type.compatibleContent(s.type)&&(!a.content.size&&t.parent.canReplace(u-1,u)?(n&&n(e.tr.delete(t.pos-a.nodeSize,t.pos).scrollIntoView()),!0):!!t.parent.canReplace(u,u+1)&&!!(s.isTextblock||(0,r.n9)(e.doc,t.pos))&&(n&&n(e.tr.join(t.pos).scrollIntoView()),!0))))return!0;let g=!m&&t.parent.canReplace(t.index(),t.index()+1);if(g&&(h=(p=c.contentMatchAt(c.childCount)).findWrapping(d.type))&&p.matchType(h[0]||d.type).validEnd){if(n){let o=t.pos+d.nodeSize,l=i.FK.empty;for(let e=h.length-1;e>=0;e--)l=i.FK.from(h[e].create(null,l));l=i.FK.from(c.copy(l));let a=e.tr.step(new r.Wg(t.pos-1,o,t.pos,o,new i.Ji(l,1,0),h.length,!0)),s=a.doc.resolve(o+2*h.length);s.nodeAfter&&s.nodeAfter.type==c.type&&(0,r.n9)(a.doc,s.pos)&&a.join(s.pos),n(a.scrollIntoView())}return!0}let y=d.type.spec.isolating||l>0&&m?null:o.LN.findFrom(t,1),v=y&&y.$from.blockRange(y.$to),b=v&&(0,r.jP)(v);if(null!=b&&b>=t.depth)return n&&n(e.tr.lift(v,b).scrollIntoView()),!0;if(g&&f(d,"start",!0)&&f(c,"end")){let o=c,l=[];for(;l.push(o),!o.isTextblock;)o=o.lastChild;let a=d,s=1;for(;!a.isTextblock;a=a.firstChild)s++;if(o.canReplace(o.childCount,o.childCount,a.content)){if(n){let o=i.FK.empty;for(let e=l.length-1;e>=0;e--)o=i.FK.from(l[e].copy(o));n(e.tr.step(new r.Wg(t.pos-l.length,t.pos+d.nodeSize,t.pos+s,t.pos+d.nodeSize-s,new i.Ji(o,l.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function A(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,l=i.depth;for(;i.node(l).isInline;){if(!l)return!1;l--}return!!i.node(l).isTextblock&&(n&&n(t.tr.setSelection(o.U3.create(t.doc,e<0?i.start(l):i.end(l)))),!0)}}let O=A(-1),N=A(1);function P(e,t=null){return function(n,i){let{$from:o,$to:l}=n.selection,a=o.blockRange(l),s=a&&(0,r.oM)(a,e,t);return!!s&&(i&&i(n.tr.wrap(a,s).scrollIntoView()),!0)}}function L(e,t=null){return function(n,r){let i=!1;for(let r=0;r<n.selection.ranges.length&&!i;r++){let{$from:{pos:o},$to:{pos:l}}=n.selection.ranges[r];n.doc.nodesBetween(o,l,(r,o)=>{if(i)return!1;if(!(!r.isTextblock||r.hasMarkup(e,t)))if(r.type==e)i=!0;else{let t=n.doc.resolve(o),r=t.index();i=t.parent.canReplaceWith(r,r+1,e)}})}if(!i)return!1;if(r){let i=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:o},$to:{pos:l}}=n.selection.ranges[r];i.setBlockType(o,l,e,t)}r(i.scrollIntoView())}return!0}}function I(...e){return function(t,n,r){for(let i=0;i<e.length;i++)if(e[i](t,n,r))return!0;return!1}}let D=I(l,s,h),_=I(l,g,y),j={Enter:I(k,E,M,(e,t)=>{let{$from:n,$to:i}=e.selection;if(e.selection instanceof o.nh&&e.selection.node.isBlock)return!!n.parentOffset&&!!(0,r.zy)(e.doc,n.pos)&&(t&&t(e.tr.split(n.pos).scrollIntoView()),!0);if(!n.depth)return!1;let l=[],a,s,u=!1,c=!1;for(let e=n.depth;;e--){if(n.node(e).isBlock){let t;u=n.end(e)==n.pos+(n.depth-e),c=n.start(e)==n.pos-(n.depth-e),s=C(n.node(e-1).contentMatchAt(n.indexAfter(e-1)));l.unshift(t||(u&&s?{type:s}:null)),a=e;break}if(1==e)return!1;l.unshift(null)}let d=e.tr;(e.selection instanceof o.U3||e.selection instanceof o.i5)&&d.deleteSelection();let f=d.mapping.map(n.pos),h=(0,r.zy)(d.doc,f,l.length,l);if(h||(l[0]=s?{type:s}:null,h=(0,r.zy)(d.doc,f,l.length,l)),!h)return!1;if(d.split(f,l.length,l),!u&&c&&n.node(a).type!=s){let e=d.mapping.map(n.before(a)),t=d.doc.resolve(e);s&&n.node(a-1).canReplaceWith(t.index(),t.index()+1,s)&&d.setNodeMarkup(d.mapping.map(n.before(a)),s)}return t&&t(d.scrollIntoView()),!0}),"Mod-Enter":S,Backspace:D,"Mod-Backspace":D,"Shift-Backspace":D,Delete:_,"Mod-Delete":_,"Mod-a":(e,t)=>(t&&t(e.tr.setSelection(new o.i5(e.doc))),!0)},F={"Ctrl-h":j.Backspace,"Alt-Backspace":j["Mod-Backspace"],"Ctrl-d":j.Delete,"Ctrl-Alt-Backspace":j["Mod-Delete"],"Alt-Delete":j["Mod-Delete"],"Alt-d":j["Mod-Delete"],"Ctrl-a":O,"Ctrl-e":N};for(let e in j)F[e]=j[e];"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&os.platform&&os.platform()},72454:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},73617:(e,t,n)=>{"use strict";n.d(t,{UU:()=>l});let r=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,i=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,o={};function l(e,t){return((t||o).jsx?i:r).test(e)}}
27,74233:(e,t,n)=>{"use strict";var r=n(72454);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,l){if(l!==r){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},74800:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var r=n(10276);function i(e,t){let n=(0,r.a)(e,null==t?void 0:t.in);return n.setHours(0,0,0,0),n}},75581:(e,t,n)=>{"use strict";n.d(t,{z:()=>i});var r=n(10276);function i(e,t){let n=(0,r.a)(e)-(0,r.a)(t);return n<0?-1:n>0?1:n}},75669:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(34279),i=n.n(r),o=n(38848),l=["children","id","from","to","x1","y1","x2","y2","fromOffset","fromOpacity","toOffset","toOpacity","rotate","transform","vertical"];function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e){var t=e.children,n=e.id,r=e.from,i=e.to,s=e.x1,u=e.y1,c=e.x2,d=e.y2,f=e.fromOffset,h=e.fromOpacity,p=e.toOffset,m=e.toOpacity,g=e.rotate,y=e.transform,v=e.vertical,b=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,l),w=s,x=c,k=u,C=d;return void 0!==v&&!v||w||x||k||C||(w="0",x="0",k="0",C="1"),o.createElement("defs",null,o.createElement("linearGradient",a({id:n,x1:w,y1:k,x2:x,y2:C,gradientTransform:g?"rotate("+g+")":y},b),!!t&&t,!t&&o.createElement("stop",{offset:void 0===f?"0%":f,stopColor:r,stopOpacity:void 0===h?1:h}),!t&&o.createElement("stop",{offset:void 0===p?"100%":p,stopColor:i,stopOpacity:void 0===m?1:m})))}s.propTypes={id:i().string.isRequired,from:i().string,to:i().string,x1:i().oneOfType([i().string,i().number]),x2:i().oneOfType([i().string,i().number]),y1:i().oneOfType([i().string,i().number]),y2:i().oneOfType([i().string,i().number]),fromOffset:i().oneOfType([i().string,i().number]),fromOpacity:i().oneOfType([i().string,i().number]),toOffset:i().oneOfType([i().string,i().number]),toOpacity:i().oneOfType([i().string,i().number]),rotate:i().oneOfType([i().string,i().number]),transform:i().string,children:i().node,vertical:i().bool}},75673:(e,t,n)=>{"use strict";var r=n(9445);n.o(r,"notFound")&&n.d(t,{notFound:function(){return r.notFound}}),n.o(r,"redirect")&&n.d(t,{redirect:function(){return r.redirect}}),n.o(r,"useParams")&&n.d(t,{useParams:function(){return r.useParams}}),n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}}),n.o(r,"useSelectedLayoutSegment")&&n.d(t,{useSelectedLayoutSegment:function(){return r.useSelectedLayoutSegment}})},76334:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return o}});let r=n(71685)._(n(38848)),i=n(15266),o=r.default.createContext(i.imageConfigDefault)},76937:(e,t,n)=>{"use strict";n.d(t,{qW:()=>f});var r,i=n(38848),o=n(4529),l=n(5461),a=n(25300),s=n(15381),u=n(38476),c="dismissableLayer.update",d=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=i.forwardRef((e,t)=>{var n,f;let{disableOutsidePointerEvents:m=!1,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:v,onInteractOutside:b,onDismiss:w,...x}=e,k=i.useContext(d),[C,S]=i.useState(null),E=null!=(f=null==C?void 0:C.ownerDocument)?f:null==(n=globalThis)?void 0:n.document,[,M]=i.useState({}),T=(0,a.s)(t,e=>S(e)),R=Array.from(k.layers),[A]=[...k.layersWithOutsidePointerEventsDisabled].slice(-1),O=R.indexOf(A),N=C?R.indexOf(C):-1,P=k.layersWithOutsidePointerEventsDisabled.size>0,L=N>=O,I=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,s.c)(e),o=i.useRef(!1),l=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>
27{if(e.target&&!o.current){let t=function(){p("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",l.current),l.current=t,n.addEventListener("click",l.current,{once:!0})):t()}else n.removeEventListener("click",l.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...k.branches].some(e=>e.contains(t));L&&!n&&(null==y||y(e),null==b||b(e),e.defaultPrevented||null==w||w())},E),D=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,s.c)(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!o.current&&p("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;![...k.branches].some(e=>e.contains(t))&&(null==v||v(e),null==b||b(e),e.defaultPrevented||null==w||w())},E);return!function(e,t=globalThis?.document){let n=(0,s.c)(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{N===k.layers.size-1&&(null==g||g(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))},E),i.useEffect(()=>{if(C)return m&&(0===k.layersWithOutsidePointerEventsDisabled.size&&(r=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),k.layersWithOutsidePointerEventsDisabled.add(C)),k.layers.add(C),h(),()=>{m&&1===k.layersWithOutsidePointerEventsDisabled.size&&(E.body.style.pointerEvents=r)}},[C,E,m,k]),i.useEffect(()=>()=>{C&&(k.layers.delete(C),k.layersWithOutsidePointerEventsDisabled.delete(C),h())},[C,k]),i.useEffect(()=>{let e=()=>M({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(l.sG.div,{...x,ref:T,style:{pointerEvents:P?L?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.mK)(e.onFocusCapture,D.onFocusCapture),onBlurCapture:(0,o.mK)(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:(0,o.mK)(e.onPointerDownCapture,I.onPointerDownCapture)})});function h(){let e=new CustomEvent(c);document.dispatchEvent(e)}function p(e,t,n,r){let{discrete:i}=r,o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),i?(0,l.hO)(o,a):o.dispatchEvent(a)}f.displayName="DismissableLayer",i.forwardRef((e,t)=>{let n=i.useContext(d),r=i.useRef(null),o=(0,a.s)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,u.jsx)(l.sG.div,{...e,ref:o})}).displayName="DismissableLayerBranch"},77002:(e,t,n)=>{"use strict";var r=n(38848),i=n(48226),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},l=i.useSyncExternalStore,a=r.useRef,s=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var h=l(e,(d=u(function(){function e(e){if(!s){if(s=!0,l=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return a=t}return a=e}if(t=a,o(l,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(l=e,t):(l=e,a=n)}var l,a,s=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,r,i]))[0],d[1]);return s(function(){f.hasValue=!0,f.value=h},[h]),c(h),h}},77120:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});let r=function(e){var t,n;if(null==e)return o;if("function"==typeof e)return i(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=r(e[n]);return i(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,i(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,i(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function i(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function o(){return!0}}
27,78172:(e,t,n)=>{"use strict";n.d(t,{o:()=>ee}),n(38848),n(91505);var r,{entries:i,setPrototypeOf:o,isFrozen:l,getPrototypeOf:a,getOwnPropertyDescriptor:s}=Object,{freeze:u,seal:c,create:d}=Object,{apply:f,construct:h}="undefined"!=typeof Reflect&&Reflect;u||(u=function(e){return e}),c||(c=function(e){return e}),f||(f=function(e,t,n){return e.apply(t,n)}),h||(h=function(e,t){return new e(...t)});var p=M(Array.prototype.forEach),m=M(Array.prototype.pop),g=M(Array.prototype.push),y=M(String.prototype.toLowerCase),v=M(String.prototype.toString),b=M(String.prototype.match),w=M(String.prototype.replace),x=M(String.prototype.indexOf),k=M(String.prototype.trim),C=M(Object.prototype.hasOwnProperty),S=M(RegExp.prototype.test),E=(r=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return h(r,t)});function M(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return f(e,t,r)}}function T(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;o&&o(e,null);let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){let e=n(i);e!==i&&(l(t)||(t[r]=e),i=e)}e[i]=!0}return e}function R(e){let t=d(null);for(let[n,r]of i(e))C(e,n)&&(Array.isArray(r)?t[n]=function(e){for(let t=0;t<e.length;t++)C(e,t)||(e[t]=null);return e}(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=R(r):t[n]=r);return t}function A(e,t){for(;null!==e;){let n=s(e,t);if(n){if(n.get)return M(n.get);if("function"==typeof n.value)return M(n.value)}e=a(e)}return function(){return null}}var O=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),N=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),P=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),L=u(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),I=u(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),D=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),_=u(["#text"]),j=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
27spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),F=u(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),z=u(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),H=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=c(/\{\{[\w\W]*|[\w\W]*\}\}/gm),$=c(/<%[\w\W]*|[\w\W]*%>/gm),U=c(/\${[\w\W]*}/gm),V=c(/^data-[\-\w.\u00B7-\uFFFF]/),W=c(/^aria-[\-\w]+$/),q=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=c(/^(?:\w+script|data):/i),G=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y=c(/^html$/i),J=Object.freeze({__proto__:null,MUSTACHE_EXPR:B,ERB_EXPR:$,TMPLIT_EXPR:U,DATA_ATTR:V,ARIA_ATTR:W,IS_ALLOWED_URI:q,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:G,DOCTYPE_NAME:Y,CUSTOM_ELEMENT:c(/^[a-z][a-z\d]*(-[a-z\d]+)+$/i)}),X=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};!function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,n=t=>e(t);if(n.version="3.0.10",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;let{document:r}=t,o=r,l=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:c,Element:f,NodeFilter:h,NamedNodeMap:M=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:B,DOMParser:$,trustedTypes:U}=t,V=f.prototype,W=A(V,"cloneNode"),K=A(V,"nextSibling"),G=A(V,"childNodes"),Z=A(V,"parentNode");if("function"==typeof s){let e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let Q,ee="",{implementation:et,createNodeIterator:en,createDocumentFragment:er,getElementsByTagName:ei}=r,{importNode:eo}=o,el={};n.isSupported="function"==typeof i&&"function"==typeof Z&&et&&void 0!==et.createHTMLDocument;let{MUSTACHE_EXPR:ea,ERB_EXPR:es,TMPLIT_EXPR:eu,DATA_ATTR:ec,ARIA_ATTR:ed,IS_SCRIPT_OR_DATA:ef,ATTR_WHITESPACE:eh,CUSTOM_ELEMENT:ep}=J,{IS_ALLOWED_URI:em}=J,eg=null,ey=T({},[...O,...N,...P,...I,..._]),ev=null,eb=T({}
27,[...j,...F,...z,...H]),ew=Object.seal(d(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ex=null,ek=null,eC=!0,eS=!0,eE=!1,eM=!0,eT=!1,eR=!1,eA=!1,eO=!1,eN=!1,eP=!1,eL=!1,eI=!0,eD=!1,e_=!0,ej=!1,eF={},ez=null,eH=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),eB=null,e$=T({},["audio","video","img","source","image","track"]),eU=null,eV=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eW="http://www.w3.org/1998/Math/MathML",eq="http://www.w3.org/2000/svg",eK="http://www.w3.org/1999/xhtml",eG=eK,eY=!1,eJ=null,eX=T({},[eW,eq,eK],v),eZ=null,eQ=["application/xhtml+xml","text/html"],e0=null,e1=null,e2=r.createElement("form"),e3=function(e){return e instanceof RegExp||e instanceof Function},e4=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!(e1&&e1===e)){if(e&&"object"==typeof e||(e={}),e=R(e),e0="application/xhtml+xml"===(eZ=-1===eQ.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?v:y,eg=C(e,"ALLOWED_TAGS")?T({},e.ALLOWED_TAGS,e0):ey,ev=C(e,"ALLOWED_ATTR")?T({},e.ALLOWED_ATTR,e0):eb,eJ=C(e,"ALLOWED_NAMESPACES")?T({},e.ALLOWED_NAMESPACES,v):eX,eU=C(e,"ADD_URI_SAFE_ATTR")?T(R(eV),e.ADD_URI_SAFE_ATTR,e0):eV,eB=C(e,"ADD_DATA_URI_TAGS")?T(R(e$),e.ADD_DATA_URI_TAGS,e0):e$,ez=C(e,"FORBID_CONTENTS")?T({},e.FORBID_CONTENTS,e0):eH,ex=C(e,"FORBID_TAGS")?T({},e.FORBID_TAGS,e0):{},ek=C(e,"FORBID_ATTR")?T({},e.FORBID_ATTR,e0):{},eF=!!C(e,"USE_PROFILES")&&e.USE_PROFILES,eC=!1!==e.ALLOW_ARIA_ATTR,eS=!1!==e.ALLOW_DATA_ATTR,eE=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eM=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eT=e.SAFE_FOR_TEMPLATES||!1,eR=e.WHOLE_DOCUMENT||!1,eN=e.RETURN_DOM||!1,eP=e.RETURN_DOM_FRAGMENT||!1,eL=e.RETURN_TRUSTED_TYPE||!1,eO=e.FORCE_BODY||!1,eI=!1!==e.SANITIZE_DOM,eD=e.SANITIZE_NAMED_PROPS||!1,e_=!1!==e.KEEP_CONTENT,ej=e.IN_PLACE||!1,em=e.ALLOWED_URI_REGEXP||q,eG=e.NAMESPACE||eK,ew=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&e3(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ew.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&e3(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ew.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ew.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),eT&&(eS=!1),eP&&(eN=!0),eF&&(eg=T({},_),ev=[],!0===eF.html&&(T(eg,O),T(ev,j)),!0===eF.svg&&(T(eg,N),T(ev,F),T(ev,H)),!0===eF.svgFilters&&(T(eg,P),T(ev,F),T(ev,H)),!0===eF.mathMl&&(T(eg,I),T(ev,z),T(ev,H))),e.ADD_TAGS&&(eg===ey&&(eg=R(eg)),T(eg,e.ADD_TAGS,e0)),e.ADD_ATTR&&(ev===eb&&(ev=R(ev)),T(ev,e.ADD_ATTR,e0)),e.ADD_URI_SAFE_ATTR&&T(eU,e.ADD_URI_SAFE_ATTR,e0),e.FORBID_CONTENTS&&(ez===eH&&(ez=R(ez)),T(ez,e.FORBID_CONTENTS,e0)),e_&&(eg["#text"]=!0),eR&&T(eg,["html","head","body"]),eg.table&&(T(eg,["tbody"]),delete ex.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ee=(Q=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===Q&&(Q=X(U,l)),null!==Q&&"string"==typeof ee&&(ee=Q.createHTML(""));u&&u(e),e1=e}},e5=T({},["mi","mo","mn","ms","mtext"]),e6=T({},["foreignobject","desc","title","annotation-xml"]),e8=T({},["title","style","font","a","script"]),e9=T({},[...N,...P,...L]),e7=T({},[...I,...D]),te=function(e){let t=Z(e);t&&t.tagName||(t={namespaceURI:eG,tagName:"template"});let n=y(e.tagName),r=y(t.tagName);return!!eJ[e.namespaceURI]&&(e.namespaceURI===eq?t.namespaceURI===eK?"svg"===n:t.namespaceURI===eW?"svg"===n&&("annotation-xml"===r||e5[r]):!!e9[n]:e.namespaceURI===eW?t.namespaceURI===eK?"math"===n:t.namespaceURI===eq?"math"===n&&e6[r]:!!e7[n]:e.namespaceURI===eK?(t.namespaceURI!==eq||!!e6[r])&&(t.namespaceURI!==eW||!!e5[r])&&!e7[n]&&(e8[n]||!e9[n]):!!("application/xhtml+xml"===eZ&&eJ[e.namespaceURI]))},tt=function(e){g(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},tn=function(e,t){try{g(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){g(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ev[e])if(eN||eP)try{tt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tr=function(e){let t=null,n=null;if(eO)e="<remove></remove>"+e;else{let t=b(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===eZ&&eG===eK&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let i=Q?Q.createHTML(e):e;if(eG===eK)try{t=new $().parseFromString(i,eZ)}catch(e){}if(!t||!t.documentElement){t=et.createDocument(eG,"template",null);try{t.documentElement.innerHTML=eY?ee:i}catch(e){}}let o=t.body||t.documentElement;return e&&n&&o.insertBefore(r.createTextNode(n),o.childNodes[0]||null),eG===eK?ei.call(t,eR?"html":"body")[0]:eR?t.documentElement:o},ti=function(e){return en.call(e.ownerDocument||e,e,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION,null)},to=function(e){return"function"==typeof c&&e instanceof c},tl=function(e,t,r){el[e]&&p(el[e],e=>{e.call(n,t,r,e1)})},ta=function(e){let t=null;if(tl("beforeSanitizeElements",e,null),e instanceof B&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof M)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes))return tt(e),!0;let r=e0(e.nodeName);if(tl("uponSanitizeElement",e,{tagName:r,allowedTags:eg}),e.hasChildNodes()&&!to(e.firstElementChild)&&S(/<[/\w]/g,e.innerHTML)&&S(/<[/\w]/g,e.textContent))return tt(e),!0;if(!eg[r]||ex[r]){if(!ex[r]&&tu(r)&&(ew.tagNameCheck instanceof RegExp&&S(ew.tagNameCheck,r)||ew.tagNameCheck instanceof Function&&ew.tagNameCheck(r)))return!1;if(e_&&!ez[r]){let t=Z(e)||e.parentNode,n=G(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i)t.insertBefore(W(n[i],!0),K(e))}}return tt(e),!0}return e instanceof f&&!te(e)||("noscript"===r||"noembed"===r||"noframes"===r)&&S(/<\/no(script|embed|frames)/i,e.innerHTML)?(tt(e),!0):(eT&&3===e.n
27odeType&&(t=e.textContent,p([ea,es,eu],e=>{t=w(t,e," ")}),e.textContent!==t&&(g(n.removed,{element:e.cloneNode()}),e.textContent=t)),tl("afterSanitizeElements",e,null),!1)},ts=function(e,t,n){if(eI&&("id"===t||"name"===t)&&(n in r||n in e2))return!1;if(!(eS&&!ek[t]&&S(ec,t))&&!(eC&&S(ed,t))){if(!ev[t]||ek[t]){if(!(tu(e)&&(ew.tagNameCheck instanceof RegExp&&S(ew.tagNameCheck,e)||ew.tagNameCheck instanceof Function&&ew.tagNameCheck(e))&&(ew.attributeNameCheck instanceof RegExp&&S(ew.attributeNameCheck,t)||ew.attributeNameCheck instanceof Function&&ew.attributeNameCheck(t))||"is"===t&&ew.allowCustomizedBuiltInElements&&(ew.tagNameCheck instanceof RegExp&&S(ew.tagNameCheck,n)||ew.tagNameCheck instanceof Function&&ew.tagNameCheck(n))))return!1}else if(!eU[t]&&!S(em,w(n,eh,""))&&!(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===x(n,"data:")&&eB[e])&&!(eE&&!S(ef,w(n,eh,"")))&&n)return!1}return!0},tu=function(e){return"annotation-xml"!==e&&b(e,ep)},tc=function(e){tl("beforeSanitizeAttributes",e,null);let{attributes:t}=e;if(!t)return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ev},i=t.length;for(;i--;){let{name:o,namespaceURI:l,value:a}=t[i],s=e0(o),u="value"===o?a:k(a);if(r.attrName=s,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,tl("uponSanitizeAttribute",e,r),u=r.attrValue,r.forceKeepAttr||(tn(o,e),!r.keepAttr))continue;if(!eM&&S(/\/>/i,u)){tn(o,e);continue}eT&&p([ea,es,eu],e=>{u=w(u,e," ")});let c=e0(e.nodeName);if(ts(c,s,u)){if(eD&&("id"===s||"name"===s)&&(tn(o,e),u="user-content-"+u),Q&&"object"==typeof U&&"function"==typeof U.getAttributeType&&!l)switch(U.getAttributeType(c,s)){case"TrustedHTML":u=Q.createHTML(u);break;case"TrustedScriptURL":u=Q.createScriptURL(u)}try{l?e.setAttributeNS(l,o,u):e.setAttribute(o,u),m(n.removed)}catch(e){}}}tl("afterSanitizeAttributes",e,null)},td=function e(t){let n=null,r=ti(t);for(tl("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)tl("uponSanitizeShadowNode",n,null),ta(n)||(n.content instanceof a&&e(n.content),tc(n));tl("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,l=null,s=null;if((eY=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!to(e))if("function"==typeof e.toString){if("string"!=typeof(e=e.toString()))throw E("dirty is not a string, aborting")}else throw E("toString is not a function");if(!n.isSupported)return e;if(eA||e4(t),n.removed=[],"string"==typeof e&&(ej=!1),ej){if(e.nodeName){let t=e0(e.nodeName);if(!eg[t]||ex[t])throw E("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)1===(i=(r=tr("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!eN&&!eT&&!eR&&-1===e.indexOf("<"))return Q&&eL?Q.createHTML(e):e;if(!(r=tr(e)))return eN?null:eL?ee:""}r&&eO&&tt(r.firstChild);let u=ti(ej?e:r);for(;l=u.nextNode();)ta(l)||(l.content instanceof a&&td(l.content),tc(l));if(ej)return e;if(eN){if(eP)for(s=er.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(ev.shadowroot||ev.shadowrootmode)&&(s=eo.call(o,s,!0)),s}let d=eR?r.outerHTML:r.innerHTML;return eR&&eg["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&S(Y,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),eT&&p([ea,es,eu],e=>{d=w(d,e," ")}),Q&&eL?Q.createHTML(d):d},n.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e4(e),eA=!0},n.clearConfig=function(){e1=null,eA=!1},n.isValidAttribute=function(e,t,n){return e1||e4({}),ts(e0(e),e0(t),n)},n.addHook=function(e,t){"function"==typeof t&&(el[e]=el[e]||[],g(el[e],t))},n.removeHook=function(e){if(el[e])return m(el[e])},n.removeHooks=function(e){el[e]&&(el[e]=[])},n.removeAllHooks=function(){el={}},n}(),Array(12).fill(0);var Z=1,Q=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,i="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:Z++,o=this.toasts.find(e=>e.id===i),l=void 0===e.dismissible||e.dismissible;return o?this.toasts=this.toasts.map(t=>
27t.id===i?(this.publish({...t,...e,id:i,title:n}),{...t,...e,id:i,dismissible:l,title:n}):t):this.addToast({title:n,...r,dismissible:l,id:i}),i},this.dismiss=e=>(e||this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{let n;if(!t)return;void 0!==t.loading&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));let r=e instanceof Promise?e:e(),i=void 0!==n;return r.then(e=>{if(e&&"boolean"==typeof e.ok&&!e.ok){i=!1;let r="function"==typeof t.error?t.error("HTTP error! status: ".concat(e.status)):t.error,o="function"==typeof t.description?t.description("HTTP error! status: ".concat(e.status)):t.description;this.create({id:n,type:"error",message:r,description:o})}else if(void 0!==t.success){i=!1;let r="function"==typeof t.success?t.success(e):t.success,o="function"==typeof t.description?t.description(e):t.description;this.create({id:n,type:"success",message:r,description:o})}}).catch(e=>{if(void 0!==t.error){i=!1;let r="function"==typeof t.error?t.error(e):t.error,o="function"==typeof t.description?t.description(e):t.description;this.create({id:n,type:"error",message:r,description:o})}}).finally(()=>{var e;i&&(this.dismiss(n),n=void 0),null==(e=t.finally)||e.call(t)}),n},this.custom=(e,t)=>{let n=(null==t?void 0:t.id)||Z++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},ee=Object.assign((e,t)=>{let n=(null==t?void 0:t.id)||Z++;return Q.addToast({title:e,...t,id:n}),n},{success:Q.success,info:Q.info,warning:Q.warning,error:Q.error,custom:Q.custom,message:Q.message,promise:Q.promise,dismiss:Q.dismiss,loading:Q.loading});!function(e){let{insertAt:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"undefined"==typeof document)return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===t&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}(':where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
27left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
27:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success],[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info],[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning],[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error],[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}\n')},78465:(e,t,n)=>{"use strict";n.d(t,{d7:()=>l});var r=n(38848);function i(e,t){return e===t}function o(e){return"function"==typeof e?function(){return e}:e}function l(e,t,n){var l,a,s=n&&n.equalityFn||i,u=(a=(l=(0,r.useState)(o(e)))[1],[l[0],(0,r.useCallback)(function(e){return a(o(e))},[])]),c=u[0],d=u[1],f=function(e,t,n){var i=this,o=(0,r.useRef)(null),l=(0,r.useRef)(0),a=(0,r.useRef)(null),s=(0,r.useRef)([]),u=(0,r.useRef)(),c=(0,r.useRef)(),d=(0,r.useRef)(e),f=(0,r.useRef)(!0);(0,r.useEffect)(function(){d.current=e},[e]);var h=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var p=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,g="maxWait"in n,y=g?Math.max(+n.maxWait||0,t):null;return(0,r.useEffect)(function(){return f.current=!0,function(){f.current=!1}},[]),(0,r.useMemo)(function(){var e=function(e){var t=s.current,n=u.current;return s.current=u.current=null,l.current=e,c.current=d.current.apply(n,t)},n=function(e,t){h&&cancelAnimationFrame(a.current),a.current=h?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!f.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||g&&e-l.current>=y},v=function(t){return a.current=null,m&&s.current?e(t):(s.current=u.current=null,c.current)},b=function e(){var i=Date.now();if(r(i))return v(i);if(f.current){var a=t-(i-o.current);n(e,g?Math.min(a,y-(i-l.current)):a)}},w=function(){var d=Date.now(),h=r(d);if(s.current=[].slice.call(arguments),u.current=i,o.current=d,h){if(!a.current&&f.current)return l.current=o.current,n(b,t),p?e(o.current):c.current;if(g)return n(b,t),e(o.current)}return a.current||n(b,t),c.current};return w.cancel=function(){a.current&&(h?cancelAnimationFrame(a.current):clearTimeout(a.current)),l.current=0,s.current=o.current=u.current=a.current=null},w.isPending=function(){return!!a.current},w.flush=function(){return a.current?v(Date.now()):c.current},w},[p,g,t,y,m,h])}((0,r.useCallback)(function(e){return d(e)},[d]),t,n),h=(0,r.useRef)(e);
27return s(h.current,e)||(f(e),h.current=e),[c,f]}},78669:(e,t,n)=>{"use strict";n.d(t,{A:()=>ee});var r,i,o=n(34279),l=n.n(o),a=n(12854),s=n.n(a),u=n(38848),c=[],d="ResizeObserver loop completed with undelivered notifications.",f=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:d}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=d),window.dispatchEvent(e)};!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(r||(r={}));var h=function(e){return Object.freeze(e)},p=function(e,t){this.inlineSize=e,this.blockSize=t,h(this)},m=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,h(this)}return e.prototype.toJSON=function(){return{x:this.x,y:this.y,top:this.top,right:this.right,bottom:this.bottom,left:this.left,width:this.width,height:this.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),g=function(e){return e instanceof SVGElement&&"getBBox"in e},y=function(e){if(g(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e.offsetWidth,o=e.offsetHeight;return!(i||o||e.getClientRects().length)},v=function(e){if(e instanceof Element)return!0;var t,n=null==(t=null==e?void 0:e.ownerDocument)?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},b=function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},w="undefined"!=typeof window?window:{},x=new WeakMap,k=/auto|scroll/,C=/^tb|vertical/,S=/msie|trident/i.test(w.navigator&&w.navigator.userAgent),E=function(e){return parseFloat(e||"0")},M=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new p((n?t:e)||0,(n?e:t)||0)},T=h({devicePixelContentBoxSize:M(),borderBoxSize:M(),contentBoxSize:M(),contentRect:new m(0,0,0,0)}),R=function(e,t){if(void 0===t&&(t=!1),x.has(e)&&!t)return x.get(e);if(y(e))return x.set(e,T),T;var n=getComputedStyle(e),r=g(e)&&e.ownerSVGElement&&e.getBBox(),i=!S&&"border-box"===n.boxSizing,o=C.test(n.writingMode||""),l=!r&&k.test(n.overflowY||""),a=!r&&k.test(n.overflowX||""),s=r?0:E(n.paddingTop),u=r?0:E(n.paddingRight),c=r?0:E(n.paddingBottom),d=r?0:E(n.paddingLeft),f=r?0:E(n.borderTopWidth),p=r?0:E(n.borderRightWidth),v=r?0:E(n.borderBottomWidth),b=r?0:E(n.borderLeftWidth),w=d+u,R=s+c,A=b+p,O=f+v,N=a?e.offsetHeight-O-e.clientHeight:0,P=l?e.offsetWidth-A-e.clientWidth:0,L=r?r.width:E(n.width)-(i?w+A:0)-P,I=r?r.height:E(n.height)-(i?R+O:0)-N,D=L+w+P+A,_=I+R+N+O,j=h({devicePixelContentBoxSize:M(Math.round(L*devicePixelRatio),Math.round(I*devicePixelRatio),o),borderBoxSize:M(D,_,o),contentBoxSize:M(L,I,o),contentRect:new m(d,s,L,I)});return x.set(e,j),j},A=function(e,t,n){var i=R(e,n),o=i.borderBoxSize,l=i.contentBoxSize,a=i.devicePixelContentBoxSize;switch(t){case r.DEVICE_PIXEL_CONTENT_BOX:return a;case r.BORDER_BOX:return o;default:return l}},O=function(e){var t=R(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=h([t.borderBoxSize]),this.contentBoxSize=h([t.contentBoxSize]),this.devicePixelContentBoxSize=h([t.devicePixelContentBoxSize])},N=function(e){if(y(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},P=function(){var e=1/0,t=[];c.forEach(function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach(function(t){var n=new O(t.target),i=N(t.target);r.push(n),t.lastReportedSize=A(t.target,t.observedBox),i<e&&(e=i)}),t.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0;n<t.length;n++)(0,t[n])();return e},L=function(e){c.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(N(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},I=function(){var e=0;for(L(0);c.some(function(e){return e.activeTargets.length>0});)L(e=P());return c.some(function(e){return e.skippedTargets.length>0})&&f(),e>0},D=[],_=function(e){if(!i){var t=0,n=document.createTextNode("");
27new MutationObserver(function(){return D.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),i=function(){n.textContent="".concat(t?t--:t++)}}D.push(e),i()},j=function(e){_(function(){requestAnimationFrame(e)})},F=0,z={attributes:!0,characterData:!0,childList:!0,subtree:!0},H=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],B=function(e){return void 0===e&&(e=0),Date.now()+e},$=!1,U=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!$){$=!0;var n=B(e);j(function(){var r=!1;try{r=I()}finally{if($=!1,e=n-B(),!F)return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,z)};document.body?t():w.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),H.forEach(function(t){return w.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),H.forEach(function(t){return w.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),V=function(e){!F&&e>0&&U.start(),(F+=e)||U.stop()},W=function(){function e(e,t){this.target=e,this.observedBox=t||r.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=A(this.target,this.observedBox,!0);return g(e=this.target)||b(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),q=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},K=new WeakMap,G=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return -1},Y=function(){function e(){}return e.connect=function(e,t){var n=new q(e,t);K.set(e,n)},e.observe=function(e,t,n){var r=K.get(e),i=0===r.observationTargets.length;0>G(r.observationTargets,t)&&(i&&c.push(r),r.observationTargets.push(new W(t,n&&n.box)),V(1),U.schedule())},e.unobserve=function(e,t){var n=K.get(e),r=G(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&c.splice(c.indexOf(n),1),n.observationTargets.splice(r,1),V(-1))},e.disconnect=function(e){var t=this,n=K.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),J=function(){function e(e){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Y.connect(this,e)}return e.prototype.observe=function(e,t){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!v(e))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Y.observe(this,e,t)},e.prototype.unobserve=function(e){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!v(e))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Y.unobserve(this,e)},e.prototype.disconnect=function(){Y.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),X=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall"];function Z(){return(Z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Q=[];function ee(e){var t=e.className,n=e.children,r=e.debounceTime,i=void 0===r?300:r,o=e.ignoreDimensions,l=void 0===o?Q:o,a=e.parentSizeStyles,c=e.enableDebounceLeadingCall,d=void 0===c||c,f=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,X),h=(0,u.useRef)(null),p=(0,u.useRef)(0),m=(0,u.useState)({width:0,height:0,top:0,left:0}),g=m[0],y=m[1],v=(0,u.useMemo)(function(){var e=Array.isArray(l)?l:[l];return s()(function(t){y(function(n){return Object.keys(n).filter(function(e){return n[e]!==t[e]}).every(function(t){return e.includes(t)})?n:t})},i,{leading:d})},[i,d,l]);return(0,u.useEffect)(function(){var e=new J(function(e){void 0===e&&(e=[]),e.forEach(function(e){var t=e.contentRect,n=t.left,r=t.top,i=t.width,o=t.height;p.current=window.requestAnimationFrame(function(){v({width:i,height:o,top:r,left:n})})})});return h.current&&e.observe(h.current),function(){window.cancelAnimationFrame(p.current),e.disconnect(),null!=v&&v.cancel&&v.cancel()}},[v]),u.createElement("div",Z({style:void 0===a?{width:"100%",height:"100%"}:a,ref:h,className:t},f),n(Z({},g,{ref:h.current,resize:v})))}ee.propTypes={className:l().string,debounceTime:l().number,enableDebounceLeadingCall:l().bool,ignoreDimensions:l().oneOfType([l().any,l().arrayOf(l().any)]),children:l().func.isRequired}}
27,78788:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(50713);function i(e,t,n,i){let o=i?i-1:1/0,l=0;return function(i){return(0,r.On)(i)?(e.enter(n),function i(a){return(0,r.On)(a)&&l++<o?(e.consume(a),i):(e.exit(n),t(a))}(i)):t(i)}}},78922:(e,t,n)=>{"use strict";n.d(t,{N:()=>u});var r=n(58698),i=n(65518),o=n(63763),l=n(69906),a=n(41898),s=n(10276);function u(e,t){let n=(0,s.a)(e,null==t?void 0:t.in);return Math.round(((0,i.k)(n,t)-function(e,t){var n,r,s,u,c,d,f,h;let p=(0,o.q)(),m=null!=(h=null!=(f=null!=(d=null!=(c=null==t?void 0:t.firstWeekContainsDate)?c:null==t||null==(r=t.locale)||null==(n=r.options)?void 0:n.firstWeekContainsDate)?d:p.firstWeekContainsDate)?f:null==(u=p.locale)||null==(s=u.options)?void 0:s.firstWeekContainsDate)?h:1,g=(0,a.h)(e,t),y=(0,l.w)((null==t?void 0:t.in)||e,0);return y.setFullYear(g,0,m),y.setHours(0,0,0,0),(0,i.k)(y,t)}(n,t))/r.my)+1}},79087:(e,t,n)=>{"use strict";n.d(t,{D:()=>i});var r=n(10276);function i(e,t){let n=(0,r.a)(e,null==t?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}},79268:(e,t,n)=>{"use strict";n.d(t,{UE:()=>G,ll:()=>$,rD:()=>J,UU:()=>W,jD:()=>K,ER:()=>Y,cY:()=>U,BN:()=>V,Ej:()=>q});let r=["top","right","bottom","left"],i=Math.min,o=Math.max,l=Math.round,a=Math.floor,s=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function d(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function g(e){return["top","bottom"].includes(f(e))?"y":"x"}function y(e){return e.replace(/start|end/g,e=>c[e])}function v(e){return e.replace(/left|right|bottom|top/g,e=>u[e])}function b(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function w(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function x(e,t,n){let r,{reference:i,floating:o}=e,l=g(t),a=p(g(t)),s=m(a),u=f(t),c="y"===l,d=i.x+i.width/2-o.width/2,y=i.y+i.height/2-o.height/2,v=i[s]/2-o[s]/2;switch(u){case"top":r={x:d,y:i.y-o.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:y};break;case"left":r={x:i.x-o.width,y:y};break;default:r={x:i.x,y:i.y}}switch(h(t)){case"start":r[a]-=v*(n&&c?-1:1);break;case"end":r[a]+=v*(n&&c?-1:1)}return r}let k=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,a=o.filter(Boolean),s=await (null==l.isRTL?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=x(u,r,s),f=r,h={},p=0;for(let n=0;n<a.length;n++){let{name:o,fn:m}=a[n],{x:g,y:y,data:v,reset:b}=await m({x:c,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:h,rects:u,platform:l,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=y?y:d,h={...h,[o]:{...h[o],...v}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:c,y:d}=x(u,f,s)),n=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:h}};async function C(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:l,elements:a,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=d(t,e),m=b(p),g=a[h?"floating"===f?"reference":"floating":f],y=w(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:s})),v="floating"===f?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,x=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),k=await (null==o.isElement?void 0:o.isElement(x))&&await (null==o.getScale?void 0:o.getScale(x))||{x:1,y:1},C=w(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:x,strategy:s}):v);return{top:(y.top-C.top+m.top)/k.y,bottom:(C.bottom-y.bottom+m.bottom)/k.y,left:(y.left-C.left+m.left)/k.x,right:(C.right-y.right+m.right)/k.x}}function S(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function E(e){return r.some(t=>e[t]>=0)}async function M(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),l=f(n),a=h(n),s="y"===g(n),u=["left","top"].includes(l)?-1:1,c=o&&s?-1:1,p=d(t,e),{mainAxis:m,crossAxis:y,alignmentAxis:v}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return a&&"number"==typeof v&&(y="end"===a?-1*v:v),s?{x:y*c,y:m*u}:{x:m*u,y:y*c}}var T=n(15752);function R(e){let t=(0,T.L9)(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=(0,T.sb)(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=l(n)!==o||l(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function A(e){return(0,T.vq)(e)?e:e.contextElement}function O(e){let t=A(e);if(!(0,T.sb)(t))return s(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=R(t),a=(o?l(n.width):n.width)/r,u=(o?l(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),u&&Number.isFinite(u)||(u=1),{x:a,y:u}}let N=s(0);function P(e){let t=(0,T.zk)(e);
27return(0,T.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:N}function L(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),l=A(e),a=s(1);t&&(r?(0,T.vq)(r)&&(a=O(r)):a=O(e));let u=(void 0===(i=n)&&(i=!1),r&&(!i||r===(0,T.zk)(l))&&i)?P(l):s(0),c=(o.left+u.x)/a.x,d=(o.top+u.y)/a.y,f=o.width/a.x,h=o.height/a.y;if(l){let e=(0,T.zk)(l),t=r&&(0,T.vq)(r)?(0,T.zk)(r):r,n=e,i=(0,T._m)(n);for(;i&&r&&t!==n;){let e=O(i),t=i.getBoundingClientRect(),r=(0,T.L9)(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,d*=e.y,f*=e.x,h*=e.y,c+=o,d+=l,n=(0,T.zk)(i),i=(0,T._m)(n)}}return w({width:f,height:h,x:c,y:d})}function I(e,t){let n=(0,T.CP)(e).scrollLeft;return t?t.left+n:L((0,T.ep)(e)).left+n}function D(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:I(e,r)),y:r.top+t.scrollTop}}function _(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=(0,T.zk)(e),r=(0,T.ep)(e),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,a=0,s=0;if(i){o=i.width,l=i.height;let e=(0,T.Tc)();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,s=i.offsetTop)}return{width:o,height:l,x:a,y:s}}(e,n);else if("document"===t)r=function(e){let t=(0,T.ep)(e),n=(0,T.CP)(e),r=e.ownerDocument.body,i=o(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=o(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+I(e),s=-n.scrollTop;return"rtl"===(0,T.L9)(r).direction&&(a+=o(t.clientWidth,r.clientWidth)-i),{width:i,height:l,x:a,y:s}}((0,T.ep)(e));else if((0,T.vq)(t))r=function(e,t){let n=L(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=(0,T.sb)(e)?O(e):s(1),l=e.clientWidth*o.x,a=e.clientHeight*o.y;return{width:l,height:a,x:i*o.x,y:r*o.y}}(t,n);else{let n=P(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return w(r)}function j(e){return"static"===(0,T.L9)(e).position}function F(e,t){if(!(0,T.sb)(e)||"fixed"===(0,T.L9)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,T.ep)(e)===n&&(n=n.ownerDocument.body),n}function z(e,t){let n=(0,T.zk)(e);if((0,T.Tf)(e))return n;if(!(0,T.sb)(e)){let t=(0,T.$4)(e);for(;t&&!(0,T.eu)(t);){if((0,T.vq)(t)&&!j(t))return t;t=(0,T.$4)(t)}return n}let r=F(e,t);for(;r&&(0,T.Lv)(r)&&j(r);)r=F(r,t);return r&&(0,T.eu)(r)&&j(r)&&!(0,T.sQ)(r)?n:r||(0,T.gJ)(e)||n}let H=async function(e){let t=this.getOffsetParent||z,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=(0,T.sb)(t),i=(0,T.ep)(t),o="fixed"===n,l=L(e,!0,o,t),a={scrollLeft:0,scrollTop:0},u=s(0);if(r||!r&&!o)if(("body"!==(0,T.mq)(t)||(0,T.ZU)(i))&&(a=(0,T.CP)(t)),r){let e=L(t,!0,o,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else i&&(u.x=I(i));let c=!i||r||o?s(0):D(i,a);return{x:l.left+a.scrollLeft-u.x-c.x,y:l.top+a.scrollTop-u.y-c.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},B={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,l=(0,T.ep)(r),a=!!t&&(0,T.Tf)(t.floating);if(r===l||a&&o)return n;let u={scrollLeft:0,scrollTop:0},c=s(1),d=s(0),f=(0,T.sb)(r);if((f||!f&&!o)&&(("body"!==(0,T.mq)(r)||(0,T.ZU)(l))&&(u=(0,T.CP)(r)),(0,T.sb)(r))){let e=L(r);c=O(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let h=!l||f||o?s(0):D(l,u,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-u.scrollTop*c.y+d.y+h.y}},getDocumentElement:T.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:l}=e,a=[..."clippingAncestors"===n?(0,T.Tf)(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=(0,T.v9)(e,[],!1).filter(e=>(0,T.vq)(e)&&"body"!==(0,T.mq)(e)),i=null,o="fixed"===(0,T.L9)(e).position,l=o?(0,T.$4)(e):e;for(;(0,T.vq)(l)&&!(0,T.eu)(l);){let t=(0,T.L9)(l),n=(0,T.sQ)(l);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||(0,T.ZU)(l)&&!n&&function e(t,n){let r=(0,T.$4)(t);return!(r===n||!(0,T.vq)(r)||(0,T.eu)(r))&&("fixed"===(0,T.L9)(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):i=t,l=(0,T.$4)(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=a[0],u=a.reduce((e,n)=>{let r=_(t,n,l);return e.top=o(r.top,e.top),e.right=i(r.right,e.right),e.bottom=i(r.bottom,e.bottom),e.left=o(r.left,e.left),e},_(t,s,l));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:z,getElementRects:H,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=R(e);return{width:t,height:n}},getScale:O,isElement:T.vq,isRTL:function(e){return"rtl"===(0,T.L9)(e).direction}};function $(e,t,n,r){let l;void 0===r&&(r={});let{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:f=!1}=r,h=A(e),p=s||u?[...h?(0,T.v9)(h):[],...(0,T.v9)(t)]:[];
27p.forEach(e=>{s&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let m=h&&d?function(e,t){let n,r=null,l=(0,T.ep)(e);function s(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function u(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),s();let{left:f,top:h,width:p,height:m}=e.getBoundingClientRect();if(c||t(),!p||!m)return;let g=a(h),y=a(l.clientWidth-(f+p)),v={rootMargin:-g+"px "+-y+"px "+-a(l.clientHeight-(h+m))+"px "+-a(f)+"px",threshold:o(0,i(1,d))||1},b=!0;function w(e){let t=e[0].intersectionRatio;if(t!==d){if(!b)return u();t?u(!1,t):n=setTimeout(()=>{u(!1,1e-7)},1e3)}b=!1}try{r=new IntersectionObserver(w,{...v,root:l.ownerDocument})}catch(e){r=new IntersectionObserver(w,v)}r.observe(e)}(!0),s}(h,n):null,g=-1,y=null;c&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===h&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),h&&!f&&y.observe(h),y.observe(t));let v=f?L(e):null;return f&&function t(){let r=L(e);v&&(r.x!==v.x||r.y!==v.y||r.width!==v.width||r.height!==v.height)&&n(),v=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{s&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=y)||e.disconnect(),y=null,f&&cancelAnimationFrame(l)}}let U=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:l,middlewareData:a}=t,s=await M(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+s.x,y:o+s.y,data:{...s,placement:l}}}}},V=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:l}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=d(e,t),h={x:n,y:r},m=await C(t,c),y=g(f(l)),v=p(y),b=h[v],w=h[y];if(a){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=b+m[e],r=b-m[t];b=o(n,i(b,r))}if(s){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=w+m[e],r=w-m[t];w=o(n,i(w,r))}let x=u.fn({...t,[v]:b,[y]:w});return{...x,data:{x:x.x-n,y:x.y-r}}}}},W=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o,l;let{placement:a,middlewareData:s,rects:u,initialPlacement:c,platform:b,elements:w}=t,{mainAxis:x=!0,crossAxis:k=!0,fallbackPlacements:S,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:M="none",flipAlignment:T=!0,...R}=d(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};let A=f(a),O=g(c),N=f(c)===c,P=await (null==b.isRTL?void 0:b.isRTL(w.floating)),L=S||(N||!T?[v(c)]:function(e){let t=v(e);return[y(e),t,y(t)]}(c)),I="none"!==M;!S&&I&&L.push(...function(e,t,n,r){let i=h(e),o=function(e,t,n){let r=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(n)return t?i:r;return t?r:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(f(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(y)))),o}(c,T,M,P));let D=[c,...L],_=await C(t,R),j=[],F=(null==(r=s.flip)?void 0:r.overflows)||[];if(x&&j.push(_[A]),k){let e=function(e,t,n){void 0===n&&(n=!1);let r=h(e),i=p(g(e)),o=m(i),l="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=v(l)),[l,v(l)]}(a,u,P);j.push(_[e[0]],_[e[1]])}if(F=[...F,{placement:a,overflows:j}],!j.every(e=>e<=0)){let e=((null==(i=s.flip)?void 0:i.index)||0)+1,t=D[e];if(t)return{data:{index:e,overflows:F},reset:{placement:t}};let n=null==(o=F.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(E){case"bestFit":{let e=null==(l=F.filter(e=>{if(I){let t=g(e.placement);return t===O||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}},q=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,r,{placement:l,rects:a,platform:s,elements:u}=t,{apply:c=()=>{},...p}=d(e,t),m=await C(t,p),y=f(l),v=h(l),b="y"===g(l),{width:w,height:x}=a.floating;"top"===y||"bottom"===y?(n=y,r=v===(await (null==s.isRTL?void 0:s.isRTL(u.floating))?"start":"end")?"left":"right"):(r=y,n="end"===v?"top":"bottom");let k=x-m.top-m.bottom,S=w-m.left-m.right,E=i(x-m[n],k),M=i(w-m[r],S),T=!t.middlewareData.shift,R=E,A=M;if(b?A=v||T?i(M,S):S:R=v||T?i(E,k):k,T&&!v){let e=o(m.left,0),t=o(m.right,0),n=o(m.top,0),r=o(m.bottom,0);b?A=w-2*(0!==e||0!==t?e+t:o(m.left,m.right)):R=x-2*(0!==n||0!==r?n+r:o(m.top,m.bottom))}await c({...t,availableWidth:A,availableHeight:R});let O=await s.getDimensions(u.floating);return w!==O.width||x!==O.height?{reset:{rects:!0}}:{}}}},K=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...i}=d(e,t);switch(r){case"referenceHidden":{let e=S(await C(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:E(e)}}}case"escaped":{let e=S(await C(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:E(e)}}}default:return{}}}}},G=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:l,rects:a,platform:s,elements:u,middlewareData:c}=t,{element:f,padding:y=0}=d(e,t)||{};if(null==f)return{};let v=b(y),w={x:n,y:r},x=p(g(l)),k=m(x),C=await s.getDimensions(f),S="y"===x,E=S?"clientHeight":"clientWidth",M=a.reference[k]+a.reference[x]-w[x]-a.floating[k],T=w[x]-a.reference[x],R=await (null==s.getOffsetParent?void 0:s.getOffsetParent(f)),A=R?R[E]:0;A&&await (null==s.isElement?void 0:s.isElement(R))||(A=u.floating[E]||a.floating[k]);let O=A/2-C[k]/2-1,N=i(v[S?"top":"left"],O),P=i(v[S?"bottom":"right"],O),L=A-C[k]-P,I=A/2-C[k]/2+(M/2-T/2),D=o(N,i(I,L)),_=!c.arrow&&null!=h(l)&&I!==D&&a.reference[k]/2-(I<N?N:P)-C[k]/2<0,j=_?I<N?I-N:I-L:0;return{[x]:w[x]+j,data:{[x]:D,centerOffset:I-D-j,..._&&{alignmentOffset:j}},reset:_}}}),Y=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:o,middlewareData:l}=t,{offset:a=0,mainAxis:s=!0,crossAxis:u=!0}=d(e,t),c={x:n,y:r},h=g(i),m=p(h),y=c[m],v=c[h],b=d(a,t),w="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(s){let e="y"===m?"height":"width",t=o.reference[m]-o.floating[e]+w.mainAxis,n=o.reference[m]+o.reference[e]-w.mainAxis;y<t?y=t:y>n&&(y=n)}if(u){var x,k;let e="y"===m?"width":"height",t=["top","left"].includes(f(i)),n=o.reference[h]-o.floating[e]+(t&&(null==(x=l.offset)?void 0:x[h])||0)+(t?0:w.crossAxis),r=o.reference[h]+o.reference[e]+(t?0:(null==(k=l.offset)?void 0:k[h])||0)-(t?w.crossAxis:0);v<n?v=n:v>r&&(v=r)}return{[m]:y,[h]:v}}}}
27,J=(e,t,n)=>{let r=new Map,i={platform:B,...n},o={...i.platform,_c:r};return k(e,t,{...i,platform:o})}},79386:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>o});var r=n(8760),i=n(4033),o=r.YY.create({name:"fileHandler",addOptions:()=>({onPaste:void 0,onDrop:void 0,allowedMimeTypes:void 0}),addProseMirrorPlugins(){return[(({key:e,editor:t,onPaste:n,onDrop:r,allowedMimeTypes:o})=>new i.k_({key:e||new i.hs("fileHandler"),props:{handleDrop(e,n){var i;if(!r||!(null==(i=n.dataTransfer)?void 0:i.files.length))return!1;let l=e.posAtCoords({left:n.clientX,top:n.clientY}),a=Array.from(n.dataTransfer.files);return o&&(a=a.filter(e=>o.includes(e.type))),0!==a.length&&(n.preventDefault(),n.stopPropagation(),r(t,a,(null==l?void 0:l.pos)||0),!0)},handlePaste(e,r){var i;if(!n||!(null==(i=r.clipboardData)?void 0:i.files.length))return!1;let l=Array.from(r.clipboardData.files),a=r.clipboardData.getData("text/html");return o&&(l=l.filter(e=>o.includes(e.type))),0!==l.length&&(r.preventDefault(),r.stopPropagation(),n(t,l,a),!(a.length>0))}}}))({key:new i.hs(this.name),editor:this.editor,allowedMimeTypes:this.options.allowedMimeTypes,onDrop:this.options.onDrop,onPaste:this.options.onPaste})]}})},79392:(e,t,n)=>{"use strict";n.d(t,{C:()=>w,Ay:()=>x});var r=n(43684),i=n(16617);let o=(0,i.A)(r.A),l=o.right;o.left,(0,i.A)(function(e){return null===e?NaN:+e}).center;var a=n(28864),s=n(81518);function u(e,t){return e*=1,t*=1,function(n){return e*(1-n)+t*n}}var c=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,d=RegExp(c.source,"g"),f=n(35129),h=n(33463);function p(e){return+e}var m=[0,1];function g(e){return e}function y(e,t){var n;return(t-=e*=1)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n})}function v(e,t,n){var r=e[0],i=e[1],o=t[0],l=t[1];return i<r?(r=y(i,r),o=n(l,o)):(r=y(r,i),o=n(o,l)),function(e){return o(r(e))}}function b(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),o=Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=y(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=l(e,t,1,r)-1;return o[n](i[n](t))}}function w(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function x(){return(function(){var e,t,n,r,i,o,l=m,y=m,w=function e(t,n){var r,i,o=typeof n;return null==n||"boolean"===o?(0,f.A)(n):("number"===o?u:"string"===o?(i=(0,a.Ay)(n))?(n=i,s.Ay):function(e,t){var n,r,i,o,l,a=c.lastIndex=d.lastIndex=0,s=-1,f=[],h=[];for(e+="",t+="";(i=c.exec(e))&&(o=d.exec(t));)(l=o.index)>a&&(l=t.slice(a,l),f[s]?f[s]+=l:f[++s]=l),(i=i[0])===(o=o[0])?f[s]?f[s]+=o:f[++s]=o:(f[++s]=null,h.push({i:s,x:u(i,o)})),a=d.lastIndex;return a<t.length&&(l=t.slice(a),f[s]?f[s]+=l:f[++s]=l),f.length<2?h[0]?(n=h[0].x,function(e){return n(e)+""}):(r=t,function(){return r}):(t=h.length,function(e){for(var n,r=0;r<t;++r)f[(n=h[r]).i]=n.x(e);return f.join("")})}:n instanceof a.Ay?s.Ay:n instanceof Date?function(e,t){var n=new Date;return e*=1,t*=1,function(r){return n.setTime(e*(1-r)+t*r),n}}:!ArrayBuffer.isView(r=n)||r instanceof DataView?Array.isArray(n)?function(t,n){var r,i=n?n.length:0,o=t?Math.min(i,t.length):0,l=Array(o),a=Array(i);for(r=0;r<o;++r)l[r]=e(t[r],n[r]);for(;r<i;++r)a[r]=n[r];return function(e){for(r=0;r<o;++r)a[r]=l[r](e);return a}}:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?function(t,n){var r,i={},o={};for(r in(null===t||"object"!=typeof t)&&(t={}),(null===n||"object"!=typeof n)&&(n={}),n)r in t?i[r]=e(t[r],n[r]):o[r]=n[r];return function(e){for(r in i)o[r]=i[r](e);return o}}:u:function(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}})(t,n)},x=g;function k(){var e,t,n,a=Math.min(l.length,y.length);return x!==g&&(e=l[0],t=l[a-1],e>t&&(n=e,e=t,t=n),x=function(n){return Math.max(e,Math.min(t,n))}),r=a>2?b:v,i=o=null,C}function C(t){return null==t||isNaN(t*=1)?n:(i||(i=r(l.map(e),y,w)))(e(x(t)))}return C.invert=function(n){return x(t((o||(o=r(y,l.map(e),u)))(n)))},C.domain=function(e){return arguments.length?(l=Array.from(e,p),k()):l.slice()},C.range=function(e){return arguments.length?(y=Array.from(e),k()):y.slice()},C.rangeRound=function(e){return y=Array.from(e),w=h.A,k()},C.clamp=function(e){return arguments.length?(x=!!e||g,k()):x!==g},C.interpolate=function(e){return arguments.length?(w=e,k()):w},C.unknown=function(e){return arguments.length?(n=e,C):n},function(n,r){return e=n,t=r,k()}})()(g,g)}},79470:(e,t,n)=>{"use strict";n.d(t,{A:()=>eK});var r,i,o=n(16617),l=n(35164),a=n(61947),s=n(88050);let u=(0,s.f)(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);u.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?(0,s.f)(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):u:null,u.range;var c=n(56083),d=n(92063),f=n(33265),h=n(67299),p=n(98459),m=n(19891),g=n(40718);function y(e,t,n,r,i,s){let d=[[c.R,1,a.Tt],[c.R,5,5*a.Tt],[c.R,15,15*a.Tt],[c.R,30,30*a.Tt],[s,1,a.rR],[s,5,5*a.rR],[s,15,15*a.rR],[s,30,30*a.rR],[i,1,a.JJ],[i,3,3*a.JJ],[i,6,6*a.JJ],[i,12,12*a.JJ],[r,1,a.Nm],[r,2,2*a.Nm],[n,1,a.Fq],[t,1,a.Pv],[t,3,3*a.Pv],[e,1,a.MP]];function f(t,n,r){let i=Math.abs(n-t)/r,s=(0,o.A)(([,,e])=>e).right(d,i);if(s===d.length)return e.every((0,l.sG)(t/a.MP,n/a.MP,r));if(0===s)return u.every(Math.max((0,l.sG)(t,n,r),1));let[c,f]=d[i/d[s-1][2]<d[s][2]/i?s-1:s];return c.every(f)}return[function(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&"function"==typeof n.range?n:f(e,t,n),o=i?i.range(e,+t+1):[];return r?o.reverse():o},f]}let[v,b]=y(g.Mb,m.R6,p.Hl,h.TW,f.pz,d.vD),[w,x]=y(g.he,m.Ui,p.YP,h.UA,f.Ag,d.wX);function k(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function C(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function S(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var E={"-":"",_:" ",0:"0"},M=/^\s*\d+/,T=/^%/,R=/[\\^$*+?|[\]().{}]/g;function A(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?Array(n-o+1).join(t)+i:i)}function O(e){return e.replace(R,"\\$&")}function N(e){return RegExp("^(?:"+e.map(O).join("|")+")","i")}function P(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function L(e,t,n){var r=M.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function I(e,t,n){var r=M.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function D(e,t,n){var r=M.exec(t.slice(n,n+2));
vendor: 6,204 bytes, line 27
27return r?(e.U=+r[0],n+r[0].length):-1}function _(e,t,n){var r=M.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function j(e,t,n){var r=M.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function F(e,t,n){var r=M.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function z(e,t,n){var r=M.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function H(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function B(e,t,n){var r=M.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function $(e,t,n){var r=M.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function U(e,t,n){var r=M.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function V(e,t,n){var r=M.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function W(e,t,n){var r=M.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function q(e,t,n){var r=M.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function K(e,t,n){var r=M.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function G(e,t,n){var r=M.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Y(e,t,n){var r=M.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function J(e,t,n){var r=T.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function X(e,t,n){var r=M.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Z(e,t,n){var r=M.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Q(e,t){return A(e.getDate(),t,2)}function ee(e,t){return A(e.getHours(),t,2)}function et(e,t){return A(e.getHours()%12||12,t,2)}function en(e,t){return A(1+h.UA.count((0,g.he)(e),e),t,3)}function er(e,t){return A(e.getMilliseconds(),t,3)}function ei(e,t){return er(e,t)+"000"}function eo(e,t){return A(e.getMonth()+1,t,2)}function el(e,t){return A(e.getMinutes(),t,2)}function ea(e,t){return A(e.getSeconds(),t,2)}function es(e){var t=e.getDay();return 0===t?7:t}function eu(e,t){return A(p.YP.count((0,g.he)(e)-1,e),t,2)}function ec(e){var t=e.getDay();return t>=4||0===t?(0,p.Mo)(e):p.Mo.ceil(e)}function ed(e,t){return e=ec(e),A(p.Mo.count((0,g.he)(e),e)+(4===(0,g.he)(e).getDay()),t,2)}function ef(e){return e.getDay()}function eh(e,t){return A(p.AB.count((0,g.he)(e)-1,e),t,2)}function ep(e,t){return A(e.getFullYear()%100,t,2)}function em(e,t){return A((e=ec(e)).getFullYear()%100,t,2)}function eg(e,t){return A(e.getFullYear()%1e4,t,4)}function ey(e,t){var n=e.getDay();return A((e=n>=4||0===n?(0,p.Mo)(e):p.Mo.ceil(e)).getFullYear()%1e4,t,4)}function ev(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+A(t/60|0,"0",2)+A(t%60,"0",2)}function eb(e,t){return A(e.getUTCDate(),t,2)}function ew(e,t){return A(e.getUTCHours(),t,2)}function ex(e,t){return A(e.getUTCHours()%12||12,t,2)}function ek(e,t){return A(1+h.dA.count((0,g.Mb)(e),e),t,3)}function eC(e,t){return A(e.getUTCMilliseconds(),t,3)}function eS(e,t){return eC(e,t)+"000"}function eE(e,t){return A(e.getUTCMonth()+1,t,2)}function eM(e,t){return A(e.getUTCMinutes(),t,2)}function eT(e,t){return A(e.getUTCSeconds(),t,2)}function eR(e){var t=e.getUTCDay();return 0===t?7:t}function eA(e,t){return A(p.Hl.count((0,g.Mb)(e)-1,e),t,2)}function eO(e){var t=e.getUTCDay();return t>=4||0===t?(0,p.pT)(e):p.pT.ceil(e)}function eN(e,t){return e=eO(e),A(p.pT.count((0,g.Mb)(e),e)+(4===(0,g.Mb)(e).getUTCDay()),t,2)}function eP(e){return e.getUTCDay()}function eL(e,t){return A(p.rt.count((0,g.Mb)(e)-1,e),t,2)}function eI(e,t){return A(e.getUTCFullYear()%100,t,2)}function eD(e,t){return A((e=eO(e)).getUTCFullYear()%100,t,2)}function e_(e,t){return A(e.getUTCFullYear()%1e4,t,4)}function ej(e,t){var n=e.getUTCDay();return A((e=n>=4||0===n?(0,p.pT)(e):p.pT.ceil(e)).getUTCFullYear()%1e4,t,4)}function eF(){return"+0000"}function ez(){return"%"}function eH(e){return+e}function eB(e){return Math.floor(e/1e3)}(r=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,l=e.shortDays,a=e.months,s=e.shortMonths,u=N(i),c=P(i),d=N(o),f=P(o),m=N(l),g=P(l),y=N(a),v=P(a),b=N(s),w=P(s),x={a:function(e){return l[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return a[e.getMonth()]},c:null,d:Q,e:Q,f:ei,g:em,G:ey,H:ee,I:et,j:en,L:er,m:eo,M:el,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:eH,s:eB,S:ea,u:es,U:eu,V:ed,w:ef,W:eh,x:null,X:null,y:ep,Y:eg,Z:ev,"%":ez},M={a:function(e){return l[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return a[e.getUTCMonth()]},c:null,d:eb,e:eb,f:eS,g:eD,G:ej,H:ew,I:ex,j:ek,L:eC,m:eE,M:eM,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:eH,s:eB,S:eT,u:eR,U:eA,V:eN,w:eP,W:eL,x:null,X:null,y:eI,Y:e_,Z:eF,"%":ez},T={a:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.w=g.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=b.exec(t.slice(n));return r?(e.m=w.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return O(e,t,n,r)},d:U,e:U,f:Y,g:z,G:F,H:W,I:W,j:V,L:G,m:$,M:q,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:B,Q:X,s:Z,S:K,u:I,U:D,V:_,w:L,W:j,x:function(e,t,r){return O(e,n,t,r)},X:function(e,t,n){return O(e,r,t,n)},y:z,Y:F,Z:H,"%":J};function R(e,t){return function(n){var r,i,o,l=[],a=-1,s=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++a<u;)37===e.charCodeAt(a)&&(l.push(e.slice(s,a)),null!=(i=E[r=e.charAt(++a)])?r=e.charAt(++a):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),l.push(r),s=a+1);return l.push(e.slice(s,a)),l.join("")}}function A(e,t){return function(n){var r,i,o=S(1900,void 0,1);if(O(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(!t||"Z"in o||(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){
27if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=C(S(o.y,0,1))).getUTCDay())>4||0===i?p.rt.ceil(r):(0,p.rt)(r),r=h.dA.offset(r,(o.V-1)*7),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=k(S(o.y,0,1))).getDay())>4||0===i?p.AB.ceil(r):(0,p.AB)(r),r=h.UA.offset(r,(o.V-1)*7),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:+("W"in o)),i="Z"in o?C(S(o.y,0,1)).getUTCDay():k(S(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,C(o)):k(o)}}function O(e,t,n,r){for(var i,o,l=0,a=t.length,s=n.length;l<a;){if(r>=s)return -1;if(37===(i=t.charCodeAt(l++))){if(!(o=T[(i=t.charAt(l++))in E?t.charAt(l++):i])||(r=o(e,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return x.x=R(n,x),x.X=R(r,x),x.c=R(t,x),M.x=R(n,M),M.X=R(r,M),M.c=R(t,M),{format:function(e){var t=R(e+="",x);return t.toString=function(){return e},t},parse:function(e){var t=A(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=R(e+="",M);return t.toString=function(){return e},t},utcParse:function(e){var t=A(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,r.parse,i=r.utcFormat,r.utcParse;var e$=n(79392);function eU(e){return new Date(e)}function eV(e){return e instanceof Date?+e:+new Date(+e)}var eW=n(16335),eq=(0,n(86356).A)("domain","range","reverse","clamp","interpolate","nice","round");function eK(e){return eq(function(){return eW.C.apply((function e(t,n,r,i,o,l,a,s,u,c){var d=(0,e$.Ay)(),f=d.invert,h=d.domain,p=c(".%L"),m=c(":%S"),g=c("%I:%M"),y=c("%I %p"),v=c("%a %d"),b=c("%b %d"),w=c("%B"),x=c("%Y");function k(e){return(u(e)<e?p:s(e)<e?m:a(e)<e?g:l(e)<e?y:i(e)<e?o(e)<e?v:b:r(e)<e?w:x)(e)}return d.invert=function(e){return new Date(f(e))},d.domain=function(e){return arguments.length?h(Array.from(e,eV)):h().map(eU)},d.ticks=function(e){var n=h();return t(n[0],n[n.length-1],null==e?10:e)},d.tickFormat=function(e,t){return null==t?k:c(t)},d.nice=function(e){var t,r,i,o,l,a,s,u=h();return e&&"function"==typeof e.range||(e=n(u[0],u[u.length-1],null==e?10:e)),e?h((t=u,r=e,t=t.slice(),o=0,l=t.length-1,a=t[o],(s=t[l])<a&&(i=o,o=l,l=i,i=a,a=s,s=i),t[o]=r.floor(a),t[l]=r.ceil(s),t)):d},d.copy=function(){return(0,e$.C)(d,e(t,n,r,i,o,l,a,s,u,c))},d})(v,b,g.Mb,m.R6,p.Hl,h.dA,f.pz,d.vD,c.R,i).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}(),e)}},80482:(e,t,n)=>{"use strict";n.d(t,{a:()=>l});var r=n(85986),i=n(63763);let o=["years","months","weeks","days","hours","minutes","seconds"];function l(e,t){var n,l,a,s,u;let c=(0,i.q)(),d=null!=(l=null!=(n=null==t?void 0:t.locale)?n:c.locale)?l:r.c,f=null!=(a=null==t?void 0:t.format)?a:o,h=null!=(s=null==t?void 0:t.zero)&&s,p=null!=(u=null==t?void 0:t.delimiter)?u:" ";return d.formatDistance?f.reduce((t,n)=>{let r="x".concat(n.replace(/(^.)/,e=>e.toUpperCase())),i=e[n];return void 0!==i&&(h||e[n])?t.concat(d.formatDistance(r,i)):t},[]).join(p):""}},81196:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});let r={};function i(e,t){let n=t||r;return o(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function o(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return l(e.children,t,n)}return Array.isArray(e)?l(e,t,n):""}function l(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=o(e[i],t,n);return r.join("")}},81518:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l});var r=n(28864);function i(e,t,n,r,i){var o=e*e,l=o*e;return((1-3*e+3*o-l)*t+(4-6*o+3*l)*n+(1+3*e+3*o-3*l)*r+l*i)/6}var o=n(9120);let l=function e(t){var n=(0,o.uN)(t);function i(e,t){var i=n((e=(0,r.Qh)(e)).r,(t=(0,r.Qh)(t)).r),l=n(e.g,t.g),a=n(e.b,t.b),s=(0,o.Ay)(e.opacity,t.opacity);return function(t){return e.r=i(t),e.g=l(t),e.b=a(t),e.opacity=s(t),e+""}}return i.gamma=e,i}(1);function a(e){return function(t){var n,i,o=t.length,l=Array(o),a=Array(o),s=Array(o);for(n=0;n<o;++n)i=(0,r.Qh)(t[n]),l[n]=i.r||0,a[n]=i.g||0,s[n]=i.b||0;
27return l=e(l),a=e(a),s=e(s),i.opacity=1,function(e){return i.r=l(e),i.g=a(e),i.b=s(e),i+""}}}a(function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],l=e[r+1],a=r>0?e[r-1]:2*o-l,s=r<t-1?e[r+2]:2*l-o;return i((n-r/t)*t,a,o,l,s)}}),a(function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],l=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return i((n-r/t)*t,o,l,a,s)}})},82724:(e,t,n)=>{"use strict";n.d(t,{y:()=>o});var r=n(34418);let i={}.hasOwnProperty;function o(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let o,l=(i.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];if(a)for(o in a){i.call(l,o)||(l[o]=[]);let e=a[o];!function(e,t){let n=-1,i=[];for(;++n<t.length;)("after"===t[n].add?e:i).push(t[n]);(0,r.m)(e,0,0,i)}(l[o],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}},83494:(e,t,n)=>{"use strict";n.d(t,{A:()=>eC});var r={};n.r(r),n.d(r,{attentionMarkers:()=>eh,contentInitial:()=>ea,disable:()=>ep,document:()=>el,flow:()=>eu,flowInitial:()=>es,insideSpan:()=>ef,string:()=>ec,text:()=>ed});var i=n(81196),o=n(34418);class l{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&a(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),a(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),a(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);a(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);a(this.left,t.reverse())}}}function a(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 s(e){let t,n,r,i,a,s,u,c={},d=-1,f=new l(e);for(;++d<f.length;){for(;d in c;)d=c[d];if(t=f.get(d),d&&"chunkFlow"===t[1].type&&"listItemPrefix"===f.get(d-1)[1].type&&((r=0)<(s=t[1]._tokenizer.events).length&&"lineEndingBlank"===s[r][1].type&&(r+=2),r<s.length&&"content"===s[r][1].type))for(;++r<s.length&&"content"!==s[r][1].type;)"chunkText"===s[r][1].type&&(s[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(c,function(e,t){let n,r,i=e.get(t)[1],o=e.get(t)[2],l=t-1,a=[],s=i._tokenizer||o.parser[i.contentType](i.start),u=s.events,c=[],d={},f=-1,h=i,p=0,m=0,g=[0];for(;h;){for(;e.get(++l)[1]!==h;);a.push(l),!h._tokenizer&&(n=o.sliceStream(h),h.next||n.push(null),r&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(n),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),r=h,h=h.next}for(h=i;++f<u.length;)"exit"===u[f][0]&&"enter"===u[f-1][0]&&u[f][1].type===u[f-1][1].type&&u[f][1].start.line!==u[f][1].end.line&&(m=f+1,g.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),f=g.length;f--;){let t=u.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)d[p+c[f][0]]=p+c[f][1],p+=c[f][1]-c[f][0]-1;return d}(f,d)),d=c[d],u=!0);else if(t[1]._container){for(r=d,n=void 0;r--;)if("lineEnding"===(i=f.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(f.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else break;
27n&&(t[1].end=Object.assign({},f.get(n)[1].start),(a=f.slice(n,d)).unshift(t),f.splice(n,d-n+1,a))}}return(0,o.m)(e,0,1/0,f.slice(0)),!u}var u=n(82724),c=n(78788),d=n(50713);let f={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,c.N)(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return(0,d.HP)(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},h={tokenize:function(e){let t,n,r,i=this,l=[],a=0;return s;function s(t){if(a<l.length){let n=l[a];return i.containerState=n[1],e.attempt(n[0].continuation,u,c)(t)}return c(t)}function u(e){if(a++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&w();let r=i.events.length,l=r;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){n=i.events[l][1].end;break}b(a);let s=r;for(;s<i.events.length;)i.events[s][1].end=Object.assign({},n),s++;return(0,o.m)(i.events,l+1,0,i.events.slice(r)),i.events.length=s,c(e)}return s(e)}function c(n){if(a===l.length){if(!t)return m(n);if(t.currentConstruct&&t.currentConstruct.concrete)return y(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(p,f,h)(n)}function f(e){return t&&w(),b(a),m(e)}function h(e){return i.parser.lazy[i.now().line]=a!==l.length,r=i.now().offset,y(e)}function m(t){return i.containerState={},e.attempt(p,g,y)(t)}function g(e){return a++,l.push([i.currentConstruct,i.containerState]),m(e)}function y(r){if(null===r){t&&w(),b(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{contentType:"flow",previous:n,_tokenizer:t}),function t(n){if(null===n){v(e.exit("chunkFlow"),!0),b(0),e.consume(n);return}return(0,d.HP)(n)?(e.consume(n),v(e.exit("chunkFlow")),a=0,i.interrupt=void 0,s):(e.consume(n),t)}(r)}function v(e,l){let s=i.sliceStream(e);if(l&&s.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(s),i.parser.lazy[e.start.line]){let e,n,l=t.events.length;for(;l--;)if(t.events[l][1].start.offset<r&&(!t.events[l][1].end||t.events[l][1].end.offset>r))return;let s=i.events.length,u=s;for(;u--;)if("exit"===i.events[u][0]&&"chunkFlow"===i.events[u][1].type){if(e){n=i.events[u][1].end;break}e=!0}for(b(a),l=s;l<i.events.length;)i.events[l][1].end=Object.assign({},n),l++;(0,o.m)(i.events,u+1,0,i.events.slice(s)),i.events.length=l}}function b(t){let n=l.length;for(;n-- >t;){let t=l[n];i.containerState=t[1],t[0].exit.call(i,e)}l.length=t}function w(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},p={tokenize:function(e,t,n){return(0,c.N)(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var m=n(99574);let g={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):(0,d.HP)(t)?e.check(y,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return s(e),e}},y={tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,c.N)(e,i,"linePrefix")};function i(i){if(null===i||(0,d.HP)(i))return n(i);let o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0},v={tokenize:function(e){let t=this,n=e.attempt(m.B,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,(0,c.N)(e,e.attempt(this.parser.constructs.flow,r,e.attempt(g,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},b={resolveAll:C()},w=k("string"),x=k("text");function k(e){return{tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,o,l);return o;function o(e){return s(e)?i(e):l(e)}function l(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),a)}function a(e){return s(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function s(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:C("text"===e?S:void 0)}}function C(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function S(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,i=e[n-1][1],o=t.sliceStream(i),l=o.length,a=-1,s=0;for(;l--;){let e=o[l];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)s++,a--;if(a)break;a=-1}else if(-2===e)r=!0,s++;else if(-1===e);else{l++;break}}if(s){let o={type:n===e.length||r||s<2?"lineSuffix":"hardBreakTrailing",start:{line:i.end.line,column:i.end.column-s,offset:i.end.offset-s,_index:i.start._index+l,_bufferIndex:l?a:i.start._bufferIndex+a},end:Object.assign({},i.end)};i.end=Object.assign({},o.start),i.start.offset===i.end.offset?Object.assign(i,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}var E=n(27382);let M={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(o){var l;return e.enter("thematicBreak"),r=l=o,function o(l){return l===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),(0,d.On)(n)?(0,c.N)(e,o,"whitespace")(n):o(n))}(l)):i>=3&&(null===l||(0,d.HP)(l))?(e.exit("thematicBreak"),t(l)):n(l)}(l)}}},T={name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,l=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:(0,d.BM)(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(M,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return(0,d.BM)(i)&&++l<10?(e.consume(i),t):(!r.interrupt||l<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),a(i)):n(i)}(t)}return n(t)};function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(m.B,r.interrupt?n:s,e.attempt(R,c,u))}
27function s(e){return r.containerState.initialBlankLine=!0,o++,c(e)}function u(t){return(0,d.On)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(m.B,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,(0,c.N)(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!(0,d.On)(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(A,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,(0,c.N)(e,e.attempt(T,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},R={tokenize:function(e,t,n){let r=this;return(0,c.N)(e,function(e){let i=r.events[r.events.length-1];return!(0,d.On)(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},A={tokenize:function(e,t,n){let r=this;return(0,c.N)(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)},partial:!0},O={name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return(0,d.On)(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){let r=this;return function(t){return(0,d.On)(t)?(0,c.N)(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(O,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function N(e,t,n,r,i,o,l,a,s){let u=s||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),f):null===t||32===t||41===t||(0,d.JQ)(t)?n(t):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),m(t))};function f(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(n))}function h(t){return 62===t?(e.exit("chunkString"),e.exit(a),f(t)):null===t||60===t||(0,d.HP)(t)?n(t):(e.consume(t),92===t?p:h)}function p(t){return 60===t||62===t||92===t?(e.consume(t),h):h(t)}function m(i){return!c&&(null===i||41===i||(0,d.Ee)(i))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),t(i)):c<u&&40===i?(e.consume(i),c++,m):41===i?(e.consume(i),c--,m):null===i||32===i||40===i||(0,d.JQ)(i)?n(i):(e.consume(i),92===i?g:m)}function g(t){return 40===t||41===t||92===t?(e.consume(t),m):m(t)}}function P(e,t,n,r,i,o){let l,a=this,s=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),u};function u(f){return s>999||null===f||91===f||93===f&&!l||94===f&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(f):93===f?(e.exit(o),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(0,d.HP)(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(t){return null===t||91===t||93===t||(0,d.HP)(t)||s++>999?(e.exit("chunkString"),u(t)):(e.consume(t),l||(l=!(0,d.On)(t)),92===t?f:c)}function f(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function L(e,t,n,r,i,o){let l;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),l=40===t?41:t,a):n(t)};function a(n){return n===l?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),s(n))}function s(t){return t===l?(e.exit(o),a(l)):null===t?n(t):(0,d.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),
27(0,c.N)(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===l||null===t||(0,d.HP)(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?f:u)}function f(t){return t===l||92===t?(e.consume(t),u):u(t)}}function I(e,t){let n;return function r(i){return(0,d.HP)(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):(0,d.On)(i)?(0,c.N)(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}var D=n(49710);let _={tokenize:function(e,t,n){return function(t){return(0,d.Ee)(t)?I(e,r)(t):n(t)};function r(t){return L(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return(0,d.On)(t)?(0,c.N)(e,o,"whitespace")(t):o(t)}function o(e){return null===e||(0,d.HP)(e)?t(e):n(e)}},partial:!0},j={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),(0,c.N)(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?o(n):(0,d.HP)(n)?e.attempt(F,t,o)(n):(e.enter("codeFlowValue"),function n(r){return null===r||(0,d.HP)(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function o(n){return e.exit("codeIndented"),t(n)}}},F={tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):(0,d.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):(0,c.N)(e,o,"linePrefix",5)(t)}function o(e){let o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):(0,d.HP)(e)?i(e):n(e)}},partial:!0},z={name:"setextUnderline",tokenize:function(e,t,n){let r,i=this;return function(t){var l;let a,s=i.events.length;for(;s--;)if("lineEnding"!==i.events[s][1].type&&"linePrefix"!==i.events[s][1].type&&"content"!==i.events[s][1].type){a="paragraph"===i.events[s][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||a)?(e.enter("setextHeadingLine"),r=t,l=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),(0,d.On)(n)?(0,c.N)(e,o,"lineSuffix")(n):o(n))}(l)):n(t)};function o(r){return null===r||(0,d.HP)(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);let l={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",l,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=l,e.push(["exit",l,t]),e}},H=["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"],B=["pre","script","style","textarea"],$={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(m.B,t,n)}},partial:!0},U={tokenize:function(e,t,n){let r=this;return function(t){return(0,d.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},V={tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},W={name:"codeFenced",tokenize:function(e,t,n){let r,i=this,o={tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l};
27function l(t){return e.enter("codeFencedFence"),(0,d.On)(t)?(0,c.N)(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(o++,e.consume(i),t):o>=a?(e.exit("codeFencedFenceSequence"),(0,d.On)(i)?(0,c.N)(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||(0,d.HP)(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0},l=0,a=0;return function(t){var o=t;let u=i.events[i.events.length-1];return l=u&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,r=o,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a<3?n(i):(e.exit("codeFencedFenceSequence"),(0,d.On)(i)?(0,c.N)(e,s,"whitespace")(i):s(i))}(o)};function s(o){return null===o||(0,d.HP)(o)?(e.exit("codeFencedFence"),i.interrupt?t(o):e.check(V,f,g)(o)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,d.HP)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(i)):(0,d.On)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,c.N)(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(o))}function u(t){return null===t||(0,d.HP)(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,d.HP)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function f(t){return e.attempt(o,g,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return l>0&&(0,d.On)(t)?(0,c.N)(e,m,"linePrefix",l+1)(t):m(t)}function m(t){return null===t||(0,d.HP)(t)?e.check(V,f,g)(t):(e.enter("codeFlowValue"),function t(n){return null===n||(0,d.HP)(n)?(e.exit("codeFlowValue"),m(n)):(e.consume(n),t)}(t))}function g(n){return e.exit("codeFenced"),t(n)}},concrete:!0},q=document.createElement("i");function K(e){let t="&"+e+";";q.innerHTML=t;let n=q.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let G={name:"characterReference",tokenize:function(e,t,n){let r,i,o=this,l=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),r=31,i=d.lV,u(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=d.ok,u):(e.enter("characterReferenceValue"),r=7,i=d.BM,u(t))}function u(a){if(59===a&&l){let r=e.exit("characterReferenceValue");return i!==d.lV||K(o.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return i(a)&&l++<r?(e.consume(a),u):n(a)}}},Y={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return(0,d.ol)(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},J={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),(0,c.N)(e,t,"linePrefix")}}},X={name:"labelEnd",tokenize:function(e,t,n){let r,i,o=this,l=o.events.length;for(;l--;)if(("labelImage"===o.events[l][1].type||"labelLink"===o.events[l][1].type)&&!o.events[l][1]._balanced){r=o.events[l][1];break}return function(t){return r?r._inactive?c(t):(i=o.parser.defined.includes((0,D.B)(o.sliceSerialize({start:r.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a):n(t)};function a(t){return 40===t?e.attempt(Z,u,i?u:c)(t):91===t?e.attempt(Q,u,i?s:c)(t):i?u(t):c(t)}function s(t){return e.attempt(ee,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,i,l,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=a);let u={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[i][1].end)},d={type:"labelText",start:Object.assign({},e[r+s+2][1].end),end:Object.assign({},e[i-2][1].start)};return l=[["enter",u,t],["enter",c,t]],l=(0,o.V)(l,e.slice(r+1,r+s+3)),l=(0,o.V)(l,[["enter",d,t]]
27),l=(0,o.V)(l,(0,E.W)(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),l=(0,o.V)(l,[["exit",d,t],e[i-2],e[i-1],["exit",c,t]]),l=(0,o.V)(l,e.slice(i+1)),l=(0,o.V)(l,[["exit",u,t]]),(0,o.m)(e,r,e.length,l),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){let n=e[t][1];("labelImage"===n.type||"labelLink"===n.type||"labelEnd"===n.type)&&(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++)}return e}},Z={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return(0,d.Ee)(t)?I(e,i)(t):i(t)}function i(t){return 41===t?u(t):N(e,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return(0,d.Ee)(t)?I(e,a)(t):u(t)}function l(e){return n(e)}function a(t){return 34===t||39===t||40===t?L(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function s(t){return(0,d.Ee)(t)?I(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},Q={tokenize:function(e,t,n){let r=this;return function(t){return P.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes((0,D.B)(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},ee={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},et={name:"labelStartImage",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:X.resolveAll};var en=n(55520);let er={name:"attention",tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,o=(0,en.S)(i);return function(l){return n=l,e.enter("attentionSequence"),function l(a){if(a===n)return e.consume(a),l;let s=e.exit("attentionSequence"),u=(0,en.S)(a),c=!u||2===u&&o||r.includes(a),d=!o||2===o&&u||r.includes(i);return s._open=!!(42===n?c:c&&(o||!d)),s._close=!!(42===n?d:d&&(u||!c)),t(a)}(l)}},resolveAll:function(e,t){let n,r,i,l,a,s,u,c,d=-1;for(;++d<e.length;)if("enter"===e[d][0]&&"attentionSequence"===e[d][1].type&&e[d][1]._close){for(n=d;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[d][1]).charCodeAt(0)){if((e[n][1]._close||e[d][1]._open)&&(e[d][1].end.offset-e[d][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[d][1].end.offset-e[d][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[d][1].end.offset-e[d][1].start.offset>1?2:1;let f=Object.assign({},e[n][1].end),h=Object.assign({},e[d][1].start);ei(f,-s),ei(h,s),l={type:s>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[d][1].start),end:h},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[d][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},l.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},l.start),e[d][1].start=Object.assign({},a.end),u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=(0,o.V)(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=(0,o.V)(u,[["enter",r,t],["enter",l,t],["exit",l,t],["enter",i,t]]),u=(0,o.V)(u,(0,E.W)(t.parser.constructs.insideSpan.null,e.slice(n+1,d),t)),u=(0,o.V)(u,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[d][1].end.offset-e[d][1].start.offset?(c=2,u=(0,o.V)(u,[["enter",e[d][1],t],["exit",e[d][1],t]])):c=0,(0,o.m)(e,n-1,d-n+3,u),d=n+u.length-c-2;break}}for(d=-1;++d<e.length;)"attentionSequence"===e[d][1].type&&(e[d][1].type="data");return e}};function ei(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let eo={name:"labelStartLink",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:X.resolveAll},el={42:T,43:T,45:T,48:T,49:T,50:T,51:T,52:T,53:T,54:T,55:T,56:T,57:T,62:O},ea={91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,P.call(i,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function o(t){return(r=(0,D.B)(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),l):n(t)}function l(t){return(0,d.Ee)(t)?I(e,a)(t):a(t)}function a(t){return N(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(_,u,u)(t)}function u(t){return(0,d.On)(t)?(0,c.N)(e,f,"whitespace")(t):f(t)}
27function f(o){return null===o||(0,d.HP)(o)?(e.exit("definition"),i.parser.defined.push(r),t(o)):n(o)}}}},es={[-2]:j,[-1]:j,32:j},eu={35:{name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(i){var o;return e.enter("atxHeading"),o=i,e.enter("atxHeadingSequence"),function i(o){return 35===o&&r++<6?(e.consume(o),i):null===o||(0,d.Ee)(o)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||(0,d.HP)(r)?(e.exit("atxHeading"),t(r)):(0,d.On)(r)?(0,c.N)(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||(0,d.Ee)(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(o)):n(o)}(o)}},resolve:function(e,t){let n,r,i=e.length-2,l=3;return"whitespace"===e[3][1].type&&(l+=2),i-2>l&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(l===i-1||i-4>l&&"whitespace"===e[i-2][1].type)&&(i-=l+1===i?2:4),i>l&&(n={type:"atxHeadingText",start:e[l][1].start,end:e[i][1].end},r={type:"chunkText",start:e[l][1].start,end:e[i][1].end,contentType:"text"},(0,o.m)(e,l,i-l+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},42:M,45:[z,M],60:{name:"htmlFlow",tokenize:function(e,t,n){let r,i,o,l,a,s=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),u};function u(l){return 33===l?(e.consume(l),c):47===l?(e.consume(l),i=!0,p):63===l?(e.consume(l),r=3,s.interrupt?t:L):(0,d.CW)(l)?(e.consume(l),o=String.fromCharCode(l),m):n(l)}function c(i){return 45===i?(e.consume(i),r=2,f):91===i?(e.consume(i),r=5,l=0,h):(0,d.CW)(i)?(e.consume(i),r=4,s.interrupt?t:L):n(i)}function f(r){return 45===r?(e.consume(r),s.interrupt?t:L):n(r)}function h(r){let i="CDATA[";return r===i.charCodeAt(l++)?(e.consume(r),l===i.length)?s.interrupt?t:E:h:n(r)}function p(t){return(0,d.CW)(t)?(e.consume(t),o=String.fromCharCode(t),m):n(t)}function m(l){if(null===l||47===l||62===l||(0,d.Ee)(l)){let a=47===l,u=o.toLowerCase();return!a&&!i&&B.includes(u)?(r=1,s.interrupt?t(l):E(l)):H.includes(o.toLowerCase())?(r=6,a)?(e.consume(l),g):s.interrupt?t(l):E(l):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(l):i?function t(n){return(0,d.On)(n)?(e.consume(n),t):C(n)}(l):y(l))}return 45===l||(0,d.lV)(l)?(e.consume(l),o+=String.fromCharCode(l),m):n(l)}function g(r){return 62===r?(e.consume(r),s.interrupt?t:E):n(r)}function y(t){return 47===t?(e.consume(t),C):58===t||95===t||(0,d.CW)(t)?(e.consume(t),v):(0,d.On)(t)?(e.consume(t),y):C(t)}function v(t){return 45===t||46===t||58===t||95===t||(0,d.lV)(t)?(e.consume(t),v):b(t)}function b(t){return 61===t?(e.consume(t),w):(0,d.On)(t)?(e.consume(t),b):y(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,x):(0,d.On)(t)?(e.consume(t),w):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||(0,d.Ee)(n)?b(n):(e.consume(n),t)}(t)}function x(t){return t===a?(e.consume(t),a=null,k):null===t||(0,d.HP)(t)?n(t):(e.consume(t),x)}function k(e){return 47===e||62===e||(0,d.On)(e)?y(e):n(e)}function C(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||(0,d.HP)(t)?E(t):(0,d.On)(t)?(e.consume(t),S):n(t)}function E(t){return 45===t&&2===r?(e.consume(t),A):60===t&&1===r?(e.consume(t),O):62===t&&4===r?(e.consume(t),I):63===t&&3===r?(e.consume(t),L):93===t&&5===r?(e.consume(t),P):(0,d.HP)(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check($,D,M)(t)):null===t||(0,d.HP)(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),E)}function M(t){return e.check(U,T,D)(t)}function T(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),R}function R(t){return null===t||(0,d.HP)(t)?M(t):(e.enter("htmlFlowData"),E(t))}function A(t){return 45===t?(e.consume(t),L):E(t)}function O(t){return 47===t?(e.consume(t),o="",N):E(t)}function N(t){if(62===t){let n=o.toLowerCase();return B.includes(n)?(e.consume(t),I):E(t)}return(0,d.CW)(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),N):E(t)}function P(t){return 93===t?(e.consume(t),L):E(t)}function L(t){return 62===t?(e.consume(t),I):45===t&&2===r?(e.consume(t),L):E(t)}function I(t){return null===t||(0,d.HP)(t)?(e.exit("htmlFlowData"),D(t)):(e.consume(t),I)}function D(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},61:z,95:M,96:W,126:W},ec={38:G,92:Y},ed={[-5]:J,[-4]:J,[-3]:J,33:et,38:G,42:er,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return(0,d.CW)(t)?(e.consume(t),o):64===t?n(t):a(t)}function o(t){return 43===t||45===t||46===t||(0,d.lV)(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,l):(43===n||45===n||46===n||(0,d.lV)(n))&&r++<32?(e.consume(n),t):(r=0,a(n))}(t)):a(t)}function l(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||(0,d.JQ)(r)?n(r):(e.consume(r),l)}function a(t){return 64===t?(e.consume(t),s):(0,d.cx)(t)?(e.consume(t),a):n(t)}function s(i){return(0,d.lV)(i)?function i(o){return 46===o?(e.consume(o),r=0,s):62===o?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(o),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(o){if((45===o||(0,d.lV)(o))&&r++<63){let n=45===o?t:i;return e.consume(o),n}return n(o)}(o)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,o,l=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),k):63===t?(e.consume(t),w):(0,d.CW)(t)?(e.consume(t),S):n(t)}function s(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,m):(0,d.CW)(t)?(e.consume(t),b):n(t)}function u(t){return 45===t?(e.consume(t),p):n(t)}function f(t){return null===t?n(t):45===t?(e.consume(t),h):(0,d.HP)(t)?(o=f,P(t)):(e.consume(t),f)}function h(t){return 45===t?(e.consume(t),p):f(t)}function p(e){return 62===e?N(e):45===e?h(e):f(e)}function m(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?g:m):n(t)}function g(t){return null===t?n(t):93===t?(e.consume(t),y):(0,d.HP)(t)?(o=g,P(t)):(e.consume(t),g)}function y(t){return 93===t?(e.consume(t),v):g(t)}function v(t){return 62===t?N(t):93===t?(e.consume(t),v):g(t)}function b(t){return null===t||62===t?N(t):(0,d.HP)(t)?(o=b,P(t)):(e.consume(t),b)}function w(t){return null===t?n(t):63===t?(e.consume(t),x):(0,d.HP)(t)?(o=w,P(t)):(e.consume(t),w)}function x(e){return 62===e?N(e):w(e)}function k(t){return(0,d.CW)(t)?(e.consume(t),C):n(t)}function C(t){return 45===t||(0,d.lV)(t)?(e.consume(t),C):function t(n){return(0,d.HP)(n)?(o=t,P(n)):(0,d.On)(n)?(e.consume(n),t):N(n)}(t)}function S(t){return 45===t||(0,d.lV)(t)?(e.consume(t),S):47===t||62===t||(0,d.Ee)(t)?E(t):n(t)}function E(t){return 47===t?(e.consume(t),N):58===t||95===t||(0,d.CW)(t)?(e.consume(t),M):(0,d.HP)(t)?(o=E,P(t)):(0,d.On)(t)?(e.consume(t),E):N(t)}function M(t){return 45===t||46===t||58===t||95===t||(0,d.lV)(t)?(e.consume(t),M):function t(n){return 61===n?(e.consume(n),T):(0,d.HP)(n)?(o=t,P(n)):(0,d.On)(n)?(e.consume(n),t):E(n)}(t)}function T(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,R):(0,d.HP)(t)?(o=T,P(t)):(0,d.On)(t)?(e.consume(t),T):(e.consume(t),A)}function R(t){return t===r?(e.consume(t),r=void 0,O):null===t?n(t):(0,d.HP)(t)?(o=R,P(t)):(e.consume(t),R)}function A(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||(0,d.Ee)(t)?E(t):(e.consume(t),A)}function O(e){return 47===e||62===e||(0,d.Ee)(e)?E(e):n(e)}function N(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function P(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),L}function L(t){return(0,d.On)(t)?(0,c.N)(e,I,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):I(t)}function I(t){return e.enter("htmlTextData"),o(t)}}}],91:eo,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return(0,d.HP)(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},Y],93:X,95:er,96:{name:"codeText",tokenize:function(e,t,n){let r,i,o=0;
27return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),o++,t):(e.exit("codeTextSequence"),l(n))}(t)};function l(s){return null===s?n(s):32===s?(e.enter("space"),e.consume(s),e.exit("space"),l):96===s?(i=e.enter("codeTextSequence"),r=0,function n(l){return 96===l?(e.consume(l),r++,n):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(l)):(i.type="codeTextData",a(l))}(s)):(0,d.HP)(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),l):(e.enter("codeTextData"),a(s))}function a(t){return null===t||32===t||96===t||(0,d.HP)(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),a)}},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}}},ef={null:[er,b]},eh={null:[42,95]},ep={null:[]},em=/[\0\t\n\r]/g;function eg(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let ey=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ev(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return eg(n.slice(t?2:1),t?16:10)}return K(n)||e}var eb=n(22948);let ew={}.hasOwnProperty;function ex(e){return{line:e.line,column:e.column,offset:e.offset}}function ek(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+(0,eb.L)({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+(0,eb.L)({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+(0,eb.L)({start:t.start,end:t.end})+") is still open")}function eC(e){let t=this;t.parser=function(n){var l,a;let c,p,m,g;return"string"!=typeof(l={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(a=l,l=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(v),autolinkProtocol:c,autolinkEmail:c,atxHeading:r(m),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:c,characterReference:c,codeFenced:r(p),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:r(p,o),codeText:r(function(){return{type:"inlineCode",value:""}},o),codeTextData:c,data:c,codeFlowValue:c,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(g),hardBreakTrailing:r(g),htmlFlow:r(y,o),htmlFlowData:c,htmlText:r(y,o),htmlTextData:c,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:o,link:r(v),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(b,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(b),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:r(m),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:a(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:a(),autolinkEmail:function(e){d.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:a(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:h,characterReferenceMarkerNumeric:h,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=eg(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=K(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=ex(e.end)},codeFenced:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:d,codeIndented:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:d,data:d,definition:a(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,D.B)(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:a(),hardBreakEscape:a(f),hardBreakTrailing:a(f),htmlFlow:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:d,htmlText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:d,image:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(ey,ev),n.identifier=(0,D.B)(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=ex(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.t
27ype)&&(c.call(this,e),d.call(this,e))},link:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,D.B)(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:a(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:a(),thematicBreak:a()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(ew.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},i={stack:[r],tokenStack:[],config:t,enter:l,exit:s,buffer:o,resume:u,data:n},a=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?a.push(c):c=function(e,t,n){let r,i,o,l,a=t-1,s=-1,u=!1;for(;++a<=n;){let t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,l=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||l||s||o||(o=a),l=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:l=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let l=a;for(i=void 0;l--;){let t=e[l];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=l}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(a,0,["enter",i,t[2]]),a++,n++,o=void 0,l=!0}}}return e[t][1]._spread=u,n}(e,a.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];ew.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},i),e[c][1])}if(i.tokenStack.length>0){let e=i.tokenStack[i.tokenStack.length-1];(e[1]||ek).call(i,void 0,e[0])}for(r.position={start:ex(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:ex(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){l.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:ex(t.start),end:void 0}}function a(e){return function(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||ek).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+(0,eb.L)({start:e.start,end:e.end})+"): itâs not open");n.position.end=ex(e.end)}function u(){return(0,i.d)(this.stack.pop())}function c(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:ex(e.start),end:void 0},t.push(n)),this.stack.push(n)}function d(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=ex(e.end)}function f(){this.data.atHardBreak=!0}function h(e){this.data.characterReferenceType=e.type}function p(){return{type:"code",lang:null,meta:null,value:""}}function m(){return{type:"heading",depth:0,children:[]}}function g(){return{type:"break"}}function y(){return{type:"html",value:""}}function v(){return{type:"link",title:null,url:"",children:[]}}function b(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(a)(function(e){for(;!s(e););return e}((function(e){let t={defined:[],lazy:{},constructs:(0,u.y)([r,...(e||{}).extensions||[]]),content:n(f),document:n(h),flow:n(v),string:n(w),text:n(x)};return t;function n(e){return function(n){return function(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),i={},l=[],a=[],s=[],u={consume:function(e){(0,d.HP)(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,v()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e}
27,enter:function(e,t){let n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){let t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t},attempt:g(function(e,t){y(e,t.from)}),check:g(m),interrupt:g(m,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let o,l=e[r];if("string"==typeof l)o=l;else switch(l){case -5:o="\r";break;case -4:o="\n";break;case -3:o="\r\n";break;case -2:o=t?" ":" ";break;case -1:if(!t&&n)continue;o=" ";break;default:o=String.fromCharCode(l)}n=-2===l,i.push(o)}return i.join("")}(h(e),t)},now:p,defineSkip:function(e){i[e.line]=e.column,v()},write:function(e){return(a=(0,o.V)(a,e),function(){let e;for(;r._index<a.length;){let n=a[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),f=f(t)}else f=f(n)}}(),null!==a[a.length-1])?[]:(y(t,0),c.events=(0,E.W)(l,c.events,c),c.events)}},f=t.tokenize.call(c,u);return t.resolveAll&&l.push(t),c;function h(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,o=t.end._index,l=t.end._bufferIndex;if(r===o)n=[e[r].slice(i,l)];else{if(n=e.slice(r,o),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}l>0&&n.push(e[o].slice(0,l))}return n}(a,e)}function p(){let{line:e,column:t,offset:n,_index:i,_bufferIndex:o}=r;return{line:e,column:t,offset:n,_index:i,_bufferIndex:o}}function m(e,t){t.restore()}function g(e,t){return function(n,i,o){var l;let a,d,f,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(l=n,function(e){let t=null!==e&&l[e],n=null!==e&&l.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(a=e,d=0,0===e.length)?o:g(e[d])}function g(e){return function(n){return(h=function(){let e=p(),t=c.previous,n=c.currentConstruct,i=c.events.length,o=Array.from(s);return{restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,s=o,v()},from:i}}(),f=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?b(n):e.tokenize.call(t?Object.assign(Object.create(c),t):c,u,y,b)(n)}}function y(t){return e(f,h),i}function b(e){return(h.restore(),++d<a.length)?g(a[d]):o}}}function y(e,t){e.resolveAll&&!l.includes(e)&&l.push(e),e.resolve&&(0,o.m)(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function v(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(a).document().write((p=1,m="",g=!0,function(e,t,n){let r,i,o,l,a,s=[];for(e=m+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),o=0,m="",g&&(65279===e.charCodeAt(0)&&o++,g=void 0);o<e.length;){if(em.lastIndex=o,l=(r=em.exec(e))&&void 0!==r.index?r.index:e.length,a=e.charCodeAt(l),!r){m=e.slice(o);break}if(10===a&&o===l&&c)s.push(-3),c=void 0;else switch(c&&(s.push(-5),c=void 0),o<l&&(s.push(e.slice(o,l)),p+=l-o),a){case 0:s.push(65533),p++;break;case 9:for(i=4*Math.ceil(p/4),s.push(-2);p++<i;)s.push(-1);break;case 10:s.push(-4),p=1;break;default:c=!0,p=1}o=l+1}return n&&(c&&s.push(-5),m&&s.push(m),s.push(null)),s})(n,l,!0))))}}},84067:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return s},getImageProps:function(){return a}});let r=n(71685),i=n(63365),o=n(30837),l=r._(n(47951));function a(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let s=o.Image},84401:(e,t,n)=>{"use strict";function r(){}function i(){}n.d(t,{HB:()=>i,ok:()=>r})},85446:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(90953).A)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])}
27,85793:(e,t,n)=>{var r=n(67639),i=n(88506),o=n(96733),l=0/0,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return l;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):a.test(e)?l:+e}},85857:(e,t,n)=>{"use strict";n.d(t,{B:()=>s});var r,i=n(38848),o=n(57495),l=(r||(r=n.t(i,2)))[" useId ".trim().toString()]||(()=>void 0),a=0;function s(e){let[t,n]=i.useState(l());return(0,o.N)(()=>{e||n(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},85986:(e,t,n)=>{"use strict";n.d(t,{c:()=>u});let r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function i(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}let o={date:i({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:i({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:i({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},l={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function a(e){return(t,n)=>{let r;if("formatting"===((null==n?void 0:n.context)?String(n.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,i=(null==n?void 0:n.width)?String(n.width):t;r=e.formattingValues[i]||e.formattingValues[t]}else{let t=e.defaultWidth,i=(null==n?void 0:n.width)?String(n.width):e.defaultWidth;r=e.values[i]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function s(e){return function(t){let n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],l=t.match(o);if(!l)return null;let a=l[0],s=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(s,e=>e.test(a)):function(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(s,e=>e.test(a));return n=e.valueCallback?e.valueCallback(u):u,{value:n=r.valueCallback?r.valueCallback(n):n,rest:t.slice(a.length)}}}let u={code:"en-US",formatDistance:(e,t,n)=>{let i,o=r[e];if(i="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null==n?void 0:n.addSuffix)if(n.comparison&&n.comparison>0)return"in "+i;else return i+" ago";return i},formatLong:o,formatRelative:(e,t,n,r)=>l[e],localize:{ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:a({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:a({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:a({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:a({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
27ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:a({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function(e){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;let i=r[0],o=t.match(e.parsePattern);if(!o)return null;let l=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:l=n.valueCallback?n.valueCallback(l):l,rest:t.slice(i.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:s({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:s({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:s({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:s({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:s({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},86356:(e,t,n)=>{"use strict";n.d(t,{A:()=>q});var r=n(18090),i=n(28864);let o=Math.PI/180,l=180/Math.PI,a=4/29,s=6/29,u=6/29*3*(6/29),c=6/29*(6/29)*(6/29);function d(e){if(e instanceof h)return new h(e.l,e.a,e.b,e.opacity);if(e instanceof b)return w(e);e instanceof i.Gw||(e=(0,i.b)(e));var t,n,r=y(e.r),o=y(e.g),l=y(e.b),a=p((.2225045*r+.7168786*o+.0606169*l)/1);return r===o&&o===l?t=n=a:(t=p((.4360747*r+.3850649*o+.1430804*l)/.96422),n=p((.0139322*r+.0971045*o+.7141733*l)/.82521)),new h(116*a-16,500*(t-a),200*(a-n),e.opacity)}function f(e,t,n,r){return 1==arguments.length?d(e):new h(e,t,n,null==r?1:r)}function h(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function p(e){return e>c?Math.pow(e,1/3):e/u+a}function m(e){return e>s?e*e*e:u*(e-a)}function g(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function y(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function v(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof b)return new b(e.h,e.c,e.l,e.opacity);if(e instanceof h||(e=d(e)),0===e.a&&0===e.b)return new b(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*l;return new b(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new b(e,t,n,null==r?1:r)}function b(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function w(e){if(isNaN(e.h))return new h(e.l,0,0,e.opacity);var t=e.h*o;return new h(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}(0,r.A)(h,f,(0,r.X)(i.Q1,{brighter(e){return new h(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new h(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=.96422*m(t),e=+m(e),n=.82521*m(n),new i.Gw(g(3.1338561*t-1.6168667*e-.4906146*n),g(-.9787684*t+1.9161415*e+.033454*n),g(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),(0,r.A)(b,v,(0,r.X)(i.Q1,{brighter(e){return new b(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new b(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return w(this).rgb()}}));var x=n(9120);function k(e){return function(t,n){var r=e((t=v(t)).h,(n=v(n)).h),i=(0,x.Ay)(t.c,n.c),o=(0,x.Ay)(t.l,n.l),l=(0,x.Ay)(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=o(e),t.opacity=l(e),t+""}}}let C=k(x.lG);var S=k(x.Ay);function E(e){return function(t,n){var r=e((t=(0,i.KI)(t)).h,(n=(0,i.KI)(n)).h),o=(0,x.Ay)(t.s,n.s),l=(0,x.Ay)(t.l,n.l),a=(0,x.Ay)(t.opacity,n.opacity);return function(e){return t.h=r(e),t.s=o(e),t.l=l(e),t.opacity=a(e),t+""}}}let M=E(x.lG);var T=E(x.Ay),R=-1.78277*.29227-.1347134789;function A(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof O)return new O(e.h,e.s,e.l,e.opacity);e instanceof i.Gw||(e=(0,i.b)(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(R*r+-1.7884503806*t-3.5172982438*n)/(R+-1.7884503806-3.5172982438),a=r-o,s=-((1.97294*(n-o)- -.29227*a
27)/.90649),u=Math.sqrt(s*s+a*a)/(1.97294*o*(1-o)),c=u?Math.atan2(s,a)*l-120:NaN;return new O(c<0?c+360:c,u,o,e.opacity)}(e):new O(e,t,n,null==r?1:r)}function O(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function N(e){return function t(n){function r(t,r){var i=e((t=A(t)).h,(r=A(r)).h),o=(0,x.Ay)(t.s,r.s),l=(0,x.Ay)(t.l,r.l),a=(0,x.Ay)(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=l(Math.pow(e,n)),t.opacity=a(e),t+""}}return n*=1,r.gamma=t,r}(1)}(0,r.A)(O,A,(0,r.X)(i.Q1,{brighter(e){return e=null==e?i.Uw:Math.pow(i.Uw,e),new O(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?i.ef:Math.pow(i.ef,e),new O(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*o,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),l=Math.sin(e);return new i.Gw(255*(t+n*(-.14861*r+1.78277*l)),255*(t+n*(-.29227*r+-.90649*l)),255*(t+1.97294*r*n),this.opacity)}}));var P={lab:function(e,t){var n=(0,x.Ay)((e=f(e)).l,(t=f(t)).l),r=(0,x.Ay)(e.a,t.a),i=(0,x.Ay)(e.b,t.b),o=(0,x.Ay)(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=r(t),e.b=i(t),e.opacity=o(t),e+""}},hcl:C,"hcl-long":S,hsl:M,"hsl-long":T,cubehelix:N(x.lG),"cubehelix-long":N(x.Ay),rgb:n(81518).Ay},L=n(67299),I=n(33265),D=n(92063),_=n(19891),j=n(56083),F=n(98459),z=n(40718),H=new Date(Date.UTC(2020,1,2,3,4,5)),B={day:L.UA,hour:I.Ag,minute:D.wX,month:_.Ui,second:j.R,week:F.YP,year:z.he},$={day:L.dA,hour:I.pz,minute:D.vD,month:_.R6,second:j.R,week:F.Hl,year:z.Mb},U=n(33463),V=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],W={domain:function(e,t){t.domain&&e.domain(t.domain)},nice:function(e,t){if("nice"in t&&void 0!==t.nice&&"nice"in e){var n=t.nice;if("boolean"==typeof n)n&&e.nice();else if("number"==typeof n)e.nice(n);else{var r="2020-02-02 03:04"===e.tickFormat(1,"%Y-%m-%d %H:%M")(H);if("string"==typeof n)e.nice(r?$[n]:B[n]);else{var i=n.interval,o=n.step,l=(r?$[i]:B[i]).every(o);null!=l&&e.nice(l)}}}},zero:function(e,t){if("zero"in t&&!0===t.zero){var n=e.domain(),r=n[0],i=n[1],o=i<r,l=o?[i,r]:[r,i],a=[Math.min(0,l[0]),Math.max(0,l[1])];e.domain(o?a.reverse():a)}},interpolate:function(e,t){if("interpolate"in t&&"interpolate"in e&&void 0!==t.interpolate){var n=function(e){switch(e){case"lab":case"hcl":case"hcl-long":case"hsl":case"hsl-long":case"cubehelix":case"cubehelix-long":case"rgb":return P[e]}var t=e.type,n=e.gamma,r=P[t];return void 0===n?r:r.gamma(n)}(t.interpolate);e.interpolate(n)}},round:function(e,t){"round"in t&&void 0!==t.round&&(t.round&&"interpolate"in t&&void 0!==t.interpolate?console.warn("[visx/scale/applyRound] ignoring round: scale config contains round and interpolate. only applying interpolate. config:",t):"round"in e?e.round(t.round):"interpolate"in e&&t.round&&e.interpolate(U.A))},align:function(e,t){"align"in e&&"align"in t&&void 0!==t.align&&e.align(t.align)},base:function(e,t){"base"in e&&"base"in t&&void 0!==t.base&&e.base(t.base)},clamp:function(e,t){"clamp"in e&&"clamp"in t&&void 0!==t.clamp&&e.clamp(t.clamp)},constant:function(e,t){"constant"in e&&"constant"in t&&void 0!==t.constant&&e.constant(t.constant)},exponent:function(e,t){"exponent"in e&&"exponent"in t&&void 0!==t.exponent&&e.exponent(t.exponent)},padding:function(e,t){"padding"in e&&"padding"in t&&void 0!==t.padding&&e.padding(t.padding),"paddingInner"in e&&"paddingInner"in t&&void 0!==t.paddingInner&&e.paddingInner(t.paddingInner),"paddingOuter"in e&&"paddingOuter"in t&&void 0!==t.paddingOuter&&e.paddingOuter(t.paddingOuter)},range:function(e,t){t.range&&e.range(t.range)},reverse:function(e,t){if(t.reverse){var n=e.range().slice().reverse();e.range(n)}},unknown:function(e,t){"unknown"in e&&"unknown"in t&&void 0!==t.unknown&&e.unknown(t.unknown)}};function q(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=new Set(t),i=V.filter(function(e){return r.has(e)});return function(e,t){return void 0!==t&&i.forEach(function(n){W[n](e,t)}),e}}},86514:(e,t,n)=>{"use strict";var r=n(38848),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,l=r.useEffect,a=r.useLayoutEffect,s=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return a(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),l(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},86645:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>U,UC:()=>K,ZL:()=>q,bL:()=>V,l9:()=>W});var r=n(38848),i=n(4529),o=n(25300),l=n(89486),a=n(76937),s=n(85857),u=n(90501),c=n(36358),d=n(94205),f=n(5461),h=n(31054),p=n(67821),m=n(57215),g=n(38476),[y,v]=(0,l.A)("Tooltip",[u.Bk]),b=(0,u.Bk)(),w="TooltipProvider",x="tooltip.open",[k,C]=y(w),S=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:l}=e,a=r.useRef(!0),s=r.useRef(!1),u=r.useRef(0);return r.useEffect(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,g.jsx)(k,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:r.useCallback(()=>{window.clearTimeout(u.current),a.current=!1},[]),onClose:r.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a.current=!0,i)},[i]),isPointerInTransitRef:s,onPointerInTransitChange:r.useCallback(e=>{s.current=e},[]),disableHoverableContent:o,children:l})};S.displayName=w;var E="Tooltip",[M,T]=y(E),R=e=>{let{__scopeTooltip:t,children:n,open:i,defaultOpen:o,onOpenChange:l,disableHoverableContent:a,delayDuration:c}=e,d=C(E,e.__scopeTooltip),f=b(t),[h,m]=r.useState(null),y=(0,s.B)(),v=r.useRef(0),w=null!=a?a:d.disableHoverableContent,k=null!=c?c:d.delayDuration,S=r.useRef(!1),[T,R]=(0,p.i)({prop:i,defaultProp:null!=o&&o,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(x))):d.onClose(),null==l||l(e)},caller:E}),A=r.useMemo(()=>T?S.current?"delayed-open":"instant-open":"closed",[T]),O=r.useCallback(()=>{window.clearTimeout(v.current),v.current=0,S.current=!1,R(!0)},[R]),N=r.useCallback(()=>{window.clearTimeout(v.current),v.current=0,R(!1)},[R]),P=r.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{S.current=!0,R(!0),v.current=0},k)},[k,R]);return r.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),(0,g.jsx)(u.bL,{...f,children:(0,g.jsx)(M,{scope:t,contentId:y,open:T,stateAttribute:A,trigger:h,onTriggerChange:m,onTriggerEnter:r.useCallback(()=>{d.isOpenDelayedRef.current?P():O()},[d.isOpenDelayedRef,P,O]),onTriggerLeave:r.useCallback(()=>{w?N():(window.clearTimeout(v.current),v.current=0)},[N,w]),onOpen:O,onClose:N,disableHoverableContent:w,children:n})})};R.displayName=E;var A="TooltipTrigger",O=r.forwardRef((e,t)=>
27{let{__scopeTooltip:n,...l}=e,a=T(A,n),s=C(A,n),c=b(n),d=r.useRef(null),h=(0,o.s)(t,d,a.onTriggerChange),p=r.useRef(!1),m=r.useRef(!1),y=r.useCallback(()=>p.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),(0,g.jsx)(u.Mz,{asChild:!0,...c,children:(0,g.jsx)(f.sG.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...l,ref:h,onPointerMove:(0,i.mK)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(m.current||s.isPointerInTransitRef.current||(a.onTriggerEnter(),m.current=!0))}),onPointerLeave:(0,i.mK)(e.onPointerLeave,()=>{a.onTriggerLeave(),m.current=!1}),onPointerDown:(0,i.mK)(e.onPointerDown,()=>{a.open&&a.onClose(),p.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:(0,i.mK)(e.onFocus,()=>{p.current||a.onOpen()}),onBlur:(0,i.mK)(e.onBlur,a.onClose),onClick:(0,i.mK)(e.onClick,a.onClose)})})});O.displayName=A;var N="TooltipPortal",[P,L]=y(N,{forceMount:void 0}),I=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=T(N,t);return(0,g.jsx)(P,{scope:t,forceMount:n,children:(0,g.jsx)(d.C,{present:n||o.open,children:(0,g.jsx)(c.Z,{asChild:!0,container:i,children:r})})})};I.displayName=N;var D="TooltipContent",_=r.forwardRef((e,t)=>{let n=L(D,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,l=T(D,e.__scopeTooltip);return(0,g.jsx)(d.C,{present:r||l.open,children:l.disableHoverableContent?(0,g.jsx)(B,{side:i,...o,ref:t}):(0,g.jsx)(j,{side:i,...o,ref:t})})}),j=r.forwardRef((e,t)=>{let n=T(D,e.__scopeTooltip),i=C(D,e.__scopeTooltip),l=r.useRef(null),a=(0,o.s)(t,l),[s,u]=r.useState(null),{trigger:c,onClose:d}=n,f=l.current,{onPointerInTransitChange:h}=i,p=r.useCallback(()=>{u(null),h(!1)},[h]),m=r.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());u(function(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,i),...function(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}(t.getBoundingClientRect())])),h(!0)},[h]);return r.useEffect(()=>()=>p(),[p]),r.useEffect(()=>{if(c&&f){let e=e=>m(e,f),t=e=>m(e,c);return c.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}},[c,f,m,p]),r.useEffect(()=>{if(s){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==c?void 0:c.contains(t))||(null==f?void 0:f.contains(t)),i=!function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let l=t[e],a=t[o],s=l.x,u=l.y,c=a.x,d=a.y;u>r!=d>r&&n<(c-s)*(r-u)/(d-u)+s&&(i=!i)}return i}(n,s);r?p():i&&(p(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,f,s,d,p]),(0,g.jsx)(B,{...e,ref:a})}),[F,z]=y(E,{isInside:!1}),H=(0,h.Dc)("TooltipContent"),B=r.forwardRef((e,t)=>{let{__scopeTooltip:n,children:i,"aria-label":o,onEscapeKeyDown:l,onPointerDownOutside:s,...c}=e,d=T(D,n),f=b(n),{onClose:h}=d;return r.useEffect(()=>(document.addEventListener(x,h),()=>document.removeEventListener(x,h)),[h]),r.useEffect(()=>{if(d.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(d.trigger))&&h()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,h]),(0,g.jsx)(a.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:h,children:(0,g.jsxs)(u.UC,{"data-state":d.stateAttribute,...f,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,g.jsx)(H,{children:i}),(0,g.jsx)(F,{scope:n,isInside:!0,children:(0,g.jsx)(m.bL,{id:d.contentId,role:"tooltip",children:o||i})})]})})});_.displayName=D;var $="TooltipArrow";r.forwardRef((e,t)=>
27{let{__scopeTooltip:n,...r}=e,i=b(n);return z($,n).isInside?null:(0,g.jsx)(u.i3,{...i,...r,ref:t})}).displayName=$;var U=S,V=R,W=O,q=I,K=_},87245:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>f,N_:()=>d});var r=n(8760),i=n(62849),o=n(4033),l="[\0- \xa0áá â-\u2029âã]",a=new RegExp(l),s=RegExp(`${l}$`),u=RegExp(l,"g");function c(e,t){let n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return t&&t.forEach(e=>{let t="string"==typeof e?e:e.scheme;t&&n.push(t)}),!e||e.replace(u,"").match(RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var d=r.CU.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(e=>{if("string"==typeof e)return void(0,i.ZV)(e);(0,i.ZV)(e.scheme,e.optionalSlashes)})},onDestroy(){(0,i.cL)()},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(e,t)=>!!c(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>{let t=/^[a-z][a-z0-9+.-]*:\/\//i.test(e),n=/^[a-z][a-z0-9+.-]*:/i.test(e);if(t||n&&!e.includes("@"))return!0;let r=(e.includes("@")?e.split("@").pop():e).split(/[/?#:]/)[0];return!/^\d{1,3}(\.\d{1,3}){3}$/.test(r)&&!!/\./.test(r)}}),addAttributes(){return{href:{default:null,parseHTML:e=>e.getAttribute("href")},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:e=>{let t=e.getAttribute("href");return!!t&&!!this.options.isAllowedUri(t,{defaultValidate:e=>!!c(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:e=>!!c(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",(0,r.KV)(this.options.HTMLAttributes,e),0]:["a",(0,r.KV)(this.options.HTMLAttributes,{...e,href:""}),0]},markdownTokenName:"link",parseMarkdown:(e,t)=>t.applyMark("link",t.parseInline(e.tokens||[]),{href:e.href,title:e.title||null}),renderMarkdown:(e,t)=>{var n;let r=(null==(n=e.attrs)?void 0:n.href)||"",i=t.renderChildren(e);return`[${i}](${r})`},addCommands(){return{setLink:e=>({chain:t})=>{let{href:n}=e;return!!this.options.isAllowedUri(n,{defaultValidate:e=>!!c(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&t().setMark(this.name,e).setMeta("preventAutolink",!0).run()},toggleLink:e=>({chain:t})=>{let{href:n}=e||{};return(!n||!!this.options.isAllowedUri(n,{defaultValidate:e=>!!c(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}))&&t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[(0,r.Zc)({find:e=>{let t=[];if(e){let{protocols:n,defaultProtocol:r}=this.options,o=(0,i.I6)(e).filter(e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!c(e,n),protocols:n,defaultProtocol:r}));o.length&&o.forEach(e=>{this.options.shouldAutoLink(e.value)&&t.push({text:e.value,data:{href:e.href},index:e.start})})}return t}
27,type:this.type,getAttributes:e=>{var t;return{href:null==(t=e.data)?void 0:t.href}}})]},addProseMirrorPlugins(){var e,t,n;let l=[],{protocols:u,defaultProtocol:d}=this.options;return this.options.autolink&&l.push((e={type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!c(e,u),protocols:u,defaultProtocol:d}),shouldAutoLink:this.options.shouldAutoLink},new o.k_({key:new o.hs("autolink"),appendTransaction:(t,n,o)=>{let l=t.some(e=>e.docChanged)&&!n.doc.eq(o.doc),u=t.some(e=>e.getMeta("preventAutolink"));if(!l||u)return;let{tr:c}=o,d=(0,r.T7)(n.doc,[...t]);if((0,r.FF)(d).forEach(({newRange:t})=>{let n,l,u=(0,r.Nx)(o.doc,t,e=>e.isTextblock);if(u.length>1)n=u[0],l=o.doc.textBetween(n.pos,n.pos+n.node.nodeSize,void 0," ");else if(u.length){let e=o.doc.textBetween(t.from,t.to," "," ");if(!s.test(e))return;n=u[0],l=o.doc.textBetween(n.pos,t.to,void 0," ")}if(n&&l){let t=l.split(a).filter(Boolean);if(t.length<=0)return!1;let s=t[t.length-1],u=n.pos+l.lastIndexOf(s);if(!s)return!1;let d=(0,i.qw)(s).map(t=>t.toObject(e.defaultProtocol));if(!(1===d.length?d[0].isLink:3===d.length&&!!d[1].isLink&&["()","[]"].includes(d[0].value+d[2].value)))return!1;d.filter(e=>e.isLink).map(e=>({...e,from:u+e.start+1,to:u+e.end+1})).filter(e=>!o.schema.marks.code||!o.doc.rangeHasMark(e.from,e.to,o.schema.marks.code)).filter(t=>e.validate(t.value)).filter(t=>e.shouldAutoLink(t.value)).forEach(t=>{(0,r.hO)(t.from,t.to,o.doc).some(t=>t.mark.type===e.type)||c.addMark(t.from,t.to,e.type.create({href:t.href}))})}}),c.steps.length)return c}}))),l.push((t={type:this.type,editor:this.editor,openOnClick:"whenNotEditable"===this.options.openOnClick||this.options.openOnClick,enableClickSelection:this.options.enableClickSelection},new o.k_({key:new o.hs("handleClickLink"),props:{handleClick:(e,n,i)=>{var o,l;if(0!==i.button||!e.editable)return!1;let a=!1;if(t.enableClickSelection&&(a=t.editor.commands.extendMarkRange(t.type.name)),t.openOnClick){let n=null;if(i.target instanceof HTMLAnchorElement)n=i.target;else{let e=i.target,t=[];for(;"DIV"!==e.nodeName;)t.push(e),e=e.parentNode;n=t.find(e=>"A"===e.nodeName)}if(!n)return a;let s=(0,r.gu)(e.state,t.type.name),u=null!=(o=null==n?void 0:n.href)?o:s.href,c=null!=(l=null==n?void 0:n.target)?l:s.target;n&&u&&(window.open(u,c),a=!0)}return a}}}))),this.options.linkOnPaste&&l.push((n={editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink},new o.k_({key:new o.hs("handlePasteLink"),props:{handlePaste:(e,t,r)=>{let{shouldAutoLink:o}=n,{state:l}=e,{selection:a}=l,{empty:s}=a;if(s)return!1;let u="";r.content.forEach(e=>{u+=e.textContent});let c=(0,i.I6)(u,{defaultProtocol:n.defaultProtocol}).find(e=>e.isLink&&e.value===u);return!!u&&!!c&&(void 0===o||!!o(c.value))&&n.editor.commands.setMark(n.type,{href:c.href})}}}))),l}}),f=d},87846:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(90953).A)("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]])},88e3:(e,t,n)=>{"use strict";n.d(t,{m:()=>a});var r=n(46131),i=n(97118),o=n(58698),l=n(74800);function a(e,t,n){let[a,s]=(0,i.x)(null==n?void 0:n.in,e,t),u=(0,l.o)(a),c=(0,l.o)(s);return Math.round((u-(0,r.G)(u)-(c-(0,r.G)(c)))/o.w4)}},88050:(e,t,n)=>{"use strict";n.d(t,{f:()=>function e(t,n,o,l){function a(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return a.floor=e=>(t(e=new Date(+e)),e),a.ceil=e=>(t(e=new Date(e-1)),n(e,1),t(e),e),a.round=e=>{let t=a(e),n=a.ceil(e);return e-t<n-e?t:n},a.offset=(e,t)=>(n(e=new Date(+e),null==t?1:Math.floor(t)),e),a.range=(e,r,i)=>{let o,l=[];
27if(e=a.ceil(e),i=null==i?1:Math.floor(i),!(e<r)||!(i>0))return l;do l.push(o=new Date(+e)),n(e,i),t(e);while(o<e&&e<r);return l},a.filter=r=>e(e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)},(e,t)=>{if(e>=e)if(t<0)for(;++t<=0;)for(;n(e,-1),!r(e););else for(;--t>=0;)for(;n(e,1),!r(e););}),o&&(a.count=(e,n)=>(r.setTime(+e),i.setTime(+n),t(r),t(i),Math.floor(o(r,i))),a.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?a.filter(l?t=>l(t)%e==0:t=>a.count(0,t)%e==0):a:null),a}});let r=new Date,i=new Date},88310:(e,t,n)=>{"use strict";n.d(t,{n:()=>d});var r=n(38848),i=n(25300),o=n(5461),l=n(15381),a=n(38476),s="focusScope.autoFocusOnMount",u="focusScope.autoFocusOnUnmount",c={bubbles:!1,cancelable:!0},d=r.forwardRef((e,t)=>{let{loop:n=!1,trapped:d=!1,onMountAutoFocus:g,onUnmountAutoFocus:y,...v}=e,[b,w]=r.useState(null),x=(0,l.c)(g),k=(0,l.c)(y),C=r.useRef(null),S=(0,i.s)(t,e=>w(e)),E=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(d){let e=function(e){if(E.paused||!b)return;let t=e.target;b.contains(t)?C.current=t:p(C.current,{select:!0})},t=function(e){if(E.paused||!b)return;let t=e.relatedTarget;null!==t&&(b.contains(t)||p(C.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&p(b)});return b&&n.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[d,b,E.paused]),r.useEffect(()=>{if(b){m.add(E);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(s,c);b.addEventListener(s,x),b.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(p(r,{select:t}),document.activeElement!==n)return}(f(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&p(b))}return()=>{b.removeEventListener(s,x),setTimeout(()=>{let t=new CustomEvent(u,c);b.addEventListener(u,k),b.dispatchEvent(t),t.defaultPrevented||p(null!=e?e:document.body,{select:!0}),b.removeEventListener(u,k),m.remove(E)},0)}}},[b,x,k,E]);let M=r.useCallback(e=>{if(!n&&!d||E.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[i,o]=function(e){let t=f(e);return[h(t,e),h(t.reverse(),e)]}(t);i&&o?e.shiftKey||r!==o?e.shiftKey&&r===i&&(e.preventDefault(),n&&p(o,{select:!0})):(e.preventDefault(),n&&p(i,{select:!0})):r===t&&e.preventDefault()}},[n,d,E.paused]);return(0,a.jsx)(o.sG.div,{tabIndex:-1,...v,ref:S,onKeyDown:M})});function f(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function h(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function p(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}d.displayName="FocusScope";var m=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=g(e,t)).unshift(t)},remove(t){var n;null==(n=(e=g(e,t))[0])||n.resume()}}}();function g(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},88506:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},88682:(e,t,n)=>{"use strict";n.d(t,{T:()=>u});var r=n(13166);let i={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');o(e);let r=0,i=-1,l=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;l--;)if(47===e.codePointAt(l)){if(n){r=l+1;break}}else i<0&&(n=!0,i=l+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,s=t.length-1;for(;l--;)if(47===e.codePointAt(l)){if(n){r=l+1;break}}else a<0&&(n=!0,a=l+1),s>-1&&(e.codePointAt(l)===t.codePointAt(s--)?s<0&&(i=l):(s=-1,i=a));return r===i?i=a:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(o(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){let t;o(e);let n=e.length,r=-1,i=0,l=-1,a=0;for(;n--;){let o=e.codePointAt(n);if(47===o){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===o?l<0?l=n:1!==a&&(a=1):l>-1&&(a=-1)}return l<0||r<0||0===a||1===a&&l===r-1&&l===i+1?"":e.slice(l,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)o(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){o(e);let t=47===e.codePointAt(0),n=function(e,t){let n,r,i="",o=0,l=-1,a=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else if(47===n)break;else n=47;if(47===n){if(l===s-1||1===a);else if(l!==s-1&&2===a){if(i.length<2||2!==o||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",o=0):o=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),l=s,a=0;continue}}else if(i.length>0){i="",o=0,l=s,a=0;continue}}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(l+1,s):i=e.slice(l+1,s),o=s-l-1;l=s,a=0}else 46===n&&a>-1?a++:a=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function o(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let l={cwd:function(){return"/"}};function a(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let s=["history","path","basename","stem","extname","dirname"];class u{constructor(e){let t,n;t=e?a(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":l.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<s.length;){let e=s[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)s.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?i.basename(this.path):void 0}
27set basename(e){d(e,"basename"),c(e,"basename"),this.path=i.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?i.dirname(this.path):void 0}set dirname(e){f(this.basename,"dirname"),this.path=i.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?i.extname(this.path):void 0}set extname(e){if(c(e,"extname"),f(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=i.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){a(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!a(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),d(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?i.basename(this.path,this.extname):void 0}set stem(e){d(e,"stem"),c(e,"stem"),this.path=i.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let i=new r.o(e,t,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function c(e,t){if(e&&e.includes(i.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+i.sep+"`")}function d(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function f(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}},88869:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}n.d(t,{A:()=>i});var i=function e(t,n){function i(e,i,o){if("undefined"!=typeof document){"number"==typeof(o=r({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var a in o)o[a]&&(l+="; "+a,!0!==o[a]&&(l+="="+o[a].split(";")[0]));return document.cookie=e+"="+t.write(i,e)+l}}return Object.create({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),l=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(r[a]=t.read(l,a),e===a)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){i(e,"",r({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,r({},this.attributes,t))},withConverter:function(t){return e(r({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},89486:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,q:()=>o});var r=n(38848),i=n(38476);function o(e,t){let n=r.createContext(t),o=e=>{let{children:t,...o}=e,l=r.useMemo(()=>o,Object.values(o));return(0,i.jsx)(n.Provider,{value:l,children:t})};return o.displayName=e+"Provider",[o,function(i){let o=r.useContext(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function l(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return o.scopeName=e,[function(t,o){let l=r.createContext(o),a=n.length;n=[...n,o];let s=t=>{let{scope:n,children:o,...s}=t,u=n?.[e]?.[a]||l,c=r.useMemo(()=>s,Object.values(s));return(0,i.jsx)(u.Provider,{value:c,children:o})};return s.displayName=t+"Provider",[s,function(n,i){let s=i?.[e]?.[a]||l,u=r.useContext(s);if(u)return u;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(o,...t)]}}
27,89983:(e,t,n)=>{"use strict";n.d(t,{f:()=>o});var r=n(69906),i=n(10276);function o(e,t,n){let o=(0,i.a)(e,null==n?void 0:n.in);return isNaN(t)?(0,r.w)((null==n?void 0:n.in)||e,NaN):(t&&o.setDate(o.getDate()+t),o)}},90303:(e,t,n)=>{var r=n(11690);e.exports=function(){return r.Date.now()}},90370:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},90501:(e,t,n)=>{"use strict";n.d(t,{Mz:()=>L,i3:()=>D,UC:()=>I,bL:()=>P,Bk:()=>g});var r=n(38848),i=n(30013),o=n(79268),l=n(5461),a=n(38476),s=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,a.jsx)(l.sG.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,a.jsx)("polygon",{points:"0,0 30,0 15,10"})})});s.displayName="Arrow";var u=n(25300),c=n(89486),d=n(15381),f=n(57495),h=n(48949),p="Popper",[m,g]=(0,c.A)(p),[y,v]=m(p),b=e=>{let{__scopePopper:t,children:n}=e,[i,o]=r.useState(null);return(0,a.jsx)(y,{scope:t,anchor:i,onAnchorChange:o,children:n})};b.displayName=p;var w="PopperAnchor",x=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:i,...o}=e,s=v(w,n),c=r.useRef(null),d=(0,u.s)(t,c),f=r.useRef(null);return r.useEffect(()=>{let e=f.current;f.current=(null==i?void 0:i.current)||c.current,e!==f.current&&s.onAnchorChange(f.current)}),i?null:(0,a.jsx)(l.sG.div,{...o,ref:d})});x.displayName=w;var k="PopperContent",[C,S]=m(k),E=r.forwardRef((e,t)=>{var n,s,c,p,m,g,y,b;let{__scopePopper:w,side:x="bottom",sideOffset:S=0,align:E="center",alignOffset:M=0,arrowPadding:T=0,avoidCollisions:R=!0,collisionBoundary:P=[],collisionPadding:L=0,sticky:I="partial",hideWhenDetached:D=!1,updatePositionStrategy:_="optimized",onPlaced:j,...F}=e,z=v(k,w),[H,B]=r.useState(null),$=(0,u.s)(t,e=>B(e)),[U,V]=r.useState(null),W=(0,h.X)(U),q=null!=(y=null==W?void 0:W.width)?y:0,K=null!=(b=null==W?void 0:W.height)?b:0,G="number"==typeof L?L:{top:0,right:0,bottom:0,left:0,...L},Y=Array.isArray(P)?P:[P],J=Y.length>0,X={padding:G,boundary:Y.filter(A),altBoundary:J},{refs:Z,floatingStyles:Q,placement:ee,isPositioned:et,middlewareData:en}=(0,i.we)({strategy:"fixed",placement:x+("center"!==E?"-"+E:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.ll)(...t,{animationFrame:"always"===_})},elements:{reference:z.anchor},middleware:[(0,i.cY)({mainAxis:S+K,alignmentAxis:M}),R&&(0,i.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===I?(0,i.ER)():void 0,...X}),R&&(0,i.UU)({...X}),(0,i.Ej)({...X,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:i}=e,{width:o,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(i,"px")),a.setProperty("--radix-popper-anchor-width","".concat(o,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),U&&(0,i.UE)({element:U,padding:T}),O({arrowWidth:q,arrowHeight:K}),D&&(0,i.jD)({strategy:"referenceHidden",...X})]}),[er,ei]=N(ee),eo=(0,d.c)(j);(0,f.N)(()=>{et&&(null==eo||eo())},[et,eo]);let el=null==(n=en.arrow)?void 0:n.x,ea=null==(s=en.arrow)?void 0:s.y,es=(null==(c=en.arrow)?void 0:c.centerOffset)!==0,[eu,ec]=r.useState();return(0,f.N)(()=>{H&&ec(window.getComputedStyle(H).zIndex)},[H]),(0,a.jsx)("div",{ref:Z.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:et?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eu,"--radix-popper-transform-origin":[null==(p=en.transformOrigin)?void 0:p.x,null==(m=en.transformOrigin)?void 0:m.y].join(" "),...(null==(g=en.hide)?void 0:g.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,a.jsx)(C,{scope:w,placedSide:er,onArrowChange:V,arrowX:el,arrowY:ea,shouldHideArrow:es,children:(0,a.jsx)(l.sG.div,{"data-side":er,"data-align":ei,...F,ref:$,style:{...F.style,animation:et?void 0:"none"}})})})});E.displayName=k;var M="PopperArrow",T={top:"bottom",right:"left",bottom:"top",left:"right"},R=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=S(M,n),o=T[i.placedSide];return(0,a.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,a.jsx)(s,{...r,ref:t,style:{...r.style,display:"block"}})})});function A(e){return null!==e}R.displayName=M;var O=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,l;let{placement:a,rects:s,middlewareData:u}=t,c=(null==(n=u.arrow)?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=N(a),m={start:"0%",center:"50%",end:"100%"}[p],g=(null!=(o=null==(r=u.arrow)?void 0:r.x)?o:0)+d/2,y=(null!=(l=null==(i=u.arrow)?void 0:i.y)?l:0)+f/2,v="",b="";return"bottom"===h?(v=c?m:"".concat(g,"px"),b="".concat(-f,"px")):"top"===h?(v=c?m:"".concat(g,"px"),b="".concat(s.floating.height+f,"px")):"right"===h?(v="".concat(-f,"px"),b=c?m:"".concat(y,"px")):"left"===h&&(v="".concat(s.floating.width+f,"px"),b=c?m:"".concat(y,"px")),{data:{x:v,y:b}}}});function N(e){let[t,n="center"]=e.split("-");return[t,n]}var P=b,L=x,I=E,D=R},90953:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(38848);let i=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];
27return t.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()};var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:l=24,strokeWidth:a=2,absoluteStrokeWidth:s,className:u="",children:c,iconNode:d,...f}=e;return(0,r.createElement)("svg",{ref:t,...o,width:l,height:l,stroke:n,strokeWidth:s?24*Number(a)/Number(l):a,className:i("lucide",u),...f},[...d.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(c)?c:[c]])}),a=(e,t)=>{let n=(0,r.forwardRef)((n,o)=>{let{className:a,...s}=n;return(0,r.createElement)(l,{ref:o,iconNode:t,className:i("lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),a),...s})});return n.displayName="".concat(e),n}},91046:(e,t,n)=>{"use strict";let r;n.d(t,{Ay:()=>q});var i=n(38848),o=n(8781);let l=()=>{},a=l(),s=Object,u=e=>e===a,c=(e,t)=>({...e,...t}),d=new WeakMap,f=0,h=e=>{let t,n,r=typeof e,i=e&&e.constructor,o=i==Date;if(s(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=d.get(e))return t;if(t=++f+"~",d.set(e,t),i==Array){for(n=0,t="@";n<e.length;n++)t+=h(e[n])+",";d.set(e,t)}if(i==s){t="#";let r=s.keys(e).sort();for(;!u(n=r.pop());)u(e[n])||(t+=n+":"+h(e[n])+",");d.set(e,t)}}return t},p=new WeakMap,m={},g={},y="undefined",v=typeof window!=y,b=typeof document!=y,w=(e,t)=>{let n=p.get(e);return[()=>!u(t)&&e.get(t)||m,r=>{if(!u(t)){let i=e.get(t);t in g||(g[t]=i),n[5](t,c(i,r),i||m)}},n[6],()=>!u(t)&&t in g?g[t]:!u(t)&&e.get(t)||m]},x=!0,[k,C]=v&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[l,l],S={initFocus:e=>(b&&document.addEventListener("visibilitychange",e),k("focus",e),()=>{b&&document.removeEventListener("visibilitychange",e),C("focus",e)}),initReconnect:e=>{let t=()=>{x=!0,e()},n=()=>{x=!1};
27return k("online",t),k("offline",n),()=>{C("online",t),C("offline",n)}}},E=!i.useId,M=!v||"Deno"in window,T=M?i.useEffect:i.useLayoutEffect,R="undefined"!=typeof navigator&&navigator.connection,A=!M&&R&&(["slow-2g","2g"].includes(R.effectiveType)||R.saveData),O=e=>{if("function"==typeof e)try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?h(e):"",t]},N=0,P=()=>++N;var L={ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function I(...e){let[t,n,r,i]=e,o=c({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),l=o.populateCache,s=o.rollbackOnError,d=o.optimisticData,f=!1!==o.revalidate,h=o.throwOnError;if("function"==typeof n){let e=[];for(let r of t.keys())!/^\$(inf|sub)\$/.test(r)&&n(t.get(r)._k)&&e.push(r);return Promise.all(e.map(m))}return m(n);async function m(n){let i,[o]=O(n);if(!o)return;let[c,m]=w(t,o),[g,y,v,b]=p.get(t),x=()=>{let e=g[o];return f&&(delete v[o],delete b[o],e&&e[0])?e[0](2).then(()=>c().data):c().data};if(e.length<3)return x();let k=r,C=P();y[o]=[C,0];let S=!u(d),E=c(),M=E.data,T=E._c,R=u(T)?M:T;if(S&&m({data:d="function"==typeof d?d(R,M):d,_c:R}),"function"==typeof k)try{k=k(R)}catch(e){i=e}if(k&&"function"==typeof k.then){let e;if(k=await k.catch(e=>{i=e}),C!==y[o][0]){if(i)throw i;return k}i&&S&&(e=i,"function"==typeof s?s(e):!1!==s)&&(l=!0,m({data:R,_c:a}))}if(l&&!i&&("function"==typeof l?m({data:l(k,R),error:a,_c:a}):m({data:k,error:a,_c:a})),y[o][1]=P(),Promise.resolve(x()).then(()=>{m({_c:a})}),i){if(h)throw i;return}return k}}let D=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},_=(e,t)=>{if(!p.has(e)){let n=c(S,t),r={},i=I.bind(a,e),o=l,s={},u=(e,t)=>{let n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);let i=s[t];if(i)for(let e of i)e(n,r)},f=()=>{if(!p.has(e)&&(p.set(e,[r,{},{},{},i,d,u]),!M)){let t=n.initFocus(setTimeout.bind(a,D.bind(a,r,0))),i=n.initReconnect(setTimeout.bind(a,D.bind(a,r,1)));o=()=>{t&&t(),i&&i(),p.delete(e)}}};return f(),[e,i,f,o]}return[e,p.get(e)[4]]},[j,F]=_(new Map),z=c({onLoadingSlow:l,onSuccess:l,onError:l,onErrorRetry:(e,t,n,r,i)=>{let o=n.errorRetryCount,l=i.retryCount,a=~~((Math.random()+.5)*(1<<(l<8?l:8)))*n.errorRetryInterval;(u(o)||!(l>o))&&setTimeout(r,a,i)},onDiscarded:l,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:A?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:A?5e3:3e3,compare:(e,t)=>h(e)==h(t),isPaused:()=>!1,cache:j,mutate:F,fallback:{}},{isOnline:()=>x,isVisible:()=>{let e=b&&document.visibilityState;return u(e)||"hidden"!==e}}),H=(e,t)=>{let n=c(e,t);if(t){let{use:r,fallback:i}=e,{use:o,fallback:l}=t;r&&o&&(n.use=r.concat(o)),i&&l&&(n.fallback=c(i,l))}return n},B=(0,i.createContext)({}),$=v&&window.__SWR_DEVTOOLS_USE__,U=($?window.__SWR_DEVTOOLS_USE__:[]).concat(e=>(t,n,r)=>{let i=n&&((...e)=>{let[r]=O(t),[,,,i]=p.get(j);if(r.startsWith("$inf$"))return n(...e);let o=i[r];return u(o)?n(...e):(delete i[r],o)});return e(t,i,r)});$&&(window.__SWR_DEVTOOLS_REACT__=i);let V=i.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),W={dedupe:!0};s.defineProperty(e=>{let{value:t}=e,n=(0,i.useContext)(B),r="function"==typeof t,o=(0,i.useMemo)(()=>r?t(n):t,[r,n,t]),l=(0,i.useMemo)(()=>r?o:H(n,o),[r,n,o]),s=o&&o.provider,u=(0,i.useRef)(a);s&&!u.current&&(u.current=_(s(l.cache||j),o));let d=u.current;return d&&(l.cache=d[0],l.mutate=d[1]),T(()=>{if(d)return d[2]&&d[2](),d[3]},[]),(0,i.createElement)(B.Provider,c(e,{value:l}))},"defaultValue",{value:z});let q=(r=(e,t,n)=>{let{cache:r,compare:l,suspense:s,fallbackData:d,revalidateOnMount:f,revalidateIfStale:h,refreshInterval:m,refreshWhenHidden:g,refreshWhenOffline:b,keepPreviousData:x}=n,[k,C,S,R]=p.get(r),[A,N]=O(e),D=(0,i.useRef)(!1),_=(0,i.useRef)(!1),j=(0,i.useRef)(A),F=(0,i.useRef)(t),z=(0,i.useRef)(n),H=()=>z.current.isVisible()&&z.current.isOnline(),[B,$,U,q]=w(r,A),K=(0,i.useRef)({}).current,G=u(d)?n.fallback[A]:d,Y=(e,t)=>
27{for(let n in K)if("data"===n){if(!l(e[n],t[n])&&(!u(e[n])||!l(ei,t[n])))return!1}else if(t[n]!==e[n])return!1;return!0},J=(0,i.useMemo)(()=>{let e=!!A&&!!t&&(u(f)?!z.current.isPaused()&&!s&&(!!u(h)||h):f),n=t=>{let n=c(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=B(),i=q(),o=n(r),l=r===i?o:n(i),a=o;return[()=>{let e=n(B());return Y(e,a)?(a.data=e.data,a.isLoading=e.isLoading,a.isValidating=e.isValidating,a.error=e.error,a):(a=e,e)},()=>l]},[r,A]),X=(0,o.useSyncExternalStore)((0,i.useCallback)(e=>U(A,(t,n)=>{Y(n,t)||e()}),[r,A]),J[0],J[1]),Z=!D.current,Q=k[A]&&k[A].length>0,ee=X.data,et=u(ee)?G:ee,en=X.error,er=(0,i.useRef)(et),ei=x?u(ee)?er.current:ee:et,eo=(!Q||!!u(en))&&(Z&&!u(f)?f:!z.current.isPaused()&&(s?!u(et)&&h:u(et)||h)),el=!!(A&&t&&Z&&eo),ea=u(X.isValidating)?el:X.isValidating,es=u(X.isLoading)?el:X.isLoading,eu=(0,i.useCallback)(async e=>{let t,r,i=F.current;if(!A||!i||_.current||z.current.isPaused())return!1;let o=!0,s=e||{},c=!S[A]||!s.dedupe,d=()=>E?!_.current&&A===j.current&&D.current:A===j.current,f={isValidating:!1,isLoading:!1},h=()=>{$(f)},p=()=>{let e=S[A];e&&e[1]===r&&delete S[A]},m={isValidating:!0};u(B().data)&&(m.isLoading=!0);try{if(c&&($(m),n.loadingTimeout&&u(B().data)&&setTimeout(()=>{o&&d()&&z.current.onLoadingSlow(A,n)},n.loadingTimeout),S[A]=[i(N),P()]),[t,r]=S[A],t=await t,c&&setTimeout(p,n.dedupingInterval),!S[A]||S[A][1]!==r)return c&&d()&&z.current.onDiscarded(A),!1;f.error=a;let e=C[A];if(!u(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return h(),c&&d()&&z.current.onDiscarded(A),!1;let s=B().data;f.data=l(s,t)?s:t,c&&d()&&z.current.onSuccess(t,A,n)}catch(n){p();let e=z.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(f.error=n,c&&d())&&(e.onError(n,A,e),(!0===t||"function"==typeof t&&t(n))&&H()&&e.onErrorRetry(n,A,e,e=>{let t=k[A];t&&t[0]&&t[0](L.ERROR_REVALIDATE_EVENT,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0}))}return o=!1,h(),!0},[A,r]),ec=(0,i.useCallback)((...e)=>I(r,j.current,...e),[]);if(T(()=>{F.current=t,z.current=n,u(ee)||(er.current=ee)}),T(()=>{if(!A)return;let e=eu.bind(a,W),t=0,n=((e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}})(A,k,(n,r={})=>{if(n==L.FOCUS_EVENT){let n=Date.now();z.current.revalidateOnFocus&&n>t&&H()&&(t=n+z.current.focusThrottleInterval,e())}else if(n==L.RECONNECT_EVENT)z.current.revalidateOnReconnect&&H()&&e();else if(n==L.MUTATE_EVENT)return eu();else if(n==L.ERROR_REVALIDATE_EVENT)return eu(r)});return _.current=!1,j.current=A,D.current=!0,$({_k:N}),eo&&(u(et)||M?e():(e=>v&&typeof window.requestAnimationFrame!=y?window.requestAnimationFrame(e):setTimeout(e,1))(e)),()=>{_.current=!0,n()}},[A]),T(()=>{let e;function t(){let t="function"==typeof m?m(B().data):m;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!B().error&&(g||z.current.isVisible())&&(b||z.current.isOnline())?eu(W).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[m,g,b,A]),(0,i.useDebugValue)(ei),s&&u(et)&&A){if(!E&&M)throw Error("Fallback data is required when using suspense in SSR.");F.current=t,z.current=n,_.current=!1;let e=R[A];if(u(e)||V(ec(e)),u(en)){let e=eu(W);u(ei)||(e.status="fulfilled",e.value=!0),V(e)}else throw en}return{mutate:ec,get data(){return K.data=!0,ei},get error(){return K.error=!0,en},get isValidating(){return K.isValidating=!0,ea},get isLoading(){return K.isLoading=!0,es}}},function(...e){let t=c(z,(0,i.useContext)(B)),[n,o,l]="function"==typeof e[1]?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],a=H(t,l),s=r,{use:u}=a,d=(u||[]).concat(U);for(let e=d.length;e--;)s=d[e](s);return s(n,o||a.fetcher||null,a)})},92039:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(38848),i=n(64299),o=n.n(i),l=n(93430),a=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e){var t=e.children,n=e.x,i=e.x0,u=e.x1,c=e.y,d=e.y0,f=e.y1,h=e.data,p=e.defined,m=e.className,g=e.curve,y=e.innerRef,v=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,a),b=(0,l.Wc)({x:n,x0:i,x1:u,y:c,y0:d,y1:f,defined:void 0===p?function(){return!0}:p,curve:g});return t?r.createElement(r.Fragment,null,t({path:b})):r.createElement("path",s({ref:y,className:o()("visx-area",m),d:b(void 0===h?[]:h)||""},v))}},92063:(e,t,n)=>{"use strict";n.d(t,{vD:()=>l,wX:()=>o});var r=n(88050),i=n(61947);let o=(0,r.f)(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.Tt)},(e,t)=>{e.setTime(+e+t*i.rR)},(e,t)=>(t-e)/i.rR,e=>e.getMinutes());o.range;let l=(0,r.f)(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*i.rR)},(e,t)=>(t-e)/i.rR,e=>e.getUTCMinutes());l.range},92237:(e,t,n)=>{"use strict";n.d(t,{Kv:()=>o,N4:()=>l});var r=n(38848),i=n(39245);function o(e,t){var n,i,o;return e?"function"==typeof(i=n=e)&&(()=>{let e=Object.getPrototypeOf(i);return e.prototype&&e.prototype.isReactComponent})()||"function"==typeof n||"object"==typeof(o=n)&&"symbol"==typeof o.$$typeof&&["react.memo","react.forward_ref"].includes(o.$$typeof.description)?r.createElement(e,t):e:null}function l(e){let t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=r.useState(()=>({current:(0,i.ZR)(t)})),[o,l]=r.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...o,...e.state},onStateChange:t=>{l(t),null==e.onStateChange||e.onStateChange(t)}
27})),n.current}},92674:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(97118),i=n(88e3);function o(e,t,n){let[o,a]=(0,r.x)(null==n?void 0:n.in,e,t),s=l(o,a),u=Math.abs((0,i.m)(o,a));o.setDate(o.getDate()-s*u);let c=Number(l(o,a)===-s),d=s*(u-c);return 0===d?0:d}function l(e,t){let n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}},92697:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DecodeError:function(){return p},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return y},NormalizeError:function(){return m},PageNotFoundError:function(){return g},SP:function(){return f},ST:function(){return h},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return s},getLocationOrigin:function(){return l},getURL:function(){return a},isAbsoluteUrl:function(){return o},isResSent:function(){return u},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return b}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return n||(n=!0,t=e(...i)),t}}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>i.test(e);function l(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function a(){let{href:e}=window.location,t=l();return e.substring(t.length)}function s(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&u(n))return r;if(!r)throw Object.defineProperty(Error('"'+s(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return r}let f="undefined"!=typeof performance,h=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);
27class p extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class y extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function b(e){return JSON.stringify({message:e.message,stack:e.stack})}},92711:(e,t,n)=>{"use strict";n.d(t,{IN:()=>o,dc:()=>l,_Z:()=>a,VG:()=>s});var r=n(77120);let i=[],o=!0,l=!1,a="skip";function s(e,t,n,s){let u;"function"==typeof t&&"function"!=typeof n?(s=n,n=t):u=t;let c=(0,r.C)(u),d=s?-1:1;(function e(r,u,f){let h=r&&"object"==typeof r?r:{};if("string"==typeof h.type){let e="string"==typeof h.tagName?h.tagName:"string"==typeof h.name?h.name:void 0;Object.defineProperty(p,"name",{value:"node ("+r.type+(e?"<"+e+">":"")+")"})}return p;function p(){var h;let p,m,g,y=i;if((!t||c(r,u,f[f.length-1]||void 0))&&(y=Array.isArray(h=n(r,f))?h:"number"==typeof h?[o,h]:null==h?i:[h])[0]===l)return y;if("children"in r&&r.children&&r.children&&y[0]!==a)for(m=(s?r.children.length:-1)+d,g=f.concat(r);m>-1&&m<r.children.length;){if((p=e(r.children[m],m,g)())[0]===l)return p;m="number"==typeof p[1]?p[1]:m+d}return y}})(e,void 0,[])()}},93430:(e,t,n)=>{"use strict";n.d(t,{Wc:()=>p});var r=Math.PI,i=2*r,o=i-1e-6;function l(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function a(){return new l}function s(e){return function(){return e}}function u(e){this._context=e}function c(e){return new u(e)}function d(e){return e[0]}function f(e){return e[1]}l.prototype=a.prototype={constructor:l,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,i,o){e*=1,t*=1,n*=1,i*=1,o*=1;var l=this._x1,a=this._y1,s=n-e,u=i-t,c=l-e,d=a-t,f=c*c+d*d;if(o<0)throw Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>1e-6)if(Math.abs(d*s-u*c)>1e-6&&o){var h=n-l,p=i-a,m=s*s+u*u,g=Math.sqrt(m),y=Math.sqrt(f),v=o*Math.tan((r-Math.acos((m+f-(h*h+p*p))/(2*g*y)))/2),b=v/y,w=v/g;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*c)+","+(t+b*d)),this._+="A"+o+","+o+",0,0,"+ +(d*h>c*p)+","+(this._x1=e+w*s)+","+(this._y1=t+w*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t)},arc:function(e,t,n,l,a,s){e*=1,t*=1,n*=1,s=!!s;var u=n*Math.cos(l),c=n*Math.sin(l),d=e+u,f=t+c,h=1^s,p=s?l-a:a-l;if(n<0)throw Error("negative radius: "+n);null===this._x1?this._+="M"+d+","+f:(Math.abs(this._x1-d)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+d+","+f),n&&(p<0&&(p=p%i+i),p>o?this._+="A"+n+","+n+",0,1,"+h+","+(e-u)+","+(t-c)+"A"+n+","+n+",0,1,"+h+","+(this._x1=d)+","+(this._y1=f):p>1e-6&&(this._+="A"+n+","+n+",0,"+ +(p>=r)+","+h+","+(this._x1=e+n*Math.cos(a))+","+(this._y1=t+n*Math.sin(a))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},u.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var h=n(56026);function p(e){var t=void 0===e?{}:e,n=t.x,r=t.x0,i=t.x1,o=t.y,l=t.y0,u=t.y1,p=t.defined,m=t.curve,g=function(){var e=d,t=null,n=s(0),r=f,i=s(!0),o=null,l=c,u=null;function h(s){var c,d,f,h,p,m=s.length,g=!1,y=Array(m),v=Array(m);for(null==o&&(u=l(p=a())),c=0;c<=m;++c){if(!(c<m&&i(h=s[c],c,s))===g)if(g=!g)d=c,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),f=c-1;f>=d;--f)u.point(y[f],v[f]);u.lineEnd(),u.areaEnd()}g&&(y[c]=+e(h,c,s),v[c]=+n(h,c,s),u.point(t?+t(h,c,s):y[c],r?+r(h,c,s):v[c]))}if(p)return u=null,p+""||null}function p(){return(function(){var e=d,t=f,n=s(!0),r=null,i=c,o=null;function l(l){var s,u,c,d=l.length,f=!1;for(null==r&&(o=i(c=a())),s=0;s<=d;++s)!(s<d&&n(u=l[s],s,l))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(u,s,l),+t(u,s,l));if(c)return o=null,c+""||null}return l.x=function(t){return arguments.length?(e="function"==typeof t?t:s(+t),l):e},l.y=function(e){return arguments.length?(t="function"==typeof e?e:s(+e),l):t},l.defined=function(e){return arguments.length?(n="function"==typeof e?e:s(!!e),l):n},l.curve=function(e){return arguments.length?(i=e,null!=r&&(o=i(r)),l):i},l.context=function(e){return arguments.length?(null==e?r=o=null:o=i(r=e),l):r},l})().defined(i).curve(l).context(o)}return h.x=function(n){return arguments.length?(e="function"==typeof n?n:s(+n),t=null,h):e},h.x0=function(t){return arguments.length?(e="function"==typeof t?t:s(+t),h):e},h.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:s(+e),h):t},h.y=function(e){return arguments.length?(n="function"==typeof e?e:s(+e),r=null,h):n},h.y0=function(e){return arguments.length?(n="function"==typeof e?e:s(+e),h):n},h.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:s(+e),h):r},h.lineX0=h.lineY0=function(){return p().x(e).y(n)},h.lineY1=function(){return p().x(e).y(r)},h.lineX1=function(){return p().x(t).y(n)},h.defined=function(e){return arguments.length?(i="function"==typeof e?e:s(!!e),h):i},h.curve=function(e){return arguments.length?(l=e,null!=o&&(u=l(o)),h):l},h.context=function(e){return arguments.length?(null==e?o=u=null:u=l(o=e),h):o},h}();return n&&(0,h.A)(g.x,n),r&&(0,h.A)(g.x0,r),i&&(0,h.A)(g.x1,i),o&&(0,h.A)(g.y,o),l&&(0,h.A)(g.y0,l),u&&(0,h.A)(g.y1,u),p&&g.defined(p),m&&g.curve(m),g}},94205:(e,t,n)=>{"use strict";n.d(t,{C:()=>l});var r=n(38848),i=n(25300),o=n(57495),l=e=>{let{present:t,children:n}=e,l=function(e){var t,n;let[i,l]=r.useState(),s=r.useRef(null),u=r.useRef(e),c=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>
27{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=a(s.current);c.current="mounted"===d?e:"none"},[d]),(0,o.N)(()=>{let t=s.current,n=u.current;if(n!==e){let r=c.current,i=a(t);e?f("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==i?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,o.N)(()=>{if(i){var e;let t,n=null!=(e=i.ownerDocument.defaultView)?e:window,r=e=>{let r=a(s.current).includes(CSS.escape(e.animationName));if(e.target===i&&r&&(f("ANIMATION_END"),!u.current)){let e=i.style.animationFillMode;i.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=e)})}},o=e=>{e.target===i&&(c.current=a(s.current))};return i.addEventListener("animationstart",o),i.addEventListener("animationcancel",r),i.addEventListener("animationend",r),()=>{n.clearTimeout(t),i.removeEventListener("animationstart",o),i.removeEventListener("animationcancel",r),i.removeEventListener("animationend",r)}}f("ANIMATION_END")},[i,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{s.current=e?getComputedStyle(e):null,l(e)},[])}}(t),s="function"==typeof n?n({present:l.isPresent}):r.Children.only(n),u=(0,i.s)(l.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?e.ref:(i=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(s));return"function"==typeof n||l.isPresent?r.cloneElement(s,{ref:u}):null};function a(e){return(null==e?void 0:e.animationName)||"none"}l.displayName="Presence"},94427:(e,t,n)=>{"use strict";n.d(t,{P:()=>o});var r=n(69906),i=n(10276);function o(e,t,n){let o=(0,i.a)(e,null==n?void 0:n.in);if(isNaN(t))return(0,r.w)((null==n?void 0:n.in)||e,NaN);if(!t)return o;let l=o.getDate(),a=(0,r.w)((null==n?void 0:n.in)||e,o.getTime());return(a.setMonth(o.getMonth()+t+1,0),l>=a.getDate())?a:(o.setFullYear(a.getFullYear(),a.getMonth(),l),o)}},96328:(e,t,n)=>{"use strict";function r(e){if(e)throw e}n.d(t,{l:()=>d});var i=n(16089),o=n(84401);function l(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}var a=n(88682);let s=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},u={}.hasOwnProperty;class c extends s{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=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function i(o,...l){let a=e[++n],s=-1;if(o)return void r(o);for(;++s<t.length;)(null===l[s]||void 0===l[s])&&(l[s]=t[s]);t=l,a?(function(e,t){let n;return function(...t){let o,l=e.length>t.length;l&&t.push(r);try{o=e.apply(this,t)}catch(e){if(l&&n)throw e;return r(e)}l||(o instanceof Promise?o.then(i,r):o instanceof Error?r(o):i(o))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(a,i)(...l):r(null,...l)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new c,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(i(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(p("data",this.frozen),this.namespace[e]=t,this):u.call(this.namespace,e)&&this.namespace[e]||void 0:e?(p("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=y(e),n=this.parser||this.Parser;return f("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),f("process",this.parser||this.Parser),h("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let l=y(e),a=n.parse(l);function s(e,n){e||!n?i(e):r?r(n):((0,o.ok)(t,"`done` is defined if `resolve` is not"),t(void 0,n))}n.run(a,l,function(e,t,r){var i,o;if(e||!t||!r)return s(e);let l=n.stringify(t,r);"string"==typeof(i=l)||(o=i)&&"object"==typeof o&&"byteLength"in o&&"byteOffset"in o?r.value=l:r.result=l,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),f("processSync",this.parser||this.Parser),h("processSync",this.compiler||this.Compiler),this.process(e,function(e,i){n=!0,r(e),t=i}),g("processSync","process",n),(0,o.ok)(t,"we either bailed on an error or have a tree"),t}
27run(e,t,n){m(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,l){(0,o.ok)("function"!=typeof t,"`file` canât be a `done` anymore, we checked");let a=y(t);r.run(e,a,function(t,r,a){let s=r||e;t?l(t):i?i(s):((0,o.ok)(n,"`done` is defined if `resolve` is not"),n(void 0,s,a))})}}runSync(e,t){let n,i=!1;return this.run(e,t,function(e,t){r(e),n=t,i=!0}),g("runSync","run",i),(0,o.ok)(n,"we either bailed on an error or have a tree"),n}stringify(e,t){this.freeze();let n=y(t),r=this.compiler||this.Compiler;return h("stringify",r),m(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(p("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else if("object"==typeof e)Array.isArray(e)?a(e):o(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function o(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(r.settings=i(!0,r.settings,e.settings))}function a(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;){var n=e[t];if("function"==typeof n)s(n,[]);else if("object"==typeof n)if(Array.isArray(n)){let[e,...t]=n;s(e,t)}else o(n);else throw TypeError("Expected usable value, not `"+n+"`")}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function s(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,s=n[o][1];l(s)&&l(r)&&(r=i(!0,s,r)),n[o]=[e,r,...a]}}}}let d=new c().freeze();function f(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function h(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function p(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function m(e){if(!l(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function g(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function y(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new a.T(e)}},96733:(e,t,n)=>{var r=n(45147),i=n(39429);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},96898:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(90953).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},97118:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});var r=n(69906);function i(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];let o=r.w.bind(null,e||n.find(e=>"object"==typeof e));return n.map(o)}},97343:(e,t,n)=>{"use strict";n.d(t,{YR:()=>i});var r=n(92711);function i(e,t,n,i){let o,l,a;"function"==typeof t&&"function"!=typeof n?(l=void 0,a=t,o=n):(l=t,a=n,o=i),(0,r.VG)(e,l,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)},o)}},98148:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let r=n(38848);function i(e,t){let n=(0,r.useRef)(null),i=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=n.current;e&&(n.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(n.current=o(e,r)),t&&(i.current=o(t,r))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98400:(e,t,n)=>{"use strict";function r(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function i(e){return e.join(" ").trim()}n.d(t,{A:()=>i,q:()=>r})},98459:(e,t,n)=>{"use strict";n.d(t,{AB:()=>a,Hl:()=>p,Mo:()=>c,YP:()=>l,pT:()=>v,rt:()=>m});var r=n(88050),i=n(61947);function o(e){return(0,r.f)(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.rR)/i.Fq)}let l=o(0),a=o(1),s=o(2),u=o(3),c=o(4),d=o(5),f=o(6);function h(e){return(0,r.f)(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/i.Fq)}l.range,a.range,s.range,u.range,c.range,d.range,f.range;let p=h(0),m=h(1),g=h(2),y=h(3),v=h(4),b=h(5),w=h(6);p.range,m.range,g.range,y.range,v.range,b.range,w.range},98513:(e,t,n)=>{"use strict";n.d(t,{UC:()=>en,VY:()=>ei,ZL:()=>ee,bL:()=>Z,bm:()=>eo,hE:()=>er,hJ:()=>et,l9:()=>Q});var r=n(38848),i=n(4529),o=n(25300),l=n(89486),a=n(85857),s=n(67821),u=n(76937),c=n(88310),d=n(36358),f=n(94205),h=n(5461),p=n(14367),m=n(3035),g=n(11005),y=n(31054),v=n(38476),b="Dialog",[w,x]=(0,l.A)(b),[k,C]=w(b),S=e=>{let{__scopeDialog:t,children:n,open:i,defaultOpen:o,onOpenChange:l,modal:u=!0}=e,c=r.useRef(null),d=r.useRef(null),[f,h]=(0,s.i)({prop:i,defaultProp:null!=o&&o,onChange:l,caller:b});return(0,v.jsx)(k,{scope:t,triggerRef:c,contentRef:d,contentId:(0,a.B)(),titleId:(0,a.B)(),descriptionId:(0,a.B)(),open:f,onOpenChange:h,onOpenToggle:r.useCallback(()=>h(e=>!e),[h]),modal:u,children:n})};S.displayName=b;var E="DialogTrigger",M=r.forwardRef((e,t)=>
27{let{__scopeDialog:n,...r}=e,l=C(E,n),a=(0,o.s)(t,l.triggerRef);return(0,v.jsx)(h.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":q(l.open),...r,ref:a,onClick:(0,i.mK)(e.onClick,l.onOpenToggle)})});M.displayName=E;var T="DialogPortal",[R,A]=w(T,{forceMount:void 0}),O=e=>{let{__scopeDialog:t,forceMount:n,children:i,container:o}=e,l=C(T,t);return(0,v.jsx)(R,{scope:t,forceMount:n,children:r.Children.map(i,e=>(0,v.jsx)(f.C,{present:n||l.open,children:(0,v.jsx)(d.Z,{asChild:!0,container:o,children:e})}))})};O.displayName=T;var N="DialogOverlay",P=r.forwardRef((e,t)=>{let n=A(N,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=C(N,e.__scopeDialog);return o.modal?(0,v.jsx)(f.C,{present:r||o.open,children:(0,v.jsx)(I,{...i,ref:t})}):null});P.displayName=N;var L=(0,y.TL)("DialogOverlay.RemoveScroll"),I=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=C(N,n);return(0,v.jsx)(m.A,{as:L,allowPinchZoom:!0,shards:[i.contentRef],children:(0,v.jsx)(h.sG.div,{"data-state":q(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),D="DialogContent",_=r.forwardRef((e,t)=>{let n=A(D,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=C(D,e.__scopeDialog);return(0,v.jsx)(f.C,{present:r||o.open,children:o.modal?(0,v.jsx)(j,{...i,ref:t}):(0,v.jsx)(F,{...i,ref:t})})});_.displayName=D;var j=r.forwardRef((e,t)=>{let n=C(D,e.__scopeDialog),l=r.useRef(null),a=(0,o.s)(t,n.contentRef,l);return r.useEffect(()=>{let e=l.current;if(e)return(0,g.Eq)(e)},[]),(0,v.jsx)(z,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.mK)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,i.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>e.preventDefault())})}),F=r.forwardRef((e,t)=>{let n=C(D,e.__scopeDialog),i=r.useRef(!1),o=r.useRef(!1);return(0,v.jsx)(z,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,l;null==(r=e.onCloseAutoFocus)||r.call(e,t),t.defaultPrevented||(i.current||null==(l=n.triggerRef.current)||l.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{var r,l;null==(r=e.onInteractOutside)||r.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let a=t.target;(null==(l=n.triggerRef.current)?void 0:l.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),z=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:l,onCloseAutoFocus:a,...s}=e,d=C(D,n),f=r.useRef(null),h=(0,o.s)(t,f);return(0,p.Oh)(),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(c.n,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:l,onUnmountAutoFocus:a,children:(0,v.jsx)(u.qW,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":q(d.open),...s,ref:h,onDismiss:()=>d.onOpenChange(!1)})}),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(J,{titleId:d.titleId}),(0,v.jsx)(X,{contentRef:f,descriptionId:d.descriptionId})]})]})}),H="DialogTitle",B=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=C(H,n);return(0,v.jsx)(h.sG.h2,{id:i.titleId,...r,ref:t})});B.displayName=H;var $="DialogDescription",U=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=C($,n);return(0,v.jsx)(h.sG.p,{id:i.descriptionId,...r,ref:t})});U.displayName=$;var V="DialogClose",W=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=C(V,n);return(0,v.jsx)(h.sG.button,{type:"button",...r,ref:t,onClick:(0,i.mK)(e.onClick,()=>o.onOpenChange(!1))})});function q(e){return e?"open":"closed"}W.displayName=V;var K="DialogTitleWarning",[G,Y]=(0,l.q)(K,{contentName:D,titleName:H,docsSlug:"dialog"}),J=e=>{let{titleId:t}=e,n=Y(K),i="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return r.useEffect(()=>{t&&(document.getElementById(t)||console.error(i))},[i,t]),null},X=e=>{let{contentRef:t,descriptionId:n}=e,i=Y("DialogDescriptionWarning"),o="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(i.contentName,"}.");return r.useEffect(()=>{var e;let r=null==(e=t.current)?void 0:e.getAttribute("aria-describedby");n&&r&&(document.getElementById(n)||console.warn(o))},[o,t,n]),null},Z=S,Q=M,ee=O,et=P,en=_,er=B,ei=U,eo=W}
27,98983:(e,t,n)=>{e.exports="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g},99405:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(90953).A)("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]])},99458:(e,t,n)=>{"use strict";n.d(t,{$B:()=>a,Sd:()=>o,T2:()=>l});var r=n(10761),i=n(7964);function o(e,t=null){return function(n,o){let{$from:l,$to:a}=n.selection,s=l.blockRange(a);if(!s)return!1;let u=o?n.tr:null;return!!function(e,t,n,o=null){let l=!1,a=t,s=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&0==t.startIndex){if(0==t.$from.index(t.depth-1))return!1;let e=s.resolve(t.start-2);a=new i.u$(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new i.u$(t.$from,s.resolve(t.$to.end(t.depth)),t.depth)),l=!0}let u=(0,r.oM)(a,n,o,t);return!!u&&(e&&function(e,t,n,o,l){let a=i.FK.empty;for(let e=n.length-1;e>=0;e--)a=i.FK.from(n[e].type.create(n[e].attrs,a));e.step(new r.Wg(t.start-2*!!o,t.end,t.start,t.end,new i.Ji(a,0,0),n.length,!0));let s=0;for(let e=0;e<n.length;e++)n[e].type==l&&(s=e+1);let u=n.length-s,c=t.start+n.length-2*!!o,d=t.parent;for(let n=t.startIndex,i=t.endIndex,o=!0;n<i;n++,o=!1)!o&&(0,r.zy)(e.doc,c,u)&&(e.split(c,u),c+=2*u),c+=d.child(n).nodeSize}(e,t,u,l,n),!0)}(u,s,e,t)&&(o&&o(u.scrollIntoView()),!0)}}function l(e){return function(t,n){let{$from:o,$to:l}=t.selection,a=o.blockRange(l,t=>t.childCount>0&&t.firstChild.type==e);return!!a&&(!n||(o.node(a.depth-1).type==e?function(e,t,n,o){let l=e.tr,a=o.end,s=o.$to.end(o.depth);a<s&&(l.step(new r.Wg(a-1,s,a,s,new i.Ji(i.FK.from(n.create(null,o.parent.copy())),1,0),1,!0)),o=new i.u$(l.doc.resolve(o.$from.pos),l.doc.resolve(s),o.depth));let u=(0,r.jP)(o);if(null==u)return!1;l.lift(o,u);let c=l.doc.resolve(l.mapping.map(a,-1)-1);return(0,r.n9)(l.doc,c.pos)&&c.nodeBefore.type==c.nodeAfter.type&&l.join(c.pos),t(l.scrollIntoView()),!0}(t,n,e,a):function(e,t,n){let o=e.tr,l=n.parent;for(let e=n.end,t=n.endIndex-1,r=n.startIndex;t>r;t--)e-=l.child(t).nodeSize,o.delete(e-1,e+1);let a=o.doc.resolve(n.start),s=a.nodeAfter;if(o.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let u=0==n.startIndex,c=n.endIndex==l.childCount,d=a.node(-1),f=a.index(-1);if(!d.canReplace(f+ +!u,f+1,s.content.append(c?i.FK.empty:i.FK.from(l))))return!1;let h=a.pos,p=h+s.nodeSize;return o.step(new r.Wg(h-!!u,p+ +!!c,h+1,p-1,new i.Ji((u?i.FK.empty:i.FK.from(l.copy(i.FK.empty))).append(c?i.FK.empty:i.FK.from(l.copy(i.FK.empty))),+!u,+!c),+!u)),t(o.scrollIntoView()),!0}(t,n,a)))}}function a(e){return function(t,n){let{$from:o,$to:l}=t.selection,a=o.blockRange(l,t=>t.childCount>0&&t.firstChild.type==e);if(!a)return!1;let s=a.startIndex;if(0==s)return!1;let u=a.parent,c=u.child(s-1);if(c.type!=e)return!1;if(n){let o=c.lastChild&&c.lastChild.type==u.type,l=i.FK.from(o?e.create():null),s=new i.Ji(i.FK.from(e.create(null,i.FK.from(u.type.create(null,l)))),o?3:1,0),d=a.start,f=a.end;n(t.tr.step(new r.Wg(d-(o?3:1),f,d,f,s,1,!0)).scrollIntoView())}return!0}}},99574:(e,t,n)=>{"use strict";n.d(t,{B:()=>o});var r=n(78788),i=n(50713);let o={tokenize:function(e,t,n){return function(t){return(0,i.On)(t)?(0,r.N)(e,o,"linePrefix")(t):o(t)};function o(e){return null===e||(0,i.HP)(e)?t(e):n(e)}},partial:!0}},99759:(e,t,n)=>{"use strict";n.d(t,{F:()=>g});var r=n(97118),i=n(89983),o=n(94427),l=n(69906),a=n(10276);function s(e,t,n){let{years:r=0,months:s=0,weeks:u=0,days:c=0,hours:d=0,minutes:f=0,seconds:h=0}=t,p=(0,a.a)(e,null==n?void 0:n.in),m=s||r?(0,o.P)(p,s+12*r):p,g=c||u?(0,i.f)(m,c+7*u):m;return(0,l.w)((null==n?void 0:n.in)||e,+g+1e3*(h+60*(f+60*d)))}var u=n(92674),c=n(42419),d=n(58698),f=n(25332),h=n(49489),p=n(68430),m=n(75581);function g(e,t){let{start:n,end:i}=function(e,t){let[n,i]=(0,r.x)(e,t.start,t.end);return{start:n,end:i}}(null==t?void 0:t.in,e),o={},l=function(e,t,n){let[i,o]=(0,r.x)(void 0,e,t),l=(0,m.z)(i,o),a=Math.abs(function(e,t,n){let[i,o]=(0,r.x)(void 0,e,t);return i.getFullYear()-o.getFullYear()}(i,o));i.setFullYear(1584),o.setFullYear(1584);let s=(0,m.z)(i,o)===-l,u=l*(a-s);return 0===u?0:u}(i,n);l&&(o.years=l);let a=s(n,{years:o.years}),g=(0,h.W)(i,a);
27g&&(o.months=g);let y=s(a,{months:o.months}),v=(0,u.c)(i,y);v&&(o.days=v);let b=s(y,{days:o.days}),w=function(e,t,n){let[i,o]=(0,r.x)(void 0,e,t),l=(i-o)/d.s0;return(0,c.u)(void 0)(l)}(i,b);w&&(o.hours=w);let x=s(b,{hours:o.hours}),k=function(e,t,n){let r=(0,f.b)(e,t)/d.Cg;return(0,c.u)(void 0)(r)}(i,x);k&&(o.minutes=k);let C=s(x,{minutes:o.minutes}),S=(0,p.O)(i,C);return S&&(o.seconds=S),o}},99778:(e,t,n)=>{"use strict";n.d(t,{C1:()=>er,q7:()=>en,bL:()=>et});var r=n(38848),i=n(4529),o=n(25300),l=n(89486),a=n(5461),s=n(21670),u=n(85857),c=n(15381),d=n(67821),f=n(46229),h=n(38476),p="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[y,v,b]=(0,s.N)(g),[w,x]=(0,l.A)(g,[b]),[k,C]=w(g),S=r.forwardRef((e,t)=>(0,h.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(E,{...e,ref:t})})}));S.displayName=g;var E=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:l,loop:s=!1,dir:u,currentTabStopId:y,defaultCurrentTabStopId:b,onCurrentTabStopIdChange:w,onEntryFocus:x,preventScrollOnEntryFocus:C=!1,...S}=e,E=r.useRef(null),M=(0,o.s)(t,E),T=(0,f.jH)(u),[R,O]=(0,d.i)({prop:y,defaultProp:null!=b?b:null,onChange:w,caller:g}),[N,P]=r.useState(!1),L=(0,c.c)(x),I=v(n),D=r.useRef(!1),[_,j]=r.useState(0);return r.useEffect(()=>{let e=E.current;if(e)return e.addEventListener(p,L),()=>e.removeEventListener(p,L)},[L]),(0,h.jsx)(k,{scope:n,orientation:l,dir:T,loop:s,currentTabStopId:R,onItemFocus:r.useCallback(e=>O(e),[O]),onItemShiftTab:r.useCallback(()=>P(!0),[]),onFocusableItemAdd:r.useCallback(()=>j(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>j(e=>e-1),[]),children:(0,h.jsx)(a.sG.div,{tabIndex:N||0===_?-1:0,"data-orientation":l,...S,ref:M,style:{outline:"none",...e.style},onMouseDown:(0,i.mK)(e.onMouseDown,()=>{D.current=!0}),onFocus:(0,i.mK)(e.onFocus,e=>{let t=!D.current;if(e.target===e.currentTarget&&t&&!N){let t=new CustomEvent(p,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=I().filter(e=>e.focusable);A([e.find(e=>e.active),e.find(e=>e.id===R),...e].filter(Boolean).map(e=>e.ref.current),C)}}D.current=!1}),onBlur:(0,i.mK)(e.onBlur,()=>P(!1))})})}),M="RovingFocusGroupItem",T=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:o=!0,active:l=!1,tabStopId:s,children:c,...d}=e,f=(0,u.B)(),p=s||f,m=C(M,n),g=m.currentTabStopId===p,b=v(n),{onFocusableItemAdd:w,onFocusableItemRemove:x,currentTabStopId:k}=m;return r.useEffect(()=>{if(o)return w(),()=>x()},[o,w,x]),(0,h.jsx)(y.ItemSlot,{scope:n,id:p,focusable:o,active:l,children:(0,h.jsx)(a.sG.span,{tabIndex:g?0:-1,"data-orientation":m.orientation,...d,ref:t,onMouseDown:(0,i.mK)(e.onMouseDown,e=>{o?m.onItemFocus(p):e.preventDefault()}),onFocus:(0,i.mK)(e.onFocus,()=>m.onItemFocus(p)),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return R[i]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=b().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=m.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>A(n))}}),children:"function"==typeof c?c({isCurrentTabStop:g,hasTabStop:null!=k}):c})})});T.displayName=M;var R={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function A(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var O=n(48949),N=n(60117),P=n(94205),L="Radio",[I,D]=(0,l.A)(L),[_,j]=I(L),F=r.forwardRef((e,t)=>{let{__scopeRadio:n,name:l,checked:s=!1,required:u,disabled:c,value:d="on",onCheck:f,form:p,...m}=e,[g,y]=r.useState(null),v=(0,o.s)(t,e=>y(e)),b=r.useRef(!1),w=!g||p||!!g.closest("form");
27return(0,h.jsxs)(_,{scope:n,checked:s,disabled:c,children:[(0,h.jsx)(a.sG.button,{type:"button",role:"radio","aria-checked":s,"data-state":$(s),"data-disabled":c?"":void 0,disabled:c,value:d,...m,ref:v,onClick:(0,i.mK)(e.onClick,e=>{s||null==f||f(),w&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})}),w&&(0,h.jsx)(B,{control:g,bubbles:!b.current,name:l,value:d,checked:s,required:u,disabled:c,form:p,style:{transform:"translateX(-100%)"}})]})});F.displayName=L;var z="RadioIndicator",H=r.forwardRef((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,o=j(z,n);return(0,h.jsx)(P.C,{present:r||o.checked,children:(0,h.jsx)(a.sG.span,{"data-state":$(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t})})});H.displayName=z;var B=r.forwardRef((e,t)=>{let{__scopeRadio:n,control:i,checked:l,bubbles:s=!0,...u}=e,c=r.useRef(null),d=(0,o.s)(c,t),f=(0,N.Z)(l),p=(0,O.X)(i);return r.useEffect(()=>{let e=c.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(f!==l&&t){let n=new Event("click",{bubbles:s});t.call(e,l),e.dispatchEvent(n)}},[f,l,s]),(0,h.jsx)(a.sG.input,{type:"radio","aria-hidden":!0,defaultChecked:l,...u,tabIndex:-1,ref:d,style:{...u.style,...p,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function $(e){return e?"checked":"unchecked"}B.displayName="RadioBubbleInput";var U=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],V="RadioGroup",[W,q]=(0,l.A)(V,[x,D]),K=x(),G=D(),[Y,J]=W(V),X=r.forwardRef((e,t)=>{let{__scopeRadioGroup:n,name:r,defaultValue:i,value:o,required:l=!1,disabled:s=!1,orientation:u,dir:c,loop:p=!0,onValueChange:m,...g}=e,y=K(n),v=(0,f.jH)(c),[b,w]=(0,d.i)({prop:o,defaultProp:null!=i?i:null,onChange:m,caller:V});return(0,h.jsx)(Y,{scope:n,name:r,required:l,disabled:s,value:b,onValueChange:w,children:(0,h.jsx)(S,{asChild:!0,...y,orientation:u,dir:v,loop:p,children:(0,h.jsx)(a.sG.div,{role:"radiogroup","aria-required":l,"aria-orientation":u,"data-disabled":s?"":void 0,dir:v,...g,ref:t})})})});X.displayName=V;var Z="RadioGroupItem",Q=r.forwardRef((e,t)=>{let{__scopeRadioGroup:n,disabled:l,...a}=e,s=J(Z,n),u=s.disabled||l,c=K(n),d=G(n),f=r.useRef(null),p=(0,o.s)(t,f),m=s.value===a.value,g=r.useRef(!1);return r.useEffect(()=>{let e=e=>{U.includes(e.key)&&(g.current=!0)},t=()=>g.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,h.jsx)(T,{asChild:!0,...c,focusable:!u,active:m,children:(0,h.jsx)(F,{disabled:u,required:s.required,
27checked:m,...d,...a,name:s.name,ref:p,onCheck:()=>s.onValueChange(a.value),onKeyDown:(0,i.mK)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,i.mK)(a.onFocus,()=>{var e;g.current&&(null==(e=f.current)||e.click())})})})});Q.displayName=Z;var ee=r.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e,i=G(n);return(0,h.jsx)(H,{...i,...r,ref:t})});ee.displayName="RadioGroupIndicator";var et=X,en=Q,er=ee}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.